@font-face { font-family: Geist; src: url(fonts/Geist.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(fonts/GeistMono.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

/* One accent (cobalt), one radius system: controls 8px, panels 12px, chips full. */
:root {
  --bg: #F4F4F1; --surface: #FFFFFF; --surface-2: #FAFAF8; --hover: #EAEAE5; --sel: #F3F5FD;
  --ink: #17181B; --ink-2: #33353A; --ink-3: #4A4C52; --muted: #5B5D63; --faint: #6B6D73; --time: #7A7C82;
  --line: #E2E2DD; --line-2: #EDEDE8; --line-3: #F0F0EC; --field: #CFCFC8; --btn-line: #D6D6D0;
  --accent: #2347D6; --accent-ink: #1A36A8; --accent-soft: #E8EDFB; --on-accent: #FFFFFF;
  --ok: #1F6B3F; --ok-soft: #E6F2EA; --warn: #8A5200; --warn-soft: #FBF0DD; --warn-line: #C98A1E;
  --neutral-soft: #F0F0EC; --mark-bg: #17181B; --mark-ink: #F4F4F1;
  --shadow: 0 1px 0 var(--line);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214; --surface: #18191C; --surface-2: #1D1E22; --hover: #222428; --sel: #1B2140;
    --ink: #ECECEA; --ink-2: #D4D4D1; --ink-3: #B9BAB6; --muted: #A3A4A0; --faint: #93948F; --time: #8A8B87;
    --line: #2A2C30; --line-2: #26282C; --line-3: #232529; --field: #3A3C41; --btn-line: #34363B;
    --accent: #5B7BFF; --accent-ink: #9DB0FF; --accent-soft: #1F2A55; --on-accent: #0B0D18;
    --ok: #7FD0A0; --ok-soft: #173325; --warn: #F0B45A; --warn-soft: #3A2A10; --warn-line: #A8761F;
    --neutral-soft: #222428; --mark-bg: #ECECEA; --mark-ink: #111214;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { font-family: Geist, system-ui, sans-serif; color: var(--ink); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); } a:hover { color: var(--accent-ink); }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: 'Geist Mono', ui-monospace, monospace; }
.sr { position: absolute; left: -9999px; }
[hidden] { display: none !important; }

/* shell */
.app { display: flex; flex-wrap: wrap; min-height: 100vh; }
.rail { flex: 1 1 220px; max-width: 248px; padding: 22px 16px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; padding: 4px 10px 22px; }
.mark { width: 26px; height: 26px; border-radius: 8px; background: var(--mark-bg); color: var(--mark-ink); display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.nav { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--ink-3); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav:hover { background: var(--hover); color: var(--ink); }
.nav.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.nav .n { margin-left: auto; font-family: 'Geist Mono', monospace; font-size: 12px; color: var(--faint); }
.nav svg { width: 18px; height: 18px; flex: none; }
.railfoot { margin-top: auto; padding: 12px 10px; font-size: 12px; color: var(--faint); display: flex; flex-direction: column; gap: 8px; }
.live { display: flex; align-items: center; gap: 8px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); flex: none; }
.live.on i { background: var(--ok); }
.main { flex: 999 1 560px; min-width: 0; padding: 28px 36px 64px; display: flex; flex-direction: column; gap: 26px; max-width: 1400px; }

h1 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
h2 { margin: 0; font-size: 16px; font-weight: 600; }
.sub { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.muted { color: var(--faint); font-size: 13px; }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.sec { display: flex; flex-direction: column; gap: 12px; }
.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

/* controls */
.btn { font-size: 14px; font-weight: 600; border-radius: 8px; padding: 0 16px; height: 40px; border: 1px solid var(--btn-line); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap; text-decoration: none; transition: transform .08s ease, background .15s ease; }
.btn:hover { background: var(--hover); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--on-accent); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-3); }
.btn.ghost:hover { background: var(--hover); }
.btn.sm { height: 32px; font-size: 13px; padding: 0 12px; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn svg { width: 16px; height: 16px; }
.input, select.input, textarea.input { font-family: inherit; font-size: 14px; min-height: 40px; border-radius: 8px; border: 1px solid var(--field); padding: 0 12px; background: var(--surface); color: var(--ink); width: 100%; }
textarea.input { padding: 12px 14px; line-height: 1.55; resize: vertical; }
.input::placeholder { color: var(--faint); }
.input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.input.need { border-color: var(--warn-line); }
.f { display: flex; flex-direction: column; gap: 6px; }
.f label, .f .l { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.f.wide { grid-column: 1 / -1; }
.help { font-size: 12.5px; color: var(--faint); line-height: 1.4; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.chip { font-size: 13px; font-weight: 500; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--btn-line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip b { font-family: 'Geist Mono', monospace; font-weight: 500; margin-left: 6px; opacity: .75; }
.opt { font-size: 13px; font-weight: 500; min-height: 32px; padding: 4px 12px; border-radius: 8px; border: 1px solid var(--btn-line); background: var(--surface); color: var(--ink); cursor: pointer; text-align: left; }
.opt:hover { border-color: var(--accent); }

/* surfaces */
.card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.stat { padding: 16px 20px; border-left: 1px solid var(--line-2); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: 'Geist Mono', monospace; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.stat span { font-size: 13px; color: var(--muted); }
.cols { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.split.mail { grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }

/* job card */
.job { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.job.leaving { opacity: .4; transition: opacity .25s; }
.logo { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 14px; overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.jt { font-size: 15.5px; font-weight: 600; margin: 0 0 3px; line-height: 1.35; }
.jt a { color: inherit; text-decoration: none; } .jt a:hover { text-decoration: underline; }
.jm { font-size: 13px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.why { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; max-width: 66ch; }
.score { font-family: 'Geist Mono', monospace; font-size: 13px; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; }
.acts { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.tag { font-size: 12px; font-weight: 500; color: var(--ink-3); background: var(--neutral-soft); border-radius: 999px; padding: 2px 9px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font-size: 13px; cursor: pointer; font-weight: 500; }
.linkbtn:hover { color: var(--accent-ink); text-decoration: underline; }
.letter { grid-column: 2 / -1; border-top: 1px solid var(--line-3); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.letter pre { white-space: pre-wrap; font-family: inherit; font-size: 13.5px; line-height: 1.6; margin: 0; color: var(--ink-2); max-width: 72ch; }
.desc { grid-column: 2 / -1; font-size: 13px; line-height: 1.55; color: var(--ink-2); white-space: pre-wrap; max-height: 320px; overflow: auto; border-top: 1px solid var(--line-3); padding-top: 12px; }

/* needs you */
.q { display: flex; flex-direction: column; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.q:last-child { border-bottom: 0; padding-bottom: 0; }
.qco { font-size: 12px; font-weight: 600; color: var(--warn); }
.qt { font-size: 14px; font-weight: 500; line-height: 1.4; }
.opts { display: flex; gap: 6px; flex-wrap: wrap; }
.feed { display: flex; flex-direction: column; gap: 12px; }
.ev { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.ev time { font-family: 'Geist Mono', monospace; color: var(--time); font-size: 12px; padding-top: 1px; }
.ok { color: var(--ok); font-weight: 600; }
.warn { color: var(--warn); font-weight: 600; }

/* tables / applications */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
th { text-align: left; font-size: 12px; font-weight: 500; color: var(--faint); padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
td { padding: 13px 16px; border-bottom: 1px solid var(--line-3); vertical-align: top; }
tbody tr { cursor: pointer; }
tbody tr:hover td { background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
tr.sel td, tr.sel:hover td { background: var(--sel); }
.co { font-weight: 600; }
.role { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.cellmono { font-family: 'Geist Mono', monospace; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.st { font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; display: inline-block; }
.st.ap { background: var(--ok-soft); color: var(--ok); }
.st.iv { background: var(--accent-soft); color: var(--accent-ink); }
.st.nd { background: var(--warn-soft); color: var(--warn); }
.st.rj, .st.go { background: var(--neutral-soft); color: var(--muted); }
.st.go { color: var(--ink); }
.detail { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 20px; }
.dh { font-size: 18px; font-weight: 600; margin: 0; line-height: 1.35; }
.dm { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.tl { display: flex; flex-direction: column; border-left: 2px solid var(--line); margin-left: 6px; max-height: 360px; overflow: auto; }
.step { position: relative; padding: 0 0 14px 18px; font-size: 13.5px; line-height: 1.45; }
.step::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.step time { display: block; font-family: 'Geist Mono', monospace; font-size: 12px; color: var(--time); }
.files { display: flex; gap: 8px; flex-wrap: wrap; }
.file { display: flex; align-items: center; gap: 8px; font-size: 13px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; color: var(--ink); text-decoration: none; }
.file:hover { background: var(--hover); color: var(--ink); }

/* mail */
.inbox { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mailrow { display: block; width: 100%; text-align: left; padding: 14px 18px; border: 0; border-bottom: 1px solid var(--line-3); background: transparent; color: var(--ink); cursor: pointer; }
.mailrow:last-child { border-bottom: 0; }
.mailrow:hover { background: var(--surface-2); }
.mailrow.sel { background: var(--sel); }
.mtop { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.from { font-weight: 600; }
.when { font-family: 'Geist Mono', monospace; font-size: 12px; color: var(--time); white-space: nowrap; }
.subj { font-size: 13.5px; margin-top: 3px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kind { display: inline-block; margin-top: 7px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--neutral-soft); color: var(--muted); }
.kind.iv { background: var(--accent-soft); color: var(--accent-ink); }
.kind.in { background: var(--warn-soft); color: var(--warn); }
.read { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.summary { font-size: 14px; line-height: 1.5; background: var(--surface-2); border: 1px solid var(--line-3); border-radius: 8px; padding: 12px 14px; }
.lbl { font-size: 13px; font-weight: 600; margin-bottom: 8px; display: block; }
.slots { display: flex; gap: 8px; flex-wrap: wrap; }
.slot { font-size: 14px; font-weight: 500; min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--btn-line); background: var(--surface); color: var(--ink); cursor: pointer; }
.slot:hover { border-color: var(--accent); }
.slot.on { border-color: var(--accent); background: var(--sel); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent); }
.body { white-space: pre-wrap; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); max-height: 260px; overflow: auto; border-left: 2px solid var(--line); padding-left: 14px; }

/* profile / settings */
.docs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.doc { border: 1px dashed var(--field); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.doc b { color: var(--ink); font-size: 14px; font-weight: 600; }
.doc.has { border-style: solid; border-color: var(--line); background: var(--surface-2); }
.doc.drag { border-color: var(--accent); background: var(--sel); }
.missing { background: var(--warn-soft); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.missing h2 { color: var(--warn); }
.xp { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line-3); }
.xp:first-of-type { border-top: 0; padding-top: 0; }
.xp b { font-size: 14px; } .xp span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.qa { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 60px 32px; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line-3); font-size: 13.5px; }
.qa:first-child { border-top: 0; }
.qa .a { font-weight: 600; overflow-wrap: anywhere; }
.uses { font-family: 'Geist Mono', monospace; font-size: 12px; color: var(--time); text-align: right; }
.x { width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--faint); cursor: pointer; font-size: 18px; line-height: 1; }
.x:hover { background: var(--hover); color: var(--ink); }
.search { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.srcs { display: flex; gap: 8px; flex-wrap: wrap; }
.src { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--btn-line); cursor: pointer; }
.src input, .toggle input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; cursor: pointer; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mode { border: 1px solid var(--btn-line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; background: var(--surface); text-align: left; color: var(--ink); }
.mode b { font-size: 14px; } .mode span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.mode.on { border-color: var(--accent); background: var(--sel); box-shadow: inset 0 0 0 1px var(--accent); }
.conn { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0 4px; border-top: 1px solid var(--line-3); }
.conn:first-of-type { border-top: 0; padding-top: 0; }
.conn b { font-size: 14px; display: block; margin-bottom: 2px; }
.state { font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.s-ok { background: var(--ok-soft); color: var(--ok); }
.s-no { background: var(--neutral-soft); color: var(--muted); }
.token .btn { font-family: Geist, system-ui, sans-serif; }
.token { font-family: 'Geist Mono', monospace; font-size: 12.5px; background: var(--bg); border-radius: 8px; padding: 8px 8px 8px 12px; display: flex; justify-content: space-between; gap: 8px; align-items: center; overflow-wrap: anywhere; }
.rng { display: flex; align-items: center; gap: 12px; }
.rng input { flex: 1; accent-color: var(--accent); }
.rng b { font-family: 'Geist Mono', monospace; font-weight: 500; width: 34px; text-align: right; }
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.steps li { counter-increment: s; position: relative; padding-left: 22px; }
.steps li::before { content: counter(s); position: absolute; left: 0; font-family: 'Geist Mono', monospace; color: var(--faint); }

/* targeting */
.fam { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pick { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--btn-line); border-radius: 12px; padding: 12px 14px; background: var(--surface); cursor: pointer; text-align: left; color: var(--ink); transition: border-color .15s ease, background .15s ease; }
.pick:hover { border-color: var(--accent); }
.pick b { display: block; font-size: 14px; font-weight: 600; }
.pick span span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.pick.on { border-color: var(--accent); background: var(--sel); box-shadow: inset 0 0 0 1px var(--accent); }
.box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--field); flex: none; margin-top: 1px; display: grid; place-items: center; color: var(--on-accent); }
.pick.on .box { background: var(--accent); border-color: var(--accent); }
.box svg { width: 13px; height: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.card .lbl { margin-bottom: 0; }
.dream { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.co { display: grid; grid-template-columns: 36px minmax(0, 1fr) 32px; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.co b { font-size: 14px; display: block; }
.co span span { font-size: 12px; color: var(--muted); line-height: 1.35; display: block; }
.lg { width: 36px; height: 36px; border-radius: 9px; background: #F4F4F1; display: grid; place-items: center; overflow: hidden; }
.lg img { width: 20px; height: 20px; }
.mono-tile { font-weight: 700; font-size: 12.5px; color: var(--accent-ink); background: var(--accent-soft); }
.sugg { display: flex; flex-direction: column; gap: 10px; }
.sg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sg .t { font-size: 12px; color: var(--faint); width: 82px; flex: none; }
.mini { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 11px 0 7px; border-radius: 999px; border: 1px dashed var(--field); background: var(--surface); font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.mini:hover { border-style: solid; border-color: var(--accent); }
.mini img { width: 14px; height: 14px; background: #F4F4F1; border-radius: 3px; padding: 1px; }
.mini i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; font-size: 9px; font-weight: 700; color: var(--accent-ink); }
.gen { display: flex; flex-direction: column; }
.gs { padding: 12px 0; border-top: 1px solid var(--line-3); font-size: 13.5px; line-height: 1.45; }
.gs:first-child { border-top: 0; padding-top: 0; }
.gs b { display: block; font-weight: 600; }
.gs span { color: var(--muted); font-size: 12.5px; }
.sentlist { display: flex; flex-direction: column; margin-top: 8px; max-height: 420px; overflow: auto; }
.sent { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; border-top: 1px solid var(--line-3); font-size: 13px; line-height: 1.45; }
.sent:first-child { border-top: 0; }
.sent span { color: var(--muted); }
.sent b { font-weight: 500; white-space: pre-wrap; overflow-wrap: anywhere; }
.orig { margin: -1px 0 4px; font-size: 12.5px; color: var(--faint); }
.orig span { margin-left: 6px; color: var(--accent-ink); }
.card.needs { border-color: var(--warn-line); box-shadow: inset 0 0 0 1px var(--warn-line); }
.dreamtag { font-size: 12px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 2px 9px; }
@media (max-width: 760px) { .fam, .dream { grid-template-columns: minmax(0, 1fr); } .sg .t { width: 100%; } }

/* empty, loading, toast, modal */
.empty { border: 1px dashed var(--field); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 14px; line-height: 1.5; }
.empty b { color: var(--ink); font-size: 15px; }
.skel { background: linear-gradient(90deg, var(--line-3) 25%, var(--line-2) 37%, var(--line-3) 63%); background-size: 400% 100%; border-radius: 12px; height: 112px; animation: sh 1.4s ease infinite; }
@keyframes sh { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } .btn { transition: none; } }
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 20; }
.toast { background: var(--ink); color: var(--bg); border-radius: 8px; padding: 12px 16px; font-size: 13.5px; max-width: 380px; box-shadow: 0 8px 30px rgb(0 0 0 / .18); line-height: 1.4; }
.toast.err { background: #8E2A1E; color: #FFF; }
.overlay { position: fixed; inset: 0; background: rgb(17 18 20 / .4); display: grid; place-items: center; z-index: 10; padding: 16px; }
.modal { background: var(--surface); border-radius: 12px; padding: 24px; width: min(520px, 100%); display: flex; flex-direction: column; gap: 16px; box-shadow: 0 20px 60px rgb(0 0 0 / .25); }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: rot .8s linear infinite; display: inline-block; }
@keyframes rot { to { transform: rotate(360deg); } }

/* onboarding */
.onb { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.onbcard { width: min(560px, 100%); display: flex; flex-direction: column; gap: 22px; }
.onbcard h1 { font-size: 32px; }
.drop { border: 1.5px dashed var(--field); border-radius: 12px; padding: 36px 24px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; color: var(--muted); cursor: pointer; background: var(--surface); }
.drop.drag { border-color: var(--accent); background: var(--sel); }
.drop b { color: var(--ink); font-size: 15px; }

@media (max-width: 1100px) { .cols, .split, .split.mail, .grid2 { grid-template-columns: minmax(0, 1fr); } .detail { position: static; } }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line-2); } }
@media (max-width: 760px) {
  .rail { max-width: none; height: auto; position: static; border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; padding: 12px 16px; }
  .brand { padding: 4px 10px; width: 100%; } .railfoot { display: none; }
  .main { padding: 20px 16px 48px; }
  .job { grid-template-columns: minmax(0, 1fr); } .logo { display: none; } .acts { align-items: flex-start; } .letter, .desc { grid-column: 1; }
  .fields, .seg, .docs { grid-template-columns: minmax(0, 1fr); }
  .qa { grid-template-columns: minmax(0, 1fr) 32px; } .qa .uses { display: none; }
}
