/* Skytech SVG — Help Center styles (shared by /kb/ pages) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:        #080D1A;
  --dark-2:      #0E1525;
  --dark-border: rgba(255,255,255,0.08);
  --bg:          #FFFFFF;
  --surface:     #F7F8FA;
  --border:      #E4E7EC;
  --ink:         #0F1722;
  --muted:       #6B7280;
  --accent:      #2563EB;
  --accent-hover:#1D4ED8;
  --accent-light:#EFF6FF;
  --sky:         #60A5FA;
  --ok:          #059669;
  --ok-light:    #ECFDF5;
  --warn:        #B45309;
  --warn-light:  #FFFBEB;
  --max-w:       1140px;
  --read-w:      760px;
  --font:        'Onest', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.read { max-width: var(--read-w); margin: 0 auto; padding: 0 28px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── NAV (matches main site) ── */
nav.site { position: sticky; top: 0; z-index: 100; background: rgba(8,13,26,0.9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--dark-border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.nav-logo { font-size: 1.2rem; font-weight: 800; color: #fff; text-decoration: none; letter-spacing: -0.02em; }
.nav-logo span { color: var(--sky); }
.nav-logo small { font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.5); margin-left: 10px; padding: 3px 8px; border: 1px solid var(--dark-border); border-radius: 999px; letter-spacing: 0.02em; vertical-align: 3px; }
.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-links a { font-size: 0.875rem; color: rgba(255,255,255,0.6); text-decoration: none; padding: 6px 14px; border-radius: 7px; transition: color .15s, background .15s; }
.nav-links a:hover, .nav-links a[aria-current] { color: #fff; background: rgba(255,255,255,0.07); }
.btn-nav { font-size: 0.875rem; font-weight: 600; color: #fff; background: var(--accent); padding: 9px 20px; border-radius: 7px; text-decoration: none; box-shadow: 0 0 0 1px rgba(37,99,235,.5), 0 2px 14px rgba(37,99,235,.3); }
.btn-nav:hover { background: var(--accent-hover); }
@media (max-width: 680px) { .nav-links { display: none; } .nav-logo small { display: none; } }

/* ── HERO ── */
.kb-hero { background: var(--dark); color: #fff; position: relative; overflow: hidden; padding: 64px 0 72px; }
.kb-hero::before { content: ''; position: absolute; top: -200px; right: -120px; width: 720px; height: 720px; background: radial-gradient(circle, rgba(37,99,235,.35) 0%, transparent 62%); pointer-events: none; }
.kb-hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 20%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 0%, transparent 70%); pointer-events: none; }
.kb-hero > * { position: relative; z-index: 1; }
.crumbs { font-size: .82rem; color: rgba(255,255,255,.45); margin-bottom: 22px; }
.crumbs a { color: rgba(255,255,255,.65); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 8px; }
.kb-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.035em; max-width: 760px; }
.kb-hero h1 em { font-style: normal; color: var(--sky); }
.kb-hero .lede { font-size: 1.1rem; color: rgba(255,255,255,.62); margin-top: 16px; max-width: 620px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 500; color: rgba(255,255,255,.75); background: rgba(255,255,255,.06); border: 1px solid var(--dark-border); padding: 6px 12px; border-radius: 999px; }
.chip svg { width: 14px; height: 14px; }

/* staggered load */
.rise { opacity: 0; transform: translateY(14px); animation: rise .6s cubic-bezier(.2,.7,.2,1) forwards; }
.rise:nth-child(2) { animation-delay: .07s; } .rise:nth-child(3) { animation-delay: .14s; } .rise:nth-child(4) { animation-delay: .21s; } .rise:nth-child(5) { animation-delay: .28s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ── WIZARD (pick your setup) ── */
.wizard { margin-top: -40px; position: relative; z-index: 2; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 24px 60px -24px rgba(8,13,26,.25); padding: 30px; }
.panel h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.q-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .85rem; font-weight: 800; flex-shrink: 0; }
.q + .q { margin-top: 28px; padding-top: 28px; border-top: 1px dashed var(--border); }
.q-help { font-size: .9rem; color: var(--muted); margin: 6px 0 14px 38px; }
.email-row { display: flex; gap: 10px; margin-left: 38px; flex-wrap: wrap; }
.email-row input { flex: 1 1 260px; font: inherit; font-size: 1.05rem; padding: 13px 16px; border: 2px solid var(--border); border-radius: 10px; outline: none; transition: border-color .15s, box-shadow .15s; }
.email-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37,99,235,.15); }
.btn { font: inherit; font-weight: 600; font-size: .95rem; border: none; border-radius: 10px; padding: 13px 22px; cursor: pointer; background: var(--accent); color: #fff; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; transition: background .15s, transform .15s; }
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.btn.ghost:hover { background: #EEF0F3; }
.btn svg { width: 18px; height: 18px; }
.detect { margin: 14px 0 0 38px; font-size: .92rem; padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); display: flex; gap: 10px; align-items: flex-start; }
.detect svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }
.detect.ok { background: var(--ok-light); border-color: #A7F3D0; color: #065F46; }
.detect.warn { background: var(--warn-light); border-color: #FDE68A; color: #78350F; }

.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-left: 38px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .card { height: 100%; border: 2px solid var(--border); border-radius: 14px; padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start; transition: border-color .15s, background .15s, box-shadow .15s; }
.choice:hover .card { border-color: #BFD3F6; }
.choice input:checked + .card { border-color: var(--accent); background: var(--accent-light); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.choice input:focus-visible + .card { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice .ico { grid-row: span 2; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--accent); }
.choice input:checked + .card .ico { background: var(--accent); color: #fff; }
.choice .ico svg { width: 22px; height: 22px; }
.choice strong { font-size: 1rem; }
.choice .card span { font-size: .85rem; color: var(--muted); line-height: 1.45; }
.tell { margin: 12px 0 0 38px; }
.tell summary { cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--accent); list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.tell summary::-webkit-details-marker { display: none; }
.tell summary svg { width: 16px; height: 16px; }
.tell-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.tell-grid div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; font-size: .88rem; }
.tell-grid b { display: block; margin-bottom: 4px; }
@media (max-width: 640px) {
  .panel { padding: 22px 18px; }
  .choices, .tell-grid { grid-template-columns: 1fr; }
  .q-help, .email-row, .choices, .detect, .tell { margin-left: 0; }
}

/* ── BEFORE YOU START ── */
.prep { margin: 48px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.prep div { border: 1px solid var(--border); border-radius: 14px; padding: 16px; font-size: .9rem; color: var(--muted); }
.prep b { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: .95rem; margin-bottom: 4px; }
.prep svg { width: 18px; height: 18px; color: var(--accent); }
@media (max-width: 720px) { .prep { grid-template-columns: 1fr; } }

/* ── GUIDE ── */
.guide { padding-top: 56px; padding-bottom: 24px; scroll-margin-top: 110px; }
.guide-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.guide-head h2 { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; }
.guide-head .tag { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.guide-sub { color: var(--muted); margin-bottom: 30px; }
.progress { position: sticky; top: 66px; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.progress .read { display: flex; align-items: center; gap: 14px; height: 48px; font-size: .85rem; color: var(--muted); }
.progress .bar { flex: 1; height: 6px; background: var(--surface); border-radius: 999px; overflow: hidden; }
.progress .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--sky)); border-radius: 999px; transition: width .3s ease; }
.progress b { color: var(--ink); }

ol.steps { list-style: none; counter-reset: step; }
ol.steps > li { counter-increment: step; position: relative; padding: 0 0 44px 64px; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 42px; height: 42px; border-radius: 50%; background: var(--dark); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 1.05rem; box-shadow: 0 0 0 5px #fff, 0 0 0 6px var(--border); }
ol.steps > li::after { content: ''; position: absolute; left: 20px; top: 46px; bottom: 6px; width: 2px; background: repeating-linear-gradient(to bottom, var(--border) 0 6px, transparent 6px 12px); }
ol.steps > li:last-child::after { display: none; }
ol.steps > li.done::before { content: '\2713'; background: var(--ok); }
.step-title { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; padding-top: 6px; }
.step-body { margin-top: 8px; color: #374151; }
.step-body p + p { margin-top: 8px; }
.step-body ul { margin: 8px 0 0 20px; }
.step-body li + li { margin-top: 4px; }
.ui { display: inline-block; font-weight: 600; font-size: .92em; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 0 7px; white-space: nowrap; }
.mine { font-weight: 700; color: var(--accent); background: var(--accent-light); padding: 0 6px; border-radius: 5px; word-break: break-all; }
figure.shot { margin-top: 16px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: 0 18px 40px -26px rgba(8,13,26,.35); }
figure.shot img { width: 100%; height: auto; cursor: zoom-in; }
figure.shot figcaption { font-size: .8rem; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--border); background: #fff; display: flex; justify-content: space-between; gap: 10px; }
.check { margin-top: 14px; }
.check label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--muted); padding: 8px 14px 8px 10px; border: 1px solid var(--border); border-radius: 999px; transition: all .15s; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--ok); }
.check label:has(input:checked) { color: var(--ok); border-color: #A7F3D0; background: var(--ok-light); }
@media (max-width: 560px) { ol.steps > li { padding-left: 52px; } ol.steps > li::before { width: 36px; height: 36px; font-size: .95rem; } ol.steps > li::after { left: 17px; } }

/* callouts */
.note { margin-top: 14px; border-radius: 12px; padding: 14px 16px; font-size: .92rem; display: flex; gap: 12px; border: 1px solid; }
.note svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.note.tip { background: var(--accent-light); border-color: #BFDBFE; color: #1E3A8A; }
.note.warn { background: var(--warn-light); border-color: #FDE68A; color: #78350F; }
.note.good { background: var(--ok-light); border-color: #A7F3D0; color: #065F46; }

/* settings card */
.settings { margin-top: 16px; border-radius: 16px; overflow: hidden; border: 1px solid #1E293B; background: var(--dark); color: #fff; }
.settings-head { padding: 14px 18px; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sky); border-bottom: 1px solid var(--dark-border); display: flex; justify-content: space-between; gap: 10px; }
.settings-head span { color: rgba(255,255,255,.45); text-transform: none; letter-spacing: 0; font-weight: 500; }
.settings dl { display: grid; grid-template-columns: 1fr 1fr; }
.settings .grp { padding: 16px 18px; }
.settings .grp + .grp { border-left: 1px solid var(--dark-border); }
.settings h4 { font-size: .8rem; color: rgba(255,255,255,.5); font-weight: 600; margin-bottom: 8px; }
.settings .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.05); }
.settings dt { font-size: .82rem; color: rgba(255,255,255,.55); }
.settings dd { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .9rem; display: flex; align-items: center; gap: 6px; text-align: right; word-break: break-all; }
.copy { background: rgba(255,255,255,.08); border: 1px solid var(--dark-border); color: rgba(255,255,255,.75); border-radius: 6px; font: inherit; font-size: .7rem; font-family: var(--font); font-weight: 600; padding: 3px 7px; cursor: pointer; flex-shrink: 0; }
.copy:hover { background: rgba(255,255,255,.16); color: #fff; }
.copy.ok { background: var(--ok); color: #fff; border-color: var(--ok); }
@media (max-width: 640px) { .settings dl { grid-template-columns: 1fr; } .settings .grp + .grp { border-left: 0; border-top: 1px solid var(--dark-border); } }

/* finish */
.finish { margin: 8px 0 0; border-radius: 18px; padding: 28px; background: linear-gradient(135deg, var(--ok-light), #fff); border: 1px solid #A7F3D0; display: flex; gap: 18px; align-items: flex-start; }
.finish svg { width: 34px; height: 34px; color: var(--ok); flex-shrink: 0; }
.finish h3 { font-size: 1.2rem; }
.finish p { color: #374151; margin-top: 4px; }

/* troubleshooting */
.trouble { padding-top: 48px; padding-bottom: 16px; }
.trouble h2, .help h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; }
.faq { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.faq details + details { border-top: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; font-weight: 300; color: var(--accent); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { background: var(--surface); }
.faq .ans { padding: 4px 20px 18px; color: #374151; font-size: .95rem; }
.faq .ans p + p, .faq .ans ul { margin-top: 8px; }
.faq .ans ul { margin-left: 20px; }

/* help band */
.help { padding-top: 40px; padding-bottom: 72px; }
.help-card { border-radius: 20px; background: var(--dark); color: #fff; padding: 34px; position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.help-card::before { content: ''; position: absolute; left: -100px; bottom: -220px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(37,99,235,.4), transparent 65%); }
.help-card > * { position: relative; }
.help-card h2 { margin: 0; color: #fff; }
.help-card p { color: rgba(255,255,255,.6); margin-top: 6px; }
.help-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn.wa { background: #25D366; color: #06371A; }
.btn.wa:hover { background: #1EBE5A; }
.btn.light { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.14); }
.btn.light:hover { background: rgba(255,255,255,.14); }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 1000; background: rgba(8,13,26,.86); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lb img { max-width: min(1200px, 100%); max-height: 92vh; border-radius: 12px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.5); }

/* footer */
footer.site { background: var(--dark); border-top: 1px solid rgba(255,255,255,.05); padding: 22px 0; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot-logo { font-size: 1.05rem; font-weight: 800; color: rgba(255,255,255,.6); text-decoration: none; letter-spacing: -0.02em; }
.foot-logo span { color: var(--sky); }
.foot-copy, .foot a.foot-email { font-size: .77rem; color: rgba(255,255,255,.3); text-decoration: none; }
.foot a.foot-email:hover { color: rgba(255,255,255,.6); }

/* ── HUB ── */
.search { margin-top: 28px; max-width: 560px; position: relative; }
.search input { width: 100%; font: inherit; font-size: 1.05rem; padding: 15px 18px 15px 48px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; outline: none; }
.search input::placeholder { color: rgba(255,255,255,.4); }
.search input:focus { border-color: var(--sky); background: rgba(255,255,255,.1); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: rgba(255,255,255,.45); }
.cats { padding-top: 56px; padding-bottom: 24px; }
.cat-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.cat-title svg { width: 16px; height: 16px; color: var(--accent); }
.articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.article-card { display: block; text-decoration: none; color: inherit; border: 1px solid var(--border); border-radius: 16px; padding: 22px; transition: border-color .15s, transform .15s, box-shadow .15s; background: #fff; }
.article-card:hover { border-color: #BFD3F6; transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(37,99,235,.45); }
.article-card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-light); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.article-card .ico svg { width: 22px; height: 22px; }
.article-card h3 { font-size: 1.08rem; line-height: 1.35; letter-spacing: -0.01em; }
.article-card p { font-size: .9rem; color: var(--muted); margin-top: 6px; }
.article-card .go { margin-top: 14px; font-size: .85rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
.article-card .go svg { width: 16px; height: 16px; transition: transform .15s; }
.article-card:hover .go svg { transform: translateX(3px); }
.empty { color: var(--muted); padding: 24px 0; }

/* ── PRINT ── */
@media print {
  nav.site, .progress, .wizard, .help, footer.site, .check, .copy, .tell { display: none !important; }
  .kb-hero { background: none; color: #000; padding: 0 0 16px; }
  .kb-hero .lede, .crumbs { color: #444; }
  .chip { color: #333; border-color: #ccc; }
  .guide[hidden] { display: none !important; }
  ol.steps > li { break-inside: avoid; }
  .settings { background: #fff; color: #000; border-color: #999; }
  .settings dt, .settings h4 { color: #444; }
}
.g-title { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 6px; }
@media (max-width: 560px) { .g-title { font-size: 1.4rem; } }

/* branch: "what do you see?" */
.branch { margin-top: 14px; display: grid; gap: 10px; }
.branch-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-size: .93rem; color: #374151; }
.branch-row.good { background: var(--ok-light); border-color: #A7F3D0; }
.branch-row.warn { background: var(--warn-light); border-color: #FDE68A; }
.branch-tag { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: var(--dark); color: #fff; }
.branch-row.good .branch-tag { background: var(--ok); }
.branch-row.warn .branch-tag { background: var(--warn); }

/* Plan B */
.planb { margin-top: 28px; border: 2px dashed #BFD3F6; border-radius: 18px; background: #FAFCFF; scroll-margin-top: 120px; }
.planb[open] { border-style: solid; border-color: var(--accent); background: #fff; }
.planb > summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; gap: 14px; align-items: center; }
.planb > summary::-webkit-details-marker { display: none; }
.planb > summary::after { content: '+'; margin-left: auto; font-size: 1.6rem; font-weight: 300; color: var(--accent); transition: transform .2s; }
.planb[open] > summary::after { transform: rotate(45deg); }
.planb summary b { display: block; font-size: 1.05rem; }
.planb summary small { display: block; color: var(--muted); font-size: .88rem; }
.planb-badge { flex-shrink: 0; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 6px 10px; border-radius: 8px; }
.planb-steps { padding: 8px 22px 6px; }
ol.planb-steps > li::before { content: 'B' counter(step); font-size: .9rem; background: var(--accent); }
ol.planb-steps > li.flash::before { box-shadow: 0 0 0 5px #fff, 0 0 0 9px rgba(37,99,235,.35); }
@media (max-width: 560px) { .planb-steps { padding: 4px 14px; } .planb > summary { padding: 16px; } }
@media print { .planb > summary::after { display: none; } }
ol.steps > li { scroll-margin-top: 130px; }

/* phone-sized pictures */
figure.shot.phone { max-width: 300px; margin-left: auto; margin-right: auto; background: #fff; }
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.shot-pair figure.shot.phone { max-width: none; }
@media (max-width: 560px) { .shot-pair { grid-template-columns: 1fr; } }

/* tabs (e.g. iPhone / Android, Classic / New) */
.tabs { margin-top: 8px; }
.tab-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 28px; position: sticky; top: 76px; z-index: 40; }
.tab-list button { flex: 1 1 140px; font: inherit; font-weight: 600; font-size: .92rem; padding: 10px 14px; border: none; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, color .15s, box-shadow .15s; }
.tab-list button svg { width: 18px; height: 18px; }
.tab-list button:hover { color: var(--ink); }
.tab-list button[aria-selected="true"] { background: #fff; color: var(--accent); box-shadow: 0 1px 2px rgba(8,13,26,.08), 0 0 0 1px var(--border); }
.tab-panel > h3.panel-title { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 18px; }
.js .tab-panel > h3.panel-title { display: none; }

/* simple article sections */
.article { padding-top: 48px; padding-bottom: 8px; }
.article h2.sec { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; margin: 40px 0 14px; scroll-margin-top: 90px; }
.article h2.sec:first-child { margin-top: 0; }
.article > p, .article .prose p { color: #374151; margin-top: 10px; }
.article .prose ul, .article .prose ol { margin: 10px 0 0 22px; color: #374151; }
.article .prose li + li { margin-top: 6px; }
.toc { border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; background: var(--surface); margin-bottom: 32px; }
.toc b { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc ol { margin: 8px 0 0 20px; }
.toc a { text-decoration: none; font-weight: 600; }
.toc a:hover { text-decoration: underline; }
.kv { margin-top: 14px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.kv div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 12px; padding: 11px 16px; font-size: .93rem; }
.kv div + div { border-top: 1px solid var(--border); }
.kv dt { font-weight: 600; color: var(--ink); }
.kv dd { color: #374151; }
.template { margin-top: 14px; position: relative; background: var(--dark); color: #E5E7EB; border-radius: 14px; padding: 18px 20px; font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .88rem; white-space: pre-wrap; line-height: 1.7; }
.template .copy { position: absolute; top: 12px; right: 12px; }
.related { margin-top: 40px; }
.related h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 12px; }
@media print { .tab-list { display: none; } .tab-panel[hidden] { display: block !important; } .js .tab-panel > h3.panel-title { display: block; } }
.kb-hero a.chip { text-decoration: none; transition: background .15s, color .15s; }
.kb-hero a.chip:hover { background: rgba(255,255,255,.12); color: #fff; }
.cat + .cat { margin-top: 44px; }
.cat { scroll-margin-top: 90px; }
@media (max-width: 560px) { .ui { white-space: normal; overflow-wrap: anywhere; } }
