/* Shelly Office — design system (copied from Timekeeper). Light and dark themes (follows the device; the toggle overrides). */

@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #f5f6fb; --surface: #fff; --surface-2: #f1f3f9; --surface-3: #e9edf5; --border: #e2e6ef; --border-2: #cfd6e3;
  --text: #0f172a; --text-2: #3b4658; --muted: #667085;
  --primary: #4f46e5; --primary-2: #6366f1; --primary-soft: #eef0ff; --on-primary: #fff;
  --ok: #15803d; --ok-soft: #dcfce7; --warn: #a15c07; --warn-soft: #fef3c7; --bad: #b91c1c; --bad-soft: #fee2e2; --info: #0369a1; --info-soft: #e0f2fe;
  --ring: 0 0 0 3px rgba(79, 70, 229, .25);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 24px 60px -24px rgba(15, 23, 42, .35);
  --r: 14px; --r-sm: 10px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f1d; --surface: #111829; --surface-2: #161f33; --surface-3: #1d2840; --border: #233049; --border-2: #33425f;
    --text: #e8ecf5; --text-2: #c2cad9; --muted: #8e9ab1;
    --primary: #8b8cf8; --primary-2: #a5a6fb; --primary-soft: rgba(129, 140, 248, .14); --on-primary: #0b1020;
    --ok: #4ade80; --ok-soft: rgba(34, 197, 94, .14); --warn: #fbbf24; --warn-soft: rgba(245, 158, 11, .14); --bad: #f87171; --bad-soft: rgba(239, 68, 68, .14);
    --info: #38bdf8; --info-soft: rgba(14, 165, 233, .14); --ring: 0 0 0 3px rgba(139, 140, 248, .35);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .6); --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0f1d; --surface: #111829; --surface-2: #161f33; --surface-3: #1d2840; --border: #233049; --border-2: #33425f;
  --text: #e8ecf5; --text-2: #c2cad9; --muted: #8e9ab1;
  --primary: #8b8cf8; --primary-2: #a5a6fb; --primary-soft: rgba(129, 140, 248, .14); --on-primary: #0b1020;
  --ok: #4ade80; --ok-soft: rgba(34, 197, 94, .14); --warn: #fbbf24; --warn-soft: rgba(245, 158, 11, .14); --bad: #f87171; --bad-soft: rgba(239, 68, 68, .14);
  --info: #38bdf8; --info-soft: rgba(14, 165, 233, .14); --ring: 0 0 0 3px rgba(139, 140, 248, .35);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .6); --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.55 var(--font); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
code, .mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: .9em; }
code { background: var(--surface-2); border: 1px solid var(--border); padding: .1em .4em; border-radius: 6px; }
code.big { font-size: 1.15em; padding: .25em .6em; letter-spacing: .04em; }
code.wrap { word-break: break-all; display: inline-block; }
img, svg { display: block; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .block { display: block; } .nowrap { white-space: nowrap; } .center { text-align: center; }
.mt { margin-top: 14px; } .mt0 { margin-top: 0; } .warn-t { color: var(--warn); } .danger-t { color: var(--bad) !important; }
.i { width: 18px; height: 18px; flex: none; } .i-sm { width: 15px; height: 15px; } .i-xl { width: 40px; height: 40px; }
.t-light { display: none; }
[data-theme="dark"] .t-dark { display: none; } [data-theme="dark"] .t-light { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .t-dark { display: none; } :root:not([data-theme="light"]) .t-light { display: block; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border-2);
  background: var(--surface); color: var(--text); font: 600 14px/1 var(--font); cursor: pointer; text-decoration: none !important; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s; box-shadow: var(--shadow-sm); }
.btn:hover { background: var(--surface-2); border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: 0 6px 16px -8px var(--primary); }
.btn.primary:hover { background: var(--primary-2); border-color: var(--primary-2); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.btn.danger:hover { background: var(--bad-soft); }
.btn.danger:not(.ghost) { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ghost { background: transparent; box-shadow: none; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.light { background: rgba(255, 255, 255, .9); color: #111; border-color: transparent; }
.btn.sm { min-height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn.lg { min-height: 50px; padding: 0 22px; font-size: 16px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn .i { width: 17px; height: 17px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.icon-btn.sm { width: 32px; height: 32px; border-radius: 8px; }
.linkish { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; cursor: pointer; }
.link { font-size: 13px; font-weight: 600; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap;
  background: var(--surface-3); color: var(--text-2); }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); } .badge.info { background: var(--info-soft); color: var(--info); }
.badge + .badge { margin-left: 4px; }

/* avatar */
.avatar { --c: #4f46e5; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 700; font-size: 13px;
  letter-spacing: .02em; flex: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .15); }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; } .avatar.lg { width: 56px; height: 56px; font-size: 19px; } .avatar.xl { width: 84px; height: 84px; font-size: 28px; }
.person { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.person:hover { text-decoration: none; } .person:hover b { color: var(--primary); }

/* ---------- panel shell ---------- */
.shell { display: flex; min-height: 100vh; }
.side { width: 256px; flex: none; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--border); z-index: 60; }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; }
.brand b { display: block; font-size: 16px; letter-spacing: -.01em; } .brand small { display: block; color: var(--muted); font-size: 12px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mark svg { width: 34px; height: 34px; filter: drop-shadow(0 4px 10px rgba(79, 70, 229, .35)); }
.side-close { display: none; }
.nav { flex: 1; overflow-y: auto; padding: 6px 10px 12px; }
.nav-group { margin-top: 14px; }
.nav-group p { margin: 0 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: var(--text-2); font-weight: 550; text-decoration: none; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.on { background: var(--primary-soft); color: var(--primary); }
.nav a.on .i { color: var(--primary); }
.side-foot { padding: 12px; border-top: 1px solid var(--border); }
.kiosk-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), #0ea5e9); color: #fff !important; font-weight: 600; text-decoration: none !important; }
.kiosk-link span { flex: 1; }
.side-scrim { display: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 20px; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.menu-btn { display: none; }
.top-title { font-weight: 650; color: var(--text-2); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.top-actions { display: flex; align-items: center; gap: 6px; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 999px; cursor: pointer; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover { background: var(--surface-2); }
.um-name { font-weight: 600; font-size: 14px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-pop, .menu-pop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 240px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 70; }
.um-pop a, .um-pop button, .menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; border: 0; background: none; color: var(--text);
  font: 500 14px var(--font); text-align: left; cursor: pointer; text-decoration: none; }
.um-pop a:hover, .um-pop button:hover, .menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); }
.um-who { padding: 8px 10px 10px; margin: 0 0 6px; border-bottom: 1px solid var(--border); }
.um-who b, .um-who span { display: block; } .um-who span { color: var(--muted); font-size: 13px; } .um-who .badge { display: inline-flex; margin-top: 6px; }
.menu { position: relative; display: inline-block; }
.menu summary { list-style: none; } .menu summary::-webkit-details-marker { display: none; }
.menu-pop { min-width: 260px; }
.imp-banner { display: flex; align-items: center; gap: 10px; padding: 10px 20px; background: linear-gradient(90deg, #b45309, #d97706); color: #fff; font-size: 14px; }
.imp-banner span { flex: 1; } .imp-banner .i { width: 18px; }
.notice-bar { display: flex; align-items: center; gap: 10px; padding: 10px 20px; font-size: 14px; }
.notice-bar.warn { background: var(--warn-soft); color: var(--warn); }
.content { width: 100%; max-width: 1240px; margin: 0 auto; padding: 26px 24px 40px; flex: 1; }
.content.wide { max-width: 1560px; }
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.ph h1 { font-size: 26px; margin: 0; letter-spacing: -.025em; }
.ph .sub { margin: 6px 0 0; color: var(--muted); }
.ph-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ph-actions form { display: inline; }
.foot { display: flex; justify-content: space-between; padding: 16px 24px; color: var(--muted); font-size: 12px; }

/* cards & grids */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm); margin-bottom: 18px; overflow: visible; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-h h2 { display: flex; align-items: center; gap: 9px; font-size: 15px; margin: 0; }
.card-h h2 .i { color: var(--muted); }
.card-b { padding: 18px; }
.card-f { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--r) var(--r); flex-wrap: wrap; }
.card-f .spacer, .spacer { flex: 1; }
.card.narrow, form.narrow { max-width: 680px; }
.grid { display: grid; gap: 18px; align-items: start; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.two-1 { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions form { display: inline; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpis.compact { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpi { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.kpi-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); flex: none; }
.kpi.ok .kpi-ic { background: var(--ok-soft); color: var(--ok); } .kpi.warn .kpi-ic { background: var(--warn-soft); color: var(--warn); }
.kpi-l { margin: 0; color: var(--muted); font-size: 13px; font-weight: 550; }
.kpi-v { margin: 2px 0; font-size: 26px; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi-s { margin: 0; color: var(--muted); font-size: 12px; }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; padding: 10px 14px; font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2);
  border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .center { text-align: center; }
.tbl .act { width: 1%; white-space: nowrap; text-align: right; }
.tbl .cb { width: 1%; }
.tbl .clip { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl tr.total td { font-weight: 700; background: var(--primary-soft); border-top: 2px solid var(--border-2); }
.tbl tr.subtotal td { font-weight: 650; background: var(--surface-2); }
.tbl tr.muted td { color: var(--muted); }
.tbl tr.today td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
.tbl tr.has-issue td { background: color-mix(in srgb, var(--warn-soft) 55%, transparent); }
.tbl tr.day-empty td { color: var(--muted); font-size: 13px; }
.tbl tr.day-empty.missing td:nth-child(2) { color: var(--bad); font-weight: 600; }
.tbl tr.day-empty.absent td:nth-child(2) { color: var(--info); font-weight: 600; }
.tbl td.c-red { color: var(--bad); font-weight: 600; } .tbl td.c-amber { color: var(--warn); font-weight: 600; } .tbl td.c-green { color: var(--ok); }
.tbl td.c-accent { color: var(--info); font-weight: 600; } .tbl td.c-grey { color: var(--muted); }
.time-link { font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; border-bottom: 1px dashed var(--border-2); }
.time-link:hover { color: var(--primary); text-decoration: none; border-color: var(--primary); }
.time-link.edited::after { content: "*"; color: var(--warn); margin-left: 1px; }
.missing-t { color: var(--bad); font-weight: 600; font-size: 13px; }
.photo-link { display: inline-flex; vertical-align: middle; color: var(--muted); }
.tbl td .person { gap: 8px; }

/* toolbar & filters */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.toolbar select, .toolbar input[type=date], .toolbar input[type=search], .toolbar input[type=text] { height: 40px; }
.toolbar-nav { display: inline-flex; gap: 2px; margin-left: auto; }
.search { position: relative; display: flex; align-items: center; }
.search .i { position: absolute; left: 11px; color: var(--muted); pointer-events: none; }
.search input { padding-left: 36px !important; min-width: 240px; }
.range { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.range-custom { display: inline-flex; gap: 6px; align-items: center; } .range-custom[hidden] { display: none; }
.range-sep { color: var(--muted); font-size: 13px; }
.seg-links { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.seg-links a { padding: 6px 12px; border-radius: 7px; color: var(--text-2); font-weight: 600; font-size: 13px; text-decoration: none; }
.seg-links a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* forms */
input, select, textarea { font: inherit; color: var(--text); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=date], input[type=time], input[type=search], input:not([type]), select, textarea {
  width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--border-2); border-radius: 10px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.toolbar input, .toolbar select, .inline input, .inline select, .range input, .range select { width: auto; }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
input:disabled { background: var(--surface-2); color: var(--muted); }
input[type=color] { width: 52px; height: 40px; padding: 3px; border: 1px solid var(--border-2); border-radius: 10px; background: var(--surface); cursor: pointer; }
select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
.form .field { margin-bottom: 14px; }
.field label { display: block; }
.lbl { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; color: var(--text-2); }
.hint { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form .sec { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 0 12px; padding-top: 18px; border-top: 1px solid var(--border); }
.form .sec.mt0 { border-top: 0; padding-top: 0; margin-top: 0; }
.form.inline, form.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.form.inline input { flex: 1; min-width: 160px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); flex: none; }
.check b { display: block; font-weight: 600; font-size: 14px; } .check small { display: block; color: var(--muted); font-size: 12.5px; }
.check.inline { padding: 0 6px; align-items: center; } .check.inline input { margin: 0; }
.prefix-input, .suffix-input { display: flex; align-items: stretch; }
.prefix-input span, .suffix-input span { display: flex; align-items: center; padding: 0 12px; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--muted); font-size: 14px; white-space: nowrap; }
.prefix-input span { border-right: 0; border-radius: 10px 0 0 10px; } .prefix-input input { border-radius: 0 10px 10px 0; }
.suffix-input span { border-left: 0; border-radius: 0 10px 10px 0; } .suffix-input input { border-radius: 10px 0 0 10px; }
.pin-row { display: flex; gap: 8px; } .pin-input { letter-spacing: .4em; font-weight: 700; max-width: 160px; }
.code-input { font-size: 22px; letter-spacing: .3em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.seg { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.seg legend { margin-bottom: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-flex; padding: 9px 14px; border: 1px solid var(--border-2); border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; background: var(--surface); }
.seg input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.seg input:focus-visible + span { box-shadow: var(--ring); }
.days { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.days label { position: relative; } .days input { position: absolute; opacity: 0; }
.days span { display: inline-grid; place-items: center; width: 50px; height: 40px; border: 1px solid var(--border-2); border-radius: 10px; font-weight: 650; font-size: 13px; cursor: pointer; background: var(--surface); }
.days input:checked + span { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.days input:focus-visible + span { box-shadow: var(--ring); }
.perm-list { border: 0; padding: 0; margin: 4px 0 0; }
.sticky-save { position: sticky; bottom: 0; padding: 14px 0; display: flex; justify-content: flex-end; background: linear-gradient(transparent, var(--bg) 40%); }
.inline-edit { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-edit input:not([type=color]) { min-width: 160px; width: auto; flex: 1; }
.inline-edit select { width: auto; }

/* flash & empty */
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; background: var(--ok-soft); color: var(--ok); font-weight: 550; }
.flash.bad { background: var(--bad-soft); color: var(--bad); } .flash.warn { background: var(--warn-soft); color: var(--warn); } .flash.info { background: var(--info-soft); color: var(--info); }
.flash span { flex: 1; } .flash .i { margin-top: 2px; }
.flash code { background: var(--surface); color: var(--text); }
.flash-x { background: none; border: 0; color: inherit; cursor: pointer; opacity: .7; padding: 0; }
.empty { text-align: center; padding: 26px 10px; color: var(--muted); }
.empty .i-xl { margin: 0 auto 10px; color: var(--border-2); }
.empty h3 { color: var(--text); font-size: 16px; margin-bottom: 4px; }
.empty p { margin-bottom: 12px; }

/* dashboard */
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; }
.board-col { padding: 14px 16px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.board-col h3 { display: flex; align-items: center; gap: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.board-col h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.board-col.c-in h3::before { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.board-col.c-break h3::before { background: #0ea5e9; } .board-col.c-exp h3::before { background: #f59e0b; } .board-col.c-done h3::before { background: #94a3b8; } .board-col.c-away h3::before { background: #a855f7; }
.count { margin-left: auto; background: var(--surface-2); color: var(--text-2); padding: 0 8px; border-radius: 999px; font-size: 12px; }
.board ul, .issues, .feed, .plain-list { list-style: none; margin: 0; padding: 0; }
.board li { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.board li b { display: block; font-size: 14px; font-weight: 600; } .board li small { color: var(--muted); font-size: 12px; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: var(--ok); }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; height: 180px; align-items: end; }
.bar { display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 6px; }
.bar-f { --h: 0%; width: 100%; max-width: 36px; height: var(--h); min-height: 3px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--primary-2), var(--primary)); opacity: .55; }
.bar.today .bar-f { opacity: 1; }
.bar-v { font-size: 12px; font-weight: 650; color: var(--text-2); font-variant-numeric: tabular-nums; }
.bar-l { font-size: 12px; color: var(--muted); }
.issues li a { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; flex-wrap: wrap; }
.issues li:last-child a { border-bottom: 0; }
.issues li a:hover { background: var(--surface-2); }
.issues li span:not(.avatar) small { display: block; color: var(--muted); font-size: 12px; }
.issue-flags { margin-left: auto; }
.feed li { display: flex; align-items: center; gap: 10px; padding: 9px 18px; border-bottom: 1px solid var(--border); }
.feed li:last-child { border-bottom: 0; }
.feed li > span:nth-child(2) { flex: 1; } .feed-t { font-weight: 650; font-variant-numeric: tabular-nums; } .feed-s { color: var(--muted); font-size: 12px; min-width: 80px; text-align: right; }
.onboard { background: linear-gradient(135deg, var(--primary-soft), transparent); }
.onboard-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: s; }
.onboard-steps a { display: block; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text); height: 100%; counter-increment: s; }
.onboard-steps a::before { content: counter(s); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 700; margin-bottom: 8px; }
.onboard-steps b, .onboard-steps span { display: block; } .onboard-steps span { color: var(--muted); font-size: 13px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 10px; padding: 8px 0; align-items: flex-start; }
.checklist li.ok .i { color: var(--ok); } .checklist li.todo .i { color: var(--warn); }
.checklist small { display: block; color: var(--muted); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 14px; }
.kv dt { color: var(--muted); font-size: 13px; } .kv dd { margin: 0; font-weight: 550; word-break: break-word; }
.timeline { list-style: none; margin: 0; padding: 8px 18px; }
.timeline li { padding: 10px 0 10px 18px; border-left: 2px solid var(--border); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.timeline small { display: block; color: var(--muted); }
.plain-list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.plain-list li:last-child { border-bottom: 0; }
.team-list li { display: flex; align-items: center; gap: 8px; padding: 8px 18px; }
.team-list .inline-edit { flex: 1; }
.codes { columns: 2; font-size: 16px; } .codes li { padding: 4px 0; }
.tfa-setup { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.qr-box { background: #fff; padding: 12px; border-radius: 14px; border: 1px solid var(--border); width: 240px; max-width: 100%; flex: none; }
.qr-box.sm { width: 150px; padding: 8px; }
.qr-box svg { width: 100%; height: auto; }
.card-b.center { text-align: center; } .card-b.center .qr-box { margin: 0 auto 14px; }
.kiosk-card { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.kiosk-card > div:last-child { flex: 1; min-width: 220px; }
.steps { padding-left: 20px; } .steps li { margin-bottom: 10px; }
code.key { font-size: 15px; letter-spacing: .08em; }
.person-head .card-b { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.person-head h2 { margin: 0; }
.person-head p { margin: 2px 0 0; }
.mini-stats { display: flex; gap: 24px; margin: 0 0 0 auto; flex-wrap: wrap; }
.mini-stats div { min-width: 70px; } .mini-stats dt { font-size: 12px; color: var(--muted); } .mini-stats dd { margin: 0; font-size: 20px; font-weight: 750; font-variant-numeric: tabular-nums; }
.bulk-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--primary-soft); border-bottom: 1px solid var(--border); flex-wrap: wrap; border-radius: var(--r) var(--r) 0 0; }
.bulk-bar input { flex: 1; min-width: 200px; min-height: 32px; padding: 5px 10px; }
.bulk-bar[data-empty] { opacity: .6; }
.tabs { display: flex; gap: 4px; margin: 0 0 14px; border-bottom: 1px solid var(--border); }
.tab { padding: 8px 14px; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; text-decoration: none; }
.tab.on { color: var(--primary); border-bottom-color: var(--primary); }
.tbl input.sm { min-height: 32px; padding: 4px 8px; width: 120px; }
.punch-photo { width: 100%; max-width: 320px; border-radius: 12px; margin-top: 8px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 6px 0 20px; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.report-card { display: flex; gap: 14px; align-items: center; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); color: var(--text); box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s; }
.report-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--primary); }
.report-card b { display: block; margin-bottom: 2px; } .report-card small { color: var(--muted); font-size: 13px; }
.rc-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); flex: none; }
.rc-go { margin-left: auto; color: var(--muted); }
.danger-zone { border-color: color-mix(in srgb, var(--bad) 35%, var(--border)); }

/* ---------- sign-in / simple pages ---------- */
.solo { min-height: 100vh; background: radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--primary) 18%, transparent), transparent), radial-gradient(900px 500px at 110% 110%, rgba(14, 165, 233, .14), transparent), var(--bg); }
.solo-wrap { max-width: 460px; margin: 0 auto; padding: 48px 18px; }
.solo-brand { margin-bottom: 22px; }
.solo-card { padding: 28px; box-shadow: var(--shadow-lg); }
.solo-card.wide { max-width: 640px; }
.solo-card h1 { font-size: 22px; }
.solo-foot { text-align: center; margin-top: 16px; font-size: 13px; }
.solo-card .btn.block { margin: 6px 0 16px; }

/* ---------- marketing ---------- */
.land { background: var(--bg); }
.land-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1180px; margin: 0 auto; padding: 18px 20px; }
.land-nav nav { display: flex; align-items: center; gap: 6px; }
.land-nav nav > a:not(.btn) { color: var(--text-2); font-weight: 600; padding: 8px 10px; border-radius: 8px; font-size: 14px; }
.land-nav nav > a:not(.btn):hover { background: var(--surface-2); text-decoration: none; }
.hero { max-width: 1180px; margin: 0 auto; padding: 40px 20px 70px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 650; font-size: 13px; }
.hero h1 { font-size: clamp(38px, 5.5vw, 64px); letter-spacing: -.045em; line-height: 1.04; margin: 18px 0; }
.grad { background: linear-gradient(90deg, #6366f1, #0ea5e9 60%, #10b981); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--text-2); max-width: 560px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 20px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--text-2); font-size: 14px; }
.ticks li { display: flex; gap: 6px; align-items: center; } .ticks .i { color: var(--ok); }
.hero-art { position: relative; display: grid; place-items: center; }
.device { width: min(100%, 420px); aspect-ratio: 4 / 3.1; border-radius: 28px; padding: 14px; background: linear-gradient(145deg, #1e293b, #0f172a); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.device-screen { height: 100%; border-radius: 16px; background: radial-gradient(400px 200px at 0 0, rgba(99, 102, 241, .35), transparent), #0b1220; padding: 16px; color: #e2e8f0; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.mk-top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #94a3b8; } .mk-top b { color: #fff; font-size: 18px; }
.mk-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.mk-h { margin: 0; font-weight: 700; }
.mk-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.mk-card { position: relative; aspect-ratio: 1; display: grid; place-items: center; background: rgba(255, 255, 255, .05); border-radius: 12px; }
.mk-av { --c: #4f46e5; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--c); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }
.mk-in { position: absolute; right: 6px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.mk-pad { display: grid; grid-template-columns: repeat(9, 1fr); gap: 5px; } .mk-pad span { height: 16px; border-radius: 5px; background: rgba(255, 255, 255, .08); }
.mk-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.mk-acts span { text-align: center; padding: 9px; border-radius: 10px; font-weight: 700; font-size: 13px; }
.a-in { background: #16a34a; } .a-out { background: #e11d48; }
.float-card { position: absolute; display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 13px; }
.float-card b { display: block; } .float-card small { color: var(--muted); }
.float-card .i { color: var(--ok); }
.fc1 { left: -24px; bottom: -18px; animation: float 6s ease-in-out infinite; } .fc2 { right: -6px; top: 18px; animation: float 7s ease-in-out infinite reverse; } .fc2 .i { color: var(--primary); }
@keyframes float { 50% { transform: translateY(-8px); } }
.features, .how { max-width: 1180px; margin: 0 auto; padding: 50px 20px; text-align: center; }
.features h2, .how h2, .trust h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.035em; }
.section-lead { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 auto 36px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.feat { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); }
.feat-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); margin-bottom: 14px; }
.feat h3 { font-size: 17px; } .feat p { color: var(--text-2); margin: 0; font-size: 14.5px; }
.how-steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how-steps li { padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.how-steps .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #6366f1, #0ea5e9); color: #fff; font-weight: 800; margin-bottom: 12px; }
.how-steps p { color: var(--text-2); margin: 0; }
.pricing { max-width: 1180px; margin: 0 auto; padding: 40px 20px 20px; text-align: center; }
.pricing h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.035em; }
.pr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.pr-card { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); }
.pr-card h3 { font-size: 18px; margin: 0 0 6px; } .pr-card p { color: var(--text-2); margin: 0; font-size: 14.5px; }
.pr-eg { color: var(--text-2); max-width: 720px; margin: 24px auto 0; }
.trust { max-width: 1140px; margin: 30px auto 60px; padding: 36px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; border-radius: 26px; background: linear-gradient(135deg, #1e1b4b, #0f172a); color: #e2e8f0; }
.trust h2 { color: #fff; } .trust .ticks { flex-direction: column; color: #cbd5e1; font-size: 15px; } .trust .ticks .i { color: #4ade80; }
.trust-cta { background: rgba(255, 255, 255, .06); border-radius: 18px; padding: 24px; } .trust-cta h3 { color: #fff; } .trust-cta p { color: #cbd5e1; }
.trust-cta .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.land-foot { max-width: 1180px; margin: 0 auto; padding: 30px 20px 50px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--border); }
.land-foot nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.prose-page { max-width: 760px; margin: 0 auto; padding: 30px 20px 60px; }
.prose-page h1 { font-size: 36px; letter-spacing: -.03em; } .prose-page h2 { margin-top: 1.6em; font-size: 20px; } .prose-page li { margin-bottom: .5em; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid.two-1 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-grid, .pr-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1023px) {
  .side { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  body.side-open .side { transform: none; }
  body.side-open .side-scrim { display: block; position: fixed; inset: 0; background: rgba(2, 6, 23, .45); z-index: 55; }
  .side-close, .menu-btn { display: inline-grid; }
  .top-title { opacity: 1; }
  .content { padding: 20px 16px 32px; }
}
@media (max-width: 860px) {
  .grid.two { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; padding-top: 10px; } .hero-art { order: -1; } .float-card { display: none; }
  .how-steps, .onboard-steps { grid-template-columns: 1fr; } .trust { grid-template-columns: 1fr; margin: 20px 16px 40px; padding: 24px; }
  .k-pin { grid-template-columns: 1fr; grid-template-areas: "back" "person" "dots" "msg" "pad" "actions" "hint"; max-width: 520px; }
  .k-actions { grid-template-columns: 1fr 1fr; } .k-act { min-height: 72px; font-size: 19px; padding: 0 16px; } .k-act.suggest::after { display: none; }
  .k-top { grid-template-columns: 1fr auto; } .k-clock { grid-column: 1 / -1; order: 3; text-align: left; display: flex; align-items: baseline; gap: 12px; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .ph h1 { font-size: 22px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .kpi { padding: 12px; } .kpi-ic { display: none; } .kpi-v { font-size: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .feat-grid, .pr-grid { grid-template-columns: 1fr; }
  .um-name { display: none; }
  .land-nav nav > a:not(.btn) { display: none; }
  .search input { min-width: 0; width: 100%; } .toolbar .search { flex: 1 1 100%; }
  .toolbar-nav { margin-left: 0; }
  .mini-stats { margin-left: 0; gap: 16px; }
  .tbl th, .tbl td { padding: 9px 10px; }
  .k-main { padding: 4px 14px 16px; } .k-top { padding: 12px 14px 8px; }
  .k-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
  .k-card { padding: 14px 6px 12px; } .k-card .avatar { width: 52px; height: 52px; font-size: 18px; }
  .k-pad button { height: 64px; } .k-pick h1 { font-size: 21px; } .k-search input { width: 100%; max-width: none; } .k-search { flex: 1 1 100%; }
  .k-done h2 { font-size: 26px; } .k-done .k-done-time { font-size: 44px; }
  .codes { columns: 1; }
}
@media print {
  .side, .top, .foot, .ph-actions, .toolbar, .imp-banner, .flash, .card-f, .bulk-bar { display: none !important; }
  .content { max-width: none; padding: 0; } .card { box-shadow: none; break-inside: avoid; } body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* billing & settings */
.notice-bar.bad { background: var(--bad-soft); color: var(--bad); } .notice-bar.info { background: var(--info-soft); color: var(--info); }
.notice-bar a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.kpi.bad .kpi-ic { background: var(--bad-soft); color: var(--bad); } .kpi.bad .kpi-v { color: var(--bad); }
.settings-tabs { margin-bottom: 16px; flex-wrap: wrap; }
.packs { border: 0; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pack { position: relative; display: block; cursor: pointer; }
.pack input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.pack > span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 12px 14px; border: 1.5px solid var(--border-2); border-radius: 12px; background: var(--surface);
  transition: border-color .15s, box-shadow .15s, background .15s; }
.pack b { font-size: 16px; } .pack small { color: var(--muted); font-size: 12.5px; } .pack em { font-style: normal; font-weight: 700; color: var(--primary); margin-top: 4px; }
.pack:hover > span { border-color: var(--muted); }
.pack input:checked + span { border-color: var(--primary); background: var(--primary-soft); box-shadow: var(--ring); }
.pack input:focus-visible + span { box-shadow: var(--ring); }
.pack.custom input[type=number] { margin-top: 6px; width: 100%; }
.buy-total { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 0; font-size: 15px; } .buy-total b { font-size: 22px; letter-spacing: -.01em; }
.card-on-file { display: flex; gap: 12px; align-items: center; margin: 0 0 12px; }
.card-on-file > .i { width: 34px; height: 34px; padding: 6px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .inline-form input { width: 110px; }
.with-ic { display: flex; gap: 6px; align-items: flex-start; } .with-ic > .i { margin-top: 2px; }
a.with-ic { display: inline-flex; align-items: center; } a.with-ic > .i { margin-top: 0; }
.buy-note { margin: 0; padding: 0 18px 16px; }

/* help centre */
.help-search { max-width: 720px; }
.help-gh { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 0 10px; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.help-card { display: flex; gap: 12px; align-items: flex-start; padding: 16px; color: var(--text); text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.help-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.help-card[hidden], .help-group[hidden] { display: none; }
.help-card > .i { width: 34px; height: 34px; padding: 7px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); flex: none; }
.help-card b { display: block; margin-bottom: 3px; } .help-card small { color: var(--muted); font-size: 13px; line-height: 1.45; display: block; }
.help-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.help-side { padding: 14px; position: sticky; top: 76px; }
.help-side .lbl { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.help-side a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--text-2); font-size: 14px; text-decoration: none; }
.help-side a:hover { background: var(--surface-2); } .help-side a.on { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.help-article .card-b { max-width: 820px; font-size: 15.5px; line-height: 1.65; }
.help-article h2 { font-size: 19px; margin: 26px 0 10px; } .help-article h2:first-child { margin-top: 0; }
.help-article ul, .help-article ol { padding-left: 22px; margin: 0 0 14px; } .help-article li { margin: 0 0 7px; }
.help-steps > li::marker { font-weight: 700; color: var(--primary); }
.help-tbl { margin: 6px 0 18px; font-size: 14.5px; } .help-tbl th { white-space: normal; width: 34%; vertical-align: top; text-align: left; }
.callout { border: 1px solid var(--border); border-left-width: 4px; border-radius: 10px; padding: 12px 16px; margin: 16px 0; }
.callout.tip { border-left-color: var(--info); background: var(--info-soft); } .callout.warn { border-left-color: var(--warn); background: var(--warn-soft); }
.help-pn { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.help-pn .btn { white-space: normal; text-align: left; }
@media (max-width: 900px) { .help-layout { grid-template-columns: 1fr; } .help-side { position: static; } }
@media print { .side, .top, .help-side, .ph-actions, .help-pn, .foot, .imp-banner, .notice-bar { display: none !important; } .help-layout { display: block; } .help-article { border: 0; box-shadow: none; } }
.help-search .search { flex: 1; min-width: 0; } .help-search .search input { width: 100%; }

/* home: pricing and devices */
.pricing, .devices { max-width: 1180px; margin: 0 auto; padding: 50px 20px; text-align: center; }
.pricing h2, .devices h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.035em; }
.price-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; text-align: left; max-width: 960px; margin: 0 auto; }
.price-card, .price-eg { padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); }
.price-card { border: 2px solid var(--primary); }
.price { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.price b { font-size: 58px; line-height: 1; letter-spacing: -.04em; background: linear-gradient(135deg, #6366f1, #0ea5e9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price span { color: var(--text-2); font-weight: 600; line-height: 1.3; }
.price-card .ticks { flex-direction: column; gap: 10px; } .price-card .ticks .i { color: var(--ok); }
.price-eg h3 { margin-top: 0; } .price-eg .tbl td { padding: 11px 4px; font-size: 15px; } .price-eg .tbl td.num { text-align: right; }
.dev-tag { font-size: 12px !important; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary) !important; margin: 0 0 4px !important; }
.dev-warn { border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: var(--warn-soft); }
.dev-warn .feat-ic { background: var(--surface); color: var(--warn); } .dev-warn .dev-tag { color: var(--warn) !important; }
.dev-note { margin-top: 18px; }
@media (max-width: 860px) { .price-wrap { grid-template-columns: 1fr; } .price b { font-size: 46px; } }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* home: the toolbox (hero tiles), delivery-note spotlight, what's next */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; flex: 1; align-content: center; }
.tool-tile { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; min-height: 76px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); color: #e2e8f0; }
.tool-tile .i { width: 22px; height: 22px; color: #a5b4fc; }
.tool-tile b { font-size: 12.5px; line-height: 1.25; font-weight: 650; }
.tool-tile.on:first-child { background: linear-gradient(135deg, rgba(99, 102, 241, .55), rgba(14, 165, 233, .45)); } .tool-tile.on:first-child .i { color: #fff; }
.hero .device, .spot .device { aspect-ratio: auto; }
.hero .fc1 { bottom: -46px; } .hero .fc2 { top: -30px; }
.tool-tile.add { background: transparent; border: 1.5px dashed rgba(255, 255, 255, .25); color: #94a3b8; } .tool-tile.add .i { color: #94a3b8; }
.spot { max-width: 1180px; margin: 0 auto; padding: 50px 20px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 50px; align-items: center; }
.spot h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.04em; line-height: 1.08; margin: 6px 0 14px; }
.spot-ticks { flex-direction: column; gap: 10px; margin-top: 18px; font-size: 15px; }
.feat .dev-tag { float: right; }
.grow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 900px; margin: 0 auto; }
.grow-tile { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-radius: 14px; border: 1.5px dashed var(--border); background: var(--surface); font-weight: 650; text-align: left; }
.grow-tile .i { color: var(--primary); flex: none; }
.grow-note { margin: 22px auto 0; }
@media (max-width: 860px) { .spot { grid-template-columns: 1fr; padding-top: 20px; } .grow-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .tool-grid { grid-template-columns: 1fr 1fr; } .grow-grid { grid-template-columns: 1fr; } }

/* ---------- delivery notes (panel) ---------- */
.note-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.note-photo { position: sticky; top: 74px; }
.note-photo .ph-frame { border-radius: var(--r); overflow: hidden; background: #111; border: 1px solid var(--border); }
.note-photo img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.note-photo.zoom img { cursor: zoom-out; width: 200%; max-width: none; }
.note-photo.zoom .ph-frame { overflow: auto; max-height: 80vh; }
.thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--surface-3); display: block; border: 1px solid var(--border); }
.thumb-none { width: 56px; height: 56px; border-radius: 8px; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); }
.items { display: grid; gap: 0; }
.item-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.item-row label { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.item-row label > span { font-size: 12px; color: var(--muted); font-weight: 600; }
.item-row input, .item-row select { width: 100%; min-width: 0; }
.item-row .it-desc { grid-column: span 3; } .item-row .it-st { grid-column: span 1; }
.item-row[title] .it-desc > span { color: var(--warn); }
.item-row.spare { opacity: .75; }
@media (max-width: 520px) { .item-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .item-row .it-desc { grid-column: 1 / -1; } }
.ai-box { border: 1px dashed var(--border-2); border-radius: var(--r-sm); padding: 12px 14px; background: var(--surface-2); }
.ai-box pre { max-height: 320px; overflow: auto; font-size: 12px; white-space: pre-wrap; word-break: break-word; }
.meta-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.meta-list dt { color: var(--muted); } .meta-list dd { margin: 0; overflow-wrap: anywhere; }
.mod-list { display: grid; gap: 10px; }
.mod-later { opacity: .6; }
.qr-box { display: inline-block; padding: 14px; background: #fff; border-radius: 14px; border: 1px solid var(--border); }
.qr-box svg { width: 240px; height: 240px; display: block; }
@media (max-width: 960px) { .note-grid { grid-template-columns: 1fr; } .note-photo { position: static; } }

/* ---------- capture app (phones and tablets) ---------- */
.capture { background: #0b1220; color: #f1f5f9; --c-surface: rgba(255, 255, 255, .06); --c-border: rgba(255, 255, 255, .12); --c-muted: #94a3b8; min-height: 100vh; min-height: 100dvh; }
.capture a { color: #a5b4fc; }
.cap-app { max-width: 560px; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; min-height: 100dvh; }
.cap-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cap-head > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cap-head b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cap-head small { color: var(--c-muted); font-size: 13px; }
.cap-net { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(34, 197, 94, .16); color: #4ade80; white-space: nowrap; }
.cap-net.warn { background: rgba(245, 158, 11, .18); color: #fbbf24; } .cap-net.off { background: rgba(239, 68, 68, .18); color: #f87171; }
.cap-start, .cap-review, .cap-done { display: flex; flex-direction: column; gap: 16px; }
.cap-start[hidden], .cap-review[hidden], .cap-done[hidden], .cap-scanner[hidden], .cap-queue[hidden] { display: none; }
.cap-shoot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 46vh; border-radius: 26px; cursor: pointer; text-align: center; padding: 26px;
  background: linear-gradient(150deg, #4f46e5, #0d9488); color: #fff; box-shadow: 0 24px 60px -24px rgba(79, 70, 229, .8); user-select: none; -webkit-tap-highlight-color: transparent; }
.cap-shoot:active { transform: scale(.985); }
.cap-shoot .i { width: 76px; height: 76px; stroke-width: 1.5; }
.cap-shoot b { font-size: 24px; line-height: 1.25; max-width: 15ch; } .cap-shoot small { opacity: .85; font-size: 15px; }
.cap-alt { text-align: center; margin: -4px 0 0; }
.capture .linkish { color: #a5b4fc; font-size: 15px; }
.capture :focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }
.cap-queue, .cap-recent { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 18px; padding: 14px; }
.cap-queue h2, .cap-recent h2 { font-size: 15px; margin: 0 0 10px; display: flex; gap: 8px; align-items: center; }
.cap-queue { border-color: rgba(245, 158, 11, .5); }
.cap-queue ul, .cap-recent ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; } .cap-recent ul { margin: 0; }
.cap-queue li, .cap-recent li { display: flex; align-items: center; gap: 12px; }
.cap-queue li img, .cap-recent li img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; background: #1e293b; flex: none; }
.cap-queue li span, .cap-recent li span { flex: 1; min-width: 0; } .cap-queue b, .cap-recent b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cap-queue small, .cap-recent small { color: var(--c-muted); font-size: 13px; }
.cap-preview { border-radius: 18px; overflow: hidden; background: #000; border: 1px solid var(--c-border); }
.cap-preview img { display: block; width: 100%; max-height: 52vh; object-fit: contain; }
.capture .form .lbl { color: #e2e8f0; } .capture .hint, .cap-hint, .cap-geo { color: var(--c-muted); }
.capture input, .capture select, .capture textarea { background: #111a2e; color: #f1f5f9; border-color: var(--c-border); font-size: 16px; }
.cap-code { display: flex; gap: 8px; } .cap-code input { flex: 1; min-width: 0; }
.cap-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 4px; }
.cap-actions .btn { height: 54px; font-size: 16px; justify-content: center; }
.capture .btn.ghost { color: #e2e8f0; border-color: var(--c-border); background: transparent; }
.cap-done { align-items: center; text-align: center; padding-top: 10vh; }
.cap-done-ic { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: rgba(34, 197, 94, .16); color: #4ade80; }
.cap-done-ic .i { width: 48px; height: 48px; }
.cap-done h2 { font-size: 26px; margin: 4px 0 0; } .cap-done p { color: #cbd5e1; max-width: 34ch; margin: 0; }
.cap-done .btn { height: 56px; font-size: 17px; justify-content: center; max-width: 360px; }
.cap-scanner { position: fixed; inset: 0; background: #000; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.cap-scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cap-scan-box { position: relative; width: min(78vw, 360px); height: min(40vw, 190px); border: 3px solid #fff; border-radius: 16px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45); }
.cap-scanner p, .cap-scanner .btn { position: relative; } .cap-scanner p { color: #fff; font-weight: 600; }
.cap-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: center; color: var(--c-muted); text-align: center; }
.cap-foot form { display: inline; }
@media (min-width: 700px) { .cap-shoot { min-height: 340px; } }
