/* V2.2: preserve the dashboard shell while giving each source module its own space. */
body { background:#020c17; }
.dashboard { top:auto; width:100%; height:100dvh; min-height:760px; display:grid; grid-template-rows:44px 45px 116px minmax(0,1fr); gap:7px; padding:8px 12px 10px; overflow:hidden; background:radial-gradient(ellipse at 50% 42%,#0b2d43 0,#041624 52%,#020b15 100%); }
.dashboard-header { border-bottom:1px solid #1e5570; }
.header-center h1 { color:#dff9ff; font-size:20px; letter-spacing:.12em; }
.sovo-nav { gap:7px; }
.group-card { padding:5px 12px; border-color:#1a546d; background:linear-gradient(100deg,#092739,#061927); }
.group-card::before { left:auto; right:4px; top:50%; font-size:42px; transform:translateY(-50%); }
.nav-letter { font-size:42px; right:10px; }
.group-content { display:flex; align-items:center; gap:10px; }
.group-name { font-size:11px; white-space:nowrap; }
.group-kpi { gap:4px; }
.group-kpi b { font-size:15px; }
.group-kpi span { font-size:9px; }
.group-meta { display:none; }
.metrics-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); grid-template-rows:repeat(2,minmax(0,1fr)); gap:6px; min-height:0; }
.metric-tile.metric-entry { position:relative; display:flex; align-items:center; justify-content:space-between; gap:8px; min-width:0; padding:6px 12px; border:1px solid #1d617d; border-left:3px solid #25acc8; background:linear-gradient(110deg,#0b2c40,#06192a 75%); box-shadow:inset 0 0 14px #0e5d7830; }
.metric-tile.metric-entry:hover { transform:none; border-color:#55d8ec; background:#0c3449; }
.metric-tile .tile-label { color:#a9cbd6; font-size:clamp(10px,.8vw,13px); white-space:nowrap; }
.metric-tile strong { color:#75e7f5; font-size:clamp(17px,1.35vw,26px); line-height:1; white-space:nowrap; text-shadow:0 0 10px #29b7d43d; }
.metric-tile strong small { margin-left:3px; color:#9bced7; font-size:.47em; font-weight:500; }
.metric-tile.metric-entry strong::after { content:none; }
.overview-grid { display:grid; grid-template-columns:minmax(260px, .93fr) minmax(480px,1.55fr) minmax(300px,1.03fr); gap:7px; min-height:0; }
.dashboard-rail,.center-rail { display:grid; gap:7px; min-width:0; min-height:0; }
.left-rail { grid-template-rows:1.05fr .91fr .84fr; }
.right-rail { grid-template-rows:1fr .9fr .8fr; }
.center-rail { grid-template-rows:minmax(0, 2.05fr) minmax(0, .95fr); }
.data-panel,.main-stage { position:relative; min-width:0; min-height:0; overflow:hidden; padding:10px 12px; border:1px solid #1b5d76; background:linear-gradient(145deg,#092437ec,#041521f3); box-shadow:inset 0 0 18px #0c71821c; }
.data-panel::before,.main-stage::before { content:''; position:absolute; z-index:0; left:-1px; top:-1px; width:35px; height:3px; background:#49cfe5; box-shadow:0 0 8px #26c8e9; pointer-events:none; }
.data-panel-heading { position:relative; z-index:1; display:flex; align-items:center; justify-content:space-between; gap:6px; min-width:0; padding-bottom:7px; border-bottom:1px solid #1c5369; }
.data-panel-heading h2 { font-size:clamp(12px,.78vw,15px); margin:2px 0 0; color:#d3f3f8; }
.panel-kicker { color:#5c9fb1; font-size:8px; letter-spacing:.12em; }
.panel-link.metric-entry { flex:none; padding:3px 0; border:0; color:#75c9d9; background:transparent; font:inherit; font-size:10px; cursor:pointer; }
.panel-link.metric-entry:hover { transform:none; color:#c5faff; }
.mini-tabs { display:flex; gap:5px; padding:7px 0 5px; }
.mini-tabs button { padding:4px 9px; border:1px solid transparent; background:transparent; color:#7ca8b7; font:inherit; font-size:10px; cursor:pointer; }
.mini-tabs button[aria-pressed=true] { color:#ccfaff; border-color:#247f9b; background:#0c425a; }
.list-table { display:grid; gap:3px; }
.list-line { display:grid; grid-template-columns:24px minmax(0,1fr) auto; align-items:center; gap:7px; min-height:26px; padding:3px 6px; background:#0b3044a8; color:#c0dbe3; font-size:clamp(9px,.67vw,11px); }
.list-line .number { display:grid; place-items:center; width:20px; height:20px; border:1px solid #2a7892; color:#76dded; }
.list-line .name { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.list-line .value { color:#70ddec; white-space:nowrap; }
.micro-note { margin:6px 0; color:#729baa; font-size:clamp(9px,.58vw,11px); line-height:1.3; }
.major-list { display:grid; gap:7px; margin-top:8px; }
.major-list>div { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(32px,1fr) 36px; align-items:center; gap:8px; color:#aacbd4; font-size:clamp(9px,.65vw,11px); }
.major-list span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.major-list i { height:4px; background:#124458; }
.major-list i b { display:block; width:var(--width); height:100%; background:linear-gradient(90deg,#177ba8,#62e1e7); box-shadow:0 0 7px #25c9e7; }
.major-list strong { color:#bceff4; font-size:10px; font-weight:500; text-align:right; }
.talent-cloud { height:calc(100% - 67px); min-height:62px; display:flex; align-content:center; align-items:center; justify-content:center; flex-wrap:wrap; gap:4px 12px; padding:4px 5%; overflow:hidden; }
.talent-cloud span { color:#5eacc5; font-size:clamp(12px,1.1vw,20px); font-weight:650; line-height:1.2; }
.talent-cloud span:nth-child(3n) { color:#7ed9e4; font-size:clamp(15px,1.35vw,24px); }
.talent-cloud span:nth-child(4n) { color:#ddb76d; }
.story-stage { padding:0; }
.story-stage .stage-heading { min-height:50px; }
.story-canvas-wrap { inset:50px 0 48px; }
.story-bottom { bottom:8px; }
.story-stage .stage-heading h2 { font-size:clamp(13px,1vw,17px); }
.trend-panel-wide { display:flex; flex-direction:column; }
.chart-legend { display:flex; gap:9px; color:#86b0be; font-size:9px; white-space:nowrap; }
.chart-legend span { display:flex; align-items:center; gap:4px; }
.chart-legend i { width:7px; height:7px; background:#30c9db; }
.chart-legend span:nth-child(2) i { background:#3779c8; }
.chart-legend span:nth-child(3) i { background:#e5ae53; }
.wide-chart { flex:1; display:flex; justify-content:space-around; align-items:stretch; min-height:0; padding:12px 3px 0; background:repeating-linear-gradient(to bottom,transparent 0,transparent 31%,#1b485957 32%,transparent 33%); }
.wide-group { display:flex; flex-direction:column; align-items:center; gap:4px; width:12%; color:#84aebb; font-size:clamp(8px,.6vw,10px); }
.wide-bars { display:flex; align-items:end; justify-content:center; gap:3px; width:100%; height:calc(100% - 15px); }
.wide-bar { position:relative; display:flex; align-items:end; justify-content:center; width:clamp(6px,.65vw,13px); height:var(--h); min-height:2px; background:linear-gradient(0deg,#087a9f,#51e0e5); }
.wide-bar.y2 { background:linear-gradient(0deg,#1b4c95,#62a2ee); }
.wide-bar.y3 { background:linear-gradient(0deg,#c07527,#f1c15c); }
.wide-bar b { position:absolute; bottom:100%; color:#b5dbe1; font-size:9px; font-weight:500; }
.chart-note { margin:2px 0 0; text-align:right; }
.teacher-head,.teacher-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) 46px; align-items:center; gap:6px; }
.teacher-head { padding:7px 5px 4px; color:#749aa9; font-size:9px; }
.teacher-row { min-height:30px; margin:3px 0; padding:3px 6px; background:#0b3044a8; color:#a9cad2; font-size:clamp(9px,.62vw,11px); }
.teacher-row>span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.teacher-row b { color:#cfeef3; font-weight:600; }
.teacher-row small { display:block; overflow:hidden; color:#76a3b2; font-size:9px; text-overflow:ellipsis; }
.teacher-row strong { color:#78e2ee; font-size:10px; text-align:right; white-space:nowrap; }
.donut-grid { display:grid; grid-template-columns:1fr 1fr; gap:7px; min-height:0; }
.donut-panel { padding:9px 10px; }
.donut-body { display:flex; justify-content:space-around; align-items:center; gap:6px; height:calc(100% - 33px); min-height:0; }
.mini-donut { position:relative; display:grid; place-items:center; flex:none; width:clamp(58px,5.6vw,100px); aspect-ratio:1; border-radius:50%; }
.donut-inside { background:conic-gradient(#41d8e5 0 40.8%,#418bcc 40.8% 54.8%,#d3ab5d 54.8% 66.9%,#52718d 66.9% 100%); }
.donut-outside { background:conic-gradient(#41d8e5 0 47.826%,#418bcc 47.826% 69.565%,#d3ab5d 69.565% 80.435%,#52718d 80.435% 100%); }
.mini-donut::before { content:''; position:absolute; inset:18%; border-radius:50%; background:#071b29; }
.mini-donut span { position:relative; display:grid; text-align:center; color:#c9f4f8; }
.mini-donut b { font-size:clamp(15px,1.3vw,23px); line-height:1; }
.mini-donut small { margin-top:3px; color:#7ea7b4; font-size:8px; }
.donut-legend { display:grid; gap:5px; min-width:0; color:#99bbc6; font-size:clamp(8px,.58vw,10px); }
.donut-legend span { display:grid; grid-template-columns:6px 1fr auto; gap:4px; align-items:center; white-space:nowrap; }
.donut-legend i { width:6px; height:6px; background:#41d8e5; }.donut-legend span:nth-child(2) i { background:#418bcc; }.donut-legend span:nth-child(3) i { background:#d3ab5d; }.donut-legend span:nth-child(4) i { background:#52718d; }.donut-legend b { color:#c6ebf0; font-weight:500; }
.activity-headline { display:flex; align-items:center; gap:10px; min-height:50px; padding:10px 4px; }
.activity-mark { display:grid; place-items:center; width:36px; height:36px; border:1px solid #2f92a7; color:#7de8f1; font-size:22px; }
.activity-headline div { display:grid; gap:4px; }.activity-headline strong { color:#cbeff3; font-size:clamp(10px,.75vw,13px); }.activity-headline small { color:#76a5b4; font-size:9px; }
.activity-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:2px; border-top:1px solid #19445a; }
.activity-grid div { display:grid; gap:5px; padding:8px 4px; text-align:center; border-right:1px solid #19445a; }.activity-grid div:last-child { border:0; }.activity-grid b { color:#71deeb; font-size:clamp(15px,1.35vw,23px); line-height:1; }.activity-grid b small { margin-left:2px; font-size:.5em; }.activity-grid span { color:#81a8b5; font-size:9px; white-space:nowrap; }
@media (max-width:1100px) and (min-width:901px) { .overview-grid { grid-template-columns:minmax(210px,.9fr) minmax(390px,1.5fr) minmax(240px,1fr); }.data-panel { padding:8px; }.donut-body { gap:3px; }.donut-legend { font-size:8px; }.mini-donut { width:54px; } }
@media (max-width:900px) {
 body { overflow:auto; }.dashboard { height:auto; min-height:100dvh; grid-template-rows:auto auto auto auto; overflow:visible; padding:9px; }.dashboard-header { min-height:48px; }.sovo-nav { grid-template-columns:repeat(4,minmax(0,1fr)); height:44px; }.group-kpi,.nav-letter,.group-card::before { display:none; }.group-card { padding:5px; justify-content:center; }.group-name { font-size:10px; }.metrics-grid { grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:repeat(4,54px); }.metric-tile.metric-entry { padding:6px 8px; }.overview-grid { display:flex; flex-direction:column; }.center-rail { order:0; display:grid; grid-template-rows:420px 230px; }.left-rail { order:1; }.right-rail { order:2; }.dashboard-rail { grid-template-rows:none; grid-auto-rows:auto; min-height:0; }.data-panel { min-height:180px; }.company-panel,.teacher-panel { min-height:230px; }.donut-grid { min-height:200px; }.donut-panel { min-height:200px; }.activity-panel-v22 { min-height:180px; }.talent-cloud { height:90px; }.main-stage { min-height:420px; }.story-canvas-wrap { inset:50px 0 48px; }.header-center { display:none; }.dashboard-header { grid-template-columns:1fr auto; }.header-status { grid-column:2; grid-row:1; }
}
@media (max-width:450px) { .metrics-grid { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:repeat(6,50px); }.metric-tile .tile-label { font-size:10px; }.metric-tile strong { font-size:18px; }.donut-body { gap:4px; }.mini-donut { width:58px; }.donut-legend { font-size:8px; } }
@media (max-width:900px) {
  .sovo-nav { grid-auto-rows:1fr; }
  .overview-grid { min-height:max-content; }
  .center-rail, .dashboard-rail { flex:0 0 auto; min-height:max-content; }
}
.data-panel-heading .panel-kicker { display:block; line-height:1.1; }
.data-panel-heading h2 { line-height:1.2; }
.teacher-row { min-height:27px; padding-block:2px; line-height:1.1; }
@media (min-width:901px) and (max-height:820px) {
  body { overflow:auto; }
  .dashboard { height:auto; min-height:900px; grid-template-rows:44px 45px 116px minmax(680px,1fr); overflow:visible; }
}
