/* WTD People design system. Tokens first, then base, layout, components.
   Every colour, font and radius used anywhere comes from the tokens below. Light is the default; dark is a choice.
   Status colours carry one meaning each: green = clear, amber = waiting on someone else, blue = needs you, grey = not active. */
:root {
  color-scheme: light;
  /* WTD brand: gold #fdba50, navy #0f153a, white. Poppins for headings, DM Sans for text. */
  --bg: #f2f3f6; --side: #f2f3f6; --surface: #ffffff; --surface2: #e8eaef; --field: #ffffff;
  --line: #e2e4eb; --line-strong: #c4c8d8;
  --ink: #0f153a; --mute: #555c80; --link: #2a55c7; --brand: #0f153a;
  --accent: #fdba50; --accent-ink: #0f153a;
  --ok: #0f8a5f; --ok-bg: #dcf5e9; --wait: #8a5a00; --wait-bg: #fff1d6; --you: #2a55c7; --you-bg: #e5ecfd; --idle: #555c80; --idle-bg: #e8eaef;
  --shadow: 0 1px 1px rgba(15, 21, 58, .04), 0 2px 6px rgba(15, 21, 58, .05), 0 18px 36px -18px rgba(15, 21, 58, .22);
  --lift: 0 2px 2px rgba(15, 21, 58, .05), 0 8px 14px rgba(15, 21, 58, .07), 0 30px 46px -18px rgba(15, 21, 58, .30), 0 0 0 1px rgba(253, 186, 80, .45), 0 0 34px -6px rgba(253, 186, 80, .55);
  --glow: 0 0 0 4px rgba(253, 186, 80, .28);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --focus: #2a55c7;
  --display: 'Poppins', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --r-lg: 16px; --r-md: 12px; --r-sm: 10px; --r-pill: 99px;
  --gap: 14px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --lift: 0 0 0 1px rgba(245, 185, 66, .45), 0 0 30px -8px rgba(245, 185, 66, .45); --glow: 0 0 0 4px rgba(245, 185, 66, .25); --accent-ink: #1a1405;
  --bg: #0a0f24; --side: #0d1330; --surface: #121936; --surface2: #19214a; --field: rgba(255, 255, 255, .05);
  --line: rgba(255, 255, 255, .10); --line-strong: rgba(255, 255, 255, .30);
  --ink: #eef0fa; --mute: #a3abcf; --link: #8fb4ff; --brand: #f5b942;
  --ok: #58d19a; --ok-bg: rgba(88, 209, 154, .14); --wait: #f5b942; --wait-bg: rgba(245, 185, 66, .14); --you: #8fb4ff; --you-bg: rgba(143, 180, 255, .16); --idle: #a3abcf; --idle-bg: rgba(255, 255, 255, .07);
  --shadow: none;
  --focus: #ffffff;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--bg); font: 15px/1.5 var(--body); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(22px, 2.6vw, 27px); line-height: 1.2; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
p { margin: 0; }
a { color: var(--link); }
button { font: inherit; cursor: pointer; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.page { display: flex; flex-direction: column; gap: 22px; padding: 28px clamp(16px, 3vw, 38px) 72px; min-width: 0; max-width: 1280px; width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 20px var(--gutter) 72px; display: flex; flex-direction: column; gap: 26px; }
.col { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.centre { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px var(--gutter); }
.narrow { max-width: 520px; }
.mw { max-width: 700px; }
.scroll, .tbl { overflow-x: auto; }

/* ---------- side menu ---------- */
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 22px; padding: 22px 14px 14px; background: var(--side); border-right: 1px solid var(--line); }
.brand { font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--brand); padding: 0 10px; text-decoration: none; }
.brand span { color: var(--ink); }
.sidebar nav { display: flex; flex-direction: column; gap: 20px; }
.grp { display: flex; flex-direction: column; gap: 2px; }
.grp > span { padding: 0 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.grp button { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--mute); font-weight: 500; text-align: left; white-space: nowrap; }
.grp button:hover { background: var(--surface2); color: var(--ink); }
.grp button[aria-current="page"] { background: var(--surface2); color: var(--ink); font-weight: 600; }
.grp svg, .ico { width: 18px; height: 18px; flex: none; }
.count { margin-left: auto; padding: 1px 8px; border-radius: var(--r-pill); background: var(--you-bg); color: var(--you); font-size: 12px; font-weight: 700; }
.me { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px 10px 0; border-top: 1px solid var(--line); }
.who { display: flex; gap: 10px; align-items: center; min-width: 0; }
.avatar { width: 36px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface2); color: var(--ink); font: 600 12px var(--display); }
.avatar.lg { width: 48px; height: 48px; font-size: 16px; }
.textbtn { background: none; border: 0; padding: 0; color: var(--mute); font-size: 13px; text-decoration: underline; }
.topbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px var(--gutter); border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar nav { order: 3; flex: 1 1 100%; flex-direction: row; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
  .grp { flex-direction: row; } .grp > span { display: none; }
  .me { margin: 0 0 0 auto; padding: 0; border: 0; flex-direction: row; align-items: center; } .me .who > div:last-child { display: none; }
}

/* ---------- components ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border: 0; border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); font-weight: 600; }
.btn.ghost:hover { background: var(--surface2); filter: none; }
.btn.sm { min-height: 34px; padding: 0 13px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; min-width: 0; box-shadow: var(--shadow); }
.box { padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.box.hot { border-color: var(--accent); background: var(--wait-bg); }
.lede { font-size: 15px; color: var(--mute); max-width: 680px; }
.small { font-size: 13px; color: var(--mute); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--idle-bg); color: var(--idle); font-weight: 700; font-size: 12px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
.pill.done { background: var(--ok-bg); color: var(--ok); }
.pill.wait { background: var(--wait-bg); color: var(--wait); }
.pill.you { background: var(--you-bg); color: var(--you); }
.pill.dim, .pill.off { opacity: .7; }
td .pill, .acts .pill { white-space: normal; }
.link { background: none; border: 0; padding: 0; color: var(--link); font-weight: 600; text-align: left; text-decoration: underline; }
.back { align-self: flex-start; background: none; border: 0; color: var(--mute); padding: 4px 0; font-size: 13px; text-decoration: underline; }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--mute); padding: 8px 12px 8px 0; }
td { padding: 12px 12px 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
ul.plain { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.chip { align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; padding: 5px 12px; border-radius: var(--r-pill); background: var(--idle-bg); font-size: 13px; color: var(--mute); }
.dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--ok); }
.dimrow { opacity: .55; }
.big { font: 600 17px var(--display); color: var(--ink); }
.name { font-weight: 600; overflow-wrap: anywhere; line-height: 1.25; }

/* home */
.stats { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; }
.stat b { font: 600 26px var(--display); font-variant-numeric: tabular-nums; }
.todo { display: flex; flex-direction: column; }
.todo > button { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 13px 0; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; }
.todo > button:first-child { border-top: 0; }
.todo .t { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; }
.todo .t b { font-weight: 600; }
.todo .go { color: var(--link); font-weight: 600; font-size: 14px; }
.board { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 12px; }
.lane { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 120px; padding: 10px; border-radius: 14px; background: var(--surface2); }
.lane h3 { display: flex; justify-content: space-between; padding: 2px 4px 4px; font: 600 13px var(--body); color: var(--mute); }
button.card { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 12px; border-radius: var(--r-md); text-align: left; }
button.card:hover { border-color: var(--line-strong); }
.ring { margin-left: auto; width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2.5px solid var(--idle); font: 600 13px var(--display); }
.ring.hi { border-color: var(--ok); } .ring.mid { border-color: var(--accent); }

/* scores */
.num { font: 600 44px/1 var(--display); font-variant-numeric: tabular-nums; }
.scorehead { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.crit { display: grid; grid-template-columns: minmax(120px, 220px) 110px minmax(0, 1fr); gap: 8px 14px; align-items: start; font-size: 14px; }
.bar { height: 8px; margin-top: 7px; border-radius: var(--r-pill); background: var(--idle-bg); }
.bar i { display: block; height: 8px; border-radius: var(--r-pill); background: var(--accent); }
.fun { display: grid; grid-template-columns: 150px minmax(0, 1fr) 40px; gap: 10px 14px; align-items: center; font-size: 14px; }
.fun .bar { margin: 0; }
.segs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.segs.n6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.seg { height: 6px; border-radius: var(--r-pill); background: var(--idle-bg); }
.seg.c { background: var(--ok); } .seg.a { background: var(--accent); } .seg.y { background: var(--you); }
.progress { display: flex; flex-direction: column; gap: 6px; }

/* forms */
label { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13px; color: var(--mute); }
label.chk { flex-direction: row; align-items: center; gap: 8px; min-height: 40px; color: var(--ink); font-size: 14px; }
input, select, textarea { min-height: 42px; max-width: 100%; padding: 9px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--field); color: var(--ink); font: inherit; }
input[type=checkbox] { flex: none; width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--you); }
input[type=file] { padding: 7px 10px; font-size: 13px; }
textarea { min-height: 104px; resize: vertical; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.critrow { display: grid; grid-template-columns: minmax(0, 1fr) 150px 130px; gap: 10px; align-items: end; }
pre.txt { margin: 0; max-height: 320px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.55 var(--body); color: var(--mute); }
.drop { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 20px; border-radius: var(--r-lg); border: 2px dashed var(--line-strong); background: var(--surface); font-size: 15px; cursor: pointer; }
.drop:hover { border-color: var(--you); }
.links { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.w96 { width: 96px; }

/* automation rules */
.lbl { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--mute); }
.tog { min-width: 60px; min-height: 36px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: transparent; color: var(--mute); font-weight: 700; font-size: 13px; }
.tog[aria-pressed="true"] { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.list { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.list b { display: block; font-size: 12px; color: var(--mute); }
.list b.sys { color: var(--brand); }
.think { display: flex; gap: 12px; align-items: center; color: var(--mute); }
.spin { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 3px solid var(--idle-bg); border-top-color: var(--you); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; max-width: 90vw; padding: 12px 18px; border-radius: var(--r-md); background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px; opacity: 0; transform: translate(-50%, 20px); transition: opacity .25s, transform .25s; pointer-events: none; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
dialog { width: min(600px, 92vw); padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); }
dialog::backdrop { background: rgba(8, 10, 28, .6); }
dialog form { display: flex; flex-direction: column; gap: 14px; }

/* candidate page */
.steps { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); padding: 16px 8px; }
.st { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--mute); text-align: center; }
.st::before { content: ""; position: absolute; top: 10px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.st:first-child::before { display: none; }
.st.d::before, .st.c::before { background: var(--ok); }
.st u { position: relative; z-index: 1; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--surface2); border: 2px solid var(--line-strong); font-size: 11px; font-weight: 700; text-decoration: none; }
.st.d u { background: var(--ok); border-color: var(--ok); color: var(--surface); }
.st.c u { background: var(--surface); border-color: var(--you); color: var(--you); box-shadow: 0 0 0 4px var(--you-bg); }
.st.c { color: var(--ink); font-weight: 600; }
@media (max-width: 700px) { .st span { display: none; } .st.c span { display: block; position: absolute; top: 30px; white-space: nowrap; } .steps { padding-bottom: 34px; } }
.next { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); box-shadow: var(--shadow); }
.next > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 320px; }
.next .tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.next b { font: 600 18px/1.3 var(--display); }
.next .sub { font-size: 14px; color: var(--mute); }
.tabs { display: flex; gap: 6px 24px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs button { min-height: 42px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--mute); font-weight: 500; }
.tabs button[aria-selected="true"] { color: var(--ink); font-weight: 600; border-color: var(--accent); }
.tabs .n { margin-left: 6px; padding: 1px 7px; border-radius: var(--r-pill); background: var(--you-bg); color: var(--you); font-size: 11px; font-weight: 700; }
details.fold { border-top: 1px solid var(--line); min-width: 0; }
details.fold:first-child { border-top: 0; }
details.fold > summary { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 4px; cursor: pointer; list-style: none; }
details.fold > summary::after { content: "›"; color: var(--mute); font-size: 20px; line-height: 1; transition: transform .15s; }
details.fold[open] > summary::after { transform: rotate(90deg); }
details.fold > summary::-webkit-details-marker, details.more > summary::-webkit-details-marker { display: none; }
details.fold > summary .t { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
details.fold > summary .t b { font-weight: 600; }
details.fold > .col { margin: 0 0 14px; padding: 16px; border-radius: var(--r-md); background: var(--surface2); }
.folds { display: flex; flex-direction: column; }
details.more > summary { cursor: pointer; color: var(--link); font-size: 14px; padding: 4px 0; list-style: none; text-decoration: underline; }
details.more > .col { padding-top: 10px; }
.hero h1 { font-size: clamp(24px, 3vw, 30px); }
@media (max-width: 640px) { .crit, .critrow { grid-template-columns: 1fr; } .bar { margin-top: 0; } }
.name { overflow-wrap: break-word; }
.who > div:not(.avatar):not(.ring) { flex: 1; min-width: 0; }

/* choosing an interview time */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot { min-height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; }
.slot[aria-pressed="true"] { background: var(--you-bg); border-color: var(--you); color: var(--you); }
.fun.w { grid-template-columns: minmax(110px, 200px) minmax(0, 1fr) 96px; }
.fun.w b { font-weight: 600; white-space: nowrap; }

/* signing an offer by hand */
canvas.sig { width: 100%; height: 150px; border: 1px dashed var(--line-strong); border-radius: var(--r-sm); background: #ffffff; touch-action: none; cursor: crosshair; }

/* ---------- careers header, shared by every public page ---------- */
.pubhead { background: #0f153a; padding: 12px var(--gutter); }
.pub > .wrap { width: 100%; padding-top: 28px; }
.pubhead a { display: flex; align-items: center; gap: 12px; max-width: 1080px; margin: 0 auto; color: #fff; text-decoration: none; font-size: 12.5px; line-height: 1.25; }
.pubhead img { width: 44px; height: 44px; flex: none; border-radius: 50%; background: #fff; padding: 2px; }
.pubhead span { display: flex; flex-direction: column; opacity: .92; }
.pubhead b { font: 700 17px var(--display); color: #fdba50; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; min-height: 0; }

/* ---------- a new starter's page: four blocks ---------- */
.pub { min-height: 100vh; display: flex; flex-direction: column; }
.pubfoot { max-width: 1080px; width: 100%; margin: auto auto 0; padding: 8px var(--gutter) 28px; }
.ob-st { width: 100%; max-width: 1080px; margin: 0 auto; padding: 28px var(--gutter) 36px; display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 28px; align-items: start; }
.ob-st h1 { font-size: 28px; line-height: 1.15; }
.ob-st .lede { margin-top: 4px; }
.ob-prog { display: flex; flex-direction: column; gap: 9px; padding: 14px 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.ob-prog b { font: 600 16px var(--display); }
.ob-prog progress { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 8px; border: 0; border-radius: 99px; overflow: hidden; background: var(--idle-bg); }
.ob-prog progress::-webkit-progress-bar { background: var(--idle-bg); }
.ob-prog progress::-webkit-progress-value { background: var(--accent); border-radius: 99px; }
.ob-prog progress::-moz-progress-bar { background: var(--accent); border-radius: 99px; }
.ob-prog.ob-fin { border-color: var(--ok); background: var(--ok-bg); }
.ob-prog.ob-fin progress::-webkit-progress-value { background: var(--ok); }
.ob-prog.ob-fin progress::-moz-progress-bar { background: var(--ok); }
.ob-st nav { gap: 10px; }
.ob-blk { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 0; padding: 13px 14px; text-align: left; border-radius: var(--r-lg); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.ob-blk:hover { border-color: var(--line-strong); }
.ob-blk.ob-fin { border-color: var(--ok); background: var(--ok-bg); }
.ob-blk .ob-tx { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ob-blk b { font: 600 15.5px var(--display); }
.ob-sg { display: flex; gap: 4px; margin-top: 9px; max-width: 150px; }
.ob-sg i { flex: 1; height: 4px; border-radius: 9px; background: var(--idle-bg); }
.ob-blk.ob-fin .ob-sg i { background: var(--surface); }
.ob-sg i.on, .ob-blk.ob-fin .ob-sg i.on { background: var(--ok); }
.ob-ct { font-size: 12.5px; font-weight: 700; color: var(--mute); white-space: nowrap; }
.ob-tk { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 11px; font-weight: 700; }
.ob-tk.ob-lg { width: 26px; height: 26px; font-size: 14px; }
.ob-st-main { padding: 26px 28px; gap: 0; }
.ob-st-main h2 { font-size: 24px; outline: 0; }
.ob-st-main > .back { display: none; align-self: flex-start; margin-bottom: 12px; }
.ob-item { display: flex; flex-direction: column; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); margin-top: 20px; }
.ob-item + .ob-item { margin-top: 0; }
.ob-ihead { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.ob-ihead h3 { font-size: 16.5px; }
.ob-ihead .small { margin-top: 2px; font-size: 14px; max-width: 520px; }
.ob-got { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ob-got li { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: var(--r-sm); background: var(--ok-bg); font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.ob-dz { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px; border-radius: var(--r-md); border: 1.5px dashed var(--line-strong); background: var(--surface2); }
.ob-dz.ob-over { border-color: var(--you); background: var(--you-bg); }
.ob-dz .ob-drag { color: var(--mute); }
.ob-pick { position: relative; cursor: pointer; background: var(--surface); }
.ob-pick:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.ob-pick.ob-cam { display: none; }
.err { color: #b3261e; font-weight: 600; font-size: 14px; }
.ob-st .ob-foot { border-top: 1px solid var(--line); padding-top: 18px; }
.ob-st .ob-cont { display: none; min-height: 48px; }
@media (max-width: 859px) {
  .ob-st { grid-template-columns: minmax(0, 1fr); padding-top: 22px; }
  .ob-st[data-view="home"] .ob-st-main, .ob-st[data-view="block"] .ob-st-side { display: none; }
  .ob-st-main { padding: 20px 16px; }
  .ob-st-main > .back { display: inline-flex; }
  .ob-st .ob-cont { display: inline-flex; }
  .ob-st .ob-foot { flex-direction: column-reverse; align-items: stretch; gap: 6px; }
  .ob-st .ob-foot .btn { min-height: 50px; }
  .ob-st .ob-foot .back { align-self: center; min-height: 40px; }
  .ob-st .ob-foot > span { display: none; }
  .ob-dz { padding: 12px; }
  .ob-dz .ob-drag { display: none; }
  .ob-dz .acts { width: 100%; }
  .ob-pick.ob-cam { display: inline-flex; }
  .ob-dz .ob-pick { flex: 1 1 130px; min-height: 48px; padding: 0 10px; white-space: nowrap; }
  .ob-blk[aria-current] { box-shadow: none; }
}
@media (min-width: 860px) { .ob-blk[aria-current="true"] { border-color: var(--ink); box-shadow: 0 0 0 3px var(--idle-bg); } }

/* ---------- staff record (HR) ---------- */
.kv { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- autopilot: rules grouped by stage ---------- */
.rgrid { columns: 2 420px; column-gap: var(--gap); }
.rg { break-inside: avoid; margin-bottom: var(--gap); padding: 14px 18px 6px; }
.rg > .row { padding-bottom: 10px; }
.rl { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); }
.rl b { display: block; font-weight: 600; font-size: 14px; }
.rl span { font-size: 13px; color: var(--mute); }
.rl.off b, .rl.off span { opacity: .6; }
.offn { color: var(--wait); }
.sw { position: relative; flex: none; width: 40px; height: 24px; padding: 0; border: 0; border-radius: 99px; background: var(--line-strong); cursor: pointer; }
.sw i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .12s; }
.sw[aria-checked="true"] { background: var(--ok); }
.sw[aria-checked="true"] i { left: 19px; }
.sw[disabled] { opacity: .5; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .sw i { transition: none; } }

/* ---------- depth, light and motion ---------- */
body { background-image: radial-gradient(760px 340px at 92% -10%, rgba(253, 186, 80, .26), transparent 65%), radial-gradient(620px 320px at -6% 108%, rgba(15, 21, 58, .07), transparent 65%); background-attachment: fixed; }
:root[data-theme="dark"] body { background-image: radial-gradient(760px 340px at 92% -10%, rgba(245, 185, 66, .10), transparent 65%); }
.sidebar { border-right-color: rgba(15, 21, 58, .06); box-shadow: 8px 0 30px -24px rgba(15, 21, 58, .35); }
.sidebar .brand { display: flex; align-items: center; gap: 8px; font-size: 16px; white-space: nowrap; }
.sidebar .brand::before { content: ""; width: 34px; height: 34px; flex: none; border-radius: 50%; background: #fff url(/static/logo.png) center/contain no-repeat; }
.grp button { position: relative; transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease); }
.grp button:hover { transform: translateX(2px); }
.grp button[aria-current="page"] { background: var(--ink); color: var(--bg); box-shadow: 0 12px 22px -12px rgba(15, 21, 58, .75), 0 0 22px -8px rgba(253, 186, 80, .7); }
.grp button[aria-current="page"]:hover { background: var(--ink); color: var(--bg); transform: none; }
.grp button[aria-current="page"] svg { color: var(--accent); filter: drop-shadow(0 0 6px rgba(253, 186, 80, .8)); }
.count { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 12px -2px rgba(253, 186, 80, .9); }
.avatar { background: var(--ink); color: var(--bg); box-shadow: 0 6px 14px -6px rgba(15, 21, 58, .6); }
.card, .next, .box, .ob-prog, .ob-blk { border-color: rgba(15, 21, 58, .07); box-shadow: var(--shadow); transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease); }
:root[data-theme="dark"] .card, :root[data-theme="dark"] .next, :root[data-theme="dark"] .box { border-color: var(--line); }
button.card:hover, .stat:hover, .rg:hover, .ob-blk:hover { transform: translateY(-3px); box-shadow: var(--lift); }
.lane { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
.btn { transition: transform .16s var(--ease), box-shadow .16s var(--ease), filter .16s, background .16s; }
.btn:not(.ghost) { box-shadow: 0 1px 2px rgba(120, 78, 0, .2), 0 10px 20px -8px rgba(253, 186, 80, .85); }
.btn:not(.ghost):hover { box-shadow: 0 1px 2px rgba(120, 78, 0, .2), 0 14px 26px -8px rgba(253, 186, 80, 1), 0 0 26px -4px rgba(253, 186, 80, .8); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.ghost { background: var(--surface); box-shadow: 0 1px 2px rgba(15, 21, 58, .06); }
.btn.ghost:hover { box-shadow: 0 6px 14px -8px rgba(15, 21, 58, .35); }
.btn[disabled] { transform: none; box-shadow: none; }
.next { position: relative; overflow: hidden; border-left-width: 1px; border-left-color: rgba(15, 21, 58, .07); background-image: linear-gradient(100deg, rgba(253, 186, 80, .16), rgba(253, 186, 80, 0) 38%); }
.next::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent); box-shadow: 0 0 22px 2px rgba(253, 186, 80, .9); }
.bar i, .prog progress::-webkit-progress-value { box-shadow: 0 0 12px rgba(253, 186, 80, .8); }
.sw { transition: background .2s var(--ease), box-shadow .2s var(--ease); box-shadow: inset 0 1px 2px rgba(15, 21, 58, .18); }
.sw i { box-shadow: 0 1px 3px rgba(15, 21, 58, .35); transition: left .22s var(--ease), background .2s; }
.sw[aria-checked="true"] { background: var(--ink); box-shadow: 0 0 0 4px rgba(15, 21, 58, .08); }
:root[data-theme="dark"] .sw[aria-checked="true"] { background: var(--ok); }
.sw[aria-checked="true"] i { background: var(--accent); box-shadow: 0 0 10px rgba(253, 186, 80, .95); }
.st.d u { box-shadow: 0 2px 8px rgba(15, 138, 95, .45); }
.st.c u { animation: pulse 2.2s ease-out infinite; }
.tabs button { transition: color .18s, border-color .18s; }
.pill.done { box-shadow: 0 0 0 1px rgba(15, 138, 95, .12); }
input, select, textarea { transition: border-color .16s, box-shadow .16s; }
input:not([type=checkbox]):not([type=file]):focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: var(--glow); outline: 0; }
.ob-tk, .tk { box-shadow: 0 2px 8px rgba(15, 138, 95, .4); }
.page.enter > *, .pub .wrap > main > *, .ob-enter > * { animation: rise .5s var(--ease) both; }
.page.enter > *:nth-child(2), .pub .wrap > main > *:nth-child(2), .ob-enter > *:nth-child(2) { animation-delay: .06s; }
.page.enter > *:nth-child(3), .pub .wrap > main > *:nth-child(3) { animation-delay: .12s; }
.page.enter > *:nth-child(4) { animation-delay: .18s; }
.page.enter > *:nth-child(n+5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(42, 85, 199, .45); } 70%, 100% { box-shadow: 0 0 0 10px rgba(42, 85, 199, 0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
:root[data-theme="dark"] .grp button[aria-current="page"], :root[data-theme="dark"] .grp button[aria-current="page"]:hover { background: var(--surface2); color: var(--ink); box-shadow: 0 0 24px -8px rgba(245, 185, 66, .6); }
:root[data-theme="dark"] .avatar { background: var(--surface2); color: var(--ink); }

/* ---------- the test system: a banner on every page, and its two tools ---------- */
.testbar { position: fixed; top: 0; left: 0; right: 0; z-index: 40; min-height: 32px; padding: 6px 12px; background: #0f153a; color: #fdba50; font-weight: 700; font-size: 13.5px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-test body { padding-top: 32px; }
.is-test .sidebar { top: 32px; height: calc(100vh - 32px); }
.mailbody { margin: 0; padding: 14px; border-radius: var(--r-md); background: var(--surface2); font: 14px/1.5 var(--body); white-space: pre-wrap; overflow-wrap: anywhere; }
