@import url("./public-site.css");

:root {
  --bg: #06030b;
  --panel: #100918;
  --panel-2: #190f25;
  --panel-3: #241433;
  --line: rgba(255,255,255,.09);
  --muted: #b8a8c8;
  --text: #fbf7ff;
  --amber: #fb923c;
  --amber-2: #f59e0b;
  --green: #22c55e;
  --red: #ef4444;
  --purple: #a855f7;
  --blue: #38bdf8;
  --radius: 14px;
  --shadow: 0 22px 70px rgba(0,0,0,.35);
  --topbar-bg: rgba(6,3,11,.9);
  --topbar-border: rgba(168,85,247,.16);
  --sidebar-bg: linear-gradient(180deg, #09040f, #0f0718);
  --sidebar-border: rgba(168,85,247,.16);
  --card-bg: linear-gradient(135deg, rgba(168,85,247,.08), rgba(255,255,255,.025));
  --card-border: rgba(168,85,247,.15);
  --field-bg: #0a0610;
  --field-border: rgba(168,85,247,.18);
  --field-text: var(--text);
  --nav-text: #cbd5e1;
  --nav-hover: rgba(255,255,255,.04);
  --nav-active-bg: linear-gradient(135deg, rgba(168,85,247,.28), rgba(251,146,60,.13));
  --nav-active-border: rgba(168,85,247,.42);
  --nav-active-text: #fff;
  --badge-bg: rgba(168,85,247,.22);
  --badge-text: #e9d5ff;
  --table-bg: rgba(16,9,24,.72);
  --table-head-bg: rgba(255,255,255,.03);
  --shell-bg: radial-gradient(circle at 78% -8%, rgba(168,85,247,.18), transparent 28%), radial-gradient(circle at 0% 88%, rgba(251,146,60,.08), transparent 32%), var(--bg);
  --club-accent: #a855f7;
  --club-accent-2: #38bdf8;
  --club-warn: #fb923c;
  --club-glow: rgba(168,85,247,.36);
  --club-glow-2: rgba(56,189,248,.2);
  --club-crowd-image: url("/assets/backgrounds/site-scene-dark-neon.webp?v=20260613-site");
  --fx-ambient-one: rgba(168,85,247,.32);
  --fx-ambient-two: rgba(56,189,248,.22);
  --fx-ambient-three: rgba(251,146,60,.16);
  --fx-noise-opacity: .045;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
:root[data-theme="mix"] {
  color-scheme: dark;
}
:root[data-theme="dark"] {
  --bg: #06070d;
  --panel: #0d1320;
  --panel-2: #141b2b;
  --panel-3: #1d2637;
  --line: rgba(148,163,184,.16);
  --muted: #94a3b8;
  --text: #f8fafc;
  --topbar-bg: rgba(5,8,16,.94);
  --topbar-border: rgba(59,130,246,.16);
  --sidebar-bg: linear-gradient(180deg, #08111f, #0b1526);
  --sidebar-border: rgba(59,130,246,.12);
  --card-bg: linear-gradient(180deg, rgba(15,23,42,.92), rgba(9,14,24,.92));
  --card-border: rgba(148,163,184,.14);
  --field-bg: #09111d;
  --field-border: rgba(148,163,184,.2);
  --nav-text: #cbd5e1;
  --nav-hover: rgba(148,163,184,.08);
  --nav-active-bg: linear-gradient(135deg, rgba(30,64,175,.32), rgba(15,23,42,.85));
  --nav-active-border: rgba(96,165,250,.32);
  --nav-active-text: #eff6ff;
  --badge-bg: rgba(37,99,235,.18);
  --badge-text: #dbeafe;
  --table-bg: rgba(9,14,24,.84);
  --table-head-bg: rgba(148,163,184,.08);
  --shell-bg: radial-gradient(circle at 78% -8%, rgba(37,99,235,.14), transparent 28%), radial-gradient(circle at 0% 88%, rgba(56,189,248,.08), transparent 32%), var(--bg);
  --fx-ambient-one: rgba(37,99,235,.28);
  --fx-ambient-two: rgba(56,189,248,.2);
  --fx-ambient-three: rgba(251,146,60,.12);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --panel-3: #eef2ff;
  --line: rgba(15,23,42,.16);
  --muted: #475569;
  --text: #0f172a;
  --topbar-bg: rgba(255,255,255,.94);
  --topbar-border: rgba(15,23,42,.08);
  --sidebar-bg: linear-gradient(180deg, #f8fafc, #eef2ff);
  --sidebar-border: rgba(15,23,42,.08);
  --card-bg: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.98));
  --card-border: rgba(100,116,139,.24);
  --field-bg: #ffffff;
  --field-border: rgba(100,116,139,.42);
  --field-text: #0f172a;
  --nav-text: #334155;
  --nav-hover: rgba(15,23,42,.05);
  --nav-active-bg: linear-gradient(135deg, rgba(251,191,36,.18), rgba(245,158,11,.08));
  --nav-active-border: rgba(245,158,11,.32);
  --nav-active-text: #111827;
  --badge-bg: rgba(245,158,11,.16);
  --badge-text: #92400e;
  --table-bg: rgba(255,255,255,.96);
  --table-head-bg: rgba(15,23,42,.04);
  --shell-bg: radial-gradient(circle at 84% -8%, rgba(251,191,36,.16), transparent 28%), radial-gradient(circle at 0% 88%, rgba(59,130,246,.08), transparent 32%), var(--bg);
  --club-glow: rgba(245,158,11,.22);
  --club-glow-2: rgba(59,130,246,.14);
  --fx-ambient-one: rgba(245,158,11,.16);
  --fx-ambient-two: rgba(59,130,246,.12);
  --fx-ambient-three: rgba(168,85,247,.08);
  --fx-noise-opacity: .035;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body, #app { min-height: 100%; margin: 0; background: var(--shell-bg); color: var(--text); }
body { overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
.hidden { display: none !important; }
.background-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 14%, var(--fx-ambient-one), transparent 28%),
    radial-gradient(circle at 88% 12%, var(--fx-ambient-two), transparent 26%),
    radial-gradient(circle at 74% 86%, var(--fx-ambient-three), transparent 30%),
    linear-gradient(135deg, rgba(2,6,23,.2), transparent 55%);
}
.background-fx__orb,
.background-fx__beam,
.background-fx__clubscape,
.background-fx__grid,
.background-fx__noise {
  position: absolute;
  display: block;
  pointer-events: none;
}
.background-fx__orb {
  width: clamp(220px, 28vw, 520px);
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(34px);
  opacity: .52;
  mix-blend-mode: screen;
}
.background-fx__orb--violet { left: 12%; top: 8%; background: radial-gradient(circle, var(--fx-ambient-one), transparent 68%); }
.background-fx__orb--cyan { right: 4%; top: 18%; background: radial-gradient(circle, var(--fx-ambient-two), transparent 70%); }
.background-fx__orb--amber { left: 58%; bottom: -12%; background: radial-gradient(circle, var(--fx-ambient-three), transparent 72%); }
.background-fx--login .background-fx__orb--violet { left: -8%; top: 4%; width: clamp(360px, 38vw, 720px); }
.background-fx--login .background-fx__orb--cyan { right: 34%; top: -10%; width: clamp(260px, 30vw, 560px); }
.background-fx--login .background-fx__orb--amber { right: -8%; left: auto; bottom: 4%; width: clamp(280px, 30vw, 600px); }
.background-fx__beam {
  top: -28%;
  width: 16vw;
  min-width: 160px;
  height: 118vh;
  opacity: .18;
  filter: blur(18px);
  transform-origin: top center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--club-accent), transparent 10%), transparent 72%);
  animation: fxBeamSweep 18s ease-in-out infinite alternate;
}
.background-fx__beam--left { left: 18%; transform: rotate(-18deg); }
.background-fx__beam--right { right: 12%; transform: rotate(14deg); background: linear-gradient(180deg, color-mix(in srgb, var(--club-accent-2), transparent 10%), transparent 72%); animation-duration: 22s; animation-direction: alternate-reverse; }
.background-fx__clubscape {
  display: none;
  right: -13vw;
  top: 5vh;
  width: min(74vw, 1120px);
  height: min(66vh, 660px);
  opacity: .36;
  background-image:
    linear-gradient(90deg, rgba(3,7,18,.02), rgba(3,7,18,.36)),
    var(--club-crowd-image);
  background-size: cover;
  background-position: center 68%;
  filter: saturate(1.38) contrast(1.16) blur(.15px);
  mask-image: radial-gradient(ellipse at 58% 45%, black 0 40%, rgba(0,0,0,.78) 54%, transparent 80%);
}
.background-fx--dashboard .background-fx__clubscape { display: block; }
.background-fx__grid {
  inset: 0;
  opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(circle at 55% 22%, black, transparent 72%);
}
.background-fx__noise {
  inset: 0;
  opacity: var(--fx-noise-opacity);
  background-image:
    radial-gradient(circle at 18% 24%, rgba(255,255,255,.8) 0 1px, transparent 1.2px),
    radial-gradient(circle at 72% 44%, rgba(255,255,255,.55) 0 1px, transparent 1.2px),
    radial-gradient(circle at 44% 78%, rgba(255,255,255,.42) 0 1px, transparent 1.2px);
  background-size: 31px 29px, 43px 41px, 53px 47px;
}
:root[data-theme="light"] .background-fx__orb { opacity: .22; mix-blend-mode: multiply; }
:root[data-theme="light"] .background-fx__beam { opacity: .08; }
:root[data-theme="light"] .background-fx__clubscape { opacity: .16; mix-blend-mode: multiply; }
:root[data-theme="light"] .background-fx__grid { opacity: .08; }
.login-shell,
.dashboard-stage {
  position: relative;
  isolation: isolate;
}
.login-shell > :not(.background-fx),
.dashboard-stage > :not(.background-fx) {
  position: relative;
  z-index: 1;
}
@keyframes fxBeamSweep {
  from { translate: -2vw 0; rotate: -4deg; opacity: .12; }
  to { translate: 3vw 0; rotate: 5deg; opacity: .24; }
}
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 1fr) minmax(360px, 520px); padding-bottom: env(safe-area-inset-bottom, 0px); background:
  radial-gradient(circle at 18% 20%, rgba(168,85,247,.48), transparent 28%),
  radial-gradient(circle at 62% 12%, rgba(251,146,60,.24), transparent 23%),
  linear-gradient(135deg, #030108, #13071f 55%, #06030b); }
.login-hero { display: flex; flex-direction: column; justify-content: flex-end; padding: 64px; position: relative; overflow: hidden; }
.login-hero:before { content: ""; position: absolute; inset: 9% 14%; border: 1px solid rgba(255,255,255,.08); border-radius: 36px; transform: rotate(-7deg); background: linear-gradient(135deg, rgba(255,255,255,.07), transparent); }
.login-hero:after { content: ""; position: absolute; inset: auto -12% 8% 12%; height: 210px; border-radius: 999px; background: linear-gradient(90deg, rgba(45,212,191,.34), rgba(168,85,247,.26), rgba(251,146,60,.24)); filter: blur(46px); opacity: .72; animation: loginPulse 8s ease-in-out infinite alternate; }
.login-hero > * { position: relative; z-index: 1; }
.login-orbit { position: absolute; border-radius: 999px; pointer-events: none; z-index: 0; border: 1px solid rgba(125,211,252,.18); background: radial-gradient(circle at 32% 25%, rgba(125,211,252,.26), transparent 58%); filter: drop-shadow(0 18px 42px rgba(14,165,233,.14)); animation: loginFloat 12s ease-in-out infinite alternate; }
.login-orbit.one { width: 240px; height: 240px; top: 12%; right: 18%; }
.login-orbit.two { width: 142px; height: 142px; left: 12%; bottom: 18%; animation-duration: 15s; animation-direction: alternate-reverse; border-color: rgba(251,146,60,.2); background: radial-gradient(circle at 34% 28%, rgba(251,146,60,.22), transparent 62%); }
.brand-mark { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--purple), var(--amber)); color: #08020d; font-weight: 900; letter-spacing: 0; }
.brand-logo { border-radius: 999px; overflow: hidden; padding: 2px; background: radial-gradient(circle at 35% 22%, rgba(125,211,252,.28), rgba(2,6,23,.98) 68%); border: 1px solid rgba(125,211,252,.42); box-shadow: 0 14px 36px rgba(14,165,233,.14); }
.brand-logo img, .logo-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
.login-brand-logo { width: 76px; height: 76px; border-radius: 999px; }
.login-hero h1 { font-size: clamp(42px, 6vw, 82px); margin: 24px 0 12px; letter-spacing: 0; line-height: .95; max-width: 760px; }
.login-hero p { color: #d1d5db; font-size: 18px; max-width: 620px; }
.login-tagline { line-height: 1.36; text-shadow: 0 12px 34px rgba(0,0,0,.32); }
.login-tagline span { color: #fed7aa; font-weight: 850; }
.login-live-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; max-width: 680px; }
.login-live-strip span { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; color: #e5e7eb; background: rgba(15,23,42,.48); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(16px); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.login-live-strip strong { color: #67e8f9; font-size: 11px; letter-spacing: .12em; }
@keyframes loginPulse {
  from { transform: translate3d(-3%, 2%, 0) scale(.98); opacity: .54; }
  to { transform: translate3d(5%, -5%, 0) scale(1.04); opacity: .86; }
}
@keyframes loginFloat {
  from { transform: translate3d(-8px, 10px, 0) rotate(-8deg); }
  to { transform: translate3d(16px, -18px, 0) rotate(8deg); }
}
.login-brand-logo { animation: loginLogoBounce 2.2s ease-in-out infinite; }
.login-shell.motion-orbit .login-brand-logo { animation: loginLogoBounce 2.2s ease-in-out infinite, logoDrift 14s ease-in-out infinite alternate; }
.login-shell.motion-type .login-hero h1 { overflow: hidden; white-space: nowrap; width: max-content; max-width: 100%; animation: loginType 1.8s steps(15, end) both, brandShimmer 4.5s linear infinite; background: linear-gradient(90deg,#fff,#67e8f9,#f59e0b,#fff); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-shell.motion-pulse .login-brand-logo { animation: loginLogoBounce 2.2s ease-in-out infinite, loginLogoPulse 3.2s ease-in-out infinite; }
.login-live-strip:after { content: ""; display: inline-block; width: 68px; height: 32px; border-radius: 999px; background: repeating-linear-gradient(90deg, rgba(103,232,249,.92) 0 5px, transparent 5px 10px); mask: linear-gradient(#000 0 0); animation: eqPulse .9s ease-in-out infinite alternate; opacity: .7; }
@keyframes logoDrift {
  from { transform: translate3d(0, 0, 0) rotate(-3deg); }
  to { transform: translate3d(42px, -20px, 0) rotate(6deg); }
}
@keyframes loginType {
  from { max-width: 0; opacity: .78; }
  to { max-width: 760px; opacity: 1; }
}
@keyframes loginLogoPulse {
  0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 14px 36px rgba(14,165,233,.14); }
  50% { transform: translateY(-5px) scale(1.04); box-shadow: 0 22px 54px rgba(45,212,191,.24); }
}
@keyframes loginLogoBounce {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}
@keyframes brandShimmer {
  from { background-position: 0 50%; }
  to { background-position: 220% 50%; }
}
@keyframes eqPulse {
  from { transform: scaleY(.62); filter: hue-rotate(0deg); }
  to { transform: scaleY(1.05); filter: hue-rotate(35deg); }
}
@media (prefers-reduced-motion: reduce) {
  .login-brand-logo, .login-shell.motion-orbit .login-brand-logo, .login-shell.motion-pulse .login-brand-logo, .login-hero:after, .login-orbit, .login-live-strip:after, .background-fx__beam, .dashboard-party-lights span { animation: none !important; }
  .background-fx__beam { opacity: .08; }
}
.login-panel { display: flex; align-items: center; padding: 36px; background: color-mix(in srgb, var(--panel), transparent 12%); backdrop-filter: blur(18px); border-left: 1px solid var(--line); }
.login-card { width: 100%; background: color-mix(in srgb, var(--panel), transparent 2%); border: 1px solid var(--card-border); border-radius: 24px; box-shadow: var(--shadow); padding: 28px; }
.login-card h2 { margin: 0 0 8px; font-size: 28px; }
.muted { color: var(--muted); }
.user-grid { display: grid; gap: 12px; margin: 22px 0; }
.user-grid.compact-users { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 9px; margin: 18px 0; }
.user-tile { position: relative; text-align: left; color: var(--text); padding: 16px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); transition: .2s; }
.compact-users .user-tile { min-height: 44px; padding: 9px 11px; text-align: center; border-radius: 999px; background: linear-gradient(135deg, color-mix(in srgb, var(--panel-2), #020617 16%), color-mix(in srgb, var(--panel-3), #020617 10%)); }
.compact-users .user-tile strong { font-size: 14px; line-height: 1; }
.user-tile:hover { border-color: rgba(168,85,247,.62); transform: translateY(-1px); }
.user-select-check { position: absolute; top: -8px; right: -6px; display: none; min-width: 30px; min-height: 22px; padding: 0 7px; border-radius: 999px; place-items: center; color: #160b03; background: linear-gradient(135deg, #facc15, #fb923c); border: 2px solid color-mix(in srgb, var(--panel), white 8%); font-size: 10px; font-weight: 950; letter-spacing: .08em; box-shadow: 0 10px 22px rgba(251,146,60,.32); }
.user-tile.active { color: #0f172a; border-color: #f59e0b; background: linear-gradient(135deg, #fde68a, #f97316); box-shadow: 0 0 0 4px rgba(245,158,11,.22), 0 16px 38px rgba(245,158,11,.24); transform: translateY(-2px) scale(1.04); }
.user-tile.active .user-select-check { display: grid; }
.selected-login-user { margin: -6px 0 14px; padding: 10px 12px; border-radius: 14px; color: var(--text); background: linear-gradient(135deg, rgba(251,191,36,.2), rgba(34,211,238,.12)); border: 1px solid rgba(251,191,36,.36); font-weight: 850; text-align: center; }
:root[data-theme="light"] .compact-users .user-tile { background: #ffffff; border-color: rgba(15,23,42,.14); color: #0f172a; box-shadow: 0 8px 18px rgba(15,23,42,.06); }
:root[data-theme="light"] .user-tile.active { color: #111827; border-color: #b45309; background: linear-gradient(135deg, #fff7ed, #fbbf24); box-shadow: 0 0 0 4px rgba(180,83,9,.18), 0 18px 34px rgba(180,83,9,.18); }
:root[data-theme="dark"] .user-tile.active,
:root[data-theme="mix"] .user-tile.active { color: #09090b; }
:root[data-theme="light"] .topbar,
:root[data-theme="light"] .sidebar,
:root[data-theme="light"] .card,
:root[data-theme="light"] .table-wrap,
:root[data-theme="light"] .table-footer,
:root[data-theme="light"] .modal,
:root[data-theme="light"] .field input,
:root[data-theme="light"] .field select,
:root[data-theme="light"] .field textarea {
  color: #0f172a;
}
:root[data-theme="light"] .muted,
:root[data-theme="light"] small,
:root[data-theme="light"] .empty,
:root[data-theme="light"] .table-sort span {
  color: #475569;
}
:root[data-theme="light"] th,
:root[data-theme="light"] td {
  color: #111827;
}
:root[data-theme="light"] thead,
:root[data-theme="light"] .table-wrap thead {
  background: rgba(15,23,42,.055);
}
:root[data-theme="light"] tbody tr:hover {
  background: rgba(59,130,246,.045);
}
:root[data-theme="light"] .btn:not(.primary):not(.danger) {
  background: #eef2f7;
  color: #0f172a;
  border-color: rgba(100,116,139,.32);
}
:root[data-theme="light"] .status,
:root[data-theme="light"] .badge,
:root[data-theme="light"] .checklist-neutral-pill {
  color: #0f172a;
}
.pin-display { display: flex; gap: 8px; margin: 18px 0; }
.pin-dot { height: 46px; flex: 1; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); display: grid; place-items: center; font-size: 22px; }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pad button, .btn { min-height: 42px; border-radius: 12px; background: var(--panel-3); color: var(--text); border: 1px solid var(--line); transition: .18s; padding: 0 14px; display: inline-flex; gap: 8px; align-items: center; justify-content: center; text-decoration: none; }
.btn:hover, .pad button:hover { transform: translateY(-1px); border-color: rgba(168,85,247,.5); }
.btn.primary { background: linear-gradient(135deg, var(--amber), var(--amber-2)); color: #160b03; border-color: transparent; font-weight: 800; }
.btn.success { background: rgba(34,197,94,.16); color: #86efac; border-color: rgba(34,197,94,.35); }
.btn.danger { background: rgba(239,68,68,.13); color: #fca5a5; border-color: rgba(239,68,68,.38); }
.btn.warning { background: rgba(251,146,60,.16); color: #fed7aa; border-color: rgba(251,146,60,.38); }
.btn.ghost { background: transparent; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field span, label { color: color-mix(in srgb, var(--text), white 14%); font-size: 13px; }
input, select, textarea { width: 100%; min-height: 42px; border-radius: 11px; border: 1px solid var(--field-border); background: var(--field-bg); color: var(--field-text); padding: 10px 12px; outline: none; overflow: hidden; }
textarea { min-height: 110px; resize: vertical; }
input[type="color"] { padding: 4px; overflow: hidden; }
input:focus, select:focus, textarea:focus { border-color: rgba(168,85,247,.7); box-shadow: 0 0 0 3px rgba(168,85,247,.15); }
.app-shell { min-height: 100vh; padding-top: calc(66px + env(safe-area-inset-top, 0px)); padding-left: 276px; }
.topbar { position: fixed; inset: 0 0 auto 0; height: calc(66px + env(safe-area-inset-top, 0px)); z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: env(safe-area-inset-top, 0px) calc(22px + env(safe-area-inset-right, 0px)) 0 calc(22px + env(safe-area-inset-left, 0px)); background: var(--topbar-bg); border-bottom: 1px solid var(--topbar-border); backdrop-filter: blur(16px); }
.topbar-left { display: flex; gap: 12px; align-items: center; font-weight: 900; }
.topbar-right { display: flex; align-items: center; gap: 12px; min-width: 560px; }
.mobile-nav-toggle { display: none; width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-size: 20px; font-weight: 900; }
.mobile-nav-backdrop { display: none; position: fixed; inset: 0; z-index: 9; border: 0; background: rgba(0,0,0,.48); backdrop-filter: blur(3px); }
.quick-clock { min-height: 42px; display: inline-flex; align-items: center; gap: 9px; padding: 4px 5px 4px 12px; border-radius: 999px; border: 1px solid rgba(168,85,247,.2); background: linear-gradient(135deg, rgba(168,85,247,.18), rgba(8,3,14,.82)); box-shadow: 0 10px 34px rgba(0,0,0,.26); color: #f3e8ff; white-space: nowrap; }
.quick-clock-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--red); box-shadow: 0 0 18px rgba(239,68,68,.72); }
.quick-clock.live .quick-clock-dot { background: var(--green); box-shadow: 0 0 18px rgba(34,197,94,.72); }
.quick-clock.break .quick-clock-dot { background: var(--amber); box-shadow: 0 0 18px rgba(251,146,60,.72); }
.quick-clock-btn { min-height: 32px; padding: 0 12px; border-radius: 999px; background: linear-gradient(135deg, var(--amber), var(--amber-2)); color: #160b03; font-weight: 850; border: 1px solid transparent; }
.quick-clock-btn:hover { transform: translateY(-1px); }
.quick-clock-btn.danger { background: rgba(239,68,68,.14); color: #fecaca; border-color: rgba(239,68,68,.35); }
.search { position: relative; flex: 1; }
.search input { padding-left: 36px; }
.search:before { content: "⌕"; position: absolute; left: 13px; top: 9px; color: var(--muted); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--purple), var(--amber)); color: #08020d; font-weight: 900; }
.logo-avatar { padding: 2px; overflow: hidden; background: #020617; border: 1px solid rgba(125,211,252,.38); }
.sidebar { position: fixed; top: 66px; bottom: 0; left: 0; width: 276px; overflow-y: auto; background: var(--sidebar-bg); border-right: 1px solid var(--sidebar-border); padding: 14px; scroll-behavior: auto; z-index: 10; }
.section-head { width: 100%; display: flex; justify-content: space-between; align-items: center; color: color-mix(in srgb, var(--text), white 10%); background: transparent; padding: 12px 8px 8px; text-transform: uppercase; font-size: 11px; letter-spacing: .08em; }
.section-arrow { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 8px; color: var(--badge-text); background: color-mix(in srgb, var(--badge-bg), transparent 10%); font-size: 15px; line-height: 1; }
.nav-items { display: grid; gap: 4px; margin-bottom: 8px; }
.nav-item { width: 100%; min-height: 40px; justify-content: flex-start; border-radius: 10px; background: transparent; color: var(--nav-text); border: 1px solid transparent; padding: 0 10px; gap: 10px; }
.nav-icon { width: 22px; min-width: 22px; min-height: 22px; display: inline-grid; place-items: center; color: color-mix(in srgb, var(--nav-text), transparent 20%); font-size: 17px; line-height: 1; }
.nav-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item.active .nav-icon { color: var(--nav-active-text); }
.nav-item:hover { background: var(--nav-hover); }
.nav-item.active { background: var(--nav-active-bg); color: var(--nav-active-text); border-color: var(--nav-active-border); }
.badge { margin-left: auto; min-width: 22px; height: 22px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--badge-bg); color: var(--badge-text); font-size: 12px; }
.page { max-width: 1260px; margin: 0 auto; padding: 24px 24px calc(24px + env(safe-area-inset-bottom, 0px)); animation: fade .16s ease; }
@keyframes fade { from { opacity: .45; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-title h1 { margin: 0; font-size: 28px; letter-spacing: 0; }
.page-title p { margin: 6px 0 0; color: var(--muted); }
.hero-card, .card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: 0 16px 48px rgba(0,0,0,.28); }
.hero-card { padding: 24px; display: grid; grid-template-columns: 1.4fr .8fr; gap: 20px; align-items: center; overflow: hidden; }
.hero-card h2 { margin: 0 0 8px; font-size: 30px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.dashboard-clock { margin-bottom: 16px; min-height: 116px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 20px; border: 1px solid rgba(168,85,247,.22); background: radial-gradient(circle at 16% 0%, rgba(168,85,247,.24), transparent 34%), linear-gradient(135deg, rgba(25,15,37,.94), rgba(8,3,14,.9)); box-shadow: 0 20px 58px rgba(0,0,0,.32); overflow: hidden; }
.dashboard-clock-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dashboard-clock-main .quick-clock-dot { width: 13px; height: 13px; flex: 0 0 auto; }
.dashboard-clock-main p { margin: 0 0 4px; }
.dashboard-clock-main h2 { margin: 0; font-size: 30px; }
.dashboard-clock-time { display: grid; justify-items: end; gap: 2px; padding: 0 16px; border-left: 1px solid rgba(255,255,255,.08); border-right: 1px solid rgba(255,255,255,.08); }
.dashboard-clock-time strong { font-size: 30px; line-height: 1; }
.dashboard-clock-time span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.dashboard-clock-actions { justify-content: flex-end; }
.dashboard-clock.live { border-color: rgba(34,197,94,.22); }
.dashboard-clock.break { border-color: rgba(251,146,60,.24); }
:root[data-theme="light"] .dashboard-clock {
  color: #0f172a;
  border-color: rgba(15, 23, 42, .12);
  background:
    radial-gradient(circle at 16% 0%, rgba(251, 146, 60, .18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(241, 245, 249, .96));
  box-shadow: 0 18px 46px rgba(15, 23, 42, .10);
}
:root[data-theme="light"] .dashboard-clock-main h2,
:root[data-theme="light"] .dashboard-clock-time strong {
  color: #0f172a;
  text-shadow: none;
}
:root[data-theme="light"] .dashboard-clock-main p,
:root[data-theme="light"] .dashboard-clock-time span {
  color: #475569;
}
:root[data-theme="light"] .dashboard-clock-time {
  border-left-color: rgba(15, 23, 42, .12);
  border-right-color: rgba(15, 23, 42, .12);
}
.card { padding: 18px; min-width: 0; }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric { display: grid; gap: 6px; }
.metric strong { font-size: 28px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 14px 0; }
.toolbar-left, .toolbar-right { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.table-wrap { overflow-x: auto; border: 1px solid var(--card-border); border-radius: var(--radius); background: var(--table-bg); }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--text); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; background: var(--table-head-bg); }
td { color: color-mix(in srgb, var(--text), white 10%); }
tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 9px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line); }
.status.green { color: #86efac; background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.26); }
.status.red { color: #fca5a5; background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.26); }
.status.amber { color: #fcd34d; background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.26); }
.swatch { width: 22px; height: 22px; border-radius: 7px; border: 1px solid rgba(255,255,255,.2); display: inline-block; vertical-align: middle; }
.breadcrumb { display: flex; gap: 8px; color: var(--muted); margin-bottom: 14px; font-size: 13px; }
.breadcrumb button { color: #fcd34d; background: transparent; padding: 0; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.tab { min-height: 38px; padding: 0 14px; border-radius: 10px; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.tab.active { background: rgba(168,85,247,.22); border-color: rgba(168,85,247,.5); color: #f3e8ff; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.till { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 18px; align-items: start; }
.pos-shell { min-height: 100vh; padding-bottom: env(safe-area-inset-bottom, 0px); background: linear-gradient(180deg, #eef2ff 0, #f8fafc 18%, #f8fafc 100%); color: #111827; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
.pos-topbar { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: calc(10px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-right, 0px)) 10px calc(16px + env(safe-area-inset-left, 0px)); background: linear-gradient(135deg, #0f172a, #1e1b4b 58%, #111827); color: #fff; box-shadow: 0 18px 36px rgba(15,23,42,.2); }
.pos-brand { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.pos-brand .brand-mark { width: 32px; height: 32px; border-radius: 999px; font-size: 18px; }
.pos-brand strong { font-size: 18px; letter-spacing: 0; }
.pos-top-actions { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.pos-chip, .pos-tab { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.08); color: #f8fafc; font-weight: 850; text-transform: uppercase; backdrop-filter: blur(12px); transition: transform .16s, border-color .16s, background .16s, box-shadow .16s; }
.pos-chip:hover, .pos-tab:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.28); box-shadow: 0 12px 22px rgba(15,23,42,.18); }
.pos-till-tab { min-width: 220px; min-height: 44px; position: relative; display: grid; justify-items: start; gap: 2px; padding: 9px 16px; border-radius: 18px; border: 1px solid rgba(147,197,253,.35); background: linear-gradient(135deg, rgba(37,99,235,.32), rgba(76,29,149,.42)); color: #fff; text-align: left; overflow: hidden; box-shadow: 0 14px 30px rgba(37,99,235,.18); transition: transform .16s, box-shadow .16s, border-color .16s, background .16s; }
.pos-till-tab:hover { transform: translateY(-1px); border-color: rgba(191,219,254,.7); box-shadow: 0 18px 38px rgba(37,99,235,.24); }
.pos-till-tab:before { content: ""; position: absolute; inset: -40% auto auto 68%; width: 118px; height: 118px; border-radius: 999px; background: rgba(255,255,255,.14); filter: blur(4px); }
.pos-till-tab span, .pos-till-tab strong, .pos-till-tab small { position: relative; }
.pos-till-tab span { font-size: 10px; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; color: #bfdbfe; }
.pos-till-tab strong { font-size: 15px; line-height: 1.1; }
.pos-till-tab small { color: rgba(226,232,240,.92); font-size: 11px; line-height: 1.25; }
.pos-till-tab.is-fullscreen { border-color: rgba(125,211,252,.68); background: linear-gradient(135deg, rgba(14,165,233,.62), rgba(79,70,229,.72)); box-shadow: 0 18px 40px rgba(56,189,248,.24); }
.pos-till-tab.is-fullscreen span { color: #e0f2fe; }
.pos-chip.exit { background: rgba(239,68,68,.22); border-color: rgba(248,113,113,.28); }
.pos-chip.online { background: rgba(34,197,94,.22); border-color: rgba(134,239,172,.24); }
.pos-chip.online span { width: 8px; height: 8px; border-radius: 999px; background: #dcfce7; }
.pos-chip.offline { background: rgba(239,68,68,.22); border-color: rgba(252,165,165,.34); }
.pos-chip.offline span { width: 8px; height: 8px; border-radius: 999px; background: #fecaca; }
.pos-chip.queued { background: rgba(245,158,11,.22); border-color: rgba(253,186,116,.34); }
.pos-chip.queued span { width: 8px; height: 8px; border-radius: 999px; background: #fde68a; }
.pos-chip.syncing { background: rgba(59,130,246,.24); border-color: rgba(147,197,253,.34); }
.pos-chip.syncing span { width: 8px; height: 8px; border-radius: 999px; background: #dbeafe; animation: tillSyncPulse 1.1s ease-in-out infinite; }
.pos-chip.cached { background: rgba(148,163,184,.24); border-color: rgba(203,213,225,.26); }
.pos-chip.cached span { width: 8px; height: 8px; border-radius: 999px; background: #e2e8f0; }
.pos-chip.user { text-transform: none; font-weight: 700; }
.pos-chip.special { color: #fff7ed; background: linear-gradient(135deg, #6d28d9, #9f1239); border-color: rgba(251,146,60,.28); box-shadow: 0 0 0 1px rgba(251,146,60,.08), 0 10px 28px rgba(109,40,217,.18); }
.pos-zoom-control { min-height: 34px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(15,23,42,.38); color: #e2e8f0; }
.pos-zoom-control button { width: 28px; height: 28px; min-height: 28px; padding: 0; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-weight: 950; line-height: 1; }
.pos-zoom-control span { min-width: 42px; text-align: center; font-size: 12px; font-weight: 950; }

@media (max-width: 1200px) {
  .topbar-right { min-width: 0; }
  .quick-clock { max-width: 280px; overflow: hidden; }
  .pos-topbar { gap: 10px; }
  .pos-brand { min-width: 180px; }
  .pos-chip, .pos-tab { min-height: 32px; padding: 0 11px; font-size: clamp(11px, 1.15vw, 13px); }
  .pos-till-tab { min-width: clamp(160px, 18vw, 220px); }
  .pos-main { grid-template-columns: minmax(0, 1fr) clamp(320px, 28vw, 380px); }
}
@media (max-width: 900px) {
  .table-mode-context { grid-template-columns: 1fr; }
}
.pos-chip.special.active { color: #160b03; background: linear-gradient(135deg, #f59e0b, #fb923c); border-color: transparent; box-shadow: 0 10px 28px rgba(251,146,60,.28); }
.pos-chip.special.muted { color: #cbd5e1; background: #334155; box-shadow: none; }
.pos-chip.special.locked { opacity: .82; }
.pos-chip.table-mode.active { color: #082f49; background: linear-gradient(135deg, #67e8f9, #facc15); border-color: transparent; box-shadow: 0 10px 28px rgba(103,232,249,.22); }
.pos-tab { min-width: 74px; background: rgba(30,41,59,.82); }
.pos-tab.active { background: linear-gradient(135deg, #2563eb, #3b82f6); border-color: rgba(147,197,253,.55); box-shadow: 0 14px 30px rgba(37,99,235,.22); }
.pos-main { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 380px; }
.pos-workspace { min-width: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: 16px; gap: 16px; background: linear-gradient(180deg, #f8fafc, #f8fafc 72%, #fefbf3); }
.pos-special-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 16px; color: #111827; background: linear-gradient(135deg, #fbbf24, #fb923c); box-shadow: 0 14px 28px rgba(251,146,60,.24); }
.pos-special-banner strong { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.pos-special-banner span { font-weight: 750; }
.pos-workspace .pos-content:first-child { grid-row: 1 / -1; }
.pos-search-row input { min-height: 42px; border-radius: 8px; border: 1px solid #cbd5e1; background: #fff; color: #111827; }
.pos-content { min-height: 0; overflow: auto; padding-right: 2px; }
.table-mode-context { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(170px, 260px) minmax(170px, 240px); gap: 10px; align-items: end; padding: 12px; border: 1px solid rgba(14,165,233,.26); border-radius: 16px; background: linear-gradient(135deg, rgba(14,165,233,.12), rgba(250,204,21,.12)); box-shadow: 0 14px 32px rgba(15,23,42,.08); }
.table-mode-context > div span, .table-mode-context label span { display: block; color: #64748b; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.table-mode-context > div strong { display: block; color: #0f172a; margin-top: 3px; font-size: 14px; }
.table-mode-context input, .table-mode-context select { width: 100%; min-height: 38px; border-radius: 12px; border: 1px solid #cbd5e1; padding: 0 10px; background: rgba(255,255,255,.86); color: #0f172a; font-weight: 700; }
.pos-category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(clamp(118px, calc(150px * var(--till-scale, .94)), 170px), 1fr)); gap: clamp(8px, calc(12px * var(--till-scale, .94)), 12px); align-content: start; }
.pos-category-tile { min-height: clamp(62px, calc(82px * var(--till-scale, .94)), 86px); border-radius: 8px; padding: clamp(8px, calc(12px * var(--till-scale, .94)), 12px); display: grid; place-items: center; gap: 4px; color: #fff; text-align: center; border: 0; background: linear-gradient(135deg, var(--tile), color-mix(in srgb, var(--tile), #111827 18%)); box-shadow: 0 8px 20px rgba(15,23,42,.12); transition: transform .16s, filter .16s; }
.pos-category-tile:hover { transform: translateY(-2px); filter: brightness(1.05); }
.pos-category-tile strong { text-transform: uppercase; font-size: 14px; }
.pos-category-tile span { color: rgba(255,255,255,.78); font-size: 12px; }
.pos-category-tile.deals strong { font-size: 16px; }
.pos-breadcrumb { min-height: 44px; margin: -2px -2px 16px; display: flex; align-items: center; gap: 9px; padding: 0 6px 14px; color: #111827; font-size: 14px; text-transform: uppercase; border-bottom: 1px solid #e2e8f0; }
.pos-breadcrumb button { color: #2563eb; background: transparent; font-weight: 850; padding: 0; min-height: auto; }
.pos-breadcrumb span { color: #94a3b8; }
.pos-breadcrumb strong { color: #111827; font-weight: 900; }
.pos-search-results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -2px 0 16px; padding: 0 4px; color: #475569; }
.pos-search-results-head strong { color: #111827; font-size: 18px; }
.pos-search-results-head span { font-size: 13px; font-weight: 800; }
.pos-product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(clamp(124px, calc(178px * var(--till-scale, .94)), 190px), 1fr)); gap: clamp(8px, calc(12px * var(--till-scale, .94)), 12px); align-content: start; }
.product-btn.pos-product-btn { min-height: clamp(62px, calc(82px * var(--till-scale, .94)), 86px); align-items: center; justify-content: center; text-align: center; gap: clamp(5px, calc(8px * var(--till-scale, .94)), 8px); padding: clamp(8px, calc(13px * var(--till-scale, .94)), 13px); font-size: clamp(12px, calc(14px * var(--till-scale, .94)), 14px); color: #020617; background: #fff; border: 1px solid #dfe3e8; border-radius: 8px; box-shadow: 0 1px 3px rgba(15,23,42,.14); transition: border-color .15s, box-shadow .15s, background .15s, transform .15s; }
.product-btn.pos-product-btn:hover { border-color: #3b82f6; background: #eff6ff; box-shadow: 0 2px 8px rgba(59,130,246,.16); transform: translateY(-1px); }
.product-btn.pos-product-btn small { color: #475569; }
.product-btn.pos-product-btn.table-mode-product { border-color: rgba(14,165,233,.36); background: linear-gradient(180deg, #ecfeff, #fff7ed); }
.product-btn.pos-deal-btn { min-height: 140px; align-items: flex-start; justify-content: space-between; text-align: left; color: #fff; background: linear-gradient(135deg, #7c3aed, #a100d8); border-color: rgba(124,58,237,.42); box-shadow: 0 8px 20px rgba(124,58,237,.22); }
.product-btn.pos-deal-btn:hover { background: linear-gradient(135deg, #7c3aed, #a100d8); border-color: rgba(168,85,247,.75); }
.product-btn.pos-deal-btn small { color: rgba(255,255,255,.86); }
.pos-missing { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid #fb923c; background: linear-gradient(135deg, #fff7ed, #ffedd5); color: #9a3412; font-weight: 900; box-shadow: 0 10px 22px rgba(251,146,60,.14); }
.pos-bill { min-width: 0; display: grid; grid-template-rows: 40px minmax(0, 1fr) auto auto; background: #f1f5f9; border-left: 1px solid #cbd5e1; }
.pos-bill-head { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: #1f2937; color: #fff; text-transform: uppercase; }
.pos-bill-head small { color: #cbd5e1; text-transform: none; }
.pos-bill-body { min-height: 0; overflow: auto; padding: 12px; }
.pos-empty-bill { height: 100%; min-height: 340px; display: grid; place-items: center; align-content: center; gap: 8px; color: #64748b; text-align: center; }
.pos-empty-bill div { color: #cbd5e1; font-size: 52px; line-height: 1; }
.pos-empty-bill strong { color: #475569; }
.pos-empty-bill span { font-size: 13px; }
.pos-bill-row { display: grid; grid-template-columns: 1fr auto 30px; gap: 8px; align-items: center; padding: 10px; margin-bottom: 8px; border-radius: 8px; background: #fff; border: 1px solid #e2e8f0; }
.pos-bill-row small { display: block; color: #64748b; margin-top: 3px; }
.pos-bill-row button { width: 28px; height: 28px; border-radius: 6px; background: #fee2e2; color: #b91c1c; font-weight: 900; }
.bill-table-head { display: grid; grid-template-columns: 1fr 62px 62px; gap: 8px; padding: 0 4px 8px; color: #94a3b8; font-size: 12px; font-weight: 800; }
.pos-bill-row.rich { grid-template-columns: minmax(0, 1fr) 58px 66px; align-items: start; }
.pos-bill-row.rich strong { color: #0f172a; }
.bill-row-tools { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.bill-row-tools button { background: #e2e8f0; color: #0f172a; }
.bill-row-tools .danger-mini { background: #fee2e2; color: #dc2626; }
.till-sync-banner { margin: 0 12px; padding: 12px 14px; border-radius: 16px; font-size: 13px; font-weight: 800; line-height: 1.45; border: 1px solid transparent; }
.till-sync-banner.info { color: #1d4ed8; background: #dbeafe; border-color: #93c5fd; }
.till-sync-banner.success { color: #166534; background: #dcfce7; border-color: #86efac; }
.till-sync-banner.error { color: #991b1b; background: #fee2e2; border-color: #fca5a5; }
.till-sync-banner.muted { color: #475569; background: #e2e8f0; border-color: #cbd5e1; }
.pos-bill-controls { display: grid; gap: 8px; padding: 12px; border-top: 1px solid #e2e8f0; background: #fff; }
.pos-bill-controls select, .pos-bill-controls input { background: #fff; color: #111827; border-color: #cbd5e1; }
textarea { width: 100%; resize: vertical; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); color: var(--text); padding: 12px; font: inherit; }
.pos-bill-controls .total-row { color: #334155; margin: 0; }
.pos-bill-controls .total-row.big { color: #111827; }
.bill-summary { display: grid; gap: 5px; color: #334155; }
.bill-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bill-summary strong { color: #0f172a; text-align: right; }
.bill-note { display: block !important; }
.bill-note strong { display: block; margin-top: 4px; text-align: left; font-size: 12px; color: #64748b; }
.bill-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pos-paybar { display: grid; grid-template-columns: minmax(140px, .85fr) minmax(0, 1.25fr); gap: 10px; padding: 10px; border-top: 1px solid #dbe3ee; background: linear-gradient(180deg, #f8fafc, #eef2f7); }
.pos-delete, .pos-pay { position: relative; min-height: 86px; padding: 14px 16px; display: grid; align-content: center; justify-items: start; gap: 4px; color: #fff; text-align: left; font-weight: 950; border-radius: 20px; overflow: hidden; transition: transform .18s, box-shadow .18s, filter .18s; }
.pos-delete:hover, .pos-pay:hover { transform: translateY(-1px); filter: brightness(1.01); }
.pos-delete span, .pos-pay span { position: relative; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.pos-delete small, .pos-pay small { position: relative; font-size: 12px; line-height: 1.35; text-transform: none; }
.pos-pay strong { position: relative; font-size: 28px; line-height: 1; }
.pos-delete { background: linear-gradient(135deg, #991b1b, #ef4444); box-shadow: 0 18px 36px rgba(239,68,68,.18); }
.pos-delete small { color: rgba(254,226,226,.88); }
.pos-pay { background: linear-gradient(135deg, #0f172a, #1d4ed8 45%, #38bdf8 100%); box-shadow: 0 20px 40px rgba(37,99,235,.24); }
.pos-pay:before { content: ""; position: absolute; inset: -30% auto auto 58%; width: 150px; height: 150px; border-radius: 999px; background: rgba(255,255,255,.22); filter: blur(10px); }
.pos-pay small { color: rgba(219,234,254,.94); }
.pos-pay.ready { animation: payPulse 2.8s ease-in-out infinite; }
.pos-pay:disabled { background: linear-gradient(135deg, #475569, #64748b); box-shadow: none; }
.pos-pay:disabled:before { display: none; }
@keyframes payPulse {
  0%, 100% { box-shadow: 0 18px 36px rgba(37,99,235,.2); }
  50% { box-shadow: 0 24px 54px rgba(37,99,235,.32), 0 0 0 5px rgba(96,165,250,.12); }
}
@keyframes tillSyncPulse {
  0%, 100% { opacity: .65; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.08); }
}
.missing-note-dock { display: grid; gap: 14px; padding: 16px; border-radius: 24px; border: 1px solid #fde68a; background: radial-gradient(circle at 100% 0, rgba(251,191,36,.14), transparent 28%), linear-gradient(135deg, #fffdf5, #fff7ed 45%, #fff); box-shadow: 0 18px 42px rgba(245,158,11,.08); }
.missing-note-dock.open { border-color: #fb923c; box-shadow: 0 24px 50px rgba(251,146,60,.12); }
.missing-note-bar, .missing-note-trigger { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; }
.missing-note-trigger { width: 100%; padding: 16px; border-radius: 20px; border: 1px solid #fed7aa; background: rgba(255,255,255,.86); text-align: left; box-shadow: 0 12px 28px rgba(15,23,42,.06); transition: transform .16s, box-shadow .16s, border-color .16s, background .16s; }
.missing-note-trigger:hover { transform: translateY(-1px); border-color: #fb923c; background: #fffaf4; box-shadow: 0 18px 34px rgba(251,146,60,.14); }
.missing-note-bar.open { padding: 4px 2px 0; }
.missing-note-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, #fb923c, #f59e0b); color: #fff; font-size: 24px; font-weight: 1000; box-shadow: 0 12px 24px rgba(245,158,11,.2); }
.missing-note-copy { display: grid; gap: 4px; min-width: 0; }
.missing-note-kicker { display: inline-flex; align-items: center; width: fit-content; min-height: 24px; padding: 0 9px; border-radius: 999px; color: #9a3412; background: rgba(251,146,60,.14); border: 1px solid rgba(251,146,60,.25); font-size: 11px; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; }
.missing-note-copy strong { color: #111827; font-size: 19px; line-height: 1.1; }
.missing-note-copy small { color: #64748b; line-height: 1.45; }
.missing-note-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.missing-note-meta span { min-height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; border: 1px solid #fed7aa; background: rgba(255,255,255,.88); color: #9a3412; font-size: 12px; font-weight: 900; }
.missing-note-actions { display: flex; justify-content: flex-end; }
.missing-note-cta { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border-radius: 999px; color: #9a3412; background: linear-gradient(135deg, #fff7ed, #ffedd5); border: 1px solid #fb923c; font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: .05em; box-shadow: 0 10px 22px rgba(251,146,60,.12); }
.missing-note-flash { padding: 13px 14px; border-radius: 16px; font-size: 13px; font-weight: 850; line-height: 1.4; }
.missing-note-flash.success { color: #166534; background: #dcfce7; border: 1px solid #86efac; }
.missing-note-flash.error { color: #991b1b; background: #fee2e2; border: 1px solid #fca5a5; }
.missing-note-form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .95fr); gap: 14px; align-items: start; }
.missing-note-form .field span { color: #6b7280; font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: .05em; }
.missing-note-form input, .missing-note-form textarea { background: #fff; color: #111827; border-color: #e2e8f0; box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.missing-note-guidance { display: grid; gap: 10px; padding: 16px; border-radius: 18px; border: 1px solid #e2e8f0; background: rgba(255,255,255,.9); box-shadow: 0 12px 28px rgba(15,23,42,.05); }
.missing-note-guidance strong { color: #111827; font-size: 14px; }
.missing-note-tip { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid #f1f5f9; }
.missing-note-tip:first-of-type { padding-top: 0; border-top: 0; }
.missing-note-tip span { color: #334155; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.missing-note-tip small { color: #64748b; line-height: 1.35; }
.missing-note-form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; }
.missing-note-feed { display: grid; gap: 12px; }
.missing-note-feed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.missing-note-feed-head strong { color: #111827; font-size: 14px; }
.missing-note-feed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.missing-note-card { display: grid; gap: 8px; padding: 14px; border-radius: 18px; border: 1px solid #e2e8f0; background: rgba(255,255,255,.92); box-shadow: 0 12px 26px rgba(15,23,42,.05); }
.missing-note-card strong { color: #111827; font-size: 15px; line-height: 1.2; }
.missing-note-card p { margin: 0; color: #475569; font-size: 13px; line-height: 1.45; }
.missing-note-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #94a3b8; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.missing-note-empty { padding: 14px 16px; border-radius: 18px; border: 1px dashed #fdba74; background: rgba(255,255,255,.72); color: #64748b; text-align: center; }
.modal.modal-till-flow { width: min(560px, calc(100vw - 28px)); padding: 0; overflow: hidden; background: #fff; color: #0f172a; border: 1px solid rgba(15,23,42,.12); border-radius: 22px; box-shadow: 0 28px 90px rgba(2,6,23,.42); }
.till-flow { background: linear-gradient(180deg, #fff7ed 0, #fff 148px, #f8fafc 100%); color: #0f172a; }
.flow-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px 18px; border-bottom: 1px solid #fed7aa; }
.flow-header h2 { margin: 3px 0 5px; color: #0f172a; font-size: 24px; line-height: 1.1; letter-spacing: 0; }
.flow-header p { margin: 0; color: #64748b; line-height: 1.4; }
.flow-kicker { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; color: #9a3412; background: rgba(251,146,60,.14); border: 1px solid rgba(251,146,60,.24); font-size: 11px; font-weight: 950; text-transform: uppercase; }
.flow-count { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; color: #1f2937; background: #fff; border: 1px solid #fed7aa; box-shadow: 0 6px 18px rgba(251,146,60,.13); font-size: 12px; font-weight: 900; }
.flow-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 18px; background: rgba(255,255,255,.82); border-bottom: 1px solid #e2e8f0; }
.flow-steps span { min-height: 34px; display: grid; place-items: center; border-radius: 999px; color: #64748b; background: #f1f5f9; border: 1px solid transparent; font-size: 13px; font-weight: 950; }
.flow-steps span.active { color: #9a3412; background: #ffedd5; border-color: #fdba74; box-shadow: inset 0 0 0 1px rgba(251,146,60,.12); }
.flow-steps span.done { color: #166534; background: #dcfce7; border-color: #86efac; }
.flow-body { display: grid; gap: 14px; padding: 20px 24px 8px; }
.flow-hint { margin: 0; color: #64748b; font-size: 14px; }
.flow-options { display: grid; gap: 12px; }
.flow-option { width: 100%; min-height: 66px; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-radius: 15px; border: 1px solid #dbe3ee; background: #fff; color: #172033; font-weight: 850; box-shadow: 0 1px 2px rgba(15,23,42,.05); transition: transform .16s, border-color .16s, box-shadow .16s, background .16s; }
.flow-option:hover { transform: translateY(-1px); border-color: #fb923c; background: #fffaf4; box-shadow: 0 12px 28px rgba(251,146,60,.14); }
.flow-option.selected, .flow-option:has(input:checked) { border-color: #f97316; background: linear-gradient(135deg, #fff7ed, #fff); box-shadow: 0 0 0 3px rgba(251,146,60,.16), 0 12px 28px rgba(251,146,60,.13); }
.flow-option-copy { min-width: 0; display: grid; gap: 3px; text-align: left; }
.flow-option-copy strong { color: #0f172a; font-size: 16px; }
.flow-option-copy small { color: #64748b; font-size: 12px; font-weight: 750; }
.flow-option-price { flex: 0 0 auto; min-width: 86px; text-align: right; color: #7c2d12; font-size: 18px; font-weight: 950; }
.checkbox-option { justify-content: flex-start; }
.checkbox-option input { flex: 0 0 20px; width: 20px; min-width: 20px; height: 20px; min-height: 20px; margin: 0; padding: 0; appearance: none; border-radius: 999px; border: 2px solid #cbd5e1; background: #fff; box-shadow: inset 0 0 0 4px #fff; }
.checkbox-option input:checked { border-color: #f97316; background: #f97316; }
.checkbox-option .flow-option-price { margin-left: auto; }
.flow-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 10px; padding: 16px 24px 22px; border-top: 1px solid #e2e8f0; background: #fff; }
.modal-till-flow .btn { min-height: 50px; border-radius: 14px; background: #fff; color: #334155; border-color: #cbd5e1; font-weight: 950; box-shadow: 0 1px 2px rgba(15,23,42,.06); }
.modal-till-flow .btn:hover { border-color: #fb923c; box-shadow: 0 10px 24px rgba(15,23,42,.11); }
.modal-till-flow .btn.primary { color: #160b03; background: linear-gradient(135deg, #fb923c, #f59e0b); border-color: transparent; box-shadow: 0 14px 30px rgba(245,158,11,.28); }
.pos-subtabs { display: grid; grid-template-columns: 1fr 1fr; margin: -16px -2px 20px; border-bottom: 1px solid #e2e8f0; }
.pos-subtabs button { min-height: 44px; background: transparent; color: #64748b; border-bottom: 2px solid transparent; border-radius: 0; font-weight: 900; text-transform: uppercase; }
.pos-subtabs button.active { color: #2563eb; border-bottom-color: #2563eb; }
.pos-large-empty { min-height: 360px; display: grid; place-items: center; align-content: center; gap: 8px; color: #94a3b8; }
.pos-order-list, .pos-tabs-list { display: grid; gap: 14px; }
.pos-order-card, .pos-tab-card { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 16px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; color: #0f172a; box-shadow: 0 1px 4px rgba(15,23,42,.08); }
.pos-order-card span, .pos-tab-card span { display: block; margin-top: 4px; color: #64748b; font-size: 12px; }
.pos-tab-card { grid-template-columns: 1fr; }
.pos-tab-card-head { display: flex; justify-content: space-between; gap: 12px; }
.pos-tab-items { display: grid; gap: 5px; padding: 10px; border-radius: 8px; background: #f8fafc; }
.modal.modal-receipt { width: min(720px, calc(100vw - 32px)); padding: 0; overflow: hidden; border: 1px solid rgba(125,211,252,.18); border-radius: 24px; color: #f8fafc; background: radial-gradient(circle at top left, rgba(20,184,166,.18), transparent 34%), radial-gradient(circle at bottom right, rgba(251,146,60,.13), transparent 36%), linear-gradient(180deg, #0b1120, #060a14); box-shadow: 0 34px 110px rgba(0,0,0,.5); }
.receipt-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 26px 28px 18px; border-bottom: 1px solid rgba(148,163,184,.18); }
.receipt-kicker { color: #67e8f9; font-size: 11px; font-weight: 950; text-transform: uppercase; letter-spacing: .16em; }
.modal-receipt h2 { margin: 6px 0 0; color: #fff; font-size: clamp(26px, 4vw, 36px); letter-spacing: -.04em; }
.receipt-total-badge { flex: 0 0 auto; padding: 10px 14px; border-radius: 999px; color: #111827; background: linear-gradient(135deg, #fbbf24, #fb923c); font-weight: 950; box-shadow: 0 14px 34px rgba(251,146,60,.26); }
.receipt-meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 16px 28px; background: rgba(255,255,255,.035); border-bottom: 1px solid rgba(148,163,184,.14); }
.receipt-meta-grid span { min-width: 0; display: grid; gap: 4px; }
.receipt-meta-grid small, .receipt-section-title { color: #94a3b8; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.receipt-meta-grid strong { min-width: 0; color: #e2e8f0; overflow-wrap: anywhere; }
.receipt-preview { display: grid; gap: 10px; padding: 20px 28px 24px; color: #f8fafc; }
.receipt-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid rgba(226,232,240,.16); }
.receipt-item-main { min-width: 0; display: flex; align-items: flex-start; gap: 12px; }
.receipt-qty { flex: 0 0 auto; min-width: 42px; display: inline-flex; justify-content: center; padding: 5px 9px; border-radius: 999px; color: #fef3c7; background: rgba(251,146,60,.16); border: 1px solid rgba(251,146,60,.28); font-size: 12px; font-weight: 950; }
.receipt-item strong { display: block; color: #fff; line-height: 1.3; overflow-wrap: anywhere; }
.receipt-item strong em { color: #bae6fd; font-style: normal; }
.receipt-item small { display: block; margin-top: 4px; color: #a8b3c7; line-height: 1.35; }
.receipt-price { flex: 0 0 auto; color: #fff7ed; font-size: 16px; }
.receipt-summary { display: grid; gap: 4px; margin-top: 6px; padding: 14px 0 0; }
.receipt-line { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(226,232,240,.18); padding: 8px 0; color: #dbeafe; }
.receipt-line strong { color: #fff; }
.receipt-line.deal strong, .receipt-line.split strong { color: #86efac; }
.receipt-line.total { margin-top: 2px; padding-top: 12px; border-bottom: 0; font-size: 22px; font-weight: 950; color: #fff; }
.receipt-empty { padding: 18px; border-radius: 18px; color: #cbd5e1; background: rgba(148,163,184,.1); border: 1px dashed rgba(148,163,184,.28); }
.receipt-actions { justify-content: flex-end; padding: 0 28px 26px; }
.modal-receipt .btn { min-height: 44px; padding: 0 18px; border-radius: 14px; color: #e2e8f0; background: rgba(255,255,255,.08); border-color: rgba(226,232,240,.18); }
.modal-receipt .btn.primary { color: #1f1300; background: linear-gradient(135deg, #fbbf24, #fb923c); border-color: transparent; }
.hidden { display: none !important; }
.till-register-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 6px 12px; border-radius: 999px; border: 1px solid rgba(168,85,247,.25); background: rgba(168,85,247,.13); }
.till-register-pill span { font-weight: 900; }
.till-register-pill small { color: var(--muted); }
.till-register-pill .btn { min-height: 30px; border-radius: 999px; }
.register-select-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px; background: radial-gradient(circle at top, rgba(168,85,247,.18), transparent 32%), radial-gradient(circle at bottom right, rgba(251,146,60,.14), transparent 28%), linear-gradient(180deg, #09090f 0%, #0b1020 100%); }
.register-select-stage { width: min(1120px, 100%); display: grid; gap: 28px; padding: clamp(28px, 4vw, 44px); border-radius: 32px; border: 1px solid rgba(168,85,247,.16); background: linear-gradient(180deg, rgba(12,16,30,.92), rgba(8,11,21,.96)); box-shadow: 0 28px 90px rgba(0,0,0,.34); }
.register-select-hero { text-align: center; max-width: 680px; margin: 0 auto; }
.register-select-hero h1 { margin: 12px 0 10px; font-size: clamp(34px, 5vw, 56px); letter-spacing: 0; }
.register-select-hero p { margin: 0 auto 8px; color: var(--muted); line-height: 1.5; }
.register-select-mark { margin: 0 auto 16px; box-shadow: 0 0 38px rgba(168,85,247,.42); }
.register-mode-switch { margin: 18px auto 0; max-width: 640px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px; border-radius: 18px; border: 1px solid rgba(125,211,252,.18); background: rgba(15,23,42,.68); text-align: left; }
.register-mode-switch div { display: grid; gap: 3px; }
.register-mode-switch strong { color: #f8fafc; }
.register-mode-switch span { color: #bae6fd; font-size: 13px; }
.register-mode-switch.active { border-color: rgba(251,146,60,.56); background: linear-gradient(135deg, rgba(251,146,60,.18), rgba(59,130,246,.14)); box-shadow: 0 0 0 3px rgba(251,146,60,.08); }
.register-grid { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.register-card { min-height: 176px; display: grid; align-content: center; justify-items: center; gap: 8px; padding: 20px; border-radius: 20px; color: var(--text); background: radial-gradient(circle at 50% 0%, rgba(168,85,247,.18), transparent 58%), linear-gradient(135deg, rgba(25,15,37,.96), rgba(10,6,16,.96)); border: 1px solid rgba(168,85,247,.22); box-shadow: 0 18px 50px rgba(0,0,0,.26); transition: transform .18s, border-color .18s, background .18s; }
.register-card:hover { transform: translateY(-3px); border-color: rgba(251,146,60,.55); background: radial-gradient(circle at 50% 0%, rgba(251,146,60,.16), transparent 58%), linear-gradient(135deg, rgba(36,20,51,.98), rgba(10,6,16,.98)); }
.register-card strong { font-size: 22px; }
.register-card span:not(.register-icon), .register-card small { color: var(--muted); }
.register-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; color: #f3e8ff; background: rgba(168,85,247,.18); border: 1px solid rgba(168,85,247,.28); font-size: 22px; }
.register-select-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.register-select-actions .btn { min-width: 180px; min-height: 48px; border-radius: 16px; }
.register-select-empty { min-height: 200px; }
.till-auth-shell { background: radial-gradient(circle at top, rgba(37,99,235,.18), transparent 30%), radial-gradient(circle at bottom right, rgba(251,146,60,.14), transparent 28%), linear-gradient(180deg, #070b16 0%, #0b1020 100%); }
.till-auth-stage { max-width: 920px; }
.till-auth-card { width: 100%; padding: 24px; border-radius: 24px; background: linear-gradient(180deg, rgba(15,23,42,.92), rgba(9,14,24,.94)); border: 1px solid rgba(148,163,184,.18); box-shadow: 0 18px 46px rgba(2,6,23,.24); }
.till-auth-card.pending { border-color: rgba(251,146,60,.26); }
.till-auth-card.rejected { border-color: rgba(239,68,68,.26); }
.device-hero-grid { display: grid; gap: 16px; margin-bottom: 18px; }
.device-hero-card { padding: 24px; display: grid; gap: 18px; }
.device-hero-copy { display: grid; gap: 8px; max-width: 760px; }
.device-hero-copy h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.06; letter-spacing: -.03em; }
.device-hero-copy p { margin: 0; color: var(--muted); line-height: 1.5; }
.device-section { display: grid; gap: 14px; margin-top: 18px; }
.device-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.device-section-head h3 { margin: 0; font-size: 18px; }
.device-section-head span { min-width: 34px; min-height: 34px; display: inline-grid; place-items: center; border-radius: 999px; color: var(--badge-text); background: var(--badge-bg); font-weight: 900; }
.device-approval-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.device-card { padding: 18px; display: grid; gap: 14px; border-radius: 22px; border: 1px solid rgba(148,163,184,.18); background: linear-gradient(180deg, color-mix(in srgb, var(--panel), transparent 0%), color-mix(in srgb, var(--panel-2), transparent 10%)); box-shadow: 0 16px 38px rgba(2,6,23,.1); }
.device-card.pending { border-color: rgba(251,146,60,.26); }
.device-card.approved { border-color: rgba(34,197,94,.24); }
.device-card.rejected { border-color: rgba(239,68,68,.24); }
.device-card.legacy { border-color: rgba(148,163,184,.18); }
.device-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.device-card-kicker { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; color: var(--badge-text); background: var(--badge-bg); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.device-card-head h3 { margin: 8px 0 0; font-size: 20px; line-height: 1.2; }
.device-status-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 900; border: 1px solid rgba(148,163,184,.2); }
.device-status-pill.pending { color: #fbbf24; background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.3); }
.device-status-pill.approved { color: #86efac; background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.3); }
.device-status-pill.rejected { color: #fca5a5; background: rgba(239,68,68,.14); border-color: rgba(239,68,68,.3); }
.device-card-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.device-card-meta div { display: grid; gap: 4px; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--panel-2), transparent 4%); border: 1px solid color-mix(in srgb, var(--line), transparent 10%); }
.device-card-meta span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.device-card-meta strong { font-size: 14px; line-height: 1.35; }
.device-card-note { margin: 0; color: var(--muted); line-height: 1.45; font-size: 13px; word-break: break-word; }
.modal.modal-device-alert { width: min(640px, calc(100vw - 28px)); border-radius: 24px; padding: 24px; }
.device-alert-list { display: grid; gap: 10px; margin: 18px 0 22px; }
.device-alert-item { padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--panel-2), transparent 4%); border: 1px solid color-mix(in srgb, var(--line), transparent 8%); display: grid; gap: 4px; }
.device-alert-item strong { font-size: 15px; }
.device-alert-item span { color: var(--muted); line-height: 1.4; }
.category-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cat-chip { min-height: 38px; border-radius: 999px; padding: 0 14px; color: #fff; border: 1px solid rgba(255,255,255,.14); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.product-btn { min-height: 98px; border-radius: 13px; color: white; text-align: left; padding: 13px; border: 1px solid rgba(255,255,255,.15); display: flex; flex-direction: column; justify-content: space-between; }
.product-btn small { color: rgba(255,255,255,.8); }
.basket { position: sticky; top: 84px; }
.basket-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.total-row { display: flex; justify-content: space-between; margin: 10px 0; color: #e5e7eb; }
.total-row.big { font-size: 24px; font-weight: 900; }
.empty { min-height: 150px; display: grid; place-items: center; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px; }
.chart { height: 220px; display: flex; align-items: end; gap: 8px; padding: 12px; border-radius: 12px; background: rgba(5,1,10,.34); }
.bar { flex: 1; min-width: 18px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--amber), var(--purple)); position: relative; }
.bar span { position: absolute; bottom: -24px; left: 0; right: 0; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.68); display: grid; place-items: center; padding: 20px; }
.modal { width: min(620px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 20px; }
.modal h2 { margin: 0 0 12px; }
.modal.modal-wide { width: min(1100px, calc(100vw - 32px)); }
.guide-preview-shell { min-height: 280px; max-height: min(72vh, 760px); overflow: auto; display: grid; place-items: center; margin: 14px 0; border-radius: 18px; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel-2), transparent 8%); }
.guide-preview-frame { width: 100%; height: min(70vh, 720px); border: 0; background: #fff; }
.guide-preview-media { display: block; max-width: 100%; max-height: min(68vh, 720px); object-fit: contain; border-radius: 14px; }
.guide-preview-audio { width: min(620px, 100%); }
.guide-preview-text { width: 100%; margin: 0; padding: 18px; white-space: pre-wrap; color: var(--text); background: transparent; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.guide-preview-fallback { padding: 36px; text-align: center; }
.admin-notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding: 12px 14px; border-radius: 16px; background: rgba(59,130,246,.12); border: 1px solid rgba(96,165,250,.28); color: var(--text); }
.admin-notice.success { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.3); }
.admin-notice.error { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.32); }
.modal.modal-checklist-assign { width: min(760px, calc(100vw - 28px)); padding: 0; overflow: hidden; border-radius: 24px; border-color: color-mix(in srgb, var(--card-border), transparent 8%); background: radial-gradient(circle at top right, rgba(251,146,60,.14), transparent 34%), linear-gradient(180deg, color-mix(in srgb, var(--panel), transparent 0%), color-mix(in srgb, var(--panel-2), transparent 8%)); box-shadow: 0 28px 90px rgba(2,6,23,.34); }
.modal-checklist-assign h2 { margin: 0; padding: 24px 24px 0; font-size: 28px; line-height: 1.08; letter-spacing: -.03em; }
.modal-checklist-assign .checklist-assign-form { width: 100%; min-width: 0; max-height: calc(90vh - 72px); overflow: auto; padding: 20px 24px 24px; gap: 18px; }
.modal-checklist-assign .field,
.modal-checklist-assign .field.full,
.modal-checklist-assign .checklist-helper-note,
.modal-checklist-assign .actions { min-width: 0; }
.modal-checklist-assign input,
.modal-checklist-assign select,
.modal-checklist-assign textarea { max-width: 100%; min-width: 0; }
.modal-checklist-assign textarea { min-height: 124px; }
.modal-checklist-assign .checklist-helper-note { padding: 16px; border-radius: 18px; background: linear-gradient(135deg, rgba(251,146,60,.1), rgba(59,130,246,.08)); }
.modal-checklist-assign .checklist-assign-list { max-height: min(46vh, 420px); overflow: auto; padding-right: 4px; }
.modal-checklist-assign .actions { padding-top: 2px; justify-content: flex-start; }
.modal.modal-discount { width: min(940px, calc(100vw - 36px)); padding: 0; overflow: hidden; border: 0; border-radius: 22px; background: #fff; color: #172033; box-shadow: 0 34px 110px rgba(0,0,0,.5); }
.discount-modal { min-height: 520px; display: grid; grid-template-rows: auto 1fr auto; background: radial-gradient(circle at 74% 0%, rgba(251,146,60,.18), transparent 34%), linear-gradient(135deg, #fff7ed 0, #fff 38%, #f8fafc 100%); }
.discount-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 24px 26px 20px; border-bottom: 1px solid #fed7aa; }
.discount-head h2 { margin: 7px 0 6px; color: #111827; font-size: 28px; line-height: 1.05; letter-spacing: 0; }
.discount-head p { max-width: 600px; margin: 0; color: #64748b; line-height: 1.45; font-weight: 650; }
.icon-btn { width: 42px; min-width: 42px; height: 42px; min-height: 42px; display: grid; place-items: center; border-radius: 999px; border: 1px solid #e2e8f0; background: rgba(255,255,255,.8); color: #64748b; font-size: 18px; font-weight: 950; box-shadow: 0 8px 22px rgba(15,23,42,.08); }
.icon-btn:hover { border-color: #fb923c; color: #9a3412; background: #fff7ed; }
.discount-layout { display: grid; grid-template-columns: 270px 1fr; gap: 0; min-height: 360px; }
.discount-summary { display: grid; align-content: start; gap: 18px; padding: 26px 24px; color: #d1d5db; background: linear-gradient(180deg, #111827, #0b1220); }
.discount-summary span { color: #9ca3af; font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; }
.discount-summary > strong { color: #fff; font-size: 36px; line-height: 1; }
.discount-summary div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.discount-summary small { color: #9ca3af; font-size: 13px; font-weight: 800; }
.discount-summary b { color: #fed7aa; font-size: 18px; }
.discount-summary p { margin: 4px 0 0; padding: 12px; border-radius: 14px; color: #f8fafc; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); line-height: 1.4; }
.discount-summary.slim { min-height: 220px; border-radius: 18px; }
.discount-content { min-width: 0; display: grid; align-content: start; gap: 18px; padding: 24px 26px; }
.discount-content h3 { margin: 0; color: #1f2937; font-size: 15px; letter-spacing: 0; }
.discount-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.discount-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.discount-choice { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 16px; border-radius: 18px; border: 1px solid #dbe3ee; background: #fff; color: #1f2937; box-shadow: 0 1px 2px rgba(15,23,42,.05); transition: transform .16s, border-color .16s, box-shadow .16s, background .16s; text-align: left; }
.discount-choice:hover { transform: translateY(-2px); border-color: #fb923c; background: #fffaf4; box-shadow: 0 16px 34px rgba(251,146,60,.16); }
.discount-choice.selected { border-color: #f97316; background: linear-gradient(135deg, #fff7ed, #fff); box-shadow: 0 0 0 3px rgba(251,146,60,.18), 0 14px 32px rgba(251,146,60,.16); }
.discount-choice span { min-width: 0; display: grid; gap: 5px; }
.discount-choice strong { color: #0f172a; font-size: 16px; line-height: 1.2; }
.discount-choice small { color: #64748b; font-size: 12px; font-weight: 750; }
.discount-choice b { flex: 0 0 auto; min-width: 94px; padding: 8px 10px; border-radius: 999px; color: #9a3412; background: #ffedd5; border: 1px solid #fed7aa; text-align: center; font-size: 13px; line-height: 1.2; }
.discount-choice.compact { min-height: 74px; }
.discount-choice.compact b { color: #475569; background: #f1f5f9; border-color: #e2e8f0; }
.discount-actions { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 26px 22px; border-top: 1px solid #e2e8f0; background: rgba(255,255,255,.9); }
.modal-discount .btn { min-height: 48px; padding: 0 18px; border-radius: 14px; border-color: #cbd5e1; background: #fff; color: #334155; font-weight: 950; box-shadow: 0 1px 2px rgba(15,23,42,.06); }
.modal-discount .btn:hover { border-color: #fb923c; box-shadow: 0 10px 24px rgba(15,23,42,.11); }
.modal-discount .btn.primary { color: #160b03; background: linear-gradient(135deg, #fb923c, #f59e0b); border-color: transparent; box-shadow: 0 14px 30px rgba(245,158,11,.3); }
.discount-entry { min-height: 430px; }
.discount-entry-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; padding: 24px 26px; align-items: stretch; }
.amount-entry { align-self: center; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 12px 35px rgba(15,23,42,.08); }
.amount-entry > span { color: #475569; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.money-input { margin-top: 12px; min-height: 74px; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-radius: 16px; border: 2px solid #fed7aa; background: #fff7ed; color: #111827; font-size: 34px; font-weight: 950; }
.money-input input { min-height: 68px; padding: 0; border: 0; background: transparent; color: #111827; font-size: 34px; font-weight: 950; text-align: center; box-shadow: none; }
.money-input input:focus { outline: none; box-shadow: none; }
.modal.modal-discount { width: min(1060px, calc(100vw - 36px)); border-radius: 24px; }
.discount-modal { min-height: 560px; background: radial-gradient(circle at 78% -8%, rgba(245,158,11,.24), transparent 30%), linear-gradient(135deg, #fffaf4 0, #ffffff 40%, #f3f6fb 100%); }
.discount-head { padding: 26px 30px 22px; border-bottom-color: #fde2bf; }
.discount-head h2 { font-size: 30px; }
.discount-layout { grid-template-columns: 310px minmax(0, 1fr); }
.discount-summary { padding: 30px 26px; background: radial-gradient(circle at 0 0, rgba(251,146,60,.18), transparent 40%), linear-gradient(180deg, #111827, #080f1f); }
.discount-summary > strong { font-size: 42px; letter-spacing: 0; }
.discount-summary p { font-weight: 850; }
.discount-warning { padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(251,146,60,.32); background: rgba(251,146,60,.12); color: #fed7aa; font-weight: 850; line-height: 1.35; }
.discount-content { gap: 16px; padding: 24px 30px 26px; }
.discount-control-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #f8fafc; border: 1px solid #e2e8f0; color: #64748b; font-weight: 900; }
.discount-control-strip b { color: #0f172a; }
.discount-section-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 2px; }
.discount-section-title h3 { margin: 0; color: #111827; font-size: 15px; }
.discount-section-title span { color: #94a3b8; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.discount-grid { gap: 14px; }
.discount-choice { min-height: 104px; display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(118px, auto); align-items: center; padding: 16px; border-radius: 20px; border-color: #d8e2ef; background: linear-gradient(180deg, #fff, #fbfdff); box-shadow: 0 8px 20px rgba(15,23,42,.07); }
.discount-choice:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(15,23,42,.12), 0 12px 30px rgba(251,146,60,.14); }
.discount-choice.selected { border-color: #f59e0b; background: linear-gradient(135deg, #fff7ed, #fff); box-shadow: 0 0 0 4px rgba(245,158,11,.18), 0 18px 38px rgba(15,23,42,.1); }
.discount-choice:disabled { opacity: .56; cursor: not-allowed; transform: none; box-shadow: none; }
.discount-choice:disabled:hover { transform: none; border-color: #d8e2ef; background: linear-gradient(180deg, #fff, #fbfdff); }
.discount-choice .discount-icon { width: 44px; height: 44px; min-width: 44px; display: grid; place-items: center; border-radius: 16px; color: #7c2d12; background: linear-gradient(135deg, #fed7aa, #fdba74); border: 1px solid #fb923c; font-size: 14px; font-weight: 1000; box-shadow: inset 0 1px rgba(255,255,255,.55); }
.discount-choice.compact .discount-icon { color: #334155; background: linear-gradient(135deg, #e2e8f0, #f8fafc); border-color: #cbd5e1; }
.discount-choice .discount-copy { min-width: 0; display: grid; gap: 5px; }
.discount-choice .discount-copy strong { color: #111827; font-size: 16px; line-height: 1.15; }
.discount-choice .discount-copy small { color: #64748b; font-size: 12px; font-weight: 850; }
.discount-choice .discount-copy em { color: #475569; font-style: normal; font-size: 12px; line-height: 1.25; font-weight: 700; }
.discount-choice .discount-value { min-width: 118px; display: grid; justify-items: end; gap: 6px; }
.discount-choice .discount-value b { min-width: auto; padding: 8px 11px; color: #9a3412; background: #ffedd5; border-color: #fed7aa; font-size: 13px; }
.discount-choice .discount-value small { color: #0f172a; font-size: 12px; font-weight: 950; }
.discount-choice.compact { min-height: 90px; }
.discount-choice.compact .discount-value b { color: #475569; background: #f1f5f9; border-color: #e2e8f0; }
.discount-actions { padding: 18px 30px 24px; background: linear-gradient(180deg, rgba(255,255,255,.88), #fff); }
.modal-discount .btn:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }
.modal-discount .btn:disabled:hover { border-color: #cbd5e1; box-shadow: none; }
.discount-entry-body { grid-template-columns: 310px minmax(0, 1fr); gap: 24px; }
.amount-entry { align-self: stretch; display: grid; align-content: center; gap: 18px; padding: 24px; border-radius: 22px; }
.amount-entry .field { margin: 0; }
.discount-entry-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 16px; background: #f8fafc; border: 1px solid #e2e8f0; }
.discount-entry-note strong { color: #111827; }
.discount-entry-note span { color: #64748b; font-size: 12px; font-weight: 850; }
.modal.modal-payment { width: min(1024px, calc(100vw - 38px)); padding: 0; overflow: hidden; border: 0; background: #fff; color: #111827; border-radius: 14px; box-shadow: 0 34px 110px rgba(0,0,0,.48); }
.payment-flow { min-height: 500px; display: grid; grid-template-columns: 280px minmax(360px, 1fr) 224px; background: #fff; }
.payment-summary { display: grid; align-content: start; gap: 22px; padding: 28px 24px; color: #d1d5db; background: #111827; }
.payment-summary h2 { margin: 0 0 24px; color: #fff; font-size: 22px; }
.payment-due, .payment-line { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #9ca3af; text-transform: uppercase; }
.payment-due { padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.14); }
.payment-due strong { color: #fff; font-size: 24px; }
.payment-line { text-transform: none; }
.payment-line strong { color: #dbeafe; }
.payment-line.tendered { margin-top: 14px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.payment-line.change strong { color: #22c55e; font-size: 22px; }
.payment-cancel { align-self: end; justify-self: center; margin-top: auto; color: #cbd5e1; background: transparent; }
.payment-center { display: grid; align-content: start; gap: 16px; padding: 28px; background: linear-gradient(180deg, #fff, #f8fafc); }
.payment-label { color: #697386; font-size: 13px; font-weight: 850; }
.payment-amount { min-height: 76px; display: grid; place-items: center; border-radius: 12px; border: 1px solid #d8dee8; background: #fff; color: #172033; font-size: 42px; font-weight: 900; box-shadow: inset 0 0 0 1px rgba(15,23,42,.025); }
.quick-cash { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick-cash button, .number-pad button, .coupon-entry button { min-height: 40px; border-radius: 8px; border: 2px solid #bfdbfe; background: #fff; color: #0057ff; font-weight: 900; }
.number-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.number-pad button { min-height: 62px; border-color: #dce3ed; color: #1f2937; font-size: 22px; background: #fff; }
.number-pad button:hover, .quick-cash button:hover { border-color: #fb923c; background: #fff7ed; }
.coupon-entry { display: grid; grid-template-columns: 1fr 98px; gap: 8px; }
.coupon-entry input { min-height: 56px; background: #fff; color: #111827; border-color: #f59e0b; text-align: center; font-weight: 900; letter-spacing: .08em; }
.coupon-entry button { min-height: 56px; border-color: transparent; background: linear-gradient(135deg, #fed7aa, #f59e0b); color: #fff; }
.payment-footnote { align-self: end; justify-self: center; margin-top: 220px; font-size: 12px; }
.payment-methods { display: grid; align-content: start; gap: 14px; padding: 28px 24px; background: #f7f7f8; border-left: 1px solid #e5e7eb; }
.method-stack { display: grid; gap: 12px; }
.method-btn { min-height: 52px; border-radius: 11px; background: #eceef2; color: #334155; font-weight: 900; border: 2px solid transparent; }
.method-btn.active.cash { background: #08a947; color: #fff; border-color: #34d399; }
.method-btn.active.cardpos { background: #2563eb; color: #fff; border-color: #60a5fa; }
.method-btn.active.tab { background: #a21caf; color: #fff; border-color: #e879f9; }
.method-btn.active.coupon { background: #f59e0b; color: #fff; border-color: #fbbf24; }
.method-btn.active.complimentary { background: #7c3aed; color: #fff; border-color: #c084fc; }
.tab-picker { max-height: 178px; overflow: auto; display: grid; gap: 6px; padding-right: 4px; }
.tab-picker > span { color: #64748b; font-size: 12px; font-weight: 850; }
.tab-pick { min-height: 50px; display: grid; justify-items: start; gap: 2px; padding: 8px 10px; border-radius: 8px; background: #fff; color: #1f2937; border: 1px solid #e5e7eb; text-align: left; }
.tab-pick small { color: #059669; }
.tab-pick.active { border-color: #a855f7; box-shadow: 0 0 0 3px rgba(168,85,247,.13); }
.complete-payment { align-self: end; margin-top: auto; min-height: 60px; border-radius: 10px; background: #2563eb; color: #fff; font-size: 18px; font-weight: 950; text-transform: uppercase; }
.complete-payment:disabled, button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.special-event-card { overflow: hidden; }
.special-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(251,146,60,.22); background: linear-gradient(135deg, rgba(251,146,60,.14), rgba(168,85,247,.08)); }
.special-status span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.special-status strong { color: #fed7aa; }
.special-status.live { border-color: rgba(34,197,94,.38); background: linear-gradient(135deg, rgba(34,197,94,.14), rgba(168,85,247,.08)); }
.special-status.live strong { color: #86efac; }
.special-pricing-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; border-color: rgba(125,211,252,.2); background: radial-gradient(circle at 12% 0%, rgba(14,165,233,.14), transparent 32%), var(--card-bg); }
.special-pricing-card h2 { margin: 4px 0 6px; }
.special-pricing-control { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.order-sheet-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; background: radial-gradient(circle at 12% 0%, rgba(251,191,36,.16), transparent 36%), var(--card-bg); }
.order-sheet-hero h2 { margin: 6px 0; font-size: 24px; }
.order-sheet-hero input { max-width: 360px; }
.order-sheet-stack { display: grid; gap: 16px; }
.order-sheet-card { padding: 0; overflow: hidden; }
.order-sheet-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.order-sheet-card-head h3 { margin: 0 0 4px; }
.order-sheet-table { border: 0; border-radius: 0; background: transparent; }
.order-sheet-table table { min-width: 760px; }
.order-stock { display: inline-flex; min-width: 34px; justify-content: center; padding: 4px 8px; border-radius: 999px; }
.order-stock.red { color: #fecaca; background: rgba(239,68,68,.14); }
.order-stock.amber { color: #fde68a; background: rgba(245,158,11,.14); }
.order-stock.green { color: #bbf7d0; background: rgba(34,197,94,.12); }
.btn.compact { min-height: 32px; padding: 0 10px; border-radius: 10px; font-size: 12px; }
.full { grid-column: 1 / -1; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.clock-face { text-align: center; padding: 28px; background: radial-gradient(circle at 50% 0%, rgba(168,85,247,.2), transparent 45%), var(--panel); }
.clock-time { font-size: clamp(42px, 7vw, 76px); font-weight: 900; letter-spacing: 0; }
.event-table-card { padding: 0; overflow: hidden; }
.event-table-card .toolbar { padding: 10px 22px; margin: 0; background: rgba(255,255,255,.025); }
.event-table-card .table-wrap { border: 0; border-radius: 0; }
.event-form { display: grid; gap: 22px; }
.event-form .form-grid { grid-template-columns: minmax(300px, 1fr) minmax(260px, 1fr); align-items: start; }
.event-tag-field { align-self: end; }
.joined-control { display: grid; grid-template-columns: minmax(0, 1fr) 56px; }
.joined-control select { border-radius: 11px 0 0 11px; }
.joined-control .btn { min-height: 42px; border-radius: 0 11px 11px 0; font-size: 22px; }
.ops-record-card { padding: 0; overflow: hidden; }
.ops-record-toolbar { padding: 14px 22px; margin: 0; background: rgba(255,255,255,.025); border-bottom: 1px solid rgba(168,85,247,.12); }
.ops-record-summary { display: grid; gap: 4px; }
.ops-record-summary strong { font-size: 15px; color: #f8fafc; }
.ops-record-card .table-wrap { border: 0; border-radius: 0; background: transparent; }
.ops-record-form { display: grid; gap: 22px; }
.ops-record-form-grid { display: grid; grid-template-columns: minmax(240px, .6fr) minmax(220px, .4fr); gap: 16px; align-items: start; }
.ops-record-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(168,85,247,.16); }
.ops-record-meta span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.ops-record-meta strong { color: #fff; font-size: 15px; }
.ops-record-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 18px; border-top: 1px solid rgba(168,85,247,.12); }
.ops-action-group { gap: 8px; flex-wrap: wrap; }
.severity-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 850; border: 1px solid transparent; }
.severity-pill.low { color: #86efac; background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.28); }
.severity-pill.medium { color: #fcd34d; background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.28); }
.severity-pill.high { color: #fca5a5; background: rgba(239,68,68,.14); border-color: rgba(239,68,68,.28); }
.severity-pill.muted { color: #cbd5e1; background: rgba(148,163,184,.14); border-color: rgba(148,163,184,.22); }
.ops-view-grid { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr); gap: 20px; align-items: start; }
.ops-view-card { min-height: 100%; }
.ops-view-card h3 { margin-top: 0; }
.ops-view-body { margin: 0; color: #dbe4ef; line-height: 1.65; white-space: pre-wrap; }
.tag-pill { display: inline-flex; align-items: center; min-height: 24px; max-width: 100%; padding: 0 8px; border-radius: 7px; color: #fff; border: 1px solid color-mix(in srgb, var(--tag), white 35%); background: color-mix(in srgb, var(--tag), transparent 78%); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 800; }
.event-view-grid { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(520px, 1.35fr); gap: 20px; align-items: start; }
.event-orders-card { grid-column: 1 / -1; padding: 0; overflow: hidden; }
.event-orders-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px; border-bottom: 1px solid rgba(168,85,247,.14); }
.event-orders-head h3 { margin: 0 0 6px; }
.event-orders-head p { margin: 0; max-width: 760px; }
.smart-report-card { overflow: hidden; }
.smart-event-summary { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.smart-event-summary p { margin: 4px 0 0; }
.insight { margin: 14px 0 16px; padding: 12px 14px; border-radius: 12px; color: #bfdbfe; background: rgba(37,99,235,.16); border: 1px solid rgba(59,130,246,.45); font-size: 13px; line-height: 1.4; }
.smart-table table { min-width: 980px; }
.smart-number { color: #60a5fa; font-weight: 800; }
.danger-text { color: #ff5b5b; font-weight: 800; }
.profile-shell { position: relative; }
.avatar-btn { box-shadow: 0 12px 26px rgba(15,23,42,.18); }
.avatar-btn.open { transform: translateY(-1px); box-shadow: 0 18px 36px rgba(15,23,42,.24); }
.profile-name-btn { min-height: 38px; max-width: 180px; padding: 0 13px 0 15px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--card-border), white 10%); background: linear-gradient(135deg, color-mix(in srgb, var(--panel-2), transparent 4%), color-mix(in srgb, var(--panel), transparent 0%)); color: var(--text); font-weight: 900; box-shadow: 0 12px 26px rgba(15,23,42,.18); cursor: pointer; }
.profile-name-btn span { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.profile-name-btn small { color: var(--muted); font-size: 13px; line-height: 1; transform: translateY(-1px); }
.profile-name-btn.open { transform: translateY(-1px); border-color: rgba(251,146,60,.48); box-shadow: 0 18px 36px rgba(15,23,42,.24); }
.profile-menu { position: absolute; top: calc(100% + 12px); right: 0; width: 320px; padding: 16px; display: grid; gap: 14px; border-radius: 20px; background: color-mix(in srgb, var(--panel), transparent 2%); border: 1px solid var(--card-border); box-shadow: 0 24px 60px rgba(2,6,23,.32); z-index: 40; }
.profile-menu-head { display: grid; gap: 3px; }
.profile-menu-head strong { font-size: 16px; }
.profile-menu-head span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.profile-menu-section { display: grid; gap: 10px; }
.profile-menu-section p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.profile-theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.profile-theme-option { min-height: 84px; padding: 12px; display: grid; gap: 6px; align-content: start; border-radius: 16px; background: color-mix(in srgb, var(--panel-2), transparent 8%); border: 1px solid var(--line); color: var(--text); text-align: left; }
.profile-theme-option strong { font-size: 14px; }
.profile-theme-option small { color: var(--muted); line-height: 1.35; }
.profile-theme-option.active { border-color: rgba(251,146,60,.42); background: linear-gradient(135deg, rgba(251,146,60,.16), rgba(168,85,247,.12)); box-shadow: 0 0 0 2px rgba(251,146,60,.12); }
.profile-menu-actions { display: flex; justify-content: flex-end; }
.profile-signout { width: 100%; }
.checklist-hero-grid { display: grid; gap: 18px; margin-bottom: 18px; }
.checklist-hero-panel, .checklist-showcase, .checklist-form-banner, .checklist-run-banner { position: relative; overflow: hidden; padding: 24px; display: grid; gap: 20px; border-radius: 28px; border: 1px solid color-mix(in srgb, var(--card-border), transparent 8%); background: radial-gradient(circle at top right, rgba(251,146,60,.16), transparent 35%), radial-gradient(circle at left bottom, rgba(59,130,246,.14), transparent 38%), linear-gradient(145deg, color-mix(in srgb, var(--panel), transparent 0%), color-mix(in srgb, var(--panel-2), transparent 10%)); box-shadow: 0 24px 70px rgba(2,6,23,.16); }
.checklist-hero-panel.shift { background: radial-gradient(circle at top right, rgba(59,130,246,.18), transparent 33%), radial-gradient(circle at left bottom, rgba(34,197,94,.14), transparent 36%), linear-gradient(145deg, color-mix(in srgb, var(--panel), transparent 0%), color-mix(in srgb, var(--panel-2), transparent 8%)); }
.checklist-showcase.opening, .checklist-form-banner.opening, .checklist-run-banner.opening { background: radial-gradient(circle at top right, rgba(34,197,94,.16), transparent 32%), radial-gradient(circle at left bottom, rgba(251,146,60,.18), transparent 38%), linear-gradient(145deg, color-mix(in srgb, var(--panel), transparent 0%), color-mix(in srgb, var(--panel-2), transparent 8%)); }
.checklist-showcase.closing, .checklist-form-banner.closing, .checklist-run-banner.closing { background: radial-gradient(circle at top right, rgba(79,70,229,.2), transparent 32%), radial-gradient(circle at left bottom, rgba(245,158,11,.16), transparent 38%), linear-gradient(145deg, color-mix(in srgb, var(--panel), transparent 0%), color-mix(in srgb, var(--panel-2), transparent 8%)); }
.checklist-hero-panel > *, .checklist-showcase > *, .checklist-form-banner > *, .checklist-run-banner > * { position: relative; z-index: 1; }
.checklist-hero-copy, .checklist-showcase-copy { display: grid; gap: 10px; max-width: 760px; }
.checklist-hero-kicker { color: color-mix(in srgb, var(--text), white 18%); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .16em; }
.checklist-hero-copy h2, .checklist-showcase h2, .checklist-form-banner h2, .checklist-run-banner h2 { margin: 0; font-size: clamp(28px, 4vw, 38px); line-height: 1.06; letter-spacing: -.03em; }
.checklist-hero-copy p, .checklist-showcase p, .checklist-form-banner p, .checklist-run-banner p { margin: 0; max-width: 720px; color: color-mix(in srgb, var(--text), transparent 28%); line-height: 1.6; }
.checklist-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.checklist-metric-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checklist-metric-card { min-height: 108px; padding: 16px 18px; display: grid; gap: 8px; align-content: start; border-radius: 20px; border: 1px solid rgba(148,163,184,.18); background: color-mix(in srgb, var(--panel-2), transparent 2%); backdrop-filter: blur(18px); }
.checklist-metric-card span { color: color-mix(in srgb, var(--text), transparent 38%); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.checklist-metric-card strong { font-size: clamp(22px, 3vw, 30px); line-height: 1; letter-spacing: -.03em; }
.checklist-metric-card small { color: var(--muted); line-height: 1.45; }
.checklist-metric-card.opening { border-color: rgba(34,197,94,.22); background: linear-gradient(180deg, rgba(34,197,94,.14), rgba(15,23,42,.02)); }
.checklist-metric-card.closing { border-color: rgba(245,158,11,.22); background: linear-gradient(180deg, rgba(245,158,11,.14), rgba(15,23,42,.02)); }
.checklist-metric-card.accent { border-color: rgba(59,130,246,.22); background: linear-gradient(180deg, rgba(59,130,246,.14), rgba(15,23,42,.02)); }
.checklist-gallery, .checklist-history-grid { padding: 20px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.checklist-gallery-card, .checklist-history-card { position: relative; min-height: 100%; padding: 20px; display: grid; gap: 16px; align-content: start; overflow: hidden; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--panel-2), transparent 2%), color-mix(in srgb, var(--panel), transparent 0%)); box-shadow: 0 18px 46px rgba(2,6,23,.12); }
.checklist-gallery-card.opening, .checklist-history-card.opening { border-color: rgba(34,197,94,.24); }
.checklist-gallery-card.closing, .checklist-history-card.closing { border-color: rgba(245,158,11,.24); }
.checklist-gallery-card h3, .checklist-history-card h3 { margin: 0; font-size: 24px; line-height: 1.1; letter-spacing: -.03em; }
.checklist-gallery-card p, .checklist-history-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.checklist-card-kicker-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.checklist-card-preview { display: grid; gap: 10px; }
.checklist-card-preview span { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 11px 12px; border-radius: 16px; border: 1px solid rgba(148,163,184,.14); background: color-mix(in srgb, var(--panel-2), transparent 14%); line-height: 1.45; }
.checklist-card-preview b { min-width: 22px; color: color-mix(in srgb, var(--text), white 16%); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.checklist-card-preview small { color: var(--muted); }
.checklist-card-footer { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.checklist-card-footer .btn { flex: 1 1 140px; justify-content: center; }
.checklist-progress { display: grid; gap: 10px; }
.checklist-progress-copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.checklist-progress-copy strong { font-size: 15px; }
.checklist-progress-copy span { color: var(--muted); font-size: 13px; }
.checklist-progress-track { height: 12px; overflow: hidden; border-radius: 999px; background: rgba(148,163,184,.18); }
.checklist-progress-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #fb923c, #f59e0b, #facc15); box-shadow: 0 0 24px rgba(251,146,60,.28); }
.checklist-history-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 850; }
.checklist-toolbar { margin: 0; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.checklist-summary { display: grid; gap: 4px; }
.checklist-summary strong { font-size: 15px; }
.checklist-list-card { padding: 0; overflow: hidden; border-radius: 28px; background: linear-gradient(180deg, color-mix(in srgb, var(--panel), transparent 0%), color-mix(in srgb, var(--panel-2), transparent 8%)); box-shadow: 0 24px 70px rgba(2,6,23,.12); }
.checklist-type-pill, .checklist-count-pill, .checklist-flag-pill, .checklist-neutral-pill, .checklist-required-mark, .checklist-optional-mark, .checklist-status-pill { min-height: 26px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 850; border: 1px solid transparent; }
.checklist-type-pill.opening { color: #86efac; background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.26); }
.checklist-type-pill.closing { color: #fcd34d; background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.26); }
.checklist-count-pill { color: #9a3412; background: rgba(251,146,60,.14); border-color: rgba(251,146,60,.24); }
.checklist-flag-pill { color: #991b1b; background: rgba(239,68,68,.14); border-color: rgba(239,68,68,.28); }
.checklist-neutral-pill { color: var(--muted); background: rgba(148,163,184,.12); border-color: rgba(148,163,184,.2); }
.checklist-required-mark { color: #111827; background: linear-gradient(135deg, #fde68a, #f59e0b); border-color: transparent; }
.checklist-optional-mark { color: var(--muted); background: rgba(148,163,184,.12); border-color: rgba(148,163,184,.2); }
.checklist-status-pill.pending { color: var(--muted); background: rgba(148,163,184,.12); border-color: rgba(148,163,184,.18); }
.checklist-status-pill.done { color: #166534; background: rgba(34,197,94,.15); border-color: rgba(34,197,94,.3); }
.checklist-status-pill.flagged, .checklist-status-pill.open { color: #9a3412; background: rgba(251,146,60,.16); border-color: rgba(251,146,60,.3); }
.checklist-template-grid { align-items: start; }
.checklist-detail-card, .checklist-builder-card, .checklist-preview-card { display: grid; gap: 16px; align-content: start; }
.checklist-detail-card h3, .checklist-builder-card h3, .checklist-preview-card h3 { margin: 0; }
.checklist-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.checklist-detail-grid span { display: block; color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.checklist-detail-grid strong { display: block; color: var(--text); }
.checklist-helper-note { display: grid; gap: 4px; padding: 14px; border-radius: 16px; border: 1px solid rgba(251,146,60,.22); background: rgba(251,146,60,.08); }
.checklist-helper-note strong { color: var(--text); }
.checklist-helper-note span { color: var(--muted); line-height: 1.4; }
.checklist-builder-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.checklist-builder-head h3 { margin: 0 0 4px; }
.checklist-builder-head p { margin: 0; }
.checklist-item-stack, .checklist-preview-list, .checklist-run-stack, .checklist-mini-task-list, .task-grid, .checklist-assign-list { display: grid; gap: 12px; }
.checklist-item-card, .checklist-preview-item, .checklist-run-item, .task-card, .checklist-assign-item, .checklist-mini-task { border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--panel-2), transparent 6%); }
.checklist-item-card { padding: 14px; display: grid; gap: 14px; }
.checklist-item-card.collapsed .checklist-item-body { display: none; }
.checklist-item-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.checklist-item-title { display: flex; gap: 12px; min-width: 0; }
.checklist-item-title div { min-width: 0; display: grid; gap: 4px; }
.checklist-item-title strong { font-size: 15px; line-height: 1.3; word-break: break-word; }
.checklist-item-title small { color: var(--muted); }
.checklist-item-handle { color: var(--muted); font-size: 22px; line-height: 1; }
.checklist-item-head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.checklist-item-head-actions .btn { min-height: 34px; }
.checklist-item-body { display: grid; gap: 14px; }
.checklist-item-meta { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr); gap: 14px; align-items: end; }
.switch-field { display: grid; gap: 8px; min-width: 0; }
.switch-field > span { color: color-mix(in srgb, var(--text), white 14%); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.toggle-switch { min-height: 74px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--field-border), transparent 8%); background: linear-gradient(180deg, color-mix(in srgb, var(--field-bg), white 2%), color-mix(in srgb, var(--field-bg), transparent 0%)); color: var(--text); cursor: pointer; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease; box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 12px 26px rgba(2,6,23,.08); }
.toggle-switch input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-switch:hover { transform: translateY(-1px); border-color: rgba(251,146,60,.26); box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 16px 32px rgba(2,6,23,.12); }
.toggle-switch-ui { width: 56px; height: 32px; position: relative; border-radius: 999px; background: linear-gradient(180deg, rgba(148,163,184,.42), rgba(100,116,139,.34)); border: 1px solid rgba(148,163,184,.28); transition: .18s ease; box-shadow: inset 0 1px 3px rgba(15,23,42,.18); }
.toggle-switch-ui:before { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 999px; background: linear-gradient(180deg, #fff, #e2e8f0); transition: transform .18s ease, background .18s ease, box-shadow .18s ease; box-shadow: 0 6px 14px rgba(15,23,42,.22); }
.toggle-switch-copy { min-width: 0; display: grid; gap: 4px; }
.toggle-switch-copy strong { font-size: 14px; line-height: 1.25; letter-spacing: -.01em; }
.toggle-switch-copy em { color: var(--muted); font-style: normal; line-height: 1.4; }
.toggle-switch-state { min-width: 92px; min-height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(148,163,184,.2); background: rgba(148,163,184,.12); color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; transition: .18s ease; }
.toggle-switch-state:before { content: "Optional"; }
.toggle-switch input:checked ~ .toggle-switch-ui { background: linear-gradient(135deg, #fb923c, #f59e0b); border-color: rgba(251,146,60,.4); box-shadow: inset 0 1px 2px rgba(255,255,255,.18), 0 0 0 6px rgba(251,146,60,.12); }
.toggle-switch input:checked ~ .toggle-switch-ui:before { transform: translateX(24px); background: linear-gradient(180deg, #fff7ed, #fff); box-shadow: 0 8px 18px rgba(154,52,18,.28); }
.toggle-switch input:checked ~ .toggle-switch-state { color: #111827; background: linear-gradient(135deg, #fde68a, #fb923c); border-color: transparent; box-shadow: 0 10px 24px rgba(251,146,60,.18); }
.toggle-switch input:checked ~ .toggle-switch-state:before { content: "Required"; }
.toggle-switch input:focus-visible ~ .toggle-switch-ui,
.toggle-switch input:focus-visible ~ .toggle-switch-state { outline: none; box-shadow: 0 0 0 3px rgba(59,130,246,.18); }
.checklist-builder-actions { justify-content: flex-start; }
.checklist-preview-item, .checklist-mini-task { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.checklist-preview-item strong, .checklist-mini-task strong { display: block; margin-bottom: 4px; }
.checklist-preview-item small, .checklist-mini-task span { color: var(--muted); line-height: 1.4; }
.checklist-landing { align-content: start; }
.checklist-task-summary, .checklist-shift-card { display: grid; gap: 12px; }
.checklist-task-summary h3 { margin: 0; }
.checklist-start-grid { align-items: stretch; }
.checklist-start-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.checklist-start-card.opening { background: linear-gradient(135deg, rgba(251,146,60,.12), rgba(245,158,11,.08)); }
.checklist-start-card.closing { background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(79,70,229,.1)); }
.checklist-start-icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 20px; color: #fff; font-size: 15px; font-weight: 950; letter-spacing: .06em; text-transform: uppercase; background: linear-gradient(135deg, #fb923c, #f59e0b); }
.checklist-start-card.closing .checklist-start-icon { background: linear-gradient(135deg, #4338ca, #6366f1); }
.checklist-start-copy { display: grid; gap: 8px; }
.checklist-start-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.checklist-start-head h3 { margin: 0; }
.checklist-start-copy p { margin: 0; color: var(--muted); line-height: 1.45; }
.checklist-run-form { display: grid; gap: 16px; }
.checklist-shift-fields, .checklist-run-fields { display: grid; gap: 12px; }
.checklist-run-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .65fr); gap: 16px; align-items: end; }
.checklist-run-summary-copy { display: grid; gap: 4px; }
.checklist-run-summary-copy strong { font-size: 18px; }
.checklist-run-summary-copy span { color: var(--muted); }
.checklist-run-item { padding: 16px; display: grid; gap: 14px; }
.checklist-run-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.checklist-run-head strong { display: block; margin-bottom: 4px; line-height: 1.4; }
.checklist-run-head span { color: var(--muted); font-size: 13px; }
.checklist-run-controls { display: grid; grid-template-columns: minmax(220px, .4fr) minmax(0, .6fr); gap: 14px; align-items: start; }
.checklist-assign-form { width: 100%; min-width: 0; }
.checklist-assign-item { padding: 12px 14px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.checklist-assign-item input { width: 18px; min-width: 18px; height: 18px; min-height: 18px; }
.checklist-assign-item strong { display: block; margin-bottom: 4px; }
.checklist-assign-item small { color: var(--muted); line-height: 1.35; }
.checklist-assign-item.assigned { opacity: .7; }
.task-empty-state { min-height: 280px; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; }
.task-empty-icon { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 22px; background: rgba(148,163,184,.12); color: var(--muted); font-size: 28px; font-weight: 950; }
.task-empty-state strong { font-size: 18px; }
.task-empty-state span { color: var(--muted); max-width: 420px; line-height: 1.45; }
.task-card { padding: 16px; display: grid; gap: 12px; }
.task-card.compact { gap: 10px; }
.task-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.task-card-head strong { font-size: 15px; line-height: 1.35; }
.task-card p { margin: 0; color: var(--muted); line-height: 1.45; }
.task-card-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 800; }
.checklist-detail-card, .checklist-builder-card, .checklist-preview-card, .checklist-task-summary, .checklist-shift-card, .checklist-run-summary { padding: 22px; border-radius: 24px; background: linear-gradient(180deg, color-mix(in srgb, var(--panel), transparent 0%), color-mix(in srgb, var(--panel-2), transparent 8%)); border: 1px solid color-mix(in srgb, var(--line), transparent 10%); box-shadow: 0 18px 46px rgba(2,6,23,.12); }
.checklist-toolbar { background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); }
.checklist-builder-head { align-items: center; }
.checklist-helper-note { border-radius: 18px; }
.checklist-item-card { border-radius: 22px; background: linear-gradient(180deg, color-mix(in srgb, var(--panel-2), transparent 4%), color-mix(in srgb, var(--panel), transparent 2%)); box-shadow: 0 14px 36px rgba(2,6,23,.1); }
.checklist-preview-item, .checklist-mini-task, .task-card { border-radius: 20px; background: linear-gradient(180deg, color-mix(in srgb, var(--panel-2), transparent 4%), color-mix(in srgb, var(--panel), transparent 2%)); box-shadow: 0 14px 34px rgba(2,6,23,.08); }
.checklist-task-summary, .checklist-shift-card { min-height: 100%; }
.checklist-task-summary h3, .checklist-shift-card h3 { font-size: 22px; letter-spacing: -.02em; }
.checklist-start-card { padding: 22px; border-radius: 24px; border: 1px solid rgba(148,163,184,.16); box-shadow: 0 18px 42px rgba(2,6,23,.12); }
.checklist-start-copy small { color: color-mix(in srgb, var(--text), transparent 34%); font-weight: 800; letter-spacing: .02em; }
.checklist-run-summary { grid-template-columns: minmax(0, 1fr) minmax(260px, .65fr); }
.checklist-run-summary-copy strong { font-size: 24px; letter-spacing: -.03em; }
.checklist-run-item { border-radius: 24px; border: 1px solid rgba(148,163,184,.16); background: linear-gradient(180deg, color-mix(in srgb, var(--panel), transparent 0%), color-mix(in srgb, var(--panel-2), transparent 10%)); box-shadow: 0 18px 42px rgba(2,6,23,.1); }
.checklist-run-item.required { border-color: rgba(245,158,11,.22); }
.checklist-run-item.optional { border-color: rgba(148,163,184,.18); }
.checklist-run-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.checklist-run-copy { min-width: 0; display: grid; gap: 8px; }
.checklist-run-copy strong { display: block; font-size: 17px; line-height: 1.45; }
.checklist-run-copy span { color: var(--muted); font-size: 13px; }
.checklist-run-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.bulk-assign-columns { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr); gap: 14px; min-height: 0; }
.bulk-assign-board { display: grid; gap: 12px; max-height: min(58vh, 560px); overflow: auto; padding: 2px 6px 2px 2px; }
.bulk-assign-task-card { display: grid; gap: 12px; padding: 14px; border: 1px solid color-mix(in srgb, var(--border), rgba(251,146,60,.28) 30%); border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--panel), transparent 0%), color-mix(in srgb, var(--panel-2), rgba(251,146,60,.06) 18%)); box-shadow: 0 16px 34px rgba(2,6,23,.12); }
.bulk-assign-task-copy { display: grid; gap: 4px; min-width: 0; }
.bulk-assign-task-copy strong { font-size: 15px; line-height: 1.45; }
.bulk-assign-task-copy small { color: var(--muted); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.bulk-assign-staff-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bulk-assign-chip { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "box name" "box role"; column-gap: 9px; row-gap: 1px; align-items: center; min-width: 138px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 16px; background: color-mix(in srgb, var(--panel-3), transparent 18%); color: var(--text); cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease; }
.bulk-assign-chip:hover { transform: translateY(-1px); border-color: rgba(251,146,60,.48); }
.bulk-assign-chip input { grid-area: box; width: 18px; height: 18px; accent-color: var(--accent); }
.bulk-assign-chip span { grid-area: name; font-weight: 950; }
.bulk-assign-chip small { grid-area: role; color: var(--muted); font-size: 11px; font-weight: 800; }
.bulk-assign-chip:has(input:checked) { border-color: rgba(251,146,60,.72); background: linear-gradient(135deg, rgba(251,146,60,.22), rgba(14,165,233,.12)); box-shadow: 0 14px 26px rgba(251,146,60,.12); }
.bulk-assign-chip:has(input:checked) small { color: color-mix(in srgb, var(--accent), white 18%); }
.checklist-user-assign-list { display: grid; gap: 8px; max-height: min(48vh, 390px); overflow: auto; padding-right: 4px; }
.checklist-user-assign-item { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: color-mix(in srgb, var(--panel-2), transparent 12%); }
.checklist-user-assign-item div { display: grid; gap: 2px; }
.checklist-user-assign-item small { color: var(--muted); }
.task-list-quick { display: grid; gap: 12px; }
.task-quick-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: color-mix(in srgb, var(--panel-2), transparent 10%); }
.task-quick-main { display: grid; gap: 8px; }
.task-quick-main p { margin: 0; color: var(--muted); }
.task-quick-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
@media (max-width: 760px) {
  .bulk-assign-columns,
  .task-quick-row { grid-template-columns: 1fr; }
  .task-quick-actions { justify-content: flex-start; }
  .bulk-assign-board { max-height: 62vh; }
  .bulk-assign-chip { min-width: min(100%, 150px); }
}
.checklist-run-head-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.checklist-run-assign-btn { min-width: 112px; justify-content: center; box-shadow: 0 12px 24px rgba(2,6,23,.1); }
.checklist-item-index { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 16px; color: #111827; font-size: 13px; font-weight: 950; letter-spacing: .1em; background: linear-gradient(135deg, #fde68a, #fb923c); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.checklist-run-item.optional .checklist-item-index { color: var(--text); background: linear-gradient(135deg, rgba(148,163,184,.28), rgba(148,163,184,.14)); }
.checklist-assign-form { width: 100%; min-width: 0; }
.checklist-assign-item { border-radius: 18px; background: color-mix(in srgb, var(--panel-2), transparent 6%); }
.task-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.task-empty-state { border-radius: 28px; background: radial-gradient(circle at top, rgba(59,130,246,.12), transparent 44%), linear-gradient(180deg, color-mix(in srgb, var(--panel), transparent 0%), color-mix(in srgb, var(--panel-2), transparent 10%)); box-shadow: 0 24px 70px rgba(2,6,23,.12); }
.task-empty-icon { width: 78px; height: 78px; border-radius: 26px; background: linear-gradient(135deg, rgba(251,146,60,.18), rgba(59,130,246,.18)); color: color-mix(in srgb, var(--text), white 10%); font-size: 18px; letter-spacing: .12em; }
.task-comment { display: grid; gap: 6px; margin: 12px 0; padding: 12px; border-radius: 16px; background: color-mix(in srgb, var(--panel-3), transparent 20%); border: 1px solid rgba(148,163,184,.16); }
.task-comment span { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.task-comment p { margin: 0; color: var(--text); line-height: 1.45; }
.modal.modal-task-complete { width: min(620px, calc(100vw - 32px)); }
.task-complete-form { gap: 18px; }
.task-complete-form textarea { min-height: 140px; }
.ops-dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 16px; }
.ops-card { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid rgba(148,163,184,.16); background: radial-gradient(circle at top right, rgba(251,146,60,.12), transparent 38%), color-mix(in srgb, var(--panel), transparent 0%); padding: 18px; box-shadow: 0 14px 34px rgba(2,6,23,.1); }
.ops-card small { display: block; margin-bottom: 8px; color: var(--muted); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.ops-card strong { display: block; font-size: 30px; line-height: 1; }
.ops-card span { color: var(--muted); }
.cash-denom-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.cash-denom-grid .field input { text-align: center; font-weight: 850; }
.cash-denom-field small { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.cash-denom-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--panel-2), transparent 10%); }
.cash-denom-summary div { display: grid; gap: 4px; }
.cash-denom-summary span { color: var(--muted); font-size: 12px; }
.cash-denom-summary strong { font-size: 18px; }
.cash-denom-summary p { grid-column: 1 / -1; margin: 0; color: var(--muted); }
.cash-denom-summary.mismatch { border-color: rgba(248,113,113,.55); background: linear-gradient(135deg, rgba(248,113,113,.12), color-mix(in srgb, var(--panel-2), transparent 6%)); }
.cash-denom-summary.mismatch p { color: #fecaca; }
.cash-denom-summary.matched { border-color: rgba(34,197,94,.32); }
.cash-count-override { margin-top: 12px; }
.checklist-run-item.saving { outline: 1px solid rgba(59,130,246,.35); }
.checklist-run-item.save-error { outline: 1px solid rgba(248,113,113,.55); }
.checklist-save-state { min-height: 18px; color: var(--muted); }
.checklist-save-state span { display: none; }
.checklist-run-item[data-save-state="saving"] .checklist-save-state .saving,
.checklist-run-item[data-save-state="saved"] .checklist-save-state .saved,
.checklist-run-item[data-save-state="error"] .checklist-save-state .error { display: inline; }
.checklist-run-item[data-save-state="saved"] .checklist-save-state .saved { color: #22c55e; }
.checklist-run-item[data-save-state="error"] .checklist-save-state .error { color: #fecaca; }
.assign-task-toolbar { display: flex; gap: 8px; justify-content: flex-end; }
.checklist-run-assign-list { max-height: min(48vh, 390px); overflow: auto; padding-right: 4px; }
.sync-status-dot { width: 11px; height: 11px; border-radius: 999px; display: inline-block; background: var(--green); box-shadow: 0 0 18px rgba(34,197,94,.7); }
.sync-status-dot.offline, .sync-status-dot.failed { background: var(--red); box-shadow: 0 0 18px rgba(239,68,68,.7); }
.sync-status-dot.syncing, .sync-status-dot.pending { background: var(--amber); box-shadow: 0 0 18px rgba(251,146,60,.7); }
.exception-row-high { border-left: 4px solid #ef4444; }
.exception-row-medium { border-left: 4px solid #f59e0b; }
.exception-row-low { border-left: 4px solid #22c55e; }
@media (max-width: 980px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-hero { min-height: 360px; padding: 36px; }
  .login-live-strip { margin-top: 18px; }
  .app-shell { padding-left: 0; }
  .mobile-nav-toggle { display: inline-grid; place-items: center; }
  .mobile-nav-backdrop { display: block; }
  .sidebar { top: calc(66px + env(safe-area-inset-top, 0px)); transform: translateX(-100%); transition: transform .2s ease; box-shadow: 20px 0 60px rgba(0,0,0,.3); z-index: 12; }
  .sidebar.open { transform: none; }
  .topbar-right { min-width: 0; gap: 8px; }
  .topbar-left { min-width: 0; }
  .topbar-left > div:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .profile-menu { width: min(320px, calc(100vw - 32px)); right: -6px; }
  .special-pricing-card, .order-sheet-hero, .order-sheet-card-head { flex-direction: column; align-items: stretch; }
  .order-sheet-hero input { max-width: none; }
  .profile-theme-grid, .checklist-detail-grid, .checklist-item-meta, .checklist-run-summary, .checklist-run-controls, .device-card-meta { grid-template-columns: 1fr; }
  .checklist-start-card, .checklist-preview-item, .checklist-mini-task, .task-card-head, .checklist-assign-item, .checklist-item-header, .checklist-builder-head, .checklist-start-head { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; }
  .checklist-item-head-actions, .profile-menu-actions { justify-content: stretch; }
  .checklist-item-head-actions .btn, .profile-signout { width: 100%; }
  .quick-clock span:not(.quick-clock-dot) { display: none; }
  .quick-clock { padding-left: 8px; }
  .quick-clock-btn { padding: 0 10px; }
  .pos-shell { overflow: auto; grid-template-rows: auto minmax(0, 1fr); }
  .pos-topbar { height: auto; min-height: 50px; flex-wrap: wrap; padding: 10px; }
  .pos-brand { min-width: 0; }
  .pos-brand strong { font-size: 16px; }
  .pos-top-actions { flex-wrap: wrap; justify-content: stretch; }
  .pos-till-tab { width: 100%; min-width: 0; }
  .pos-main { grid-template-columns: 1fr; }
  .pos-category-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
  .pos-product-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
  .missing-note-bar, .missing-note-trigger, .missing-note-form { grid-template-columns: 1fr; }
  .missing-note-actions, .missing-note-form-actions { justify-content: stretch; }
  .missing-note-actions .btn, .missing-note-actions .pos-missing, .missing-note-form-actions .btn, .missing-note-cta { width: 100%; }
  .pos-paybar { grid-template-columns: 1fr; }
  .modal.modal-discount { width: min(560px, calc(100vw - 24px)); }
  .discount-layout, .discount-entry-body { grid-template-columns: 1fr; }
  .discount-summary.slim { min-height: auto; }
  .discount-grid, .discount-grid-compact { grid-template-columns: 1fr; }
  .discount-choice { grid-template-columns: 40px minmax(0, 1fr); }
  .discount-choice .discount-value { grid-column: 1 / -1; justify-items: start; min-width: 0; }
  .discount-section-title, .discount-control-strip { align-items: start; flex-direction: column; }
  .discount-modal { min-height: auto; }
  .payment-flow { grid-template-columns: 1fr; max-height: calc(100vh - 38px); overflow: auto; }
  .payment-summary, .payment-center, .payment-methods { padding: 20px; }
  .payment-footnote { margin-top: 12px; }
  .modal.modal-receipt { width: min(560px, calc(100vw - 24px)); }
  .receipt-header, .receipt-meta-grid, .receipt-preview, .receipt-actions { padding-left: 18px; padding-right: 18px; }
  .receipt-header { flex-direction: column; }
  .receipt-meta-grid { grid-template-columns: 1fr 1fr; }
  .receipt-item { align-items: flex-start; }
  .receipt-price { padding-top: 4px; }
  .pos-bill { min-height: 420px; border-left: 0; border-top: 1px solid #cbd5e1; }
  .hero-card, .till, .grid.cols-2, .grid.cols-3, .grid.cols-4, .form-grid { grid-template-columns: 1fr; }
  .register-select-shell { min-height: 100vh; padding: 18px; }
  .register-select-stage { padding: 22px 18px; border-radius: 24px; }
  .register-mode-switch { flex-direction: column; align-items: stretch; text-align: center; }
  .register-select-actions { flex-direction: column; }
  .register-select-actions .btn { width: 100%; }
  .device-card-head, .device-section-head { flex-direction: column; align-items: stretch; }
  .till-register-pill { width: 100%; justify-content: space-between; }
  .dashboard-clock { grid-template-columns: 1fr; align-items: start; }
  .dashboard-clock-time { justify-items: start; padding: 12px 0; border-left: 0; border-right: 0; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
  .dashboard-clock-actions { justify-content: flex-start; }
  .event-form .form-grid, .event-view-grid, .ops-view-grid, .ops-record-form-grid { grid-template-columns: 1fr; }
  .event-orders-head, .smart-event-summary { flex-direction: column; align-items: stretch; }
  .ops-record-toolbar, .ops-record-footer, .ops-record-meta { flex-direction: column; align-items: stretch; }
  .page { padding: 18px; }
}

@media (max-width: 980px) {
  .checklist-metric-grid, .checklist-metric-grid.compact, .checklist-gallery, .checklist-history-grid { grid-template-columns: 1fr; }
  .checklist-hero-panel, .checklist-showcase, .checklist-form-banner, .checklist-run-banner, .checklist-detail-card, .checklist-builder-card, .checklist-preview-card, .checklist-task-summary, .checklist-shift-card, .checklist-run-summary { padding: 20px; }
  .checklist-hero-copy h2, .checklist-showcase h2, .checklist-form-banner h2, .checklist-run-banner h2 { font-size: 28px; }
  .checklist-progress-copy, .checklist-card-kicker-row, .checklist-card-footer { align-items: stretch; }
  .checklist-card-footer .btn { flex-basis: 100%; }
  .checklist-run-head { grid-template-columns: 1fr; }
  .checklist-run-head-tools { justify-content: stretch; }
  .checklist-run-assign-btn { width: 100%; }
  .checklist-item-index { width: 42px; height: 42px; }
  .toggle-switch { grid-template-columns: auto minmax(0, 1fr); }
  .toggle-switch-state { grid-column: 2; justify-self: start; }
}

/* Refined TPOS discount flow */
.modal.modal-discount { width: min(1120px, calc(100vw - 32px)); border-radius: 26px; overflow: hidden; }
.discount-modal.refined { min-height: min(680px, calc(100vh - 40px)); background: linear-gradient(135deg, #fffaf4 0%, #fff 42%, #eef2ff 100%); }
.discount-head.refined { align-items: center; padding: 24px 28px 20px; border-bottom-color: #f1d7b5; }
.discount-head.refined h2 { font-size: 30px; }
.discount-head.refined p { max-width: 620px; }
.discount-layout.refined, .discount-entry-shell { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: 0; }
.discount-summary.refined { background: radial-gradient(circle at 16% 0%, rgba(245,158,11,.24), transparent 38%), linear-gradient(180deg, #111827, #070a12); }
.discount-summary.refined p { display: grid; gap: 4px; }
.discount-summary.refined p small { text-transform: uppercase; letter-spacing: .06em; }
.discount-summary.refined p strong { color: #fff; }
.discount-summary.refined p span { color: #fed7aa; font-weight: 900; }
.discount-content.refined { overflow: auto; max-height: calc(100vh - 190px); }
.discount-grid.refined { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
.discount-choice.refined { min-height: 96px; border-radius: 18px; grid-template-columns: 48px minmax(0, 1fr) auto; }
.discount-choice.refined .discount-icon { width: 48px; height: 48px; min-width: 48px; border-radius: 14px; }
.discount-choice.refined .discount-copy em { display: block; max-width: 360px; }
.discount-choice.refined .discount-value { min-width: 104px; }
.discount-choice.refined .discount-value b { white-space: nowrap; }
.discount-entry.refined { min-height: min(680px, calc(100vh - 40px)); }
.discount-entry-shell { min-height: 0; }
.discount-entry-main { min-width: 0; display: grid; grid-template-columns: minmax(280px, 1fr) 250px; gap: 18px; padding: 24px 28px; align-content: start; overflow: auto; max-height: calc(100vh - 190px); }
.discount-value-card { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(280px, 1fr) minmax(220px, 280px); gap: 16px; padding: 18px; border: 1px solid #e2e8f0; border-radius: 22px; background: rgba(255,255,255,.9); box-shadow: 0 14px 34px rgba(15,23,42,.08); }
.discount-value-card .field { margin: 0; }
.discount-money-input { min-height: 76px; margin-top: 8px; border-color: #fb923c; background: #fff7ed; }
.discount-live-preview { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-content: center; padding: 16px; border-radius: 18px; color: #334155; background: #f8fafc; border: 1px solid #e2e8f0; }
.discount-live-preview span { font-size: 12px; font-weight: 900; text-transform: uppercase; color: #64748b; }
.discount-live-preview strong { color: #0f172a; font-size: 20px; }
.discount-quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.discount-quick-grid button, .discount-keypad button { min-height: 58px; border-radius: 14px; border: 1px solid #cbd5e1; background: #fff; color: #172033; font-size: 17px; font-weight: 950; box-shadow: 0 8px 18px rgba(15,23,42,.06); }
.discount-quick-grid button { color: #9a3412; background: linear-gradient(180deg, #fff7ed, #fff); border-color: #fed7aa; }
.discount-quick-grid button:hover, .discount-keypad button:hover { border-color: #fb923c; transform: translateY(-1px); }
.discount-keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.discount-keypad .wide { grid-column: span 1; font-size: 14px; color: #475569; background: #f1f5f9; }
.discount-entry-main .discount-entry-note { grid-column: 1 / -1; margin-top: 2px; }
@media (max-width: 980px) {
  .modal.modal-discount { width: min(560px, calc(100vw - 24px)); }
  .discount-layout.refined, .discount-entry-shell { grid-template-columns: 1fr; }
  .discount-content.refined, .discount-entry-main { max-height: none; overflow: visible; }
  .discount-grid.refined { grid-template-columns: 1fr; }
  .discount-choice.refined { grid-template-columns: 44px minmax(0, 1fr); }
  .discount-entry-main { grid-template-columns: 1fr; padding: 18px; }
  .discount-value-card { grid-template-columns: 1fr; }
}

/* Platform polish pass */
.brand-logo { overflow: hidden; border-radius: 999px; padding: 2px; background: radial-gradient(circle at 35% 20%, rgba(125, 211, 252, .55), rgba(15, 23, 42, .98) 62%); border: 1px solid rgba(125, 211, 252, .5); box-shadow: 0 0 0 4px rgba(125, 211, 252, .08), 0 14px 34px rgba(2, 6, 23, .28); }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.topbar-logo { width: 42px; height: 42px; min-width: 42px; }
.pos-logo { width: 36px; height: 36px; min-width: 36px; }
.register-select-mark { width: 82px; height: 82px; margin: 0 auto 16px; }
.avatar { background: radial-gradient(circle at 35% 25%, #7dd3fc, #0b1120 70%); color: #ecfeff; border: 1px solid rgba(125, 211, 252, .42); }
.pos-profile-shell .profile-menu { color: var(--text); text-transform: none; }
.pos-chip.user { background: rgba(8, 13, 26, .82); color: #ffffff; border-color: rgba(191, 219, 254, .45); text-shadow: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 24px rgba(2,6,23,.24); }
:root[data-theme="light"] .pos-chip.user { color: #ffffff; background: #0f172a; border-color: rgba(37, 99, 235, .42); }
.pos-till-tab strong { color: #ffffff; text-shadow: 0 1px 2px rgba(15,23,42,.58); }
:root[data-theme="light"] .pos-till-tab { background: linear-gradient(135deg, #1d4ed8, #312e81); border-color: rgba(30,64,175,.58); box-shadow: 0 14px 30px rgba(30,64,175,.22); }
:root[data-theme="light"] .pos-till-tab span,
:root[data-theme="light"] .pos-till-tab small { color: #dbeafe; }
.register-select-shell { color: #f8fafc; }
.register-select-stage > .register-grid,
.register-select-stage > .empty.register-select-empty { display: none; }
.register-layout-guide { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); gap: 18px; align-items: stretch; }
.single-register-guide { grid-template-columns: 1fr; }
.register-plan { position: relative; min-height: 360px; padding: 20px; overflow: hidden; border-radius: 28px; border: 1px solid rgba(125, 211, 252, .18); background: radial-gradient(circle at 22% 10%, rgba(125, 211, 252, .18), transparent 26%), linear-gradient(145deg, rgba(15, 23, 42, .96), rgba(3, 7, 18, .96)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 22px 60px rgba(2,6,23,.26); }
.register-plan-bar { height: 74px; display: grid; place-items: center; border-radius: 22px; color: #0f172a; background: linear-gradient(135deg, #67e8f9, #fde68a); font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: .18em; }
.register-plan-floor { min-height: 210px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; align-content: center; padding: 24px 8px; }
.register-plan-till { min-height: 132px; display: grid; gap: 8px; align-content: center; justify-items: start; padding: 16px; border-radius: 20px; text-align: left; color: #ecfeff; background: linear-gradient(180deg, rgba(125,211,252,.16), rgba(255,255,255,.04)); border: 1px solid rgba(125,211,252,.24); box-shadow: 0 16px 34px rgba(2,6,23,.22); }
.register-plan-till:hover { transform: translateY(-3px); border-color: rgba(251,191,36,.7); background: linear-gradient(180deg, rgba(251,191,36,.18), rgba(125,211,252,.08)); }
.register-plan-till span { color: #fde68a; font-size: 11px; font-weight: 950; text-transform: uppercase; letter-spacing: .12em; }
.register-plan-till strong { font-size: 18px; }
.register-plan-till small { color: #bae6fd; line-height: 1.35; }
.register-plan-actions { width: 100%; display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 4px; }
.register-plan-actions .btn { width: 100%; min-height: 38px; border-radius: 13px; padding-inline: 10px; }
.register-plan-actions .btn:not(.primary) { color: #e0f2fe; border-color: rgba(125,211,252,.28); background: rgba(15,23,42,.82); }
.register-plan-actions .btn:not(.primary):hover { color: #0f172a; background: linear-gradient(135deg, #67e8f9, #fde68a); border-color: transparent; }
.register-plan-door { display: grid; place-items: center; min-height: 44px; border-radius: 999px; color: #c4b5fd; border: 1px dashed rgba(196,181,253,.35); background: rgba(255,255,255,.03); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.register-card-list { align-self: stretch; grid-template-columns: 1fr; max-height: 360px; overflow: auto; padding-right: 4px; }
.register-card-list .register-card { min-height: 116px; justify-items: start; text-align: left; }
.register-card-list .register-icon { border-radius: 999px; font-size: 18px; font-weight: 950; }
.missing-note-dock:not(.open) { padding: 8px; border-radius: 18px; }
.missing-note-dock:not(.open) .missing-note-trigger { min-height: 54px; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 8px 10px; border-radius: 14px; }
.missing-note-dock:not(.open) .missing-note-icon { width: 34px; height: 34px; border-radius: 12px; font-size: 16px; }
.missing-note-dock:not(.open) .missing-note-copy { gap: 1px; }
.missing-note-dock:not(.open) .missing-note-copy strong { font-size: 14px; }
.missing-note-dock:not(.open) .missing-note-copy small { display: none; }
.missing-note-dock:not(.open) .missing-note-kicker { min-height: auto; padding: 0; border: 0; background: transparent; color: #b45309; font-size: 9px; }
.missing-note-dock:not(.open) .missing-note-meta,
.missing-note-dock:not(.open) .missing-note-feed,
.missing-note-dock:not(.open) .missing-note-empty { display: none; }
.missing-note-dock:not(.open) .missing-note-cta { min-height: 34px; padding: 0 12px; font-size: 10px; }
.missing-note-form textarea { min-height: 82px; }
.date-time-field { min-width: min(100%, 320px); }
.date-time-control { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(112px, .75fr); gap: 8px; padding: 4px; border-radius: 14px; background: color-mix(in srgb, var(--field-bg), var(--panel-2) 18%); border: 1px solid var(--field-border); }
.date-time-control input { min-height: 38px; border: 0; box-shadow: none; background: color-mix(in srgb, var(--field-bg), transparent 0%); }
.data-table table { min-width: 920px; }
.table-wrap[data-table-id="exception-report"] table { table-layout: fixed; min-width: 980px; border-collapse: collapse; border-spacing: 0; }
.table-wrap[data-table-id="exception-report"] th,
.table-wrap[data-table-id="exception-report"] td { box-sizing: border-box; height: 56px; padding-top: 10px; padding-bottom: 10px; vertical-align: middle; white-space: nowrap; border-bottom: 1px solid var(--line); }
.table-wrap[data-table-id="exception-report"] tbody tr { height: 56px; }
.table-wrap[data-table-id="exception-report"] tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.table-wrap[data-table-id="exception-report"] th:nth-child(1) { width: 120px; }
.table-wrap[data-table-id="exception-report"] th:nth-child(2) { width: 126px; }
.table-wrap[data-table-id="exception-report"] th:nth-child(3),
.table-wrap[data-table-id="exception-report"] th:nth-child(4) { width: 110px; }
.table-wrap[data-table-id="exception-report"] th:nth-child(5) { width: 150px; }
.table-wrap[data-table-id="exception-report"] th:nth-child(6) { width: 108px; }
.table-wrap[data-table-id="exception-report"] th:nth-child(7) { width: 160px; }
.table-wrap[data-table-id="exception-report"] th:nth-child(8) { width: 128px; text-align: right; }
.table-wrap[data-table-id="exception-report"] td.actions { min-width: 128px; padding: 8px 12px; text-align: right; vertical-align: middle; border-bottom: 1px solid var(--line); }
.table-wrap[data-table-id="exception-report"] td.actions .btn { min-height: 34px; margin: 0; padding: 0 14px; line-height: 1; white-space: nowrap; }
.table-sort { width: 100%; display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; padding: 0; color: inherit; background: transparent; text-align: left; font-size: inherit; font-weight: 950; text-transform: inherit; letter-spacing: inherit; }
.table-sort span { min-height: 22px; padding: 0 7px; display: inline-flex; align-items: center; border-radius: 999px; color: var(--muted); background: color-mix(in srgb, var(--panel-2), transparent 22%); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.table-sort.active span { color: #111827; background: linear-gradient(135deg, #fde68a, #fb923c); }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--card-border); background: color-mix(in srgb, var(--panel), transparent 4%); }
.table-footer-controls, .pager, .per-page-control { display: flex; align-items: center; gap: 8px; }
.per-page-control { min-width: 0; }
.per-page-control span { color: var(--muted); font-size: 12px; font-weight: 850; white-space: nowrap; }
.per-page-control select { min-height: 36px; width: 78px; }
.pager .btn { min-height: 34px; padding: 0 11px; border-radius: 10px; }
.pager-gap { color: var(--muted); padding: 0 4px; }
.user-overview-grid, .tabs-overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.bundle-form-grid { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(420px, 1.15fr); gap: 18px; align-items: start; }
.bundle-details-card, .bundle-builder-card { padding: 22px; border-radius: 24px; display: grid; gap: 18px; background: radial-gradient(circle at top left, rgba(245,158,11,.10), transparent 36%), color-mix(in srgb, var(--panel), transparent 0%); }
.bundle-details-card h3, .bundle-builder-card h3 { margin: 0; }
.bundle-live-summary { display: grid; gap: 10px; padding: 14px; border-radius: 18px; border: 1px solid rgba(245,158,11,.22); background: linear-gradient(135deg, rgba(245,158,11,.12), rgba(124,58,237,.08)); }
.bundle-live-summary div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bundle-live-summary span, .deal-row-preview span { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.bundle-live-summary strong { color: var(--text); }
.bundle-builder-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.bundle-builder-head p { margin: 4px 0 0; }
.deal-row-stack { display: grid; gap: 12px; }
.bundle-builder-row { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: color-mix(in srgb, var(--panel-2), transparent 5%); box-shadow: 0 14px 34px rgba(2,6,23,.08); }
.deal-row-main { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(92px, .35fr) auto; gap: 12px; align-items: end; }
.deal-row-preview { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(148,163,184,.10); color: var(--muted); }
.deal-row-preview strong { color: var(--text); }
.deal-row-preview em { color: #fbbf24; font-style: normal; font-weight: 900; }
.bundle-form-actions { grid-column: 1 / -1; }
.pos-deal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.pos-deal-card { min-height: 240px; display: grid; align-content: space-between; gap: 16px; padding: 18px; border-radius: 24px; border: 1px solid rgba(245,158,11,.26); background: radial-gradient(circle at top left, rgba(245,158,11,.28), transparent 36%), linear-gradient(135deg, #17111e, #080a12); box-shadow: 0 18px 46px rgba(124,58,237,.22); color: #fff; }
.pos-deal-card-head { display: grid; gap: 8px; }
.pos-deal-card-head span { color: #fcd34d; font-size: 12px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.pos-deal-card-head strong { font-size: 22px; line-height: 1.05; }
.pos-deal-card-head small { color: rgba(255,255,255,.72); line-height: 1.45; }
.pos-deal-price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pos-deal-price-row div { padding: 12px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.pos-deal-price-row span { display: block; color: rgba(255,255,255,.64); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.pos-deal-price-row strong { display: block; margin-top: 4px; font-size: 20px; color: #fff7ed; }
.bundle-applied-list { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; padding: 9px 0; border-top: 1px dashed rgba(148,163,184,.35); border-bottom: 1px dashed rgba(148,163,184,.35); color: #166534; }
.bundle-applied-list span { font-size: 12px; line-height: 1.35; }
.bundle-applied-list strong { color: #166534; }
.payment-bundle-stack { display: grid; gap: 5px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.10); border-bottom: 1px solid rgba(255,255,255,.10); }
.payment-line.bundle strong { color: #86efac; }
.movement-filter-card { margin-bottom: 14px; padding: 18px; border-radius: 22px; }
.movement-positive, .movement-negative, .movement-neutral { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; font-weight: 950; }
.movement-positive { color: #166534; background: rgba(34,197,94,.16); border: 1px solid rgba(34,197,94,.28); }
.movement-negative { color: #991b1b; background: rgba(239,68,68,.16); border: 1px solid rgba(239,68,68,.28); }
.movement-neutral { color: #92400e; background: rgba(245,158,11,.14); border: 1px solid rgba(245,158,11,.24); }
.movement-note { display: inline-block; max-width: 260px; white-space: normal; line-height: 1.35; color: var(--muted); }
.link-btn { border: 0; background: transparent; color: #f59e0b; font-weight: 900; cursor: pointer; padding: 0; }
.split-payment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.split-payment-card { display: grid; gap: 8px; padding: 14px; border-radius: 18px; border: 1px solid #cbd5e1; background: #fff; box-shadow: 0 12px 28px rgba(15,23,42,.08); }
.split-payment-card.active { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.16), 0 14px 30px rgba(245,158,11,.10); }
.split-payment-card span { color: #475569; font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: .06em; }
.split-payment-card input { min-height: 54px; border-radius: 14px; font-size: 22px; font-weight: 950; }
.split-payment-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.split-payment-actions button { min-height: 42px; padding: 0 12px; border-radius: 999px; border: 1px solid #fed7aa; color: #9a3412; background: #fff7ed; font-weight: 950; }
.tab-selected-summary strong { color: #7c3aed; }
.selected-tab-banner { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 999px; color: #4c1d95; background: linear-gradient(135deg, rgba(221,214,254,.95), rgba(254,243,199,.95)); border: 1px solid rgba(124,58,237,.22); font-size: 12px; font-weight: 950; }
.selected-tab-banner.compact { margin-left: 8px; min-height: 24px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.pos-tab-card.selected, .tab-pick.active { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.18), 0 18px 42px rgba(124,58,237,.18); }
@media (max-width: 980px) {
  .register-layout-guide { grid-template-columns: 1fr; }
  .register-plan { min-height: auto; }
  .register-plan-floor { grid-template-columns: 1fr; }
  .table-footer { align-items: stretch; flex-direction: column; }
  .table-footer-controls { justify-content: space-between; flex-wrap: wrap; }
  .pager { overflow-x: auto; max-width: 100%; padding-bottom: 2px; }
  .user-overview-grid, .tabs-overview-grid { grid-template-columns: 1fr; }
  .date-time-control { grid-template-columns: 1fr; }
  .bundle-form-grid, .deal-row-main, .bundle-builder-head, .deal-row-preview { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; }
  .pos-deal-grid { grid-template-columns: 1fr; }
  .split-payment-grid { grid-template-columns: 1fr; }
}

/* Fixed till canvas with a compact missing-product note and movable bill on smaller screens. */
body:has(.pos-shell) { overflow: hidden; }
.pos-shell { height: 100dvh; min-height: 0; overflow: hidden; }
.pos-main { min-height: 0; overflow: hidden; grid-template-columns: minmax(0, 1fr) clamp(330px, 24vw, 410px); }
.pos-workspace { min-height: 0; overflow: hidden; }
.pos-content { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.pos-bill { height: 100%; min-height: 0; max-height: 100%; overflow: hidden; }
.pos-bill-head { gap: 10px; min-width: 0; }
.pos-bill-head div { min-width: 0; display: grid; gap: 2px; }
.bill-drag-cue { display: none; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(255,255,255,.12); color: #dbeafe; font-size: 10px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

.missing-note-dock.open.compact {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 36;
  width: min(420px, calc(100vw - 24px));
  padding: 12px;
  gap: 10px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,251,235,.98), rgba(255,247,237,.98));
  box-shadow: 0 22px 70px rgba(124,45,18,.22), 0 0 0 1px rgba(251,146,60,.18);
}
.missing-note-form.compact { grid-template-columns: 1fr; gap: 10px; }
.missing-note-form.compact .field { margin: 0; }
.missing-note-form.compact input { min-height: 40px; }
.missing-note-form.compact textarea { min-height: 58px; max-height: 96px; }
.missing-note-mini-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.missing-note-mini-head .missing-note-icon { width: 38px; height: 38px; border-radius: 14px; font-size: 18px; }
.missing-note-mini-head strong { display: block; color: #111827; font-size: 15px; line-height: 1.15; }
.missing-note-mini-head small { display: block; color: #9a3412; font-size: 12px; line-height: 1.3; }
.missing-note-close { width: 34px; height: 34px; border-radius: 999px; color: #9a3412; background: rgba(251,146,60,.14); border: 1px solid rgba(251,146,60,.22); font-weight: 950; }
.missing-note-dock.open.compact .missing-note-form-actions { justify-content: flex-end; }
.missing-note-dock.open.compact .missing-note-flash { padding: 10px 11px; border-radius: 14px; font-size: 12px; }

@media (max-width: 1180px) {
  .pos-category-grid, .pos-product-grid { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
}

@media (max-width: 980px) {
  .pos-shell { height: 100dvh; min-height: 0; overflow: hidden; grid-template-rows: auto minmax(0, 1fr); }
  .pos-topbar { flex: 0 0 auto; max-height: 36dvh; overflow: auto; }
  .pos-main { position: relative; grid-template-columns: 1fr; min-height: 0; overflow: hidden; }
  .pos-workspace { min-height: 0; padding: 10px; gap: 10px; }
  .pos-content { min-height: 0; overflow: auto; padding-bottom: 150px; }
  .pos-category-grid, .pos-product-grid { grid-template-columns: repeat(2, minmax(132px, 1fr)); gap: 10px; }
  .pos-category-tile, .product-btn.pos-product-btn { min-height: 72px; }
  .pos-bill {
    position: fixed;
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    width: min(420px, calc(100vw - 20px));
    height: min(72dvh, 620px);
    min-height: 320px;
    max-height: calc(100dvh - 20px);
    border: 1px solid #cbd5e1;
    border-radius: 22px;
    box-shadow: 0 26px 90px rgba(2,6,23,.34);
    z-index: 35;
    resize: both;
    background: #f8fafc;
  }
  .pos-bill-head { min-height: 42px; cursor: grab; touch-action: none; border-radius: 20px 20px 0 0; }
  .pos-bill.dragging .pos-bill-head { cursor: grabbing; }
  .bill-drag-cue { display: inline-flex; }
  .pos-paybar { grid-template-columns: minmax(118px, .8fr) minmax(0, 1.2fr); }
  .pos-delete, .pos-pay { min-height: 74px; }
  .pos-pay strong { font-size: 24px; }
  .missing-note-dock:not(.open) { max-width: min(100%, 360px); }
  .missing-note-dock.open.compact { left: 10px; right: 10px; bottom: 10px; width: auto; }
}

@media (max-width: 540px) {
  .pos-top-actions { gap: 6px; }
  .pos-chip, .pos-tab { min-height: 32px; padding: 0 10px; font-size: 11px; }
  .pos-till-tab { min-height: 40px; padding: 8px 12px; }
  .pos-category-grid, .pos-product-grid { grid-template-columns: repeat(2, minmax(110px, 1fr)); gap: 8px; }
  .pos-category-tile strong { font-size: 12px; }
  .product-btn.pos-product-btn { min-height: 68px; padding: 9px; }
  .pos-bill {
    width: calc(100vw - 16px);
    height: min(64dvh, 560px);
    right: 8px;
    bottom: 8px;
    resize: vertical;
  }
  .bill-drag-cue { font-size: 9px; padding: 0 7px; }
  .pos-paybar { grid-template-columns: 1fr; }
  .missing-note-mini-head { grid-template-columns: minmax(0, 1fr) auto; }
  .missing-note-mini-head .missing-note-icon { display: none; }
}

.pricing-live-card { align-items: stretch; }
.pricing-template-form { display: grid; gap: 16px; }
.pricing-template-details h3, .pricing-overrides-card h3 { margin-top: 0; }
.pricing-overrides-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.pricing-override-filters { display: grid; grid-template-columns: minmax(180px, 260px) minmax(160px, 220px); gap: 10px; min-width: min(520px, 100%); }
.pricing-products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.pricing-product-card { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--panel-2), transparent 16%); }
.pricing-product-card[hidden] { display: none; }
.pricing-product-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pricing-product-head strong { display: block; color: var(--text); }
.pricing-product-head span, .pricing-product-head small { color: var(--muted); font-size: 12px; font-weight: 800; }
.pricing-override-stack { display: grid; gap: 8px; }
.pricing-override-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, 140px); align-items: center; gap: 10px; padding: 9px; border-radius: 14px; background: rgba(255,255,255,.045); border: 1px solid color-mix(in srgb, var(--line), transparent 20%); }
.pricing-override-line strong { display: block; font-size: 13px; }
.pricing-override-line span { display: block; color: var(--muted); font-size: 12px; }
.pricing-override-line input { width: 100%; min-width: 0; }
.product-btn.has-special-price { border-color: rgba(251,146,60,.58); box-shadow: 0 0 0 2px rgba(251,146,60,.12), 0 8px 24px rgba(251,146,60,.18); }
.product-btn.has-special-price em { color: #c2410c; font-size: 11px; font-style: normal; font-weight: 950; }
.product-btn.has-special-price s { color: #64748b; }
.active-team-card { min-width: 0; }
.active-team-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.active-team-head h3 { margin: 0 0 4px; }
.active-team-list { display: grid; gap: 10px; }
.active-team-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel-2), transparent 14%); }
.active-team-row strong { display: block; }
.active-team-row span:not(.status):not(.checklist-count-pill) { color: var(--muted); font-size: 12px; }
.manual-signout-list { display: grid; gap: 8px; max-height: min(34vh, 280px); overflow: auto; margin: 12px 0 16px; }
.manual-signout-list div { padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.manual-signout-list strong, .manual-signout-list span { display: block; }
.manual-signout-list span { color: var(--muted); font-size: 12px; }
.form-status { margin: 0; color: var(--muted); font-size: 13px; font-weight: 800; }
.form-status.error { color: #fca5a5; }
.loading-state { max-width: 780px; margin: 24px auto; }
.page-shell-skeleton {
  width: min(960px, calc(100vw - 48px));
  margin: 24px auto;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card);
  padding: 24px;
}
.skeleton-line,
.skeleton-grid span {
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.14), rgba(255,255,255,.06));
  background-size: 220% 100%;
  animation: skeletonShift 1.1s ease-in-out infinite;
}
.skeleton-line { height: 18px; width: 42%; margin-bottom: 14px; }
.skeleton-line.wide { height: 32px; width: 64%; }
.skeleton-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.skeleton-grid span { height: 92px; border-radius: 18px; }
@keyframes skeletonShift { from { background-position: 120% 0; } to { background-position: -120% 0; } }

@media (max-width: 1200px) {
  .page { max-width: 100%; padding-left: 18px; padding-right: 18px; }
  .pos-main { grid-template-columns: minmax(0, 1fr) clamp(300px, 28vw, 360px); }
  .pos-product-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

@media (max-width: 900px) {
  .pricing-overrides-head, .active-team-head { display: grid; }
  .pricing-override-filters { grid-template-columns: 1fr; min-width: 0; }
  .active-team-row { grid-template-columns: 1fr auto; }
  .active-team-row .btn { grid-column: 1 / -1; }
  .table-wrap { overflow-x: auto; }
  .modal { max-height: calc(100dvh - 24px); overflow: auto; }
}

@media (max-width: 700px) {
  .app-shell { padding-top: calc(70px + env(safe-area-inset-top, 0px)); }
  .topbar {
    height: calc(70px + env(safe-area-inset-top, 0px));
    min-height: calc(70px + env(safe-area-inset-top, 0px));
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 42px;
    gap: 10px;
    align-items: center;
    padding: env(safe-area-inset-top, 0px) 14px 0 14px;
  }
  .topbar-left, .topbar-right { display: contents; min-width: 0; }
  .mobile-nav-toggle { grid-column: 1; width: 42px; height: 42px; border: 0; background: transparent; font-size: 24px; color: var(--muted); }
  .topbar-logo, .topbar-left > div:not(.brand-logo) { display: none !important; }
  .quick-clock { display: none !important; }
  .topbar-right .search { grid-column: 2; width: 100%; min-width: 0; order: initial; flex-basis: auto; }
  .topbar-right .search input { min-height: 52px; border-radius: 12px; font-size: 16px; }
  .profile-shell { grid-column: 3; justify-self: end; }
  .avatar { width: 42px; height: 42px; min-width: 42px; }
  .profile-menu { position: fixed; top: calc(72px + env(safe-area-inset-top, 0px)); right: 12px; }
  .sidebar { top: calc(70px + env(safe-area-inset-top, 0px)); width: min(78vw, 440px); padding: 22px; }
  .page { padding: 24px 20px calc(92px + env(safe-area-inset-bottom, 0px)); }
  .page-head, .toolbar, .actions { flex-wrap: wrap; }
  .page-title h1 { font-size: clamp(28px, 8vw, 38px); letter-spacing: -.04em; }
  .page-title p { font-size: 16px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4, .form-grid, .hero-card, .dashboard-clock { grid-template-columns: 1fr !important; }
  .card, .hero-card, .dashboard-clock { border-radius: 18px; }
  .metric strong { font-size: clamp(34px, 11vw, 52px); }
  .toolbar-left, .toolbar-right, .toolbar input, .toolbar .btn { width: 100%; }
  .pricing-products-grid { grid-template-columns: 1fr; }
  .modal-backdrop { align-items: end; padding: 10px; }
  .modal { width: 100%; max-height: calc(100dvh - 24px); overflow: auto; border-radius: 22px 22px 12px 12px; }
  .table-wrap { border-radius: 18px; }
  table { min-width: 720px; }
  .checklist-list-card .table-footer, .table-footer { align-items: stretch; flex-direction: column; gap: 12px; }
  .table-footer-controls { align-items: stretch; flex-direction: column; }
  .pager { justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
}

@media (max-width: 480px) {
  .pricing-override-line { grid-template-columns: 1fr; }
  .topbar { grid-template-columns: 40px minmax(0, 1fr) 40px; padding-left: 12px; padding-right: 12px; }
  .mobile-nav-toggle, .avatar { width: 40px; height: 40px; min-width: 40px; }
  .sidebar { width: min(82vw, 420px); }
  .nav-item { min-height: 46px; font-size: 15px; }
  .section-head { font-size: 15px; }
  .page { padding-left: 20px; padding-right: 20px; }
  .pos-topbar { gap: 8px; }
  .pos-chip, .pos-tab { flex: 1 1 calc(50% - 8px); padding: 0 8px; }
  .pos-till-tab { flex: 1 1 100%; }
  .pos-brand strong { font-size: 13px; }
  .pos-product-grid, .pos-category-grid { grid-template-columns: repeat(2, minmax(96px, 1fr)); }
  .product-btn.pos-product-btn { font-size: 12px; }
  .product-btn.pos-product-btn small { font-size: 11px; }
}

.bill-deal-note {
  display: block;
  margin-top: 4px;
  color: #16a34a;
  font-weight: 850;
  font-size: 11px;
}

.pos-tab-history {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.pos-tab-history-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(72px, auto));
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15,23,42,.035);
  border: 1px solid rgba(15,23,42,.08);
  color: #1f2937;
}

.pos-tab-history-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.pos-tab-history-main strong {
  overflow-wrap: anywhere;
}

.pos-tab-history-main small,
.pos-tab-history-row small {
  color: #64748b;
}

.deal-policy-card {
  display: grid;
  gap: 12px;
}

.deal-policy-list,
.check-grid,
.theme-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.check-pill,
.theme-icon-option {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-2), transparent 12%);
  color: var(--text);
}

.theme-icon-option {
  justify-content: center;
  flex-direction: column;
  min-height: 96px;
  font-weight: 850;
}

.theme-icon-option .theme-glyph {
  font-size: 26px;
  line-height: 1;
}

.theme-icon-option.active {
  border-color: rgba(251,146,60,.52);
  box-shadow: 0 0 0 3px rgba(251,146,60,.16);
  background: linear-gradient(135deg, rgba(251,146,60,.18), rgba(168,85,247,.14));
}

.settings-card {
  display: grid;
  gap: 16px;
}

.document-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 16px;
  align-items: start;
}

.messaging-tabs { margin: 8px 0 16px; flex-wrap: wrap; }
.messaging-card { display: grid; gap: 14px; }
.messaging-template-list,
.messaging-rule-list,
.messaging-group-list { display: grid; gap: 12px; }
.messaging-template-row,
.messaging-rule-row,
.messaging-group-row { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--panel-2), transparent 16%); }
.messaging-template-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.message-preview { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--field-bg); color: var(--field-text); white-space: pre-wrap; }
.global-popups {
  position: fixed;
  top: clamp(72px, 8vh, 96px);
  right: clamp(14px, 2.4vw, 30px);
  z-index: 6000;
  display: grid;
  gap: 12px;
  width: min(420px, calc(100vw - 28px));
  pointer-events: none;
}
.global-popups:has(.night-note-popup) { width: min(680px, calc(100vw - 28px)); }
.global-popup {
  pointer-events: auto;
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(125,211,252,.28);
  color: #f8fafc;
  background:
    radial-gradient(circle at top right, rgba(251,146,60,.18), transparent 34%),
    linear-gradient(135deg, rgba(15,23,42,.96), rgba(30,12,42,.96));
  box-shadow: 0 22px 60px rgba(0,0,0,.36), 0 0 0 1px rgba(255,255,255,.04) inset;
  animation: globalPopupIn .22s ease-out both;
}
.global-popup strong { font-size: 17px; }
.global-popup p { margin: 0; color: rgba(226,232,240,.92); line-height: 1.45; }
.global-popup .actions { margin: 0; justify-content: flex-start; }
.global-popup.chat-popup { border-color: rgba(59,130,246,.42); }
.global-popup.availability-popup {
  border-color: rgba(248,113,113,.44);
  background:
    radial-gradient(circle at top right, rgba(248,113,113,.22), transparent 34%),
    radial-gradient(circle at bottom left, rgba(251,146,60,.14), transparent 38%),
    linear-gradient(135deg, rgba(15,23,42,.98), rgba(47,18,28,.98));
}
.global-popup.night-note-popup { border-color: rgba(251,146,60,.46); }
.global-popup.night-note-popup {
  padding: clamp(18px, 2.2vw, 26px);
  background:
    radial-gradient(circle at top right, rgba(251,146,60,.3), transparent 34%),
    radial-gradient(circle at bottom left, rgba(14,165,233,.16), transparent 38%),
    linear-gradient(135deg, rgba(15,23,42,.98), rgba(42,20,12,.98));
}
.global-popup.night-note-popup strong { font-size: clamp(20px, 2vw, 28px); line-height: 1.15; }
.global-popup.night-note-popup p { font-size: clamp(14px, 1.2vw, 17px); }
@keyframes globalPopupIn {
  from { opacity: 0; transform: translateY(-8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.team-chat-layout,
.team-chat-shell { display: grid; grid-template-columns: minmax(300px, .35fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.team-chat-compose, .team-chat-feed { border-radius: 24px; }
.team-chat-threads,
.team-chat-window {
  border-radius: 28px;
  min-height: min(72vh, 760px);
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.14), transparent 32%),
    radial-gradient(circle at bottom right, rgba(251,146,60,.12), transparent 38%),
    color-mix(in srgb, var(--panel), transparent 2%);
}
.team-chat-threads { display: grid; grid-template-rows: auto auto auto 1fr; gap: 12px; }
.team-chat-pinned-alerts {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(248,113,113,.32);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(248,113,113,.16), transparent 36%),
    color-mix(in srgb, var(--panel-2), transparent 6%);
}
.team-pinned-alert {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 10px 11px;
  border-radius: 14px;
  border: 1px solid rgba(251,146,60,.28);
  color: var(--text);
  background: color-mix(in srgb, var(--field-bg), transparent 5%);
}
.team-pinned-alert:hover {
  border-color: rgba(251,146,60,.62);
  transform: translateY(-1px);
}
.team-pinned-alert small { color: var(--muted); line-height: 1.35; }
.team-thread-list { display: grid; gap: 8px; overflow: auto; max-height: min(62vh, 640px); padding-right: 4px; }
.team-thread { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 13px; text-align: left; border: 1px solid var(--line); border-radius: 18px; color: var(--text); background: color-mix(in srgb, var(--panel-2), transparent 10%); }
.team-thread:hover,
.team-thread.active { border-color: rgba(251,146,60,.58); background: radial-gradient(circle at top right, rgba(251,146,60,.16), transparent 38%), color-mix(in srgb, var(--panel-2), transparent 0%); }
.team-thread span { display: grid; gap: 4px; min-width: 0; }
.team-thread strong,
.team-thread small,
.team-thread em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-thread small,
.team-thread time,
.team-thread em { color: var(--muted); font-size: 12px; font-style: normal; }
.team-thread em { grid-column: 1 / -1; }
.team-chat-window { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; padding: 0; min-height: min(78vh, 820px); }
.team-chat-window-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.team-chat-window-head h3 { margin: 0 0 4px; }
.team-channel-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.team-message-list { display: grid; gap: 12px; }
.team-message-list.conversation {
  align-content: start;
  height: min(62vh, 650px);
  max-height: min(62vh, 650px);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 20px;
  scrollbar-gutter: stable;
}
.team-message { display: grid; gap: 10px; padding: 16px; border: 1px solid color-mix(in srgb, var(--line), transparent 8%); border-radius: 18px; background: color-mix(in srgb, var(--panel-2), transparent 6%); }
.team-message.mine { margin-left: min(9vw, 90px); border-color: rgba(59,130,246,.42); background: radial-gradient(circle at top right, rgba(59,130,246,.18), transparent 40%), linear-gradient(135deg, color-mix(in srgb, var(--panel-2), #1d4ed8 8%), color-mix(in srgb, var(--panel-2), transparent 2%)); }
.team-message.moderation { margin-left: 0; }
.team-message.deleted { opacity: .68; border-style: dashed; }
.team-message.urgent { border-color: rgba(248,113,113,.44); background: radial-gradient(circle at top right, rgba(248,113,113,.12), transparent 38%), color-mix(in srgb, var(--panel-2), transparent 6%); }
.team-message-meta { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.team-message-meta span { color: var(--muted); font-size: 12px; }
.team-message p { margin: 0; white-space: pre-wrap; line-height: 1.45; }
.team-message-attachment { margin: 0; display: grid; gap: 6px; }
.team-message-attachment img { max-width: min(100%, 420px); max-height: 280px; object-fit: contain; border-radius: 16px; border: 1px solid var(--line); background: rgba(15,23,42,.28); }
.team-message-attachment figcaption { color: var(--muted); font-size: 12px; }
.team-message-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.team-chat-reply-form { display: grid; gap: 10px; padding: 14px 20px 18px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--panel), transparent 4%); }
.team-chat-reply-form textarea { min-height: 74px; resize: vertical; }
.emoji-strip,
.sticker-strip { display: flex; gap: 6px; flex-wrap: wrap; }
.emoji-btn { min-width: 34px; min-height: 34px; border-radius: 999px; border: 1px solid var(--line); background: var(--field-bg); color: var(--text); }
.sticker-btn { min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(251,146,60,.32); background: rgba(251,146,60,.10); color: var(--text); font-weight: 800; }
.emoji-btn:hover,
.sticker-btn:hover { border-color: rgba(251,146,60,.58); transform: translateY(-1px); }
.team-reply-actions { display: flex; justify-content: flex-end; gap: 10px; align-items: center; }
.team-reply-actions select { width: auto; min-width: 130px; }
.field.inline { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.field.inline span { margin: 0; white-space: nowrap; }
.chat-file-field input { padding: 10px; }
.checklist-progress-layout { display: grid; grid-template-columns: minmax(240px, .35fr) minmax(0, 1fr); gap: 14px; }
.checklist-staff-list,
.checklist-staff-task-detail { display: grid; gap: 10px; align-content: start; }
.checklist-staff-progress-row { display: grid; gap: 7px; padding: 13px; text-align: left; border: 1px solid var(--line); border-radius: 16px; color: var(--text); background: color-mix(in srgb, var(--panel-2), transparent 8%); }
.checklist-staff-progress-row.active { border-color: rgba(251,146,60,.62); background: radial-gradient(circle at top right, rgba(251,146,60,.16), transparent 40%), color-mix(in srgb, var(--panel-2), transparent 0%); }
.checklist-task-detail-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.checklist-task-detail-head h4 { margin: 0; }
.checklist-run-progress-selector { margin: 12px 0 14px; max-width: min(100%, 640px); }
.user-picker { display: grid; gap: 10px; }
.user-picker-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.user-picker-tools input { min-width: min(100%, 260px); }
.user-picker .check-grid { max-height: 260px; overflow: auto; padding-right: 4px; }
.table-skeleton { display: block; height: 14px; border-radius: 999px; background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.18), rgba(255,255,255,.08)); background-size: 220% 100%; animation: skeletonShift 1.1s linear infinite; }
.table-skeleton.short { width: 64px; }
.pos-tab-card { padding: 0; overflow: hidden; }
.pos-tab-card summary { cursor: pointer; list-style: none; }
.pos-tab-card summary::-webkit-details-marker { display: none; }
.pos-tab-card.open { border-color: rgba(34,197,94,.24); }
.pos-tab-card.closed { opacity: .72; }
.pos-tab-card.complimentary { box-shadow: inset 4px 0 0 rgba(245,158,11,.8); }
.pos-tab-card.over-limit { box-shadow: inset 4px 0 0 rgba(239,68,68,.85); }
.pos-tab-card > .actions { padding: 0 14px 14px; }

.pos-tabs-shell {
  display: grid;
  gap: 16px;
  color: #e5f1ff;
}

.pos-tabs-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pos-tabs-overview > div {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(125, 211, 252, .18);
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, .16), transparent 42%),
    linear-gradient(145deg, rgba(8, 18, 35, .96), rgba(15, 23, 42, .96));
  box-shadow: 0 20px 46px rgba(15, 23, 42, .16);
}

.pos-tabs-overview span,
.pos-tab-section-head span,
.pos-tab-meta,
.pos-tab-updated small,
.pos-tab-balance small {
  color: #9fb4cf;
}

.pos-tabs-overview strong {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}

.pos-tabs-overview .alert {
  border-color: rgba(248, 113, 113, .42);
  background:
    radial-gradient(circle at top right, rgba(248, 113, 113, .20), transparent 42%),
    linear-gradient(145deg, rgba(49, 16, 22, .96), rgba(15, 23, 42, .96));
}

.pos-tab-section {
  display: grid;
  gap: 10px;
}

.pos-tab-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 2px;
}

.pos-tab-section-head h3 {
  margin: 0;
  color: #0f172a;
}

.pos-tab-section-head span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .08);
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.pos-tabs-shell .pos-tabs-list {
  display: grid;
  gap: 12px;
}

.pos-tabs-shell .pos-tab-card {
  display: block;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(96, 165, 250, .28);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, .18), transparent 36%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, .12), transparent 34%),
    linear-gradient(145deg, #08111f, #0d1728);
  color: #e5f1ff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .18);
}

.pos-tabs-shell .pos-tab-card.complimentary {
  border-color: rgba(251, 191, 36, .42);
  box-shadow: inset 5px 0 0 rgba(251, 191, 36, .86), 0 18px 44px rgba(15, 23, 42, .18);
}

.pos-tabs-shell .pos-tab-card.over-limit {
  border-color: rgba(248, 113, 113, .6);
  box-shadow: inset 5px 0 0 rgba(248, 113, 113, .92), 0 18px 44px rgba(15, 23, 42, .18);
}

.pos-tabs-shell .pos-tab-card.closed {
  opacity: .86;
  filter: saturate(.88);
}

.pos-tabs-shell .pos-tab-card.selected {
  border-color: rgba(251, 191, 36, .74);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, .22), 0 22px 54px rgba(15, 23, 42, .24);
}

.pos-tab-card-head {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(110px, auto) minmax(160px, auto) auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
}

.pos-tab-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pos-tab-card-title strong {
  display: block;
  color: #f8fafc;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.tab-type-dot {
  width: 14px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, #22d3ee, #2563eb);
  box-shadow: 0 0 24px rgba(34, 211, 238, .38);
}

.complimentary .tab-type-dot {
  background: linear-gradient(180deg, #fbbf24, #fb923c);
  box-shadow: 0 0 24px rgba(251, 191, 36, .38);
}

.pos-tab-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.pos-tab-meta span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, .12);
  color: #cbd5e1;
}

.pos-tab-balance {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.pos-tab-balance strong {
  color: #ffffff;
  font-size: clamp(18px, 2vw, 26px);
}

.pos-tab-updated {
  display: grid;
  gap: 4px;
  color: #dbeafe;
  font-size: 12px;
}

.pos-tab-chevron {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #08111f;
  background: linear-gradient(135deg, #93c5fd, #22d3ee);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.pos-tab-card[open] .pos-tab-chevron {
  background: linear-gradient(135deg, #fbbf24, #fb923c);
}

.pos-tab-progress {
  height: 5px;
  background: rgba(148, 163, 184, .14);
}

.pos-tab-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #22d3ee);
}

.pos-tab-card.over-limit .pos-tab-progress span {
  background: linear-gradient(90deg, #ef4444, #fb923c);
}

.pos-tab-progress.no-limit span {
  opacity: .32;
}

.pos-tab-expanded {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(148, 163, 184, .14);
}

.pos-tab-history-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #f8fafc;
}

.pos-tab-history-head span {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 900;
}

.pos-tabs-shell .pos-tab-history {
  display: grid;
  gap: 8px;
  margin: 0;
}

.pos-tabs-shell .pos-tab-history-row {
  grid-template-columns: minmax(180px, 1.35fr) repeat(4, minmax(76px, auto));
  background: rgba(15, 23, 42, .72);
  border-color: rgba(148, 163, 184, .16);
  color: #e2e8f0;
}

.pos-tabs-shell .pos-tab-history-row small,
.pos-tabs-shell .pos-tab-history-main span {
  color: #94a3b8;
}

.pos-tabs-shell .pos-tab-history-main strong,
.pos-tabs-shell .pos-tab-history-row strong {
  color: #f8fafc;
}

.pos-tab-empty {
  min-height: 74px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(148, 163, 184, .22);
  border-radius: 16px;
  color: #94a3b8;
  background: rgba(15, 23, 42, .42);
}

.pos-tab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tab-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, .18);
  color: #e5f1ff;
  background: rgba(30, 41, 59, .86);
  font-weight: 900;
}

.tab-action.primary {
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  border-color: transparent;
}

.tab-action.danger {
  color: #fee2e2;
  background: linear-gradient(135deg, rgba(127, 29, 29, .92), rgba(185, 28, 28, .9));
  border-color: rgba(248, 113, 113, .35);
}

.tab-action.muted {
  color: #cbd5e1;
  background: rgba(71, 85, 105, .72);
}

@media (max-width: 1100px) {
  .pos-tabs-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pos-tab-card-head { grid-template-columns: 1fr auto; }
  .pos-tab-updated { grid-column: 1 / -1; grid-template-columns: auto 1fr; }
  .pos-tab-chevron { grid-column: 2; grid-row: 1; }
}

@media (max-width: 680px) {
  .pos-tabs-overview { grid-template-columns: 1fr; }
  .pos-tab-card-head { grid-template-columns: 1fr; }
  .pos-tab-balance { justify-items: start; }
  .pos-tab-chevron { grid-column: auto; grid-row: auto; width: max-content; }
  .pos-tabs-shell .pos-tab-history-row { grid-template-columns: 1fr 1fr; }
  .pos-tabs-shell .pos-tab-history-main { grid-column: 1 / -1; }
  .tab-action { flex: 1 1 100%; }
}

.file-viewer-frame {
  width: min(78vw, 980px);
  height: min(72vh, 720px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.file-viewer-image,
.file-viewer-media {
  max-width: min(78vw, 980px);
  max-height: 72vh;
  display: block;
  border-radius: 14px;
  background: #050607;
}

.file-viewer-text {
  width: min(78vw, 980px);
  max-height: 68vh;
  overflow: auto;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--field-bg);
  color: var(--field-text);
  white-space: pre-wrap;
}

.temp-pin {
  display: inline-grid;
  place-items: center;
  min-width: 180px;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fde68a, #fb923c);
  color: #111827;
  font-size: 34px;
  letter-spacing: .18em;
  font-weight: 950;
}

.rota-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 12px 0 18px;
}

.segmented,
.week-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.week-controls strong {
  min-width: 220px;
  text-align: center;
  color: var(--text);
}

.week-controls.compact strong {
  min-width: 130px;
}

.rota-calendar-grid {
  display: grid;
  gap: 14px;
  align-items: stretch;
}

.rota-calendar-grid.week {
  grid-template-columns: repeat(7, minmax(160px, 1fr));
}

.rota-calendar-grid.month {
  grid-template-columns: repeat(7, minmax(130px, 1fr));
}

.rota-calendar-grid.current-week {
  padding: 12px;
  border: 1px solid rgba(251, 146, 60, .28);
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(251, 146, 60, .12), transparent 34%),
    color-mix(in srgb, var(--panel-2), transparent 30%);
}

.rota-day-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel), transparent 4%), color-mix(in srgb, var(--panel-2), transparent 6%));
  box-shadow: 0 14px 34px rgba(0,0,0,.16);
}

.rota-day-card.today {
  border-color: rgba(251, 146, 60, .82);
  background:
    radial-gradient(circle at top right, rgba(255, 184, 77, .46), transparent 36%),
    linear-gradient(180deg, rgba(251, 146, 60, .22), rgba(124, 45, 18, .18)),
    color-mix(in srgb, var(--panel), transparent 0%);
  box-shadow: 0 0 0 4px rgba(251, 146, 60, .22), 0 22px 52px rgba(251, 146, 60, .24);
  position: relative;
  isolation: isolate;
}

.rota-day-card.today header strong {
  color: #fff7ed;
  text-shadow: 0 0 18px rgba(251, 146, 60, .85);
}

.rota-day-card.today::before {
  content: "TODAY";
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  font-size: 11px;
  letter-spacing: .12em;
  font-weight: 950;
  color: rgba(255,255,255,.92);
  background: linear-gradient(135deg, #f97316, #f59e0b);
  border-radius: 999px;
  padding: 4px 8px;
  box-shadow: 0 10px 26px rgba(249,115,22,.28);
}

.rota-calendar-grid.month .rota-day-card {
  min-height: 190px;
}

.rota-day-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.rota-day-card header span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 850;
}

.rota-day-card header strong {
  font-size: clamp(16px, 1.8vw, 20px);
}

.rota-event-list,
.rota-shift-list {
  display: grid;
  gap: 8px;
}

.rota-shift-list {
  flex: 1;
  align-content: start;
}

.rota-event-pill,
.rota-shift-card,
.availability-row {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel-2), transparent 12%);
}

.rota-event-pill {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-color: rgba(59,130,246,.34);
  background: linear-gradient(135deg, rgba(37,99,235,.17), rgba(14,165,233,.08));
}

.rota-event-pill strong,
.rota-shift-card strong {
  overflow-wrap: anywhere;
}

.rota-event-pill small,
.rota-shift-card small,
.availability-row small {
  color: var(--muted);
}

.rota-shift-card {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-left: 4px solid rgba(251,146,60,.9);
}

.rota-shift-card .shift-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.rota-shift-card .actions {
  margin-top: 2px;
}

.rota-add-staff {
  margin-top: auto;
  width: 100%;
}

.rota-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  border: 1px solid transparent;
  text-transform: capitalize;
}

.rota-badge.available {
  color: #052e16;
  background: #86efac;
  border-color: #22c55e;
}

.rota-badge.preferred {
  color: #082f49;
  background: #7dd3fc;
  border-color: #0ea5e9;
}

.rota-badge.limited {
  color: #422006;
  background: #fde68a;
  border-color: #f59e0b;
}

.rota-badge.unavailable,
.rota-badge.conflict {
  color: #450a0a;
  background: #fca5a5;
  border-color: #ef4444;
}

.rota-badge.none {
  color: var(--muted);
  background: color-mix(in srgb, var(--panel), transparent 4%);
  border-color: var(--line);
}

.availability-card,
.mini-panel {
  display: grid;
  gap: 12px;
}

.rota-availability-notices {
  margin-bottom: 16px;
}

.availability-notice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.availability-notice {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel-2), transparent 12%);
}

.availability-notice.unavailable {
  border-color: rgba(248, 113, 113, .42);
  background:
    radial-gradient(circle at top right, rgba(248, 113, 113, .16), transparent 40%),
    color-mix(in srgb, var(--panel-2), transparent 8%);
}

.availability-row {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto minmax(140px, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
}

.mini-panel {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel-2), transparent 14%);
}

.small {
  font-size: 12px;
}

.bulk-staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  max-height: min(42vh, 420px);
  overflow: auto;
  padding-right: 4px;
}

.bulk-staff-option {
  align-items: flex-start;
}

.bulk-staff-option span {
  display: grid;
  gap: 6px;
}

.clock-history-controls {
  margin-bottom: 16px;
}

.clock-history-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.clock-history-summary div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-2), transparent 12%);
}

.clock-history-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.restore-backup-card {
  border-color: rgba(251, 146, 60, .34);
}

.stocktake-entry {
  margin-bottom: 16px;
}

.stocktake-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.stocktake-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(251, 146, 60, .14), transparent 36%),
    color-mix(in srgb, var(--panel-2), transparent 8%);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.stocktake-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.stocktake-card-head div {
  display: grid;
  gap: 4px;
}

.stocktake-card-head span {
  color: var(--muted);
  font-size: 12px;
}

.stocktake-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stocktake-metrics div {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: color-mix(in srgb, var(--bg), transparent 12%);
}

.stocktake-metrics small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}

@media (max-width: 900px) {
  .document-form-grid {
    grid-template-columns: 1fr;
  }
  .rota-calendar-grid.week,
  .rota-calendar-grid.month {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .week-controls strong {
    min-width: 100%;
    order: -1;
  }
  .availability-row {
    grid-template-columns: 1fr;
  }
  .clock-history-summary {
    grid-template-columns: 1fr;
  }
  .team-chat-layout,
  .team-chat-shell,
  .checklist-progress-layout {
    grid-template-columns: 1fr;
  }
  .team-message.mine {
    margin-left: 0;
  }
  .pos-tab-history-row {
    grid-template-columns: 1fr 1fr;
  }
  .pos-tab-history-main {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .deal-policy-list,
  .check-grid,
  .theme-icon-grid {
    grid-template-columns: 1fr;
  }
  .file-viewer-frame,
  .file-viewer-text,
  .file-viewer-image,
  .file-viewer-media {
    width: calc(100vw - 32px);
  }
  .rota-calendar-grid.week,
  .rota-calendar-grid.month {
    grid-template-columns: 1fr;
  }
  .rota-day-card,
  .rota-calendar-grid.month .rota-day-card {
    min-height: auto;
  }
}

/* Theme Studio: five dark and five light visual systems. */
:root {
  --club-accent: var(--purple);
  --club-accent-2: var(--blue);
  --club-warn: var(--amber);
  --club-glow: rgba(168,85,247,.34);
  --club-glow-2: rgba(56,189,248,.18);
  --club-hero-bg:
    radial-gradient(circle at 62% 28%, rgba(168,85,247,.38), transparent 22%),
    radial-gradient(circle at 84% 44%, rgba(56,189,248,.24), transparent 22%),
    linear-gradient(135deg, rgba(10,6,18,.98), rgba(19,8,36,.96));
  --login-bg:
    radial-gradient(circle at 18% 20%, rgba(168,85,247,.48), transparent 28%),
    radial-gradient(circle at 62% 12%, rgba(251,146,60,.24), transparent 23%),
    linear-gradient(135deg, #030108, #13071f 55%, #06030b);
  --pos-topbar-bg: linear-gradient(135deg, #0f172a, #1e1b4b 58%, #111827);
  --pos-shell-bg: linear-gradient(180deg, #eef2ff 0, #f8fafc 18%, #f8fafc 100%);
}

:root[data-theme="dark"][data-theme-variant="dark-neon"] {
  --bg: #05020d; --panel: #0d0717; --panel-2: #140b22; --panel-3: #211136;
  --club-accent: #8b5cf6; --club-accent-2: #22d3ee; --club-warn: #fb923c;
  --club-glow: rgba(139,92,246,.42); --club-glow-2: rgba(34,211,238,.22);
  --fx-ambient-one: rgba(139,92,246,.34); --fx-ambient-two: rgba(34,211,238,.24); --fx-ambient-three: rgba(251,146,60,.16);
  --shell-bg: radial-gradient(circle at 86% 10%, rgba(139,92,246,.24), transparent 30%), radial-gradient(circle at 12% 90%, rgba(34,211,238,.12), transparent 28%), #05020d;
  --club-crowd-image: url("/assets/backgrounds/site-scene-dark-neon.webp?v=20260613-site");
  --sidebar-bg: linear-gradient(180deg, #05020d, #0f0619 68%, #04020a);
  --topbar-bg: rgba(5,2,13,.86);
  --nav-active-bg: linear-gradient(135deg, rgba(139,92,246,.42), rgba(37,99,235,.24));
  --club-hero-bg: radial-gradient(circle at 55% 36%, rgba(139,92,246,.5), transparent 22%), radial-gradient(circle at 77% 46%, rgba(34,211,238,.24), transparent 18%), linear-gradient(135deg, rgba(12,5,22,.96), rgba(21,8,43,.92));
  --login-bg: radial-gradient(circle at 18% 20%, rgba(139,92,246,.48), transparent 28%), radial-gradient(circle at 72% 12%, rgba(34,211,238,.24), transparent 22%), linear-gradient(135deg, #030108, #13071f 55%, #06030b);
  --pos-topbar-bg: linear-gradient(135deg, #09021b, #23145f 56%, #07111f);
}
:root[data-theme="dark"][data-theme-variant="dark-midnight"] {
  --bg: #020817; --panel: #07111f; --panel-2: #0b1728; --panel-3: #11223a;
  --club-accent: #2563eb; --club-accent-2: #38bdf8; --club-warn: #f59e0b;
  --club-glow: rgba(37,99,235,.34); --club-glow-2: rgba(56,189,248,.22);
  --fx-ambient-one: rgba(37,99,235,.3); --fx-ambient-two: rgba(56,189,248,.22); --fx-ambient-three: rgba(245,158,11,.12);
  --shell-bg: radial-gradient(circle at 84% 8%, rgba(37,99,235,.24), transparent 30%), radial-gradient(circle at 0% 88%, rgba(56,189,248,.12), transparent 34%), #020817;
  --club-crowd-image: url("/assets/backgrounds/site-scene-dark-midnight.webp?v=20260613-site");
  --sidebar-bg: linear-gradient(180deg, #030a17, #071426);
  --nav-active-bg: linear-gradient(135deg, rgba(37,99,235,.42), rgba(56,189,248,.14));
  --club-hero-bg: radial-gradient(circle at 55% 34%, rgba(37,99,235,.44), transparent 22%), linear-gradient(135deg, rgba(4,12,28,.96), rgba(10,28,56,.92));
  --login-bg: radial-gradient(circle at 20% 20%, rgba(37,99,235,.42), transparent 28%), radial-gradient(circle at 72% 12%, rgba(56,189,248,.24), transparent 22%), linear-gradient(135deg, #020817, #081a33 55%, #020817);
  --pos-topbar-bg: linear-gradient(135deg, #061121, #12356f 58%, #05101f);
}
:root[data-theme="dark"][data-theme-variant="dark-velvet"] {
  --bg: #10040a; --panel: #170711; --panel-2: #210a18; --panel-3: #351027;
  --club-accent: #e11d48; --club-accent-2: #fb7185; --club-warn: #fbbf24;
  --club-glow: rgba(225,29,72,.34); --club-glow-2: rgba(251,113,133,.22);
  --fx-ambient-one: rgba(225,29,72,.28); --fx-ambient-two: rgba(251,113,133,.18); --fx-ambient-three: rgba(251,191,36,.14);
  --shell-bg: radial-gradient(circle at 84% 8%, rgba(225,29,72,.24), transparent 30%), radial-gradient(circle at 12% 90%, rgba(251,191,36,.1), transparent 30%), #10040a;
  --club-crowd-image: url("/assets/backgrounds/site-scene-dark-velvet.webp?v=20260613-site");
  --sidebar-bg: linear-gradient(180deg, #10040a, #1f0714);
  --nav-active-bg: linear-gradient(135deg, rgba(225,29,72,.36), rgba(251,191,36,.12));
  --club-hero-bg: radial-gradient(circle at 54% 36%, rgba(225,29,72,.42), transparent 22%), linear-gradient(135deg, rgba(22,3,12,.96), rgba(48,11,31,.92));
  --login-bg: radial-gradient(circle at 20% 22%, rgba(225,29,72,.42), transparent 28%), radial-gradient(circle at 72% 12%, rgba(251,191,36,.2), transparent 22%), linear-gradient(135deg, #10040a, #2b0719 55%, #090205);
  --pos-topbar-bg: linear-gradient(135deg, #16030b, #4a1230 58%, #170711);
}
:root[data-theme="dark"][data-theme-variant="dark-emerald"] {
  --bg: #03120d; --panel: #061912; --panel-2: #082219; --panel-3: #0d3327;
  --club-accent: #10b981; --club-accent-2: #2dd4bf; --club-warn: #f59e0b;
  --club-glow: rgba(16,185,129,.3); --club-glow-2: rgba(45,212,191,.2);
  --fx-ambient-one: rgba(16,185,129,.26); --fx-ambient-two: rgba(45,212,191,.2); --fx-ambient-three: rgba(245,158,11,.1);
  --shell-bg: radial-gradient(circle at 84% 8%, rgba(16,185,129,.22), transparent 30%), radial-gradient(circle at 0% 88%, rgba(45,212,191,.12), transparent 34%), #03120d;
  --club-crowd-image: url("/assets/backgrounds/site-scene-dark-emerald.webp?v=20260613-site");
  --sidebar-bg: linear-gradient(180deg, #03120d, #061c15);
  --nav-active-bg: linear-gradient(135deg, rgba(16,185,129,.34), rgba(45,212,191,.12));
  --club-hero-bg: radial-gradient(circle at 55% 34%, rgba(16,185,129,.38), transparent 22%), linear-gradient(135deg, rgba(3,18,13,.96), rgba(6,36,27,.92));
  --login-bg: radial-gradient(circle at 18% 20%, rgba(16,185,129,.38), transparent 28%), radial-gradient(circle at 72% 12%, rgba(45,212,191,.22), transparent 22%), linear-gradient(135deg, #03120d, #083123 55%, #020906);
  --pos-topbar-bg: linear-gradient(135deg, #03120d, #0f513d 58%, #052018);
}
:root[data-theme="dark"][data-theme-variant="dark-ember"] {
  --bg: #120802; --panel: #1a0c04; --panel-2: #251106; --panel-3: #3b1a08;
  --club-accent: #f97316; --club-accent-2: #facc15; --club-warn: #fb923c;
  --club-glow: rgba(249,115,22,.34); --club-glow-2: rgba(250,204,21,.16);
  --fx-ambient-one: rgba(249,115,22,.3); --fx-ambient-two: rgba(250,204,21,.14); --fx-ambient-three: rgba(251,146,60,.16);
  --shell-bg: radial-gradient(circle at 84% 8%, rgba(249,115,22,.24), transparent 30%), radial-gradient(circle at 0% 88%, rgba(250,204,21,.08), transparent 34%), #120802;
  --club-crowd-image: url("/assets/backgrounds/site-scene-dark-ember.webp?v=20260613-site");
  --sidebar-bg: linear-gradient(180deg, #120802, #211006);
  --nav-active-bg: linear-gradient(135deg, rgba(249,115,22,.36), rgba(250,204,21,.12));
  --club-hero-bg: radial-gradient(circle at 55% 34%, rgba(249,115,22,.42), transparent 22%), linear-gradient(135deg, rgba(18,8,2,.96), rgba(50,22,5,.92));
  --login-bg: radial-gradient(circle at 20% 20%, rgba(249,115,22,.42), transparent 28%), radial-gradient(circle at 72% 12%, rgba(250,204,21,.18), transparent 22%), linear-gradient(135deg, #120802, #351806 55%, #080301);
  --pos-topbar-bg: linear-gradient(135deg, #160802, #71310a 58%, #1a0c04);
}

:root[data-theme="light"][data-theme-variant="light-champagne"] {
  --bg: #fff8ed; --panel: #fffaf2; --panel-2: #fff4dd; --panel-3: #fdecc6;
  --club-accent: #d97706; --club-accent-2: #f59e0b; --club-warn: #f97316;
  --club-glow: rgba(217,119,6,.2); --club-glow-2: rgba(245,158,11,.12);
  --fx-ambient-one: rgba(245,158,11,.15); --fx-ambient-two: rgba(59,130,246,.08); --fx-ambient-three: rgba(217,119,6,.09);
  --shell-bg: radial-gradient(circle at 84% -8%, rgba(245,158,11,.22), transparent 28%), radial-gradient(circle at 0% 88%, rgba(15,23,42,.06), transparent 32%), #fff8ed;
  --club-crowd-image: url("/assets/backgrounds/site-scene-light-champagne.webp?v=20260613-site");
  --sidebar-bg: linear-gradient(180deg, #fffaf2, #fff1cf);
  --nav-active-bg: linear-gradient(135deg, rgba(245,158,11,.22), rgba(217,119,6,.08));
  --club-hero-bg: radial-gradient(circle at 58% 34%, rgba(245,158,11,.28), transparent 24%), linear-gradient(135deg, rgba(255,250,242,.98), rgba(255,244,221,.95));
  --login-bg: radial-gradient(circle at 20% 20%, rgba(245,158,11,.22), transparent 28%), linear-gradient(135deg, #fffaf2, #fff1cf 55%, #f8fafc);
}
:root[data-theme="light"][data-theme-variant="light-sky"] {
  --bg: #eff6ff; --panel: #ffffff; --panel-2: #eaf4ff; --panel-3: #dbeafe;
  --club-accent: #2563eb; --club-accent-2: #0ea5e9; --club-warn: #f59e0b;
  --club-glow: rgba(37,99,235,.18); --club-glow-2: rgba(14,165,233,.12);
  --fx-ambient-one: rgba(37,99,235,.14); --fx-ambient-two: rgba(14,165,233,.1); --fx-ambient-three: rgba(245,158,11,.08);
  --shell-bg: radial-gradient(circle at 84% -8%, rgba(37,99,235,.18), transparent 28%), radial-gradient(circle at 0% 88%, rgba(14,165,233,.12), transparent 32%), #eff6ff;
  --club-crowd-image: url("/assets/backgrounds/site-scene-light-sky.webp?v=20260613-site");
  --sidebar-bg: linear-gradient(180deg, #f8fbff, #e0f2fe);
  --nav-active-bg: linear-gradient(135deg, rgba(37,99,235,.2), rgba(14,165,233,.08));
  --club-hero-bg: radial-gradient(circle at 58% 34%, rgba(37,99,235,.24), transparent 24%), linear-gradient(135deg, rgba(255,255,255,.98), rgba(219,234,254,.95));
  --login-bg: radial-gradient(circle at 20% 20%, rgba(37,99,235,.2), transparent 28%), linear-gradient(135deg, #f8fbff, #dbeafe 55%, #eff6ff);
}
:root[data-theme="light"][data-theme-variant="light-blush"] {
  --bg: #fff1f2; --panel: #fff8fa; --panel-2: #ffe4e6; --panel-3: #fecdd3;
  --club-accent: #e11d48; --club-accent-2: #fb7185; --club-warn: #f59e0b;
  --club-glow: rgba(225,29,72,.16); --club-glow-2: rgba(251,113,133,.12);
  --fx-ambient-one: rgba(225,29,72,.13); --fx-ambient-two: rgba(251,113,133,.1); --fx-ambient-three: rgba(245,158,11,.08);
  --shell-bg: radial-gradient(circle at 84% -8%, rgba(225,29,72,.18), transparent 28%), radial-gradient(circle at 0% 88%, rgba(251,113,133,.12), transparent 32%), #fff1f2;
  --club-crowd-image: url("/assets/backgrounds/site-scene-light-blush.webp?v=20260613-site");
  --sidebar-bg: linear-gradient(180deg, #fff8fa, #ffe4e6);
  --nav-active-bg: linear-gradient(135deg, rgba(225,29,72,.18), rgba(251,113,133,.08));
  --club-hero-bg: radial-gradient(circle at 58% 34%, rgba(225,29,72,.22), transparent 24%), linear-gradient(135deg, rgba(255,248,250,.98), rgba(255,228,230,.95));
  --login-bg: radial-gradient(circle at 20% 20%, rgba(225,29,72,.18), transparent 28%), linear-gradient(135deg, #fff8fa, #ffe4e6 55%, #fff1f2);
}
:root[data-theme="light"][data-theme-variant="light-mint"] {
  --bg: #ecfdf5; --panel: #fbfffd; --panel-2: #dffdf0; --panel-3: #bbf7d0;
  --club-accent: #059669; --club-accent-2: #10b981; --club-warn: #f59e0b;
  --club-glow: rgba(5,150,105,.16); --club-glow-2: rgba(16,185,129,.12);
  --fx-ambient-one: rgba(5,150,105,.12); --fx-ambient-two: rgba(16,185,129,.1); --fx-ambient-three: rgba(245,158,11,.08);
  --shell-bg: radial-gradient(circle at 84% -8%, rgba(5,150,105,.18), transparent 28%), radial-gradient(circle at 0% 88%, rgba(16,185,129,.12), transparent 32%), #ecfdf5;
  --club-crowd-image: url("/assets/backgrounds/site-scene-light-mint.webp?v=20260613-site");
  --sidebar-bg: linear-gradient(180deg, #fbfffd, #dffdf0);
  --nav-active-bg: linear-gradient(135deg, rgba(5,150,105,.18), rgba(16,185,129,.08));
  --club-hero-bg: radial-gradient(circle at 58% 34%, rgba(5,150,105,.22), transparent 24%), linear-gradient(135deg, rgba(251,255,253,.98), rgba(220,252,231,.95));
  --login-bg: radial-gradient(circle at 20% 20%, rgba(5,150,105,.18), transparent 28%), linear-gradient(135deg, #fbfffd, #dffdf0 55%, #ecfdf5);
}
:root[data-theme="light"][data-theme-variant="light-mono"] {
  --bg: #f8fafc; --panel: #ffffff; --panel-2: #f1f5f9; --panel-3: #e2e8f0;
  --club-accent: #111827; --club-accent-2: #64748b; --club-warn: #f59e0b;
  --club-glow: rgba(17,24,39,.11); --club-glow-2: rgba(100,116,139,.08);
  --fx-ambient-one: rgba(17,24,39,.08); --fx-ambient-two: rgba(100,116,139,.08); --fx-ambient-three: rgba(245,158,11,.09);
  --shell-bg: radial-gradient(circle at 84% -8%, rgba(17,24,39,.08), transparent 28%), radial-gradient(circle at 0% 88%, rgba(245,158,11,.12), transparent 32%), #f8fafc;
  --club-crowd-image: url("/assets/backgrounds/site-scene-light-mono.webp?v=20260613-site");
  --sidebar-bg: linear-gradient(180deg, #ffffff, #f1f5f9);
  --nav-active-bg: linear-gradient(135deg, rgba(17,24,39,.12), rgba(245,158,11,.1));
  --club-hero-bg: radial-gradient(circle at 58% 34%, rgba(17,24,39,.12), transparent 24%), linear-gradient(135deg, rgba(255,255,255,.98), rgba(241,245,249,.96));
  --login-bg: radial-gradient(circle at 20% 20%, rgba(17,24,39,.1), transparent 28%), linear-gradient(135deg, #ffffff, #f1f5f9 55%, #f8fafc);
}

.login-shell { background: var(--login-bg); }
.pos-topbar { background: var(--pos-topbar-bg); }
.pos-shell { background: var(--pos-shell-bg); }
.nav-item.active { box-shadow: inset 3px 0 0 var(--club-accent), 0 14px 34px color-mix(in srgb, var(--club-glow), transparent 68%); }
.nav-icon { color: color-mix(in srgb, var(--club-accent-2), var(--nav-text) 42%); }
.theme-studio { display: grid; gap: 18px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.theme-studio-intro h3 { margin: 6px 0; font-size: clamp(22px, 2.8vw, 30px); }
.theme-variant-group { display: grid; gap: 12px; }
.theme-variant-head { display: flex; justify-content: space-between; gap: 12px; align-items: end; }
.theme-variant-head strong { font-size: 16px; }
.theme-variant-head span { color: var(--muted); font-size: 13px; }
.theme-variant-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.theme-variant-card { min-height: 150px; display: grid; align-content: start; gap: 10px; padding: 14px; border-radius: 18px; color: var(--text); text-align: left; background: linear-gradient(145deg, color-mix(in srgb, var(--panel-2), transparent 2%), color-mix(in srgb, var(--panel), black 5%)); border: 1px solid var(--line); box-shadow: 0 14px 32px rgba(0,0,0,.16); }
.theme-variant-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--club-accent), white 18%); box-shadow: 0 18px 42px color-mix(in srgb, var(--club-glow), transparent 45%); }
.theme-variant-card.active { border-color: var(--club-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--club-glow), transparent 45%), 0 18px 50px color-mix(in srgb, var(--club-glow), transparent 40%); }
.theme-swatch-row { height: 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.theme-swatch-row i { display: block; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.theme-variant-card strong { font-size: 15px; }
.theme-variant-card small { color: var(--muted); line-height: 1.35; }

.dashboard-stage { position: relative; isolation: isolate; }
.dashboard-stage:before { content: ""; position: fixed; inset: 66px 0 0 276px; z-index: 0; pointer-events: none; background: radial-gradient(circle at 78% 14%, color-mix(in srgb, var(--club-glow), transparent 25%), transparent 22%), radial-gradient(circle at 92% 54%, color-mix(in srgb, var(--club-accent-2), transparent 72%), transparent 24%); opacity: .7; }
.dashboard-clock {
  position: relative;
  min-height: clamp(170px, 17vw, 230px);
  border-color: color-mix(in srgb, var(--club-accent), transparent 46%);
  background:
    radial-gradient(circle at 72% 46%, color-mix(in srgb, var(--club-accent-2), transparent 78%), transparent 36%),
    var(--club-hero-bg);
  box-shadow:
    0 26px 76px rgba(0,0,0,.42),
    0 0 0 1px color-mix(in srgb, var(--club-accent), transparent 62%),
    0 0 46px color-mix(in srgb, var(--club-glow), transparent 42%);
}
.dashboard-clock:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--club-crowd-image);
  background-size: cover;
  background-position: center 72%;
  opacity: .88;
  filter: saturate(1.34) contrast(1.14);
  transform: scale(1.018);
}
.dashboard-clock:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.06);
  background:
    linear-gradient(90deg, rgba(3,7,18,.88) 0%, rgba(3,7,18,.44) 46%, rgba(3,7,18,.78) 100%),
    radial-gradient(circle at 76% 44%, color-mix(in srgb, var(--club-warn), transparent 78%), transparent 34%),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(255,255,255,.03) 34px 35px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -44px 86px rgba(0,0,0,.32);
}
.dashboard-clock > * { position: relative; z-index: 2; }
.dashboard-party-lights { position: absolute; inset: 0; overflow: hidden; z-index: 1; opacity: .48; }
.dashboard-party-lights span { position: absolute; width: 34%; height: 220%; top: -70%; left: 38%; transform-origin: bottom center; filter: blur(12px); opacity: .28; background: linear-gradient(180deg, transparent, var(--club-accent), transparent); animation: dashboardBeam 8s ease-in-out infinite alternate; }
.dashboard-party-lights span:nth-child(2) { left: 54%; background: linear-gradient(180deg, transparent, var(--club-accent-2), transparent); animation-duration: 10s; animation-direction: alternate-reverse; }
.dashboard-party-lights span:nth-child(3) { left: 68%; background: linear-gradient(180deg, transparent, var(--club-warn), transparent); animation-duration: 12s; }
.dashboard-clock-main h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.04em; text-shadow: 0 18px 38px rgba(0,0,0,.34); }
.dashboard-clock-time strong { font-size: clamp(32px, 5vw, 46px); letter-spacing: -.05em; }
.dashboard-service-card { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .75fr); gap: 18px; padding: 22px; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--club-accent-2), transparent 72%); background: linear-gradient(145deg, color-mix(in srgb, var(--panel), transparent 5%), color-mix(in srgb, var(--panel-2), transparent 8%)); box-shadow: 0 20px 60px rgba(0,0,0,.24); overflow: hidden; position: relative; }
.dashboard-service-card:after { content: ""; position: absolute; inset: auto -12% -45% 48%; height: 160px; border-radius: 999px; background: linear-gradient(90deg, var(--club-accent), var(--club-accent-2)); filter: blur(48px); opacity: .24; pointer-events: none; }
.dashboard-service-copy, .dashboard-service-metrics { position: relative; z-index: 1; }
.dashboard-kicker, .checklist-hero-kicker { color: var(--club-accent-2); letter-spacing: .14em; text-transform: uppercase; font-size: 11px; font-weight: 950; }
.dashboard-service-copy h2 { margin: 8px 0; font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.04em; }
.neon-action { box-shadow: 0 0 24px color-mix(in srgb, var(--club-accent), transparent 58%); }
.glass-action { background: color-mix(in srgb, var(--panel-3), transparent 14%); backdrop-filter: blur(12px); }
.dashboard-service-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dashboard-metric-tile { min-height: 142px; display: grid; align-content: center; justify-items: center; gap: 7px; padding: 16px; border-radius: 18px; background: linear-gradient(145deg, color-mix(in srgb, var(--panel-2), transparent 2%), color-mix(in srgb, var(--panel), black 8%)); border: 1px solid color-mix(in srgb, var(--club-accent), transparent 75%); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.dashboard-metric-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 16px; color: var(--club-accent-2); background: color-mix(in srgb, var(--club-accent), transparent 85%); border: 1px solid color-mix(in srgb, var(--club-accent), transparent 58%); font-weight: 950; }
.dashboard-metric-tile strong { font-size: 34px; line-height: 1; }
.dashboard-metric-tile small { color: var(--muted); }
.dashboard-metric-tile em { color: color-mix(in srgb, var(--text), transparent 42%); font-style: normal; font-size: 12px; }
.dashboard-panel-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dashboard-panel { min-height: 260px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: 14px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--club-accent), transparent 72%); background: linear-gradient(145deg, color-mix(in srgb, var(--panel), transparent 4%), color-mix(in srgb, var(--panel-2), black 4%)); box-shadow: 0 18px 50px rgba(0,0,0,.2); overflow: hidden; }
.dashboard-panel.low-stock { border-color: color-mix(in srgb, var(--club-warn), transparent 52%); box-shadow: 0 18px 54px color-mix(in srgb, var(--club-warn), transparent 82%); }
.dashboard-panel.tabs { border-color: color-mix(in srgb, var(--club-accent), transparent 50%); box-shadow: 0 18px 54px color-mix(in srgb, var(--club-accent), transparent 82%); }
.dashboard-panel.missing-products { border-color: color-mix(in srgb, var(--club-accent-2), transparent 54%); box-shadow: 0 18px 54px color-mix(in srgb, var(--club-accent-2), transparent 84%); }
.dashboard-panel header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dashboard-panel header div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dashboard-panel h3 { margin: 0; font-size: 16px; }
.dashboard-panel header small { color: var(--muted); }
.dashboard-panel-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 12px; color: var(--club-warn); background: color-mix(in srgb, var(--club-warn), transparent 86%); border: 1px solid color-mix(in srgb, var(--club-warn), transparent 58%); font-weight: 950; }
.dashboard-panel.tabs .dashboard-panel-icon { color: var(--club-accent); background: color-mix(in srgb, var(--club-accent), transparent 86%); border-color: color-mix(in srgb, var(--club-accent), transparent 58%); }
.dashboard-panel.missing-products .dashboard-panel-icon { color: var(--club-accent-2); background: color-mix(in srgb, var(--club-accent-2), transparent 86%); border-color: color-mix(in srgb, var(--club-accent-2), transparent 58%); }
.dashboard-mini-table { overflow: auto; min-height: 0; border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel), transparent 8%); }
.dashboard-mini-table table { min-width: 100%; font-size: 12px; }
.dashboard-mini-table th, .dashboard-mini-table td { padding: 10px 12px; }
.dashboard-panel-link { width: 100%; margin-top: 12px; min-height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-radius: 12px; color: var(--text); background: color-mix(in srgb, var(--panel-3), transparent 16%); border: 1px solid var(--line); }
.dashboard-panel-link:hover { border-color: var(--club-accent); transform: translateY(-1px); }
.dashboard-system-mark { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 12px; margin: 18px 0 0; }

@keyframes dashboardBeam {
  from { transform: rotate(-18deg) translateX(-18%); }
  to { transform: rotate(20deg) translateX(16%); }
}

:root[data-theme="light"] .dashboard-stage:before { opacity: .55; }
:root[data-theme="light"] .dashboard-clock {
  background:
    radial-gradient(circle at 72% 46%, color-mix(in srgb, var(--club-accent-2), transparent 84%), transparent 36%),
    var(--club-hero-bg);
  box-shadow:
    0 22px 58px rgba(15,23,42,.1),
    0 0 0 1px color-mix(in srgb, var(--club-accent), transparent 72%),
    0 0 38px color-mix(in srgb, var(--club-glow), transparent 42%);
}
:root[data-theme="light"] .dashboard-clock:before {
  opacity: .58;
  filter: saturate(1.05) contrast(1.04);
}
:root[data-theme="light"] .dashboard-clock:after {
  background:
    linear-gradient(90deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.58) 48%, rgba(255,255,255,.88) 100%),
    radial-gradient(circle at 76% 44%, color-mix(in srgb, var(--club-warn), transparent 82%), transparent 34%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), inset 0 -38px 72px rgba(255,255,255,.24);
}
:root[data-theme="light"] .dashboard-clock-main h2,
:root[data-theme="light"] .dashboard-clock-time strong { color: #0f172a; text-shadow: none; }

@media (max-width: 1200px) {
  .dashboard-panel-grid { grid-template-columns: 1fr; }
  .dashboard-service-card { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .dashboard-stage:before { inset-left: 0; }
  .dashboard-service-metrics { grid-template-columns: 1fr; }
}
