/* Navrole portal: "Metro line" (DESIGN.md). Your search is one metro line: each stage is a station with its own line
   colour; jobs ride from "Not acted on" to "Offer". Enamel-white surfaces, a dark wayfinding rail, Schibsted Grotesk
   for words, Martian Mono for numbers. Colours are tokens; components never use raw values. Fonts are self-hosted. */
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../fonts/SchibstedGrotesk-latin.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: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../fonts/SchibstedGrotesk-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Martian Mono'; font-style: normal; font-weight: 400 700; font-stretch: 75% 112.5%; font-display: swap; src: url(../fonts/MartianMono-latin.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: 'Martian Mono'; font-style: normal; font-weight: 400 700; font-stretch: 75% 112.5%; font-display: swap; src: url(../fonts/MartianMono-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  /* the line colours: one per stage, shared by the map, job dots, board lanes and the extension */
  --l-new: #7D838E; --l-saved: #0067B1; --l-ref: #7B3FA0; --l-apply: #C4560A; --l-int: #00875A; --l-offer: #9A7600;
  /* light theme "Ivory & deep navy" with maroon actions (Dec 2026): warm paper ground, ivory panels, deep navy ink and
     rail, maroon for actions and the brand; errors are orange-red so a button never reads as an error */
  --primary: #8A1C3C; --primary-ink: #6E1530; --primary-hover: #6E1530; --focus: #8A1C3C; --secondary: #7B3FA0;
  --success: #00875A; --warning: #B45309; --danger: #D9481E;
  --success-ink: #006B47; --warning-ink: #8A4A06; --danger-ink: #A8361A;
  --bg: #F5F1EA; --surface: #FFFCF7; --surface-2: #EEE8DE; --border: #E3DACB;
  --text: #1B2337; --text-2: #46506A; --muted: #5B6479;
  --brand-soft: #F6E4EA; --chart: #8A1C3C; --chart-track: #E6DFD3;
  --grad: var(--primary);   /* legacy name: the product uses no gradients */
  --rail: #141B2D; --rail-text: #B8BED0; --rail-strong: #FFFFFF; --rail-hover: #FFFFFF14; --rail-mute: #8890A6;
  /* floating (Dec 2026): a close contact shadow plus a wide soft one below, so panels sit above the page */
  --shadow: 0 1px 2px rgba(27,35,55,.06), 0 6px 16px -6px rgba(27,35,55,.10), 0 22px 48px -20px rgba(27,35,55,.22);
  --shadow-lift: 0 2px 4px rgba(27,35,55,.07), 0 12px 24px -8px rgba(27,35,55,.14), 0 34px 64px -22px rgba(27,35,55,.30);
  --radius: 14px; --radius-sm: 10px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'Martian Mono', ui-monospace, 'Cascadia Mono', monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --l-new: #9AA1AD; --l-saved: #4DA3FF; --l-ref: #B98AE0; --l-apply: #FF8A3D; --l-int: #2FBF8A; --l-offer: #F0C419;
  --primary: #A82E52; --primary-ink: #E6BBC3; --primary-hover: #BD3A61; --focus: #E6BBC3; --accent-ink: #D15B6E; --secondary: #B98AE0; --success: #2FBF8A; --warning: #F5B040; --danger: #FF8A5C;
  --success-ink: #4FD6A0; --warning-ink: #F5B040; --danger-ink: #FF9E78;
  --bg: #0B0F1A; --surface: #141A2A; --surface-2: #1B2236; --border: #263049; --text: #EDF0F7; --text-2: #B4BCD0; --muted: #959DB3;
  --brand-soft: #2E1622; --chart: #C24A6C; --chart-track: #222A3E; --rail: #070A12; --rail-hover: #FFFFFF12;
  --shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 2px 4px rgba(0,0,0,.35), 0 20px 44px -16px rgba(0,0,0,.65);
  --shadow-lift: inset 0 1px 0 rgba(255,255,255,.06), 0 4px 8px rgba(0,0,0,.4), 0 30px 60px -18px rgba(0,0,0,.75); color-scheme: dark; } }
:root[data-theme="dark"] {
  --l-new: #9AA1AD; --l-saved: #4DA3FF; --l-ref: #B98AE0; --l-apply: #FF8A3D; --l-int: #2FBF8A; --l-offer: #F0C419;
  --primary: #A82E52; --primary-ink: #E6BBC3; --primary-hover: #BD3A61; --focus: #E6BBC3; --accent-ink: #D15B6E; --secondary: #B98AE0; --success: #2FBF8A; --warning: #F5B040; --danger: #FF8A5C;
  --success-ink: #4FD6A0; --warning-ink: #F5B040; --danger-ink: #FF9E78;
  --bg: #0B0F1A; --surface: #141A2A; --surface-2: #1B2236; --border: #263049; --text: #EDF0F7; --text-2: #B4BCD0; --muted: #959DB3;
  --brand-soft: #2E1622; --chart: #C24A6C; --chart-track: #222A3E; --rail: #070A12; --rail-hover: #FFFFFF12;
  --shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 2px 4px rgba(0,0,0,.35), 0 20px 44px -16px rgba(0,0,0,.65);
  --shadow-lift: inset 0 1px 0 rgba(255,255,255,.06), 0 4px 8px rgba(0,0,0,.4), 0 30px 60px -18px rgba(0,0,0,.75); color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; caret-color: var(--primary); accent-color: var(--primary); }
::selection { background: color-mix(in srgb, var(--primary) 28%, transparent); color: var(--text); }
html { scrollbar-color: color-mix(in srgb, var(--text) 25%, transparent) transparent; scrollbar-width: thin; }
a { color: var(--primary-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
svg:not([width]) { width: 1.1em; height: 1.1em; vertical-align: -0.18em; flex: none; } /* default icon size; components override */
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
h1, .hero-title { font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 650; }
p { margin: 0; }
.mono, .num, td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .t2 { color: var(--text-2); } .small { font-size: 14px; } .xs { font-size: 12.5px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
/* reduced motion: no movement, but colour and opacity changes still show what changed */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-property: color, background-color, border-color, opacity, box-shadow !important; scroll-behavior: auto !important; }
  .fade, .bar .fill, .skeleton { animation: none !important; }
}

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--rail); color: var(--rail-text); padding: 20px 14px; display: flex; flex-direction: column; gap: 2px; scrollbar-color: #ffffff30 transparent; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; padding: 6px 10px 18px; color: var(--rail-strong); letter-spacing: -0.02em; }
.brand .logo { width: 24px; height: 24px; border-radius: 50%; border: 6px solid var(--rail-strong); background: var(--primary); box-shadow: 0 0 0 3px var(--rail); }
.brand .logo svg { display: none; }
.navsec { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--rail-mute); padding: 16px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 10px; color: var(--rail-text); text-decoration: none; font-weight: 500; transition: background-color 150ms ease, color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { background: var(--rail-hover); color: var(--rail-strong); } }
.nav a[aria-current="page"] { background: #ffffff1f; color: var(--rail-strong); font-weight: 650; }
.nav svg { width: 19px; height: 19px; flex: none; opacity: .85; }
.side .foot { margin-top: auto; padding-top: 14px; border-top: 1px solid #ffffff1a; display: flex; flex-direction: column; gap: 8px; color: var(--rail-strong); }
.side .foot .muted { color: var(--rail-mute); }
.side .btn { background: #ffffff10; border-color: transparent; color: var(--rail-strong); }
@media (hover: hover) and (pointer: fine) { .side .btn:hover { background: #ffffff1f; } }
.main { padding: 28px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.shell > div { min-width: 0; }   /* the content column never grows to its widest child (boards and tables scroll inside themselves) */
.topbar { display: none; }
.scrim { display: none; position: fixed; } /* mobile menu overlay: never a grid item */
.pagehead { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.pagehead p { color: var(--text-2); margin-top: 6px; max-width: 720px; }
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 50; transform: translateX(-105%); transition: transform .2s; box-shadow: var(--shadow); }
  .shell.open .side { transform: none; }
  .topbar { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 16px; }
  .scrim { display: none; } .shell.open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 45; }
}

/* ---------- bento & cards ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card.pad-lg { padding: 26px; }
.card .chead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
@media (max-width: 1200px) { .span-3 { grid-column: span 6; } .span-4, .span-5, .span-7, .span-8 { grid-column: span 12; } .span-6 { grid-column: span 12; } }
@media (max-width: 640px) { .span-3 { grid-column: span 12; } .card { padding: 16px; } }
.hero { position: relative; }
.hero p { color: var(--text-2); }

/* stat tiles */
.stat .label { font-size: 13.5px; color: var(--text-2); font-weight: 500; }
.stat .value { font-size: 38px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-top: 4px; }
.stat .hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.stat .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--primary-ink); display: grid; place-items: center; float: right; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 650 15px var(--font); cursor: pointer; text-decoration: none; transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--surface-2); } .btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); } }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }

.btn.ghost { border-color: transparent; background: transparent; }
.btn.danger { color: var(--danger); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btn.white { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn[disabled], .btn.loading { opacity: .55; cursor: not-allowed; }
/* loading feedback (js/api.js): top bar, "what is happening" note, busy buttons */
#jp-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000; overflow: hidden; opacity: 0; transition: opacity .2s; pointer-events: none; }
#jp-progress.on { opacity: 1; }
#jp-progress span { position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: var(--grad, var(--primary)); animation: jp-bar 1.1s ease-in-out infinite; }
@keyframes jp-bar { to { left: 100%; } }
#jp-busy { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 1000; display: none; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow); padding: 9px 16px; border-radius: 999px; font: 500 14px var(--font); }
#jp-busy.on { display: flex; }
.spin, .is-busy::before { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: jp-spin .7s linear infinite; display: inline-block; flex: none; box-sizing: border-box; }
.is-busy::before { content: ""; } :not(.btn).is-busy::before { margin-right: 6px; vertical-align: -2px; }
.is-busy { cursor: progress !important; } .btn.is-busy { opacity: .8; } .is-busy > svg { display: none; }
label.drop.is-busy::before { width: 30px; height: 30px; border-width: 3px; color: var(--primary-ink); }
@keyframes jp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin, .is-busy::before { animation: jp-spin 1.6s linear infinite !important; } #jp-progress span { animation: none !important; left: 0; width: 100%; opacity: .6; } }
.btn svg { width: 18px; height: 18px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.grow { flex: 1 1 auto; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  font: 15px var(--font); color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; min-height: 44px; padding: 0 14px; width: 100%; }
textarea { padding: 12px 14px; min-height: 120px; font-family: var(--mono); font-size: 13px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent); border-color: var(--primary); }
label.field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 14px; color: var(--text-2); }
.filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
@media (max-width: 900px) { .filters { grid-template-columns: 1fr 1fr; } .filters > :first-child { grid-column: span 2; } }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { min-height: 36px; border: 0; background: transparent; padding: 0 14px; border-radius: 9px; font: 600 14px var(--font); color: var(--text-2); cursor: pointer; }
.seg.wrap { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; }
.seg button .chip { margin-left: 4px; }
[hidden] { display: none !important; }
.refwarn { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--warning) 12%, transparent); margin: 8px 0 12px; font-size: 14px; }
.refwarn svg { flex: none; color: var(--warning); margin-top: 2px; }
.refgrid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; margin-top: 6px; } @media (max-width: 860px) { .refgrid { grid-template-columns: 1fr; } }
.reflist { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; } .reflist a { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; } .reflist svg { width: 14px; height: 14px; }
.reftext, #refsubject, #refco { width: 100%; margin-top: 8px; font: 14px/1.5 var(--font); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; background: var(--surface); color: var(--text); }
.refbox { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 8px 0 14px; }
.kanban { grid-template-columns: repeat(5, minmax(210px, 1fr)) !important; }
.themebar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 12px; }
.swatches { gap: 8px; } .swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--surface); background: var(--c); box-shadow: 0 0 0 1px var(--border); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--primary); }
.addline { margin-top: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; display: grid; gap: 8px; } .addline textarea { width: 100%; }
.whygrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; } @media (max-width: 800px) { .whygrid { grid-template-columns: 1fr; } }
.wpart { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin-top: 10px; } .wpart > div:first-child { min-width: 0; }
.wbar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.wbar span { display: block; height: 100%; border-radius: 3px; } .wbar .hi { background: var(--success); } .wbar .mid { background: var(--warning); } .wbar .lo { background: var(--danger); }
.raise { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-top: 10px; } .raise ul { margin: 8px 0 0 18px; padding: 0; } .raise li { margin: 3px 0; }
.wnew { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; border-color: var(--primary); }
.wnew > .ico { color: var(--primary-ink); display: inline-flex; }
.wnew > .ico svg { width: 22px; height: 22px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--primary-ink); box-shadow: var(--shadow); }
input[type=range] { width: 100%; accent-color: var(--primary); min-height: 32px; }
:root:not(.kbd) input[type=range]:focus { outline: none; }

/* chips & badges */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.chip.brand { background: var(--brand-soft); color: var(--primary-ink); border-color: transparent; }
.chip.ok { color: var(--success-ink); background: color-mix(in srgb, var(--success) 12%, transparent); border-color: transparent; }
.chip.warn { color: var(--warning-ink); background: color-mix(in srgb, var(--warning) 14%, transparent); border-color: transparent; }
.chip.bad { color: var(--danger-ink); background: color-mix(in srgb, var(--danger) 12%, transparent); border-color: transparent; }
.chip button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 0 0 2px; min-width: 24px; min-height: 24px; position: relative; }
.chip button::after { content: ''; position: absolute; inset: -6px; }   /* a bigger hit area than the visible ×  */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.src { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); }

/* job cards */
.jobs { display: grid; gap: 12px; }
.job { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); cursor: pointer; transition: border-color 150ms ease, transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .job:hover { border-color: color-mix(in srgb, var(--c, var(--primary)) 55%, var(--border)); } }
.job:active { transform: scale(0.995); }
.job .dot { width: 14px; height: 14px; border-radius: 50%; border: 4px solid var(--c, var(--l-new)); background: var(--surface); justify-self: center; }
.job .gap { font-size: 13px; color: var(--danger-ink); margin-top: 6px; }
.job .score { text-align: left; min-width: 76px; }
.job .score + .score { min-width: 112px; }
.job .score small { display: block; font: 600 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.job .score b { display: flex; align-items: baseline; gap: 6px; font: 700 26px/1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.job .score b i { font: 600 12px var(--font); font-style: normal; letter-spacing: 0; }
.job > div { min-width: 0; } .job h3, .wnew a { overflow-wrap: anywhere; }
.job h3 { font-size: 17px; } .job .meta { color: var(--text-2); font-size: 14px; margin-top: 2px; }
.job .acts { display: flex; gap: 6px; }
@media (max-width: 700px) {
  .job { grid-template-columns: 22px auto auto minmax(0, 1fr); gap: 10px 14px; align-items: start; }
  .job .dot { margin-top: 4px; } .job > div:nth-child(2) { grid-column: 2 / -1; }
  .job .score { min-width: 0; text-align: left; } .job .score b { font-size: 20px; }
  .job .acts { justify-content: flex-end; align-self: center; }
  .job .acts { gap: 0; } .job .acts .btn { padding: 0 7px; min-width: 32px; }
  .job > :nth-child(3) { grid-row: 2; grid-column: 2; } .job > :nth-child(4) { grid-row: 2; grid-column: 3; } .job > :nth-child(5) { grid-row: 2; grid-column: 4; }
}
/* a score: big number, a small label, and a thin line filled to the value in the line colour */
.metric { display: inline-grid; gap: 4px; min-width: 84px; }
.metric b { font: 700 32px/1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.metric small { font: 600 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.metric i { display: block; height: 4px; border-radius: 4px; background: var(--chart-track); overflow: hidden; }
.metric i::after { content: ''; display: block; height: 100%; width: calc(var(--p) * 1%); border-radius: 4px; background: var(--mc, var(--primary)); }
.metric.sm b { font-size: 22px; }

/* tables */
.table-wrap { position: relative; overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--surface); }
th { text-align: left; font-weight: 600; color: var(--text-2); background: var(--surface-2); padding: 10px 12px; white-space: nowrap; font-size: 13px; }
td { padding: 11px 12px; border-top: 1px solid var(--border); vertical-align: top; }
tbody tr { cursor: pointer; } tbody tr:hover td { background: var(--surface-2); }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 10px; }

/* bars (single-series, brand hue, labels in text tokens) */
.bars { display: grid; gap: 9px; }
.bar { display: grid; grid-template-columns: minmax(110px, 34%) 1fr 48px; align-items: center; gap: 10px; font-size: 14px; }
.bar .lab { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .track { display: block; height: 12px; background: var(--chart-track); border-radius: 4px; overflow: hidden; }
.bar .fill { display: block; height: 100%; background: var(--chart); border-radius: 0 4px 4px 0; transform-origin: left; animation: grow .6s ease-out both; }
.bar .val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
@keyframes grow { from { transform: scaleX(0); } }
.cols { display: flex; align-items: flex-end; gap: 3px; height: 170px; padding-top: 8px; border-bottom: 1px solid var(--border); }
.cols .c { flex: 1; background: var(--chart); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; transition: opacity .15s; }
.cols:hover .c { opacity: .55; } .cols .c:hover { opacity: 1; }
.colsx { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 6px; }
#tooltip { position: fixed; pointer-events: none; background: var(--text); color: var(--surface); padding: 6px 10px; border-radius: 8px; font-size: 13px; z-index: 200; opacity: 0; transition: opacity .1s; max-width: 280px; }
#tooltip.on { opacity: 1; }

/* misc */
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty svg { width: 44px; height: 44px; color: var(--primary-ink); margin-bottom: 8px; }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.lane { background: var(--surface-2); border-radius: var(--radius); padding: 12px; min-height: 220px; box-shadow: inset 0 4px 0 var(--c, var(--l-new)); }
.lane h3 { display: flex; justify-content: space-between; margin: 4px 4px 10px; font-size: 15px; }
.kcard { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow); }
.kcard .row { margin-top: 8px; gap: 4px; }
.kcard { box-shadow: inset 0 3px 0 var(--c, transparent), var(--shadow); }
.backlink { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-weight: 600; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* activity and timeline rows inside a card are divided rows, not cards within the card */
.card .timeline { gap: 0; } .card .timeline > .tev { border: 0; border-top: 1px solid var(--border); border-radius: 0; background: transparent; padding-left: 2px; padding-right: 2px; } .card .timeline > .tev:first-child { border-top: 0; }
details > summary { list-style: none; } details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin-right: 10px; transition: transform 200ms var(--ease-out); flex: none; }
details[open] > summary::before { transform: rotate(45deg); }
.kcard .btn.sm { min-height: 32px; padding: 0 10px; font-size: 13px; }
.kcard > a { color: var(--text); text-decoration: none; } .kcard > a b { font-weight: 650; }
@media (hover: hover) and (pointer: fine) { .kcard > a:hover b { text-decoration: underline; text-underline-offset: 3px; } }
.timeline { display: grid; gap: 2px; }
.tday { font-weight: 600; color: var(--text-2); margin: 16px 0 6px; font-size: 14px; }
.tev > div { min-width: 0; overflow-wrap: anywhere; }
.tev { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.tev .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--primary-ink); display: grid; place-items: center; }
.tev .ic svg { width: 18px; height: 18px; }
.steps { counter-reset: s; display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
.steps li > * { min-width: 0; overflow-wrap: anywhere; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 5px solid var(--primary); color: var(--text); display: grid; place-items: center; font: 700 12px var(--mono); box-sizing: border-box; }
.code { font-family: var(--mono); font-size: 13px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
.jd { white-space: pre-wrap; font-size: 14.5px; color: var(--text-2); max-height: 420px; overflow: auto; background: var(--surface-2); border-radius: 12px; padding: 14px; }
details > summary { cursor: pointer; font-weight: 600; min-height: 36px; display: flex; align-items: center; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.preview { width: 100%; height: 640px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14.5px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(16px) scale(0.98); background: var(--text); color: var(--surface); padding: 12px 18px; border-radius: 999px; opacity: 0; transition: opacity 200ms var(--ease-out), transform 240ms var(--ease-out); z-index: 300; font-weight: 550; box-shadow: var(--shadow); }
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.askapply { position: fixed; right: 20px; bottom: 20px; width: min(340px, calc(100vw - 32px)); background: var(--surface); color: var(--text); border: 1px solid var(--border); border-left: 4px solid var(--l-apply); border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 12px 32px rgba(21,23,28,.16); z-index: 250;
  transition: opacity 200ms var(--ease-out), transform 240ms var(--ease-out); @starting-style { opacity: 0; transform: translateY(12px); } }
.askapply-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: 8px; cursor: pointer; }
.askapply-x:hover { background: var(--surface-2); color: var(--text); }
.askapply-x svg { width: 16px; height: 16px; }
.askapply #askapply-q { padding-right: 28px; }
@media (max-width: 640px) { .askapply { right: 16px; left: 16px; bottom: 16px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .askapply { transition: none; } }
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login .art { background: var(--rail); color: var(--rail-strong); padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login .art h1 { font-size: clamp(34px, 4vw, 54px); color: var(--rail-strong); max-width: 560px; letter-spacing: -0.03em; }
.login .art p { color: var(--rail-text); }
.login .art .bub { display: none; }
.login .art::after { content: ''; position: absolute; left: 56px; right: 56px; bottom: 120px; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--l-new) 0 16.6%, var(--l-saved) 16.6% 33.3%, var(--l-ref) 33.3% 50%, var(--l-apply) 50% 66.6%, var(--l-int) 66.6% 83.3%, var(--l-offer) 83.3%); }
.login form { align-self: center; justify-self: center; width: min(420px, 92vw); display: grid; gap: 16px; padding: 24px; }
@media (max-width: 900px) { .login { grid-template-columns: 1fr; } .login .art { padding: 32px 24px; min-height: 260px; gap: 20px; justify-content: flex-start; }
  /* the colour line joins the flow (between the text and the privacy note) instead of floating over the text */
  .login .art::after { position: static; order: 2; flex: none; margin: 4px 0 0; }
  .login .art > p.small { order: 3; } }
.fade { animation: fade 280ms var(--ease-out) both; } @keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; height: 80px; }
@keyframes sk { to { background-position: -200% 0; } }

/* Base CV: upload + review editor */
.drop { border: 2px dashed var(--border); border-radius: var(--radius); padding: 28px 20px; text-align: center; display: grid; gap: 10px; justify-items: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--primary); background: var(--brand-soft); }
.drop svg { width: 36px; height: 36px; color: var(--primary-ink); }
.drop input { display: none; }
.cved { display: grid; gap: 14px; }
.cved .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.cved .item { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; background: var(--surface-2); }
.cved .item .item { background: transparent; }
.cved .ihead { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cved textarea { font-family: var(--font); font-size: 14px; min-height: 90px; }
.cved h3 { margin-top: 6px; }
/* the CV check form is long: keep its Save button in view */
.cvbar { position: sticky; bottom: 0; z-index: 5; gap: 10px; align-items: center; flex-wrap: wrap; margin: 18px -4px 0; padding: 12px 4px; background: var(--surface); border-top: 1px solid var(--border); }
.warnbox { border: 1px solid var(--warning); border-radius: var(--radius); padding: 12px 14px; background: color-mix(in srgb, var(--warning) 8%, transparent); }
.warnbox ul { margin: 6px 0 0 18px; padding: 0; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.ansrow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); }
@media (max-width: 640px) { .ansrow { grid-template-columns: 1fr auto; } .ansrow span { grid-column: 1 / -1; } }
/* CV review: the field a suggestion points to */
.jp-focus { outline: 3px solid var(--warning); outline-offset: 2px; border-radius: 6px; }
.cvrev .tev > span:last-child { white-space: nowrap; }
.rwlist { margin-top: 8px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }

/* ---------- the line map: your search as one metro line ----------
   Stations are buttons (stage tabs); the current one is the "you are here" ring. The line under the stations is drawn
   in each stage's colour. Moving between stations is the one authored motion: the ring grows, the old one settles. */
.metro { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px 16px; }
.line { --n: 6; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); position: relative; }
.line::before { content: ''; position: absolute; top: 17px; left: calc(50% / var(--n)); right: calc(50% / var(--n)); height: 8px; border-radius: 8px; background: var(--track); }
.stn { position: relative; display: grid; justify-items: center; gap: 2px; padding: 0 2px 4px; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; border-radius: 10px; text-decoration: none; min-height: 44px; }
.stn i { width: 30px; height: 30px; margin: 6px 0 8px; border-radius: 50%; background: var(--surface); border: 7px solid var(--c); transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out); }
.stn[aria-pressed="true"] i, .stn[aria-current="true"] i { transform: scale(1.25); box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--c); }
.stn b { font-weight: 650; font-size: 14.5px; line-height: 1.2; text-align: center; }
.stn span { font: 600 13px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.stn[aria-pressed="true"] span, .stn[aria-current="true"] span { color: var(--text); }
@media (hover: hover) and (pointer: fine) { .stn:hover i { transform: scale(1.12); } .stn[aria-pressed="true"]:hover i { transform: scale(1.25); } }
.stn:active i { transform: scale(1.05); }
.metro .side-stops { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); align-items: center; }
.stop { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid transparent; color: var(--text); font: 600 14px var(--font); cursor: pointer; text-decoration: none; transition: transform 160ms var(--ease-out), border-color 150ms ease; }
.stop i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--l-new)); }
.stop .num { font-size: 12.5px; color: var(--text-2); }
.stop[aria-pressed="true"] { border-color: var(--text); background: var(--surface); }
.stop:active { transform: scale(0.97); }
.stage-pick { display: none; }
@media (max-width: 760px) {
  #tabs .line, #tabs .side-stops { display: none; }
  #tabs { padding: 12px 14px; }
  #tabs .stage-pick { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; font-weight: 650; }
  .line { grid-template-columns: 1fr; padding-left: 4px; }
  .line::before { top: 24px; bottom: 24px; left: 14px;   /* 4px line padding + 13px circle radius − 3px half line width */ right: auto; width: 6px; height: auto; background: linear-gradient(180deg, var(--l-new) 0 20%, var(--l-saved) 20% 40%, var(--l-ref) 40% 60%, var(--l-apply) 60% 80%, var(--l-int) 80%); }
  .stn { grid-template-columns: 30px 1fr auto; justify-items: start; align-items: center; column-gap: 14px; min-height: 48px; padding: 0 6px 0 0; }
  .stn i { width: 26px; height: 26px; border-width: 6px; margin: 0; }
  .stn b { text-align: left; font-size: 15px; } .stn span { justify-self: end; font-size: 14px; }
}
/* filters fold away on phones (open by default on wider screens) */
.filterbox > summary { min-height: 36px; font-weight: 650; }
.filterbox[open] > summary { margin-bottom: 10px; }
@media (min-width: 761px) { .filterbox > summary { display: none; } }

/* job types: label and choice always side by side */
.famrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, 170px); gap: 10px; align-items: center; }
/* profile: the save action stays in reach on a long page */
.savebar { position: sticky; bottom: 0; z-index: 6; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 16px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.anslist .ansrow.more { display: none; } .anslist.all .ansrow.more { display: grid; }
@media (max-width: 640px) { .ansrow { grid-template-columns: minmax(0, 1fr) auto; } }
@media (max-width: 640px) { .savebar > span { display: none; } .savebar { padding: 10px 12px; justify-content: flex-end; } }
.moredetails > summary { font-weight: 650; min-height: 40px; }

/* guide: "Start here" tour, drawn as a line with one station per step */
.tour { list-style: none; margin: 0; padding: 0; display: grid; }
.tour > li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; padding-bottom: 22px; }
.tour > li::before { content: ''; width: 26px; height: 26px; margin-top: 1px; box-sizing: border-box; border-radius: 50%; background: var(--surface); border: 6px solid var(--c); position: relative; z-index: 1; }
.tour > li::after { content: ''; position: absolute; left: 10px; top: 14px; bottom: -14px; width: 6px; background: var(--c); }
.tour > li:last-child { padding-bottom: 0; } .tour > li:last-child::after { display: none; }
.tour > li > div { min-width: 0; overflow-wrap: anywhere; }
.tourhead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 6px; }
.tourhead h3 { margin: 0; }
.tour ul { margin: 0 0 10px; padding-left: 18px; color: var(--text-2); line-height: 1.6; display: grid; gap: 4px; }
.tour ul b { color: var(--text); }
.tour .row { flex-wrap: wrap; gap: 8px; }
.faq { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--border); border-radius: 12px; padding: 0 14px; background: var(--surface); }
.faq summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.faq details p { margin: 0 0 12px; }

/* "Is this a real job?" on the job page */
.realjob { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.realjob h3 { margin: 0; }
.realjob ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.realjob li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; }
.realjob .rj-ic { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; }
.realjob .rj-ic svg { width: 12px; height: 12px; }
.realjob .rj-ic.ok { color: var(--success-ink); background: color-mix(in srgb, var(--success) 14%, transparent); }
.realjob .rj-ic.bad { color: var(--danger-ink); background: color-mix(in srgb, var(--danger) 14%, transparent); }
.realjob .rj-ic.unk { color: var(--text-2); background: var(--surface-2); }
.realjob .rj-warn li { grid-template-columns: 1fr; }
.realjob .rj-warn svg { width: 12px; height: 12px; vertical-align: -1px; }
.realjob > summary { list-style: none; cursor: pointer; display: grid; gap: 4px; border-radius: 8px; }
.realjob > summary::-webkit-details-marker { display: none; }
.realjob .rj-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.realjob .rj-head > b { display: inline-flex; align-items: center; gap: 6px; }
.realjob .rj-head > b::before { content: ''; width: 7px; height: 7px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(-45deg); transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1); margin-right: 2px; }
.realjob[open] .rj-head > b::before { transform: rotate(45deg); }
.realjob > summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .realjob .rj-head > b::before { transition: none; } }
.realjob > summary::before { content: none; }
.realjob .rj-warn li { display: block; }
.realjob[open] .rj-why { display: none; }

/* "Get referred" collapsed to one line until opened */
.refdetails > summary { display: grid; grid-template-columns: 18px 1fr; align-items: center; row-gap: 2px; min-height: 0; font-weight: inherit; }
.refdetails > summary::before { grid-row: 1; margin-right: 0; }
.refdetails > summary .chead, .refdetails > summary .ref-hint { grid-column: 2; }
.refdetails > summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 8px; }
.refdetails[open] > summary { margin-bottom: 8px; }
.refdetails[open] .ref-hint { display: none; }

/* preference learning: "Why not?" after hiding a job, and the "What Navrole learned" card */
.job.hidden-job { display: block; cursor: default; border-style: dashed; box-shadow: none; }
.whynot p { margin: 6px 0 8px; }
.lp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lp-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.lp-row:first-child { border-top: 0; }
.lp-dir { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; flex: none; background: var(--surface-2); }
.lp-dir.up { color: var(--success-ink); }
.lp-dir.down { color: var(--danger-ink); }
.lp-muted { opacity: .7; }
.lp-off { margin-top: 10px; }
.whynot .btn.ghost { border: 1px solid var(--border); border-radius: 999px; }
.whynot .btn.primary { border-radius: 999px; }
.job.leaving { opacity: 0; transform: scale(.98); transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .job.leaving { transition: none; } }
.btn.apply-co { border-color: var(--primary); color: var(--primary-ink); font-weight: 650; }

/* Today's apply queue: one row per prepared job (tick, what it needs, fit) */
.qbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 4px 0 12px; }
.qsize { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.qsize select { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 8px; }
.qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.qitem { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.qitem.done { box-shadow: none; background: var(--surface-2); }
.qitem.done .qtitle a { color: var(--text-2); }
.qpick { display: grid; place-items: center; min-height: 28px; cursor: pointer; }
.qpick input { width: 20px; height: 20px; margin: 0; cursor: pointer; }
.qtitle { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 650; font-size: 16.5px; }
.qtitle a { color: var(--text); text-decoration: none; overflow-wrap: anywhere; } .qtitle a:hover { text-decoration: underline; }
.qitem .meta { color: var(--text-2); font-size: 14px; margin-top: 2px; }
.qprep { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 13.5px; }
.qcv, .qnote { display: flex; gap: 6px; align-items: flex-start; color: var(--text-2); }
.qcv svg, .qnote svg { margin-top: 3px; width: 14px; height: 14px; }
.qcv.ok { color: var(--success-ink); } .qcv.bad { color: var(--danger-ink); } .qnote svg { color: var(--warning-ink); }
.qside { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.qfit { font: 700 22px/1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qfit small { font: 600 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-left: 4px; }
@media (max-width: 640px) { .qitem { grid-template-columns: 24px minmax(0, 1fr); } .qside { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; } }

/* CV studio: what changed for this job (base CV next to the tailored CV) */
.cvdiff > summary{flex-wrap:wrap;gap:4px 8px}
.cvd{border-top:1px solid var(--border);padding:10px 0}
.cvd-cols{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:6px}
.cvd-cols>div{background:var(--surface-2);border-radius:8px;padding:8px 10px;min-width:0;overflow-wrap:anywhere}
.cvd-h{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:4px}
.cvd-list{margin:0;padding-left:18px}
.cvdiff mark{background:color-mix(in srgb,var(--warning) 24%,transparent);color:inherit;border-radius:3px;padding:0 2px}
@media (max-width:640px){.cvd-cols{grid-template-columns:1fr}}

/* job page: prepare for the interview */
.ivprep > summary{display:grid;grid-template-columns:18px 1fr;align-items:center;row-gap:2px;min-height:0;font-weight:inherit}
.ivprep > summary::before{grid-row:1;margin-right:0}
.ivprep > summary > *{grid-column:2}
.ivlist{margin:0;padding-left:20px;display:grid;gap:8px}
.ivq b{font-weight:600}

/* Offers: take-home calculator and comparison */
.olist{display:grid;gap:16px}
.ogrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px 14px}
.ofld{display:flex;flex-direction:column;gap:4px;min-width:0}
.ofld input,.ofld select{width:100%}
.ochk{flex-direction:row;align-items:center;gap:8px;align-self:end}
.ochk input{width:auto}
.oadv,.obreak{margin-top:12px}
.oadv summary,.obreak summary{cursor:pointer}
.oresult{margin-top:14px;border-top:1px solid var(--border);padding-top:12px}
.ohero{display:flex;gap:28px;flex-wrap:wrap;align-items:flex-end}
.obig{font-size:30px;font-weight:700;letter-spacing:-.01em}
.omid{font-size:18px;font-weight:650}
.otable{width:100%;margin-top:8px;border-collapse:collapse;font-size:13px}
.otable td{padding:5px 0;border-bottom:1px solid var(--border)}
.otable td:last-child{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;padding-left:12px}
#ocompare{margin-top:16px}

/* ---------- Updates bell (menu on desktop, top bar on phones) ---------- */
.bell { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 0; background: none; color: inherit; cursor: pointer; transition: background-color 150ms ease, transform 160ms var(--ease-out); }
.bell svg { width: 20px; height: 20px; }
.bell:active { transform: scale(0.94); }
.bell.on-rail { margin-left: auto; color: var(--rail-text); }
@media (hover: hover) and (pointer: fine) { .bell.on-rail:hover { background: var(--rail-hover); color: var(--rail-strong); } .bell.on-bar:hover { background: var(--surface-2); } }
.bell.on-rail[aria-expanded="true"] { background: #ffffff1f; color: var(--rail-strong); }
.bell.on-bar[aria-expanded="true"] { background: var(--surface-2); }
.bell-dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--l-apply); box-shadow: 0 0 0 2px var(--rail); transform: scale(0); transition: transform 220ms var(--ease-out); }
.bell.on-bar .bell-dot { box-shadow: 0 0 0 2px var(--surface); }
.bell.has-dot .bell-dot { transform: scale(1); }
.upd-panel { position: fixed; z-index: 60; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 32px -8px rgba(15, 18, 25, .28), 0 2px 6px rgba(15, 18, 25, .08); max-height: min(70vh, 560px); display: flex; flex-direction: column; overflow: hidden; transform-origin: top left; animation: updIn 180ms var(--ease-out); }
@keyframes updIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .upd-panel { animation: none; } }
.upd-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--border); }
.upd-body { overflow-y: auto; padding: 6px; }
.upd-row { display: grid; grid-template-columns: 34px 1fr 16px; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .upd-row:hover, .upd-sub a:hover { background: var(--surface-2); } }
.upd-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.upd-ic svg { width: 18px; height: 18px; }
.upd-tx { display: grid; gap: 1px; min-width: 0; }
.upd-tx b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upd-tx span { font-size: 13px; color: var(--text-2); }
.upd-go { color: var(--muted); display: grid; } .upd-go svg { width: 16px; height: 16px; }
.upd-sub { display: grid; margin: -4px 0 6px 46px; }
.upd-sub a { display: flex; gap: 10px; align-items: baseline; padding: 6px 10px; border-radius: 8px; color: inherit; text-decoration: none; font-size: 13.5px; min-width: 0; }
.upd-fit { font: 600 12px var(--mono); color: var(--success-ink); font-variant-numeric: tabular-nums; flex: none; }
.upd-jt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.upd-empty { display: flex; gap: 12px; align-items: center; padding: 18px 14px; color: var(--success-ink); }
.upd-empty b { color: var(--text); }

/* ---------- Relevant jobs: one toolbar, one row of stage tabs ---------- */
.jtools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.jt-search { flex: 1 1 280px; position: relative; display: flex; align-items: center; min-width: 0; }
.jt-search svg { position: absolute; left: 13px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.jt-search input { padding-left: 40px; }
.jtools > select { flex: 0 0 auto; width: auto; min-width: 150px; }
.jt-fit { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); flex: 0 1 240px; font-size: 14px; color: var(--text-2); white-space: nowrap; }
.jt-fit b { color: var(--text); font-variant-numeric: tabular-nums; display: inline-block; min-width: 3.4ch; }
.jt-fit input[type=range] { min-height: 0; flex: 1; min-width: 80px; }
.jt-more { min-height: 44px; gap: 8px; }
.jt-more svg { width: 18px; height: 18px; }
.jt-more[aria-expanded="true"] { border-color: var(--text); }
.jt-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--primary); color: #fff; font: 600 12px var(--mono); display: inline-grid; place-items: center; }
.jt-extra { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.jt-extra select { width: auto; flex: 1 1 180px; max-width: 280px; }
.stabs { display: flex; gap: 4px; margin: 14px 0 12px; padding-bottom: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.stabs::-webkit-scrollbar { display: none; }
.stab { position: relative; display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--text-2); font: 600 14px var(--font); cursor: pointer; border-radius: 10px 10px 0 0; scroll-snap-align: start; transition: color 150ms ease, background-color 150ms ease; }
.stab i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.stab span { font: 600 12.5px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.stab::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -3px; height: 3px; border-radius: 3px 3px 0 0; background: var(--c); transform: scaleX(0); transition: transform 200ms var(--ease-out); }
.stab[aria-pressed="true"] { color: var(--text); }
.stab[aria-pressed="true"] span { color: var(--text); }
.stab[aria-pressed="true"]::after { transform: scaleX(1); }
.stab.is-new span { color: #fff; background: var(--primary); border-radius: 999px; padding: 1px 7px; }
@media (hover: hover) and (pointer: fine) { .stab:hover { color: var(--text); background: var(--surface-2); } }
@media (max-width: 760px) {
  .jtools > select { flex: 1 1 140px; }
  .jt-fit { flex: 1 1 100%; order: 3; }
  .jt-more { flex: 1 1 auto; }
  .stabs { margin-left: -16px; margin-right: -16px; padding-left: 12px; padding-right: 12px; }
}
.stab[data-s="new"] i { background: none; box-shadow: inset 0 0 0 2px var(--c); }
@media (max-width: 760px) { .stabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); } }

/* ---------- Applications: needs you, list, notes ---------- */
.seg button svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.appneeds ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; }
.appneeds li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.appneeds li:first-child { border-top: 0; }
.an-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; --c: var(--primary); color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.an-ic svg { width: 18px; height: 18px; }
.an-offer { --c: var(--l-offer); } .an-interview { --c: var(--l-int); } .an-follow_up { --c: var(--l-ref); } .an-saved { --c: var(--l-saved); } .an-next { --c: var(--l-apply); }
.an-tx { min-width: 0; } .an-tx a { color: inherit; text-decoration: none; } .an-tx a:hover b { text-decoration: underline; }
.alist { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.arow { display: grid; grid-template-columns: 10px 1fr auto; gap: 6px 14px; align-items: start; padding: 14px 16px; border-top: 1px solid var(--border); }
.arow:first-child { border-top: 0; }
.arow.is-open { background: color-mix(in srgb, var(--c) 4%, var(--surface)); }
.arow-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-top: 7px; }
.arow-main { min-width: 0; }
.arow-title { font-weight: 650; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.arow-title:hover { text-decoration: underline; }
.arow-co { font-size: 14px; color: var(--text-2); margin-top: 1px; }
.arow-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.arow-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.arow-flags .chip svg { width: 13px; height: 13px; vertical-align: -2px; }
.arow-acts { display: flex; gap: 6px; align-items: center; }
.arow-stage { width: auto; min-width: 150px; min-height: 38px; font-size: 14px; }
.arow-more svg { width: 16px; height: 16px; }
.arow-detail { grid-column: 2 / -1; display: grid; gap: 10px; margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--border); }
.arow-detail textarea { font-family: var(--font); font-size: 14px; min-height: 80px; }
.arow-next { display: grid; grid-template-columns: 1fr 180px; gap: 10px; }
.arow-detail .field > span { font-size: 13px; color: var(--text-2); font-weight: 600; }
.arow-detail .field { display: grid; gap: 4px; }
.arow-detail input[type=date] { font: 15px var(--font); color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; min-height: 44px; padding: 0 12px; width: 100%; }
@media (max-width: 760px) {
  .arow { grid-template-columns: 10px 1fr; }
  .arow-acts { grid-column: 2; }
  .arow-stage { flex: 1; min-width: 0; }
  .arow-detail { grid-column: 1 / -1; }
  .arow-next { grid-template-columns: 1fr; }
  .appneeds li { grid-template-columns: 34px 1fr; } .appneeds li > .btn { grid-column: 2; justify-self: start; }
}
.appneeds .an-more { margin-top: 6px; }

/* Usage insights: daily job run */
#jobrun td.num, #jobrun th.num { text-align: right; }
#jobrun .stat .value { font-size: 34px; }
#jobrun .stat .hint { line-height: 1.45; }
#jobrun .chead { flex-wrap: wrap; }
#jobrun .chead .chip { white-space: normal; }
/* queue: why skipped (one tap) */
.qwhy { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.qwhy .xs { flex-basis: 100%; }
.qwhy .chip { cursor: pointer; min-height: 32px; font: inherit; font-size: 13px; }
.qwhy .chip:hover { border-color: var(--primary); color: var(--primary-ink); }
/* applications: "any reply?" one tap */
.areply { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--warning) 9%, transparent); }
.areply .small { margin-right: 4px; font-weight: 600; }
.areply .btn, .areply-btns .btn { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.areply-btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
/* Fresh now: LinkedIn / Naukri on the newest posts */
.fresh h2 { display: flex; align-items: center; gap: 8px; }
.fresh h2 svg { width: 18px; height: 18px; color: var(--success-ink); }
.fresh-rows { display: grid; gap: 10px; }
.fresh-row { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 10px; align-items: center; }
.fresh-links { display: flex; flex-wrap: wrap; gap: 6px; }
.fresh-links .chip { text-decoration: none; min-height: 32px; color: var(--text); }
.fresh-links .chip small { font-size: 11px; color: var(--success-ink); font-weight: 650; margin-left: 2px; }
.fresh-links .chip:hover { border-color: var(--primary); color: var(--primary-ink); }
@media (max-width: 640px) { .fresh-row { grid-template-columns: 1fr; gap: 6px; } }
/* Profile coach */
.cklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cklist li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: start; }
.cklist .chip { justify-content: center; }
.skillchips { display: flex; flex-wrap: wrap; gap: 6px; }
.skillchips .chip small { color: var(--muted); font-size: 11px; }
.hl-list { display: grid; gap: 8px; margin: 10px 0; }
.hl { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.hl textarea { width: 100%; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); resize: vertical; }
.hl input { width: 18px; height: 18px; accent-color: var(--primary); }
.refresh-steps > li { margin-bottom: 14px; }
.switch { display: inline-flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.switch input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); }
.reflog { list-style: none; padding: 0; display: grid; gap: 6px; }
.summary-text { white-space: pre-wrap; line-height: 1.6; }
@media (max-width: 640px) { .cklist li { grid-template-columns: 1fr; gap: 4px; } .hl { grid-template-columns: auto 1fr; } .hl .xs { grid-column: 2; } }

.hl textarea { min-height: 52px; height: auto; }
#atime { width: auto; min-width: 110px; }

/* the rail, compact (Dec 2026): every page and the account footer fit a 900px-tall laptop screen */
.side { padding: 16px 12px; }
.brand { padding: 4px 10px 10px; }
.navsec { padding: 12px 12px 4px; }
.nav a { min-height: 36px; }
.side .foot { padding-top: 10px; gap: 6px; }
.side .foot .btn { min-height: 36px; }
.rail-site { color: var(--rail-mute); text-decoration: none; padding: 0 6px; display: inline-flex; gap: 6px; align-items: center; }
@media (hover: hover) and (pointer: fine) { .rail-site:hover { color: var(--rail-strong); } }

/* Profile coach → Notifications */
.ntf-rows { display: grid; gap: 14px; }
.ntf-times { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 28px; margin-top: -6px; }
.ntf-time { cursor: pointer; min-height: 34px; gap: 8px; font-family: var(--mono); }
.ntf-time input { width: 16px; height: 16px; accent-color: var(--primary); }
.ntf-time:has(input:disabled) { opacity: .5; cursor: default; }
.login-seg { justify-self: start; } .login-seg button { min-height: 38px; padding: 0 16px; }

/* back to top (portal and public site): appears after a screen and a half of scrolling */
.totop { position: fixed; right: 20px; bottom: 20px; z-index: 35; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer;
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), background-color 150ms ease; }
.totop.on { opacity: 1; transform: none; pointer-events: auto; }
.totop svg { width: 20px; height: 20px; }
.totop:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .totop:hover { background: var(--surface-2); } }
@media (max-width: 640px) { .totop { right: 14px; bottom: 14px; width: 44px; height: 44px; } }
.pub-theme { min-width: 40px; padding: 0 10px; }
.pub-theme svg { width: 19px; height: 19px; }

/* floating cards: things you can open rise a little under the pointer */
.job, .kcard, .arow, .pub-board, .pjob, .sc-merged { transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 150ms ease; }
.job { box-shadow: var(--shadow); }
@media (hover: hover) and (pointer: fine) {
  .job:hover, .kcard:hover, .pub-board:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
}
@media (prefers-reduced-motion: reduce) { .job:hover, .kcard:hover, .pub-board:hover { transform: none; } }

:root { --accent: var(--primary); --accent-ink: var(--primary-ink); }
/* where the accent shows: the brand ring, the current page in the menu, the website's highlight words and section headings */
.brand .logo, .pub-brand .logo { background: var(--accent) !important; }
.nav a[aria-current="page"] { background: color-mix(in srgb, var(--accent) 34%, transparent); }
.hl { color: var(--accent-ink); }
.pub-h2, .pub-final h2 { color: var(--accent-ink); }
.pub-trust .pub-h2 { color: var(--rail-strong); }


/* Dashboard → Time saved: the week's hours, the biggest helpers, and exactly how it's counted */
.tsaved { display: grid; grid-template-columns: auto 1fr auto; gap: 18px 32px; align-items: center; }
.ts-num { display: grid; gap: 2px; padding-right: 28px; border-right: 1px solid var(--border); }
.ts-num b { font: 700 40px/1 var(--mono); letter-spacing: -0.04em; color: var(--accent-ink); }
.ts-num span { font-weight: 650; }
.ts-num small { color: var(--muted); font-size: 11.5px; }
.ts-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ts-top li { display: flex; gap: 8px; align-items: baseline; color: var(--text-2); }
.ts-top li > .mono { color: var(--text); font-weight: 650; min-width: 3ch; text-align: right; }
.ts-top em { font-style: normal; margin-left: auto; color: var(--muted); font-size: 12.5px; padding-left: 12px; }
.ts-how summary { cursor: pointer; font-weight: 650; display: inline-flex; gap: 6px; align-items: center; list-style: none; color: var(--primary-ink); }
.ts-how summary::-webkit-details-marker { display: none; }
.ts-how[open] { grid-column: 1 / -1; }
.ts-how[open] summary { margin-bottom: 8px; }
.ts-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.ts-table th, .ts-table td { text-align: left; padding: 8px 10px; border-top: 1px solid var(--border); vertical-align: top; }
.ts-table th { font: 600 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-top: 0; }
.ts-table .num { text-align: right; white-space: nowrap; }
@media (max-width: 900px) { .tsaved { grid-template-columns: 1fr; } .ts-num { border-right: 0; padding-right: 0; } }
