*{box-sizing:border-box}html{background:#07131d}body{margin:0;background:#07131d;color:#edf6fb;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;min-height:100vh}button{font:inherit}.topbar{height:76px;padding:0 28px;border-bottom:1px solid #173344;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:20;background:rgba(7,19,29,.96);backdrop-filter:blur(14px)}.brand{display:flex;align-items:center;gap:13px}.logo{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;font-size:24px;background:linear-gradient(135deg,#138264,#12465e);border:1px solid #24806f}.brand strong{font-size:18px;display:block}.brand small{display:block;color:#7f9aac;margin-top:2px;font-size:11px}.primary{border:1px solid #276e5a;background:#123f35;color:#eafff6;border-radius:11px;padding:10px 16px;cursor:pointer}.tabs{height:54px;padding:0 28px;border-bottom:1px solid #173344;display:flex;gap:4px;align-items:end;overflow-x:auto;background:#081722;position:sticky;top:76px;z-index:19}.tabs button{border:0;background:transparent;color:#89a1b2;padding:16px 17px 14px;white-space:nowrap;cursor:pointer;border-bottom:2px solid transparent}.tabs button.active{color:#fff;border-bottom-color:#31b58c}main{max-width:1440px;margin:auto;padding:28px}.page{display:none}.page.active{display:block}.hero{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.hero h1,.pageHead h1{font-size:30px;letter-spacing:-.7px;margin:5px 0}.hero p,.pageHead p{color:#7893a5;margin:0}.eyebrow{font-size:11px;letter-spacing:1.4px;color:#5e8397;font-weight:700}.status{border-radius:999px;padding:9px 13px;font-size:12px;border:1px solid #244454;color:#91a9b7}.status.good{border-color:#216c56;background:#0e3028;color:#75dfb7}.status.bad{border-color:#6b3939;background:#311b1b;color:#ff9f9f}.kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:13px;margin-bottom:18px}.kpis article,.panel{background:linear-gradient(180deg,#0c2130,#091a26);border:1px solid #17394d;border-radius:17px;box-shadow:0 12px 35px rgba(0,0,0,.14)}.kpis article{min-height:150px;padding:20px;display:flex;flex-direction:column}.kpis span{color:#7591a5;font-size:11px;letter-spacing:1.2px}.kpis strong{font-size:31px;margin:auto 0 7px;letter-spacing:-1px}.kpis small{color:#7992a3;font-size:12px}.grid2{display:grid;grid-template-columns:1.35fr 1fr;gap:18px;margin-bottom:18px}.panel{padding:20px;min-height:230px}.panelHead{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #163243;padding-bottom:14px;margin-bottom:14px}.panel h2{font-size:18px;margin:4px 0 0}.pipeline{display:flex;gap:8px;flex-wrap:wrap;margin:5px 0 18px}.pipe{background:#08151f;border:1px solid #17394a;border-radius:11px;padding:10px 12px;min-width:90px}.pipe b{display:block;font-size:19px;margin-bottom:3px}.pipe span{font-size:10px;color:#7c96a8;text-transform:uppercase}.item{padding:14px 0;border-bottom:1px solid #14303f}.item:last-child{border-bottom:0}.itemTop{display:flex;justify-content:space-between;gap:15px;align-items:flex-start}.item h3{font-size:14px;margin:0 0 5px}.item p{color:#7893a4;font-size:12px;line-height:1.5;margin:0}.tag{display:inline-flex;padding:4px 8px;border-radius:999px;border:1px solid #254354;color:#8eacbd;font-size:10px;margin:5px 5px 0 0}.tag.green{border-color:#24634f;color:#70d8ad;background:#0b2a22}.tag.yellow{border-color:#6b5b2a;color:#e7c96a;background:#292410}.tag.red{border-color:#633737;color:#ef9696;background:#291616}.score{font-weight:700;color:#7ee0bb;white-space:nowrap}.empty{color:#627d8f;padding:25px 0;text-align:center}.pageHead{margin-bottom:22px}.page>#venturesList,.page>#agentsList,.page>#approvalsList,.page>#runsList{background:#0a1d2a;border:1px solid #17394d;border-radius:17px;padding:20px}.danger{color:#ff9c9c}.muted{color:#7390a2}@media(max-width:900px){.topbar{padding:0 18px;height:70px}.brand small{display:none}.tabs{top:70px;padding:0 12px;height:54px}.tabs button{padding:16px 13px 13px}main{padding:20px 16px}.hero{align-items:flex-start}.hero h1{font-size:25px}.kpis{grid-template-columns:repeat(2,1fr)}.kpis article{min-height:135px;padding:17px}.kpis article:last-child{grid-column:1/-1}.grid2{grid-template-columns:1fr}.panel{padding:17px}}@media(max-width:480px){.topbar{padding:0 14px}.logo{width:38px;height:38px}.brand strong{font-size:17px}.primary{padding:9px 12px}.hero{display:block}.hero .status{display:inline-flex;margin-top:15px}.kpis{gap:10px}.kpis strong{font-size:27px}.tabs{scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}.panel{border-radius:15px}.itemTop{gap:8px}}

.wealthCommand{
  margin:0 0 18px;
  padding:22px;
  border:1px solid #1f5b50;
  border-radius:18px;
  background:
    radial-gradient(circle at top right,rgba(31,180,137,.14),transparent 38%),
    linear-gradient(180deg,#0d2730,#0a1d27);
  box-shadow:0 18px 45px rgba(0,0,0,.18);
}
.wealthHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.wealthHead h2{
  margin:4px 0 0;
  font-size:21px;
}
.wealthGrid{
  display:grid;
  grid-template-columns:2fr .7fr 1fr 1fr;
  gap:12px;
}
.wealthGrid>div{
  padding:15px;
  border:1px solid #173c46;
  border-radius:13px;
  background:rgba(5,18,25,.48);
}
.wealthGrid span,
.nextAction span{
  display:block;
  color:#7696a6;
  font-size:10px;
  letter-spacing:1.2px;
  margin-bottom:8px;
}
.wealthGrid strong{
  display:block;
  font-size:18px;
  line-height:1.3;
}
#wealthScore{
  font-size:28px;
  color:#7ce1bb;
}
#wealthDecision{
  color:#f0cf76;
}
.nextAction{
  margin-top:12px;
  padding:15px 17px;
  border-radius:13px;
  border:1px solid #1b4550;
  background:#081922;
}
.nextAction strong{
  font-size:14px;
  line-height:1.5;
}
.ventureProgress{
  height:6px;
  margin-top:16px;
  background:#07141c;
  border-radius:999px;
  overflow:hidden;
}
.ventureProgress i{
  display:block;
  width:0;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#25a881,#61d9b2);
  transition:width .35s ease;
}

@media(max-width:900px){
  .wealthCommand{padding:17px}
  .wealthGrid{grid-template-columns:1fr 1fr}
  .wealthGrid>div:first-child{grid-column:1/-1}
}

@media(max-width:480px){
  .wealthHead{align-items:flex-start}
  .wealthHead h2{font-size:19px}
  .wealthGrid{grid-template-columns:1fr 1fr}
  .wealthGrid strong{font-size:15px}
  #wealthScore{font-size:24px}
}

.decisionIntel{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:14px
}
.decisionIntel>div{
  padding:15px 17px;
  border:1px solid #19414a;
  border-radius:13px;
  background:rgba(5,18,25,.5)
}
.decisionIntel .full{grid-column:1/-1}
.decisionIntel span{
  display:block;
  color:#7696a6;
  font-size:10px;
  letter-spacing:1.2px;
  margin-bottom:8px
}
.decisionIntel strong{
  display:block;
  font-size:14px;
  line-height:1.5
}
.reasonList{
  color:#a9bdc8;
  font-size:13px;
  line-height:1.6
}
.decisionReason{margin:5px 0}
@media(max-width:480px){
  .decisionIntel{grid-template-columns:1fr}
  .decisionIntel .full{grid-column:auto}
}

/* CEO FOCUS MODE */
#overview>.grid2:last-of-type{display:none}
#overview #topVentures{display:none}
#overview .wealthCommand{margin-bottom:18px}
#overview .kpis{margin-bottom:18px}
#overview .grid2{grid-template-columns:1.15fr .85fr}
@media(max-width:760px){#overview .grid2{grid-template-columns:1fr}}

/* CEO NEXT ACTION PRIORITY */
.wealthCommand{display:flex;flex-direction:column}.wealthHead{order:1}.nextAction{order:2;margin:16px 0;padding:20px;border:1px solid #2b8f79;border-radius:17px;background:rgba(38,166,135,.09)}.nextAction span{display:block;font-size:11px;letter-spacing:1.5px;color:#65d8ba;margin-bottom:9px}.nextAction strong{font-size:20px;line-height:1.4;color:#f4f8fb}.wealthGrid{order:3}.decisionIntel{order:4}.ventureProgress{order:5}

/* CEO DESKTOP COMPACT */
#overview .panel{min-height:0;height:auto}
#overview #attentionList .item p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
#overview #attentionList .item{padding:14px}
#overview .grid2{align-items:start}

/* FACTORY 1.0 */
.factoryScore{display:flex;align-items:flex-end;gap:12px;padding:18px 0;border-bottom:1px solid #163243;margin-bottom:6px}.factoryScore strong{font-size:46px;line-height:1;color:#7ee0bb;letter-spacing:-2px}.factoryScore span{font-size:10px;letter-spacing:1.3px;color:#7893a5;padding-bottom:5px}.templateItem .primary{flex:0 0 auto}.templateItem p{max-width:560px}#toast{position:fixed;right:22px;bottom:22px;z-index:100;background:#0d2d27;border:1px solid #28745e;color:#dff9ef;padding:12px 16px;border-radius:12px;box-shadow:0 16px 40px rgba(0,0,0,.35);opacity:0;pointer-events:none;transform:translateY(10px);transition:.2s}#toast.show{opacity:1;transform:translateY(0)}#toast.bad{background:#321d1d;border-color:#7a4040;color:#ffc0c0}@media(max-width:480px){.factoryScore strong{font-size:38px}.templateItem .itemTop{align-items:center}.templateItem .primary{padding:8px 11px}}
