:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #253547;
  background: #f5f6f8;
  font-size: 14px;
  --red: #bb2942;
  --navy: #172a3b;
  --muted: #83909e;
  --line: #e7ebef;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #d87b8f;
  outline-offset: 3px;
}
svg {
  height: 20px;
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 31px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 9px;
}
h2 {
  font-size: 16px;
  letter-spacing: -0.3px;
  margin-bottom: 0;
}
h3 {
  font-size: 13px;
}
p {
  line-height: 1.7;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  display: flex;
  flex-direction: column;
  padding: 29px 17px 20px;
  background: var(--navy);
  color: #adbac7;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 40px;
}
.brand strong {
  display: block;
  color: white;
  font-size: 21px;
  letter-spacing: -0.4px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  margin-top: 7px;
  color: #9babbc;
}
.brand-cross {
  width: 32px;
  height: 32px;
  position: relative;
  flex-shrink: 0;
}
.brand-cross:before,
.brand-cross:after {
  content: "";
  position: absolute;
  inset: 0 11px;
  background: #ed4966;
}
.brand-cross:after {
  inset: 11px 0;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  padding: 8px 15px 17px;
  color: #8396a8;
}
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 14px;
  width: 100%;
  color: #aebdcb;
  font-size: 12px;
  margin: 3px 0;
}
.nav.selected {
  background: #ffffff0e;
  color: white;
  box-shadow: inset 3px 0 #e54865;
}
.nav:hover {
  background: #ffffff0b;
}
.nav svg {
  width: 18px;
}
.nav.small {
  font-size: 11px;
  padding: 10px 14px;
}
.side-note {
  margin-top: auto;
  padding: 25px 14px;
  color: #71889d;
  font-size: 11px;
  line-height: 1.8;
}
.profile {
  display: flex;
  align-items: center;
  gap: 11px;
  border-top: 1px solid #ffffff15;
  padding: 22px 10px 15px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #ffffff10;
  color: #e0e6ed;
  font-size: 10px;
}
.profile b {
  display: block;
  color: #e7edf3;
  font-size: 12px;
}
.profile small {
  display: block;
  color: #869bad;
  font-size: 10px;
  margin-top: 5px;
}
.workspace {
  margin-left: 236px;
}
.topbar {
  min-height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 38px;
  gap: 16px;
}
.topbar > div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #8b98a5;
}
.topbar b {
  font-weight: 500;
  color: #53677b;
  margin-left: 8px;
}
.connection {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4d8974;
  background: #f0f7f3;
  border: 1px solid #e0eee6;
  padding: 8px 11px;
  border-radius: 20px;
  font-size: 10px;
  white-space: nowrap;
}
.connection > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5aa487;
}
.connection svg {
  width: 13px;
  height: 13px;
  margin-left: 4px;
}
.connection.offline,
.connection.attention {
  background: #fff4e6;
  color: #9b703c;
  border-color: #f3e3ca;
}
.connection.offline > span,
.connection.attention > span {
  background: #bc8a48;
}
main {
  padding: 34px 38px 30px;
  max-width: 1530px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: var(--red);
  margin: 0 0 10px;
}
.subtitle {
  color: #8995a3;
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 15px;
  background: white;
  border: 1px solid #dce3e9;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  min-height: 40px;
}
.btn svg {
  width: 17px;
  height: 17px;
}
.btn:hover {
  background: #f8f9fb;
}
.btn.primary {
  background: var(--red);
  border-color: var(--red);
  color: white;
}
.btn.primary:hover {
  background: #a42239;
}
.btn.danger {
  color: var(--red);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 28px;
}
.metrics > div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 20px 23px;
}
.metrics span {
  display: block;
  font-size: 11px;
  color: #8b97a4;
  margin-bottom: 14px;
}
.metrics strong {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 650;
}
.metrics small {
  display: block;
  font-size: 10px;
  color: #a0aab5;
  margin-top: 12px;
}
.metrics i {
  font-style: normal;
  color: #a4aebb;
  font-size: 22px;
}
.metrics.compact > div {
  padding: 18px 22px;
}
.metrics.compact span {
  margin-bottom: 9px;
}
.metrics.compact {
  margin-bottom: 22px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 17px;
}
.section-heading span {
  font-size: 10px;
  color: #97a2ae;
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}
.event-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  text-align: left;
  padding: 23px;
  color: #293f52;
  transition:
    box-shadow 0.15s,
    transform 0.15s;
}
.event-card:hover {
  box-shadow: 0 8px 25px #172a3b0a;
  transform: translateY(-2px);
  border-color: #d8a4b0;
}
.event-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}
.calendar-icon {
  display: grid;
  place-items: center;
  background: #fbeff2;
  color: var(--red);
  border-radius: 9px;
  width: 37px;
  height: 39px;
}
.calendar-icon svg {
  width: 20px;
}
.status {
  font-size: 9px;
  border-radius: 5px;
  padding: 6px 9px;
  display: inline-block;
  white-space: nowrap;
}
.status.active {
  background: #eaf6ef;
  color: #4a8a6e;
}
.status.draft {
  background: #fff5e6;
  color: #a88045;
}
.status.closed {
  background: #eff2f6;
  color: #8594a5;
}
.event-card > small {
  font-size: 10px;
  color: #94a0ac;
}
.event-card h2 {
  font-size: 17px;
  line-height: 1.4;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.event-card p {
  color: #9aa5b1;
  font-size: 10px;
  line-height: 1.6;
  margin: 0 0 24px;
}
.event-card-foot {
  border-top: 1px solid #eef1f4;
  padding-top: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.event-card-foot > span {
  font-size: 10px;
  color: #8e9dac;
}
.event-card-foot b {
  color: #42576a;
  font-size: 12px;
}
.event-card-foot > strong {
  font-size: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.event-card-foot svg {
  width: 15px;
  color: var(--red);
}
.onboarding {
  border: 1px solid #f0dce2;
  border-radius: 12px;
  background: #fffafb;
  padding: 30px;
  display: flex;
  gap: 23px;
  margin-bottom: 28px;
}
.big-icon {
  display: grid;
  place-items: center;
  background: #f8e9ee;
  color: var(--red);
  width: 58px;
  height: 58px;
  border-radius: 13px;
  flex-shrink: 0;
}
.big-icon svg {
  width: 29px;
  height: 29px;
}
.onboarding h2 {
  font-size: 21px;
}
.onboarding p {
  max-width: 650px;
  font-size: 12px;
  color: #8d8290;
  margin: 10px 0 19px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  overflow: hidden;
}
.card-heading {
  padding: 21px 23px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.card-heading > span {
  font-size: 10px;
  color: #98a4b0;
}
.padded {
  padding: 25px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  padding: 13px 20px;
  background: #fafbfd;
  color: #93a0ae;
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.7px;
  white-space: nowrap;
}
td {
  padding: 17px 20px;
  border-bottom: 1px solid #eef1f4;
  font-size: 11px;
  line-height: 1.5;
}
tr:last-child td {
  border-bottom: 0;
}
td b {
  font-size: 11px;
  color: #3a4f61;
}
td small {
  display: block;
  font-size: 10px;
  color: #96a3b0;
  margin-top: 5px;
}
.text-button {
  color: var(--red);
  border: 0;
  background: none;
  font-size: 11px;
  padding: 3px 0;
  text-align: left;
}
.empty {
  padding: 45px;
  text-align: center;
  color: #92a0ad;
  font-size: 12px;
  line-height: 1.7;
  grid-column: 1/-1;
  min-height: 120px;
  background: white;
  border-radius: 10px;
}
.empty h3 {
  color: #536b80;
  font-size: 16px;
}
.event-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 18px 0 24px;
  font-size: 11px;
  color: #8b99a7;
  flex-wrap: wrap;
}
.back {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  border: 0;
  background: none;
  padding: 0;
  color: #718599;
  font-size: 11px;
}
.back svg {
  width: 15px;
}
.tabs {
  display: flex;
  border-bottom: 1px solid #e2e7ed;
  gap: 27px;
  margin-bottom: 24px;
}
.tabs button {
  border: 0;
  background: none;
  font-size: 12px;
  color: #95a0ac;
  padding: 0 0 14px;
  position: relative;
}
.tabs button.active {
  color: var(--red);
  font-weight: 600;
}
.tabs button.active:after {
  position: absolute;
  content: "";
  height: 2px;
  background: var(--red);
  left: 0;
  right: 0;
  bottom: -1px;
}
.tally-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.segmented {
  display: flex;
  gap: 3px;
  padding: 4px;
  background: #e9edf2;
  border-radius: 8px;
  flex-wrap: wrap;
}
.segmented button {
  border: 0;
  background: none;
  color: #8a97a5;
  font-size: 10px;
  border-radius: 6px;
  padding: 9px 13px;
}
.segmented button.selected {
  background: white;
  color: #495f72;
  box-shadow: 0 1px 4px #172a3b0c;
}
.quantity {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8b98a6;
  font-size: 10px;
}
.quantity button {
  border: 1px solid #dfe5eb;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #fff;
  font-size: 18px;
  color: #6b8092;
}
.quantity strong {
  min-width: 20px;
  text-align: center;
  color: #425b70;
  font-size: 13px;
}
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.filters {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.filters button {
  border: 0;
  border-radius: 5px;
  padding: 7px 10px;
  background: none;
  color: #99a4af;
  font-size: 10px;
}
.filters button.active {
  background: #f8e8ed;
  color: var(--red);
  font-weight: 600;
}
.search {
  background: white;
  border: 1px solid #e1e7ed;
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 11px;
  min-width: 185px;
  max-width: 100%;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.product-card {
  position: relative;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 21px;
  background: white;
  min-width: 0;
  transition:
    border-color 0.15s,
    transform 0.1s;
}
.product-card:not(:disabled):hover {
  border-color: #d37a90;
  box-shadow: 0 4px 18px #b5233b08;
}
.product-card:not(:disabled):active {
  transform: scale(0.98);
}
.product-icon {
  width: 38px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f8efe6;
  color: #b99264;
  margin-bottom: 19px;
}
.tone-1 .product-icon {
  background: #eaf3ef;
  color: #7b9c8c;
}
.tone-2 .product-icon {
  background: #eef0f9;
  color: #8893b3;
}
.tone-3 .product-icon {
  background: #faedef;
  color: #b77d88;
}
.product-category {
  position: absolute;
  right: 19px;
  top: 25px;
  color: #a2adb8;
  font-size: 9px;
}
.product-card h2 {
  font-size: 17px;
  line-height: 1.4;
  margin: 0 0 7px;
  overflow-wrap: anywhere;
}
.product-card > p {
  font-size: 12px;
  color: #677d91;
  margin: 0 0 15px;
}
.product-card p small {
  font-size: 10px;
  color: #a0aab6;
}
.stock-label {
  font-size: 10px;
  color: #a3aeb8;
  overflow-wrap: anywhere;
}
.negative {
  color: #b4233b !important;
  font-weight: 600;
}
.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eff2f5;
  margin-top: 18px;
  padding-top: 14px;
}
.product-bottom > span:first-child {
  font-size: 10px;
  color: #a2aeba;
}
.product-bottom b {
  font-size: 15px;
  color: #4e657a;
  margin-right: 3px;
}
.add-circle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--red);
  color: white;
  border-radius: 50%;
}
.add-circle svg {
  width: 18px;
  height: 18px;
}
.hint {
  font-size: 10px;
  color: #95a1ae;
  line-height: 1.8;
  margin: 14px 0 0;
}
.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 17px;
  background: #fffbf3;
  border: 1px solid #f1e5cd;
  padding: 17px 20px;
  border-radius: 10px;
  color: #a08351;
  margin-bottom: 22px;
  font-size: 11px;
}
.notice p {
  margin: 6px 0 0;
  font-size: 11px;
  color: #aa9879;
}
.offline-notice {
  justify-content: flex-start;
}
.offline-notice > svg {
  width: 24px;
  height: 24px;
}
.error-notice {
  background: #fff3f5;
  border-color: #f0d7df;
  color: #ab5369;
}
.error-notice p {
  color: #a8838e;
}
.mode-note {
  padding: 12px 15px;
  background: #fff4e8;
  color: #9a794d;
  border-radius: 7px;
  font-size: 11px;
  margin-bottom: 20px;
}
.finish-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  color: #8292a1;
  margin-top: 23px;
}
.total-line b {
  color: #536b7f;
}
.total-line.grand {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-bottom: 28px;
}
.total-line strong {
  font-size: 24px;
  color: #344e64;
}
.device {
  display: grid;
  gap: 7px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: #627b8e;
}
.device span {
  font-size: 10px;
  color: #97a4b0;
}
.space-top {
  margin-top: 24px;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 9px;
  color: #a9b3bc;
  margin-top: 30px;
}
footer button {
  border: 0;
  background: none;
  padding: 0;
  color: #9ba8b5;
  font-size: 9px;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  background: none;
  border: 0;
  padding: 5px;
  font-size: 24px;
  color: #9ba7b3;
}
.mobile-menu {
  display: none;
}
.shade {
  display: none;
}
.loading {
  padding: 50px;
  text-align: center;
  color: #8796a6;
}
dialog {
  width: 580px;
  max-width: calc(100vw - 28px);
  max-height: 90dvh;
  border: 1px solid #dfe5eb;
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 26px 90px #172a3b30;
  background: white;
  color: #334b5f;
}
dialog::backdrop {
  background: #152a3c6b;
  backdrop-filter: blur(3px);
}
dialog form {
  display: flex;
  flex-direction: column;
  max-height: calc(90dvh - 2px);
}
.dialog-heading {
  padding: 21px 23px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}
.dialog-heading h2 {
  font-size: 18px;
}
.dialog-body {
  padding: 23px;
  overflow: auto;
  min-height: 0;
}
.dialog-copy {
  font-size: 12px;
  line-height: 1.8;
  color: #7a8fa0;
  white-space: pre-line;
}
.dialog-actions {
  background: #fafbfd;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 17px 23px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.field {
  display: grid;
  gap: 7px;
  font-size: 11px;
  color: #7b8fa2;
  margin-bottom: 17px;
  min-width: 0;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-width: 0;
  font-size: 12px;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid #dfe5eb;
  border-radius: 6px;
  color: #3d566b;
}
.field textarea {
  min-height: 80px;
  resize: vertical;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11px;
  line-height: 1.7;
  color: #788fa2;
  margin: 12px 0;
}
.check input {
  accent-color: var(--red);
  flex-shrink: 0;
  margin-top: 4px;
}
.error {
  font-size: 12px;
  line-height: 1.7;
  color: #b5233b;
  overflow-wrap: anywhere;
}
.article-selection {
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
.selection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  font-size: 10px;
  color: #95a2b0;
}
.selection-row > .check {
  flex: 1;
}
.selection-row > .field {
  width: 90px;
  margin: 0;
}
.file-button input {
  display: none;
}
.queue-error {
  border: 1px solid #f0d7de;
  background: #fff7f9;
  border-radius: 7px;
  padding: 13px;
  font-size: 11px;
  margin-bottom: 12px;
}
.queue-error p {
  margin: 6px 0 0;
  color: #aa7585;
}
#toast {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 15px);
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  background: #172a3b;
  color: white;
  border-radius: 9px;
  padding: 13px 19px;
  box-shadow: 0 8px 35px #172a3b22;
  max-width: calc(100vw - 30px);
  font-size: 11px;
  line-height: 1.5;
  transition: 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
#toast button {
  color: #f4a5b7;
  border: 0;
  background: none;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
}
.auth-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
  max-width: none;
  padding: 0;
}
.auth-intro {
  padding: 58px 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #172a3b;
  color: white;
}
.auth-intro .brand {
  padding: 0;
}
.auth-intro h1 {
  font-size: 52px;
  line-height: 1.18;
  letter-spacing: -2px;
  margin: 22px 0;
}
.auth-intro > div > p:last-child {
  font-size: 14px;
  line-height: 1.9;
  color: #90a3b4;
  max-width: 370px;
}
.auth-intro > small {
  color: #6e879d;
  font-size: 10px;
}
.auth-intro .eyebrow {
  color: #ef8299;
}
.auth-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 70px;
  max-width: 600px;
  justify-self: center;
}
.auth-form h2 {
  font-size: 26px;
  letter-spacing: -0.8px;
  line-height: 1.3;
}
.auth-form > p {
  font-size: 12px;
  color: #97a4b0;
  margin: 14px 0 28px;
}
.auth-form .btn {
  width: 100%;
  justify-content: space-between;
}
.auth-symbol {
  display: grid;
  place-items: center;
  width: 48px;
  height: 54px;
  border-radius: 13px;
  background: #f8e9ee;
  color: var(--red);
  margin-bottom: 25px;
}
.auth-symbol svg {
  width: 25px;
  height: 25px;
}
.auth-form > p.hint {
  font-size: 10px;
  line-height: 1.8;
  margin-top: 24px;
}
@media (max-width: 1200px) {
  .product-grid,
  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metrics {
    gap: 12px;
  }
  .metrics > div {
    padding: 18px;
  }
  .metrics strong {
    font-size: 27px;
  }
  main {
    padding: 28px 25px;
  }
  .topbar {
    padding: 18px 25px;
  }
  .auth-form {
    padding: 50px 40px;
  }
  .auth-intro {
    padding: 45px;
  }
  .auth-intro h1 {
    font-size: 43px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    transform: translateX(-100%);
    transition: 0.2s;
    height: 100dvh;
    overflow: auto;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .workspace {
    margin-left: 0;
  }
  .mobile-menu {
    display: inline-grid;
  }
  .shade.open {
    display: block;
    position: fixed;
    inset: 0;
    background: #172a3b70;
    z-index: 19;
  }
  .topbar {
    padding: 14px 18px;
    min-height: 64px;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  .topbar b {
    margin-left: 4px;
  }
  main {
    padding: 25px 18px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .auth-intro {
    padding: 34px;
  }
  .auth-form {
    padding: 45px 30px;
  }
  .auth-intro h1 {
    font-size: 36px;
  }
  .finish-grid {
    grid-template-columns: 1fr;
  }
  .card-heading {
    padding: 18px;
  }
  .notice {
    flex-wrap: wrap;
  }
}
@media (max-width: 560px) {
  main {
    padding: 23px 15px;
  }
  .page-heading {
    flex-direction: column;
    gap: 17px;
    margin-bottom: 23px;
  }
  .page-heading > .actions {
    width: 100%;
  }
  .page-heading > .actions > .btn {
    flex: 1;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .metrics {
    gap: 8px;
  }
  .metrics > div,
  .metrics.compact > div {
    padding: 14px 11px;
  }
  .metrics span {
    font-size: 9px;
    line-height: 1.5;
    margin-bottom: 9px;
  }
  .metrics strong {
    font-size: 23px;
  }
  .metrics small {
    font-size: 9px;
    line-height: 1.7;
    margin-top: 9px;
  }
  .metrics i {
    font-size: 16px;
  }
  .event-grid {
    grid-template-columns: 1fr;
  }
  .event-card {
    padding: 21px;
  }
  .event-card-top {
    margin-bottom: 20px;
  }
  .onboarding {
    padding: 22px;
    gap: 15px;
    align-items: flex-start;
  }
  .onboarding h2 {
    font-size: 18px;
  }
  .big-icon {
    width: 41px;
    height: 44px;
  }
  .onboarding .btn {
    white-space: normal;
  }
  .product-grid {
    gap: 11px;
  }
  .product-card {
    padding: 16px 13px;
  }
  .product-category {
    font-size: 8px;
    right: 12px;
    top: 23px;
    max-width: 60px;
    text-align: right;
  }
  .product-card h2 {
    font-size: 15px;
  }
  .product-icon {
    width: 33px;
    height: 37px;
    margin-bottom: 17px;
  }
  .product-card > p {
    font-size: 11px;
    line-height: 1.7;
    margin-bottom: 11px;
  }
  .product-card p small {
    display: block;
  }
  .stock-label {
    font-size: 9px;
    line-height: 1.6;
    min-height: 29px;
  }
  .product-bottom {
    padding-top: 12px;
    margin-top: 12px;
  }
  .add-circle {
    height: 30px;
    width: 30px;
  }
  .segmented {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .segmented button {
    padding: 10px 8px;
  }
  .quantity {
    margin-left: auto;
  }
  .catalog-toolbar {
    align-items: stretch;
    gap: 12px;
  }
  .catalog-toolbar .search {
    width: 100%;
    font-size: 14px;
  }
  .tabs {
    gap: 22px;
  }
  .event-strip {
    gap: 11px;
    font-size: 10px;
  }
  .btn {
    min-height: 42px;
    white-space: normal;
  }
  .back {
    font-size: 10px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
  .selection-row > .field input {
    font-size: 13px;
  }
  .selection-row > .field {
    width: 73px;
  }
  .dialog-heading {
    padding: 19px;
  }
  .dialog-heading h2 {
    font-size: 17px;
  }
  .dialog-body {
    padding: 19px;
  }
  .dialog-actions {
    padding: 15px 19px;
  }
  .dialog-actions .btn {
    flex: 1;
  }
  .topbar > div {
    font-size: 10px;
  }
  .connection {
    font-size: 9px;
    padding: 7px 9px;
    gap: 5px;
  }
  .connection svg {
    display: none;
  }
  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .auth-page {
    display: block;
  }
  .auth-intro {
    min-height: 260px;
    padding: 27px 28px;
  }
  .auth-intro .brand strong {
    font-size: 19px;
  }
  .auth-intro .brand small {
    font-size: 8px;
  }
  .auth-intro .brand {
    padding-bottom: 20px;
  }
  .auth-intro h1 {
    font-size: 33px;
    letter-spacing: -1px;
    margin: 13px 0;
  }
  .auth-intro .eyebrow {
    font-size: 8px;
  }
  .auth-intro > div > p:last-child,
  .auth-intro > small {
    display: none;
  }
  .auth-form {
    padding: 35px 29px;
  }
  .auth-symbol {
    display: none;
  }
  .auth-form h2 {
    font-size: 25px;
  }
  .auth-form > p {
    margin-bottom: 22px;
  }
  td,
  th {
    padding-left: 15px;
    padding-right: 15px;
  }
  .table-wrap table {
    min-width: 660px;
  }
  #toast {
    width: max-content;
    font-size: 10px;
    gap: 10px;
    padding: 12px 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
@media (max-width: 560px) {
  .event-workspace .page-heading {
    margin-bottom: 12px;
    gap: 9px;
  }
  .event-workspace .page-heading .eyebrow,
  .event-workspace .page-heading .subtitle {
    display: none;
  }
  .event-workspace .page-heading h1 {
    font-size: 23px;
    margin: 0;
  }
  .event-workspace .page-heading > .actions {
    width: auto;
  }
  .event-workspace .page-heading > .actions .btn {
    min-height: 34px;
    padding: 7px 11px;
  }
  .event-workspace .back {
    margin-bottom: 8px;
  }
  .event-workspace .event-strip {
    margin: 8px 0 12px;
    gap: 9px;
  }
  .event-workspace .metrics.compact {
    margin-bottom: 13px;
  }
  .event-workspace .metrics.compact > div {
    padding: 10px;
  }
  .event-workspace .metrics.compact span {
    margin-bottom: 5px;
  }
  .event-workspace .metrics.compact strong {
    font-size: 20px;
  }
  .event-workspace .tabs {
    margin-bottom: 15px;
  }
  .event-workspace .tally-controls {
    margin: 10px 0 15px;
    gap: 10px;
  }
  .event-workspace .catalog-toolbar {
    margin-bottom: 14px;
    gap: 9px;
  }
  .event-workspace .filters {
    flex-wrap: nowrap;
    overflow: auto;
    max-width: 100%;
    padding-bottom: 3px;
  }
  .event-workspace .filters button {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .event-workspace .offline-notice {
    padding: 10px;
    font-size: 10px;
    margin-bottom: 12px;
  }
  .event-workspace .offline-notice p {
    font-size: 10px;
    margin: 3px 0 0;
  }
  .event-workspace .quantity button {
    min-width: 38px;
    min-height: 38px;
  }
}
