/* Dashboard-only visual system. Shared pages retain their existing theme.
   Neutral surfaces, Inter, 20px panels, 12px controls, no decorative borders
   or shadows. The warm accent belongs to the droplets and primary action. */
body.dashboard-shell {
    --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;
    --sidebar-width: 240px;
    --shell-frame-gap: 12px;
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --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-color: var(--shell-text);
    --text-secondary: var(--shell-muted);
    --text-light: var(--shell-muted);
    --primary: var(--shell-accent-text);
    --primary-color: var(--shell-accent-text);
    --primary-light: var(--shell-accent-text);
    --border-color: transparent;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --shadow-xl: none;
    --shadow-2xl: none;
    --shadow-glow: none;
    background: var(--shell-bg);
    color: var(--shell-text);
    font-family: var(--font-secondary);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    transform: none;
}

[data-theme="dark"] body.dashboard-shell {
    --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;
    background: var(--shell-bg);
}

.dashboard-shell button, .dashboard-shell input, .dashboard-shell select,
.dashboard-shell textarea { font-family: inherit; }
.dashboard-shell button { -webkit-tap-highlight-color: transparent; }
.dashboard-shell :is(button, a, input, select, textarea):focus-visible {
    outline: 2px solid var(--shell-accent-text);
    outline-offset: 4px;
}
.dashboard-shell .dashboard-skip {
    position: fixed; top: -70px; left: 16px; z-index: 10000;
    padding: 12px 18px; background: var(--shell-accent); color: #242016; border-radius: 12px;
}
.dashboard-shell .dashboard-skip:focus { top: 12px; }
.dashboard-shell .dashboard-main:focus { outline: none; }

.dashboard-shell .dashboard-account-frame {
    display: block; width: 100%; height: calc(100dvh - 125px);
    min-height: 480px; border: 0; background: transparent;
}

/* App shell */
body.dashboard-shell.omo-design { background: var(--shell-sidebar); }
.dashboard-shell .dashboard-window {
    position: fixed;
    inset: var(--shell-frame-gap) var(--shell-frame-gap) var(--shell-frame-gap) var(--sidebar-width);
    background: var(--shell-bg); border-radius: 24px;
    overflow: auto; overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: var(--shell-hover) transparent;
}
body.dashboard-shell.modal-open .dashboard-window,
body.dashboard-shell[style*="overflow: hidden"] .dashboard-window { overflow: hidden; }
.dashboard-shell .dashboard-sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 100;
    width: var(--sidebar-width); height: 100dvh; padding: 33px 20px 20px;
    display: flex; flex-direction: column; gap: 20px;
    background: var(--shell-sidebar); overflow-x: hidden; overflow-y: auto;
    scrollbar-width: none;
}
.dashboard-shell .dashboard-sidebar::-webkit-scrollbar { display: none; }
.dashboard-shell .sidebar-brand {
    display: flex; align-items: center; gap: 12px; padding: 0 10px;
    color: var(--shell-text); text-decoration: none; flex-shrink: 0;
    font-size: 25px; font-weight: 700; letter-spacing: -.8px;
}
.dashboard-shell .sidebar-brand svg { color: var(--shell-accent); width: 24px; height: 30px; }
.dashboard-shell .sidebar-new-session {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 49px; width: 100%; padding: 12px 16px;
    border: 0; border-radius: 14px; background: var(--shell-accent); color: #282317;
    font-size: 14px; font-weight: 650; cursor: pointer;
    transition: background .18s;
}
.dashboard-shell .sidebar-new-session:hover { background: #f2d580; }
.dashboard-shell .sidebar-new-session i { font-size: 20px; }
.dashboard-shell .hub-nav {
    display: flex; flex: 0 0 auto; flex-direction: column; gap: 7px;
    padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
    overflow: visible; order: 0;
}
.dashboard-shell .hub-nav-item, .dashboard-shell .sidebar-link {
    display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-start; gap: 13px;
    min-height: 47px; width: 100%; padding: 12px 15px; text-align: left;
    background: transparent; border: 0; border-radius: 12px; box-shadow: none;
    color: var(--shell-muted); font-size: 13px; line-height: 1.5; font-weight: 500;
    text-decoration: none; cursor: pointer; transition: color .18s, background .18s;
}
.dashboard-shell .hub-nav-item i, .dashboard-shell .sidebar-link i { font-size: 20px; flex-shrink: 0; }
.dashboard-shell .hub-nav-item.active,
.dashboard-shell .sidebar-link.active,
.dashboard-shell .hub-nav-item:hover, .dashboard-shell .sidebar-link:not(:disabled):hover {
    background: var(--shell-raised); color: var(--shell-text);
}
.dashboard-shell .hub-nav-item.active, .dashboard-shell .sidebar-link.active { font-weight: 650; }
.dashboard-shell .sidebar-coming-soon { cursor: default; opacity: .65; }
.dashboard-shell .sidebar-coming-soon small { margin-left: auto; font-size: 10px; font-weight: 400; }
.dashboard-shell .sidebar-bottom { margin-top: auto; padding-top: 16px; }
.dashboard-shell .sidebar-bottom .header-actions { padding: 0; }
.dashboard-shell .sidebar-staff-switch {
    grid-column: 1 / -1; position: relative; isolation: isolate;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 4px; margin-bottom: 10px; border-radius: 12px;
    background: var(--shell-bg);
}
.dashboard-shell .sidebar-staff-switch a {
    display: flex; align-items: center; justify-content: center;
    min-height: 38px; padding: 8px 4px; border-radius: 9px;
    color: var(--shell-muted); font-size: 11px; font-weight: 500;
    line-height: 1.3; text-align: center; text-decoration: none;
    transition: color .22s ease;
}
.dashboard-shell .sidebar-staff-switch a:hover,
.dashboard-shell .sidebar-staff-switch a:focus-visible { color: var(--shell-text); }
.dashboard-shell .sidebar-staff-switch-single { grid-template-columns: 1fr; }
.dashboard-shell .hub-nav .hub-badge { margin-left: auto; padding: 0; background: none; font-size: 8px; }
.dashboard-shell .dashboard-main {
    position: relative; z-index: 1; width: 100%;
    max-width: 1560px; min-height: calc(100dvh - 2 * var(--shell-frame-gap) - 54px);
    margin: 0 auto; padding: 26px 36px 32px;
}
.dashboard-shell .dashboard-header {
    display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between;
    gap: 16px; padding: 0; margin: 0 0 27px; min-height: 44px;
    border: 0; background: transparent; box-shadow: none;
}
.dashboard-shell .dashboard-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dashboard-shell .dashboard-heading h1 {
    margin: 0; padding: 0; border: 0; color: var(--shell-text); background: none;
    font-size: 24px; font-weight: 650; line-height: 1.2; letter-spacing: -.7px;
}
.dashboard-shell .dashboard-toolbar, .dashboard-shell .user-menu {
    display: flex; align-items: center; gap: 15px; margin: 0;
}
.dashboard-shell .floating-controls {
    position: static !important; top: auto !important; right: auto !important; left: auto !important;
    display: flex; align-items: center; gap: 10px;
    padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none;
}
.dashboard-shell .floating-controls .nav-links { display: flex; gap: 6px; }
.dashboard-shell .floating-controls .nav-btn,
.dashboard-shell .theme-toggle, .dashboard-shell .bell-btn {
    border: 0; background: transparent; box-shadow: none; color: var(--shell-muted);
    border-radius: 10px; min-height: 36px; padding: 8px 10px;
    font-size: 12px; font-weight: 500; transform: none;
}
.dashboard-shell .theme-toggle { width: 36px; height: 36px; }
.dashboard-shell .theme-toggle :is(.sun, .moon) { color: var(--shell-muted); }
.dashboard-shell .floating-controls .nav-btn:hover,
.dashboard-shell .theme-toggle:hover, .dashboard-shell .bell-btn:hover { background: var(--shell-raised); color: var(--shell-text); }
body.dashboard-shell .lang-switcher__btn { width: 36px; height: 36px; border-radius: 10px; background: none; color: var(--shell-muted); }
body.dashboard-shell .lang-switcher__btn:hover { background: var(--shell-raised); box-shadow: none; transform: none; }
body.dashboard-shell .lang-switcher__menu { background: var(--shell-raised); border: 0; box-shadow: none; }
body.dashboard-shell .lang-switcher__opt { color: var(--shell-text); font-size: 13px; }
body.dashboard-shell .lang-switcher__opt:hover { background: var(--shell-hover); }
body.dashboard-shell .lang-switcher__opt .check { color: var(--shell-accent-text); }
.dashboard-shell .header-actions { margin: 0 0 10px; overflow: visible; mask-image: none; -webkit-mask-image: none; }
.dashboard-shell .sidebar-bottom .header-actions button { width: 100%; min-height: 39px; background: var(--shell-raised); color: var(--shell-text); font-size: 12px; }
.dashboard-shell .user-menu > .user-info { display: none; }
.dashboard-shell .online-users-list .user-info { text-align: left; }
.dashboard-shell .avatar-menu-btn { border: 0; box-shadow: none; border-radius: 12px; }
.dashboard-shell .dashboard-logout { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; padding: 6px; border: 0; border-radius: 10px; background: transparent; color: var(--shell-muted); cursor: pointer; }
.dashboard-shell .dashboard-logout i { font-size: 22px; }
.dashboard-shell .dashboard-logout:hover { background: var(--shell-raised); color: var(--shell-text); }
.dashboard-shell .avatar {
    width: 36px; height: 36px; border-radius: 12px; border: 0;
    color: var(--shell-text); background: var(--shell-raised); font-size: 13px; box-shadow: none;
}
.dashboard-shell .avatar img { border-radius: 12px; }
.dashboard-shell .sidebar-toggle, .dashboard-shell .sidebar-backdrop { display: none; }

/* Welcome panel: portrait and animated droplets have their own noninteractive area. */
.dashboard-shell .hub-hero {
    display: block; position: relative; min-height: 300px; padding: 35px 38px;
    margin: 0 0 24px; border: 0; border-radius: 22px;
    background: var(--shell-panel); box-shadow: none; overflow: hidden;
}
.dashboard-shell .hub-hero::before { content: none; }
.dashboard-shell .hub-hero-main { position: relative; z-index: 2; width: 63%; }
.dashboard-shell .hub-hero h2 {
    font-size: clamp(27px, 2.5vw, 39px); line-height: 1.25; letter-spacing: -1.2px; font-weight: 600;
    color: var(--shell-text); margin: 0 0 14px; padding: 0; border: 0;
}
.dashboard-shell .hub-hero h2 > span { display: block; }
.dashboard-shell .hub-hero .hub-name { color: var(--shell-muted); background: none; overflow-wrap: anywhere; }
.dashboard-shell .hub-subline { margin: 0; max-width: 440px; font-size: 14px; line-height: 1.7; color: var(--shell-muted); }
.dashboard-shell .hub-hero-stats { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 26px; }
.dashboard-shell .hub-stat { min-width: 65px; }
.dashboard-shell .hub-stat small { display: block; font-size: 11px; text-transform: none; letter-spacing: 0; color: var(--shell-muted); }
.dashboard-shell .hub-stat b { display: block; margin-top: 3px; font-size: 17px; font-weight: 600; color: var(--shell-text); }
.dashboard-shell .hub-hero-actions:has(a:not([style*="display:none"]):not([style*="display: none"])) { margin-top: 15px; }
.dashboard-shell .hub-hero-art { position: absolute; inset: 0 0 0 auto; width: 40%; pointer-events: none; }
.dashboard-shell .hub-hero-art img {
    position: absolute; height: 335px; width: auto; max-width: none; right: 7px; bottom: -20px;
    object-fit: contain; object-position: bottom; filter: none;
}
.dashboard-shell .hero-droplet {
    position: absolute; width: 24px; height: 34px; z-index: 1;
    background: var(--shell-accent); border-radius: 70% 0 65% 65%;
    transform: rotate(-45deg); animation: dashboard-droplet 7s ease-in-out infinite;
}
.dashboard-shell .hero-droplet-one { left: 3%; top: 28%; width: 30px; height: 41px; }
.dashboard-shell .hero-droplet-two { right: 7%; top: 21%; width: 13px; height: 19px; animation-delay: -3s; }
.dashboard-shell .hero-droplet-three { left: 0; bottom: 19%; width: 12px; height: 17px; opacity: .6; animation-delay: -5s; }
@keyframes dashboard-droplet {
    0%, 100% { transform: translateY(0) rotate(-45deg); }
    50% { transform: translateY(13px) rotate(-40deg); }
}

/* The data and hooks inside these panels remain owned by the existing scripts. */
.dashboard-shell .hub-grid { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 24px; }
.dashboard-shell .hub-col-main, .dashboard-shell .hub-col-side { min-width: 0; gap: 24px; }
.dashboard-shell .dashboard-card,
.dashboard-shell .dashboard-card:hover {
    background: var(--shell-panel); border: 0; border-radius: 20px;
    box-shadow: none; transform: none; transition: none;
}
.dashboard-shell .card-header { padding: 23px 25px 5px; border: 0; background: none; gap: 15px; }
.dashboard-shell .card-header h3 { color: var(--shell-text); font-size: 17px; line-height: 1.4; letter-spacing: -.4px; font-weight: 600; }
.dashboard-shell .card-header-link { color: var(--shell-accent-text); font-size: 11px; font-weight: 500; }
.dashboard-shell .card-content { padding: 20px 25px 25px; min-width: 0; }
.dashboard-shell .dashboard-community-card { min-height: 410px; }
.dashboard-shell .hub-empty { font-size: 13px; line-height: 1.8; }
.dashboard-shell .hub-feed-list:has(> .hub-empty:only-child) { min-height: 270px; justify-content: center; align-items: center; text-align: center; padding: 20px; }
.dashboard-shell .hub-feed-list:has(> .hub-empty:only-child)::before {
    content: ''; display: block; width: 22px; height: 30px; border-radius: 70% 0 65% 65%;
    background: var(--shell-accent); opacity: .5; transform: rotate(-45deg); margin-bottom: 22px;
}
.dashboard-shell .hub-post { padding: 23px 0; gap: 14px; border: 0; }
.dashboard-shell .hub-post + .hub-post { margin-top: 10px; }
.dashboard-shell .hub-post:first-child { padding-top: 0; }
.dashboard-shell .hub-post:last-child { padding-bottom: 0; }
.dashboard-shell .hub-post .hub-avatar { width: 39px; height: 39px; background: var(--shell-raised); color: var(--shell-text); font-size: 13px; font-weight: 500; }
.dashboard-shell .hub-post-head { font-size: 13px; gap: 8px; }
.dashboard-shell .hub-post-head .hub-time { margin-left: auto; font-size: 10px; }
.dashboard-shell .hub-post .feed-stats { background: var(--shell-raised); border: 0; border-radius: 12px; box-shadow: none; }
.dashboard-shell .hub-post .feed-stat-value { font-size: 14px; color: var(--shell-text); }
.dashboard-shell .hub-post .feed-stat-label { font-size: 10px; color: var(--shell-muted); }
.dashboard-shell .hub-chip { padding: 0; background: none; color: var(--shell-muted); font-size: 10px; font-weight: 400; }
.dashboard-shell .hub-post-actions { gap: 10px; font-size: 11px; }
.dashboard-shell .reaction-btn { border: 0; background: transparent; box-shadow: none; border-radius: 8px; color: var(--shell-muted); }
.dashboard-shell .reaction-btn:hover, .dashboard-shell .reaction-btn.reacted { background: var(--shell-raised); color: var(--shell-accent-text); }
.dashboard-shell .hub-live-row { border: 0; padding: 10px 0; gap: 12px; }
.dashboard-shell .hub-live-avatar { background: var(--shell-raised); color: var(--shell-text); box-shadow: none; }
.dashboard-shell .hub-live-name { font-size: 13px; }
.dashboard-shell .hub-live-meta { font-size: 11px; color: var(--shell-muted); }
.dashboard-shell .hub-live-value, .dashboard-shell .hub-friends-count { color: var(--shell-muted); font-size: 11px; }
.dashboard-shell .hub-dot { box-shadow: none; }
.dashboard-shell .stat-item { display: flex; flex-direction: row; align-items: center; justify-content: space-between; min-height: 0; padding: 10px 0; border: 0; background: transparent; gap: 16px; text-align: left; }
.dashboard-shell .stat-label { color: var(--shell-muted); font-size: 12px; }
.dashboard-shell .stat-value { font-size: 14px; color: var(--shell-text); font-weight: 600; text-align: right; }
/* Keep dashboard statistics as a quiet list, including under the shared theme. */
body.dashboard-shell.omo-design .hub-stat-list { padding-top: 6px; }
body.dashboard-shell.omo-design .hub-stat-list .stat-item {
    min-height: 48px;
    margin: 0;
    padding: 13px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    gap: 20px;
}
body.dashboard-shell.omo-design .hub-stat-list .stat-item + .stat-item {
    border-top: 1px solid color-mix(in srgb, var(--shell-text) 8%, transparent);
}
body.dashboard-shell.omo-design .hub-stat-list .stat-label {
    min-width: 0;
    opacity: 1;
    color: var(--shell-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: normal;
    text-transform: none;
}
body.dashboard-shell.omo-design .hub-stat-list .stat-value {
    flex-shrink: 0;
    color: var(--shell-text);
    font-size: 15px;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.dashboard-shell .stat-note { padding: 0 4px; font-size: 11px; opacity: 1; }
.dashboard-shell .dashboard-content { padding: 0; }
.dashboard-shell .dashboard-grid { gap: 24px; }
.dashboard-shell .no-data { background: none; border: 0; box-shadow: none; color: var(--shell-muted); font-size: 13px; }

/* The dashboard's existing tabs, dropdowns and dialogs use the same flat surfaces. */
.dashboard-shell :is(.btn, .nav-btn, .icon-btn, .add-btn) { border: 0; box-shadow: none; border-radius: 11px; font-size: 13px; }
.dashboard-shell :is(.btn, .nav-btn).primary { background: var(--shell-accent); color: #282317; }
.dashboard-shell :is(.btn, .nav-btn).secondary { background: var(--shell-raised); color: var(--shell-text); }
.dashboard-shell :is(.btn, .nav-btn)::before { content: none; }
.dashboard-shell :is(.btn, .nav-btn):hover { box-shadow: none; transform: none; }
.dashboard-shell :is(.gamemode-card, .activity-item, .friend-item, .stash-item, .leaderboard-item) {
    background: var(--shell-raised); border: 0; box-shadow: none; border-radius: 14px;
}
.dashboard-shell .gamemode-card:hover { background: var(--shell-hover); box-shadow: none; transform: none; }
.dashboard-shell .gamemode-card::before, .dashboard-shell .gamemode-card::after { content: none; }
.dashboard-shell .ph-glass { background: var(--shell-panel); color: var(--shell-accent-text); box-shadow: none; border: 0; }
.dashboard-shell .gamemode-title { color: var(--shell-text); }
.dashboard-shell :is(.dropdown-menu, .notif-dropdown, .online-users-dropdown, .language-menu) {
    background: var(--shell-raised); border: 0; border-radius: 15px; box-shadow: none; backdrop-filter: none;
}
.dashboard-shell .dropdown-menu button { color: var(--shell-text); }
.dashboard-shell :is(.activity-detail-modal, .account-required-modal, .modal-content) {
    background: var(--shell-panel); border: 0; border-radius: 22px; box-shadow: none; backdrop-filter: none;
    scrollbar-width: thin; scrollbar-color: var(--shell-hover) var(--shell-panel);
}
.dashboard-shell :is(.new-session-modal, .add-friend-modal)::-webkit-scrollbar-thumb,
.dashboard-shell :is(.new-session-modal, .add-friend-modal)::-webkit-scrollbar-thumb:hover { background: var(--shell-hover); border: 0; }
.dashboard-shell :is(.activity-detail-header, .modal-header, .modal-actions, .notif-dropdown-header, .dropdown-header) {
    background: transparent; border: 0;
}
.dashboard-shell :is(.activity-detail-header, .modal-header) h3 { color: var(--shell-text); font-size: 20px; }
.dashboard-shell .activity-modal-overlay { backdrop-filter: none; background: rgba(0, 0, 0, .6); transition: opacity .18s ease; }
.dashboard-shell :is(input, select, textarea) { background: var(--shell-raised); color: var(--shell-text); border: 0; border-radius: 10px; box-shadow: none; }
.dashboard-shell :is(input, select, textarea):focus { box-shadow: none; }
.dashboard-shell .anonymous-warning::before { content: none; }
.dashboard-shell .page-gfm-footer { position: relative; width: auto; transform: none; margin: 0; padding: 12px 36px 22px; text-align: center; }
.dashboard-shell .gofundme-btn { background: none; border: 0; box-shadow: none; color: var(--shell-muted); font-size: 10px; padding: 0; }
.dashboard-shell .gofundme-btn:hover { background: none; box-shadow: none; transform: none; color: var(--shell-text); }
.dashboard-shell .gofundme-btn::before { content: none; }
.dashboard-shell .dashboard-atmosphere { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; opacity: .12; }
.dashboard-shell .atmo-orb { display: none; }
.dashboard-shell .atmo-drop { background: var(--shell-accent); opacity: .035; box-shadow: none; filter: none; }

@media (max-width: 1150px) {
    body.dashboard-shell { --sidebar-width: 215px; }
    .dashboard-shell .dashboard-sidebar { padding-inline: 14px; }
    .dashboard-shell .sidebar-brand { font-size: 22px; }
    .dashboard-shell .dashboard-main { padding-inline: 25px; }
    .dashboard-shell .hub-grid { grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 18px; }
    .dashboard-shell .card-header { padding-inline: 20px; }
    .dashboard-shell .card-content { padding-inline: 20px; }
    .dashboard-shell .hub-hero { padding: 30px; }
    .dashboard-shell .hub-hero-art img { right: -38px; }
    .dashboard-shell .floating-controls .nav-links { display: none; }
}
@media (max-width: 900px) {
    .dashboard-shell .dashboard-header { flex-wrap: nowrap !important; gap: 12px !important; }
    .dashboard-shell .hub-nav { flex: 0 0 auto; }
    .dashboard-shell .user-menu { padding: 0; margin: 0; }
    .dashboard-shell .hub-grid { grid-template-columns: minmax(0, 1fr); }
    .dashboard-shell .hub-col-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .dashboard-shell .hub-hero { min-height: 280px; padding: 28px; }
    .dashboard-shell .hub-hero-art { width: 35%; }
    .dashboard-shell .hub-hero-art img { height: 270px; right: -55px; }
    .dashboard-shell .hub-hero h2 { font-size: 28px; }
    .dashboard-shell .hero-droplet-one { left: -15%; width: 20px; height: 27px; }
    .dashboard-shell .hero-droplet-two { display: none; }
    .dashboard-shell .card-header h3 { font-size: 15px; }
    .dashboard-shell .dashboard-community-card { min-height: 0; }
}
@media (max-width: 720px) {
    body.dashboard-shell { --sidebar-width: 250px; --shell-frame-gap: 0px; }
    .dashboard-shell .dashboard-window { position: relative; inset: auto; border-radius: 0; overflow: visible; }
    .dashboard-shell .dashboard-main { width: 100%; margin: 0; padding: 20px 18px 24px; }
    .dashboard-shell .dashboard-sidebar { z-index: 1002; transform: translateX(-100%); visibility: hidden; transition: transform .22s ease; padding-top: 25px; }
    .dashboard-shell.sidebar-open .dashboard-sidebar { transform: translateX(0); visibility: visible; }
    body.dashboard-shell.sidebar-open { overflow: hidden; }
    .dashboard-shell .sidebar-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; cursor: pointer; }
    .dashboard-shell .sidebar-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 1001; border: 0; border-radius: 0; background: rgba(0, 0, 0, .55); }
    .dashboard-shell .dashboard-header { margin-bottom: 21px; gap: 10px; }
    .dashboard-shell .dashboard-heading h1 { font-size: 20px; letter-spacing: -.5px; }
    .dashboard-shell .dashboard-toolbar, .dashboard-shell .user-menu { gap: 6px; }
    .dashboard-shell .floating-controls { gap: 0; }
    .dashboard-shell .floating-controls .online-status-wrapper { display: none !important; }
    .dashboard-shell .sidebar-bottom .header-actions .nav-btn { max-width: none; padding: 10px; }
    .dashboard-shell .header-actions:has(button[style*="display: none"]) { display: none; }
    .dashboard-shell .hub-hero { border-radius: 18px; margin-bottom: 18px; }
    .dashboard-shell .hub-hero-art img { right: 5px; }
    .dashboard-shell .hub-hero-main { width: 65%; }
    .dashboard-shell .hub-hero-stats { gap: 25px; margin-top: 24px; }
    .dashboard-shell .dashboard-atmosphere { left: 0; }
    .dashboard-shell .page-gfm-footer { margin-left: 0; }
    .dashboard-shell .notif-dropdown { position: fixed; top: 73px; left: 18px; right: 18px; width: auto; max-width: none; }
}
@media (max-width: 480px) {
    .dashboard-shell .dashboard-main { padding-inline: 14px; }
    .dashboard-shell .dashboard-heading { gap: 8px; }
    .dashboard-shell .dashboard-heading h1 { font-size: 18px; }
    .dashboard-shell .dashboard-toolbar { gap: 0; }
    .dashboard-shell .avatar { width: 31px; height: 31px; }
    .dashboard-shell .theme-toggle, .dashboard-shell .bell-btn, body.dashboard-shell .lang-switcher__btn { width: 30px; min-height: 32px; height: 32px; padding: 5px; }
    .dashboard-shell .floating-controls .lang-switcher__btn { width: 30px !important; height: 32px !important; }
    .dashboard-shell .hub-hero {
        display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas: 'heading heading' 'copy copy' 'actions actions' 'stats art';
        gap: 8px; padding: 24px; min-height: 315px;
    }
    .dashboard-shell .hub-hero-main { display: contents; }
    .dashboard-shell .hub-hero h2 { grid-area: heading; font-size: 26px; max-width: 100%; margin-bottom: 4px; }
    .dashboard-shell .hub-subline { grid-area: copy; max-width: 100%; font-size: 12px; }
    .dashboard-shell .hub-hero-actions { grid-area: actions; }
    .dashboard-shell .hub-hero-actions:not(:has(a:not([style*="display:none"]):not([style*="display: none"]))) { display: none; }
    .dashboard-shell .hub-hero-stats { grid-area: stats; align-self: center; flex-direction: column; gap: 9px; margin-top: 0; }
    .dashboard-shell .hub-stat b { font-size: 15px; margin-top: 0; }
    .dashboard-shell .hub-stat small { font-size: 10px; }
    .dashboard-shell .hub-hero-art { grid-area: art; position: relative; inset: auto; width: 100%; height: 145px; }
    .dashboard-shell .hub-hero-art img { height: auto; width: calc(100% + 45px); right: -24px; bottom: -24px; }
    .dashboard-shell .hero-droplet-one { top: 25%; left: 2%; width: 14px; height: 20px; }
    .dashboard-shell .hero-droplet-three { display: none; }
    .dashboard-shell .hub-col-side { display: flex; gap: 18px; }
    .dashboard-shell .card-header { padding: 21px 20px 3px; }
    .dashboard-shell .card-header h3 { font-size: 16px; }
    .dashboard-shell .card-content { padding: 17px 20px 22px; }
    .dashboard-shell .hub-post { gap: 10px; }
    .dashboard-shell .hub-post .hub-avatar { width: 31px; height: 31px; font-size: 11px; }
    .dashboard-shell .hub-post-head .hub-time { width: 100%; margin-left: 0; }
    .dashboard-shell .hub-feed-list:has(> .hub-empty:only-child) { min-height: 200px; padding-inline: 0; }
    .dashboard-shell .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 360px) {
    .dashboard-shell .card-header { flex-wrap: wrap; gap: 8px; }
    .dashboard-shell .card-header h3 { flex-basis: 100%; }
}
/* Keep every navigation action visible without an inner scrollbar. */
@media (max-height: 950px) {
    .dashboard-shell .dashboard-sidebar { padding-block: 20px 16px; gap: 12px; }
    .dashboard-shell .sidebar-brand { font-size: 24px; line-height: 1.2; }
    .dashboard-shell .sidebar-new-session { min-height: 42px; padding-block: 9px; }
    .dashboard-shell .hub-nav { gap: 3px; }
    .dashboard-shell .hub-nav > :is(.hub-nav-item, .sidebar-link),
    .dashboard-shell .sidebar-bottom > .sidebar-link { min-height: 36px; padding-block: 7px; }
    .dashboard-shell .sidebar-bottom { padding-top: 0; flex-shrink: 0; }
}
@media (max-height: 750px) {
}
@media (max-height: 700px) {
    .dashboard-shell .dashboard-sidebar { padding: 12px 16px; gap: 8px; }
    .dashboard-shell .sidebar-brand { font-size: 22px; }
    .dashboard-shell .sidebar-new-session { min-height: 38px; padding: 8px 12px; }
    .dashboard-shell .hub-nav { gap: 2px; }
    .dashboard-shell .hub-nav > :is(.hub-nav-item, .sidebar-link),
    .dashboard-shell .sidebar-bottom > .sidebar-link { min-height: 32px; padding: 5px 12px; }
    .dashboard-shell .sidebar-bottom .header-actions { margin-bottom: 4px; }
    .dashboard-shell .sidebar-bottom .header-actions .nav-btn { min-height: 32px; padding: 6px 10px; }
}
@media (max-height: 600px) {
    .dashboard-shell .dashboard-sidebar { padding: 8px 14px; gap: 6px; }
    .dashboard-shell .sidebar-brand { font-size: 20px; }
    .dashboard-shell .sidebar-brand svg { height: 24px; }
    .dashboard-shell .sidebar-new-session { min-height: 34px; padding: 6px 12px; }
    .dashboard-shell .hub-nav { gap: 2px; }
    .dashboard-shell .hub-nav > :is(.hub-nav-item, .sidebar-link),
    .dashboard-shell .sidebar-bottom > .sidebar-link { min-height: 28px; padding: 4px 10px; font-size: 12px; gap: 9px; }
    .dashboard-shell .hub-nav > :is(.hub-nav-item, .sidebar-link) i,
    .dashboard-shell .sidebar-bottom > .sidebar-link i { font-size: 18px; }
    .dashboard-shell .sidebar-bottom { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 4px; }
    .dashboard-shell .sidebar-bottom > .sidebar-link { padding-inline: 6px; gap: 6px; }
    .dashboard-shell .sidebar-bottom .header-actions,
    .dashboard-shell .sidebar-whats-new { grid-column: 1 / -1; margin: 0; }
}
@media (max-height: 520px) {
    .dashboard-shell .hub-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
    .dashboard-shell .hub-nav > :is(.hub-nav-item, .sidebar-link) { min-height: 28px; padding: 3px 6px; font-size: 11px; line-height: 1.2; gap: 0; overflow-wrap: anywhere; }
    .dashboard-shell .hub-nav > :is(.hub-nav-item, .sidebar-link) i { display: none; }
    .dashboard-shell .hub-nav .sidebar-coming-soon { flex-direction: column; align-items: flex-start; justify-content: center; }
    .dashboard-shell .sidebar-coming-soon small { margin-left: 0; font-size: 9px; }
    .dashboard-shell .hub-nav .hub-badge { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
    .dashboard-shell *, .dashboard-shell *::before, .dashboard-shell *::after {
        animation: none !important; transition: none !important; scroll-behavior: auto !important;
    }
}

/* Mixed activity stream on the dashboard home. */
.dashboard-shell .hub-community-status { display: block; margin: -3px 0 16px; color: var(--shell-muted); font-size: 12px; }
.dashboard-shell .hub-community-status[data-state="live"] { color: var(--shell-accent-text); }
.dashboard-shell .hub-activity { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--shell-raised); }
.dashboard-shell .hub-activity:first-child { padding-top: 0; }
.dashboard-shell .hub-activity:last-child { border-bottom: 0; }
.dashboard-shell .hub-activity-avatar { flex: 0 0 38px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; background: var(--shell-raised); color: var(--shell-text); text-decoration: none; font-size: 12px; font-weight: 600; }
.dashboard-shell .hub-activity-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dashboard-shell .hub-activity-body { flex: 1; min-width: 0; }
.dashboard-shell .hub-activity-heading { display: flex; align-items: baseline; gap: 14px; justify-content: space-between; margin-bottom: 3px; }
.dashboard-shell .hub-activity-heading b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.dashboard-shell .hub-activity time { flex-shrink: 0; font-size: 11px; color: var(--shell-muted); }
.dashboard-shell .hub-activity-link { display: block; color: var(--shell-text); text-decoration: none; border-radius: 5px; }
.dashboard-shell .hub-activity-link:hover .hub-activity-text { text-decoration: underline; }
.dashboard-shell .hub-activity-kind { display: block; color: var(--shell-muted); font-size: 12px; }
.dashboard-shell .hub-activity-kind.is-live { color: var(--shell-accent-text); }
.dashboard-shell .hub-activity-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: 13px; margin-top: 6px; }
.dashboard-shell .hub-activity-more { border: 0; background: var(--shell-raised); color: var(--shell-text); border-radius: 10px; padding: 10px 16px; margin-top: 16px; font: inherit; font-size: 12px; cursor: pointer; }
@media(max-width:600px) { .dashboard-shell .hub-activity { gap: 10px; } .dashboard-shell .hub-activity-heading { flex-wrap: wrap; gap: 0 8px; } }
.dashboard-shell .hub-activity .feed-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 12px; background: var(--shell-raised); border: 0; border-radius: 12px; overflow: hidden; }
.dashboard-shell .hub-activity .feed-stat { min-width: 0; padding: 12px 8px; border: 0; }
.dashboard-shell .hub-activity .feed-stat-value { color: var(--shell-text); font-size: 14px; overflow-wrap: anywhere; }
.dashboard-shell .hub-activity .feed-stat-value.live { color: var(--shell-accent-text); }
.dashboard-shell .hub-activity .feed-stat-label { color: var(--shell-muted); font-size: 10px; }
@media(max-width:600px) { .dashboard-shell .hub-activity .feed-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
