/* OvionDesk AI offline documentation UI
   Mirrors the admin/usage design language: compact panels, KPI tiles, toolbar
   controls, status pills, and neutral operational surfaces. */

:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-strong: #eef2f7;
    --text: #111827;
    --heading: #0f172a;
    --muted: #64748b;
    --muted-strong: #475569;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;

    --primary: #e91e63;
    --primary-dark: #be174f;
    --primary-soft: #fce7f1;
    --secondary: #0ea5e9;
    --secondary-soft: #e0f2fe;
    --success: #16a34a;
    --success-soft: #dcfce7;
    --warning: #d97706;
    --warning-soft: #fef3c7;
    --danger: #dc2626;
    --danger-soft: #fee2e2;
    --info: #2563eb;
    --info-soft: #dbeafe;

    --radius: 8px;
    --radius-sm: 6px;
    --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.06);
    --shadow-panel: 0 1px 2px rgba(15, 23, 42, 0.05);

    --sidebar-w: 292px;
    --toc-w: 264px;
    --topbar-h: 68px;

    --font:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
    --mono:
        ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(245, 247, 251, 0.96)),
        var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
video,
svg {
    max-width: 100%;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button,
input,
textarea,
select {
    font: inherit;
}

/* Top bar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--topbar-h);
    display: grid;
    grid-template-columns: minmax(230px, 292px) minmax(240px, 660px) auto;
    gap: 16px;
    align-items: center;
    padding: 0 22px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-panel);
}

.topbar__left,
.topbar__center,
.topbar__right {
    min-width: 0;
}

.topbar__right {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--heading);
    text-decoration: none;
    min-width: 0;
}

.brand:hover {
    text-decoration: none;
}

.brand__logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: 0 10px 20px rgba(233, 30, 99, 0.22);
}

.brand__text {
    min-width: 0;
}

.brand__text strong {
    display: block;
    font-size: 15px;
    line-height: 1.15;
    color: var(--heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand__text small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
}

.pill,
.chip,
.tbl-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted-strong);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.chip::before,
.tbl-pill__dot {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.chip--success,
.tbl-pill--success {
    border-color: #bbf7d0;
    background: var(--success-soft);
    color: var(--success);
}

.chip--warning,
.tbl-pill--warning {
    border-color: #fde68a;
    background: var(--warning-soft);
    color: var(--warning);
}

.chip--danger,
.tbl-pill--danger {
    border-color: #fecaca;
    background: var(--danger-soft);
    color: var(--danger);
}

.chip--primary,
.tbl-pill--primary {
    border-color: #f9a8d4;
    background: var(--primary-soft);
    color: var(--primary-dark);
}

/* Search and form controls */
.search {
    position: relative;
    width: 100%;
}

.search input,
.mui-input,
.mui-input-shell input,
.mui-input-shell select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 98px 10px 40px;
    outline: none;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-panel);
    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
}

.search input::placeholder,
.mui-input::placeholder {
    color: #94a3b8;
}

.search input:focus,
.mui-input:focus,
.mui-input-shell input:focus,
.mui-input-shell select:focus {
    border-color: rgba(233, 30, 99, 0.45);
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
}

.search__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.search:not(:has(.search__icon)) input {
    padding-left: 14px;
}

.kbd,
.kbdInline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    min-height: 22px;
    padding: 2px 6px;
    border: 1px solid var(--border-strong);
    border-bottom-width: 2px;
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    color: var(--muted-strong);
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1;
}

.kbdInline {
    margin: 0 4px;
}

.kbdPlus {
    color: var(--muted);
    margin: 0 6px;
    font-size: 12px;
}

.search .kbd,
.search .kbdPlus {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.search .kbd:nth-of-type(1) {
    right: 70px;
}

.search .kbdPlus {
    right: 58px;
}

.search .kbd:nth-of-type(2) {
    right: 28px;
}

/* Buttons */
.btn,
.mui-btn,
.pager__next,
.pager__prev {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: var(--shadow-panel);
    cursor: pointer;
    transition:
        border-color 0.16s ease,
        color 0.16s ease,
        background 0.16s ease,
        transform 0.16s ease;
}

.btn:hover,
.mui-btn:hover,
.pager__next:hover,
.pager__prev:hover {
    border-color: var(--border-strong);
    background: var(--surface-soft);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    box-shadow: none;
}

.btn--primary,
.mui-btn--primary {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 18px rgba(233, 30, 99, 0.18);
}

.btn--primary:hover,
.mui-btn--primary:hover {
    border-color: var(--primary-dark);
    background: var(--primary-dark);
    color: #fff;
}

.btn--block {
    width: 100%;
}

/* Layout */
.layout {
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--toc-w);
    min-height: calc(100vh - var(--topbar-h));
}

.sidebar {
    position: sticky;
    top: var(--topbar-h);
    height: calc(100vh - var(--topbar-h));
    overflow: auto;
    padding: 18px 16px;
    border-right: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.88);
}

.sidebar__section {
    margin-bottom: 18px;
}

.sidebar__title {
    margin: 14px 10px 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav__link {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--muted-strong);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.nav__link:hover {
    border-color: var(--border);
    background: var(--surface-soft);
    color: var(--heading);
    text-decoration: none;
}

.nav__link.is-active {
    border-color: #f9a8d4;
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.sidebar__footer,
.supportCard {
    margin-top: 18px;
}

.supportCard {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-panel);
}

.supportCard__title {
    margin-bottom: 6px;
    color: var(--heading);
    font-weight: 800;
}

.supportCard__text {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.main {
    min-width: 0;
    padding: 26px 24px 46px;
}

.content {
    width: min(100%, 980px);
    margin: 0 auto;
}

.toc {
    position: sticky;
    top: var(--topbar-h);
    height: calc(100vh - var(--topbar-h));
    overflow: auto;
    padding: 18px 16px;
    border-left: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.82);
}

.toc__title {
    margin: 4px 8px 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.toc__list,
#tocList {
    display: grid;
    gap: 4px;
}

.toc__list a,
#tocList a {
    display: block;
    padding: 8px 9px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--muted-strong);
    font-size: 13px;
    line-height: 1.35;
    text-decoration: none;
}

.toc__list a:hover,
#tocList a:hover {
    border-color: var(--border);
    background: var(--surface-soft);
    color: var(--heading);
    text-decoration: none;
}

.toc__list a.is-active,
#tocList a.is-active {
    border-color: #bae6fd;
    background: var(--secondary-soft);
    color: #0369a1;
}

/* Page typography */
.breadcrumbs {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 13px;
}

.breadcrumbs a {
    color: var(--muted-strong);
    font-weight: 700;
}

h1,
h2,
h3,
h4 {
    color: var(--heading);
    letter-spacing: 0;
}

h1 {
    margin: 8px 0 10px;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.08;
    font-weight: 850;
}

h2 {
    margin: 34px 0 12px;
    padding-top: 8px;
    font-size: 23px;
    line-height: 1.24;
    font-weight: 820;
}

h3 {
    margin: 22px 0 10px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
}

p {
    margin: 0 0 14px;
    color: var(--text);
    line-height: 1.75;
}

.lead {
    margin-bottom: 18px;
    color: var(--muted-strong);
    font-size: 17px;
    line-height: 1.75;
}

.muted {
    color: var(--muted);
}

.divider {
    height: 1px;
    margin: 24px 0;
    background: var(--border);
}

/* Admin-style page sections */
.doc-hero,
.tbl-panel,
.card,
.doc-steps,
.table-wrap,
.media,
.supportCard {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-panel);
}

.doc-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
    gap: 18px;
    align-items: stretch;
    margin: 18px 0 22px;
    padding: 18px;
}

.doc-hero__eyebrow,
.tbl-panel__eyebrow {
    margin-bottom: 8px;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.doc-hero__aside {
    border-radius: var(--radius);
    padding: 16px;
    background:
        linear-gradient(135deg, rgba(233, 30, 99, 0.08), rgba(14, 165, 233, 0.1)),
        var(--surface-soft);
}

.tbl-page {
    display: grid;
    gap: 16px;
}

.tbl-panel {
    margin: 18px 0;
    overflow: hidden;
}

.tbl-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-soft);
}

.tbl-panel__body {
    padding: 16px;
}

.tbl-insights {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tbl-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.tbl-toolbar__group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tbl-toolbar__item--search {
    min-width: min(100%, 280px);
}

.grid2,
.grid3,
.stat-grid,
.doc-kpi-grid,
.screenshot-gallery {
    display: grid;
    gap: 16px;
}

.grid2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 18px 0;
}

.grid3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 18px 0;
}

.card {
    padding: 17px;
    margin: 16px 0;
}

.grid2 > .card,
.grid3 > .card {
    margin: 0;
}

.card__title {
    margin-bottom: 10px;
    color: var(--heading);
    font-size: 15px;
    font-weight: 820;
}

.stat-grid,
.doc-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 20px 0;
}

.stat-card,
.doc-kpi-card {
    position: relative;
    min-height: 124px;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-panel);
    overflow: hidden;
}

.stat-card::before,
.doc-kpi-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--primary);
}

.stat-card:nth-child(2)::before,
.doc-kpi-card:nth-child(2)::before {
    background: var(--secondary);
}

.stat-card:nth-child(3)::before,
.doc-kpi-card:nth-child(3)::before {
    background: var(--success);
}

.stat-card:nth-child(4)::before,
.doc-kpi-card:nth-child(4)::before {
    background: var(--warning);
}

.stat-card strong,
.doc-kpi-card strong {
    display: block;
    margin-bottom: 7px;
    color: var(--heading);
    font-size: 30px;
    line-height: 1;
    font-weight: 860;
}

.stat-card span,
.doc-kpi-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

/* Lists and steps */
.list,
.steps {
    margin: 0;
    padding-left: 20px;
    color: var(--text);
}

.list li,
.steps li {
    margin: 8px 0;
    line-height: 1.68;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist li {
    position: relative;
    margin: 10px 0;
    padding-left: 28px;
    line-height: 1.68;
}

.checklist li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: var(--success-soft);
    color: var(--success);
    font-size: 12px;
    font-weight: 900;
}

.doc-steps {
    padding: 18px;
    margin: 18px 0 28px;
}

.doc-steps__title {
    margin-bottom: 14px;
    color: var(--heading);
    font-size: 16px;
    font-weight: 820;
}

.doc-steps__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.doc-steps__list a {
    display: flex;
    align-items: center;
    min-height: 42px;
    gap: 11px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-soft);
    color: var(--heading);
    font-weight: 720;
    text-decoration: none;
}

.doc-steps__list a:hover {
    border-color: #f9a8d4;
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.doc-steps__list span {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 850;
}

.doc-heading {
    margin-top: 38px;
    margin-bottom: 14px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--border);
    color: var(--heading);
    font-size: 25px;
    font-weight: 840;
}

/* Callouts */
.callout {
    margin: 16px 0;
    padding: 14px 15px;
    border: 1px solid var(--border);
    border-left-width: 4px;
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    line-height: 1.65;
    box-shadow: var(--shadow-panel);
}

.callout--note {
    border-left-color: var(--info);
    background: var(--info-soft);
}

.callout--tip {
    border-left-color: var(--success);
    background: var(--success-soft);
}

.callout--warn,
.callout--warning {
    border-left-color: var(--warning);
    background: var(--warning-soft);
}

.callout--danger {
    border-left-color: var(--danger);
    background: var(--danger-soft);
}

/* Tables */
.table-wrap {
    margin: 20px 0;
    overflow: auto;
}

.doc-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

.doc-table th,
.doc-table td {
    padding: 13px 15px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
    line-height: 1.6;
}

.doc-table th {
    background: var(--surface-soft);
    color: var(--muted-strong);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.doc-table tr:last-child td {
    border-bottom: 0;
}

.doc-table tbody tr:hover td {
    background: #fcfdff;
}

/* Media */
.media {
    max-width: 760px;
    margin: 22px auto;
    padding: 14px;
    text-align: center;
}

.media--window {
    max-width: 560px;
}

.media img,
.media video {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.media--window img {
    width: 100%;
}

.media figcaption,
.media__caption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.screenshot-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 18px 0 28px;
}

.screenshot-gallery figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-panel);
}

.screenshot-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
    background: var(--surface-soft);
}

.screenshot-gallery figcaption {
    padding: 10px 12px;
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 760;
}

/* Code blocks */
:not(pre) > code {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    color: var(--primary-dark);
    padding: 2px 6px;
    font-family: var(--mono);
    font-size: 0.92em;
    white-space: nowrap;
}

pre {
    position: relative;
    margin: 16px 0;
    padding: 16px;
    overflow: auto;
    border: 1px solid #182235;
    border-radius: var(--radius);
    background: #0f172a;
    color: #e5e7eb;
    box-shadow: var(--shadow-soft);
}

pre code {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.65;
    white-space: pre;
}

code {
    font-family: var(--mono);
}

.copyBtn {
    position: absolute;
    top: 10px;
    right: 10px;
    min-height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 760;
    cursor: pointer;
}

.copyBtn:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* Tabs compatibility with usage snippets */
.mui-tabs {
    margin: 18px 0;
}

.mui-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.mui-tabs__btn {
    min-height: 36px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--muted-strong);
    padding: 8px 12px;
    font-weight: 780;
    cursor: pointer;
}

.mui-tabs__btn.active,
.mui-tabs__btn:hover {
    border-color: #f9a8d4;
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.mui-tabs__content {
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 16px;
}

.mui-tabs__pane {
    display: none;
}

.mui-tabs__pane.active {
    display: block;
}

/* Pager */
.pager {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 1180px) {
    :root {
        --toc-w: 0px;
    }

    .layout {
        grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    }

    .toc {
        display: none;
    }
}

@media (max-width: 920px) {
    :root {
        --sidebar-w: 0px;
    }

    .topbar {
        grid-template-columns: 1fr auto;
        height: auto;
        min-height: var(--topbar-h);
        padding: 12px 14px;
    }

    .topbar__center {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .sidebar {
        display: none;
    }

    .main {
        padding: 22px 14px 40px;
    }

    .doc-hero,
    .grid2,
    .grid3,
    .screenshot-gallery {
        grid-template-columns: 1fr;
    }

    .stat-grid,
    .doc-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .topbar {
        grid-template-columns: 1fr;
    }

    .topbar__right {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .brand__text strong {
        white-space: normal;
    }

    .search input {
        padding-right: 14px;
    }

    .search .kbd,
    .search .kbdPlus {
        display: none;
    }

    h1 {
        font-size: 30px;
    }

    .stat-grid,
    .doc-kpi-grid {
        grid-template-columns: 1fr;
    }

    .pager {
        flex-direction: column;
    }
}

@media print {
    body {
        background: #fff;
    }

    .topbar,
    .sidebar,
    .toc,
    .pager,
    .copyBtn {
        display: none !important;
    }

    .layout,
    .main,
    .content {
        display: block;
        width: auto;
        margin: 0;
        padding: 0;
    }

    .card,
    .doc-steps,
    .table-wrap,
    .media,
    .callout {
        box-shadow: none;
        break-inside: avoid;
    }

    pre {
        background: #fff;
        color: #000;
        border-color: #999;
    }
}
