/* SD Hub Premium Workspace · 2026
   Original responsive dashboard design inspired by information hierarchy,
   not a copy of any Kombai template. Shared design tokens for future apps. */
:root{
  --sd-pine:#124e49;--sd-ink:#183831;--sd-muted:#61786e;
  --sd-lime:#baf7dc;--sd-blue:#e3edff;--sd-violet:#ece6ff;
  --sd-surface:#fff;--sd-bg:#f3f7f5;--sd-border:#dce8e1;
  --sd-shadow:0 10px 35px rgba(29,70,55,.07);
  --sd-round:18px;
}
body{background:var(--sd-bg);color:var(--sd-ink)}
.top{position:relative;z-index:20;background:#0c3330}
.top-inner{max-width:1440px;min-height:66px}
.top nav a{min-height:40px;display:inline-flex;align-items:center}
.theme-switch{flex:0 0 auto;display:flex;align-items:center;gap:8px;border:1px solid #fff4;border-radius:13px;padding:9px 12px;color:#fff;background:#ffffff14;font-weight:800;font-size:12px;min-height:42px}
.theme-switch:hover{background:#ffffff25}
.hero{background:radial-gradient(circle at 78% 15%,#5cf5b735,transparent 42%),linear-gradient(105deg,#0c3331,#123a43 78%)}
.hero:after{width:400px;height:400px;right:0;top:-90px;box-shadow:0 0 0 55px #fff05,0 0 0 105px #fff04}
.hero-in{max-width:1440px;grid-template-columns:minmax(0,1fr) 365px;gap:32px;padding-top:35px;padding-bottom:38px}
.hero h1{font-size:clamp(36px,4.2vw,60px);margin:6px 0 12px}
.hero .lead{font-size:14px;line-height:1.65}
.hero-actions{margin-top:20px}
.overview-glass{transform:none;border-radius:20px;padding:18px;box-shadow:0 10px 30px #0002}
.glass-icons{gap:7px}.glass-icons span{min-height:78px;border-radius:11px;padding:9px 5px}.glass-icons b{font-size:24px}
.hub-shell{max-width:1440px;width:calc(100% - 44px);display:grid;grid-template-columns:244px minmax(0,1fr);gap:24px;align-items:start;margin:0 auto;position:relative}
.hub-shell .tabs-shell{position:sticky;top:20px;align-self:start;z-index:12;background:var(--sd-surface);border:1px solid var(--sd-border);border-radius:18px;box-shadow:var(--sd-shadow);margin-top:23px;padding:18px 10px 12px;backdrop-filter:none}
.hub-shell .tabs{width:100%;max-width:none;display:flex;flex-direction:column;align-items:stretch;overflow:visible;padding:0;gap:4px}
.sidebar-label{padding:0 12px 12px;color:var(--sd-muted);font-size:10px;letter-spacing:.13em;font-weight:800;display:flex;align-items:center;gap:8px}
.sidebar-label-dot{display:block;height:7px;width:7px;background:#33c998;border-radius:50%}
.hub-shell .tab{min-height:49px;border-radius:12px;padding:12px 13px;width:100%;font-size:13px;text-align:left;color:var(--sd-muted)}
.hub-shell .tab em{font-size:19px;min-width:24px}
.hub-shell .tab.active{box-shadow:none;background:#e6f7ed;color:#0a5d4a}
.hub-shell .tab:hover:not(.active){background:#edf3ef}
.side-bottom{margin:18px 5px 2px;padding:14px 10px 3px;border-top:1px solid var(--sd-border);display:grid;gap:3px;color:var(--sd-muted);font-size:11px}
.side-bottom span{font-weight:800;color:var(--sd-ink)}
.side-bottom small{font-size:10px}
.hub-shell .main{width:100%;min-width:0;padding:30px 0 75px}
.hub-shell .module-head{margin-bottom:20px}
.hub-shell .module-head h2{font-size:clamp(27px,3vw,41px);margin-top:6px}
.hub-shell .module-head p{font-size:14px}
.hub-shell .panel{border-radius:var(--sd-round);border-color:var(--sd-border);box-shadow:var(--sd-shadow)}
.hub-shell .stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.hub-shell .stat{background:var(--sd-surface);border:1px solid var(--sd-border);border-radius:var(--sd-round);padding:19px}
.hub-shell .stat strong{color:#187b61;font-size:32px}
.hub-shell .stat span{font-size:12px}
.hub-shell .dashboard-intro{background:linear-gradient(135deg,#eafaf0,#f8fcf9);border-color:#c4e5d6;padding:22px}
.hub-shell .dashboard-intro h3{font-size:21px}
.hub-shell .dashboard-intro input{background:var(--sd-surface)}
.hub-shell .two-col{grid-template-columns:repeat(2,minmax(0,1fr))}
.launch-section{min-width:0;border-radius:23px;background:var(--sd-surface);border:1px solid var(--sd-border);padding:22px;box-shadow:var(--sd-shadow)}
.launch-head{display:flex;align-items:end;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:19px}
.launch-head h3{font-size:26px;margin:6px 0 5px}
.launch-head p{color:var(--sd-muted);font-size:13px;margin:0}
.app-search-label{display:grid;gap:5px;min-width:245px;flex:1 1 240px;max-width:340px;font-size:11px;color:var(--sd-muted);font-weight:800}
.app-search-label input{width:100%;min-height:44px;border:1px solid var(--sd-border);border-radius:12px;padding:9px 12px;background:var(--sd-bg);color:var(--sd-ink)}
.featured-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.featured{display:grid;grid-template-rows:45px 1fr;align-items:start;gap:12px;min-width:0;position:relative;min-height:140px;padding:15px;border:1px solid transparent;border-radius:16px;transition:transform .16s ease,box-shadow .16s ease}
.featured:hover{transform:translateY(-3px);box-shadow:0 10px 18px #12251e13}
.featured-learn{background:#e0f8ed;border-color:#bcead5}.featured-code{background:#eeeaff;border-color:#ddd1ff}
.featured-ai{background:#e9efff;border-color:#d6e1fc}.featured-games{background:#fff0e9;border-color:#f9dbce}
.featured-icon{display:grid;place-items:center;background:#ffffffb0;border-radius:13px;width:43px;height:43px;font-size:24px}
.featured b{display:block;font-size:14px;line-height:1.35}
.featured small{display:block;font-size:11px;line-height:1.45;color:#51655f;margin-top:4px}
.featured-arrow{position:absolute;right:12px;top:14px;color:#536e65}
.app-filter{display:flex;gap:7px;align-items:center;overflow-x:auto;scrollbar-width:thin;margin:22px 0 15px;padding-bottom:4px}
.app-filter button{white-space:nowrap;min-height:37px;padding:7px 13px;border:1px solid var(--sd-border);border-radius:999px;background:var(--sd-bg);color:var(--sd-muted);font-weight:800;font-size:12px}
.app-filter button[aria-pressed="true"]{background:#164f44;color:#fff;border-color:#164f44}
.app-directory{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.sd-app-card{min-width:0;display:flex;gap:10px;align-items:start;background:var(--sd-surface);border:1px solid var(--sd-border);border-radius:15px;padding:12px}
.sd-app-card[hidden]{display:none!important}
.sd-app-open{display:flex;align-items:start;gap:10px;min-width:0;flex:1;border-radius:10px;outline-offset:3px}
.sd-app-open:hover .sd-app-name{color:#158366}
.sd-app-icon{display:grid;place-items:center;flex:0 0 auto;width:42px;height:42px;border-radius:12px;background:var(--sd-icon-bg,#edf6ef);font-size:22px}
.sd-app-copy{min-width:0;display:grid;gap:3px}.sd-app-name{font-weight:800;font-size:13px;line-height:1.32}
.sd-app-description{font-size:11px;line-height:1.45;color:var(--sd-muted);overflow-wrap:anywhere}
.sd-app-star{flex:0 0 auto;width:34px;height:34px;display:grid;place-items:center;background:transparent;border:1px solid var(--sd-border);color:#6e7b70;border-radius:9px;font-size:18px}
.sd-app-star[aria-pressed="true"]{color:#9b6300;background:#fff4c7;border-color:#eec981}
.sd-app-star:hover{background:#fff4c7}
.tab-more,.mobile-nav-menu{display:none}
.hub-shell :is(.panel,.stat,.launch-section,.sd-app-card){min-width:0}
.footer{margin-top:12px}
@media(max-width:1199px){
 .hub-shell{grid-template-columns:210px minmax(0,1fr);gap:17px}
 .featured-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .featured{min-height:110px;grid-template-rows:40px auto;gap:8px}
 .app-directory{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:920px){
 .hero-in{grid-template-columns:1fr}.overview-glass{display:none}
 .hub-shell{display:block;width:calc(100% - 32px)}
 .hub-shell .tabs-shell{position:fixed;top:auto;bottom:0;left:0;right:0;width:100%;margin:0;border-radius:0;
   border:0;border-top:1px solid var(--sd-border);background:var(--sd-surface);padding:6px 7px calc(7px + env(safe-area-inset-bottom,0px));
   box-shadow:0 -12px 30px #1229201b;z-index:50}
 .hub-shell .tabs{flex-direction:row;justify-content:space-around;align-items:center;gap:1px}
 .hub-shell .tab{flex:1 1 0;min-width:0;width:auto;min-height:58px;padding:7px 3px;display:grid;justify-items:center;align-content:center;gap:3px;font-size:10px;line-height:1.2;text-align:center;white-space:normal}
 .hub-shell .tab em{font-size:22px;min-width:0}
 .hub-shell .tab.active{border-radius:13px;background:#e9f7ef}
 .hub-shell .tab[data-tab="leben"],.hub-shell .tab[data-tab="sprache"]{display:none}
 .hub-shell .tab-more{display:grid}
 .sidebar-label,.side-bottom{display:none}
 .mobile-nav-menu:not([hidden]){display:grid;position:absolute;bottom:calc(100% + 8px);right:10px;left:10px;
   padding:10px;gap:4px;background:var(--sd-surface);border:1px solid var(--sd-border);border-radius:16px;
   box-shadow:0 18px 45px #0002}
 .mobile-nav-menu :is(button,a){text-align:left;display:block;border:0;border-radius:11px;background:transparent;color:var(--sd-ink);padding:13px 15px;font-weight:800}
 .mobile-nav-menu :is(button,a):hover{background:var(--sd-bg)}
 .hub-shell .main{padding:22px 0 calc(110px + env(safe-area-inset-bottom,0px))}
 .footer{padding-bottom:calc(94px + env(safe-area-inset-bottom,0px))}
 .hero-in{padding:30px 0 34px}.hero h1{font-size:clamp(33px,6vw,48px)}
}
@media(max-width:650px){
 .top-inner{flex-direction:row;align-items:center;gap:8px;padding:10px 0;min-height:62px}
 .top nav{display:none}.top .brand{font-size:19px}.top .brand img{width:36px;height:36px}
 .theme-switch{margin-left:auto}
 .hub-shell{width:calc(100% - 24px)}
 .launch-section{padding:14px;border-radius:18px}
 .launch-head{align-items:stretch;gap:13px}
 .launch-head h3{font-size:24px}
 .app-search-label{max-width:none;min-width:0;flex:1 1 100%}
 .featured-grid{gap:9px;grid-template-columns:repeat(2,minmax(0,1fr))}
 .featured{min-height:116px;padding:12px;gap:6px}
 .featured-icon{width:37px;height:37px;font-size:21px}
 .featured b{font-size:12px}.featured small{font-size:10px}
 .app-directory{grid-template-columns:1fr;gap:8px}
 .sd-app-card{padding:10px}
 .hub-shell .stats{gap:7px}
 .hub-shell .stat{padding:13px;border-radius:14px}
 .hub-shell .stat strong{font-size:26px}
 .hub-shell .stat span{font-size:11px}
 .hub-shell .two-col{grid-template-columns:1fr}
 .hero .lead{font-size:13px}
 .hero-actions{gap:8px}
 .hub-shell .panel{padding:17px}
}
@media(max-width:370px){
 /* At very small widths, independently scrolling filters must never widen the document. */
 html,body{max-width:100%;overflow-x:clip}
 .hub-shell,.hub-shell .main,.hub-shell .module,.launch-section{min-width:0;max-width:100%}
 .hub-shell :is(input,button,.panel,.stat){max-width:100%}
 .app-filter{max-width:100%;contain:inline-size}
 .featured-grid{grid-template-columns:1fr}
 .featured{grid-template-columns:44px 1fr;grid-template-rows:auto;min-height:70px;align-items:center}
 .featured small{font-size:11px}.featured b{font-size:13px}
 .hero h1{font-size:33px}
 .hub-shell .tab{font-size:9px}
 .hub-shell .tab em{font-size:20px}
}
html[data-sd-theme="dark"]{
 color-scheme:dark;
 --sd-pine:#94dcbf;--sd-ink:#e6f5ea;--sd-muted:#abc5b5;
 --sd-surface:#192c2c;--sd-bg:#101d1e;--sd-border:#35514a;--sd-shadow:0 8px 24px #020b0a22;
 --ink:#e6f5ea;--muted:#abc5b5;--bg:#101d1e;--line:#35514a;--white:#192c2c;
}
html[data-sd-theme="dark"] body{background:var(--sd-bg)}
html[data-sd-theme="dark"] .hub-shell .panel,
html[data-sd-theme="dark"] .hub-shell .stat,
html[data-sd-theme="dark"] .hub-shell .dashboard-intro,
html[data-sd-theme="dark"] .launch-section,
html[data-sd-theme="dark"] .sd-app-card,
html[data-sd-theme="dark"] .app-filter button,
html[data-sd-theme="dark"] .mobile-nav-menu{background:var(--sd-surface);color:var(--sd-ink)}
html[data-sd-theme="dark"] .featured{color:#17352e}
html[data-sd-theme="dark"] .hub-shell .tab.active,
html[data-sd-theme="dark"] .app-filter button[aria-pressed="true"]{background:#2e6254;color:white}
html[data-sd-theme="dark"] .hub-shell .tab:hover:not(.active){background:#243b35}
html[data-sd-theme="dark"] .app-search-label input,
html[data-sd-theme="dark"] .dashboard-intro input{background:#102423;color:#f0fff5;border-color:#45635b}
html[data-sd-theme="dark"] .hub-shell .stat strong{color:#96f3bf}
html[data-sd-theme="dark"] .sd-app-star{color:#d5e8d9}
html[data-sd-theme="dark"] .sd-app-star[aria-pressed="true"]{color:#ffd079;background:#564222}
html[data-sd-theme="dark"] .mobile-nav-menu :is(button,a){color:var(--sd-ink)}
html[data-sd-theme="dark"] .hub-shell .tab{color:var(--sd-muted)}
html[data-sd-theme="dark"] .hub-shell .tab.active{color:#fff}
@media(prefers-reduced-motion:reduce){.featured{transition:none}}
