/* Auctor OS design system — colours, type and spacing from the design canvas */
:root {
  --ink: #17181A; --ink-2: #2B2D30; --ink-3: #3A3D41;
  --muted: #5D6166; --muted-2: #8B9096; --muted-3: #B4B9BE;
  --line: #D9DCDF; --line-2: #ECEEF0; --field: #C9CDD1;
  --ground: #F4F5F6; --soft: #F1F2F3; --soft-2: #FAFAFB; --white: #FFFFFF;
  --brand: #CC0000;
  --green: #1D7A4A; --green-bg: #E3F2E9;
  --amber: #9A5B00; --amber-bg: #FBEFD9;
  --red: #B4231A; --red-bg: #FBE4E1;
  --blue: #2453B8; --blue-bg: #E2EAFA;
  --purple: #5B3BB0; --purple-bg: #EEE8FB;
  --teal: #0B6E6B; --teal-bg: #DFF3F1;
  --orange: #A8410C; --orange-bg: #FDE8DA;
  --display: Archivo, 'Arial Narrow', Arial, sans-serif;
  --sans: 'IBM Plex Sans', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --r: 10px; --r-sm: 8px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.45; }
a { color: var(--ink); }
a:hover { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Shell ---------- */
.shell { display: flex; min-height: 100vh; min-height: 100dvh; }
@media (min-width: 900px) { .shell { background: linear-gradient(to right, var(--ink) 240px, var(--ground) 240px); } }
.side { flex: none; width: 240px; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; padding: 24px 14px 20px; background: var(--ink); color: var(--ground); display: flex; flex-direction: column; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px; text-decoration: none; color: inherit; }
.brand i { width: 14px; height: 14px; background: var(--brand); border-radius: 2px; flex: none; }
.brand b { font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; }
.side .new { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 8px; border: 1px solid var(--ink-3); background: none; color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; }
.side .new:hover { background: var(--ink-2); color: #fff; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 10px; border-radius: 8px; text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--muted-3); }
.nav a:hover { color: #fff; background: #222427; }
.nav a.on { color: #fff; font-weight: 600; background: var(--ink-2); }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: #fff; background: var(--ink-3); }
.badge.alert { background: var(--brand); }
.side-depts { display: flex; flex-direction: column; gap: 6px; padding: 0 10px; }
.side-depts .lbl { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.side-depts a { display: flex; align-items: center; gap: 10px; min-height: 36px; color: var(--field); text-decoration: none; font-size: 13.5px; }
.side-depts a:hover { color: #fff; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted-2); }
.dot.Green { background: var(--green); } .dot.Amber { background: #E0A030; } .dot.Red { background: #D9483B; }
.who { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 10px 0; border-top: 1px solid var(--ink-2); }
.who a.me { flex: 1; min-width: 0; text-decoration: none; color: var(--ground); display: flex; flex-direction: column; }
.who a.me b { font-size: 14px; font-weight: 600; }
.who a.me span { font-size: 12px; color: var(--muted-2); }
.who button { background: none; border: 0; font-size: 12px; color: var(--muted-2); padding: 10px 0; }
.who button:hover { color: #fff; }
.av { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ink-2); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 15px; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.sm { width: 28px; height: 28px; font-size: 12px; }
.av.light { background: #E9EBED; color: var(--ink); }
.main { flex: 1; min-width: 0; padding: 32px 40px 64px; display: flex; flex-direction: column; gap: 24px; }
.main.wide { max-width: none; }
.topbar { display: none; }
.tabbar { display: none; }

@media (max-width: 899px) {
  .side { display: none; }
  .main { padding: 16px 16px calc(100px + var(--safe-b)); gap: 18px; }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--ground); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line-2); }
  .topbar .brand { padding: 0; } .topbar .brand b { font-size: 17px; }
  .topbar .icons { display: flex; gap: 6px; align-items: center; }
  .topbar .icons a, .topbar .icons button { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; text-decoration: none; }
  .topbar .icons .av { width: 34px; height: 34px; font-size: 13px; }
  .topbar .dotnum { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 10px; line-height: 16px; text-align: center; font-family: var(--mono); }
  .shell { flex-direction: column; }
  .tabbar { display: grid; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 8px calc(10px + var(--safe-b)); background: #fff; border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; text-decoration: none; font-size: 11px; font-weight: 600; color: #6B7076; background: none; border: 0; padding: 0; }
  .tabbar .on { color: var(--ink); }
  .tabbar .n { position: absolute; top: 4px; left: 54%; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
}

/* ---------- Type ---------- */
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
h1, .h1 { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 40px; line-height: 1; letter-spacing: -.005em; }
h2.sec, .sec { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h3 { margin: 0; font-size: 16px; }
.lead { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.mono { font-family: var(--mono); }
.num { font-family: var(--display); font-weight: 800; font-stretch: 85%; font-variant-numeric: tabular-nums; line-height: 1.05; }
.red { color: var(--red); } .amber { color: var(--amber); } .green { color: var(--green); } .blue { color: var(--blue); }
.b { font-weight: 600; }
@media (max-width: 899px) { h1, .h1 { font-size: 32px; } }

/* ---------- Layout helpers ---------- */
.row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.row.stretch { align-items: stretch; }
.grow { flex: 999 1 440px; min-width: 0; }
.side-col { flex: 1 1 300px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stack.tight { gap: 8px; }
.between { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hstack { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid.depts { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--brand); }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card.pad-s { padding: 16px; }
.card.dark { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.card.dark .muted, .card.dark .sec { color: var(--muted-3); }
a.card { text-decoration: none; color: var(--ink); }
a.card:hover { border-color: var(--muted-2); color: var(--ink); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
a.stat:hover { border-color: var(--muted-2); color: var(--ink); }
.stat .l { font-size: 13px; color: var(--muted); }
.stat .v { font-size: 40px; }
.stat .s { font-size: 13px; color: var(--muted); }
.stat.alert { border-color: #E8B4AE; } .stat.alert .l, .stat.alert .s { color: var(--red); }
.empty { padding: 20px; text-align: center; color: var(--muted); font-size: 14px; border: 1px dashed var(--field); border-radius: var(--r); background: var(--soft-2); }
.note { padding: 14px 16px; border-radius: var(--r); background: var(--soft); font-size: 14px; color: var(--muted); }
.note.amber { background: var(--amber-bg); color: #6E4100; } .note.green { background: var(--green-bg); color: #17603A; } .note.red { background: var(--red-bg); color: #8F1C14; } .note.blue { background: var(--blue-bg); color: #1E4597; }

/* ---------- Lists ---------- */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-2); min-width: 0; text-decoration: none; color: var(--ink); }
a.li:hover { color: var(--ink); background: var(--soft-2); }
.list > .li:first-child { border-top: 0; }
.li .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.li .t b { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.li .t span { font-size: 13px; color: var(--muted); }
.check-li { display: flex; align-items: center; gap: 12px; min-height: 44px; border-top: 1px solid var(--line-2); font-size: 14.5px; }
.check-li:first-child { border-top: 0; }
.check-li a { flex: 1; min-width: 0; text-decoration: none; color: var(--ink); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--green); flex: none; margin: 0; }

/* ---------- Pills and chips ---------- */
.pill { display: inline-flex; align-items: center; flex: none; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--soft); color: var(--muted); }
.pill.green, .pill.Green, .pill.done, .pill.approved, .pill.won { background: var(--green-bg); color: var(--green); }
.pill.amber, .pill.Amber, .pill.review, .pill.changes { background: var(--amber-bg); color: var(--amber); }
.pill.red, .pill.Red, .pill.blocked, .pill.rejected, .pill.lost { background: var(--red-bg); color: var(--red); }
.pill.blue, .pill.doing, .pill.pending { background: var(--blue-bg); color: var(--blue); }
.pill.purple { background: var(--purple-bg); color: var(--purple); } .pill.teal { background: var(--teal-bg); color: var(--teal); } .pill.orange { background: var(--orange-bg); color: var(--orange); }
.pill.dark { background: var(--ink); color: #fff; } .pill.brand { background: var(--brand); color: #fff; }
.kind { flex: none; width: 82px; text-align: center; padding: 4px 0; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.thumb { flex: none; width: 76px; height: 56px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; font-family: var(--mono); font-size: 11px; font-weight: 600; background: var(--line-2); color: var(--muted); }
.thumb.dark { background: var(--ink); color: #fff; }
.thumb.sm { width: 44px; height: 44px; border-radius: 6px; font-size: 10px; }
.due { font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 5px; white-space: nowrap; }
.due.over { background: var(--red-bg); color: var(--red); } .due.today { background: var(--amber-bg); color: var(--amber); } .due.soon, .due.later { background: var(--soft); color: var(--ink-3); } .due.none { color: var(--muted-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--field); background: #fff; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; }
.chip.on, .chip[aria-pressed=true] { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip.sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.chip .n { font-family: var(--mono); font-size: 12px; opacity: .75; }

/* ---------- Tabs ---------- */
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 10px; background: #E9EBED; max-width: 100%; overflow-x: auto; }
.seg button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; font-size: 14px; font-weight: 600; white-space: nowrap; }
.seg button.on, .seg button[aria-selected=true] { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.seg button .n { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-left: 4px; }
.utabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.utabs button, .utabs a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; font-size: 14.5px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.utabs .on, .utabs [aria-selected=true] { color: var(--ink); border-bottom-color: var(--brand); }

/* ---------- Buttons and forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn:hover { background: #000; color: #fff; }
.btn.out { background: #fff; color: var(--ink); border: 1px solid var(--field); }
.btn.out:hover { border-color: var(--ink); color: var(--ink); }
.btn.green { background: var(--green); } .btn.red { background: var(--red); } .btn.amber { background: var(--amber); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; }
.btn.lg { min-height: 52px; font-size: 16px; }
.btn.block { width: 100%; }
.btn.ghost { background: none; color: var(--muted); padding: 0 8px; }
.btn.ghost:hover { color: var(--ink); background: var(--soft); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; font-size: inherit; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, label.lbl, .lbl { font-size: 13px; font-weight: 600; color: var(--ink); }
.lbl.up { letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.in, select.in, textarea.in { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--field); border-radius: 8px; background: #fff; font-size: 15px; }
textarea.in { padding: 10px 12px; min-height: 88px; resize: vertical; line-height: 1.45; }
.in.lg { min-height: 52px; font-size: 16px; padding: 0 14px; }
.in:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(23,24,26,.08); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.err-msg { color: var(--red); font-size: 13.5px; font-weight: 500; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; border-top: 1px solid var(--line-2); font-size: 14.5px; }
.toggle:first-child { border-top: 0; }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 10px 10px; white-space: nowrap; }
.table td { padding: 12px 10px; border-top: 1px solid var(--line-2); vertical-align: middle; }
.table tr.click { cursor: pointer; } .table tr.click:hover td { background: var(--soft-2); }
.table tr.sel td { background: #F3F6FC; }
.table td.wrap { min-width: 220px; }
.table th:first-child, .table td:first-child { padding-left: 0; }

/* ---------- Bars ---------- */
.bar { display: block; height: 8px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.bar.thin { height: 6px; }
.bar > i.green { background: var(--green); } .bar > i.red { background: var(--red); } .bar > i.grey { background: var(--muted-2); }

/* ---------- Kanban ---------- */
.board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start; -webkit-overflow-scrolling: touch; }
.col { flex: none; width: 240px; background: #E9EBED; border-radius: var(--r); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.col.drop { outline: 2px dashed var(--ink); outline-offset: -2px; }
.col h3 { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 4px 2px; }
.col h3 .n { font-family: var(--mono); color: var(--muted); font-weight: 600; }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); font-size: 13.5px; }
.kcard:hover { border-color: var(--muted-2); color: var(--ink); }
.kcard[draggable=true] { cursor: grab; }
.kcard.dragging { opacity: .4; }
.kcard b { font-size: 14px; font-weight: 600; }
.kcard .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.tag { display: inline-flex; align-self: flex-start; padding: 2px 8px; border-radius: 5px; font-size: 11.5px; font-weight: 600; background: var(--soft); color: var(--muted); }

/* ---------- Drawer, modal, sheet, toast ---------- */
.veil { position: fixed; inset: 0; background: rgba(23,24,26,.45); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 560px; max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal.lg { max-width: 760px; }
.modal .x, .drawer .x { align-self: flex-end; margin: -8px -8px 0 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); }
.modal .x:hover, .drawer .x:hover { background: var(--soft); color: var(--ink); }
.veil.right { justify-content: flex-end; padding: 0; align-items: stretch; }
.drawer { background: #fff; width: 100%; max-width: 620px; height: 100%; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: -10px 0 40px rgba(0,0,0,.2); }
@media (max-width: 899px) {
  .veil { align-items: flex-end; padding: 0; }
  .modal { border-radius: 16px 16px 0 0; max-height: 92dvh; padding: 20px 16px calc(24px + var(--safe-b)); }
  .drawer { max-width: none; padding: 16px 16px calc(24px + var(--safe-b)); }
}
.sheet-menu { display: flex; flex-direction: column; }
.sheet-menu a, .sheet-menu button { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 4px; border: 0; border-top: 1px solid var(--line-2); background: none; text-decoration: none; font-size: 16px; font-weight: 500; color: var(--ink); text-align: left; }
.sheet-menu > :first-child { border-top: 0; }
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: calc(100vw - 32px); }
@media (max-width: 899px) { .toasts { bottom: calc(96px + var(--safe-b)); } }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: up .2s ease; }
.toast.err { background: var(--red); }
@keyframes up { from { transform: translateY(8px); opacity: 0; } }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }
.spin { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--ink); border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.live { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; height: 28px; border-radius: 999px; background: var(--green-bg); color: var(--green); font-size: 12px; font-weight: 700; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* ---------- Sign in ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-wrap: wrap; background: var(--ground); }
.auth .quote { flex: 1 1 480px; min-width: 0; padding: 56px 64px; background: var(--ink); color: var(--ground); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.auth .quote .brand { padding: 0; } .auth .quote .brand b { font-size: 22px; }
.auth blockquote { margin: 0; max-width: 15ch; font-family: var(--display); font-weight: 800; font-stretch: 72%; font-size: 56px; line-height: 1; text-transform: uppercase; }
.auth figcaption { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: #A9AEB3; margin-top: 24px; }
.auth figcaption i { width: 32px; height: 2px; background: var(--brand); }
.auth .pane { flex: 1 1 480px; min-width: 0; padding: 56px 32px; display: flex; align-items: center; justify-content: center; }
.auth form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 24px; }
.auth h1 { font-size: 44px; }
.auth .mbrand { display: none; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp input { height: 60px; text-align: center; font-family: var(--mono); font-size: 26px; font-weight: 600; border: 1px solid var(--field); border-radius: 8px; background: #fff; min-width: 0; }
.otp.bad input { border-color: var(--red); }
@media (max-width: 899px) {
  .auth .quote { display: none; }
  .auth .pane { padding: 56px 24px 32px; align-items: flex-start; }
  .auth .mbrand { display: flex; padding: 0; margin-bottom: 40px; }
}

/* ---------- Page bits ---------- */
.gate-road { display: flex; gap: 0; overflow-x: auto; padding: 8px 0; }
.gate-road .g { flex: 1 0 110px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; position: relative; padding: 0 4px; }
.gate-road .g::before { content: ''; position: absolute; top: 22px; left: -50%; right: 50%; height: 2px; background: var(--field); z-index: 0; }
.gate-road .g:first-child::before { display: none; }
.gate-road .ball { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 15px; background: #fff; border: 2px solid var(--field); }
.gate-road .passed .ball { background: var(--green); border-color: var(--green); color: #fff; }
.gate-road .next .ball { background: var(--ink); border-color: var(--ink); color: #fff; }
.gate-road .final .ball { background: var(--brand); border-color: var(--brand); color: #fff; }
.gate-road .g b { font-size: 13px; } .gate-road .g span { font-size: 12px; color: var(--muted); }
.week { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 8px; }
.day { min-height: 120px; padding: 10px; border-radius: 8px; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line-2); background: var(--soft-2); }
.day.today { border-color: var(--ink); background: #fff; }
.day .d { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ev { font-family: var(--sans); font-weight: 400; white-space: normal; overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.35; padding: 6px 8px; border-radius: 6px; background: var(--blue-bg); color: #1E4597; text-decoration: none; display: block; }
.ev.review { background: var(--ink); color: #fff; } .ev.shoot { background: var(--green-bg); color: #17603A; } .ev.due { background: var(--red-bg); color: #8F1C14; } .ev.leave { background: var(--soft); color: var(--muted); }
.ev.pending { background: #fff; color: #6E4100; border: 1.5px dashed var(--amber); }
.ev b { display: block; font-family: var(--mono); font-size: 11px; font-weight: 600; }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-days span { aspect-ratio: 1; border-radius: 4px; background: var(--soft); }
.cal-days .p { background: var(--green); } .cal-days .l { background: #E0A030; } .cal-days .o { background: var(--field); } .cal-days .t { outline: 2px solid var(--ink); outline-offset: 1px; }
.cells { display: flex; gap: 3px; flex: 1; } .cells i { flex: 1; height: 14px; border-radius: 2px; background: var(--line-2); } .cells i.on { background: var(--ink); } .cells i.over { background: var(--red); }
.steps { display: flex; flex-wrap: wrap; gap: 6px; }
.steps button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--field); background: #fff; font-size: 14px; font-weight: 600; }
.stage-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 4px; }
.stage-steps button { min-height: 52px; padding: 6px; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 3px; background: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.15; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.timeline li:first-child { border-top: 0; }
.timeline .body { margin-top: 6px; padding: 10px 12px; border-radius: 8px; background: var(--soft); font-size: 14px; }
.video { position: relative; background: var(--ink); border-radius: var(--r); overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 260px; color: #fff; }
.video video, .video img { width: 100%; max-height: 520px; display: block; object-fit: contain; background: #000; }
.fab { position: fixed; right: 20px; bottom: calc(96px + var(--safe-b)); z-index: 25; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: none; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
@media (max-width: 899px) { .fab { display: flex; } .hide-m { display: none !important; } }
@media (min-width: 900px) { .hide-d { display: none !important; } }
.dropzone { border: 2px dashed var(--field); border-radius: var(--r); padding: 32px; text-align: center; background: var(--soft-2); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.dropzone.over { border-color: var(--ink); background: #fff; }
.bulkbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 40; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.3); max-width: calc(100vw - 32px); }
.bulkbar select { min-height: 38px; border-radius: 8px; border: 0; padding: 0 10px; color: var(--ink); }
@media (max-width: 899px) { .bulkbar { bottom: calc(96px + var(--safe-b)); } }
