/* The final shared layer for every first-party page. Custom profile media/themes remain scoped. */
@font-face{font-family:Ultraproxi;src:url('/assets/ultraproxi.otf') format('opentype');font-weight:100 900;font-display:swap}
:root{color-scheme:dark;--hub-bg:#25272b;--hub-panel:#34373c;--hub-raised:#3b3f44;--hub-input:#292d31;--hub-hairline:#ffffff20;--hub-border:var(--hub-hairline);--hub-text:#f4f4f4;--hub-muted:#b8bdc4;--hub-accent:#76fa74;--hub-accent-ink:#14210e;--hub-soft:#76fa7418;--ui-radius:6px;--workspace-radius:var(--ui-radius);--bg:var(--hub-bg);--surface:var(--hub-panel);--surface2:var(--hub-input);--text:var(--hub-text);--muted:var(--hub-muted);--line:var(--hub-hairline);--accent:var(--hub-accent);--on-accent:var(--hub-accent-ink);--soft:var(--hub-soft);--panel:var(--hub-panel);--design-header:72px;--design-sidebar:184px;--design-gap:24px}
:root[data-theme=light]{color-scheme:light;--hub-bg:#eceef0;--hub-panel:#fff;--hub-raised:#f3f4f6;--hub-input:#f6f7f8;--hub-hairline:#20263028;--hub-text:#25272b;--hub-muted:#59616b;--hub-accent:#32872e;--hub-accent-ink:#fff;--hub-soft:#32872e15}
:root[data-accent=purple]{--hub-accent:#c4adff;--hub-accent-ink:#251739;--hub-soft:#c4adff18}:root[data-accent=blue]{--hub-accent:#89d9fa;--hub-accent-ink:#112c39;--hub-soft:#89d9fa18}:root[data-accent=orange]{--hub-accent:#ffc38a;--hub-accent-ink:#34210e;--hub-soft:#ffc38a18}
:root[data-theme=light][data-accent=purple]{--hub-accent:#7650ba;--hub-accent-ink:#fff}:root[data-theme=light][data-accent=blue]{--hub-accent:#126e96;--hub-accent-ink:#fff}:root[data-theme=light][data-accent=orange]{--hub-accent:#a85113;--hub-accent-ink:#fff}
html{background:var(--hub-bg);color:var(--hub-text);scrollbar-gutter:auto}body,body.community-page,body.account-hub-page{background:var(--hub-bg);color:var(--hub-text);font:14px/1.6 Arial,Helvetica,sans-serif;margin:0;min-width:0;max-width:none;padding:0;min-height:100dvh}
*{box-sizing:border-box}button,input,select,textarea{font-family:Arial,Helvetica,sans-serif}a{color:var(--hub-accent)}h1,h2,h3{color:inherit;font-family:Ultraproxi,Arial,sans-serif;font-weight:650;letter-spacing:0}h1{font-size:28px;line-height:1.25}h2{font-size:20px;line-height:1.35}h3{font-size:16px;line-height:1.4}p,li{line-height:1.65}a,button{touch-action:manipulation}a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--hub-accent);outline-offset:3px}[hidden]{display:none!important}
body>.topbar,body>.unified-header{height:var(--design-header);min-height:var(--design-header);padding:12px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--hub-bg);border:0;border-bottom:1px solid var(--hub-hairline);max-width:none;margin:0;box-shadow:none}
body>.topbar .brand,body>.unified-header .site-brand{display:flex;align-items:center;gap:12px;color:var(--hub-text);text-decoration:none;min-width:0;font-family:Ultraproxi,Arial,sans-serif}body>.topbar .brand-name,body>.unified-header .site-brand-name{font:650 23px/1.2 Ultraproxi,Arial,sans-serif;letter-spacing:0;white-space:nowrap}body>.topbar .corner-logo,body>.unified-header .site-logo-stack{position:relative;display:block;width:42px;height:42px;flex:none}body>.unified-header .site-logo-stack img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transform:none}body>.topbar .brand-subtitle,.unified-header .site-brand-subtitle{display:none!important}
body>.unified-header .site-nav,.topbar .topbar-buttons{display:flex;gap:8px;align-items:center;width:auto;flex:none}.unified-header .site-nav a,.topbar .topbar-buttons a,.topbar .topbar-buttons button{min-height:36px!important;height:auto;padding:8px 12px!important;border:1px solid var(--hub-hairline)!important;border-radius:var(--ui-radius)!important;background:transparent!important;color:var(--hub-text)!important;font:600 12px/1.4 Arial!important;text-decoration:none}.unified-header .site-nav a[aria-current=page]{background:var(--hub-soft)!important;color:var(--hub-accent)!important;border-color:var(--hub-hairline)!important}
body:has(.topbar) .shell,.unified-shell{display:grid;grid-template-columns:var(--design-sidebar) minmax(0,1fr);width:100%;max-width:1440px;margin:0 auto;min-height:calc(100dvh - var(--design-header))}body:has(.topbar) .sidebar,.unified-sidebar{padding:28px 16px;border-right:1px solid var(--hub-hairline);background:transparent;position:sticky;top:0;height:calc(100dvh - var(--design-header));overflow:auto;display:flex;flex-direction:column;gap:12px}
.unified-sidebar nav{display:grid;gap:6px}.unified-sidebar a,.sidebar .nav-item{display:flex;align-items:center;gap:12px;width:100%;min-height:42px;padding:10px 12px;border:1px solid transparent!important;background:none;color:var(--hub-muted);border-radius:var(--ui-radius);font:600 13px/1.5 Arial;text-decoration:none}.unified-sidebar a span,.sidebar .nav-item [data-icon]{width:20px;height:20px;display:grid;place-items:center;flex:none}.unified-sidebar svg{width:19px;height:19px}.unified-sidebar a:nth-child(5){margin-top:14px;padding-top:16px;border-top:1px solid var(--hub-hairline)!important;border-radius:0}.unified-sidebar a:hover,.sidebar .nav-item:hover{color:var(--hub-text);background:var(--hub-input)}.unified-sidebar a[aria-current=page],.sidebar .nav-item.active{background:var(--hub-soft);color:var(--hub-accent);border-color:transparent!important;box-shadow:none}.sidebar .sidebar-bottom{margin-top:14px;padding-top:14px}
body:has(.topbar) .main-content,.unified-shell>main,body:not(:has(.topbar)) .unified-shell>main{margin:0!important;padding:32px!important;width:100%;min-width:0;max-width:none!important;background:transparent;border:0;box-shadow:none}.unified-shell>main>h1,.unified-page-title,.page-heading h1,.hub-welcome h1,.admin-topline h1{font:650 28px/1.25 Ultraproxi,Arial!important;letter-spacing:0;margin:0 0 12px!important}.page-heading,.hub-welcome,.admin-topline{margin-bottom:24px}.page-heading .muted,.hub-welcome>p:last-child,.admin-topline .muted{font:14px/1.65 Arial;color:var(--hub-muted);max-width:680px}.eyebrow,.hub-eyebrow,.home-eyebrow{font:600 10px/1.5 Arial!important;color:var(--hub-muted)!important;letter-spacing:1px!important}.unified-shell>main p{color:var(--hub-muted)}
.unified-shell :is(.panel,.account-card,.hub-identity,.profile-editor,.person-card,.admin-view,.feature-request,.card,.feature-compose,.feature-cloud,.feature-theme,.people-search,.suspension-panel){background:var(--hub-panel);border:1px solid var(--hub-hairline)!important;border-radius:var(--ui-radius);box-shadow:none}.panel-head,.section-title{padding:20px 24px;background:transparent;border-bottom:1px solid var(--hub-hairline);font:600 14px Arial}.panel-head h2{margin:4px 0 8px;font-size:20px}.panel-head p{margin:0}.card-body,.profile-form,.feature-compose,.feature-cloud,.feature-theme{padding:24px}.unified-shell .hub-identity{margin:24px 0}.unified-shell .hub-tile{background:var(--hub-panel);border:1px solid var(--hub-hairline);border-radius:var(--ui-radius);padding:20px;box-shadow:none;min-height:112px}.unified-shell .hub-tile strong{font:650 18px Ultraproxi,Arial}.unified-shell .hub-tile span:not(.hub-tile-icon){font:13px/1.6 Arial;color:var(--hub-muted)}.unified-shell .hub-card-grid{gap:16px}.unified-shell .feature-row,.unified-shell .feature-request{padding:20px}
.unified-shell input:not([type=checkbox]):not([type=range]):not([type=color]),.unified-shell select,.unified-shell textarea,.dialog input:not([type=checkbox]):not([type=range]):not([type=color]),.dialog select,.dialog textarea{min-height:42px;max-width:100%;min-width:0;padding:10px 12px!important;font:14px/1.5 Arial!important;background:var(--hub-input)!important;color:var(--hub-text)!important;border:1px solid var(--hub-hairline)!important;border-radius:var(--ui-radius)!important;box-shadow:none}.unified-shell label,.dialog label{font:600 13px/1.5 Arial}.unified-shell label small{font:12px/1.6 Arial;color:var(--hub-muted)}.unified-shell button,.unified-shell .action-link,.dialog button,.content-report-dialog button{min-height:36px;padding:9px 13px;font:600 12px/1.5 Arial;border:1px solid var(--hub-hairline);border-radius:var(--ui-radius);background:var(--hub-raised);color:var(--hub-text);box-shadow:none;cursor:pointer}.unified-shell button:hover,.unified-shell .action-link:hover{filter:brightness(1.07);text-decoration:none}.unified-shell .primary,.dialog .accent-button,.dialog .primary,.content-report-dialog button[type=submit]{background:var(--hub-accent)!important;color:var(--hub-accent-ink)!important;border-color:transparent!important;min-height:40px;font:600 13px/1.5 Arial!important;letter-spacing:0;box-shadow:none}.unified-shell .text-button,.unified-shell .content-report-button{background:transparent;border-color:transparent}.unified-shell button:disabled{opacity:.45;cursor:not-allowed}.unified-shell input[type=checkbox]{accent-color:var(--hub-accent);width:17px;height:17px}.unified-shell .tabs button[aria-pressed=true],.profile-tabs button[aria-selected=true],.admin-sections button.active{background:var(--hub-soft)!important;color:var(--hub-accent)!important;border-color:var(--hub-hairline)!important}.profile-tabs{padding:12px 24px;border-bottom:1px solid var(--hub-hairline)}
.dialog,.content-report-dialog,.shared-player{background:var(--hub-panel);color:var(--hub-text);border:1px solid var(--hub-hairline)!important;border-radius:var(--ui-radius);box-shadow:0 20px 70px #0005}.dialog::backdrop,.content-report-dialog::backdrop{background:#0008}.dialog-heading{background:transparent;padding:20px 24px;border-bottom:1px solid var(--hub-hairline)}.dialog-heading h2{font:650 21px Ultraproxi,Arial}.dialog .settings-group,.dialog .connection-settings{border:1px solid var(--hub-hairline);border-radius:var(--ui-radius);background:transparent}.dialog .setting-row{border-color:var(--hub-hairline)}.unified-shell table{width:100%;border-collapse:collapse;font:13px Arial}.unified-shell :is(td,th){padding:12px;text-align:left;border-bottom:1px solid var(--hub-hairline)}.unified-shell pre,.unified-shell code{font:12px/1.6 monospace;background:var(--hub-input);color:var(--hub-text);white-space:pre-wrap;overflow-wrap:anywhere}.unified-shell .pill{background:var(--hub-input);border:1px solid var(--hub-hairline);border-radius:var(--ui-radius);font:11px/1.5 Arial;padding:4px 8px}
.unified-shell .admin-layout{grid-template-columns:minmax(0,1fr);gap:18px}.unified-shell .admin-sidebar{position:static;padding:0;background:none;border:0}.unified-shell .admin-sidebar-label{display:none}.unified-shell .admin-sections{display:flex;gap:6px;overflow-x:auto;padding-bottom:8px;white-space:nowrap}.unified-shell .admin-sections button{flex:none;width:auto;min-height:36px;padding:8px 11px;font-size:12px}.unified-shell .admin-view{padding:24px}.unified-shell .admin-view h2{font-size:21px}.unified-shell .profile-editor{min-width:0}.unified-shell .community-layout{gap:24px}.unified-shell .profile-card{border:1px solid var(--hub-hairline);border-radius:var(--ui-radius);box-shadow:none}.unified-shell .legal-links,body>.legal-links{display:flex;gap:18px;flex-wrap:wrap;margin:28px 0 0;padding:20px 0;border-top:1px solid var(--hub-hairline);font:12px/1.6 Arial;color:var(--hub-muted)}.unified-shell .legal-links a{color:var(--hub-muted)}.unified-shell .legal-main{max-width:none}.unified-shell .legal-main>section{max-width:800px;padding:24px 0;border-bottom:1px solid var(--hub-hairline)}.unified-shell .legal-main p,.unified-shell .legal-main li,.unified-shell .diagnostic-main>p{max-width:800px;font-size:14px}.unified-shell .account-card{max-width:500px;margin:0 auto}.unified-shell .source-list{columns:2;column-gap:32px;font:13px/1.8 Arial}.unified-shell .source-list li{break-inside:avoid;overflow-wrap:anywhere}
*{scrollbar-width:thin;scrollbar-color:var(--scroll-thumb,#6b727a) transparent}::-webkit-scrollbar{width:var(--scroll-size,8px);height:var(--scroll-size,8px)}::-webkit-scrollbar-thumb{background:var(--scroll-thumb,#6b727a);border:2px solid var(--hub-bg);border-radius:10px}::-webkit-scrollbar-track{background:transparent}
:root[data-density=compact]{--design-gap:16px}.unified-shell .feature-review-form{gap:12px}:root[data-density=compact] .unified-shell :is(.panel-head,.card-body,.feature-compose,.admin-view){padding:16px}:root[data-density=roomy] .unified-shell :is(.panel-head,.card-body,.feature-compose,.admin-view){padding:28px}
@media(max-width:1050px){.unified-shell .community-layout:has(#editor:not([hidden])){grid-template-columns:minmax(0,1fr)}.unified-shell .community-layout #public-profile{position:static}.unified-shell .feature-review-form{grid-template-columns:minmax(0,1fr)}}
@media(max-width:800px){body:has(.topbar) .shell,.unified-shell{grid-template-columns:minmax(0,1fr)}body:has(.topbar) .sidebar,.unified-sidebar{position:static;display:block;height:auto;padding:16px 20px 0;border:0;overflow:visible}.unified-sidebar nav{display:flex;overflow-x:auto;gap:6px;padding-bottom:6px}.unified-sidebar a{flex:none;min-height:38px;padding:8px 11px;white-space:nowrap;font-size:12px}.unified-sidebar a:nth-child(5){margin:0;padding:8px 11px;border:1px solid transparent!important;border-radius:var(--ui-radius)}.unified-sidebar a span{display:none}.unified-shell>main,body:not(:has(.topbar)) .unified-shell>main,body:has(.topbar) .main-content{padding:24px 20px!important}.unified-shell .source-list{columns:1}}
@media(max-width:600px){body>.topbar,body>.unified-header{min-height:68px;height:auto;padding:12px 16px;gap:10px;flex-wrap:nowrap}.unified-header .site-nav{width:auto!important;gap:6px!important}.unified-header .site-nav a{flex:none;font-size:11px!important;padding:8px 9px!important}.unified-header .site-nav a:first-child{display:none!important}body>.topbar .brand-name,body>.unified-header .site-brand-name{font-size:20px}body>.topbar .corner-logo,body>.unified-header .site-logo-stack{width:36px;height:36px}.unified-header .site-brand{gap:9px!important}.unified-shell>main,body:not(:has(.topbar)) .unified-shell>main,body:has(.topbar) .main-content{padding:24px 16px!important}.unified-shell>main>h1,.unified-page-title,.page-heading h1,.hub-welcome h1,.admin-topline h1{font-size:25px!important}.unified-shell :is(.panel-head,.card-body,.profile-form,.feature-compose,.feature-cloud,.feature-theme,.admin-view){padding:20px}.unified-shell .hub-tile{padding:20px}.unified-shell .feature-row{gap:12px}.unified-shell .feature-actions{width:100%}.dialog-heading{padding:18px}.unified-shell .admin-report-form{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}:root[data-motion=false] *{transition:none!important;scroll-behavior:auto}

body>.unified-header .site-nav a:first-child{display:flex!important}
@media(max-width:360px){body>.topbar .brand-name,body>.unified-header .site-brand-name{font-size:17px}body>.topbar .corner-logo,body>.unified-header .site-logo-stack{width:30px;height:30px}.unified-header .site-nav a,.topbar .topbar-buttons a,.topbar .topbar-buttons button{font-size:11px!important;padding:7px 8px!important}}
/* Defeat legacy page-ID and :not(.topbar) rules at the shell boundary. */
body[data-site-page]>.unified-header{height:var(--design-header);min-height:var(--design-header);padding:12px 24px;background:var(--hub-bg);border:0;border-bottom:1px solid var(--hub-hairline);gap:20px}
.unified-shell #open-site,.unified-shell #open-admin{min-height:112px!important;padding:20px;border:1px solid var(--hub-hairline)!important;box-shadow:none!important;background:var(--hub-panel)!important;color:var(--hub-text)!important;transform:none}
@media(max-width:600px){body[data-site-page]>.unified-header{min-height:68px;height:auto;padding:12px 16px;gap:10px}}
.unified-shell .profile-editor{padding:0}.unified-shell .card{padding:24px;margin:20px 0}.unified-sidebar a:nth-child(5){position:relative;border-top-color:transparent!important;border-radius:var(--ui-radius);padding-top:10px}.unified-sidebar a:nth-child(5):before{content:'';position:absolute;top:-8px;left:0;right:0;border-top:1px solid var(--hub-hairline)}
@media(max-width:800px){.unified-sidebar a:nth-child(5){padding:8px 11px}.unified-sidebar a:nth-child(5):before{display:none}}
@media(max-width:800px){.unified-sidebar a{width:auto;flex:1;min-width:0;justify-content:center}.unified-sidebar a:nth-child(n+5){display:none}.unified-sidebar nav{overflow:visible}.unified-shell .profile-editor{padding:0}}
/* Launcher controls share the same header geometry as all account/public pages. */
body:has(.topbar)>.topbar{height:var(--design-header);min-height:var(--design-header);padding:12px 24px;gap:20px;flex-wrap:nowrap;background:var(--hub-bg);border-bottom:1px solid var(--hub-hairline)}body:has(.topbar)>.topbar .corner-logo{width:42px;height:42px}body:has(.topbar)>.topbar .brand-name{font:650 23px/1.2 Ultraproxi,Arial;white-space:nowrap}body:has(.topbar)>.topbar .brand{flex-shrink:0;gap:12px}body:has(.topbar)>.topbar .topbar-right{width:auto;min-width:0;gap:8px}body:has(.topbar)>.topbar .topbar-buttons{flex-wrap:nowrap;gap:8px}body:has(.topbar)>.topbar .topbar-buttons :is(a,button){font:600 12px/1.4 Arial!important;min-height:36px!important;padding:8px 12px!important;white-space:nowrap}
@media(max-width:600px){body:has(.topbar)>.topbar{height:68px;min-height:68px;padding:12px 16px;gap:10px}body:has(.topbar)>.topbar .corner-logo{width:36px;height:36px}body:has(.topbar)>.topbar .brand-name{font-size:20px}body:has(.topbar)>.topbar .topbar-right,body:has(.topbar)>.topbar .topbar-buttons{gap:6px}body:has(.topbar)>.topbar .topbar-buttons :is(a,button){padding:8px 9px!important;font-size:11px!important}}
@media(max-width:360px){body:has(.topbar)>.topbar .corner-logo{width:30px;height:30px}body:has(.topbar)>.topbar .brand-name{font-size:17px}body:has(.topbar)>.topbar .brand{gap:8px}body:has(.topbar)>.topbar .topbar-buttons :is(a,button){padding:7px!important}}
.unified-footer,.main-content>.page-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid var(--hub-hairline);margin:32px 0 0;padding:20px 0;background:transparent;color:var(--hub-muted);font:12px/1.6 Arial}.unified-footer nav{display:flex;gap:18px;flex-wrap:wrap}.unified-footer a,.main-content>.page-footer a,.main-content>.page-footer .text-button{font:12px/1.6 Arial;color:var(--hub-muted);text-decoration:none}.unified-footer a:hover{color:var(--hub-accent)}.unified-footer .unified-footer-note{flex-basis:100%;font:11px/1.6 Arial;margin:0;color:var(--hub-muted)}

/* Library controls keep the existing colors, borders and reduced-motion policy. */
.zs-tooltip{position:fixed;z-index:10000;max-width:min(260px,calc(100vw - 20px));padding:7px 10px;border:1px solid var(--border,#60656b);border-radius:var(--radius,6px);background:var(--panel,#292c31);color:var(--text,#f2f3f5);font:13px/1.4 system-ui,sans-serif;box-shadow:0 3px 12px #0004;pointer-events:none}
.zs-tooltip[hidden]{display:none}
.favorites-order-help{font-size:.85rem;margin:0 0 14px}
.card-reorder{position:absolute;left:8px;top:8px;z-index:2;width:32px;height:32px;display:grid;place-items:center;padding:0;border:1px solid var(--border,#60656b);border-radius:var(--radius,6px);background:var(--panel,#292c31);color:var(--text,#fff);cursor:grab;touch-action:none;font:24px/1 system-ui}
.card-reorder:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.card-reorder:active{cursor:grabbing}
.card-drag-ghost{opacity:.35}.card-drag-chosen{outline:2px solid var(--accent)}
