/* Joghurt · shared interface. System fonts, quiet surfaces, purposeful motion. */
:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --bg-panel: #fff;
  --bg-panel-2: #f7f8fa;
  --bg-panel-3: #eceef2;
  --border: #dce0e6;
  --border-soft: #e9ebef;
  --accent: #0071e3;
  --accent-bright: #0066cc;
  --accent-dark: #0059b5;
  --accent-glow: rgba(0,113,227,.12);
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: var(--font-body);
  --text: #1d1d1f;
  --text-muted: #63636b;
  --text-faint: #74747d;
  --success: #19734a;
  --success-glow: rgba(25,115,74,.1);
  --error: #ba2944;
  --error-glow: rgba(186,41,68,.1);
  --teal: #087d83;
  --teal-bright: #086c72;
  --teal-glow: rgba(8,125,131,.12);
  --gold: #946200;
  --gold-bright: #815600;
  --gold-dark: #6e4900;
  --gold-glow: rgba(148,98,0,.1);
  --discord: #515bcd;
  --discord-bright: #464fc0;
  --discord-glow: rgba(81,91,205,.1);
  --twitch: #7b3dd6;
  --twitch-bright: #7030c7;
  --twitch-glow: rgba(123,61,214,.1);
  --icon-obsstudio: #302E31;
  --radius: 24px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(20,30,50,.035);
  --shadow-md: 0 12px 36px rgba(20,30,50,.055);
  --shadow-glow: 0 8px 24px rgba(0,113,227,.09);
  --glow-blue: 0 8px 24px rgba(0,113,227,.09);
  --glass-blur: blur(24px) saturate(160%);
  --ease: cubic-bezier(.22,.61,.36,1);
}
html { scroll-padding-top: 88px; scrollbar-color: #c8c9ce transparent; }
body { font: 400 1rem/1.55 var(--font-body); letter-spacing: -.012em; background: var(--bg); color: var(--text); }
body::before, .dashboard-bg::before, .dashboard-bg::after { content: none; }
.dashboard-bg { background: var(--bg); background-image: none; }
::selection { background: #cbe3ff; color: #16334f; }
::-webkit-scrollbar-thumb { background: #c8c9ce; }
::-webkit-scrollbar-thumb:hover { background: #aaaeb7; }
body a { color: var(--accent); }
body :focus-visible { outline: 3px solid #0071e3; outline-offset: 4px; }
body button, body input, body select, body textarea { font-family: var(--font-body); }
body h1, body h2, body h3, body h4 { font-family: var(--font-body); text-shadow: none; color: var(--text); }
body h1 { font-weight: 650; letter-spacing: -.05em; }
body h2 { letter-spacing: -.04em; }
body h3 { letter-spacing: -.025em; }
body .grad { background: none; -webkit-text-fill-color: currentColor; color: var(--text); }
body .layout { align-items: stretch; }
body .main { position: relative; width: 100%; max-width: 1520px; padding: 48px clamp(24px,4vw,72px) 80px; }
body .page-header { margin: 0 0 36px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
body .main h2, body .page-header h2 { font-size: clamp(1.8rem,3.2vw,2.7rem); line-height: 1.12; font-weight: 650; letter-spacing: -.045em; }
body .page-subtitle { margin: 9px 0 0; font-size: 1rem; color: var(--text-muted); max-width: 750px; line-height: 1.55; }
body .page-header-title { gap: 18px; }
body .page-header-icon { width: 52px; height: 52px; border-radius: 16px; border: 1px solid var(--border-soft); background: #fff; box-shadow: var(--shadow-sm); color: var(--accent); }
body .page-header-icon.discord { background: #eeefff; color: var(--discord); }
body .page-header-icon.twitch { background: #f0e8fb; color: var(--twitch); }
body .section-title { margin: 32px 0 16px; gap: 8px; }
body .section-title h3 { font-size: 1.1rem; font-weight: 600; }
body .section-title > .dot { display: none; }
body .grid { gap: 20px; }
body .card { padding: 26px; background: #fff; background-image: none; border: 1px solid var(--border-soft); border-radius: 22px; box-shadow: var(--shadow-sm); animation: none; }
body .card::before, body .card::after { content: none; }
body .card:hover { transform: none; border-color: var(--border); box-shadow: var(--shadow-sm); }
body .card .label { color: var(--text-muted); font-size: .875rem; letter-spacing: 0; text-transform: none; }
body .card .value { font-size: 2.35rem; letter-spacing: -.045em; font-weight: 650; line-height: 1.25; color: var(--text); font-variant-numeric: tabular-nums; }
body .card h3 { font-weight: 600; }
body .icon-badge { border: none; border-radius: 11px; box-shadow: none; background: #eaf3ff; color: var(--accent); }
body .icon-badge.discord { background: #eff0ff; color: var(--discord); }
body .icon-badge.twitch { background: #f2ebfc; color: var(--twitch); }
body .icon-badge.success { background: #eaf5ee; color: var(--success); }
body .icon-badge.error { background: #fcecf0; color: var(--error); }
body .badge { padding: 4px 10px; border-radius: 100px; background: #eef0f4; color: #515762; border: 0; font-size: .8125rem; font-weight: 550; letter-spacing: 0; text-transform: none; box-shadow: none; }
body .badge.online, body .badge.active, body .badge.success { background: #eaf5ee; color: #19734a; }
body .badge.live { background: #f3eaff; color: #7338c8; }
body .badge.offline, body .badge.inactive { background: #eef0f4; color: #60666f; }
body .badge.error { background: #fcecf0; color: #ba2944; }
body .badge.gold { background: #faf2de; color: #805400; }
body .badge.teal { background: #e8f5f4; color: #086c72; }

/* Navigation: a translucent, full-height utility surface. */
body .dash-sidebar, body .sidebar { width: 248px; position: sticky; top: 0; height: 100dvh; padding: 24px 16px 16px; margin: 0; border: 0; border-right: 1px solid #dde0e6; border-radius: 0; background: rgba(239,240,244,.86); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: none; overflow: hidden; transition: width .24s var(--ease); }
body .dash-brand { min-height: 60px; padding: 0 4px 22px; margin-bottom: 16px; border-bottom: 1px solid #dce0e6; gap: 9px; }
body .dash-brand > img, body .brand-icon img { filter: brightness(0); width: 28px; height: 33px; object-fit: contain; }
body .dash-brand > div > img { filter: brightness(0); width: 89px; height: 25px; object-fit: contain; }
body .dash-brand small { display: block; font: 500 .75rem/1.5 var(--font-body); letter-spacing: .04em; color: var(--text-muted); text-transform: none; }
body .dash-collapse, body .sidebar-collapse-btn { width: 30px; min-width: 30px; height: 30px; margin-left: auto; padding: 0; background: #e3e5e9; color: #646973; border: 0; border-radius: 9px; box-shadow: none; font-size: 1.2rem; }
body .dash-collapse:hover, body .sidebar-collapse-btn:hover { background: #d8dce2; color: var(--text); transform: none; }
body .dash-menu, body .sidebar nav { overflow-y: auto; flex: 1; min-height: 0; scrollbar-width: thin; }
body .dash-group { margin-bottom: 20px; }
body .dash-group-title, body .nav-section { display: block; padding: 0 11px; margin: 0 0 7px; color: #717681; font: 550 .75rem/1.5 var(--font-body); text-transform: none; letter-spacing: .005em; }
body .dash-group a, body .sidebar nav a { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 10px 11px; margin-bottom: 3px; border: 0; border-radius: 10px; background: none; color: #42464f; font-size: .875rem; font-weight: 450; text-decoration: none; box-shadow: none; transition: background .18s, color .18s; }
body .dash-group a:hover, body .sidebar nav a:hover { background: #e3e6ec; color: #1d1d1f; border: 0; transform: none; }
body .dash-group a[aria-current="page"], body .sidebar nav a.active { background: #fff; color: #0066cc; box-shadow: 0 2px 7px #14223a07; font-weight: 600; }
body .dash-group a[aria-current="page"]::before, body .sidebar nav a.active::before { content: none; }
body .dash-icon, body .dash-group .dash-icon { width: 19px; height: 19px; color: #737985; background: transparent; padding: 0; border-radius: 0; box-shadow: none; }
body .dash-group a[aria-current="page"] .dash-icon { color: #0071e3; }
/* Aufklappbarer Menuepunkt (OBS): Toggle exakt wie ein Link, Unterpunkte eine Stufe kleiner. */
body .dash-group .dash-sub-toggle { display: flex; width: 100%; align-items: center; gap: 11px; min-height: 42px; padding: 10px 11px; margin: 0 0 3px; border: 0; border-radius: 10px; background: none; color: #42464f; font-family: var(--font-body); font-size: .875rem; font-weight: 450; letter-spacing: normal; text-align: left; box-shadow: none; transform: none; cursor: pointer; transition: background .18s, color .18s; }
body .dash-group .dash-sub-toggle:hover { background: #e3e6ec; color: #1d1d1f; transform: none; box-shadow: none; }
body .dash-group .dash-sub-toggle:focus-visible { outline: none; box-shadow: 0 0 0 2px #0071e340; }
body .dash-group .dash-sub-toggle[aria-current="page"] { background: #fff; color: #0066cc; box-shadow: 0 2px 7px #14223a07; font-weight: 600; }
body .dash-group .dash-sub-toggle[aria-current="page"] .dash-icon { color: #0071e3; }
body .dash-sub-arrow { color: #737985; }
body .dash-sub-list { margin: -1px 0 8px 20px; padding-left: 10px; border-left: 1px solid #dce0e6; }
body .dash-group .dash-sub-list a { min-height: 34px; padding: 6px 10px; margin-bottom: 1px; gap: 9px; font-size: .8125rem; }
body .dash-sub-dot { background: #b7bcc6; }
body .dash-group .dash-sub-list a:hover .dash-sub-dot { background: #737985; }
body .dash-group .dash-sub-list a[aria-current="page"] .dash-sub-dot { background: #0071e3; box-shadow: 0 0 6px #0071e380; }
body .dash-bottom { margin-top: auto; padding: 14px 0 0; border-top: 1px solid #dce0e6; }
body .dash-account-links { display: grid; gap: 3px; }
body .dash-plan, body .dash-home { min-height: 40px; padding: 10px 11px; margin: 0; display: flex; align-items: center; gap: 11px; background: transparent; border: 0; border-radius: 10px; box-shadow: none; color: #555b65; font-size: .875rem; font-family: var(--font-body); font-weight: 450; text-decoration: none; text-transform: none; }
body .dash-plan { color: #0066cc; }
body .dash-plan .dash-icon { color: #0071e3; }
body .dash-plan:hover, body .dash-home:hover { background: #e2e6ed; transform: none; box-shadow: none; color: #1d1d1f; }
body .dash-profile { display: flex; align-items: center; justify-content: flex-start; gap: 10px; margin: 12px 0 0; padding: 13px 10px; border: 1px solid #dfe2e7; border-radius: 14px; background: #f8f9fb; box-shadow: none; color: #1d1d1f; }
body .dash-profile:hover { background: #fff; transform: none; box-shadow: none; }
body .dash-profile b, body .dash-profile:hover b { display: block; color: #30333b; font-size: .875rem; font-weight: 600; }
body .dash-profile small { margin-top: 2px; color: #757983; font-size: .75rem; letter-spacing: 0; }
body .dash-profile-arrow { display: block; color: #858b96; margin-left: auto; }
body .dash-avatar, body .avatar-fallback, body .avatar-circle { color: #5b5a77; background: #e5e5ef; border: 1px solid #dadae6; box-shadow: none; }
body .dash-avatar { width: 34px; height: 34px; min-width: 34px; font-size: .75rem; border-radius: 50%; }
body .dash-sidebar.collapsed, body .sidebar.collapsed { width: 76px; padding-inline: 12px; }
body .dash-sidebar.collapsed .dash-brand { padding-inline: 0; }
body .dash-sidebar.collapsed .dash-collapse { margin-inline: auto; }
body .dash-sidebar.collapsed .dash-profile { padding: 9px 0; }
body .brand-text, body .brand-text-wrap { color: var(--text); }
body .brand-text img, body .brand-text-wrap img { filter: brightness(0); }
body .sidebar-upgrade-card, body .sidebar-upgrade, body .sidebar-home-link, body .sidebar-home-link-bottom { background: #e5edf9; color: #0066cc; box-shadow: none; border-color: #d9e4f3; }
body .logout { border-color: var(--border); }
body .nav-count, body .sidebar nav a.active .nav-count { color: #0066cc; background: #e2edfc; }

/* Native controls, readable forms, compact tables. */
body .btn, body .button, body button:not(:where(.dash-collapse,.sidebar-collapse-btn,.dash-profile,.profile-tab-btn,.profile-modal-close,.crop-modal-close,.toast-close)) { min-height: 40px; font: 500 .875rem/1.3 var(--font-body); letter-spacing: -.01em; text-transform: none; border-radius: 980px; background: #0071e3; border: 1px solid transparent; color: #fff; box-shadow: none; transition: background .18s, transform .18s, box-shadow .18s; }
body .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 19px; text-decoration: none; }
body .btn:hover, body button[type="submit"]:hover { background: #0077ed; box-shadow: 0 3px 10px #0071e316; transform: translateY(-1px); }
body .btn:active, body button[type="submit"]:active { transform: scale(.98); }
body .btn.secondary, body button.secondary { background: #eef0f4; color: #303640; border-color: #e0e4eb; }
body .btn.secondary:hover, body button.secondary:hover { background: #e5e9ef; color: #1d1d1f; }
body .btn.danger, body button.danger { background: #fbecf0; color: #b12640; border-color: #f4d8e0; }
body .btn.danger:hover, body button.danger:hover { background: #f9dfe7; color: #a9213b; }
body .btn.small, body button.small { min-height: 34px; padding: 7px 13px; font-size: .8125rem; }
body .btn[disabled], body button[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
body .form-group label, body form > label { font-size: .875rem; color: #42454c; text-transform: none; letter-spacing: 0; margin-bottom: 8px; }
body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]), select, textarea) { background: #fff; border: 1px solid #cfd3dc; border-radius: 12px; box-shadow: none; color: #1d1d1f; padding: 11px 13px; font-size: 1rem; min-height: 44px; transition: border-color .18s, box-shadow .18s; max-width: 100%; }
body :is(input, select, textarea):focus { border-color: #0071e3; box-shadow: 0 0 0 3px #0071e31c; outline: none; }
body input::placeholder, body textarea::placeholder { color: #858991; opacity: 1; }
body select option { color: #1d1d1f; background: #fff; }
body input[type="checkbox"], body input[type="radio"], body input[type="range"] { accent-color: #0071e3; }
body input[type="checkbox"], body input[type="radio"] { width: 18px; height: 18px; }
body input[type="color"] { border-radius: 9px; border: 1px solid #cfd3dc; background: #fff; }
body input[type="file"]::file-selector-button { border: 0; background: #eaf2fc; color: #0066cc; border-radius: 8px; padding: 7px 11px; margin-right: 12px; font: inherit; }
body .checkbox-row, body .consent-checkbox { font-size: .875rem; color: #42454c; }
body .form-grid { gap: 20px; }
body .form-group small, body .desc { font-size: .8125rem; line-height: 1.5; color: var(--text-muted); }
body table { background: #fff; color: #333640; border-color: var(--border); font-size: .875rem; border-collapse: collapse; }
body th { padding: 14px 16px; background: #f5f6f8; color: #656b76; font-size: .8125rem; font-weight: 550; text-transform: none; letter-spacing: 0; border-color: var(--border); }
body td { padding: 16px; border-color: var(--border-soft); }
body tr:hover td { background: #f8fafc; }
body code, body pre { background: #eef1f6; color: #365b85; border-color: #dfe5ef; border-radius: 8px; }
body pre { overflow-x: auto; }
body .tab-bar { display: flex; gap: 4px; width: fit-content; max-width: 100%; padding: 5px; background: #e9ebef; border: 1px solid #e1e4ea; border-radius: 13px; overflow-x: auto; margin-bottom: 28px; }
body .tab-bar a { color: #666d78; padding: 9px 17px; border: 0; border-radius: 9px; font-size: .875rem; white-space: nowrap; box-shadow: none; }
body .tab-bar a.active, body .tab-bar a[aria-current="page"] { color: #1d1d1f; background: #fff; box-shadow: 0 2px 5px #16202f0b; border: 0; }
body .tab-bar a::after { content: none; }
body .alert { font-size: .875rem; border-radius: 14px; box-shadow: none; border: 1px solid #dce6f5; background: #eef5ff; color: #285283; }
body .alert.error { color: #9f273e; background: #fceef1; border-color: #f4d6de; }
body .alert.success { color: #216844; background: #edf7f0; border-color: #d3e9db; }
body .toast-stack .alert { box-shadow: 0 8px 30px #1b264217; }
body .profile-modal-backdrop, body .crop-modal-backdrop { background: #15203a40; backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); padding: 20px; }
body .profile-modal, body .crop-modal { border: 1px solid #ffffffbd; border-radius: 26px; background: #fbfcfe; color: #1d1d1f; box-shadow: 0 32px 100px #17284533; max-width: min(100%,560px); max-height: 90dvh; overflow-y: auto; }
body .profile-modal-header, body .crop-modal-header { border-color: #e4e7ec; padding: 24px; background: transparent; }
body .profile-modal-title-wrap { color: #1d1d1f; }
body .profile-modal-subtitle { color: #717783; }
body .profile-modal-close, body .crop-modal-close, body .toast-close { color: #717783; background: #e9ecf1; border: 0; border-radius: 50%; min-width: 30px; min-height: 30px; padding: 6px; }
body .profile-modal-tabs { background: #eceef2; border: 0; margin: 0 24px; padding: 4px; border-radius: 11px; gap: 4px; }
body .profile-tab-btn { border: 0; background: transparent; color: #747985; border-radius: 8px; font: 500 .875rem var(--font-body); min-height: 36px; box-shadow: none; }
body .profile-tab-btn.active { background: #fff; color: #1d1d1f; box-shadow: 0 1px 5px #0000000a; }
body .profile-modal-body { padding: 24px; }
body .profile-language-form, body .profile-redeem-form { border-color: #e2e5eb; }
body .profile-language-form label { color: #42464f; font-size: .875rem; }
body .docs-nav { background: #fff; border: 1px solid #e5e8ed; border-radius: 18px; padding: 16px; }
body .docs-nav a { border-radius: 9px; color: #636b77; }
body .docs-nav a.active { background: #eaf2ff; color: #0066cc; }
body .docs-content { min-width: 0; line-height: 1.7; }
body .docs-content h3 { margin-top: 28px; }
body .docs-search-results { color: #1d1d1f; background: #fff; border-color: #dce0e6; box-shadow: var(--shadow-md); border-radius: 16px; }
body .docs-search-result { background: #fff; border-color: #eceef2; }
body .docs-search-result:hover { background: #f2f6fd; }
body .docs-search-result-title { color: #1d1d1f; }
body .docs-search-result-category { color: #6c7480; }
body .chart-container { background: #fff; border-color: #e4e8ee; border-radius: 18px; }
body .chart-gridline { stroke: #e8ebf0; }
body .chart-axis-label { fill: #757d8a; color: #757d8a; }
body .chart-tooltip { background: #fff; color: #313744; border-color: #dce2ec; box-shadow: var(--shadow-md); }
body .chart-legend, body .chart-empty { color: #6e7581; }
body .tenant-select-card { background: #fff; color: #1d1d1f; border-color: #dfe4ed; box-shadow: none; border-radius: 16px; }
body .tenant-select-card:hover { border-color: #0071e3; background: #f7faff; }
body .tenant-select-name { color: #1d1d1f; }
body .tenant-select-arrow { color: #0071e3; }
body .onboarding-progress { color: #8a919e; font-size: .875rem; }
body .onboarding-progress .active { color: #0071e3; }
body .center-page { padding: 64px 24px; background: radial-gradient(ellipse at 50% 12%,#eaf0ff 0,transparent 52%),#f5f5f7; }
body .center-page h1 { max-width: 760px; margin: 14px 0; font-size: clamp(2rem,4vw,3.15rem); line-height: 1.1; letter-spacing: -.045em; }
body .center-page p { font-size: 1rem; max-width: 520px; }
body .center-page > .icon.icon-accent { width: 80px; height: 80px; background: #fff; border: 1px solid #e7eaf0; border-radius: 24px; box-shadow: 0 12px 40px #243c6210; color: #0071e3; }
body .center-page > .icon img { filter: brightness(0); }
body .center-page > form { width: min(100%,460px); }
body .center-page > .card { text-align: left; }
body .center-page .price-grid { width: min(100%,1100px); }
body .price-card { background: #fff; border: 1px solid #e2e5eb; box-shadow: none; border-radius: 26px; padding: 30px; }
body .price-card.featured { border-color: #91b9f0; background: linear-gradient(150deg,#fff,#f3f7ff); box-shadow: 0 16px 44px #0071e30a; }
body .price-card .price { color: #1d1d1f; font-family: var(--font-body); font-size: 2.5rem; letter-spacing: -.04em; }
body .price-card .plan-label { color: #0066cc; }
body .price-card ul, body .price-card .desc { color: #626b77; }
body .hidden, body [hidden] { display: none !important; }
body .dash-mobile-bar { display: none; }

@media (max-width: 1100px) {
  body .dash-sidebar, body .sidebar { width: 220px; }
  body .main { padding: 32px 26px 60px; }
  body .docs-layout { grid-template-columns: 190px minmax(0,1fr); }
}
@media (max-width: 760px) {
  body .layout { display: block; padding-top: 64px; }
  body .dash-mobile-bar { display: flex; position: fixed; z-index: 30; inset: 0 0 auto; height: 64px; align-items: center; justify-content: space-between; padding: 0 20px; background: #f5f5f7e8; border-bottom: 1px solid #dfe3ea; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
  body .dash-mobile-bar a { color: #1d1d1f; font-size: 1.1rem; font-weight: 650; text-decoration: none; }
  body .dash-mobile-bar button { min-width: 42px; min-height: 40px; background: #e8ebf0 !important; color: #333a45 !important; padding: 8px 12px; border-radius: 12px !important; }
  body .dash-sidebar, body .dash-sidebar.collapsed, body .sidebar, body .sidebar.collapsed { position: fixed; left: 0; top: 64px; height: calc(100dvh - 64px); width: min(300px,85vw); z-index: 29; padding: 20px 16px 18px; transform: translateX(-102%); transition: transform .24s var(--ease); box-shadow: 16px 12px 48px #25365018; }
  body.sidebar-open .dash-sidebar, body.sidebar-open .sidebar { transform: translateX(0); }
  body .dash-brand > img, body .dash-brand > div, body .dash-sidebar.collapsed .dash-brand > img, body .dash-sidebar.collapsed .dash-brand > div { display: block; }
  body .dash-group-title, body .dash-label, body .dash-sidebar.collapsed .dash-group-title, body .dash-sidebar.collapsed .dash-label, body .sidebar.collapsed .label-text, body .sidebar.collapsed .nav-section, body .sidebar.collapsed .brand-text-wrap { display: block; }
  body .dash-collapse, body .sidebar-collapse-btn { display: none; }
  body .dash-sidebar.collapsed .dash-brand, body .dash-sidebar.collapsed .dash-group a, body .dash-sidebar.collapsed .dash-group .dash-sub-toggle, body .dash-sidebar.collapsed .dash-home, body .dash-sidebar.collapsed .dash-plan, body .dash-sidebar.collapsed .dash-profile, body .sidebar.collapsed nav a { justify-content: flex-start; padding: 10px 11px; }
  body .dash-sidebar.collapsed .dash-brand { padding: 0 4px 22px; }
  body .main { padding: 28px 20px 52px; }
  body .main .grid, body .main .form-grid, body .center-page .price-grid { grid-template-columns: minmax(0,1fr) !important; }
  body .card { padding: 22px; }
  body .page-header-title { gap: 12px; }
  body .page-header-icon { width: 44px; height: 44px; flex-shrink: 0; }
  body .page-header h2 { font-size: 1.9rem; }
  body .page-subtitle { font-size: .875rem; }
  body .docs-layout { display: block; }
  body .docs-nav { position: static; margin-bottom: 24px; max-height: none; }
  body .profile-modal { width: 100%; }
  body .center-page { padding: 48px 20px; }
  body .main .inline-form { flex-wrap: wrap; }
  body .main table { min-width: 540px; }
  body .main .card:has(> table) { overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
}

/* Shared fallbacks for existing layouts and 200% text enlargement. */
body .main > table { display: block; overflow-x: auto; width: 100%; }
body .main > .filters:not(.tab-bar) { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
body .main > .filters:not(.tab-bar) a { padding: 8px 14px; border: 1px solid #e0e5ee; border-radius: 980px; background: #fff; color: #747d8b; font-size: .875rem; text-decoration: none; }
body .main > .filters:not(.tab-bar) a.active { color: #0066cc; background: #e9f2ff; border-color: #cbdff8; }
body .button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 11px 20px; text-decoration: none; }
body .button.secondary { color: #3c4554; background: #edf0f5; border-color: #dfe4ed; }
body .price-card .price > span { display: block; font-size: .875rem; font-weight: 400; letter-spacing: 0; margin-top: 8px; color: #7b8290; }
body .price-card.selected { border-color: #0071e3; box-shadow: 0 0 0 2px #0071e31a; }
body .center-page .checklist { list-style: none; padding: 0; text-align: left; }
body .center-page .checklist li { margin-top: 12px; font-size: .875rem; color: #6d7685; }
body .center-page .checklist li::before { content: '✓'; color: #0071e3; padding-right: 8px; }
body .pb-coming-soon-overlay { position: absolute; min-height: 320px; }
@media (min-width: 761px) {
  body .dash-sidebar:not(.collapsed) .dash-label, body .dash-sidebar:not(.collapsed) .dash-brand > div, body .dash-sidebar:not(.collapsed) .dash-brand > img, body .dash-sidebar:not(.collapsed) .dash-group-title { display: block; }
}
@media (max-width: 760px) {
  body:not(.ui-ready) .layout { padding-top: 0; }
  body:not(.ui-ready) .dash-sidebar, body:not(.ui-ready) .sidebar { position: relative; top: 0; height: auto; width: 100%; transform: none; }
  body .main .grid > *, body .main .form-grid > * { min-width: 0; }
  body .main .form-group.full { grid-column: auto; }
}

@media(max-width:760px) { body .main [style*="min-width"] { min-width: 0 !important; max-width: 100%; } body .main > table { min-width: 0; max-width: 100%; } }

/* Workspace architecture refresh · the dashboard gets its own spatial hierarchy. */
body { background: #f3f1f5; }
body .layout { position: relative; min-height: 100dvh; background: linear-gradient(115deg,#f4f2f6 0%,#eef1f7 53%,#f5f1f5 100%); }
body .dashboard-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(42rem 26rem at 82% 6%,#dceafa9e,transparent 72%), radial-gradient(38rem 27rem at 38% 92%,#f0dce8a3,transparent 72%), transparent; }
body .dash-sidebar, body .sidebar { z-index: 3; background: rgba(242,241,245,.83); border-right-color: #d7d9e0; }
body .main { z-index: 1; max-width: 1460px; padding: 39px clamp(28px,4vw,72px) 100px; }
body .page-header { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 35px; padding: 0 0 28px; border-bottom: 1px solid #d8d9e0; }
body .page-header::before { content: none; }
body .page-header-title { align-items: flex-start; }
body .page-header-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 7px; color: #858590; font-size: .65rem; font-weight: 700; letter-spacing: .14em; }
body .page-header-kicker-dot { width: 5px; height: 5px; border-radius: 50%; background: #ae6792; box-shadow: 0 0 0 4px #ae67921c; }
body .page-header-meta { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid #dcdde4; border-radius: 11px; background: #ffffff89; color: #9898a3; font-size: .65rem; font-weight: 700; letter-spacing: .09em; }
body .page-header-meta-value { display: inline-flex; align-items: center; gap: 6px; color: #5d856b; font-size: .67rem; letter-spacing: 0; }
body .page-header-meta-value i { width: 6px; height: 6px; border-radius: 50%; background: #58a879; box-shadow: 0 0 0 4px #58a8791c; }
body .section-title { display: flex; align-items: flex-start; gap: 13px; margin: 46px 0 18px; }
body .section-title-rule { width: 3px; min-height: 40px; border-radius: 5px; background: linear-gradient(#ad6f9c,#9db1d2); }
body .section-title-kicker { display: block; margin-bottom: 4px; color: #9794a0; font-size: .62rem; font-weight: 700; letter-spacing: .12em; }
body .section-title h3 { margin: 0; color: #33313b; font-size: 1.18rem; font-weight: 650; }
body .main > .grid { position: relative; }
body .main > .grid:first-of-type { grid-template-columns: repeat(3,minmax(0,1fr)); }
body .card { position: relative; overflow: hidden; background: rgba(255,255,255,.83); border-color: #e1dfe7; border-radius: 20px; box-shadow: 0 8px 24px #5445630a; }
body .card::after { content: ""; position: absolute; width: 7rem; height: 7rem; right: -3rem; bottom: -4rem; border-radius: 50%; background: #eaddeb66; pointer-events: none; }
body .card:hover { border-color: #cec4d4; box-shadow: 0 12px 28px #54456312; transform: translateY(-2px); }

body .workspace-hero { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(360px,.95fr); gap: 30px; align-items: stretch; margin: 0 0 44px; padding: 32px; border: 1px solid #ddd7e2; border-radius: 28px; background: radial-gradient(31rem 15rem at 88% 10%,#dfeaf6c4,transparent 70%), radial-gradient(24rem 15rem at 6% 100%,#f2d8e3b5,transparent 70%), #faf9fb; box-shadow: 0 18px 50px #5643610b; }
body .workspace-hero-copy { padding: 8px 4px 7px; }
body .workspace-kicker { color: #8b6c88; font-size: .66rem; font-weight: 750; letter-spacing: .14em; }
body .workspace-hero h1 { margin: 17px 0 12px; color: #2f2b35; font-size: clamp(2.35rem,4.5vw,4rem); line-height: 1.03; letter-spacing: -.065em; }
body .workspace-hero h1 span { color: #936384; }
body .workspace-hero-copy p { max-width: 570px; margin: 0; color: #74717d; font-size: .95rem; line-height: 1.65; }
body .workspace-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
body .workspace-actions .btn { min-height: 37px; padding: 9px 14px; font-size: .78rem; }
body .workspace-signal-card { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: 22px; border: 1px solid #ded8e4; border-radius: 20px; background: #ffffffb3; box-shadow: 0 12px 28px #5445630b; }
body .workspace-signal-head, body .workspace-signal-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #94909d; font-size: .62rem; font-weight: 700; letter-spacing: .11em; }
body .workspace-signal-head > span:last-child { display: inline-flex; align-items: center; gap: 6px; color: #5c876d; font-size: .62rem; letter-spacing: 0; }
body .workspace-signal-head i, body .workspace-signal-foot i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #57a875; box-shadow: 0 0 0 4px #57a8751e; }
body .workspace-map-line { display: grid; grid-template-columns: minmax(75px,1fr) 30px minmax(75px,1fr) 30px minmax(75px,1fr); align-items: center; margin: 36px 0 30px; }
body .workspace-map-node { min-width: 0; padding: 13px 10px; border: 1px solid #e1dbe6; border-radius: 13px; background: #ffffffcc; color: #746979; }
body .workspace-map-node.core { border-color: #ccb7ce; background: #faf3fa; color: #825c83; }
body .workspace-map-node svg { display: block; margin-bottom: 8px; }
body .workspace-map-node b, body .workspace-map-node small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
body .workspace-map-node b { color: #4f4957; font-size: .7rem; }
body .workspace-map-node small { margin-top: 3px; color: #928a97; font-size: .59rem; }
body .workspace-map-node.twitch svg { color: #8054ae; }
body .workspace-map-node.discord svg { color: #5560c4; }
body .workspace-map-rail { position: relative; height: 1px; background: #cdb9ce; }
body .workspace-map-rail::after { content: ""; position: absolute; top: -3px; right: -1px; width: 7px; height: 7px; border-top: 1px solid #baa0bd; border-right: 1px solid #baa0bd; transform: rotate(45deg); }
body .workspace-map-rail i { position: absolute; top: -2px; left: 3px; width: 5px; height: 5px; border-radius: 50%; background: #ae6792; box-shadow: 8px 0 #ae6792,16px 0 #ae6792; }
body .workspace-signal-foot { justify-content: flex-start; gap: 7px; padding-top: 14px; border-top: 1px solid #e6e1e9; color: #898390; font-size: .65rem; font-weight: 500; letter-spacing: 0; }
body .workspace-signal-foot b { margin-left: auto; color: #9a7696; font-size: 1.05rem; }

@media (max-width: 920px) {
  body .workspace-hero { grid-template-columns: 1fr; }
  body .workspace-signal-card { min-height: 215px; }
}
@media (max-width: 760px) {
  body .main { padding: 28px 20px 70px; }
  body .page-header { align-items: flex-start; flex-direction: column; gap: 17px; }
  body .page-header-meta { align-self: flex-start; }
  body .workspace-hero { padding: 24px 20px; border-radius: 22px; }
  body .workspace-hero h1 { font-size: 2.65rem; }
  body .workspace-map-line { grid-template-columns: minmax(68px,1fr) 19px minmax(68px,1fr) 19px minmax(68px,1fr); }
  body .workspace-map-node { padding: 11px 7px; }
}

/* Remove the heavy split-panel treatment from documentation and page headers. */
body .page-header { background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0; padding: 0 0 24px; }
body .page-header::before { display: none !important; }
body .page-header-icon { background: #fff; }
body .docs-layout { display: block; max-width: 1060px; margin: 0 auto; }
body .docs-nav { position: static; display: block; padding: 0; margin: 0 0 28px; background: transparent; border: 0; box-shadow: none; }
body .docs-search { max-width: 360px; margin-bottom: 16px; }
body .docs-nav nav { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
body .docs-nav nav a { padding: 9px 13px; border: 1px solid #dfe0e7; border-radius: 10px; background: #fff; color: #686873; font-size: .8rem; font-weight: 500; }
body .docs-nav nav a:hover { background: #f7f4f8; color: #6f4d70; }
body .docs-nav nav a.active { border-color: #cdb5cd; background: #f1e7f1; color: #774f76; box-shadow: none; }
body .docs-content { max-width: 980px; margin: 0 auto; }
body .docs-content .docs-section { margin-bottom: 24px; }
