@font-face{font-family:Fira Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/fira-sans-cyrillic-400-normal-9itZEwnn.woff2) format("woff2"),url(/assets/fira-sans-cyrillic-400-normal-DivIpeVh.woff) format("woff")}@font-face{font-family:Fira Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/fira-sans-cyrillic-ext-400-normal-DVFiJ7cT.woff2) format("woff2"),url(/assets/fira-sans-cyrillic-ext-400-normal-Ct_d_4pr.woff) format("woff")}@font-face{font-family:Fira Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/fira-sans-latin-400-normal-DqUVgETp.woff2) format("woff2"),url(/assets/fira-sans-latin-400-normal-CRr34ncs.woff) format("woff")}@font-face{font-family:Fira Sans;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/fira-sans-cyrillic-500-normal-VyCke2En.woff2) format("woff2"),url(/assets/fira-sans-cyrillic-500-normal-D_dMT8_Y.woff) format("woff")}@font-face{font-family:Fira Sans;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/fira-sans-cyrillic-ext-500-normal-D4fJC0vd.woff2) format("woff2"),url(/assets/fira-sans-cyrillic-ext-500-normal-jsgT70UW.woff) format("woff")}@font-face{font-family:Fira Sans;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/fira-sans-latin-500-normal-CEH64tAT.woff2) format("woff2"),url(/assets/fira-sans-latin-500-normal-CpQD_JBa.woff) format("woff")}@font-face{font-family:Fira Sans;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/fira-sans-cyrillic-600-normal-C82o0VEB.woff2) format("woff2"),url(/assets/fira-sans-cyrillic-600-normal-B9Az9kNU.woff) format("woff")}@font-face{font-family:Fira Sans;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/fira-sans-cyrillic-ext-600-normal-CGufF-y1.woff2) format("woff2"),url(/assets/fira-sans-cyrillic-ext-600-normal-DXPUYcb1.woff) format("woff")}@font-face{font-family:Fira Sans;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/fira-sans-latin-600-normal-BjYBD9kW.woff2) format("woff2"),url(/assets/fira-sans-latin-600-normal-BGQrt5XT.woff) format("woff")}@font-face{font-family:"PT Serif";font-style:normal;font-display:swap;font-weight:700;src:url(/assets/pt-serif-cyrillic-700-normal-X52Z0kMH.woff2) format("woff2"),url(/assets/pt-serif-cyrillic-700-normal-C_qvJ7Q6.woff) format("woff")}@font-face{font-family:"PT Serif";font-style:normal;font-display:swap;font-weight:700;src:url(/assets/pt-serif-cyrillic-ext-700-normal-DRSef4Os.woff2) format("woff2"),url(/assets/pt-serif-cyrillic-ext-700-normal-ZeTAYTWX.woff) format("woff")}@font-face{font-family:"PT Serif";font-style:normal;font-display:swap;font-weight:700;src:url(/assets/pt-serif-latin-700-normal-Bsuo9jes.woff2) format("woff2"),url(/assets/pt-serif-latin-700-normal-BnJLcJ8K.woff) format("woff")}:root,.theme-light{color-scheme:light;--page: #f4f6fa;--paper: #ffffff;--surface-subtle: #f1f4f9;--surface-sunken: #eaeef5;--surface-raised: #ffffff;--line: #e2e7ef;--border-strong: #cbd3df;--control-border: #8191a6;--text: #0f172a;--text-muted: #5b6b82;--text-faint: #94a3b8;--accent: #1e40af;--accent-hover: #1d4ed8;--accent-pressed: #1e3a8a;--accent-ink: #1e40af;--accent-soft: #eef3ff;--accent-line: #c7d5fb;--on-accent: #ffffff;--ok: #047857;--status-ok-bg: #ecfdf5;--wait: #92400e;--status-wait-bg: #fffbeb;--bad: #b91c1c;--status-bad-bg: #fef2f2;--neutral: #475569;--neutral-bg: #f1f5f9;--std: #64748b;--lux: #0e7490;--vip: #6d28d9;--backdrop: #0f172a73;--shadow-overlay: 0 24px 48px -16px rgb(15 23 42 / .28), 0 2px 8px rgb(15 23 42 / .08);--shadow-raised: 0 1px 2px rgb(15 23 42 / .06);--shadow: none;--focus-ring: 0 0 0 3px rgb(30 64 175 / .32);--font-ui: "Fira Sans", "Segoe UI", system-ui, sans-serif;--font-document: "PT Serif", Georgia, serif;--text-xs: 12px;--text-sm: 14px;--text-base: 16px;--text-lg: 18px;--text-xl: 22px;--text-title: 28px;--text-display: 40px;--text-dense: 13px;--text-page-title: 24px;--leading-body: 1.45;--leading-tight: 1.2;--space-1: 4px;--space-2: 8px;--space-3: 12px;--space-4: 16px;--space-5: 20px;--space-6: 24px;--space-7: 28px;--space-8: 32px;--space-10: 40px;--space-12: 48px;--radius-hero: 20px;--radius-card: 16px;--radius-inset: 12px;--radius-control: 10px;--radius-sm: 8px;--radius-pill: 999px;--radius: var(--radius-card);--dur-fast: .12s;--dur-base: .2s;--dur-slow: .28s;--ease-out: cubic-bezier(.2, .8, .2, 1);--ease-in-out: cubic-bezier(.4, 0, .2, 1);--sidebar-width: 264px;--sidebar-rail: 76px;--topbar-height: 64px;--content-max: 1440px;--content-pad: 28px;--control-height: 44px;--control-height-sm: 36px;--z-sticky: 10;--z-sidebar: 30;--z-overlay: 50;--z-toast: 60;--illo-line: #31466f;--illo-fill: #e8eefb;--illo-soft: #f4f7fd}:root[data-theme=dark],.theme-dark{color-scheme:dark;--page: #0a101c;--paper: #111a2b;--surface-subtle: #172238;--surface-sunken: #0d1524;--surface-raised: #16213a;--line: #22304a;--border-strong: #34455f;--control-border: #62748e;--text: #edf2fa;--text-muted: #9cabc2;--text-faint: #5f7088;--accent: #3b82f6;--accent-hover: #60a5fa;--accent-pressed: #2563eb;--accent-ink: #7fb0ff;--accent-soft: #15254a;--accent-line: #24427f;--on-accent: #08101f;--ok: #6ee7b7;--status-ok-bg: #063d30;--wait: #fbbf24;--status-wait-bg: #3f1d05;--bad: #fca5a5;--status-bad-bg: #451010;--neutral: #a3b1c6;--neutral-bg: #1c2840;--std: #a3b1c6;--lux: #5ccfe6;--vip: #b79cff;--backdrop: #000000a6;--shadow-overlay: 0 24px 48px -16px rgb(0 0 0 / .6), 0 2px 8px rgb(0 0 0 / .4);--shadow-raised: 0 1px 2px rgb(0 0 0 / .4);--focus-ring: 0 0 0 3px rgb(96 165 250 / .4);--illo-line: #9db4dc;--illo-fill: #1b2a47;--illo-soft: #142039}:root,.theme-light,.theme-dark{--focus-outline: 2px solid var(--accent);--illo-accent: var(--accent);--lapis: var(--text);--lapis-soft: var(--text-muted);--tile: var(--accent);--primary: var(--accent);--primary-dark: var(--accent-hover);--border: var(--line);--muted: var(--text-muted);--surface: var(--paper);--status-wait-text: var(--wait);--status-info-bg: var(--accent-soft);--today-bg: var(--accent-soft)}@media (prefers-reduced-motion: reduce){:root{--dur-fast: 0ms;--dur-base: 0ms;--dur-slow: 0ms}}:root,.theme-light{--on-bad: #ffffff;--switch-knob: #ffffff;--select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");--check-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");--check-dash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");--icon-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");--icon-ok: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");--icon-wait: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");--icon-bad: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4'/%3E%3Cpath d='M12 16h.01'/%3E%3C/svg%3E")}:root[data-theme=dark],.theme-dark{--on-bad: #0a101c;--switch-knob: #edf2fa;--select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239cabc2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");--check-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308101f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");--check-dash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308101f' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E")}:root{font-family:var(--font-ui);font-size:16px;line-height:var(--leading-body);font-variant-numeric:tabular-nums;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;text-size-adjust:100%;color:var(--text);background:var(--page)}*,*:before,*:after{box-sizing:border-box}.theme-light,.theme-dark{color:var(--text);background:var(--page)}body{margin:0;min-height:100vh;color:var(--text);background:var(--page);font-size:15px}:where([hidden]){display:none!important}:where(h1,h2,h3,h4){margin:0 0 12px;font-weight:600;color:var(--text);letter-spacing:-.01em;overflow-wrap:break-word}:where(h1){font-size:var(--text-page-title);line-height:1.25;margin-bottom:16px}:where(h2){font-size:var(--text-lg);line-height:1.3}:where(h3){font-size:var(--text-base);line-height:1.35;margin-bottom:8px}:where(h4){font-size:var(--text-sm);line-height:1.4;margin-bottom:6px}:where(p){margin:0 0 12px}:where(small){font-size:13px;color:var(--text-muted)}:where(strong,b){font-weight:600}:where(a){color:var(--accent-ink);text-decoration-thickness:1px;text-underline-offset:3px}:where(a):hover{text-decoration-thickness:2px}:where(td,th,li,dd,.list-row,.actions,.record,.arrival,.payment-row,.panel-head)>:where(a:not(.button)){min-height:44px;display:inline-flex;align-items:center}:where(ul,ol){padding-left:20px}:where(hr){border:0;border-top:1px solid var(--line);margin:20px 0}:where(img,video){max-width:100%}:where(details)>:where(summary){padding:10px 0;cursor:pointer;font-weight:500;color:var(--accent-ink)}::selection{background:var(--accent-soft);color:var(--text)}:where(:focus-visible){outline:var(--focus-outline);outline-offset:2px;box-shadow:var(--focus-ring)}:where(.row){display:flex;align-items:center;gap:12px}:where(.between){justify-content:space-between}:where(.stack){display:flex;flex-direction:column;gap:var(--space-4)}:where(.actions){display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:16px 0}:where(.grid){--grid-gap: var(--space-6);display:grid;gap:var(--grid-gap);margin-bottom:var(--space-6);min-width:0}:where(.grid)>:where(.panel){margin-bottom:0}:where(.two){grid-template-columns:repeat(auto-fit,minmax(max(min(100%,320px),calc((100% - var(--grid-gap, 24px)) / 2)),1fr))}:where(.three){grid-template-columns:repeat(auto-fit,minmax(max(min(100%,240px),calc((100% - 2 * var(--grid-gap, 24px)) / 3)),1fr))}:where(.form-grid){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:0 var(--space-4)}:where(.page-title){margin:0 0 var(--space-5)}:where(.page-title)>:where(h1){margin:0}:where(.page-title.row){flex-wrap:wrap;gap:12px 24px}:where(.page-title)>:where(.actions){margin:12px 0 0}:where(.page-title.row)>:where(.actions){margin:0}:where(.page-title)>:where(p){margin:6px 0 0;max-width:75ch;color:var(--text-muted)}:where(button,.button,input[type=submit],input[type=button],input[type=reset]){display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--control-height);padding:8px 16px;border:1px solid var(--border-strong);border-radius:var(--radius-control);background:var(--paper);color:var(--text);font:inherit;font-size:15px;font-weight:500;line-height:1.25;text-align:center;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color var(--dur-fast) var(--ease-out),border-color var(--dur-fast) var(--ease-out),color var(--dur-fast) var(--ease-out)}:where(button,.button)>:where(svg){flex:none}:where(button,.button,input[type=submit],input[type=button]):hover:where(:not(:disabled,[aria-disabled=true])){background:var(--surface-subtle);border-color:var(--control-border)}:where(button,.button):active:where(:not(:disabled,[aria-disabled=true])){background:var(--surface-sunken)}:where(button,.button,input[type=submit],input[type=button]):is(:disabled,[aria-disabled=true]){opacity:.5;cursor:not-allowed}:where(button)[aria-pressed=true],:where(button)[aria-pressed=true]:hover{background:var(--accent-soft);border-color:var(--accent-line);color:var(--accent-ink)}:where(button,.button,input[type=submit]).primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}:where(button,.button,input[type=submit]).primary:hover:where(:not(:disabled,[aria-disabled=true])){background:var(--accent-hover);border-color:var(--accent-hover);color:var(--on-accent)}:where(button,.button,input[type=submit]).primary:active:where(:not(:disabled,[aria-disabled=true])){background:var(--accent-pressed);border-color:var(--accent-pressed)}:where(button,.button).secondary{background:var(--paper);border-color:var(--border-strong);color:var(--text)}:where(button,.button).ghost{background:transparent;border-color:transparent;color:var(--accent-ink)}:where(button,.button).ghost:hover:where(:not(:disabled,[aria-disabled=true])){background:var(--accent-soft);border-color:transparent}:where(button,.button).danger{color:var(--bad);border-color:color-mix(in srgb,var(--bad) 45%,var(--paper))}:where(button,.button).danger:hover:where(:not(:disabled,[aria-disabled=true])){background:var(--status-bad-bg);border-color:var(--bad);color:var(--bad)}:where(button,.button).danger.ghost{border-color:transparent}:where(button,.button).danger.primary,:where(button,.button).danger.primary:hover:where(:not(:disabled,[aria-disabled=true])){background:var(--bad);border-color:var(--bad);color:var(--on-bad)}:where(button,.button).sm{min-height:var(--control-height-sm);padding:6px 12px;gap:6px;font-size:14px;border-radius:var(--radius-sm)}:where(button,.button):is(.lg,.large){min-height:52px;padding:12px 24px;font-size:17px}:where(button,.button).icon-button{flex:none;width:var(--control-height);min-width:var(--control-height);padding:0}:where(button,.button).icon-button.sm{width:var(--control-height-sm);min-width:var(--control-height-sm)}:where(button,.button).block{display:flex;width:100%}:where(button,.button)[aria-busy=true]{position:relative;overflow:hidden;cursor:progress}:where(button,.button)[aria-busy=true]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:currentColor;opacity:.55;transform-origin:left center;animation:busy-fill 1.6s var(--ease-out) forwards}@keyframes busy-fill{0%{transform:scaleX(0)}to{transform:scaleX(.9)}}@media (prefers-reduced-motion: reduce){:where(button,.button)[aria-busy=true]:after{animation:none;transform:scaleX(.6)}}:where(input:not([type=checkbox],[type=radio],[type=submit],[type=button],[type=reset],[type=file],[type=range],[type=color],[type=image],[type=hidden]),select,textarea){width:100%;min-height:var(--control-height);padding:9px 12px;border:1px solid var(--control-border);border-radius:var(--radius-control);background:var(--paper);color:var(--text);font:inherit;font-size:15px;font-weight:400;line-height:1.4;transition:border-color var(--dur-fast) var(--ease-out),box-shadow var(--dur-fast) var(--ease-out)}:where(input,select,textarea):hover:where(:not(:disabled,:focus)){border-color:var(--text-muted)}:where(input,select,textarea):focus-visible{outline:var(--focus-outline);outline-offset:0;border-color:var(--accent);box-shadow:var(--focus-ring)}:where(input,textarea)::placeholder{color:var(--text-muted);opacity:1}:where(input,select,textarea):disabled{background:var(--surface-subtle);color:var(--text-muted);border-color:var(--line);cursor:not-allowed}:where(input,textarea)[readonly]{background:var(--surface-subtle)}:where(input,select,textarea)[aria-invalid=true]{border-color:var(--bad)}:where(input,select,textarea)[aria-invalid=true]:focus-visible{outline-color:var(--bad);box-shadow:0 0 0 3px color-mix(in srgb,var(--bad) 28%,transparent)}:where(input,select,textarea):user-invalid{border-color:var(--bad)}:where(select:not([multiple],[size])){-moz-appearance:none;appearance:none;-webkit-appearance:none;padding-right:38px;background-image:var(--select-chevron);background-repeat:no-repeat;background-position:right 12px center;background-size:16px 16px;cursor:pointer}:where(textarea){min-height:96px;padding:10px 12px;line-height:var(--leading-body);resize:vertical}:where(input[type=number]){text-align:left;max-width:16rem}:where(input[type=date],input[type=time],input[type=datetime-local],input[type=month])::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.75}:where(input[type=file]){max-width:100%;font:inherit;font-size:14px;color:var(--text-muted)}:where(input[type=file])::file-selector-button{margin-right:12px;min-height:var(--control-height-sm);padding:6px 14px;border:1px solid var(--border-strong);border-radius:var(--radius-control);background:var(--paper);color:var(--text);font:inherit;font-weight:500;cursor:pointer}input[type=checkbox],input[type=radio]{-moz-appearance:none;appearance:none;-webkit-appearance:none;flex:none;width:20px;height:20px;min-height:0;margin:0;padding:0;border:1.5px solid var(--control-border);border-radius:6px;background:var(--paper) no-repeat center / 14px 14px;vertical-align:middle;cursor:pointer;transition:background-color var(--dur-fast) var(--ease-out),border-color var(--dur-fast) var(--ease-out)}input[type=radio]{border-radius:50%}input[type=checkbox]:checked{background-color:var(--accent);border-color:var(--accent);background-image:var(--check-mark)}input[type=checkbox]:indeterminate{background-color:var(--accent);border-color:var(--accent);background-image:var(--check-dash)}input[type=radio]:checked{border:6px solid var(--accent);background:var(--paper)}input:is([type=checkbox],[type=radio]):hover:not(:disabled){border-color:var(--accent)}input:is([type=checkbox],[type=radio]):disabled{opacity:.5;cursor:not-allowed}input[type=checkbox]:is([role=switch],.switch){width:44px;height:26px;border:0;border-radius:var(--radius-pill);background:var(--control-border) radial-gradient(circle at 13px 50%,var(--switch-knob) 9px,transparent 9.5px) no-repeat 0 0 / 100% 100%;transition:background-color var(--dur-fast) var(--ease-out),background-position var(--dur-fast) var(--ease-out)}input[type=checkbox]:is([role=switch],.switch):checked{background-color:var(--accent);background-image:radial-gradient(circle at 13px 50%,var(--switch-knob) 9px,transparent 9.5px);background-position:18px 0}:where(.check,.checks label){display:inline-flex;align-items:center;gap:10px;min-height:44px;cursor:pointer;font-weight:400}:where(.checks){display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:0 16px;margin-bottom:12px}:where(fieldset){min-width:0;margin:0 0 20px;padding:14px 18px 6px;border:1px solid var(--line);border-radius:var(--radius-inset)}:where(legend){padding:0 6px;font-size:14px;font-weight:600}:where(.field){display:flex;flex-direction:column;gap:6px;min-width:0;margin:0 0 var(--space-4);font-size:14px;font-weight:500;color:var(--text)}:where(.field)>:where(span:first-child){font-size:13px;font-weight:500;line-height:1.35}:where(.field) :where(small,.field-hint){font-size:13px;font-weight:400;color:var(--text-muted)}.field-error{display:flex;align-items:flex-start;gap:6px;margin:0;font-size:13px;font-weight:500;line-height:1.4;color:var(--bad)}.field-error:before{content:"";flex:none;width:16px;height:16px;margin-top:1px;background:currentColor;-webkit-mask:var(--icon-bad) center / contain no-repeat;mask:var(--icon-bad) center / contain no-repeat}:where(.setting-value){display:inline-flex;align-items:center;gap:10px}:where(.setting-value) :where(input){width:9rem}:where(.form-actions-sticky){position:sticky;bottom:0;z-index:var(--z-sticky);display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:var(--space-5) 0 0;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-inset);box-shadow:var(--shadow-raised)}:where(.panel){--panel-pad: var(--space-6);min-width:0;margin:0 0 var(--space-6);padding:var(--panel-pad);background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-card)}:where(.panel)>:where(h2){margin:0 0 var(--space-4);font-size:17px;line-height:1.3}:where(.panel)>:where(:last-child){margin-bottom:0}:where(.panel)>:where(.form-actions-sticky:last-child){margin:var(--space-5) calc(-1 * var(--panel-pad, 24px)) calc(-1 * var(--panel-pad, 24px));padding-inline:var(--panel-pad, 24px);border-width:1px 0 0;border-radius:0 0 var(--radius-card) var(--radius-card);box-shadow:none}:where(.panel-head){display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:8px 16px;margin:0 0 var(--space-4)}:where(.panel-head) :where(h2){margin:0;font-size:17px;line-height:1.3}:where(.panel-subtitle){margin:2px 0 0;font-size:14px;color:var(--text-muted)}:where(.panel-actions){display:flex;flex-wrap:wrap;align-items:center;gap:8px}:where(.inset){padding:var(--space-4);background:var(--surface-subtle);border:1px solid var(--line);border-radius:var(--radius-inset)}:where(.notice){--notice-tone: var(--accent);--notice-icon: var(--icon-info);position:relative;margin:12px 0 16px;padding:12px 16px 12px 44px;background:var(--accent-soft);border:1px solid color-mix(in srgb,var(--notice-tone) 28%,transparent);border-radius:var(--radius-inset);color:var(--text);font-size:15px;line-height:var(--leading-body)}:where(.notice):before{content:"";position:absolute;left:14px;top:13px;width:20px;height:20px;background:var(--notice-tone);-webkit-mask:var(--notice-icon) center / contain no-repeat;mask:var(--notice-icon) center / contain no-repeat}.notice.success{--notice-tone: var(--ok);--notice-icon: var(--icon-ok);background:var(--status-ok-bg)}.notice:is(.wait,.warning){--notice-tone: var(--wait);--notice-icon: var(--icon-wait);background:var(--status-wait-bg)}.notice.error{--notice-tone: var(--bad);--notice-icon: var(--icon-bad);background:var(--status-bad-bg)}:where(.notice)>:where(:first-child){margin-top:0}:where(.notice)>:where(:last-child){margin-bottom:0}:where(.notice) :where(p){margin:0 0 8px}:where(.notice) :where(.actions){margin:10px 0 0}:where(.notice-title){display:block;font-weight:600}:where(.badge){display:inline-flex;align-items:center;gap:6px;min-height:24px;padding:2px 10px;border-radius:var(--radius-pill);background:var(--neutral-bg);color:var(--neutral);font-size:13px;font-weight:500;line-height:1.3;white-space:nowrap;vertical-align:middle}.badge:is(.tone-ok,.tone-wait,.tone-bad,.tone-info,.tone-neutral,.verified,.checked_in,.active,.available,.claimed,.pending,.rejected,.blocked,.no_show,.lost,.prepaid,.scheduled,.issued,.checked_out,.done,.cancelled){padding-left:8px}.badge:is(.tone-ok,.tone-wait,.tone-bad,.tone-info,.tone-neutral,.verified,.checked_in,.active,.available,.claimed,.pending,.rejected,.blocked,.no_show,.lost,.prepaid,.scheduled,.issued,.checked_out,.done,.cancelled):before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:currentColor}.badge:is(.tone-ok,.verified,.checked_in,.active,.available){background:var(--status-ok-bg);color:var(--ok)}.badge:is(.tone-wait,.claimed,.pending){background:var(--status-wait-bg);color:var(--wait)}.badge:is(.tone-bad,.rejected,.blocked,.no_show,.lost){background:var(--status-bad-bg);color:var(--bad)}.badge:is(.tone-info,.prepaid,.scheduled,.issued){background:var(--accent-soft);color:var(--accent-ink)}.badge:is(.tone-neutral,.checked_out,.done,.cancelled){background:var(--neutral-bg);color:var(--neutral)}:where(.table-scroll){overflow:auto;max-height:72vh;margin:0 0 var(--space-5);background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-inset);overscroll-behavior-x:contain}:where(table){width:100%;border-collapse:separate;border-spacing:0;font-size:14px}:where(th,td){padding:12px 14px;text-align:left;vertical-align:middle;border-bottom:1px solid var(--line)}:where(thead) :where(th){position:sticky;top:0;z-index:2;padding-block:10px;background:var(--surface-subtle);color:var(--text-muted);font-size:12px;font-weight:500;line-height:1.3;white-space:nowrap}:where(tbody) :where(th){font-weight:500}:where(.table-scroll) :where(tbody th){position:sticky;left:0;z-index:1;background:var(--paper)}:where(.table-scroll) :where(table:has(tbody th:first-child)) :where(thead th:first-child){left:0;z-index:3}:where(.table-scroll) :where(tbody tr:last-child)>:where(td,th){border-bottom:0}:where(tbody tr)>:where(td,th){transition:background-color var(--dur-fast) var(--ease-out)}:where(tbody tr:hover)>:where(td,th){background:var(--surface-subtle)}:where(tr.highlight,tr.is-selected,tr[aria-selected=true])>:where(td,th){background:var(--accent-soft)}:where(tfoot) :where(td,th){font-weight:600;background:var(--surface-subtle);border-top:1px solid var(--border-strong);border-bottom:0}:where(caption){padding:0 0 8px;text-align:left;color:var(--text-muted);font-size:13px}:where(.table-dense) :where(th,td){padding:8px 10px;font-size:13px}:where(.table-dense) :where(thead th){padding-block:8px}:where(.list-row){display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;padding:12px 0;border-bottom:1px solid var(--line)}:where(.list-row:last-child){border-bottom:0}:where(.list-row)>:where(span:first-child,a:first-child){flex:1;min-width:120px}:where(.record){padding:var(--space-4) 0;border-bottom:1px solid var(--line)}:where(.record:first-of-type){padding-top:0}:where(.record:last-child){padding-bottom:0;border-bottom:0}:where(.payment-row,.arrival){display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;padding:var(--space-4) 0;border-bottom:1px solid var(--line)}:where(.payment-row) :where(p){margin:4px 0;font-size:14px}:where(.payment-row)>:where(div:nth-child(2)){display:flex;flex-direction:column;align-items:flex-end;gap:8px}:where(.arrival) :where(dl){min-width:230px}:where(.list-row,.payment-row,.arrival).highlight{margin-inline:-12px;padding-inline:12px;background:var(--accent-soft);border-radius:var(--radius-inset)}:where(.appointment-columns){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:20px}:where(.card-counts,.form-complaints,.form-signatures){display:flex;flex-wrap:wrap;gap:12px 24px;margin:20px 0}:where(.card-counts)>:where(span){padding:12px 16px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-inset)}:where(dl){display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,1.5fr);gap:8px 16px;margin:0 0 12px;font-size:14px}:where(dt){color:var(--text-muted)}:where(dd){margin:0;overflow-wrap:anywhere}:where(.deposit){margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}:where(.numeric,.amount){font-variant-numeric:tabular-nums;text-align:right}:where(td.numeric,th.numeric){white-space:nowrap}:where(.list-row)>:where(strong),:where(.amount){margin-left:auto;font-variant-numeric:tabular-nums;text-align:right}:where(.amount){font-size:20px;font-weight:600}:where(.positive){color:var(--ok)}:where(.muted){color:var(--text-muted)}:where(.prewrap){white-space:pre-wrap}:where(.nowrap){white-space:nowrap}:where(.error-text,p.error){display:block;color:var(--bad);font-size:14px;font-weight:500}:where(.highlight){background:var(--accent-soft)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}:where(.empty){display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0;padding:12px 0;font-size:14px;color:var(--text-muted)}:where(.search-results){display:flex;flex-direction:column;gap:6px;max-height:340px;margin:0 0 12px;overflow-y:auto}:where(.search-results) :where(button){flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;min-height:52px;padding:8px 14px;text-align:left}:where(.search-results) :where(span){font-size:13px;font-weight:400;color:var(--text-muted)}:where(.selected){display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin:0 0 var(--space-5);padding:14px 16px;background:var(--surface-subtle);border:1px solid var(--line);border-radius:var(--radius-inset)}:where(.selected)>:where(span){font-size:14px;color:var(--text-muted)}:where(.modal-backdrop){position:fixed;top:0;right:0;bottom:0;left:0;z-index:var(--z-overlay);display:flex;align-items:flex-start;justify-content:center;padding:max(40px,8vh) 20px 40px;overflow-y:auto;overscroll-behavior:contain;background:var(--backdrop);animation:overlay-in var(--dur-base) var(--ease-out)}:where(.modal){display:flex;flex-direction:column;width:min(720px,100%);max-height:calc(100dvh - max(40px,8vh) - 40px);background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius-card);box-shadow:var(--shadow-overlay);animation:dialog-in var(--dur-base) var(--ease-out)}:where(.modal):focus{outline:none}:where(.modal.modal-sm){width:min(480px,100%)}:where(.modal.modal-lg){width:min(960px,100%)}:where(.modal-head){display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 16px 0 24px}:where(.modal-head) :where(h2){margin:0;padding-top:9px;font-size:18px;line-height:1.35}:where(.modal-description){margin:4px 0 0;font-size:14px;color:var(--text-muted)}:where(.modal-body){flex:1;min-height:0;padding:16px 24px 24px;overflow-y:auto;overscroll-behavior:contain}:where(.modal-foot){display:flex;flex-wrap:wrap;gap:8px;padding:14px 24px;border-top:1px solid var(--line)}:where(.modal) :where(form)>:where(button){margin:4px 8px 0 0}@keyframes overlay-in{0%{opacity:0}}@keyframes dialog-in{0%{opacity:0;transform:translateY(8px) scale(.98)}}:where(.pagination){display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px;margin:var(--space-4) 0;padding-top:var(--space-4);border-top:1px solid var(--line);font-size:14px;color:var(--text-muted)}:where(.table-scroll)+:where(.pagination){padding-top:0;border-top:0}:where(.stats){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));margin:0 0 var(--space-6);overflow:hidden;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-card)}:where(.stat){display:flex;flex-direction:column;gap:6px;min-width:0;padding:18px 20px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-card)}:where(.stats)>:where(.stat){margin:0 -1px -1px 0;background:transparent;border-width:0 1px 1px 0;border-radius:0}:where(.stat)>:where(span:first-child){font-size:13px;font-weight:500;color:var(--text-muted)}:where(.stat)>:where(strong){font-size:26px;font-weight:600;line-height:1.15;letter-spacing:-.01em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}:where(.scan-zone){display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:0 0 var(--space-6);padding:32px 28px;background:var(--surface-sunken);border:1.5px dashed var(--accent-line);border-radius:var(--radius-hero);color:var(--text)}:where(.scan-zone) :where(h2){margin:8px 0 0;font-size:var(--text-xl)}:where(.scan-zone) :where(p){margin:0;font-size:14px;color:var(--text-muted)}:where(.scan-icon){display:grid;place-items:center;width:72px;height:72px;border-radius:var(--radius-inset);background:var(--accent-soft);color:var(--accent-ink);font-size:40px;line-height:1}:where(.kiosk-slot){min-height:280px;justify-content:center;padding:48px}:where(.kiosk-slot) :where(h2){font-size:var(--text-display);line-height:1.15}:where(.procedure-grid){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}:where(.procedure){min-height:88px;padding:14px 16px;justify-content:flex-start;border:1px solid var(--border-strong);border-radius:var(--radius-inset);background:var(--paper);font-size:17px;font-weight:500;text-align:left;white-space:normal}.procedure:hover:where(:not(:disabled)){background:var(--accent-soft);border-color:var(--accent)}.procedure.selected,.procedure.selected:hover{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.procedure.selected :where(small){color:inherit}:where(.patient-name){font-size:var(--text-title);font-weight:600;line-height:var(--leading-tight);letter-spacing:-.01em;overflow-wrap:anywhere}:where(.room-plate){display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px;margin:4px 0 8px;font-size:14px}:where(.room-plate)>:where(span:last-child){color:var(--text-muted)}:where(.room-square){display:inline-block;flex:none;width:10px;height:10px;border-radius:3px;background:var(--std)}.room-square.lux{background:var(--lux)}.room-square.vip{background:var(--vip)}.from-slot{animation:pass-from-slot var(--dur-slow) var(--ease-out) backwards}@keyframes pass-from-slot{0%{opacity:0;transform:translateY(-16px) scale(.985)}}:where(.stay-form){width:min(210mm,100%);margin:0 auto;padding:10mm;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-inset)}:where(.stay-form) :where(.panel){margin-bottom:16px;padding:16px;border-radius:var(--radius-sm)}:where(.stay-form) :where(td,dd){overflow-wrap:anywhere}:where(.consent-form){max-width:850px;margin:0 auto}:where(.consent-form header,.consent-signatures){margin:1.5rem 0}:where(.consent-signatures) :where(p){margin:1.4rem 0}:where(.form-heading){margin:24px 0;padding-bottom:20px;border-bottom:2px solid var(--border-strong)}:where(.form-heading) :where(h1){font-family:var(--font-document);font-weight:700}:where(.form-signatures){justify-content:space-between;padding:24px 0;break-inside:avoid}:where(.staff-password){overflow-wrap:anywhere}.roles-table th[scope=row] small{display:block;color:var(--text-muted);font-weight:400;font-size:var(--text-sm);line-height:1.35}.roles-table th[scope=row] small+small{margin-top:4px}.roles-table td{min-width:164px;padding:8px;vertical-align:top;white-space:nowrap}.roles-table td.roles-all{min-width:96px;padding:12px}.roles-table th[scope=row]{min-width:190px;max-width:240px;white-space:normal}.roles-table select{width:100%;min-height:44px;font-size:var(--text-sm);padding:8px 32px 8px 8px}.roles-table .roles-group th{position:static;background:var(--surface-subtle);color:var(--text);font-weight:600;max-width:none}.roles-table .roles-group span{position:sticky;left:12px}.roles-change{color:var(--ok)}.roles-view{color:var(--accent-ink)}.roles-none{color:var(--text-muted)}.roles-home{margin:0;padding-left:20px}.roles-all{color:var(--ok);font-weight:600}.roles-locked{color:var(--text-muted)}.roles-dirty{background:var(--accent-soft)}.roles-mark{display:block;margin-top:4px;font-size:var(--text-xs);color:var(--accent-ink);font-weight:500}.roles-note{color:var(--text-muted);margin:var(--space-3) 0 0}.roles-changes{position:sticky;bottom:0;z-index:5;margin:var(--space-4) 0;padding:var(--space-4) var(--space-5);background:var(--paper);border:1px solid var(--border-strong);border-radius:var(--radius-card);box-shadow:var(--shadow-raised);max-height:60vh;overflow:auto}.roles-changes h2{margin-top:0}.roles-changes ul,.roles-rules{margin:0;padding-left:20px}.roles-changes li+li,.roles-rules li+li{margin-top:6px}.roles-warn{display:block;color:var(--wait);font-size:var(--text-sm);font-weight:500}.integration-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3)}.integration-head h2{margin:0}.integration-how{margin-top:var(--space-3)}.integration-how ol{padding-left:20px}.integration-card .muted{color:var(--text-muted);font-size:var(--text-sm)}@media (max-width: 1100px){:where(.procedure-grid){grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 760px){:where(.grid){--grid-gap: var(--space-4)}:where(.panel){--panel-pad: 18px}:where(.row){flex-wrap:wrap}:where(.page-title){align-items:flex-start}:where(dl){grid-template-columns:1fr 1.3fr}:where(.payment-row)>:where(div:nth-child(2)){margin-left:auto}:where(.arrival) :where(dl){width:100%}:where(.scan-zone){padding:24px 16px}:where(.kiosk-slot){padding:24px}:where(.kiosk-slot) :where(h2){font-size:var(--text-title)}:where(.procedure-grid){gap:8px}:where(.procedure){padding:8px 10px;font-size:16px;overflow-wrap:anywhere}:where(.modal-backdrop){padding:12px}:where(.modal){max-height:calc(100dvh - 24px)}:where(.modal-head){padding:12px 12px 0 18px}:where(.modal-body){padding:14px 18px 18px}:where(.modal-foot){padding:12px 18px}:where(.stats){grid-template-columns:repeat(2,minmax(0,1fr))}:where(.stat){padding:14px 16px}:where(.stat)>:where(strong){font-size:22px}:where(.stay-form){padding:16px}}@media (max-width: 640px){body{font-size:16px}:where(input:not([type=checkbox],[type=radio]),select,textarea){font-size:16px}:where(.table-scroll:has(>.table-cards)){max-height:none;overflow:visible;background:transparent;border:0;border-radius:0}:where(table.table-cards,.table-cards tbody,.table-cards tr){display:block;width:100%}:where(.table-cards thead){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}:where(.table-cards tr){margin:0 0 10px;padding:6px 14px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-inset)}:where(.table-cards) :where(td,tbody th){position:static;display:grid;grid-template-columns:minmax(96px,38%) minmax(0,1fr);gap:12px;align-items:baseline;padding:8px 0;background:none;border-bottom:1px solid var(--line);text-align:left}:where(.table-cards) :where(tr)>:where(:last-child){border-bottom:0}:where(.table-cards) :where(td[data-label]):before{content:attr(data-label);color:var(--text-muted);font-size:13px;font-weight:500}:where(.table-cards) :where(td:not([data-label]),tbody th){grid-template-columns:minmax(0,1fr)}:where(.table-cards) :where(tbody th){font-size:15px;font-weight:600}:where(.table-cards) :where(td.numeric){text-align:left}:where(.table-cards tbody tr:hover)>:where(td,th){background:none}:where(.panel,.content)>:where(table:not(.table-cards)){display:block;max-width:100%;overflow-x:auto}}:where(.page-header){display:flex;flex-direction:column;gap:var(--space-4);margin:0 0 var(--space-6)}:where(.page-header-main){display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:12px 24px}:where(.page-header-text){flex:1 1 320px;min-width:0}:where(.page-header-title){display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}:where(.page-header) :where(h1){margin:0;font-size:var(--text-page-title);line-height:1.25}:where(.page-header-subtitle){margin:4px 0 0;max-width:75ch;color:var(--text-muted)}:where(.page-header-actions){display:flex;flex-wrap:wrap;align-items:center;gap:8px}:where(.page-header-tabs) :where(.tabs,.toolbar){margin-bottom:0}:where(.tabs){display:flex;gap:4px;margin:0 0 var(--space-5);overflow-x:auto;border-bottom:1px solid var(--line);scrollbar-width:none}:where(.tabs)::-webkit-scrollbar{display:none}.tabs .tab{position:relative;flex:none;gap:8px;min-height:var(--control-height);padding:0 12px;background:transparent;border:0;border-radius:var(--radius-sm) var(--radius-sm) 0 0;color:var(--text-muted);font-weight:500;white-space:nowrap}.tabs .tab:hover:not(:disabled){background:var(--surface-subtle);color:var(--text)}.tabs .tab[aria-selected=true]{color:var(--accent-ink)}.tabs .tab[aria-selected=true]:after{content:"";position:absolute;left:8px;right:8px;bottom:0;height:3px;border-radius:3px 3px 0 0;background:var(--accent)}.tabs .tab:focus-visible{outline-offset:-3px;box-shadow:none}.tab-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:var(--radius-pill);background:var(--neutral-bg);color:var(--neutral);font-size:12px;font-weight:600}.tab[aria-selected=true] .tab-count{background:var(--accent-soft);color:var(--accent-ink)}:where(.tab-panel):focus-visible{outline-offset:4px;border-radius:var(--radius-sm)}:where(.toolbar,.filters){display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 16px;margin:0 0 var(--space-5)}:where(.toolbar,.filters)>:where(.field){flex:0 1 220px;min-width:min(180px,100%);margin:0}:where(.toolbar,.filters)>:where(.search-field){flex:1 1 280px}:where(.toolbar,.filters)>:where(label:not(.field)){min-height:var(--control-height)}:where(.field)>:where(label:first-child){font-size:13px;font-weight:500;line-height:1.35}.search-control{position:relative;display:block}.search-control .search-icon{position:absolute;top:50%;left:12px;color:var(--text-muted);transform:translateY(-50%);pointer-events:none}.search-control input{padding-left:40px;padding-right:44px}.search-control input::-webkit-search-cancel-button{-webkit-appearance:none;display:none}.search-control .search-clear{position:absolute;top:50%;right:4px;width:36px;min-width:36px;min-height:36px;padding:0;background:transparent;border:0;border-radius:var(--radius-sm);color:var(--text-muted);transform:translateY(-50%)}.search-control .search-clear:hover{background:var(--surface-subtle);color:var(--text)}:where(.segmented){display:inline-flex;flex-wrap:wrap;gap:2px;padding:3px;background:var(--surface-sunken);border:1px solid var(--line);border-radius:var(--radius-control)}.segmented button{min-height:36px;padding:6px 14px;background:transparent;border:0;border-radius:var(--radius-sm);color:var(--text-muted);font-size:14px}.segmented button:hover:not(:disabled){background:var(--surface-subtle);color:var(--text)}.segmented button[aria-pressed=true],.segmented button[aria-pressed=true]:hover{background:var(--paper);color:var(--text);box-shadow:var(--shadow-raised)}:where(.stat-foot){display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;font-size:13px}:where(.stat-hint){color:var(--text-muted)}.stat-trend{display:inline-flex;align-items:center;gap:2px;font-weight:600}.stat-trend.good{color:var(--ok)}.stat-trend.bad{color:var(--bad)}.stat-trend.flat{color:var(--text-muted)}:where(.loading){margin:0 0 var(--space-4)}:where(.skeleton){display:flex;flex-direction:column;gap:10px;padding:4px 0}.skeleton-bar{display:block;height:12px;border-radius:6px;background-color:var(--surface-sunken);background-image:linear-gradient(90deg,transparent 0%,color-mix(in srgb,var(--paper) 72%,transparent) 50%,transparent 100%);background-repeat:no-repeat;background-size:200% 100%;animation:skeleton-sheen 1.6s ease-in-out infinite}@keyframes skeleton-sheen{0%{background-position:150% 0}to{background-position:-50% 0}}:where(.skeleton-table){gap:0;padding:0;overflow:hidden;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-inset)}:where(.skeleton-row){display:grid;grid-template-columns:2fr 1.4fr 1fr 1fr;gap:16px;align-items:center;padding:16px 14px;border-bottom:1px solid var(--line)}:where(.skeleton-row:last-child){border-bottom:0}:where(.skeleton-head){padding-block:13px;background:var(--surface-subtle)}.skeleton-head .skeleton-bar{height:8px}:where(.skeleton-cards){display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:16px}:where(.skeleton-card){display:flex;flex-direction:column;gap:10px;padding:18px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-card)}.skeleton-strong{height:16px}:where(.skeleton-stats){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));gap:0;padding:0;overflow:hidden;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-card)}:where(.skeleton-stat){display:flex;flex-direction:column;gap:12px;padding:18px 20px}.skeleton-figure{height:24px}:where(.skeleton-pass){gap:20px;padding:28px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-hero)}:where(.skeleton-pass-top){display:flex;align-items:center;gap:20px}.skeleton-monogram{flex:none;width:64px;height:64px;border-radius:16px}:where(.skeleton-pass-name){display:flex;flex:1;flex-direction:column;gap:10px}.skeleton-title{height:24px}:where(.skeleton-days){display:flex;gap:4px}.skeleton-day{flex:1;height:30px;border-radius:var(--radius-sm)}:where(.empty-state){display:flex;flex-wrap:wrap;align-items:center;gap:16px 32px;margin:0 0 var(--space-6);padding:28px 32px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-card)}:where(.panel) :where(.empty-state){margin:0;padding:8px 0;background:none;border:0;border-radius:0}:where(.empty-state.compact){margin:0;padding:12px 0;background:none;border:0;border-radius:0}:where(.empty-art){flex:none;width:200px;height:auto}:where(.empty-body){display:flex;flex:1 1 260px;flex-direction:column;gap:6px;min-width:0}:where(.empty-title){margin:0;font-size:var(--text-lg);font-weight:600;line-height:1.3;color:var(--text)}:where(.empty-text){max-width:60ch;color:var(--text-muted)}:where(.empty-text)>:where(:last-child){margin-bottom:0}:where(.empty-actions){display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}:where(.drawer-backdrop){position:fixed;top:0;right:0;bottom:0;left:0;z-index:var(--z-overlay);display:flex;justify-content:flex-end;background:var(--backdrop);overscroll-behavior:contain;animation:overlay-in var(--dur-slow) var(--ease-out)}:where(.drawer){display:flex;flex-direction:column;width:min(480px,100%);height:100%;max-height:100dvh;background:var(--surface-raised);border-left:1px solid var(--line);box-shadow:var(--shadow-overlay);animation:drawer-in var(--dur-slow) var(--ease-out)}:where(.drawer.drawer-lg){width:min(560px,100%)}:where(.drawer):focus{outline:none}:where(.drawer-head){display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 14px 14px 24px;border-bottom:1px solid var(--line)}:where(.drawer-title){margin:0;padding-top:10px;font-size:18px;line-height:1.35}:where(.drawer-description){margin:4px 0 0;font-size:14px;color:var(--text-muted)}:where(.drawer-body){flex:1;min-height:0;padding:20px 24px 24px;overflow-y:auto;overscroll-behavior:contain}:where(.drawer-foot){display:flex;flex-wrap:wrap;gap:8px;padding:12px 24px calc(12px + env(safe-area-inset-bottom,0px));background:var(--surface-raised);border-top:1px solid var(--line)}@keyframes drawer-in{0%{transform:translate(100%)}}:where(.avatar){display:inline-grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;background:var(--accent-soft);color:var(--accent-ink);font-size:13px;font-weight:600;line-height:1;letter-spacing:.02em;-webkit-user-select:none;user-select:none}.avatar.sm{width:28px;height:28px;font-size:11px}.avatar.lg{width:48px;height:48px;font-size:16px}.avatar.xl{width:64px;height:64px;font-size:22px}.avatar.square{border-radius:var(--radius-inset)}.avatar.xl.square{border-radius:16px}:where(.kbd-group){display:inline-flex;gap:4px;vertical-align:middle}:where(.kbd){display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:22px;padding:0 6px;background:var(--paper);border:1px solid var(--border-strong);border-bottom-width:2px;border-radius:6px;color:var(--text-muted);font:500 12px/1 var(--font-ui)}:where(.money){font-variant-numeric:tabular-nums;white-space:nowrap}.money.negative{color:var(--bad)}:where(.ward-tag){display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:14px;line-height:1.35}:where(.ward-marker){flex:none;width:10px;height:10px;border-radius:3px;background:var(--std)}.ward-tag.lux .ward-marker{background:var(--lux)}.ward-tag.vip .ward-marker{background:var(--vip)}:where(.ward-label){font-weight:500;color:var(--text)}:where(.ward-category){color:var(--text-muted)}:where(.ward-tag.plate){padding:4px 10px;background:var(--surface-subtle);border:1px solid var(--line);border-radius:var(--radius-sm)}:where(.days-strip){display:flex;flex-direction:column;gap:10px;min-width:0}:where(.days-caption){display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px;margin:0;font-size:14px}:where(.days-caption)>:where(strong){font-weight:600}:where(.days-caption)>:where(span){color:var(--text-muted)}:where(.days-cells){display:flex;flex-wrap:wrap;gap:4px;margin:0;padding:0;list-style:none}:where(.days-cell){display:grid;flex:1 0 26px;place-items:center;height:30px;background:var(--paper);border:1px dashed var(--border-strong);border-radius:var(--radius-sm);color:var(--text-muted);font-size:12px;font-weight:500;font-variant-numeric:tabular-nums}.days-cell.past{background:var(--accent);border:1px solid var(--accent);color:var(--on-accent)}.days-cell.today{background:var(--accent-soft);border:2px solid var(--accent);color:var(--accent-ink);font-weight:600}:where(.days-strip.sm){gap:6px}:where(.days-strip.sm) :where(.days-cells){gap:3px}:where(.days-strip.sm) :where(.days-cell){flex-basis:14px;height:16px;border-radius:4px}.days-strip.sm .days-cell>[aria-hidden=true]{display:none}:where(.days-strip.sm) :where(.days-caption){font-size:13px}:where(.days-strip.stay-days){margin:12px 0;padding:14px 16px;background:var(--surface-subtle);border:1px solid var(--line);border-radius:var(--radius-inset)}:where(.pass){position:relative;display:flex;flex-direction:column;gap:20px;margin:0 0 var(--space-6);padding:34px 28px 24px;overflow:hidden;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-hero)}.pass:before{content:"";position:absolute;inset:0 0 auto;height:6px;background:var(--accent)}.pass-slot{position:absolute;top:14px;left:50%;width:52px;height:8px;margin-left:-26px;background:var(--surface-sunken);border:1px solid var(--border-strong);border-radius:var(--radius-pill)}:where(.pass-top){display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px 20px;align-items:start}:where(.pass-ident){min-width:0}:where(.pass-name){margin:2px 0 10px;font-size:var(--text-title);font-weight:600;line-height:var(--leading-tight);letter-spacing:-.01em;overflow-wrap:anywhere}:where(.pass-facts){display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;font-size:14px}:where(.pass-fact){font-variant-numeric:tabular-nums}:where(.pass-card){display:flex;flex-direction:column;align-items:flex-end;gap:6px;min-height:64px;padding-left:20px;text-align:right;border-left:1px dashed var(--border-strong)}:where(.pass-card-label){font-size:12px;font-weight:500;color:var(--text-muted)}:where(.pass-card-number){font-size:var(--text-xl);font-weight:600;line-height:1.1;letter-spacing:.04em;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--accent-ink)}:where(.pass-card-none){font-size:14px;color:var(--text-muted)}:where(.pass-scanned){font-size:12px;color:var(--text-muted)}:where(.pass-stay){padding:16px 18px;background:var(--surface-subtle);border-radius:var(--radius-inset)}:where(.pass-money){display:flex;flex-wrap:wrap;gap:12px 40px;margin:0;padding-top:16px;border-top:1px solid var(--line)}:where(.pass-money)>:where(div){display:flex;flex-direction:column;gap:4px;min-width:0}:where(.pass-money) :where(dt){font-size:12px;font-weight:500;color:var(--text-muted)}:where(.pass-money) :where(dd){display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0;font-size:var(--text-lg);font-weight:600}:where(.pass-actions){display:flex;flex-wrap:wrap;gap:8px}.pass-scan{transform-origin:top center;animation:pass-in var(--dur-slow) var(--ease-out) backwards}@keyframes pass-in{0%{opacity:0;transform:translateY(-20px) scale(.98)}}.illo{display:block;max-width:100%;height:auto;fill:none;stroke:var(--illo-line);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.illo .fill{fill:var(--illo-fill)}.illo .soft{fill:var(--illo-soft);stroke:none}.illo .accent{stroke:var(--illo-accent)}.illo .accent-fill{fill:var(--illo-accent);stroke:none}@media (max-width: 760px){:where(.pass){padding:30px 18px 18px;border-radius:var(--radius-card)}:where(.pass-top){grid-template-columns:auto minmax(0,1fr)}:where(.pass-card){grid-column:1 / -1;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px 12px;min-height:0;padding:12px 0 0;text-align:left;border-left:0;border-top:1px dashed var(--border-strong)}.pass .avatar.xl{width:52px;height:52px;font-size:18px}:where(.pass-name){font-size:24px}:where(.pass-stay){padding:12px}:where(.empty-state){padding:20px 16px}}@media (max-width: 640px){:where(.drawer,.drawer.drawer-lg){width:100%;border-left:0}:where(.drawer-head){padding:10px 10px 10px 16px}:where(.drawer-body){padding:16px}:where(.drawer-foot){padding-inline:16px}:where(.toolbar,.filters)>:where(.field){flex:1 1 140px}:where(.empty-art){width:160px}}@media (prefers-reduced-motion: reduce){.pass-scan,.from-slot,.drawer,.drawer-backdrop,.modal,.modal-backdrop,.toast-region .notice{animation:none}.skeleton-bar{animation:none;background-image:none}}.more-menu{position:relative;display:inline-flex}.more-menu-trigger.compact{min-height:32px;padding:0 8px}.more-menu-trigger[aria-expanded=true]{background:var(--surface-subtle);border-color:var(--control-border)}.more-menu-list{position:fixed;top:var(--menu-top, auto);bottom:var(--menu-bottom, auto);left:var(--menu-left, 16px);z-index:var(--z-overlay);display:flex;flex-direction:column;gap:2px;width:280px;max-width:calc(100vw - 32px);max-height:min(70vh,480px);padding:6px;overflow-y:auto;background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius-inset);box-shadow:var(--shadow-overlay);animation:menu-in var(--dur-fast) var(--ease-out)}.more-menu-list.up{animation-name:menu-up}.more-menu-list .more-menu-item{display:flex;align-items:flex-start;justify-content:flex-start;gap:10px;width:100%;min-height:40px;padding:9px 12px;background:transparent;border:0;border-radius:var(--radius-sm);color:var(--text);font-size:var(--text-base);font-weight:500;text-align:left;text-decoration:none}.more-menu-list .more-menu-item>svg{flex:none;margin-top:2px;color:var(--text-muted)}.more-menu-list .more-menu-item:hover,.more-menu-list .more-menu-item:focus-visible{background:var(--surface-subtle);color:var(--text)}.more-menu-list .more-menu-item:focus-visible{outline:var(--focus-outline);outline-offset:-2px;box-shadow:none}.more-menu-list .more-menu-item.danger,.more-menu-list .more-menu-item.danger>svg{color:var(--bad)}.more-menu-list .more-menu-item[aria-disabled=true]{color:var(--text-muted);cursor:not-allowed}.more-menu-text{display:flex;flex-direction:column;gap:2px}.more-menu-text small{font-size:12px;font-weight:400;line-height:1.35;color:var(--text-muted)}@keyframes menu-in{0%{opacity:0;transform:translateY(-4px)}}@keyframes menu-up{0%{opacity:0;transform:translateY(4px)}}@media (max-width: 640px){.more-menu-list,.more-menu-list.up{top:auto;right:16px;bottom:max(16px,env(safe-area-inset-bottom));left:16px;width:auto;max-width:none;padding:8px;animation-name:menu-up}.more-menu-list .more-menu-item{min-height:48px}}.more-actions{position:relative;display:inline-block}.more-actions>summary{list-style:none;display:inline-flex;align-items:center;gap:6px;min-height:var(--control-height-sm);padding:0 12px;border:1px solid var(--control-border);border-radius:var(--radius-control);background:var(--paper);color:var(--text);font-weight:500;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--dur-fast) var(--ease-out)}.more-actions>summary::-webkit-details-marker{display:none}.more-actions>summary:hover,.more-actions[open]>summary{background:var(--surface-subtle)}.more-actions>summary:focus-visible{outline:var(--focus-outline);box-shadow:var(--focus-ring)}.more-actions-items{position:absolute;z-index:var(--z-overlay);top:calc(100% + 6px);min-width:220px;max-width:min(320px,calc(100vw - 32px));display:grid;gap:2px;padding:6px;background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius-inset);box-shadow:var(--shadow-overlay);animation:menu-in var(--dur-fast) var(--ease-out)}.more-actions-end .more-actions-items{right:0}.more-actions-start .more-actions-items{left:0}.more-actions-items :is(.actions,.row){display:grid;gap:2px;margin:0}.more-actions-items :is(button,.button,a){width:100%;min-height:40px;justify-content:flex-start;padding:8px 12px;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--text);text-align:left;text-decoration:none;box-shadow:none}.more-actions-items :is(button,.button,a):hover:not(:disabled){background:var(--surface-subtle)}.more-actions-items :is(button,.button).danger{color:var(--bad)}@page{size:A4;margin:14mm}@media print{:root,:root[data-theme=dark]{color-scheme:light;--page: #ffffff;--paper: #ffffff;--surface-subtle: #ffffff;--surface-sunken: #ffffff;--surface-raised: #ffffff;--text: #000000;--text-muted: #000000;--text-faint: #000000;--accent: #000000;--accent-ink: #000000;--accent-hover: #000000;--accent-pressed: #000000;--accent-soft: #ffffff;--accent-line: #000000;--on-accent: #ffffff;--control-border: #000000;--line: #000000;--border-strong: #000000;--ok: #000000;--wait: #000000;--bad: #000000;--neutral: #000000;--neutral-bg: #ffffff;--status-ok-bg: #ffffff;--status-wait-bg: #ffffff;--status-bad-bg: #ffffff;--std: #000000;--lux: #000000;--vip: #000000}html,body,#root,.app-shell,.workspace,.content{display:block;width:auto;min-width:0;min-height:0;margin:0;padding:0;background:#fff!important;color:#000!important;font-size:10pt}.sidebar,.topbar,.app-header,.no-print,.modal-backdrop,.drawer-backdrop,.toast-region,.skip-link,.content>.notice,.content>button{display:none!important}*,*:before,*:after{box-shadow:none!important;text-shadow:none!important;animation:none!important}.stay-form,.stay-form *,.consent-form,.consent-form *{color:#000!important;background:#fff!important}.stay-form,.treatment-discharge{border-radius:0;border:0;background:#fff!important;color:#000!important}.consent-form .panel{border:0;padding:0}.stay-form .panel{border:1px solid black;border-radius:0;padding:3mm;margin:0 0 3mm}.stay-form .days-cell{border:1px solid black!important;border-radius:1mm;height:6mm}.stay-form .days-cell.past{background:#000!important;color:#fff!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}.stay-form .days-cell.today{border-width:2px!important}.stay-form .table-scroll{max-height:none;overflow:visible;border:0}.stay-form th{position:static}.stay-form h1{font-size:18pt}.stay-form h2{font-size:13pt;margin:0 0 2mm;break-after:avoid}.stay-form h3{font-size:11pt;break-after:avoid}.stay-form dl{grid-template-columns:40% 1fr;margin:2mm 0;gap:1mm 3mm}.stay-form table{width:100%;min-width:0;table-layout:fixed;font-size:9pt}.stay-form th,.stay-form td{padding:2mm;border-bottom:1px solid black}.stay-form thead{display:table-header-group}.stay-form tr,.stay-form .record,.form-signatures{break-inside:avoid}.stay-form a{text-decoration:none;display:inline;min-height:0}.form-signatures{margin-top:8mm}.badge{border:1px solid black}}.phone-scan button{min-height:44px;padding:8px 16px;font-weight:600;border-radius:var(--radius-sm)}.phone-error{flex-basis:100%;font-size:var(--text-sm);font-weight:600;color:var(--bad)}.phone-hint{font-size:var(--text-sm);color:var(--text-muted)}.phone-scan{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-top:12px}@media (max-width: 600px){html,body{max-width:100%;overflow-x:clip}.app-shell,.workspace,.content,.panel,.grid>*,.row>*{min-width:0;max-width:100%}.content :is(h1,h2,h3,.patient-name,.ccard-name){overflow-wrap:anywhere}.content :is(button,.button,input:not([type=checkbox],[type=radio]),select,textarea){min-height:44px}.list-row{flex-wrap:wrap}.procedure-grid{grid-template-columns:minmax(0,1fr)}.procedure{min-height:64px}.kiosk-slot{min-height:0;padding:24px 16px}.kiosk-slot h2{font-size:28px}.ccard-actions{flex-direction:column}.ccard-actions .button,.ccard-actions>button{width:100%}.ccard-grid{gap:16px}.mobile-primary{position:fixed;left:16px;right:16px;bottom:max(12px,env(safe-area-inset-bottom));z-index:30;width:auto;min-height:52px;box-shadow:var(--shadow-overlay)}.content:has(.mobile-primary){padding-bottom:96px}}
