/* Shared visual language for public pages, account views and session tools. */
:root {
    --shell-bg: #ededee; --shell-sidebar: #e3e3e5; --shell-panel: #fafafa;
    --shell-raised: #e9e9eb; --shell-hover: #dcdcdf;
    --shell-text: #242426; --shell-muted: #68686e;
    --shell-accent: #e8c76a; --shell-accent-text: #8a6818;
    --primary: #8a6818; --primary-dark: #705413; --primary-light: #a88225;
    --secondary: #8a6818; --accent: #8a6818; --warm: #e8c76a;
    --brand-rgb: 232, 199, 106; --card-bg-rgb: 250, 250, 250;
    --bg-color: var(--shell-bg); --bg-secondary: var(--shell-raised);
    --card-bg: var(--shell-panel); --modal-bg: var(--shell-panel); --bg-input: var(--shell-raised);
    --text-primary: var(--shell-text); --text-secondary: var(--shell-muted); --text-light: var(--shell-muted);
    --gray-light: transparent; --border-color: transparent;
    --font-primary: 'Inter', sans-serif; --font-secondary: 'Inter', sans-serif;
    --shadow-sm: none; --shadow-md: none; --shadow-lg: none; --shadow-xl: none; --shadow-2xl: none; --shadow-glow: none;
    --gradient-primary: linear-gradient(var(--shell-accent), var(--shell-accent));
    --gradient-secondary: linear-gradient(var(--shell-raised), var(--shell-raised));
    --gradient-accent: var(--gradient-secondary); --gradient-warm: var(--gradient-primary); --gradient-dark: var(--gradient-secondary);
    --water-light: rgba(232, 199, 106, .08); --water-medium: rgba(232, 199, 106, .14);
}
[data-theme="dark"] {
    --shell-bg: #1b1b1d; --shell-sidebar: #151517; --shell-panel: #242426;
    --shell-raised: #2c2c2f; --shell-hover: #363639;
    --shell-text: #f1f1f2; --shell-muted: #a2a2a7; --shell-accent-text: #e8c76a;
    --primary: #e8c76a; --primary-dark: #d5b45c; --primary-light: #f2d580;
    --secondary: #e8c76a; --accent: #e8c76a; --card-bg-rgb: 36, 36, 38;
    --bg-color: var(--shell-bg); --bg-secondary: var(--shell-raised); --card-bg: var(--shell-panel); --modal-bg: var(--shell-panel);
    --text-primary: var(--shell-text); --text-secondary: var(--shell-muted); --text-light: var(--shell-muted);
    --gray-light: transparent; --shadow-lg: none; --shadow-xl: none; --shadow-glow: none;
}
body.omo-design { background: var(--shell-bg); color: var(--shell-text); font-family: var(--font-secondary); transform: none; }
body.omo-design { --primary-color: var(--shell-accent-text); --text-color: var(--shell-text); --text-muted: var(--shell-muted); scrollbar-color: var(--shell-hover) var(--shell-panel); }
body.omo-design *, body.omo-design *::before, body.omo-design *::after { box-shadow: none !important; text-shadow: none !important; }
body.omo-design [hidden] { display: none !important; }
body.omo-design :is(button, input, textarea, select) { font-family: inherit; }
body.omo-design :is(button, a, input, textarea, select):focus-visible { outline: 2px solid var(--shell-accent-text); outline-offset: 3px; }
body.omo-design :is(.atmo-orb, .btn-glow, .profile-hero-band-glow, .changelog-eyebrow) { display: none; }
body.omo-design .atmo-drop { background: var(--shell-accent); filter: none; opacity: .08; }
body.omo-design :is(.gradient-text, .stat-number, .timer-display, .profile-hero-name, .admin-page-title) { background: none; -webkit-text-fill-color: currentColor; color: var(--shell-text); }
body.omo-design :is(.dashboard-card, .auth-container, .modal-container, .modal-content, .activity-detail-modal, .settings-confirm-modal, .pt-modal, .nego-card, .rapid-card, .feed-card, .peemap-dialog, .cl-content, .report-card) {
    background: var(--shell-panel); border: 0; border-radius: 20px; backdrop-filter: none;
}
body.omo-design :is(.dashboard-card, .auth-container, .nego-card, .rapid-card, .feed-card)::before,
body.omo-design :is(.dashboard-card, .auth-container, .nego-card, .rapid-card, .feed-card)::after { content: none; }
body.omo-design :is(.dashboard-card, .feed-card):hover { transform: none; border-color: transparent; background: var(--shell-panel); }
body.omo-design :is(.card-header, .activity-detail-header, .modal-header, .settings-modal-header, .modal-actions, .settings-modal-actions) { background: transparent; border-color: transparent; }
body.omo-design .card-header { padding: 23px 24px 10px; }
body.omo-design .card-header h3 { font-size: 17px; font-weight: 650; color: var(--shell-text); }
body.omo-design .card-content { padding: 16px 24px 24px; }
body.omo-design :is(.btn, .nav-btn, .hero-btn, .modal-btn, .auth-btn, .feed-tab, .feed-select, .pagination-btn, .action-btn, .gallery-filter) {
    background: var(--shell-raised); color: var(--shell-text); border: 0; border-radius: 11px; font-weight: 550; backdrop-filter: none;
}
body.omo-design :is(.btn, .nav-btn, .hero-btn, .modal-btn, .auth-btn)::before,
body.omo-design :is(.btn, .nav-btn, .hero-btn, .modal-btn, .auth-btn)::after { content: none; }
body.omo-design :is(.btn.primary, .nav-btn.primary, .hero-btn.primary, .auth-btn.primary, .modal-btn.primary) { background: var(--shell-accent); color: #282317; }
body.omo-design :is(.btn, .nav-btn, .hero-btn, .action-btn):hover { transform: none; filter: brightness(1.06); }
body.omo-design :is(.btn.danger, .nav-btn.danger, .danger-zone .btn) { background: #512d31; color: #ffb1b7; }
body.omo-design :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), textarea, select) { background-color: var(--shell-raised); color: var(--shell-text); border-color: transparent; border-radius: 10px; }
body.omo-design :is(input, textarea)::placeholder { color: var(--shell-muted); opacity: .85; }
body.omo-design :is(input[type="checkbox"], input[type="radio"], input[type="range"]) { accent-color: var(--shell-accent-text); }
body.omo-design :is(.dropdown-menu, .online-users-dropdown, .language-menu, .notif-dropdown) { background: var(--shell-raised); border: 0; border-radius: 14px; backdrop-filter: none; }
body.omo-design :is(.theme-toggle, .floating-brand, .floating-controls, .lang-switcher__btn) { background: var(--shell-panel); color: var(--shell-text); border: 0; border-radius: 12px; backdrop-filter: none; }
body.omo-design .ph-glass { border: 0; background: var(--shell-raised); color: var(--shell-accent-text); }
body.omo-design .ph-glass::before, body.omo-design .ph-glass::after { content: none; }
body.omo-design .page-gfm-footer { position: static; transform: none; width: auto; padding: 20px 24px; text-align: center; }
body.omo-design .gofundme-btn { background: transparent; border: 0; color: var(--shell-muted); font-size: 11px; }
body.omo-design .gofundme-btn::before { content: none; }
body.omo-design .profile-hero-band { background: var(--shell-raised); }
body.omo-design :is(.profile-avatar, .profile-avatar img) { border-color: var(--shell-panel); }
body.omo-design :is(.stats-tiles .stat-tile, .system-health-item, .moderation-stat, .rapid-metric, .peemap-stat-card, .stat-item, .feed-summary-item, .timeline-item, .note-admin-item) { background: var(--shell-raised); border-color: transparent; border-radius: 12px; }
body.omo-design :is(.stat-value, .stat-number, .profile-stat-value) { color: var(--shell-text); }
body.omo-design :is(.data-table, .data-table th, .data-table td) { border-color: transparent; }
body.omo-design .data-table th { background: var(--shell-raised); color: var(--shell-muted); font-size: 11px; font-weight: 600; }
body.omo-design .data-table td { background: transparent; color: var(--shell-text); font-size: 12px; }
body.omo-design .data-table tbody tr:nth-child(even) { background: var(--shell-bg); }
body.omo-design .table-responsive { max-width: 100%; overflow-x: auto; border: 0; border-radius: 12px; }
body.omo-design :is(.feed-card-footer, .feed-card-header, .feed-card-summary, .feed-comments-section) { border-color: transparent; background: transparent; }
body.omo-design .feed-card { padding: 0; }
body.omo-design .feed-reaction-btn { background: var(--shell-raised); border-color: transparent; color: var(--shell-muted); }
body.omo-design .feed-reaction-btn.active { color: var(--shell-accent-text); }
body.omo-design .feed-tab.active { background: var(--shell-hover); color: var(--shell-text); }
body.omo-design :is(.feed-new-banner, .feed-report-modal, .peemap-stat-block) { background: var(--shell-panel); border: 0; border-radius: 14px; }
body.omo-design .feed-report-modal { padding: 24px; }
body.omo-design :is(.profile-hero-band, .nego-chat, .coop-chat, .timer-container, .pt-sticker-section, .warning-box) { border-color: transparent; }
body.omo-design .warning-box { background: var(--shell-raised); }
body.omo-design .hero-section { background: var(--shell-bg); }
body.omo-design .hero-title { font-family: var(--font-primary); letter-spacing: -.055em; }
body.omo-design .hero-title .gradient-text { color: var(--shell-accent-text); }
body.omo-design .hero-stats { background: transparent; border: 0; border-radius: 0; }
body.omo-design .hero-stats .stat-item { background: transparent; }
body.omo-design .hero-image { filter: none; }
body.omo-design .hero-visual::before { content: none; }
body.omo-design .hero-visual .hero-image { width: 100%; max-width: 470px; max-height: 600px; object-fit: contain; }
body.omo-design .floating-brand .brand-mark { width: 23px; height: 29px; color: var(--shell-accent); flex-shrink: 0; }
body.omo-design .brand-name { font-family: var(--font-primary); color: var(--shell-text); background: none; -webkit-text-fill-color: currentColor; }
body.omo-design :is(.no-data, .no-data p, .pw-toggle, .privacy-toggle-desc) { color: var(--shell-muted); opacity: 1; }
body.omo-design :is(.pw-wrap, .pw-wrap:hover, .pw-wrap:focus-within, .checkbox-label, .profile-comment-bubble, .timeline-item-content, .social-link-item) { background: var(--shell-raised); border-color: transparent; }
body.omo-design .pw-wrap:focus-within { outline: 2px solid var(--shell-accent-text); outline-offset: 3px; }
body.omo-design :is(.pgallery-public-tag, .profile-comment-count, .user-profile-status) { color: var(--shell-muted); background: var(--shell-raised); border: 0; }
body.omo-design .toggle-slider { background: var(--shell-hover); border-color: transparent; }
body.omo-design .toggle-slider::before { background: var(--shell-muted); }
body.omo-design .toggle-switch input:checked + .toggle-slider { background: var(--shell-accent); border-color: transparent; }
body.omo-design .toggle-switch input:checked + .toggle-slider::before { background: #282317; }
body.omo-design .checkbox-label input[type="checkbox"] { background-color: var(--shell-hover); border-color: transparent; }
body.omo-design .checkbox-label input[type="checkbox"]:checked { background-color: var(--shell-accent-text); }
body.omo-design :is(.feed-filter-tabs, .ai-mode-option) { background: var(--shell-raised); border-color: transparent; border-radius: 10px; }
body.omo-design :is(.feed-report-overlay, .modal-overlay, .settings-modal-overlay) { background: rgba(0,0,0,.6); backdrop-filter: none; }
body.omo-design .hero-wave { display: block; bottom: -1px; pointer-events: none; }
body.omo-design .hero-wave path { fill: #000; }
body.omo-design .hero-wave::before { background: #000; }
body.omo-design .features-section {
    --shell-bg: #000; --shell-panel: #18181a; --shell-raised: #242426;
    --shell-text: #f1f1f2; --shell-muted: #a2a2a7; --shell-accent-text: #e8c76a;
    --text-primary: var(--shell-text); --text-secondary: var(--shell-muted);
    --text-light: var(--shell-muted); --primary: var(--shell-accent-text);
    background: #000; color: var(--shell-text);
}
body.omo-design .features-section::before { content: none; }
/* Landing footer transitions out of the black showcase into a quiet gray surface. */
body.omo-design .landing-footer { background: var(--shell-bg); color: var(--shell-text); }
.landing-footer-wave { height: clamp(64px, 7vw, 110px); background: #000; }
.landing-footer-wave svg { display: block; width: 100%; height: calc(100% + 1px); fill: var(--shell-bg); }
.landing-footer-content { display: grid; grid-template-columns: 1.3fr 1fr .65fr; max-width: 1200px; gap: 64px; padding-top: 40px; padding-bottom: 48px; align-items: start; }
.landing-footer-logo { display: inline-block; color: var(--shell-text); font-size: 30px; font-weight: 700; letter-spacing: -1px; text-decoration: none; }
.landing-footer-brand p { margin-top: 14px; color: var(--shell-muted); font-size: 13px; line-height: 1.7; }
.landing-footer-mark { display: block; margin-top: 22px; border-radius: 18px; object-fit: cover; }
.landing-footer-mark-dark { display: none; }
[data-theme="dark"] .landing-footer-mark-light { display: none; }
[data-theme="dark"] .landing-footer-mark-dark { display: block; }
.landing-footer-links h2 { margin: 7px 0 12px; color: var(--shell-text); font-size: 16px; font-weight: 600; line-height: 1.5; }
.landing-footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.landing-footer-links a { display: inline-block; padding-block: 8px; color: var(--shell-muted); font-size: 14px; line-height: 1.5; text-decoration: none; }
.landing-footer-links a:hover { color: var(--shell-text); text-decoration: underline; text-underline-offset: 5px; }
.landing-footer-links .landing-footer-support { color: var(--shell-accent-text); margin-top: 14px; max-width: 240px; }
@media (max-width: 720px) {
    .landing-footer-content { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 24px; padding-top: 30px; padding-bottom: 40px; }
    .landing-footer-brand { grid-column: 1 / -1; }
    .landing-footer-links h2 { font-size: 15px; }
}
body.omo-design .section-label { background: transparent; border: 0; color: var(--shell-muted); padding-inline: 0; }
body.omo-design .collage-item { background: var(--shell-panel); border: 0; border-radius: 20px; transform: none; }
body.omo-design .collage-item figcaption { background: var(--shell-panel); color: var(--shell-text); }
body.omo-design .collage-item figcaption p { color: var(--shell-muted); }
body.omo-design .footer { background: var(--shell-sidebar); border: 0; }
body.omo-design :is(.legal-page, .changelog-page) { max-width: 1040px; margin-inline: auto; padding-inline: 28px; }
body.omo-design :is(.legal-section, .legal-summary, .cl-entry-inner) { border-color: transparent; border-radius: 18px; background: var(--shell-panel); }
body.omo-design .legal-section { padding: 26px; margin-bottom: 16px; }
body.omo-design .cl-entry-inner { padding: 28px; }
body.omo-design .cl-content { padding: 0; }
body.omo-design :is(.cl-badge, .cl-tag) { background: var(--shell-raised); border: 0; color: var(--shell-accent-text); }
body.omo-design .cl-entry::before, body.omo-design .cl-entry::after { content: none; }
body.omo-design .cl-loading, body.omo-design .cl-empty { color: var(--shell-muted); }
body.omo-design .auth-container { padding: 38px; }
body.omo-design .auth-tab { color: var(--shell-muted); border: 0; }
body.omo-design .auth-tab.active { color: var(--shell-text); background: var(--shell-raised); border-radius: 10px; }
body.omo-design .auth-container .tab-btn { border: 0; border-radius: 10px; color: var(--shell-muted); }
body.omo-design .auth-container .tab-btn.active { background: var(--shell-raised); color: var(--shell-text); }
body.omo-design .auth-container .tab-btn::after { content: none; }
body.omo-design #anonymous-login { border: 0 !important; background: var(--shell-hover); }
body.omo-design :is(.moderation-workspace, .report-queue, .queue-tabs) { border: 0; }
body.omo-design .moderation-workspace { border-radius: 20px; }
body.omo-design :is(.pt-l1-info, .pt-l1-countdown, .pt-visits-counter, .pt-changes-counter) { background: var(--shell-raised); border-color: transparent; }
body.omo-design .pt-ladder-step.done .pt-ladder-dot { background: var(--shell-accent); color: #282317; }
body.omo-design .anonymous-section { background: transparent; border: 0; border-radius: 0; }
body.omo-design .card { background: var(--shell-panel); border-color: transparent; }
body.omo-design :is(.orb, .glow, .blob) { display: none; }
/* Shared application navigation, including the admin workspace. */
/* Account content is hosted by the persistent overview shell. */
html.dashboard-embedded body.workspace-page > .container {
    width: 100%; max-width: none; margin: 0; padding: 0;
}
html.dashboard-embedded body.workspace-page :is(.dashboard-header, .floating-controls, .floating-brand, .page-gfm-footer, .dashboard-atmosphere) {
    display: none !important;
}
html.dashboard-embedded body.workspace-page { min-height: 0; }
body.workspace-page { --workspace-sidebar-width: 240px; }
body.workspace-page > .floating-brand { display: none; }
body.workspace-page > .container { width: calc(100% - var(--workspace-sidebar-width)); max-width: 1500px; margin: 0 0 0 var(--workspace-sidebar-width); padding: 26px 36px 32px; }
body.workspace-page .dashboard-header { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; min-height: 44px; margin: 0 0 27px; padding: 0; border: 0; background: none; }
body.workspace-page .dashboard-header { flex-wrap: wrap !important; gap: 14px !important; }
body.workspace-page .dashboard-header .floating-controls { position: static !important; display: flex; flex-wrap: nowrap; gap: 8px; margin-left: auto; padding: 0; background: none; z-index: 100; transform: none !important; }
body.workspace-page .dashboard-header .header-actions { overflow: visible; flex-wrap: wrap; mask-image: none; margin: 0; padding: 0; border: 0; }
body.workspace-page .dashboard-header #dashboard-btn { display: none; }
body.workspace-page .dashboard-header #dark-mode-toggle { display: none; }
body.workspace-page .floating-controls:empty { display: none !important; }
body.workspace-page .settings-appearance { grid-column: 1 / -1; overflow: visible; position: relative; z-index: 2; }
body.workspace-page .settings-preference-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 56px; }
body.workspace-page .settings-appearance :is(.theme-toggle, .lang-switcher__btn) { width: 44px; height: 44px; margin: 0; background: var(--shell-raised); }
body.workspace-page .settings-appearance .lang-switcher__menu { background: var(--shell-raised); color: var(--shell-text); border: 0; }
body.workspace-page .settings-appearance .lang-switcher__opt { color: var(--shell-text); }
body.workspace-page .settings-appearance .lang-switcher__opt:hover { background: var(--shell-hover); }
body.workspace-page .dashboard-header .user-menu { margin-left: auto; padding: 0; background: none; }
body.workspace-page .workspace-session-info { flex-basis: 100%; grid-column: 1 / -1; margin: 0; font-size: 12px; text-align: left; overflow-wrap: anywhere; }
body.workspace-page :is(.nego-title-wrap, .rapid-page-title, .moderation-heading h1) { display: none; }
body.workspace-page .nego-header { justify-content: flex-end; }
body.workspace-page .rapid-header { text-align: left; }
body.workspace-page :is(.nego-persona-badge, .difficulty-indicator) { color: var(--shell-accent-text); background: var(--shell-raised); }
body.workspace-page :is(.pt-rules, .pt-rules-display, .pt-rule-box, .pt-ladder, .pt-stat-card, .pt-day-night, .nego-msg-keeper .nego-msg-bubble) { background: var(--shell-raised); border-color: transparent; }
body.workspace-page .dashboard-header .user-menu #username { font-size: 12px; }
body.workspace-page .dashboard-header .avatar { width: 34px; height: 34px; }
body.workspace-page .dashboard-content { width: 100%; margin: 0; }
body.workspace-page .dashboard-grid { gap: 22px; }
body.workspace-page .page-gfm-footer { margin-left: var(--workspace-sidebar-width); }
body.workspace-page .dashboard-atmosphere { left: var(--workspace-sidebar-width); opacity: .15; }
.workspace-heading { display: flex; align-items: center; gap: 12px; }
.workspace-heading h1 { color: var(--shell-text); font-size: 24px; font-weight: 650; line-height: 1.3; letter-spacing: -.6px; margin: 0; }
.workspace-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 300; width: var(--workspace-sidebar-width); height: 100dvh; display: flex; flex-direction: column; gap: 20px; padding: 30px 20px 20px; background: var(--shell-sidebar); overflow: clip; }
.workspace-brand { display: flex; align-items: center; gap: 12px; padding: 0 10px; color: var(--shell-text); font-size: 25px; font-weight: 700; letter-spacing: -.8px; text-decoration: none; }
.workspace-brand svg { color: var(--shell-accent); width: 24px; height: 30px; flex-shrink: 0; }
.workspace-nav { display: flex; flex-direction: column; gap: 4px; }
.workspace-link { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 10px 14px; border: 0; border-radius: 12px; background: none; color: var(--shell-muted); font-size: 13px; line-height: 1.5; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; width: 100%; }
.workspace-link i { font-size: 20px; }
.workspace-link:hover, .workspace-link[aria-current="page"] { background: var(--shell-raised); color: var(--shell-text); }
.workspace-link[aria-current="page"] { font-weight: 650; }
.workspace-footer { margin-top: auto; }
.workspace-toggle { display: none; }
.workspace-backdrop { display: none; }
body.admin-workspace .admin-title-row { margin: 0 0 24px; }
body.admin-workspace .admin-page-title { display: none; }
body.admin-workspace .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.admin-workspace :is(.full-span, [data-admin-section="users"], [data-admin-section="sessions"], [data-admin-section="leaderboard"], [data-admin-section="notes"], [data-admin-section="premium"], [data-admin-section="site"]) { grid-column: 1 / -1; }
body.admin-workspace .stats-tiles { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
body.admin-workspace .stat-tile-label { white-space: normal; color: var(--shell-muted); }
body.admin-workspace .stat-tile-icon { background: var(--shell-panel); }
body.admin-workspace .stat-tile-value { font-family: inherit; }
body.admin-workspace .system-health-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
body.admin-workspace .card-search { min-width: 160px; width: 230px; }
body.admin-workspace .card-header { flex-wrap: wrap; gap: 12px; }
.dashboard-shell .feed-layout { max-width: 960px; margin: 0 auto; padding: 0; }
.dashboard-shell .feed-header .feed-title { display: none; }
.dashboard-shell .feed-header { margin-bottom: 16px; }
.dashboard-shell .feed-select { min-height: 38px; padding: 9px 12px; appearance: auto; }
.dashboard-shell .feed-tab { min-height: 36px; }
.dashboard-shell .dashboard-sidebar .sidebar-bottom .header-actions { display: flex; flex-wrap: wrap; gap: 4px; overflow: visible; }
.dashboard-shell .sidebar-bottom .header-actions .nav-btn { flex: 1; min-width: 0; padding: 8px 5px; font-size: 10px; white-space: normal; }
.dashboard-shell [data-tab-panel="news"] { max-width: 1050px; margin: 0 auto; }
.dashboard-shell .workspace-news-entry { margin-bottom: 20px; }
.dashboard-shell .workspace-news-date { display: block; margin-bottom: 18px; color: var(--shell-muted); font-size: 12px; }
.dashboard-shell .workspace-news-list { padding-left: 18px; color: var(--shell-muted); line-height: 1.8; }
.dashboard-shell .workspace-news-media { display: block; width: 100%; max-height: 420px; object-fit: contain; border-radius: 12px; margin-bottom: 20px; }
.dashboard-shell .workspace-access { padding: 40px; border-radius: 20px; background: var(--shell-panel); color: var(--shell-muted); text-align: center; }
.dashboard-shell .workspace-access a { display: inline-block; margin-top: 16px; color: var(--shell-accent-text); }
.dashboard-shell .peemap-layout { max-width: none; margin: 0; }
.dashboard-shell .peemap-title { display: none; }
.dashboard-shell #peemap-map { height: min(58dvh, 620px); min-height: 300px; border-radius: 18px; }
@media (max-width: 1150px) {
    body.workspace-page { --workspace-sidebar-width: 215px; }
    body.workspace-page > .container { padding-inline: 25px; }
    .workspace-sidebar { padding-inline: 14px; }
    .workspace-brand { font-size: 22px; }
    body.workspace-page .dashboard-header .online-status-wrapper { display: none; }
    body.workspace-page .moderation-workspace { grid-template-columns: minmax(0, 1fr); }
    body.workspace-page .moderation-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    body.admin-workspace .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
    body.workspace-page .profile-grid, body.workspace-page .settings-grid { grid-template-columns: minmax(0, 1fr); }
    body.workspace-page .profile-grid > * { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    body.workspace-page > .container { width: 100%; margin: 0; padding: 20px 16px 24px; }
    .workspace-sidebar { width: 250px; z-index: 1002; transform: translateX(-100%); visibility: hidden; }
    body.workspace-nav-open .workspace-sidebar { transform: none; visibility: visible; }
    body.workspace-nav-open { overflow: hidden; }
    .workspace-toggle { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--shell-raised); color: var(--shell-text); font-size: 21px; }
    .workspace-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 1001; background: rgba(0,0,0,.55); border: 0; border-radius: 0; }
    .workspace-heading h1 { font-size: 20px; }
    body.workspace-page .dashboard-header { display: grid !important; grid-template-columns: minmax(0,1fr) auto; gap: 10px !important; }
    body.workspace-page .workspace-heading { min-width: 0; }
    body.workspace-page .workspace-toggle { flex-shrink: 0; }
    body.workspace-page .dashboard-header .user-menu { grid-column: 2; grid-row: 1; }
    body.workspace-page .dashboard-header .header-actions { grid-column: 1 / -1; }
    body.workspace-page .dashboard-header .user-menu { gap: 6px; }
    body.workspace-page .dashboard-header .user-menu #username, body.workspace-page .dashboard-header #logout-top { display: none; }
    body.workspace-page .dashboard-header .floating-controls { grid-column: 1 / -1; justify-content: flex-end; margin-left: auto; }
    body.workspace-page .dashboard-header #online-status-btn { display: none !important; }
    body.workspace-page .dashboard-header .header-actions:has(#dashboard-btn:only-child) { display: none; }
    body.workspace-page .page-gfm-footer { margin-left: 0; }
    body.workspace-page .dashboard-atmosphere { left: 0; }
    body.omo-design .card-header { padding: 20px 18px 8px; }
    body.omo-design .card-content { padding: 14px 18px 20px; }
    body.omo-design .auth-container { padding: 26px 22px; }
    body.omo-design :is(.legal-page, .changelog-page) { padding-inline: 18px; }
    body.omo-design .cl-entry-inner { padding: 22px; }
    body.admin-workspace .card-search { width: 100%; }
    body.admin-workspace .card-header-tools { width: 100%; flex-wrap: wrap; }
    .dashboard-shell .feed-controls { display: grid; grid-template-columns: 1fr; gap: 8px; }
    .dashboard-shell .feed-select { width: 100%; min-height: 42px; }
}
@media (max-height: 750px) {
    .workspace-sidebar { padding-block: 18px; gap: 14px; }
    .workspace-link { min-height: 36px; padding-block: 7px; }
}
@media (max-height: 610px) {
    .workspace-sidebar { padding-block: 12px; gap: 8px; }
    .workspace-brand { font-size: 20px; }
    .workspace-link { min-height: 30px; padding-block: 4px; font-size: 12px; }
    .workspace-nav { gap: 2px; }
}
@media (max-height: 470px) {
    .workspace-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .workspace-link { padding-inline: 8px; font-size: 11px; gap: 6px; }
    .workspace-nav .workspace-link i { display: none; }
    .workspace-footer { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    body.omo-design *, body.omo-design *::before, body.omo-design *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Staff pages keep only the destination switch in the sidebar. */
.workspace-staff-switch { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px; border-radius: 12px; background: var(--shell-bg); }
.workspace-staff-marker { position: absolute; z-index: -1; inset: 4px auto 4px 4px; width: calc((100% - 8px) / 2); border-radius: 9px; background: var(--shell-raised); transition: transform .22s ease; }
.workspace-staff-switch.is-admin .workspace-staff-marker { transform: translateX(100%); }
.workspace-staff-switch .workspace-link { justify-content: center; min-height: 38px; padding: 8px 4px; font-size: 11px; text-align: center; border-radius: 9px; background: none; }
.workspace-staff-switch .workspace-link i { display: none; }
.workspace-staff-switch .workspace-link[hidden] { display: none; }
.workspace-staff-switch:has(a:last-child:hover) .workspace-staff-marker,
.workspace-staff-switch:has(a:last-child:focus-visible) .workspace-staff-marker { transform: translateX(100%); }
.workspace-staff-switch:has(a:first-of-type:hover) .workspace-staff-marker,
.workspace-staff-switch:has(a:first-of-type:focus-visible) .workspace-staff-marker { transform: translateX(0); }
.workspace-staff-switch.is-single { grid-template-columns: 1fr; }
.workspace-staff-switch.is-single .workspace-staff-marker { width: calc(100% - 8px); transform: none; }
.admin-section-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 20px; }
.admin-section-nav .workspace-link { width: auto; }
/* Staff tools use the same sidebar and inset content frame as the dashboard. */
body.workspace-page.staff-workspace { --workspace-sidebar-width: 240px; background: var(--shell-sidebar); }
body.workspace-page.staff-workspace > .container { position: fixed; inset: 12px 12px 12px var(--workspace-sidebar-width); width: auto; max-width: none; margin: 0; padding: 26px 36px 32px; border-radius: 24px; background: var(--shell-bg); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.staff-workspace .workspace-sidebar { padding: 33px 20px 20px; overflow-y: auto; scrollbar-width: none; }
.staff-workspace .workspace-sidebar::-webkit-scrollbar { display: none; }
.staff-workspace .workspace-brand { flex-shrink: 0; }
.staff-workspace .workspace-nav { display: flex; flex-direction: column; gap: 7px; }
.staff-workspace .workspace-nav .workspace-link { min-height: 47px; padding: 12px 15px; gap: 13px; font-size: 13px; }
.staff-workspace .workspace-nav .workspace-link i { display: inline-block; }
.staff-workspace .workspace-nav .queue-tab::after { content: none; }
.staff-workspace .workspace-footer { flex-shrink: 0; }
body.workspace-page.staff-workspace .dashboard-header { display: flex; flex-wrap: nowrap !important; justify-content: space-between; margin-bottom: 24px; }
.staff-workspace .staff-header-tools { display: flex; align-items: center; gap: 18px; }
body.workspace-page.staff-workspace .staff-header-tools :is(.user-menu, .floating-controls) { margin: 0; }
body.workspace-page.staff-workspace .dashboard-header .header-actions[hidden] { display: none; }
body.workspace-page.staff-workspace .dashboard-header #logout-top { display: inline-flex; align-items: center; min-height: 40px; }
body.workspace-page.staff-workspace .moderation-content { padding-bottom: 0; }
.staff-workspace .moderation-heading { margin: 0 0 24px; align-items: center; }
.staff-workspace .moderation-heading p { margin: 0; }
.staff-workspace #refresh-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; }
.staff-workspace .moderation-workspace { min-height: 440px; grid-template-columns: minmax(260px, .9fr) minmax(0, 1.4fr); }
.staff-workspace .report-queue { display: flex; flex-direction: column; }
.staff-workspace .moderation-empty { flex: 1; min-height: 250px; }
.staff-workspace .report-detail { display: flex; flex-direction: column; background: none; border-left: 1px solid var(--shell-bg); }
.staff-workspace .detail-placeholder { flex: 1; min-height: 300px; }
body.admin-workspace.staff-workspace .admin-title-row { margin: 0 0 24px; padding: 0; }
body.admin-workspace.staff-workspace .admin-page-subtitle { margin: 0; padding: 0; text-align: left; }
body.admin-workspace.staff-workspace .card-header h3 { display: flex; align-items: center; gap: 10px; }
body.admin-workspace.staff-workspace .stats-tiles { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
body.admin-workspace.staff-workspace .stat-tile { min-width: 0; min-height: 88px; }
body.admin-workspace.staff-workspace .stat-tile-label { white-space: normal; }
body.admin-workspace.staff-workspace .system-health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
body.admin-workspace.staff-workspace #system-health-refresh { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 1100px) {
    body.workspace-page.staff-workspace { --workspace-sidebar-width: 215px; }
    .staff-workspace .workspace-sidebar { padding-inline: 14px; }
    body.workspace-page.staff-workspace > .container { padding: 24px; }
    .staff-workspace .moderation-workspace { grid-template-columns: 1fr; }
    .staff-workspace .report-detail { border-left: 0; border-top: 1px solid var(--shell-bg); }
}
@media (max-width: 720px) {
    body.workspace-page.staff-workspace { --workspace-sidebar-width: 250px; }
    body.workspace-page.staff-workspace > .container { position: relative; inset: auto; width: 100%; padding: 20px 16px; border-radius: 0; overflow: visible; min-height: 100dvh; }
    body.workspace-page.staff-workspace .dashboard-header { display: flex !important; }
    .staff-workspace .staff-header-tools { gap: 8px; }
    .staff-workspace .moderation-heading { align-items: flex-start; gap: 12px; }
    body.admin-workspace.staff-workspace .stats-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    body.admin-workspace.staff-workspace .stat-tile { padding: 12px; gap: 10px; flex-direction: column; align-items: flex-start; }
    body.admin-workspace.staff-workspace .system-health-grid { grid-template-columns: 1fr; }
}
/* One scrollbar treatment for document roots, embedded pages and nested panels.
   Width stays overridable so intentionally hidden navigation/Shorts bars stay hidden. */
:root { --site-scrollbar-thumb: #aaaab2; --site-scrollbar-hover: #85858f; --site-scrollbar-track: #f1f1f3; color-scheme: light; }
:root[data-theme="dark"] { --site-scrollbar-thumb: #55555d; --site-scrollbar-hover: #74747e; --site-scrollbar-track: #242426; color-scheme: dark; }
html, body, body * { scrollbar-color: var(--site-scrollbar-thumb) var(--site-scrollbar-track) !important; }
html, * { scrollbar-width: thin; }
html::-webkit-scrollbar, body::-webkit-scrollbar, body *::-webkit-scrollbar { width: 8px; height: 8px; }
html::-webkit-scrollbar-track, body::-webkit-scrollbar-track, body *::-webkit-scrollbar-track { background: var(--site-scrollbar-track) !important; }
html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb, body *::-webkit-scrollbar-thumb { background: var(--site-scrollbar-thumb) !important; border: 2px solid var(--site-scrollbar-track) !important; border-radius: 999px !important; }
html::-webkit-scrollbar-thumb:hover, body::-webkit-scrollbar-thumb:hover, body *::-webkit-scrollbar-thumb:hover { background: var(--site-scrollbar-hover) !important; }
html::-webkit-scrollbar-corner, body::-webkit-scrollbar-corner, body *::-webkit-scrollbar-corner { background: var(--site-scrollbar-track) !important; }
@media (forced-colors: active) {
    html, body, body * { scrollbar-color: auto !important; }
    html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb, body *::-webkit-scrollbar-thumb { background: ButtonText !important; border-color: Canvas !important; }
    html::-webkit-scrollbar-track, body::-webkit-scrollbar-track, body *::-webkit-scrollbar-track { background: Canvas !important; }
}
