/* job-searcher — design tokens. Colors carry meaning:
   brand (indigo→violet) = actions & navigation · status colors = where a job is in your process
   fit colors = how well a job matches · role-of-interest colors = validated categorical palette
   gold = favorites · red = urgent (deadlines, errors) */
:root {
  color-scheme: light;
  --bg: #f5f6fb; --panel: #ffffff; --panel2: #f9fafe; --ink: #1e2235; --ink2: #3d4259; --muted: #646a85;
  --rule: #e6e8f2; --rule2: #d5d9e8; --hover: #f1f2fa; --sel: #eceefe;
  --brand: #4f46e5; --brand2: #7c3aed; --brand-ink: #4338ca; --brand-soft: #eef0ff; --teal: #0d9488;
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #0d9488 100%);
  --ok: #047857; --ok-soft: #e3f6ee; --warn: #b45309; --warn-soft: #fff4e0; --bad: #c2262c; --bad-soft: #fdecec;
  --gold: #e7a400; --gold-soft: #fff7df;
  --s-review: #b45309; --s-review-bg: #fff4e0; --s-apply: #0f766e; --s-apply-bg: #e0f5f2;
  --s-progress: #2563eb; --s-progress-bg: #e7efff; --s-low: #5b6480; --s-low-bg: #eef0f5;
  --s-aband: #7b8197; --s-aband-bg: #f1f2f5; --s-fin: #7c3aed; --s-fin-bg: #f2ecff; --s-closed: #8a90a5; --s-closed-bg: #f1f2f5;
  --fit-hi: #047857; --fit-mid: #0f766e; --fit-lo: #b45309; --fit-none: #8a90a5;
  --c0: #2a78d6; --c1: #eb6834; --c2: #1baf7a; --c3: #eda100; --c4: #e87ba4; --c5: #008300; --c6: #6250d6; --c7: #e34948;
  --bar: #6366f1; --bar-bg: #e9eaf8;
  --shadow: 0 1px 2px rgba(30,34,53,.05), 0 4px 14px rgba(30,34,53,.05);
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0e1117; --panel: #161a23; --panel2: #1a1f2a; --ink: #e6e8f0; --ink2: #c8ccd9; --muted: #9aa0b5;
    --rule: #252b38; --rule2: #313848; --hover: #1d2330; --sel: #222a40;
    --brand: #818cf8; --brand2: #a78bfa; --brand-ink: #a5b4fc; --brand-soft: #232848; --teal: #2dd4bf;
    --ok: #34d399; --ok-soft: #12291f; --warn: #f5a35a; --warn-soft: #2d2114; --bad: #f87171; --bad-soft: #301617;
    --gold: #fbbf24; --gold-soft: #2d2510;
    --s-review: #f5a35a; --s-review-bg: #2d2114; --s-apply: #2dd4bf; --s-apply-bg: #0f2725;
    --s-progress: #7aa2ff; --s-progress-bg: #172340; --s-low: #a3abc2; --s-low-bg: #20242f;
    --s-aband: #7b8197; --s-aband-bg: #1c1f28; --s-fin: #b69cff; --s-fin-bg: #251d3d; --s-closed: #7b8197; --s-closed-bg: #1c1f28;
    --fit-hi: #34d399; --fit-mid: #2dd4bf; --fit-lo: #f5a35a; --fit-none: #7b8197;
    --c0: #3987e5; --c1: #d95926; --c2: #199e70; --c3: #c98500; --c4: #d55181; --c5: #008300; --c6: #9085e9; --c7: #e66767;
    --bar: #818cf8; --bar-bg: #232838;
    --shadow: none;
  }
}
* { box-sizing: border-box }
html, body { margin: 0; height: 100% }
body { background: var(--bg); color: var(--ink); font: 14px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif; }
a { color: var(--brand-ink); text-decoration: none } a:hover { text-decoration: underline }
button, select, input, textarea { font: inherit; color: inherit }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px }

/* ---------- shell */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); height: 100vh }
.side { background: var(--panel); border-right: 1px solid var(--rule); display: flex; flex-direction: column; padding: 16px 12px; gap: 4px; overflow: auto }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; font-weight: 800; font-size: 16px; letter-spacing: -.01em }
.brand img { width: 34px; height: 34px }
.brand small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); letter-spacing: 0 }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--ink2); font-weight: 500 }
.nav a:hover { background: var(--hover); text-decoration: none }
.nav a.on { background: var(--brand-soft); color: var(--brand-ink); font-weight: 650 }
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .85 }
.nav .count { margin-left: auto; font-size: 11.5px; background: var(--s-review-bg); color: var(--s-review); border-radius: 99px; padding: 0 7px; font-weight: 700 }
.nav .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 10px 4px; font-weight: 700 }
.side .foot { margin-top: auto; font-size: 12px; color: var(--muted); padding: 10px }
.main { display: flex; flex-direction: column; min-width: 0; height: 100vh }
.top { display: flex; align-items: center; gap: 12px; padding: 10px 20px; background: var(--panel); border-bottom: 1px solid var(--rule); min-height: 56px }
.top h1 { font-size: 17px; margin: 0; font-weight: 700 }
.top .sp { flex: 1 }
.iconbtn { position: relative; border: 1px solid var(--rule); background: var(--panel); border-radius: 10px; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer }
.iconbtn:hover { background: var(--hover) }
.iconbtn svg { width: 19px; height: 19px }
.badge-dot { position: absolute; top: -5px; right: -5px; background: var(--bad); color: #fff; border-radius: 99px; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border: 2px solid var(--panel) }
.who { display: flex; align-items: center; gap: 8px; font-size: 13px }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px }
.running { display: inline-flex; align-items: center; gap: 7px; color: var(--brand-ink); font-size: 12.5px; font-weight: 600; background: var(--brand-soft); padding: 5px 10px; border-radius: 99px }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: pulse 1.2s infinite }
@keyframes pulse { 50% { opacity: .3 } }
#view { flex: 1; min-height: 0; overflow: auto }
.page { max-width: 1200px; margin: 0 auto; padding: 22px 22px 70px }
.page.narrow { max-width: 860px }
.lead { margin: 0 0 18px; color: var(--muted); max-width: 820px }
.hidden { display: none !important }

/* ---------- building blocks */
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow) }
.card h3 { margin: 0 0 4px; font-size: 14.5px; font-weight: 700 }
.card .hint { color: var(--muted); font-size: 12.5px; margin: 0 0 12px }
.grid { display: grid; gap: 16px }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)) } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)) }
@media (max-width: 960px) { .g2, .g3 { grid-template-columns: 1fr } }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap }
.between { justify-content: space-between }
.muted { color: var(--muted) } .small { font-size: 12.5px } .err { color: var(--bad) } .okc { color: var(--ok) }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rule2); background: var(--panel); border-radius: 9px; padding: 7px 13px; cursor: pointer; font-size: 13.5px; font-weight: 550; white-space: nowrap }
.btn:hover { border-color: var(--brand); text-decoration: none }
.btn:disabled { opacity: .5; cursor: default }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff }
.btn.primary:hover { filter: brightness(1.07) }
.btn.soft { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink) }
.btn.danger { color: var(--bad) } .btn.danger.sure { background: var(--bad); border-color: var(--bad); color: #fff }
.btn.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink) }
.btn.sm { padding: 4px 9px; font-size: 12.5px; border-radius: 8px }
.btn svg { width: 16px; height: 16px }
input[type=text], input[type=password], input[type=search], input[type=number], input[type=date], input[type=time], select, textarea {
  padding: 7px 10px; border: 1px solid var(--rule2); border-radius: 9px; background: var(--panel2) }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft) }
label.chk { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer }
input[type=checkbox], input[type=radio], input[type=range] { accent-color: var(--brand) }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px }
table.t th { text-align: left; font-weight: 650; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; padding: 8px; border-bottom: 1px solid var(--rule2) }
table.t td { padding: 9px 8px; border-bottom: 1px solid var(--rule); vertical-align: top }
table.t tr.click { cursor: pointer } table.t tr.click:hover { background: var(--hover) }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 9px 16px; border-radius: 10px; font-size: 13px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 50; max-width: 90vw }
.toast.show { opacity: .96 } .toast.bad { background: var(--bad); color: #fff }
pre.log { background: var(--panel2); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; max-height: 300px; overflow: auto; font-size: 12.5px; white-space: pre-wrap; margin: 0 }

/* chips & pills */
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--panel2); border: 1px solid var(--rule2); border-radius: 99px; padding: 2px 4px 2px 10px; font-size: 13px }
.chip button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 15px; line-height: 1; padding: 0 4px }
.chip.ro { padding-right: 10px }
.chips input { border: 1px dashed var(--rule2); background: transparent; min-width: 170px; border-radius: 99px; padding: 3px 10px }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; padding: 2px 9px; border-radius: 99px; white-space: nowrap }
.st-review { color: var(--s-review); background: var(--s-review-bg) } .st-apply { color: var(--s-apply); background: var(--s-apply-bg) }
.st-progress { color: var(--s-progress); background: var(--s-progress-bg) } .st-low { color: var(--s-low); background: var(--s-low-bg) }
.st-aband { color: var(--s-aband); background: var(--s-aband-bg) } .st-fin { color: var(--s-fin); background: var(--s-fin-bg) }
.st-closed { color: var(--s-closed); background: var(--s-closed-bg) }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--rule2); color: var(--ink2); margin: 2px 4px 0 0; white-space: nowrap; background: var(--panel) }
.tag.new { border-color: transparent; background: var(--ok-soft); color: var(--ok); font-weight: 650 }
.tag.clt { border-color: transparent; background: var(--ok-soft); color: var(--ok) }
.tag.bad { border-color: transparent; background: var(--bad-soft); color: var(--bad) }
.tag.dl { border-color: transparent; background: var(--warn-soft); color: var(--warn) }
.role { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink2); padding: 1px 9px 1px 7px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--rule); white-space: nowrap; margin: 2px 4px 0 0 }
.role i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none }
.c0 { background: var(--c0) } .c1 { background: var(--c1) } .c2 { background: var(--c2) } .c3 { background: var(--c3) }
.c4 { background: var(--c4) } .c5 { background: var(--c5) } .c6 { background: var(--c6) } .c7 { background: var(--c7) }
.bl0 { border-left-color: var(--c0) !important } .bl1 { border-left-color: var(--c1) !important } .bl2 { border-left-color: var(--c2) !important }
.bl3 { border-left-color: var(--c3) !important } .bl4 { border-left-color: var(--c4) !important } .bl5 { border-left-color: var(--c5) !important }
.bl6 { border-left-color: var(--c6) !important } .bl7 { border-left-color: var(--c7) !important }
.fit { display: inline-grid; place-items: center; min-width: 40px; height: 28px; border-radius: 8px; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 13.5px }
.fit.hi { color: var(--fit-hi); background: var(--ok-soft) } .fit.mid { color: var(--fit-mid); background: var(--s-apply-bg) }
.fit.lo { color: var(--fit-lo); background: var(--warn-soft) } .fit.none { color: var(--fit-none); background: var(--s-closed-bg) }
.star { border: 0; background: none; cursor: pointer; font-size: 18px; line-height: 1; color: var(--rule2); padding: 2px }
.star.on { color: var(--gold) } .star:hover { color: var(--gold) }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; margin-bottom: 16px }
.kpi { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; box-shadow: var(--shadow); border-top: 4px solid var(--rule2) }
.kpi:hover { border-color: var(--brand) }
.kpi .v { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1 }
.kpi .l { color: var(--muted); font-size: 12.5px; font-weight: 500 }
.k-open { border-top-color: var(--brand) } .k-new { border-top-color: var(--ok) } .k-review { border-top-color: var(--s-review) }
.k-apply { border-top-color: var(--s-apply) } .k-progress { border-top-color: var(--s-progress) } .k-fav { border-top-color: var(--gold) }
.k-int { border-top-color: var(--s-fin) } .k-offer { border-top-color: var(--ok) }

/* charts */
.chart svg { display: block; width: 100%; height: auto; overflow: visible }
.chart .bar { fill: var(--bar) } .chart .bar:hover { opacity: .8 } .chart .bg { fill: var(--bar-bg) }
.chart text { fill: var(--muted); font-size: 11px } .chart text.v { fill: var(--ink2); font-weight: 650 }
.chart .axis { stroke: var(--rule2) }

/* progress bars */
.prog { display: grid; grid-template-columns: 130px 1fr 92px; gap: 10px; align-items: center; font-size: 13px; margin: 6px 0 }
.pbar { height: 10px; border-radius: 99px; background: var(--bar-bg); overflow: hidden }
.pbar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); transition: width .6s }
.pbar.done i { background: var(--ok) } .pbar.li i { background: linear-gradient(90deg, #0a66c2, #4f46e5) }
.prog .n { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums }
.est { display: grid; grid-template-columns: 170px 1fr 70px; gap: 10px; align-items: center; font-size: 13px; margin: 5px 0 }
.est .pbar i { background: var(--bar) } .est .pbar.li i { background: #0a66c2 }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(15,18,30,.45); display: grid; place-items: center; z-index: 40; padding: 16px }
.modal { background: var(--panel); border-radius: 16px; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal.wide { width: min(1100px, 100%) }
.modal header { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: var(--panel); z-index: 1 }
.modal header h2 { margin: 0; font-size: 17px; flex: 1 }
.modal .body { padding: 18px 20px }
.modal footer { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--rule); position: sticky; bottom: 0; background: var(--panel) }
.pdfframe { width: 100%; height: 70vh; border: 1px solid var(--rule); border-radius: 10px; background: #fff }
.choice { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--rule2); border-radius: 10px; padding: 10px 12px; margin: 6px 0; cursor: pointer }
.choice.on { border-color: var(--brand); background: var(--brand-soft) }
.choice input { margin-top: 3px }
.notice { border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 8px 0 }
.notice.warn { background: var(--warn-soft); color: var(--warn) } .notice.info { background: var(--brand-soft); color: var(--brand-ink) }
.notice.bad { background: var(--bad-soft); color: var(--bad) } .notice.ok { background: var(--ok-soft); color: var(--ok) }

/* notifications panel */
.npanel { position: fixed; top: 60px; right: 16px; width: min(400px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.18); z-index: 30 }
.npanel header { display: flex; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: var(--panel) }
.npanel header b { flex: 1 }
.nitem { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--rule); cursor: pointer; font-size: 13px }
.nitem:hover { background: var(--hover) } .nitem.unread { background: var(--brand-soft) }
.nicon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 15px }
.ni-new { background: var(--ok-soft); color: var(--ok) } .ni-fav { background: var(--gold-soft); color: var(--gold) }
.ni-dl { background: var(--bad-soft); color: var(--bad) } .ni-run { background: var(--brand-soft); color: var(--brand-ink) }
.ni-rem { background: var(--s-progress-bg); color: var(--s-progress) }

/* jobs */
.jobs { display: grid; grid-template-columns: 250px minmax(0, 1fr) minmax(0, 540px); height: 100% }
.jobs.nodetail { grid-template-columns: 250px minmax(0, 1fr) 0 }
.jobs aside.filters { overflow: auto; padding: 16px 14px 40px; border-right: 1px solid var(--rule); background: var(--panel) }
.f { margin-bottom: 16px }
.f .lbl { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 6px; font-weight: 700 }
.f input[type=search], .f input[type=text], .f select { width: 100% }
.f label.chk { font-size: 13.5px; padding: 2px 0 } .f label.chk .c { margin-left: auto; color: var(--muted); font-size: 12px }
.jobs section.list { overflow: auto; min-width: 0 }
.tabs { display: flex; gap: 2px; padding: 8px 16px 0; border-bottom: 1px solid var(--rule); overflow-x: auto; background: var(--panel); position: sticky; top: 0; z-index: 2 }
.tab { border: 0; background: none; padding: 8px 11px; border-bottom: 3px solid transparent; cursor: pointer; color: var(--muted); white-space: nowrap; font-weight: 550 }
.tab.on { color: var(--ink); border-bottom-color: var(--brand) }
.tab .n { font-size: 11.5px; color: var(--muted); margin-left: 5px; background: var(--panel2); border-radius: 99px; padding: 0 6px }
.listhead { display: flex; align-items: center; gap: 12px; padding: 10px 16px; color: var(--muted); font-size: 13px; background: var(--bg); border-bottom: 1px solid var(--rule); flex-wrap: wrap; position: sticky; top: 45px; z-index: 1 }
.listhead .kbd { margin-left: auto; font-size: 12px }
kbd { font: 11px ui-monospace, monospace; border: 1px solid var(--rule2); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; background: var(--panel) }
.jrow { display: grid; grid-template-columns: 30px 48px minmax(0, 1fr) 150px; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--rule); cursor: pointer; background: var(--panel); border-left: 3px solid transparent }
.jrow:hover { background: var(--hover) } .jrow.sel { background: var(--sel); border-left-color: var(--brand) }
.jrow .t1 { font-weight: 650 } .jrow .t2 { color: var(--muted); font-size: 12.5px }
.jrow .side2 { text-align: right; font-size: 12px; color: var(--muted) }
@media (max-width: 1250px) { .jrow { grid-template-columns: 30px 48px minmax(0, 1fr) } .jrow .side2 { display: none } }
.empty { padding: 50px; text-align: center; color: var(--muted) }
.jobs aside.detail { overflow: auto; border-left: 1px solid var(--rule); background: var(--panel); min-width: 0 }
.jobs.nodetail aside.detail { display: none }
.d { padding: 18px 22px 60px }
.d h2 { margin: 0 0 2px; font-size: 18px; line-height: 1.3 }
.d .co { font-size: 14.5px; font-weight: 600; margin-bottom: 8px; color: var(--ink2) }
.d .close { float: right; border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--muted); line-height: 1 }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; font-size: 13px; margin: 12px 0 }
.facts dt { color: var(--muted) } .facts dd { margin: 0 }
.box { border: 1px solid var(--rule); border-radius: 10px; padding: 12px; margin: 14px 0; background: var(--panel2) }
.box h3 { margin: 0 0 8px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted) }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px }
.stform { display: grid; grid-template-columns: 1fr 1fr; gap: 8px } .stform select, .stform input { width: 100% } .stform .full { grid-column: 1/-1 }
.d textarea { width: 100%; min-height: 120px; resize: vertical }
.ads { list-style: none; padding: 0; margin: 0; font-size: 13px } .ads li { padding: 7px 0; border-bottom: 1px solid var(--rule) } .ads li:last-child { border: 0 }
.ads .off { color: var(--muted); text-decoration: line-through }
.desc { white-space: pre-wrap; font-size: 13px; max-height: 320px; overflow: auto } .desc.full { max-height: none }
.hist { font-size: 12.5px; color: var(--muted); list-style: none; padding: 0; margin: 0 }
.parts { display: grid; grid-template-columns: 110px 1fr 36px; gap: 4px 8px; font-size: 12px; align-items: center; margin-top: 6px }
@media (max-width: 1150px) { .jobs, .jobs.nodetail { grid-template-columns: 230px minmax(0, 1fr) }
  .jobs aside.detail { position: fixed; inset: 56px 0 0 auto; width: min(560px, 100%); box-shadow: -8px 0 24px rgba(0,0,0,.2); z-index: 5 } }

/* roles of interest */
.interest { border-left: 5px solid var(--rule2) }
.interest .head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap }
.interest .head input.name { font-weight: 700; font-size: 15px; border-color: transparent; background: transparent; min-width: 200px }
.interest .head input.name:hover, .interest .head input.name:focus { border-color: var(--rule2); background: var(--panel2) }
.cvbox { display: flex; gap: 12px; align-items: center; border: 1px dashed var(--rule2); border-radius: 10px; padding: 10px 12px; margin-top: 12px }
.cvbox.missing { border-color: var(--warn); background: var(--warn-soft) }
.cvicon { width: 38px; height: 46px; border-radius: 6px; background: var(--bad-soft); color: var(--bad); display: grid; place-items: center; font-weight: 800; font-size: 11px; flex: none }
.drop { border: 2px dashed var(--rule2); border-radius: 12px; padding: 24px; text-align: center; color: var(--muted); background: var(--panel2) }
.drop.over { border-color: var(--brand); background: var(--brand-soft) }
.slider { display: grid; grid-template-columns: 160px 1fr 54px; gap: 10px; align-items: center; margin: 4px 0 }
.slider output { font-variant-numeric: tabular-nums; text-align: right; color: var(--ink2) }
.savebar { position: sticky; bottom: 0; background: var(--panel); border-top: 1px solid var(--rule); padding: 12px 22px; display: flex; gap: 10px; align-items: center; margin: 0 -22px; z-index: 3 }

/* help */
.steps { counter-reset: s; display: grid; gap: 14px }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow) }
.step .num { width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px }
.step h3 { margin: 2px 0 4px; font-size: 15px }
.step p { margin: 4px 0; color: var(--ink2) }
.hero { background: var(--grad); color: #fff; border-radius: 18px; padding: 26px 28px; margin-bottom: 18px; display: flex; gap: 22px; align-items: center }
.hero img { width: 74px; height: 74px; border-radius: 18px; background: rgba(255,255,255,.15); padding: 6px }
.hero h2 { margin: 0 0 6px; font-size: 22px } .hero p { margin: 0; opacity: .92; max-width: 760px }
.faq details { background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 14px; margin: 8px 0 }
.faq summary { cursor: pointer; font-weight: 650 }

@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr } .side { display: none } .side.open { display: flex; position: fixed; inset: 0 30% 0 0; z-index: 45; box-shadow: 0 0 40px rgba(0,0,0,.3) }
  .menu-btn { display: grid !important }
  .jobs, .jobs.nodetail { grid-template-columns: 1fr } .jobs aside.filters { display: none } .jobs aside.filters.open { display: block; position: fixed; inset: 56px 0 0 0; z-index: 6 }
  .hide-sm { display: none } .jrow { grid-template-columns: 26px 44px minmax(0, 1fr) }
}
.menu-btn { display: none !important }

/* login */
body.loginpage { background: var(--grad); min-height: 100vh }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px }
.login-card { width: min(380px, 100%); background: var(--panel); border-radius: 18px; padding: 28px; box-shadow: 0 24px 70px rgba(20,20,60,.35); display: flex; flex-direction: column; gap: 6px }
.login-card h1 { margin: 14px 0 0; font-size: 20px }
.login-card p { margin: 0 0 8px }
.login-card label { font-size: 13px; color: var(--muted); margin-top: 6px }
.login-card .btn.primary { justify-content: center; padding: 10px; margin-top: 12px; font-size: 14.5px }
.login-brand { display: flex; gap: 12px; align-items: center; font-size: 18px }
.login-brand img { width: 46px; height: 46px }
.login-brand small { display: block; color: var(--muted); font-size: 12px; font-weight: 500 }
.langs { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 8px }
.langs button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 } .langs button.on { color: var(--brand-ink); font-weight: 700 }

/* getting started */
.gs { display: grid; gap: 14px }
.gs-step { display: grid; grid-template-columns: 46px 1fr; gap: 14px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); opacity: .78 }
.gs-step.current { opacity: 1; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft) }
.gs-step.done { opacity: 1 }
.gs-num { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; background: var(--brand-soft); color: var(--brand-ink) }
.gs-step.current .gs-num { background: var(--grad); color: #fff }
.gs-step.done .gs-num { background: var(--ok-soft); color: var(--ok) }
.gs-body h3 { margin: 4px 0 2px; font-size: 16px } .gs-body > p { margin: 0 0 10px }
.gs-how { margin: 6px 0 12px; padding-left: 18px } .gs-how li { margin: 4px 0 }
/* misc additions */
.warnc { color: var(--warn); font-weight: 650 }
.btn.dangerfill { background: var(--bad); border-color: var(--bad); color: #fff }
.iconbtn.flag { font-size: 18px; line-height: 1 }
.fitlegend { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px } .fitlegend .fit { min-width: 30px; height: 22px; font-size: 12px }
.runbanner { margin: 10px 16px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap }
.page .runbanner { margin: 0 0 14px }

/* documentation viewer */
.docs-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh }
.docs-side { position: sticky; top: 0; height: 100vh } .docs-side .brand { color: var(--ink); text-decoration: none }
.docs-main { padding: 28px 36px 80px; max-width: 980px }
.md { line-height: 1.65 } .md h1 { font-size: 28px; margin: 0 0 14px } .md h2 { font-size: 21px; margin: 30px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--rule) }
.md h3 { font-size: 16.5px; margin: 22px 0 8px } .md code { background: var(--panel2); border: 1px solid var(--rule); border-radius: 5px; padding: 0 5px; font-size: 12.5px }
.md pre { background: var(--panel2); border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; overflow: auto } .md pre code { border: 0; padding: 0; background: none }
.md blockquote { border-left: 4px solid var(--brand); margin: 12px 0; padding: 4px 14px; color: var(--ink2); background: var(--brand-soft); border-radius: 0 8px 8px 0 }
.md .tblwrap { overflow-x: auto; margin: 10px 0 }
@media (max-width: 820px) { .docs-shell { grid-template-columns: 1fr } .docs-side { position: static; height: auto; display: flex } }

.prog-sub { font-size: 12px; color: var(--muted); margin: -4px 0 8px 140px }
@media (max-width: 640px) { .prog-sub { margin-left: 0 } }
