:root {
  font: 100%/1.5 "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
  color: #f3f5fb;
  background: #161923;
  --ink: #f3f5fb;
  --muted: #b1b6c4;
  --line: #343846;
  --paper: #20242f;
  --control: #292e3b;
  --accent: #d4f685;
  --accent-ink: #202a13;
  --tint: #353f31;
  --green: #b6e7ce;
  --red: #ffadb9;
  --radius: 15px;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: var(--accent); }
:focus-visible { outline: none; }
:is(button, a):focus-visible { text-decoration: underline 2px; text-underline-offset: 4px; }
:is(input, select, textarea):focus-visible, .icon-button:focus-visible { background: #354233; }
.primary:focus-visible { background: #e8ffad; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.055em; line-height: 1.12; }
h2 { font-size: 1.25rem; letter-spacing: -.025em; }
h3 { font-size: 1.03rem; }
small, .muted { color: var(--muted); }
small { font-size: .875rem; }
.shell { max-width: 1440px; min-height: 100vh; margin: auto; }
.shell, .drawer { touch-action: pan-y pinch-zoom; }
.topbar { padding: 7px clamp(12px, 4vw, 48px); padding-top: max(7px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.demo-switch { margin-inline-start: auto; background: var(--tint); border-color: transparent; color: var(--accent); }
.topbar .mark { display: none; }
.icon-button { width: 44px; padding: 0; flex-shrink: 0; }
button svg { width: 21px; height: 21px; flex: 0 0 auto; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 1.35rem; letter-spacing: -.04em; font-weight: 750; }
.mark { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 1.25rem; }
.nav { display: grid; gap: 5px; }
.nav button { display: flex; align-items: center; gap: 11px; text-align: left; color: var(--muted); background: none; border: 0; min-height: 48px; padding: 9px 12px; border-radius: 10px; font-weight: 600; }
.nav button[aria-current="page"] { color: var(--accent); background: var(--tint); }
.drawer { position: fixed; inset: 0 auto 0 0; margin: 0; width: min(310px, 86vw); height: 100dvh;
  max-height: none; max-width: none; padding: 0; border-radius: 0 17px 17px 0; border-width: 0 1px 0 0; }
.drawer-inner { min-height: 100%; padding: max(14px, env(safe-area-inset-top)) 13px max(16px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 18px; }
.drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-inline: 6px 0; }
.drawer[data-closing] .drawer-inner, .scanner-dialog[data-closing] > * { pointer-events: none; }
.drawer[data-dragging]::backdrop { opacity: var(--drawer-progress); transition: none; }
.account { margin-top: auto; border-top: 1px solid var(--line); padding-top: 10px; }
.account button { width: 100%; text-align: left; justify-content: flex-start; overflow-wrap: anywhere; }
.motion-setting { margin: 2px 6px 6px; }
.motion-hint { font-size: .8125rem; margin: 0 6px 8px; }
.motion-hint:empty { display: none; }
.account .avatar { width: 32px; height: 32px; flex-basis: 32px; border-radius: 10px; font-size: .875rem; }
.main { padding: clamp(22px, 4vw, 48px); padding-top: 28px; min-width: 0; }
.page-title { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.page-title p { margin-top: 5px; }
.demo-label { color: var(--accent); font-size: .875rem; }
.demo-accounts { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.demo-account { width: 100%; min-height: 50px; justify-content: flex-start; text-align: left; padding: 6px 9px; border-color: transparent; }
.demo-account .avatar { width: 32px; height: 32px; flex-basis: 32px; font-size: .875rem; }
.demo-account[aria-current="true"] { background: var(--tint); }
.demo-account-name { min-width: 0; overflow-wrap: anywhere; }
.demo-account-name small { display: block; font-weight: 400; }
.demo-current { margin-inline-start: auto; color: var(--accent); font-size: .75rem; }
.demo-error:not(:empty) { margin-top: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid var(--line); border-radius: 9px; background: var(--control); color: var(--ink); padding: 9px 14px; font-weight: 650; text-decoration: none; }
.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.quiet { background: transparent; border-color: transparent; }
.danger { color: var(--red); }
.button:hover:not(:disabled), .nav button:hover { box-shadow: inset 0 0 0 100px #ffffff0f; }
.calendar-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.staff-overview { margin-bottom: 20px; --shift-free: #4da477; --shift-booked: #e16b6f; --shift-progress: #f798c7; }
.staff-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.staff-card { display: grid; align-content: start; width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 12px;
  text-align: left; color: var(--ink); background: var(--paper); overflow: hidden; }
.staff-card .staff-heading { min-height: 65px; }
.staff-card[aria-pressed="true"] { background: var(--tint); }
.staff-card[aria-pressed="true"] strong { color: var(--accent); }
.staff-card:focus-visible .staff-heading strong { text-decoration: underline 2px; text-underline-offset: 4px; }
.staff-portrait { position: relative; display: block; aspect-ratio: 1; }
.staff-portrait .avatar, .staff-portrait .avatar.has-photo { width: 100%; height: 100%; border-radius: 0; font-size: clamp(1.6rem, 4vw, 2.4rem);
  background: #30384a; color: #e3e9fa; }
.staff-portrait .avatar img { display: block; }
.staff-status { display: grid; place-items: center; position: absolute; right: 8px; bottom: 22px;
  width: 26px; height: 26px; border-radius: 8px; background: #20242f; color: var(--muted); }
.staff-status svg { width: 16px; height: 16px; }
.staff-status.clock { color: var(--shift-progress); }
.staff-status.working { color: #a6e3c0; }
.staff-heading { display: grid; gap: 3px; padding: 8px 10px 11px; overflow-wrap: anywhere; }
.staff-heading strong { font-size: .9375rem; line-height: 1.25; }
.staff-heading small { font-size: .75rem; }
.shift-strip { position: absolute; inset: auto 8px 8px; height: 9px; }
.shift-blocks { display: flex; height: 100%; overflow: hidden; border-radius: 3px; }
.shift-slot { flex: 1; min-width: 0; }
.shift-slot + .shift-slot { border-left: 1px solid #ffffff52; }
.shift-slot.free, .shift-legend .free { background: var(--shift-free); }
.shift-slot.booked, .shift-legend .booked { background: var(--shift-booked); }
.shift-slot.progress, .shift-legend .progress { background: var(--shift-progress); }
.shift-slot.off { background: #555d70; }
.shift-now { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); width: 8px; height: 8px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 4px #161923b3; }
.shift-legend { display: flex; flex-wrap: wrap; gap: 5px 12px; margin: 0; padding: 0; list-style: none;
  color: var(--muted); font-size: .8125rem; }
.shift-legend li { display: flex; align-items: center; gap: 6px; }
.shift-legend span { width: 8px; height: 8px; border-radius: 2px; }
.booking-activity { margin-bottom: 16px; }
.activity-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 10px; }
.activity-row small { display: block; }
.activity-row time { font-size: .8125rem; }
.activity-icon { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 8px; background: var(--tint); color: var(--accent); }
.activity-icon.is-cancelled { background: #49303b; color: var(--red); }
.activity-icon svg { width: 17px; height: 17px; }
.staff { min-width: 0; max-width: 100%; border-radius: 24px; overflow-wrap: anywhere; }
.staff[aria-pressed="true"] { border-color: transparent; background: var(--tint); color: var(--accent); }
.avatar { display: grid; place-items: center; flex: 0 0 43px; width: 43px; height: 43px; border-radius: 13px; background: var(--tint); color: var(--accent); overflow: hidden; font-size: 1.1rem; font-weight: 700; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.has-photo { border-radius: 50%; }
.avatar-editor { display: grid; justify-items: center; gap: 9px; border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.avatar-editor legend { padding: 0; margin-bottom: 8px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.avatar-editor canvas { display: block; width: min(100%, 228px); height: auto; border-radius: 50%; cursor: grab; touch-action: none; }
.avatar-editor canvas:active { cursor: grabbing; }
.avatar-editor canvas:focus-visible + p { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.avatar-editor p { font-size: .8125rem; text-align: center; }
.avatar-editor label { width: 100%; }
.avatar-editor input[type="range"] { accent-color: var(--accent); padding: 0 8px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.panel + .panel { margin-top: 16px; }
.panel-pad { padding: clamp(15px, 3vw, 23px); }
.agenda-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 12px; margin-bottom: 12px; }
.agenda-contact { font-size: .875rem; margin: -5px 0 12px; }
.page-title time { display: inline-block; }
.page-title time::first-letter { text-transform: uppercase; }
.day-controls, .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.day-controls .button { min-width: 44px; padding: 6px 10px; }
.day-controls input { width: auto; }
.calendar { display: grid; gap: 8px; }
.slot { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; }
.slot > time { font-variant-numeric: tabular-nums; font-size: .875rem; color: var(--muted); }
.slot-button, .event { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; min-height: 44px; width: 100%; border-radius: 9px; text-align: left; padding: 8px 11px; overflow-wrap: anywhere; }
.slot-button { border: 1px dashed #647255; color: #e1f4be; background: transparent; }
.slot-button:hover { background: var(--tint); }
.event { background: #303b58; border: 1px solid #495775; color: #f1f4ff; }
.event.completed { background: #273a36; color: var(--green); border-color: #4e7467; }
.event small { display: block; color: inherit; }
.event-length { background: #ffffff18; border-radius: 5px; padding: 3px 6px; font-size: .8125rem; }
.quick-booking { margin-top: 8px; }
.quick-booking fieldset { margin: 0 0 4px; border: 0; padding: 0; min-inline-size: 0; }
.quick-booking legend { padding: 0; margin-bottom: 10px; font-size: .875rem; }
.available-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 7px; }
.available-grid label { position: relative; }
.available-grid input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; }
.available-grid span { display: grid; place-items: center; min-height: 44px; padding: 6px; border: 1px solid #536247; border-radius: 8px; background: var(--tint); color: #e1f4be; cursor: pointer; }
.available-grid input:checked + span { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.available-grid input:focus-visible + span { text-decoration: underline 2px; text-underline-offset: 4px; }
.cancelled { margin-top: 16px; }
.empty { padding: 16px 0; color: var(--muted); }
.empty:empty { display: none; }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.split > .panel + .panel { margin-top: 0; }
.stock-modes { --mode-gap: 4px; --mode-padding: 3px; --mode-index: 0;
  position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--mode-gap); padding: var(--mode-padding); border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.mode-indicator { position: absolute; z-index: -1; pointer-events: none;
  inset: var(--mode-padding) auto var(--mode-padding) var(--mode-padding);
  width: calc((100% - 2 * var(--mode-padding) - 3 * var(--mode-gap)) / 4);
  transform: translateX(calc(var(--mode-index) * (100% + var(--mode-gap))));
  border-radius: 9px; background: var(--tint); }
.mode-button { display: grid; justify-items: center; align-content: center; gap: 2px; min-width: 62px; min-height: 48px;
  padding: 3px 6px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: .75rem; }
.mode-button svg { width: 19px; height: 19px; }
.mode-button[aria-pressed="true"] { color: var(--accent); }
@media (hover: hover) {
  .mode-button:hover { color: var(--accent); }
}
.capture { margin-top: 12px; }
.camera-frame { --camera-ratio: 1.5; --camera-height: min(60dvh, 520px);
  position: relative; width: min(100%, calc(var(--camera-height) * var(--camera-ratio))); aspect-ratio: var(--camera-ratio);
  margin-inline: auto;
  border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: #0e121a;
  display: grid; place-items: center; }
.camera-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.camera-torch { position: absolute; z-index: 2; top: 9px; right: 9px; background: #202734e6; border-color: transparent; }
.camera-torch[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.camera-guide { position: relative; z-index: 1; display: grid; place-items: center; width: min(64%, 290px);
  height: 92px; border: 1px solid #d4f68591; border-radius: 13px; color: var(--accent); background: #16192356; pointer-events: none; }
.camera-guide svg { width: 32px; height: 32px; }
.camera-frame:has(video:not([hidden])) .camera-guide svg { opacity: 0; }
.camera-guide::after { content: ""; position: absolute; inset: 50% 12% auto; height: 1px; background: var(--accent); opacity: 0; }
.capture-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.capture-controls p { font-size: .875rem; }
.capture-next { margin-top: 12px; }
.stock-scanner { width: 100%; max-width: 780px; }
.catalog { margin-bottom: 84px; }
.catalog .list > li { padding: 0; }
.product-row { display: grid; grid-template-columns: 39px minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
  width: 100%; min-height: 58px; padding: 9px 2px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); text-align: left; }
.product-row:hover { background: var(--control); }
.product-row img, .product-icon { width: 39px; height: 39px; border-radius: 8px; }
.product-icon { display: grid; place-items: center; background: var(--control); color: var(--muted); }
.product-info strong, .product-info small { display: block; overflow-wrap: anywhere; }
.product-stock { color: var(--accent); font-size: .875rem; }
.product-row > svg { width: 16px; height: 16px; color: var(--muted); }
.stock-fab { position: fixed; z-index: 1; inset: auto auto max(16px, env(safe-area-inset-bottom)) 50%;
  transform: translateX(-50%); width: 60px; height: 60px; padding: 0; border-radius: 50%; box-shadow: 0 6px 24px #0008; }
.stock-fab svg { width: 27px; height: 27px; }
.list { list-style: none; padding: 0; margin: 8px 0 0; }
.list > li { padding: 12px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; }
.row > strong { min-width: 0; }
.list img { width: 48px; height: 48px; border-radius: 9px; object-fit: cover; }
.total { border-top: 1px solid var(--line); padding-top: 12px; font-size: 1.15rem; font-weight: 700; }
.fields { display: grid; gap: 12px; }
.booking-section { border: 0; min-inline-size: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.booking-section legend, .booking-label { padding: 0 0 5px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.booking-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.booking-row .booking-label { padding: 0; }
.booking-chips, .booking-tags, .duration-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.booking-chips .button[aria-pressed="true"], .time-grid .button[aria-pressed="true"], .month-grid .button[aria-pressed="true"] {
  background: var(--tint); border-color: transparent; color: var(--accent);
}
.booking-picker { display: grid; gap: 9px; padding: 9px; border-radius: 11px; background: #191c25; }
.month-controls strong::first-letter { text-transform: uppercase; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.month-grid .button, .time-grid .button { padding-inline: 2px; font-variant-numeric: tabular-nums; }
.month-grid .button:disabled, .time-grid .button:disabled { opacity: .38; }
.time-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 5px; }
.duration-controls label { width: min(110px, 45%); }
.duration-controls input { font-variant-numeric: tabular-nums; }
.booking-availability { color: var(--muted); font-size: .875rem; }
.booking-availability:empty { display: none; }
.booking-availability.is-warning { color: #ffbec8; }
.work-days { display: flex; flex-wrap: wrap; gap: 5px; }
.work-days label { position: relative; }
.work-days input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; }
.work-days span { display: grid; place-items: center; min-width: 40px; min-height: 44px; border-radius: 8px;
  background: var(--control); cursor: pointer; }
.work-days input:checked + span { background: var(--tint); color: var(--accent); }
.work-days input:focus-visible + span { text-decoration: underline 2px; text-underline-offset: 4px; }
.procedure-tag { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 5px 9px;
  border: 0; border-radius: 8px; background: var(--tint); color: var(--accent); text-align: left; overflow-wrap: anywhere; }
.booking-tags:empty, .client-match:empty { display: none; }
.booking-comment { white-space: pre-wrap; overflow-wrap: anywhere; }
.booking-actions { position: sticky; bottom: 0; z-index: 1; padding: 9px 0 4px; background: var(--paper); }
.procedure-catalog { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: 12px; align-items: start; }
.procedure-catalog .panel + .panel { margin-top: 0; }
.procedure-catalog > section:only-child { grid-column: 1 / -1; }
.area-list { display: grid; gap: 6px; margin-top: 10px; }
.area-list .button { justify-content: space-between; text-align: left; overflow-wrap: anywhere; }
.area-list .button[aria-pressed="true"] { color: var(--accent); background: var(--tint); border-color: transparent; }
.procedure-types .row > div { min-width: 0; overflow-wrap: anywhere; }
.procedure-search { margin-top: 12px; }
.procedure-type-list > li { padding: 0; }
.procedure-type { width: 100%; justify-content: space-between; text-align: left; padding-inline: 7px; overflow-wrap: anywhere; }
.procedure-type svg { color: var(--muted); width: 16px; height: 16px; }
.procedure-types > .primary { margin-top: 10px; }
.fields > .actions:last-child { margin-top: 3px; }
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
label { display: grid; gap: 4px; color: var(--muted); font-size: .9rem; font-weight: 600; min-width: 0; }
input, select, textarea { border: 1px solid #495166; border-radius: 9px; color: var(--ink); background: #1b1e28; min-height: 44px; width: 100%; min-width: 0; padding: 7px 10px; font-size: 1rem; }
.checkbox { width: auto; min-height: 0; }
.stock-form { margin-top: 12px; }
.stock-detail { display: grid; gap: 10px; }
.volume-picker { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.volume-picker legend { padding: 0; margin-bottom: 6px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.volume-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(85px, 100%), 1fr)); gap: 6px; }
.volume-choice { position: relative; }
.volume-choice input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; }
.volume-choice span { min-height: 52px; padding: 5px; border-radius: 8px; display: grid; justify-items: center; align-content: center;
  text-align: center; gap: 2px; background: var(--control); color: var(--muted); cursor: pointer; overflow-wrap: anywhere; }
.volume-choice svg { width: 17px; height: 17px; }
.volume-choice input:checked + span { background: var(--tint); color: var(--accent); }
.volume-choice input:focus-visible + span { text-decoration: underline 2px; text-underline-offset: 4px; }
.volume-picker [data-custom-volume] { margin-top: 10px; }
textarea { min-height: 90px; resize: vertical; }
video { max-width: 100%; background: #161923; border-radius: 10px; }
.error { color: var(--red); font-size: .9rem; }
.error:empty { display: none; }
dialog { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--ink); background: var(--paper); width: min(520px, calc(100% - 24px)); max-height: 90dvh; }
dialog::backdrop { background: #0d1019b8; }
.dialog-header { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-bottom: 13px; }
.dialog-header button { min-width: 44px; }
.toast { position: fixed; z-index: 2; inset: auto 20px max(20px, env(safe-area-inset-bottom)) auto; max-width: calc(100% - 40px); background: var(--tint); color: var(--ink); border: 1px solid #627056; padding: 10px 15px; border-radius: 12px; box-shadow: 0 8px 22px #0d101980; pointer-events: none; }
body:has(.stock-fab) .toast { bottom: calc(72px + max(16px, env(safe-area-inset-bottom))); }
.toast:empty { display: none; }
.signin, .loading { display: grid; place-items: center; min-height: 100dvh; padding: 20px; }
.signin section { width: min(100%, 460px); padding: clamp(20px, 6vw, 44px); }
.signin .brand { margin-bottom: 28px; }
.signin h1 { margin-bottom: 12px; font-size: 2.1rem; }
.signin p { margin-bottom: 18px; }
[hidden] { display: none !important; }
@media (max-width: 850px) {
  .main { padding: 22px; }
}
@media (max-width: 1050px) {
  .staff-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 670px) {
  .camera-frame { --camera-ratio: .5625; --camera-height: min(60dvh, 560px); }
  .main { padding: 18px 12px; }
  .page-title { margin-bottom: 16px; }
  .stock-heading { gap: 9px; }
  .stock-heading h1 { font-size: 1.75rem; }
  .stock-heading .mode-button { min-width: 56px; }
  .split { grid-template-columns: 1fr; }
  .slot { grid-template-columns: 47px minmax(0, 1fr); }
  .staff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .procedure-catalog { grid-template-columns: 1fr; }
  .area-list { display: flex; flex-wrap: wrap; }
  .activity-row { grid-template-columns: auto minmax(0, 1fr); }
  .activity-row time { grid-column: 2; }
}
@media (max-width: 375px) {
  .columns { grid-template-columns: 1fr; }
  .stock-modes { --mode-gap: 2px; }
  .mode-button { min-width: 56px; }
}
[data-motion="full"] :is(.button, .staff-card, .slot-button, .mode-button, .product-row) {
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, scale 140ms ease;
}
[data-motion="full"] :is(.button:not(:disabled), .staff-card, .mode-button, .product-row, .slot-button):active { scale: .97; }
[data-motion="full"] .stock-fab:active { scale: .91; }
[data-motion="full"] .mode-indicator { transition: transform 300ms cubic-bezier(.2, .75, .25, 1); }
[data-motion="full"] dialog::backdrop { transition: opacity 240ms ease; }
[data-motion="full"] .drawer[data-dragging]::backdrop { transition: none; }
[data-motion="full"] dialog[data-closing]::backdrop { opacity: 0; }
@starting-style {
  [data-motion="full"] dialog[open]::backdrop { opacity: 0; }
}
[data-motion="full"] dialog:not(.drawer, .scanner-dialog)[open] { animation: panel-in 210ms cubic-bezier(.2, .75, .25, 1); }
[data-motion="full"] .scanner-dialog[data-closing] > * { opacity: 0; transition: opacity 100ms ease-out; }
[data-motion="full"] .mode-button[aria-pressed="true"] svg { animation: icon-in 220ms cubic-bezier(.2, .8, .3, 1); }
[data-motion="full"] :is(.capture > .camera-frame, .capture > .stock-form, .capture > .lookup-result,
  .capture > .capture-next, .catalog .list, #cart .list > li) { animation: panel-in 230ms cubic-bezier(.2, .75, .25, 1); }
[data-motion="full"] .camera-frame:has(video:not([hidden])) .camera-guide::after { animation: scan-sweep 1.6s ease-in-out 3; }
[data-motion="full"] .toast:not(:empty) { animation: panel-in 180ms ease-out; }
[data-motion="full"] .booking-picker:not([hidden]) { animation: panel-in 200ms ease-out; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes icon-in {
  from { scale: .82; }
  65% { scale: 1.13; }
  to { scale: 1; }
}
@keyframes scan-sweep {
  0% { transform: translateY(-31px); opacity: 0; }
  20%, 75% { opacity: .65; }
  100% { transform: translateY(31px); opacity: 0; }
}
