:root {
  color-scheme: dark;
  --ink: #f7f4e8;
  --muted: #d1cddd;
  --muted-strong: #eeeaf6;
  --canvas: #0d0c18;
  --sidebar: #151326;
  --panel: #1d1a33;
  --panel-2: #252142;
  --panel-3: #302b51;
  --line: rgba(247, 244, 232, 0.15);
  --line-strong: rgba(247, 244, 232, 0.27);
  --gold: #f5cb43;
  --gold-text: #f5cb43;
  --gold-soft: rgba(245, 203, 67, 0.15);
  --mint: #48dec6;
  --mint-soft: rgba(72, 222, 198, 0.14);
  --blue: #69adff;
  --blue-soft: rgba(105, 173, 255, 0.14);
  --coral: #ff7d7d;
  --coral-soft: rgba(255, 125, 125, 0.14);
  --violet: #c38eff;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.23);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI Variable", "Segoe UI", Aptos, Arial, sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --ink: #1d1a33;
  --muted: #635f76;
  --muted-strong: #45415a;
  --canvas: #f6f2e7;
  --sidebar: #18152c;
  --panel: #ffffff;
  --panel-2: #f8f5ec;
  --panel-3: #eee9dc;
  --line: rgba(38, 32, 69, 0.15);
  --line-strong: rgba(38, 32, 69, 0.29);
  --gold-text: #805400;
  --gold-soft: rgba(245, 203, 67, 0.2);
  --mint-soft: rgba(72, 222, 198, 0.15);
  --blue-soft: rgba(105, 173, 255, 0.15);
  --coral-soft: rgba(255, 125, 125, 0.15);
  --shadow: 0 18px 45px rgba(38, 32, 69, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
}
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; z-index: 99; top: -60px; left: 12px; padding: 9px 12px; background: var(--gold); color: #171326; font-weight: 800; border-radius: 6px; }
.skip-link:focus { top: 12px; }

.app-shell { min-height: 100vh; }
.site-frame { min-height: 100vh; display: grid; grid-template-columns: 294px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 14px 16px;
  background: var(--sidebar);
  border-right: 1px solid rgba(255,255,255,.12);
  overflow-y: auto;
  z-index: 20;
}
[dir="rtl"] .sidebar { border-right: 0; border-left: 1px solid rgba(255,255,255,.12); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center; color: #151326; background: var(--gold); border-radius: 8px; font-size: 22px; font-weight: 900;
  box-shadow: 0 0 0 1px rgba(255,255,255,.3) inset;
}
.brand-copy { min-width: 0; display: grid; gap: 4px; }
.brand-name { display: block; color: #fff8c8; font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1; }
.brand-legacy { display: block; color: #9fece0; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.identity-note { margin: 0 7px 16px; padding: 10px 11px; border: 1px solid rgba(245,203,67,.42); border-left: 3px solid var(--gold); border-radius: 6px; color: #f1edf9; font-size: 13px; font-weight: 550; line-height: 1.5; }
[dir="rtl"] .identity-note { border-left: 1px solid rgba(245,203,67,.42); border-right: 3px solid var(--gold); }
.sidebar-search { position: relative; margin: 0 7px 13px; }
.sidebar-search input {
  width: 100%; padding: 10px 12px 10px 34px; background: rgba(255,255,255,.075); color: #f7f4e8; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; font-size: 14px; font-weight: 500;
}
[dir="rtl"] .sidebar-search input { padding: 10px 34px 10px 12px; }
.sidebar-search span { position: absolute; top: 9px; left: 12px; color: #a5a0b7; font-size: 15px; }
[dir="rtl"] .sidebar-search span { left: auto; right: 12px; }
.nav-section { margin: 17px 7px 6px; color: #d5cee6; font-size: 11px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.nav-list { display: grid; gap: 2px; }
.nav-link { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px; border: 1px solid transparent; color: #f3f0fa; background: transparent; border-radius: 6px; text-align: left; font-size: 14px; font-weight: 600; }
[dir="rtl"] .nav-link { text-align: right; }
.nav-link:hover { background: rgba(255,255,255,.075); }
.nav-link.active { color: #fff9d0; background: rgba(245,203,67,.14); border-color: rgba(245,203,67,.47); }
.nav-icon { width: 18px; flex: 0 0 18px; text-align: center; font-size: 15px; }
.nav-count { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-inline-start: auto; color: #171326; background: var(--gold); border: 1px solid #fff1a2; border-radius: 50%; font-size: 11px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.sidebar-footer { margin: 24px 7px 0; padding: 12px 0 0; border-top: 1px solid rgba(255,255,255,.12); }
.sidebar-footer p { margin: 0 0 8px; color: #d5d0e3; font-size: 12px; font-weight: 500; line-height: 1.5; }
.privacy-chip { display: inline-flex; gap: 6px; align-items: center; padding: 5px 7px; color: #d9fff8; background: rgba(72,222,198,.1); border: 1px solid rgba(72,222,198,.32); border-radius: 99px; font-size: 11px; font-weight: 800; }

.main-shell { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 15; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 66px; padding: 12px clamp(18px, 3vw, 40px); background: color-mix(in srgb, var(--canvas) 92%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px);
}
.topbar-left, .topbar-actions { display: flex; gap: 8px; align-items: center; }
.crumb { color: var(--muted); font-size: 13px; }
.top-action, .language-button, .mobile-menu {
  min-height: 36px; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink); background: var(--panel); font-size: 12px; font-weight: 800;
}
.top-action:hover, .language-button:hover, .mobile-menu:hover { border-color: var(--gold); }
.shortcut-key { padding: 1px 5px; margin-left: 6px; color: var(--muted); background: var(--panel-3); border: 1px solid var(--line); border-radius: 4px; font-family: ui-monospace, monospace; font-size: 10px; }
.theme-button { width: 37px; padding: 0; font-size: 16px; }
.mobile-menu { display: none; }
.page { width: min(1320px, 100%); margin: 0 auto; padding: clamp(24px, 4vw, 54px) clamp(18px, 3vw, 40px) 80px; }

.eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 10px; color: var(--mint); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); }
.title-xl { max-width: 880px; margin: 0; font-family: var(--serif); font-size: clamp(34px, 5vw, 61px); line-height: 1.02; letter-spacing: 0; }
.title-lg { margin: 0; font-family: var(--serif); font-size: clamp(28px, 4vw, 43px); line-height: 1.08; }
.lede { max-width: 760px; margin: 16px 0 0; color: var(--muted-strong); font-size: 17px; }
.hero { position: relative; padding: 8px 0 42px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 302px; align-items: end; gap: 26px; }
.hero-note { padding: 15px; background: var(--panel); border: 1px solid var(--line-strong); border-top: 3px solid var(--gold); border-radius: 7px; box-shadow: var(--shadow); }
.hero-note strong { display: block; color: var(--gold-text); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.hero-note p { margin: 8px 0 0; color: var(--muted-strong); font-size: 13px; }
.home-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; gap: 8px; padding: 9px 13px; border: 1px solid transparent; border-radius: 6px; font-size: 13px; font-weight: 900; }
.button-primary { color: #171326; background: var(--gold); border-color: #ffed9a; }
.button-primary:hover { background: #ffda57; }
.button-secondary { color: var(--ink); background: var(--panel); border-color: var(--line-strong); }
.button-secondary:hover { border-color: var(--mint); }
.button-mint { color: #102523; background: var(--mint); border-color: #a6fff2; }
.button-danger { color: #571d24; background: #ffc8c8; border-color: #ff8f8f; }

.section { margin-top: 42px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 17px; }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: 29px; line-height: 1.1; }
.section-heading p { max-width: 630px; margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.section-link { color: var(--mint); font-size: 13px; font-weight: 800; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.metric-card { min-height: 122px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--accent, var(--gold)); border-radius: 7px; }
.metric-card small { display: block; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.metric-card strong { display: block; margin-top: 8px; font-family: var(--serif); font-size: 27px; line-height: 1; }
.metric-card span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }
.quick-grid, .guide-grid, .atlas-grid, .domain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.quick-card, .guide-card, .atlas-card, .domain-card { position: relative; padding: 17px; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.quick-card:hover, .guide-card:hover, .atlas-card:hover, .domain-card:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: var(--shadow); }
.quick-card .card-icon, .guide-card .card-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px; color: var(--ink); background: var(--panel-3); border: 1px solid var(--line); border-radius: 6px; font-size: 17px; }
.guide-card h3, .quick-card h3, .atlas-card h3, .domain-card h3 { margin: 0; font-size: 17px; font-weight: 750; line-height: 1.28; }
.guide-card p, .quick-card p, .atlas-card p, .domain-card p { margin: 9px 0 0; color: var(--muted-strong); font-size: 14px; font-weight: 500; line-height: 1.45; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.pill { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; color: var(--muted-strong); background: var(--panel-3); border: 1px solid var(--line); border-radius: 99px; font-size: 11px; font-weight: 800; }
.pill.gold { color: #725a00; background: #ffe998; border-color: #f7cf51; }
.pill.mint { color: #145e56; background: #b1f6e8; border-color: #63d9c8; }
.pill.coral { color: #7a2730; background: #ffd0d0; border-color: #fb9b9b; }
.inline-notice { display: flex; gap: 11px; align-items: flex-start; padding: 14px; background: var(--mint-soft); border: 1px solid rgba(72,222,198,.37); border-radius: 7px; color: var(--muted-strong); font-size: 13px; }
.inline-notice strong { color: var(--ink); }
.inline-notice .notice-icon { color: var(--mint); font-size: 18px; line-height: 1; }

.docs-toolbar, .atlas-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 24px 0 18px; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-pill { padding: 8px 10px; color: var(--muted-strong); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; font-size: 13px; font-weight: 800; }
.filter-pill.active { color: #362900; background: var(--gold); border-color: #ffec9e; }
.result-count { color: var(--muted-strong); font-size: 13px; }
.empty-state { padding: 40px 20px; color: var(--muted); background: var(--panel); border: 1px dashed var(--line-strong); border-radius: 7px; text-align: center; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 276px; gap: 28px; }
.article-content { min-width: 0; }
.back-link { display: inline-flex; gap: 7px; align-items: center; margin-bottom: 18px; color: var(--mint); font-size: 13px; font-weight: 900; }
.article-header { padding: 0 0 26px; border-bottom: 1px solid var(--line); }
.article-header h1 { max-width: 820px; margin: 8px 0 0; font-family: var(--serif); font-size: clamp(34px, 4vw, 51px); line-height: 1.04; }
.article-header p { max-width: 760px; margin: 14px 0 0; color: var(--muted-strong); font-size: 17px; }
.article-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.article-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 20px 0 0; }
.article-meta > div { padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.article-meta dt { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.article-meta dd { margin: 4px 0 0; font-size: 12px; font-weight: 700; }
.article-section { margin-top: 32px; }
.article-section-title { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.section-symbol { display: grid; place-items: center; width: 30px; height: 30px; color: var(--gold-text); background: var(--gold-soft); border: 1px solid rgba(245,203,67,.32); border-radius: 6px; font-size: 15px; }
.article-section h2 { margin: 0; font-family: var(--serif); font-size: 27px; }
.article-section h3 { margin: 0; font-size: 16px; }
.article-copy { color: var(--muted-strong); }
.article-copy p { margin: 0 0 10px; }
.steps { display: grid; gap: 10px; counter-reset: steps; }
.step { position: relative; min-height: 78px; padding: 14px 14px 14px 62px; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; }
[dir="rtl"] .step { padding: 14px 62px 14px 14px; }
.step::before { counter-increment: steps; content: counter(steps); position: absolute; top: 15px; left: 15px; display: grid; place-items: center; width: 30px; height: 30px; color: #201c33; background: var(--gold); border-radius: 6px; font-weight: 900; }
[dir="rtl"] .step::before { left: auto; right: 15px; }
.step p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.controls-table { display: grid; gap: 8px; }
.control-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) 170px; gap: 11px; align-items: center; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.control-row strong { font-size: 13px; }
.control-row span { color: var(--muted); font-size: 13px; }
.control-state { color: var(--mint) !important; font-size: 11px !important; font-weight: 800; }
.check-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 9px; padding: 11px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; color: var(--muted-strong); font-size: 13px; }
.check-list li::before { content: "✓"; flex: 0 0 auto; color: var(--mint); font-weight: 900; }
.risk-callout { padding: 16px; background: var(--coral-soft); border: 1px solid rgba(255,125,125,.4); border-left: 3px solid var(--coral); border-radius: 6px; color: var(--muted-strong); font-size: 13px; }
[dir="rtl"] .risk-callout { border-left: 1px solid rgba(255,125,125,.4); border-right: 3px solid var(--coral); }
.risk-callout strong { color: var(--ink); }
.plain-language { padding: 15px; background: var(--mint-soft); border: 1px solid rgba(72,222,198,.36); border-radius: 7px; }
.plain-language p { max-width: 850px; margin: 0; color: var(--muted-strong); font-size: 15px; }
.tutorial-list { display: grid; gap: 10px; }
.tutorial-step { display: grid; grid-template-columns: 43px minmax(0,1fr); gap: 12px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; }
.tutorial-count { display: grid; place-items: center; align-self: start; width: 34px; height: 34px; color: #171326; background: var(--gold); border: 1px solid #fff1a2; border-radius: 50%; font-weight: 900; line-height: 1; }
.tutorial-copy h3 { margin: 1px 0 12px; font-size: 15px; }
.tutorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.tutorial-grid > div { padding: 10px; background: var(--panel-3); border: 1px solid var(--line); border-radius: 6px; }
.tutorial-grid strong { display: block; color: var(--mint); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.tutorial-grid p { margin: 5px 0 0; color: var(--muted-strong); font-size: 12px; line-height: 1.45; }
.business-adaptation { padding: 17px; background: var(--gold-soft); border: 1px solid rgba(245,203,67,.4); border-radius: 7px; }
.business-intro h3 { margin: 0; color: var(--gold-text); font-size: 16px; }
.business-intro p { max-width: 880px; margin: 6px 0 0; color: var(--muted-strong); font-size: 14px; }
.business-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; margin-top: 14px; }
.business-example { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 9px; padding: 11px; background: color-mix(in srgb, var(--panel) 87%, transparent); border: 1px solid var(--line); border-radius: 6px; }
.business-icon { display: grid; place-items: center; width: 31px; height: 31px; background: var(--panel-3); border: 1px solid var(--line); border-radius: 6px; font-size: 16px; }
.business-example strong { display: block; font-size: 13px; }
.business-example p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.business-disclaimer { margin: 13px 0 0; padding: 10px; color: var(--muted-strong); background: var(--blue-soft); border: 1px solid rgba(105,173,255,.32); border-radius: 6px; font-size: 12px; }
.article-aside { position: sticky; top: 86px; align-self: start; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; }
.article-aside h2 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.article-aside a { display: block; padding: 6px 0; color: var(--muted); font-size: 12px; }
.article-aside a:hover { color: var(--mint); }
.related-list { display: grid; gap: 8px; }
.related-card { padding: 11px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.related-card:hover { border-color: var(--gold); }
.related-card small { color: var(--mint); font-weight: 800; }
.related-card strong { display: block; margin-top: 3px; font-size: 13px; }

.atlas-intro { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; }
.atlas-intro p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.atlas-stat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.atlas-stat > div { padding: 11px; background: var(--panel-3); border: 1px solid var(--line); border-radius: 6px; }
.atlas-stat strong { display: block; color: var(--gold-text); font-family: var(--serif); font-size: 24px; }
.atlas-stat span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.atlas-card { min-height: 224px; overflow: hidden; }
.atlas-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--atlas-accent, var(--mint)); }
.atlas-card .atlas-preview { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; height: 58px; margin-bottom: 15px; padding: 8px; background: var(--panel-3); border: 1px solid var(--line); border-radius: 5px; }
.atlas-preview-aside { background: rgba(245,203,67,.42); border-radius: 2px; }
.atlas-preview-lines { display: grid; grid-template-rows: 8px repeat(2, 1fr); gap: 4px; }
.atlas-preview-lines span { display: block; background: rgba(255,255,255,.2); border-radius: 2px; }
.atlas-preview-lines span:last-child { width: 75%; }

.surface-head { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin-bottom: 20px; }
.surface-head .surface-copy p { max-width: 700px; margin: 9px 0 0; color: var(--muted); }
.surface-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.surface-capture-column { min-width: 0; }
.surface-capture-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 9px; color: var(--muted); font-size: 11px; font-weight: 800; }
.surface-capture-toolbar .button { min-height: 36px; white-space: nowrap; }
.screen-capture { position: relative; min-height: 0; overflow: hidden; background: #11101f; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; box-shadow: var(--shadow); }
.screen-capture-real:not(.lightbox-capture) { border-color: color-mix(in srgb, var(--surface-accent) 80%, #ffffff 20%); animation: capture-halo 3.2s ease-in-out infinite; }
.screen-capture-real { min-height: 0; }
.capture-stage { position: relative; width: 100%; line-height: 0; }
.capture-zoom-trigger { display: block; width: 100%; padding: 0; color: inherit; background: transparent; border: 0; cursor: zoom-in; }
.capture-zoom-trigger:focus-visible { outline: 3px solid #ffffff; outline-offset: -6px; }
.real-capture { display: block; width: 100%; height: auto; background: #11101f; transform-origin: center; transition: transform .24s ease; }
.capture-zoom-trigger:hover .real-capture, .capture-zoom-trigger:focus-visible .real-capture { transform: scale(1.025); }
@keyframes capture-halo {
  0%, 100% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--surface-accent) 72%, transparent), 0 0 12px color-mix(in srgb, var(--surface-accent) 36%, transparent), var(--shadow); }
  50% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--surface-accent) 90%, #ffffff 10%), 0 0 28px color-mix(in srgb, var(--surface-accent) 62%, transparent), var(--shadow); }
}
.capture-missing { display: grid; min-height: 360px; place-items: center; color: var(--muted); background: #11101f; }
.demo-strip { position: absolute; z-index: 6; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 7px; color: #e7fff9; background: rgba(15,18,33,.84); border: 1px solid rgba(72,222,198,.55); border-radius: 5px; font-size: 10px; font-weight: 900; }
[dir="rtl"] .demo-strip { left: auto; right: 10px; }
.tone-gold { --zone: var(--gold-text); --zone-soft: var(--gold-soft); }
.tone-mint { --zone: #48dec6; --zone-soft: rgba(72,222,198,.18); }
.tone-blue { --zone: #69adff; --zone-soft: rgba(105,173,255,.18); }
.tone-coral { --zone: #ff7d7d; --zone-soft: rgba(255,125,125,.18); }
.tone-violet { --zone: #c38eff; --zone-soft: rgba(195,142,255,.18); }
.hotspot-zone { position: absolute; z-index: 7; display: block; min-width: 0; min-height: 0; padding: 0; background: transparent; border: 2px solid var(--zone); border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.46) inset, 0 0 12px var(--zone-soft); transition: box-shadow .16s ease, border-color .16s ease; }
.hotspot-zone:hover, .hotspot-zone.active { background: transparent; box-shadow: 0 0 0 2px rgba(255,255,255,.72) inset, 0 0 19px var(--zone-soft); }
.hotspot-zone:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.hotspot-zone-number { position: absolute; top: -14px; left: -14px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; color: #171326; background: var(--zone); border: 2px solid #fff7c9; border-radius: 50%; box-shadow: 0 0 0 3px rgba(13,12,24,.62); font-size: 12px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.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; }
.surface-aside { display: grid; gap: 11px; min-width: 0; }
.hotspot-list { display: grid; gap: 7px; }
.hotspot-card { display: grid; grid-template-columns: 27px minmax(0,1fr); gap: 9px; width: 100%; padding: 10px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--zone); border-radius: 6px; text-align: left; }
[dir="rtl"] .hotspot-card { border-left: 1px solid var(--line); border-right: 3px solid var(--zone); text-align: right; }
.hotspot-card:hover { border-color: var(--zone); background: var(--zone-soft); box-shadow: 0 0 0 1px var(--zone-soft) inset; }
.hotspot-card.active { position: relative; border-color: var(--zone); background: var(--zone-soft); animation: selected-hotspot-halo 2.8s ease-in-out infinite; }
@keyframes selected-hotspot-halo {
  0%, 100% { box-shadow: 0 0 0 1px var(--zone-soft) inset, 0 0 10px color-mix(in srgb, var(--zone) 32%, transparent); }
  50% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--zone) 82%, #ffffff 18%) inset, 0 0 24px color-mix(in srgb, var(--zone) 58%, transparent); }
}
.hotspot-card > .hotspot-number { display: grid; place-items: center; align-self: start; width: 25px; height: 25px; min-width: 25px; min-height: 25px; margin: 0; padding: 0; color: #16111f; background: var(--zone, var(--gold)); border: 1px solid rgba(255,255,255,.84); border-radius: 50%; box-shadow: 0 0 0 1px rgba(9,7,18,.42); font-size: 12px; font-weight: 900; line-height: 1; text-align: center; text-shadow: none; font-variant-numeric: tabular-nums; }
.hotspot-card > span:not(.hotspot-number) { min-width: 0; }
.hotspot-card strong { display: block; font-size: 14px; font-weight: 750; }
.hotspot-card > span:not(.hotspot-number) > span { display: block; margin-top: 4px; color: var(--muted-strong); font-size: 12px; font-weight: 500; line-height: 1.45; }
.hotspot-explainer { padding: 13px; background: var(--panel); border: 1px solid var(--zone); border-top: 3px solid var(--zone); border-radius: 7px; box-shadow: 0 14px 30px rgba(0,0,0,.12); }
.hotspot-explainer-head { display: grid; grid-template-columns: 29px minmax(0,1fr); gap: 9px; align-items: center; }
.hotspot-explainer-head small { display: block; color: var(--zone); font-size: 10px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.hotspot-explainer-head h2 { margin: 2px 0 0; font-size: 17px; line-height: 1.15; }
.hotspot-explainer-grid { display: grid; gap: 8px; margin-top: 12px; }
.hotspot-explainer-grid > div { padding: 9px; background: var(--panel-3); border: 1px solid var(--line); border-radius: 5px; }
.hotspot-explainer-grid strong { display: block; color: var(--zone); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.hotspot-explainer-grid p { margin: 4px 0 0; color: var(--muted-strong); font-size: 13px; font-weight: 500; line-height: 1.5; }
.surface-tip { padding: 12px; color: var(--muted-strong); background: var(--blue-soft); border: 1px solid rgba(105,173,255,.35); border-radius: 6px; font-size: 13px; font-weight: 500; }
.atlas-lightbox { position: fixed; z-index: 120; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(5,4,12,.86); backdrop-filter: blur(8px); }
.atlas-lightbox-dialog { display: flex; flex-direction: column; width: min(1560px, 100%); height: min(940px, calc(100dvh - 32px)); overflow: hidden; background: var(--canvas); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 35px 100px rgba(0,0,0,.55); }
.lightbox-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.lightbox-head small { display: block; color: var(--mint); font-size: 10px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.lightbox-head h2 { margin: 2px 0 0; font-family: var(--serif); font-size: 21px; line-height: 1.1; }
.lightbox-controls { display: flex; align-items: center; gap: 6px; }
.lightbox-controls button { display: inline-grid; place-items: center; min-width: 37px; min-height: 37px; padding: 6px 9px; color: var(--ink); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 6px; font-weight: 900; }
.lightbox-controls button:hover { border-color: var(--mint); background: var(--panel-3); }
.lightbox-controls .lightbox-reset { min-width: auto; font-size: 12px; }
.lightbox-controls .lightbox-close { color: #36171c; background: #ffd0d0; border-color: #ff9b9b; font-size: 22px; line-height: 1; }
.lightbox-tip { margin: 0; padding: 8px 14px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 12px; }
.lightbox-scroll { flex: 1; overflow: auto; padding: 14px; background: #090814; }
.lightbox-stage { min-width: 100%; margin: 0 auto; transition: width .18s ease; }
.lightbox-capture { width: 100%; box-shadow: 0 18px 45px rgba(0,0,0,.42); }

.search-backdrop { position: fixed; z-index: 60; inset: 0; display: grid; place-items: start center; padding: min(10vh, 100px) 18px 18px; background: rgba(5,4,12,.72); backdrop-filter: blur(6px); }
.search-dialog { width: min(760px, 100%); overflow: hidden; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.43); }
.search-input-wrap { display: flex; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line); }
.search-input-wrap input { flex: 1; min-width: 0; padding: 6px 2px; color: var(--ink); background: transparent; border: 0; font-size: 16px; text-align: start; unicode-bidi: plaintext; }
.search-input-wrap input:focus { outline: 0; }
.close-search { min-width: 32px; min-height: 32px; color: var(--muted); background: var(--panel-3); border: 1px solid var(--line); border-radius: 5px; }
.search-results { max-height: min(55vh, 450px); overflow-y: auto; padding: 9px; }
.search-group-label { padding: 9px 10px 5px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.search-result { width: 100%; display: grid; grid-template-columns: 24px minmax(0,1fr) auto; gap: 8px; align-items: center; padding: 10px; color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: 6px; text-align: left; }
[dir="rtl"] .search-result { text-align: right; }
.search-result:hover { background: var(--panel-3); border-color: var(--line); }
.search-result strong { display: block; font-size: 13px; }
.search-result span { display: block; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.search-result small { color: var(--mint); font-size: 10px; font-weight: 800; }
.empty-search { padding: 26px; color: var(--muted); text-align: center; }

.toast { position: fixed; right: 20px; bottom: 20px; z-index: 70; max-width: min(420px, calc(100vw - 40px)); padding: 13px 15px; color: var(--ink); background: var(--panel); border: 1px solid rgba(72,222,198,.52); border-left: 3px solid var(--mint); border-radius: 6px; box-shadow: var(--shadow); font-size: 13px; }
[dir="rtl"] .toast { right: auto; left: 20px; border-left: 1px solid rgba(72,222,198,.52); border-right: 3px solid var(--mint); }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 58px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer strong { color: var(--ink); }
.footer-credits { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; color: var(--muted); }
.footer-credits a { border-radius: 3px; font-weight: 900; text-decoration: none; }
.footer-credits a:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.footer-gitepilot { color: #74e3d3; }
.footer-gitepilot:hover { color: #c4fff7; text-decoration: underline; }
.footer-itaib { color: #f4c94e; font-family: Georgia, "Times New Roman", serif; letter-spacing: .01em; }
.footer-itaib:hover { color: #ffe69a; text-decoration: underline; }
html[data-theme="light"] .footer-itaib { color: #805400; }
html[data-theme="light"] .footer-itaib:hover { color: #5f3f00; }
[dir="rtl"] .footer-credits { justify-content: flex-start; }

@media (max-width: 1120px) {
  .quick-grid, .guide-grid, .atlas-grid, .domain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .article-layout, .surface-layout { grid-template-columns: 1fr; }
  .surface-aside { grid-template-columns: minmax(0,1fr) minmax(280px,.75fr); align-items: start; }
  .hotspot-list { grid-column: 1; }
  .hotspot-explainer { grid-column: 2; grid-row: 1 / span 2; }
  .surface-tip { grid-column: 1; }
  .tutorial-grid, .business-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .article-aside { position: static; order: -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
  .article-aside h2 { width: 100%; margin: 0; }
  .article-aside a { padding: 0; }
  .article-aside .aside-divider { display: none; }
}
@media (max-width: 820px) {
  .site-frame { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; width: min(302px, 86vw); height: 100dvh; transform: translateX(-105%); transition: transform .22s ease; box-shadow: var(--shadow); }
  [dir="rtl"] .sidebar { left: auto; right: 0; transform: translateX(105%); }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: inline-flex; align-items: center; gap: 6px; }
  .crumb { display: none; }
  .topbar { min-height: 58px; padding: 9px 17px; }
  .top-action .shortcut-key { display: none; }
  .page { padding: 28px 18px 60px; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .article-meta { grid-template-columns: 1fr; }
  .control-row { grid-template-columns: 1fr; gap: 4px; }
  .surface-head { display: block; }
  .surface-head .button { margin-top: 15px; }
  .screen-capture { min-height: 0; }
}
@media (max-width: 720px) {
  .tutorial-grid, .business-grid { grid-template-columns: 1fr; }
  .surface-capture-toolbar { align-items: flex-start; flex-direction: column; }
  .surface-capture-toolbar .button { width: 100%; }
  .surface-aside { grid-template-columns: 1fr; }
  .hotspot-list { grid-column: auto; grid-auto-flow: column; grid-auto-columns: minmax(244px, 76vw); grid-template-rows: 1fr; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x mandatory; }
  .hotspot-card { min-height: 84px; scroll-snap-align: start; }
  .hotspot-explainer { grid-column: auto; grid-row: auto; }
  .hotspot-zone-number { width: 26px; height: 26px; font-size: 11px; }
  .atlas-lightbox { padding: 8px; }
  .atlas-lightbox-dialog { height: calc(100dvh - 16px); border-radius: 6px; }
  .lightbox-head { align-items: flex-start; flex-direction: column; padding: 11px; }
  .lightbox-head h2 { font-size: 18px; }
  .lightbox-controls { width: 100%; }
  .lightbox-controls button { min-width: 42px; min-height: 42px; }
  .lightbox-controls .lightbox-reset { flex: 1; }
  .lightbox-tip { padding: 8px 11px; }
  .lightbox-scroll { padding: 8px; }
}
@media (max-width: 560px) {
  .topbar-actions { gap: 5px; }
  .top-action { padding: 7px 8px; }
  .top-action .search-word { display: none; }
  .language-button { padding: 7px 8px; }
  .hero { padding-bottom: 32px; }
  .title-xl { font-size: 38px; }
  .lede { font-size: 15px; }
  .quick-grid, .guide-grid, .atlas-grid, .domain-grid, .metric-grid { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .section-link { display: inline-block; margin-top: 9px; }
  .docs-toolbar, .atlas-toolbar { align-items: flex-start; flex-direction: column; }
  .atlas-intro { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 35px; }
  .tutorial-step { grid-template-columns: 1fr; }
  .tutorial-count { width: 30px; height: 30px; }
  .plain-language { padding: 13px; }
  .business-adaptation { padding: 13px; }
  .footer { align-items: flex-start; flex-direction: column; }
  .footer-credits { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .screen-capture-real:not(.lightbox-capture) { animation: none; }
  .real-capture { transition: none; }
  .hotspot-card.active { animation: none; }
}
