:root {
  color-scheme: light;
  --ink: var(--aa-black);
  --muted: #65717b;
  --line: var(--aa-line);
  --canvas: #f5f7f8;
  --surface: var(--aa-white);
  --sidebar: #fbfcfc;
  --shadow: 0 1px 3px rgb(20 34 44 / 7%), 0 8px 24px rgb(20 34 44 / 4%);
  font-family: var(--font-body);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
button, input { font: inherit; }
a { color: var(--aa-teal); text-decoration: none; }
a:hover { color: #0b687f; text-decoration: underline; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid rgb(23 144 174 / 36%);
  outline-offset: 2px;
}
.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; }

.shell { min-height: 100vh; }
.topbar {
  position: sticky; z-index: 30; top: 0; height: 64px; display: flex; align-items: center;
  gap: 20px; padding: 0 26px; background: #fff; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 13px; min-width: 218px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 73px; height: auto; display: block; }
.brand-divider { height: 27px; width: 1px; background: #d8dee2; }
.brand-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -.35px; }
.topbar-spacer { flex: 1; }
.search-wrap { position: relative; width: min(420px, 38vw); }
.search-wrap input {
  width: 100%; height: 38px; padding: 0 58px 0 37px; color: var(--ink);
  background: #f5f7f8; border: 1px solid #e6eaed; border-radius: 7px;
}
.search-wrap input::placeholder { color: #87919a; }
.search-icon { position: absolute; top: 3px; left: 11px; font-size: 25px; color: #65717b; transform: rotate(-20deg); }
.search-wrap kbd {
  position: absolute; top: 10px; right: 10px; padding: 2px 5px; border: 1px solid #dce1e4;
  border-radius: 4px; color: #77828b; background: white; font-size: 10px;
}
.topbar-tag { color: #66727b; font-size: 10px; font-weight: 750; letter-spacing: 1.1px; white-space: nowrap; }
.mobile-menu { display: none; border: 0; background: transparent; color: var(--ink); font-size: 21px; cursor: pointer; }
.layout { display: flex; min-height: calc(100vh - 64px); }
.sidebar {
  position: sticky; top: 64px; align-self: flex-start; width: 264px; height: calc(100vh - 64px);
  display: flex; flex-direction: column; flex: 0 0 264px; padding: 22px 13px 14px;
  background: var(--sidebar); border-right: 1px solid var(--line); overflow: auto;
}
.sidebar-label { padding: 0 12px 12px; color: #87919a; font-size: 10px; font-weight: 760; letter-spacing: 1.15px; }
.nav-group { margin: 0 0 19px; }
.nav-group-title { padding: 8px 12px 6px; color: #8a949c; font-size: 10px; font-weight: 720; letter-spacing: .8px; text-transform: uppercase; }
.nav-group-head { display: flex; align-items: center; justify-content: space-between; padding-right: 8px; }
.nav-group-head .nav-group-title { padding-right: 0; }
.nav-add-app { width: 24px; height: 24px; display: grid; place-items: center; color: #4f5c64; background: #fff; border: 1px solid #dfe5e8; border-radius: 6px; font-size: 17px; line-height: 1; cursor: pointer; }
.nav-add-app:hover { color: #141f25; border-color: var(--aa-yellow); background: #fff8e5; }
.nav-item {
  width: 100%; min-height: 35px; display: flex; align-items: center; gap: 10px; padding: 7px 11px;
  color: #45525c; border: 0; border-radius: 6px; background: transparent; text-align: left;
  font-size: 13px; cursor: pointer; transition: background .14s, color .14s;
}
.nav-item:hover { color: var(--ink); background: #eef2f4; }
.nav-item.active { color: #0c6075; background: #e7f4f7; font-weight: 650; }
.nav-icon { width: 17px; flex: 0 0 17px; text-align: center; color: #77838b; font-size: 15px; }
.nav-item.active .nav-icon { color: var(--aa-teal); }
.app-nav-group { margin: 2px 0; }
.app-nav-group summary {
  min-height: 36px; display: flex; align-items: center; gap: 8px; padding: 6px 10px;
  color: #44515b; border-radius: 6px; list-style: none; cursor: pointer; font-size: 12px; font-weight: 640;
}
.app-nav-group summary::-webkit-details-marker { display: none; }
.app-nav-group summary::after { content: "›"; margin-left: auto; color: #87929a; font-size: 17px; transition: transform .15s; }
.app-nav-group[open] summary::after { transform: rotate(90deg); }
.app-nav-group summary:hover { color: var(--ink); background: #eef2f4; }
.app-nav-mark { width: 17px; height: 17px; display: grid; place-items: center; color: var(--aa-teal); background: #e7f4f7; border-radius: 5px; font-size: 10px; }
.app-nav-mark--archive { color: #737b81; background: #eef0f2; }
.app-nav-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-nav-count { color: #8a949b; font-size: 10px; font-weight: 550; }
.nav-sub { padding: 1px 0 5px 14px; }
.nav-sub .nav-item { min-height: 31px; padding: 5px 7px; font-size: 11.5px; }
.nav-sub .nav-item.active { background: #e9f5f7; }
.sidebar-footer { margin-top: auto; padding: 15px 11px 5px; display: flex; align-items: center; gap: 8px; color: #859099; font-size: 11px; border-top: 1px solid var(--line); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #2e9b68; }

.main { min-width: 0; flex: 1; padding: 30px clamp(20px, 4vw, 58px) 26px; }
.content-wrap { width: min(1100px, 100%); margin: 0 auto; }
.breadcrumbs { margin: 0 0 18px; display: flex; gap: 8px; align-items: center; color: #83909a; font-size: 11px; }
.breadcrumbs a { color: #71808a; }
.breadcrumbs .crumb-sep { color: #b1bbc1; }
.page-footer { margin-top: 48px; padding: 18px 0; display: flex; justify-content: space-between; color: #89949b; font-size: 11px; border-top: 1px solid var(--line); }

.hero {
  position: relative; overflow: hidden; padding: 36px 40px 32px; color: #fff; border-radius: 12px;
  background: linear-gradient(118deg, #111820 0%, #1c3039 63%, #154354 100%);
  box-shadow: var(--shadow);
}
.hero::after { content: ""; position: absolute; width: 330px; height: 330px; border: 1px solid rgb(255 255 255 / 9%); border-radius: 50%; top: -220px; right: 8%; box-shadow: 0 0 0 40px rgb(255 255 255 / 3%), 0 0 0 80px rgb(255 255 255 / 2%); }
.eyebrow { margin: 0 0 10px; color: var(--aa-yellow); font-size: 10px; font-weight: 760; letter-spacing: 1.25px; text-transform: uppercase; }
.eyebrow-dot { width: 6px; height: 6px; display: inline-block; margin: 0 6px 1px 0; border-radius: 50%; background: var(--aa-yellow); box-shadow: 0 0 0 4px rgb(255 194 14 / 14%); }
.hero h1 { margin: 0; max-width: 680px; font-family: var(--font-display); font-size: clamp(28px, 4vw, 41px); font-weight: 700; letter-spacing: -1.3px; line-height: 1.12; }
.hero p { max-width: 660px; margin: 14px 0 0; color: #ced8dd; font-size: 14px; line-height: 1.65; }
.hero-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; border: 1px solid transparent; border-radius: 6px; font-size: 12px; font-weight: 680; cursor: pointer; }
.button-primary { color: #161616; background: var(--aa-yellow); }
.button-primary:hover { color: #111; background: #ffd24a; text-decoration: none; }
.button-secondary { color: #35424a; background: #eff3f4; border-color: #dfe6e8; }
.button-secondary:hover { color: #125f72; background: #e4f0f3; text-decoration: none; }
.button-light { color: white; border-color: rgb(255 255 255 / 30%); background: rgb(255 255 255 / 7%); }
.button-light:hover { color: white; background: rgb(255 255 255 / 14%); text-decoration: none; }

.stats-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(190px, 1.2fr);
  gap: 10px; margin: 14px 0 2px; padding: 11px; background: #fff;
  border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow);
}
.stat-card { min-height: 52px; display: flex; align-items: center; gap: 11px; padding: 3px 10px; border-right: 1px solid #edf0f1; }
.stat-card:nth-child(3) { border-right: 0; }
.stat-card strong { display: block; color: #19252c; font-size: 19px; line-height: 1.1; }
.stat-card span:not(.stat-icon) { display: block; margin-top: 3px; color: #78848c; font-size: 10px; }
.stat-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; font-size: 13px; }
.stat-icon--active { color: #278656; background: #eaf6ef; font-size: 10px; }
.stat-icon--docs { color: #9a7011; background: #fff5d6; }
.stat-icon--source { color: #177c96; background: #e8f5f8; }
.stat-note { align-self: center; padding: 0 9px; color: #7d7770; font-size: 10.5px; line-height: 1.5; }
.section-head { margin: 31px 0 13px; display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.section-head h2 { margin: 0; font-size: 17px; letter-spacing: -.25px; }
.section-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.section-link { color: #137b96; font-size: 11px; font-weight: 650; white-space: nowrap; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.app-card {
  min-height: 300px; display: flex; flex-direction: column; padding: 0 18px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow);
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.app-card:hover { transform: translateY(-2px); border-color: #c7dfe5; box-shadow: 0 5px 18px rgb(20 34 44 / 9%); }
.app-card-preview { position: relative; display: block; aspect-ratio: 16 / 9; margin: 0 -18px 13px; overflow: hidden; background: #e8edef; border-bottom: 1px solid #edf0f1; }
.app-card-preview img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.app-card:hover .app-card-preview img { transform: scale(1.025); }
.app-card-preview .preview-fade { position: absolute; inset: auto 0 0; height: 36px; background: linear-gradient(transparent, rgb(15 25 32 / 13%)); pointer-events: none; }
.app-card-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.app-mark { width: 35px; height: 35px; display: grid; place-items: center; color: #107791; background: #e9f5f7; border-radius: 9px; font-size: 18px; font-weight: 700; }
.app-mark--archive { color: #737b81; background: #f0f2f3; }
.app-card h3 { margin: 0; font-family: var(--font-display); font-size: 16px; letter-spacing: -.15px; }
.app-card p { min-height: 38px; margin: 7px 0 15px; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.app-card-actions { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 11px; border-top: 1px solid #edf0f1; }
.app-card-primary { color: #137b96; font-size: 11px; font-weight: 680; }
.app-card-secondary { margin-left: auto; padding: 5px 9px; color: #46545d; background: #f1f4f5; border-radius: 5px; font-size: 10px; font-weight: 650; }
.app-card-secondary:hover { color: #0b687f; background: #e5f2f5; text-decoration: none; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; color: #26794e; background: #eaf6ef; border-radius: 999px; font-size: 9px; font-weight: 730; text-transform: uppercase; letter-spacing: .35px; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-archive { color: #6e7479; background: #eef0f2; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.feature-card { display: flex; gap: 14px; padding: 18px 19px; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.feature-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; color: #936c13; background: #fff5d8; border-radius: 8px; font-size: 17px; }
.feature-icon--teal { color: #147b95; background: #e9f5f7; }
.feature-icon--brand { color: #111; background: var(--aa-yellow); font-family: var(--font-display); font-size: 12px; font-weight: 800; }
.feature-card h3 { margin: 0 0 7px; font-size: 13px; }
.feature-card p { margin: 0 0 11px; color: var(--muted); font-size: 11.5px; line-height: 1.65; }
.text-link { color: #137b96; font-size: 11px; font-weight: 680; }

.doc-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.doc-kicker { margin: 0 0 6px; color: var(--aa-teal); font-size: 10px; font-weight: 760; letter-spacing: .9px; text-transform: uppercase; }
.doc-title { margin: 0; font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -.85px; line-height: 1.2; }
.doc-description { margin: 9px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.doc-actions { flex: 0 0 auto; }
.doc-action-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.doc-downloads { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.draft-badge { display: inline-flex; align-items: center; gap: 6px; color: #89630d; font-size: 10px; font-weight: 650; }
.draft-badge span { width: 6px; height: 6px; border-radius: 50%; background: #e3ac20; }
.doc-body { padding: clamp(20px, 3vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow); }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 176px; gap: 30px; align-items: start; }
.markdown-body { min-width: 0; color: #26333c; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.page-toc { position: sticky; top: 91px; max-height: calc(100vh - 116px); overflow: auto; padding-left: 13px; border-left: 1px solid #e7ebed; }
.page-toc-title { margin: 2px 0 9px; color: #8b969d; font-size: 9px; font-weight: 760; letter-spacing: .9px; }
.page-toc nav { display: flex; flex-direction: column; gap: 3px; }
.page-toc a { padding: 5px 7px; color: #68757d; border-radius: 4px; font-size: 10px; line-height: 1.4; }
.page-toc a:hover { color: #0b687f; background: #f0f7f8; text-decoration: none; }
.page-toc a.active { color: #0d6f87; background: #e9f5f7; font-weight: 650; }
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 { color: #15212a; line-height: 1.3; letter-spacing: -.25px; }
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 { font-family: var(--font-display); }
.markdown-body h1 { margin: 0 0 14px; font-size: 26px; }
.markdown-body h2 { margin: 30px 0 10px; padding-bottom: 7px; border-bottom: 1px solid #e8ecee; font-size: 20px; }
.markdown-body h3 { margin: 24px 0 8px; font-size: 16px; }
.markdown-body h4 { margin: 20px 0 7px; font-size: 14px; }
.markdown-body p { margin: 10px 0 13px; }
.markdown-body ul, .markdown-body ol { margin: 8px 0 16px; padding-left: 24px; }
.markdown-body li { padding-left: 3px; }
.markdown-body blockquote { margin: 14px 0; padding: 9px 14px; color: #4c5a62; border-left: 3px solid var(--aa-yellow); background: #fff9e7; }
.markdown-body code { padding: 2px 5px; color: #8c3b00; background: #f6f1ed; border-radius: 3px; font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; }
.markdown-body pre { padding: 14px 16px; overflow: auto; background: #17222a; color: #e9f0f3; border-radius: 6px; line-height: 1.55; }
.markdown-body pre code { padding: 0; color: inherit; background: transparent; }
.table-scroll { margin: 14px 0 21px; overflow-x: auto; border: 1px solid #dfe5e8; border-radius: 6px; }
.markdown-body table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 11.5px; line-height: 1.5; }
.markdown-body thead { background: #fff4cc; }
.markdown-body th { color: #202a30; font-weight: 730; text-align: left; }
.markdown-body th, .markdown-body td { padding: 9px 11px; vertical-align: top; border-bottom: 1px solid #e6eaec; }
.markdown-body tr:last-child td { border-bottom: 0; }
.markdown-body tbody tr:nth-child(even) { background: #fafbfb; }
.markdown-body hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.markdown-body .mermaid { display: flex; justify-content: center; margin: 18px 0; padding: 18px; overflow: auto; background: #fbfcfc; border: 1px solid #e6eaec; border-radius: 6px; }
.markdown-body .mermaid svg { max-width: 100%; height: auto; }
.markdown-body img { display: block; max-width: 100%; height: auto; border-radius: 6px; }
.local-link-note { display: inline-flex; margin-left: 5px; color: #818c93; font-size: 10px; }

.search-results {
  position: absolute; z-index: 40; top: calc(100% + 7px); left: 0; right: 0; padding: 7px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px rgb(15 30 40 / 16%);
}
.search-result { width: 100%; display: block; padding: 9px 10px; color: #27343d; border: 0; border-radius: 5px; background: transparent; text-align: left; cursor: pointer; }
.search-result:hover { background: #f1f6f7; }
.search-result strong { display: block; font-size: 12px; }
.search-result span { display: block; margin-top: 3px; color: #7b878e; font-size: 10px; }
.search-empty { padding: 12px; color: #78848b; font-size: 12px; }
.loading { min-height: 180px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 13px; }
.spinner { width: 17px; height: 17px; border: 2px solid #dce5e8; border-top-color: var(--aa-teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-card { padding: 22px; background: #fff; border: 1px solid #f0c9c9; border-radius: 8px; }
.error-card h2 { margin-top: 0; color: #9b2e2e; font-size: 17px; }
.toast { position: fixed; right: 22px; bottom: 20px; z-index: 70; padding: 10px 14px; color: white; background: #1b2931; border-radius: 6px; box-shadow: var(--shadow); font-size: 12px; opacity: 0; transform: translateY(8px); transition: .18s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateY(0); }
.sidebar-backdrop { display: none; }

.app-modal {
  width: min(680px, calc(100vw - 28px)); max-width: none; max-height: min(90vh, 900px);
  padding: 0; overflow: auto; color: var(--ink); background: transparent; border: 0;
}
.app-modal::backdrop { background: rgb(9 18 23 / 58%); backdrop-filter: blur(3px); }
.app-modal-card { padding: 24px; background: #fff; border: 1px solid #dce3e6; border-radius: 12px; box-shadow: 0 22px 70px rgb(0 0 0 / 25%); }
.app-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.app-modal-head .eyebrow { margin-bottom: 5px; color: #9a700e; }
.app-modal-head h2 { margin: 0; font-family: var(--font-display); font-size: 25px; letter-spacing: -.4px; }
.app-modal-close { width: 34px; height: 34px; flex: 0 0 34px; color: #4b585f; background: #f2f5f6; border: 1px solid #e1e7e9; border-radius: 7px; font-size: 22px; line-height: 1; cursor: pointer; }
.app-modal-intro { margin: 0 0 19px; color: #68757d; font-size: 12px; line-height: 1.6; }
.app-modal-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; }
.app-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; color: #28353c; font-size: 11px; font-weight: 680; }
.app-field small { color: #7f8a91; font-size: 10px; font-weight: 450; }
.app-field input { width: 100%; min-height: 40px; padding: 9px 11px; color: #202c33; background: #fbfcfc; border: 1px solid #dce4e7; border-radius: 6px; font-size: 12px; font-weight: 450; }
.app-field input[type=file] { padding: 7px; background: #fff; }
.app-file-field { padding: 13px; background: #f8fafb; border: 1px dashed #cbd5d9; border-radius: 7px; }
.app-file-field input { background: #fff; }
.zip-selection { color: #68757d !important; }
.app-key-panel { margin: 2px 0 14px; padding: 13px 13px 2px; background: #f7f9fa; border: 1px solid #e5eaec; border-radius: 7px; }
.groq-config-state { display: block; margin: -2px 0 10px; color: #6b7880; font-size: 10px; line-height: 1.5; }
.app-consent { display: flex; align-items: flex-start; gap: 9px; margin: 13px 0; color: #47545c; font-size: 11px; line-height: 1.55; cursor: pointer; }
.app-consent input { margin-top: 2px; accent-color: var(--aa-teal); flex: 0 0 auto; }
.app-safety-note { margin: 12px 0 16px; padding: 11px 12px; color: #655018; background: #fff8e4; border: 1px solid #f0dfae; border-radius: 6px; font-size: 10.5px; line-height: 1.55; }
.app-modal-error { margin: 12px 0; padding: 10px 12px; color: #922b2b; background: #fff0f0; border: 1px solid #f0c9c9; border-radius: 6px; font-size: 11px; line-height: 1.45; }
.app-modal-actions { display: flex; justify-content: flex-end; gap: 9px; }
.app-modal-actions .button:disabled { opacity: .62; cursor: wait; }
.spinner--small { width: 13px; height: 13px; border-color: rgb(20 30 36 / 22%); border-top-color: #111; }

@media (max-width: 1080px) {
  .topbar-tag { display: none; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-note { grid-column: 1 / -1; padding: 6px 10px 0; border-top: 1px solid #edf0f1; }
  .doc-layout { grid-template-columns: minmax(0, 1fr) 150px; gap: 20px; }
}
@media (max-width: 720px) {
  .topbar { height: 58px; gap: 11px; padding: 0 13px; }
  .mobile-menu { display: block; }
  .brand { min-width: 0; gap: 8px; }
  .brand img { width: 58px; }
  .brand-divider { height: 23px; }
  .brand-title { font-size: 16px; }
  .topbar-spacer { display: none; }
  .search-wrap { width: auto; flex: 1; margin-left: auto; }
  .search-wrap input { height: 35px; padding-left: 32px; font-size: 12px; }
  .search-wrap kbd { display: none; }
  .layout { min-height: calc(100vh - 58px); }
  .sidebar { position: fixed; z-index: 45; top: 58px; bottom: 0; left: 0; height: auto; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 10px 0 30px rgb(15 30 40 / 8%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.show { display: block; position: fixed; inset: 58px 0 0 264px; z-index: 40; background: rgb(11 20 26 / 26%); }
  .main { padding: 20px 14px; }
  .hero { padding: 27px 23px; }
  .stats-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 8px; }
  .stat-card { gap: 7px; padding: 3px 5px; }
  .stat-icon { width: 26px; height: 26px; flex: 0 0 26px; font-size: 11px; }
  .stat-card strong { font-size: 16px; }
  .stat-card span:not(.stat-icon) { font-size: 9px; line-height: 1.25; }
  .stat-note { font-size: 9.5px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .app-grid, .feature-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 260px; }
  .doc-title-row { display: flex; flex-direction: column; gap: 0; }
  .doc-actions { margin: 0 0 15px; }
  .doc-action-stack { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .doc-downloads { justify-content: flex-start; }
  .doc-layout { display: block; }
  .page-toc { position: static; max-height: none; margin: 0 0 18px; padding: 11px 12px; border: 1px solid #e6eaec; border-left: 3px solid var(--aa-yellow); border-radius: 5px; background: #fbfcfc; }
  .page-toc nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-toc a { font-size: 10px; }
  .doc-body { padding: 18px 14px; }
  .page-footer { gap: 10px; flex-direction: column; }
}

@media (max-width: 390px) {
  .brand img { width: 48px; }
  .brand-divider { display: none; }
  .brand-title { font-size: 14px; }
  .search-wrap input { width: 38px; padding: 0; text-indent: -999px; border-color: transparent; background: transparent; }
  .search-wrap input:focus { position: absolute; z-index: 2; right: 0; width: min(220px, 64vw); padding: 0 10px 0 31px; text-indent: 0; background: #fff; border-color: #dce4e7; }
  .search-icon { pointer-events: none; }
  .stats-strip { grid-template-columns: 1fr; }
  .stat-card { border-right: 0; }
  .stat-note { grid-column: auto; }
  .page-toc nav { grid-template-columns: 1fr; }
  .app-modal-grid { grid-template-columns: 1fr; gap: 0; }
  .app-modal-card { padding: 19px 16px; }
  .app-modal-actions { justify-content: stretch; }
  .app-modal-actions .button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
