/* One platform shell: shared by public pages and the original cabinet runtime. */
:root{
 --platform-width:1440px;--platform-gutter:17px;
 --platform-bg:#060b15;--platform-text:#eef0f6;--platform-muted:#a9b7cd;
 --platform-surface:linear-gradient(120deg,#171e2dee,#101622f5 65%,#0c1320);
 --platform-border:#3a4052;--platform-radius:12px;
 --platform-gold:linear-gradient(#ffdb6d,#ffc747 52%,#eaa626);
 --platform-shadow:inset 0 0 0 3px #090e1840,0 5px 12px #0003;
}
html{scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#354158 transparent}
html::-webkit-scrollbar{width:8px}
.site-header,#topbar.site-header{
 display:block;position:relative;z-index:60;width:100%;height:68px;flex-shrink:0;
 padding:0;margin:0;background:linear-gradient(#111a2b,#070c16);border:0;
 border-bottom:1px solid #354057;backdrop-filter:none;-webkit-backdrop-filter:none;
 box-shadow:0 5px 15px #0002;font-family:Inter,Arial,sans-serif;font-size:14px;line-height:1.4;
}
.site-header *{box-sizing:border-box}
.site-header .header-inner{
 width:100%;max-width:var(--platform-width);height:100%;margin:0 auto;
 padding:0 var(--platform-gutter);display:flex;align-items:center;gap:24px;
}
.site-header .brand{
 display:flex;align-items:center;gap:9px;flex:0 0 auto;
 width:auto;height:auto;margin:0;padding:0;border:0;text-decoration:none;
}
.site-header .brand>img:first-child{width:38px;height:43px;object-fit:contain;filter:drop-shadow(0 0 7px #d9a44130)}
.site-header .brand img.brand-wordmark{width:151px;height:36px;object-fit:contain;filter:none}
.site-header .header-inner>nav{display:flex;align-items:center;gap:5px;min-width:0;flex:1}
.site-header .nav-link{
 display:inline-flex;align-items:center;justify-content:center;gap:7px;
 padding:9px 11px;min-height:37px;border-radius:8px;color:#c6cbd6;
 font-size:12px;font-weight:600;white-space:nowrap;text-decoration:none;
 border:1px solid transparent;background:transparent;line-height:1.3;
}
.site-header .nav-link:hover{background:#ffffff08;color:#fff}
.site-header .nav-link.active{color:#ffe39b;border-color:#ac853b;background:linear-gradient(#49351a,#211a12);box-shadow:inset 0 0 10px #f1bf4330,0 0 12px #e5a62c25}
.site-header .icon{width:18px;height:18px;vertical-align:middle;flex-shrink:0}
.site-header .header-actions{display:flex;align-items:center;gap:10px;margin-left:auto;flex-shrink:0}
.site-header .tb-user{position:relative;display:flex;align-items:center;gap:8px;padding:0;height:auto;border:0}
.site-header .tb-avatar{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid #8f712e;border-radius:50%;background:#302615;color:#ebc86c;font-size:12px;font-weight:700;flex-shrink:0}
.site-header .tb-uname{font-size:12px;font-weight:600;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e4e7ef}
.site-header .notice-wrap{position:relative;display:flex;align-items:center;margin:0}
.site-header .notice-btn,.site-header #gear-btn,.site-header .platform-gear{
 display:flex;align-items:center;justify-content:center;flex-shrink:0;
 width:34px!important;height:34px!important;padding:0!important;margin:0!important;
 border:1px solid #ffffff19!important;background:#ffffff04!important;border-radius:8px!important;
 color:#d4dbe8!important;cursor:pointer;box-shadow:none;animation:none;
}
.site-header .notice-btn svg{width:17px;height:17px}
.site-header #gear-btn svg,.site-header .platform-gear svg{width:16px;height:16px}
.site-header .notice-btn.has-unread{color:#ffd25f!important;border-color:#9d793b!important;box-shadow:0 0 12px #e5a62c15;animation:none}
.site-header .tb-user>button:last-child{
 display:flex;align-items:center;justify-content:center;gap:6px!important;
 height:34px;padding:6px 11px!important;margin:0!important;border-radius:8px;
 border:1px solid #e45f644d!important;background:#e45f6414!important;color:#e77b80!important;
 font:600 12px/1.4 Inter,Arial,sans-serif!important;white-space:nowrap;cursor:pointer;
}
.site-header .tb-user>button:last-child svg{width:14px;height:14px}
.site-header #gear-menu,.site-header .dropdown{
 position:absolute;top:44px!important;right:0!important;z-index:100;
 min-width:200px;width:220px;padding:7px;border-radius:12px;
 background:#131d2e!important;border:1px solid #3c4960!important;box-shadow:0 18px 45px #0008;
}
.site-header .dropdown-heading{display:block;padding:8px 10px;color:#8fa0ba;font-size:10px;letter-spacing:.08em;text-transform:uppercase}
.site-header .dropdown button{display:block;padding:10px;width:100%;border:0;border-radius:6px;text-align:left;background:none;color:#e2e9f3;font-size:12px;cursor:pointer}
.site-header .dropdown button:hover{background:#ffffff09}
.site-header .mobile-toggle{display:none;align-items:center;justify-content:center;width:34px;height:34px;padding:0;background:transparent;color:#c3c9d3;border:1px solid #ffffff1a;border-radius:8px;cursor:pointer}
.site-header [hidden]{display:none!important}
.site-header .notice-menu{top:44px}
.site-header a:focus-visible,.site-header button:focus-visible{outline:2px solid #f5c453;outline-offset:3px}
.page-shell{max-width:var(--platform-width);padding-left:var(--platform-gutter);padding-right:var(--platform-gutter)}
.panel{background:var(--platform-surface);border-color:var(--platform-border);border-radius:var(--platform-radius);box-shadow:var(--platform-shadow)}
html{color-scheme:dark}
@media(max-width:1250px){
 .site-header .header-inner{gap:14px}
 .site-header .brand img.brand-wordmark{width:125px}
 .site-header .nav-link{padding:8px;font-size:11px;gap:5px}
 .site-header .nav-link .icon{width:15px;height:15px}
 .site-header .tb-uname{max-width:70px}
}
@media(max-width:1100px){
 .site-header .header-inner>nav{display:none}
 .site-header .mobile-toggle{display:flex}
 .site-header.nav-open .header-inner>nav{display:flex;flex-wrap:wrap;position:absolute;left:0;right:0;top:100%;padding:12px 16px;gap:7px;background:#101a2c;border-bottom:1px solid #3b475e;box-shadow:0 15px 30px #0006}
 .site-header .nav-link{font-size:13px;padding:9px 12px}
 .site-header .nav-link .icon{width:18px;height:18px}
}
@media(max-width:600px){
 :root{--platform-gutter:12px}
 .site-header,#topbar.site-header{height:58px}
 .site-header .header-inner{gap:10px}
 .site-header .brand{gap:5px}
 .site-header .brand>img:first-child{width:29px;height:35px}
 .site-header .brand img.brand-wordmark{width:102px;height:29px}
 .site-header .header-actions,.site-header .tb-user{gap:5px}
 .site-header .tb-avatar,.site-header .tb-uname{display:none}
 .site-header .tb-user>button:last-child{font-size:0!important;width:30px;padding:6px!important;gap:0!important}
 .site-header .tb-user>button:last-child svg{width:15px;height:15px}
 .site-header .notice-menu{position:fixed;left:10px;right:10px;top:64px;width:auto;max-height:calc(100dvh - 85px)}
}
