/* The partner docs shell, after the Rheon Mintlify site (rheon.mintlify.site, "mint" theme):
   Inter, indigo primary #4F46E5 / #6366F1, Mintlify's gray scale, a light and a dark theme. */
@font-face {
  font-family: "Inter";
  src: url("/fonts/InterVariable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --primary: #4f46e5; --primary-light: #6366f1; --primary-dark: #4338ca;
  --header-h: 113px;
  --sidebar-w: 256px; --outline-w: 240px;

  --bg: #ffffff; --bg-soft: #f5f4f9; --bg-code: #fafafc;
  --ink: #19181d; --ink-2: #404045; --ink-3: #525256; --muted: #727276; --faint: #a0a0a5;
  --line: #f0f0f5; --line-2: #e0e0e5; --card-line: rgba(15, 15, 25, 0.1);
  --accent: var(--primary); --accent-soft: rgba(79, 70, 229, 0.1);
  --header-bg: rgba(255, 255, 255, 0.92);
  --inline-code-bg: #f5f4f9;
  --shadow: 0 16px 48px rgba(15, 15, 25, 0.12);
  --tk-key: #4338ca; --tk-str: #0a7a52; --tk-num: #b45309; --tk-lit: #be185d; --tk-kw: #7c3aed; --tk-dim: #8a8a90;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0b10; --bg-soft: #16161b; --bg-code: #0f0f14;
  --ink: #e0e0e5; --ink-2: #b4b4b9; --ink-3: #a0a0a5; --muted: #a0a0a5; --faint: #727276;
  --line: #1c1c21; --line-2: #27272c; --card-line: rgba(255, 255, 255, 0.1);
  --accent: var(--primary-light); --accent-soft: rgba(99, 102, 241, 0.12);
  --header-bg: rgba(11, 11, 16, 0.9);
  --inline-code-bg: rgba(255, 255, 255, 0.06);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  --tk-key: #a5b4fc; --tk-str: #86efac; --tk-num: #fcd34d; --tk-lit: #f9a8d4; --tk-kw: #c4b5fd; --tk-dim: #727276;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; font-family: var(--font); color: var(--ink-2); background: var(--bg); min-height: 100vh;
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
[hidden] { display: none !important; }
html.rh-opening .gate { visibility: hidden; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
button { font: inherit; color: inherit; }
a { color: inherit; }
.wrap { max-width: 1472px; margin: 0 auto; padding: 0 48px; }

/* ---------- gate ---------- */
.gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--bg); }
.gate-card { width: 100%; max-width: 420px; background: var(--bg); border: 1px solid var(--card-line); border-radius: 16px;
  padding: 36px 32px 28px; box-shadow: var(--shadow); text-align: center; }
.gate-brand { display: inline-block; font-weight: 700; font-size: 26px; color: var(--ink); text-decoration: none; letter-spacing: -0.025em; }
.gate-card h1 { font-weight: 600; font-size: 22px; color: var(--ink); margin: 20px 0 8px; letter-spacing: -0.01em; }
.gate-card p { color: var(--ink-3); font-size: 15px; line-height: 1.55; margin: 0 0 22px; }
.gate-card label { display: block; text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.gate-card input { width: 100%; height: 44px; padding: 0 14px; font: inherit; font-size: 15px; border: 1px solid var(--line-2);
  border-radius: 12px; background: var(--bg); color: var(--ink); }
.gate-card input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.gate-card button { width: 100%; height: 44px; margin-top: 14px; font-weight: 600; font-size: 15px;
  background: var(--primary); color: #fff; border: 1px solid var(--primary); border-radius: 12px; cursor: pointer; }
.gate-card button:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.gate-card button:disabled { opacity: 0.55; cursor: default; }
.gate-error { color: #dc2626 !important; font-size: 14px !important; margin: 12px 0 0 !important; }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.topbar-row { height: 64px; display: grid; grid-template-columns: 1fr minmax(0, 528px) 1fr; align-items: center; gap: 12px; position: relative; }
.topbar-row::after { content: ""; position: absolute; left: 48px; right: 48px; bottom: 0; border-bottom: 1px solid var(--line); }
.brand { grid-column: 1; grid-row: 1; justify-self: start; font-size: 28px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; line-height: 1; }
.icon-btn.menu-btn { display: none; }
.search-btn { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 8px; width: 100%; height: 40px; padding: 0 12px;
  background: var(--bg); color: var(--muted); border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; font-size: 14px; text-align: left; }
.search-btn:hover { border-color: var(--faint); }
.search-btn svg { width: 16px; height: 16px; flex: none; color: var(--ink-3); }
.search-btn-text { flex: 1; }
.topbar-actions { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 6px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0;
  background: none; border: 0; border-radius: 8px; color: var(--ink-3); cursor: pointer; }
.icon-btn:hover { color: var(--ink); background: var(--bg-soft); }
.icon-btn svg { width: 18px; height: 18px; }
:root[data-theme="dark"] .i-sun, :root:not([data-theme="dark"]) .i-moon { display: none; }
.signout { font-size: 13px; color: var(--muted); background: none; border: 1px solid var(--line-2); border-radius: 8px; padding: 5px 10px; cursor: pointer; }
.signout:hover { color: var(--ink); border-color: var(--faint); }
.tabs { display: flex; gap: 28px; height: 48px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; display: flex; align-items: center; font-size: 15px; font-weight: 500; color: var(--ink-3);
  text-decoration: none; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); font-weight: 600; }
.tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); border-radius: 2px 2px 0 0; }

/* ---------- three columns ---------- */
.layout { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--outline-w); column-gap: 56px; align-items: start; }

.sidebar { position: sticky; top: var(--header-h); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  margin-left: -16px; padding: 36px 4px 48px 16px; scrollbar-width: thin; }
.rh-nav ul { list-style: none; margin: 0; padding: 0; }
.nav-group { margin-bottom: 26px; }
.nav-group-title { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 24px; }
.rh-nav a { display: block; margin-left: -16px; padding: 6px 16px; border-radius: 12px; font-size: 14px; line-height: 24px;
  color: var(--ink-2); text-decoration: none; }
:root[data-theme="dark"] .rh-nav a { color: var(--ink-3); }
.rh-nav a:hover { color: var(--ink); background: var(--bg-soft); }
.rh-nav a.active, :root[data-theme="dark"] .rh-nav a.active { color: var(--accent); background: var(--accent-soft); font-weight: 500; }
/* a nested group folds under its name, Mintlify style (owner decision 2026-10-08) */
.nav-sub summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-left: -16px; padding: 6px 16px; border-radius: 12px; font-size: 14px; line-height: 24px; color: var(--ink-2);
  cursor: pointer; user-select: none; }
:root[data-theme="dark"] .nav-sub summary { color: var(--ink-3); }
.nav-sub summary::-webkit-details-marker { display: none; }
.nav-sub summary::after { content: ""; flex: none; width: 6px; height: 6px; margin-right: 2px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg);
  transition: transform .15s ease; opacity: .7; }
.nav-sub details[open] > summary::after { transform: rotate(45deg); }
.nav-sub summary:hover { color: var(--ink); background: var(--bg-soft); }
.nav-sub summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rh-nav .nav-sub ul { margin: 2px 0 4px 0; padding-left: 16px; border-left: 1px solid var(--line); }
.nav-links { margin-bottom: 24px !important; }
.nav-links a { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.nav-links a::after { content: "\2197"; font-size: 12px; color: var(--faint); }

.content { min-width: 0; max-width: 704px; padding: 40px 0 64px; }
.page-head { margin-bottom: 32px; }
.eyebrow { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--accent); line-height: 20px; }
.page-head h1 { margin: 0; font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); }
.lead { margin: 10px 0 0; font-size: 18px; line-height: 28px; color: var(--ink-3); }

/* ---------- page text ---------- */
.prose { font-size: 16px; line-height: 28px; color: var(--ink-2); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 16px 0; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); font-weight: 600; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2 { margin: 40px 0 12px; font-size: 24px; line-height: 32px; letter-spacing: -0.015em; }
.prose h3 { margin: 32px 0 8px; font-size: 20px; line-height: 28px; letter-spacing: -0.01em; }
.prose h4 { margin: 24px 0 6px; font-size: 16px; line-height: 24px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { margin: 16px 0; padding-left: 24px; }
.prose li { margin: 6px 0; padding-left: 4px; }
.prose li::marker { color: var(--faint); }
.prose hr { border: 0; border-top: 1px solid var(--line-2); margin: 40px 0; }
.prose code { font-family: var(--mono); font-size: 0.875em; background: var(--inline-code-bg); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 5px; overflow-wrap: anywhere; }
.code-block { position: relative; margin: 20px 0; border: 1px solid var(--card-line); border-radius: 16px; background: var(--bg-code); }
.code-block pre { margin: 0; padding: 16px 52px 16px 18px; overflow-x: auto; font-size: 14px; line-height: 24px; }
.code-block pre code { background: none; border: 0; padding: 0; font-size: inherit; color: var(--ink); overflow-wrap: normal; white-space: pre; }
.copy-btn { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--faint); cursor: pointer; }
.copy-btn:hover { color: var(--ink); background: var(--bg-soft); }
.copy-btn.done { color: #16a34a; }
.copy-btn svg { width: 16px; height: 16px; }
.tk-key { color: var(--tk-key); } .tk-str { color: var(--tk-str); } .tk-num { color: var(--tk-num); }
.tk-lit { color: var(--tk-lit); } .tk-kw { color: var(--tk-kw); } .tk-dim { color: var(--tk-dim); }
.table-wrap { margin: 20px 0; overflow-x: auto; border: 1px solid var(--card-line); border-radius: 12px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 22px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
/* an identifier in a table cell keeps its whole width, so a narrow column never splits it mid-word */
.prose td code, .prose th code { overflow-wrap: normal; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose th { font-weight: 600; color: var(--ink); background: var(--bg-soft); }

/* callouts: Note, Info, Tip, Check, Warning, Danger */
.callout { position: relative; margin: 20px 0; padding: 14px 18px 14px 48px; border: 1px solid; border-radius: 16px; font-size: 15px; line-height: 26px; }
.callout::before { content: ""; position: absolute; left: 18px; top: 18px; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.callout > :first-child { margin-top: 0; } .callout > :last-child { margin-bottom: 0; }
.callout p { margin: 8px 0; }
.callout, .callout p, .callout strong, .callout a, .callout code { color: var(--c-ink); }
.callout code { background: transparent; border-color: var(--c-line); }
.callout::before { color: var(--c-icon); }
.callout.note { --c-bg: rgba(14, 165, 233, 0.06); --c-line: rgba(14, 165, 233, 0.22); --c-ink: #0c4a6e; --c-icon: #0ea5e9;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E"); }
.callout.info { --c-bg: rgba(115, 115, 115, 0.05); --c-line: var(--line-2); --c-ink: var(--ink-2); --c-icon: var(--muted);
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E"); }
.callout.tip { --c-bg: rgba(16, 185, 129, 0.06); --c-line: rgba(16, 185, 129, 0.24); --c-ink: #064e3b; --c-icon: #10b981;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3z'/%3E%3C/svg%3E"); }
.callout.check { --c-bg: rgba(34, 197, 94, 0.06); --c-line: rgba(34, 197, 94, 0.24); --c-ink: #14532d; --c-icon: #22c55e;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.callout.warning { --c-bg: rgba(245, 158, 11, 0.07); --c-line: rgba(245, 158, 11, 0.28); --c-ink: #78350f; --c-icon: #f59e0b;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 2.4 17.6A2 2 0 0 0 4.1 20.6h15.8a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0zM12 9v4M12 17h.01'/%3E%3C/svg%3E"); }
.callout.danger { --c-bg: rgba(239, 68, 68, 0.06); --c-line: rgba(239, 68, 68, 0.24); --c-ink: #7f1d1d; --c-icon: #ef4444;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.9 2h8.2L22 7.9v8.2L16.1 22H7.9L2 16.1V7.9zM12 8v4M12 16h.01'/%3E%3C/svg%3E"); }
.callout { background: var(--c-bg); border-color: var(--c-line); }
:root[data-theme="dark"] .callout.note { --c-bg: rgba(14, 165, 233, 0.1); --c-line: rgba(14, 165, 233, 0.3); --c-ink: #bae6fd; }
:root[data-theme="dark"] .callout.info { --c-bg: rgba(255, 255, 255, 0.03); --c-ink: var(--ink-2); }
:root[data-theme="dark"] .callout.tip { --c-bg: rgba(16, 185, 129, 0.1); --c-line: rgba(16, 185, 129, 0.3); --c-ink: #a7f3d0; }
:root[data-theme="dark"] .callout.check { --c-bg: rgba(34, 197, 94, 0.1); --c-line: rgba(34, 197, 94, 0.3); --c-ink: #bbf7d0; }
:root[data-theme="dark"] .callout.warning { --c-bg: rgba(245, 158, 11, 0.1); --c-line: rgba(245, 158, 11, 0.3); --c-ink: #fde68a; }
:root[data-theme="dark"] .callout.danger { --c-bg: rgba(239, 68, 68, 0.1); --c-line: rgba(239, 68, 68, 0.3); --c-ink: #fecaca; }

/* cards */
.card-group { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.card-group.cols-1 { --cols: 1; } .card-group.cols-3 { --cols: 3; } .card-group.cols-4 { --cols: 4; }
.card { display: block; margin: 16px 0; padding: 22px 24px; border: 1px solid var(--card-line); border-radius: 16px;
  background: var(--bg); text-decoration: none !important; color: var(--ink-3); transition: border-color 0.15s; }
.card-group .card { margin: 0; }
a.card:hover { border-color: var(--accent); }
.card-title { margin: 0 0 4px !important; font-size: 16px; font-weight: 600; line-height: 24px; color: var(--ink); }
.card-body { font-size: 15px; line-height: 26px; font-weight: 400; color: var(--ink-3); }
.card-body p { margin: 0; }

/* steps */
.steps { margin: 24px 0; counter-reset: step; }
.step { position: relative; padding: 0 0 20px 44px; counter-increment: step; }
.step::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: flex; align-items: center;
  justify-content: center; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line-2); color: var(--ink); font-size: 13px; font-weight: 600; }
.step::after { content: ""; position: absolute; left: 14px; top: 34px; bottom: 6px; width: 1px; background: var(--line-2); }
.step:last-child::after { display: none; }
.step > h4:first-child { margin: 2px 0 6px; font-size: 16px; line-height: 24px; }
.step > :last-child { margin-bottom: 0; }

/* review marks from build.py --since */
.changed { border-left: 3px solid #f59e0b; padding-left: 12px; }

/* previous / next */
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.pager-link { display: flex; flex-direction: column; gap: 2px; max-width: 48%; text-decoration: none; }
.pager-link.next { margin-left: auto; text-align: right; }
.pager-label { font-size: 13px; color: var(--muted); }
.pager-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.pager-link.prev .pager-title::before { content: "\2190  "; color: var(--faint); }
.pager-link.next .pager-title::after { content: "  \2192"; color: var(--faint); }
.pager-link:hover .pager-title { color: var(--accent); }

/* on this page */
.outline { position: sticky; top: var(--header-h); max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 44px 0 40px; }
.outline.empty { visibility: hidden; }
.outline-title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 14px; font-weight: 500; color: var(--ink); line-height: 24px; }
.outline-title svg { width: 16px; height: 16px; }
.outline ul { list-style: none; margin: 0; padding: 0; }
.outline li a { display: block; padding: 4px 0; font-size: 14px; line-height: 24px; color: var(--ink-3); text-decoration: none; }
:root:not([data-theme="dark"]) .outline li a { color: var(--ink-2); }
.outline li.lvl-3 a { padding-left: 16px; color: var(--muted); }
.outline li a:hover { color: var(--ink); }
.outline li a.active { color: var(--accent) !important; font-weight: 500; }

/* ---------- API reference ---------- */
.api { --scalar-custom-header-height: var(--header-h); min-height: calc(100vh - var(--header-h)); }
.api-status { max-width: 1472px; margin: 0 auto; padding: 40px 48px; color: var(--muted); }
body.on-api .topbar { background: var(--bg); }

/* ---------- search ---------- */
.search-modal { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: center; align-items: flex-start;
  padding: 12vh 16px 16px; background: rgba(10, 10, 15, 0.45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.search-panel { width: 100%; max-width: 640px; max-height: 70vh; display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); border: 1px solid var(--card-line); border-radius: 16px; box-shadow: var(--shadow); }
.search-field { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 56px; border-bottom: 1px solid var(--line-2); }
.search-field svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.search-results a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.search-results a.selected, .search-results a:hover { background: var(--accent-soft); }
.hit-group { display: block; font-size: 12px; font-weight: 500; color: var(--accent); }
.hit-title { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.hit-text { display: block; margin-top: 2px; font-size: 13px; line-height: 20px; color: var(--muted); }
.hit-text mark { background: none; color: var(--ink); font-weight: 600; }
.no-hits { padding: 16px 12px; color: var(--muted); font-size: 14px; }

.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(10, 10, 15, 0.45); }

/* ---------- smaller screens ---------- */
@media (max-width: 1279px) {
  .layout { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .outline { display: none; }
}
@media (max-width: 1023px) {
  .wrap { padding: 0 20px; }
  .topbar-row::after { left: 20px; right: 20px; }
  .topbar-row { grid-template-columns: auto auto 1fr auto; }
  .icon-btn.menu-btn { display: inline-flex; grid-column: 1; grid-row: 1; margin-left: -6px; }
  .brand { grid-column: 2; font-size: 24px; }
  .topbar-actions { grid-column: 4; }
  .search-btn { grid-column: 3; justify-self: end; width: 40px; padding: 0; justify-content: center; border-color: transparent; }
  .search-btn-text { display: none; }
  .layout { display: block; }
  .sidebar { position: fixed; z-index: 50; top: 0; left: 0; bottom: 0; width: 300px; max-width: 85vw; max-height: none;
    margin-left: 0; padding: 24px 20px 40px 36px; background: var(--bg); border-right: 1px solid var(--line-2); transform: translateX(-100%);
    transition: transform 0.2s ease; visibility: hidden; }
  body.nav-open .sidebar { transform: none; visibility: visible; }
  .content { max-width: none; padding-top: 28px; }
  .page-head h1 { font-size: 30px; line-height: 36px; }
  .card-group { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .signout { padding: 5px 8px; font-size: 12px; }
  .pager { flex-direction: column; }
  .pager-link { max-width: none; }
}
