:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f1f3f8;
  --text: #121826;
  --muted: #5d667a;
  --border: #e3e6ee;
  --accent: #4f46e5;
  --accent-ink: #ffffff;
  --accent-soft: #eceafe;
  --good: #0f8a5f;
  --good-soft: #e3f6ee;
  --bad: #c2410c;
  --bad-soft: #fdeee4;
  --warn: #a16207;
  --warn-soft: #fdf5d9;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .05);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1017;
    --surface: #161a23;
    --surface-2: #1d222d;
    --text: #e8ebf2;
    --muted: #98a1b3;
    --border: #2a303d;
    --accent: #8b85ff;
    --accent-ink: #0d1017;
    --accent-soft: #24224a;
    --good: #4ade9b;
    --good-soft: #13291f;
    --bad: #fb923c;
    --bad-soft: #2d1a10;
    --warn: #facc15;
    --warn-soft: #2a2410;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 Inter, system-ui, -apple-system, sans-serif;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h2 { font-size: 17px; margin-bottom: 14px; }
h3 { font-size: 14px; }
.muted { color: var(--muted); margin-top: -6px; }
small { color: var(--muted); }

.top { border-bottom: 1px solid var(--border); background: var(--surface); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.logo { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.demo-banner { background: var(--warn-soft); color: var(--warn); border: 1px solid currentColor; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }
.demo-banner strong { display: block; margin-bottom: 2px; }
.demo-pill { font-size: 12px; background: var(--warn-soft); color: var(--warn); padding: 4px 10px; border-radius: 99px; }
.admin-bar { display: flex; flex-shrink: 0; align-items: center; gap: 8px; margin-left: auto; }
.admin-pill { white-space: nowrap; font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent); padding: 4px 10px; border-radius: 99px; }
.admin-dialog { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); padding: 22px; width: min(360px, calc(100vw - 32px)); }
.admin-dialog::backdrop { background: rgb(0 0 0 / .45); }
.admin-dialog h3 { margin: 0 0 14px; }
.admin-dialog input { margin-bottom: 12px; }
.admin-err { color: var(--bad); font-size: 13px; margin: 0 0 10px; }
.admin-actions { display: flex; justify-content: flex-end; gap: 8px; }

.hero { padding: 40px 0 24px; max-width: 680px; }
.hero h1 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -.02em; }
.hero p { color: var(--muted); font-size: 16px; margin: 12px 0 22px; }
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 6px 12px 6px 6px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); }
.steps li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 600; font-size: 12px; }
.steps li.active { color: var(--text); border-color: var(--accent); }
.steps li.active span, .steps li.done span { background: var(--accent); color: var(--accent-ink); }
.steps li { transition: border-color .4s ease, color .4s ease, transform .2s ease; }
.steps li span { transition: background .4s ease, color .4s ease; }
.steps li.done { color: var(--text); }
.steps li.just-done span { animation: pop .4s ease-out; }
.steps li.active { animation: stepArrive .5s .75s ease-out backwards; }
@keyframes stepArrive { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }

/* progress track + paper plane */
.steps-wrap { position: relative; display: inline-block; max-width: 100%; padding-bottom: 20px; }
.steps-track { position: absolute; left: 18px; right: 18px; bottom: 5px; height: 2px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 11px); }
.steps-fill { height: 100%; width: var(--fill, 0px); border-radius: 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 35%, transparent), var(--accent));
  transition: width 1s cubic-bezier(.65, 0, .35, 1); }
.plane { position: absolute; top: -10px; left: 0; width: 22px; height: 22px; color: var(--accent);
  transform: translateX(var(--x, 0px)); transition: transform 1s cubic-bezier(.65, 0, .35, 1); }
.plane-body { width: 100%; height: 100%; overflow: visible; animation: planeFloat 2.6s ease-in-out infinite; }
.plane-wing { fill: var(--accent-soft); stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.plane-fold { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.plane.flying .plane-body { animation: planeFly 1s cubic-bezier(.65, 0, .35, 1); }
.plane.backward .plane-body { animation: planeBack 1s cubic-bezier(.65, 0, .35, 1); }
.no-anim, .no-anim * { transition: none !important; }
@keyframes planeFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-4deg); } }
@keyframes planeFly { 0% { transform: rotate(0); } 25% { transform: translateY(-12px) rotate(-18deg); } 60% { transform: translateY(-9px) rotate(-6deg); } 85% { transform: translateY(1px) rotate(6deg); } 100% { transform: none; } }
@keyframes planeBack { 0% { transform: scaleX(-1); } 50% { transform: translateY(-8px) scaleX(-1) rotate(-10deg); } 100% { transform: scaleX(1); } }


.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; box-shadow: var(--shadow); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 > .card, .grid-3 > .card { margin-bottom: 0; }
.grid-2, .grid-3 { margin-bottom: 16px; }
@media (max-width: 800px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.field-label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 8px; }
.field-label + input { margin-bottom: 4px; }
.drop { display: flex; align-items: center; gap: 16px; border: 1.5px dashed var(--border); border-radius: 12px; padding: 22px; cursor: pointer; margin-bottom: 22px; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop.has-file { border-style: solid; border-color: var(--good); background: var(--good-soft); }
.drop-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; font-size: 18px; flex: none; }
input[type=url], input[type=password], input[type=text], textarea { width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; }
input[type=url]:focus, input[type=password]:focus, input[type=text]:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.hint { display: block; margin-bottom: 16px; }
details { margin-bottom: 18px; }
summary { cursor: pointer; color: var(--accent); font-weight: 500; font-size: 14px; margin-bottom: 10px; }
textarea { resize: vertical; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; font-size: 14px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.small { padding: 5px 10px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.error { background: var(--bad-soft); color: var(--bad); padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Opening splash ---- */
.splash { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: var(--bg); transition: opacity .45s ease, transform .45s ease; }
.splash.out { opacity: 0; transform: scale(1.03); pointer-events: none; }
.splash-inner { display: grid; justify-items: center; gap: 6px; }
.splash-mark { width: 132px; height: 132px; overflow: visible; }
.splash-mark * { transform-box: fill-box; transform-origin: center; }
.sp-ring-bg { fill: none; stroke: var(--surface-2); stroke-width: 6; }
.sp-ring { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; transform: rotate(-90deg); animation: sp-ring 1.25s .3s cubic-bezier(.22,1,.36,1) forwards; }
.sp-tile { fill: var(--accent); transform: scale(.4); opacity: 0; animation: sp-pop .55s cubic-bezier(.34,1.56,.64,1) forwards; }
.sp-doc, .sp-lines, .sp-check { fill: none; stroke: var(--accent-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sp-doc { stroke-dasharray: 140; stroke-dashoffset: 140; animation: sp-draw .55s .25s ease-out forwards; }
.sp-lines { stroke-width: 2.5; opacity: .75; stroke-dasharray: 60; stroke-dashoffset: 60; animation: sp-draw .5s .55s ease-out forwards; }
.sp-scan { fill: var(--accent-ink); opacity: 0; animation: sp-scan .55s .75s ease-in-out forwards; }
.sp-check { stroke: var(--good); stroke-width: 4.5; stroke-dasharray: 30; stroke-dashoffset: 30; animation: sp-draw .35s 1.2s cubic-bezier(.65,0,.35,1) forwards; }
.splash-word { font-size: 22px; font-weight: 700; letter-spacing: -.01em; opacity: 0; transform: translateY(8px); animation: sp-rise .5s .45s ease-out forwards; }
.splash-tag { font-size: 13px; color: var(--muted); opacity: 0; transform: translateY(6px); animation: sp-rise .5s .7s ease-out forwards; }
@keyframes sp-pop { to { transform: scale(1); opacity: 1; } }
@keyframes sp-draw { to { stroke-dashoffset: 0; } }
@keyframes sp-ring { to { stroke-dashoffset: 68; } }
@keyframes sp-scan { 0% { opacity: .0; transform: translateY(0); } 20% { opacity: .55; } 100% { opacity: 0; transform: translateY(40px); } }
@keyframes sp-rise { to { opacity: 1; transform: none; } }

/* ---- Analysis loader ---- */
.loader { display: flex; align-items: center; gap: 24px; }
@media (max-width: 600px) { .loader { flex-direction: column; align-items: stretch; } .loader-art { align-self: center; } }
.loader-art { width: 104px; height: 104px; flex: none; overflow: visible; }
.loader-art * { transform-box: fill-box; transform-origin: center; }
.la-doc { fill: var(--surface-2); stroke: var(--border); stroke-width: 2; }
.la-lines { fill: none; stroke: var(--muted); stroke-width: 3; stroke-linecap: round; opacity: .35; }
.la-scan { fill: var(--accent); opacity: 0; }
.la-up circle { fill: var(--accent); }
.la-up path { fill: none; stroke: var(--accent-ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.loader.uploading .la-up { animation: la-bob 1s ease-in-out infinite; }
.loader.processing .la-up { animation: la-away .35s ease-in forwards; }
.loader.processing .la-scan { animation: la-scan 1.6s ease-in-out infinite; }
.loader.processing .la-lines { animation: la-pulse 1.6s ease-in-out infinite; }
@keyframes la-bob { 50% { transform: translateY(-4px); } }
@keyframes la-away { to { transform: scale(0); opacity: 0; } }
@keyframes la-scan { 0% { opacity: 0; transform: translateY(0); } 15%, 85% { opacity: .22; } 100% { opacity: 0; transform: translateY(54px); } }
@keyframes la-pulse { 50% { opacity: .6; } }
.loader-body { flex: 1; min-width: 0; }
.loader-title { font-weight: 600; font-size: 15px; }
.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 10px 0 4px; }
.progress > div { height: 100%; width: 0; border-radius: 99px; transition: width .4s ease; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--good))); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.progress-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.stages li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); transition: color .2s; }
.stages li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); flex: none; box-sizing: border-box; }
.stages li.active { color: var(--text); font-weight: 500; }
.stages li.active::before { border-color: var(--accent); border-right-color: transparent; animation: spin .8s linear infinite; }
.stages li.done { color: var(--text); }
.stages li.done::before { border: 0; background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.2 2.2 4.8-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; animation: pop .25s ease-out; }
@keyframes pop { from { transform: scale(.4); } }

.optional { font-weight: 500; font-size: 12px; color: var(--muted); background: var(--surface-2); padding: 1px 7px; border-radius: 99px; margin-left: 4px; }
.drop-body { flex: 1; min-width: 0; }
.file-progress { height: 4px; border-radius: 99px; background: rgba(127,127,127,.18); overflow: hidden; margin-top: 8px; }
.file-progress > div { height: 100%; width: 0; background: var(--good); border-radius: 99px; transition: width .25s ease; }
.drop.has-file .drop-icon { background: var(--good); color: var(--surface); animation: pop .3s ease-out; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.score-card { display: flex; gap: 28px; align-items: center; }
@media (max-width: 600px) { .score-card { flex-direction: column; align-items: flex-start; } }
.ring-wrap { position: relative; width: 140px; height: 140px; flex: none; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-bg { stroke: var(--surface-2); }
.ring-fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 1s ease, stroke .3s; }
.ring-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-size: 38px; font-weight: 700; line-height: 1; }
.ring-num small { font-size: 13px; font-weight: 500; }
.job-line { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.job-source { font-size: 12px; color: var(--muted); margin: -4px 0 8px; }
.standing { display: inline-block; font-size: 13px; font-weight: 600; text-transform: capitalize; padding: 3px 10px; border-radius: 99px; }
.standing.s-long { background: var(--bad-soft); color: var(--bad); }
.standing.s-possible { background: var(--warn-soft); color: var(--warn); }
.standing.s-competitive, .standing.s-top { background: var(--good-soft); color: var(--good); }
.verdict { font-size: 16px; margin: 10px 0 14px; }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; }

.cat { margin-bottom: 14px; }
.cat-head { display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; }
.cat-head small { font-weight: 400; }
.bar { height: 8px; background: var(--surface-2); border-radius: 99px; margin: 6px 0 4px; overflow: hidden; }
.bar > div { height: 100%; border-radius: 99px; background: var(--accent); width: 0; transition: width .8s ease; }
.cat p { margin: 0; font-size: 13px; color: var(--muted); }
.cat.not-counted { opacity: .55; }
.cat p.cat-detail { color: var(--text); font-size: 12px; margin-bottom: 2px; }
.cap-note { font-size: 13px; color: var(--warn); background: var(--warn-soft); padding: 6px 10px; border-radius: 8px; margin: -4px 0 14px; display: inline-block; }

.coverage { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 18px; }
@media (max-width: 600px) { .coverage { grid-template-columns: 1fr; } }
.meter-head { display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; gap: 8px; }
.meter-head span:last-child { font-weight: 400; color: var(--muted); }
.meter-head strong { color: var(--text); }
.seg { display: flex; gap: 2px; height: 10px; border-radius: 99px; overflow: hidden; margin: 6px 0 2px; background: var(--surface-2); }
.seg .met { background: var(--good); }
.seg .partial { background: var(--warn); }
.seg .missing { background: var(--bad); opacity: .35; }
.req-groups .sub { color: var(--muted); margin-top: 6px; }
.reqs { list-style: none; padding: 0; margin: 0 0 12px; }
.req { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--border); font-size: 14px; }
.req:first-child { border-top: 0; }
.req-icon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.req.met .req-icon { background: var(--good-soft); color: var(--good); }
.req.partial .req-icon { background: var(--warn-soft); color: var(--warn); }
.req.missing .req-icon { background: var(--bad-soft); color: var(--bad); }
.req-text { font-weight: 500; }
.req-kind { font-size: 11px; font-weight: 500; color: var(--muted); background: var(--surface-2); padding: 1px 6px; border-radius: 4px; margin-left: 4px; text-transform: capitalize; }
.req-evidence { font-size: 13px; color: var(--muted); margin-top: 2px; }
.req-note { font-size: 12px; color: var(--warn); margin-top: 2px; }
.req.met .req-note { color: var(--muted); }
.req-status { font-size: 12px; font-weight: 600; }
.req.met .req-status { color: var(--good); }
.req.partial .req-status { color: var(--warn); }
.req.missing .req-status { color: var(--bad); }

.sub { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin: 4px 0 8px; }
.sub.good { color: var(--good); }
.sub.bad { color: var(--bad); margin-top: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 4px 10px; border-radius: 99px; }
#kw-matched .chip { background: var(--good-soft); color: var(--good); }
#kw-missing .chip { background: var(--bad-soft); color: var(--bad); }

.list { margin: 0; padding-left: 18px; }
.list li { margin-bottom: 8px; font-size: 14px; }
.list .empty { list-style: none; margin-left: -18px; color: var(--muted); }

.change { border-top: 1px solid var(--border); padding: 16px 0; }
.change:first-of-type { border-top: 0; padding-top: 4px; }
.change-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.prio { font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; }
.prio.high { background: var(--bad-soft); color: var(--bad); }
.prio.medium { background: var(--warn-soft); color: var(--warn); }
.prio.low { background: var(--surface-2); color: var(--muted); }
.change-section { font-size: 13px; color: var(--muted); }
.change-issue { font-weight: 600; font-size: 14px; }
.diff { display: grid; gap: 6px; margin: 8px 0; }
.diff div { padding: 9px 12px; border-radius: 8px; font-size: 14px; position: relative; }
.diff .old { background: var(--surface-2); color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(127,127,127,.5); }
.diff .new { background: var(--accent-soft); padding-right: 64px; }
.diff .new .copy { position: absolute; right: 6px; top: 6px; }
.why { font-size: 13px; color: var(--muted); margin: 0; }

.cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-color: var(--accent); }
.cta .muted { margin: 4px 0 0; }

.jobs-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.jobs-form input { flex: 1 1 200px; }
.jobs-form select { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.jobs-list { list-style: none; margin: 14px 0 0; padding: 0; }
.jobs-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.jobs-list .job-title { font-weight: 600; font-size: 14px; }
.jobs-list small { display: block; margin-top: 2px; }
.jobs-list .job-actions { display: flex; gap: 6px; flex-shrink: 0; }
.jobs-list .empty { color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { .jobs-list li { flex-direction: column; align-items: flex-start; } }
@media (max-width: 600px) { .cta { flex-direction: column; align-items: stretch; } }

.kit-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.positioning { margin: 0; font-size: 15px; color: var(--muted); max-width: 640px; }
.projection { text-align: center; font-size: 28px; font-weight: 700; flex: none; }
.projection .arrow { color: var(--muted); margin: 0 8px; font-weight: 400; }
.proj-to { color: var(--good); }
.projection small { display: block; font-size: 12px; font-weight: 500; }
@media (max-width: 600px) { .kit-head { flex-direction: column; align-items: flex-start; } }

.tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: none; }
.tab { font: inherit; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 99px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tab.active { background: var(--surface); border-color: var(--border); color: var(--text); }
.panel-actions { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 12px; }

.doc { background: var(--surface-2); border-radius: 10px; padding: 28px; }
.doc h1 { font-size: 24px; margin-bottom: 4px; }
.doc h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin: 20px 0 8px; border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.doc h3 { font-size: 15px; margin: 12px 0 4px; }
.doc p { margin: 0 0 8px; }
.doc ul { margin: 0 0 8px; padding-left: 20px; }
.prose { white-space: pre-wrap; }
.ph { background: var(--warn-soft); color: var(--warn); border-radius: 4px; padding: 0 3px; font-weight: 600; }

.msg { border-top: 1px solid var(--border); padding: 16px 0; }
.msg:first-child { border-top: 0; padding-top: 0; }
.msg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.msg-head h3 { flex: 1; }
.msg p { margin: 0; background: var(--surface-2); padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.msg .subject { font-weight: 600; margin-bottom: 6px; }
.count { font-size: 12px; color: var(--muted); }
.count.over { color: var(--bad); font-weight: 600; }

.tp { border-top: 1px solid var(--border); padding: 14px 0; }
.tp:first-child { border-top: 0; padding-top: 0; }
.tp h3 { margin-bottom: 6px; font-size: 15px; }
.tp p { margin: 0; color: var(--muted); font-size: 14px; }

.checklist { list-style: none; padding: 0; margin: 0 0 18px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.checklist input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.checklist li.done span { text-decoration: line-through; color: var(--muted); }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 9px 16px; border-radius: 10px; font-size: 14px; z-index: 10; }

/* ---- Resume chat ---- */
.chat-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; }
@media (max-width: 860px) { .chat-grid { grid-template-columns: 1fr; } }
.chat-pane { display: flex; flex-direction: column; min-height: 420px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; max-height: 520px; background: var(--surface-2); }
.msg-bubble { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; animation: bubble-in .25s ease-out; white-space: pre-wrap; }
.msg-bubble.user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.msg-bubble.assistant { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg-bubble ul { margin: 6px 0 0; padding-left: 16px; font-size: 12.5px; color: var(--muted); white-space: normal; }
.msg-bubble li.warn { color: var(--warn); }
.msg-bubble.error { border-color: var(--bad); color: var(--bad); }
@keyframes bubble-in { from { opacity: 0; transform: translateY(6px); } }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 0; background: var(--surface); }
.chat-suggest button { font: inherit; font-size: 12.5px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.chat-suggest button:hover { border-color: var(--accent); color: var(--accent); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px 12px; background: var(--surface); align-items: flex-end; }
.chat-form textarea { flex: 1; min-height: 44px; max-height: 140px; }
.chat-preview .doc { max-height: 560px; overflow-y: auto; padding: 22px; font-size: 14px; }
.chat-preview .doc.plain { white-space: pre-wrap; font-size: 13px; }
.chat-preview .panel-actions { align-items: center; }
.preview-label { margin-right: auto; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.preview-label.edited { color: var(--good); }
.doc.flash { animation: flash 1s ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 3px var(--good-soft), 0 0 0 5px var(--good); } }

/* ---- Free preview ---- */
.preview-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px; font-size: 14px; }
.preview-banner strong { display: block; margin-bottom: 2px; }
.preview-banner span { color: var(--muted); }
@media (max-width: 700px) { .preview-banner { flex-direction: column; align-items: stretch; } }
.contact-link { color: var(--accent); font-weight: 500; }
.locked { position: relative; border: 1px dashed var(--border); border-radius: 12px; overflow: hidden; margin-top: 10px; }
.locked-blur { padding: 18px; display: grid; gap: 10px; filter: blur(3px); opacity: .55; user-select: none; }
.locked-blur span { height: 12px; border-radius: 6px; background: var(--surface-2); }
.locked-blur span:nth-child(1) { width: 85%; } .locked-blur span:nth-child(2) { width: 65%; } .locked-blur span:nth-child(3) { width: 75%; }
.locked-body { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 4px; padding: 12px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.locked-body p { margin: 0 0 6px; font-size: 13px; color: var(--muted); max-width: 380px; }
.lock-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.lock-icon svg { width: 15px; height: 15px; }
.locked.tall .locked-blur { padding: 60px 18px; }
.lock-line { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.lock-line svg { width: 12px; height: 12px; }
.chip.lock-chip { background: var(--surface-2); color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.chip.lock-chip svg { width: 12px; height: 12px; }
.list li.locked-li { list-style: none; margin-left: -18px; }

/* ---- Mode tabs (resume / LinkedIn) ---- */
.mode-tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; margin-bottom: 20px; }
.mode-tab { flex: 1; font: inherit; font-weight: 600; font-size: 14px; padding: 10px 12px; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.mode-tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow), 0 0 0 1px var(--border); }
#linkedin-fields input[type=file] { font: inherit; font-size: 13px; margin-bottom: 4px; }

/* show/hide password */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.admin-dialog .pw-wrap { margin-bottom: 12px; }
.admin-dialog .pw-wrap input { margin-bottom: 0; }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; background: none; border: 0; border-radius: 8px; color: var(--muted); cursor: pointer; }
.eye:hover { color: var(--text); background: var(--accent-soft); }
.eye:focus-visible { outline: 2px solid var(--accent); }
.eye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eye .eye-off, .eye[aria-pressed="true"] .eye-open { display: none; }
.eye[aria-pressed="true"] .eye-off { display: inline; }

/* saved runs (admin) */
.history-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.history-head h3 { margin: 0; }
.history-note { font-size: 12px; color: var(--muted); }
.history-last { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; background: var(--accent-soft); margin-bottom: 12px; }
.history-last .h-tag { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.history-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 360px; overflow-y: auto; }
.history-item { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; }
.h-score { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; background: var(--surface); border: 2px solid var(--border); }
.h-main { flex: 1 1 auto; min-width: 0; }
.h-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-target, .h-date { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-empty { color: var(--muted); font-size: 14px; }

/* compare resumes (Pro) */
.pro-tag { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); padding: 1px 6px; border-radius: 99px; margin-left: 4px; vertical-align: 1px; }
#compare-fields input[type=file] { font: inherit; font-size: 13px; margin-bottom: 4px; }
.compare-picked { list-style: none; padding: 0; margin: 6px 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.compare-picked li { font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 99px; padding: 3px 10px; }
.cmp-head h2 { margin: 0 0 4px; }
.cmp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 14px 0 22px; }
.cmp-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: grid; gap: 8px; align-content: start; }
.cmp-card.best { border: 2px solid var(--good); }
.cmp-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cmp-rank { font-size: 12px; font-weight: 700; color: var(--muted); }
.cmp-card.best .cmp-rank { color: var(--good); }
.cmp-name { font-weight: 600; overflow-wrap: anywhere; }
.cmp-score { font-size: 32px; font-weight: 700; line-height: 1; }
.cmp-score small { font-size: 13px; color: var(--muted); font-weight: 500; }
.cmp-stats { font-size: 13px; color: var(--muted); display: grid; gap: 2px; }
.cmp-sub { font-size: 12px; font-weight: 600; margin-top: 4px; }
.cmp-list { margin: 0; padding-left: 18px; font-size: 13px; }
.cmp-table-wrap { overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cmp-table th, .cmp-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); text-align: center; }
.cmp-table th:first-child, .cmp-table td:first-child { text-align: left; }
.cmp-table th { font-weight: 600; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.cmp-must { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--bad); margin-left: 6px; }
.cmp-grid-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 10px; }
.cmp-grid-head h3 { margin: 0; }
.cmp-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cmp-legend li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 4px 10px 4px 4px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); }
.mark { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; font-weight: 700; line-height: 1; }
.st-met { background: var(--good-soft); color: var(--good); }
.st-partial { background: var(--warn-soft); color: var(--warn); }
.st-missing { background: var(--bad-soft); color: var(--bad); }
.cmp-foot { font-size: 12px; font-style: italic; color: var(--muted); margin: 10px 0 0; }
.cmp-card .standing { text-transform: none; white-space: nowrap; font-size: 12px; }
.cmp-rank { white-space: nowrap; }
.cmp-top .standing:only-child { margin-left: auto; }

/* comparison verdict callout */
.cmp-callout { display: flex; gap: 14px; align-items: flex-start; margin: 14px 0 4px; padding: 14px 16px; border-radius: 12px;
  background: var(--good-soft); border: 1px solid color-mix(in srgb, var(--good) 35%, transparent); animation: cardIn .45s ease-out both; }
.cmp-callout.tie { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.cmp-callout-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--good); color: var(--surface); animation: pop .5s .2s ease-out both; }
.cmp-callout.tie .cmp-callout-icon { background: var(--warn); }
.cmp-callout-icon svg { width: 18px; height: 18px; fill: currentColor; }
.cmp-callout-label { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--good); margin-bottom: 2px; }
.cmp-callout.tie .cmp-callout-label { color: var(--warn); }
.cmp-callout p { margin: 0; font-size: 15px; line-height: 1.5; }

/* micro-interactions */
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes markIn { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes bestGlow { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 45%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
@keyframes starSpin { from { transform: rotate(-120deg) scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.cmp-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; animation: cardIn .45s ease-out backwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); will-change: transform; }
.cmp-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(16, 24, 40, .12); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.cmp-card.best { animation: cardIn .45s ease-out backwards, bestGlow 1.1s .7s ease-out 1; animation-delay: 120ms, 700ms; }
.cmp-card.best:hover { border-color: var(--good); box-shadow: 0 10px 28px color-mix(in srgb, var(--good) 22%, transparent); }
.cmp-card .star { display: inline-block; animation: starSpin .6s .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.cmp-card .cmp-list li { transition: transform .15s ease; }
.cmp-card:hover .cmp-list li { transform: translateX(2px); }
.cmp-table tbody tr { transition: background .15s ease; }
.cmp-table tbody tr:hover { background: var(--surface-2); }
.cmp-table .mark { animation: markIn .3s ease-out backwards; animation-delay: calc(var(--r, 0) * 25ms + 300ms); transition: transform .15s ease; }
.cmp-table tbody tr:hover .mark { transform: scale(1.12); }
.cmp-legend li { transition: transform .15s ease, border-color .15s ease; }
.cmp-legend li:hover { transform: translateY(-1px); border-color: var(--accent); }
.history-item { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.history-item:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(16, 24, 40, .08); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.btn { transition: transform .12s ease, box-shadow .2s ease, background .2s ease; }
.btn:active { transform: scale(.97); }
.mode-tab:active { transform: scale(.98); }

/* hero news bulletin */
.bulletin { display: flex; align-items: center; gap: 12px; margin: 14px 0 22px; padding: 10px 12px 10px 10px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); max-width: 640px; }
.bulletin-tag { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); animation: livePulse 1.6s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 60%, transparent); } 100% { box-shadow: 0 0 0 6px transparent; } }
.bulletin-items { flex: 1; min-width: 0; display: grid; list-style: none; margin: 0; padding: 0; }
.bulletin-items li { grid-area: 1 / 1; align-self: center; font-size: 15px; line-height: 1.45; color: var(--muted);
  opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.bulletin-items li.active { opacity: 1; transform: none; pointer-events: auto; }
.bulletin-items li.leaving { opacity: 0; transform: translateY(-10px); }
.bulletin-items strong { color: var(--text); font-weight: 600; }
.bulletin-dots { flex: none; display: flex; gap: 5px; }
.bulletin-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: var(--border); cursor: pointer; transition: width .3s ease, background .3s ease; }
.bulletin-dots button.on { width: 18px; background: var(--accent); }
@media (max-width: 600px) { .bulletin { flex-wrap: wrap; } .bulletin-items { flex-basis: 100%; order: 3; } .bulletin-dots { margin-left: auto; } }

/* headline typewriter: every letter is laid out from the start (no layout shift), revealed one by one */
.tw-char { visibility: hidden; }
.tw-char.on { visibility: visible; }
.tw-caret { display: inline-block; width: 3px; height: .95em; margin-left: 2px; vertical-align: -.1em; border-radius: 2px;
  background: var(--accent); animation: caretBlink 1s steps(1) infinite; }
.tw-caret.done { animation: caretBlink 1s steps(1) 3, caretOut .4s 3s forwards; }
@keyframes caretBlink { 50% { opacity: 0; } }
@keyframes caretOut { to { opacity: 0; width: 0; margin-left: 0; } }

/* eligibility gates */
.gates { margin: 4px 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
.gates-title { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--warn); margin-bottom: 6px; }
.gates ul { margin: 0 0 6px; padding-left: 18px; font-size: 14px; }
.gates small { color: var(--muted); font-size: 12px; }

/* two lenses + skim */
.lens-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.lens { border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: grid; gap: 6px; align-content: start;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.lens:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(16, 24, 40, .1); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.lens-label { font-weight: 700; font-size: 14px; }
.lens-label span { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.lens-num { font-size: 28px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lens-num small { font-size: 14px; color: var(--muted); font-weight: 500; }
.lens p { margin: 0; font-size: 13px; color: var(--muted); }
.lens .chips { margin-top: 2px; }

/* points per edit */
.projected { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 14px; padding: 12px 14px; border-radius: 12px;
  background: var(--good-soft); border: 1px solid color-mix(in srgb, var(--good) 30%, transparent); font-size: 14px; }
.projected strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.projected .arrow { color: var(--good); font-weight: 700; }
.gain { margin-left: auto; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--good-soft); color: var(--good); white-space: nowrap; }

/* history trend + outcome */
.h-trend { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.h-trend b { color: var(--good); }
.h-outcome { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; align-items: center; }
.h-outcome span { font-size: 12px; color: var(--muted); margin-right: 2px; }
.h-outcome button { font: inherit; font-size: 11px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; }
.h-outcome button.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); font-weight: 700; }

/* job fit */
.job-fit { display: block; font-size: 12px; color: var(--good); margin-top: 2px; }
.chip.miss { background: var(--bad-soft); color: var(--bad); border-color: transparent; }

/* decision + confidence */
.assess { margin: 0 0 12px; display: grid; gap: 6px; }
.assess-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.decision { font-weight: 700; font-size: 14px; padding: 5px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.decision.apply { background: var(--good-soft); color: var(--good); }
.decision.stretch, .decision.provisional { background: var(--warn-soft); color: var(--warn); }
.decision.deprioritize, .decision.ineligible { background: var(--bad-soft); color: var(--bad); }
.confidence { font-size: 12px; font-weight: 600; color: var(--muted); padding: 4px 10px; border-radius: 99px; border: 1px solid var(--border); cursor: help; }
.assess-why { margin: 0; font-size: 14px; }
.assess-reasons { margin: 0; padding-left: 18px; font-size: 12px; color: var(--muted); }

/* gate toggles */
.gates li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 4px; }
.gates ul { list-style: none; padding-left: 0; }
.gate-btns { display: inline-flex; gap: 4px; margin-left: auto; }
.gate-btns button { font: inherit; font-size: 11px; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; }
.gate-btns button.on.yes { background: var(--good-soft); color: var(--good); border-color: var(--good); font-weight: 700; }
.gate-btns button.on.no { background: var(--bad-soft); color: var(--bad); border-color: var(--bad); font-weight: 700; }

/* writing checks */
.writing-flags { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.wf-title { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.writing-flags ul { margin: 0; padding-left: 18px; font-size: 14px; }

/* LinkedIn discoverability */
#discover > .card { margin-bottom: 16px; }
.smap-row { display: grid; grid-template-columns: minmax(0, 1.4fr) 70px minmax(0, 1fr) 80px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.smap-row .kind, .evid .kind { font-size: 12px; color: var(--muted); }
.smap-bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.smap-bar > div { height: 100%; background: var(--accent); }
.tag { font-size: 12px; padding: 1px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); justify-self: start; }
.tag.essential, .tag.proven, .tag.high { background: var(--good-soft); color: var(--good); }
.tag.missing, .tag.none { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.tag.claimed, .tag.low { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.evid, .searches { list-style: none; padding: 0; margin: 0; }
.evid > li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.evid .places { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.searches > li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.searches .s-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.searches code { display: block; margin: 6px 0; font-size: 13px; overflow-wrap: anywhere; color: var(--muted); }
.searches ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.rewrite { border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.rewrite .head { font-weight: 600; margin-bottom: 6px; }
.rewrite .pa { font-size: 13px; color: var(--muted); margin: 4px 0; }
.rewrite .warn { font-size: 13px; color: var(--warn); margin: 6px 0 0; }
#appear-text { width: 100%; margin-bottom: 8px; }
#appear-out .chips { margin: 6px 0 10px; }
#smap > p.muted { margin-top: 10px; }
@media (max-width: 600px) { .smap-row { grid-template-columns: minmax(0, 1fr) 60px; } .smap-row .smap-bar, .smap-row .share { display: none; } }

/* service health (admin) */
.health-dialog { width: min(460px, calc(100vw - 32px)); }
.health-list { list-style: none; padding: 0; margin: 10px 0 16px; display: grid; gap: 10px; }
.health-list li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: start; }
.health-list .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; grid-row: span 2; }
.dot.ok { background: var(--good); } .dot.error { background: var(--bad); } .dot.off { background: var(--border); }
.health-list b { font-size: 14px; }
.health-list span { font-size: 13px; color: var(--muted); }
