/* Fonts are served from this site (SIL Open Font License, see /assets/fonts/). */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/assets/fonts/manrope-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/assets/fonts/manrope-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(/assets/fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(/assets/fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* Regard marketing site 0.2.0. The site is laid out like the Regard app itself.
   Tokens are the app's Slate and lime preset (apps/web/src/styles.css). */
:root {
  --rail: #161C26; --rail-fg: #A3AEC0; --rail-on: #B9D798; --rail-line: #232C3B;
  --bg: #1F2734; --surface: #2B3547; --raised: #354159; --line: #36435A; --line-2: #465572;
  --fg: #EEF0F4; --muted: #A3AEC0; --faint: #7F8BA0;
  --accent: #B9D798; --on-accent: #1F2734; --accent-soft: rgba(185, 215, 152, .12);
  --ok: #6FDCCF; --ok-bg: rgba(60, 196, 181, .16);
  --warn: #F5AD78; --warn-bg: rgba(240, 144, 74, .16);
  --crit: #F08A84; --crit-bg: rgba(229, 83, 75, .16);
  --info: #B3C4F5; --info-bg: rgba(143, 168, 240, .16);
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --accent-hover: #C8E2AB; --top-bg: rgba(31, 39, 52, .92); --rail-text: #EEF0F4; --card-edge: transparent;
  --paper: #F6F8F4; --paper-line: #DDE3D7; --paper-ink: #1F2734; --paper-muted: #5A6577; --paper-accent: #5E8A2E;
  --ui: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --rail-w: 236px;
  --top-h: 60px;
  --pad: 44px;
  color-scheme: dark;
}
/* Light theme: the app's light preset. The rail stays dark, as it does in the app. */
:root[data-theme="light"] {
  --bg: #F6F8F4; --surface: #FFFFFF; --raised: #EEF2EA; --line: #DDE3D7; --line-2: #C9D1C2;
  --fg: #1F2734; --muted: #5A6577; --faint: #7A8597;
  --accent: #5E8A2E; --on-accent: #FFFFFF; --accent-soft: rgba(94, 138, 46, .1); --accent-hover: #4E7726;
  --ok: #1E8577; --ok-bg: rgba(30, 133, 119, .1);
  --warn: #B5611F; --warn-bg: rgba(181, 97, 31, .1);
  --crit: #C2392F; --crit-bg: rgba(194, 57, 47, .09);
  --info: #3B5BC4; --info-bg: rgba(59, 91, 196, .09);
  --shadow: 0 20px 50px rgba(31, 39, 52, .18);
  --top-bg: rgba(246, 248, 244, .92); --card-edge: #DDE3D7;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.55 var(--ui); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 8px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 10px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--rail) var(--rail-w), var(--bg) var(--rail-w)); }
.rail { position: sticky; top: 0; height: 100vh; background: var(--rail); border-right: 1px solid var(--rail-line); display: flex; flex-direction: column; padding: 18px 12px 14px; overflow-y: auto; }
.brand { display: inline-flex; align-items: center; gap: 9px; padding: 4px 10px 22px; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -.02em; color: var(--rail-text); }
.brand .brand-mark { height: 24px; width: auto; flex: none; color: var(--rail-on); }
.rail nav { display: grid; gap: 2px; }
.rail-sec { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 16px 12px 6px; }
.r-item { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; color: var(--rail-fg); text-decoration: none; font-weight: 600; font-size: 14.5px; transition: background .15s, color .15s; }
.r-item svg { width: 16px; height: 16px; flex: none; opacity: .85; }
.r-item:hover { color: var(--rail-text); background: rgba(255, 255, 255, .035); }
.r-item.on { color: var(--rail-on); background: var(--accent-soft); }
.r-item.on svg { opacity: 1; }
.r-item .count { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.rail-foot { margin-top: auto; padding-top: 16px; display: grid; gap: 10px; }
.rail-foot .who { display: flex; align-items: center; gap: 10px; padding: 10px; border-top: 1px solid var(--rail-line); font-size: 12.5px; color: var(--faint); line-height: 1.35; }
.rail-foot .who b { display: block; color: var(--rail-text); font-size: 13px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; gap: 14px; padding: 0 var(--pad); background: var(--top-bg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.crumb { font-size: 13.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb b { color: var(--fg); font-weight: 700; }
.search-btn { margin-left: auto; display: flex; align-items: center; gap: 10px; height: 36px; width: min(360px, 40vw); padding: 0 8px 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); color: var(--faint); font-size: 13.5px; cursor: pointer; transition: border-color .15s; }
.search-btn:hover { border-color: var(--faint); }
.search-btn svg { width: 15px; height: 15px; }
.search-btn kbd { margin-left: auto; font-family: var(--mono); font-size: 11px; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--muted); }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg); color: var(--fg); cursor: pointer; flex: none; }
.icon-btn:hover { border-color: var(--faint); }
.icon-btn svg { width: 17px; height: 17px; }
.phone-only { display: none; }
.top .brand { padding: 0; gap: 8px; font-size: 19px; color: var(--fg); }
.top .brand .brand-mark { height: 22px; color: var(--accent); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 9px; border: 1px solid transparent; font-weight: 800; font-size: 14.5px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .12s ease, background .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-line { background: transparent; border-color: var(--line-2); color: var(--fg); }
.btn-line:hover { border-color: var(--faint); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Screens ---------- */
.screen { padding: 56px var(--pad) 64px; min-height: calc(100vh - var(--top-h)); display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid var(--line); }
.screen-inner { width: 100%; max-width: 1180px; margin: 0 auto; }
.screen-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; align-items: end; margin-bottom: 30px; }
.page-label { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--faint); margin-bottom: 12px; }
.page-label svg { width: 16px; height: 16px; color: var(--accent); }
.h1 { font-size: clamp(38px, 4.6vw, 60px); line-height: 1.03; letter-spacing: -.035em; font-weight: 800; }
.h1 span { color: var(--accent); }
.h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; }
.lead { font-size: 16.5px; color: var(--muted); max-width: 52ch; }
.lead b { color: var(--fg); font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Panels: the app's surfaces */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 14px; }
.panel-head .sub { font-weight: 600; color: var(--faint); font-size: 12.5px; }
.panel-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.panel-body { padding: 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.pill.lime { background: var(--accent-soft); color: var(--accent); }
.pill.teal { background: var(--ok-bg); color: var(--ok); }
.pill.orange { background: var(--warn-bg); color: var(--warn); }
.pill.red { background: var(--crit-bg); color: var(--crit); }
.pill.blue { background: var(--info-bg); color: var(--info); }
.pill.grey { background: var(--raised); color: var(--muted); }
.av { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 800; font-size: 11.5px; color: #1F2734; flex: none; }
.av.sm { width: 24px; height: 24px; font-size: 10px; }
.av-ml { background: #B9D798; } .av-jr { background: #B3C4F5; } .av-dsc { background: #6FDCCF; } .av-dr { background: #F5AD78; } .av-tt { background: #EEF0F4; }
.kv { display: grid; grid-template-columns: 112px 1fr; gap: 9px 12px; font-size: 13.5px; }
.kv dt { color: var(--faint); font-weight: 600; }
.kv dd { margin: 0; display: flex; align-items: center; gap: 8px; min-width: 0; }

/* Overview: the live board sits in the content like you're signed in */
.board-frame { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); }
.board-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--line); background: var(--rail); font-size: 12.5px; color: var(--faint); }
.board-bar .live { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 700; }
.board-bar .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 2s ease-in-out infinite; }
.board-bar .right { margin-left: auto; }
@keyframes pulse { 50% { opacity: .35; } }
.paused .board-bar .live i { animation-play-state: paused; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.facts b { color: var(--fg); }

/* Work board screen */
.ticket { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; }
.ticket-main .t-sub { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.ticket-main .t-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; color: var(--faint); font-size: 13px; }
.status-menu { margin-top: 18px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); padding: 6px; max-width: 460px; }
.status-menu .opt { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; font-size: 13.5px; font-weight: 600; }
.status-menu .opt.on { background: var(--accent-soft); color: var(--accent); }
.status-menu .opt small { font-family: var(--mono); font-size: 11px; color: var(--faint); font-weight: 400; }
.status-menu .opt .dot { width: 9px; height: 9px; border-radius: 50%; }
.status-menu .opt.lock { opacity: .55; }
.note { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: rgba(245, 173, 120, .07); border: 1px solid rgba(245, 173, 120, .25); font-size: 13.5px; color: var(--fg); max-width: 520px; }
.clock-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); margin-top: 8px; font-size: 13px; }
.clock-row b { font-family: var(--mono); font-weight: 400; }
.clock-row.run b { color: var(--ok); }
.clock-row.pause b { color: var(--faint); }

/* Digital SC thread */
.thread { display: grid; gap: 12px; }
.msg { display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.msg .bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.msg .who { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; color: var(--faint); margin-bottom: 6px; }
.msg .who b { color: var(--fg); font-size: 13.5px; }
.msg p { font-size: 14px; }
.msg.client .bubble { background: var(--bg); }
.msg.internal .bubble { background: rgba(245, 173, 120, .07); border-color: rgba(245, 173, 120, .25); }
.msg.dsc .bubble { border-color: rgba(111, 220, 207, .35); }
.suggest { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line-2); font-size: 13px; }
.suggest .btn { height: 30px; }
.rules { display: grid; gap: 14px; }
.rule { padding-left: 16px; border-left: 2px solid var(--line-2); }
.rule b { display: block; font-size: 15px; }
.rule p { color: var(--muted); font-size: 14px; margin-top: 3px; }

/* CSAT and Wins */
.split2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.rate-card { background: var(--paper); box-shadow: 0 0 0 1px var(--card-edge); color: var(--paper-ink); border-radius: 14px; padding: 22px; }
.rate-card .from { font-size: 12.5px; color: var(--paper-muted); }
.rate-card h3 { font-size: 19px; font-weight: 800; margin: 4px 0 14px; }
.rate-box { position: relative; min-height: 96px; background: #fff; border: 1px solid #C9D1C2; border-radius: 10px; padding: 11px 13px; font-size: 14px; }
.rate-box .face { position: absolute; right: 9px; bottom: 9px; width: 30px; height: 30px; }
.rate-faces { display: flex; justify-content: space-between; gap: 4px; margin-top: 12px; }
.rate-faces button { display: grid; justify-items: center; gap: 4px; width: 20%; padding: 8px 2px; border: 1px solid transparent; background: none; border-radius: 10px; font-size: 11.5px; font-weight: 700; color: var(--paper-ink); cursor: pointer; transition: transform .15s, background .15s; line-height: 1.2; text-align: center; }
.rate-faces button svg { width: 30px; height: 30px; }
.rate-faces button:hover { transform: translateY(-2px); background: rgba(31, 39, 52, .05); }
.rate-faces button.on { border-color: var(--paper-accent); background: rgba(94, 138, 46, .1); }
.rate-send { margin-top: 12px; height: 42px; border-radius: 9px; border: 0; width: 100%; font-weight: 800; background: #DDE3D7; color: #7A8597; }
.rate-send.ready { background: var(--paper-accent); color: #fff; }
.rate-reply { margin-top: 12px; font-size: 13.5px; color: var(--paper-muted); min-height: 40px; }
.perf { display: grid; gap: 10px; }
.perf-row { display: grid; grid-template-columns: 150px 1fr 64px; gap: 14px; align-items: center; font-size: 13.5px; }
.perf-row .name { color: var(--muted); font-weight: 600; }
.bar { position: relative; height: 8px; border-radius: 4px; background: var(--raised); }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--accent); }
.bar em { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--fg); opacity: .6; }
.perf-row .val { text-align: right; font-family: var(--mono); font-size: 13px; }
.perf-legend { display: flex; gap: 18px; margin-top: 12px; font-size: 12.5px; color: var(--faint); }
.perf-legend span { display: inline-flex; align-items: center; gap: 7px; }
.perf-legend i { width: 14px; height: 6px; border-radius: 3px; background: var(--accent); display: inline-block; }
.perf-legend i.avg { width: 2px; height: 12px; background: var(--fg); opacity: .6; }
.wins-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.wins-row div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; color: var(--faint); }
.wins-row b { display: block; color: var(--fg); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.wins-row div.perfect { border-color: rgba(185, 215, 152, .45); background: var(--accent-soft); }
.wins-row div.perfect b { color: var(--accent); }

/* Vault */
.vault { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.vtabs { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.vtabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 10px; font-weight: 700; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.vtabs button.on { color: var(--fg); border-bottom-color: var(--accent); }
.vlist { list-style: none; margin: 0; padding: 6px; }
.vlist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px; border-radius: 9px; }
.vlist li:hover { background: rgba(255, 255, 255, .03); }
.vlist b { font-size: 14px; font-weight: 700; }
.vlist small { grid-column: 1; color: var(--faint); font-size: 12.5px; }
.vlist .end { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 8px; align-items: center; }
.secret { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: .1em; }
.secret.shown { color: var(--accent); letter-spacing: 0; }
.reveal-box { padding: 16px; }
.reveal-box h3 { font-size: 15px; font-weight: 800; }
.reveal-box p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.field-sm { display: grid; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 700; }
.field-sm select, .field-sm input { height: 38px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); padding: 0 10px; font-size: 14px; }
.code-in { font-family: var(--mono); letter-spacing: .3em; }
.audit { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--faint); display: grid; gap: 4px; }
.audit .new { color: var(--accent); }

/* Agreements */
.agree { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.doc { background: var(--paper); box-shadow: 0 0 0 1px var(--card-edge); color: var(--paper-ink); border-radius: 14px; padding: 26px 28px; font-size: 14px; line-height: 1.6; }
.doc .doc-k { font-size: 12px; color: var(--paper-muted); }
.doc h3 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; margin: 2px 0 14px; }
.doc-sec { padding: 10px 0; border-top: 1px solid var(--paper-line); position: relative; }
.doc-sec h4 { font-size: 14px; font-weight: 800; }
.doc-sec p { color: #3D4757; margin-top: 2px; }
.doc-sec.hl { background: rgba(94, 138, 46, .09); border-left: 3px solid var(--paper-accent); border-top: 0; padding: 10px 12px; margin: 6px -12px; border-radius: 0 8px 8px 0; }
.doc-sec .tag { position: absolute; right: 10px; top: 10px; font-size: 10.5px; font-weight: 800; color: var(--paper-accent); text-transform: uppercase; letter-spacing: .05em; }
.sig { display: flex; gap: 18px; align-items: end; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--paper-line); }
.sig .name { font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 24px; line-height: 1.1; }
.sig small { display: block; font-size: 11.5px; color: var(--paper-muted); font-family: var(--mono); }
.rates { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rates th, .rates td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.rates th { color: var(--faint); font-weight: 700; font-size: 12px; }
.rates td.num { text-align: right; font-family: var(--mono); }

/* Projects timeline */
.tl { overflow-x: auto; }
.tl-grid { min-width: 820px; position: relative; }
.tl-head, .tl-row { display: grid; grid-template-columns: 210px repeat(8, minmax(0, 1fr)); align-items: center; }
.tl-head { font-family: var(--mono); font-size: 11px; color: var(--faint); border-bottom: 1px solid var(--line); }
.tl-head span { padding: 10px 6px; border-left: 1px solid var(--line); }
.tl-head span:first-child { border-left: 0; padding-left: 16px; font-family: var(--ui); font-weight: 700; font-size: 12px; }
.tl-head span.now { color: var(--accent); }
.tl-row { border-bottom: 1px solid var(--line); height: 58px; position: relative; }
.tl-row:last-child { border-bottom: 0; }
.tl-name { padding: 0 16px; font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.tl-name small { display: block; color: var(--faint); font-weight: 600; font-size: 12px; }
.tl-bar { z-index: 1; position: absolute; height: 26px; top: 16px; border-radius: 6px; font-size: 11.5px; font-weight: 800; display: flex; align-items: center; padding: 0 9px; white-space: nowrap; overflow: hidden; color: var(--on-accent); transition: transform .2s; }
.tl-bar:hover { transform: translateY(-2px); }
.tl-bar.on-track { background: var(--ok); }
.tl-bar.risk { background: var(--warn); }
.tl-bar.late { background: repeating-linear-gradient(135deg, var(--crit) 0 8px, #D9746F 8px 16px); }
.tl-bar.done { background: var(--raised); color: var(--muted); }
.tl-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); opacity: .7; pointer-events: none; }
.tl-go { position: absolute; top: 22px; width: 13px; height: 13px; transform: rotate(45deg); background: var(--fg); border: 2px solid var(--bg); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 14px; height: 9px; border-radius: 3px; display: inline-block; }

/* Pilot */
.pilot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.pilot ol { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: p; }
.pilot li { counter-increment: p; display: grid; grid-template-columns: 34px 1fr; font-size: 15.5px; }
.pilot li::before { content: counter(p, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 3px; }
.pilot li span { color: var(--muted); display: block; font-size: 14px; }
.letter { background: var(--paper); box-shadow: 0 0 0 1px var(--card-edge); color: var(--paper-ink); border-radius: 14px; padding: 26px 28px; font-size: 15.5px; line-height: 1.6; }
.letter p + p { margin-top: 12px; }
.letter .from { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 13.5px; color: var(--paper-muted); }
.letter .from b { color: var(--paper-ink); display: block; font-size: 14.5px; }

/* Questions as Kbase articles */
.kb { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; align-items: start; }
.kb-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.kb-list details { border-bottom: 1px solid var(--line); }
.kb-list details:last-child { border-bottom: 0; }
.kb-list summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; font-weight: 700; font-size: 15px; }
.kb-list summary::-webkit-details-marker { display: none; }
.kb-list summary svg { width: 16px; height: 16px; color: var(--faint); }
.kb-list summary .chev { font-family: var(--mono); color: var(--faint); transition: transform .2s; }
.kb-list details[open] summary .chev { transform: rotate(90deg); }
.kb-list summary:hover { background: rgba(255, 255, 255, .02); }
.kb-list .art { padding: 0 16px 16px 50px; color: var(--muted); font-size: 14.5px; }

/* Footer */
.foot { padding: 28px var(--pad) 34px; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; font-size: 13px; color: var(--faint); }
.foot nav { display: flex; gap: 18px; margin-left: auto; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--fg); }

/* ---------- Ctrl K ---------- */
.cmdk-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(10, 14, 20, .6); backdrop-filter: blur(2px); display: grid; place-items: start center; padding-top: 12vh; }
.cmdk { width: min(620px, calc(100% - 24px)); background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); padding: 10px; animation: cmdkIn .16s ease-out; }
@keyframes cmdkIn { from { opacity: 0; transform: translateY(-6px) scale(.985); } }
.cmdk input { width: 100%; height: 46px; border-radius: 9px; border: 1px solid var(--accent); background: var(--bg); padding: 0 14px; font-size: 15.5px; outline: none; }
.cmdk-group { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 12px 10px 4px; }
.cmdk ul { list-style: none; margin: 0; padding: 0; max-height: 52vh; overflow-y: auto; }
.cmdk li { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14.5px; }
.cmdk li svg { width: 16px; height: 16px; color: var(--faint); flex: none; }
.cmdk li small { margin-left: auto; color: var(--faint); font-size: 12px; }
.cmdk li.sel { background: var(--accent-soft); color: var(--accent); }
.cmdk li.sel svg { color: var(--accent); }
.cmdk .empty { padding: 16px 10px; color: var(--faint); font-size: 14px; }
.cmdk-foot { display: flex; gap: 14px; padding: 10px 10px 2px; font-size: 11.5px; color: var(--faint); border-top: 1px solid var(--line); margin-top: 8px; }
.cmdk-foot kbd { font-family: var(--mono); font-size: 10.5px; border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 5px; }

/* ---------- Phone drawer ---------- */
.drawer-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(10, 14, 20, .55); animation: fadein .2s; }
.drawer { position: fixed; z-index: 71; left: 0; top: 0; bottom: 0; width: min(85vw, 320px); background: var(--rail); border-right: 1px solid var(--rail-line); padding: 18px 12px; display: flex; flex-direction: column; overflow-y: auto; animation: slidein .24s cubic-bezier(.2, .8, .2, 1); }
@keyframes slidein { from { transform: translateX(-100%); } }
@keyframes fadein { from { opacity: 0; } }

/* ---------- Entrance ---------- */
[data-enter] { opacity: 0; transform: translateY(10px); animation: enter .7s cubic-bezier(.2, .7, .2, 1) forwards; }
[data-enter="2"] { animation-delay: .08s; } [data-enter="3"] { animation-delay: .16s; } [data-enter="4"] { animation-delay: .26s; } [data-enter="5"] { animation-delay: .38s; }
@keyframes enter { to { opacity: 1; transform: none; } }

/* ---------- Forms (the application as a New ticket) ---------- */
.form-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
form.app { display: grid; gap: 16px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 0; margin: 0; background: var(--surface); min-width: 0; }
legend { float: left; width: 100%; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 14px; margin-bottom: 4px; }
legend + * { clear: both; }
.fs-body { padding: 14px 16px 18px; display: grid; gap: 14px; clear: both; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; align-content: start; }
.field > label, .field > .label { font-weight: 700; font-size: 13.5px; }
.hint { font-size: 12.5px; color: var(--faint); font-weight: 500; }
.req { color: var(--accent); }
input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; height: 42px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); font-size: 15px; }
textarea { height: auto; min-height: 120px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 18px, calc(100% - 14px) 18px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(185, 215, 152, .18); }
.pick { display: flex; flex-wrap: wrap; gap: 6px; }
.pick label { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick span { display: inline-flex; align-items: center; height: 36px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); font-weight: 700; font-size: 13.5px; color: var(--muted); transition: all .15s; }
.pick input:checked + span { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: var(--muted); font-size: 14px; }
.check input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--accent); }
.check a, .prose a { color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--crit); }
.err { color: var(--crit); font-size: 13px; font-weight: 600; }
.form-alert { border: 1px solid rgba(240, 138, 132, .5); background: var(--crit-bg); border-radius: 10px; padding: 12px 14px; font-size: 14.5px; }
.form-alert a { color: var(--accent); }
.submit-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.cf-turnstile { min-height: 65px; }
.count { font-family: var(--mono); font-size: 11.5px; color: var(--faint); justify-self: end; }
.side-card { position: sticky; top: calc(var(--top-h) + 20px); }

/* Plain pages */
.page { padding: 48px var(--pad) 64px; }
.page .screen-inner { max-width: 1080px; }
.prose { max-width: 70ch; color: var(--muted); font-size: 15.5px; }
.prose h2 { font-size: 20px; font-weight: 800; color: var(--fg); margin: 30px 0 8px; }
.prose p + p, .prose ul { margin-top: 10px; }
.prose li { margin-top: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .screen-head, .ticket, .split2, .vault, .agree, .pilot, .kb, .form-wrap { grid-template-columns: 1fr; }
  .side-card { position: static; }
}
@media (max-width: 900px) {
  :root { --pad: 18px; --top-h: 56px; }
  .shell { grid-template-columns: 1fr; background: var(--bg); }
  .rail { display: none; }
  .phone-only { display: inline-flex; }
  .search-btn { width: auto; margin-left: auto; padding: 0; border: 1px solid var(--line-2); justify-content: center; width: 38px; height: 38px; }
  .search-btn .label, .search-btn kbd { display: none; }
  .crumb { display: none; }
  .screen { min-height: 0; padding: 40px var(--pad) 48px; justify-content: flex-start; }
  .row, .wins-row { grid-template-columns: 1fr; }
  .perf-row { grid-template-columns: 110px 1fr 54px; }
  .foot nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-enter] { opacity: 1; transform: none; animation: none; }
  .btn, .tl-bar, .rate-faces button { transition: none; }
  .board-bar .live i { animation: none; }
}

/* Tour video dialog */
dialog.video { width: min(1000px, 100% - 32px); padding: 0; border: 1px solid var(--line-2); border-radius: 14px; background: var(--rail); color: var(--fg); }
dialog.video::backdrop { background: rgba(10, 14, 20, .78); }
dialog.video video { display: block; width: 100%; height: auto; background: #000; }
dialog.video .bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-weight: 700; }

/* Theme switch */
.theme-btn svg { width: 17px; height: 17px; }
.theme-btn [data-i="sun"] { display: none; }
:root[data-theme="light"] .theme-btn [data-i="sun"] { display: block; }
:root[data-theme="light"] .theme-btn [data-i="moon"] { display: none; }
:root[data-theme="light"] .drawer, :root[data-theme="light"] .rail { color: var(--rail-fg); }
:root[data-theme="light"] .rail .rail-sec { color: #7F8BA0; }
:root[data-theme="light"] .rail .r-item.on { color: #B9D798; background: rgba(185, 215, 152, .12); }
:root[data-theme="light"] .rail .btn-primary, :root[data-theme="light"] .drawer .btn-primary { background: #B9D798; color: #1F2734; }
:root[data-theme="light"] .rail .btn-primary:hover, :root[data-theme="light"] .drawer .btn-primary:hover { background: #C8E2AB; }
:root[data-theme="light"] .board-bar { background: var(--raised); }
:root[data-theme="light"] .tl-bar.late { background: repeating-linear-gradient(135deg, #C2392F 0 8px, #D9574E 8px 16px); }
:root[data-theme="light"] .cmdk-scrim, :root[data-theme="light"] .drawer-scrim { background: rgba(31, 39, 52, .35); }
.legend i.lg-ok { background: var(--ok); }
.legend i.lg-risk { background: var(--warn); }
.legend i.lg-late { background: repeating-linear-gradient(135deg, var(--crit) 0 4px, transparent 4px 8px), var(--crit-bg); }
.legend i.lg-go { background: var(--fg); width: 9px; height: 9px; transform: rotate(45deg); }

/* Footer social links */
.foot .social { display: flex; gap: 6px; }
.foot .social a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); transition: color .15s, border-color .15s, transform .12s; }
.foot .social a:hover { color: var(--fg); border-color: var(--line-2); transform: translateY(-1px); }
.foot .social svg { width: 16px; height: 16px; }
.h1 .nw { color: inherit; white-space: nowrap; }

/* 0.3.2: social links in the top bar on desktop, in the drawer on phones */
.top-social svg { width: 16px; height: 16px; }
.top-social { color: var(--muted); }
.top-social:hover { color: var(--fg); }
.rail .rail-social { display: none; }
.drawer .rail-social { display: flex; gap: 8px; }
.rail-social a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 38px; border-radius: 9px; border: 1px solid var(--rail-line); color: var(--rail-fg); text-decoration: none; font-weight: 700; font-size: 13.5px; }
.rail-social a:hover { color: var(--rail-text); }
.rail-social svg { width: 16px; height: 16px; }
@media (max-width: 900px) { .top-social { display: none; } }

/* 0.3.3: video dialog header. The performance meter's .bar style was leaking in (8px tall, light fill in light mode). The dialog stays dark in both themes, like the rail. */
dialog.video { color: #EEF0F4; }
dialog.video .bar { height: auto; border-radius: 0; background: transparent; position: static; }
dialog.video .bar .icon-btn { background: transparent; border-color: #36435A; color: #A3AEC0; }
dialog.video .bar .icon-btn:hover { color: #EEF0F4; border-color: #465572; }

/* 0.4.0: Ctrl K section. The palette demo plays on its own (ckdemo.js). */
kbd.k { font-family: var(--mono); font-size: .82em; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; color: var(--fg); background: var(--surface); white-space: nowrap; }
.ckd { background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); padding: 12px; min-height: 452px; display: flex; flex-direction: column; }
.ckd-in { position: relative; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border: 1.5px solid var(--accent); border-radius: 10px; background: var(--bg); font-size: 17px; font-weight: 600; }
.ckd-in svg { width: 17px; height: 17px; color: var(--faint); flex: none; }
.ckd-caret { width: 2px; height: 22px; background: var(--accent); margin-left: -8px; }
.ckd.idle .ckd-caret { opacity: 0; }
.ckd-ph { position: absolute; left: 41px; color: var(--faint); font-weight: 500; }
.ckd-list { flex: 1; padding-top: 4px; }
.ckd-g { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 10px 10px 3px; }
.ckd-g.hot { color: var(--accent); }
.ckd-r { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; font-size: 14.5px; font-weight: 600; }
.ckd-r .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ckd-r small { margin-left: auto; color: var(--faint); font-weight: 500; font-size: 12.5px; white-space: nowrap; }
.ckd-r.sel { background: var(--accent-soft); color: var(--accent); }
.ckd-list .ckd-g, .ckd-list .ckd-r { opacity: 1; }
.ckd.typing .ckd-list[data-ckd-set="find"] > * { opacity: 0; }
.ckd-foot { display: flex; flex-wrap: wrap; gap: 14px; padding: 10px 8px 2px; margin-top: 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.ckd-foot kbd.k { margin-right: 3px; font-size: 10.5px; }
.ck-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.ck-cta .muted-in { margin-left: 8px; font-family: var(--mono); font-size: 11.5px; opacity: .7; font-weight: 500; }
@media (max-width: 900px) { .ckd { min-height: 0; } .ckd-foot { display: none; } }

/* Text link under the home hero buttons (0.5.0) */
.more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; }
.more-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 0.6.0: Tickets chips, Client portal, Security ---------- */
.anchor-alias { position: absolute; top: 0; }
.screen { position: relative; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.chips-k { font-size: 12.5px; font-weight: 700; color: var(--faint); margin-right: 4px; }
.chip { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 12.5px; font-weight: 700; color: var(--muted); }

.pw { border-radius: 14px; box-shadow: 0 0 0 1px var(--card-edge); overflow: hidden; background: var(--paper); color: var(--paper-ink); }
.pw-bar { padding: 9px 14px; border-bottom: 1px solid var(--paper-line); font-size: 11.5px; color: var(--paper-muted); background: rgba(31, 39, 52, .03); }
.pw-card { padding: 18px 18px 14px; }
.pw-from { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.pw-from b { display: block; font-size: 17px; font-weight: 800; }
.pw-from div > span { display: block; font-size: 14px; color: var(--paper-muted); margin-top: 3px; }
.pw-k { margin: 16px 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--paper-accent); }
.pw-item { border: 1px solid var(--paper-line); background: #fff; border-radius: 10px; padding: 11px 12px; }
.pw-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; }
.pw-line .pill { margin-left: auto; background: #E6EBE1; color: var(--paper-muted); }
.pw-q { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 13.5px; color: var(--paper-muted); }
.pw-acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pw .btn-line { color: var(--paper-ink); border-color: #C9D1C2; }
.pw .btn-primary { background: var(--paper-accent); border-color: var(--paper-accent); color: #fff; }
.pw-replybox { display: flex; gap: 8px; margin-top: 10px; }
.pw-replybox input { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid #C9D1C2; border-radius: 8px; font: inherit; font-size: 13.5px; color: var(--paper-ink); background: #fff; }
.pw-done { font-size: 13px; color: var(--paper-accent); font-weight: 700; margin-top: 8px; }
.pw-done:empty { display: none; }
.pw-faces { display: flex; gap: 6px; margin-top: 10px; }
.pw-faces button { width: 34px; height: 34px; padding: 2px; border: 1px solid transparent; border-radius: 9px; background: none; cursor: pointer; transition: transform .15s; }
.pw-faces button:hover { transform: translateY(-2px); }
.pw-faces button.on { border-color: var(--paper-accent); background: rgba(94, 138, 46, .1); }
.pw-faces svg { width: 28px; height: 28px; display: block; }
.pw-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; font-size: 12.5px; color: var(--paper-muted); }
.pw-btns { display: flex; gap: 8px; }

.sec-stack { display: grid; gap: 16px; }
.signin .panel-body { display: grid; gap: 10px; }
.si-btn { width: 100%; justify-content: center; position: relative; }
.si-tag { position: absolute; right: 10px; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: rgba(0, 0, 0, .18); }
.si-or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; }
.si-or::before, .si-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.si-field { height: 38px; display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); font-size: 13.5px; }
.si-field.ph { color: var(--faint); }
.sess { list-style: none; margin: 0; padding: 0; }
.sess li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.sess li:last-child { border-bottom: 0; }
.sess b { font-size: 14px; }
.sess small { grid-column: 1; color: var(--faint); font-size: 12.5px; }
.sess li > .pill, .sess li > .btn { grid-column: 2; grid-row: 1 / span 2; }
@media (prefers-reduced-motion: reduce) { .pw-faces button { transition: none; } }
