/* Jobaaj Placement: consignment-tracking world on a clean product shell */
:root {
  --ground: #f2f4f1;
  --panel: #ffffff;
  --panel-2: #f7f8f6;
  --line: #e2e6e0;
  --line-2: #d1d7cf;
  --ink: #111916;
  --ink-2: #44504a;
  --ink-3: #66716b;
  --rail: #0e2b27;
  --rail-2: #163d37;
  --rail-3: #1f4c45;
  --rail-ink: #d5e6e0;
  --rail-dim: #8fb3a8;
  --brand: #14594d;
  --brand-hover: #0f4a40;
  --brand-soft: #e3f0ec;
  --saffron: #f2a93b;
  --saffron-soft: #fff3df;
  --saffron-ink: #8a5300;
  --ok: #157a3d; --ok-soft: #e5f4ea;
  --warn: #a8510a; --warn-soft: #fdf1df;
  --bad: #bf2f2c; --bad-soft: #fcebea;
  --info: #2d59c8; --info-soft: #e9effc;
  --muted-soft: #eef0ed;
  --r: 8px; --r-lg: 12px;
  --sh-1: 0 1px 2px rgba(17, 25, 22, .06), 0 1px 1px rgba(17, 25, 22, .03);
  --sh-2: 0 8px 24px -6px rgba(17, 25, 22, .16), 0 2px 6px rgba(17, 25, 22, .06);
  --sh-3: 0 24px 64px -12px rgba(14, 43, 39, .35), 0 4px 12px rgba(17, 25, 22, .08);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.5 var(--font); color: var(--ink); background: var(--ground); font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; }
::selection { background: color-mix(in srgb, var(--brand) 22%, transparent); color: var(--ink); }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; }
h1 { font-size: 22px; letter-spacing: -0.02em; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
p { margin: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.num { font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.i { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; background: var(--rail); color: var(--rail-ink); display: flex; flex-direction: column; padding: 16px 12px; gap: 4px; z-index: 30; }
.brandmark { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: #fff; text-decoration: none; }
.brandmark:hover { color: #fff; }
.brandmark .mark { width: 30px; height: 30px; border-radius: 8px; background: #fff; display: grid; place-items: center; color: var(--rail); font: 700 13px/1 var(--mono); letter-spacing: -0.04em; }
.brandmark b { display: block; font-size: 14px; font-weight: 600; line-height: 1.15; }
.brandmark small { display: block; color: var(--rail-dim); font-size: 11.5px; }
.nav-group { margin: 14px 8px 4px; font-size: 11px; font-weight: 500; color: var(--rail-dim); }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; color: var(--rail-ink); text-decoration: none; font-weight: 450; position: relative; transition: background .15s var(--ease), color .15s; }
.nav a:hover { background: var(--rail-2); color: #fff; }
.nav a[aria-current="page"] { background: var(--rail-3); color: #fff; }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #fff; }
.rail :focus-visible { outline-color: #fff; }
.nav a .count { margin-left: auto; font: 500 11.5px/1 var(--mono); padding: 3px 6px; border-radius: 10px; background: var(--rail-2); color: var(--rail-ink); }
.nav a .count.hot { background: #fff; color: var(--rail); }
.rail-foot { margin-top: auto; border-top: 1px solid var(--rail-2); padding-top: 12px; display: flex; align-items: center; gap: 10px; padding-left: 6px; }
.rail-foot .who { min-width: 0; flex: 1; }
.rail-foot .who a { color: #fff; text-decoration: none; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-foot .who small { color: var(--rail-dim); font-size: 11.5px; }
.rail-foot button { background: none; border: 0; color: var(--rail-dim); cursor: pointer; padding: 6px; border-radius: 6px; }
.rail-foot button:hover { color: #fff; background: var(--rail-2); }

.scrim { display: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .menu-btn { display: none; }
.searchbtn { flex: 1; min-width: 0; max-width: 440px; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border: 1px solid var(--line); background: var(--panel); border-radius: var(--r); color: var(--ink-3); cursor: text; font: inherit; text-align: left; box-shadow: var(--sh-1); }
.searchbtn:hover { border-color: var(--line-2); }
.searchbtn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.searchbtn kbd { margin-left: auto; }
kbd { font: 500 11px/1 var(--mono); padding: 3px 5px; border-radius: 4px; border: 1px solid var(--line-2); border-bottom-width: 2px; color: var(--ink-3); background: var(--panel-2); }
.topbar .spacer { flex: 1; }
.page { padding: 8px 28px 48px; max-width: 1480px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 12px 0 20px; flex-wrap: wrap; }
.page-head .sub { color: var(--ink-3); margin-top: 4px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.page-head .actions .select, .page-head .actions .input { width: auto; max-width: 240px; }
.crumbs { display: flex; gap: 6px; align-items: center; color: var(--ink-3); font-size: 13px; margin-bottom: 6px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ---------- Buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); font: 500 13.5px/1 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; box-shadow: var(--sh-1); transition: background .15s, border-color .15s, box-shadow .15s, transform .1s; }
.btn:hover { border-color: #b9c1b7; color: var(--ink); background: var(--panel-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(14, 43, 39, .3), inset 0 1px 0 rgba(255, 255, 255, .08); }
.btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn.ghost:hover { background: var(--muted-soft); color: var(--ink); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); border-color: #efc2c0; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 7px; }
.btn.xs { height: 26px; padding: 0 8px; font-size: 12.5px; border-radius: 6px; gap: 5px; }
.btn.icon { width: 36px; padding: 0; }
.btn.sm.icon { width: 30px; }
.btn.is-loading { pointer-events: none; color: transparent !important; position: relative; }
.btn.is-loading::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid currentColor; border-color: var(--ink-3) transparent var(--ink-3) var(--ink-3); border-radius: 50%; animation: spin .7s linear infinite; }
.btn.primary.is-loading::after { border-color: #fff transparent #fff #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--ink-3); }
.input, .select, .textarea { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); color: var(--ink); font: 14px/1.4 var(--font); transition: border-color .15s, box-shadow .15s; }
.textarea { height: auto; min-height: 76px; padding: 9px 10px; resize: vertical; }
.select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2366716b' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; }
.input:hover, .select:hover, .textarea:hover { border-color: #b9c1b7; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.input::placeholder, .textarea::placeholder { color: #87918b; }
.input.sm, .select.sm { height: 30px; font-size: 13px; border-radius: 7px; }
.check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 16px; }
.kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-entry td { padding: 6px 6px; }
.grid-entry td:first-child { padding-left: 14px; }
.grid-entry .input, .grid-entry .select { min-width: 110px; }
.span-2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }
.form-section { padding: 20px 22px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
.form-section:last-of-type { border-bottom: 0; }
.form-section h2 { font-size: 14px; }
.form-section .desc { color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.form-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--panel-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }

/* ---------- Surfaces ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.panel-head .count { font: 500 12px/1 var(--mono); color: var(--ink-3); background: var(--muted-soft); padding: 3px 7px; border-radius: 10px; }
.panel-body { padding: 16px 18px; }
.panel-foot { padding: 10px 18px; border-top: 1px solid var(--line); font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.cols { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.t th { text-align: left; font-weight: 500; font-size: 12px; color: var(--ink-3); padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--panel-2); white-space: nowrap; position: sticky; top: 0; z-index: 1; }
.t th:first-child { border-top-left-radius: var(--r-lg); }
.t th:last-child { border-top-right-radius: var(--r-lg); }
.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr { transition: background .12s; }
.t tbody tr:hover { background: #fafbf9; }
.t tbody tr.is-selected { background: var(--brand-soft); }
.t .r { text-align: right; }
.t .chk { width: 36px; padding-right: 0; }
.t a.rowlink { color: var(--ink); text-decoration: none; font-weight: 550; }
.t a.rowlink:hover { color: var(--brand); text-decoration: underline; }
.cell-person { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.cell-person .meta { min-width: 0; }
.cell-person .meta small { display: block; color: var(--ink-3); font-size: 12px; }

/* ---------- Identity bits ---------- */
.avatar { --h: 160; width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font: 600 11px/1 var(--font); color: hsl(var(--h) 45% 26%); background: hsl(var(--h) 45% 90%); flex: none; letter-spacing: 0; }
.avatar.lg { width: 48px; height: 48px; font-size: 16px; }
.avatar.sm { width: 22px; height: 22px; font-size: 9.5px; }
.waybill { font: 500 12px/1 var(--mono); color: var(--ink-2); letter-spacing: 0.01em; background: var(--panel-2); border: 1px solid var(--line); padding: 3px 6px; border-radius: 5px; white-space: nowrap; }
.line-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.line-chip::before { content: ""; width: 14px; height: 4px; border-radius: 4px; background: var(--c); }
.line-chip .trk { font: 500 10.5px/1 var(--mono); padding: 2px 4px; border-radius: 4px; background: var(--muted-soft); color: var(--ink-3); }
.line-chip .trk.nano { background: color-mix(in srgb, var(--c) 14%, white); color: color-mix(in srgb, var(--c) 80%, black); }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--muted-soft); color: var(--ink-2); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.brand { background: var(--brand-soft); color: var(--brand); }
.badge.saffron { background: var(--muted-soft); color: var(--ink-2); }
.flag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; padding: 2px 7px 2px 5px; border-radius: 5px; white-space: nowrap; }
.flag .i { width: 13px; height: 13px; }
.flag.delayed { background: var(--warn-soft); color: var(--warn); }
.flag.risk { background: var(--bad-soft); color: var(--bad); }

/* ---------- Signature: tracking strip ---------- */
.track { --n: 6; display: grid; grid-template-columns: repeat(var(--n), 1fr); align-items: center; width: 150px; height: 16px; position: relative; }
.track::before { content: ""; position: absolute; left: 5px; right: 5px; top: 50%; height: 2px; margin-top: -1px; background: var(--line-2); border-radius: 2px; }
.track .fill { position: absolute; left: 5px; top: 50%; height: 2px; margin-top: -1px; background: var(--c, var(--brand)); border-radius: 2px; width: calc((100% - 10px) * var(--p)); }
.track i { position: relative; justify-self: center; width: 8px; height: 8px; border-radius: 50%; background: var(--panel); border: 2px solid var(--line-2); z-index: 1; }
.track i:first-of-type { justify-self: start; margin-left: 1px; }
.track i:last-of-type { justify-self: end; margin-right: 1px; }
.track i.done { background: var(--c, var(--brand)); border-color: var(--c, var(--brand)); }
.track i.now { width: 12px; height: 12px; background: var(--saffron); border: 2px solid var(--panel); box-shadow: 0 0 0 1.5px var(--saffron), 0 0 0 5px color-mix(in srgb, var(--saffron) 25%, transparent); }
.track.placed i.now { background: var(--ok); box-shadow: 0 0 0 1.5px var(--ok); }
.track.late i.now { box-shadow: 0 0 0 1.5px var(--saffron), 0 0 0 5px color-mix(in srgb, var(--warn) 45%, transparent); }
.track.risk i.now { box-shadow: 0 0 0 1.5px var(--saffron), 0 0 0 5px color-mix(in srgb, var(--bad) 50%, transparent); }
.track.off::before { background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 7px); }
.track.off i { opacity: .5; }
.track-cell { display: flex; flex-direction: column; gap: 5px; }
.track-cell small { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.track-cell small b { color: var(--ink); font-weight: 550; }

/* Big tracking strip on the student page */
.journey { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative; padding: 22px 18px 18px; gap: 0; }
.journey::before { content: ""; position: absolute; left: calc(18px + (100% - 36px) / 12); right: calc(18px + (100% - 36px) / 12); top: 33px; height: 3px; background: var(--line); border-radius: 3px; }
.journey .rail-fill { position: absolute; left: calc(18px + (100% - 36px) / 12); top: 33px; height: 3px; border-radius: 3px; background: var(--c); width: calc((100% - 36px) * 5 / 6 * var(--p)); }
.stop { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 4px; }
.stop form { display: contents; }
.stop .node { width: 25px; height: 25px; border-radius: 50%; background: var(--panel); border: 2px solid var(--line-2); display: grid; place-items: center; color: #fff; z-index: 1; cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s; padding: 0; }
.stop .node:hover { transform: scale(1.12); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 15%, transparent); }
.stop .node .i { width: 13px; height: 13px; stroke-width: 2.5; }
.stop.done .node { background: var(--c); border-color: var(--c); }
.stop.now .node { background: var(--saffron); border-color: var(--panel); box-shadow: 0 0 0 2px var(--saffron), 0 0 0 7px color-mix(in srgb, var(--saffron) 22%, transparent); }
.journey.late .stop.now .node { box-shadow: 0 0 0 2px var(--saffron), 0 0 0 7px color-mix(in srgb, var(--warn) 40%, transparent); }
.journey.risk .stop.now .node { box-shadow: 0 0 0 2px var(--saffron), 0 0 0 7px color-mix(in srgb, var(--bad) 45%, transparent); }
.stop.now.placed .node { background: var(--ok); box-shadow: 0 0 0 2px var(--ok), 0 0 0 7px color-mix(in srgb, var(--ok) 18%, transparent); }
.stop b { font-size: 13px; font-weight: 600; }
.stop .hint { font-size: 12px; color: var(--ink-3); line-height: 1.35; max-width: 160px; }
.stop.now b { color: var(--saffron-ink); }
.stop .when { font: 500 11.5px/1 var(--mono); color: var(--ink-3); }

/* ---------- KPI strip ---------- */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.kpi { padding: 16px 18px; border-right: 1px solid var(--line); min-width: 0; text-decoration: none; color: inherit; display: block; transition: background .15s; }
a.kpi:hover { background: var(--panel-2); color: inherit; }
.kpi:last-child { border-right: 0; }
.kpi .k { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.kpi .v { font: 600 26px/1.1 var(--font); letter-spacing: -0.03em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-left: 2px; }
.kpi .d { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.kpi.warn .v { color: var(--warn); }
.kpi.bad .v { color: var(--bad); }

/* ---------- Metro line map ---------- */
.metro { padding: 6px 18px 18px; }
.metro-head, .metro-line { display: grid; grid-template-columns: 190px repeat(6, minmax(0, 1fr)) 64px; align-items: center; }
.metro-head { font-size: 11.5px; color: var(--ink-3); padding: 10px 0 4px; }
.metro-head span { text-align: center; }
.metro-head span:first-child, .metro-head span:last-child { text-align: left; }
.metro-head span:last-child { text-align: right; }
.metro-line { height: 46px; position: relative; text-decoration: none; color: inherit; }
.metro-line .name { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; min-width: 0; padding-right: 10px; }
.metro-line .name a { color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metro-line .name a:hover { color: var(--brand); }
.metro-line .name .trk { font: 500 10px/1 var(--mono); color: var(--ink-3); background: var(--muted-soft); padding: 2px 4px; border-radius: 4px; flex: none; }
.metro-line .name .code { font: 500 11px/1 var(--mono); color: #fff; background: var(--c); padding: 3px 5px; border-radius: 4px; flex: none; }
.metro-line .track-bg { position: absolute; left: calc(190px + (100% - 254px) / 12); right: calc(64px + (100% - 254px) / 12); top: 50%; height: 5px; margin-top: -2.5px; background: var(--c); border-radius: 5px; opacity: .9; }
.metro-line.empty .track-bg { opacity: .18; }
.station { position: relative; z-index: 1; justify-self: center; display: grid; place-items: center; min-width: 14px; height: 14px; border-radius: 10px; background: var(--panel); border: 2.5px solid var(--c); text-decoration: none; transition: transform .15s var(--ease), box-shadow .15s; }
.station.has { min-width: 30px; height: 24px; padding: 0 7px; font: 600 12px/1 var(--mono); color: var(--ink); border-width: 2.5px; }
.station.hot { background: var(--c); color: #fff; }
.station:hover { transform: scale(1.12); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 18%, transparent); color: var(--ink); }
.station.hot:hover { color: #fff; }
.station.interchange { border-color: var(--ok); }
.station.interchange.has { background: var(--ok-soft); color: var(--ok); }
.metro-line .total { text-align: right; font: 500 13px/1 var(--mono); color: var(--ink-2); }
.metro-line:not(:last-child)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; border-bottom: 1px dashed var(--line); }
.metro-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); padding: 0 18px 14px; }
.metro-legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Funnel ---------- */
.funnel { display: flex; flex-direction: column; gap: 8px; }
.funnel-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 13px; }
.funnel-row .bar { height: 20px; border-radius: 4px; background: var(--muted-soft); overflow: hidden; }
.funnel-row .bar i { display: block; height: 100%; background: var(--brand); border-radius: 4px; min-width: 2px; }
.funnel-row.win .bar i { background: var(--ok); }
.funnel-row .n { text-align: right; font: 500 13px/1 var(--mono); }

/* ---------- Lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; gap: 12px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 550; color: var(--ink); text-decoration: none; }
a.title:hover { color: var(--brand); text-decoration: underline; }
.list .sub { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .when { font-size: 12.5px; white-space: nowrap; }
.when.overdue { color: var(--bad); font-weight: 550; }
.when.today { color: var(--info); font-weight: 550; }
.done-btn { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--panel); display: grid; place-items: center; cursor: pointer; color: transparent; flex: none; transition: all .15s; padding: 0; }
.done-btn:hover { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }
.done-btn .i { width: 12px; height: 12px; stroke-width: 3; }
li.is-done { opacity: .45; }
li.is-done .title { text-decoration: line-through; }
.time-chip { font: 600 12.5px/1 var(--mono); padding: 6px 8px; background: var(--info-soft); color: var(--info); border-radius: 6px; white-space: nowrap; text-align: center; min-width: 64px; }
.time-chip small { display: block; font: 500 10.5px/1.2 var(--font); margin-top: 3px; }

/* ---------- Empty states ---------- */
.empty { padding: 36px 24px; text-align: center; color: var(--ink-3); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty .i { width: 28px; height: 28px; color: var(--line-2); stroke-width: 1.5; }
.empty b { color: var(--ink); font-weight: 600; }
.empty p { max-width: 380px; font-size: 13px; }
.empty .btn { margin-top: 6px; }

/* ---------- Filters bar ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.filters .input, .filters .select { width: auto; max-width: 240px; }
.filters .grow { flex: 1; min-width: 200px; max-width: 340px; }
.seg { display: inline-flex; background: var(--muted-soft); border-radius: 8px; padding: 3px; gap: 2px; }
.seg a, .seg button { border: 0; background: none; padding: 5px 11px; border-radius: 6px; font: 500 13px/1.2 var(--font); color: var(--ink-2); text-decoration: none; cursor: pointer; white-space: nowrap; }
.seg a:hover, .seg button:hover { color: var(--ink); }
.seg a[aria-current="true"], .seg button[aria-current="true"] { background: var(--panel); color: var(--ink); box-shadow: var(--sh-1); }
.bulkbar { position: sticky; bottom: 16px; margin: 12px auto 0; width: fit-content; display: none; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; border-radius: 12px; background: var(--rail); color: #fff; box-shadow: var(--sh-3); z-index: 15; }
.bulkbar.on { display: flex; animation: rise .2s var(--ease); }
.bulkbar .select { height: 32px; background-color: var(--rail-2); color: #fff; border-color: var(--rail-3); }
.bulkbar .btn { height: 32px; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 14px; overflow-x: auto; }
.tabs a, .tabs button { border: 0; background: none; padding: 12px 10px; font: 500 13.5px/1 var(--font); color: var(--ink-3); cursor: pointer; text-decoration: none; position: relative; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs [aria-selected="true"] { color: var(--ink); }
.tabs [aria-selected="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; background: var(--brand); border-radius: 2px; }
.tabs .n { font: 500 11px/1 var(--mono); background: var(--muted-soft); padding: 3px 5px; border-radius: 8px; color: var(--ink-3); }
[role="tabpanel"][hidden] { display: none; }

/* ---------- Student page ---------- */
.profile-head { display: flex; gap: 16px; align-items: flex-start; padding: 18px; }
.profile-head .grow { flex: 1; min-width: 0; }
.profile-head h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.facts span { display: inline-flex; align-items: center; gap: 6px; }
.facts .i { color: var(--ink-3); width: 14px; height: 14px; }
.facts a { color: var(--ink-2); }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.dl { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 12px; font-size: 13px; margin: 0; }
.dl dt { color: var(--ink-3); }
.dl dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.checklist { display: flex; flex-direction: column; }
.checklist label { display: flex; align-items: center; gap: 10px; padding: 9px 18px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13.5px; }
.checklist label:hover { background: var(--panel-2); }
.checklist input { width: 16px; height: 16px; accent-color: var(--brand); margin: 0; }
.checklist input:checked + span { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-2); }
.mock-counter { display: flex; align-items: center; justify-content: space-between; padding: 9px 18px; font-size: 13.5px; }
.mock-counter .ctrl { display: flex; align-items: center; gap: 8px; }
.mock-counter b { font: 600 14px/1 var(--mono); min-width: 18px; text-align: center; }

/* Composer */
.composer { padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.composer .types { display: flex; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; }
.composer .types label { cursor: pointer; }
.composer .types input { position: absolute; opacity: 0; pointer-events: none; }
.composer .types span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--ink-2); border: 1px solid transparent; }
.composer .types input:checked + span { background: var(--panel); border-color: var(--line-2); color: var(--ink); box-shadow: var(--sh-1); }
.composer .types input:focus-visible + span { outline: 2px solid var(--brand); }
.composer .textarea { min-height: 64px; background: var(--panel); }
.composer .foot { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: 10px; flex-wrap: wrap; }
.composer .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chipbtn { border: 1px dashed var(--line-2); background: transparent; border-radius: 14px; padding: 3px 10px; font: 500 12px/1.4 var(--font); color: var(--ink-2); cursor: pointer; }
.chipbtn:hover { border-style: solid; color: var(--ink); background: var(--panel); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 8px 18px 16px; }
.timeline li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 9px 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 13.5px; top: 36px; bottom: -6px; width: 1px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--muted-soft); color: var(--ink-2); }
.timeline .ico .i { width: 14px; height: 14px; }
.timeline .ico.call, .timeline .ico.whatsapp, .timeline .ico.meeting, .timeline .ico.email { background: var(--brand-soft); color: var(--brand); }
.timeline .ico.stage { background: var(--ok-soft); color: var(--ok); }
.timeline .ico.interview { background: var(--info-soft); color: var(--info); }
.timeline .body { font-size: 13.5px; white-space: pre-line; overflow-wrap: anywhere; }
.timeline .meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* Application rows */
.app-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); align-items: center; }
.app-row:last-child { border-bottom: 0; }
.app-row .co { font-weight: 600; }
.app-row .meta { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.app-row .side { display: flex; gap: 8px; align-items: center; }
.app-row.closed { opacity: .62; }
.stage-select { height: 30px; font-size: 13px; padding-left: 10px; border-radius: 15px; width: auto; font-weight: 500; }
.stage-select.s-offer, .stage-select.s-joined { background-color: var(--ok-soft); border-color: #bfe0c9; color: var(--ok); }
.stage-select.s-interview, .stage-select.s-hr_round { background-color: var(--info-soft); border-color: #c7d5f5; color: var(--info); }
.stage-select.s-rejected, .stage-select.s-withdrawn { background-color: var(--muted-soft); color: var(--ink-3); }

/* ---------- Kanban ---------- */
.dropbar { position: sticky; top: 61px; z-index: 5; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 8px 10px; margin-bottom: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); font-size: 12.5px; color: var(--ink-3); }
.dropbar .dz { border: 1.5px dashed var(--line-2); border-radius: 8px; padding: 5px 10px; color: var(--ink-2); font-weight: 500; transition: background .15s, border-color .15s; }
.dropbar .dz.drop { background: var(--brand-soft); border-color: var(--brand); border-style: solid; color: var(--brand); }
.dropbar .dz.win { border-color: #bfe0c9; color: var(--ok); }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(224px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 10px; height: calc(100vh - 210px); min-height: 420px; align-items: stretch; }
.col { background: #e9ece7; border-radius: var(--r-lg); padding: 0 8px 8px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 0; transition: background .15s, box-shadow .15s; }
.col.drop { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }
.col-head { position: sticky; top: 0; z-index: 2; background: inherit; display: flex; align-items: center; justify-content: space-between; padding: 10px 6px 4px; font-size: 13px; font-weight: 600; }
.col-head .n { font: 500 12px/1 var(--mono); color: var(--ink-3); }
.col-head .bar { width: 8px; height: 8px; border-radius: 2px; background: var(--ink-3); margin-right: 6px; display: inline-block; }
.kcard { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; box-shadow: var(--sh-1); cursor: grab; position: relative; transition: box-shadow .15s, transform .15s, opacity .15s; }
.kcard::before { content: ""; position: absolute; left: 12px; right: 12px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: var(--c); }
.kcard:hover { box-shadow: var(--sh-2); }
.kcard.dragging { opacity: .4; transform: rotate(1.5deg); }
.kcard .co { font-weight: 600; font-size: 13.5px; }
.kcard .role { font-size: 12.5px; color: var(--ink-2); margin-top: 1px; }
.kcard .who { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; }
.kcard .who a { color: var(--ink); text-decoration: none; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kcard .who a:hover { text-decoration: underline; }
.kcard .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; color: var(--ink-3); gap: 6px; }
.kcard .foot > * { white-space: nowrap; }
.kcard .foot { flex-wrap: wrap; }
.kcard .foot .soon { color: var(--info); font-weight: 550; }
.kcard .foot .stuck { color: var(--warn); }
.col .empty-col { border: 1.5px dashed #d3d8d1; border-radius: 10px; padding: 18px 8px; text-align: center; font-size: 12.5px; color: var(--ink-3); }

/* ---------- Offers board ---------- */
.offer-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.offer { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; position: relative; box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.offer:hover { transform: translateY(-2px); box-shadow: var(--sh-2); color: inherit; }
.offer .person { display: flex; gap: 10px; align-items: center; }
.offer .name { font-weight: 600; font-size: 15px; }
.offer .co { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.2; }
.offer .role { color: var(--ink-2); font-size: 13px; }
.offer .ctc { font: 600 22px/1 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; color: var(--ok); }
.offer .ctc small { font: 500 12px/1 var(--font); color: var(--ink-3); letter-spacing: 0; margin-left: 4px; }
.offer .foot { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-3); padding-top: 10px; border-top: 1px dashed var(--line); margin-top: auto; }
.offer-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.offer-stats div b { display: block; font: 600 24px/1.1 var(--font); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.offer-stats div span { font-size: 12.5px; color: var(--ink-3); }

/* ---------- Dialog ---------- */
dialog.dlg { border: 0; padding: 0; border-radius: 14px; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: var(--sh-3); color: var(--ink); background: var(--panel); }
dialog.dlg.wide { width: min(720px, calc(100vw - 32px)); }
dialog.dlg::backdrop { background: rgba(14, 43, 39, .38); backdrop-filter: blur(2px); }
dialog.dlg[open] { animation: pop .18s var(--ease); }
@keyframes pop { from { transform: translateY(6px) scale(.985); opacity: 0; } }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dlg-head h2 { font-size: 15.5px; }
.dlg-body { padding: 18px 20px; display: grid; gap: 14px; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--panel-2); border-radius: 0 0 14px 14px; }

/* Command palette */
.palette { width: min(620px, calc(100vw - 32px)); margin-top: 12vh; }
.palette .pal-input { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.palette .pal-input input { border: 0; outline: 0; font: 16px var(--font); flex: 1; background: transparent; color: var(--ink); }
.palette ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow: auto; }
.palette li a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.palette li a .sw { width: 4px; align-self: stretch; border-radius: 4px; background: var(--c, var(--line-2)); }
.palette li a small { display: block; color: var(--ink-3); font-size: 12px; }
.palette li a .type { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }
.palette li a[aria-selected="true"] { background: var(--brand-soft); }
.palette .pal-hint { padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); display: flex; gap: 14px; }

/* Flash toast */
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; display: flex; gap: 10px; align-items: center; padding: 12px 14px 12px 16px; border-radius: 10px; background: var(--rail); color: #fff; box-shadow: var(--sh-3); font-size: 13.5px; max-width: 440px; animation: rise .25s var(--ease); }
.toast.err { background: #5b1716; }
.toast .i { color: #8fe0bf; }
.toast.err .i { color: #ffb4b0; }
.toast button { background: none; border: 0; color: var(--rail-dim); cursor: pointer; padding: 2px; margin-left: 6px; }
.toast.hide { opacity: 0; transform: translateY(8px); transition: all .3s var(--ease); }

/* Menus */
details.menu { position: relative; }
details.menu > summary { list-style: none; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu .menu-pop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--sh-2); padding: 5px; z-index: 40; }
details.menu .menu-pop a, details.menu .menu-pop button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font: 450 13.5px/1.2 var(--font); background: none; border: 0; cursor: pointer; text-align: left; }
details.menu .menu-pop a:hover, details.menu .menu-pop button:hover { background: var(--panel-2); }
details.menu .menu-pop .i { color: var(--ink-3); }
details.menu .menu-pop hr { border: 0; border-top: 1px solid var(--line); margin: 5px 0; }

/* Login */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--panel); }
.login-art { background: var(--rail); color: var(--rail-ink); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art h1 { color: #fff; font-size: 34px; line-height: 1.12; letter-spacing: -0.03em; max-width: 440px; margin-top: 18px; }
.login-art p { color: var(--rail-dim); max-width: 400px; margin-top: 14px; font-size: 15px; }
.login-map { margin: 40px 0; display: flex; flex-direction: column; gap: 22px; }
.login-map .ln { display: grid; grid-template-columns: 34px repeat(6, 1fr); align-items: center; position: relative; }
.login-map .ln::before { content: ""; position: absolute; left: 34px; right: 0; top: 50%; height: 4px; margin-top: -2px; background: var(--c); border-radius: 4px; opacity: .85; }
.login-map .ln b { font: 600 11px/1 var(--mono); color: var(--c); }
.login-map .ln i { justify-self: center; width: 12px; height: 12px; border-radius: 50%; background: var(--rail); border: 3px solid var(--c); z-index: 1; }
.login-map .ln i.now { background: var(--saffron); border-color: var(--saffron); box-shadow: 0 0 0 5px color-mix(in srgb, var(--saffron) 25%, transparent); }
.login-map .stations { display: grid; grid-template-columns: 34px repeat(6, 1fr); font-size: 11px; color: var(--rail-dim); }
.login-map .stations span { text-align: center; }
.login-form { display: grid; place-items: center; padding: 40px 24px; }
.login-form form { width: min(360px, 100%); display: grid; gap: 16px; }
.login-form h2 { font-size: 22px; letter-spacing: -0.02em; }
.login-form .err { background: var(--bad-soft); color: var(--bad); padding: 10px 12px; border-radius: 8px; font-size: 13px; }
.login-form .btn { height: 42px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi:nth-child(3) { border-right: 0; }
  .kpi:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { position: fixed; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .25s var(--ease); visibility: hidden; }
  .rail.open { transform: none; visibility: visible; box-shadow: var(--sh-3); }
  .scrim { position: fixed; inset: 0; background: rgba(14, 43, 39, .4); z-index: 25; }
  .scrim.on { display: block; }
  .topbar { padding: 10px 16px; }
  .topbar .menu-btn { display: inline-flex; }
  .page { padding: 4px 16px 40px; }
  .form-section { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .metro-head, .metro-line { grid-template-columns: 120px repeat(6, minmax(0, 1fr)) 34px; }
  .metro-line .track-bg { left: calc(120px + (100% - 154px) / 12); right: calc(34px + (100% - 154px) / 12); }
  .metro-line .name a, .metro-line .name .trk { display: none; }
  .metro-head span:first-child { visibility: hidden; }
  .journey { grid-template-columns: repeat(6, minmax(96px, 1fr)); overflow-x: auto; }
  .journey::before, .journey .rail-fill { display: none; }
  .stop .hint { display: none; }
  .stop b { font-size: 12px; }
  .login { grid-template-columns: minmax(0, 1fr); }
  .login-art { padding: 28px 24px; }
  .login-art h1 { font-size: 26px; }
  .login-map { display: none; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-2 { grid-column: auto; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .kpi:nth-child(2n) { border-right: 0; }
  .kpi .v { font-size: 22px; }
  .searchbtn kbd { display: none; }
  .hide-sm { display: none !important; }
  .metro-head, .metro-line { grid-template-columns: 52px repeat(6, minmax(0, 1fr)) 28px; }
  .metro-line .track-bg { left: calc(52px + (100% - 80px) / 12); right: calc(28px + (100% - 80px) / 12); }
  .station.has { min-width: 24px; padding: 0 4px; font-size: 11px; height: 20px; }
  .metro-head { font-size: 10px; }
  .app-row { grid-template-columns: minmax(0, 1fr); }
  .profile-head { flex-wrap: wrap; }
  .profile-head .grow { flex-basis: calc(100% - 64px); }
  .page-head .actions { width: 100%; min-width: 0; }
  .page-head .actions .select, .page-head .actions .input { min-width: 0; width: auto; }
  .t.stack-sm thead { display: none; }
  .t.stack-sm tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .t.stack-sm tbody tr:last-child { border-bottom: 0; }
  .t.stack-sm td { display: block; padding: 0; border: 0; }
  .t.stack-sm td.grow { flex: 1 1 0; min-width: 0; }
  .t.stack-sm td.full { flex-basis: 100%; order: 2; }
  .t.stack-sm .cell-person { min-width: 0; }
  .board { height: auto; grid-auto-columns: 82vw; }
  .col { max-height: 70vh; }
  .profile-head .quick { flex-basis: 100%; }
  .profile-head h1 { font-size: 19px; }
  .filters .input, .filters .select { max-width: 100%; flex: 1 1 150px; }
  .page-head .actions .select { max-width: 100%; flex: 1 1 150px; }
  .toast { left: 16px; right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Placement window */
fieldset.bare { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.bare:disabled .btn, fieldset.bare:disabled .done-btn, fieldset.bare:disabled .stop .node { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
fieldset.bare:disabled .select, fieldset.bare:disabled .input, fieldset.bare:disabled .checklist label { cursor: not-allowed; }
.closed-banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; margin: 0 0 16px; border-radius: var(--r-lg); background: var(--bad-soft); color: #7a1f1d; border: 1px solid #f2c9c7; font-size: 13.5px; }
.closed-banner .i { color: var(--bad); margin-top: 2px; }
.flag.closed { background: var(--muted-soft); color: var(--ink-2); }
.window-panel.is-closed { border-color: #f2c9c7; }
.window-panel.is-ending { border-color: #f0d3a8; }
.window-dates { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); }
.window-dates b { color: var(--ink); font-weight: 550; }
.window-bar { height: 6px; border-radius: 6px; background: var(--muted-soft); margin-top: 8px; overflow: hidden; }
.window-bar i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.is-ending .window-bar i { background: var(--warn); }
.is-closed .window-bar i { background: var(--bad); }
.window-form .seg label { cursor: pointer; }
.window-form .seg span { display: inline-block; padding: 5px 11px; border-radius: 6px; font: 500 13px/1.2 var(--font); color: var(--ink-2); }
.window-form .seg input:checked + span { background: var(--panel); color: var(--ink); box-shadow: var(--sh-1); }
.window-form .seg input:focus-visible + span { outline: 2px solid var(--brand); }
.window-log { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 12.5px; }
.window-log b { font-weight: 600; }
