:root{--top:#fffffff2;--side:#fafafd;--soft:#f8f8fa;--hover:#eceef2}
html[data-theme=dark]{color-scheme:dark;--bg:#000;--panel:#0a0a0a;--top:#000000f2;--side:#050505;--soft:#0b0b0b;--hover:#151515;--text:#f5f5f5;--muted:#9a9a9f;--line:#242424;--blue:#69a4ff}
html[data-theme=dark] body{background:#000}
html[data-theme=dark] .topbar{background:var(--top)}
html[data-theme=dark] .topbar nav,html[data-theme=dark] .sidebar{background:var(--side)}
html[data-theme=dark] .topbar nav a:hover,html[data-theme=dark] .sidebar>a:hover,html[data-theme=dark] .sidebar-foot a:hover{background:var(--hover);color:var(--text)}
html[data-theme=dark] .account,html[data-theme=dark] .theme-toggle,html[data-theme=dark] .recent-item{background:#090909;color:var(--text)}
html[data-theme=dark] .sidebar>a.active{background:#101b2d;color:#80adff}
html[data-theme=dark] .app-card:hover{border-color:#4a4a4a;box-shadow:0 12px 34px #000}
.top-actions{justify-self:end;display:flex;align-items:center;gap:8px}
.theme-toggle{display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--text);cursor:pointer}
.theme-toggle span{width:16px;height:16px;display:block;border:2px solid currentColor;border-radius:50%;font-size:0;box-shadow:inset -5px -3px 0 transparent;transition:.2s}
html[data-theme=dark] .theme-toggle span{background:#fff;box-shadow:inset -6px -3px 0 #090909}
.app-icon{overflow:hidden;background:var(--soft)!important;border:1px solid var(--line);box-shadow:none!important}
.app-icon img{display:block;width:100%;height:100%;object-fit:contain;padding:7px}
@media(max-width:900px){.sidebar{position:sticky!important;top:66px!important;z-index:15;background:var(--side)!important;scrollbar-width:none}.sidebar::-webkit-scrollbar{display:none}.topbar{background:var(--top)!important}.app-card{min-width:0}.app-card>span:nth-child(2){min-width:0}.app-card small{white-space:normal}}
@media(max-width:590px){body{font-size:14px}.topbar{position:sticky;height:58px;grid-template-columns:minmax(0,1fr) auto;padding:0 12px}.brand{gap:8px}.brand strong{font-size:12px}.brand-mark{width:28px;height:28px}.top-actions{gap:6px}.theme-toggle{width:38px;height:38px}.account{padding:4px}.account>span:first-child{width:28px;height:28px}.sidebar{top:58px!important;padding:8px 10px!important;gap:2px}.sidebar>a{min-height:42px;display:flex;align-items:center;padding:8px 12px!important}main{width:calc(100% - 24px)!important;padding:30px 0 64px!important}.welcome{padding-bottom:30px}.welcome h1{font-size:clamp(34px,10vw,44px)!important;line-height:1.02}.welcome>p:last-child{margin-top:13px;font-size:15px}.recent{padding-top:30px}.section-head{gap:12px;margin-bottom:14px}.section-head h2{font-size:20px}.section-head>div{max-width:none!important}.section-head>a,.section-head button{flex:none;min-height:38px}.app-grid,.recent-grid{gap:10px}.app-card{min-height:88px!important;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;padding:13px;border-radius:12px}.app-icon{width:46px;height:46px;border-radius:11px}.app-card strong{font-size:16px}.app-card small{font-size:13px;line-height:1.3}.app-card b{font-size:0}.app-card b:after{content:'›';font-size:24px;color:var(--muted)}main>section[id]{padding-top:34px;scroll-margin-top:112px}}
@media(max-width:360px){.brand>strong{letter-spacing:.08em}.app-card{grid-template-columns:auto minmax(0,1fr) auto;padding:11px}.app-icon{width:42px;height:42px}.section-head p{font-size:13px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
