:root {
  --bg: #f5f7fa; --surface: #ffffff; --ink: #18202a; --muted: #6b7582;
  --line: #e5e9ef; --accent: #1769ff; --accent-soft: #eaf1ff; --shadow: 0 16px 40px rgba(24,32,42,.07);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.shell { min-height: 100vh; display: flex; }
.sidebar { width: 272px; position: fixed; inset: 0 auto 0 0; background: var(--surface); border-right: 1px solid var(--line); padding: 28px 18px 20px; display: flex; flex-direction: column; z-index: 10; }
.brand-lockup { padding: 0 12px 28px; border-bottom: 1px solid var(--line); }
.mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--ink); color: white; border-radius: 10px; font-weight: 800; letter-spacing: -.08em; }
.brand-name { margin-top: 14px; font-size: 18px; font-weight: 720; letter-spacing: -.03em; }
.brand-sub { margin-top: 3px; color: var(--muted); font-size: 12px; }
.nav { padding-top: 20px; overflow-y: auto; }
.nav-label { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; padding: 0 12px 9px; }
.nav a { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 9px 12px; border-radius: 8px; font-size: 13px; transition: .2s ease; }
.nav a:hover { background: var(--accent-soft); color: var(--accent); }
.nav a.active { background: var(--ink); color: white; }
.nav-num { font-variant-numeric: tabular-nums; font-size: 11px; opacity: .65; width: 22px; }
.sidebar-footer { margin-top: auto; padding: 16px 12px 0; color: var(--muted); font-size: 11px; border-top: 1px solid var(--line); }
.main { margin-left: 272px; width: calc(100% - 272px); }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 5vw, 72px); border-bottom: 1px solid var(--line); background: rgba(245,247,250,.8); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 5; }
.crumb { color: var(--muted); font-size: 12px; }
.toolbar { display: flex; gap: 8px; align-items: center; }
.search { width: min(280px, 32vw); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 9px 12px; outline: none; color: var(--ink); }
.search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.icon-btn { width: 36px; height: 36px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { color: var(--accent); border-color: #b9ceff; }
.content { max-width: 1120px; padding: clamp(46px, 7vw, 100px) clamp(24px, 7vw, 100px); }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1 { font-size: clamp(38px, 5vw, 72px); line-height: .98; letter-spacing: -.065em; margin: 16px 0 24px; max-width: 760px; }
h2 { font-size: 22px; letter-spacing: -.035em; margin: 0 0 10px; }
.lead { max-width: 620px; color: var(--muted); font-size: 18px; line-height: 1.55; }
.meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 26px 0 58px; }
.pill { background: var(--surface); border: 1px solid var(--line); color: var(--muted); padding: 6px 10px; border-radius: 999px; font-size: 11px; }
.section { margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); }
.section-head { display:flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 22px; }
.section-note { color: var(--muted); font-size: 12px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { min-height: 168px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 22px 48px rgba(24,32,42,.11); }
.card-icon { color: var(--accent); width: 30px; height: 30px; display:grid; place-items:center; background: var(--accent-soft); border-radius: 8px; margin-bottom: 18px; }
.card h3 { font-size: 15px; margin: 0 0 6px; letter-spacing: -.02em; }
.card p { color: var(--muted); font-size: 13px; margin: 0; }
.placeholder { display: grid; place-items: center; min-height: 240px; border: 1px dashed #cbd3de; border-radius: 12px; color: var(--muted); text-align: center; padding: 28px; background: rgba(255,255,255,.42); }
.placeholder strong { display:block; color: var(--ink); margin-bottom: 6px; }
.footer { color: var(--muted); font-size: 12px; padding-top: 70px; }
.bb-index { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:12px; margin-top:26px; }
.bb-index a { display:flex; gap:13px; align-items:flex-start; padding:14px 16px; border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--muted); font-size:13px; transition:.2s ease; }
.bb-index a:hover { color:var(--accent); border-color:#b9ceff; transform:translateY(-2px); }
.bb-index small { display:block; color:var(--muted); font-size:11px; margin-top:2px; }
.bb-index-num { color:var(--accent); font-size:11px; font-variant-numeric:tabular-nums; min-width:20px; }
.bb-layout { display:grid; grid-template-columns:minmax(0,1fr) 190px; gap:54px; align-items:start; }
.bb-toc { position:sticky; top:102px; border-left:1px solid var(--line); padding-left:18px; }
.bb-toc-title { color:var(--muted); font-size:10px; font-weight:750; letter-spacing:.14em; text-transform:uppercase; margin-bottom:12px; }
.bb-toc a { display:block; color:var(--muted); font-size:12px; padding:5px 0; }
.bb-toc a:hover { color:var(--accent); }
.bb-copy { max-width:760px; }
.bb-copy p { color:var(--muted); font-size:16px; max-width:700px; }
.bb-copy .quote { color:var(--ink); font-size:clamp(26px,3vw,42px); line-height:1.12; letter-spacing:-.045em; margin:32px 0; max-width:720px; }
.bb-copy ul { color:var(--muted); padding-left:22px; }
.bb-copy li { margin:7px 0; }
.bb-callout { background:var(--ink); color:var(--surface); border-radius:14px; padding:26px; margin:26px 0; }
.bb-callout p { color:inherit; margin:0; }
.bb-callout .eyebrow { color:var(--accent); margin-bottom:10px; }
.bb-value { border-top:1px solid var(--line); padding:18px 0; }
.bb-value h3 { margin:0 0 5px; font-size:16px; }
.bb-value p { margin:0; font-size:14px; }
.bb-split { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:20px; }
.bb-card { padding:20px; border:1px solid var(--line); background:var(--surface); border-radius:12px; box-shadow:var(--shadow); }
.bb-card h3 { margin:0 0 8px; font-size:16px; }
.bb-card p { margin:0; font-size:14px; }
.bb-steps { counter-reset:step; display:grid; gap:12px; }
.bb-step { display:grid; grid-template-columns:42px 1fr; gap:14px; align-items:start; padding:18px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.bb-step::before { counter-increment:step; content:counter(step, decimal-leading-zero); color:var(--accent); font-size:12px; font-weight:750; }
.bb-step h3 { margin:0 0 5px; font-size:16px; }
.bb-step p { margin:0; font-size:14px; }
.bb-protagonist { min-height:320px; border:1px dashed #cbd3de; border-radius:14px; display:grid; place-items:center; text-align:center; padding:30px; background:linear-gradient(135deg,rgba(234,241,255,.8),rgba(255,255,255,.2)); }
.bb-protagonist strong { display:block; color:var(--ink); font-size:19px; margin-bottom:8px; }
.bb-protagonist span { display:block; color:var(--muted); max-width:380px; font-size:13px; }
.bb-nav { display:flex; justify-content:space-between; gap:12px; margin-top:70px; padding-top:20px; border-top:1px solid var(--line); }
.bb-nav a { display:block; color:var(--muted); font-size:12px; max-width:45%; }
.bb-nav a:hover { color:var(--accent); }
.bb-nav strong { display:block; color:var(--ink); font-size:14px; margin-top:4px; }
.vb-index { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.vb-index a { display:flex; gap:12px; padding:15px; border:1px solid var(--line); border-radius:10px; background:var(--surface); transition:.2s ease; }
.vb-index a:hover { border-color:#b9ceff; transform:translateY(-2px); }
.vb-num { color:var(--accent); font-size:11px; font-weight:750; min-width:22px; }
.vb-index strong { display:block; font-size:14px; }
.vb-index small { display:block; color:var(--muted); font-size:11px; margin-top:3px; }
.vb-copy { max-width:820px; }
.vb-copy p { color:var(--muted); font-size:15px; }
.vb-copy .lead-quote { color:var(--ink); font-size:clamp(25px,3vw,42px); line-height:1.12; letter-spacing:-.045em; margin:28px 0; }
.vb-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:24px 0; }
.vb-card { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:19px; box-shadow:var(--shadow); }
.vb-card h3 { margin:0 0 8px; font-size:16px; letter-spacing:-.02em; }
.vb-card p { margin:0; font-size:13px; }
.vb-card .vb-label { color:var(--accent); font-size:10px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; margin-bottom:8px; }
.vb-card.avoid { border-top:3px solid #d96b62; }
.vb-card.do { border-top:3px solid #4ba77d; }
.vb-table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:12px; margin:24px 0; }
.vb-table { width:100%; min-width:620px; border-collapse:collapse; font-size:13px; }
.vb-table th,.vb-table td { text-align:left; vertical-align:top; padding:13px 15px; border-bottom:1px solid var(--line); }
.vb-table th { color:var(--muted); background:var(--bg); font-size:10px; letter-spacing:.12em; text-transform:uppercase; }
.vb-table tr:last-child td { border-bottom:0; }
.vb-copy .copy-block { position:relative; background:var(--ink); color:var(--surface); border-radius:12px; padding:20px 58px 20px 20px; margin:12px 0; }
.vb-copy .copy-block p { color:inherit; margin:0; white-space:pre-line; }
.copy-btn { position:absolute; right:12px; top:12px; border:1px solid rgba(255,255,255,.25); color:inherit; background:transparent; border-radius:6px; padding:6px 9px; font-size:11px; cursor:pointer; }
.copy-btn:hover,.copy-btn.copied { background:var(--accent); border-color:var(--accent); }
.vb-checklist { display:grid; gap:10px; margin:22px 0; }
.vb-check { display:flex; gap:10px; align-items:flex-start; padding:13px 15px; background:var(--surface); border:1px solid var(--line); border-radius:9px; font-size:13px; color:var(--muted); }
.vb-check input { accent-color:var(--accent); margin-top:3px; }
.vb-check:has(input:checked) { border-color:var(--accent); color:var(--ink); }
.vb-callout { margin:24px 0; background:var(--accent-soft); border:1px solid #c7d8fb; color:var(--ink); border-radius:12px; padding:18px; }
.vb-callout strong { display:block; margin-bottom:5px; }
.vb-flow { display:flex; align-items:stretch; gap:8px; margin:24px 0; flex-wrap:wrap; }
.vb-flow span { flex:1; min-width:130px; padding:15px; text-align:center; border:1px solid var(--line); border-radius:10px; background:var(--surface); font-weight:700; font-size:13px; }
.vb-flow i { align-self:center; color:var(--accent); font-style:normal; }
.vb-tokens { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0; }
.vb-token { padding:8px 11px; background:var(--accent-soft); color:var(--ink); border-radius:999px; font-size:12px; }
.vb-nav { display:flex; justify-content:space-between; gap:12px; margin-top:70px; padding-top:20px; border-top:1px solid var(--line); }
.vb-nav a { max-width:46%; color:var(--muted); font-size:12px; }
.vb-nav a:hover { color:var(--accent); }
.vb-nav strong { display:block; color:var(--ink); font-size:14px; margin-top:4px; }
.iv-index { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.iv-index a { display:flex; gap:12px; padding:15px; border:1px solid var(--line); border-radius:10px; background:var(--surface); transition:.2s ease; }
.iv-index a:hover { border-color:#b9ceff; transform:translateY(-2px); }
.iv-num { color:var(--accent); font-size:11px; font-weight:750; min-width:22px; }
.iv-index strong { display:block; font-size:14px; }
.iv-index small { display:block; color:var(--muted); font-size:11px; margin-top:3px; }
.iv-copy { max-width:820px; }
.iv-copy p { color:var(--muted); font-size:15px; }
.iv-copy .lead-quote { color:var(--ink); font-size:clamp(25px,3vw,42px); line-height:1.12; letter-spacing:-.045em; margin:28px 0; }
.iv-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:24px 0; }
.iv-card { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:19px; box-shadow:var(--shadow); }
.iv-card h3 { margin:0 0 8px; font-size:16px; letter-spacing:-.02em; }
.iv-card p { margin:0; font-size:13px; }
.iv-card .iv-label { color:var(--accent); font-size:10px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; margin-bottom:8px; }
.iv-swatch { height:72px; border-radius:9px; margin-bottom:12px; border:1px solid rgba(0,0,0,.08); }
.iv-token { display:flex; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); font-size:13px; }
.iv-token code { color:var(--accent); font-size:12px; }
.iv-table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:12px; margin:24px 0; }
.iv-table { width:100%; min-width:660px; border-collapse:collapse; font-size:13px; }
.iv-table th,.iv-table td { text-align:left; vertical-align:top; padding:13px 15px; border-bottom:1px solid var(--line); }
.iv-table th { color:var(--muted); background:var(--bg); font-size:10px; letter-spacing:.12em; text-transform:uppercase; }
.iv-table tr:last-child td { border-bottom:0; }
.iv-copy-block { position:relative; background:var(--ink); color:var(--surface); border-radius:12px; padding:20px 58px 20px 20px; margin:12px 0; }
.iv-copy-block p { color:inherit; margin:0; white-space:pre-line; }
.iv-copy-btn { position:absolute; right:12px; top:12px; border:1px solid rgba(255,255,255,.25); color:inherit; background:transparent; border-radius:6px; padding:6px 9px; font-size:11px; cursor:pointer; }
.iv-copy-btn:hover,.iv-copy-btn.copied { background:var(--accent); border-color:var(--accent); }
.iv-hero { display:grid; grid-template-columns:1.1fr .9fr; gap:20px; align-items:stretch; margin:24px 0; }
.iv-photo { min-height:260px; overflow:hidden; border-radius:14px; background:var(--ink); position:relative; }
.iv-photo img { width:100%; height:100%; display:block; object-fit:cover; object-position:center; }
.iv-photo figcaption { position:absolute; left:14px; bottom:12px; color:#fff; font-size:11px; background:rgba(9,12,16,.72); padding:6px 9px; border-radius:6px; }
.iv-safe { border:1px dashed var(--accent); border-radius:12px; padding:25px; background:repeating-linear-gradient(45deg,rgba(0,141,210,.05),rgba(0,141,210,.05) 10px,transparent 10px,transparent 20px); text-align:center; }
.iv-logo-placeholder { min-height:210px; display:grid; place-items:center; border:1px dashed #9aa7b5; border-radius:12px; background:var(--bg); text-align:center; padding:20px; }
.iv-logo-placeholder strong { display:block; font-size:25px; letter-spacing:-.05em; margin-bottom:6px; }
.iv-logo-placeholder span { color:var(--muted); font-size:12px; }
.iv-gradient { height:90px; border-radius:10px; margin-bottom:12px; }
.iv-pattern { min-height:130px; border-radius:10px; margin-bottom:12px; background-color:var(--ink); background-image:radial-gradient(circle at 20% 20%,rgba(0,141,210,.8) 0 2px,transparent 3px),linear-gradient(135deg,transparent 45%,rgba(0,141,210,.35) 46% 47%,transparent 48%); background-size:42px 42px,42px 42px; }
.iv-icon-set { display:flex; gap:14px; flex-wrap:wrap; color:var(--accent); margin:18px 0; }
.iv-icon-set span { width:40px; height:40px; border:1px solid var(--line); border-radius:10px; display:grid; place-items:center; font-size:22px; }
.iv-download { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 0; border-bottom:1px solid var(--line); }
.iv-download .status { color:var(--muted); font-size:11px; }
.bos-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:24px 0; }
.bos-field { display:grid; gap:6px; color:var(--muted); font-size:12px; }
.bos-field input,.bos-field select,.bos-field textarea { width:100%; background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:8px; padding:10px; }
.bos-field textarea { min-height:92px; resize:vertical; }
.bos-actions { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0; }
.bos-btn { border:1px solid var(--accent); border-radius:8px; background:var(--accent); color:white; padding:9px 12px; cursor:pointer; font-weight:650; }
.bos-btn.secondary { background:transparent; color:var(--ink); border-color:var(--line); }
.bos-output { min-height:110px; white-space:pre-wrap; overflow:auto; background:var(--ink); color:var(--surface); padding:18px; border-radius:12px; font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; }
body.dark .bb-protagonist { background:linear-gradient(135deg,rgba(29,49,84,.75),rgba(23,30,39,.3)); }
.hidden { display:none !important; }
body.dark { --bg:#10151c; --surface:#171e27; --ink:#edf2f7; --muted:#9aa7b5; --line:#293340; --accent:#78a8ff; --accent-soft:#1d3154; --shadow:0 16px 40px rgba(0,0,0,.18); }
body.dark .topbar { background: rgba(16,21,28,.8); }
body.dark .mark, body.dark .nav a.active { background: #edf2f7; color: #10151c; }
body.dark .placeholder { background: rgba(23,30,39,.4); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media (max-width: 900px) { .sidebar { width: 224px; } .main { margin-left:224px; width:calc(100% - 224px); } .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .sidebar { position: static; width:100%; height:auto; border-right:0; border-bottom:1px solid var(--line); } .shell { display:block; } .main { margin:0; width:100%; } .nav { max-height: 320px; } .sidebar-footer { display:none; } .topbar { height:auto; min-height:68px; padding:14px 20px; } .search { width: 150px; } .content { padding:42px 20px 60px; } .grid,.bb-index,.bb-split,.vb-grid,.vb-index,.iv-grid,.iv-index,.iv-hero,.bos-form { grid-template-columns:1fr; } .bb-layout { display:block; } .bb-toc { position:static; margin:28px 0; } .vb-flow { display:grid; grid-template-columns:1fr; } .vb-flow i { display:none; } h1 { font-size: 44px; } .lead { font-size:16px; } }
