/* The docs wear the website's design (meitiWebsite/src/styles/global.css, Header.astro, Footer.astro, Button.astro).
   Tokens are copied from there: change a value on the website, change it here too. Light only, like the website. */
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk Variable"; font-style: normal; font-display: swap; font-weight: 300 700; src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk Variable"; font-style: normal; font-display: swap; font-weight: 300 700; src: url("../fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    color-scheme: light;
    /* Website tokens (global.css) */
    --font-display: "Space Grotesk Variable", system-ui, sans-serif;
    --font-body: "Inter Variable", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
    --ink-heading: #003866;
    --ink: #0e1220;
    --ink-body: #3e4c59;
    --ink-muted: #52606d;
    --ink-faint: #7b8794;
    --nav-ink: #1e1d1c;
    --accent: #2f6bff;
    --accent-hover: #1f56e0;
    --accent-soft: rgb(47 107 255 / 0.1);
    --link: #0077cc;
    --surface: #ffffff;
    --surface-hero: #e3f2fd;
    --surface-subtle: #f6f8fb;
    --surface-navy: #003866;
    --line: rgb(14 18 32 / 0.08);
    --line-strong: rgb(14 18 32 / 0.14);
    --radius-pill: 999px;
    --radius-card: 16px;
    --radius-sm: 8px;
    --shadow-card: 0 1px 2px rgb(14 18 32 / 0.04), 0 8px 24px rgb(14 18 32 / 0.06);
    --shadow-pop: 0 12px 40px rgb(14 18 32 / 0.12);
    --page-max: 1280px;
    --gutter: 24px;
    --header-h: 70px;
    --subbar-h: 48px;
    /* Docs names, mapped onto the website tokens so every docs component follows them. */
    --brand: var(--accent);
    --brand-text: var(--link);
    --muted: var(--ink-muted);
    --paper: var(--surface);
    --wash: var(--surface-subtle);
    --tip: var(--surface-hero);
    --warn: #fff6e0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--subbar-h) + 16px); }
body {
    margin: 0; background: var(--surface); color: var(--ink-body);
    font-family: var(--font-body); font-size: 16px; line-height: 1.6; letter-spacing: -0.02em;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink-heading); text-wrap: balance; }
strong { color: var(--ink); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
code, kbd, pre { font-family: var(--font-mono); letter-spacing: 0; }
.container { width: 100%; max-width: calc(var(--page-max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 1rem; top: -5rem; background: var(--surface); padding: .75rem 1rem; border-radius: var(--radius-sm); box-shadow: var(--shadow-pop); z-index: 60; }
.skip-link:focus { top: 1rem; }

/* Buttons (Button.astro) */
.btn, .button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 12px 22px;
    border: 0; border-radius: var(--radius-pill); background: var(--accent); color: #fff;
    font: 600 15px/1.2 var(--font-body); letter-spacing: -0.01em; white-space: nowrap; text-decoration: none; cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn:hover, .button:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active, .button:active { transform: translateY(1px); }
.btn.secondary, .button.secondary { background: #fff; color: var(--ink); font-weight: 500; box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn.secondary:hover, .button.secondary:hover { box-shadow: inset 0 0 0 1px var(--ink-faint); }
.btn.lg { min-height: 48px; padding: 14px 26px; font-size: 16px; }

/* Header (Header.astro) */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
/* The frosted background sits on a pseudo-element: backdrop-filter on the header would trap the fixed mobile drawer. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(255 255 255 / .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.bar { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo img { width: 30px; height: 30px; }
.wordmark { display: block; height: 22px; color: var(--ink-heading); }
.logo.light .wordmark { color: #fff; }
.wordmark svg { display: block; height: 100%; width: auto; }
.desktop-nav { flex: 1; display: flex; justify-content: center; }
.desktop-nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border: 0; border-radius: var(--radius-pill); background: none; color: var(--nav-ink); font: 500 14px/1.2 var(--font-body); letter-spacing: -0.02em; cursor: pointer; text-decoration: none; }
.nav-link:hover { background: var(--surface-subtle); text-decoration: none; }
.nav-link.current { background: var(--accent-soft); color: var(--ink-heading); font-weight: 600; }
.has-menu { position: relative; }
.mega {
    position: absolute; top: calc(100% + 6px); left: -12px; width: 300px; padding: 10px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-pop);
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
}
.mega::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.mega.two { width: 560px; }
.has-menu:hover .mega, .has-menu:focus-within .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega.two ul { grid-template-columns: 1fr 1fr; }
.mega a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.mega a:hover { background: var(--surface-subtle); }
.item-label { display: block; color: var(--ink); font: 600 14px/1.35 var(--font-body); }
.item-hint { display: block; margin-top: 2px; color: var(--ink-faint); font-size: 12.5px; line-height: 1.4; }
.mega .all { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--accent); font: 600 13px/1.2 var(--font-body); }
.site-header .actions { display: flex; gap: 10px; margin: 0; }
.mobile-nav { display: none; margin-left: auto; }
@media (max-width: 1024px) {
    .desktop-nav, .site-header .actions { display: none; }
    .mobile-nav { display: block; }
    .mobile-nav > summary { list-style: none; cursor: pointer; padding: 8px; color: var(--ink-heading); }
    .mobile-nav > summary::-webkit-details-marker { display: none; }
    .mobile-nav .icon-close, .mobile-nav[open] .icon-open { display: none; }
    .mobile-nav[open] .icon-close { display: block; }
    html:has(.mobile-nav[open]), body:has(.mobile-nav[open]) { overflow: hidden; }
    .drawer { position: fixed; inset: var(--header-h) 0 0; overflow-y: auto; padding: 16px var(--gutter) calc(48px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
    .drawer .top, .group > summary { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); font: 600 17px/1.3 var(--font-body); cursor: pointer; }
    .group > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; }
    .group > summary::-webkit-details-marker { display: none; }
    .group > summary::after { content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s ease; }
    .group[open] > summary::after { transform: rotate(-135deg); }
    .group ul { list-style: none; margin: 0; padding: 6px 0 12px 12px; }
    .group a { display: block; padding: 9px 0; color: var(--ink-body); }
    .group .all { color: var(--accent); font-weight: 600; }
    .drawer-actions { display: grid; gap: 10px; margin-top: 24px; }
}

/* Docs sub-bar: the docs' own tabs (_DocsTabs.cshtml) under the website header, sticky with it. */
.docs-subbar { position: sticky; top: var(--header-h); z-index: 40; background: rgb(255 255 255 / .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.docs-subbar-inner { display: flex; align-items: center; gap: 16px; min-height: var(--subbar-h); }
.docs-tabs { flex: 1; min-width: 0; }
.docs-tabs ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.docs-tabs ul::-webkit-scrollbar { display: none; }
.docs-tabs li { flex: none; }
.docs-tabs a { position: relative; display: block; padding: 13px 12px; color: var(--ink-muted); font: 500 14px/1.6 var(--font-body); letter-spacing: -0.02em; white-space: nowrap; text-decoration: none; }
.docs-tabs a:hover { color: var(--ink); }
.docs-tabs a[aria-current="page"] { color: var(--ink-heading); font-weight: 600; }
.docs-tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.language { flex: none; padding: 5px 10px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); font: 600 13px/1.2 var(--font-body); }
.language:hover { text-decoration: none; box-shadow: inset 0 0 0 1px var(--ink-faint); }

/* Footer (Footer.astro) */
.site-footer { background: var(--surface-navy); color: rgb(255 255 255 / .72); padding: 72px 0 40px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 96px; padding-bottom: 48px; border-bottom: 1px solid rgb(255 255 255 / .12); }
.footer-brand { display: grid; justify-items: start; gap: 20px; }
.footer-brand p { margin: 0; line-height: 1.6; }
.footer-demo { color: rgb(255 255 255 / .85) !important; font-weight: 600; font-size: 14px; }
.footer-columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.col-title { margin: 0 0 16px; color: rgb(255 255 255 / .5); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.site-footer a:not(.btn) { color: rgb(255 255 255 / .72); font-weight: 500; font-size: 14px; }
.site-footer a:not(.btn):hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 32px; font-size: 13px; }
.footer-bottom p { margin: 0; }
@media (max-width: 900px) {
    .footer-top { grid-template-columns: 1fr; gap: 48px; }
    .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-bottom { flex-direction: column; }
}

/* Page column (as wide as the header, so every docs page lines up with it) and type */
.docs-shell { width: 100%; max-width: calc(var(--page-max) + 2 * var(--gutter)); margin: 48px auto 96px; padding-inline: var(--gutter); }
.breadcrumbs { color: var(--ink-faint); font-size: 14px; margin-bottom: 2rem; }
/* Type scale and rhythm of the website's help articles (/hilfe): pill eyebrow, 44px title, 26px sections, 16/1.6 body. */
.eyebrow { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin: 0; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--surface-hero); color: var(--link); font: 500 14px/1.5 var(--font-body); letter-spacing: -0.02em; }
h1 { font-size: 44px; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; margin: 16px 0 16px; max-width: 24ch; }
h2 { font-size: 26px; line-height: 1.3; letter-spacing: -.01em; font-weight: 600; margin: 56px 0 12px; }
h3 { font-size: 19px; line-height: 1.35; letter-spacing: -.01em; font-weight: 600; margin: 28px 0 8px; }
h4 { font-size: 16px; font-weight: 600; }
p, ul, ol { margin: 0 0 16px; }
li { margin: 6px 0; }
li::marker { color: var(--accent); }
@media (max-width: 640px) { h1 { font-size: 30px; } h2 { font-size: 23px; margin-top: 44px; } }
p { text-wrap: pretty; }
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-body); max-width: 64ch; }
.byline { color: var(--ink-faint); margin: 1.5rem 0 2.5rem; }
/* Pages flow on the white canvas like the website; cards are the website's topic cards (inset 1px line, shadow on hover). */
.article { padding: 0; }
/* The column is header-wide; text keeps a readable line length. */
.article p, .article li { max-width: 68ch; }
.guide-card { background: var(--surface); border-radius: var(--radius-card); box-shadow: inset 0 0 0 1px var(--line); }
.steps { list-style: none; counter-reset: step; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.35rem 3.25rem; min-height: 3rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -.15rem; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: var(--accent-soft); font: 700 15px/1 var(--font-display); }
.callout { margin: 24px 0; padding: 16px 20px; border-radius: 12px; background: var(--surface-hero); color: var(--ink-body); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.ac-cta { margin: 3rem 0 0; padding: 1.75rem 1.75rem; border-radius: var(--radius-card); background: var(--surface-hero); }
.ac-cta h2 { margin: 0 0 .35rem; font-size: 1.4rem; }
.ac-cta p { margin: 0; color: var(--ink-muted); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 24px; }
.guide-card { display: block; padding: 24px; color: var(--ink-body); text-decoration: none; transition: box-shadow .15s ease; }
.guide-card:hover { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-card); text-decoration: none; }
.guide-card p { margin: 0; color: var(--ink-body); font-size: 15px; }
.guide-card h3 { margin: 0 0 6px; font-size: 19px; }
.guide-card.soon { box-shadow: inset 0 0 0 1px var(--line-strong); background: var(--surface-subtle); }
.guide-card.soon:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.guide-card.soon h3 { color: var(--muted); }
.soon-badge { display: inline-block; margin-bottom: .6rem; padding: .15rem .55rem; border-radius: 999px; background: var(--tip); color: var(--brand-text); font-size: .75rem; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; }
.changelog-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 .5rem; }
.chip { padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 650; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: white; }
.changelog-entry { padding-top: 2rem; margin-top: 2rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.changelog-entry h2 { margin-top: .25rem; }
.changelog-entry h2 a { color: inherit; text-decoration: none; }
.changelog-entry h3 { margin-top: 1.5rem; }
.changelog-meta { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .92rem; margin: 0; }
.changelog-meta .soon-badge { margin: 0; }
.changelog :not(pre) > code { padding: .05rem .35rem; border-radius: 5px; background: var(--tip); font-size: .9em; }
.changelog-code { overflow-x: auto; padding: 1rem 1.2rem; border-radius: 10px; background: #0f1a23; color: #e6eef5; font-size: .88rem; line-height: 1.5; }
/* App Academy */
.academy h1 { max-width: 22ch; }
.ac-keypoints { margin: 0 0 2rem; padding: 1.1rem 1.25rem; border-radius: 14px; background: var(--wash); border: 1px solid var(--line); }
.ac-keypoints-title { margin: 0 0 .4rem; font-weight: 750; font-size: .9rem; color: var(--brand-text); letter-spacing: .02em; }
.ac-keypoints ul, .ac-list, .ac-choice-card ul { margin: 0; padding-left: 1.2rem; }
.ac-keypoints li, .ac-list li { margin: .25rem 0; }
.academy :not(pre) > code { padding: .05rem .35rem; border-radius: 5px; background: var(--tip); font-size: .9em; }
.ac-callout-important { border-left-color: #c98a0b; background: var(--warn); }
.ac-callout-legal { border-left-color: var(--muted); background: var(--wash); }
.ac-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.ac-choice-card { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.ac-choice-card h3 { margin: .6rem 0 .25rem; }
.ac-choice-card p { color: var(--muted); margin: 0 0 .6rem; }
.ac-choice-card li { margin: .2rem 0; font-size: .95rem; }
.ac-choice-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ac-choice-head .soon-badge { margin: 0; }
.ac-choice-icon, .ac-card-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--surface-hero); color: var(--link); }
.ac-card-icon { margin-bottom: 14px; }
.ac-icon { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ac-table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: 12px; }
.ac-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.ac-table th, .ac-table td { padding: .65rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.ac-table thead th { background: var(--wash); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ac-table tbody tr:last-child > * { border-bottom: 0; }
.ac-table tbody th { font-weight: 700; min-width: 8rem; }
@media (max-width: 600px) {
    .ac-table-wrap { overflow: visible; }
    .ac-table thead { display: none; }
    .ac-table tr { display: block; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
    .ac-table tbody tr:last-child { border-bottom: 0; }
    .ac-table th, .ac-table td { display: block; padding: .15rem 0; border: 0; }
    .ac-table td { display: grid; grid-template-columns: minmax(6.5rem, 38%) 1fr; gap: .75rem; }
    .ac-table td::before { content: attr(data-label); color: var(--muted); font-size: .8rem; }
}
.ac-figure { margin: 2rem 0; display: grid; gap: 1.5rem; align-items: start; }
.ac-figure figcaption, .ac-diagram figcaption { margin-top: .75rem; color: var(--muted); font-size: .88rem; text-align: center; }
.ac-sample { display: inline-block; margin-left: .35rem; padding: 0 .45rem; border-radius: 999px; border: 1px solid var(--line); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.ac-beside > :first-child { margin-top: 0; }
@media (min-width: 760px) { .ac-split { grid-template-columns: minmax(0, 1fr) 272px; gap: 2.25rem; } }
.ac-diagram { margin: 2rem 0; }
.ac-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.ac-pager-link { display: block; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 650; }
.ac-pager-link:hover { border-color: var(--brand); }
.ac-pager-link span { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; }
.ac-pager-link.next { text-align: right; }
.academy-grid .guide-card h3 { font-size: 17px; }
.academy-group-label { margin: 2rem 0 0; color: var(--muted); font-size: .82rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.academy-group-label + .guide-grid { margin-top: .75rem; }
.ac-map { display: grid; gap: .75rem; padding: 1rem; border-radius: 16px; background: var(--wash); border: 1px solid var(--line); font-size: .92rem; }
.ac-map-org, .ac-map-inbox-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem .75rem; }
.ac-map-org { padding: .7rem .9rem; border-radius: 12px; background: var(--brand); color: #fff; }
.ac-map-org .ac-map-meta { color: rgba(255, 255, 255, .85); }
.ac-map-badge { display: inline-flex; align-items: center; gap: .45rem; font-weight: 750; }
.ac-map-meta { color: var(--muted); font-size: .85rem; }
.ac-map-inbox { display: grid; gap: .75rem; padding: .9rem; border-radius: 12px; background: var(--paper); border: 2px solid var(--brand); }
.ac-map-flow { display: grid; gap: 1.6rem; }
.ac-map-col { position: relative; padding: .75rem; border-radius: 10px; background: var(--wash); border: 1px solid var(--line); }
.ac-map-col + .ac-map-col::before { content: "↓"; position: absolute; left: 50%; top: -1.45rem; transform: translateX(-50%); color: var(--brand-text); font-weight: 800; }
.ac-map-col-title { margin: 0; font-weight: 750; }
.ac-map-col-hint { margin: 0 0 .5rem; color: var(--muted); font-size: .8rem; }
.ac-map-col ul { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.ac-map-col li { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .5rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .82rem; }
.ac-map-col li .ac-icon { width: .95rem; height: .95rem; color: var(--brand-text); }
.ac-map-more { display: flex; flex-wrap: wrap; gap: .5rem; }
.ac-map-more span { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .75rem; border-radius: 10px; border: 1px dashed var(--line); background: var(--paper); color: var(--muted); font-size: .85rem; }
@media (min-width: 760px) {
    .ac-map-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
    .ac-map-col + .ac-map-col::before { content: "→"; left: -1.1rem; top: 50%; transform: translateY(-50%); }
    .ac-map-col ul { flex-direction: column; align-items: flex-start; }
}
.ac-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .75rem; margin: 1.5rem 0 2rem; }
.ac-stat { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--tip); }
.ac-stat-value { font-family: var(--font-display); color: var(--ink-heading); font-size: clamp(1.7rem, 6vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.ac-stat-label { color: var(--muted); font-size: .9rem; }
.start-steps { list-style: none; counter-reset: start; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin: 1.25rem 0 .75rem; padding: 0; }
.start-steps li { counter-increment: start; }
.start-steps .guide-card { height: 100%; }
.start-steps .guide-card h3::before { content: counter(start); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 10px; background: var(--surface-hero); color: var(--link); font: 700 18px/1 var(--font-display); }
/* Sample app views: always the app's dark PULS look, whatever the page theme. */
.phone { width: 272px; max-width: 100%; margin: 0 auto; padding: 9px; border-radius: 40px; background: #1a1f27; box-shadow: 0 24px 50px rgba(7, 9, 13, .3), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.phone-screen { display: flex; flex-direction: column; min-height: 520px; border-radius: 32px; overflow: hidden; background: #07090d; color: #fff; font-size: 12.5px; line-height: 1.35; }
.phone-status { display: flex; align-items: center; justify-content: space-between; padding: 10px 22px 2px; font-size: 11px; font-weight: 650; }
.phone-island { width: 78px; height: 22px; border-radius: 999px; background: #000; }
.phone-titlebar { display: flex; align-items: center; gap: 8px; padding: 10px 14px 8px; }
.phone-back { color: #2e9be6; font-size: 26px; line-height: 1; margin-top: -4px; }
.phone-title-text { display: flex; flex-direction: column; min-width: 0; }
.phone-title { font-size: 19px; font-weight: 750; letter-spacing: -.02em; }
.phone-subtitle { color: rgba(255, 255, 255, .6); font-size: 11px; }
.phone-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 2px 12px 14px; }
.phone-tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 8px 6px 14px; border-top: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .03); }
.phone-tabbar > span { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; color: rgba(255, 255, 255, .55); font-size: 8.5px; letter-spacing: -.01em; }
.phone-tabbar > span > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone-tabbar > span.active { color: #2e9be6; }
.phone-tabbar .ac-icon { width: 18px; height: 18px; }
.m-section { margin: 6px 4px -2px; color: rgba(255, 255, 255, .6); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.m-card { border-radius: 12px; background: rgba(255, 255, 255, .094); border: 1px solid rgba(255, 255, 255, .09); }
.m-card > .m-item + .m-item { border-top: 1px solid rgba(255, 255, 255, .07); }
.m-item { display: flex; align-items: center; gap: 9px; padding: 9px 10px; }
.m-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(46, 155, 230, .19); color: #2e9be6; flex: none; }
.m-icon .ac-icon { width: 16px; height: 16px; }
.m-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.m-title { font-weight: 600; }
.m-sub { color: rgba(255, 255, 255, .6); font-size: 11px; }
.m-trail { color: rgba(255, 255, 255, .6); font-size: 11px; white-space: nowrap; }
.m-chevron { color: rgba(255, 255, 255, .35); font-size: 18px; line-height: 1; }
.m-badge { padding: 1px 7px; border-radius: 999px; background: rgba(46, 155, 230, .19); color: #2e9be6; font-size: 9.5px; font-weight: 700; white-space: nowrap; }
.m-switch { position: relative; width: 34px; height: 20px; border-radius: 999px; background: rgba(255, 255, 255, .2); flex: none; }
.m-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.m-switch.on { background: #0077cc; }
.m-switch.on::after { left: 16px; }
.m-segment { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .094); }
.m-segment span { padding: 5px 4px; border-radius: 8px; text-align: center; color: rgba(255, 255, 255, .65); font-size: 11px; font-weight: 600; }
.m-segment span.active { background: #0077cc; color: #fff; }
.m-bubble { max-width: 82%; padding: 7px 10px; border-radius: 14px; }
.m-bubble.in { align-self: flex-start; background: rgba(255, 255, 255, .12); border-bottom-left-radius: 4px; }
.m-bubble.out { align-self: flex-end; background: #005c99; border-bottom-right-radius: 4px; }
.m-meta { display: block; margin-top: 2px; color: rgba(255, 255, 255, .6); font-size: 9.5px; }
.m-note { display: flex; align-items: center; justify-content: center; gap: 5px; align-self: center; max-width: 92%; padding: 4px 10px; border-radius: 999px; background: rgba(255, 194, 77, .14); color: #ffc24d; font-size: 10.5px; text-align: center; }
.m-note .ac-icon { width: 13px; height: 13px; }
.m-button { padding: 9px; border-radius: 12px; background: #0077cc; text-align: center; font-weight: 700; }
.m-button.secondary { background: transparent; border: 1px solid rgba(255, 255, 255, .25); }
.m-hero { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 12px; border-radius: 14px; background: rgba(46, 155, 230, .12); border: 1px solid rgba(46, 155, 230, .3); text-align: center; }
.m-hero-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px; border-radius: 50%; background: #0077cc; }
.m-hero-title { font-size: 15px; font-weight: 750; }
code { overflow-wrap: anywhere; }
@media (max-width: 540px) { .docs-shell { margin-top: 1.5rem; } .article { border-radius: 14px; } :root { --gutter: 16px; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
