/* Job Hunter AI — "White City" (Tel Aviv Bauhaus): plaster-white ground, a deep Mediterranean-blue rail,
   sand-tinted lines, sun-yellow for what's new. Signature: match scores drawn as long horizontal bands,
   like the balcony stripes of the White City's buildings. One family (Rubik, Latin + Hebrew). */

:root {
  color-scheme: light dark;
  --bg: #f6f6f3;
  --panel: #ffffff;
  --panel-2: #f1f0ea;
  --hover: #f7f6f1;
  --ink: #142030;
  --ink-2: #455060;
  --ink-3: #66707d;
  --ink-4: #b9bdc2;
  --line: #e2e0d6;
  --line-2: #eceae2;

  --rail: #10355f;
  --rail-2: #0c2b4f;
  --rail-ink: #d5e1f0;
  --rail-ink-2: #92a8c4;
  --rail-hover: rgba(255, 255, 255, .07);
  --rail-active: rgba(255, 255, 255, .13);

  --brand: #1c58a8;
  --brand-hover: #174b91;
  --brand-ink: #ffffff;
  --brand-soft: #e7eef8;
  --brand-line: #c3d5ee;
  --sun: #f0b400;
  --sun-soft: #fff4cf;
  --sun-ink: #6b4b00;

  --green: #1b7a4a;
  --green-soft: #e4f3ea;
  --amber: #9c5f06;
  --amber-soft: #fbf0d9;
  --red: #b8323f;
  --red-soft: #fbe8ea;
  --blue: #1c58a8;
  --blue-soft: #e7eef8;
  --gray-soft: #efeee8;

  /* score bands (the signature) */
  --band-strong: #1c58a8;
  --band-serious: #5f8fcf;
  --band-possible: #c7ad6b;
  --band-low: #c4c6c9;
  --band-track: #ebe9e1;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-lg: 0 18px 48px -12px rgba(16, 32, 54, .28), 0 2px 6px rgba(16, 32, 54, .06);
  --overlay: rgba(12, 26, 46, .32);
  --font: "Rubik", -apple-system, "SF Pro Text", "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f151d;
    --panel: #151c26;
    --panel-2: #1a2330;
    --hover: #1b2431;
    --ink: #e9edf2;
    --ink-2: #b7c0cb;
    --ink-3: #8d98a6;
    --ink-4: #4d5765;
    --line: #283342;
    --line-2: #202a37;

    --rail: #0b2340;
    --rail-2: #081b33;
    --rail-ink: #cfdbea;
    --rail-ink-2: #8094ad;

    --brand: #6ea2ea;
    --brand-hover: #87b3f0;
    --brand-ink: #0b1a2e;
    --brand-soft: rgba(110, 162, 234, .14);
    --brand-line: rgba(110, 162, 234, .35);
    --sun: #f5c33b;
    --sun-soft: rgba(245, 195, 59, .14);
    --sun-ink: #f5d27a;

    --green: #5cc493;
    --green-soft: rgba(92, 196, 147, .13);
    --amber: #e3a64a;
    --amber-soft: rgba(227, 166, 74, .14);
    --red: #f0808d;
    --red-soft: rgba(240, 128, 141, .13);
    --blue: #6ea2ea;
    --blue-soft: rgba(110, 162, 234, .14);
    --gray-soft: #202935;

    --band-strong: #6ea2ea;
    --band-serious: #4f77ad;
    --band-possible: #a48f58;
    --band-low: #4a5361;
    --band-track: #243041;

    --shadow-lg: 0 18px 48px -12px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3);
    --overlay: rgba(3, 8, 15, .55);
  }
}

/* ---------- base */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; caret-color: var(--brand);
  scrollbar-color: var(--ink-4) transparent; }
::selection { background: var(--sun-soft); color: var(--ink); }
a { color: var(--brand); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
input[type="checkbox"], input[type="radio"], input[type="range"] { accent-color: var(--brand); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.bidi { unicode-bidi: plaintext; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--ink-3); }
h1, h2, h3 { text-wrap: balance; }

/* ---------- shell: the blue rail */
.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.sidebar { background: var(--rail); color: var(--rail-ink); padding: 20px 12px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 2px; }
.logo { display: flex; align-items: center; gap: 10px; padding: 2px 8px 22px; color: #fff; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--sun); color: var(--rail-2);
  display: grid; place-items: center; flex: none; }
.logo-name { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.logo-sub { font-size: 11.5px; color: var(--rail-ink-2); line-height: 1.35; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--rail-ink);
  font-weight: 450; font-size: 13.5px; text-decoration: none; transition: background .15s var(--ease), color .15s var(--ease); }
.nav a:hover { background: var(--rail-hover); color: #fff; }
.nav a.active { background: var(--rail-active); color: #fff; font-weight: 500; }
.nav a.active svg { color: var(--sun); opacity: 1; }
.nav svg { width: 17px; height: 17px; flex: none; opacity: .8; }
.nav .count { margin-inline-start: auto; background: var(--rail-active); color: #fff; border-radius: 99px; font-size: 11.5px; padding: 1px 8px; }
.sidebar-foot { margin-top: auto; font-size: 11px; color: var(--rail-ink-2); padding: 10px 8px; line-height: 1.6; }
.sidebar-foot a { color: var(--rail-ink); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); }

.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 18px 36px 14px; background: var(--bg);
  position: sticky; top: 0; z-index: 20; }
.topbar h1 { font-size: 21px; margin: 0; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.topbar .sub { color: var(--ink-3); font-size: 13px; }
.topbar .spacer { flex: 1; }
.content { padding: 6px 36px 64px; max-width: 1180px; }

/* ---------- primitives */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 18px 20px; }
.card h2, .section-title { font-size: 15px; margin: 0 0 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; letter-spacing: -.005em; }
.card h3 { font-size: 13px; margin: 20px 0 8px; font-weight: 600; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mt { margin-top: 16px; }
.hr { height: 1px; background: var(--line); margin: 16px 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); padding: 7px 13px; border-radius: var(--radius-sm); font-weight: 500; cursor: pointer;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease); white-space: nowrap;
  text-decoration: none; line-height: 1.3; }
.btn:hover { border-color: var(--ink-4); background: var(--hover); text-decoration: none; }
.btn:active { transform: translateY(.5px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-big { padding: 11px 20px; font-size: 15px; }
.btn-danger { color: var(--red); }
.btn-danger:hover { background: var(--red-soft); border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--gray-soft); border-color: transparent; }
.btn-sm { padding: 5px 10px; font-size: 13px; border-radius: 7px; }
.icon-btn { padding: 6px; }

.input, .select, textarea.input { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius-sm);
  padding: 7px 11px; outline: none; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.input::placeholder, textarea.input::placeholder { color: var(--ink-3); }
.input:hover, .select:hover { border-color: var(--ink-4); }
.input:focus, .select:focus, textarea.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea.input { width: 100%; resize: vertical; min-height: 80px; line-height: 1.55; }
.search { position: relative; }
.search svg { position: absolute; inset-inline-start: 11px; top: 50%; transform: translateY(-50%); width: 16px; color: var(--ink-3); }
.search .input { padding-inline-start: 34px; width: 280px; }
label.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
label.field .input, label.field .select { font-weight: 400; color: var(--ink); }
.field-hint { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12px;
  font-weight: 500; white-space: nowrap; background: var(--gray-soft); color: var(--ink-2); }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.badge.brand { background: var(--sun-soft); color: var(--sun-ink); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--panel); font-size: 13px; cursor: pointer; user-select: none; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--ink-4); }
.chip.on { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand); font-weight: 500; }
.chip .x { cursor: pointer; color: var(--ink-3); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips .badge { font-weight: 450; }

/* ---------- score: the balcony band (signature) */
.score { --c: var(--band-low); display: inline-flex; align-items: center; gap: 9px; flex: none; }
.score-band { position: relative; width: 64px; height: 6px; border-radius: 99px; background: var(--band-track); overflow: hidden; }
.score-band > i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 99px; background: var(--c);
  transition: width .3s var(--ease); }
.score-n { font-weight: 600; font-size: 14px; min-width: 2ch; text-align: end; color: var(--ink); }
.score.sm .score-band { width: 56px; }
.score.sm .score-n { font-size: 13px; }
.score.lg { flex-direction: column-reverse; align-items: flex-start; gap: 6px; }
.score.lg .score-n { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1; text-align: start; }
.score.lg .score-band { width: 72px; height: 7px; }
.score.strong { --c: var(--band-strong); } .score.serious { --c: var(--band-serious); }
.score.possible { --c: var(--band-possible); } .score.low { --c: var(--band-low); }
.score.low .score-n { color: var(--ink-3); }

/* ---------- key numbers */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); }
.kpi { padding: 16px 20px; border-inline-start: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: background .15s var(--ease); }
.kpi:first-child { border-inline-start: none; border-start-start-radius: var(--radius); border-end-start-radius: var(--radius); }
.kpi:last-child { border-start-end-radius: var(--radius); border-end-end-radius: var(--radius); }
.kpi:hover { background: var(--hover); text-decoration: none; }
.kpi b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.kpi span { color: var(--ink-3); font-size: 12.5px; }

/* ---------- tables */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl th { text-align: start; font-size: 12px; color: var(--ink-3); font-weight: 500; padding: 10px 14px;
  border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; white-space: nowrap; }
.tbl th.sortable { cursor: pointer; } .tbl th.sortable:hover { color: var(--ink); }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover { background: var(--hover); }
.tbl .title { font-weight: 500; color: var(--ink); }
.tbl .co { color: var(--ink-2); }
.empty { padding: 48px 20px; text-align: center; color: var(--ink-3); text-wrap: pretty; }
.empty b { display: block; color: var(--ink); font-size: 15px; font-weight: 500; margin-bottom: 4px; }

.pager { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line-2); }

/* ---------- filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.filters .select { max-width: 190px; }
.range { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.range input { width: 110px; }
.more-filters { display: contents; }

/* ---------- drawer / modal */
.overlay { position: fixed; inset: 0; background: var(--overlay); z-index: 50; animation: fade .18s var(--ease); }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(720px, 96vw); background: var(--bg); z-index: 51;
  box-shadow: var(--shadow-lg); overflow-y: auto; animation: slide .22s var(--ease); }
.drawer-head { position: sticky; top: 0; background: var(--panel); border-bottom: 1px solid var(--line); padding: 20px 24px 16px; z-index: 2; }
.drawer-body { padding: 18px 24px 48px; display: flex; flex-direction: column; gap: 14px; }
.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(620px, 94vw); max-height: 90vh;
  overflow-y: auto; background: var(--panel); border-radius: 16px; box-shadow: var(--shadow-lg); z-index: 51; padding: 24px;
  animation: fade .18s var(--ease); }
.modal h2 { margin: 0 0 16px; font-weight: 600; font-size: 17px; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }

.desc { line-height: 1.7; color: var(--ink-2); font-size: 14px; overflow-wrap: anywhere; max-width: 72ch; text-wrap: pretty; }
.desc h1, .desc h2, .desc h3, .desc h4 { font-size: 14.5px; font-weight: 600; color: var(--ink); margin: 18px 0 6px; }
.desc ul { padding-inline-start: 22px; margin: 6px 0; }
.desc p { margin: 6px 0; }
.desc a { word-break: break-all; }

.bar { height: 6px; background: var(--band-track); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--band-strong); border-radius: 99px; }
.breakdown { display: grid; grid-template-columns: 150px 1fr 60px; gap: 9px 12px; align-items: center; font-size: 13px; }

.list-plain { margin: 0; padding-inline-start: 18px; line-height: 1.75; }
.req { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.req:last-child { border-bottom: none; }
.req .note { color: var(--ink-3); font-size: 12.5px; }
.req-line { display: flex; gap: 10px; padding: 5px 0; cursor: pointer; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.req-line:hover { color: var(--ink); }
.req-line .note { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.req-line .dot.unk { color: var(--ink-4); }
.clip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- progress */
.progress { height: 6px; background: var(--band-track); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .5s var(--ease); }
.progress.indeterminate > i { width: 30% !important; animation: indet 1.2s infinite ease-in-out; }
@keyframes indet { 0% { margin-inline-start: -30%; } 100% { margin-inline-start: 100%; } }
.kv { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 14px; }
.kv div { background: var(--panel-2); border-radius: var(--radius-sm); padding: 9px 12px; }
.kv b { display: block; font-size: 18px; font-weight: 600; unicode-bidi: plaintext; }
.kv span { font-size: 12px; color: var(--ink-3); }
.spin { width: 16px; height: 16px; border: 2px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%;
  animation: rot .8s linear infinite; display: inline-block; flex: none; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- job rows */
.jrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 12px 20px;
  border-bottom: 1px solid var(--line-2); cursor: pointer; transition: background .12s; }
.jrow:last-child { border-bottom: none; }
.jrow:hover { background: var(--hover); }
.jrow .t { font-weight: 500; font-size: 14px; color: var(--ink); }
.jrow .m { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.jrow .m b { color: var(--ink-2); font-weight: 500; }
.new-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); margin-inline-end: 7px;
  vertical-align: middle; position: relative; top: -1px; }

/* ---------- fold-out sections */
details.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h2 { margin: 0; }
details.fold > summary::after { content: "›"; margin-inline-start: auto; color: var(--ink-3); font-size: 18px; transition: transform .15s var(--ease); }
details.fold[open] > summary::after { transform: rotate(90deg); }
details.fold[open] > summary { margin-bottom: 14px; }
.fold-plain { border-top: 1px solid var(--line-2); padding-top: 12px; margin-top: 6px; }
.fold-plain > summary { font-weight: 500; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.fold-plain > summary:hover { color: var(--ink); }

/* ---------- applications board */
.board { display: grid; grid-template-columns: repeat(5, minmax(190px, 1fr)); gap: 12px; overflow-x: auto; }
.board .col { background: var(--panel-2); border-radius: var(--radius); padding: 10px; min-height: 200px; }
.board .col-head { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 13.5px; padding: 2px 4px 10px; }
.col-head .dot.saved { color: var(--ink-3); } .col-head .dot.applied { color: var(--brand); }
.col-head .dot.interviewing { color: var(--sun); } .col-head .dot.offer { color: var(--green); } .col-head .dot.rejected { color: var(--red); }
.acard { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; margin-bottom: 8px; }
.acard .t { font-weight: 500; font-size: 13.5px; cursor: pointer; }
.acard .t:hover { color: var(--brand); }
.acard .m { color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.acard .ev { font-size: 12px; margin-top: 8px; color: var(--ink-2); }
.acard .score { margin-top: 8px; }
.acard .select { width: 100%; padding: 4px 8px; font-size: 12.5px; margin-top: 8px; }

/* ---------- toast & prompts */
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column;
  align-items: center; gap: 10px; z-index: 100; pointer-events: none; }
.toast { background: var(--rail); color: #fff; padding: 11px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 13.5px;
  max-width: 420px; animation: fade .2s var(--ease); }
.toast.err { background: #8f2532; }
.apply-prompt { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 340px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px 16px; animation: fade .2s var(--ease); }
.assist { border-color: var(--brand-line); background: var(--brand-soft); }

/* ---------- banners & misc */
.banner { display: flex; gap: 14px; align-items: center; padding: 12px 16px; border-radius: var(--radius); }
.banner.info { background: var(--blue-soft); color: var(--ink); }
.banner.info svg { color: var(--blue); }
.banner.warn { background: var(--amber-soft); color: var(--ink); }
.banner.warn svg { color: var(--amber); }
.banner.brand { background: var(--sun-soft); color: var(--ink); }
.banner.brand svg { color: var(--sun-ink); }
.banner svg, .card h2 svg, .section-title svg { width: 18px; height: 18px; flex: none; }
.dropzone { border: 1.5px dashed var(--ink-4); border-radius: var(--radius); padding: 28px; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s; background: var(--panel-2); }
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--brand-soft); }
.dropzone svg { width: 26px; height: 26px; color: var(--ink-3); }
.exp-item { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: var(--panel-2); }
.tabs { display: flex; gap: 2px; background: var(--gray-soft); padding: 3px; border-radius: 10px; width: fit-content; }
.tabs button { border: none; background: none; padding: 6px 14px; border-radius: 7px; cursor: pointer; font-weight: 500; color: var(--ink-2);
  transition: background .15s, color .15s; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(16, 32, 54, .1); }
.split-btn { display: inline-flex; }
.split-btn .btn:first-child { border-start-end-radius: 0; border-end-end-radius: 0; }
.split-btn .select { border-start-start-radius: 0; border-end-start-radius: 0; border-inline-start: none; background: var(--panel);
  font-weight: 500; padding: 0 10px; }
.kbd { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: var(--gray-soft); padding: 1px 6px; border-radius: 5px; }
.sticky-save { position: sticky; bottom: 12px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-lg); }
.sticky-save.dirty { border-color: var(--brand-line); }

.fav { border: none; background: none; padding: 4px; border-radius: 7px; cursor: pointer; color: var(--ink-4); line-height: 0;
  transition: color .15s, background .15s; }
.fav:hover { background: var(--gray-soft); color: var(--sun); }
.fav.on { color: var(--sun); }
.fav-inline { color: var(--sun); font-size: 13px; margin-inline-start: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (max-width: 1100px) {
  .grid3 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: repeat(3, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(3) { border-inline-start: none; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 10px; }
  .logo { padding: 4px 8px; }
  .sidebar-foot { display: none; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .grid2 { grid-template-columns: 1fr; }
  .content, .topbar { padding-left: 16px; padding-right: 16px; }
  .search .input { width: 100%; }
  .jrow { padding: 12px 16px; }
  .topbar { flex-wrap: wrap; position: static; }
  .topbar .spacer { display: none; }
}

/* Hebrew titles keep their own direction but line up with the rest of the list */
.jrow .t, .jrow .m, .acard .t, .acard .m, .drawer-head h2, .tbl .title, .tbl .co { text-align: left; }

/* 👍 / 👎 */
.vote { display: inline-flex; gap: 2px; }
.vote-btn { border: none; background: none; padding: 5px; border-radius: 7px; cursor: pointer; color: var(--ink-4); line-height: 0;
  transition: color .15s, background .15s; }
.vote-btn svg { width: 16px; height: 16px; }
.vote-btn:hover { background: var(--gray-soft); color: var(--ink-2); }
.vote-btn.on.up { color: var(--brand); background: var(--brand-soft); }
.vote-btn.on.down { color: var(--red); background: var(--red-soft); }
.vote-btn.on svg { fill: currentColor; fill-opacity: .18; }
.taste.plus { color: var(--brand); } .taste.minus { color: var(--ink-3); }
.pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; padding: 4px 0; border-top: 1px solid var(--line-2); font-size: 12.5px; }

/* ================================================================ inbox (minimal home) */
.topbar { padding-top: 16px; padding-bottom: 10px; }
.crumb { display: inline-block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 2px; }
.crumb:hover { color: var(--brand); text-decoration: none; }
.inbox-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.inbox-head > div:first-child { flex: 1; min-width: 240px; }
.inbox-title { font-size: 22px; font-weight: 600; letter-spacing: -.015em; margin: 0 0 2px; line-height: 1.25; }
.tab-n { color: var(--ink-3); font-weight: 450; margin-inline-start: 2px; }
.inbox-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; padding: 16px 20px;
  border-bottom: 1px solid var(--line-2); transition: opacity .22s var(--ease), transform .22s var(--ease); }
.inbox-item:last-child { border-bottom: none; }
.inbox-item.gone { opacity: 0; transform: translateX(24px); }
.inbox-main { cursor: pointer; min-width: 0; }
.inbox-main:hover .t { color: var(--brand); }
.inbox-item .t { font-weight: 500; font-size: 14.5px; transition: color .15s; }
.inbox-item .m { color: var(--ink-3); font-size: 12.5px; margin-top: 1px; }
.inbox-item .why { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.inbox-item .why span + span::before { content: " · "; color: var(--ink-4); }
.inbox-item .acts { grid-column: 1 / -1; display: flex; gap: 6px; margin-top: 8px; }
.inbox-foot { text-align: center; font-size: 13.5px; }
.score-word { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.score.low .score-word { color: var(--ink-3); }

/* quiet check status in the top bar */
.scan-status { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.scan-status .btn { color: var(--brand); }
.ok-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }

/* job panel */
.verdict { font-size: 15px; margin: 16px 0 10px; color: var(--ink); text-wrap: pretty; }
.reasons { list-style: none; padding: 0; margin: 14px 0 14px; display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; color: var(--ink-2); }
.reasons li::before { content: "✓"; color: var(--green); font-weight: 600; margin-inline-end: 8px; }
.reasons li.gap::before { content: "✗"; color: var(--red); }
.btn.on-saved { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand); }
.folds > .fold-plain:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.drawer-body .folds { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }

/* settings: sources */
.sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.source { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px;
  color: inherit; text-decoration: none; transition: border-color .15s, background .15s; }
a.source:hover { border-color: var(--ink-4); background: var(--hover); text-decoration: none; }
a.source b::after { content: " →"; color: var(--ink-3); font-weight: 400; }
@media (max-width: 860px) { .sources { grid-template-columns: 1fr; } .scan-status .muted { display: none; } }
.browse-link { color: var(--brand); }
.assist-cv { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 8px;
  background: var(--panel); border: 1px solid var(--brand-line); }
.assist-cv .btn { flex: none; }

/* ================================================================ public website (homepage, sign-in, legal) */
.pub { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.pub-top { display: flex; align-items: center; gap: 8px; padding: 16px 32px; max-width: 1180px; width: 100%; margin: 0 auto; }
.pub-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; color: var(--ink); text-decoration: none; }
.pub-logo:hover { text-decoration: none; }
.pub-logo .logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--rail); color: var(--sun); display: grid; place-items: center; }
.pub-main { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 24px 20px 56px; }
.pub-main.wide { max-width: 1180px; padding: 24px 32px 56px; }
.pub-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; padding: 18px 32px; font-size: 12.5px; color: var(--ink-3);
  border-top: 1px solid var(--line); max-width: 1180px; width: 100%; margin: 0 auto; }
.pub-foot a { color: var(--ink-2); }

.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 48px 0 40px; }
.hero h1 { font-size: 44px; line-height: 1.12; letter-spacing: -.025em; font-weight: 600; margin: 0; text-wrap: balance; color: var(--ink); }
.hero .lead { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin: 18px 0 0; max-width: 56ch; text-wrap: pretty; }
/* the signature: an abstract inbox with balcony bands (no invented jobs) */
.hero-art { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 10px 0; box-shadow: var(--shadow-lg); }
.art-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) 72px; gap: 14px; align-items: center; padding: 16px 22px;
  border-bottom: 1px solid var(--line-2); }
.art-row:last-child { border-bottom: none; }
.art-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.art-lines { display: flex; flex-direction: column; gap: 7px; }
.art-lines i { display: block; height: 9px; border-radius: 99px; background: var(--line); }
.art-lines i + i { height: 7px; background: var(--line-2); }
.hero-art .score-band { width: 72px; height: 7px; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.point { padding: 26px 28px 28px 0; }
.point + .point { padding-inline-start: 28px; border-inline-start: 1px solid var(--line); }
.point h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; color: var(--ink); }
.point p { margin: 0; color: var(--ink-2); line-height: 1.6; text-wrap: pretty; }
.live { color: var(--ink-3); font-size: 13px; margin: 8px 0 0; }

.auth-card { margin-top: 24px; }
.auth-title { font-size: 22px; font-weight: 600; letter-spacing: -.015em; margin: 0 0 18px; }
.auth-card .stack { gap: 14px; }
.auth-card .input { width: 100%; padding: 10px 12px; font-size: 15px; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 16px; font-size: 13.5px; color: var(--ink-3); }
.google-btn { width: 100%; padding: 10px 14px; font-size: 15px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12.5px; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.lang-switch { font-weight: 500; }
.sidebar-foot .lang-switch { color: var(--rail-ink); padding: 4px 8px; border: 1px solid rgba(255, 255, 255, .2); }

.setup { max-width: 720px; display: flex; flex-direction: column; gap: 14px; }
.danger-zone { border: 1px solid var(--red-soft); background: var(--red-soft); border-radius: 10px; padding: 14px 16px; }
.danger-zone p { margin: 4px 0 10px; color: var(--ink-2); }
.danger-zone .input { flex: 1; min-width: 200px; }

.legal { max-width: 760px; line-height: 1.7; color: var(--ink-2); }
.legal h1 { font-size: 24px; color: var(--ink); font-weight: 600; letter-spacing: -.015em; margin: 0 0 4px; }
.legal h2 { font-size: 16px; color: var(--ink); font-weight: 600; margin: 26px 0 6px; }
.legal p, .legal li { text-wrap: pretty; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 20px; }
  .hero h1 { font-size: 32px; }
  .points { grid-template-columns: 1fr; }
  .point, .point + .point { padding: 20px 0; border-inline-start: none; border-top: 1px solid var(--line); }
  .pub-top, .pub-main.wide, .pub-foot { padding-left: 16px; padding-right: 16px; }
}

/* ================================================================ Hebrew (right-to-left) */
[dir="rtl"] body { font-family: "Rubik", -apple-system, "Arial Hebrew", sans-serif; }
[dir="rtl"] .jrow .t, [dir="rtl"] .jrow .m, [dir="rtl"] .acard .t, [dir="rtl"] .acard .m, [dir="rtl"] .drawer-head h2,
[dir="rtl"] .tbl .title, [dir="rtl"] .tbl .co { text-align: right; }
[dir="rtl"] .drawer { animation-name: slide-rtl; }
@keyframes slide-rtl { from { transform: translateX(-24px); opacity: 0; } }
[dir="rtl"] .crumb, [dir="rtl"] .browse-link svg { display: inline-block; }
[dir="rtl"] .toasts { direction: rtl; }
.full-ad { font-weight: 500; }
.full-ad a { display: inline-flex; gap: 6px; align-items: center; }
.full-ad svg { width: 14px; height: 14px; }

/* "Did you apply?" strip (website) */
.opened { border-color: var(--brand-line); }
.opened-head { padding: 12px 18px 4px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.opened-row { display: flex; align-items: center; gap: 14px; padding: 10px 18px; border-top: 1px solid var(--line-2); }
.opened-row .t { font-weight: 500; }
.opened-row .m { color: var(--ink-3); font-size: 12.5px; }
@media (max-width: 860px) { .opened-row { flex-direction: column; align-items: flex-start; } }
