:root{
  --glass:rgba(255,255,255,.72);
  --glass-strong:rgba(255,255,255,.88);
  --glass-line:rgba(255,255,255,.78);
  --glass-shadow:0 18px 50px rgba(26,42,67,.10),0 2px 7px rgba(26,42,67,.06);
  --glass-shadow-hover:0 24px 65px rgba(26,42,67,.15),0 4px 12px rgba(26,42,67,.07);
  --space-bg:#eef2f7;
  --space-ink:#101521;
  --space-muted:#6d7583;
  --space-radius:20px;
}

html{background:var(--space-bg);scroll-behavior:smooth}
body{
  color:var(--space-ink);
  background:
    radial-gradient(900px 650px at 78% -8%,rgba(126,253,237,.19),transparent 62%),
    radial-gradient(760px 620px at 18% 16%,rgba(40,119,222,.16),transparent 64%),
    linear-gradient(145deg,#f7f9fc 0%,#edf2f7 46%,#f5f8fb 100%);
  background-attachment:fixed;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text",Manrope,"DM Sans",sans-serif;
  letter-spacing:-.006em;
}
body:before{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;opacity:.38;
  background-image:linear-gradient(rgba(255,255,255,.42) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.42) 1px,transparent 1px);
  background-size:72px 72px;
  mask-image:linear-gradient(to bottom,black,transparent 78%);
}

button,input,select,textarea{font-family:inherit}
button{transition:transform .2s ease,filter .2s ease,box-shadow .2s ease,background .2s ease}
button:hover{filter:none;transform:translateY(-1px)}
button:active{transform:translateY(0) scale(.985)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid rgba(40,119,222,.24);outline-offset:3px}
input,select,textarea{
  border:1px solid rgba(126,138,158,.22);border-radius:12px;background:rgba(255,255,255,.72);
  min-height:43px;box-shadow:inset 0 1px 0 rgba(255,255,255,.8);backdrop-filter:blur(16px) saturate(135%);
}
input:focus,select:focus,textarea:focus{border-color:rgba(40,119,222,.55);box-shadow:0 0 0 4px rgba(40,119,222,.09),inset 0 1px 0 white}
.primary,.secondary,.ghost,.danger{min-height:42px;border-radius:12px;padding:11px 17px;font-size:12px}
.primary{background:linear-gradient(145deg,#3989ed,#1f68cd);box-shadow:0 8px 22px rgba(40,119,222,.22)}
.secondary{background:rgba(255,255,255,.68);border-color:rgba(121,135,155,.22);box-shadow:inset 0 1px 0 white}
.pill,.badge,.history-status,.confidence-pill{border-radius:999px}

/* Login: depth without visual noise */
.login{
  min-height:100svh;padding:22px;gap:18px;grid-template-columns:minmax(0,1.16fr) minmax(390px,.84fr);
  background:
    radial-gradient(760px 620px at 24% 28%,rgba(40,119,222,.33),transparent 64%),
    radial-gradient(620px 540px at 83% 18%,rgba(126,253,237,.19),transparent 60%),
    #070a11;
}
.manifesto{
  min-height:calc(100svh - 44px);border-radius:28px;padding:38px 6.5%;
  background:linear-gradient(145deg,rgba(18,25,39,.90),rgba(5,8,14,.72));
  border:1px solid rgba(255,255,255,.12);box-shadow:0 36px 90px rgba(0,0,0,.34);
  backdrop-filter:blur(30px) saturate(135%);
}
.manifesto:before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(135deg,rgba(255,255,255,.09),transparent 26%,transparent 70%,rgba(126,253,237,.035))}
.manifesto-body{padding-top:clamp(55px,8vh,95px);position:relative;z-index:1}
.manifesto h1{font-size:clamp(43px,4.5vw,72px);line-height:1.04;letter-spacing:-3.3px;font-weight:560;max-width:900px;text-wrap:balance}
.manifesto p{font-size:clamp(14px,1.1vw,17px);line-height:1.75;max-width:760px;color:#b9c1cd}
.manifesto .brand{font-size:23px}.manifesto .orbit-mark{filter:drop-shadow(0 0 18px rgba(126,253,237,.45))}
.orbit-visual{opacity:.86;filter:drop-shadow(0 22px 34px rgba(40,119,222,.12))}
.signin{padding:clamp(28px,5vw,70px);border-radius:28px;background:rgba(246,249,253,.88);border:1px solid rgba(255,255,255,.72);box-shadow:0 36px 90px rgba(0,0,0,.22);backdrop-filter:blur(34px) saturate(145%)}
.signin-box{max-width:420px}.signin h2{font-size:clamp(34px,3vw,47px);line-height:1.08;letter-spacing:-2.1px;margin:28px 0 17px}.signin p{font-size:14px}.signin label{font-size:12px}.signin input{font-size:14px;padding:15px 16px;min-height:50px}.signin .primary.full,.signin .ghost.full{min-height:52px;font-size:13px}.demo-note{border-top-color:rgba(116,129,149,.16)}

/* App shell */
#sidebar{
  top:14px;left:14px;bottom:14px;width:248px;border-radius:24px;padding:28px 18px 0;
  background:linear-gradient(160deg,rgba(13,17,27,.93),rgba(5,8,14,.86));
  border:1px solid rgba(255,255,255,.11);box-shadow:0 25px 65px rgba(20,32,53,.24);
  backdrop-filter:blur(26px) saturate(135%);
}
#sidebar .brand{font-size:23px}.workspace{padding-top:22px}.app-body{margin-left:276px;min-height:100vh}
header{
  position:sticky;top:14px;z-index:25;height:66px;margin:14px 18px 0;border:1px solid var(--glass-line);border-radius:18px;
  background:rgba(250,252,255,.70);box-shadow:0 12px 38px rgba(32,50,78,.08);backdrop-filter:blur(28px) saturate(150%);
}
.breadcrumb{font-size:11px}.header-right{gap:14px}.global-period{border-right-color:rgba(110,125,148,.18)}
.globalPeriod,.actionPeriod,.performancePeriod{background:rgba(255,255,255,.68);border:1px solid rgba(113,128,149,.15);font-size:10px;border-radius:10px;min-height:36px}
.icon-button{width:32px;height:32px;background:rgba(255,255,255,.52);border-color:rgba(113,128,149,.18)}
main{padding:34px 32px 62px;max-width:1680px}
.page-heading h1{font-size:clamp(29px,2.6vw,42px);letter-spacing:-1.8px}.page-heading p{font-size:12px;color:var(--space-muted)}
.exec-head h1{font-size:clamp(34px,3.3vw,52px);letter-spacing:-2.5px;line-height:1.03}.exec-head p{font-size:12px}.exec-kicker{font-size:10px}
.period-switch{padding:5px;border:1px solid rgba(255,255,255,.82);border-radius:13px;background:rgba(255,255,255,.58);box-shadow:0 8px 25px rgba(30,49,76,.06);backdrop-filter:blur(18px)}
.period-switch button{min-height:34px;border-radius:9px;font-size:10px}.period-switch button.active{background:linear-gradient(145deg,#151a24,#070a10);box-shadow:0 7px 17px rgba(9,13,21,.19)}
.notice{border-radius:13px;background:rgba(241,247,247,.65);border-color:rgba(113,146,145,.16);backdrop-filter:blur(14px)}

/* Material surfaces */
.card,.exec-card,.metric,.forecast-card,.time-toolbar,.performance-metrics,.source-health,.legend-card{
  background:var(--glass);border:1px solid var(--glass-line);box-shadow:var(--glass-shadow);backdrop-filter:blur(24px) saturate(145%);
}
.card,.exec-card,.metric,.forecast-card{border-radius:var(--space-radius);overflow:hidden}
.card,.exec-card,.metric,.forecast-card,.decision-card{transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.card:hover,.exec-card:hover,.metric:hover,.forecast-card:hover{box-shadow:var(--glass-shadow-hover);border-color:rgba(255,255,255,.94)}
.card-head,.exec-card-head{padding:21px 23px;border-bottom-color:rgba(112,126,146,.13)}
.card-head h2,.exec-card-head h2{font-size:16px;letter-spacing:-.35px}.card-head p,.exec-card-head p{font-size:10px}
.metric{padding:21px}.metric-value{font-size:32px;letter-spacing:-1.3px}.metric-top{font-size:10px}.metric-foot{font-size:10px}
.metric.emphasis,.sim-big,.strategic-card{background:linear-gradient(145deg,rgba(15,19,29,.96),rgba(4,7,13,.92));border:1px solid rgba(255,255,255,.1);border-radius:20px;box-shadow:0 22px 55px rgba(5,10,20,.22)}
.command-surface{
  border-radius:24px;min-height:230px;padding:31px 34px;
  background:linear-gradient(140deg,rgba(18,23,34,.96),rgba(4,7,13,.91));border:1px solid rgba(255,255,255,.1);
  box-shadow:0 24px 65px rgba(5,10,20,.22);backdrop-filter:blur(28px);
}
.command-copy h2{font-size:clamp(27px,2.4vw,38px);letter-spacing:-1.35px}.command-copy p{font-size:12px}.ask-orbit{min-height:49px;border-radius:14px;background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.11);backdrop-filter:blur(18px)}.ask-orbit button{border-radius:10px}
.priority-snapshot strong{font-size:46px;letter-spacing:-2px}.priority-snapshot p{font-size:11px}
.exec-metrics,.performance-metrics{border-radius:20px;overflow:hidden;border-color:var(--glass-line)}
.metric-basis{margin:9px 7px 17px;color:#687486;font-size:10px;line-height:1.45}
.exec-metric{padding:21px 20px;border-color:rgba(112,126,146,.12);min-height:124px}.exec-metric small{font-size:8px}.exec-metric b{font-size:30px;letter-spacing:-1.25px;margin-top:13px}.exec-metric span{font-size:10px}
.pulse-row{padding:18px 0}.pulse-row h3{font-size:12px}.pulse-row p{font-size:10px}.pulse-score{font-size:12px}
.change-item b{font-size:11px}.change-item p{font-size:9px}
.radar-stage{border-radius:15px;background-color:rgba(255,255,255,.38)}
.source-health{border-radius:16px;overflow:hidden;background:rgba(246,249,252,.62)}
.source-health>div{border-color:rgba(112,126,146,.12)}
.time-toolbar{border-radius:16px;padding:11px 13px}.view-tabs button{border-radius:9px;min-height:36px}.view-tabs button.active{background:linear-gradient(145deg,#151a24,#070a10)}
.history-row{border-color:rgba(112,126,146,.12);padding:19px 23px}.history-row h3{font-size:12px}.history-row p,.history-owner small{font-size:9px}.history-row>strong{font-size:13px}
.revenue-chart{background:repeating-linear-gradient(to bottom,rgba(255,255,255,.22) 0,rgba(255,255,255,.22) 62px,rgba(137,151,169,.13) 63px)}
.quality-list span{font-size:10px}.quality-list b{font-size:12px}.decision-speed{border-radius:14px;background:linear-gradient(145deg,#141923,#070a10)}
.decision-speed strong{font-size:30px}.outcome-step{border-radius:12px;background:rgba(245,248,251,.68)}
.learning-strip{border-radius:20px;background:linear-gradient(145deg,#151a24,#060910);box-shadow:0 22px 55px rgba(5,10,20,.19)}
.graph-stage{border-radius:22px;box-shadow:0 24px 60px rgba(5,10,20,.22)}
.drawer{background:rgba(250,252,255,.88);backdrop-filter:blur(35px) saturate(155%);border-left:1px solid rgba(255,255,255,.78);box-shadow:-24px 0 80px rgba(16,28,49,.20)}
.overlay{background:rgba(7,11,18,.36);backdrop-filter:blur(7px)}
#toast{border-radius:14px;background:rgba(11,15,23,.91);backdrop-filter:blur(20px);box-shadow:0 18px 45px rgba(5,10,20,.24)}
.app-footer{font-size:9px}

@media(max-width:1150px){
  #sidebar{width:222px}.app-body{margin-left:250px}main{padding-left:24px;padding-right:24px}
  .exec-metric b{font-size:27px}
}
@media(max-width:800px){
  .login{grid-template-columns:1fr;padding:12px}.manifesto{min-height:auto;padding:28px 25px}.manifesto-body{padding-top:55px}.signin{padding:38px 25px}.orbit-visual{height:220px}
  #sidebar{top:0;left:0;bottom:0;border-radius:0;width:270px}.app-body{margin-left:0}
  header{top:8px;margin:8px 9px 0;padding:0 16px}.small-avatar{display:none}main{padding:28px 15px 50px}
  .exec-head h1{font-size:36px}.page-heading h1{font-size:31px}.command-surface{padding:25px 21px}.exec-metric b{font-size:27px}
  .card-head h2,.exec-card-head h2{font-size:15px}
}
@media(max-width:520px){
  body:before{background-size:44px 44px}.login{padding:8px;gap:8px}.manifesto,.signin{border-radius:21px}.manifesto h1{font-size:39px;letter-spacing:-2px}.manifesto p{font-size:13px}.manifesto footer span{margin-left:0;width:100%}
  .signin h2{font-size:37px}.orbit-visual{height:180px}.r3{width:340px}.brand-small{display:none}
  header{height:60px}.global-period{padding-right:7px}.globalPeriod{width:102px}.breadcrumb span{margin:0 6px}
  .exec-head h1{font-size:34px}.exec-head p{font-size:11px}.command-copy h2{font-size:28px}.priority-snapshot strong{font-size:42px}
  .exec-metric{padding:18px;min-height:108px}.exec-metric b{font-size:29px}.metric-value{font-size:29px}
  .card,.exec-card,.metric,.forecast-card,.command-surface,.learning-strip{border-radius:17px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Legibility pass: executive reading distance, not micro-dashboard density */
body{font-size:15px}
:root{--space-muted:#5f6979}
#sidebar{width:258px;padding-left:20px;padding-right:20px}
.app-body{margin-left:286px}
#sidebar .brand{font-size:24px}
.workspace{font-size:11px;line-height:1.45}.workspace span{font-size:12px;line-height:1.45}
.nav-label{font-size:9px;color:#8993a2;margin-top:25px}
nav a{font-size:13px;min-height:45px;padding:12px 13px;gap:13px}
nav a .nav-icon{font-size:18px}
.system-health{font-size:11px}.system-health span{font-size:10px}
.person{font-size:12px}.person small{font-size:9px;line-height:1.35}
.breadcrumb{font-size:12px}.synthetic{font-size:9px}.global-period>span,.period-control>span{font-size:8px}
.globalPeriod,.actionPeriod,.performancePeriod{font-size:11px;padding-left:11px}
.page-heading p,.exec-head p{font-size:13px;line-height:1.55;color:#5f6979}
.exec-kicker{font-size:10px;letter-spacing:1.7px}
.period-switch button{font-size:11px;padding-left:12px;padding-right:12px}
.notice{font-size:11px;line-height:1.55;padding:11px 14px}
.command-copy small{font-size:10px}.command-copy p{font-size:13px;line-height:1.7;color:#b2bbc8}
.ask-orbit input{font-size:12px}.priority-snapshot header{font-size:10px}.priority-snapshot p{font-size:12px;line-height:1.6}.priority-snapshot button{font-size:11px}
.exec-metric small{font-size:9px;color:#657080}.exec-metric span{font-size:11px;color:#5d6979;line-height:1.4}.exec-metric b{font-size:31px}
.card-head p,.exec-card-head p{font-size:11px;line-height:1.5;color:#667182}
.card-head a,.card-head button,.exec-card-head a,.exec-card-head button{font-size:10px}
.pulse-list{padding-left:23px;padding-right:23px}.pulse-row{grid-template-columns:30px minmax(0,1fr) 86px 84px 28px;gap:14px;padding:19px 0}
.pulse-rank{font-size:10px}.pulse-row h3{font-size:13px;line-height:1.4}.pulse-row p{font-size:10.5px;color:#687384;line-height:1.5}.pulse-data small{font-size:8px}.pulse-data b{font-size:11px}.pulse-score{font-size:12px}
.change-feed{padding-left:23px;padding-right:23px}.change-item{padding:15px 0}.change-item b{font-size:12px;line-height:1.45}.change-item p{font-size:10px;line-height:1.45;color:#6e7888}.change-item time{font-size:9px}
.chart-meta div,.radar-legend{font-size:9px}.chart-meta b{font-size:16px}
.source-health small{font-size:8px;color:#687383}.source-health b{font-size:10px;line-height:1.4}
.metric-top{font-size:11px}.metric-foot{font-size:10px;line-height:1.55}
.history-row time{font-size:10px}.history-row h3{font-size:13px}.history-row p,.history-owner small{font-size:10px}.history-owner b{font-size:11px}.history-status{font-size:9px}.history-row>strong{font-size:14px}
.quality-list span{font-size:11px}.quality-list b{font-size:13px}.decision-speed small{font-size:8px}.decision-speed em{font-size:10px}
.outcome-step span{font-size:11px}.outcome-step small{font-size:9px;line-height:1.45}
.activity-card td{font-size:10px}.learning-strip small{font-size:9px}.learning-strip b{font-size:17px}.learning-strip p{font-size:11px;line-height:1.65}
.app-footer{font-size:9px;line-height:1.5}

@media(max-width:1150px){#sidebar{width:228px}.app-body{margin-left:256px}}
@media(max-width:800px){
  #sidebar{width:280px}.app-body{margin-left:0}
  body{font-size:14px}.page-heading p,.exec-head p{font-size:12px}
  .pulse-row{grid-template-columns:24px 1fr 62px 26px;gap:10px}.pulse-row h3{font-size:12px}.pulse-row p{font-size:10px}
}
