/* Visual: one stylesheet for the site and the dashboard. No inline styles anywhere (CSP). */

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f4f4f3;
  --surface-3: #ebebea;
  --border: #e4e4e2;
  --border-strong: #cfcfcc;
  --text: #1b1c1e;
  --text-2: #55585d;
  --text-3: #75787d;
  --ink: #1b1c1e;
  --ink-text: #fafaf9;
  --accent: #5d7a70;
  --accent-soft: #e8efec;
  --focus: #4f7a6c;
  --ok: #2f7a4f;
  --ok-soft: #e6f2ea;
  --warn: #8a6100;
  --warn-soft: #fbf1dc;
  --bad: #b3261e;
  --bad-soft: #fbe9e7;
  --info: #3d5a80;
  --info-soft: #e8eef6;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 1px 1px rgb(0 0 0 / 0.03);
  --shadow-lg: 0 8px 28px rgb(0 0 0 / 0.08), 0 1px 2px rgb(0 0 0 / 0.04);
  --radius: 10px;
  --radius-sm: 7px;
  --radius-lg: 14px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1120px;
  --header-h: 60px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --surface: #17181b;
    --surface-2: #1d1f22;
    --surface-3: #25272b;
    --border: #2a2c30;
    --border-strong: #3a3d42;
    --text: #ececea;
    --text-2: #b0b3b8;
    --text-3: #8d9096;
    --ink: #ececea;
    --ink-text: #141517;
    --accent: #9db8ae;
    --accent-soft: #1f2a26;
    --focus: #9db8ae;
    --ok: #6cc58f;
    --ok-soft: #16261c;
    --warn: #e2b553;
    --warn-soft: #2a2213;
    --bad: #f08b80;
    --bad-soft: #2e1916;
    --info: #9bb6dc;
    --info-soft: #1a2230;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 30px rgb(0 0 0 / 0.45);
    color-scheme: dark;
  }
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 650; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.75rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: .9em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: .05em .35em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
::selection { background: var(--accent-soft); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--text-2); }
.small { font-size: .875rem; }
.tiny { font-size: .8rem; color: var(--text-3); }
.mono { font-family: var(--mono); font-size: .85em; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--ink); color: var(--ink-text); padding: 8px 12px; border-radius: var(--radius-sm); }
.skip:focus { top: 12px; }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 650; text-decoration: none; letter-spacing: -0.01em; font-size: 1.05rem; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav a:not(.btn) { text-decoration: none; color: var(--text-2); padding: .4rem .65rem; border-radius: var(--radius-sm); font-size: .925rem; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav .btn { margin-left: .5rem; }
.site-header .nav-toggle { display: none; margin-left: auto; }
.user-chip { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--text-2); }
.user-chip img { width: 26px; height: 26px; border-radius: 50%; }
.inline-form { display: inline; margin: 0; }

@media (max-width: 760px) {
  .site-header .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 20px 1rem; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .7rem .5rem; }
  .nav .btn { margin: .5rem 0 0; }
  .nav .user-chip { padding: .7rem .5rem; }
}

/* Footer */

.site-footer { border-top: 1px solid var(--border); margin-top: 5rem; padding: 2rem 0 2.5rem; color: var(--text-3); font-size: .875rem; }
.site-footer .wrap { display: flex; gap: 1rem 2rem; flex-wrap: wrap; justify-content: space-between; }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Buttons */

.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  --btn-border: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 38px; padding: 0 1rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-border); border-radius: var(--radius-sm);
  font: 550 .925rem/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .12s ease, border-color .12s ease, color .12s ease, box-shadow .12s ease;
  box-shadow: var(--shadow);
}
.btn:hover { --btn-bg: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { --btn-bg: var(--ink); --btn-fg: var(--ink-text); --btn-border: var(--ink); }
.btn-primary:hover { --btn-bg: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.btn-danger { --btn-fg: var(--bad); --btn-border: color-mix(in srgb, var(--bad) 45%, var(--border)); }
.btn-danger:hover { --btn-bg: var(--bad-soft); }
.btn-ghost { --btn-bg: transparent; --btn-border: transparent; box-shadow: none; color: var(--text-2); }
.btn-ghost:hover { --btn-bg: var(--surface-2); color: var(--text); }
.btn-sm { min-height: 32px; padding: 0 .75rem; font-size: .85rem; }
.btn-lg { min-height: 46px; padding: 0 1.35rem; font-size: 1rem; border-radius: var(--radius); }

/* Cards */

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.35rem; box-shadow: var(--shadow); }
.card + .card { margin-top: 1rem; }
.card-head { display: flex; align-items: center; gap: .9rem; justify-content: space-between; flex-wrap: wrap; margin-bottom: 1rem; }
.card-head h2, .card-head h3 { margin: 0; }
.card-foot { display: flex; justify-content: flex-end; gap: .6rem; flex-wrap: wrap; border-top: 1px solid var(--border); margin: 1.25rem -1.35rem -1.25rem; padding: .9rem 1.35rem; background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }

/* Badges */

.badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600; line-height: 1; padding: .32rem .55rem; border-radius: 999px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge.plain::before { display: none; }
.badge.online, .badge.ok { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.badge.pending, .badge.warn { color: var(--warn); background: var(--warn-soft); border-color: transparent; }
.badge.problem { color: var(--bad); background: var(--bad-soft); border-color: transparent; }
.badge.stopped { color: var(--text-3); }

/* Flash messages */

.flashes { display: grid; gap: .6rem; margin: 1.25rem 0; }
.flash { display: flex; align-items: flex-start; gap: .75rem; padding: .75rem .9rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); font-size: .925rem; }
.flash::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .5em; border-radius: 50%; background: var(--ok); }
.flash.error::before { background: var(--bad); }
.flash.warn::before { background: var(--warn); }
.flash.info::before { background: var(--info); }
.flash p { margin: 0; flex: 1; }
.flash button { flex: none; background: none; border: 0; color: var(--text-3); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: .1rem .3rem; border-radius: 5px; }
.flash button:hover { color: var(--text); background: var(--surface-2); }
.flash.hide { display: none; }

/* Notices inside pages */

.notice { padding: .85rem 1rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-size: .925rem; }
.notice.warn { background: var(--warn-soft); border-color: transparent; color: var(--text); }
.notice.error { background: var(--bad-soft); border-color: transparent; color: var(--text); }

/* Empty state */

.empty { text-align: center; padding: 2.5rem 1.5rem; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); color: var(--text-2); }
.empty h3 { color: var(--text); margin-bottom: .35rem; }
.empty p { max-width: 46ch; margin: 0 auto 1rem; }

/* Forms */

.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .4rem; }
.field > label, .field-label { font-weight: 600; font-size: .9rem; }
.help { font-size: .825rem; color: var(--text-3); margin: 0; }
.input, .select, .textarea {
  width: 100%; min-height: 40px; padding: .5rem .75rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font: .95rem/1.4 var(--font);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.textarea { min-height: 110px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.select { appearance: none; -webkit-appearance: none; padding-right: 2.2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; }
.select[multiple] { background-image: none; padding-right: .75rem; min-height: 140px; }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--bad); }
.field .error-text { color: var(--bad); font-size: .825rem; margin: 0; }

/* Toggle switch: a real checkbox, styled */
.toggle { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--border); }
.toggle:first-of-type { border-top: 0; padding-top: .25rem; }
.toggle-text { min-width: 0; }
.toggle-text label { font-weight: 600; font-size: .95rem; cursor: pointer; }
.toggle-text .help { margin-top: .15rem; }
.switch { position: relative; flex: none; width: 42px; height: 24px; margin-top: 2px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border-strong); transition: background .15s ease, border-color .15s ease; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .25); transition: transform .15s ease; }
.switch input:checked + span { background: var(--ok); border-color: var(--ok); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + span { opacity: .5; }

/* Lists and tables */

.list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.list > li { display: flex; align-items: center; gap: .85rem; padding: .7rem .9rem; border-top: 1px solid var(--border); }
.list > li:first-child { border-top: 0; }
.list a.item { display: flex; align-items: center; gap: .85rem; flex: 1; min-width: 0; text-decoration: none; }
.list > li:has(a.item):hover { background: var(--surface-2); }
.list .name { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { margin-left: auto; color: var(--text-3); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .925rem; }
th, td { text-align: left; padding: .75rem 1rem; border-top: 1px solid var(--border); vertical-align: top; }
thead th { border-top: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); font-weight: 600; background: var(--surface-2); }
td.c, th.c { text-align: center; }

/* Avatars and icons */

.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; background: var(--surface-3); object-fit: cover; }
.avatar.lg { width: 56px; height: 56px; }
.gicon { width: 32px; height: 32px; border-radius: 9px; flex: none; background: var(--surface-3); object-fit: cover; display: inline-grid; place-items: center; font-size: .75rem; font-weight: 650; color: var(--text-2); }
.gicon.lg { width: 44px; height: 44px; border-radius: 12px; font-size: .9rem; }

/* Public pages */

.hero { padding: clamp(3rem, 2rem + 6vw, 6.5rem) 0 clamp(2.5rem, 2rem + 3vw, 4rem); }
.hero .eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--text-2); border: 1px solid var(--border); background: var(--surface); padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1.25rem; }
.hero h1 { max-width: 17ch; }
.hero .lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.2rem); color: var(--text-2); max-width: 56ch; margin-bottom: 1.75rem; }
.hero .row { gap: .75rem; }

.section { padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0; border-top: 1px solid var(--border); }
.section-head { max-width: 60ch; margin-bottom: 2rem; }
.section-head p { color: var(--text-2); margin: 0; }

.steps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.35rem; box-shadow: var(--shadow); }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--ink-text); font-weight: 650; font-size: .85rem; margin-bottom: .85rem; }
.steps h3 { margin-bottom: .35rem; }
.steps p, .steps ol { color: var(--text-2); font-size: .925rem; margin: 0; }
.steps ol { padding-left: 1.1rem; }
.steps ol li { all: unset; display: list-item; counter-increment: none; }
.steps ol li::before { display: none; }

.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.modules div { padding: 1.1rem 1.2rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 0 -1px -1px 0; }
.modules h3 { margin-bottom: .2rem; font-size: 1rem; }
.modules p { margin: 0; color: var(--text-2); font-size: .9rem; }

.plans td:nth-child(n+2), .plans th:nth-child(n+2) { text-align: center; width: 22%; }
.plans tbody th { font-weight: 500; color: var(--text); background: none; text-transform: none; letter-spacing: 0; font-size: .925rem; }
.plans .yes { color: var(--ok); font-weight: 600; }
.plans .no { color: var(--text-3); }
.plans .hl { background: var(--accent-soft); }

.faq { display: grid; gap: .6rem; max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 1.1rem; }
.faq summary { cursor: pointer; padding: .95rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-3); font-weight: 400; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--text-2); margin: 0 0 1rem; }

.cta { text-align: center; padding: 3rem 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.cta p { color: var(--text-2); }
.cta .row { justify-content: center; }

/* Legal texts */

.prose { max-width: 720px; }
.prose h1 { margin-bottom: .75rem; }
.prose h2 { font-size: 1.25rem; margin-top: 2.25rem; }
.prose h3 { margin-top: 1.5rem; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1em; }
.prose li + li { margin-top: .3rem; }
.prose table { margin: 1rem 0; border: 1px solid var(--border); }

/* Status */

.status-head { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.25rem; border-radius: var(--radius-lg); margin-bottom: 1.25rem; font-weight: 600; }
.status-head.ok { background: var(--ok-soft); color: var(--ok); }
.status-head.warn { background: var(--warn-soft); color: var(--warn); }
.status-head.problem { background: var(--bad-soft); color: var(--bad); }

/* Error page */

.error-page { padding: 5rem 0; text-align: center; }
.error-page .code { font: 600 .85rem var(--mono); color: var(--text-3); letter-spacing: .08em; }
.error-page p { color: var(--text-2); max-width: 46ch; margin: 0 auto 1.5rem; }
.error-page .row { justify-content: center; }

/* Dashboard */

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 2.25rem 0 1.25rem; }
.page-head h1 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); margin: 0; }
.page-head p { margin: .35rem 0 0; color: var(--text-2); }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--text-3); margin-bottom: .5rem; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { color: var(--border-strong); }

.bot-card { padding: 0; overflow: hidden; }
.bot-card .bot-top { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.25rem; }
.bot-card .bot-top h3 { margin: 0; font-size: 1.05rem; }
.bot-card .bot-top .grow > div { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: .2rem; }
.bot-card .list { border: 0; border-top: 1px solid var(--border); border-radius: 0; }
.bot-card .none { border-top: 1px solid var(--border); padding: .9rem 1.25rem; color: var(--text-3); font-size: .9rem; }

.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2rem; align-items: start; padding-top: 1.5rem; }
.sidebar { position: sticky; top: calc(var(--header-h) + 1.25rem); display: grid; gap: 1rem; }
.sidebar .server { display: flex; align-items: center; gap: .7rem; padding: .25rem .25rem .75rem; border-bottom: 1px solid var(--border); }
.sidebar .server .name { font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.sidebar nav { display: grid; gap: 2px; }
.sidebar nav .label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 600; padding: .75rem .65rem .35rem; }
.sidebar nav a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .45rem .65rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--text-2); font-size: .925rem; }
.sidebar nav a:hover { background: var(--surface-2); color: var(--text); }
.sidebar nav a[aria-current="page"] { background: var(--surface-3); color: var(--text); font-weight: 600; }
.sidebar nav a .off { font-size: .72rem; color: var(--text-3); font-weight: 500; }
.sidebar .sidebar-toggle { display: none; }
.content { min-width: 0; padding-bottom: 2rem; }
.content > .page-head { padding-top: .25rem; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; gap: 0; padding-top: 1rem; }
  .sidebar { position: static; }
  .sidebar .sidebar-toggle { display: inline-flex; width: 100%; justify-content: space-between; }
  .sidebar nav { display: none; border: 1px solid var(--border); border-radius: var(--radius); padding: .35rem; background: var(--surface); }
  .sidebar nav.open { display: grid; }
  .content > .page-head { padding-top: 1.25rem; }
}

@media (max-width: 480px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 16px; }
  .card { padding: 1rem; }
  .card-foot { margin: 1rem -1rem -1rem; padding: .8rem 1rem; }
  th, td { padding: .6rem .7rem; }
  .hero .row .btn { flex: 1 1 100%; }
  .bot-card .bot-top { flex-wrap: wrap; }
}

.section-top { margin-top: 2.5rem; }
.h-sub { font-size: 1.05rem; margin: 2rem 0 .85rem; color: var(--text-2); font-weight: 600; }
.h3 { font-size: 1.05rem; }
.section-gap { margin-bottom: 1.25rem; }
a.card-link { text-decoration: none; display: block; transition: border-color .12s ease; }
a.card-link:hover { border-color: var(--border-strong); }
a.card-link h3 { margin-bottom: .2rem; }
a.card-link p { margin: 0; }
.bot-card + .bot-card { margin-top: 1rem; }
.table-wrap + p { margin-top: 1rem; }
