/* ==========================================================================
   site.css — halaman kartu di tengah (hasil login, pilih/buat perusahaan, undangan, privasi), dokumentasi publik /docs,
   dan halaman error. Token & gaya Onix.
   ========================================================================== */

.container { width: min(1180px, 100% - 40px); margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand .brand-app-icon { border-radius: var(--r); box-shadow: var(--sh-1); }
.brand-word { font-size: 15px; font-weight: 600; letter-spacing: -.35px; white-space: nowrap; }

/* --- Masuk / onboarding / undangan -------------------------------------------------- */

/* Latar bersih: putih di atas menuju warna halaman (tanpa pola kisi). */
.auth-body, .error-body { background: linear-gradient(180deg, #FFFFFF 0%, var(--page) 420px) var(--page); }
.auth-page { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(1120px, 100% - 40px); margin: 0 auto; padding: 22px 0; }
.auth-top-actions { display: flex; align-items: center; gap: 14px; }
.auth-back { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-md); color: var(--ink-2); }
.auth-back .icon { width: 13px; height: 13px; }
.auth-main { display: grid; place-items: center; align-content: center; gap: 14px; padding: 24px 16px 64px; }
.auth-main > * { animation: rise-in var(--dur-slow) var(--ease-out) both; }
.auth-card {
    position: relative; display: grid; gap: 16px; width: min(420px, 100%); padding: 30px 28px;
    border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--sh-2);
}
.auth-card.is-wide { width: min(520px, 100%); }
.auth-card h1 { font-size: 21px; font-weight: 600; letter-spacing: -.6px; }
.auth-card .lede { font-size: var(--fs-base); color: var(--ink-2); line-height: 1.55; }
.auth-head { display: grid; gap: 6px; }
.auth-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: var(--r-lg); background: var(--nav-active-bg, #E7EDF1); color: var(--primary); box-shadow: inset 0 0 0 1px rgba(35, 61, 77, .12); }
.auth-mark .icon { width: 18px; height: 18px; }
.auth-points { display: grid; gap: 6px; margin: -2px 0 0; padding: 0; list-style: none; font-size: var(--fs-md); color: var(--ink-2); }
.auth-points li { display: flex; gap: 7px; align-items: flex-start; }
.auth-points .icon { width: 13px; height: 13px; margin-top: 3px; color: #6E9A4A; }
.auth-foot { font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.6; }
.auth-foot a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-strong); }
.auth-legal { display: flex; gap: 16px; font-size: var(--fs-sm); }
.auth-legal a { color: var(--ink-3); }
.invite-list { display: grid; gap: 8px; }
.invite-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); }
.invite-item .ws-initials-lg { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: var(--r); background: var(--grad-primary); color: #FFFFFF; font-size: 11px; font-weight: 600; box-shadow: var(--sh-primary); }
.invite-text { display: grid; flex: 1; min-width: 0; gap: 1px; line-height: 1.35; }
.invite-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.invite-text span { font-size: var(--fs-sm); color: var(--ink-3); }
.invite-item form { margin: 0; }
.auth-account { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: var(--fs-sm); color: var(--ink-3); }
.auth-account strong { font-weight: 500; color: var(--ink-2); overflow-wrap: anywhere; }
.auth-account form { margin: 0; }
/* Kartu "Coba perusahaan demo" di /perusahaan (pengguna yang sudah masuk, 14 Nov 2026). */
.auth-demo { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin: 4px 0 14px; padding: 12px 14px; border: 1px dashed var(--line);
    border-radius: 12px; background: var(--surface-sub); }
.auth-demo-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--st-cool-bg); color: var(--st-cool); }
.auth-demo-icon .icon { width: 17px; height: 17px; }
.auth-demo p { margin: 2px 0 0; }
@media (max-width: 480px) { .auth-demo { grid-template-columns: auto 1fr; } .auth-demo .btn { grid-column: 1 / -1; justify-content: center; } }


/* --- Dokumen (dokumentasi & legal) ------------------------------------------------------ */

/* Tiga kolom di layar lebar: menu berkelompok · isi · daftar isi (site.js). Fase 5i. */
.doc-layout { display: grid; grid-template-columns: 228px minmax(0, 1fr) 208px; gap: 44px; width: min(1240px, 100% - 40px); margin: 36px auto 0; }
.doc-layout > * { min-width: 0; }
/* Halaman tanpa daftar isi (beranda dokumentasi, halaman pendek): isi memakai lebar kolom kanan juga. */
.doc-layout:has(> .doc-toc[hidden]) { grid-template-columns: 228px minmax(0, 1fr); }
.doc-nav, .doc-nav-mobile-panel { display: grid; gap: 1px; }
.doc-nav { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; padding: 4px 4px 12px 0; scrollbar-width: thin; }
.doc-nav-group { margin: 14px 10px 4px; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.doc-nav a, .doc-nav-mobile-panel a { position: relative; padding: 5px 10px; border-radius: var(--r); color: var(--ink-2); font-size: var(--fs-md); text-decoration: none; transition: background-color var(--dur-fast), color var(--dur-fast); }
.doc-nav a:hover, .doc-nav-mobile-panel a:hover { background: var(--surface-alt); color: var(--ink); }
/* Halaman aktif: sama dengan menu aktif aplikasi. */
.doc-nav a[aria-current="page"], .doc-nav-mobile-panel a[aria-current="page"] { background: var(--nav-active-bg, var(--surface)); color: var(--primary); font-weight: 600; }
.doc-nav a[aria-current="page"]::before, .doc-nav-mobile-panel a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 0 2px 2px 0; background: var(--orange); }
.doc-nav-mobile { display: none; }
.doc-main { animation: rise-in var(--dur-slow) var(--ease-out) both; }
.doc-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; font-size: var(--fs-md); color: var(--ink-3); }
.doc-crumb a { color: var(--ink-2); text-decoration: none; }
.doc-crumb a:hover { color: var(--ink); text-decoration: underline; }
.doc-crumb .icon { width: 13px; height: 13px; color: var(--ink-4); }
.doc-toc { position: sticky; top: 84px; align-self: start; display: grid; gap: 6px; max-height: calc(100vh - 100px); overflow-y: auto; padding-left: 14px; border-left: 1px solid var(--line); }
.doc-toc-title { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.doc-toc nav { display: grid; gap: 2px; }
.doc-toc a { padding: 3px 0; color: var(--ink-3); font-size: 13px; line-height: 1.4; text-decoration: none; transition: color var(--dur-fast); }
.doc-toc a:hover { color: var(--ink); }
.doc-toc a.is-current { color: var(--primary); font-weight: 600; }
.doc-shot { margin: 4px 0 28px !important; }
.doc-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--sh-3); }
.doc-shot figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.doc-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 74ch; margin-top: 40px; }
.doc-pager a { display: grid; gap: 3px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); color: var(--ink); text-decoration: none; transition: box-shadow var(--dur-fast); }
.doc-pager a:hover { box-shadow: var(--sh-2), 0 0 0 1px var(--line-strong); text-decoration: none; }
.doc-pager span { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-3); }
.doc-pager .icon { width: 14px; height: 14px; }
.doc-pager b { font-size: 15px; font-weight: 600; }
.doc-pager-next { grid-column: 2; justify-items: end; text-align: right; }
.doc-help { display: flex; gap: 14px; max-width: 74ch; margin-top: 16px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); }
.doc-help b { display: block; margin-bottom: 2px; font-size: 15px; }
.doc-help p { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.doc-help a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-strong); }
.doc-help-mail { font-weight: 600; color: var(--ink); user-select: all; }

.prose { max-width: 74ch; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.prose h1 { font-size: 30px; font-weight: 700; letter-spacing: -1px; color: var(--ink); margin-bottom: 8px; }
.prose h2 { font-size: 20px; letter-spacing: -.4px; color: var(--ink); margin: 40px 0 10px; padding-top: 4px; scroll-margin-top: 84px; }
.prose h3 { font-size: 16px; color: var(--ink); margin: 24px 0 8px; scroll-margin-top: 84px; }
.prose p, .prose ul, .prose ol, .prose table, .prose pre, .prose figure, .prose dl { margin-bottom: 14px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose ol { list-style: decimal; padding-left: 22px; }
.prose li + li { margin-top: 4px; }
.prose li::marker { color: var(--ink-3); }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); transition: text-decoration-color var(--dur-fast); }
.prose a:hover { text-decoration-color: var(--orange); }
.prose .doc-meta { margin-bottom: 26px; font-size: var(--fs-base); color: var(--ink-3); }
.prose table { width: 100%; font-size: var(--fs-md); border-collapse: separate; border-spacing: 0; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-2); overflow: hidden; }
.prose th, .prose td { padding: 9px 12px; border-top: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.prose thead th { border-top: 0; background: var(--surface-sub); font-size: var(--fs-sm); font-weight: 500; color: var(--ink-3); }
.prose table:not(:has(thead)) tbody tr:first-child td, .prose table:not(:has(thead)) tbody tr:first-child th { border-top: 0; }
.prose code { padding: 1px 5px; border-radius: var(--r-sm); background: var(--surface-alt); box-shadow: inset 0 0 0 1px var(--line-soft); font-size: .86em; color: var(--ink); }
.prose pre { padding: 14px 16px; border-radius: var(--r-lg); background: #15232C; color: #E6ECEF; overflow-x: auto; font-size: 12.5px; line-height: 1.6; box-shadow: var(--sh-2); }
.prose pre code { padding: 0; background: none; box-shadow: none; color: inherit; font-size: inherit; }
.prose .callout { position: relative; padding: 11px 14px 11px 17px; border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); overflow: hidden; }
.prose .callout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--orange); }
.prose td code, .prose th code { overflow-wrap: anywhere; }
.prose kbd { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--sh-1); font-size: .8em; line-height: 1.6; text-align: center; color: var(--ink-2); }
.prose .method { display: inline-block; min-width: 54px; padding: 0 6px; border-radius: var(--r-sm); font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-align: center; color: #FFFFFF; background: var(--teal); }
.prose .method.post { background: var(--orange); color: #2A1406; }
.prose .method.patch { background: #B58A10; }
.prose .method.delete { background: var(--red); }

.doc-home { display: grid; gap: 30px; }
.doc-hero { display: grid; gap: 8px; }
.doc-hero h1 { font-size: 32px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.doc-hero .doc-meta { max-width: 64ch; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.doc-search { position: relative; display: block; max-width: 560px; margin-top: 8px; }
.doc-search .icon { position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.doc-search .input { height: 44px; padding-left: 40px; font-size: 15px; border-radius: var(--r-lg); }
.doc-home h2 { margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.doc-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.doc-steps a { display: grid; gap: 4px; height: 100%; padding: 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); color: var(--ink); text-decoration: none; transition: box-shadow var(--dur-fast); }
.doc-steps a:hover, .doc-card:hover { box-shadow: var(--sh-2), 0 0 0 1px var(--line-strong); text-decoration: none; }
.doc-steps .step-no { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-bottom: 4px; border-radius: var(--r); background: var(--nav-active-bg, #E7EDF1); color: var(--primary); font-size: 12.5px; font-weight: 700; }
.doc-steps h3 { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.doc-steps p { font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
.doc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.doc-card { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); color: var(--ink); text-decoration: none; transition: box-shadow var(--dur-fast); }
.doc-card-text { display: grid; gap: 3px; min-width: 0; }
.doc-card-text h3 { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.doc-card-text p { font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
.doc-empty { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); color: var(--ink-2); }
.doc-empty .icon { width: 16px; height: 16px; color: var(--ink-3); }
.doc-home .doc-help { max-width: none; margin-top: 0; }
[data-doc-card][hidden], [data-doc-section][hidden] { display: none !important; }

/* Diagram alur di dokumentasi */
.prose ol.flow { list-style: none; padding: 0; counter-reset: flow; display: grid; gap: 0; }
.prose ol.flow li { position: relative; display: grid; gap: 2px; margin: 0; padding: 12px 14px 12px 50px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); counter-increment: flow; }
.prose ol.flow li + li { margin-top: 18px; }
.prose ol.flow li + li::before { content: ""; position: absolute; left: 26px; top: -19px; width: 1px; height: 18px; background: var(--line-strong); }
.prose ol.flow li::after { content: counter(flow); position: absolute; left: 14px; top: 13px; width: 24px; height: 24px; border-radius: var(--r); background: var(--nav-active-bg, #E7EDF1); color: var(--primary); font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.prose ol.flow li span { color: var(--ink-3); font-size: var(--fs-md); }


/* --- Error ------------------------------------------------------------------------------ */

.error-body { min-height: 100vh; display: grid; place-items: center; }
.error-page { display: grid; justify-items: center; gap: 10px; width: min(520px, 100% - 40px); padding: 36px 28px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--sh-2); text-align: center; animation: pop-in var(--dur-slow) var(--ease-out); }
.error-code { font-family: var(--font-num); font-size: var(--fs-sm); font-weight: 600; letter-spacing: .04em; color: var(--st-accent); }
.error-brand svg { border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.error-page h1 { font-size: 22px; font-weight: 600; letter-spacing: -.6px; }
.error-text { max-width: 44ch; font-size: var(--fs-base); color: var(--ink-2); }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }


/* --- Tambahan Haris: kartu lebar, wizard perusahaan, akun di atas ------------------------- */

.auth-card.is-xwide { width: min(760px, 100%); }
.auth-mark.is-danger { background: var(--st-hot-bg); color: var(--st-hot); box-shadow: inset 0 0 0 1px var(--st-hot-ln); }
.auth-who { max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); color: var(--ink-3); }
.auth-top-actions form { margin: 0; }
.auth-card .form-actions form { margin: 0; }
.auth-card .prose { font-size: 14px; line-height: 1.65; }
.auth-card .prose ul { margin-bottom: 10px; }
.auth-card .kv { grid-template-columns: 130px minmax(0, 1fr); }
.invite-item .btn { flex: none; }

.wizard { display: grid; gap: 18px; }
.wizard-step { display: grid; gap: 14px; margin: 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--line-soft); }
.wizard-step > legend { float: left; width: 100%; display: flex; align-items: center; gap: 8px; padding: 0; font-size: var(--fs-base); font-weight: 600; }
.step-no { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: var(--r-sm); background: var(--grad-primary); color: #FFFFFF; font-size: 11px; font-weight: 700; }
.form-row-3 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.choice-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice-card { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow var(--dur-fast); }
.choice-card:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--primary), var(--sh-1); }
.choice-card:has(input:focus-visible) { box-shadow: inset 0 0 0 1.5px var(--primary), var(--focus-ring); }
.choice-card-icon { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: var(--r); background: var(--nav-active-bg, #E7EDF1); color: var(--primary); }
.choice-card-icon .icon { width: 15px; height: 15px; }
.choice-card-text { display: grid; gap: 2px; min-width: 0; line-height: 1.4; }
.choice-card-text strong { font-weight: 600; }
.choice-card-text span { font-size: var(--fs-sm); color: var(--ink-3); }
.segmented .segment { position: relative; cursor: pointer; }
.segmented .segment input { position: absolute; opacity: 0; pointer-events: none; }
.segmented .segment:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.segmented .segment:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.geo-box { display: grid; gap: 10px; padding: 12px; border-radius: var(--r-lg); background: var(--surface-sub); box-shadow: inset 0 0 0 1px var(--line-soft); }
.geo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.field-hint.is-error { color: var(--st-hot); }
.check-row > span { display: grid; gap: 2px; line-height: 1.45; }
.check-row > span .muted { font-size: var(--fs-sm); }
.check-row { align-items: flex-start; }
.check-row > input { margin-top: 3px; }

/* Ikon fitur (beranda dokumentasi) */
.feature-icon { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: var(--r); background: var(--surface-alt); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-soft); }
.feature-icon .icon { width: 18px; height: 18px; }
.feature-icon.tone-primary { background: var(--nav-active-bg, #E7EDF1); color: var(--primary); box-shadow: inset 0 0 0 1px rgba(35, 61, 77, .12); }
.feature-icon.tone-accent { background: var(--st-accent-bg); color: var(--st-accent); box-shadow: inset 0 0 0 1px var(--st-accent-ln); }
.feature-icon.tone-info { background: var(--st-info-bg); color: var(--st-info); box-shadow: inset 0 0 0 1px var(--st-info-ln); }
.feature-icon.tone-success { background: var(--st-cool-bg); color: var(--st-cool); box-shadow: inset 0 0 0 1px var(--st-cool-ln); }
.feature-icon.tone-warning { background: var(--st-warm-bg); color: var(--st-warm); box-shadow: inset 0 0 0 1px var(--st-warm-ln); }

/* --- Dokumentasi Haris ------------------------------------------------------------------- */

.doc-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .9); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); }
.doc-header-inner { display: flex; align-items: center; gap: 14px; width: min(1240px, 100% - 40px); height: 58px; margin: 0 auto; }
.doc-header-inner .brand-word small { margin-left: 6px; font-weight: 500; color: var(--ink-3); }
.doc-header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.prose .role-table td:first-child { min-width: 220px; font-weight: 500; color: var(--ink); }
.prose .role-table td:not(:first-child), .prose .role-table th:not(:first-child) { min-width: 96px; }
.prose .yes { color: var(--st-cool); font-weight: 600; }
.prose .no { color: var(--ink-4); }

/* --- Responsif ---------------------------------------------------------------------------- */

@media (max-width: 1240px) {
    .doc-layout, .doc-layout:has(> .doc-toc[hidden]) { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
    .doc-toc { display: none !important; }
}
@media (max-width: 900px) {
    .doc-layout, .doc-layout:has(> .doc-toc[hidden]) { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 20px; }
    .doc-nav { display: none; }
    .doc-nav-mobile { display: block; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); }
    .doc-nav-mobile > summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; font-size: 14px; color: var(--ink-2); }
    .doc-nav-mobile > summary::-webkit-details-marker { display: none; }
    .doc-nav-mobile > summary > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .doc-nav-mobile > summary b { color: var(--ink); }
    .doc-nav-mobile > summary .icon { flex: none; width: 16px; height: 16px; color: var(--ink-3); }
    .doc-nav-mobile-panel { padding: 0 8px 12px; border-top: 1px solid var(--line-soft); }
    .doc-cards, .doc-steps { grid-template-columns: minmax(0, 1fr); }
    .doc-pager { grid-template-columns: minmax(0, 1fr); }
    .doc-pager-next { grid-column: auto; }
}
@media (max-width: 640px) {
    .choice-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .auth-card { padding: 24px 20px; }
    .auth-who { display: none; }
    .prose table { display: block; overflow-x: auto; }
    .doc-header-inner { width: calc(100% - 32px); }
}
