:root {
  --ivory: #f7f3ec;
  --paper: #fcfaf6;
  --sand: #efe7da;
  --line: #e2dacb;
  --line-strong: #cfc5b3;
  --ink: #1e2b24;
  --ink-soft: #5e6862;
  --ink-mute: #8e948f;
  --sage: #6c9583;
  --sage-soft: rgba(108, 149, 131, 0.16);
  --botanical: #4c6256;
  --botanical-press: #3d5046;

  --serif: 'Gilda Display', Didot, 'Bodoni 72', Georgia, serif;
  --sans: 'Jost', 'Futura', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --radius: 4px;
  --gutter: clamp(16px, 3vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter);
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 26px 0 22px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.brand__word {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  color: var(--botanical);
}

.brand__sep {
  width: 1px;
  height: 22px;
  background: var(--line-strong);
}

.brand__sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--botanical);
}

.today {
  display: flex;
  align-items: baseline;
  gap: 14px;
  white-space: nowrap;
}

.today__date {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--ink-soft);
}

.today__clock {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}

.topbar__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.ghost-btn:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}
.ghost-btn[aria-pressed='true'] {
  color: var(--botanical);
}

.sound-icon {
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h3l5-4v14l-5-4H4z' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M16 9l5 6M21 9l-5 6' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h3l5-4v14l-5-4H4z' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M16 9l5 6M21 9l-5 6' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ghost-btn[aria-pressed='true'] .sound-icon {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h3l5-4v14l-5-4H4z' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M16 8.5a5 5 0 0 1 0 7M18.8 6a8.5 8.5 0 0 1 0 12' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h3l5-4v14l-5-4H4z' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M16 8.5a5 5 0 0 1 0 7M18.8 6a8.5 8.5 0 0 1 0 12' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}

.live__dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}

.live[data-state='live'] {
  color: var(--botanical);
}
.live[data-state='live'] .live__dot {
  background: var(--sage);
}
.live[data-state='live'] .live__dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--sage);
  animation: pulse 2.4s var(--ease) infinite;
}
.live[data-state='offline'] .live__dot {
  background: #c7a27a;
}

@keyframes pulse {
  0% {
    transform: scale(0.5);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.tabs {
  display: none;
}

.board {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.column {
  position: relative;
  padding: 30px clamp(14px, 1.8vw, 28px) 40px;
  min-width: 0;
}
.column + .column {
  border-left: 1px solid var(--line);
}
.column:first-child {
  padding-left: 0;
}
.column:last-child {
  padding-right: 0;
}

.column__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
}

.column__title {
  margin: 0;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
}

.column[data-status='NEW'] .column__title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 10px 2px 0;
  border-radius: 50%;
  background: var(--sage);
}

.column__count {
  font-family: var(--serif);
  font-size: 30px;
    line-height: 1;
  color: var(--ink-soft);
  font-variant-numeric: lining-nums;
}

.column__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.column__empty {
  margin: 36px 0 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.35;
  color: var(--ink-mute);
}
.column__empty span {
  font-size: 16px;
}
.column.has-orders .column__empty {
  display: none;
}

.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  transition: border-color 0.4s var(--ease), box-shadow 1.2s var(--ease), opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.card.is-entering {
  animation: card-in 0.75s var(--ease) backwards;
}

.card.is-fresh {
  border-color: var(--sage);
  box-shadow: 0 0 0 5px var(--sage-soft);
  animation: card-in 0.75s var(--ease) backwards, glow 1.8s var(--ease) 0.4s 3;
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 0 5px var(--sage-soft);
  }
  50% {
    box-shadow: 0 0 0 11px rgba(108, 149, 131, 0.26);
  }
}

.card.is-leaving {
  opacity: 0;
  transform: translateY(-6px) scale(0.985);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.card__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.card__number {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
}

.card__when {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--botanical);
  white-space: nowrap;
}
.card__when.is-later {
  color: var(--ink-soft);
}

.card__badge {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px 1px;
  border-radius: 999px;
  background: var(--botanical);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  vertical-align: 4px;
}

.card__product {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: center;
}

.card__thumb {
  width: 64px;
  height: 80px;
  border-radius: 2px;
  object-fit: cover;
  background: var(--sand);
  display: block;
}

.card__items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.item__name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
}

.item__meta {
  margin-top: 3px;
  font-size: 13px;
  color: var(--ink-soft);
}

.item__addon {
  margin-top: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--botanical);
}

.card__rule {
  height: 1px;
  background: var(--line);
  margin: 16px 0 14px;
}

.card__place {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.place__name {
  font-size: 15px;
  font-weight: 500;
}

.place__area {
  font-size: 13px;
  color: var(--ink-soft);
}

.place__type {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
  padding-top: 3px;
}

.card__message {
  margin: 14px 0 0;
  padding-left: 12px;
  border-left: 1px solid var(--sage);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.card__note {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.card__actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.card__foot {
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--ink-mute);
  display: flex;
  justify-content: space-between;
}

.card__top {
  flex-wrap: wrap;
  row-gap: 6px;
}
.card__actions {
  flex-wrap: wrap;
}
.card .btn {
  padding: 0 14px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.card .btn--primary,
.card .btn--quiet {
  flex: 1 1 auto;
}
.card .btn--outline {
  flex: 1 0 auto;
}
.card__foot {
  flex-wrap: wrap;
  gap: 2px 12px;
}
@media (max-width: 1440px) {
  .card {
    padding: 16px 16px 14px;
  }
  .card__number {
    font-size: 22px;
  }
  .card__product {
    grid-template-columns: 52px 1fr;
    gap: 12px;
  }
  .card__thumb {
    width: 52px;
    height: 66px;
  }
  .item__name {
    font-size: 20px;
  }
  .card__message {
    font-size: 17px;
  }
  .card .btn {
    min-height: 42px;
    padding: 0 10px;
    font-size: 10.5px;
    letter-spacing: 0.08em;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 2px;
  border: 1px solid transparent;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.12s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active {
  transform: scale(0.985);
}
.btn[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

.btn--primary {
  flex: 1;
  background: var(--botanical);
  color: var(--paper);
}
.btn--primary:hover {
  background: var(--botanical-press);
}

.btn--outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--outline:hover {
  border-color: var(--ink);
}

.btn--quiet {
  flex: 1;
  background: transparent;
  border-color: var(--botanical);
  color: var(--botanical);
}
.btn--quiet:hover {
  background: var(--botanical);
  color: var(--paper);
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
}
.icon-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  color: var(--ink-mute);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
.link-btn:hover {
  color: var(--ink);
}
.link-btn--strong {
  color: var(--botanical);
  font-weight: 500;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-mute);
}

.reset__confirm {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 40;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 2px;
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.toast::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 43, 36, 0.38);
  animation: fade-in 0.3s var(--ease) both;
}

.modal__panel {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  border-radius: var(--radius);
  animation: panel-in 0.45s var(--ease) both;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--botanical);
}

.modal__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
}

.modal__body {
  overflow: auto;
  background: var(--sand);
}

.ticket-stage {
  padding: 32px 16px 40px;
  display: flex;
  justify-content: center;
}

.modal__foot {
  display: flex;
  gap: 12px;
  padding: 18px 26px 22px;
  border-top: 1px solid var(--line);
}
.modal__foot .btn--outline {
  min-width: 120px;
}
.modal__receipt {
  align-self: center;
  margin-right: auto;
}

/* Ticket */
.ticket {
  width: 80mm;
  max-width: 100%;
  padding: 18px 16px 26px;
  background: #fff;
  color: #111;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  box-shadow: 0 1px 0 rgba(30, 43, 36, 0.06), 0 12px 30px -18px rgba(30, 43, 36, 0.45);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 7px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 7px repeat-x;
}

.t-brand {
  margin: 6px 0 2px;
  text-align: center;
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.1;
}
.t-line {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.t-center {
  text-align: center;
}
.t-bold {
  font-weight: 600;
}
.t-large {
  font-size: 15px;
}
.t-small {
  font-size: 11px;
  letter-spacing: 0.08em;
}
.t-italic {
  font-style: italic;
}
.t-heading {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
}
.t-divider {
  margin: 10px 0;
  border: 0;
  border-top: 1.5px dashed #111;
}
.t-spacer {
  height: 0.7em;
}

#print-root {
  display: none;
}

.views {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid var(--line);
}

.view-link {
  padding: 16px 0 14px;
  margin-bottom: -1px;
  background: none;
  border: none;
  border-bottom: 1.5px solid transparent;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.view-link:hover {
  color: var(--ink);
}
.view-link.is-active {
  color: var(--ink);
  border-bottom-color: var(--botanical);
}
.view-link__count {
  margin-left: 6px;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.view {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.btn--auto {
  flex: none;
}

.catalog__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  padding: 36px 0 26px;
}

.catalog__title {
  margin: 0;
  font-family: var(--serif);
    font-size: clamp(34px, 4vw, 46px);
  line-height: 1;
}

.catalog__lead {
  margin: 12px 0 0;
  max-width: 520px;
  color: var(--ink-soft);
}

.products {
  border-top: 1px solid var(--line);
}

.products__empty {
  padding: 40px 0;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink-mute);
}

.product {
  display: grid;
  grid-template-columns: 34px 76px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 22px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 1.2s var(--ease);
}
.product.is-flash {
  animation: flash 2.4s var(--ease);
}
@keyframes flash {
  0%,
  40% {
    background: var(--sage-soft);
  }
}

.product__order {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.product__rank {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}
.order-btn {
  width: 30px;
  height: 26px;
  display: grid;
  place-items: center;
  border: none;
  background: none;
  color: var(--ink-soft);
  border-radius: 2px;
}
.order-btn:hover {
  background: var(--sand);
  color: var(--ink);
}
.order-btn[disabled] {
  opacity: 0.2;
  pointer-events: none;
}

.product__thumb {
  width: 76px;
  height: 95px;
  object-fit: cover;
  background: var(--sand);
  display: block;
  transition: filter 0.3s var(--ease), opacity 0.3s var(--ease);
}

.product__name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.1;
}
.product__tagline {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink-soft);
}
.product__prices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 10px;
  font-size: 13.5px;
}
.product__price b {
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-right: 6px;
}
.product__addon {
  font-size: 12.5px;
  color: var(--botanical);
}

.product.is-hidden .product__thumb {
  filter: grayscale(1);
  opacity: 0.55;
}
.product.is-hidden .product__name,
.product.is-hidden .product__prices {
  color: var(--ink-mute);
}

.product__visibility {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 112px;
  font-size: 12.5px;
  color: var(--ink-soft);
  cursor: pointer;
}

/* Toggle switch */
.switch {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  position: relative;
  width: 42px;
  height: 24px;
  margin: 0;
  border-radius: 999px;
  background: var(--line-strong);
  cursor: pointer;
  transition: background-color 0.25s var(--ease);
}
.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(30, 43, 36, 0.2);
  transition: transform 0.25s var(--ease);
}
.switch:checked {
  background: var(--botanical);
}
.switch:checked::after {
  transform: translateX(18px);
}
.switch:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

/* Settings */
.settings {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  flex-wrap: wrap;
  margin: 44px 0 40px;
  padding: 26px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.settings__intro {
  flex: 1 1 200px;
}
.settings + .settings {
  margin-top: -20px;
}
.settings--pickup {
  align-items: center;
}
.settings .switch-row--inline {
  flex: 1 1 260px;
  padding: 0;
  border: none;
}
.field--address {
  flex: 2 1 280px;
}
.place__type--pickup {
  color: var(--botanical);
  font-weight: 500;
}
.settings__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field__label {
  padding: 0;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field__label em {
  margin-left: 8px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink-mute);
}
.field__input {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.2s var(--ease);
}
.field__input::placeholder {
  color: var(--ink-mute);
}
.field__input:focus {
  outline: none;
  border-bottom-color: var(--botanical);
}
.field__input--serif {
  font-family: var(--serif);
  font-size: 28px;
  padding: 4px 0 8px;
}
.field__hint {
  margin: 0;
  font-size: 12px;
  color: var(--ink-mute);
}

.price-input {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.2s var(--ease);
}
.price-input:focus-within {
  border-bottom-color: var(--botanical);
}
.price-input input {
  width: 100%;
  min-width: 0;
  padding: 8px 0;
  border: none;
  background: transparent;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--ink);
  -moz-appearance: textfield;
}
.price-input input::-webkit-outer-spin-button,
.price-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.price-input input:focus {
  outline: none;
}
.price-input span {
  font-size: 14px;
  color: var(--ink-soft);
}
.field--price .price-input {
  width: 130px;
}

.sizes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.size-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 14px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.size-price__id {
  font-family: var(--serif);
    font-size: 30px;
  line-height: 1;
  color: var(--botanical);
}
.size-price__label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.switch-row:last-of-type {
  border-bottom: 1px solid var(--line);
}
.switch-row__title {
  display: block;
  font-size: 15px;
}
.switch-row__sub {
  display: block;
  font-size: 12.5px;
  color: var(--ink-mute);
}

.form-error {
  margin: 0;
  padding: 12px 14px;
  border-left: 2px solid #a2574a;
  background: rgba(162, 87, 74, 0.07);
  color: #8a4539;
  font-size: 13.5px;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: flex-end;
}
.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 43, 36, 0.38);
  animation: fade-in 0.3s var(--ease) both;
}
.drawer__panel {
  position: relative;
  width: min(580px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  animation: drawer-in 0.45s var(--ease) both;
}
@keyframes drawer-in {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
}
.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 26px 32px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.drawer__foot {
  align-items: center;
}
.drawer__foot .delete {
  margin-right: auto;
  font-size: 12px;
  color: var(--ink-soft);
}
.delete__confirm {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* Photo */
.photo {
  position: relative;
  flex: none;
  height: min(440px, 58vh);
  aspect-ratio: 4 / 5;
  max-width: 100%;
  align-self: center;
  background: var(--sand);
  overflow: hidden;
}
.photo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.photo__empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.photo__empty:hover,
.photo.is-dragging .photo__empty {
  background: var(--sage-soft);
  border-color: var(--sage);
}
.photo__cta {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
}
.photo__hint {
  font-size: 12.5px;
  color: var(--ink-mute);
  max-width: 260px;
}
.photo__change {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: none;
  padding: 9px 14px;
  background: rgba(252, 250, 246, 0.94);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.photo__busy {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(247, 243, 236, 0.8);
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink-soft);
}
.photo[data-state='filled'] .photo__img,
.photo[data-state='busy'] .photo__img {
  display: block;
}
.photo[data-state='filled'] .photo__empty,
.photo[data-state='busy'] .photo__empty {
  display: none;
}
.photo[data-state='filled'] .photo__change {
  display: block;
}
.photo__actions {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
}
.photo__actions .photo__change {
  position: static;
  border: none;
  font: inherit;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.photo--small {
  height: 180px;
  aspect-ratio: 1;
  align-self: flex-start;
}
.photo--small .photo__cta {
  font-size: 19px;
}
.photo[data-state='busy'] .photo__busy {
  display: grid;
}

/* Options (vases & attentions) */
.options {
  margin-top: 64px;
}
.catalog__head--sub {
  padding-top: 0;
}
.catalog__title--sub {
  font-size: clamp(30px, 3.4vw, 38px);
}
.options__group + .options__group {
  margin-top: 34px;
}
.options__title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
}
.options__title span {
  margin-left: 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-mute);
}
.product--addon .product__thumb {
  width: 76px;
  height: 76px;
}
.product__thumb--icon {
  display: grid;
  place-items: center;
  background: var(--sage-soft);
  color: var(--botanical);
}
.product__muted {
  font-size: 12.5px;
  color: var(--ink-mute);
}
.products__empty--small {
  padding: 18px 0;
  font-size: 18px;
}

/* Offered options in the bouquet editor */
.offered {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.offered__title {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink-soft);
}
.offered__item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.offered__item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.offered__box {
  width: 20px;
  height: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--paper);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.offered__item input:checked + .offered__box {
  background: var(--botanical) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.2 4.2L19 7' fill='none' stroke='%23fcfaf6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  border-color: var(--botanical);
}
.offered__item input:focus-visible + .offered__box {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}
.offered__name {
  font-size: 15px;
}
.offered__name em {
  margin-left: 6px;
  font-style: normal;
  font-size: 11px;
  color: var(--ink-mute);
}
.offered__item.is-hidden .offered__name {
  color: var(--ink-mute);
}
.offered__price {
  font-size: 14px;
  color: var(--ink-soft);
}

/* Segmented control */
.segmented {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  align-self: flex-start;
}
.segmented label {
  position: relative;
  cursor: pointer;
}
.segmented input {
  position: absolute;
  opacity: 0;
}
.segmented span {
  display: block;
  padding: 11px 22px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.segmented label + label span {
  border-left: 1px solid var(--line-strong);
}
.segmented input:checked + span {
  background: var(--botanical);
  color: var(--paper);
}
.segmented input:focus-visible + span {
  outline: 2px solid var(--sage);
  outline-offset: -4px;
}

.drawer__panel--narrow {
  width: min(480px, 100%);
}

@media (max-width: 860px) {
  .views {
    gap: 22px;
  }
  .product {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-areas:
      'thumb info edit'
      'thumb visibility order';
    gap: 10px 16px;
  }
  .product__thumb {
    grid-area: thumb;
    width: 64px;
    height: 80px;
  }
  .product__info {
    grid-area: info;
  }
  .product__edit {
    grid-area: edit;
    min-height: 38px;
    padding: 0 12px;
  }
  .product__visibility {
    grid-area: visibility;
  }
  .product__order {
    grid-area: order;
    flex-direction: row;
    justify-self: end;
  }
  .product__rank {
    display: none;
  }
  .product__name {
    font-size: 21px;
  }
  .settings {
    padding: 20px;
  }
  .drawer__body {
    padding: 20px 18px 28px;
  }
  .sizes-grid {
    gap: 10px;
  }
  .size-price {
    padding: 10px 10px 8px;
  }
  .price-input input {
    font-size: 22px;
  }
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }
  .today {
    display: none;
  }
}

@media (max-width: 1000px) {
  .topbar {
    padding: 18px 0 16px;
  }
  .brand__word {
    font-size: 24px;
  }
  .ghost-btn #sound-label {
    display: none;
  }
  .live__label {
    display: none;
  }

  .tabs {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
  }
  .tab {
    flex: none;
    padding: 14px 0 12px;
    background: none;
    border: none;
    border-bottom: 1.5px solid transparent;
    margin-bottom: -1px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-mute);
  }
  .tab.is-active {
    color: var(--ink);
    border-bottom-color: var(--botanical);
  }
  .tab__count {
    margin-left: 6px;
    font-family: var(--serif);
    font-size: 16px;
    letter-spacing: 0;
    color: var(--ink-soft);
  }

  .board {
    grid-template-columns: 1fr;
  }
  .column {
    display: none;
    padding: 22px 0 32px;
  }
  .column + .column {
    border-left: none;
  }
  .column.is-active {
    display: block;
  }
  .column__head {
    display: none;
  }
}

.home-hero {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  margin-top: 32px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.home-hero__preview {
  position: relative;
  flex: none;
  width: 150px;
  aspect-ratio: 9 / 16;
  background: var(--sand);
  overflow: hidden;
}
.home-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-hero__preview[data-state='busy'] .photo__busy {
  display: grid;
}
.home-hero__text {
  min-width: 0;
}
.home-hero__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.home-hero .form-error {
  margin-top: 14px;
}

.lang-group {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.lang-group summary {
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--botanical);
}
.lang-group summary::-webkit-details-marker {
  display: none;
}
.lang-group summary::after {
  content: '+';
  float: right;
  font-size: 16px;
  letter-spacing: 0;
  color: var(--ink-soft);
}
.lang-group[open] summary::after {
  content: '';
  width: 10px;
  height: 1px;
  margin-top: 8px;
  background: var(--ink-soft);
}
.lang-group summary em {
  margin-left: 8px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink-mute);
}
.lang-group__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 4px 0 22px;
}

@media (max-width: 560px) {
  .home-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

@page {
  size: 80mm 297mm; /* fallback: roll printers trim the blank end */
  size: 80mm auto;
  margin: 4mm;
}

.hero-texts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-texts__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-texts__lang {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--botanical);
}
.hero-texts__title {
  resize: none;
  line-height: 1.2;
}
.hero-texts__hint,
.hero-texts .btn {
  grid-column: 1 / -1;
}
.hero-texts .btn {
  justify-self: start;
}
@media (max-width: 860px) {
  .hero-texts {
    grid-template-columns: 1fr;
  }
}

@media print {
  html,
  body {
    background: #fff !important;
  }
  body > *:not(#print-root) {
    display: none !important;
  }
  #print-root {
    display: block !important;
  }
  #print-root .ticket {
    width: 100%;
    padding: 0;
    box-shadow: none;
    -webkit-mask: none;
    mask: none;
    font-size: 11pt;
  }
  #print-root .t-brand {
    font-size: 22pt;
  }
}

/* Login */
.login {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.login__panel {
  width: min(400px, 100%);
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 44px 40px 40px;
  background: var(--paper);
  border: 1px solid var(--line);
  animation: fade-in 0.5s var(--ease) both;
}
.brand--login {
  justify-content: center;
  margin-bottom: 10px;
}
.login .btn {
  margin-top: 6px;
}

/* Account */
.account {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.account__name {
  font-size: 12.5px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.card__from {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--ink-soft);
}
.card__from strong {
  font-weight: 500;
  color: var(--ink);
}

.btn--small {
  padding: 9px 14px;
  font-size: 10.5px;
}

/* Sales */
.period {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.segmented--period {
  align-self: flex-end;
  flex-wrap: wrap;
  background: var(--paper);
}
.segmented--period span {
  padding: 10px 16px;
}
.period__custom {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-mute);
  font-size: 13px;
}
.period__custom .field__input {
  width: auto;
  font-size: 14px;
  padding: 6px 0;
}

.kpis {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--paper);
}
.kpi {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 26px 22px;
  min-width: 0;
}
.kpi + .kpi {
  border-left: 1px solid var(--line);
}
.kpi__label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.kpi__value {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1.05;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.kpi--main .kpi__value {
  font-size: 50px;
  color: var(--botanical);
}
.kpi__delta {
  font-size: 12.5px;
  color: var(--ink-mute);
}
.kpi__delta.is-up {
  color: var(--botanical);
}
.kpi__delta.is-down {
  color: #8a4539;
}

.stats-block {
  margin-top: 28px;
  padding: 24px 28px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  min-width: 0;
}
.stats-block__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}
.stats-block__sub {
  font-size: 12.5px;
  color: var(--ink-mute);
}
.stats-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
}
.stats-grid .stats-block {
  margin-top: 28px;
}
.stats-empty {
  margin: 0;
  padding: 18px 0;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink-mute);
}

.chart__grid {
  position: relative;
  padding-top: 22px;
}
.chart__max {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 11.5px;
  color: var(--ink-mute);
}
.chart__bars {
  display: grid;
  grid-template-columns: repeat(var(--count), minmax(0, 1fr));
  gap: clamp(2px, 0.6vw, 10px);
  height: 240px;
  border-top: 1px dashed var(--line);
  border-bottom: 1px solid var(--line-strong);
}
.chart__col {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}
.chart__bar {
  width: min(100%, 44px);
  height: calc(var(--h) * 100%);
  min-height: 0;
  background: var(--sage);
  border-radius: 2px 2px 0 0;
  transform-origin: bottom;
  animation: bar-in 0.7s var(--ease) both;
  transition: background-color 0.2s var(--ease);
}
.chart__col:hover .chart__bar {
  background: var(--botanical);
}
.chart__value {
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--ink-soft);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.chart__label {
  position: absolute;
  top: calc(100% + 8px);
  font-size: 11px;
  color: var(--ink-mute);
  white-space: nowrap;
}
.chart {
  padding-bottom: 26px;
}
@keyframes bar-in {
  from {
    transform: scaleY(0);
  }
}

.ranking {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ranking__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: baseline;
  padding: 12px 0 14px;
  border-bottom: 1px solid var(--line);
}
.ranking__row:last-child {
  border-bottom: none;
}
.ranking__name {
  font-family: var(--serif);
  font-size: 19px;
}
.ranking__qty {
  font-size: 12.5px;
  color: var(--ink-mute);
}
.ranking__amount {
  min-width: 80px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ranking__bar {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: calc(var(--share) * 100%);
  background: var(--sage);
}

.split__bar {
  display: flex;
  height: 12px;
  gap: 2px;
  border-radius: 2px;
  overflow: hidden;
}
.split__bar span:first-child {
  background: var(--sage);
}
.split__bar span:last-child {
  background: var(--sand);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.split__legend {
  display: flex;
  gap: 22px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-soft);
}
.split__legend strong {
  margin-left: 4px;
  font-weight: 500;
  color: var(--ink);
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
}
.dot--delivery {
  background: var(--sage);
}
.dot--pickup {
  background: var(--sand);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.facts {
  margin: 24px 0 0;
}
.facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.facts dt {
  color: var(--ink-soft);
}
.facts dd {
  margin: 0;
  text-align: right;
}

.sales {
  overflow-x: auto;
}
.sales__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.sales__table th {
  padding: 0 12px 10px 0;
  text-align: left;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.sales__table td {
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.sales__table .num {
  text-align: right;
  padding-right: 0;
  font-variant-numeric: tabular-nums;
}
.sales__table td.num {
  font-weight: 500;
}
.sales__number {
  color: var(--botanical);
  text-decoration: none;
  font-weight: 500;
}
.sales__when {
  display: none;
}
.sales__number:hover {
  text-decoration: underline;
}
.status {
  font-size: 12px;
  color: var(--ink-soft);
}
.status--completed {
  color: var(--botanical);
}
.status--new {
  color: #8a6a2f;
}

.view--stats,
.view--users {
  padding-bottom: 60px;
}

/* Team */
.users {
  border-top: 1px solid var(--line);
}
.user {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 200px auto;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.user.is-inactive {
  opacity: 0.55;
}
.user__initial {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--botanical);
  font-family: var(--serif);
  font-size: 20px;
}
.user__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.user__name {
  font-family: var(--serif);
  font-size: 21px;
}
.user__name em {
  margin-left: 8px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.user__email {
  font-size: 13px;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
}
.role {
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.role--admin {
  border-color: var(--botanical);
  color: var(--botanical);
}
.user__seen {
  font-size: 12.5px;
  color: var(--ink-mute);
}

@media (max-width: 1000px) {
  .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .kpi:nth-child(3) {
    border-left: none;
  }
  .kpi:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .period {
    align-items: flex-start;
  }
  .segmented--period {
    align-self: flex-start;
  }
}

@media (max-width: 720px) {
  .kpi {
    padding: 18px;
  }
  .kpi__value {
    font-size: 30px;
  }
  .kpi--main .kpi__value {
    font-size: 36px;
  }
  .stats-block {
    padding: 20px 16px;
  }
  .segmented--period span {
    padding: 9px 11px;
    letter-spacing: 0.1em;
  }
  .user {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas:
      'initial main edit'
      'initial role role';
    row-gap: 8px;
  }
  .user__initial {
    grid-area: initial;
  }
  .user__main {
    grid-area: main;
  }
  .user .btn {
    grid-area: edit;
  }
  .role {
    grid-area: role;
    justify-self: start;
  }
  .user__seen {
    display: none;
  }
}

.catalog__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}
.bulk {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.bulk__confirm {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* Phone: the admin checks sales and the team from a phone. */
.views,
.tabs {
  scrollbar-width: none;
}
.views::-webkit-scrollbar,
.tabs::-webkit-scrollbar {
  display: none;
}
.view-link {
  flex: none;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .views {
    gap: 22px;
    overflow-x: auto;
  }
  .topbar .brand__sep,
  .topbar .brand__sub {
    display: none;
  }
  .topbar__actions {
    gap: 10px;
  }
  .account {
    padding-left: 10px;
  }
  .account__name {
    display: none;
  }
  .catalog__head {
    padding: 28px 0 20px;
  }
  .catalog__actions {
    width: 100%;
    justify-content: stretch;
  }
  .catalog__actions > .btn,
  .bulk,
  .bulk .btn {
    width: 100%;
  }
  .bulk .btn {
    padding-inline: 10px;
    letter-spacing: 0.1em;
  }
  .bulk__confirm {
    flex-wrap: wrap;
  }
  .bulk__confirm .link-btn {
    padding: 8px 0;
    font-size: 13.5px;
  }
  .period,
  .segmented--period {
    width: 100%;
  }
  .segmented--period {
    flex-wrap: nowrap;
  }
  .segmented--period label {
    flex: 1 1 0;
    text-align: center;
  }
  .segmented--period span {
    padding: 10px 4px;
    letter-spacing: 0.1em;
  }
  .segmented--period span[data-short] {
    font-size: 0;
  }
  .segmented--period span[data-short]::after {
    content: attr(data-short);
    font-size: 10.5px;
  }
  .view-link {
    font-size: 10.5px;
    letter-spacing: 0.14em;
  }
  .views {
    gap: 16px;
  }
  .sales__table th:nth-child(2),
  .sales__table td:nth-child(2),
  .sales__table th:nth-child(n + 4):not(:last-child),
  .sales__table td:nth-child(n + 4):not(:last-child) {
    display: none;
  }
  .sales__when {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--ink-mute);
  }
  .sales__table td:nth-child(3) {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .stats-block__head {
    flex-wrap: wrap;
  }
}
