:root {
  /* undyed cotton, cool (never cream) */
  --bg: #F6F7FB; --surface: #FFFFFF; --sunk: #EEF0F7; --line: #DFE2EE; --line-strong: #C3C8DC;
  --ink: #141A33; --muted: #555C77; --faint: #686F8E;
  /* indigo dye ramp: pale wash -> near-black indigo */
  --dye-1: #EDEFF8; --dye-2: #DCE0F1; --dye-3: #BBC1E0; --dye-4: #8B93C4; --dye-5: #5C66A3;
  --dye-6: #3F4A86; --dye-7: #2F3970; --dye-8: #222A55; --dye-9: #161C3B;
  --rail: var(--dye-8); --rail-ink: #FFFFFF; --rail-dim: rgba(255, 255, 255, .74); --resist: #FFFFFF; --resist-ink: var(--dye-8);
  --accent: var(--dye-7); --accent-ink: #FFFFFF; --accent-soft: var(--dye-1);
  --good: #1D6A48; --good-soft: #DFEEE6; --warn: #8C3A20; --warn-soft: #F7E5DD; --bad: #AE2A21; --bad-soft: #F6E0DD;
  --s9-bg: var(--dye-9); --s9-ink: #FFFFFF; --s7-bg: var(--dye-7); --s7-ink: #FFFFFF; --s5-bg: var(--dye-4); --s5-ink: var(--dye-9);
  --s3-bg: var(--dye-2); --s3-ink: var(--dye-8); --s1-bg: var(--sunk); --s1-ink: var(--muted);
  --radius: 12px; --radius-sm: 9px;
  --display: 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', sans-serif; --body: 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; box-shadow: none !important; text-shadow: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.boot { display: grid; place-items: center; min-height: 100vh; color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* layout */
.app { display: grid; grid-template-columns: 228px 1fr; min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 2px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font-family: var(--display); font-size: 19px; font-weight: 600; }
.brand img { width: 28px; height: 28px; }
.rail a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--radius-sm); text-decoration: none; color: var(--muted); font-weight: 500; }
.rail a:hover { background: var(--sunk); color: var(--ink); }
.rail a[aria-current] { background: var(--surface); color: var(--ink); border: 1px solid var(--line); padding: 8px 9px; }
.rail svg, .tabs svg { width: 19px; height: 19px; flex: none; }
.rail .who { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.main { min-width: 0; padding: 0 32px 72px; max-width: 1000px; }
.top { display: flex; align-items: center; gap: 10px; padding: 22px 0 16px; flex-wrap: wrap; }
.top h1 { font-family: var(--display); font-size: 26px; letter-spacing: -0.02em; margin-right: auto; }
.topacts { display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 14px; padding: 16px 0 0; }
.back svg { width: 16px; height: 16px; }
.tabs { display: none; }
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .rail { display: none; }
  .main { padding: 0 16px calc(88px + env(safe-area-inset-bottom)); }
  .top { padding: calc(14px + env(safe-area-inset-top)) 0 12px; }
  .top h1 { font-size: 23px; }
  .tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 20; }
  .tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; text-decoration: none; color: var(--muted); padding: 4px 0; }
  .tabs a[aria-current] { color: var(--accent); }
}

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line-strong); background: var(--surface); padding: 8px 14px; border-radius: 999px; cursor: pointer; font-weight: 500; font-size: 14px; text-decoration: none; white-space: nowrap; min-height: 38px; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { border-color: transparent; background: none; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); background: var(--sunk); }
.btn.danger { color: var(--bad); }
.btn.small { padding: 6px 12px; font-size: 13px; min-height: 40px; }
@media (pointer: coarse) { .btn, .btn.small { min-height: 44px; } }
.btn svg { width: 16px; height: 16px; }
.btn[disabled] { opacity: .55; cursor: progress; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
label.f { display: block; margin: 0 0 14px; }
label.f > span { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 5px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 9px 11px; min-height: 40px; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; user-select: none; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px; background: var(--surface); flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 6px 13px; border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--muted); font-weight: 500; }
.seg button[aria-pressed=true] { background: var(--ink); color: var(--bg); }
.err { color: var(--bad); font-size: 14px; margin: 6px 0 10px; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.card h2 { font-size: 16px; margin-bottom: 4px; }
.card > .sub { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.note { background: var(--sunk); border-radius: var(--radius-sm); padding: 11px 13px; font-size: 14px; color: var(--muted); }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.note.good { background: var(--good-soft); color: var(--good); }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty h2 { font-family: var(--display); color: var(--ink); font-size: 18px; margin-bottom: 6px; }

/* filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters input[type=search] { max-width: 240px; }
.filters select { width: auto; min-width: 140px; }
.count { color: var(--muted); font-size: 14px; margin: 0 0 10px; }

/* job list */
.jobs { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.job { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; padding: 15px 18px; border-top: 1px solid var(--line); align-items: start; }
.job:first-child { border-top: 0; }
.job:hover { background: color-mix(in srgb, var(--sunk) 45%, transparent); }
.score { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 19px; background: var(--sunk); color: var(--muted); font-variant-numeric: tabular-nums; }
.score.hi { background: var(--good-soft); color: var(--good); }
.score.mid { background: var(--accent-soft); color: var(--accent); }
.score.wait { font-size: 12px; font-family: var(--body); font-weight: 500; }
.job > div { min-width: 0; }
.job h3 { font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; text-wrap: balance; }
.jobhead h1, .tjob a.t { overflow-wrap: anywhere; }
.tjob > .grow { min-width: 0; }
.job h3 a { text-decoration: none; }
.job h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.job .meta { color: var(--muted); font-size: 14px; margin-top: 2px; }
.job .why { font-size: 14px; margin-top: 6px; text-wrap: pretty; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.chip { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--sunk); color: var(--muted); font-weight: 500; max-width: 100%; overflow-wrap: anywhere; }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.acc { background: var(--accent-soft); color: var(--accent); }
.job .acts { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
@media (max-width: 640px) {
  .job { grid-template-columns: 44px 1fr; padding: 14px; gap: 12px; }
  .score { width: 40px; height: 40px; font-size: 16px; }
  .job .acts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}

/* job page */
.jobhead h1 { font-family: var(--display); font-size: 28px; letter-spacing: -0.02em; line-height: 1.2; margin: 10px 0 4px; }
.jobhead .meta { color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; align-items: start; margin-top: 18px; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }
.statusbar { display: flex; gap: 6px; flex-wrap: wrap; }
.statusbar button { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 6px 13px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--muted); }
.statusbar button[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.desc { white-space: pre-wrap; font-size: 14.5px; line-height: 1.6; max-height: 420px; overflow: auto; }
.desc.open { max-height: none; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.doc { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 10px; }
.doc .q { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.doc .a { white-space: pre-wrap; font-size: 14.5px; }
.events { list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--muted); }
.events li { padding: 4px 0; }

/* tracker */
.lane { margin-bottom: 22px; }
.lane h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.lane .n { color: var(--faint); font-weight: 500; }
.tjob { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.tjob:first-child { border-top: 0; }
.tjob a.t { font-weight: 600; text-decoration: none; }
.tjob a.t:hover { text-decoration: underline; }
.due { color: var(--warn); font-weight: 600; }

/* CV editor */
.cved .entry { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 10px; background: var(--bg); }
.cved .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
@media (max-width: 640px) { .cved .two { grid-template-columns: 1fr; } }
.cved h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 10px; }
.sticky-acts { position: sticky; bottom: 0; background: var(--surface); padding: 12px 0; border-top: 1px solid var(--line); margin-top: 10px; z-index: 4; }
@media (max-width: 820px) { .sticky-acts { bottom: calc(62px + env(safe-area-inset-bottom)); } }

/* runs */
.runs { width: 100%; border-collapse: collapse; font-size: 14px; }
.runs th, .runs td { text-align: left; padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.runs th { color: var(--muted); font-weight: 500; border-top: 0; }
.runs td.n { font-variant-numeric: tabular-nums; }
.live { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

/* sheet + toast */
.sheet { position: fixed; inset: 0; background: rgba(10, 12, 18, .45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.panel { background: var(--surface); border-radius: var(--radius); width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; border: 1px solid var(--line); }
.panel header { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.panel header h2 { font-size: 18px; margin-right: auto; }
.panel .body { padding: 18px 20px 6px; }
.panel footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 18px; }
@media (max-width: 640px) { .sheet { place-items: end stretch; padding: 0; } .panel { border-radius: var(--radius) var(--radius) 0 0; max-height: 92vh; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 60; max-width: calc(100vw - 32px); }
@media (max-width: 820px) { .toast { bottom: calc(80px + env(safe-area-inset-bottom)); } }

/* sign in */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth .box { width: min(400px, 100%); }
.auth h1 { font-family: var(--display); font-size: 30px; letter-spacing: -0.02em; margin: 14px 0 6px; }
.auth p { color: var(--muted); margin-bottom: 22px; }

/* print (CV / letter to PDF) */
#print { display: none; }
@media print {
  @page { size: A4; margin: 15mm 16mm; }
  body.printing > *:not(#print) { display: none !important; }
  body.printing { background: #fff; color: #111; font: 10.5pt/1.42 Calibri, 'Instrument Sans', Arial, sans-serif; }
  body.printing #print { display: block; }
  #print h1 { font-size: 18pt; text-align: center; margin: 0 0 2pt; }
  #print .contact { text-align: center; font-size: 9.5pt; margin-bottom: 8pt; }
  #print h2 { font-size: 10.5pt; text-transform: uppercase; color: #2F5D62; border-bottom: 1px solid #2F5D62; margin: 10pt 0 4pt; padding-bottom: 1pt; }
  #print .ent { display: flex; justify-content: space-between; font-weight: 700; margin-top: 5pt; break-after: avoid; }
  #print .ent i { font-weight: 400; }
  #print ul { margin: 2pt 0 0 14pt; padding: 0; }
  #print li { margin: 1pt 0; }
  #print .letter p { margin: 0 0 9pt; white-space: pre-wrap; }
  #print .letter .head { margin-bottom: 14pt; }
  #print .letter .head b { font-size: 15pt; }
}

/* jobs page: filters folded away, strong matches first */
.fpanel { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: -4px 0 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.fpanel[hidden] { display: none; }
.fpanel input[type=search] { max-width: 260px; }
.fpanel select { width: auto; min-width: 150px; }
.group { margin-bottom: 22px; }
.group h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.group h2 .n { color: var(--faint); font-weight: 500; }
.group.strong h2 { color: var(--good); }
.group.strong .jobs { border-color: color-mix(in srgb, var(--good) 45%, var(--line)); }
.group-empty { padding: 4px 0 6px; }
.runline { font-size: 14px; color: var(--muted); margin: -6px 0 14px; }
.runline b { color: var(--ink); font-weight: 600; }
.count:empty { display: none; }

/* one job: status at the top */
.choices { display: grid; gap: 8px; }
.choice { text-align: left; border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--radius-sm); padding: 12px 14px; font-weight: 500; cursor: pointer; min-height: 44px; }
.choice[aria-pressed=true] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.sumwrap { margin-top: 8px; }
.sumlink { cursor: pointer; color: var(--muted); font-size: 14px; padding: 11px 0; min-height: 44px; display: flex; align-items: center; }
@media (max-width: 900px) {
  .jobgrid { display: flex; flex-direction: column; align-items: stretch; }
  .jobgrid > div { display: contents; }
  .jobgrid .o1 { order: 1; } .jobgrid .o2 { order: 2; } .jobgrid .o3 { order: 3; } .jobgrid .o4 { order: 4; } .jobgrid .o5 { order: 5; } .jobgrid .o6 { order: 6; }
}

/* toast undo */
.toast-act { background: none; border: 0; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin-left: 10px; cursor: pointer; padding: 6px 2px; }

/* ===== Adire: indigo cloth shell, dye-depth scores ===== */
::selection { background: var(--dye-3); color: var(--ink); }
input, textarea { caret-color: var(--dye-7); }
input[type=checkbox], input[type=radio] { accent-color: var(--dye-7); }
html { scrollbar-color: var(--dye-4) transparent; }
:focus-visible { outline-color: var(--dye-6); }
a { text-underline-offset: 3px; }
.rail { background: var(--rail); color: var(--rail-ink); border-right: 0; padding-top: 0; }
.brand { flex-direction: column; align-items: flex-start; gap: 2px; padding: 0 10px 18px; margin: 0 -14px 10px; font-family: var(--body); }
.brand .cloth { display: block; align-self: stretch; height: 44px; margin-bottom: 14px; background: url(/adire.svg) 0 0 / 48px 48px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.brand b { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; padding: 0 14px; line-height: 1.2; }
.brand span:not(.cloth) { font-size: 13px; color: var(--rail-dim); padding: 0 14px; font-weight: 500; }
.rail a { color: var(--rail-dim); }
.rail a:hover { background: rgba(255, 255, 255, .09); color: var(--rail-ink); }
.rail a[aria-current] { background: var(--resist); color: var(--resist-ink); border: 0; padding: 9px 10px; font-weight: 600; }
.rail .who { color: var(--rail-dim); border-top-color: rgba(255, 255, 255, .16); }
.mstrip { display: none; }
@media (max-width: 820px) {
  .mstrip { display: flex; align-items: center; gap: 6px; position: relative; overflow: hidden; margin: 0 -16px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
    background: var(--rail); color: var(--rail-ink); font-size: 15px; }
  .mstrip b { font-weight: 700; position: relative; z-index: 1; }
  .mstrip span { color: var(--rail-dim); position: relative; z-index: 1; }
  .mstrip::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 34%; background: url(/adire.svg) 0 0 / 40px 40px; }
  .top { padding-top: 14px; }
  .tabs { background: var(--rail); border-top: 0; }
  .tabs a { color: var(--rail-dim); }
  .tabs a svg { padding: 3px 12px; box-sizing: content-box; border-radius: 999px; }
  .tabs a[aria-current] { color: var(--rail-ink); }
  .tabs a[aria-current] svg { background: var(--resist); color: var(--resist-ink); }
}
.top h1, .jobhead h1, .auth h1, .empty h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.015em; }
.btn { border-color: var(--line-strong); }
.btn:hover { border-color: var(--dye-6); }
.btn.primary { background: var(--dye-8); border-color: var(--dye-8); color: #fff; }
.btn.ghost { border-color: transparent; }
.seg button[aria-pressed=true] { background: var(--dye-8); color: #fff; }
/* the signature: dye depth carries strength */
.score { font-family: var(--display); font-weight: 700; background: var(--s1-bg); color: var(--s1-ink); }
.score.s9 { background: var(--s9-bg); color: var(--s9-ink); }
.score.s7 { background: var(--s7-bg); color: var(--s7-ink); }
.score.s5 { background: var(--s5-bg); color: var(--s5-ink); }
.score.s3 { background: var(--s3-bg); color: var(--s3-ink); }
.score.wait { background: var(--sunk); color: var(--muted); }
.group.strong h2 { color: var(--dye-7); }
.group.strong .jobs { border-color: var(--dye-3); }
.chip.acc { background: var(--dye-1); color: var(--dye-7); }
.choice[aria-pressed=true] { border-color: var(--dye-6); background: var(--dye-1); color: var(--dye-8); }
.auth .mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--dye-8); }

/* ===== finish-review fixes ===== */
/* the cloth: whole tiles only (round), a deeper band by her name */
.brand .cloth { height: 76px; background: url(/adire.svg) 0 0 / 76px 76px round; }
@media (max-width: 820px) { .mstrip::after { width: 38%; background: url(/adire.svg) 0 0 / 44px 44px round; } }
/* strong matches sit on a dye wash across the whole row */
.group.strong .jobs { background: var(--dye-1); border-color: var(--dye-3); }
.group.strong .job { border-top-color: var(--dye-2); }
.group.strong .job:hover { background: color-mix(in srgb, var(--dye-2) 55%, var(--dye-1)); }
/* status on the dye ramp; Offer is the deepest dye, resisted white */
/* phone: tabs and Filters on one row */
@media (max-width: 640px) {
  .filters.bar { flex-wrap: nowrap; gap: 6px; }
  .filters.bar .seg button { padding: 6px 10px; }
  .filters.bar #ftoggle { padding: 6px 10px; flex: none; }
}
/* disclosure arrows drawn like the app's own icons */
details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: ""; flex: none; width: 16px; height: 16px; background: currentColor; transition: transform .15s ease-out;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
details[open] > summary::before { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { details > summary::before { transition: none; } }
/* applications: the cloth gets fuller as jobs move on */
.weave-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; }
.weave { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 12px; }
.weave i { width: 18px; height: 18px; border-radius: 4px; display: block; }
.d-saved { background: var(--dye-2); color: var(--dye-8); }
.d-applied { background: var(--dye-4); color: var(--dye-9); }
.d-interview { background: var(--dye-7); color: #FFFFFF; }
.d-offer { background: var(--dye-9); color: #FFFFFF; }
.d-rejected { background: var(--surface); color: var(--muted); box-shadow: none; outline: 1.5px solid var(--dye-4); outline-offset: -1.5px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend b { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.lane h2 { display: flex; align-items: center; gap: 8px; }
.lane h2 .sw { min-width: 26px; height: 22px; padding: 0 7px; border-radius: 4px; display: inline-grid; place-items: center; font-size: 12px; letter-spacing: 0; }
.lane.l-applied .jobs { border-color: var(--dye-3); }
.lane.l-interview .jobs, .lane.l-offer .jobs { border-color: var(--dye-5); background: var(--dye-1); }
/* sign in: her name on a length of cloth */
.auth .cloth-panel { height: 120px; border-radius: var(--radius); background: var(--dye-8) url(/adire.svg) 0 0 / 60px 60px round; margin-bottom: 22px; }
.group.strong .chip { background: var(--surface); }
.group.strong .chip.acc { background: var(--dye-2); color: var(--dye-8); }
.group.strong .chip.good { background: var(--good-soft); }
.group.strong .chip.warn { background: var(--warn-soft); }

/* ===== polish (critique run 2) ===== */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); color: var(--dye-8); border: 2px solid var(--dye-6); border-radius: 999px; padding: 10px 16px; font: inherit; font-weight: 600; }
.skip:focus { left: 12px; }
.back { min-height: 44px; display: inline-flex; align-items: center; padding: 0; }
.jobhead h1 { text-wrap: balance; }
.linkbtn { background: none; border: 0; padding: 10px 4px; font: inherit; color: var(--dye-7); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }
.count { font-size: 14px; }
.count .linkbtn { padding: 0 4px; min-height: 0; }
.more { width: 100%; margin-top: 8px; justify-content: center; }
.stlabel { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.stlabel b { color: var(--ink); }
.stdot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.stdot.d-new, .stdot.d-skipped { background: var(--sunk); outline: 1px solid var(--line-strong); }
.nextcard { border-color: var(--dye-3); }
.nextcard h2 { font-size: 18px; }
.jobgrid { margin-top: 14px; }
@media (max-width: 900px) { .jobgrid .o0 { order: 0; } }
.saved-hint { font-weight: 400; color: var(--faint); }
.dates { align-items: flex-end; }
.kv details summary { color: var(--ink); }
/* CV editor: groups separated by lines, not boxes inside a box */
.cved .entry { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; padding: 16px 0 6px; margin: 0; }
.cved .entry:first-child { border-top: 0; padding-top: 4px; }
@media (max-width: 820px) { .tabs a { font-size: 12px; } }
/* Applications: indigo = stage only */
.tjob { padding: 13px 16px; }
