/* Ink + electric lime. Lime is only ever a fill behind ink text (or text on the dark surfaces), never lime text on light. */
:root {
  --ink: #0B1220;
  --lime: #C6F432;
  --bg: #F6F6F3;
  --surface: #FFFFFF;
  --text: #0B1220;
  --mute: #5B6270;          /* 5.7:1 on --bg */
  --line: #E3E3DD;
  --line-2: #D3D3CB;
  --tint: rgba(11, 18, 32, 0.05);
  --lime-soft: #EDFBC2;
  --bad: #B93A12;
  --focus: #0B1220;
  --header: #0B1220;
  --radius: 14px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0F17;
    --surface: #121826;
    --text: #EEF1F5;
    --mute: #98A1B0;
    --line: #222A39;
    --line-2: #2E3748;
    --tint: rgba(238, 241, 245, 0.06);
    --lime-soft: rgba(198, 244, 50, 0.12);
    --bad: #FF8A5B;
    --focus: #C6F432;
    --header: #070A10;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 var(--font); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: -0.01em; }
.num { font-variant-numeric: tabular-nums; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 10; background: var(--header); color: #EEF1F5; padding-top: env(safe-area-inset-top); }
.top-in { max-width: 1120px; margin: 0 auto; padding: 14px 20px 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.brand b { color: var(--lime); font-weight: 800; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(198, 244, 50, 0.16); }
.window { color: #98A1B0; white-space: nowrap; }
.tabs { max-width: 1120px; margin: 0 auto; padding: 0 14px 12px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  font: 500 14px/1 var(--font); color: #AEB5C2; background: transparent; border: 0; border-radius: 999px;
  padding: 10px 14px; min-height: 40px; cursor: pointer; white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}
.tab[aria-current="page"] { background: var(--lime); color: var(--ink); font-weight: 650; }
.tab .count { font-family: var(--mono); font-size: 11px; opacity: 0.7; margin-left: 6px; }
@media (hover: hover) and (pointer: fine) { .tab:not([aria-current="page"]):hover { color: #fff; background: rgba(255, 255, 255, 0.07); } }

main { max-width: 1120px; margin: 0 auto; padding: 22px 20px calc(48px + env(safe-area-inset-bottom)); }
.banner { border: 1px solid var(--line); background: var(--surface); border-left: 3px solid var(--lime); padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; color: var(--mute); font-size: 14px; }

/* ---------- layout ---------- */
.grid { display: grid; gap: 14px; }
.g3 { grid-template-columns: 1.35fr 1fr 1fr; }
.g2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .g3, .g2 { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.eyebrow { font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); margin: 0 0 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.h { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.mute { color: var(--mute); }
.small { font-size: 13px; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* hero: applied today */
.hero { background: var(--ink); color: #EEF1F5; border-color: var(--ink); position: relative; overflow: hidden; }
.hero .eyebrow { color: #98A1B0; }
.big { font: 800 64px/0.9 var(--font); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.big small { font-size: 24px; font-weight: 600; color: #6F7888; letter-spacing: -0.01em; margin-left: 4px; }
.segs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 18px 0 10px; }
.seg { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.seg i { display: block; height: 100%; background: var(--lime); transform-origin: left; transform: scaleX(0); transition: transform 420ms var(--ease-out); }
.seg.on i { transform: scaleX(1); }
.hero-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; color: #AEB5C2; }
.hero-foot b { color: var(--lime); font-weight: 650; }
.stat { font: 750 40px/1 var(--font); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-sub { margin-top: 8px; font-size: 13px; color: var(--mute); }
.pipe { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- lists ---------- */
.list { display: flex; flex-direction: column; gap: 8px; }
.item {
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  padding: 12px 12px 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  cursor: pointer; text-align: left; width: 100%; color: inherit; font: inherit;
  transition: border-color 160ms ease, background-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) { .item:hover { border-color: var(--line-2); background: var(--tint); } }
.item .t { min-width: 0; flex: 1; }
.item .t b { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; }
.item .t span { display: block; font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .side { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
.fit { font: 600 11px/1 var(--mono); color: var(--mute); }
.due { font: 600 12px/1.2 var(--mono); white-space: nowrap; }
.due.late { color: var(--bad); }
.empty { padding: 28px 18px; text-align: center; color: var(--mute); border: 1px dashed var(--line-2); border-radius: 12px; font-size: 14px; }

/* ---------- status chips (two colours, eight states) ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font: 600 12px/1.3 var(--font); white-space: nowrap; border: 1px solid transparent; }
.chip .n { font-family: var(--mono); font-size: 11px; opacity: 0.75; }
.s-scanned { border-color: var(--line-2); color: var(--mute); }
.s-shortlisted { background: var(--tint); color: var(--text); border-color: var(--line-2); }
.s-applied { background: var(--lime-soft); color: var(--text); border-color: rgba(140, 180, 20, 0.45); }
.s-interview { background: var(--ink); color: var(--lime); }
.s-offer { background: var(--lime); color: var(--ink); }
.s-accepted { background: var(--lime); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.s-rejected, .s-skipped { color: var(--mute); text-decoration: line-through; border-color: var(--line); }
@media (prefers-color-scheme: dark) { .s-interview { background: #EEF1F5; color: var(--ink); } .s-accepted { box-shadow: inset 0 0 0 2px #EEF1F5; } }

/* ---------- buttons ---------- */
.btn {
  -webkit-user-select: none; user-select: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0;
  font: 600 14px/1 var(--font); white-space: nowrap; min-height: 40px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn-sm { min-height: 34px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
.btn-danger { color: var(--bad); }
.btn-ghost { background: transparent; border-color: transparent; }
@media (prefers-color-scheme: dark) { .btn-ink { background: #EEF1F5; color: var(--ink); border-color: #EEF1F5; } }
@media (hover: hover) and (pointer: fine) {
  .btn:not(:disabled):hover { border-color: var(--mute); }
  .btn-lime:not(:disabled):hover { background: #D4FA55; border-color: #D4FA55; }
  .btn-ink:not(:disabled):hover { opacity: 0.9; }
}

/* ---------- toolbar / chips filter ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.search { position: relative; flex: 1 1 240px; max-width: 360px; }
.search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--mute); pointer-events: none; }
.search input { padding-left: 36px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.fbtn { font: 500 13px/1 var(--font); padding: 0 12px; min-height: 34px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--mute); cursor: pointer; white-space: nowrap; transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out); }
.fbtn:active { transform: scale(0.97); }
.fbtn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (prefers-color-scheme: dark) { .fbtn[aria-pressed="true"] { background: var(--lime); color: var(--ink); border-color: var(--lime); } }
.spacer { flex: 1; }

/* ---------- inputs ---------- */
input, select, textarea {
  font: 15px/1.4 var(--font); color: var(--text); background: var(--surface); width: 100%;
  border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 11px; min-height: 42px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px var(--lime-soft); }
textarea { min-height: 84px; resize: vertical; }
label.f { display: block; font-size: 13px; font-weight: 550; color: var(--mute); }
label.f > input, label.f > select, label.f > textarea { margin-top: 5px; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 12px; }
.row.one { grid-template-columns: 1fr; }

/* ---------- table ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); background: var(--tint); }
tr.click { cursor: pointer; }
@media (hover: hover) and (pointer: fine) { tr.click:hover td { background: var(--tint); } }
td b { font-weight: 650; letter-spacing: -0.01em; }
.post { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--mute); }
.post svg { width: 12px; height: 12px; }

/* ---------- timeline ---------- */
.tl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; overflow-x: auto; }
.tlg { display: grid; grid-template-columns: 210px repeat(var(--m), minmax(60px, 1fr)); min-width: 860px; }
.mh { font: 600 11px/1 var(--mono); color: var(--mute); text-align: center; padding: 6px 0 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.mh.free { color: var(--text); }
.lab { font-size: 13px; padding: 8px 10px 8px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-top: 1px solid var(--line); cursor: pointer; background: none; border-left: 0; border-right: 0; border-bottom: 0; color: inherit; text-align: left; font-family: inherit; }
.lab b { font-weight: 650; }
.cell { border-left: 1px solid var(--line); border-top: 1px solid var(--line); position: relative; min-height: 38px; }
.cell.free { background: var(--lime-soft); }
.cell.now::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--d, 50%); width: 2px; background: var(--bad); opacity: 0.6; }
.tbar {
  position: absolute; top: 8px; height: 22px; left: 3px; border-radius: 7px; font: 600 11px/22px var(--font); padding: 0 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; z-index: 1; border: 0;
  background: var(--tint); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: transform 160ms var(--ease-out);
}
.tbar:active { transform: scale(0.98); }
.tbar.b-shortlisted { background: color-mix(in srgb, var(--text) 18%, var(--surface)); box-shadow: none; }
.tbar.b-applied { background: var(--ink); color: #fff; box-shadow: none; }
.tbar.b-interview { background: var(--ink); color: var(--lime); box-shadow: inset 0 0 0 2px var(--lime); }
.tbar.b-offer, .tbar.b-accepted { background: var(--lime); color: var(--ink); box-shadow: none; }
.tbar.b-accepted { box-shadow: inset 0 0 0 2px var(--ink); }
.tbar.b-rejected { opacity: 0.45; text-decoration: line-through; }
.tbar.flex { background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.22) 0 5px, transparent 5px 10px); }
@media (prefers-color-scheme: dark) { .tbar.b-applied, .tbar.b-interview { background: #EEF1F5; color: var(--ink); } .tbar.b-interview { box-shadow: inset 0 0 0 2px var(--lime); } }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; font-size: 12px; color: var(--mute); align-items: center; }
.legend i { display: inline-block; width: 18px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.plan-line { font-size: 14px; margin-top: 6px; }
.plan-line.bad { color: var(--bad); }

/* ---------- scripts / lessons ---------- */
.script-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.script-body { margin-top: 12px; font-size: 14px; line-height: 1.6; padding: 14px; background: var(--tint); border-radius: 10px; }
.script-body mark { background: var(--lime-soft); color: inherit; border-radius: 4px; padding: 0 2px; box-shadow: inset 0 -1px 0 rgba(140, 180, 20, 0.6); }
.lesson { border-left: 3px solid var(--lime); }
.meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 10px; font-size: 12px; color: var(--mute); }
.tag { font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 7px; border-radius: 6px; background: var(--tint); color: var(--text); }

/* ---------- dialog ---------- */
dialog {
  width: min(780px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line);
  border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  opacity: 1; transform: scale(1);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), overlay 200ms allow-discrete, display 200ms allow-discrete;
}
dialog:not([open]) { opacity: 0; transform: scale(0.97); transition-duration: 140ms; }
@starting-style { dialog[open] { opacity: 0; transform: scale(0.97); } }
dialog::backdrop { background: rgba(7, 10, 16, 0.55); opacity: 1; transition: opacity 200ms ease, overlay 200ms allow-discrete, display 200ms allow-discrete; }
dialog:not([open])::backdrop { opacity: 0; }
@starting-style { dialog[open]::backdrop { opacity: 0; } }
.dlg-head { position: sticky; top: 0; z-index: 2; background: var(--surface); padding: 18px 22px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dlg-head h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlg-body { padding: 18px 22px; }
.dlg-foot { position: sticky; bottom: 0; background: var(--surface); padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dlg-foot .r { display: flex; gap: 8px; margin-left: auto; }
.section-t { font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); margin: 20px 0 10px; }
.contact { border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 4px; margin-bottom: 10px; }
.iconbtn { width: 40px; height: 40px; padding: 0; border-radius: 10px; }

/* ---------- key gate ---------- */
.gate { max-width: 420px; margin: 8vh auto 0; }
.gate .h { margin-bottom: 6px; }
.gate form { display: flex; gap: 8px; margin-top: 16px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 550;
  display: flex; gap: 8px; align-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.act { pointer-events: auto; }
.toast-undo { font: inherit; font-weight: 700; color: var(--lime); background: none; border: 0; padding: 4px 6px; margin-left: 4px; cursor: pointer; text-decoration: underline; min-height: 32px; }
@media (prefers-color-scheme: dark) { .toast-undo { color: var(--ink); } }
@media (prefers-color-scheme: dark) { .toast { background: #EEF1F5; color: var(--ink); } .toast::before { background: var(--ink); } }

/* applied flash on the row that was just marked */
.item.done { border-color: var(--lime); background: var(--lime-soft); }

@media (max-width: 560px) {
  main { padding: 16px 14px 48px; }
  .top-in { padding: 12px 16px 8px; }
  .window { display: none; }
  .big { font-size: 56px; }
  .dlg-head, .dlg-body, .dlg-foot { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .btn:active, .fbtn:active, .tbar:active { transform: none; }
}

.looking { border-left: 3px solid var(--lime); background: var(--tint); border-radius: 8px; padding: 10px 12px; margin: 4px 0 12px; display: grid; gap: 4px; }

/* ---------- role rows: company logo and name ---------- */
.item { justify-content: flex-start; padding-left: 12px; }
.item .side { margin-left: auto; }
.logo {
  position: relative; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center; border: 1px solid var(--line);
  background: hsl(var(--h) 55% 92%); color: hsl(var(--h) 45% 28%);
}
.logo .mono { font: 700 14px/1 var(--mono); letter-spacing: 0.02em; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 8px; object-fit: contain; background: #fff; }
@media (prefers-color-scheme: dark) { .logo:not(:has(img)) { background: hsl(var(--h) 30% 20%); color: hsl(var(--h) 60% 82%); } .logo { border-color: var(--line-2); } }
.item .t b.co { font-size: 15px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
.item .t .ti { font-size: 13.5px; color: var(--ink); opacity: 0.82; margin-top: 1px; }
.item .t .win { font-size: 12px; margin-top: 2px; }
/* names are the point of the row: wrap them (two lines) instead of cutting them off */
.item .t b.co, .item .t .ti { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
.item .t .win { white-space: normal; line-height: 1.3; }
@media (max-width: 480px) { .item { gap: 10px; } .item .side .btn { padding-inline: 10px; } }

/* ---------- after-you-apply checklist ---------- */
.steps { display: flex; flex-direction: column; gap: 6px; }
.step { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14px; }
.step input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.step.on { background: var(--lime-soft); border-color: var(--lime); }
@media (prefers-color-scheme: dark) { .step.on { color: var(--ink); } }
