/* Gaby Ads design system */
:root {
  --ink: #0a0f1f; --ink-2: #1b2340; --text: #121829; --muted: #5b647d; --faint: #8a93aa;
  --bg: #f5f6fa; --surface: #ffffff; --surface-2: #f0f2f7; --line: #e3e6ee; --line-2: #d4d8e3;
  --brand: #4f46e5; --brand-2: #06b6d4; --brand-ink: #ffffff; --brand-soft: #eef0ff; --brand-text: #4338ca;
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 45%, #06b6d4 100%);
  --red: #d92d3a; --red-soft: #fdecee; --amber: #b25e00; --amber-soft: #fff3df;
  --green: #0f8a52; --green-soft: #e3f6ec; --blue: #2459d6; --blue-soft: #e8efff;
  --r-sm: 8px; --r: 14px; --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10,15,31,.06);
  --shadow: 0 1px 2px rgba(10,15,31,.04), 0 8px 24px -12px rgba(10,15,31,.12);
  --shadow-lg: 0 24px 60px -24px rgba(10,15,31,.35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.6 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.015em; color: var(--ink); }
h1 { font-size: 1.85rem; font-weight: 800; } h2 { font-size: 1.25rem; font-weight: 700; } h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 .9rem; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .86em; }
small, .small { font-size: .85rem; } .muted { color: var(--muted); } .faint { color: var(--faint); }
.nowrap { white-space: nowrap; } .right { text-align: right; } .center { text-align: center; }
.hide-sm { } @media (max-width: 720px) { .hide-sm { display: none !important; } }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); } .g5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
@media (max-width: 980px) { .g4, .g5 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .g2, .g3, .g4, .g5 { grid-template-columns: 1fr; } }

/* ---------- buttons ---------- */
.btn { --b: var(--line-2); display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .6rem 1.05rem;
  border-radius: 10px; border: 1px solid var(--b); background: var(--surface); color: var(--ink); font: 600 .92rem/1.2 var(--font);
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .06s, box-shadow .15s, background .15s; }
.btn:hover { text-decoration: none; background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 16px -8px rgba(79,70,229,.7); }
.btn-primary:hover { background: #4338ca; }
.btn-grad { background: var(--grad); border: 0; color: #fff; box-shadow: 0 10px 24px -10px rgba(79,70,229,.8); }
.btn-grad:hover { filter: brightness(1.06); background: var(--grad); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; } .btn-dark:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); } .btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { color: var(--red); border-color: #f3b9bf; background: #fff; } .btn-danger:hover { background: var(--red-soft); }
.btn-link { background: none; border: 0; padding: 0; color: var(--brand-text); font-weight: 600; cursor: pointer; font: inherit; }
.btn-sm { padding: .38rem .7rem; font-size: .83rem; border-radius: 8px; }
.btn-lg { padding: .85rem 1.4rem; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
form.inline { display: inline; margin: 0; }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--ink); }
.field { margin-bottom: 14px; }
.hint { color: var(--muted); font-size: .8rem; margin-top: .3rem; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=tel], input[type=file], select, textarea {
  width: 100%; padding: .62rem .75rem; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--text); font: inherit; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(79,70,229,.18); border-color: var(--brand); }
select[multiple] { min-height: 160px; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-weight: 500; font-size: .92rem; cursor: pointer; }
.check input { margin-top: .25rem; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 22px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { margin: 0; }
.card-body { padding: 18px 22px; }
.section { margin-top: 28px; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.section-title h2 { margin: 0; }
.kpi .label { color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kpi .value { font: 800 1.75rem/1.15 var(--display); color: var(--ink); margin-top: .3rem; font-variant-numeric: tabular-nums; }
.kpi .sub { color: var(--muted); font-size: .82rem; margin-top: .2rem; }
.empty { text-align: center; color: var(--muted); padding: 36px 16px; }
.empty .icon { font-size: 1.8rem; margin-bottom: .4rem; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--faint); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; background: var(--surface-2); }
tbody tr:hover td { background: #fafbfd; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
.kv { width: 100%; } .kv th { background: none; width: 38%; color: var(--muted); text-transform: none; letter-spacing: 0; font-size: .85rem; font-weight: 600; }
.kv td, .kv th { padding: .5rem 0; }

/* ---------- badges / alerts / pills ---------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .16rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700;
  background: var(--surface-2); color: var(--muted); white-space: nowrap; letter-spacing: .01em; }
.badge.red, .badge.critical { background: var(--red-soft); color: var(--red); }
.badge.amber, .badge.warning { background: var(--amber-soft); color: var(--amber); }
.badge.green, .badge.opportunity, .badge.success { background: var(--green-soft); color: var(--green); }
.badge.blue, .badge.info { background: var(--blue-soft); color: var(--blue); }
.badge.violet { background: var(--brand-soft); color: var(--brand-text); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stage-lead { background: #f1f2f6; color: #59607a; } .stage-demo { background: var(--blue-soft); color: var(--blue); }
.stage-proposal { background: var(--brand-soft); color: var(--brand-text); } .stage-client { background: var(--green-soft); color: var(--green); }
.stage-lost { background: #f4f4f5; color: #8b8b93; }
.alert { border-radius: 12px; padding: .85rem 1rem; margin-bottom: 16px; border: 1px solid transparent; font-size: .93rem; }
.alert.info { background: var(--blue-soft); color: #1d3f99; border-color: #cddcff; }
.alert.success { background: var(--green-soft); color: #0b6b40; border-color: #bfe8d2; }
.alert.warning { background: var(--amber-soft); color: #8a4a00; border-color: #f6d9a8; }
.alert.error { background: var(--red-soft); color: #a51e2a; border-color: #f6c4ca; }
.alert ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.alert strong { color: inherit; }
.lock-banner { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: linear-gradient(90deg, #fff7e8, #fff); border: 1px solid #f3dcae; border-radius: var(--r); padding: 14px 18px; margin-bottom: 18px; }
.lock-banner .t { font-weight: 700; color: #7a4300; }

/* ---------- public site ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font: 800 1.15rem var(--display); color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 800; box-shadow: 0 6px 14px -6px rgba(79,70,229,.8); }
.site-nav { display: flex; gap: 4px; flex: 1; }
.site-nav a { color: var(--muted); font-weight: 600; font-size: .92rem; padding: .45rem .7rem; border-radius: 8px; }
.site-nav a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
@media (max-width: 760px) { .site-nav { display: none; } .site-header .container { justify-content: space-between; } }
.hero { position: relative; overflow: hidden; background: var(--ink); color: #dfe4f5; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 900px; height: 900px; background: radial-gradient(closest-side, rgba(124,58,237,.45), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: auto auto -50% -10%; width: 800px; height: 800px; background: radial-gradient(closest-side, rgba(6,182,212,.30), transparent 70%); }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 84px; padding-bottom: 84px; }
@media (max-width: 920px) { .hero .container { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; } }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .75rem; border-radius: 999px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14); color: #c9cff0; font-size: .8rem; font-weight: 600; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.035em; margin: 18px 0 16px; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.15rem; color: #b9c0dc; max-width: 560px; margin-bottom: 28px; }
.hero .trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; color: #9aa3c4; font-size: .85rem; }
.hero .trust span::before { content: "✓ "; color: #5eead4; font-weight: 800; }
.mock { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-lg); }
.mock .mcard { background: #fff; color: var(--text); border-radius: 12px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.mock .mcard .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.mock .mcard .t { font-weight: 700; font-size: .9rem; color: var(--ink); } .mock .mcard .s { font-size: .8rem; color: var(--muted); }
.mock .score { display: flex; align-items: center; gap: 14px; color: #fff; }
.mock .score .ring { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: 800 1.3rem var(--display);
  background: conic-gradient(#22d3ee 0 64%, rgba(255,255,255,.12) 0); position: relative; }
.mock .score .ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #121a33; }
.mock .score .ring span { position: relative; }
.band { padding: 80px 0; }
.band.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band h2.big { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; }
.band .intro { max-width: 640px; color: var(--muted); font-size: 1.05rem; }
.feature { padding: 24px; }
.feature .fi { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 12px; }
.steps-line { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px) { .steps-line { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .steps-line { grid-template-columns: 1fr; } }
.steps-line .st { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.steps-line .st::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 10px; }
.cta-band { background: var(--grad); color: #fff; border-radius: var(--r-lg); padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: 1.8rem; margin: 0 0 .4rem; } .cta-band p { color: rgba(255,255,255,.85); margin: 0; }
.cta-band .btn { background: #fff; color: var(--ink); border: 0; }
.site-footer { padding: 36px 0; color: var(--muted); font-size: .86rem; }
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.page { padding: 40px 0 72px; }
.auth-wrap { min-height: calc(100vh - 66px - 100px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 440px; }
.legal h2 { margin-top: 1.8rem; font-size: 1.15rem; } .legal li { margin-bottom: .35rem; }

/* ---------- consent / connect ---------- */
.consent-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.consent-head .logos { display: flex; align-items: center; gap: 8px; }
.consent-head .gl { width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 800; color: #4285f4; }
.perm { list-style: none; padding: 0; margin: 0 0 8px; }
.perm li { display: flex; gap: 10px; padding: .55rem 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.perm li::before { content: "✓"; color: var(--green); font-weight: 800; flex: none; width: 18px; }
.perm.no li::before { content: "✕"; color: var(--red); }
.numbered { counter-reset: n; list-style: none; padding: 0; margin: 0; }
.numbered li { counter-increment: n; position: relative; padding-left: 38px; margin-bottom: 12px; }
.numbered li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; font-weight: 800; font-size: .82rem; }
.google-btn .g { width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #4285f4; display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.lockbox { text-align: center; padding: 28px; }
.lockbox .padlock { font-size: 2rem; }

/* ---------- portal ---------- */
.portal-header { background: #fff; border-bottom: 1px solid var(--line); }
.portal-header .container { display: flex; align-items: center; gap: 18px; height: 64px; }
.portal-header .who { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: .88rem; color: var(--muted); }
.report-hero { background: var(--ink); color: #c9cfea; border-radius: var(--r-lg); padding: 28px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.report-hero::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; background: radial-gradient(closest-side, rgba(124,58,237,.5), transparent 70%); }
.report-hero > * { position: relative; z-index: 1; }
.report-hero h1 { color: #fff; margin: 0 0 .3rem; font-size: 1.6rem; }
@media (max-width: 760px) { .report-hero { grid-template-columns: 1fr; } }
.ring { --p: 50; --c: #22d3ee; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255,255,255,.12) 0); }
.ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--ink); }
.ring b { position: relative; font: 800 2rem var(--display); color: #fff; }
.ring small { position: absolute; bottom: 18px; color: #8e97ba; font-size: .7rem; }
.ring.light::before { background: #fff; } .ring.light b { color: var(--ink); } .ring.light { background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-2) 0); }
.insight { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.insight:last-child { border-bottom: 0; }
.insight .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 1.15rem; flex: none; background: var(--surface-2); }
.insight.critical .ic { background: var(--red-soft); } .insight.warning .ic { background: var(--amber-soft); } .insight.opportunity .ic { background: var(--green-soft); }
.insight .body { flex: 1; min-width: 0; }
.insight .title { font-weight: 700; color: var(--ink); }
.insight.dim { opacity: .55; }
.blur-list { position: relative; }
.blur-list .blurred { filter: blur(4px); user-select: none; pointer-events: none; }
.blur-list .veil { position: absolute; inset: 0; display: grid; place-items: center; }
.ad-preview { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; }
.ad-preview .sp { font-size: .78rem; color: var(--text); } .ad-preview .sp b { font-weight: 800; }
.ad-preview .hl { color: #1a0dab; font-size: 1.12rem; line-height: 1.3; margin: .2rem 0 .25rem; }
.ad-preview .ds { font-size: .88rem; color: #4d5156; }
.score-pill { font: 800 1rem var(--display); padding: .25rem .6rem; border-radius: 10px; }
.score-pill.hi { background: var(--green-soft); color: var(--green); } .score-pill.mid { background: var(--amber-soft); color: var(--amber); } .score-pill.lo { background: var(--red-soft); color: var(--red); }
.issue-list { margin: .3rem 0 0; padding-left: 1.1rem; font-size: .9rem; } .issue-list li { margin-bottom: .2rem; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } @media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare ol { margin: .2rem 0 0; padding-left: 1.2rem; font-size: .88rem; }
.proposal-price { font: 800 2.6rem/1 var(--display); color: var(--ink); letter-spacing: -.03em; }

/* ---------- admin ---------- */
.admin { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: var(--ink); color: #aeb6d6; padding: 18px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.sidebar .brand { color: #fff; padding: 4px 8px 18px; }
.sidebar .grp { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #6c75a0; padding: 14px 10px 6px; font-weight: 700; }
.sidebar a.nav { display: flex; align-items: center; gap: 10px; padding: .55rem .7rem; border-radius: 9px; color: #c3cae6; font-weight: 600; font-size: .9rem; }
.sidebar a.nav:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.sidebar a.nav.on { background: rgba(124,58,237,.22); color: #fff; box-shadow: inset 2px 0 0 #a78bfa; }
.sidebar a.nav .n { margin-left: auto; background: rgba(255,255,255,.12); color: #fff; font-size: .72rem; padding: .05rem .45rem; border-radius: 999px; }
.sidebar .me { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding: 14px 8px 4px; font-size: .85rem; }
.sidebar .me a { color: #c3cae6; } .sidebar .me .btn { margin-top: 10px; width: 100%; background: rgba(255,255,255,.06); color: #dfe3f5; border-color: rgba(255,255,255,.12); }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 32px 0; flex-wrap: wrap; }
.topbar .crumbs { font-size: .83rem; color: var(--muted); } .topbar .crumbs a { color: var(--muted); }
.content { padding: 18px 32px 56px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { margin: .2rem 0 0; color: var(--muted); }
.mobile-bar { display: none; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 10px; gap: 4px; }
  .sidebar .grp, .sidebar .me .who { display: none; } .sidebar .brand { padding: 4px 8px; width: 100%; }
  .sidebar .me { margin: 0; border: 0; padding: 0; width: 100%; } .sidebar a.nav { font-size: .82rem; padding: .4rem .55rem; }
  .topbar, .content { padding-left: 16px; padding-right: 16px; }
}
.pipeline { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
@media (max-width: 900px) { .pipeline { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.pipeline a { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--text); display: block; }
.pipeline a:hover { text-decoration: none; border-color: var(--line-2); box-shadow: var(--shadow); }
.pipeline .n { font: 800 1.6rem var(--display); color: var(--ink); } .pipeline .l { font-size: .82rem; color: var(--muted); font-weight: 600; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: .6rem .9rem; color: var(--muted); font-weight: 600; font-size: .9rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on, .tabs a:hover { color: var(--ink); border-color: var(--brand); text-decoration: none; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; font-size: .9rem; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.timeline li::after { content: ""; position: absolute; left: 8.5px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.ok::before { background: var(--green); } .timeline li.bad::before { background: var(--red); } .timeline li.key::before { background: var(--brand); }
.timeline .when { color: var(--faint); font-size: .78rem; }
.copy { display: flex; gap: 8px; } .copy input { font-family: ui-monospace, Consolas, monospace; font-size: .82rem; background: var(--surface-2); }
.change { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .82rem; }
.change .from { color: var(--faint); text-decoration: line-through; } .change .to { color: var(--ink); font-weight: 700; }
details > summary { cursor: pointer; }
.pre { white-space: pre-wrap; }
.csv-cols { columns: 3 200px; font-size: .82rem; } .csv-cols code { display: block; margin-bottom: .2rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang-picker { margin: 0; } .lang-picker select { width: auto; padding: .35rem 1.6rem .35rem .6rem; font-size: .85rem; border-radius: 8px; }
[dir=rtl] .perm li::before, [dir=rtl] .numbered li::before { margin-left: 8px; }
[dir=rtl] .numbered li { padding-left: 0; padding-right: 38px; } [dir=rtl] .numbered li::before { left: auto; right: 0; }
[dir=rtl] .hero::before { inset: -40% auto auto -10%; }
