@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..700;1,9..144,400..700&family=Figtree:wght@400;500;600;700;800&display=swap");

/* Scraper components. Every value comes from tokens.css. Class prefix: sc- */

/* Base */
html, body { background: var(--surface); color: var(--ink); }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
.sc-preview { padding: var(--space-20); display: flex; flex-wrap: wrap; gap: var(--space-16); align-items: flex-start; }
.sc-preview--col { flex-direction: column; }
.sc-preview--sunk { background: var(--surface-sunk); }
.sc-stack { display: flex; flex-direction: column; gap: var(--space-10); }
.sc-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8); }
.sc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sc-icon { width: 20px; height: 20px; flex: none; }
.sc-icon--sm { width: 14px; height: 14px; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
a { color: var(--ink); text-underline-offset: 4px; }
a:hover { color: var(--burgundy-ink); }

/* Button */
.sc-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8); font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2; min-height: 50px; padding: 0 var(--space-24); border: 0; border-radius: var(--radius-pill); background: var(--fill-soft); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform 120ms ease, box-shadow 120ms ease; }
.sc-btn:hover { color: inherit; transform: translateY(-1px); }
.sc-btn:active { transform: translateY(0); }
.sc-btn--primary { background: var(--burgundy); color: var(--on-burgundy); font-size: 18px; min-height: 54px; padding: 0 30px; border-radius: var(--radius-md); box-shadow: var(--shadow-cta); }
.sc-btn--primary:hover { color: var(--on-burgundy); }
.sc-btn--inverse { background: var(--inverse); color: var(--ink-inverse); }
.sc-btn--inverse:hover { color: var(--ink-inverse); }
.sc-btn--danger { background: transparent; color: var(--burgundy-ink); box-shadow: inset 0 0 0 1.5px var(--burgundy-ink); }
.sc-btn--block { display: flex; width: 100%; }
.sc-btn--sm { min-height: 28px; padding: 0 var(--space-8); font-size: 12px; border-radius: var(--radius-sm); }
.sc-btn--sm.sc-btn--outline { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.sc-btn--md { min-height: 40px; padding: 0 var(--space-16); font-size: 14px; }
.sc-btn[disabled], .sc-btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.sc-link { font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-muted); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.sc-link:hover { color: var(--burgundy-ink); }
.sc-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: sc-spin 800ms linear infinite; }
@keyframes sc-spin { to { transform: rotate(360deg); } }

/* Sidebar */
.sc-sidebar { box-sizing: border-box; width: 248px; max-width: 100%; min-height: 100%; background: var(--surface-sunk); padding: var(--space-28) var(--space-20); display: flex; flex-direction: column; gap: var(--space-32); }
.sc-brand { display: flex; align-items: center; gap: var(--space-10); font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.sc-brand svg { width: 34px; height: 34px; flex: none; color: var(--burgundy); }
.sc-nav { display: flex; flex-direction: column; gap: var(--space-6); }
.sc-nav a { display: flex; align-items: center; gap: var(--space-12); text-decoration: none; font-weight: 600; font-size: 16px; padding: 13px var(--space-16); border-radius: var(--radius-md); color: var(--ink); }
.sc-nav a:hover { background: var(--fill-soft); color: var(--ink); }
.sc-nav a[aria-current="page"] { background: var(--burgundy); color: var(--on-burgundy); font-weight: 700; }
.sc-nav__count { margin-left: auto; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--surface-raised); color: var(--ink-muted); }
.sc-sidebar__foot { margin-top: auto; display: flex; flex-direction: column; gap: var(--space-12); }
.sc-sidebar__note { padding: var(--space-16); border-radius: var(--radius-lg); background: var(--surface-field); font-size: 15px; line-height: 1.5; font-weight: 500; color: var(--ink-muted); }

/* Tabs */
.sc-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--radius-pill); background: var(--fill-soft); max-width: 100%; box-sizing: border-box; }
.sc-tab { font: inherit; display: inline-flex; align-items: center; gap: var(--space-8); min-height: 38px; padding: 0 var(--space-16); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink-muted); font-weight: 600; font-size: 14px; cursor: pointer; }
.sc-tab:hover { color: var(--ink); }
.sc-tab[aria-selected="true"] { background: var(--surface-raised); color: var(--ink); font-weight: 700; box-shadow: var(--shadow-raised); }
.sc-tab__count { font-size: 12px; font-weight: 700; min-width: 20px; padding: 1px 6px; border-radius: var(--radius-pill); background: var(--surface-field); color: var(--ink-muted); text-align: center; font-variant-numeric: tabular-nums; }
.sc-tab[aria-selected="true"] .sc-tab__count { background: var(--burgundy); color: var(--on-burgundy); }

/* Filter chip */
.sc-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); }
.sc-filters__label { font-size: 13px; font-weight: 600; color: var(--ink-muted); margin-right: var(--space-6); }
.sc-fchip { font: inherit; display: inline-flex; align-items: center; gap: var(--space-6); min-height: 32px; padding: 0 var(--space-12); border-radius: var(--radius-pill); border: 0; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.sc-fchip[aria-pressed="true"] { background: var(--inverse); color: var(--ink-inverse); box-shadow: none; }
.sc-fchip__count { font-size: 12px; font-weight: 700; opacity: 0.75; font-variant-numeric: tabular-nums; }

/* Field */
.sc-field { display: flex; flex-direction: column; gap: var(--space-8); font-weight: 600; font-size: 13px; color: var(--ink-muted); min-width: 0; }
.sc-field__hint { font-weight: 500; }
.sc-input { box-sizing: border-box; width: 100%; font: inherit; font-weight: 500; font-size: 16px; line-height: 1.3; padding: 15px var(--space-16); border-radius: var(--radius-md); border: 2px solid var(--line-field); background: var(--surface-field); color: var(--ink); outline: none; }
.sc-input::placeholder { color: var(--ink-placeholder); }
.sc-input:focus { border-color: var(--focus); }
.sc-input:focus-visible { outline: none; }
.sc-input[aria-invalid="true"] { border-color: var(--burgundy-ink); }
.sc-field__error { display: flex; align-items: center; gap: var(--space-6); font-weight: 600; color: var(--burgundy-ink); }
.sc-select { position: relative; display: block; }
.sc-select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.sc-select::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--ink-muted); border-bottom: 2px solid var(--ink-muted); transform: rotate(45deg); pointer-events: none; }
.sc-secret { display: flex; gap: var(--space-8); }
.sc-secret .sc-input { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 14px; }
.sc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: var(--space-14); align-items: end; }

/* Source toggle */
.sc-sources { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8); }
.sc-source { position: relative; display: inline-flex; align-items: center; gap: var(--space-8); min-height: 38px; padding: 0 15px; border-radius: var(--radius-pill); background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--ink-muted); font-weight: 600; font-size: 14px; cursor: pointer; }
.sc-source input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sc-source svg { width: 13px; height: 13px; display: none; }
.sc-source svg path { stroke: var(--check); }
.sc-source:has(input:checked) { background: var(--fill-soft); box-shadow: none; color: var(--ink); }
.sc-source:has(input:checked) svg { display: block; }
.sc-source:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.sc-source__note { font-weight: 500; color: var(--ink-muted); font-size: 12px; }

/* Search block */
.sc-search { box-sizing: border-box; background: var(--surface-raised); border-radius: var(--radius-xl); padding: var(--space-24); box-shadow: var(--shadow-search); display: flex; flex-direction: column; gap: var(--space-20); }
.sc-search__more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-12); padding-top: var(--space-16); border-top: 1px solid var(--line); }

/* Mode choice */
.sc-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: var(--space-12); }
.sc-mode { position: relative; display: flex; flex-direction: column; gap: var(--space-6); padding: var(--space-16) var(--space-20) var(--space-20); border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.sc-mode input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sc-mode__name { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ink); }
.sc-mode__desc { font-size: 14px; line-height: 1.45; color: var(--ink-muted); }
.sc-mode__tick { position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-strong); display: flex; align-items: center; justify-content: center; }
.sc-mode__tick svg { display: none; width: 12px; height: 12px; }
.sc-mode:has(input:checked) { box-shadow: inset 0 0 0 2px var(--burgundy-ink); }
.sc-mode:has(input:checked) .sc-mode__tick { background: var(--burgundy); box-shadow: none; }
.sc-mode:has(input:checked) .sc-mode__tick svg { display: block; }
.sc-mode:has(input:checked) .sc-mode__tick path { stroke: var(--on-burgundy); }
.sc-mode:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Fit score */
.sc-score { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--score-low); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1; font-variant-numeric: tabular-nums; }
.sc-score--high { background: var(--score-high); }
.sc-score--mid { background: var(--score-mid); }
.sc-score--none { background: transparent; box-shadow: inset 0 0 0 2px var(--line-strong); color: var(--ink-muted); font-family: var(--font-body); font-size: 11px; font-weight: 700; }
.sc-score--lg { width: 92px; height: 92px; font-size: 38px; }
.sc-score__label { margin-top: 2px; font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--ink-score); }

/* Skill chip */
.sc-chip { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--sage-soft); color: var(--sage-ink); font-weight: 700; font-size: 11px; line-height: 1.3; white-space: nowrap; }
.sc-chip--missing { background: var(--burgundy-soft); color: var(--burgundy-ink); }
.sc-chip--lg { padding: 6px 14px; font-size: 13px; }

/* Status tag */
.sc-status { display: inline-flex; align-items: center; gap: var(--space-6); padding: 4px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; line-height: 1.2; white-space: nowrap; background: var(--score-low); color: var(--ink-muted); }
.sc-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.sc-status--interested { background: var(--ochre-soft); color: var(--ochre-ink); }
.sc-status--applied { background: var(--sage-soft); color: var(--sage-ink); }
.sc-status--action { background: var(--burgundy-soft); color: var(--burgundy-ink); }
.sc-status--rejected { background: var(--score-low); color: var(--ink); }
.sc-status--rejected::before { border-radius: 1px; transform: rotate(45deg); }
.sc-status--quiet::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.sc-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--fill-soft); color: var(--ink-muted); font-size: 12px; font-weight: 700; line-height: 1.2; white-space: nowrap; }

/* Job card */
.sc-jobs { display: flex; flex-direction: column; gap: var(--space-10); }
.sc-job { box-sizing: border-box; background: var(--surface-raised); border-radius: var(--radius-lg); padding: var(--space-14) var(--space-16); box-shadow: var(--shadow-card); cursor: pointer; }
.sc-job[aria-current="true"] { outline: 2px solid var(--burgundy-ink); outline-offset: 0; }
.sc-job[aria-current="true"] .sc-job__title { color: var(--burgundy-ink); }
.sc-job__head { display: flex; align-items: center; gap: var(--space-12); }
.sc-job__text { min-width: 0; flex: 1; }
.sc-job__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.2; color: var(--ink); }
.sc-job__meta { margin: 2px 0 0; font-size: 13px; line-height: 1.35; color: var(--ink-muted); }
.sc-job__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); margin-top: var(--space-10); }
.sc-job__actions { display: flex; gap: var(--space-6); margin-left: auto; }
.sc-job--marked { background: var(--surface-field); box-shadow: none; }
.sc-job--marked .sc-job__title { color: var(--ink-muted); }

/* Job detail */
.sc-detail { box-sizing: border-box; min-width: 0; background: var(--surface-raised); border-radius: var(--radius-3xl); padding: 38px 42px 42px; box-shadow: var(--shadow-panel); }
.sc-detail__source { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 17px; color: var(--ink-muted); }
.sc-detail__title { margin: var(--space-6) 0 0; font-family: var(--font-display); font-weight: 500; font-size: 40px; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.sc-detail__meta { margin: var(--space-10) 0 0; font-size: 17px; color: var(--ink-muted); }
.sc-fit { margin-top: var(--space-28); padding: 22px var(--space-24); border-radius: var(--radius-2xl); background: var(--fill-fit); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-20); }
.sc-fit__body { flex: 1 1 220px; min-width: 0; }
.sc-fit__verdict { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 22px; line-height: 1.3; color: var(--ink); }
.sc-fit .sc-row { margin-top: var(--space-12); }
.sc-detail__actions { margin-top: var(--space-24); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-12); }
.sc-desc { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.sc-desc__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-6) var(--space-16); }
.sc-desc__head h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 26px; }
.sc-desc__head span { font-size: 14px; color: var(--ink-muted); }
.sc-desc h4 { margin: 22px 0 var(--space-6); font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.sc-desc p, .sc-desc ul { margin: 0; font-size: 17px; line-height: 1.65; max-width: 65ch; text-wrap: pretty; }
.sc-desc ul { padding-left: 22px; }

/* Card surface used by run, settings and login */
.sc-card { box-sizing: border-box; background: var(--surface-raised); border-radius: var(--radius-xl); padding: var(--space-24); box-shadow: var(--shadow-panel); min-width: 0; }
.sc-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-12); }
.sc-card__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.sc-muted { color: var(--ink-muted); }

/* Run progress */
.sc-progress { display: flex; flex-direction: column; gap: var(--space-12); margin-top: var(--space-20); }
.sc-progress__row { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: var(--space-12); font-size: 14px; font-weight: 600; }
.sc-progress__count { font-size: 13px; font-weight: 500; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.sc-bar { height: 8px; border-radius: var(--radius-pill); background: var(--fill-soft); overflow: hidden; }
.sc-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--burgundy); }
.sc-bar--done > span { background: var(--sage-ink); }
.sc-stats { display: flex; flex-wrap: wrap; gap: var(--space-12) var(--space-32); margin-top: var(--space-20); }
.sc-stat { display: flex; flex-direction: column; }
.sc-stat__num { font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sc-stat__label { font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.sc-log { margin-top: var(--space-20); max-height: 180px; overflow-y: auto; padding: var(--space-12) var(--space-14); border-radius: var(--radius-md); background: var(--surface-field); font-family: var(--font-mono); font-size: 13px; line-height: 1.6; color: var(--ink-muted); }
.sc-log__line { display: flex; gap: var(--space-8); }
.sc-log__line--ok { color: var(--sage-ink); }
.sc-log__line--err { color: var(--burgundy-ink); }

/* Data table */
.sc-table-wrap { overflow-x: auto; max-width: 100%; }
.sc-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.sc-table th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); padding: 0 var(--space-12) var(--space-10); white-space: nowrap; }
.sc-table td { padding: var(--space-12); border-top: 1px solid var(--line); white-space: nowrap; }
.sc-table tbody tr[data-clickable] { cursor: pointer; }
.sc-table tbody tr[data-clickable]:hover td { background: var(--fill-soft); }
.sc-table td.sc-num, .sc-table th.sc-num { text-align: right; }

/* Skill cluster */
.sc-cluster { box-sizing: border-box; background: var(--surface-raised); border-radius: var(--radius-lg); padding: 18px var(--space-20) var(--space-20); box-shadow: var(--shadow-card); min-width: 0; }
.sc-cluster__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-8) var(--space-12); }
.sc-cluster__name { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.sc-cluster__stats { display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-24); margin: var(--space-14) 0; }
.sc-cluster__stats .sc-stat__num { font-size: 22px; }
.sc-cluster__res { margin: var(--space-14) 0 0; font-size: 14px; color: var(--ink-muted); }
.sc-prio { display: inline-flex; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; background: var(--score-low); color: var(--ink-muted); }
.sc-prio--high { background: var(--burgundy-soft); color: var(--burgundy-ink); }
.sc-prio--medium { background: var(--ochre-soft); color: var(--ochre-ink); }

/* Study week */
.sc-week { box-sizing: border-box; background: var(--surface-raised); border-radius: var(--radius-xl); padding: var(--space-24); box-shadow: var(--shadow-card); min-width: 0; }
.sc-week__title { margin: 0 0 var(--space-16); font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.sc-week__title span { font-style: italic; font-weight: 400; color: var(--ink-muted); }
.sc-day { display: grid; grid-template-columns: 32px 1fr; gap: var(--space-12); padding: var(--space-14) 0; border-top: 1px solid var(--line); }
.sc-day__n { width: 32px; height: 32px; border-radius: 50%; background: var(--fill-soft); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.sc-day__focus { margin: 4px 0 0; font-weight: 700; font-size: 16px; }
.sc-day__focus span { font-weight: 500; font-size: 13px; color: var(--ink-muted); margin-left: var(--space-6); }
.sc-day ul { margin: var(--space-6) 0 0; padding-left: 18px; font-size: 15px; line-height: 1.55; }
.sc-day__out { margin: var(--space-8) 0 0; font-size: 14px; color: var(--ink-muted); }
.sc-day__out b { color: var(--ink); }

/* Download tile */
.sc-downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: var(--space-12); }
.sc-download { font: inherit; text-align: left; display: flex; flex-direction: column; gap: var(--space-6); padding: var(--space-16) var(--space-20) var(--space-20); border: 0; border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: var(--shadow-card); color: var(--ink); cursor: pointer; transition: transform 120ms ease; }
.sc-download:hover { transform: translateY(-2px); }
.sc-download svg { width: 28px; height: 28px; margin-bottom: var(--space-6); }
.sc-download svg path, .sc-download svg rect { stroke: var(--burgundy-ink); }
.sc-download__name { font-family: var(--font-mono); font-size: 14px; font-weight: 600; }
.sc-download__desc { font-size: 13px; color: var(--ink-muted); }

/* File upload */
.sc-upload { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-12); padding: var(--space-20); border-radius: var(--radius-lg); border: 2px dashed var(--line-strong); background: var(--surface-field); }
.sc-upload__text { font-size: 15px; font-weight: 600; }
.sc-upload__text span { display: block; font-size: 13px; font-weight: 500; color: var(--ink-muted); }
.sc-file { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8) var(--space-12); padding: var(--space-12) 0; border-top: 1px solid var(--line); font-size: 15px; }
.sc-file__name { font-family: var(--font-mono); font-size: 14px; font-weight: 600; }
.sc-file .sc-row { margin-left: auto; }

/* Auth card */
.sc-auth { box-sizing: border-box; width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: var(--space-20); }
.sc-auth__title { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 40px; line-height: 1.08; letter-spacing: -0.02em; }
.sc-auth__title em { color: var(--burgundy-ink); font-weight: 600; }
.sc-auth__lead { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-muted); }
.sc-auth form { display: flex; flex-direction: column; gap: var(--space-16); }
.sc-auth__switch { font-size: 15px; color: var(--ink-muted); text-align: center; }

/* Extension status */
.sc-ext { display: inline-flex; align-items: center; gap: var(--space-8); padding: var(--space-6) 14px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 700; background: var(--sage-soft); color: var(--sage-ink); }
.sc-ext::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.sc-ext span { font-weight: 500; opacity: 0.85; }
.sc-ext--off { background: var(--ochre-soft); color: var(--ochre-ink); }
.sc-ext--off::before { background: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.sc-ext--old { background: var(--burgundy-soft); color: var(--burgundy-ink); }

/* Token box */
.sc-token { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-10); padding: var(--space-12) var(--space-14); border-radius: var(--radius-md); border: 2px dashed var(--line-strong); background: var(--surface-field); }
.sc-token code { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 14px; color: var(--ink); }

/* Steps (extension setup) */
.sc-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: var(--space-14); }
.sc-steps li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: var(--space-12); font-size: 15px; line-height: 1.55; }
.sc-steps li::before { content: counter(step); width: 32px; height: 32px; border-radius: 50%; background: var(--fill-soft); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; }
.sc-steps li.is-done::before { content: "\2713"; background: var(--sage-soft); color: var(--sage-ink); font-family: var(--font-body); }
.sc-steps code { font-family: var(--font-mono); font-size: 13px; padding: 1px 6px; border-radius: 6px; background: var(--fill-soft); }

/* Notice */
.sc-notice { display: flex; align-items: flex-start; gap: var(--space-12); padding: var(--space-14) var(--space-16); border-radius: var(--radius-lg); background: var(--fill-soft); color: var(--ink); font-size: 15px; line-height: 1.5; font-weight: 500; }
.sc-notice__icon { flex: none; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; background: var(--ink); color: var(--fill-soft); }
.sc-notice a { color: inherit; font-weight: 700; }
.sc-notice--warn { background: var(--ochre-soft); color: var(--ochre-ink); }
.sc-notice--warn .sc-notice__icon { background: var(--ochre-ink); color: var(--ochre-soft); }
.sc-notice--error { background: var(--burgundy-soft); color: var(--burgundy-ink); }
.sc-notice--error .sc-notice__icon { background: var(--burgundy-ink); color: var(--burgundy-soft); }
.sc-notice--success { background: var(--sage-soft); color: var(--sage-ink); }
.sc-notice--success .sc-notice__icon { background: var(--sage-ink); color: var(--sage-soft); }

/* Toast */
.sc-toast { display: inline-flex; align-items: center; gap: var(--space-10); padding: var(--space-12) var(--space-20) var(--space-12) var(--space-16); border-radius: var(--radius-md); background: var(--inverse); color: var(--ink-inverse); font-size: 15px; font-weight: 600; box-shadow: var(--shadow-dialog); }
.sc-toast svg path { stroke: var(--ink-inverse); }
.sc-toast--error { background: var(--burgundy); color: var(--on-burgundy); }
.sc-toast--error svg path { stroke: var(--on-burgundy); }

/* Empty state */
.sc-empty { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-12); padding: 40px var(--space-24); border-radius: var(--radius-xl); border: 2px dashed var(--line); width: 100%; }
.sc-empty svg { width: 56px; height: 56px; color: var(--score-high); }
.sc-empty__title { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.sc-empty__text { margin: 0 0 var(--space-6); font-size: 15px; line-height: 1.5; color: var(--ink-muted); max-width: 38ch; }

/* Dialog */
.sc-scrim { position: relative; display: flex; align-items: center; justify-content: center; padding: var(--space-32) var(--space-16); background: var(--scrim); border-radius: var(--radius-xl); }
.sc-dialog { box-sizing: border-box; width: 100%; max-width: 440px; background: var(--surface-raised); border-radius: var(--radius-2xl); padding: var(--space-28); box-shadow: var(--shadow-dialog); display: flex; flex-direction: column; gap: var(--space-16); }
.sc-dialog__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 26px; }
.sc-dialog__text { margin: 0; font-size: 15px; color: var(--ink-muted); }
.sc-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: var(--space-10); }
.sc-choice { font: inherit; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: var(--space-16); border: 0; border-radius: var(--radius-lg); background: var(--fill-soft); color: var(--ink); cursor: pointer; }
.sc-choice:hover { box-shadow: inset 0 0 0 2px var(--burgundy-ink); }
.sc-choice b { font-size: 16px; }
.sc-choice span { font-size: 13px; color: var(--ink-muted); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (max-width: 520px) {
  .sc-detail { padding: var(--space-24) var(--space-20) var(--space-28); border-radius: var(--radius-xl); }
  .sc-detail__title, .sc-auth__title { font-size: 32px; }
  .sc-progress__row { grid-template-columns: 80px 1fr; }
  .sc-progress__count { grid-column: 2; }
}
