/* KeepOnline: jade, charcoal and warm paper. */
/* Shared surface rules are refined at the end of this file. */
:root {
    color-scheme: light;
    --ink: #202c2a; --muted: #65716d; --line: #dce3dd;
    --canvas: #f5f6f2; --card: #ffffff; --surface: #f7f9f6;
    --brand: #1f6656; --brand-dark: #174e42; --brand-soft: #eaf3ed;
    --good: #24754e; --good-bg: #edf7ef; --bad: #b13c38; --bad-bg: #fff0ed;
    --unknown: #7a7565; --warning-bg: #fbf5e6; --radius: 12px;
    --shadow: 0 2px 5px rgb(32 44 42 / 3%);
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --ink: #e7ede8; --muted: #a0ada5; --line: #33423b;
    --canvas: #141e19; --card: #1c2922; --surface: #233128;
    --brand: #a0d5b4; --brand-dark: #bee5ca; --brand-soft: #2a3e32;
    --good: #99d4aa; --good-bg: #253c2d; --bad: #f3aaa0; --bad-bg: #432d28;
    --unknown: #c4b990; --warning-bg: #383527; --shadow: 0 2px 6px rgb(0 0 0 / 10%);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--canvas); font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
svg { flex-shrink: 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-size: 28px; font-weight: 740; letter-spacing: -.045em; line-height: 1.2; }
h2 { margin-bottom: 6px; font-size: 17px; font-weight: 700; letter-spacing: -.025em; }
h3 { margin-bottom: 5px; font-size: 14px; font-weight: 680; }
p { margin-bottom: 14px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.muted, .metric-label, .metric-detail, .metric-label { color: var(--muted); }
.break { overflow-wrap: anywhere; }
.inline { display: inline; }
.site-header { position: sticky; top: 0; z-index: 30; background: var(--card); border-bottom: 1px solid var(--line); }
.nav, main { max-width: 1180px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 650; letter-spacing: -.04em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-mark { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; }
.brand-mark img { display: block; width: 100%; height: 100%; }
.brand-wordmark > span { color: var(--brand); font-weight: 780; }
.nav-links, .nav-actions, .header-tools { display: flex; align-items: center; gap: 8px; }
.nav-links { margin-right: auto; }
.nav-links a { display: block; padding: 8px 12px; color: var(--muted); font-size: 13px; font-weight: 650; text-decoration: none; border-radius: 7px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
main { padding-top: 30px; padding-bottom: 48px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 22px; }
.page-heading p { margin-bottom: 0; color: var(--muted); }
.page-heading > div { min-width: 0; }
.page-heading > span { display: flex; flex-wrap: wrap; gap: 8px; }
.page-heading h1 { overflow-wrap: anywhere; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 16px 0; box-shadow: var(--shadow); min-width: 0; }
.card-tight { padding: 17px 20px; }
.card > :last-child { margin-bottom: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid > .card { margin: 0; }
.metric { min-height: 120px; padding: 18px 20px; }
.metric-label { margin-bottom: 6px; font-size: 12px; font-weight: 600; }
.metric-value { margin: 0 0 5px; font-size: 31px; line-height: 1.2; font-weight: 740; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.metric-detail { margin-bottom: 0; font-size: 12px; }
.metric .status-up, .metric .status-down { display: flex; padding: 0; border: 0; background: transparent; border-radius: 0; font-size: 31px; }
.metric .status-up::before, .metric .status-down::before { display: none; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.section-head p { margin-bottom: 0; font-size: 13px; }
.section-head > a { flex-shrink: 0; font-size: 13px; font-weight: 650; text-decoration: none; }
button, .button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 38px; padding: 8px 13px; border: 1px solid transparent; border-radius: 8px; background: #1f6656; color: #fff; font: inherit; font-size: 13px; font-weight: 650; line-height: 1.45; text-decoration: none; cursor: pointer; transition: background .16s, border-color .16s, box-shadow .16s; }
button:hover, .button:hover { color: #fff; background: #174e42; }
.button-secondary { color: var(--ink); background: var(--card); border-color: var(--line); }
.button-secondary:hover { color: var(--ink); background: var(--surface); border-color: var(--muted); }
.button-danger { color: var(--bad); background: var(--bad-bg); border-color: transparent; }
.button-danger:hover { color: var(--bad); background: var(--bad-bg); border-color: var(--bad); }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible, .button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
label { display: block; font-size: 13px; font-weight: 600; }
input, select, textarea { display: block; width: 100%; min-height: 40px; padding: 9px 11px; margin: 6px 0 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; font-size: 13px; transition: border-color .16s, box-shadow .16s; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input[type="checkbox"], input[type="radio"] { display: inline-block; width: 16px; height: 16px; min-height: 0; padding: 0; margin: 0 7px 0 0; vertical-align: middle; accent-color: #1f6656; }
input[type="hidden"] { display: none; }
label:has(input[type="checkbox"]), label:has(input[type="radio"]) { display: flex; align-items: center; gap: 5px; padding: 7px 0; font-weight: 500; line-height: 1.4; }
label:has(input[type="checkbox"]) input { flex: 0 0 auto; }
.help-text { color: var(--muted); font-size: 12px; margin: -7px 0 16px; line-height: 1.5; }
h2 + .help-text { margin-top: 0; }
.error { color: var(--bad); font-size: 13px; overflow-wrap: anywhere; }
.notice { padding: 12px 15px; color: var(--good); background: var(--good-bg); border: 1px solid var(--line); border-radius: 8px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.actions form { margin: 0; }
.form-section { border: 0; border-top: 1px solid var(--line); padding: 20px 0 0; margin: 20px 0 0; min-width: 0; }
.form-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.form-section legend { padding: 0; font-size: 15px; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid > div { min-width: 0; }
.schedule-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .span-full { grid-column: 1 / -1; }
.form-footer { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 20px; display: flex; gap: 8px; }
.form-shell { max-width: 900px; margin-left: auto; margin-right: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { padding-top: 10px; padding-bottom: 10px; color: var(--muted); background: var(--surface); font-size: 11px; font-weight: 650; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }
th:first-child { border-radius: 7px 0 0 7px; }
th:last-child { border-radius: 0 7px 7px 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface); }
td a { font-weight: 600; text-decoration: none; }
.table-scroll { overflow-x: auto; width: 100%; -webkit-overflow-scrolling: touch; }
.table-subtitle { display: block; max-width: 360px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.compact-link { font-size: 12px; font-weight: 650; }
.filter-bar { display: grid; grid-template-columns: minmax(0, 1fr) 170px auto; align-items: center; gap: 10px; }
.filter-bar input, .filter-bar select, .filter-bar button { margin: 0; }
.status-up, .status-down, .status-unknown { display: inline-flex; align-items: center; gap: 6px; color: var(--unknown); font-weight: 600; font-size: 12px; }
.status-up { color: var(--good); }
.status-down { color: var(--bad); }
.status-up::before, .status-down::before, .status-unknown::before { content: ''; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
td.status-up, td.status-down, td.status-unknown { display: table-cell; }
td.status-up::before, td.status-down::before, td.status-unknown::before { display: inline-block; margin-right: 6px; }
.callout { padding: 18px 20px; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--brand-soft); }
.callout h2 { font-size: 15px; }
.callout p { margin-bottom: 10px; font-size: 13px; }
.callout > :last-child { margin-bottom: 0; }
.dashboard-guides { margin-top: 16px; }
.dashboard-guides .callout { margin: 0; }
.dashboard-guides:has(> :only-child) { grid-template-columns: 1fr; }
.setup-choice { display: block; min-height: 210px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); text-decoration: none; }
.setup-choice:hover { border-color: var(--brand); color: var(--ink); box-shadow: var(--shadow); }
.setup-choice p { color: var(--muted); }
.setup-choice strong { color: var(--brand); font-size: 13px; }
.setup-choice-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 15px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 750; }
.setup-list { margin: 14px 0 0; padding-left: 20px; }
.setup-list li { margin: 10px 0; padding-left: 3px; }
.health-grid, .reliability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 15px 0; }
.health-item, .reliability-item { padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); min-width: 0; }
.health-item strong, .health-item small, .reliability-item strong, .reliability-item small, .reliability-item .muted { display: block; }
.health-item strong, .reliability-item strong { font-size: 12px; }
.health-item [class^="status-"], .reliability-item [class^="status-"] { margin: 5px 0; }
.health-item small, .reliability-item small { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.reliability-value { font-size: 24px; font-weight: 700; letter-spacing: -.04em; }
.history-visuals { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; padding: 17px; margin: 16px 0; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.history-visuals h3 { font-size: 12px; }
.history-visuals p { font-size: 12px; margin: 0; }
.availability-strip { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; margin-top: 14px; }
.availability-cell { height: 24px; border-radius: 3px; background: var(--line); }
.availability-cell.status-up { background: var(--good); }
.availability-cell.status-down { background: var(--bad); }
.availability-cell::before { display: none; }
.response-chart { display: block; width: 100%; height: 64px; margin-top: 12px; overflow: visible; }
.event-list { display: grid; }
.event-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.event-item:last-child { border-bottom: 0; }
.event-item small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.empty-state { text-align: center; padding: 40px 18px; }
.empty-state h2 { font-size: 19px; }
.empty-state p { color: var(--muted); max-width: 430px; margin: 0 auto 17px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
.pagination-link { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--card); font-size: 12px; font-weight: 600; text-decoration: none; }
.pagination-link:hover { background: var(--brand-soft); color: var(--brand); }
.pagination-disabled { color: var(--muted); opacity: .5; }
.pagination-summary { color: var(--muted); font-size: 12px; }
.mobile-menu { display: none; }
.mobile-menu, .profile-menu { position: relative; }
.mobile-menu summary, .profile-menu summary, details > summary.button { list-style: none; }
.mobile-menu summary::-webkit-details-marker, .profile-menu summary::-webkit-details-marker, details > summary.button::-webkit-details-marker { display: none; }
.menu-toggle, .profile-toggle { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink); cursor: pointer; }
.menu-toggle:hover, .profile-toggle:hover, details[open] > .profile-toggle, details[open] > .menu-toggle { background: var(--brand-soft); border-color: var(--brand); }
.menu-toggle svg, .profile-toggle svg { width: 19px; height: 19px; }
.mobile-menu-panel, .profile-menu-panel { position: absolute; top: calc(100% + 12px); right: 0; width: min(300px, calc(100vw - 32px)); padding: 7px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); box-shadow: 0 12px 35px rgb(12 30 20 / 15%); }
.mobile-menu-panel a { display: block; padding: 11px 12px; border-radius: 7px; color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.mobile-menu-panel a:hover, .mobile-menu-panel a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.mobile-menu-panel form { padding: 6px 12px; }
.mobile-menu-panel select { margin: 0; }
.profile-menu-identity { display: flex; align-items: center; gap: 10px; padding: 12px 10px 16px; }
.profile-menu-identity > span:last-child { min-width: 0; }
.profile-menu-identity strong, .profile-menu-identity small, .profile-menu-item-copy strong, .profile-menu-item-copy small { display: block; }
.profile-menu-identity strong { font-size: 13px; }
.profile-menu-identity small, .profile-menu-item-copy small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu-avatar, .profile-menu-item-icon { display: grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px; }
.profile-menu-avatar { background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 750; }
.profile-menu-item, .profile-menu-appearance { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: var(--ink); text-align: left; text-decoration: none; }
.profile-menu-item:hover, .profile-menu-item[aria-current="page"] { background: var(--brand-soft); color: var(--ink); }
.profile-menu-item-icon { color: var(--muted); background: var(--surface); }
.profile-menu-item-icon svg { width: 17px; height: 17px; }
.profile-menu-item-copy { flex: 1; min-width: 0; }
.profile-menu-item-copy strong { font-size: 12px; font-weight: 650; }
.profile-menu-chevron { color: var(--muted); font-size: 21px; }
.profile-menu-appearance { cursor: default; }
.profile-menu-panel form { margin: 0; }
.profile-logout { color: var(--bad); }
.profile-logout .profile-menu-item-icon { background: var(--bad-bg); color: var(--bad); }
.profile-logout:hover { background: var(--bad-bg); color: var(--bad); }
.menu-divider { height: 1px; background: var(--line); margin: 6px 8px; }
.theme-switch { position: relative; display: inline-flex; align-items: center; justify-content: space-between; flex: 0 0 auto; width: 64px; min-width: 64px; height: 32px; min-height: 32px; padding: 3px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--muted); box-shadow: none; }
.theme-switch:hover { background: var(--brand-soft); color: var(--brand); }
.theme-switch-icon { display: grid; place-items: center; width: 24px; height: 24px; z-index: 1; }
.theme-switch-icon svg { width: 14px; height: 14px; }
.theme-switch-thumb { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 4px rgb(0 0 0 / 18%); transition: transform .2s; }
:root[data-theme="dark"] .theme-switch-thumb { transform: translateX(32px); }
.theme-light-icon { color: #98713c; }
:root[data-theme="dark"] .theme-light-icon { color: var(--muted); }
:root[data-theme="dark"] .theme-dark-icon { color: #dfd6a3; }
.settings-shell { max-width: 960px; margin: 0 auto; }
.settings-sheet { padding: 0; overflow: hidden; }
.settings-row { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; padding: 25px 28px; border-bottom: 1px solid var(--line); }
.settings-row:last-child { border-bottom: 0; }
.settings-row > div, .settings-row > form { min-width: 0; }
.settings-row-heading h2 { font-size: 14px; margin-bottom: 5px; }
.settings-row-heading p { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.settings-row-body { max-width: 500px; }
.settings-row-body p:last-child { margin-bottom: 0; }
.settings-row-body .actions { margin-top: 8px; }
.account-summary { display: flex; align-items: center; gap: 11px; }
.account-summary strong, .account-summary small { display: block; }
.account-summary small { color: var(--muted); overflow-wrap: anywhere; }
.account-summary .profile-menu-avatar { width: 40px; height: 40px; border-radius: 12px; }
.language-setting { display: flex; align-items: flex-end; gap: 10px; }
.language-setting > div { flex: 1; }
.language-setting select { margin-bottom: 0; }
.language-setting button { min-height: 40px; }
.recovery-codes { padding: 16px; margin: 16px 0; border: 1px solid var(--line); border-radius: 9px; background: var(--warning-bg); }
.recovery-codes p { font-size: 12px; }
.recovery-code-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.recovery-code-grid code, .setup-secret { display: block; padding: 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); font-size: 13px; font-weight: 700; text-align: center; overflow-wrap: anywhere; }
.auth-card { max-width: 420px; margin: 42px auto; padding: 28px; }
.auth-card h1 { font-size: 23px; margin: 15px 0 7px; }
.auth-card > p { color: var(--muted); font-size: 13px; }
.auth-card form { margin-top: 22px; }
.auth-card form button { width: 100%; }
.auth-card form + p { margin-top: 20px; text-align: center; font-size: 12px; }
.danger-zone, .page-check-edit { margin: 12px 0; }
.page-check-row { padding: 16px 0; margin-bottom: 12px; border-top: 1px solid var(--line); }
.page-check-row .section-head { margin-bottom: 5px; }
.page-check-row > p { font-size: 12px; margin-bottom: 8px; }
.page-check-row .page-check-edit { margin-bottom: 0; }
details > summary { color: var(--brand); font-weight: 600; cursor: pointer; }
details[open] > summary { margin-bottom: 14px; }
.profile-menu[open] > summary, .mobile-menu[open] > summary { margin-bottom: 0; }
.page-check-edit form, details > form { padding: 16px; margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.attention-list p { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.attention-list p:last-child { border: 0; }
.website-overview > p { font-size: 13px; overflow-wrap: anywhere; }
.website-overview > p:nth-of-type(1) { color: var(--muted); }
.website-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 15px; margin: 15px 0; gap: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.website-summary-grid small, .website-summary-grid strong { display: block; }
.website-summary-grid small { color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.website-summary-grid strong { font-size: 13px; }
.website-alert-setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0 16px; }
.website-alert-setting strong { font-size: 12px; }
.website-alert-setting p { margin: 3px 0; font-size: 12px; }
.website-alert-setting form { flex-shrink: 0; }
.site-footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
@media (max-width: 800px) {
    .nav, main { padding-left: 18px; padding-right: 18px; }
    .nav { min-height: 62px; gap: 12px; }
    .nav-links, .nav-actions { display: none; }
    .mobile-menu { display: block; }
    .header-tools { gap: 7px; }
    .profile-menu-panel { right: -45px; }
    .settings-row { grid-template-columns: 180px minmax(0, 1fr); gap: 20px; padding: 22px; }
}
@media (max-width: 600px) {
    main { padding-top: 23px; padding-bottom: 30px; }
    h1 { font-size: 24px; }
    .brand { font-size: 16px; }
    .brand-mark { width: 30px; height: 30px; }
    .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
    .page-heading .button { flex-shrink: 0; }
    .card { padding: 17px; }
    .grid { gap: 10px; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .metric { min-height: 108px; padding: 12px 10px; }
    .metric-label { font-size: 10px; min-height: 30px; margin: 0; }
    .metric-value, .metric .status-up, .metric .status-down { font-size: 26px; }
    .metric-detail { font-size: 10px; }
    .section-head { align-items: flex-start; gap: 10px; }
    .section-head > button { flex-shrink: 0; }
    .filter-bar { grid-template-columns: minmax(0, 1fr) auto; }
    .filter-bar input { grid-column: 1 / -1; }
    .form-grid { grid-template-columns: 1fr; }
    .website-summary-grid { grid-template-columns: 1fr; gap: 12px; }
    .website-alert-setting { flex-wrap: wrap; }
    .settings-sheet { padding: 0; }
    .settings-row { grid-template-columns: 1fr; padding: 20px; gap: 16px; }
    .settings-row-heading p { max-width: 340px; }
    .settings-row-body { max-width: none; }
    .health-grid, .reliability-grid { gap: 8px; }
    .health-item, .reliability-item { padding: 11px; }
    .history-visuals { grid-template-columns: 1fr; padding: 13px; gap: 20px; }
    .table-scroll table { min-width: 520px; }
    .event-item { grid-template-columns: 1fr; }
    .event-item > span { font-size: 11px; }
    .pagination { justify-content: space-between; gap: 7px; }
    .pagination-summary { font-size: 11px; }
    .auth-card { margin-top: 20px; padding: 23px; }
    .recovery-code-grid { grid-template-columns: 1fr; }
    .site-footer { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.setup-type-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.api-setup { max-width: 850px; margin-inline: auto; }
.api-setup fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.api-setup legend { font-size: 20px; font-weight: 750; letter-spacing: -.03em; padding: 0; margin-bottom: 10px; }
.api-step-bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 20px; }
.api-step-bar > span { display: flex; align-items: center; gap: 7px; padding: 9px; border-bottom: 2px solid var(--line); font-size: 12px; color: var(--muted); }
.api-step-bar > span[data-active="true"] { color: var(--brand); border-color: var(--brand); font-weight: 700; }
.api-step-bar small { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; background: var(--brand-soft); border-radius: 50%; }
.api-pair { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); gap: 10px; }
.api-rule { padding: 16px; margin: 14px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.api-rule-heading, .api-contract-rule { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.api-contract-rule { padding: 12px 0; border-top: 1px solid var(--line); font-size: 13px; }
.api-contract-rule span { flex: 1; }.api-contract-rule small { color: var(--muted); }
.api-monitor-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 20px; border-top: 1px solid var(--line); padding-top: 20px; }
.api-run { border-top: 1px solid var(--line); padding: 14px 0; }.api-run p { font-size: 12px; margin: 7px 0; }.api-rule-results { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.setup-review-list > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }.setup-review-list strong { overflow-wrap: anywhere; font-size: 13px; }
@media (max-width: 800px) { .setup-type-grid-three { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .api-step-bar > span { flex-direction: column; text-align: center; font-size: 10px; padding: 7px 2px; }.api-monitor-actions { grid-template-columns: 1fr; gap: 16px; }.api-contract-rule { flex-wrap: wrap; }.setup-review-list > div { grid-template-columns: 85px minmax(0, 1fr); }.api-pair { gap: 7px; } }
.contact-list-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list-row:last-of-type { border-bottom: 0; }
.contact-destinations { display: grid; gap: 8px; font-size: 12px; min-width: 0; }
.contact-destinations small { display: block; }
.recipient-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 12px 0 18px; }
.recipient-options .checkbox-label { align-items: flex-start; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.recipient-scroll { max-height: 300px; overflow-y: auto; padding: 4px; }
.recipient-picker { margin: 18px 0; }
[data-recipient-choice][hidden] { display: none; }
.channel-actions { margin-top: 18px; }
.compact-website-list { display: flex; flex-wrap: wrap; gap: 8px 16px; max-height: 240px; overflow-y: auto; margin: 14px 0; }
.authenticator-qr { display: block; width: 216px; height: 216px; padding: 8px; background: white; border-radius: 10px; margin: 12px 0; }
.delivery-table .table-subtitle { max-width: none; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
@media (max-width: 900px) {
    .table-scroll .delivery-table { min-width: 0; }
    .delivery-table thead { display: none; }
    .delivery-table tbody { display: grid; gap: 12px; }
    .delivery-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
    .delivery-table td { min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
    .delivery-table td:first-child { order: 0; color: var(--muted); font-size: 11px; }
    .delivery-table td:nth-child(3) { order: 1; text-align: right; font-size: 11px; }
    .delivery-table td:nth-child(2) { order: 2; grid-column: 1 / -1; }
    .delivery-table td:last-child { order: 3; grid-column: 1 / -1; padding-top: 6px; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) { .contact-list-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; } .contact-destinations { grid-row: 2; grid-column: 1 / -1; } .recipient-options { grid-template-columns: minmax(0, 1fr); } }

/* Compact, keyboard-accessible setup and verification surfaces. */
[hidden] { display: none !important; }
.setup-progress { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 20px; list-style: none; }
.setup-progress li { padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 13px; }
.setup-progress [aria-current="step"] { color: var(--text); background: var(--surface); box-shadow: inset 0 -2px var(--accent, #239b83); }
.setup-review { display: grid; grid-template-columns: minmax(90px, .35fr) minmax(0, 1fr); gap: 10px 18px; font-size: 14px; }
.setup-review dt { color: var(--muted); }.setup-review dd { margin: 0; overflow-wrap: anywhere; }
.telegram-invitation { display: grid; grid-template-columns: minmax(0, 1fr) 216px; gap: 20px; align-items: center; }
.telegram-invitation img { max-width: 100%; border-radius: 8px; background: white; }
.telegram-invitation code { word-break: break-all; }
.actions > select { width: auto; flex: 1; min-width: 140px; }
.contact-list-row input[type="checkbox"] { flex: 0 0 auto; }
@media (max-width: 640px) { .telegram-invitation { grid-template-columns: minmax(0, 1fr); } .telegram-invitation img { width: 168px; height: 168px; justify-self: center; } .setup-progress { gap: 5px; } .setup-progress li { padding: 6px 8px; font-size: 12px; } }

/* Guided setup: a quiet rail, one focused panel, and deliberate secondary actions. */
.setup-shell { max-width: 1040px; margin: 12px auto 40px; }
.setup-heading { margin-bottom: 30px; }
.setup-heading h1 { margin: 7px 0 8px; font-size: 30px; letter-spacing: -.035em; }
.setup-heading p { margin: 0; max-width: 640px; color: var(--muted); font-size: 14px; }
.setup-eyebrow { display: block; font-size: 10px; line-height: 1.5; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
[data-theme="dark"] .setup-eyebrow { color: var(--good); }
.setup-layout { display: grid; grid-template-columns: 218px minmax(0, 1fr); gap: 34px; align-items: start; }
.setup-main { min-width: 0; }
.setup-rail { padding-top: 10px; }
.setup-step-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.setup-step-list li > div, .setup-step-list li > a { display: flex; align-items: center; gap: 12px; padding: 13px 12px; color: var(--muted); text-decoration: none; border-radius: 12px; }
.setup-step-number { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; font-size: 12px; font-weight: 650; background: var(--card); }
.setup-step-copy { min-width: 0; }.setup-step-copy strong { display: block; font-size: 13px; color: var(--ink); font-weight: 600; }.setup-step-copy small { display: block; margin-top: 3px; font-size: 11px; line-height: 1.5; }
.setup-step-list [aria-current="step"] { background: var(--brand-soft); }
.setup-step-list [aria-current="step"] .setup-step-number { background: var(--brand); color: var(--card); border-color: var(--brand); }
.setup-step-list a:hover { background: var(--surface); }
.setup-rail-note { padding: 15px 12px; margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.setup-panel { padding: 30px; box-shadow: 0 8px 30px rgb(20 45 34 / 3%); }
.setup-panel-heading { margin-bottom: 18px; }.setup-panel-heading h2 { font-size: 22px; margin: 7px 0 0; letter-spacing: -.025em; }
.setup-intro { color: var(--muted); font-size: 13px; line-height: 1.7; margin-bottom: 24px; }
.setup-panel .form-section { border: 0; padding: 0; margin: 0; }.setup-panel .form-section > legend { display: none; }
.setup-panel .form-section > .muted { margin-bottom: 22px; font-size: 13px; }
.setup-panel label { font-weight: 600; }.setup-panel input:not([type="checkbox"]):not([type="hidden"]), .setup-panel select { min-height: 44px; }
.setup-panel .help-text, .setup-panel .muted { font-size: 12px; }
.setup-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.setup-actions > .setup-text-action { margin-right: auto; }
.setup-actions > button:not(.setup-text-action), .setup-actions > .button { min-height: 42px; padding: 10px 18px; gap: 16px; }
.setup-text-action, button.setup-text-action { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 0; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 550; text-decoration: none; }
.setup-text-action:hover, button.setup-text-action:hover { background: transparent; color: var(--ink); text-decoration: underline; }
.setup-quiet-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding: 0 4px; color: var(--muted); font-size: 11px; }
.setup-quiet-actions form { margin: 0; }
.setup-summary { display: grid; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(130deg, var(--brand-soft), var(--surface)); overflow-wrap: anywhere; }.setup-summary strong { font-size: 17px; }.setup-summary small { color: var(--muted); font-size: 12px; }
.setup-disclosure { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 15px; }
.setup-disclosure > summary { cursor: pointer; color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.6; }
.setup-disclosure[open] > summary { margin-bottom: 18px; }.setup-disclosure p { font-size: 12px; }.setup-disclosure .form-grid { gap: 0 12px; }
.setup-panel .setup-disclosure > form { padding: 0; margin-top: 18px; border: 0; background: transparent; }
.setup-advanced { margin-top: 26px; }.setup-option { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }.setup-option[open] { background: var(--card); }
.setup-option .form-section > legend { display: none; }.setup-option .form-section > .muted { margin-bottom: 18px; }
.setup-channels { display: grid; gap: 16px; }.setup-channel { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; }.setup-channel h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; }.setup-channel .section-head { gap: 8px; }.setup-channel .actions button { font-size: 12px; }
.setup-channel-icon { display: flex; width: 32px; height: 32px; padding: 7px; border-radius: 9px; color: var(--brand); background: var(--brand-soft); }.setup-channel-icon svg { width: 100%; height: 100%; }
.setup-status { display: inline-flex; padding: 4px 8px; border-radius: 20px; background: var(--surface); color: var(--muted); font-size: 10px; white-space: nowrap; }.setup-status.status-up { color: var(--good); background: var(--good-bg); }
.setup-destination { margin-top: 0; font-weight: 600; font-size: 13px; }.setup-footnote { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 16px 0 0; }
.setup-type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }.setup-type-card { display: flex; flex-direction: column; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--surface); transition: border-color .16s, box-shadow .16s; }.setup-type-card:hover { color: var(--ink); border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }.setup-type-card h3 { margin: 18px 0 10px; font-size: 17px; }.setup-type-card p { color: var(--muted); font-size: 12px; margin: 0 0 24px; line-height: 1.7; }.setup-type-icon { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--brand); }.setup-type-icon svg { width: 100%; height: 100%; }.setup-type-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; width: 100%; color: var(--brand); font-size: 12px; font-weight: 650; }
.setup-review-block { padding: 18px; margin: 14px 0; border: 1px solid var(--line); border-radius: 10px; }.setup-review-block h3 { margin: 0; font-size: 14px; }.setup-review-block .setup-review { margin-bottom: 0; font-size: 12px; gap: 10px 16px; }.setup-review-block .section-head { margin-bottom: 10px; }
.setup-error-summary { padding: 14px 16px; margin-bottom: 22px; border-radius: 9px; background: var(--bad-bg); color: var(--bad); font-size: 12px; }.setup-error-summary ul { margin: 8px 0 0; padding-left: 18px; }
.setup-panel .telegram-invitation { grid-template-columns: minmax(0, 1fr) 144px; gap: 16px; margin-bottom: 0; }.setup-panel .telegram-invitation img { width: 144px; height: 144px; }.setup-panel .telegram-invitation .setup-disclosure { margin-top: 12px; padding-top: 12px; }
@media (max-width: 800px) {
    .setup-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }.setup-rail { padding: 0; }.setup-step-list { display: flex; gap: 6px; }.setup-step-list li { flex: 1; min-width: 0; }.setup-step-list li > div, .setup-step-list li > a { flex-direction: column; padding: 10px 4px; gap: 8px; text-align: center; height: 100%; }.setup-step-copy strong { font-size: 11px; }.setup-step-copy small, .setup-rail-note { display: none; }.setup-heading { margin-bottom: 20px; }.setup-shell { margin-top: 4px; }
}
@media (max-width: 480px) {
    .setup-heading h1 { font-size: 26px; }.setup-heading p { font-size: 13px; }.setup-panel { padding: 20px; }.setup-panel-heading h2 { font-size: 21px; }.setup-channel { padding: 16px; }.setup-actions > button:not(.setup-text-action), .setup-actions > .button { max-width: 100%; gap: 10px; padding: 10px 14px; }.setup-type-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }.setup-type-card { padding: 18px; }.setup-type-card h3 { margin-top: 12px; }.setup-type-card p { margin-bottom: 16px; }.setup-review-block { padding: 14px; }.setup-review { grid-template-columns: minmax(65px, .35fr) minmax(0, 1fr); gap: 8px 10px; }.setup-option { padding: 12px; }.setup-option .schedule-grid { grid-template-columns: minmax(0, 1fr); }.setup-panel .telegram-invitation { grid-template-columns: minmax(0, 1fr); }
}
.setup-completion-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.setup-completion-status small, .setup-completion-status strong { display: block; }
.setup-completion-status small { margin-bottom: 5px; color: var(--muted); }
.setup-completion-status strong { font-size: 14px; overflow-wrap: anywhere; }
.setup-completion-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.social-login-form { margin: 22px 0 0; }
.social-login-button { display: flex; width: 100%; align-items: center; justify-content: center; gap: 12px; min-height: 44px; }
.social-login-button svg { flex: 0 0 18px; }
.social-login-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 11px; }
.social-login-divider::before, .social-login-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.setup-completion .setup-footnote { margin-bottom: 0; }
@media (max-width: 480px) {
    .setup-completion-status { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .setup-completion-status > div { display: flex; justify-content: space-between; gap: 16px; }
    .setup-completion-status strong { text-align: right; }
    .setup-completion-actions > .button { max-width: 100%; white-space: normal; }
}

.setup-type-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.server-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.server-summary > * { min-width: 0; }
.server-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-block: 20px; }
.server-metrics > div { display: flex; flex-direction: column; gap: 8px; }
.server-metrics strong { font-size: 1.4rem; letter-spacing: -.04em; }
.server-code { display: block; padding: 12px; overflow-x: auto; font-size: .8rem; background: var(--surface-soft, #edf3f0); border-radius: 10px; max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }
[data-theme="dark"] .server-code { background: #1b2926; }
.server-disk { margin-block: 20px; }
.server-disk meter { display: block; width: 100%; height: 16px; margin: 8px 0; }
.server-summary h2 { font-size: 1.35rem; }
.server-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.server-spark { display: flex; align-items: flex-end; height: 90px; gap: 3px; border-bottom: 1px solid var(--border, #dae5df); }
.server-spark span { display: block; flex: 1; min-width: 1px; max-width: 16px; height: var(--sample-height); background: #4c9b7c; border-radius: 3px 3px 0 0; }
.server-spark .server-spark-missing { background: #989e9c; }
.server-spark .server-check-failed { background: #ce685a; }
.report-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:18px; }
.report-tabs [aria-current="page"] { background:var(--brand); color:var(--surface,#fff); }
.report-filter-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px; }
.report-custom-dates { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:14px; }
.report-custom-dates[hidden] { display:none; }
.report-filters button { margin-top:12px; }
.report-table-wrap { overflow-x:auto; max-width:100%; }
.report-table { min-width:680px; }
.report-mini-timeline,.report-timeline { display:flex; gap:2px; min-width:100px; height:22px; }
.report-mini-timeline span,.report-timeline span { flex:1; min-width:1px; border-radius:3px; }
.report-timeline { margin-top:22px; height:26px; }
.report-timeline+p,.report-incident-trend+p { margin-top:10px; }
.report-state-up { background:#4c9b7c; }
.report-state-down { background:#ce685a; }
.report-state-unknown { background:#919c98; }
.report-state-excluded { background:var(--line,#dae5df); }
.report-method-note { font-size:.86rem; color:var(--muted); border-left:3px solid var(--brand); padding:8px 12px; }
.report-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.report-kpis>div { display:flex; flex-direction:column; gap:6px; min-width:0; }
.report-kpis strong { font-size:1.45rem; letter-spacing:-.04em; overflow-wrap:anywhere; }
.report-kpis small { color:var(--muted); }
.report-summary .metric small { display:block; overflow-wrap:anywhere; font-size:12px; }
.report-statistics>.section-head { flex-wrap:wrap; }
.report-inline-range { display:flex; gap:8px; align-items:center; min-width:0; }
.report-inline-range select { min-width:0; width:auto; flex:1; margin:0; }
.report-chart { padding-top:12px; overflow:hidden; }
.report-chart svg { display:block; width:100%; height:auto; min-height:130px; }
#report-chart-metric { max-width:360px; margin:0; }
.report-incident-row { gap:12px; }
@media(max-width:700px) { .report-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }.report-inline-range { width:100%; }.report-inline-range select { flex:1; }.report-filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:390px) { .report-filter-grid { grid-template-columns:minmax(0,1fr); } }
@media print { .nav,.report-no-print,.report-inline-range,footer { display:none!important; }.card { box-shadow:none; break-inside:avoid; }.report-table-wrap { overflow:visible; }.report-table { min-width:0; } body { background:#fff!important; color:#111!important; }.report-statistics details { display:block; } }
@media(max-width: 700px) { .server-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .server-summary:not(.server-metrics), .setup-type-grid-four { grid-template-columns: minmax(0, 1fr); } }
.report-incident-trend{display:flex;align-items:flex-end;gap:clamp(2px,1vw,12px);height:112px;padding-top:22px;border-bottom:1px solid var(--line)}
.report-incident-trend>div{flex:1;min-width:0;display:flex;align-items:flex-end;height:100%}
.report-incident-trend span{display:block;width:100%;position:relative;background:var(--brand);border-radius:4px 4px 0 0;min-height:4px}
.report-incident-trend small{position:absolute;bottom:calc(100% + 4px);left:0;width:100%;text-align:center;font-size:10px}
@media print {
    :root[data-theme] { color-scheme:light; --card:#fff; --ink:#111; --muted:#555; --line:#ddd; --surface:#fff; --brand:#226b53; --brand-soft:#eff6f2; }
    .report-timeline,.report-mini-timeline,.report-incident-trend { print-color-adjust:exact; -webkit-print-color-adjust:exact; }
}

/* Production UI: compact reading density, clear grouping and progressive disclosure. */
.nav, main { max-width: 1260px; }
.nav { gap: 20px; min-height: 64px; }
.nav-links { gap: 2px; }
.nav-links a { padding: 8px 10px; }
main { padding-top: 24px; }
.page-heading { margin-bottom: 18px; }
.page-heading p { font-size: 12px; }
.card { margin-block: 12px; padding: 18px 20px; }
.card-tight { padding: 13px 16px; }
.metric { min-height: 96px; }
.metric-value { font-size: 28px; }
.section-head { margin-bottom: 10px; }
.section-head > * { min-width: 0; }
.section-head > h2 { margin-bottom: 0; }
.actions { gap: 8px; min-width: 0; }
.actions input:not([type="checkbox"]):not([type="hidden"]), .actions select { width: auto; flex: 1 1 170px; margin: 0; min-width: 0; }
.actions > a:not(.button) { font-size: 12px; }
.form-footer, .setup-actions { flex-wrap: wrap; padding-top: 14px; margin-top: 18px; }
button, .button { max-width: 100%; }
.button-quiet { color: var(--brand); background: transparent; border-color: transparent; min-height: 32px; padding: 5px 8px; }
.button-quiet:hover { color: var(--brand); background: var(--brand-soft); }
.icon-button { width: 32px; min-width: 32px; min-height: 32px; padding: 4px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; margin-inline: 5px; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; font-weight: 650; line-height: 1.4; background: var(--surface); white-space: nowrap; }
small { color: var(--muted); font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
input, select, textarea { min-height: 38px; margin-bottom: 13px; }
select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2365716d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
:root[data-theme="dark"] select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a0ada5' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); }
select[multiple] { background-image: none; padding-right: 11px; }
textarea { resize: vertical; min-height: 100px; }
fieldset { min-width: 0; }
label:has(input[type="checkbox"]), label:has(input[type="radio"]) { gap: 8px; }
.checkbox-label > span { min-width: 0; }
form small { display: block; line-height: 1.5; }
.help-text { margin-top: 0; }
input + .help-text, select + .help-text, textarea + .help-text { margin-top: -7px; }
.form-grid { gap: 0 16px; }
.form-section { margin-top: 16px; padding-top: 16px; }
.form-section > p { font-size: 12px; }
.form-page { max-width: 980px; margin-inline: auto; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filter-bar > input { flex: 1 1 240px; width: auto; }
.filter-bar > select { width: auto; flex: 0 1 150px; }
.filter-bar > button { flex: 0 0 auto; }
.list-options { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.list-options label { color: var(--muted); font-size: 10px; }
.list-options select { width: auto; min-width: 85px; margin: 3px 0 0; }
.list-filter { padding: 12px 16px; }
.list-filter .filter-bar { align-items: flex-end; }
.list-filter .filter-bar > input, .list-filter .filter-bar > select { margin-bottom: 0; }
.result-summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 10px 0; color: var(--muted); font-size: 11px; }
th, td { padding: 9px 11px; }
th { font-size: 10px; padding-block: 9px; }
td .actions { flex-wrap: nowrap; }
.table-subtitle { margin-top: 2px; line-height: 1.45; }
.table-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 8px; }
.table-tools input { max-width: 250px; margin: 0; min-height: 32px; padding-block: 6px; font-size: 12px; }
.table-tools span { font-size: 10px; white-space: nowrap; }
.table-sort { min-height: 0; padding: 0; background: transparent; color: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; text-transform: inherit; border-radius: 2px; justify-content: flex-start; }
.table-sort:hover { background: transparent; color: var(--brand); }
.table-sort::after { content: '↕'; opacity: .4; font-size: 12px; }
[aria-sort="ascending"] .table-sort::after { content: '↑'; opacity: 1; }
[aria-sort="descending"] .table-sort::after { content: '↓'; opacity: 1; }
.bulk-toolbar { padding: 9px 0; font-size: 12px; }
.bulk-toolbar button { min-height: 32px; font-size: 12px; }
.contact-list-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto; padding: 12px 0; gap: 12px; }
.contact-list-row > * { min-width: 0; }
.contact-list-row strong { font-size: 13px; }
.contact-destinations { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; font-size: 11px; }
.contact-destinations > span { min-width: 0; }
.contact-destinations .status-up { font-size: 10px; }
.contact-default { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-default label { font-size: 12px; }
.contact-default small { margin-top: 7px; }
.contact-default select { flex: 1; max-width: 420px; }
.recipient-picker { margin: 12px 0; }
.recipient-options { gap: 8px; margin-block: 8px 12px; }
.recipient-options .checkbox-label { display: flex; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 10px; min-height: 44px; font-size: 12px; }
.recipient-options .checkbox-label:has(:checked) { border-color: var(--brand); background: var(--brand-soft); }
.recipient-options small { display: block; margin-top: 2px; font-size: 10px; }
.recipient-picker input[type="search"] { margin-bottom: 8px; }
.recipient-scroll { max-height: 230px; }
.recipient-email { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); margin-bottom: 12px; }
.recipient-email .checkbox-label { align-items: flex-start; margin: 0; padding: 0; }
.recipient-summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.recipient-summary .badge { margin: 0; }
.channel-actions { margin-top: 12px; }
.callout { padding: 12px 15px; margin-block: 12px; font-size: 12px; }
.callout.error { background: var(--bad-bg); }
.website-summary-grid { gap: 10px; padding: 12px; margin: 12px 0; }
.website-overview .website-alert-setting { padding-bottom: 0; }
.website-overview > p { font-size: 12px; margin-bottom: 8px; }
.website-overview .help-text { margin-bottom: 0; }
.website-alert-setting { padding-top: 4px; }
.website-alert-setting button { font-size: 12px; min-height: 34px; }
.health-grid { gap: 0 18px; margin: 12px 0; }
.health-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: 3px 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 11px 0; background: transparent; }
.health-item > [class^="status-"] { margin: 0; font-size: 11px; white-space: nowrap; }
.health-item small { grid-column: 1 / -1; line-height: 1.45; }
.health-grid > .health-item:last-child { border-bottom: 0; }
.health-footnote { margin-top: 8px; }
.server-overview { gap: 10px; }
.server-overview .card { margin: 0; }
.server-overview h2 { font-size: 18px; margin-top: 4px; }
.server-overview p { font-size: 11px; margin-bottom: 4px; }
.server-metrics { gap: 12px; margin-block: 12px; }
.server-metrics > div { gap: 4px; padding-inline-end: 10px; border-right: 1px solid var(--line); }
.server-metrics > div:last-child { border-right: 0; }
.server-metrics strong { font-size: 21px; }
.server-disk { padding-block: 10px; margin: 0; border-top: 1px solid var(--line); }
.server-disk .section-head { margin: 0; font-size: 12px; }
.server-disk meter { height: 12px; margin: 4px 0; }
.check-list { display: grid; gap: 10px; margin: 12px 0; }
.check-card { border: 1px solid var(--line); border-radius: 10px; padding: 13px; background: var(--surface); }
.check-card-header { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: start; gap: 10px; }
.check-icon { display: grid; place-items: center; width: 32px; height: 32px; color: var(--brand); background: var(--brand-soft); border: 1px solid var(--line); border-radius: 8px; }
.check-icon svg { width: 18px; height: 18px; }
.check-card-header h3 { font-size: 13px; margin: 0; }
.check-card-header small { display: block; overflow-wrap: anywhere; }
.check-card-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 7px 0 0 42px; font-size: 11px; }
.check-card-meta .badge { margin: 0; }
.check-card .check-disclosures { display: grid; gap: 0; margin-top: 10px; border-top: 1px solid var(--line); }
.check-disclosures > details { padding: 8px 0 0; margin-top: 0; border-top: 0; }
.check-disclosures summary { font-size: 11px; color: var(--muted); }
.check-disclosures summary:hover { color: var(--brand); }
.check-disclosures .server-spark { height: 48px; margin: 8px 0; }
.check-disclosures form { background: var(--card); margin-top: 10px; }
.check-list-tools { display: flex; gap: 8px; align-items: center; }
.check-list-tools input { flex: 1; margin: 0; min-width: 0; }
.check-list-tools select { width: auto; margin: 0; max-width: 150px; }
.check-list-tools small { white-space: nowrap; }
.workspace-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 12px; }
.workspace-tabs { display: flex; gap: 3px; overflow-x: auto; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); scrollbar-width: thin; max-width: 100%; }
.workspace-tab { flex: 0 0 auto; color: var(--muted); background: transparent; border-radius: 6px; min-height: 32px; padding: 6px 12px; font-size: 12px; }
.workspace-tab:hover { color: var(--brand); background: var(--surface); }
.workspace-tab[aria-selected="true"] { color: var(--brand); background: var(--brand-soft); }
.workspace-customize { min-height: 32px; font-size: 11px; white-space: nowrap; }
.section-picker { display: none; }
.health-expand { min-height: 32px; font-size: 11px; }
.workspace-panel { min-width: 0; outline-offset: 5px; }
.workspace-panel > .card:first-child { margin-top: 0; }
.form-tabs { margin-bottom: 18px; }
.api-step-bar [role="tab"] { cursor: pointer; border-radius: 6px 6px 0 0; }
.api-step-bar [role="tab"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.health-context { max-width: 360px; }
.ui-tab-hidden { display: none !important; }
.layout-dialog { width: min(520px, calc(100vw - 28px)); max-height: calc(100dvh - 40px); padding: 20px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 70px rgb(0 0 0 / 20%); }
.layout-dialog::backdrop { background: rgb(12 25 18 / 50%); }
.layout-options { display: grid; max-height: 55dvh; overflow-y: auto; }
.layout-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.layout-option label { font-size: 12px; }
.settings-row { grid-template-columns: 190px minmax(0, 1fr); gap: 24px; padding: 20px 24px; }
.settings-sheet > .form-tabs { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; padding: 10px; }
.settings-sheet .settings-row { border-bottom: 0; }
.settings-row-body { max-width: 560px; }
.report-kpis { gap: 12px; }
.report-kpis strong { font-size: 21px; }
.report-chart svg { min-height: 100px; max-height: 180px; }
.report-method-note { font-size: 11px; padding: 6px 10px; }
.report-inline-range { max-width: 340px; }
.report-table-wrap .table-scroll { overflow: visible; }
.setup-heading { margin-bottom: 22px; }
.setup-panel { padding: 24px; }
.setup-intro { margin-bottom: 18px; }
.setup-list li { margin-block: 7px; }
.setup-disclosure { margin-top: 14px; padding-top: 12px; }
.setup-step-list li > div, .setup-step-list li > a { padding-block: 10px; }
.mobile-nav-items { display: none; }
.profile-menu-panel { max-height: calc(100dvh - 88px); overflow-y: auto; }
.profile-menu-identity { padding-bottom: 10px; }
.profile-menu-item, .profile-menu-appearance { min-height: 48px; padding: 7px 9px; }
.profile-menu-item-copy strong { font-size: 12px; }
.site-footer { margin-top: 24px; }
@media (max-width: 1050px) {
    .nav { gap: 12px; }
    .nav-links a { padding: 8px; font-size: 12px; }
}
@media (max-width: 900px) {
    .nav-links { display: none; }
    .mobile-nav-items { display: block; }
    .profile-menu-panel { right: 0; width: min(340px, calc(100vw - 32px)); }
    .header-tools > .mobile-menu { display: none; }
}
@media (max-width: 700px) {
    .nav, main { padding-inline: 14px; }
    main { padding-top: 18px; }
    .card { padding: 15px; }
    .card-tight { padding: 12px; }
    .section-head { flex-wrap: wrap; }
    .section-head > .badge, .section-head > [class^="status-"] { flex: 0 0 auto; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
    .workspace-toolbar { display: flex; gap: 8px; margin-top: 14px; }
    .workspace-toolbar > .workspace-tabs, .form-tabs { display: none; }
    .section-picker { display: block; width: auto; min-width: 0; flex: 1; margin: 0; min-height: 40px; font-size: 16px; }
    .form-section-picker { width: 100%; margin-bottom: 16px; }
    .settings-sheet > .form-section-picker { width: calc(100% - 30px); margin: 15px 15px 0; }
    .workspace-customize { justify-self: end; }
    .workspace-tabs { width: 100%; }
    .workspace-tab { min-height: 40px; padding-inline: 11px; }
    .page-heading .actions { width: 100%; }
    .page-heading .actions > a.button, .page-heading .actions > form { flex: 1; }
    .page-heading .actions > form button { width: 100%; }
    .filter-bar > input { flex-basis: 100%; }
    .list-options { width: 100%; gap: 8px; }
    .list-options > label { flex: 1; min-width: 0; }
    .list-options select { width: 100%; min-width: 0; }
    .filter-bar > select { flex: 1; }
    .filter-bar > button { min-height: 40px; }
    .health-grid { grid-template-columns: minmax(0, 1fr); }
    .health-item { padding-block: 9px; }
    .website-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px; }
    .website-summary-grid strong { font-size: 11px; overflow-wrap: anywhere; }
    .website-summary-grid small { font-size: 10px; }
    .server-summary.server-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .server-overview .card { padding: 10px; }
    .server-overview h2 { font-size: 13px; overflow-wrap: anywhere; }
    .server-overview small { font-size: 10px; }
    .server-overview .summary-explanation { display: none; }
    .contact-list-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
    .contact-destinations { grid-column: 1 / -1; grid-row: 2; gap: 8px; }
    .contact-list-row > .actions:last-child { flex-wrap: wrap; }
    .table-scroll .responsive-table { min-width: 0; }
    .responsive-table thead { display: table-header-group; }
    .responsive-table thead tr { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
    .responsive-table thead th { padding: 4px 7px; border: 0; border-radius: 5px; font-size: 9px; }
    .responsive-table tbody { display: grid; gap: 8px; }
    .responsive-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
    .responsive-table tbody td { display: block; min-width: 0; padding: 0; border: 0; font-size: 12px; overflow-wrap: anywhere; }
    .responsive-table tbody td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 9px; font-weight: 500; margin-bottom: 3px; }
    .responsive-table tbody td:first-child:not(:has(input[type="checkbox"])) { grid-column: 1 / -1; }
    .responsive-table .table-subtitle { max-width: none; white-space: normal; overflow-wrap: anywhere; }
    .website-table tbody tr:has(input[type="checkbox"]) { grid-template-columns: 24px minmax(0, 1fr); }
    .website-table tbody tr:has(input[type="checkbox"]) td:first-child { grid-row: 1 / 4; }
    .website-table tbody tr:has(input[type="checkbox"]) td:nth-child(n+2) { grid-column: 2; }
    .delivery-table tbody td:nth-child(3) { order: initial; text-align: left; }
    .delivery-table tbody td:nth-child(2) { order: initial; grid-column: auto; }
    .delivery-table tbody td:last-child { order: initial; grid-column: auto; padding-top: 0; border-top: 0; }
    .table-tools { gap: 8px; flex-wrap: wrap; }
    .table-tools input { max-width: none; flex: 1 1 160px; }
    .table-tools span { font-size: 10px; }
    .bulk-toolbar { gap: 6px; flex-wrap: wrap; }
    .bulk-toolbar .checkbox-label { font-size: 11px; }
    .bulk-toolbar button { font-size: 11px; }
    .settings-row { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px; }
    .form-tabs { flex-wrap: nowrap; }
    .settings-row-body { max-width: none; }
    .report-kpis strong { font-size: 18px; }
    .report-filter-grid { gap: 10px; }
    .check-list-tools { flex-wrap: wrap; }
    .check-list-tools input { flex-basis: 100%; }
    .check-list-tools select { flex: 1; max-width: none; }
    .check-card-header { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; }
    .check-icon { width: 28px; height: 28px; }
    .check-card-meta { margin-left: 36px; }
    .setup-panel { padding: 18px; }
    .setup-actions { gap: 10px; }
    input, select, textarea { font-size: 16px; }
    .table-tools input, .filter-bar input, .list-options select { font-size: 16px; }
    .actions button, .actions .button { min-height: 40px; }
    .layout-option .icon-button { min-width: 38px; min-height: 38px; }
    .site-footer { font-size: 10px; }
}
@media print {
    .workspace-toolbar, .table-tools, .layout-dialog { display: none !important; }
    .workspace-panel[hidden], .ui-tab-hidden { display: block !important; }
}

/* Knowledge base: short, task-focused guides with a readable article column. */
.kb-heading { margin-bottom: 18px; }
.kb-search-panel { padding: 20px; margin-bottom: 22px; }
.kb-search-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 230px) auto; gap: 12px; align-items: end; }
.kb-search-form label { margin-top: 0; }
.kb-search-form input, .kb-search-form select { margin-bottom: 0; width: 100%; }
.kb-search-form button { min-height: 42px; }
.kb-welcome { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 18px 20px; margin-bottom: 24px; background: var(--brand-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.kb-welcome p { margin: 4px 0 0; color: var(--muted); }
.kb-welcome .button { flex-shrink: 0; }
.kb-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kb-category-card { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; box-shadow: var(--shadow); transition: border-color .15s, background .15s; }
.kb-category-card:hover, .kb-guide-card:hover { border-color: var(--brand); background: var(--surface); }
.kb-category-card > span:last-child { min-width: 0; }
.kb-category-card strong { display: block; color: var(--ink); line-height: 1.35; }
.kb-category-card small { display: block; color: var(--muted); margin-top: 5px; font-size: 12px; line-height: 1.5; }
.kb-category-icon { display: grid; place-items: center; width: 32px; height: 32px; background: var(--brand-soft); border-radius: 9px; flex-shrink: 0; }
.kb-category-icon svg { width: 19px; height: 19px; }
.kb-category-count { display: block; margin-top: 9px; font-size: 11px; font-weight: 650; }
.kb-topics, .kb-quick-guides, .kb-results { margin-bottom: 26px; }
.kb-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kb-guide-card { display: block; position: relative; padding: 17px 40px 17px 18px; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, background .15s; overflow-wrap: anywhere; scroll-margin-top: 100px; }
.kb-guide-card h3 { color: var(--ink); font-size: 14px; line-height: 1.4; margin: 4px 0; }
.kb-guide-card p { color: var(--muted); margin: 0; font-size: 12px; }
.kb-guide-topic { font-size: 10px; font-weight: 650; color: var(--brand); }
.kb-guide-arrow { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); }
.kb-empty { grid-column: 1 / -1; }
.kb-results .section-head { align-items: center; }
.kb-results .section-head p { margin: 4px 0 0; }
.kb-downloads { margin-top: 22px; padding: 20px; }
.kb-download-list { display: flex; flex-wrap: wrap; gap: 12px; }
.kb-download-list > div { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.kb-download-list .compact-link { font-size: 11px; }
.kb-scope { margin: 16px 0 0; font-size: 11px; }
.kb-breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; color: var(--muted); font-size: 12px; }
.kb-breadcrumbs a { text-decoration: none; }
.kb-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; align-items: start; scroll-margin-top: 95px; }
.kb-article { padding: 28px 32px; min-width: 0; margin: 0; }
.kb-article-heading { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.kb-article-heading h1 { font-size: 28px; line-height: 1.22; margin: 7px 0 12px; }
.kb-article-heading p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.kb-print { font-size: 11px; min-height: 32px; padding: 6px 11px; }
.kb-article-section { padding-top: 24px; scroll-margin-top: 95px; line-height: 1.75; overflow-wrap: anywhere; }
.kb-article-section h2 { font-size: 18px; margin-bottom: 12px; }
.kb-article-section p { margin-bottom: 12px; }
.kb-article-section ul { margin: 0; padding-left: 20px; }
.kb-article-section li { padding-left: 3px; margin-bottom: 9px; }
.kb-steps { list-style: none; counter-reset: guide-step; padding: 0; margin: 0; }
.kb-steps li { counter-increment: guide-step; position: relative; padding: 0 0 0 35px; margin-bottom: 14px; }
.kb-steps li::before { content: counter(guide-step); position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 7px; background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 700; line-height: 1; }
.kb-code { max-width: 100%; overflow-x: auto; margin: 14px 0; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: 12px; line-height: 1.6; }
.kb-note { padding: 12px 15px; margin-top: 14px; background: var(--brand-soft); border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0; font-size: 12px; }
.kb-note p { margin: 4px 0 0; }
.kb-warning { background: var(--warning-bg); border-color: var(--unknown); }
.kb-sidebar { position: sticky; top: 90px; min-width: 0; }
.kb-sidebar .card { padding: 16px; margin-bottom: 12px; }
.kb-sidebar h2 { font-size: 12px; margin: 0 0 9px; }
.kb-sidebar nav a, .kb-mobile-toc nav a { display: block; padding: 7px 9px; border-radius: 6px; text-decoration: none; font-size: 12px; line-height: 1.45; }
.kb-sidebar nav a:hover, .kb-sidebar nav a[aria-current] { background: var(--brand-soft); }
.kb-all-topics { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px !important; }
.kb-mobile-toc { display: none; }
.kb-article-action { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; }
.kb-article-action h2 { font-size: 14px; }
.kb-article-action p { margin: 0; font-size: 12px; }
.kb-back-top { display: inline-block; margin-top: 22px; font-size: 12px; }
.kb-related { margin-top: 26px; }
.kb-related > h2 { margin-bottom: 12px; }
.kb-context-link { display: inline-block; margin-top: 8px; font-size: 12px; }
@media (max-width: 900px) {
    .kb-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kb-article-layout { grid-template-columns: minmax(0, 1fr); }
    .kb-sidebar { display: none; }
    .kb-mobile-toc { display: block; margin-top: 18px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
    .kb-mobile-toc summary { font-weight: 650; font-size: 12px; cursor: pointer; }
    .kb-mobile-toc nav { margin-top: 8px; }
}
@media (max-width: 600px) {
    .kb-search-panel { padding: 16px; }
    .kb-search-form { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .kb-search-form button { width: 100%; }
    .kb-welcome { display: block; padding: 16px; }
    .kb-welcome .button { margin-top: 12px; white-space: normal; }
    .kb-category-grid, .kb-guide-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .kb-category-card { padding: 14px; align-items: center; }
    .kb-category-card small { margin-top: 3px; }
    .kb-category-count { margin-top: 5px; }
    .kb-article { padding: 20px 18px; }
    .kb-article-heading h1 { font-size: 24px; }
    .kb-article-section h2 { font-size: 17px; }
    .kb-article-section { padding-top: 22px; }
    .kb-downloads { padding: 16px; }
    .kb-download-list { display: grid; grid-template-columns: minmax(0, 1fr); }
    .kb-download-list > div { align-items: stretch; }
    .kb-download-list .button { white-space: normal; }
    .kb-download-list .compact-link { text-align: center; }
    .kb-results .section-head { flex-wrap: wrap; gap: 8px; }
}
@media print {
    :root[data-theme] { --warning-bg: #fbf5e6; --unknown: #7a7565; }
    .kb-sidebar, .kb-mobile-toc, .kb-print, .kb-related, .kb-downloads, .kb-article-action, .kb-back-top, .kb-breadcrumbs, .kb-scope { display: none !important; }
    .kb-article-layout { display: block; }
    .kb-article { border: 0; box-shadow: none; padding: 0; break-inside: auto; }
    .kb-article-section { break-inside: avoid; }
    .kb-code { white-space: pre-wrap; overflow-wrap: anywhere; }
}
