/* Honura — design system. One file, no framework. Light + dark, Thai + Latin type, phone first. */
@font-face { font-family: "Inter"; src: url(/static/fonts/inter-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Noto Sans Thai"; src: url(/static/fonts/noto-sans-thai-thai-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0E00-0E7F; }

:root {
  --brand: #5B5BD6; --brand-2: #8B5CF6; --brand-ink: #3E3EA8; --brand-soft: #EEEEFC; --brand-glow: rgba(91, 91, 214, .22);
  --mint: #12A594; --mint-soft: #E2F7F3; --amber: #E8890C; --amber-soft: #FFF3DD; --rose: #E5484D; --rose-soft: #FDECEC; --sky: #0EA5E9;
  --bg: #F6F6FA; --surface: #FFFFFF; --surface-2: #FAFAFD; --ink: #17172B; --ink-2: #3A3A55; --muted: #6E6E89; --faint: #A3A3BA;
  --line: #E8E8F1; --line-2: #F0F0F6;
  --r-sm: 9px; --r: 14px; --r-lg: 20px; --r-xl: 28px;
  --sh-1: 0 1px 2px rgba(23, 23, 43, .05), 0 1px 1px rgba(23, 23, 43, .03);
  --sh-2: 0 6px 18px -6px rgba(23, 23, 43, .12), 0 2px 4px rgba(23, 23, 43, .04);
  --sh-3: 0 24px 60px -18px rgba(30, 30, 80, .28);
  --font: "Inter", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --side: 248px; --top: 60px; --tab: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --dark: 1; } }
:root[data-theme="dark"], :root:not([data-theme="light"]):has(body.auto-dark) { --dark: 1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #8080F0; --brand-ink: #B4B4FF; --brand-soft: #23234A; --brand-glow: rgba(128, 128, 240, .25);
    --mint-soft: #0E2E2A; --amber-soft: #33240C; --rose-soft: #3A1719;
    --bg: #0E0E18; --surface: #161625; --surface-2: #1B1B2C; --ink: #F1F1FA; --ink-2: #D2D2E4; --muted: #9A9AB5; --faint: #6A6A85;
    --line: #2A2A40; --line-2: #222236; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #8080F0; --brand-ink: #B4B4FF; --brand-soft: #23234A; --brand-glow: rgba(128, 128, 240, .25);
  --mint-soft: #0E2E2A; --amber-soft: #33240C; --rose-soft: #3A1719;
  --bg: #0E0E18; --surface: #161625; --surface-2: #1B1B2C; --ink: #F1F1FA; --ink-2: #D2D2E4; --muted: #9A9AB5; --faint: #6A6A85;
  --line: #2A2A40; --line-2: #222236; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 15px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:lang(th) body, body:lang(th) { line-height: 1.6; }
a { color: var(--brand); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.015em; line-height: 1.25; }
h1 { font-size: 26px; font-weight: 750; } h2 { font-size: 19px; font-weight: 700; } h3 { font-size: 16px; font-weight: 650; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; } .right { text-align: right; } .center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; } .col { display: flex; flex-direction: column; gap: 10px; }
.wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; } .gap-s { gap: 6px; } .gap-l { gap: 18px; }
.between { justify-content: space-between; } .hide { display: none !important; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
svg[aria-hidden] { width: 18px; height: 18px; flex: none; }
.org-pill > svg, .todo > svg, a.item > svg { width: 16px; height: 16px; color: var(--faint); }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 14px; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; font-weight: 800; font-size: 20px; letter-spacing: -.03em; color: var(--ink); }
.brand svg { width: 30px; height: 30px; }
.org-pill { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 12px; cursor: pointer; }
.org-pill .logo { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 750; font-size: 14px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--ink-2); font-weight: 550; font-size: 14.5px; transition: background .15s, color .15s; }
.nav a svg { width: 20px; height: 20px; flex: none; opacity: .75; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.on { background: var(--brand-soft); color: var(--brand-ink); }
.nav a.on svg { opacity: 1; color: var(--brand); }
.nav .badge { margin-left: auto; }
.nav-sep { height: 1px; background: var(--line); margin: 10px 6px; }
.side-foot { margin-top: auto; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; height: var(--top); display: flex; align-items: center; gap: 12px; padding: 0 28px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top h1 { font-size: 18px; font-weight: 700; }
.page { padding: 8px 28px 48px; max-width: 1280px; width: 100%; margin: 0 auto; animation: rise .22s ease-out; }
.page.wide { max-width: none; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.tabbar { display: none; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .top { padding: 0 16px; }
  .page { padding: 4px 16px calc(var(--tab) + 28px); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; height: calc(var(--tab) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); z-index: 30; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); }
  .tabbar a svg { width: 23px; height: 23px; }
  .tabbar a.on { color: var(--brand); }
  .tabbar a.clock-tab .dot { width: 50px; height: 50px; margin-top: -22px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 10px 22px -6px var(--brand-glow), 0 0 0 5px var(--bg); }
  .tabbar a.clock-tab .dot.live { background: linear-gradient(135deg, #10B981, var(--mint)); }
  h1 { font-size: 22px; }
  .hero { padding: 22px 20px; border-radius: 24px; }
  .hero h1 { font-size: 24px !important; }
  .hide-m { display: none !important; }
}

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--sh-1); }
.card.flat { box-shadow: none; } .card.pad-0 { padding: 0; overflow: hidden; }
.card h2, .card h3 { margin-bottom: 12px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; } .card-head h2, .card-head h3 { margin: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-main { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .g2, .g3, .g4.one-m { grid-template-columns: 1fr; } }
.hero { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 26px 28px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #7B7BF0 0%, var(--brand) 38%, #4338CA 100%); box-shadow: var(--sh-3); }
.hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.28), transparent 65%); }
.hero .muted { color: rgba(255,255,255,.78); }
.stat { padding: 16px 18px; }
.stat .k { font-size: 13px; color: var(--muted); font-weight: 550; display: flex; align-items: center; gap: 8px; }
.stat .v { font-size: 30px; font-weight: 750; letter-spacing: -.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; }
.stat .ico svg { width: 17px; height: 17px; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; transition: transform .06s, background .15s, box-shadow .15s, border-color .15s; white-space: nowrap; }
.btn:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.btn:active { transform: scale(.98); }
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px var(--brand-glow); }
.btn.primary:hover { background: var(--brand-ink); }
:root[data-theme="dark"] .btn.primary:hover { background: #6D6DE6; }
.btn.ghost { background: transparent; border-color: transparent; } .btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--rose); } .btn.ok { background: var(--mint); border-color: var(--mint); color: #fff; }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 10px; }
.btn.lg { height: 50px; padding: 0 22px; font-size: 16px; border-radius: 15px; }
.btn.icon { width: 40px; padding: 0; } .btn.sm.icon { width: 32px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.input, select.input, textarea.input { width: 100%; height: 42px; padding: 0 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; padding: 10px 13px; resize: vertical; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-glow); }
.search { position: relative; } .search svg { position: absolute; left: 12px; top: 11px; width: 18px; height: 18px; color: var(--faint); } .search .input { padding-left: 38px; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 13px; border-radius: 9px; font-weight: 600; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.switch { position: relative; width: 42px; height: 24px; flex: none; } .switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--line); transition: .2s; cursor: pointer; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: .2s; }
.switch input:checked + i { background: var(--brand); } .switch input:checked + i::after { transform: translateX(18px); }
.form { display: grid; gap: 14px; } .form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .form .two { grid-template-columns: 1fr; } }

/* ---------- bits ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 12px; font-weight: 650; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge.brand { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
.badge.mint { background: var(--mint-soft); color: var(--mint); border-color: transparent; }
.badge.amber { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.badge.rose { background: var(--rose-soft); color: var(--rose); border-color: transparent; }
.badge.count { background: var(--rose); color: #fff; border: 0; min-width: 20px; justify-content: center; height: 20px; padding: 0 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--faint); flex: none; }
.dot.live { background: #10B981; box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.55); } 70% { box-shadow: 0 0 0 9px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
.av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; flex: none; overflow: hidden; background: var(--brand); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.sm { width: 28px; height: 28px; font-size: 11.5px; } .av.lg { width: 64px; height: 64px; font-size: 22px; } .av.xl { width: 92px; height: 92px; font-size: 32px; }
.stack { display: flex; } .stack .av { border: 2px solid var(--surface); margin-left: -8px; } .stack .av:first-child { margin-left: 0; }
.list { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line-2); }
.item:last-child { border-bottom: 0; }
a.item { color: inherit; border-radius: 10px; padding-left: 8px; padding-right: 8px; } a.item:hover { background: var(--surface-2); }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .art { width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 26px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.empty .art svg { width: 38px; height: 38px; }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.skel { background: linear-gradient(90deg, var(--line-2) 25%, var(--line) 37%, var(--line-2) 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 10px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.bar { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; } .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.ring { --p: 50; --c: var(--brand); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line-2) 0); position: relative; flex: none; }
.ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.ring b { position: relative; font-size: 15px; font-variant-numeric: tabular-nums; }
.todo { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: inherit; transition: transform .12s, box-shadow .15s; }
.todo:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }
.todo .ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.todo .ico svg { width: 20px; height: 20px; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); position: sticky; top: 0; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: var(--surface-2); }
.tbl .num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--brand); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: var(--amber-soft); color: color-mix(in srgb, var(--amber) 70%, var(--ink)); font-size: 14px; }
.alert.rose { background: var(--rose-soft); color: color-mix(in srgb, var(--rose) 75%, var(--ink)); }
.alert.brand { background: var(--brand-soft); color: var(--brand-ink); }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* ---------- overlays ---------- */
.scrim { position: fixed; inset: 0; background: rgba(14, 14, 30, .42); backdrop-filter: blur(3px); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.sheet { background: var(--surface); border-radius: var(--r-xl); width: min(540px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--sh-3); animation: pop .2s cubic-bezier(.2, .9, .3, 1.2); }
.sheet.wide { width: min(820px, 100%); }
.sheet-h { display: flex; align-items: center; gap: 10px; padding: 20px 22px 6px; } .sheet-h h2 { flex: 1; }
.sheet-b { padding: 12px 22px 22px; }
.sheet-f { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; border-top: 1px solid var(--line-2); position: sticky; bottom: 0; background: var(--surface); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (max-width: 640px) { .scrim { align-items: flex-end; padding: 0; } .sheet { border-radius: 24px 24px 0 0; width: 100%; max-height: 92vh; animation: up .24s cubic-bezier(.2, .9, .3, 1); } }
@keyframes up { from { transform: translateY(100%); } }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; z-index: 90; box-shadow: var(--sh-3); animation: rise .2s; display: flex; gap: 10px; align-items: center; max-width: calc(100vw - 32px); }
@media (max-width: 900px) { .toast { bottom: calc(var(--tab) + 18px); } }
.menu { position: absolute; z-index: 70; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3); padding: 6px; min-width: 220px; animation: pop .14s; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 9px; border: 0; background: none; color: var(--ink); font-weight: 550; font-size: 14px; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--surface-2); }

/* ---------- schedule grid ---------- */
.sched { display: grid; grid-template-columns: 210px repeat(7, minmax(118px, 1fr)); min-width: 1040px; }
.sched .hd { position: sticky; top: 0; z-index: 3; background: var(--surface-2); padding: 10px 10px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 650; color: var(--muted); }
.sched .hd b { display: block; color: var(--ink); font-size: 15px; } .sched .hd.today b { color: var(--brand); }
.sched .hd.hol { background: var(--rose-soft); } .sched .hd .hn { font-size: 11px; color: var(--rose); font-weight: 600; }
.sched .who { position: sticky; left: 0; z-index: 2; background: var(--surface); padding: 10px 12px; border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line); display: flex; align-items: center; gap: 10px; min-height: 64px; }
.sched .who .h { font-size: 12px; color: var(--muted); }
.sched .who .h.warn { color: var(--rose); font-weight: 650; }
.sched .cell { border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line-2); padding: 5px; min-height: 64px; display: flex; flex-direction: column; gap: 4px; transition: background .12s; position: relative; }
.sched .cell:hover { background: var(--surface-2); }
.sched .cell .add { opacity: 0; position: absolute; inset: 5px; border: 1.5px dashed var(--line); border-radius: 10px; display: grid; place-items: center; color: var(--faint); font-size: 20px; cursor: pointer; transition: opacity .12s; }
.sched .cell:hover .add { opacity: 1; }
.sched .cell.drop { background: var(--brand-soft); outline: 2px dashed var(--brand); outline-offset: -3px; }
.sched .cell.unav { background: repeating-linear-gradient(135deg, transparent 0 8px, color-mix(in srgb, var(--line) 55%, transparent) 8px 9px); }
.sched .group { grid-column: 1 / -1; padding: 8px 12px; background: var(--bg); font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; position: sticky; left: 0; }
.shift { --c: var(--brand); position: relative; z-index: 1; border-radius: 10px; padding: 6px 8px 6px 11px; font-size: 12.5px; font-weight: 650; line-height: 1.3; background: color-mix(in srgb, var(--c) 13%, var(--surface)); color: color-mix(in srgb, var(--c) 72%, var(--ink)); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); cursor: grab; user-select: none; }
.shift::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--c); }
.shift small { display: block; font-weight: 550; opacity: .8; font-size: 11.5px; }
.shift.draft { border-style: dashed; background: transparent; }
.shift.open { --c: var(--amber); }
.shift.trade::after { content: "⇄"; position: absolute; right: 6px; top: 5px; font-size: 12px; }
.shift.leave { --c: var(--rose); cursor: default; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 10%, var(--surface)) 0 7px, color-mix(in srgb, var(--c) 18%, var(--surface)) 7px 14px); }
.shift.dragging { opacity: .4; }
.labor { display: grid; grid-template-columns: 210px repeat(7, minmax(118px, 1fr)); min-width: 1040px; background: var(--surface-2); border-top: 1px solid var(--line); position: sticky; bottom: 0; z-index: 3; }
.labor div { padding: 9px 10px; font-size: 12.5px; color: var(--muted); border-right: 1px solid var(--line-2); } .labor b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sched-wrap { overflow: auto; max-height: calc(100vh - 230px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-1); }
@media (max-width: 900px) { .sched-wrap { max-height: none; } }

/* ---------- clock ---------- */
.clock-face { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 26px 16px; text-align: center; }
.big-btn { width: 196px; height: 196px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; font-size: 21px; font-weight: 750; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: radial-gradient(circle at 30% 25%, #8E8EF7, var(--brand) 55%, #4338CA); box-shadow: 0 26px 50px -18px var(--brand-glow), inset 0 -6px 18px rgba(0,0,0,.18), 0 0 0 10px color-mix(in srgb, var(--brand) 10%, transparent); transition: transform .12s; }
.big-btn:active { transform: scale(.97); }
.big-btn.out { background: radial-gradient(circle at 30% 25%, #4ADE9F, #10B981 55%, #0B7F67); box-shadow: 0 26px 50px -18px rgba(16,185,129,.45), inset 0 -6px 18px rgba(0,0,0,.18), 0 0 0 10px rgba(16,185,129,.12); }
.big-btn svg { width: 34px; height: 34px; }
.timer { font-size: 46px; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kiosk { min-height: 100vh; padding: 24px; background: radial-gradient(120% 90% at 10% 0%, var(--brand-soft), var(--bg) 60%); }
.kiosk .faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; }
.kiosk .face { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 10px 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; text-align: center; font-weight: 650; transition: transform .1s, box-shadow .15s; }
.kiosk .face:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.kiosk .face.in { border-color: #10B981; box-shadow: 0 0 0 3px rgba(16,185,129,.15); }
.pin { display: grid; grid-template-columns: repeat(3, 76px); gap: 12px; justify-content: center; }
.pin button { height: 76px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); font-size: 26px; font-weight: 650; cursor: pointer; }
.pin button:active { background: var(--brand-soft); }
.pin-dots { display: flex; gap: 14px; justify-content: center; margin: 14px 0 18px; } .pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--brand); } .pin-dots i.on { background: var(--brand); }

/* ---------- payroll ---------- */
.steps { display: flex; gap: 8px; margin: 4px 0 20px; flex-wrap: wrap; }
.steps .st { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 13.5px; color: var(--muted); }
.steps .st i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.steps .st.on { color: var(--ink); border-color: var(--brand); } .steps .st.on i { background: var(--brand); color: #fff; border-color: var(--brand); }
.steps .st.done i { background: var(--mint); color: #fff; border-color: var(--mint); }
.slip { max-width: 760px; margin: 0 auto; }
.slip-paper { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--sh-2); }
.slip-top { padding: 22px 26px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.slip-net { font-size: 38px; font-weight: 800; letter-spacing: -.03em; }
.slip-lines { padding: 8px 26px 18px; } .slip-lines .ln { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.slip-lines .ln.tot { border-bottom: 0; font-weight: 750; padding-top: 12px; }

/* ---------- auth / marketing ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth .art { position: relative; overflow: hidden; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(90% 80% at 15% 10%, #8B8BF5, transparent 60%), radial-gradient(70% 70% at 90% 90%, #8B5CF6, transparent 60%), #3730A3; }
.auth .art h2 { font-size: 40px; line-height: 1.12; font-weight: 800; letter-spacing: -.035em; max-width: 520px; }
.auth .art .glass { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); border-radius: 22px; padding: 16px 18px; max-width: 380px; }
.auth .panel { display: flex; align-items: center; justify-content: center; padding: 32px 20px; background: var(--bg); }
.auth .box { width: min(400px, 100%); display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth .art { display: none; } }
.demo-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.demo-pick button { padding: 12px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 650; font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.demo-pick button:hover { border-color: var(--brand); background: var(--brand-soft); }
.demo-pick svg { width: 22px; height: 22px; color: var(--brand); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.plan.pop { border: 2px solid var(--brand); box-shadow: 0 18px 40px -20px var(--brand-glow); }
.plan .price { font-size: 34px; font-weight: 800; letter-spacing: -.03em; } .plan .price small { font-size: 14px; font-weight: 550; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.plan li { display: flex; gap: 8px; } .plan li::before { content: "✓"; color: var(--mint); font-weight: 800; }
.plan .cur { position: absolute; top: -11px; left: 18px; }
input[type=range] { width: 100%; accent-color: var(--brand); }

/* ---------- print ---------- */
@media print {
  .side, .top, .tabbar, .no-print { display: none !important; }
  .shell { display: block; } .page { padding: 0; } body { background: #fff; }
  .slip-paper { box-shadow: none; border: 1px solid #ccc; }
}
