/* ATLAS customer app — star-chart identity.
   One bold element (the orbit score + star map); everything else quiet. */

:root {
  --night: #0E1430;
  --night-2: #121941;
  --panel: #161D45;
  --panel-2: #1C2453;
  --line: #2A3468;
  --line-soft: #222B5A;
  --text: #E8ECFB;
  --muted: #A3ABD3;
  --faint: #7C86B6;
  --aurora: #5EE6C4;
  --teal: #14B8A6;
  --turquoise: #40E0D0;
  --aurora-ink: #0B2A26;
  --flare: #FFB454;
  --danger: #FF8A8A;
  --ok: #5EE6C4;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 9px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--night);
  color: var(--text);
  font: 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
body::before {
  /* faint star field — static, decorative */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(232,236,251,.35), transparent 60%),
    radial-gradient(1px 1px at 68% 9%, rgba(232,236,251,.25), transparent 60%),
    radial-gradient(1.5px 1.5px at 84% 42%, rgba(232,236,251,.3), transparent 60%),
    radial-gradient(1px 1px at 32% 72%, rgba(232,236,251,.2), transparent 60%),
    radial-gradient(1px 1px at 52% 88%, rgba(232,236,251,.25), transparent 60%),
    radial-gradient(1px 1px at 92% 78%, rgba(232,236,251,.2), transparent 60%);
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(55vw 70vh at 100% 38%, rgba(20,184,166,.20), transparent 62%),
    radial-gradient(38vw 46vh at 92% 8%, rgba(64,224,208,.14), transparent 65%),
    radial-gradient(40vw 50vh at 96% 96%, rgba(20,184,166,.10), transparent 70%);
}
main, .bar { position: relative; z-index: 1; }

h1, h2, h3 { font-family: var(--display); font-weight: 650; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05; font-variation-settings: "wdth" 88; }
h2 { font-size: 1.35rem; line-height: 1.2; }
h3 { font-size: 1.05rem; line-height: 1.3; }
p { margin: 0; }
a { color: var(--aurora); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--aurora); color: var(--aurora-ink); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--aurora); outline-offset: 2px; }

/* ---------- controls ---------- */
button, .button {
  font: 600 15px/1 var(--body);
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  padding: 12px 18px;
  cursor: pointer;
  color: var(--text);
  background: var(--panel-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
button:disabled { opacity: .5; cursor: not-allowed; }
/* Press feedback on every button */
button, .button { transition: transform .08s ease, box-shadow .15s ease, background .15s ease, filter .15s ease; }
button:active:not(:disabled), .button:active { transform: scale(.97); filter: brightness(1.12); }
@media (prefers-reduced-motion: reduce) { button:active:not(:disabled), .button:active { transform: none; } }
button.is-sent, button.is-sent:hover { background: linear-gradient(90deg, #16A34A, #22C55E) !important; color: #fff !important; }
button.nudge { animation: btnNudge .4s ease; }
@keyframes btnNudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.sent.pop { animation: sentPop .45s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes sentPop { 0% { opacity: 0; transform: translateY(8px) scale(.97); } 100% { opacity: 1; transform: none; } }
.sent-check { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 6px; border-radius: 50%; background: #22C55E; color: #fff; font-size: 15px; vertical-align: 2px; }
.vid-err { display: block; margin-top: 4px; font-size: 12px; line-height: 1.35; color: #FFB4A8; white-space: normal; text-align: left; }
@media (prefers-reduced-motion: reduce) { button.nudge, .sent.pop { animation: none; } }
.primary { background: linear-gradient(90deg, var(--teal), var(--turquoise)); color: #062A28; }
.primary:hover:not(:disabled) { background: linear-gradient(90deg, #22CDB9, #6FEADD); }
.ghost { background: transparent; border-color: var(--line); }
.ghost:hover:not(:disabled) { border-color: var(--muted); }
.warn { background: transparent; border-color: var(--flare); color: var(--flare); }
.danger { background: transparent; border-color: rgba(255,138,138,.5); color: var(--danger); }
.small { padding: 8px 12px; font-size: 14px; }
.icon { background: transparent; padding: 6px 10px; font-size: 22px; line-height: 1; color: var(--muted); }
.link { background: none; border: 0; padding: 0; color: var(--aurora); font-weight: 600; }

input, select, textarea {
  font: 16px/1.4 var(--body);
  color: var(--text);
  background: var(--night-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { border-color: var(--aurora); outline: none; }
label { font-weight: 600; font-size: 14px; color: var(--muted); }
.stack { display: grid; gap: 10px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.form-error { color: var(--danger); margin-top: 10px; font-weight: 500; }

/* ---------- bar ---------- */
.bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(14,20,48,.88);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 19px/1 var(--display); letter-spacing: .02em; }
.brand-mark { width: 30px; height: 30px; color: var(--text); }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); background: var(--panel); }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.site-switch select { padding: 8px 10px; font-size: 14px; max-width: 220px; }
.credits { color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; }
.credits span { font-family: var(--display); color: var(--aurora); }

/* ---------- layout ---------- */
main { padding: 32px var(--gutter) 120px; max-width: 1240px; margin: 0 auto; }
.view.narrow { max-width: 520px; margin: 40px auto; }
.panel { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 24px; }
.panel.tight { padding: 18px; border-radius: var(--r-md); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.head-row p { color: var(--muted); margin-top: 6px; max-width: 62ch; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- landing ---------- */
.landing { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; min-height: 0; }
.landing-copy { max-width: 640px; }
.lede { color: var(--muted); font-size: 1.15rem; margin: 18px 0 28px; max-width: 54ch; }
.scan-form { display: flex; gap: 10px; background: var(--panel); border: 1px solid var(--line); padding: 8px; border-radius: 16px; }
.scan-form input { border: 0; background: transparent; font-size: 18px; padding: 12px; }
.scan-form input:focus { outline: none; }
.scan-form:focus-within { border-color: var(--aurora); }
.checks-preview { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; color: var(--muted); font-size: 15px; }
.checks-preview b { color: var(--text); display: block; font-weight: 600; }
.landing-chart { position: relative; }
.landing-chart::before {
  content: "";
  position: absolute;
  inset: -12% -18% -12% -6%;
  background:
    radial-gradient(closest-side at 58% 46%, rgba(64,224,208,.30), transparent 70%),
    radial-gradient(closest-side at 76% 70%, rgba(20,184,166,.28), transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}
.landing-chart svg { position: relative; width: 100%; height: auto; max-width: 440px; display: block; margin-left: auto; }
@media (max-width: 900px) { .landing { grid-template-columns: 1fr; min-height: 0; } .landing-chart { display: none; } }
@media (max-width: 520px) { .scan-form { flex-direction: column; } .scan-form button { justify-content: center; } }

/* ---------- orbit score (signature element) ---------- */
.orbit { position: relative; width: 100%; max-width: 300px; aspect-ratio: 1; }
.orbit svg { width: 100%; height: 100%; display: block; overflow: visible; }
.orbit .ring-bg { stroke: var(--line); }
.orbit .ring { stroke: url(#orbitGrad); transition: stroke-dashoffset 1.1s cubic-bezier(.2,.8,.2,1); }
.orbit.low .ring { stroke: var(--flare); }
.notice { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md); background: rgba(64,224,208,.08); border: 1px solid rgba(64,224,208,.3); color: var(--text); }
.orbit-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.orbit-score { font: 700 clamp(3rem, 8vw, 4.6rem)/1 var(--display); font-variation-settings: "wdth" 80; }
.orbit-label { color: var(--muted); font-size: 14px; margin-top: 6px; }
.orbit .moon text { font: 600 11px var(--body); fill: var(--muted); }
@media (prefers-reduced-motion: reduce) { .orbit .ring { transition: none; } }

.result-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: center; }
.result-grid.ov-result { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
@media (max-width: 760px) { .result-grid { grid-template-columns: 1fr; justify-items: center; } }
.scan-result { margin-top: 40px; }
.cat-list { display: grid; gap: 14px; }
.cat { display: grid; grid-template-columns: 170px 1fr 44px; gap: 12px; align-items: center; font-size: 15px; }
.bar-track { height: 8px; background: var(--line-soft); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--aurora); border-radius: 99px; }
.bar-fill.low { background: var(--flare); }
.cat b { font-family: var(--display); text-align: right; }
@media (max-width: 520px) { .cat { grid-template-columns: 1fr 44px; } .cat .bar-track { grid-column: 1 / -1; grid-row: 2; } }

.fixes { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.fixes li { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px 16px; background: var(--night-2); border-radius: var(--r-md); border-left: 3px solid var(--line); }
.fixes li.high { border-left-color: var(--flare); }
.fixes li.medium { border-left-color: #C9B27A; }
.fixes b { display: block; margin-bottom: 2px; }
.fixes p { color: var(--muted); font-size: 15px; }
.impact { font-size: 12px; font-weight: 700; color: var(--flare); padding-top: 3px; min-width: 52px; }
.impact.medium { color: #C9B27A; }
.impact.low { color: var(--faint); }

.claim { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; border-color: rgba(94,230,196,.35); }
.claim form { display: flex; gap: 10px; }
@media (max-width: 760px) { .claim { grid-template-columns: 1fr; } .claim form { flex-direction: column; } }

/* ---------- metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.metric { padding: 16px; border-radius: var(--r-md); background: var(--night-2); border: 1px solid var(--line-soft); }
.metric b { display: block; font: 700 1.9rem/1 var(--display); font-variation-settings: "wdth" 85; }
.metric span { color: var(--muted); font-size: 14px; }
@media (max-width: 700px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- recommendations / lists ---------- */
.recs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.recs li { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: var(--r-md); background: var(--night-2); }
.recs li div { min-width: 0; }
.recs b { display: block; }
.recs p { color: var(--muted); font-size: 14px; }
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.feed li:last-child { border-bottom: 0; }
.feed .who { font-weight: 700; font-family: var(--display); letter-spacing: .02em; }
.feed .what { color: var(--muted); overflow-wrap: anywhere; }
.feed time { color: var(--faint); display: block; font-size: 12px; }
.empty { padding: 28px; text-align: left; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r-md); }
.empty b { color: var(--text); display: block; margin-bottom: 6px; font-family: var(--display); font-size: 1.1rem; }

/* ---------- universe (star map) ---------- */
.universe { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 20px; align-items: start; }
@media (max-width: 980px) { .universe { grid-template-columns: 1fr; } }
.starmap { position: relative; aspect-ratio: 1.25; border-radius: var(--r-lg); background: radial-gradient(ellipse at center, #182052 0%, var(--night-2) 70%); border: 1px solid var(--line-soft); overflow: hidden; }
.starmap svg { width: 100%; height: 100%; display: block; }
.starmap .orbit-line { fill: none; stroke: var(--line); stroke-dasharray: 2 6; }
.starmap .cluster-label { fill: var(--faint); font: 600 12px var(--body); }
.starmap .core { fill: var(--text); }
.star { cursor: pointer; }
.star circle.body { transition: r .2s; }
.star:focus { outline: none; }
.star:focus circle.halo, .star.selected circle.halo { stroke: var(--text); stroke-width: 1.5; }
.star text { fill: var(--text); font: 500 11px var(--body); pointer-events: none; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 12px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.opp-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; max-height: 340px; overflow: auto; }
.opp-list button { width: 100%; justify-content: space-between; background: transparent; border: 1px solid transparent; padding: 10px 12px; font-weight: 500; text-align: left; white-space: normal; }
.opp-list button:hover, .opp-list button[aria-pressed="true"] { background: var(--night-2); border-color: var(--line-soft); }
.opp-list .score { font: 700 15px var(--display); color: var(--aurora); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--night-2); color: var(--muted); border: 1px solid var(--line-soft); }
.tag.pending { color: var(--text); }
.tag.approved { color: var(--aurora); border-color: rgba(94,230,196,.4); }
.tag.drafted { color: #9FB7FF; border-color: rgba(159,183,255,.4); }
.tag.published { background: rgba(94,230,196,.12); color: var(--aurora); }
.tag.rejected { color: var(--faint); }
.tag.rising { color: var(--flare); border-color: rgba(255,180,84,.45); }
.tag.validated { color: var(--aurora); }
.tag.needs_review, .tag.outline { color: var(--flare); }
.detail dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 16px 0; font-size: 15px; }
.detail dt { color: var(--faint); }
.detail dd { margin: 0; }

/* ---------- pipeline ---------- */
.pipeline { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.pipeline span { font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--faint); font-family: var(--display); letter-spacing: .03em; }
.pipeline span.done { color: var(--aurora-ink); background: var(--aurora); border-color: var(--aurora); }
.pipeline span.active { color: var(--text); border-color: var(--aurora); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px rgba(94,230,196,.18); } }
@media (prefers-reduced-motion: reduce) { .pipeline span.active { animation: none; } }

/* ---------- studio ---------- */
.studio { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 980px) { .studio { grid-template-columns: minmax(0, 1fr); } }
.article-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.article-list button { width: 100%; display: grid; gap: 6px; text-align: left; background: transparent; border: 1px solid transparent; padding: 12px; white-space: normal; font-weight: 500; }
.article-list button[aria-pressed="true"], .article-list button:hover { background: var(--night-2); border-color: var(--line-soft); }
.doc { background: #F7F8FC; color: #1B2033; border-radius: var(--r-md); padding: clamp(18px, 4vw, 40px); }
.doc h1, .doc h2.doc-title { font-family: var(--display); font-size: 2rem; line-height: 1.1; color: #11152A; margin-top: 0; }
.doc h2 { font-size: 1.35rem; margin: 1.6em 0 .5em; color: #11152A; }
.doc h3 { margin: 1.2em 0 .4em; color: #11152A; }
.doc p, .doc li { line-height: 1.7; max-width: 72ch; }
.doc p { margin: .7em 0; }
.doc a { color: #1A56DB; }
.doc table { border-collapse: collapse; margin: 1em 0; width: 100%; }
.doc th, .doc td { border: 1px solid #DDE2EE; padding: 8px 10px; text-align: left; }
.doc .meta { color: #4A5272; }
.doc[contenteditable="true"] { outline: 2px dashed #1A56DB; }
.ami { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.ami { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 18px; margin-top: 12px; }
.ami li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: baseline; }
.ami small { display: block; }
.ami-box { background: var(--night-2); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 16px; }
.ami-box summary { cursor: pointer; font-weight: 600; }
.ami .ok { color: var(--aurora); }
.ami .no { color: var(--flare); }
.ami small { color: var(--faint); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .spacer { flex: 1; }

/* ---------- agents ---------- */
.agents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 980px) { .agents { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .agents { grid-template-columns: 1fr; } }
.agent { padding: 18px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line-soft); display: grid; gap: 8px; align-content: start; }
.agent-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.agent h3 { font-size: 1.05rem; letter-spacing: .04em; }
.agent .role { color: var(--muted); font-size: 14px; }
.agent .metric-big { font: 700 2rem/1 var(--display); font-variation-settings: "wdth" 82; }
.agent .metric-label { color: var(--muted); font-size: 13px; }
.agent .last { font-size: 13px; color: var(--faint); border-top: 1px solid var(--line-soft); padding-top: 8px; overflow-wrap: anywhere; }
.status { font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.ONLINE { color: var(--aurora); }
.status.LIMITED, .status.IDLE { color: var(--flare); }
.status.OFFLINE { color: var(--danger); }

/* ---------- insights chart ---------- */
.spark { width: 100%; height: 160px; }
.spark path.line { fill: none; stroke: var(--aurora); stroke-width: 2.5; }
.spark path.area { fill: rgba(94,230,196,.1); }
.spark text { fill: var(--faint); font: 500 11px var(--body); }
.spark.aeo { height: auto; aspect-ratio: 600 / 220; max-height: 260px; }
.spark.aeo path.line { stroke-width: 3.5; }
.spark.aeo text { fill: var(--text); font: 700 20px var(--body); }
.spark.growth { height: auto; aspect-ratio: 600 / 220; max-height: 260px; }
.spark.growth rect.bar { fill: rgba(64,224,208,.28); }
.spark.growth text { fill: var(--faint); font: 600 12px var(--body); }
.growth-delta { margin: 0 0 8px; font-weight: 700; }
.growth-delta .up { color: var(--ok); margin-right: 10px; }
.growth-delta .down { color: var(--flare); margin-right: 10px; }
.doc-legend i.readiness { background: var(--aurora); }
.doc-legend i.links { background: rgba(64,224,208,.45); }
.spark-one { display: flex; align-items: center; gap: 18px; min-height: 140px; padding: 8px 4px; }
.spark-one b { font-family: var(--display); font-size: 64px; line-height: 1; color: var(--aurora); }
.spark-one span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.funnel { display: grid; gap: 10px; }
.funnel div { display: grid; grid-template-columns: 110px 1fr 40px; gap: 10px; align-items: center; font-size: 14px; }

/* ---------- settings ---------- */
.settings { display: grid; gap: 20px; }
.code { position: relative; }
.code pre { margin: 0; background: #0A0F26; border: 1px solid var(--line-soft); border-radius: var(--r-sm); padding: 14px; overflow: auto; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: #D7DCF5; white-space: pre; max-height: 320px; }
.code button { position: absolute; top: 8px; right: 8px; }
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 700px) { .packs { grid-template-columns: 1fr; } }
.pack { padding: 18px; border-radius: var(--r-md); border: 1px solid var(--line); display: grid; gap: 6px; }
.pack b { font: 700 1.6rem/1 var(--display); }
.conn { display: grid; gap: 10px; padding: 18px; border-radius: var(--r-md); background: var(--night-2); }
.conn-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* ---------- voice ---------- */
.voice-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  background: linear-gradient(90deg, var(--teal), var(--turquoise)); color: #062A28;
  border-radius: 999px; padding: 14px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.voice-fab svg { width: 20px; height: 20px; }
.voice-panel {
  position: fixed; right: 20px; bottom: 84px; z-index: 31;
  width: min(400px, calc(100vw - 32px)); max-height: min(560px, 72vh);
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.voice-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 6px; }
.voice-log { padding: 8px 16px; overflow: auto; display: grid; gap: 10px; flex: 1; min-height: 120px; }
.msg { padding: 10px 12px; border-radius: 12px; font-size: 15px; max-width: 92%; }
.msg.you { background: var(--night-2); justify-self: end; }
.msg.atlas { background: rgba(94,230,196,.1); border: 1px solid rgba(94,230,196,.25); }
.msg.hint { color: var(--muted); background: transparent; padding: 0; }
.voice-form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line-soft); }
.voice-form input { padding: 10px 12px; }
.mic { padding: 10px; border-radius: 50%; background: var(--night-2); border: 1px solid var(--line); flex: none; }
.mic svg { width: 20px; height: 20px; }
.mic[aria-pressed="true"] { background: var(--flare); color: #2A1A00; border-color: var(--flare); animation: pulse 1.2s infinite; }
.speak-toggle { display: flex; gap: 8px; align-items: center; padding: 0 16px 14px; font-weight: 500; }
.speak-toggle input { width: auto; }

/* ---------- modal / toast ---------- */
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(6,9,24,.72); display: grid; place-items: center; padding: 16px; }
.modal-card { width: min(760px, 100%); max-height: 88vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 0; }
.modal-body { padding: 16px 20px 22px; display: grid; gap: 16px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; z-index: 45; background: var(--text); color: var(--night); padding: 12px 18px; border-radius: 12px; font-weight: 600; transition: .25s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); color: #2A0808; }

.signin h1 { font-size: 2rem; margin-bottom: 8px; }
.signin form { margin-top: 22px; }
.sent { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: grid; gap: 8px; }
.dev-link { font-size: 13px; overflow-wrap: anywhere; }
.chart-deco .o { fill: none; stroke: rgba(64,224,208,.38); }
.chart-deco .o.teal { stroke: rgba(20,184,166,.5); }
.chart-deco .s { fill: var(--text); }
/* Busy mark: the ATLAS logo in motion. The aurora satellite orbits while a
   second dot crosses it the other way; the ring breathes, fades away and
   draws back in; the core pulses on the same 1.8s beat. Sized in em, so it
   follows the font size it sits in. */
.spinner { --beat: 1.8s; position: relative; display: inline-block; flex: none; width: 1.25em; height: 1.25em; min-width: 16px; min-height: 16px; border-radius: 50%; vertical-align: -.25em;
  border: 1.5px solid color-mix(in srgb, currentColor 45%, transparent);
  background: radial-gradient(circle, currentColor 0 16%, transparent 19%) center / 100% 100% no-repeat;
  animation: atlas-breathe var(--beat) cubic-bezier(.45,0,.55,1) infinite; }
.spinner::before, .spinner::after { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; }
.spinner::after { background: radial-gradient(circle at 83% 27%, var(--aurora) 0 13%, transparent 15.5%); }
.spinner::before { background: radial-gradient(circle at 17% 73%, currentColor 0 9%, transparent 11.5%); animation: atlas-cross var(--beat) linear infinite; }
@keyframes atlas-breathe {
  0%   { transform: rotate(0deg) scale(.86); border-color: color-mix(in srgb, currentColor 10%, transparent); background-size: 70% 70%; }
  50%  { transform: rotate(180deg) scale(1); border-color: color-mix(in srgb, currentColor 60%, transparent); background-size: 112% 112%; }
  100% { transform: rotate(360deg) scale(.86); border-color: color-mix(in srgb, currentColor 10%, transparent); background-size: 70% 70%; }
}
@keyframes atlas-cross {
  0%   { transform: rotate(0deg); opacity: 0; }
  25%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { transform: rotate(-720deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .spinner { animation: atlas-calm 2.4s ease-in-out infinite; }
  .spinner::before { animation: none; opacity: 0; }
  @keyframes atlas-calm { 50% { opacity: .45; } }
}
/* a button waiting on ATLAS shows the mark in front of its label */
button[aria-busy="true"], .button[aria-busy="true"] { cursor: progress; }
.btn-busy { font-size: 1em; }
.sk-note:has(.sk-mark) { display: flex; align-items: center; }
.sk-note .sk-mark { font-size: 30px; margin-right: 12px; color: var(--text); }
.primary .spinner::after { background: radial-gradient(circle at 83% 27%, currentColor 0 13%, transparent 15.5%); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .bar { flex-wrap: wrap; gap: 10px 12px; padding-top: 10px; padding-bottom: 8px; }
  .nav { order: 3; width: 100%; margin: 0 -6px; }
  .nav a { padding: 8px 10px; font-size: 14px; }
  .site-switch select { max-width: 132px; padding: 7px 8px; }
  .credits { padding: 6px 10px; }
  .result-grid.ov-result { grid-template-columns: 1fr; justify-items: center; }
  .result-grid.ov-result > .stack { width: 100%; }
  .recs li { flex-direction: column; align-items: flex-start; }
  .voice-fab { padding: 14px; }
  .voice-fab span { display: none; }
  .feed li { grid-template-columns: 1fr; gap: 2px; }
  main { padding-bottom: 96px; }
}

/* ---------- Watchtower ---------- */
.add-comp { display: flex; gap: 8px; }
.add-comp input { min-width: 220px; }
.watch-strip { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px;
  background: linear-gradient(100deg, var(--panel) 55%, rgba(20,184,166,.14)); }
.watch-strip h2 { margin-bottom: 4px; }
.watch-strip p { color: var(--muted); }
.watch-strip .button { text-decoration: none; white-space: nowrap; color: var(--text); }
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.board li { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr 36px 46px 118px; align-items: center; gap: 10px; }
.board .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .num { font-family: var(--display); text-align: right; }
.board .sub { grid-column: 1 / -1; font-size: 13px; margin-top: -8px; }
.board .acts { display: flex; gap: 4px; justify-content: flex-end; }
.board .acts .icon { padding: 2px 8px; }
.delta .up { color: #F2A65A; font-size: 13px; font-weight: 700; }
.delta .down { color: var(--turquoise); font-size: 13px; font-weight: 700; }
.bar-fill.you { background: linear-gradient(90deg, var(--teal), var(--turquoise)); }
.bar-fill.rival { background: #8C93C8; }
.vs { display: grid; gap: 14px; }
.vs-row { display: grid; grid-template-columns: 140px 1fr 80px; align-items: center; gap: 12px; }
.vs-bars { display: grid; gap: 5px; }
.vs-row b { font-family: var(--display); text-align: right; }
.vs-row small { color: var(--faint); font-family: var(--body, inherit); font-weight: 500; }
i.key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 10px; vertical-align: -1px; }
i.key:first-child { margin-left: 0; }
i.key.you { background: var(--turquoise); }
i.key.rival { background: #8C93C8; }

/* ---------- Trends ---------- */
.trend-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.trend-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 40px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.trend-list li:last-child { border-bottom: 0; }
.trend-score { font-family: var(--display); text-align: right; color: var(--turquoise); }
.chip { display: inline-block; padding: 2px 10px; margin: 2px 2px; border: 1px solid rgba(64,224,208,.35); border-radius: 999px; color: var(--text); font-size: 13px; }

/* ---------- Authority ---------- */
.comp-notes { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.comp-notes b { color: var(--text); font-weight: 600; }
.outreach { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.outreach a { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 12px; text-decoration: none; background: var(--panel-2); }
.outreach a:hover { border-color: rgba(64,224,208,.55); }
.outreach b { color: var(--text); }
.outreach span { color: var(--faint); font-size: 14px; }

@media (max-width: 760px) {
  .add-comp { width: 100%; }
  .add-comp input { min-width: 0; flex: 1; }
  .watch-strip { flex-direction: column; align-items: flex-start; }
  .board li { grid-template-columns: minmax(0, 1fr) 36px 46px 112px; }
  .board li .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .board .sub { grid-row: 3; margin-top: -4px; }
  .vs-row { grid-template-columns: 1fr 70px; }
  .vs-row .vs-bars { grid-column: 1 / -1; grid-row: 2; }
  .trend-list li { grid-template-columns: minmax(0, 1fr) auto 34px; }
  .trend-list li .faint { grid-column: 1 / -1; grid-row: 2; font-size: 13px; }
}

/* ---------- Live writing room ---------- */
body.room-open { overflow: hidden; }
.write-room { position: fixed; inset: 0; z-index: 60; background: #050914; display: grid; grid-template-rows: auto 1fr auto; }
.room-head { display: flex; align-items: center; gap: 18px; padding: 12px 20px; border-bottom: 1px solid var(--line-soft); background: #0A1024; }
.room-head > div:first-child { min-width: 0; flex: 0 1 300px; }
.room-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stages { list-style: none; display: flex; gap: 6px; margin: 0 auto; padding: 0; flex-wrap: wrap; justify-content: center; }
.stages li { font-size: 13px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--faint); }
.stages li.active { color: #062A28; background: linear-gradient(90deg, var(--teal), var(--turquoise)); border-color: transparent; animation: stagePulse 1.4s ease-in-out infinite; }
.stages li.done { color: var(--turquoise); border-color: rgba(64,224,208,.45); }
.stages li.done::before { content: "✓ "; }
@keyframes stagePulse { 50% { box-shadow: 0 0 0 5px rgba(64,224,208,.18); } }
.room-body { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; }
.term { position: relative; background: #020805; color: #39FF7A; font: 14px/1.55 "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace; overflow-y: auto; padding: 0 22px 28px; border-right: 1px solid #0F2A18;
  text-shadow: 0 0 6px rgba(57,255,122,.45); }
.term { background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px), radial-gradient(ellipse at 50% 40%, rgba(57,255,122,.06), transparent 70%); }
.term-bar { position: sticky; top: 0; display: flex; align-items: center; gap: 7px; padding: 12px 0; background: #020805; color: #2A9E55; font-size: 12px; z-index: 2; text-shadow: none; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #123A22; display: inline-block; }
.term-bar span { margin-left: 8px; }
.term .tl { white-space: pre-wrap; word-break: break-word; }
.term .tl.dim { color: #1FA552; }
.term .tl.cmd { color: #9CFFC0; }
.term .tl.stage { color: #062A28; background: #39FF7A; display: inline-block; padding: 0 8px; margin: 10px 0 4px; text-shadow: none; }
.term .tl.warn { color: #FFD166; text-shadow: 0 0 6px rgba(255,209,102,.4); }
.term .tl.err { color: #FF6B6B; text-shadow: none; }
.term .tl.ok { color: #9CFFC0; }
.term .typing { margin: 0; white-space: pre-wrap; word-break: break-word; font: inherit; display: inline; }
.term .cursor { display: inline-block; width: .6em; height: 1.1em; background: #39FF7A; vertical-align: text-bottom; animation: blink 1s steps(1) infinite; box-shadow: 0 0 8px #39FF7A; }
@keyframes blink { 50% { opacity: 0; } }
.live-doc { overflow-y: auto; padding: 18px 28px 40px; background: #0B1022; }
.live-meta { display: flex; justify-content: space-between; color: var(--faint); font-size: 13px; margin-bottom: 12px; position: sticky; top: -18px; background: #0B1022; padding: 8px 0; z-index: 1; }
#liveStatus { color: var(--turquoise); font-weight: 600; }
.doc.paper { background: #FBFCFF; color: #1A2140; border-radius: 14px; padding: 34px 38px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.doc.paper h1, .doc.paper h2, .doc.paper h3 { color: #0E1430; }
.doc.paper p, .doc.paper li { color: #2A3355; }
.doc.paper a { color: #0F8F82; }
.doc.paper .meta { color: #66708F; }
.doc.paper table { color: #2A3355; }
.doc.paper th, .doc.paper td { border-color: #DDE2F0; }
mark.fixmark { background: rgba(64,224,208,.28); color: inherit; border-bottom: 2px solid #14B8A6; padding: 0 2px; border-radius: 3px; }
.room-foot { display: grid; grid-template-columns: 1.3fr 1.2fr .8fr; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line-soft); background: #0A1024; max-height: 34vh; overflow: hidden; }
.proof { min-height: 0; overflow-y: auto; }
.proof h3 { font-size: 14px; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.proof ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.proof .fix { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; animation: popIn .35s ease; }
.proof .fix s { color: #FF8C8C; }
.proof .fix ins { color: var(--turquoise); text-decoration: none; }
.proof .fix small, .proof .ami small { display: block; color: var(--faint); }
.proof .fix.skipped { opacity: .75; }
.proof .pop { animation: popIn .3s ease; }
@keyframes popIn { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
.result-score { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.result-score b { font: 800 2.4rem var(--display); color: var(--turquoise); }
.result-score.warn b { color: #FFB454; }
.result p { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
@media (prefers-reduced-motion: reduce) { .stages li.active, .term .cursor, .proof .fix, .proof .pop { animation: none; } }
@media (max-width: 900px) {
  .write-room { grid-template-rows: auto 1fr auto; }
  .room-head { flex-wrap: wrap; gap: 8px; }
  .stages { order: 3; width: 100%; justify-content: flex-start; }
  .room-body { grid-template-columns: 1fr; grid-template-rows: 45% 55%; }
  .term { border-right: 0; border-bottom: 1px solid #0F2A18; }
  .doc.paper { padding: 22px 18px; }
  .room-foot { grid-template-columns: 1fr; max-height: 30vh; overflow-y: auto; }
}

/* ---------- Brief ---------- */
.brief { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-top: 12px; }
.brief label { display: grid; gap: 6px; }
.brief .wide { grid-column: 1 / -1; }
.brief textarea { resize: vertical; }
@media (max-width: 600px) { .brief { grid-template-columns: 1fr; } }

/* ---------- Tabs & social ---------- */
.tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 8px 14px; color: var(--muted); font-weight: 600; }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--turquoise); }
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.social-card { border: 1px solid var(--line-soft); border-radius: 14px; padding: 14px; display: grid; gap: 10px; align-content: start; background: var(--panel-2); }
.social-card textarea { width: 100%; font-size: 14px; line-height: 1.5; }
.social-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.social-card.linkedin .social-head b { color: #7FB2FF; }
.social-card.x .social-head b { color: #E8ECFB; }
.social-card.facebook .social-head b { color: #8FA8FF; }
.social-card.instagram .social-head b { color: #FF9BC5; }
@media (max-width: 760px) { .social-grid { grid-template-columns: 1fr; } }

/* ---------- Research ---------- */
.kw-form { max-width: none; }
.pick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.pick-list label { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 12px; cursor: pointer; font-weight: 500; color: var(--text); }
.pick-list label:hover { border-color: rgba(64,224,208,.45); }
.pick-list input { margin-top: 4px; accent-color: var(--teal); width: 18px; height: 18px; }
.pick-list small { display: block; color: var(--faint); font-weight: 400; margin-top: 2px; }
.pick-list input:disabled + span { opacity: .55; }
.plain-list { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.auto { border-style: dashed; color: var(--muted); }
.chip-x { padding: 0 0 0 4px; font-size: 16px; line-height: 1; vertical-align: 0; }
.trend-list li .ghost.small { justify-self: end; }
.trend-list li:has(button) { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 40px auto; }
.own-topic { display: grid; grid-template-columns: 1fr 180px auto; gap: 10px; }
@media (max-width: 760px) { .own-topic { grid-template-columns: 1fr; } .trend-list li:has(button) { grid-template-columns: minmax(0, 1fr) auto auto; } .trend-list li:has(button) .trend-score { display: none; } }

/* ---------- Authority plan ---------- */
.plan-bar { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; margin: -4px 0 14px; font-size: 14px; }
.recs li.is-done b, .recs li.is-skipped b { color: var(--faint); }
.recs li.is-done, .recs li.is-skipped { opacity: .7; }
.how-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.how-steps li { counter-increment: step; display: grid; gap: 6px; padding: 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-soft); }
.how-steps li::before { content: counter(step); font: 800 1.3rem var(--display); color: var(--turquoise); }
.how-steps span { color: var(--muted); font-size: 14px; }
.act-btns { gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 46%; }
@media (max-width: 520px) { .act-btns { max-width: none; justify-content: flex-start; } }
@media (max-width: 900px) { .how-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .how-steps { grid-template-columns: 1fr; } }
.outreach li { position: relative; }
.outreach li.is-done a { opacity: .6; }
.done-check { position: absolute; right: 12px; top: 12px; display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 500; color: var(--faint); }
.done-check input { accent-color: var(--teal); }
.outreach a { padding-right: 84px; }

/* ---------- Opportunity Tower ---------- */
.tower-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.tower-stats div { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; padding: 14px 16px; display: grid; gap: 2px; }
.tower-stats b { font: 800 1.7rem var(--display); color: var(--turquoise); }
.tower-stats span { color: var(--muted); font-size: 14px; }
.filters { display: grid; gap: 8px; margin-bottom: 16px; }
.frow { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; color: var(--muted); font-weight: 600; }
.fchip b { color: var(--text); margin-left: 2px; }
.fchip[aria-pressed="true"] { color: #062A28; background: linear-gradient(90deg, var(--teal), var(--turquoise)); border-color: transparent; }
.fchip[aria-pressed="true"] b { color: #062A28; }
.tower { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tw { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; background: var(--panel); border: 1px solid var(--line-soft); border-left: 3px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.tw.adopted { border-left-color: var(--turquoise); }
.tw.done, .tw.dismissed, .tw.skipped { opacity: .6; }
.tw-main b { display: block; margin: 6px 0 2px; }
.tw-main p { color: var(--muted); font-size: 14px; margin: 0; }
.tw-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.agent-tag { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--turquoise); border: 1px solid rgba(64,224,208,.4); border-radius: 6px; padding: 1px 7px; }
.fix-line { color: var(--text) !important; font-size: 14px; margin-top: 6px !important; }
.tw-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; max-width: 300px; }
@media (max-width: 760px) { .tower-stats { grid-template-columns: repeat(3, 1fr); } .tw { grid-template-columns: 1fr; } .tw-acts { justify-content: flex-start; max-width: none; } }

/* ---------- Opportunity Tower: ranked, connected cards ---------- */
.twr-summary { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.twr-summary b { color: var(--text); font: 700 1.05rem/1 var(--display); margin-right: 3px; }
.twr-filters { margin-bottom: 6px; }
.twr { position: relative; display: grid; justify-items: center; padding: 4px 0 8px; }
.twr-top { font: 800 11.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--turquoise); margin: 12px 0 14px; }
.twr-list { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; justify-items: center; gap: 22px; position: relative; }
.twr-list::before { content: ""; position: absolute; left: 50%; top: -14px; bottom: -18px; width: 2px; transform: translateX(-50%); border-radius: 2px; background: linear-gradient(var(--turquoise), rgba(64,224,208,.28) 35%, rgba(64,224,208,.06)); }
.twr-card { --c: var(--turquoise); position: relative; width: 100%; max-width: calc(560px + var(--k, 3) * 40px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line-soft); border-left: 3px solid var(--c); border-radius: 16px; padding: 14px 12px 14px 16px; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.twr-card:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line-soft)); border-left-color: var(--c); box-shadow: 0 10px 28px rgba(0,0,0,.28); }
.twr-card:first-child { padding: 18px 14px 18px 18px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent), 0 14px 40px color-mix(in srgb, var(--c) 16%, transparent); }
.twr-card:first-child .twr-title { font-size: 1.15rem; }
.twr-ico { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.twr-ico svg { width: 22px; height: 22px; }
.twr-rank { position: absolute; top: -8px; left: -8px; min-width: 22px; height: 20px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; background: var(--night); border: 1px solid var(--line); color: var(--text); font: 700 11px/1 var(--body); }
.twr-card:first-child .twr-rank { background: linear-gradient(90deg, var(--teal), var(--turquoise)); color: #062A28; border-color: transparent; }
.twr-body { min-width: 0; display: grid; gap: 4px; }
.twr-title { all: unset; cursor: pointer; text-align: left; font-weight: 700; font-size: 1.02rem; line-height: 1.3; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.twr-title:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 3px; border-radius: 4px; }
.twr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13.5px; }
.twr-kind { color: var(--c); font-weight: 800; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.twr-metric { color: var(--text); font-weight: 600; }
.twr-cta { display: flex; align-items: center; gap: 2px; }
.twr-cta .primary { white-space: nowrap; }
.twr-card.st-done, .twr-card.st-dismissed, .twr-card.st-skipped { opacity: .6; }
.twr-more { position: relative; margin-top: 24px; display: inline-flex; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; color: var(--turquoise); font-weight: 700; }
.twr-more:hover { border-color: var(--turquoise); }
.twr-more span { color: var(--faint); font-weight: 500; font-size: 13px; }
.twr-end { position: relative; margin-top: 14px; color: rgba(64,224,208,.45); font-size: 12px; }
/* Colour families: one accent per card (border, icon, label) */
.tone-amber { --c: var(--flare); }
.tone-violet { --c: #A99BFF; }
.tone-cyan { --c: #5CCBF5; }
.tone-green { --c: #6EE7A0; }
.tone-blue { --c: #8FB0FF; }
.tone-teal { --c: var(--turquoise); }
.tone-slate { --c: var(--faint); }
.tone-red { --c: var(--danger); }
.twr-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.twr-detail h3 { font-size: .95rem; margin: 16px 0 4px; }
.twr-detail p { color: var(--muted); }
.twr-detail-acts { margin-top: 20px; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) {
  .twr-list { gap: 16px; }
  .twr-card, .twr-card:first-child { grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px; }
  .twr-cta { grid-column: 1 / -1; }
  .twr-cta .primary { flex: 1; justify-content: center; }
  .twr-ico { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .twr-card { transition: none; } }

/* ---------- Site health ---------- */
.crawl { margin-bottom: 20px; background: #020805; border-color: #0F2A18; }
.crawl pre { color: #39FF7A; font: 13px/1.5 "SFMono-Regular", Menlo, Consolas, monospace; max-height: 160px; overflow: auto; margin: 10px 0 0; white-space: pre-wrap; text-shadow: 0 0 6px rgba(57,255,122,.4); }
.crawl-bar { height: 6px; background: #0F2A18; border-radius: 99px; overflow: hidden; }
.crawl-bar div { height: 100%; background: #39FF7A; transition: width .3s; box-shadow: 0 0 8px #39FF7A; }
.kv { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.kv li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line-soft); padding: 4px 0; }
.kv span { color: var(--muted); }
.speed-scores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ss { text-align: center; padding: 12px 6px; border-radius: 12px; background: var(--panel-2); }
.ss b { display: block; font: 800 1.6rem var(--display); }
.ss span { font-size: 12px; color: var(--muted); }
.ss.good b, .vitals .good b { color: #3BE38B; }
.ss.ok b, .vitals .ok b { color: #FFB454; }
.ss.bad b, .vitals .bad b { color: #FF6B6B; }
.vitals { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.vitals li { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: var(--panel-2); font-size: 14px; }
.issues { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.issues li > details { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; }
.issues summary { display: flex; gap: 10px; align-items: center; cursor: pointer; flex-wrap: wrap; }
.issues summary b { flex: 1; min-width: 200px; }
.issues details p { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.issue-items { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; font-size: 13px; max-height: 280px; overflow: auto; }
.issue-items li { word-break: break-all; }
.issue-items small { display: block; color: var(--faint); }
.issue-items .sugg { color: var(--turquoise); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 12px; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable th, .ptable td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.ptable th { color: var(--muted); font-weight: 600; background: var(--panel-2); position: sticky; top: 0; }
.ptable td.bad { color: #FF6B6B; font-weight: 700; }
.ptable td.good { color: #3BE38B; }
.ptable td a { max-width: 260px; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: bottom; }
/* Product docs: AI Marketplace "newly joined" callout */
.fam-new { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 14px; margin: 14px 0 6px; padding: 16px 18px; border-radius: 14px; text-decoration: none; color: #fff;
  background: radial-gradient(120% 160% at 0% 0%, rgba(109,93,252,.55), transparent 60%), radial-gradient(120% 160% at 100% 100%, rgba(20,184,166,.55), transparent 60%), #10173A;
  border: 1px solid rgba(94,234,212,.35); box-shadow: 0 10px 26px -14px rgba(64,224,208,.6); transition: transform .2s ease, box-shadow .2s ease; }
.fam-new:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(64,224,208,.8); }
.fam-new:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 3px; }
.fam-new small { grid-column: 1; display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #A7F3D0; }
.fam-new small i { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
.fam-new b { grid-column: 1; font-size: 18px; line-height: 1.25; }
.fam-new span { grid-column: 2; grid-row: 1 / span 2; font-size: 22px; font-weight: 800; transition: transform .2s ease; }
.fam-new:hover span { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .fam-new, .fam-new span { transition: none; } .fam-new:hover, .fam-new:hover span { transform: none; } }
/* How we score (docs) */
.hws-block { margin-top: 26px; }
.hws-block h3 { margin-bottom: 6px; }
.hws-block > p { margin-bottom: 10px; }
.hws-formula { padding: 10px 14px; border-left: 3px solid var(--turquoise); background: rgba(64,224,208,.06); border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--text); }
.hws-table td, .hws-table th { white-space: normal; vertical-align: top; }
.hws-table td:nth-child(5) { min-width: 240px; }
.hws-table td a { max-width: 220px; }
/* AI visibility */
.aiv-hist { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin-top: 18px; }
.aiv-hist span { flex: 1; max-width: 26px; height: 100%; display: flex; align-items: flex-end; }
.aiv-hist i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--turquoise), rgba(64,224,208,.35)); }
.aiv-q + .aiv-q { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.aiv-q h3 { font-size: 15px; margin-bottom: 8px; }
.aiv-q ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.aiv-q li p { margin: 4px 0 6px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.aiv-st { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; margin-right: 8px; border: 1px solid var(--line-soft); }
.aiv-st.good { color: #3BE38B; border-color: rgba(59,227,139,.4); background: rgba(59,227,139,.08); }
.aiv-st.miss { color: var(--muted); }
.aiv-st.failed { color: #FF6B6B; border-color: rgba(255,107,107,.4); }
.aiv-src { list-style: none; padding: 0; margin: 0; }
.aiv-src li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.aiv-src li span { color: var(--faint); font-size: 13px; white-space: nowrap; }
.aiv-src a { overflow-wrap: anywhere; }
@media (max-width: 600px) { .speed-scores { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Analytics ---------- */
.connect-cta { display: flex; justify-content: space-between; align-items: center; gap: 18px; background: linear-gradient(100deg, var(--panel) 55%, rgba(20,184,166,.16)); }
.connect-cta .button { white-space: nowrap; text-decoration: none; }
.an-metrics { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.up { color: #3BE38B; font-weight: 700; }
.down { color: #FF8C6B; font-weight: 700; }
.metric span .up, .metric span .down { font-size: 13px; margin-left: 4px; }
.report-frame { width: 100%; height: 70vh; border: 0; border-radius: 12px; background: #0D1330; }
.switch { display: inline-flex; gap: 10px; align-items: center; color: var(--text); font-weight: 600; }
.switch input { width: 18px; height: 18px; flex: none; padding: 0; accent-color: var(--teal); }
/* Notification preferences */
.ntf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ntf-group { border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 14px 16px; margin: 0; min-width: 0; }
.ntf-group legend { padding: 0 6px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ntf-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; }
.ntf-item input { width: 18px; height: 18px; flex: none; margin-top: 2px; padding: 0; accent-color: var(--teal); }
.ntf-item b { display: block; color: var(--text); }
.ntf-item small { display: block; color: var(--faint); font-size: 13px; line-height: 1.4; }
.ntf-item:has(input:disabled) { opacity: .5; cursor: default; }
.ntf-phone { padding: 0 0 8px 28px; }
.ntf-phone label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.ntf-save { grid-column: 1 / -1; align-items: center; gap: 14px; }
@media (max-width: 900px) { .ntf-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .connect-cta { flex-direction: column; align-items: flex-start; } }

/* Grid children must be allowed to shrink so code blocks and tables scroll instead of widening the page. */
.settings > *, .grid-2 > *, .grid-3 > *, .stack > *, #healthTab, .issues details { min-width: 0; }
.notice, .issue-items li, .kv b { overflow-wrap: anywhere; }
@media (min-width: 761px) { .nav a { padding: 8px 10px; } }
.tabs { overflow-x: auto; scrollbar-width: none; } .tabs button { white-space: nowrap; flex: none; }

/* ---------- Brand, landing content, footer, contact ---------- */
.brand-tag { font: 800 11px/1 var(--body); letter-spacing: .08em; color: #062A28; background: linear-gradient(90deg, var(--teal), var(--turquoise)); padding: 4px 6px; border-radius: 6px; margin-left: 6px; }
.eyebrow { color: var(--turquoise); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; margin-bottom: 10px; }
.landing h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.landing-more { display: grid; gap: 36px; margin: 28px 0 8px; }
.lm-section h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin-bottom: 12px; }
.lm-section > p { color: var(--muted); font-size: 1.08rem; max-width: 78ch; line-height: 1.7; }
.lm-section > p b { color: var(--text); }
.lm-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lm-steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 16px; padding: 18px; }
.lm-steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(90deg, var(--teal), var(--turquoise)); color: #062A28; font-weight: 800; margin-bottom: 10px; }
.lm-steps h3, .lm-grid h3 { font-size: 1.05rem; margin-bottom: 6px; }
.lm-steps p, .lm-grid p { color: var(--muted); font-size: 15px; }
.lm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.lm-grid article { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 16px; padding: 18px; }
.lm-table td { white-space: normal; }
.lm-table td:first-child { color: var(--muted); font-weight: 600; }
.lm-faq { display: grid; gap: 8px; max-width: 860px; }
.lm-faq details { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px 16px; }
.lm-faq summary { cursor: pointer; font-weight: 700; }
.lm-faq p { color: var(--muted); margin-top: 10px; }
.lm-contact { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px 28px; background: linear-gradient(110deg, var(--panel) 50%, rgba(20,184,166,.14)); border: 1px solid var(--line-soft); border-radius: 20px; padding: 28px; }
.lm-contact p { color: var(--muted); }
/* Landing: compact Scan → Analyze → Improve flow */
.lm-flow { list-style: none; counter-reset: f; padding: 0; margin: 0; display: grid; gap: 10px; }
.lm-flow li { counter-increment: f; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; padding: 14px 16px; }
.lm-flow li::before { content: counter(f); grid-row: span 2; align-self: start; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(90deg, var(--teal), var(--turquoise)); color: #062A28; font-weight: 800; font-size: 14px; }
.lm-flow h3 { font-size: 1.05rem; }
.lm-flow p { color: var(--muted); font-size: 15px; margin-top: 2px; }
@media (min-width: 761px) {
  .lm-flow { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .lm-flow li { position: relative; }
  .lm-flow li + li::after { content: "→"; position: absolute; left: -22px; top: 50%; transform: translateY(-50%); color: var(--turquoise); font-weight: 700; }
}
/* Landing: progressive disclosure controls */
.lm-more { margin-top: 12px; }
.lm-more > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; color: var(--turquoise); font-weight: 600; font-size: 15px; padding: 6px 0; border-radius: 6px; }
.lm-more > summary::-webkit-details-marker { display: none; }
.lm-more > summary::after { content: "↓"; transition: transform .15s ease; }
.lm-more[open] > summary::after { transform: rotate(180deg); }
.lm-more > summary:hover { text-decoration: underline; }
.lm-more > summary:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 3px; }
.lm-more-body { margin-top: 12px; }
.lm-more-body > h3 { font-size: 1.05rem; margin-bottom: 6px; }
.lm-more-body > p { color: var(--muted); max-width: 78ch; line-height: 1.65; margin-bottom: 14px; }
.lm-more-body > p b { color: var(--text); }
@media (prefers-reduced-motion: reduce) { .lm-more > summary::after { transition: none; } }
/* Landing: final CTA */
.lm-cta { display: grid; gap: 14px; justify-items: center; text-align: center; background: linear-gradient(110deg, var(--panel) 50%, rgba(20,184,166,.14)); border: 1px solid var(--line-soft); border-radius: 20px; padding: 28px 18px; }
.lm-cta h2 { max-width: 26ch; margin-bottom: 0; }
.lm-cta .scan-form { width: 100%; max-width: 560px; text-align: left; }
/* Landing only: drop the bottom padding reserved for the signed-in voice button */
main:has(> #view-landing:not([hidden])) { padding-bottom: 32px; }
.contact-form { display: grid; gap: 12px; }
.contact-form label { display: grid; gap: 6px; }
.contact-form textarea { resize: vertical; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent-ok { background: rgba(20,184,166,.12); border: 1px solid rgba(64,224,208,.4); border-radius: 14px; padding: 18px; }
.sent-ok p { color: var(--muted); margin-top: 6px; }
.site-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px max(16px, calc((100vw - 1160px) / 2)); border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 14px; margin-top: 24px; }
.site-foot b { color: var(--muted); }
/* Footer: brand left, social centre, help right; stacked and centred on phones */
.site-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px 24px; }
.foot-brand { display: flex; flex-direction: column; gap: 2px; line-height: 1.25; }
.foot-brand b { color: var(--text); letter-spacing: .02em; }
.foot-brand small { color: var(--faint); font-size: 12.5px; }
.foot-help { justify-self: end; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.foot-email { color: var(--faint); font-size: 13.5px; }
.foot-email a { color: var(--turquoise); text-decoration: none; }
.foot-email a:hover { text-decoration: underline; }
/* Signed in, the floating "Ask ATLAS" button sits bottom-right: keep the footer clear of it */
body.has-side .site-foot { padding-bottom: 88px; }
@media (max-width: 820px) {
  .site-foot { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .foot-brand { align-items: center; }
  .foot-help { justify-self: center; justify-content: center; }
}
@media (max-width: 900px) { .lm-steps, .lm-grid { grid-template-columns: 1fr 1fr; } .lm-contact { flex-direction: column; align-items: flex-start; } }
@media (max-width: 560px) { .lm-steps, .lm-grid { grid-template-columns: 1fr; } }

/* ---------- Universe signals & planets ---------- */
.signals { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.sig-col { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 18px; padding: 18px; min-width: 0; }
.sig-col.remediate { border-top: 3px solid #F2A65A; }
.sig-col.strike { border-top: 3px solid var(--turquoise); }
.sig-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.sig-icon { font-size: 22px; line-height: 1; }
.sig-head h2 { font-size: 1.25rem; }
.sig-head .count { font: 800 .95rem var(--display); color: #062A28; background: var(--turquoise); border-radius: 999px; padding: 1px 9px; margin-left: 4px; vertical-align: 2px; }
.sig-col.remediate .count { background: #F2A65A; }
.sig-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.sig { background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; }
.sig.high { border-color: rgba(242,166,90,.45); }
.sig-col.strike .sig.high { border-color: rgba(64,224,208,.5); }
.sig b { display: block; margin: 6px 0 2px; }
.sig p { color: var(--muted); font-size: 14px; margin: 0; }
.sig-tags { display: flex; gap: 6px; align-items: center; }
.sig details { margin-top: 8px; font-size: 14px; color: var(--muted); }
.sig details summary { cursor: pointer; color: var(--turquoise); font-weight: 600; }
.sig details ol { margin: 6px 0 0; padding-left: 20px; }
.sig-acts { margin-top: 10px; gap: 6px; }
.strike-btn { background: linear-gradient(90deg, #40E0D0, #A7F3EC); color: #062A28; border: 0; font-weight: 800; box-shadow: 0 0 0 0 rgba(64,224,208,.5); animation: strikePulse 2.4s ease-in-out infinite; }
@keyframes strikePulse { 50% { box-shadow: 0 0 0 6px rgba(64,224,208,.12); } }
@media (prefers-reduced-motion: reduce) { .strike-btn { animation: none; } }
.small-empty { padding: 16px; }
.signals-loading { margin-bottom: 22px; }
.planet circle { fill: #8C93C8; }
.planet .ring { fill: none; stroke: rgba(140,147,200,.4); stroke-dasharray: 3 4; }
.planet.ahead circle { fill: #F2A65A; }
.planet.ahead .ring { stroke: rgba(242,166,90,.55); }
.planet text { fill: var(--muted); font-size: 12px; font-weight: 600; }
.rival-link { stroke: rgba(242,166,90,.35); stroke-width: 1.2; stroke-dasharray: 4 5; }
@media (max-width: 860px) { .signals { grid-template-columns: 1fr; } }
.credits { white-space: nowrap; }
@media (min-width: 761px) and (max-width: 1520px) { .nav { gap: 0; } .nav a { padding: 8px 8px; font-size: 14px; } .brand-tag { display: none; } }
@media (min-width: 761px) and (max-width: 1520px) { .site-switch select { max-width: 140px; } }

/* ---------- hero image (select → approve → publish & post) ---------- */
.tab-ok { color: var(--ok); margin-left: 4px; }
.tab-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--flare); margin-left: 6px; vertical-align: 1px; }
.hero-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; justify-content: space-between; margin: 0 0 14px; }
.hero-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 18px 0; }
.hero-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hero-steps span { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-soft); color: var(--muted); }
.hero-steps span.now { border-color: var(--turquoise); color: var(--text); background: rgba(64,224,208,.1); }
.hero-steps span.done { border-color: rgba(94,230,196,.5); color: var(--ok); }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.hero-cand { position: relative; display: grid; gap: 6px; padding: 8px; border: 2px solid var(--line-soft); border-radius: 14px; cursor: pointer; background: var(--panel-2); min-width: 0; }
.hero-cand:hover { border-color: rgba(64,224,208,.5); }
.hero-cand.picked { border-color: var(--turquoise); box-shadow: 0 0 0 3px rgba(64,224,208,.18); }
.hero-cand input { position: absolute; top: 14px; left: 14px; width: 18px; height: 18px; accent-color: var(--turquoise); }
.hero-cand img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 9px; background: #0b1027; display: block; }
.hero-src { font-size: 12px; font-weight: 700; color: var(--turquoise); }
.hero-cand small { font-size: 11px; color: var(--muted); line-height: 1.35; overflow-wrap: anywhere; }
.hero-form { display: grid; gap: 12px; margin-top: 16px; }
.hero-form input { width: 100%; }
.hero-own summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.hero-approved { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 18px; align-items: start; }
.hero-approved img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 12px; display: block; }
.hero-approved p { margin: 0 0 8px; }
.ok-tag { color: var(--ok); border-color: rgba(94,230,196,.5); display: inline-block; }
/* Article hero (own class: .doc-hero is the Docs page banner) */
.art-hero { margin: 4px 0 22px; position: relative; }
.art-hero figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.art-hero-adjust { position: absolute; top: 10px; right: 10px; background: rgba(7,11,30,.72); }
.hero-frame { position: relative; overflow: hidden; aspect-ratio: 1200 / 630; border-radius: 12px; background: #0b1027; }
.hero-frame img { display: block; width: 100%; height: 100%; }
.hero-adjust { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 6px; }
.hero-adjust-controls { display: grid; gap: 10px; align-content: start; }
.hero-adjust-controls h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-adjust-controls input[type=range] { width: 100%; accent-color: var(--turquoise); }
.hero-stage { touch-action: none; user-select: none; }
.hero-stage.can-move { cursor: crosshair; }
.hero-stage:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 2px; }
.hero-focus { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px rgba(0,0,0,.45), inset 0 0 0 2px rgba(0,0,0,.25); pointer-events: none; }
@media (max-width: 760px) { .hero-adjust { grid-template-columns: 1fr; } }
/* AMI improve */
.ami-improve { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 12px 0 4px; padding: 10px 12px; border-radius: 10px; background: rgba(64,224,208,.07); border: 1px solid rgba(64,224,208,.25); }
.ami-improve p { margin: 0; font-size: 14px; color: var(--text); max-width: 60ch; }
.ami-pts { font-size: 12px; font-weight: 700; color: var(--turquoise); white-space: nowrap; }
.ami .ami-hint { color: var(--muted); margin-top: 2px; }
.ami-gap:focus { outline: 2px solid var(--flare); outline-offset: 4px; border-radius: 6px; }
.ami-gaps { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; gap: 8px; }
.ami-gaps li { padding: 8px 10px; border-radius: 8px; background: var(--night-2); }
.ami-gaps small { color: var(--muted); }
.social-hero { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 10px; display: block; }
.hero-lock { margin: 0; font-size: 13px; color: var(--flare); }
.pref-options { display: grid; gap: 10px; }
.pref { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 12px; cursor: pointer; }
.pref.on { border-color: var(--turquoise); background: rgba(64,224,208,.06); }
.pref input { margin-top: 4px; accent-color: var(--turquoise); width: auto; flex: none; }
.pref > span { flex: 1; min-width: 0; text-align: left; }
.pref small { display: block; color: var(--muted); margin-top: 2px; }
@media (max-width: 640px) { .hero-approved { grid-template-columns: 1fr; } .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- plans & billing ---------- */
.plan-toggle { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 14px; }
.plan-toggle button { background: none; border: 0; border-radius: 999px; padding: 7px 16px; color: var(--muted); font-weight: 600; }
.plan-toggle button[aria-pressed="true"] { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--turquoise); }
.plan-toggle .save { font-size: 12px; color: var(--ok); margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel-2); min-width: 0; }
.plan.featured { border-color: var(--turquoise); box-shadow: 0 0 0 3px rgba(64,224,208,.12); }
.plan-badge { position: absolute; top: -11px; left: 16px; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--turquoise); color: var(--aurora-ink); }
.plan-name { font-weight: 700; color: var(--muted); }
.plan b { font: 700 2rem/1.1 var(--display); }
.plan b small { font: 500 .9rem var(--body); color: var(--muted); margin-left: 3px; }
.plan-credits { font-weight: 700; color: var(--turquoise); margin-top: 6px; }
.plan .faint { font-size: 14px; min-height: 2.6em; }
.plan button { margin-top: auto; }
.plan .faint { margin-bottom: 8px; }
.plan-current { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; padding: 16px 18px; border: 1px solid var(--turquoise); border-radius: var(--r-md); background: rgba(64,224,208,.06); }
.plan-current > div { display: grid; gap: 2px; min-width: 0; }
.plan-current b { font: 700 1.25rem/1.2 var(--display); }
.plan-current.warn { border-color: var(--flare); background: rgba(255,180,84,.08); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---------- plan features, add-ons, locked features ---------- */
.plan-feats { list-style: none; padding: 0; margin: 10px 0 6px; display: grid; gap: 6px; font-size: 14px; }
.plan-feats li { display: flex; gap: 8px; align-items: flex-start; color: var(--text); }
.plan-feats li span { flex: none; width: 18px; text-align: center; font-weight: 700; color: var(--ok); }
.plan-feats li.no { color: var(--muted); }
.plan-feats li.no span { color: var(--flare); }
.plan-feats small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--flare); border: 1px solid currentColor; border-radius: 6px; padding: 0 5px; margin-left: 4px; }
.plan-addons-note { font-size: 13px; margin: 0 0 8px; }
.addon-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.addon-list li { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--panel-2); }
.addon-list li.on { border-color: rgba(64,224,208,.5); }
.addon-list li > div:first-child { display: grid; gap: 2px; min-width: 0; flex: 1 1 260px; }
.addon-list .muted { font-size: 14px; }
.addon-list .faint { font-size: 13px; }
.addon-ctl { display: flex; align-items: center; gap: 8px; flex: none; }
.addon-ctl .qty { min-width: 22px; text-align: center; font-weight: 700; }
.qty-input { width: 72px; }
.plan-switch { display: flex; flex-wrap: wrap; gap: 8px; }
.locked-card { display: flex; gap: 16px; align-items: flex-start; border-color: rgba(255,180,84,.45); }
.locked-card .lock { font-size: 26px; line-height: 1; }
.locked-card h2 { margin-bottom: 6px; }

/* ---------- app shell: top bar + side menu (signed in) ---------- */
:root { --bar-h: 60px; --side-w: 272px; }
.menu-toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--text); font-weight: 700; font-size: 15px; padding: 8px 10px; border-radius: 8px; border-bottom: 2px solid var(--turquoise); border-radius: 8px 8px 0 0; }
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle:hover { background: var(--panel); }
body.has-side .bar { height: var(--bar-h); padding-top: 0; padding-bottom: 0; gap: 14px; flex-wrap: nowrap; }
body.has-side .brand-tag { display: inline-block; }
.topmenus { display: flex; align-items: center; gap: 2px; margin-left: 6px; }
.topmenu { position: relative; }
.topmenu > button:not(.icon-btn):not(.avatar) { background: none; border: 0; color: var(--text); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.topmenu > button:hover { background: var(--panel); }
.topmenu > button span { color: var(--muted); font-size: 11px; }
.dropdown { position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; max-width: 340px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.45); padding: 8px; z-index: 40; }
.dropdown.right { left: auto; right: 0; }
.dropdown ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dropdown button { width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: 9px 10px; border-radius: 8px; font-weight: 600; font-size: 14px; display: grid; gap: 2px; }
.dropdown button:hover, .dropdown button:focus-visible { background: var(--panel-2); }
.dropdown small { font-weight: 500; color: var(--faint); font-size: 12px; }
.dd-title { margin: 4px 10px 8px; font-size: 13px; color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
.dd-empty { margin: 8px 10px; color: var(--muted); font-size: 14px; }
.dd-agent { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--turquoise); }
.top-search { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; width: 240px; }
.top-search svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.top-search input { border: 0; background: none; padding: 8px 0; width: 100%; font-size: 14px; box-shadow: none; }
.top-search input:focus { outline: none; }
.top-search:focus-within { border-color: var(--turquoise); }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; background: none; border: 1px solid transparent; border-radius: 10px; color: var(--muted); }
.icon-btn:hover { color: var(--text); background: var(--panel); }
.icon-btn svg { width: 20px; height: 20px; }
.badge { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--turquoise); color: var(--aurora-ink); font: 800 11px/17px var(--body); }
.avatar { width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; background: linear-gradient(135deg, var(--teal), var(--turquoise)); color: var(--aurora-ink); font: 800 13px/36px var(--body); }

.sidenav { position: fixed; z-index: 15; top: var(--bar-h); left: 0; bottom: 0; width: var(--side-w); display: flex; flex-direction: column; background: linear-gradient(180deg, #151C47, #121836); border-right: 1px solid var(--line-soft); transition: transform .2s ease; }
.side-tools { display: flex; align-items: center; gap: 6px; padding: 12px 12px 8px; }
.side-filter { flex: 1; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; min-width: 0; }
.side-filter svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.side-filter input { border: 0; background: none; padding: 8px 0; font-size: 14px; width: 100%; box-shadow: none; min-width: 0; }
.side-filter input:focus { outline: none; }
.side-filter:focus-within { border-color: var(--turquoise); }
#sideNav { overflow-y: auto; padding: 4px 10px 24px; flex: 1; scrollbar-width: thin; }
.side-group { margin-top: 4px; }
.side-head { display: flex; align-items: center; gap: 6px; width: 100%; background: none; border: 0; color: var(--text); font-weight: 700; font-size: 15px; padding: 8px 6px; border-radius: 8px; text-align: left; }
.side-head:hover { background: rgba(255,255,255,.05); }
.side-head svg { width: 18px; height: 18px; color: var(--muted); transform: rotate(-90deg); transition: transform .15s; flex: none; }
.side-group.open .side-head svg { transform: none; }
.side-group ul { list-style: none; margin: 0 0 6px 15px; padding: 0 0 0 10px; border-left: 1px solid var(--line); }
.side-group li { display: flex; align-items: center; }
.side-group li a { flex: 1; display: flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 14.5px; padding: 7px 10px; border-radius: 8px; min-width: 0; }
.side-group li a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.side-group li a[aria-current="page"] { color: var(--text); background: rgba(64,224,208,.12); box-shadow: inset 3px 0 0 var(--turquoise); font-weight: 600; }
.side-addon { font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--flare); border: 1px solid currentColor; border-radius: 5px; padding: 0 4px; }
.fav { background: none; border: 0; color: var(--faint); font-size: 15px; width: 28px; height: 28px; padding: 0; border-radius: 6px; opacity: 0; }
.side-group li:hover .fav, .fav:focus-visible, .fav.on { opacity: 1; }
.fav.on { color: #FFC857; }
.side-empty { color: var(--muted); font-size: 14px; padding: 8px; }
.side-scrim { position: fixed; inset: var(--bar-h) 0 0 0; background: rgba(5,8,20,.55); z-index: 14; }

body.has-side main { margin-left: var(--side-w); max-width: none; padding: 20px clamp(16px, 2.6vw, 36px) 120px; transition: margin .2s ease; }
body.has-side main > .view { max-width: 1240px; margin-left: auto; margin-right: auto; }
body.has-side .site-foot { margin-left: var(--side-w); padding-left: clamp(16px, 2.6vw, 36px); padding-right: clamp(16px, 2.6vw, 36px); transition: margin .2s ease; }
body.has-side.side-closed .sidenav { transform: translateX(-100%); }
body.has-side.side-closed main, body.has-side.side-closed .site-foot { margin-left: 0; }
.crumbs { max-width: 1240px; margin: 0 auto 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs b { color: var(--text); }
.crumb-site { margin-left: auto; font-size: 13px; color: var(--faint); }

@media (max-width: 1260px) { .top-search { width: 180px; } }
@media (max-width: 1023px) {
  body.has-side main, body.has-side .site-foot { margin-left: 0; }
  .sidenav { box-shadow: 20px 0 50px rgba(0,0,0,.5); }
  .topmenus { display: none; }
  .top-search { display: none; }
}
@media (max-width: 760px) {
  body.has-side .bar { gap: 8px; padding-left: 10px; padding-right: 10px; }
  body.has-side .brand span:not(.brand-tag) { display: none; }
  body.has-side .brand-tag { display: none; }
  .menu-toggle span { display: none; }
  body.has-side .site-switch select { max-width: 120px; }
  .crumb-site { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sidenav, body.has-side main, body.has-side .site-foot { transition: none; } }
.icon-btn .badge { color: #062A28; top: -1px; right: -2px; }
.avatar { display: inline-grid; place-items: center; text-align: center; line-height: 1; letter-spacing: 0; flex: none; }
body.has-side main [id] { scroll-margin-top: calc(var(--bar-h) + 16px); }

/* ---------- universe: luminous, flickering stars ---------- */
.starmap { background: radial-gradient(ellipse at 50% 50%, #1A2360 0%, #0E1440 55%, #090D26 100%); box-shadow: inset 0 0 80px rgba(64,224,208,.08), 0 20px 60px rgba(0,0,0,.35); }
.starmap .dust circle { animation: twinkle 4s ease-in-out infinite; }
.starmap .sparkle { animation: sparkle 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.starmap .sparkle path { stroke: #E8FFFC; stroke-width: .9; stroke-linecap: round; }
.starmap .sparkle circle { fill: #FFFFFF; }
.starmap .core { fill: #FFFFFF; }
.starmap .core-glow { animation: sunpulse 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.star circle.body.twinkle { animation: starflicker 3.2s ease-in-out infinite; }
.star circle.corona { opacity: .35; animation: corona 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; pointer-events: none; }
.star:hover circle.corona, .star.selected circle.corona { opacity: .7; }
.uni-rank { margin: 12px 2px 0; color: var(--muted); font-size: 15px; }
.uni-rank b { font: 700 1.25rem var(--display); color: var(--turquoise); margin-right: 2px; text-shadow: 0 0 12px rgba(64,224,208,.6); }
@keyframes twinkle { 0%, 100% { opacity: .25; } 45% { opacity: 1; } 60% { opacity: .55; } }
@keyframes sparkle { 0%, 70%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); } 82% { opacity: 1; transform: scale(1.15) rotate(20deg); } }
@keyframes starflicker { 0%, 100% { opacity: 1; } 18% { opacity: .78; } 22% { opacity: 1; } 55% { opacity: .9; } 61% { opacity: .62; } 66% { opacity: 1; } }
@keyframes corona { 0%, 100% { opacity: .25; transform: scale(.85); } 50% { opacity: .55; transform: scale(1.12); } }
@keyframes sunpulse { 0%, 100% { opacity: .75; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) {
  .starmap .dust circle, .starmap .sparkle, .starmap .core-glow, .star circle.body.twinkle, .star circle.corona { animation: none; }
  .starmap .sparkle { opacity: .6; }
}

/* ---------- product docs ---------- */
.topmenu-link { display: inline-block; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.topmenu-link:hover, .topmenu-link[aria-current] { background: var(--panel); }
.topmenu-link[aria-current] { box-shadow: inset 0 -2px 0 var(--turquoise); }
.docs { max-width: 1040px; margin: 0 auto; }
.doc-hero { padding: 34px 32px; border-radius: var(--r-lg); border: 1px solid var(--line-soft); background: radial-gradient(70% 120% at 100% 0%, rgba(64,224,208,.18), transparent 60%), linear-gradient(160deg, #161D4A, #0E1438); }
.doc-hero .eyebrow { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: var(--turquoise); margin: 0 0 8px; }
.doc-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.doc-hero h1 span { color: var(--turquoise); }
.doc-hero .lede { color: var(--muted); font-size: 1.1rem; max-width: 60ch; margin: 12px 0 22px; }
.doc-deliverable { display: inline-grid; gap: 4px; padding: 16px 20px; border-left: 3px solid var(--turquoise); background: rgba(64,224,208,.07); border-radius: 0 12px 12px 0; }
.doc-deliverable span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.doc-deliverable b { font: 700 1.6rem/1.1 var(--display); }
.doc-deliverable p { margin: 0; color: var(--muted); }
.doc-toc { position: sticky; top: var(--bar-h, 60px); z-index: 5; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 12px 0; margin: 14px 0 6px; background: var(--night); border-bottom: 1px solid var(--line-soft); }
.doc-toc a { white-space: nowrap; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; padding: 7px 12px; border: 1px solid var(--line-soft); border-radius: 999px; }
.doc-toc a:hover { color: var(--text); border-color: var(--turquoise); }
.doc-sec { padding: 30px 0 10px; scroll-margin-top: calc(var(--bar-h, 60px) + 72px); }
.doc-sec h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 6px; }
.doc-kicker { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--turquoise); margin: 0 0 6px; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 18px; }
.doc-card { padding: 18px; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--panel); display: grid; gap: 6px; align-content: start; }
.doc-card h3 { font-size: 1.05rem; }
.doc-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.doc-badge { display: inline-grid; place-items: center; min-width: 46px; height: 30px; padding: 0 8px; border-radius: 8px; font: 800 12px var(--body); letter-spacing: .06em; color: var(--aurora-ink); background: linear-gradient(90deg, var(--teal), var(--turquoise)); justify-self: start; }
.doc-callout { margin-top: 18px; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid rgba(64,224,208,.35); background: rgba(64,224,208,.06); color: var(--muted); }
.doc-callout b { color: var(--text); }
.doc-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.doc-step { position: relative; padding: 20px; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--panel); }
.doc-step > span { font: 800 2rem/1 var(--display); color: var(--turquoise); opacity: .8; }
.doc-step h3 { margin: 8px 0 10px; }
.doc-step ul { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; font-size: 14.5px; }
.doc-why { display: grid; grid-template-columns: 150px 1fr; gap: 10px 18px; margin: 20px 0 0; padding: 18px; border-radius: var(--r-md); background: var(--panel-2); }
.doc-why dt { font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--turquoise); }
.doc-why dd { margin: 0; color: var(--muted); }
.doc-loop-wrap { margin-top: 12px; border-radius: var(--r-lg); border: 1px solid var(--line-soft); background: radial-gradient(circle at 50% 50%, #1A2360, #0E1440 70%); padding: 10px; }
.doc-loop { width: 100%; height: auto; display: block; max-height: 460px; }
.loop-ring { fill: none; stroke: var(--line); stroke-dasharray: 3 7; }
.loop-arrow { stroke: var(--turquoise); stroke-width: 1.6; opacity: .8; }
.loop-core { fill: rgba(64,224,208,.12); stroke: var(--turquoise); stroke-width: 1.5; }
.loop-core-t { fill: var(--text); font: 800 18px var(--display); }
.loop-core-s { fill: var(--turquoise); font: 700 10px var(--body); letter-spacing: .14em; }
.loop-node circle { fill: #1C2453; stroke: var(--turquoise); stroke-width: 1.4; }
.loop-k { fill: var(--text); font: 800 12px var(--body); letter-spacing: .04em; }
.loop-l { fill: var(--muted); font: 600 13px var(--body); }
.doc-chart-wrap { margin-top: 14px; padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid var(--line-soft); background: var(--panel); }
.doc-chart { width: 100%; height: auto; display: block; }
.doc-chart .grid { stroke: var(--line-soft); }
.doc-chart .tick { fill: var(--faint); font: 500 11px var(--body); }
.doc-chart .ln { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.doc-chart .ln.traffic, .doc-chart .dot.traffic { stroke: var(--turquoise); fill: none; }
.doc-chart .dot.traffic { fill: var(--turquoise); }
.doc-chart .ln.profit { stroke: var(--flare); }
.doc-chart .dot.profit { fill: var(--flare); }
.doc-chart .lbl { font: 700 12px var(--body); }
.doc-chart .lbl.traffic { fill: var(--turquoise); }
.doc-chart .lbl.profit { fill: var(--flare); }
.doc-legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.doc-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.doc-legend i.traffic { background: var(--turquoise); }
.doc-legend i.profit { background: var(--flare); }
.doc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.doc-stats div { padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line-soft); background: var(--panel-2); display: grid; gap: 4px; }
.doc-stats b { font: 700 1.3rem var(--display); color: var(--turquoise); }
.doc-stats span { color: var(--muted); font-size: 14px; }
.doc-modules { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.doc-modules li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--panel); }
.doc-modules li > div { flex: 1; min-width: 0; }
.doc-modules h3 { font-size: 1rem; }
.doc-modules p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.doc-checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.doc-checks li { position: relative; padding: 10px 12px 10px 36px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line-soft); }
.doc-checks li::before { content: "✓"; position: absolute; left: 12px; top: 9px; font-weight: 800; color: var(--ok); }
.doc-not { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--muted); }
.doc-not span { color: var(--danger); font-weight: 600; }
.doc-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.doc-plan { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel-2); display: grid; gap: 8px; align-content: start; }
.doc-plan.featured { border-color: var(--turquoise); box-shadow: 0 0 0 3px rgba(64,224,208,.12); }
.doc-plan b { font: 700 2rem/1.1 var(--display); }
.doc-plan b small { font: 500 .9rem var(--body); color: var(--muted); margin-left: 3px; }
.doc-plan ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--muted); font-size: 14.5px; }
.doc-plan p { margin: 0; font-size: 13px; }
.doc-cta { text-align: center; margin-top: 20px; padding: 34px 24px; border-radius: var(--r-lg); border: 1px solid rgba(64,224,208,.35); background: radial-gradient(60% 100% at 50% 0%, rgba(64,224,208,.16), transparent 70%), var(--panel); }
.doc-cta .muted { max-width: 58ch; margin: 8px auto 18px; }
.doc-contacts { list-style: none; padding: 0; margin: 22px auto 0; display: grid; gap: 8px; max-width: 460px; text-align: left; }
.doc-contacts li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--line-soft); border-radius: 10px; }
.doc-contacts span { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.doc-contacts a { color: var(--turquoise); font-weight: 600; }
@media (max-width: 860px) { .doc-steps, .doc-plans, .doc-stats, .doc-modules, .doc-checks { grid-template-columns: 1fr; } .doc-why { grid-template-columns: 1fr; } .doc-hero { padding: 24px 18px; } }
body.has-side main .doc-sec { scroll-margin-top: calc(var(--bar-h) + 58px); }

/* ---------- overview: AEO + SEO score rings ---------- */
.score-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.score-col { display: grid; justify-items: center; gap: 8px; text-align: center; min-width: 0; }
.score-col .orbit { width: 100%; }
.score-note { margin: 0; color: var(--muted); font-size: 13.5px; max-width: 30ch; }
.score-sub { margin: 22px 0 12px; font-size: 1rem; }
.panel .cat { grid-template-columns: minmax(110px, 150px) minmax(0, 1fr) 40px; }
@media (max-width: 520px) { .score-pair { grid-template-columns: 1fr; } }
.score-note b { color: var(--text); }

/* ---------- Ask ATLAS: a clearly separate chat window ---------- */
.voice-scrim { position: fixed; inset: 0; z-index: 29; background: rgba(5,8,22,.55); backdrop-filter: blur(2px); }
.voice-panel {
  background: linear-gradient(180deg, #0F1640 0%, #0B1030 100%);
  border: 1px solid rgba(64,224,208,.55);
  box-shadow: 0 0 0 1px rgba(64,224,208,.12), 0 30px 80px rgba(0,0,0,.65), 0 0 40px rgba(64,224,208,.12);
  overflow: hidden;
}
.voice-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--turquoise)); }
.voice-head { gap: 12px; justify-content: flex-start; padding: 16px 16px 12px; border-bottom: 1px solid var(--line-soft); background: rgba(64,224,208,.05); }
.voice-head .icon { margin-left: auto; }
.voice-orb { width: 34px; height: 34px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 35%, #FFFFFF 0 12%, #9CF5EA 30%, var(--teal) 70%); box-shadow: 0 0 16px rgba(64,224,208,.6); }
.voice-title { display: grid; gap: 2px; }
.voice-title h2 { font-size: 1.15rem; }
.voice-title span { font-size: 12.5px; color: var(--ok); }
.voice-title span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; }
.voice-log { padding: 14px 16px; }
.msg.hint { color: var(--muted); font-size: 14.5px; }
.voice-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.voice-chips button { font: 600 13px var(--body); padding: 7px 11px; border-radius: 999px; background: rgba(64,224,208,.08); border: 1px solid rgba(64,224,208,.35); color: var(--text); }
.voice-chips button:hover { background: rgba(64,224,208,.18); }
.voice-form { background: rgba(0,0,0,.18); }
body.voice-open .voice-fab { box-shadow: 0 0 0 3px rgba(64,224,208,.35), 0 10px 30px rgba(0,0,0,.35); }

/* ---------------- Social media hub ---------------- */
.soc-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.soc-stats > div { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 14px 16px; display: grid; gap: 2px; }
.net-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--net, var(--faint)); display: inline-block; flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--net, #7C86B6) 25%, transparent); }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.acct { border: 1px solid var(--line-soft); border-top: 3px solid var(--net); border-radius: var(--r-md); background: var(--panel-2); padding: 14px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.acct p { margin: 0; overflow-wrap: anywhere; }
.acct.soon { opacity: .6; border-top-style: dashed; }
.acct.setup { border-top-color: var(--line); }
.acct-top { display: flex; align-items: center; gap: 8px; }
.acct-top b { font-family: var(--display); }
.acct-state { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--faint); white-space: nowrap; }
.acct-state.on { color: var(--aurora); }
.acct-state.reconnect { color: var(--flare); }
.acct select { width: 100%; }
.small-note { font-size: 12.5px; line-height: 1.45; }
.soc-radio { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: var(--r-sm); margin-bottom: 8px; cursor: pointer; }
.soc-radio:has(input:checked) { border-color: var(--turquoise); background: rgba(64,224,208,.06); }
.soc-radio input { width: 18px; height: 18px; flex: none; margin: 2px 0 0; padding: 0; accent-color: var(--teal); }
.soc-radio span { display: grid; gap: 2px; color: var(--text); }
.soc-radio small { color: var(--muted); font-weight: 400; font-size: 13px; }
.post-list { display: grid; gap: 12px; }
.post-card { border: 1px solid var(--line-soft); border-left: 3px solid var(--net); border-radius: var(--r-md); background: var(--panel-2); padding: 14px; display: grid; gap: 10px; min-width: 0; }
.post-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-when { margin-left: auto; font-size: 13px; }
.post-body { display: flex; gap: 12px; align-items: flex-start; }
.post-body textarea { flex: 1; min-width: 0; font-size: 14px; line-height: 1.5; }
.post-img { width: 120px; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--panel); flex: none; }
.post-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.post-meta select { width: auto; padding: 4px 8px; font-size: 13px; }
.counter { color: var(--faint); font-variant-numeric: tabular-nums; }
.counter.over { color: var(--danger); font-weight: 700; }
.post-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.post-stats b { color: var(--text); }
.post-actions .post-at { width: auto; padding: 7px 10px; font-size: 14px; }
.danger-link { color: var(--danger); margin-left: auto; font-size: 14px; }
.learn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.learn-card { border: 1px solid var(--line-soft); border-top: 3px solid var(--net); border-radius: var(--r-md); background: var(--panel-2); padding: 14px; display: grid; gap: 8px; align-content: start; }
.learn-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--text); font-size: 14px; }
.learn-card summary { cursor: pointer; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .soc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .post-body { flex-direction: column; }
  .post-img { width: 100%; aspect-ratio: 16/9; }
  .post-when { margin-left: 0; width: 100%; }
  .danger-link { margin-left: 0; }
}
.soc-stats .metric-big { font-family: var(--display); font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.soc-stats .metric-label { color: var(--muted); font-size: 13px; }

/* ---------------- chat logo ---------------- */
.voice-orb { display: grid; place-items: center; color: #0E1430; }
.voice-orb svg { width: 24px; height: 24px; }

/* ---------------- network icons ---------------- */
.net-ico { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; flex: none; background: color-mix(in srgb, var(--net, #7C86B6) 22%, transparent); color: var(--net, var(--text)); font-size: 15px; }
.social-head .net-ico { width: 22px; height: 22px; font-size: 13px; vertical-align: -5px; margin-right: 4px; }
.addon-lock { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 16px; }
.addon-lock button { margin-left: auto; }

/* ---------------- footer: social + ticket ---------------- */
.foot-social { display: inline-flex; gap: 6px; }
.foot-social { align-items: center; }
#ticketLink { margin-right: 8px; }

/* ---------------- journey step: sitemap check ---------------- */
.journey-step { margin: 4px 0 16px; padding: 16px; border: 1px solid rgba(64,224,208,.3); border-radius: var(--r-md); background: rgba(64,224,208,.05); display: grid; gap: 10px; }
.journey-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.journey-track { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; counter-reset: j; }
.journey-track li { counter-increment: j; font-size: 13px; padding: 4px 10px 4px 6px; border-radius: 999px; border: 1px solid var(--line); color: var(--faint); display: inline-flex; gap: 6px; align-items: center; }
.journey-track li::before { content: counter(j); width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--line); color: var(--text); font-size: 11px; font-weight: 700; }
.journey-track li.done { color: var(--text); border-color: rgba(94,230,196,.5); }
.journey-track li.done::before { content: "✓"; background: var(--teal); color: #062A28; }
.journey-track li.now { color: var(--flare); border-color: var(--flare); }
.sm-facts, .sm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.sm-facts { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.sm-facts li::before { margin-right: 6px; font-weight: 700; }
.sm-facts li.ok::before { content: "✓"; color: var(--aurora); }
.sm-facts li.no::before { content: "!"; color: var(--flare); }
.sm-steps li { padding: 8px 10px; border-radius: var(--r-sm); background: var(--panel-2); border-left: 3px solid var(--line); }
.sm-steps li.high { border-left-color: var(--danger); }
.sm-steps li.medium { border-left-color: var(--flare); }
.sm-steps li.ok { border-left-color: var(--aurora); }

/* ---------------- journey choice (first question + profile) ---------------- */
.journey-opts { display: grid; gap: 10px; }
.journey-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line-soft); border-radius: var(--r-md); cursor: pointer; background: var(--panel-2); }
.journey-opt.on, .journey-opt:has(input:checked) { border-color: var(--turquoise); background: rgba(64,224,208,.07); }
.journey-opt input { width: 18px; height: 18px; flex: none; margin: 3px 0 0; padding: 0; accent-color: var(--teal); }
.journey-opt span { display: grid; gap: 4px; color: var(--text); }
.journey-opt small { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.journey-opt em { font-style: normal; color: var(--aurora); font-weight: 600; }
.plan-badge.inline { position: static; display: inline-block; margin-left: 6px; vertical-align: 1px; }

/* ---------------- profile ---------------- */
.profile-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; background: radial-gradient(120% 140% at 0% 0%, rgba(64,224,208,.14), transparent 55%), var(--panel); }
.avatar-xl { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; font: 800 1.7rem/1 var(--display); color: #062A28; background: linear-gradient(135deg, var(--aurora), var(--turquoise) 55%, #7FB2FF); box-shadow: 0 10px 30px rgba(64,224,208,.25); }
.profile-id h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.profile-id p { margin: 4px 0 0; overflow-wrap: anywhere; }
.profile-progress { position: relative; width: 84px; height: 84px; }
.profile-progress svg { width: 84px; height: 84px; transform: rotate(-90deg); }
.profile-progress circle { fill: none; stroke-width: 3.2; }
.profile-progress .track { stroke: var(--line); }
.profile-progress .bar { stroke: var(--aurora); stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.profile-progress span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.profile-progress b { font: 700 1.1rem/1 var(--display); }
.profile-progress small { color: var(--faint); font-size: 11px; }
.profile-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.profile-stats > div { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 14px 16px; display: grid; gap: 2px; }
.profile-stats .metric-big { font: 700 1.6rem/1.1 var(--display); }
.profile-stats .metric-label { color: var(--muted); font-size: 13px; }
.milestones { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.milestones li { padding: 8px 12px; border-radius: 999px; border: 1px dashed var(--line); color: var(--faint); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.milestones li.done { border-style: solid; border-color: rgba(255,180,84,.55); color: var(--text); background: rgba(255,180,84,.08); }
.milestones li.done span { color: var(--flare); }
.profile-sites { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.profile-sites li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: var(--r-sm); background: var(--panel-2); }
.profile-sites li > div { display: grid; min-width: 0; }
.doc-links { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; margin-top: 8px; }
@media (max-width: 1023px) { .profile-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .profile-hero { grid-template-columns: auto minmax(0, 1fr); }
  .profile-progress { grid-column: 1 / -1; justify-self: start; }
  .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot { gap: 12px; }
}

/* ---------------- ORION videos ---------------- */
:root { --orion: #A99BFF; --rec: #FF5D7A; }
.vid-studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); gap: 20px; align-items: start; }
.vid-main { display: grid; gap: 16px; min-width: 0; }
.vid-compose { display: grid; gap: 12px; }
.vid-compose h2 { margin: 0; }
.vid-label { margin: 6px 0 -2px; color: var(--muted); font-size: 14px; font-weight: 600; }
.vid-src { display: grid; gap: 6px; }
.seg, .pills { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--night-2); border: 1px solid var(--line-soft); border-radius: 999px; width: fit-content; max-width: 100%; }
.seg label, .pills label { position: relative; cursor: pointer; }
.seg input, .pills input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; margin: 0; }
.seg > label > span, .pills > label > span, .pills > button { display: block; padding: 7px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 14px; transition: background .15s, color .15s; }
.pills button { background: none; border: 0; cursor: pointer; font: inherit; font-size: 14px; }
.seg input:checked + span, .pills input:checked + span, .pills > button[aria-selected=true] { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.seg input:focus-visible + span, .pills input:focus-visible + span { outline: 2px solid var(--turquoise); outline-offset: 1px; }
.pills.small > button { padding: 6px 12px; font-size: 13px; white-space: nowrap; }
#vidLibrary .head-row { align-items: center; flex-wrap: wrap; gap: 10px; }
#vidLibrary .head-row h2 { margin: 0; }

.vid-formats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vid-format { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line-soft); border-radius: var(--r-md); cursor: pointer; background: var(--panel-2); }
.vid-format input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; margin: 0; }
.vid-format b { display: block; font-family: var(--display); }
.vid-format small { color: var(--muted); font-size: 13px; }
.vid-format:has(input:checked) { border-color: var(--orion); box-shadow: 0 0 0 3px rgba(169,155,255,.14); }
.vid-format:has(input:focus-visible) { outline: 2px solid var(--turquoise); outline-offset: 2px; }
.vf-frame { flex: none; border: 2px solid var(--faint); border-radius: 4px; }
.vid-format.short .vf-frame { width: 18px; height: 32px; }
.vid-format.video .vf-frame { width: 36px; height: 20px; }
.vid-format:has(input:checked) .vf-frame { border-color: var(--orion); background: rgba(169,155,255,.18); }
.soc-radio.off { opacity: .55; cursor: not-allowed; }
.vid-go { margin-top: 6px; gap: 12px; align-items: center; }

/* the viewfinder: the one bold element */
.vid-side { display: grid; gap: 16px; }
/* preview stage: its own lit panel, kept in view while the form scrolls */
.vid-stage { position: sticky; top: calc(var(--bar-h, 60px) + 16px); gap: 14px; padding: 18px 18px 16px; overflow: hidden;
  background: radial-gradient(90% 55% at 50% 0%, rgba(169,155,255,.18), transparent 70%), radial-gradient(70% 45% at 50% 100%, rgba(64,224,208,.10), transparent 70%), var(--panel); }
.stage-head { display: flex; justify-content: space-between; align-items: center; }
.stage-label { font-family: var(--display); font-weight: 700; font-size: 15px; }
.stage-fmt { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--orion); padding: 3px 9px; border: 1px solid rgba(169,155,255,.35); border-radius: 999px; }
.vid-stage .vf-screen { box-shadow: 0 28px 70px -28px rgba(169,155,255,.55), 0 10px 30px -18px rgba(64,224,208,.35); }
.vid-stage .viewfinder.short .vf-screen { width: min(320px, 100%); }
.vid-go .faint a { color: var(--turquoise); font-weight: 600; }
.viewfinder { display: grid; justify-items: center; gap: 8px; }
.vf-screen { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; padding: 18px 20px; display: flex; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(120% 90% at 85% 10%, rgba(169,155,255,.55), transparent 55%), radial-gradient(90% 80% at 0% 100%, rgba(64,224,208,.45), transparent 60%), #0A0F2A;
  border: 1px solid var(--line); transition: aspect-ratio .35s ease, width .35s ease; }
.viewfinder.short .vf-screen { width: min(340px, 92%); aspect-ratio: 9 / 16; }
.vf-screen::before, .vf-screen::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid rgba(232,236,251,.7); }
.vf-screen::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.vf-screen::after { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.vf-rec { position: absolute; top: 14px; right: 16px; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--text); }
.vf-rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); animation: vfblink 1.4s steps(2, start) infinite; }
@keyframes vfblink { to { visibility: hidden; } }
.vf-title { font-family: var(--display); font-stretch: 78%; font-weight: 800; line-height: .98; letter-spacing: -.01em; color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  text-wrap: balance; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.viewfinder.short .vf-title { font-size: 1.9rem; -webkit-line-clamp: 6; }
.vf-site { margin-top: 8px; font-size: 12px; color: rgba(232,236,251,.75); }
.vf-caption { margin: 0; color: var(--faint); font-size: 13px; }
/* camera / photo layer behind the overlays */
.vf-live, .vf-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #060A1E; }
.vf-live[hidden], .vf-shot[hidden] { display: none; }
.vf-live.mirror { transform: scaleX(-1); }
.vf-scrim { position: absolute; inset: 0; display: none; background: linear-gradient(180deg, rgba(6,9,24,0) 40%, rgba(6,9,24,.8)); }
.vf-screen.has-media .vf-scrim { display: block; }
.vf-screen::before, .vf-screen::after, .vf-rec { z-index: 1; }
.vf-title, .vf-site { position: relative; z-index: 1; }
.vf-tools { justify-content: center; gap: 4px; padding: 4px; width: fit-content; max-width: 100%; margin: 4px auto 0; background: var(--night-2); border: 1px solid var(--line-soft); border-radius: 999px; }
.vf-tools .button, .vf-tools button { border-radius: 999px; }
.vf-tools .ghost { border-color: transparent; }
.vf-tools .ghost:hover { background: var(--panel-2); border-color: var(--line); }
.vf-note { margin: -4px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.photo-post { display: grid; gap: 14px; }
.pp-top { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: start; }
.pp-top label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
.pp-img { width: 120px; border-radius: 12px; border: 1px solid var(--line); display: block; }
.pp-nets { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pp-nets legend { font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.pp-net { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line-soft); border-radius: 999px; background: var(--panel-2); cursor: pointer; font-size: 14px; }
.pp-net:has(input:checked) { border-color: var(--turquoise); }
.pp-net.off { opacity: .55; cursor: not-allowed; }
.pp-net small { white-space: nowrap; }
@media (max-width: 560px) { .pp-top { grid-template-columns: 1fr; } .pp-img { width: 140px; } }
.vf-file { position: relative; cursor: pointer; }
.vf-file input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.vf-file:has(input:focus-visible) { outline: 2px solid var(--turquoise); outline-offset: 2px; }

.yt-card { display: grid; gap: 8px; }
.yt-card p { margin: 0; }
.yt-top { display: flex; align-items: center; gap: 10px; }
.yt-top b { font-family: var(--display); }
.yt-logo { width: 26px; height: 18px; border-radius: 5px; background: #FF3B3B; position: relative; flex: none; }
.yt-logo::after { content: ""; position: absolute; left: 10px; top: 5px; border-left: 8px solid #fff; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }

/* library */
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.vid-card { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-md); background: var(--panel-2); border: 1px solid var(--line-soft); overflow: hidden; min-width: 0; }
.vid-card:hover { border-color: var(--line); }
.vid-card:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 2px; }
.vid-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #0A0F2A; overflow: hidden; }
.vid-card.short .vid-thumb img { object-fit: contain; background: #070B20; }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-ph { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 12px; font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 1.15rem; line-height: 1.05; color: #fff;
  background: radial-gradient(100% 90% at 90% 0%, rgba(169,155,255,.45), transparent 60%), radial-gradient(80% 80% at 0% 100%, rgba(64,224,208,.35), transparent 60%); overflow: hidden; align-items: center; justify-content: center; }
.vid-ph i { width: 44px; height: 44px; border-radius: 50%; background: rgba(6,9,24,.55); position: relative; }
.vid-ph i::after { content: ""; position: absolute; left: 17px; top: 13px; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.vid-badge { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(6,9,24,.72); font-size: 12px; font-weight: 700; color: var(--text); }
.vid-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.12); }
.vid-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--turquoise), var(--orion)); transition: width .6s ease; }
.vid-meta { display: grid; gap: 6px; padding: 12px; align-content: start; }
.vid-meta b { font-family: var(--display); font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vid-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 0; }
.vid-status.done { color: var(--aurora); }
.vid-status.bad { color: var(--flare); }
.vid-status.ready { color: var(--text); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--orion); animation: vidpulse 1.6s ease-in-out infinite; }
@keyframes vidpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(169,155,255,.6); } 50% { box-shadow: 0 0 0 6px rgba(169,155,255,0); } }
.vid-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; counter-reset: vs; }
.vid-track li { font-size: 11.5px; color: var(--faint); padding-top: 7px; border-top: 3px solid var(--line-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vid-track li.past { border-top-color: var(--teal); color: var(--muted); }
.vid-track li.now { border-top-color: var(--orion); color: var(--text); font-weight: 700; }
.vid-track.bad li.now { border-top-color: var(--flare); }
.vid-track.done li { border-top-color: var(--aurora); color: var(--muted); }

/* detail */
.modal-card.wide { width: min(1040px, 100%); }
.vid-detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.vid-stage { display: grid; gap: 12px; }
.vid-player { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #060A1E; display: block; }
.vid-player.short { aspect-ratio: 9 / 16; max-height: 62vh; width: auto; max-width: 100%; justify-self: center; }
.vid-wait { display: grid; place-items: center; position: relative; overflow: hidden; color: var(--muted); font-size: 14px; text-align: center; padding: 16px; }
.vid-wait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.vid-wait span { position: relative; }
.vid-pub { display: grid; gap: 8px; }
.vid-pub h3 { margin: 0 0 4px; }
.vid-pub label { font-size: 14px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.vid-scenes { margin-top: 18px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.vid-scenes summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.vid-scenes ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.vid-scenes li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; }
.vid-scenes small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.45; margin-top: 2px; }
.sc-img { width: 96px; aspect-ratio: 16 / 9; border-radius: 8px; background: var(--panel-2); overflow: hidden; display: block; }
.sc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 960px) {
  .vid-studio, .vid-detail { grid-template-columns: minmax(0, 1fr); }
  .vid-side { grid-row: 1; }
  .vid-stage { position: static; }
  .viewfinder:not(.short) .vf-screen { width: 100%; }
}
@media (max-width: 560px) {
  .vid-formats { grid-template-columns: minmax(0, 1fr); }
  .vid-stage .viewfinder.short .vf-screen { width: min(240px, 72%); }
  .vid-stage .viewfinder.short .vf-title { font-size: 1.5rem; }
  .vid-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .vf-rec i, .pulse { animation: none; }
  .vf-screen, .vid-bar i { transition: none; }
}

/* ---------------- docs: social media ---------------- */
.doc-steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.doc-sub { margin: 28px 0 0; font-size: 1.15rem; }
.doc-note { margin: 14px 0 0; padding: 12px 14px; border-left: 3px solid var(--flare); background: rgba(255,180,84,.06); border-radius: 0 10px 10px 0; color: var(--muted); font-size: 14.5px; }
.doc-social-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.doc-social-grid .doc-card p:last-child { margin-top: auto; padding-top: 6px; }
@media (max-width: 1100px) { .doc-steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .doc-steps-4, .doc-social-grid { grid-template-columns: 1fr; } }
/* ---------------- brand tiles (official logos in brand colours) ---------------- */
.sm-logo { --b: #3A4478; display: inline-grid; place-items: center; background: var(--b); color: #fff; flex: none; }
.sm-logo svg { width: 56%; height: 56%; fill: currentColor; display: block; }
.b-linkedin { --b: #0A66C2; }
.b-facebook { --b: #0866FF; }
.b-instagram { background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.b-x, .b-threads, .b-tiktok { --b: #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.b-youtube { --b: #FF0000; }
.b-reddit { --b: #FF4500; }
.b-pinterest { --b: #BD081C; }
.foot-social a.sm-logo { width: 34px; height: 34px; border-radius: 10px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.foot-social a.sm-logo:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.foot-social a.sm-logo:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 2px; }
.net-ico.sm-logo { color: #fff; }
.net-ico.sm-logo svg { width: 58%; height: 58%; }
@media (prefers-reduced-motion: reduce) { .foot-social a.sm-logo { transition: none; } .foot-social a.sm-logo:hover { transform: none; } }

/* ——— Onboarding journey: Page 0 scan + auth + wizard (pages 1–6) ——— */
.p0-signin { margin-top: 12px; color: var(--muted); font-size: .95rem; }
.p0-values { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.p0-values li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; color: var(--muted); background: rgba(22,29,69,.6); }
.p0-scan-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.p0-state { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.p0-complete { color: var(--ok); }
.p0-failed { color: var(--danger); }
.p0-stages { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 18px; }
.p0-stages li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; }
.p0-dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--faint); flex: none; }
.p0-stages li.pending .p0-dot { border-color: var(--turquoise); animation: p0pulse 1.6s ease-in-out infinite; }
.p0-stages li.done { color: var(--text); }
.p0-stages li.done .p0-dot { background: var(--ok); border-color: var(--ok); }
.p0-stages li.stopped .p0-dot { border-color: var(--danger); }
@keyframes p0pulse { 50% { opacity: .35; } }
.p0-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .9rem; }
.p0-facts b { color: var(--text); }
.p0-later { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.p0-later li { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.p0-later small { display: block; color: var(--faint); font-size: .82rem; }
.p0-pill { flex: none; font-size: .74rem; padding: 4px 10px; border-radius: 999px; border: 1px dashed var(--line); color: var(--muted); white-space: nowrap; }
.p0-unlock { margin-top: 20px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; border-color: rgba(94,230,196,.35); }
.p0-unlock-list { columns: 2; padding-left: 18px; margin: 12px 0 0; color: var(--muted); font-size: .92rem; }
.p0-unlock-list li { margin-bottom: 4px; break-inside: avoid; }

.auth-stack { display: grid; gap: 10px; }
.auth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; color: #1f2333; font: 600 .98rem var(--body); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.auth-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.auth-btn:disabled { opacity: .5; cursor: not-allowed; }
.auth-btn.ghosted { background: transparent; color: var(--text); border-color: var(--aurora); }
.auth-off { margin-top: -4px; font-size: .78rem; text-align: center; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: .78rem; letter-spacing: .12em; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-form { margin-top: 4px; }
.auth-links { color: var(--muted); font-size: .9rem; text-align: center; margin-top: 6px; }

.ob { max-width: 920px; margin: 10px auto 40px; }
.ob.ob-wide { max-width: 1180px; }
.ob-top { margin-bottom: 26px; }
.ob-progress { display: flex; align-items: center; gap: 12px; }
.ob-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.ob-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--aurora)); border-radius: inherit; transition: width .5s ease; }
.ob-pct { font-weight: 700; color: var(--aurora); min-width: 3.2em; text-align: right; }
.ob-steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.ob-steps li { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--faint); }
.ob-steps li span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-size: .7rem; flex: none; }
.ob-steps li.on { color: var(--text); }
.ob-steps li.on span { border-color: var(--aurora); color: var(--aurora); }
.ob-steps li.done span { background: var(--teal); border-color: var(--teal); color: var(--aurora-ink); }
.ob-head { margin-bottom: 20px; }
.ob-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 6px 0 8px; }
.ob-cards { display: grid; gap: 12px; }
.ob-card { display: flex; align-items: center; gap: 14px; line-height: 1.35; white-space: normal; height: auto; width: 100%; text-align: left; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.ob-card:hover:not(:disabled) { border-color: var(--aurora); transform: translateY(-1px); }
.ob-card-main { flex: 1; display: grid; gap: 2px; }
.ob-card-main b { font-size: 1.08rem; }
.ob-card-main small { color: var(--muted); }
.ob-go { font-size: 1.3rem; color: var(--aurora); }
.ob-tag { font-size: .72rem; padding: 3px 9px; border-radius: 999px; background: rgba(94,230,196,.12); color: var(--aurora); }
.ob-other { border-style: dashed; background: transparent; }
.ob-url { display: flex; gap: 10px; margin-top: 14px; }
.ob-url input { flex: 1; }
.ob-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.ob-back { margin-top: 14px; }
.ob-chips { margin-top: 12px; }
.ob-chip { cursor: pointer; font: inherit; }
.ob-chip.on { background: var(--aurora); color: var(--aurora-ink); border-color: var(--aurora); }
.ob-found { margin-top: 14px; font-style: italic; }
.ob-goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.ob-goal { display: grid; gap: 4px; line-height: 1.35; white-space: normal; min-width: 0; overflow-wrap: anywhere; height: auto; text-align: left; padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.ob-goal small { color: var(--muted); font-size: .82rem; }
.ob-goal.on { border-color: var(--aurora); background: rgba(94,230,196,.10); }
.ob-goal.on b::before { content: "✓ "; color: var(--aurora); }
.ob-nets { display: grid; gap: 10px; margin-bottom: 14px; }
.ob-net { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--panel); }
.ob-net > div { flex: 1; display: grid; }
.ob-net small { color: var(--muted); font-size: .84rem; }
.ob-net .net-ico { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; }
.ob-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.ob-summary small { display: block; color: var(--faint); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.ob-summary b { display: block; margin-top: 4px; }
.ob-launch { min-width: 240px; }
@media (max-width: 760px) {
  .p0-unlock { grid-template-columns: 1fr; }
  .p0-unlock-list { columns: 1; }
  .ob-steps { grid-template-columns: repeat(4, 1fr); }
  .ob-url { flex-direction: column; }
  .ob-actions { flex-direction: column-reverse; }
  .ob-actions .primary, .ob-actions .ghost { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .p0-stages li.pending .p0-dot { animation: none; } .ob-bar span { transition: none; } }

/* ---------- Loading skeleton (signed-in first screen) ---------- */
.sk-wrap { display: grid; gap: 18px; }
.sk-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.sk-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.sk-card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 12px; min-height: 170px; align-content: start; }
.sk-wide { min-height: 150px; }
.sk { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--panel-2) 0%, var(--line) 50%, var(--panel-2) 100%); background-size: 200% 100%; animation: skShimmer 1.3s ease-in-out infinite; }
.sk-title { height: 30px; width: min(320px, 60%); }
.sk-pill { height: 30px; width: 110px; border-radius: 999px; }
.sk-orb { width: 72px; height: 72px; border-radius: 50%; }
.sk-line { height: 12px; width: 100%; }
.sk-line.w40 { width: 40%; } .sk-line.w50 { width: 50%; } .sk-line.w60 { width: 60%; }
.sk-line.w70 { width: 70%; } .sk-line.w80 { width: 80%; } .sk-line.w90 { width: 90%; }
.sk-note { color: var(--faint); font-size: 14px; margin: 0; }
.sk-error { max-width: 520px; margin: 40px auto; text-align: center; }
.sk-error h2 { margin: 0 0 8px; }
.sk-error p { color: var(--muted); margin: 0 0 18px; }
@keyframes skShimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

/* Onboarding Page 5 · Connect your website */
.host-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.host-card { align-items: stretch; }
.host-card .host-level { justify-self: start; margin-top: 8px; }
.host-level { flex: none; font-size: .72rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.host-level.host-full { color: var(--aurora); border-color: rgba(94,230,196,.45); background: rgba(94,230,196,.08); }
.host-level.host-with_setup { color: var(--text); }
.host-level.host-audit_only { border-style: dashed; }
.host-detected h2 { margin: 4px 0 2px; }
.host-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.host-head h2 { margin: 0; flex: 1 1 auto; }
.host-status { font-size: .74rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.host-status.host-verified, .host-status.host-connected { color: var(--ok); border-color: rgba(94,230,196,.5); }
.host-status.host-needs_attention { color: #F5C26B; border-color: rgba(245,194,107,.5); }
.host-status.host-failed { color: #FF8A8A; border-color: rgba(255,138,138,.5); }
.host-setup { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 14px; }
.host-setup dt { color: var(--muted); font-weight: 600; font-size: .86rem; }
.host-setup dd { margin: 0; overflow-wrap: anywhere; }
.host-checks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.host-checks li { display: grid; gap: 2px; padding-left: 24px; position: relative; }
.host-checks li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.host-checks li.hc-pass::before { content: "✓"; color: var(--ok); }
.host-checks li.hc-fail::before { content: "!"; color: #F5C26B; }
.host-checks li.hc-unknown::before { content: "–"; color: var(--faint); }
.host-checks small { color: var(--muted); overflow-wrap: anywhere; }
.host-caps { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.host-caps dt { color: var(--muted); }
.host-caps dd { margin: 0; font-weight: 600; }
.host-caps dd.cap-yes, .host-caps dd.cap-atlas_managed { color: var(--ok); }
.host-caps dd.cap-no { color: var(--faint); }
.host-req { margin-top: 16px; color: var(--muted); }
.host-req summary { cursor: pointer; font-weight: 600; }
.host-req ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; }
button.journey-opt { width: 100%; text-align: left; font: inherit; color: var(--text); height: auto; white-space: normal; }
@media (max-width: 560px) { .host-setup, .host-caps { grid-template-columns: 1fr; } .host-setup dd, .host-caps dd { margin-bottom: 6px; } }
.host-mode { display: grid; gap: 4px; }
.host-help { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-color: rgba(94,230,196,.35); margin-bottom: 14px; }
.host-help > div { flex: 1 1 260px; display: grid; gap: 4px; }
.host-live { margin-top: 16px; }
.host-embed > .panel { background: var(--panel-2); margin-top: 12px; }

/* ——— Social setup journey: platform cards, automation, snapshots ——— */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.acct-formats { display: flex; flex-wrap: wrap; gap: 6px; }
.acct-caps { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; font-size: 13px; }
.acct-caps li { display: flex; gap: 6px; align-items: center; color: var(--muted); }
.acct-caps li.yes span { color: var(--aurora); font-weight: 700; }
.acct-caps li.no { color: var(--faint); }
.acct-dev { margin: 0; padding: 8px 10px; border-radius: var(--r-sm); border: 1px dashed var(--line); color: var(--muted); }
.acct-actions { margin-top: 4px; flex-wrap: wrap; gap: 8px; }
.acct-actions button:focus-visible, .opp-snap button:focus-visible, .art-snap button:focus-visible { outline: 2px solid var(--aurora); outline-offset: 2px; }
.acct.connecting { opacity: .85; }
.soc-fieldset { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.soc-fieldset legend { font-weight: 650; margin-bottom: 8px; padding: 0; }
.soc-fieldset select, .soc-fieldset input[type=number] { min-height: 40px; }
.soc-radio:focus-within { border-color: var(--aurora); }
.opp-snap, .art-snap { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.opp-snap li, .art-snap li { border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--panel-2); padding: 12px 14px; display: grid; gap: 6px; min-width: 0; }
.opp-snap p, .art-snap p { margin: 0; overflow-wrap: anywhere; }
.opp-snap-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.opp-snap .row, .art-snap .row { flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.art-snap li { grid-template-columns: 72px minmax(0, 1fr); align-items: start; gap: 12px; }
.art-snap img, .art-noimg { width: 72px; height: 54px; border-radius: var(--r-sm); object-fit: cover; background: var(--line-soft); display: block; }
.art-snap-main { display: grid; gap: 6px; min-width: 0; }
.art-snap .chip { margin-right: 4px; }
.manage-list { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.manage-list dt { color: var(--muted); font-size: 13px; }
.manage-list dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .manage-list { grid-template-columns: 1fr; gap: 2px; }
  .manage-list dd { margin-bottom: 8px; }
  .art-snap li { grid-template-columns: 1fr; }
}
/* onboarding social step */
.ob-net-choice { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.ob-net-choice button[aria-pressed="true"] { border-color: var(--turquoise); background: rgba(64,224,208,.1); color: var(--text); }
.ob-auto { margin-top: 22px; }
.ob-net .net-ico.sm-logo { width: 28px; height: 28px; border-radius: 8px; background: var(--b); }
@media (max-width: 640px) { .ob-net { flex-wrap: wrap; } .ob-net-choice { justify-content: flex-start; width: 100%; } }

/* ==========================================================================
   Compact UI kit (PageHeader, DisclosurePanel, StatusBadge, CompactStatCard,
   EmptyState, ErrorState, ActionMenu, ConnectionCard, ConfirmDialog,
   ReviewDrawer). Built on the tokens above; no extra framework.
   ========================================================================== */

/* PageHeader: one H1, one sentence, actions right. */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head-text { min-width: 0; flex: 1 1 320px; }
.page-head h1 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); line-height: 1.1; }
.page-head p { color: var(--muted); margin-top: 6px; max-width: 60ch; }
.page-head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.page-more { margin: -6px 0 18px; }

/* DisclosurePanel / DetailsAccordion */
.disclose { border-radius: var(--r-md); }
.disclose > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--muted); font-weight: 600; font-size: 14px; border-radius: 8px; }
.disclose > summary::-webkit-details-marker { display: none; }
.disclose > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s ease; margin: 0 4px 0 2px; }
.disclose[open] > summary::before { transform: rotate(45deg); }
.disclose > summary:hover { color: var(--text); }
.disclose-body { padding: 8px 0 4px; color: var(--muted); display: grid; gap: 10px; }
.disclose-body > p, .disclose-body li { max-width: 72ch; }
.disclose.advanced, .disclose.tech { margin-top: 12px; border-top: 1px solid var(--line-soft); padding-top: 8px; }
.disclose.tech .disclose-body { font-size: 14px; overflow-wrap: anywhere; }
.panel > .disclose:last-child { margin-bottom: -6px; }
@media (prefers-reduced-motion: reduce) { .disclose > summary::before { transition: none; } }

/* StatusBadge: text plus tone, never colour alone */
.badge-s { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; line-height: 1; padding: 5px 9px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); background: var(--night-2); white-space: nowrap; }
.badge-s::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge-s.ok { color: var(--aurora); border-color: rgba(94,230,196,.45); }
.badge-s.warn { color: var(--flare); border-color: rgba(255,180,84,.5); }
.badge-s.bad { color: var(--danger); border-color: rgba(255,138,138,.5); }
.badge-s.info { color: #9FB7FF; border-color: rgba(159,183,255,.45); }

/* CompactStatCard */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0 0 18px; }
.stat { padding: 12px 14px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line-soft); display: grid; gap: 2px; min-width: 0; }
.stat b { font: 700 1.55rem/1.1 var(--display); font-variation-settings: "wdth" 85; color: var(--text); }
.stat span { color: var(--muted); font-size: 13px; }
.stat span .up, .stat span .down { margin-left: 4px; }

/* EmptyState / ErrorState */
.empty > span { display: block; max-width: 60ch; }
.empty-act { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.error-state { padding: 18px 20px; border-radius: var(--r-md); border: 1px solid rgba(255,138,138,.4); background: rgba(255,138,138,.06); color: var(--muted); display: grid; gap: 4px; }
.error-state > b { color: var(--text); font-family: var(--display); font-size: 1.05rem; }

/* ActionMenu (overflow ⋯) */
.action-menu { position: relative; display: inline-block; }
.action-menu > summary { list-style: none; cursor: pointer; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--muted); border: 1px solid transparent; font-size: 20px; line-height: 1; }
.action-menu > summary::-webkit-details-marker { display: none; }
.action-menu > summary:hover, .action-menu[open] > summary { color: var(--text); background: var(--panel-2); border-color: var(--line); }
.action-menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 190px; display: grid; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.action-menu-list button, .action-menu-list a { justify-content: flex-start; width: 100%; background: none; border: 0; border-radius: 8px; padding: 10px 12px; font-size: 14px; color: var(--text); text-decoration: none; white-space: normal; text-align: left; min-height: 40px; }
.action-menu-list button:hover, .action-menu-list a:hover, .action-menu-list button:focus-visible { background: var(--panel-2); }
.action-menu-list .danger, .action-menu-list .danger-link { color: var(--danger); }

/* ConnectionCard */
.conn-card { border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--panel-2); padding: 14px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.conn-card[style*="--net"] { border-top: 3px solid var(--net); }
.conn-card-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.conn-card-top > b { font-family: var(--display); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conn-card-top > .badge-s { margin-left: auto; }
.conn-card-top > .action-menu { margin-right: -6px; }
.conn-card-sub { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.conn-card-actions { gap: 8px; }
.conn-card .disclose-body { font-size: 14px; }
.conn-card .disclose-body select, .conn-card .disclose-body input { width: 100%; }

/* ConfirmDialog */
.dialog-actions { justify-content: flex-end; margin-top: 4px; }

/* ReviewDrawer: the modal docked right on wide screens, full sheet on phones */
.modal.as-drawer { place-items: stretch end; padding: 0; }
.modal-card.drawer { width: min(560px, 100%); max-height: none; height: 100%; border-radius: var(--r-lg) 0 0 var(--r-lg); animation: drawerIn .18s ease-out; }
@keyframes drawerIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) { .modal-card.drawer { border-radius: 0; } }
@media (prefers-reduced-motion: reduce) { .modal-card.drawer { animation: none; } }

/* Compact density: tighter panels and rhythm across the workspace */
body.has-side .panel { padding: 20px; }
body.has-side .grid-2 { gap: 16px; }
.view .panel h2 { font-size: 1.15rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.panel-head p { color: var(--faint); font-size: 14px; margin-top: 2px; }
.section-gap { margin-top: 16px; }
.inline-note { color: var(--faint); font-size: 13px; }

/* Onboarding: compact progress */
.ob-progress-label { font-size: 13px; color: var(--muted); font-weight: 600; }
@media (max-width: 760px) { .ob-steps { display: none; } }

/* Touch targets on phones */
@media (max-width: 760px) {
  button.small, .button.small { min-height: 40px; }
  .icon, .disclose > summary { min-height: 40px; }
  .page-head-actions { width: 100%; }
}
.crumbs nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.stat b small { font-size: .55em; font-weight: 600; margin-left: 2px; }
.danger-zone > summary { color: var(--danger); }
.conn-card.acct { padding: 14px; }
.conn-card .acct-caps { margin: 0; }
.page-more .how-steps { margin-top: 4px; }
.disclose-body .brief { padding: 0; }
.post-schedule { flex-basis: 100%; }
.post-schedule .disclose-body { padding-top: 6px; }
.sk-error { max-width: 640px; margin: 40px auto; }
.tw-acts .action-menu, .acts .action-menu, .post-actions .action-menu { align-self: center; }
.sk-error { text-align: left; }
/* Card header: the name never truncates; a long badge shortens instead */
.conn-card-top > b { flex: none; max-width: 60%; }
.conn-card-top > .badge-s { min-width: 0; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 1.1; }
.conn-card-top > .badge-s::before { display: inline-block; margin-right: 6px; vertical-align: middle; }
/* Post card: overflow menu stays on the action row, Schedule opens below it */
.post-actions .action-menu { order: 1; }
.post-actions .post-schedule { order: 2; }
/* SEO fixes tab */
.fix-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.fix-card { border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--panel-2); padding: 14px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.fix-change { display: grid; gap: 6px; }
.fix-change small { color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.fix-change pre, .fix-diff pre { margin: 2px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--night-2); color: var(--text); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 160px; overflow: auto; }
.fix-diff pre.del { border-left: 3px solid var(--danger); }
.fix-diff pre.add { border-left: 3px solid var(--aurora); }
.fix-head textarea { width: 100%; }
/* Live site inspection (Site health + onboarding) */
.inspect-panel { margin-bottom: 16px; }
.inspect { display: grid; gap: 12px; }
.inspect-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.inspect-head b { font-family: var(--display); font-size: 1.1rem; }
.inspect-head span { color: var(--faint); font-size: 13px; }
.inspect .crawl-bar { background: var(--night-2); }
.inspect .crawl-bar div { background: linear-gradient(90deg, var(--teal), var(--turquoise)); box-shadow: none; }
.inspect-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.inspect-checks li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-md); background: var(--panel-2); border: 1px solid var(--line-soft); min-width: 0; }
.ic-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; border: 1px solid var(--line); color: var(--faint); }
.ic-dot .spinner { width: 12px; height: 12px; min-width: 12px; min-height: 12px; }
.ic-text { display: grid; gap: 2px; min-width: 0; }
.ic-text b { font-size: 14px; }
.ic-text small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.ic-pending { opacity: .6; }
.ic-running { border-color: rgba(64,224,208,.45); }
.ic-pass .ic-dot { background: var(--teal); border-color: var(--teal); color: var(--aurora-ink); }
.ic-warn .ic-dot { background: rgba(255,180,84,.15); border-color: var(--flare); color: var(--flare); }
.ic-fail .ic-dot { background: rgba(255,138,138,.15); border-color: var(--danger); color: var(--danger); }
.inspect-log { margin: 0; padding: 10px 12px; border-radius: var(--r-md); background: #020805; border: 1px solid #0F2A18; color: #39FF7A; font: 12.5px/1.55 "SFMono-Regular", Menlo, Consolas, monospace; max-height: 200px; overflow: auto; white-space: pre-wrap; }
@media (prefers-reduced-motion: reduce) { .inspect .crawl-bar div { transition: none; } }
.fix-all-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; padding: 14px 18px; }
.fix-all-bar > div { display: grid; gap: 2px; }
.issue-fix-row { margin: 10px 0 6px; gap: 10px; }
.issues summary .badge-s { margin-left: 4px; }
.small-link { font-size: 13px; margin-left: 6px; }
.fix-grid.one { grid-template-columns: 1fr; }
.fix-stats { margin: 14px 0 16px; }
.fix-mode { border: 0; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; min-width: 0; }
.fix-mode legend { padding: 0; margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.fix-issues-head { flex-wrap: wrap; gap: 10px; }
.fix-issues-head .pills { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; }
.fix-job { margin: 0 0 12px; color: var(--text); font-size: 14px; display: flex; align-items: center; gap: 8px; }
/* Auto-run status on Site health and AI visibility */
.autorun-line { margin: 0 0 12px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.autorun-line.warn { color: var(--flare); }
/* Live activity of a fix run, and the single "connect your website" step */
.fix-activity { list-style: none; margin: -4px 0 14px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: var(--r-sm); display: grid; gap: 6px; max-height: 220px; overflow: auto; }
.fix-activity:empty { display: none; }
/* Live fix run sits at the top of On-page SEO; its steps read in green (failures stay red). */
.fix-live { margin-bottom: 16px; }
.fix-live .fix-activity { margin: 0; }
.fix-activity .fx-step span { color: #4ADE80; }
.fix-activity .fx-bad span { color: var(--danger); }
.fx-step { display: flex; gap: 10px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.fx-step time { flex: none; font-variant-numeric: tabular-nums; opacity: .75; }
.fx-step span { min-width: 0; overflow-wrap: anywhere; }
.fx-step::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--line-soft); }
.fx-ok::before { background: var(--ok); } .fx-ok span { color: var(--text); }
.fx-warn::before { background: var(--flare); } .fx-bad::before { background: var(--danger); } .fx-info::before { background: var(--turquoise); }
.fix-blocker { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fix-blocker h2 { margin: 0 0 4px; }
.fix-blocker p { margin: 0; max-width: 640px; }
.fix-table td { vertical-align: top; }
.fix-table td:nth-child(2) { white-space: normal; min-width: 220px; }
.fix-table td:first-child, .fix-table th:first-child { width: 32px; padding-right: 0; }
.fix-row-actions { gap: 6px; flex-wrap: nowrap; justify-content: flex-end; }

/* Blog */
.blog-next { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.blog-next .primary { margin-left: auto; }
.blog-dest { display: grid; gap: 6px; margin-bottom: 14px; }
.blog-slots { list-style: none; margin: 0; padding: 0; }
.blog-slots li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line, rgba(255,255,255,.08)); }
.blog-slots li:first-child { border-top: 0; }
.blog-date { font-size: 13px; color: var(--muted, #9aa3b8); white-space: nowrap; }
.blog-main { display: grid; gap: 2px; min-width: 0; }
.blog-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blog-acts { gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.bad-text { color: var(--bad, #ff7a7a); }
.blog-settings { display: grid; gap: 12px; max-width: 460px; }
.blog-settings label:not(.check) { display: grid; gap: 4px; }
.blog-hero img { width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--r-md, 10px); }
.blog-hero { margin: 12px 0; }
.blog-fields { display: grid; gap: 8px; margin: 12px 0; }
.blog-field { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.blog-field code { white-space: normal; word-break: break-word; font-size: 13px; }
.blog-dl { gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.blog-post { display: grid; gap: 8px; margin-top: 14px; }
.blog-reject { display: grid; gap: 6px; margin-top: 12px; }
@media (max-width: 640px) {
  .blog-slots li { grid-template-columns: minmax(0, 1fr) auto; }
  .blog-date { grid-column: 1 / -1; }
  .blog-acts { grid-column: 1 / -1; justify-content: flex-start; }
  .blog-field { grid-template-columns: minmax(0, 1fr) auto; }
  .blog-field .faint { grid-column: 1 / -1; }
}
/* Back to the previous page (in-app jumps) */
.crumb-back { background: none; border: 1px solid var(--line-soft); border-radius: 999px; padding: 4px 12px; color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.crumb-back:hover { border-color: rgba(64,224,208,.5); }
.crumb-back:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 2px; }
.hero-adjust-controls .seg { width: 100%; flex-wrap: nowrap; }
.hero-adjust-controls .seg label { flex: 1; text-align: center; }
.hero-adjust-controls .seg > label > span { padding: 7px 10px; white-space: nowrap; }

/* Social account cards: header, text, buttons and Details sit on shared rows,
   so every card's button is at the same height as its neighbours' however
   long the description is (and stays there when one card's Details opens). */
/* Without subgrid (or before it applies): cards in a row stretch to the same
   height, the text takes the slack, so buttons and Details sit at the bottom
   of every card on one line. */
.acct-grid > .conn-card.aligned { display: flex; flex-direction: column; }
.acct-grid > .conn-card.aligned > .conn-card-sub { flex: 1 1 auto; margin: 0; }
@supports (grid-template-rows: subgrid) {
  .acct-grid { row-gap: 12px; }
  .acct-grid > .conn-card.aligned { grid-row: span 4; display: grid; grid-template-rows: subgrid; row-gap: 8px; align-content: stretch; }
  .acct-grid > .conn-card.aligned > .conn-card-sub { align-self: start; margin: 0; }
  .acct-grid > .conn-card.aligned > .conn-card-actions { align-self: start; }
}

/* Journey summary: what each website does after choosing a journey */
.journey-site { border-top: 1px solid var(--line-soft); padding-top: 12px; margin-top: 12px; }
.journey-site h3 { margin: 0 0 6px; font-size: 15px; }
.journey-site ul { list-style: none; padding-left: 0; margin: 0; }
.journey-site li { margin: 4px 0; color: var(--text); }
.journey-needs { margin: 8px 0 0; color: var(--flare); font-size: 14px; }

/* Topic picker (Blog → Write a blog) */
.pick-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.pick-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: var(--r-sm); }
.pick-list li > span { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }

/* ---------------- Agent activity (Overview) ---------------- */
.ag-dot { --ac: var(--muted); flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--ac) 16%, var(--panel-2)); border: 1.5px solid color-mix(in srgb, var(--ac) 70%, transparent); color: var(--ac); font: 700 11px/1 var(--display); letter-spacing: .02em; }
.ag-dot.sm { width: 24px; height: 24px; font-size: 9px; }
.ag-dot[data-agent=ATLAS] { --ac: #5EE6C4; }
.ag-dot[data-agent=DISCOVERY] { --ac: #9FB7FF; }
.ag-dot[data-agent=ANA] { --ac: #C9A8FF; }
.ag-dot[data-agent=MAYA] { --ac: #FFB454; }
.ag-dot[data-agent=AMI] { --ac: #40E0D0; }
.ag-dot[data-agent=LOGAN] { --ac: #8BE38F; }
.ag-dot[data-agent=V7] { --ac: #FF9DBF; }
.ag-dot[data-agent=VOICE] { --ac: #B9C2EA; }
.ag-dot[data-agent=WATCHTOWER] { --ac: #FFD27A; }
.ag-dot[data-agent=ORION] { --ac: #FF8A8A; }

.ag-flow h3, .ag-sec h3 { margin: 4px 0 12px; font: 600 15px var(--display); color: var(--text); }
.ag-sec { margin-top: 22px; }
.ag-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; counter-reset: st; }
.ag-stages li { position: relative; display: grid; gap: 4px; align-content: start; min-width: 0; padding: 12px 12px 16px; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--panel-2); }
.ag-sh { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ag-sh small { color: var(--faint); font-size: 11px; letter-spacing: .06em; overflow: hidden; text-overflow: ellipsis; }
.ag-stages li b { font: 700 28px/1.1 var(--display); margin-top: 6px; }
.ag-stages li span { color: var(--muted); font-size: 13px; }
.ag-stages li + li::before { content: ""; position: absolute; left: -9px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--line); border-right: 2px solid var(--line); transform: translate(-2px, -50%) rotate(45deg); }
.ag-flow, .ag-sec, .ag-journeys, .ag-journey { min-width: 0; max-width: 100%; }
.ag-journeys, .ag-recent { width: 100%; max-width: none; }
.ag-stages .ag-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: var(--w); background: linear-gradient(90deg, var(--teal), var(--aurora)); border-radius: 0 4px 4px 0; }
.ag-stages li.zero b { color: var(--faint); }
.ag-stages li.stuck { border-color: color-mix(in srgb, var(--flare) 60%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--flare) 25%, transparent) inset; }
.ag-stuck { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 0; padding: 10px 14px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--flare) 10%, var(--panel)); border: 1px solid color-mix(in srgb, var(--flare) 35%, transparent); font-size: 14px; }
.ag-stuck::before { content: "Waiting"; padding: 2px 8px; border-radius: 99px; background: var(--flare); color: #2A1A00; font-weight: 700; font-size: 11px; letter-spacing: .04em; }
.ag-stuck span { flex: 1; min-width: 180px; }
.ag-stuck.ok { background: color-mix(in srgb, var(--aurora) 8%, var(--panel)); border-color: color-mix(in srgb, var(--aurora) 30%, transparent); }
.ag-stuck.ok::before { content: "Clear"; background: var(--aurora); color: var(--aurora-ink); }

.ag-journeys { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ag-journey { padding: 14px; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--panel-2); }
.ag-jhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ag-jhead b { font-size: 14px; }
.ag-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; overflow-x: auto; scrollbar-width: thin; }
.ag-steps li { position: relative; flex: 1 0 118px; display: grid; justify-items: center; gap: 6px; padding: 0 6px 4px; text-align: center; font-size: 12px; color: var(--muted); }
.ag-steps li::after { content: ""; position: absolute; top: 12px; left: calc(50% + 14px); right: calc(-50% + 14px); height: 2px; background: color-mix(in srgb, var(--aurora) 55%, transparent); }
.ag-steps li:last-child::after { display: none; }
.ag-steps li.next { color: var(--flare); font-weight: 600; }
.ag-steps li.next .ag-dot { border-style: dashed; background: transparent; }
.ag-steps li:nth-last-child(2)::after { background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 8px); }
.ag-steps li.failed { color: var(--danger); }

.ag-team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ag-team li { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--panel-2); }
.ag-team li > div { display: grid; min-width: 0; }
.ag-name { display: flex; align-items: center; gap: 6px; font: 600 12px var(--display); letter-spacing: .05em; color: var(--muted); }
.ag-name i { width: 7px; height: 7px; border-radius: 50%; background: var(--aurora); box-shadow: 0 0 8px var(--aurora); }
.ag-team li[data-state=idle] .ag-name i, .ag-team li[data-state=limited] .ag-name i { background: var(--flare); box-shadow: none; }
.ag-team b { font: 700 22px/1.2 var(--display); }
.ag-team small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.ag-team time { color: var(--faint); font-size: 11px; margin-top: 4px; }
.ag-team li[data-state=idle] b { color: var(--faint); }

.ag-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ag-recent li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); }
.ag-recent li:last-child { border-bottom: 0; }
.ag-recent time { color: var(--faint); font-size: 12px; white-space: nowrap; }
.ag-log { margin-top: 16px; }

@media (max-width: 760px) {
  .ag-stages { grid-template-columns: 1fr; gap: 6px; }
  .ag-stages li { grid-template-columns: 1fr auto; align-items: center; padding: 10px 12px 12px; }
  .ag-stages li .ag-sh { grid-column: 1; }
  .ag-stages li b { grid-column: 2; grid-row: 1 / 3; margin: 0; font-size: 24px; }
  .ag-stages li span { grid-column: 1; }
  .ag-stages li + li::before { display: none; }
  .ag-team { grid-template-columns: 1fr; }
  .ag-recent li { grid-template-columns: auto 1fr; }
  .ag-recent time { grid-column: 2; }
}
}

/* Authority Tracker */
.tracker-sum { margin: 4px 0 14px; }
.tracker-list a { color: inherit; text-decoration: none; }
.tracker-list a:hover { text-decoration: underline; }
.tracker-list p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tracker-list p.faint { display: block; }

/* Language selector (i18n.js) */
.lang-btn { width: auto; gap: 6px; padding: 0 10px; grid-auto-flow: column; font-weight: 600; font-size: 13px; }
.lang-btn svg { width: 18px; height: 18px; }
.lang-list button[aria-current="true"] { background: var(--panel-2); }
.lang-list button[aria-current="true"]::after { content: "✓"; position: absolute; right: 12px; color: var(--aurora); }
.lang-list button { position: relative; }
@media (max-width: 560px) { .lang-btn span { display: none; } .lang-btn { width: 38px; padding: 0; } }
/* Keep Google's translator out of sight: no banner, no hover balloons, no highlight. */
body { top: 0 !important; }
body > .skiptranslate, iframe.skiptranslate, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font[style] { background: none !important; box-shadow: none !important; }

/* GetServices family links (AI Studio, getservices.ai) */
.foot-family { display: flex; gap: 12px; margin-top: 4px; font-size: 13px; }
.foot-family a { color: var(--turquoise); text-decoration: none; }
.foot-family a:hover { text-decoration: underline; }
.lm-fam { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.lm-fam-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line-soft); border-radius: 16px; background: var(--panel); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.lm-fam-card:hover { border-color: var(--turquoise); transform: translateY(-2px); }
.lm-fam-card b { font-size: 18px; }
.lm-fam-card span { color: var(--muted); line-height: 1.5; }
.lm-fam-card em { margin-top: auto; font-style: normal; font-weight: 600; color: var(--turquoise); }
.dropdown li > a { display: grid; gap: 2px; padding: 9px 10px; border-radius: 8px; color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; }
.dropdown li > a:hover, .dropdown li > a:focus-visible { background: var(--panel-2); }

@media (prefers-reduced-motion: reduce) { .lm-fam-card { transition: none; } .lm-fam-card:hover { transform: none; } }
@media (max-width: 820px) { .foot-family { justify-content: center; } }

/* ---------------- Content calendar (Blog → Plan now) ---------------- */
.cal-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cal-month { font: 600 18px var(--display); min-width: 150px; text-align: center; }
.cal-legend { display: flex; gap: 6px; }
.cal-legend .cal-chip { pointer-events: none; }
.cal-help { margin: 8px 0 12px; font-size: 13px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { color: var(--faint); font-size: 12px; font-weight: 700; text-align: center; padding: 2px 0; }
.cal-day { min-height: 92px; padding: 6px; border: 1px solid var(--line-soft); border-radius: var(--r-sm); background: var(--panel-2); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-day.out { opacity: .45; }
.cal-day.past { background: color-mix(in srgb, var(--panel-2) 60%, var(--night)); }
.cal-day.today { border-color: var(--aurora); }
.cal-day.picked { box-shadow: 0 0 0 2px var(--aurora) inset; }
.cal-day-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
.cal-add { width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 1px dashed var(--line); background: none; color: var(--aurora); font-weight: 700; line-height: 1; cursor: pointer; opacity: .55; }
.cal-day:hover .cal-add, .cal-add:focus-visible { opacity: 1; border-style: solid; }
.cal-chip { --c: var(--muted); display: flex; align-items: center; gap: 5px; width: 100%; min-width: 0; padding: 3px 6px; border: 0; border-left: 3px solid var(--c); border-radius: 6px; background: color-mix(in srgb, var(--c) 14%, var(--panel)); color: var(--text); font-size: 12px; text-align: left; cursor: pointer; }
.cal-chip.blog { --c: #FFB454; }
.cal-chip.social { --c: #9FB7FF; }
.cal-chip.published, .cal-chip.done { --c: var(--aurora); }
.cal-legend .cal-chip { width: auto; }
.cal-kind { font-weight: 700; font-size: 11px; color: var(--c); flex: none; }
.cal-net { display: inline-flex; width: 14px; height: 14px; flex: none; overflow: hidden; border-radius: 3px; }
.cal-net > *, .cal-net svg { width: 14px !important; height: 14px !important; min-width: 0; padding: 0; margin: 0; }
.cal-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cal-agenda { display: none; margin-top: 14px; }
#calBody { min-width: 0; max-width: 100%; }
.cal-agenda ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.cal-agenda li { min-width: 0; }
.cal-agenda .cal-chip { padding: 8px 10px; font-size: 14px; }
.cal-form { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel-2); display: grid; gap: 8px; }
.cal-form h3 { margin: 0; font: 600 16px var(--display); }
.cal-form select, .cal-form input { width: 100%; }
.cal-form .row { flex-wrap: wrap; gap: 8px; }
@media (max-width: 700px) {
  .cal-grid { gap: 2px; }
  .cal-wd { font-size: 10px; }
  .cal-day { min-height: 46px; padding: 3px; }
  .cal-day .cal-chip { padding: 0; height: 6px; border-left-width: 0; background: var(--c); font-size: 0; }
  .cal-day .cal-chip > * { display: none; }
  .cal-add { width: 18px; height: 18px; opacity: 1; font-size: 12px; }
  .cal-day-head { font-size: 12px; }
  .cal-help { font-size: 12px; }
  .cal-agenda { display: block; }
}

/* First-visit language pop-up (i18n.js) */
.lang-prompt { position: fixed; z-index: 60; right: 16px; bottom: 16px; width: min(360px, calc(100vw - 32px)); background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.45); padding: 16px 16px 12px; font-size: 14px; }
.lang-prompt[dir="rtl"] { right: auto; left: 16px; }
.lang-prompt-title { margin: 0 28px 4px 0; font-weight: 700; font-size: 15px; line-height: 1.4; }
.lang-prompt[dir="rtl"] .lang-prompt-title { margin: 0 0 4px 28px; }
.lang-prompt-sub { margin: 0 0 12px; color: var(--faint); font-size: 13px; }
.lang-prompt[dir="rtl"] .lang-prompt-sub { text-align: right; }
.lang-prompt-row { display: flex; gap: 8px; flex-wrap: wrap; }
.lang-prompt-more { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.lang-prompt-more button { background: none; border: 0; color: var(--text); padding: 4px 8px; border-radius: 8px; font-size: 13px; font-weight: 600; height: auto; width: auto; }
.lang-prompt-more button:hover, .lang-prompt-more button:focus-visible { background: var(--panel-2); }
.lang-prompt-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; padding: 0; background: none; border: 0; color: var(--faint); font-size: 20px; line-height: 1; }
.lang-prompt[dir="rtl"] .lang-prompt-x { right: auto; left: 8px; }
/* Right-to-left (Arabic, Urdu): mirror the text alignment of menus and lists */
[dir="rtl"] .dropdown { text-align: right; }
[dir="rtl"] .dropdown button { text-align: right; }
[dir="rtl"] .lang-list button[aria-current="true"]::after { right: auto; left: 12px; }
[dir="rtl"] .skip { left: auto; right: -999px; }
[dir="rtl"] .skip:focus { right: 12px; }
/* RTL: the workspace side menu sits on the right */
[dir="rtl"] .sidenav { left: auto; right: 0; border-right: 0; border-left: 1px solid var(--line-soft); }
[dir="rtl"] body.has-side main, [dir="rtl"] body.has-side .site-foot { margin-left: 0; margin-right: var(--side-w); }
[dir="rtl"] body.has-side.side-closed .sidenav { transform: translateX(100%); }
[dir="rtl"] body.has-side.side-closed main, [dir="rtl"] body.has-side.side-closed .site-foot { margin-right: 0; }
[dir="rtl"] .crumb-site { margin-left: 0; margin-right: auto; }
@media (max-width: 1023px) {
  [dir="rtl"] body.has-side main, [dir="rtl"] body.has-side .site-foot { margin-right: 0; }
  [dir="rtl"] .sidenav { box-shadow: -20px 0 50px rgba(0,0,0,.5); }
}
/* RTL: the step arrows between "How ATLAS works" cards point right-to-left */
[dir="rtl"] .lm-flow li + li::after { content: "←"; left: auto; right: -22px; }
