:root {
    color-scheme: light dark;
    --bg: #f8faff;
    --panel: #fff;
    --text: #151a2d;
    --muted: #53617b;
    --line: #d5daeb;
    --brand: #5745ef;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #000000;
        --panel: #09090a;
        --text: #ffffff;
        --muted: #94969d;
        --line: #1d1d20;
        --brand: #a89bff;
    }
}
:root[data-theme='light'] {
    color-scheme: light;
    --bg: #f8faff;
    --panel: #fff;
    --text: #151a2d;
    --muted: #53617b;
    --line: #d5daeb;
    --brand: #5745ef;
}
:root[data-theme='dark'] {
    color-scheme: dark;
    --bg: #000000;
    --panel: #09090a;
    --text: #ffffff;
    --muted: #94969d;
    --line: #1d1d20;
    --brand: #a89bff;
}
* {
    box-sizing: border-box;
}
.faq-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 20px;
}
.faq-page details {
    border: 1px solid currentColor;
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
}
.faq-page summary {
    cursor: pointer;
    font-weight: 600;
}
.faq-page p {
    white-space: pre-wrap;
    line-height: 1.7;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font:
        16px/1.6 system-ui,
        sans-serif;
}
a {
    color: var(--brand);
    text-underline-offset: 4px;
}
button,
input {
    font: inherit;
}
button,
.button {
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 16px;
    background: var(--panel);
    color: var(--text);
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
}
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 4%;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
}
.brand {
    font-size: 24px;
    font-weight: 750;
    color: var(--text);
    text-decoration: none;
}
.site-header nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}
.site-header nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}
.subnav {
    display: flex;
    gap: 8px;
    padding: 10px max(4%, calc((100% - 1120px) / 2));
    overflow: auto;
    white-space: nowrap;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}
.subnav a,
.languages a,
.pagination a {
    padding: 7px 14px;
    text-decoration: none;
    border-radius: 8px;
    color: var(--text);
}
[aria-current='page'] {
    background: color-mix(in srgb, var(--brand) 15%, transparent);
    font-weight: 700;
}
main {
    max-width: 1120px;
    margin: auto;
    padding: 36px 24px 64px;
    min-width: 0;
}
.hero {
    max-width: 800px;
    margin: 10px 0 28px;
}
h1 {
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin: 12px 0 20px;
}
h2 {
    font-size: 24px;
    line-height: 1.3;
}
p {
    overflow-wrap: anywhere;
}
.hero p,
.card p,
.meta {
    color: var(--muted);
}
.eyebrow {
    font-size: 13px;
    font-weight: 650;
    color: var(--brand) !important;
}
.search {
    margin: 24px 0 32px;
    max-width: 700px;
}
.search label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.search > div {
    display: flex;
    gap: 10px;
}
.search input {
    min-width: 0;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px;
    background: var(--panel);
    color: var(--text);
}
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
    gap: 18px;
    margin: 24px 0;
}
.card {
    display: block;
    padding: 22px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    min-width: 0;
}
.card:hover {
    border-color: var(--brand);
}
.card h2,
.card h3 {
    margin: 8px 0;
}
.cover {
    aspect-ratio: 16 / 9;
    max-width: 100%;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 10px;
}
.reading {
    display: flex;
    gap: 36px;
    margin-top: 30px;
}
.reading aside {
    width: 210px;
    flex-shrink: 0;
}
.reading aside nav {
    position: sticky;
    top: 20px;
    display: grid;
    gap: 10px;
}
.reading article {
    min-width: 0;
    flex: 1;
    max-width: 820px;
}
.prose {
    overflow-wrap: anywhere;
}
.prose img {
    max-width: 100%;
    height: auto;
}
.prose table {
    border-collapse: collapse;
    display: block;
    overflow: auto;
    max-width: 100%;
    margin: 24px 0;
}
.prose th,
.prose td {
    padding: 12px;
    border: 1px solid var(--line);
    min-width: 100px;
}
.prose th {
    background: var(--panel);
}
.prose pre {
    overflow: auto;
    padding: 18px;
    background: var(--panel);
    border-radius: 10px;
}
.prose blockquote {
    border-inline-start: 3px solid var(--brand);
    margin-inline: 0;
    padding-inline: 20px;
}
.prose h2,
.prose h3 {
    scroll-margin-top: 25px;
}
.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.tags span,
.notice {
    padding: 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
}
.notice {
    margin: 24px 0;
}
.feedback {
    border-top: 1px solid var(--line);
    margin-top: 32px;
    padding-top: 20px;
}
.pagination,
.languages {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.skip {
    position: absolute;
    top: -100px;
}
.skip:focus {
    top: 0;
    background: var(--panel);
    padding: 12px;
    z-index: 5;
}
footer {
    max-width: 1120px;
    margin: auto;
    padding: 24px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}
@media (max-width: 700px) {
    .site-header {
        padding: 12px 20px;
    }
    .site-header nav {
        display: none;
    }
    .reading {
        display: block;
    }
    .reading aside {
        width: auto;
        margin-bottom: 24px;
    }
    .reading aside nav {
        position: static;
    }
    .subnav {
        padding-inline: 12px;
    }
    main {
        padding: 24px 18px;
    }
    .card {
        padding: 18px;
    }
}

/* Shared hosted and exported reader; source: devad-docs category and heading navigation. */
main {
    max-width: 1440px;
}
body {
    font-size: 15px;
}
.hero {
    margin-inline: auto;
    text-align: center;
}
.search {
    margin-inline: auto;
    max-width: 620px;
}
.search label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
.search > div {
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}
.search input {
    border: 0;
    background: transparent;
}
.search button {
    background: var(--text);
    color: var(--bg);
    font-weight: 700;
}
.reading {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 220px;
    gap: 30px;
    align-items: start;
}
.reading:has(> .heading-sidebar):not(:has(> .category-sidebar)) {
    grid-template-columns: minmax(0, 1fr) 220px;
}
.reading:not(:has(> .heading-sidebar)) {
    grid-template-columns: 230px minmax(0, 1fr);
}
.reading:not(:has(> aside)) {
    grid-template-columns: minmax(0, 1fr);
}
.reading > aside {
    width: auto;
    position: sticky;
    top: 20px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
}
.reading aside nav {
    position: static;
    display: block;
    max-height: calc(100dvh - 130px);
    overflow-y: auto;
    padding: 12px;
    scrollbar-width: thin;
}
.reading aside summary {
    padding: 14px;
    font-weight: 700;
    cursor: pointer;
}
.reading aside a {
    display: block;
    border-radius: 8px;
    text-decoration: none;
    color: var(--muted);
    padding: 7px 10px;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.reading aside a[aria-current],
.reading aside .is-active {
    color: var(--text);
    background: color-mix(in srgb, var(--text) 8%, var(--panel));
    font-weight: 650;
}
.reading aside .toc-group-link {
    color: var(--text);
    font-weight: 700;
}
.toc-group ol {
    margin: 0 0 14px;
    padding-inline-start: 22px;
}
.toc-group:has([aria-current]) > .toc-group-link {
    background: color-mix(in srgb, var(--brand) 12%, var(--panel));
}
.prose h2,
.prose h3 {
    scroll-margin-top: 24px;
}
.heading-sidebar a[data-level='3'] {
    padding-inline-start: 22px;
}
.cards.categories {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.categories .card {
    background: linear-gradient(
        155deg,
        color-mix(in srgb, var(--text) 3%, var(--panel)),
        var(--panel)
    );
}
footer {
    max-width: 1440px;
    padding-bottom: 100px;
}
@media (max-width: 1100px) {
    .reading {
        grid-template-columns: 190px minmax(0, 1fr);
    }
    .reading > .heading-sidebar {
        position: static;
        grid-column: 2;
        grid-row: 1;
    }
    .reading > article {
        grid-column: 2;
    }
    .reading > .category-sidebar {
        grid-row: 1 / span 2;
    }
}
@media (max-width: 760px) {
    .reading,
    .reading:has(aside) {
        display: flex;
        flex-direction: column;
    }
    .reading > aside {
        position: static;
        width: 100%;
    }
    .reading > article {
        width: 100%;
    }
    .reading > .heading-sidebar {
        order: -1;
    }
    .reading aside nav {
        max-height: 260px;
    }
    .site-header nav {
        display: flex;
        font-size: 12px;
        gap: 10px;
    }
    .site-header {
        flex-wrap: wrap;
        gap: 12px;
    }
}
.ticket-widget {
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 95;
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 8px 30px #0003;
}
.ticket-widget summary {
    cursor: pointer;
    padding: 12px 18px;
    font-weight: 650;
}
.ticket-widget iframe {
    display: block;
    width: min(400px, 90vw);
    height: min(600px, 75dvh);
    border: 0;
    border-radius: 12px;
    background: white;
}
.brand img {
    max-width: 150px;
    object-fit: contain;
}
footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 18px;
}
.resource-icon {
    display: inline-grid;
    place-items: center;
    background: color-mix(in srgb, var(--brand) 12%, var(--panel));
    color: var(--brand);
    width: 36px;
    height: 36px;
    border-radius: 10px;
}
.shortcuts .card h2 {
    font-size: 17px;
}
.shortcuts .card p {
    font-size: 14px;
}
.app-category-list {
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.app-category-list a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 12px;
    margin-bottom: 7px;
    font-size: 13px;
}
.docs-hero h1 {
    font-size: clamp(28px, 3vw, 40px);
}
.toc-group.is-current-group > .toc-group-link {
    color: var(--text);
    background: color-mix(in srgb, var(--text) 10%, var(--panel));
}
[data-heading-toc] a[hidden] {
    display: none;
}
.docs-group {
    margin-top: 32px;
}
.docs-article {
    padding-block: 20px 40px;
    border-bottom: 1px solid var(--line);
}

.header-utilities {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header-utilities .languages {
    margin: 0;
    gap: 8px;
}
.search-shortcut {
    font-size: 24px;
    text-decoration: none;
}
footer {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    border-top: 1px solid var(--line);
    padding: 32px max(24px, 4%);
    margin-top: 48px;
}
.footer-brand {
    max-width: 400px;
}
.footer-brand p {
    color: var(--muted);
    margin: 8px 0 0;
}
footer nav {
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    gap: 16px;
}
@media (max-width: 640px) {
    footer {
        flex-direction: column;
    }
    .header-utilities {
        flex-wrap: wrap;
    }
}
/* Reference values from devad-docs/style.css, final restyle rules. */
body {
    font-family:
        'Instrument Sans',
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;
    font-size: 16px;
    line-height: 1.65;
}
.hero h1,
.docs-hero h1 {
    font-family:
        'Inter Tight', 'Instrument Sans', Inter, ui-sans-serif, system-ui,
        sans-serif;
    font-size: clamp(2.45rem, 5vw, 4rem);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: 0;
}
.hero {
    margin-block: 0 20px;
}
.hero .eyebrow {
    font-size: 13px;
    font-weight: 800;
}
.reading > aside {
    border-radius: 14px;
}
.reading aside a {
    font-size: 13px;
}
:root[data-theme='dark'] body {
    background:
        radial-gradient(
            circle at 50% 0,
            rgba(24, 24, 26, 0.52),
            transparent 360px
        ),
        #000;
}
:root[data-theme='dark'] .site-header {
    background: rgba(0, 0, 0, 0.88);
}
:root[data-theme='dark'] .card {
    background: radial-gradient(
        circle at 50% -18%,
        rgba(24, 24, 26, 0.82),
        rgba(14, 14, 16, 0.98) 44%,
        rgba(9, 9, 10, 0.98)
    );
    border-radius: 20px;
    box-shadow: none;
}
:root[data-theme='dark'] .reading aside a.is-active {
    background: #18181a;
    color: #fff;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) body {
        background:
            radial-gradient(
                circle at 50% 0,
                rgba(24, 24, 26, 0.52),
                transparent 360px
            ),
            #000;
    }
    :root:not([data-theme='light']) .card {
        background: radial-gradient(
            circle at 50% -18%,
            rgba(24, 24, 26, 0.82),
            rgba(14, 14, 16, 0.98) 44%,
            rgba(9, 9, 10, 0.98)
        );
        border-radius: 20px;
        box-shadow: none;
    }
}
.toc-count {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    margin-inline-end: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: color-mix(in srgb, var(--text) 8%, var(--panel));
    font-size: 12px;
}
.toc-group-link {
    display: flex;
    align-items: center;
}
.reading aside .toc-group-link {
    font-family:
        'Inter Tight', 'Instrument Sans', Inter, ui-sans-serif, system-ui,
        sans-serif;
    font-weight: 720;
}
.reading aside a[aria-current='location'] {
    border-color: var(--text);
    background: color-mix(in srgb, var(--text) 8%, var(--panel));
    color: var(--text);
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 130px;
}
.footer-links h2 {
    margin: 0 0 4px;
    font-size: 15px;
}

.language-picker {
    position: relative;
}
.language-picker summary {
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid var(--border, #333);
    border-radius: 8px;
}
.language-picker .languages {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 30;
    display: grid;
    min-width: 90px;
    background: var(--panel, #09090a);
    border: 1px solid var(--border, #333);
    border-radius: 8px;
    padding: 6px;
}
.language-picker:not([open]) .languages {
    display: none;
}

/* Native presentation for retained WordPress content blocks. */
.epcl-box,
.gs-box {
    padding: 20px 24px;
    margin: 24px 0;
    display: flex;
    gap: 16px;
    border-radius: 6px;
    color: #263348;
    background: #e8edf4;
}
.epcl-box.notice {
    background: #fff2d5;
}
.epcl-box.information {
    background: #c7ecff;
}
.epcl-box.success,
.gs-box.green_type {
    background: #def1d6;
}
.epcl-tabs {
    margin: 24px 0;
}
.epcl-tabs .tab-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #cfd7ed;
    gap: 0;
}
.epcl-tabs .tab-links a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
}
.epcl-tabs .tab-links .active {
    border: 1px solid #cfd7ed;
    border-bottom: 0;
}
.epcl-tabs .tab-container {
    padding: 24px;
    border: 1px solid #cfd7ed;
}
.tab-item[hidden] {
    display: none !important;
}
.code-card-wrapper {
    margin: 24px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 14px #0002;
}
.code-card-wrapper pre {
    margin: 0;
    border-radius: 0;
    background: #10121d;
    color: #b6bfca;
    padding: 18px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.copy-prompt-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: 0;
    background: #f6f6f6;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
}
.copy-prompt-btn:focus-visible {
    outline: 3px solid #6554ff;
    outline-offset: -3px;
}
.token-key {
    color: #d99b65;
}
.token-string {
    color: #a4cf80;
}
.token-value {
    color: #b9a5ec;
}

.docs-content .epcl-box.error {
    background: #fce7e7;
    color: #7f1d1d;
    border-left: 4px solid #dc2626;
}
.breadcrumbs {
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

[data-agent-toggle][aria-checked='true'] {
    background: var(--brand);
    color: white;
}
#agent-content pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 12px;
}
[hidden] {
    display: none !important;
}

.collection-topics,
.blog-category-badges {
    flex-wrap: wrap;
    overflow: visible;
}
.toc-subgroup {
    margin-inline-start: 1rem;
}

.collection-content {
    width: 100%;
    min-width: 0;
}
.collection-reading .cards {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

/* Shared category navigation follows the docs source across hosted readers. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
.reading aside .toc-group-link,
.toc-drawer .toc-group-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 0;
}
.toc-group {
    margin-block-end: 18px;
}
.toc-group .toc-count {
    flex-shrink: 0;
    margin: 0;
}
.toc-children {
    margin-block-start: 12px;
    margin-inline-start: 8px;
    border-inline-start: 1px solid var(--line);
    padding-inline-start: 8px;
}
.toc-items {
    padding-inline-start: 32px;
    margin-block: 8px 12px;
    color: var(--muted);
}
.toc-items li {
    padding-inline-start: 2px;
    margin-block: 4px;
}
.reading aside .toc-items a,
.toc-drawer .toc-items a {
    padding: 6px 8px;
    border-radius: 8px;
    background: transparent;
}
.reading aside .toc-items a[aria-current],
.toc-drawer .toc-items a[aria-current] {
    background: color-mix(in srgb, var(--text) 8%, var(--panel));
    color: var(--text);
    font-weight: 750;
}
.reading aside .toc-group.is-current-group > .toc-group-link,
.toc-drawer .toc-group.is-current-group > .toc-group-link {
    background: color-mix(in srgb, var(--text) 8%, var(--panel));
    color: var(--text);
}
.toc-context {
    font-weight: 750;
    border-bottom: 1px solid var(--line);
    margin-block-end: 16px;
}
.toc-more {
    font-size: 13px;
    min-height: 44px;
    margin-inline-start: 32px;
    padding: 4px 12px;
}
.collection-topics,
.blog-category-badges {
    padding: 12px 4px;
    gap: 20px;
    background: transparent;
    border-bottom: 1px solid var(--line);
}
.subnav .topic-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 76px;
    padding: 8px;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
}
.topic-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: color-mix(in srgb, var(--text) 6%, var(--panel));
    font-size: 16px;
}
.topic-count {
    position: absolute;
    inset-block-start: -10px;
    inset-inline-end: -10px;
    display: grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    padding-inline: 5px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--bg);
    font-size: 12px;
}
.topic-badge[aria-current] .topic-icon {
    border-color: var(--text);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--text) 20%, transparent);
}
.topic-badge:hover .topic-icon {
    border-color: var(--brand);
}
.topic-label {
    white-space: normal;
    max-width: 100px;
    text-align: center;
}
.search-launch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 8px 8px 18px;
    max-width: 620px;
    margin: 28px auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
    background: var(--panel);
    text-decoration: none;
}
.search-launch span {
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--text);
    color: var(--bg);
    font-weight: 700;
}
.reader-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.reader-dialog-head h2 {
    margin: 4px 0 16px;
}
.reader-dialog-head .eyebrow {
    margin: 0;
}
.reader-dialog-head button {
    min-width: 44px;
    min-height: 44px;
    padding: 6px;
}
.search-dialog,
.toc-drawer {
    color: var(--text);
    background: var(--panel);
    border: 1px solid var(--line);
}
.search-dialog {
    width: min(620px, calc(100vw - 32px));
    max-height: calc(100dvh - 48px);
    padding: 24px;
    border-radius: 18px;
    overflow: auto;
}
.search-dialog::backdrop,
.toc-drawer::backdrop {
    background: color-mix(in srgb, var(--bg) 75%, transparent);
    backdrop-filter: blur(6px);
}
.search-dialog .search {
    margin: 12px 0;
}
.search-scope,
.search-results {
    color: var(--muted);
    font-size: 14px;
}
.search-results a {
    display: block;
    padding: 14px 10px;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}
.search-results a:hover {
    background: color-mix(in srgb, var(--text) 6%, var(--panel));
}
.toc-mobile-trigger {
    display: none;
}
.toc-drawer {
    margin: 0;
    height: 100dvh;
    max-height: 100dvh;
    width: min(340px, calc(100vw - 48px));
    max-width: none;
    padding: 20px 16px 80px;
    border-block: 0;
    border-inline-start: 0;
    overflow-y: auto;
}
html[dir='rtl'] .toc-drawer {
    margin-inline-start: auto;
}
.toc-drawer a {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.toc-drawer .toc-group-link {
    color: var(--text);
    font-weight: 700;
}
@media (max-width: 760px) {
    .reading > .category-sidebar,
    .reading > .heading-sidebar {
        display: none;
    }
    .toc-mobile-trigger {
        display: block;
        position: fixed;
        inset-inline-start: 16px;
        inset-block-end: max(16px, env(safe-area-inset-bottom));
        z-index: 96;
        font-size: 13px;
        font-weight: 750;
        min-height: 44px;
    }
    .collection-topics,
    .blog-category-badges {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-block: 16px;
        scrollbar-width: thin;
    }
    .topic-badge {
        flex-shrink: 0;
    }
    .search-dialog {
        padding: 20px;
    }
    .search-dialog .search > div {
        flex-wrap: wrap;
    }
    .search-dialog .search button {
        width: 100%;
    }
    body .devad-ai-actions {
        inset-inline-start: auto;
        inset-inline-end: 16px;
        transform: none;
        max-width: calc(100vw - 196px);
    }
}
@media (max-width: 380px) {
    body .devad-ai-actions {
        inset-block-end: 72px;
        max-width: calc(100vw - 32px);
    }
}
