:root{--v20-bg:#070b10;--v20-side:#0b1016;--v20-surface:#10151c;--v20-line:rgba(255,255,255,.075);--v20-line2:rgba(255,255,255,.12);--v20-text:#f6f7f9;--v20-muted:#939ca8;--v20-red:#1f70c9;--v20-green:#38b979;--v20-amber:#d99a23;--v20-gray:#9ca4ad}
body[data-module="command"]{background:var(--v20-bg)}
body[data-module="command"] .workspace{background:radial-gradient(1000px 500px at 35% -10%,rgba(229,36,42,.05),transparent 44%),var(--v20-bg)}
body[data-module="command"] .topbar{height:82px;padding:0 22px;border-bottom:1px solid var(--v20-line);background:rgba(7,11,16,.94);backdrop-filter:blur(12px)}
body[data-module="command"] .page-title small{display:none}body[data-module="command"] .page-title h1{font-size:22px;letter-spacing:-.035em}body[data-module="command"] .context-help{display:none}body[data-module="command"] .top-actions{gap:9px}body[data-module="command"] .search{display:none}
body[data-module="command"] .scenario{height:44px;min-width:235px;border-radius:13px;border:1px solid var(--v20-line2);background:#0d131a;color:#fff;padding:0 14px}body[data-module="command"] .top-actions .button{height:44px;border-radius:13px;border:1px solid var(--v20-line2);background:#0d131a;color:#fff;display:grid;place-items:center;padding:0 15px}
body[data-module="command"] .main{padding:16px 18px 110px;max-width:none}
.sidebar{background:linear-gradient(180deg,#080d12,#0b1016);border-right:1px solid var(--v20-line);width:258px}.brand{padding:18px 18px 16px;gap:12px}.brand-logo{width:100px;height:68px;border-radius:14px;padding:4px;background:#fff}.brand-copy strong{font-size:12px;letter-spacing:.17em}.brand-copy small{font-size:9px;color:#98a1ad;line-height:1.4}.demo-tag{margin:0 15px 14px;padding:11px 12px;border-radius:13px;background:#11171e;border:1px solid var(--v20-line);font-size:9px;color:#98a1ad}.nav{padding:0 11px}.nav-group{margin:11px 0}.nav-group-head{font-size:8px;color:#77818d;letter-spacing:.18em;padding:0 9px 7px}.nav-group-head small{font-size:7px;color:#5f6974;margin-top:3px}.nav-item{border-radius:12px;min-height:56px;margin:4px 0;padding:8px 9px;border:1px solid transparent;background:transparent}.nav-item:hover{background:#10161e;border-color:var(--v20-line)}.nav-item.active{background:linear-gradient(90deg,rgba(229,36,42,.10),#10161e 28%);border-color:var(--v20-line);box-shadow:inset 3px 0 0 var(--v20-red)}.nav-code{width:38px;height:38px;border-radius:10px;background:#111822;color:#c2c8cf;display:grid;place-items:center}.nav-copy strong{font-size:12px}.nav-copy small{font-size:8px;color:#818b97}.nav-badge{background:var(--v20-red)}.sidebar-shortcuts{gap:8px;padding:10px 13px}.sidebar-shortcuts a{border-radius:12px;background:#0e141b;border:1px solid var(--v20-line);height:48px}.sidebar-foot{padding:8px 17px 15px}
.command-v20{display:grid;gap:14px;min-width:0}.v20-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}.v20-kpi{min-width:0;min-height:126px;padding:16px 15px 13px;border:1px solid var(--v20-line);border-radius:14px;background:linear-gradient(180deg,rgba(255,255,255,.018),transparent),var(--v20-surface);position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:7px}.v20-kpi small{display:block;color:#ccd1d7;font-size:10px;margin-bottom:9px}.v20-kpi strong{display:block;color:#fff;font-size:23px;line-height:1.05;letter-spacing:-.035em;white-space:nowrap}.v20-kpi span{display:block;color:#3f7ae2;font-size:10px;margin-top:9px}.v20-kpi-icon{width:42px;height:42px;border-radius:11px;background:rgba(229,36,42,.11);border:1px solid rgba(229,36,42,.18);position:relative}.v20-kpi-icon:before,.v20-kpi-icon:after{content:'';position:absolute;border:1.5px solid #5a8fe8}.v20-kpi-icon:before{width:15px;height:13px;border-radius:3px;left:12px;top:11px}.v20-kpi-icon:after{width:8px;height:2px;border-width:0 0 1.5px 0;left:16px;top:27px}.v20-kpi-icon.fuel:before{border-radius:50% 50% 45% 45%;width:13px;height:19px;top:9px}.v20-kpi-icon.cash:before{width:19px;height:12px;left:10px}.v20-kpi-icon.cash:after{width:5px;height:5px;border-radius:50%;left:18px;top:15px;border:1.5px solid #5a8fe8}.v20-spark{position:absolute;right:13px;bottom:10px;width:70px;height:25px}.v20-spark polyline{fill:none;stroke:var(--v20-red);stroke-width:1.8;vector-effect:non-scaling-stroke}
.v20-main-grid{display:grid;grid-template-columns:minmax(0,1.22fr) minmax(0,.98fr) minmax(285px,.72fr);gap:11px;align-items:start}.v20-panel{min-width:0;border:1px solid var(--v20-line);border-radius:15px;background:linear-gradient(180deg,rgba(255,255,255,.016),transparent),var(--v20-surface);box-shadow:0 12px 28px rgba(0,0,0,.16)}.v20-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 17px 13px;border-bottom:1px solid rgba(255,255,255,.045)}.v20-panel h3{margin:0;color:#fff;font-size:14px;letter-spacing:-.02em}.v20-panel header small{display:block;margin-top:4px;color:var(--v20-muted);font-size:8px}.v20-link,.v20-side-panel header button{border:0;background:transparent;color:#3f7ae2;font-size:9px;cursor:pointer}.v20-filter{height:29px;padding:0 10px;border-radius:9px;background:#111821;border:1px solid var(--v20-line);color:#fff;font-size:9px}
.v20-map-panel{min-height:470px}.v20-map{height:352px;position:relative;margin:11px 13px 0;border-radius:12px;overflow:hidden;background:radial-gradient(circle at 60% 42%,rgba(255,255,255,.035),transparent 20%),linear-gradient(180deg,#0b1016,#0b1015)}.v20-mexico{position:absolute;inset:22px 18px 22px 34px;width:calc(100% - 52px);height:calc(100% - 44px);fill:rgba(255,255,255,.012);stroke:rgba(255,255,255,.14);stroke-width:2}.v20-mexico path+path{fill:none;stroke:rgba(255,255,255,.075)}.v20-map-tools{position:absolute;z-index:3;left:11px;top:11px;display:grid;gap:5px}.v20-map-tools button{width:32px;height:32px;border-radius:8px;border:1px solid var(--v20-line2);background:#111821;color:#fff;font-size:15px}.v20-map-dot{position:absolute;z-index:2;width:10px;height:10px;border-radius:50%;border:2px solid rgba(255,255,255,.42);box-shadow:0 0 0 3px rgba(0,0,0,.3)}.v20-map-dot.red{background:var(--v20-red)}.v20-map-dot.green{background:var(--v20-green)}.v20-map-dot.amber{background:var(--v20-amber)}.v20-map-legend{display:flex;gap:13px;flex-wrap:wrap;padding:12px 15px;color:#cbd0d6;font-size:9px}.v20-map-legend i,.v20-diesel-legend i{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px}.v20-map-legend .green,.v20-diesel-legend .green{background:var(--v20-green)}.v20-map-legend .amber{background:var(--v20-amber)}.v20-map-legend .red,.v20-diesel-legend .red{background:var(--v20-red)}.v20-map-legend .gray,.v20-diesel-legend .gray{background:var(--v20-gray)}
.v20-trend-panel{min-height:470px}.v20-chart{height:340px;display:grid;grid-template-columns:33px 1fr;grid-template-rows:1fr 21px;padding:13px 13px 0}.v20-ylabels{display:flex;flex-direction:column;justify-content:space-between;color:#7f8995;font-size:7px;padding:4px 6px 18px 0}.v20-chart svg{width:100%;height:100%;overflow:visible}.v20-chart .grid path{fill:none;stroke:rgba(255,255,255,.06);stroke-width:1}.v20-chart .l{fill:none;stroke-width:2.2;vector-effect:non-scaling-stroke}.v20-chart .l.red{stroke:var(--v20-red)}.v20-chart .l.green{stroke:var(--v20-green)}.v20-chart .l.amber{stroke:var(--v20-amber)}.v20-chart .l.gray{stroke:#9da5af}.v20-xlabels{grid-column:2;display:flex;justify-content:space-between;color:#7f8995;font-size:7px}.v20-chart-legend{display:flex;gap:13px;flex-wrap:wrap;padding:10px 15px 13px;font-size:9px}.v20-chart-legend span:before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:currentColor;margin-right:6px}.v20-chart-legend .red{color:var(--v20-red)}.v20-chart-legend .green{color:var(--v20-green)}.v20-chart-legend .amber{color:var(--v20-amber)}.v20-chart-legend .gray{color:#9ca4ad}
.v20-side-stack{display:grid;gap:11px}.v20-side-panel>header{padding:14px 14px 11px}.v20-side-item,.v20-task,.v20-activity{display:grid;align-items:start;gap:9px;padding:11px 13px;border-bottom:1px solid rgba(255,255,255,.055)}.v20-side-item:last-child,.v20-task:last-child,.v20-activity:last-child{border-bottom:0}.v20-side-item{grid-template-columns:27px minmax(0,1fr) 10px}.v20-side-item>i,.v20-activity>i{width:27px;height:27px;border-radius:8px;background:rgba(229,36,42,.10);position:relative}.v20-side-item>i:after,.v20-activity>i:after{content:'';position:absolute;inset:8px;border:1.5px solid var(--v20-red);border-radius:50%}.v20-side-item>i.amber{background:rgba(217,154,35,.10)}.v20-side-item>i.amber:after{border-color:var(--v20-amber)}.v20-side-item b,.v20-activity b{display:block;font-size:9px;color:#f4f6f8;line-height:1.35}.v20-side-item small,.v20-activity small{display:block;color:#8f98a4;font-size:7px;line-height:1.4;margin-top:3px}.v20-side-item>strong{color:#737d88}.v20-task{grid-template-columns:17px minmax(0,1fr) 21px;align-items:center}.v20-task>i{width:15px;height:15px;border-radius:50%;border:1px solid #5b6570}.v20-task span{font-size:9px;color:#dfe3e8}.v20-task b{display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:var(--v20-red);font-size:8px}.v20-activity{grid-template-columns:27px minmax(0,1fr) auto}.v20-activity>i.green{background:rgba(56,185,121,.10)}.v20-activity>i.green:after{border-color:var(--v20-green)}.v20-activity time{font-size:7px;color:#7f8994;white-space:nowrap}
.v20-bottom-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(340px,.95fr);gap:11px}.v20-table-panel,.v20-diesel-panel{min-height:305px}.v20-table-wrap{overflow:auto;padding:0 11px}.v20-table-wrap table{width:100%;border-collapse:collapse}.v20-table-wrap th,.v20-table-wrap td{text-align:left;padding:10px 7px;border-bottom:1px solid rgba(255,255,255,.055);font-size:8px;white-space:nowrap}.v20-table-wrap th{color:#78828e;text-transform:uppercase;letter-spacing:.08em}.v20-table-wrap td{color:#d9dde2}.v20-status{display:inline-block;padding:5px 8px;border-radius:7px;font-size:7px}.v20-status.green{color:#71d9a5;background:rgba(56,185,121,.11)}.v20-status.amber{color:#f2bd50;background:rgba(217,154,35,.11)}.v20-status.red{color:#74a5ef;background:rgba(229,36,42,.11)}.v20-table-panel footer{padding:13px 15px 15px;color:#8f98a3;font-size:8px}.v20-progress{height:5px;background:#20262e;border-radius:999px;overflow:hidden;margin-top:10px}.v20-progress i{display:block;height:100%;background:var(--v20-red)}.v20-diesel-body{display:grid;grid-template-columns:170px minmax(0,1fr);gap:15px;align-items:center;padding:18px}.v20-donut{width:160px;height:160px;border-radius:50%;background:conic-gradient(var(--v20-green) 0 65%,var(--v20-red) 65% 90%,#9ca4ad 90% 100%);position:relative}.v20-donut:after{content:'';position:absolute;inset:23px;border-radius:50%;background:var(--v20-surface)}.v20-donut>div{position:absolute;inset:0;z-index:2;display:grid;place-content:center;text-align:center}.v20-donut strong{font-size:17px}.v20-donut small{color:#929ba6;font-size:7px;line-height:1.4}.v20-diesel-legend{display:grid;gap:13px}.v20-diesel-legend>div{display:flex;align-items:flex-start;gap:8px}.v20-diesel-legend b{display:block;font-size:9px}.v20-diesel-legend small{display:block;color:#8f98a4;font-size:7px;margin-top:3px}.v20-diesel-foot{display:grid;grid-template-columns:1fr auto;align-items:center;gap:7px;padding:0 17px 15px;color:#8f98a4;font-size:8px}.v20-diesel-foot .v20-progress{grid-column:1/-1;width:100%;margin:0}.v20-diesel-foot strong{color:#3f7ae2;justify-self:end}.assistant-launcher{width:58px!important;height:58px!important;border-radius:50%!important;right:20px!important;bottom:18px!important;background:linear-gradient(180deg,#2d6cdf,#1f70c9)!important;border:1px solid rgba(255,255,255,.12)!important;box-shadow:0 16px 36px rgba(229,36,42,.22)!important;font-size:11px!important}
@media(max-width:1220px){.v20-kpis{grid-template-columns:repeat(3,1fr)}.v20-main-grid{grid-template-columns:1fr 1fr}.v20-side-stack{grid-column:1/-1;grid-template-columns:repeat(3,1fr)}.v20-bottom-grid{grid-template-columns:1fr}.v20-diesel-body{grid-template-columns:170px 1fr}}
@media(max-width:900px){body[data-module="command"] .main{padding:12px 12px 100px}.v20-kpis{grid-template-columns:repeat(2,1fr)}.v20-main-grid{grid-template-columns:1fr}.v20-side-stack{grid-template-columns:1fr}.v20-diesel-body{grid-template-columns:1fr}.v20-donut{margin:auto}.v20-kpi strong{font-size:20px}}


/* V22 UI refinement */
:root{--glass:rgba(22,27,34,.58);--glass-line:rgba(255,255,255,.16);--glass-highlight:rgba(255,255,255,.08)}
/* More distinctive, professional geometry: less generic rounded-dashboard look */
.panel,.section,.module-hero,.module-intel>div,.kpi,.tool-card,.flow-step,.v20-panel,.v20-kpi{
  border-radius:7px 16px 7px 16px!important;
}
.nav-item{border-radius:5px 13px 5px 13px!important}
.nav-item.active{box-shadow:inset 3px 0 0 var(--v20-red);background:linear-gradient(90deg,rgba(229,36,42,.10),rgba(255,255,255,.015))!important}
.sidebar-shortcuts a{border-radius:6px 12px 6px 12px!important}
/* iPhone-like glass controls */
.top-actions .button,.scenario{
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.025))!important;
  border:1px solid var(--glass-line)!important;
  box-shadow:inset 0 1px 0 var(--glass-highlight),0 10px 24px rgba(0,0,0,.16)!important;
  -webkit-backdrop-filter:blur(22px) saturate(150%);backdrop-filter:blur(22px) saturate(150%);
  border-radius:18px!important;
}
.top-actions .button:hover,.scenario:hover{background:linear-gradient(180deg,rgba(255,255,255,.11),rgba(255,255,255,.045))!important}
.top-actions .button.primary{color:#fff!important;background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.035))!important}
/* Sidebar can collapse and leaves a clean rail */
.app{transition:grid-template-columns .24s ease}
.sidebar{display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto auto;height:100svh;overflow:hidden;transition:width .24s ease,transform .24s ease}
.sidebar .nav{min-height:0;overflow:auto;padding-bottom:8px;scrollbar-width:none}.sidebar .nav::-webkit-scrollbar{display:none}
.sidebar-shortcuts{margin-top:0}.sidebar-foot{padding-top:6px}
.sidebar-toggle{flex:0 0 44px;width:44px;height:44px;display:grid;place-content:center;gap:4px;border:1px solid var(--glass-line);border-radius:15px;background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.025));-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:inset 0 1px 0 rgba(255,255,255,.08);color:#fff;cursor:pointer}
.sidebar-toggle span{display:block;width:16px;height:1.5px;background:#f5f7f9;border-radius:2px;transition:.2s ease}.sidebar-toggle span:nth-child(2){width:11px}
body.sidebar-collapsed .sidebar{width:82px}body.sidebar-collapsed .workspace{margin-left:82px!important}body.sidebar-collapsed .brand{justify-content:center;padding-inline:8px}body.sidebar-collapsed .brand-logo{width:54px;height:54px}body.sidebar-collapsed .brand-copy,body.sidebar-collapsed .demo-tag,body.sidebar-collapsed .nav-copy,body.sidebar-collapsed .nav-group-head,body.sidebar-collapsed .nav-semaphore,body.sidebar-collapsed .sidebar-shortcuts b,body.sidebar-collapsed .sidebar-foot span:not(.health-dot){display:none!important}body.sidebar-collapsed .nav{padding:4px 9px}body.sidebar-collapsed .nav-item{grid-template-columns:1fr!important;justify-items:center;padding:7px!important}body.sidebar-collapsed .nav-code{margin:0}body.sidebar-collapsed .sidebar-shortcuts{grid-template-columns:1fr;padding:8px 9px}body.sidebar-collapsed .sidebar-shortcuts a{justify-content:center}body.sidebar-collapsed .sidebar-shortcuts span{margin:0}
/* GPS map: visibly map-like, not an empty grey chart */
.gps-layout{display:grid!important;grid-template-columns:minmax(0,1.7fr) minmax(300px,.65fr)!important;gap:14px!important;background:transparent!important;border:0!important;padding:0!important}
.gps-map-card{border:1px solid var(--v20-line);background:linear-gradient(180deg,rgba(255,255,255,.016),transparent),#0f141b;border-radius:7px 18px 7px 18px;overflow:hidden}
.gps-map-card>header{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid rgba(255,255,255,.06)}.gps-map-card header small{display:block;color:#828c98;font-size:8px;text-transform:uppercase;letter-spacing:.14em}.gps-map-card header h3{margin:5px 0 0;font-size:16px}.gps-live{font-size:9px;color:#cbd1d8}.gps-live i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#38b979;box-shadow:0 0 0 5px rgba(56,185,121,.08);margin-right:7px}
.gps-map-stage{position:relative;min-height:460px;background:#0a1016;overflow:hidden}.gps-map-svg{position:absolute;inset:0;width:100%;height:100%}.gps-grid path{stroke:rgba(255,255,255,.025);stroke-width:1}.gps-land path{fill:rgba(255,255,255,.025);stroke:rgba(255,255,255,.13);stroke-width:2}.gps-land path+path{fill:none;stroke:rgba(255,255,255,.06)}.gps-routes path{fill:none;stroke:#1f70c9;stroke-width:4;stroke-linecap:round;stroke-dasharray:9 8;opacity:.9}.gps-cities circle{r:4;fill:#cbd2da}.gps-cities text{fill:#8e98a3;font-size:15px}.gps-units .green{fill:#38b979}.gps-units .red{fill:#1f70c9}.gps-units .amber{fill:#d99a23}.gps-map-controls{position:absolute;left:14px;top:14px;display:grid;gap:7px}.gps-map-controls button{width:38px;height:38px;border:1px solid var(--glass-line);border-radius:11px;background:rgba(15,21,28,.72);color:#fff;backdrop-filter:blur(14px);font-size:17px}.gps-map-legend{position:absolute;left:16px;right:16px;bottom:14px;display:flex;gap:16px;flex-wrap:wrap;padding:10px 12px;border:1px solid rgba(255,255,255,.09);background:rgba(9,14,20,.72);backdrop-filter:blur(15px);border-radius:10px;color:#cbd1d8;font-size:9px}.gps-map-legend i{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px}.gps-map-legend .green{background:#38b979}.gps-map-legend .amber{background:#d99a23}.gps-map-legend .red{background:#1f70c9}.gps-events .panel{height:100%;margin:0}.gps-summary .kpi{min-height:112px!important}
@media(max-width:1100px){.gps-layout{grid-template-columns:1fr!important}.gps-map-stage{min-height:380px}}
@media(max-width:900px){.sidebar-toggle{display:none}body.sidebar-collapsed .workspace{margin-left:0!important}}


/* V24 — refinement: square executive geometry, real maps, corrected collapse */
:root{--v24-white:#f7f9fb;--v24-secondary:#b8c1cc;--v24-third:#8f9aa7;--v24-glass:rgba(18,24,32,.64);--v24-line:rgba(255,255,255,.12)}
html,body{background:#070b10;color:var(--v24-white)}
.app{grid-template-columns:258px minmax(0,1fr)!important;transition:grid-template-columns .24s cubic-bezier(.2,.8,.2,1)!important}
.sidebar{width:auto!important;position:sticky!important;overflow:visible!important;border-right:1px solid rgba(255,255,255,.08)!important}
.sidebar .nav{overflow:auto!important}
.sidebar-toggle{position:absolute!important;right:-18px!important;top:92px!important;z-index:90!important;width:36px!important;height:58px!important;padding:0!important;display:grid!important;place-items:center!important;gap:0!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:3px!important;background:rgba(10,15,21,.86)!important;backdrop-filter:blur(18px)!important;box-shadow:0 14px 34px rgba(0,0,0,.3),inset 0 1px 0 rgba(255,255,255,.08)!important;color:#fff!important;clip-path:polygon(0 0,72% 0,100% 18%,100% 82%,72% 100%,0 100%)!important}
.sidebar-toggle span{width:auto!important;height:auto!important;background:none!important;font-size:24px!important;line-height:1!important;color:#fff!important;transform:none!important}.sidebar-toggle small{writing-mode:vertical-rl;transform:rotate(180deg);font-size:5px;letter-spacing:.2em;color:#8f99a5;margin-top:-5px}
body.sidebar-collapsed .app{grid-template-columns:76px minmax(0,1fr)!important}body.sidebar-collapsed .sidebar{width:auto!important}body.sidebar-collapsed .workspace{margin-left:0!important}body.sidebar-collapsed .brand{justify-content:center!important;padding:14px 8px 16px!important}body.sidebar-collapsed .brand-logo{width:46px!important;height:46px!important;border-radius:6px!important}body.sidebar-collapsed .brand-copy,body.sidebar-collapsed .demo-tag,body.sidebar-collapsed .nav-copy,body.sidebar-collapsed .nav-group-head,body.sidebar-collapsed .nav-semaphore,body.sidebar-collapsed .sidebar-shortcuts b,body.sidebar-collapsed .sidebar-foot span:not(.health-dot){display:none!important}body.sidebar-collapsed .nav{padding:8px 8px!important}body.sidebar-collapsed .nav-item{grid-template-columns:1fr!important;justify-items:center!important;padding:7px!important;min-height:48px!important}body.sidebar-collapsed .nav-code{width:38px!important;height:38px!important;margin:0!important}body.sidebar-collapsed .sidebar-shortcuts{grid-template-columns:1fr!important;padding:8px!important}body.sidebar-collapsed .sidebar-shortcuts a{justify-content:center!important;height:46px!important}body.sidebar-collapsed .sidebar-shortcuts span{margin:0!important}body.sidebar-collapsed .sidebar-toggle{right:-18px!important}
/* executive, less generic geometry */
.workspace .v20-kpi,.workspace .v20-panel,.workspace .module-hero,.workspace .panel,.workspace .kpi,.workspace .gps-map-card,.workspace .sidebar-context,.workspace .tool-card,.workspace .money-card,.workspace .metric-card,.workspace .card{border-radius:4px!important}
.workspace .v20-kpi,.workspace .v20-panel,.workspace .module-hero,.workspace .panel,.workspace .gps-map-card{clip-path:polygon(0 0,calc(100% - 12px) 0,100% 12px,100% 100%,0 100%);position:relative}
.workspace .v20-kpi:after,.workspace .v20-panel:after,.workspace .module-hero:after,.workspace .panel:after,.workspace .gps-map-card:after{content:'';position:absolute;right:0;top:0;width:12px;height:12px;border-top:1px solid rgba(239,48,56,.45);transform:rotate(45deg) translate(3px,-6px);transform-origin:center;pointer-events:none}
.workspace .nav-item,.workspace .nav-code{border-radius:4px!important}
.nav-item{border-radius:4px!important}.nav-code{border-radius:4px!important}.demo-tag,.sidebar-shortcuts a{border-radius:4px!important}.brand-logo{border-radius:6px!important}
/* clear white typography */
.workspace h1,.workspace h2,.workspace h3,.workspace h4,.workspace strong,.workspace b,.workspace .v20-kpi strong,.workspace .v20-panel h3,.nav-copy strong{color:#f8fafc!important}.workspace p,.workspace small,.workspace label,.workspace td,.workspace .v20-kpi small,.workspace .v20-side-item small,.workspace .v20-activity small,.workspace .module-hero p{color:#b8c1cc!important}.nav-copy small,.nav-group-head,.sidebar-foot,.health{color:#9ea9b5!important}
/* top glass controls remain intentionally glass-like */
.top-actions .button,.scenario{border-radius:18px!important;border:1px solid rgba(255,255,255,.13)!important;background:linear-gradient(180deg,rgba(255,255,255,.085),rgba(255,255,255,.025))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 8px 26px rgba(0,0,0,.18)!important;backdrop-filter:blur(22px) saturate(145%)!important;color:#fff!important}
/* real maps */
.v20-map-real{height:352px!important;margin:11px 13px 0!important;border-radius:3px!important;background:#0a0f15!important;overflow:hidden!important}.trv-real-map{width:100%;height:100%;min-height:100%;background:#0a0f15}.gps-map-stage{min-height:500px!important}.gps-real-map{height:500px!important}.leaflet-container{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#080d12!important}.leaflet-tile-pane{filter:grayscale(.9) invert(1) hue-rotate(180deg) brightness(.56) contrast(.92) saturate(.55)}.leaflet-control-zoom{border:0!important;box-shadow:0 8px 24px rgba(0,0,0,.34)!important}.leaflet-control-zoom a{background:rgba(11,17,23,.92)!important;color:#fff!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:2px!important}.leaflet-control-attribution{background:rgba(6,10,14,.72)!important;color:#9da8b4!important;font-size:7px!important}.leaflet-control-attribution a{color:#d3d9df!important}.trv-map-divicon{background:transparent!important;border:0!important}.trv-map-divicon span{display:block;width:13px;height:13px;border-radius:50%;background:var(--marker);border:2px solid rgba(255,255,255,.85);box-shadow:0 0 0 5px color-mix(in srgb,var(--marker) 20%,transparent),0 5px 12px rgba(0,0,0,.45)}.trv-map-tooltip{background:rgba(9,14,20,.9)!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:3px!important;color:#fff!important;box-shadow:0 8px 20px rgba(0,0,0,.3)!important;font-size:9px!important;font-weight:700!important}.trv-map-tooltip:before{border-top-color:rgba(9,14,20,.9)!important}
.gps-map-legend{border-radius:3px!important;background:rgba(8,13,18,.82)!important}
/* reduce unnecessary empty sidebar zone */
.sidebar{grid-template-rows:auto auto minmax(0,1fr) auto auto!important}.sidebar-shortcuts{margin-top:0!important}.sidebar-foot{margin:0!important}.health{min-height:28px}
@media(max-width:900px){.app{display:block!important}.sidebar-toggle{display:none!important}body.sidebar-collapsed .workspace{margin-left:0!important}.gps-map-stage{min-height:400px!important}.gps-real-map{height:400px!important}}

.trv-map-fallback{width:100%;height:100%;border:0;filter:grayscale(.85) invert(1) hue-rotate(180deg) brightness(.58) contrast(.95);background:#0a0f15}


/* V25 — navigation, guide and iPad consistency */
.app{grid-template-columns:258px minmax(0,1fr)!important}
body.sidebar-collapsed .app{grid-template-columns:78px minmax(0,1fr)!important}
.sidebar{overflow:hidden!important}
.sidebar .nav{overflow:auto!important}
/* Clean sidebar control lives in the top bar, like a native panel toggle */
.sidebar-toggle{display:none!important}
.sidebar-toggle-desktop{flex:0 0 42px;width:42px;height:42px;padding:0;display:grid;place-items:center;border:1px solid rgba(255,255,255,.12);border-radius:11px;background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.025));color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 8px 24px rgba(0,0,0,.15);backdrop-filter:blur(20px) saturate(145%)}
.sidebar-glyph{width:20px;height:17px;border:1.6px solid #f7f9fb;border-radius:4px;display:grid;grid-template-columns:6px 1fr;overflow:hidden;transition:.2s ease}.sidebar-glyph i{display:block;border-right:1.6px solid #f7f9fb;background:rgba(255,255,255,.09)}.sidebar-glyph b{display:block;background:transparent}.sidebar-toggle-desktop.is-collapsed .sidebar-glyph{grid-template-columns:3px 1fr}.sidebar-toggle-desktop:hover{border-color:rgba(255,255,255,.22);background:rgba(255,255,255,.09)}
body.sidebar-collapsed .brand{justify-content:center!important;padding:12px 7px!important}body.sidebar-collapsed .brand-logo{width:52px!important;height:52px!important}body.sidebar-collapsed .brand-copy,body.sidebar-collapsed .demo-tag,body.sidebar-collapsed .nav-copy,body.sidebar-collapsed .nav-group-head,body.sidebar-collapsed .nav-semaphore,body.sidebar-collapsed .sidebar-shortcuts b,body.sidebar-collapsed .sidebar-foot span:not(.health-dot){display:none!important}body.sidebar-collapsed .nav{padding:8px!important}body.sidebar-collapsed .nav-item{grid-template-columns:1fr!important;justify-items:center!important;padding:7px!important;min-height:50px!important}body.sidebar-collapsed .nav-code{width:40px!important;height:40px!important;margin:0!important}body.sidebar-collapsed .sidebar-shortcuts{grid-template-columns:1fr!important;padding:8px!important}body.sidebar-collapsed .sidebar-shortcuts a{justify-content:center!important;min-height:48px!important}body.sidebar-collapsed .sidebar-shortcuts span{margin:0!important}
/* Same top action language on every module */
.topbar{height:auto!important;min-height:72px!important;padding:10px 18px!important;gap:12px!important;overflow:visible!important}.page-heading{flex:1 1 auto;min-width:190px}.top-actions{flex:0 1 auto;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;min-width:0}.scenario{height:42px!important;min-width:250px!important;max-width:330px!important;padding:0 38px 0 14px!important;border-radius:12px!important;background-color:rgba(18,24,32,.62)!important}.top-nav-glass{display:grid;grid-template-columns:repeat(3,auto);align-items:center;gap:4px;padding:4px;border:1px solid rgba(255,255,255,.11);border-radius:14px;background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.025));box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 8px 26px rgba(0,0,0,.15);backdrop-filter:blur(22px) saturate(145%)}.top-nav-glass .button{min-height:34px!important;padding:0 14px!important;border:0!important;border-radius:9px!important;background:transparent!important;box-shadow:none!important;color:#f7f9fb!important}.top-nav-glass .button:hover{background:rgba(255,255,255,.08)!important}.top-nav-glass .button.primary{background:rgba(255,255,255,.075)!important}.context-help{border-radius:9px!important;background:rgba(255,255,255,.035)!important;border-color:rgba(255,255,255,.11)!important}
/* Trend selector is a real selector */
.trend-range-wrap{display:block;position:relative}.v20-filter{appearance:auto!important;min-width:108px;height:38px;padding:0 10px!important;border:1px solid rgba(255,255,255,.11)!important;border-radius:9px!important;background:#10161e!important;color:#f8fafc!important;font-weight:700!important}.v20-filter option{background:#10161e;color:#fff}
/* Guide should be legible and never disappear behind the iPad viewport */
.guide-card{z-index:190!important;max-height:min(330px,calc(100svh - 24px))!important;overflow:auto!important;border-radius:12px!important;background:#11171f!important;border:1px solid rgba(255,255,255,.16)!important;color:#fff!important}.guide-card h3{color:#fff!important}.guide-card p{color:#c9d0d8!important}.guide-focus{z-index:175!important}.guide-shade{z-index:170!important}.guide-open .context-help{box-shadow:0 0 0 3px rgba(237,27,36,.12)}
/* Prevent giant hero text from clipping on iPad / narrower modules */
.module-hero{overflow:hidden!important;padding:22px 24px!important;min-height:auto!important}.module-hero>div{max-width:100%!important}.module-hero h2{font-size:clamp(30px,4.15vw,58px)!important;line-height:1.02!important;overflow-wrap:anywhere!important;max-width:980px!important}.module-hero p{max-width:920px!important;font-size:11px!important;line-height:1.6!important}.main{overflow:visible!important}
@media(max-width:1180px){.topbar{align-items:flex-start!important;flex-wrap:wrap!important}.page-heading{order:1}.top-actions{order:2;width:100%;justify-content:flex-start!important}.scenario{flex:1 1 280px!important;max-width:none!important}.top-nav-glass{margin-left:auto}.module-hero h2{font-size:clamp(28px,5vw,48px)!important}}
@media(max-width:900px){.sidebar-toggle-desktop{display:none!important}.top-actions{display:grid!important;grid-template-columns:1fr auto!important}.scenario{width:100%!important;min-width:0!important}.top-nav-glass{margin:0!important}.module-hero h2{font-size:clamp(28px,8vw,44px)!important}}


/* V26 — portada, encabezado consistente y guía robusta */
/* Header: one coherent row on iPad landscape and desktop */
@media (min-width:1101px){
  .topbar{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;min-height:76px!important;padding:10px 18px!important;gap:12px!important}
  .sidebar-toggle-desktop{flex:0 0 42px!important}
  .page-heading{flex:1 1 auto!important;min-width:220px!important;display:flex!important;align-items:center!important;gap:10px!important}
  .page-title{min-width:0!important}.page-title h1{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .top-actions{flex:0 0 auto!important;width:auto!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important}
  .scenario{flex:0 0 245px!important;width:245px!important;min-width:245px!important;max-width:245px!important;height:44px!important}
  .top-nav-glass{flex:0 0 auto!important;margin:0!important;display:flex!important;height:46px!important;align-items:center!important;gap:3px!important;padding:4px!important}
  .top-nav-glass .button{height:36px!important;min-height:36px!important;min-width:70px!important;padding:0 13px!important;white-space:nowrap!important}
}
/* Connected iPhone-like glass control for Vistas / Inicio / Guía */
.top-nav-glass{border:1px solid rgba(255,255,255,.16)!important;border-radius:17px!important;background:linear-gradient(180deg,rgba(255,255,255,.105),rgba(255,255,255,.035))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 10px 30px rgba(0,0,0,.22)!important;backdrop-filter:blur(28px) saturate(160%)!important;-webkit-backdrop-filter:blur(28px) saturate(160%)!important}
.top-nav-glass .button{border-radius:12px!important;color:#fff!important;font-weight:800!important;letter-spacing:.01em!important;background:transparent!important;box-shadow:none!important;border:0!important}
.top-nav-glass .button+ .button{border-left:1px solid rgba(255,255,255,.08)!important}
.top-nav-glass .button:hover,.top-nav-glass .button:focus-visible{background:rgba(255,255,255,.095)!important}
.top-nav-glass .button.primary{background:rgba(255,255,255,.09)!important}
/* Show the contextual ? on every module, including command */
body[data-module="command"] .context-help,.page-heading .context-help{display:grid!important;place-items:center!important;flex:0 0 38px!important;width:38px!important;height:38px!important;border-radius:11px!important;color:#ff363e!important;font-size:18px!important;font-weight:900!important}
/* Smaller top layout only when the whole viewport is genuinely narrow */
@media (max-width:1100px){
  .topbar{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center!important;gap:10px 12px!important;padding:10px 14px!important}
  .sidebar-toggle-desktop{grid-column:1;grid-row:1}.page-heading{grid-column:2;grid-row:1;min-width:0!important}.top-actions{grid-column:1/-1;grid-row:2;width:100%!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important}
  .scenario{width:100%!important;min-width:0!important;max-width:none!important;height:42px!important}
  .top-nav-glass{margin:0!important;white-space:nowrap!important}
}
@media(max-width:720px){.top-actions{grid-template-columns:1fr!important}.top-nav-glass{justify-self:stretch!important;display:grid!important;grid-template-columns:repeat(3,1fr)!important}.top-nav-glass .button{min-width:0!important}}
/* Guide: fixed, reliable panel instead of fragile spotlight positioning */
.guide-focus,#shadeLeft,#shadeRight,#shadeBottom{display:none!important}
.guide-open #shadeTop{display:block!important;position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;background:rgba(2,6,10,.66)!important;backdrop-filter:blur(5px)!important;-webkit-backdrop-filter:blur(5px)!important;pointer-events:auto!important;z-index:188!important}
.guide-card{position:fixed!important;z-index:190!important;width:min(410px,calc(100vw - 32px))!important;max-height:calc(100svh - 40px)!important;padding:22px!important;border-radius:16px!important;background:linear-gradient(180deg,#151b23,#0f151c)!important;border:1px solid rgba(255,255,255,.16)!important;box-shadow:0 30px 90px rgba(0,0,0,.55)!important;color:#fff!important;overflow:auto!important}
.guide-card small{font-size:10px!important;letter-spacing:.16em!important;color:#ff4b51!important}.guide-card h3{font-size:24px!important;line-height:1.15!important;margin-top:11px!important;color:#fff!important}.guide-card p{font-size:14px!important;line-height:1.65!important;margin-top:12px!important;color:#d3d9e0!important}.guide-actions{margin-top:20px!important}.guide-actions button{min-height:42px!important;padding:0 14px!important;border-radius:11px!important;font-size:12px!important;color:#fff!important;background:#151c24!important;border:1px solid rgba(255,255,255,.13)!important}.guide-actions .next{background:#1f70c9!important;border-color:#1f70c9!important}
@media(max-width:760px){.guide-card{left:16px!important;right:16px!important;top:50%!important;width:auto!important;transform:translateY(-50%)!important}}


/* =========================================================
   V27 · TRV glass navigation + contextual guide + picker
   ========================================================= */
:root{
  --trv-glass:rgba(255,255,255,.055);
  --trv-glass-strong:rgba(255,255,255,.09);
  --trv-glass-line:rgba(255,255,255,.16);
  --trv-navy:#071421;
  --trv-navy-2:#0b1a29;
  --trv-red:#1f70c9;
}

/* iPhone-like glass treatment for top controls */
.top-actions{overflow:visible!important}
.scenario{
  border:1px solid var(--trv-glass-line)!important;
  background:
    radial-gradient(120% 140% at 20% -20%,rgba(255,255,255,.14),transparent 48%),
    linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.025))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 10px 28px rgba(0,0,0,.22)!important;
  -webkit-backdrop-filter:blur(32px) saturate(175%)!important;
  backdrop-filter:blur(32px) saturate(175%)!important;
  color:#fff!important;
}
.top-nav-glass{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  gap:2px!important;
  min-height:46px!important;
  padding:4px!important;
  border:1px solid rgba(255,255,255,.18)!important;
  border-radius:20px!important;
  background:
    radial-gradient(120% 160% at 22% -35%,rgba(255,255,255,.18),transparent 48%),
    linear-gradient(180deg,rgba(255,255,255,.082),rgba(255,255,255,.028))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),inset 0 -1px 0 rgba(255,255,255,.035),0 12px 32px rgba(0,0,0,.24)!important;
  -webkit-backdrop-filter:blur(34px) saturate(185%) brightness(1.05)!important;
  backdrop-filter:blur(34px) saturate(185%) brightness(1.05)!important;
  overflow:hidden!important;
}
.top-nav-glass::before{
  content:'';position:absolute;left:10px;right:10px;top:2px;height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.5),transparent);
  opacity:.48;pointer-events:none
}
.top-nav-glass .button{
  position:relative!important;z-index:1!important;
  height:36px!important;min-height:36px!important;min-width:72px!important;
  padding:0 15px!important;border:0!important;border-radius:15px!important;
  background:transparent!important;color:#fff!important;font-weight:800!important;
  box-shadow:none!important;transition:background .18s ease,transform .18s ease!important
}
.top-nav-glass .button + .button{border-left:0!important}
.top-nav-glass .button:hover,.top-nav-glass .button:focus-visible{background:rgba(255,255,255,.105)!important}
.top-nav-glass .button:active{transform:scale(.97);background:rgba(255,255,255,.14)!important}
.top-nav-glass .button.primary{background:rgba(255,255,255,.085)!important}

/* Custom period picker: reliable on iPad */
.trend-picker{position:relative;z-index:30;flex:0 0 auto}
.trend-picker-trigger{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  min-width:112px;height:40px;padding:0 13px 0 15px;border-radius:14px;
  border:1px solid rgba(255,255,255,.14);color:#fff;font-weight:800;font-size:12px;
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.025));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.11),0 8px 22px rgba(0,0,0,.2);
  -webkit-backdrop-filter:blur(24px) saturate(155%);backdrop-filter:blur(24px) saturate(155%)
}
.trend-picker-trigger i{font-style:normal;color:#aeb7c1;font-size:15px;transition:transform .2s ease}
.trend-picker.is-open .trend-picker-trigger i{transform:rotate(180deg)}
.trend-picker-menu{
  position:absolute;right:0;top:calc(100% + 8px);width:150px;padding:7px;
  border:1px solid rgba(255,255,255,.14);border-radius:15px;
  background:rgba(8,17,27,.96);box-shadow:0 20px 50px rgba(0,0,0,.48);
  -webkit-backdrop-filter:blur(28px) saturate(155%);backdrop-filter:blur(28px) saturate(155%);
  opacity:0;visibility:hidden;transform:translateY(-5px) scale(.98);transform-origin:top right;
  transition:opacity .16s ease,transform .16s ease,visibility .16s ease
}
.trend-picker.is-open .trend-picker-menu{opacity:1;visibility:visible;transform:none}
.trend-picker-menu button{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;
  height:38px;padding:0 11px;border:0;border-radius:9px;background:transparent;color:#dbe2ea;
  font:inherit;font-size:12px;text-align:left
}
.trend-picker-menu button:hover,.trend-picker-menu button.is-active{background:rgba(255,255,255,.075);color:#fff}
.trend-picker-menu button.is-active b{color:#3f7ae2}

/* Conexa-inspired contextual guide, adapted to TRV */
.guide-shade{
  display:none;position:fixed!important;z-index:170!important;margin:0!important;
  background:rgba(2,10,18,.63)!important;
  -webkit-backdrop-filter:blur(7px) saturate(78%)!important;
  backdrop-filter:blur(7px) saturate(78%)!important;
  transition:left .2s ease,top .2s ease,width .2s ease,height .2s ease
}
body.guide-open .guide-shade{display:block!important}
.guide-focus{
  display:none;position:fixed!important;z-index:178!important;pointer-events:none!important;
  border:2px solid rgba(237,27,36,.78)!important;border-radius:17px!important;
  box-shadow:0 0 0 3px rgba(237,27,36,.15),0 0 34px rgba(237,27,36,.16),inset 0 0 0 1px rgba(255,255,255,.11)!important;
  transition:left .2s ease,top .2s ease,width .2s ease,height .2s ease
}
body.guide-open .guide-focus{display:block!important}
.guide-card{
  position:fixed!important;z-index:195!important;width:min(430px,calc(100vw - 32px))!important;
  min-height:250px!important;max-height:calc(100svh - 36px)!important;padding:26px 28px!important;
  border:1px solid rgba(118,155,189,.28)!important;border-radius:20px!important;
  background:
    radial-gradient(130% 100% at 10% -10%,rgba(85,139,184,.08),transparent 52%),
    linear-gradient(180deg,#0b1b2a,#081622)!important;
  box-shadow:0 30px 90px rgba(0,0,0,.56),inset 0 1px 0 rgba(255,255,255,.04)!important;
  color:#fff!important;overflow:auto!important
}
.guide-card::before{
  content:'';position:absolute;right:28px;top:27px;width:46px;height:4px;border-radius:999px;
  background:linear-gradient(90deg,var(--trv-red) 0 58%,rgba(255,255,255,.16) 58% 100%)
}
.guide-card small{
  display:block!important;color:#b8c8d8!important;font-size:10px!important;font-weight:850!important;
  letter-spacing:.15em!important;text-transform:uppercase!important;padding-right:70px!important
}
.guide-card h3{margin:18px 0 0!important;color:#fff!important;font-size:25px!important;line-height:1.15!important;letter-spacing:-.025em!important}
.guide-card p{margin:13px 0 0!important;color:#c9d5e0!important;font-size:15px!important;line-height:1.62!important}
.guide-actions{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;
  margin-top:25px!important;padding-top:18px!important;border-top:1px solid rgba(255,255,255,.11)!important
}
.guide-actions>span{display:flex;gap:8px}
.guide-actions button{
  min-height:46px!important;padding:0 17px!important;border-radius:13px!important;
  background:#112333!important;border:1px solid rgba(255,255,255,.09)!important;
  color:#dce5ed!important;font-weight:800!important;font-size:12px!important
}
.guide-actions button:disabled{opacity:.35}
.guide-actions .next{background:linear-gradient(180deg,#fa3038,#db1720)!important;border-color:rgba(255,71,78,.72)!important;color:#fff!important;box-shadow:0 10px 24px rgba(237,27,36,.2)!important}
.guide-target-live{position:relative;z-index:177!important}
body.guide-open{overflow:hidden}

/* Minimal floating assistance, like Conexa */
.floating-assist-stack{
  position:fixed;right:20px;bottom:20px;z-index:140;display:flex;flex-direction:column;align-items:flex-end;gap:8px;
  pointer-events:none
}
.floating-assist-stack>button{pointer-events:auto}
.floating-guide-launcher,.assistant-launcher{
  position:static!important;width:auto!important;height:44px!important;min-width:118px!important;padding:0 16px!important;
  display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;
  border-radius:999px!important;border:1px solid rgba(255,255,255,.13)!important;
  background:linear-gradient(180deg,rgba(15,36,54,.88),rgba(8,23,35,.91))!important;
  color:#fff!important;box-shadow:0 13px 30px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.07)!important;
  -webkit-backdrop-filter:blur(24px) saturate(150%)!important;backdrop-filter:blur(24px) saturate(150%)!important;
  font-size:13px!important;font-weight:800!important;letter-spacing:0!important
}
.floating-guide-launcher span,.assistant-launcher span{
  display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border-radius:50%;
  background:rgba(255,255,255,.08);font-size:14px;color:#fff
}
.floating-guide-launcher span{background:rgba(237,27,36,.13);color:#5a8fe8}
.assistant-launcher span{color:#5a8fe8}
.floating-guide-launcher b,.assistant-launcher b{font:inherit}
.floating-guide-launcher:hover,.assistant-launcher:hover{border-color:rgba(255,255,255,.23)!important;background:linear-gradient(180deg,rgba(20,45,66,.93),rgba(10,27,41,.96))!important}

/* Consistent question buttons */
.context-help{
  color:#ff444b!important;border:1px solid rgba(255,255,255,.13)!important;border-radius:12px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.018))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06)!important
}

@media(max-width:1180px){
  .topbar{flex-wrap:nowrap!important;align-items:center!important}
  .top-actions{width:auto!important;flex:1 1 auto!important;justify-content:flex-end!important}
  .scenario{min-width:220px!important;max-width:320px!important}
  .top-nav-glass{margin-left:0!important}
}
@media(max-width:920px){
  .topbar{flex-wrap:wrap!important}.top-actions{width:100%!important}
  .scenario{flex:1 1 auto!important;max-width:none!important}
  .top-nav-glass{flex:0 0 auto!important}
}
@media(max-width:720px){
  .guide-card{left:16px!important;right:16px!important;top:50%!important;width:auto!important;transform:translateY(-50%)!important}
  .floating-assist-stack{right:12px;bottom:calc(12px + env(safe-area-inset-bottom))}
  .floating-guide-launcher,.assistant-launcher{min-width:106px!important;height:42px!important;padding:0 13px!important}
}

/* Allow the period menu to escape the dashboard panel clipping */
.workspace .v20-trend-panel{clip-path:none!important;overflow:visible!important;position:relative!important}
.workspace .v20-trend-panel::after{display:none!important}


/* =========================================================
   V28 — LIQUID GLASS + CONEXA-LIKE CONTEXTUAL ASSISTANCE
   ========================================================= */
:root{
  --v28-glass:rgba(22,29,38,.52);
  --v28-glass-hi:rgba(255,255,255,.18);
  --v28-glass-line:rgba(255,255,255,.22);
  --v28-navy:#071625;
  --v28-navy2:#0a1b2b;
  --v28-text:#f8fbff;
  --v28-muted:#aebaca;
}

/* Top-right controls: one real iOS-like liquid glass island */
.topbar{overflow:visible!important}
.top-actions{overflow:visible!important;isolation:isolate}
.scenario{
  color:#fff!important;
  border:1px solid rgba(255,255,255,.18)!important;
  border-radius:16px!important;
  background:
    radial-gradient(100% 130% at 18% -20%,rgba(255,255,255,.17),transparent 52%),
    linear-gradient(180deg,rgba(35,45,58,.58),rgba(16,22,31,.46))!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 -1px 0 rgba(255,255,255,.04),
    0 10px 28px rgba(0,0,0,.20)!important;
  -webkit-backdrop-filter:blur(30px) saturate(180%)!important;
  backdrop-filter:blur(30px) saturate(180%)!important;
}
.top-nav-glass{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  gap:0!important;
  min-height:48px!important;
  padding:4px!important;
  border:1px solid rgba(255,255,255,.22)!important;
  border-radius:17px!important;
  overflow:hidden!important;
  background:
    radial-gradient(140% 180% at 24% -55%,rgba(255,255,255,.24),transparent 48%),
    linear-gradient(180deg,rgba(39,48,61,.58),rgba(17,23,31,.45))!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.24),
    inset 0 -1px 0 rgba(255,255,255,.035),
    0 12px 32px rgba(0,0,0,.23)!important;
  -webkit-backdrop-filter:blur(34px) saturate(185%)!important;
  backdrop-filter:blur(34px) saturate(185%)!important;
}
.top-nav-glass::before{
  content:''!important;position:absolute!important;left:9px!important;right:9px!important;top:2px!important;height:1px!important;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.72),transparent)!important;opacity:.55!important
}
.top-nav-glass .button{
  position:relative!important;z-index:1!important;
  min-width:82px!important;height:38px!important;min-height:38px!important;
  padding:0 15px!important;margin:0!important;border:0!important;border-radius:12px!important;
  background:transparent!important;color:rgba(255,255,255,.94)!important;
  font-size:11px!important;font-weight:850!important;letter-spacing:.005em!important;
  box-shadow:none!important;text-shadow:0 1px 8px rgba(0,0,0,.24)!important;
}
.top-nav-glass .button:not(:last-child)::after{
  content:'';position:absolute;right:-1px;top:8px;bottom:8px;width:1px;background:rgba(255,255,255,.09)
}
.top-nav-glass .button:hover,.top-nav-glass .button:focus-visible{background:rgba(255,255,255,.10)!important}
.top-nav-glass .button:active{transform:scale(.97);background:rgba(255,255,255,.14)!important}
.top-nav-glass .button.primary{background:linear-gradient(180deg,rgba(255,255,255,.115),rgba(255,255,255,.055))!important}

/* Period popover: fixed to viewport, so iPad/Safari cannot clip it */
.trend-picker{position:relative!important;z-index:60!important;overflow:visible!important}
.trend-picker-trigger{
  min-width:118px!important;height:42px!important;border-radius:14px!important;
  border:1px solid rgba(255,255,255,.18)!important;
  background:linear-gradient(180deg,rgba(37,47,60,.68),rgba(16,23,31,.55))!important;
  color:#fff!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.17),0 8px 22px rgba(0,0,0,.22)!important;
  -webkit-backdrop-filter:blur(25px) saturate(170%)!important;backdrop-filter:blur(25px) saturate(170%)!important
}
.trend-picker-menu{
  position:fixed!important;right:auto!important;top:auto;left:auto;
  width:164px!important;padding:7px!important;border-radius:14px!important;
  border:1px solid rgba(255,255,255,.18)!important;background:rgba(8,18,28,.97)!important;
  box-shadow:0 24px 70px rgba(0,0,0,.58),inset 0 1px 0 rgba(255,255,255,.05)!important;
  -webkit-backdrop-filter:blur(30px) saturate(160%)!important;backdrop-filter:blur(30px) saturate(160%)!important;
  pointer-events:none!important;opacity:0!important;visibility:hidden!important;transform:translateY(-4px) scale(.98)!important
}
.trend-picker.is-open .trend-picker-menu{pointer-events:auto!important;opacity:1!important;visibility:visible!important;transform:none!important}
.trend-picker-menu button{height:40px!important;border-radius:9px!important;color:#d9e2eb!important}
.trend-picker-menu button:hover,.trend-picker-menu button.is-active{background:rgba(255,255,255,.08)!important;color:#fff!important}
.trend-picker-menu button.is-active b{color:#ff4c53!important}

/* Contextual guide — behavior and composition modeled after the Conexa reference */
.guide-shade{
  background:rgba(1,10,19,.69)!important;
  -webkit-backdrop-filter:blur(8px) saturate(72%)!important;
  backdrop-filter:blur(8px) saturate(72%)!important
}
.guide-focus{
  border:2px solid rgba(255,55,63,.88)!important;
  border-radius:18px!important;
  box-shadow:0 0 0 3px rgba(237,27,36,.12),0 0 42px rgba(237,27,36,.20),inset 0 0 0 1px rgba(255,255,255,.11)!important
}
.guide-card{
  --guide-progress:50%;
  width:min(440px,calc(100vw - 32px))!important;
  min-height:265px!important;
  padding:27px 28px 24px!important;
  border:1px solid rgba(118,157,193,.27)!important;
  border-radius:22px!important;
  background:
    radial-gradient(120% 100% at 6% -10%,rgba(77,132,181,.10),transparent 56%),
    linear-gradient(180deg,#0b1b2b 0%,#081722 100%)!important;
  box-shadow:0 32px 100px rgba(0,0,0,.62),inset 0 1px 0 rgba(255,255,255,.045)!important;
}
.guide-card::before{
  content:''!important;position:absolute!important;right:28px!important;top:29px!important;width:56px!important;height:4px!important;border-radius:999px!important;
  background:linear-gradient(90deg,#3f7ae2 0 var(--guide-progress),rgba(255,255,255,.15) var(--guide-progress) 100%)!important;
  opacity:1!important
}
.guide-card small{
  color:#b7c8d9!important;font-size:10px!important;font-weight:900!important;letter-spacing:.15em!important;text-transform:uppercase!important
}
.guide-card h3{font-size:27px!important;line-height:1.12!important;letter-spacing:-.03em!important;margin:20px 0 0!important;color:#fff!important}
.guide-card p{font-size:15px!important;line-height:1.65!important;color:#c7d3df!important;margin:14px 0 0!important}
.guide-actions{margin-top:26px!important;padding-top:18px!important;border-top:1px solid rgba(255,255,255,.11)!important}
.guide-actions button{
  min-height:48px!important;padding:0 17px!important;border-radius:13px!important;
  background:#112333!important;border:1px solid rgba(255,255,255,.09)!important;color:#dce7ef!important;font-weight:850!important
}
.guide-actions .next{
  min-width:112px!important;background:linear-gradient(180deg,#fb343c,#dd1821)!important;
  border-color:rgba(255,76,83,.72)!important;box-shadow:0 12px 28px rgba(237,27,36,.20)!important;color:#fff!important
}

/* Minimal assistance controls inspired by Conexa */
.floating-assist-stack{right:18px!important;bottom:18px!important;gap:8px!important}
.floating-guide-launcher,.assistant-launcher{
  height:46px!important;min-width:126px!important;padding:0 17px!important;gap:11px!important;
  border-radius:23px!important;border:1px solid rgba(137,169,198,.20)!important;
  background:linear-gradient(180deg,rgba(15,39,58,.92),rgba(8,25,38,.94))!important;
  color:#fff!important;box-shadow:0 14px 34px rgba(0,0,0,.30),inset 0 1px 0 rgba(255,255,255,.06)!important;
  -webkit-backdrop-filter:blur(24px) saturate(150%)!important;backdrop-filter:blur(24px) saturate(150%)!important;
  font-size:13px!important;font-weight:850!important
}
.floating-guide-launcher span,.assistant-launcher span{
  width:28px!important;height:28px!important;flex-basis:28px!important;border-radius:50%!important;background:rgba(255,255,255,.075)!important;color:#fff!important
}
.floating-guide-launcher span{background:rgba(237,27,36,.14)!important;color:#5a8fe8!important}
.assistant-launcher span{color:#5a8fe8!important}

/* Keep contrast crisp */
.page-title h1,.module-hero h2,.v20-panel h3,.v20-kpi strong{color:#fff!important}
.page-title small,.module-hero p,.v20-panel small{color:#b9c3ce!important}

@media(max-width:920px){
  .top-nav-glass .button{min-width:76px!important;padding-inline:12px!important}
  .guide-card{left:auto!important;right:16px!important;width:min(420px,calc(100vw - 32px))!important}
}


/* ============================
   V29 · universal module header
   ============================ */
.topbar{
  display:grid!important;
  grid-template-columns:52px minmax(210px,1fr) auto!important;
  align-items:center!important;
  column-gap:14px!important;
  min-height:76px!important;
  height:76px!important;
  padding:0 18px!important;
  overflow:visible!important;
  background:rgba(7,11,16,.92)!important;
  border-bottom:1px solid rgba(255,255,255,.075)!important;
  -webkit-backdrop-filter:blur(24px) saturate(150%)!important;
  backdrop-filter:blur(24px) saturate(150%)!important;
}
.mobile-menu{display:none!important}
.sidebar-toggle-desktop{position:relative!important;inset:auto!important;grid-column:1!important;grid-row:1!important;width:46px!important;height:46px!important;margin:0!important}
.page-heading{grid-column:2!important;grid-row:1!important;min-width:0!important;display:flex!important;align-items:center!important;gap:10px!important}
.page-title{min-width:0!important}.page-title h1{font-size:21px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#fff!important}.page-title small{font-size:8px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#aeb9c5!important}
.page-heading>.context-help{flex:0 0 40px!important;width:40px!important;height:40px!important;margin:0!important;border-radius:13px!important;background:rgba(255,255,255,.035)!important;border:1px solid rgba(255,255,255,.12)!important;color:#3f7ae2!important}
.top-actions{grid-column:3!important;grid-row:1!important;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-end!important;gap:12px!important;min-width:0!important;overflow:visible!important}
.top-actions .search{display:none!important}
.scenario{flex:0 1 292px!important;width:292px!important;min-width:225px!important;height:48px!important;margin:0!important;padding:0 42px 0 16px!important;border-radius:16px!important;color:#f4f7fa!important;border:1px solid rgba(255,255,255,.18)!important;background:linear-gradient(180deg,rgba(40,48,60,.66),rgba(17,23,31,.58))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 10px 28px rgba(0,0,0,.20)!important;-webkit-backdrop-filter:blur(28px) saturate(175%)!important;backdrop-filter:blur(28px) saturate(175%)!important}
.top-nav-glass{flex:0 0 284px!important;width:284px!important;height:50px!important;min-height:50px!important;padding:4px!important;border-radius:18px!important;border:1px solid rgba(255,255,255,.24)!important;background:linear-gradient(180deg,rgba(68,76,90,.56),rgba(24,31,41,.48))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.28),inset 0 -1px 0 rgba(0,0,0,.12),0 12px 32px rgba(0,0,0,.24)!important;-webkit-backdrop-filter:blur(30px) saturate(190%)!important;backdrop-filter:blur(30px) saturate(190%)!important}
.top-nav-glass .button{flex:1 1 0!important;min-width:0!important;height:40px!important;min-height:40px!important;padding:0 10px!important;border-radius:14px!important;font-size:11px!important;font-weight:850!important;color:#fff!important;background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.015))!important;border:0!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)!important}
.top-nav-glass .button:hover,.top-nav-glass .button:focus-visible{background:linear-gradient(180deg,rgba(255,255,255,.15),rgba(255,255,255,.06))!important}
.top-nav-glass .button.primary{background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,.07))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.22)!important}
@media(max-width:1180px){.topbar{grid-template-columns:48px minmax(175px,1fr) auto!important;column-gap:10px!important;padding-inline:12px!important}.scenario{width:240px!important;min-width:205px!important}.top-nav-glass{width:250px!important;flex-basis:250px!important}.top-nav-glass .button{font-size:10px!important}.page-title h1{font-size:18px!important}}
@media(max-width:940px){.topbar{height:auto!important;min-height:118px!important;grid-template-columns:46px minmax(0,1fr)!important;grid-template-rows:58px 54px!important}.sidebar-toggle-desktop{grid-column:1!important;grid-row:1!important}.page-heading{grid-column:2!important;grid-row:1!important}.top-actions{grid-column:1/-1!important;grid-row:2!important;justify-content:stretch!important}.scenario{flex:1 1 auto!important;width:auto!important}.top-nav-glass{flex:0 0 252px!important;width:252px!important}}

/* ==========================================
   V29 · selectable contextual help / Conexa
   ========================================== */
.guide-shade{background:rgba(2,10,18,.74)!important;-webkit-backdrop-filter:blur(8px) saturate(70%)!important;backdrop-filter:blur(8px) saturate(70%)!important}
.guide-focus{border:2px solid rgba(255,64,72,.95)!important;border-radius:15px!important;box-shadow:0 0 0 3px rgba(237,27,36,.12),0 0 44px rgba(237,27,36,.24),inset 0 0 0 1px rgba(255,255,255,.10)!important}
.guide-card{width:min(430px,calc(100vw - 34px))!important;min-height:300px!important;padding:27px 28px 24px!important;border-radius:21px!important;background:radial-gradient(120% 100% at 4% -10%,rgba(73,119,160,.13),transparent 52%),linear-gradient(180deg,#0b1b2a,#081621)!important;border:1px solid rgba(132,168,199,.28)!important;box-shadow:0 30px 100px rgba(0,0,0,.65),inset 0 1px 0 rgba(255,255,255,.045)!important;overflow:visible!important}
.guide-card small{color:#b7c8d9!important}.guide-card h3{font-size:26px!important;color:#fff!important}.guide-card>p{color:#c7d3df!important;font-size:15px!important;line-height:1.62!important}
.guide-example{margin-top:18px!important;padding:15px 16px 16px!important;border-left:3px solid #1f70c9!important;background:rgba(255,255,255,.035)!important;border-radius:3px 12px 12px 3px!important}
.guide-example small{display:block!important;color:#ff6d72!important;font-size:9px!important;font-weight:900!important;letter-spacing:.14em!important;text-transform:uppercase!important}.guide-example p{margin:7px 0 0!important;color:#f2f5f8!important;font-size:13px!important;line-height:1.55!important}
.guide-actions{display:grid!important;grid-template-columns:auto 1fr auto!important;align-items:center!important;gap:10px!important}.guide-actions>span{justify-self:end!important;display:flex!important;gap:8px!important}.guide-actions button{border-radius:12px!important}.guide-actions .next{background:linear-gradient(180deg,#fa323b,#d91720)!important}.guide-actions .guide-pick{background:transparent!important;border:0!important;color:#ff7378!important;padding-inline:4px!important;white-space:nowrap!important}
body.guide-select-mode .guide-shade{pointer-events:none!important;background:rgba(2,10,18,.57)!important}
body.guide-select-mode .guide-card{z-index:230!important}
body.guide-select-mode .guide-focus{display:none!important}
.guide-option-live{position:relative!important;z-index:218!important;outline:2px solid rgba(255,76,83,.50)!important;outline-offset:5px!important;box-shadow:0 0 0 6px rgba(237,27,36,.07),0 14px 44px rgba(0,0,0,.25)!important;cursor:help!important;transition:outline-color .16s ease,box-shadow .16s ease,transform .16s ease!important}
.guide-option-live:hover,.guide-option-live:active{outline-color:#3f7ae2!important;box-shadow:0 0 0 7px rgba(237,27,36,.12),0 18px 50px rgba(0,0,0,.34)!important;transform:translateY(-1px)!important}
.guide-target-live{position:relative!important;z-index:218!important}
body.guide-open .floating-assist-stack{opacity:.2!important;pointer-events:none!important}

/* Contextual ? controls remain visible and actionable */
.context-help,.panel-help,.tool-help{cursor:pointer!important;pointer-events:auto!important;position:relative!important;z-index:4!important}
.context-help:hover,.panel-help:hover,.tool-help:hover{border-color:rgba(255,77,84,.45)!important;color:#ff5c62!important;box-shadow:0 0 0 4px rgba(237,27,36,.07)!important}

/* Keep module copy crisp */
.module-hero h2,.module-intel strong,.panel h3,.kpi strong,.tool-card strong,.v20-panel h3,.v20-kpi strong{color:#fff!important}
.module-hero p,.panel small,.kpi span,.tool-card p,.module-intel small{color:#b9c3ce!important}


/* V29 guide layering fix — overrides legacy V27 fullscreen shade rules */
body.guide-open .guide-card{display:block!important;z-index:230!important}
body.guide-open .guide-focus{display:block!important;z-index:220!important;pointer-events:none!important}
body.guide-open #shadeTop,
body.guide-open #shadeLeft,
body.guide-open #shadeRight,
body.guide-open #shadeBottom{
  display:block!important;
  position:fixed!important;
  z-index:210!important;
  pointer-events:auto!important;
  background:rgba(2,10,18,.74)!important;
  -webkit-backdrop-filter:blur(8px) saturate(70%)!important;
  backdrop-filter:blur(8px) saturate(70%)!important;
}
body.guide-select-mode #shadeTop{z-index:205!important;pointer-events:none!important;background:rgba(2,10,18,.58)!important}
body.guide-select-mode #shadeLeft,
body.guide-select-mode #shadeRight,
body.guide-select-mode #shadeBottom{display:none!important;pointer-events:none!important}
body.guide-select-mode .guide-focus{display:none!important}
body.guide-select-mode .guide-option-live{z-index:218!important}


/* =========================================================
   V30 · final header glass + reliable local contextual help
   These rules are intentionally last and authoritative.
   ========================================================= */
:root{--v30-glass-bg:rgba(25,32,42,.50);--v30-glass-line:rgba(255,255,255,.18);--v30-glass-hi:rgba(255,255,255,.28)}
.topbar{overflow:visible!important}
.top-actions{overflow:visible!important;gap:12px!important}
.top-nav-glass{
  position:relative!important;
  flex:0 0 256px!important;width:256px!important;height:46px!important;min-height:46px!important;
  display:grid!important;grid-template-columns:repeat(3,1fr)!important;align-items:stretch!important;gap:0!important;
  padding:3px!important;overflow:hidden!important;
  border:1px solid var(--v30-glass-line)!important;border-radius:23px!important;
  background:
    radial-gradient(150% 100% at 50% -45%,rgba(255,255,255,.18),transparent 52%),
    linear-gradient(180deg,rgba(50,59,72,.52),rgba(20,27,37,.44))!important;
  box-shadow:inset 0 1px 0 var(--v30-glass-hi),inset 0 -1px 0 rgba(0,0,0,.22),0 12px 34px rgba(0,0,0,.24)!important;
  -webkit-backdrop-filter:blur(34px) saturate(185%)!important;backdrop-filter:blur(34px) saturate(185%)!important
}
.top-nav-glass::before{content:''!important;position:absolute!important;left:13px!important;right:13px!important;top:2px!important;height:1px!important;background:linear-gradient(90deg,transparent,rgba(255,255,255,.58),transparent)!important;opacity:.68!important;pointer-events:none!important}
.top-nav-glass .button{
  position:relative!important;z-index:1!important;width:auto!important;min-width:0!important;height:38px!important;min-height:38px!important;
  display:grid!important;place-items:center!important;margin:0!important;padding:0 8px!important;
  border:0!important;border-radius:19px!important;background:transparent!important;box-shadow:none!important;
  color:rgba(255,255,255,.95)!important;font-size:11px!important;font-weight:820!important;letter-spacing:.005em!important;white-space:nowrap!important
}
.top-nav-glass .button:not(:last-child)::after{content:''!important;position:absolute!important;right:-1px!important;top:10px!important;width:1px!important;height:18px!important;background:linear-gradient(transparent,rgba(255,255,255,.17),transparent)!important}
.top-nav-glass .button.primary{background:rgba(255,255,255,.055)!important;color:#fff!important}
.top-nav-glass .button:hover,.top-nav-glass .button:focus-visible{background:rgba(255,255,255,.095)!important}
.top-nav-glass .button:active{background:rgba(255,255,255,.135)!important;transform:scale(.98)!important}
.scenario{border-radius:20px!important;background:linear-gradient(180deg,rgba(38,46,58,.50),rgba(18,25,34,.46))!important;border:1px solid rgba(255,255,255,.14)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.17),0 10px 28px rgba(0,0,0,.18)!important;-webkit-backdrop-filter:blur(28px) saturate(165%)!important;backdrop-filter:blur(28px) saturate(165%)!important;color:#fff!important}

/* Every question button is visibly interactive and has a reliable touch target. */
.context-help,.panel-help,.tool-help{
  appearance:none!important;-webkit-appearance:none!important;touch-action:manipulation!important;pointer-events:auto!important;cursor:pointer!important;
  display:grid!important;place-items:center!important;min-width:40px!important;width:40px!important;height:40px!important;min-height:40px!important;
  padding:0!important;border-radius:14px!important;border:1px solid rgba(255,255,255,.14)!important;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.018))!important;
  color:#ff454d!important;font-size:19px!important;font-weight:900!important;line-height:1!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08)!important;z-index:12!important
}
.context-help:active,.panel-help:active,.tool-help:active{transform:scale(.94)!important;background:rgba(237,27,36,.12)!important}
.module-hero>.context-help{position:absolute!important;right:22px!important;bottom:22px!important}
.panel-help,.tool-help{position:relative!important;right:auto!important;top:auto!important}

/* Same visual engine as the working floating Ayuda button, but focused locally. */
body.guide-open{overflow:hidden!important}
body.guide-open .guide-shade{display:block!important;background:rgba(2,8,14,.62)!important;-webkit-backdrop-filter:blur(7px) saturate(82%)!important;backdrop-filter:blur(7px) saturate(82%)!important}
body.guide-open .guide-focus{display:block!important;border:2px solid rgba(237,27,36,.92)!important;border-radius:16px!important;box-shadow:0 0 0 4px rgba(237,27,36,.12),0 0 36px rgba(237,27,36,.16)!important}
body.guide-open .guide-card{display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}
.guide-card{z-index:260!important;width:min(420px,calc(100vw - 32px))!important;padding:26px 28px!important;border-radius:20px!important;background:radial-gradient(130% 100% at 10% -10%,rgba(88,142,189,.08),transparent 52%),linear-gradient(180deg,#0c1b29,#081520)!important;border:1px solid rgba(122,160,195,.27)!important;box-shadow:0 32px 92px rgba(0,0,0,.62),inset 0 1px 0 rgba(255,255,255,.05)!important}
.guide-card::before{background:linear-gradient(90deg,#1f70c9 0 var(--guide-progress,40%),rgba(255,255,255,.17) var(--guide-progress,40%) 100%)!important}
.guide-card h3{color:#fff!important}.guide-card p{color:#d0dae4!important}.guide-example{background:rgba(255,255,255,.035)!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:14px!important;padding:14px 15px!important;margin-top:15px!important}.guide-example small{color:#5a8fe8!important}.guide-example p{margin-top:6px!important;color:#fff!important}
.guide-actions button{border-radius:13px!important}.guide-actions .next{background:#1f70c9!important;border-color:#1f70c9!important;color:#fff!important}

@media (max-width:1180px){
  .topbar{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:10px!important}
  .page-heading{flex:1 1 auto!important;min-width:190px!important}
  .top-actions{flex:0 1 auto!important;width:auto!important;display:flex!important;grid-template-columns:none!important;margin-left:auto!important;min-width:0!important}
  .scenario{min-width:220px!important;max-width:280px!important;flex:0 1 280px!important}
  .top-nav-glass{flex:0 0 240px!important;width:240px!important}
}
@media (max-width:980px){
  .topbar{display:grid!important;grid-template-columns:auto 1fr!important;gap:8px 10px!important}
  .sidebar-toggle-desktop{grid-column:1!important;grid-row:1!important}.page-heading{grid-column:2!important;grid-row:1!important}
  .top-actions{grid-column:1/-1!important;grid-row:2!important;width:100%!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important}
  .scenario{width:100%!important;max-width:none!important;min-width:0!important}.top-nav-glass{width:240px!important}
}


/* =============================================================
   TRV V31 — navegación estable, ayuda local y modo iPad compacto
   ============================================================= */

/* The module title no longer carries a global question button. */
.page-heading{gap:0!important}
.page-heading>.context-help,#areaHelp{display:none!important}

/* Local contextual help: always top-right, consistent and discrete. */
.module-hero{position:relative!important;padding-right:64px!important}
.module-hero>.context-help{
  position:absolute!important;right:18px!important;top:18px!important;bottom:auto!important;
  width:32px!important;height:32px!important;margin:0!important;
  display:grid!important;place-items:center!important;
  border-radius:10px!important;border:1px solid rgba(255,255,255,.13)!important;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.018))!important;
  color:#3f7ae2!important;font-size:16px!important;font-weight:900!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07)!important;
  -webkit-backdrop-filter:blur(16px)!important;backdrop-filter:blur(16px)!important;
  z-index:12!important;pointer-events:auto!important
}
.panel{position:relative!important}
.panel-head{position:relative!important;padding-right:52px!important}
.panel-help{
  position:absolute!important;right:12px!important;top:11px!important;
  width:29px!important;height:29px!important;margin:0!important;
  display:grid!important;place-items:center!important;
  border-radius:9px!important;border:1px solid rgba(255,255,255,.12)!important;
  background:rgba(255,255,255,.025)!important;color:#3f7ae2!important;
  font-size:13px!important;font-weight:900!important;z-index:12!important;pointer-events:auto!important
}
.tool-card{position:relative!important;padding-top:18px!important;padding-right:50px!important}
.tool-help{
  position:absolute!important;right:12px!important;top:12px!important;left:auto!important;bottom:auto!important;
  width:29px!important;height:29px!important;margin:0!important;padding:0!important;
  display:grid!important;place-items:center!important;align-self:auto!important;
  border-radius:9px!important;border:1px solid rgba(255,255,255,.12)!important;
  background:rgba(255,255,255,.025)!important;color:#3f7ae2!important;
  font-size:13px!important;font-weight:900!important;z-index:12!important;pointer-events:auto!important
}
.tool-card>.tool-code{margin-top:0!important}.tool-card>strong{padding-right:0!important}
.context-help:hover,.panel-help:hover,.tool-help:hover,
.context-help:focus-visible,.panel-help:focus-visible,.tool-help:focus-visible{
  background:rgba(237,27,36,.10)!important;border-color:rgba(255,77,84,.46)!important;
  box-shadow:0 0 0 4px rgba(237,27,36,.07)!important
}

/* Keep the working Ayuda as the global guide entry; contextual ? use the same guide engine. */
.floating-guide-launcher{z-index:135!important}

/* iPad/Safari split-sidebar mode: never collapse into the black mobile state. */
@media (min-width:761px) and (max-width:1000px){
  .app{display:grid!important;grid-template-columns:76px minmax(0,1fr)!important;min-height:100svh!important}
  .sidebar{
    position:sticky!important;inset:auto!important;top:0!important;width:auto!important;height:100svh!important;
    transform:none!important;box-shadow:none!important;padding:10px 7px!important;overflow:hidden!important
  }
  .brand{justify-content:center!important;padding:5px 0 12px!important}.brand-logo{width:50px!important;height:50px!important;padding:4px!important;border-radius:11px!important}.brand-copy{display:none!important}
  .demo-tag,.nav-group-head,.nav-copy,.nav-semaphore,.sidebar-shortcuts b,.sidebar-foot .health>span:last-child{display:none!important}
  .nav{padding:7px 0 10px!important;overflow-y:auto!important;overflow-x:hidden!important}
  .nav-group{margin-top:4px!important}.nav-item{display:grid!important;grid-template-columns:1fr!important;width:58px!important;min-height:48px!important;margin:4px auto!important;padding:5px!important;place-items:center!important;border-radius:10px!important}
  .nav-code{width:42px!important;height:36px!important;border-radius:9px!important;font-size:8px!important}.nav-item.active{border-left:2px solid #1f70c9!important}
  .sidebar-shortcuts{margin-top:auto!important;display:grid!important;grid-template-columns:1fr!important;gap:7px!important;padding:8px 0!important}.sidebar-shortcuts a{width:58px!important;min-height:44px!important;margin:auto!important;justify-content:center!important;padding:5px!important}.sidebar-shortcuts a span{margin:0!important}
  .sidebar-foot{padding:8px 0!important}.health{justify-content:center!important}
  .workspace{min-width:0!important;margin:0!important;width:auto!important}
  .mobile-menu,.mobile-bottom{display:none!important}
  .main{width:calc(100% - 18px)!important;max-width:none!important;margin:0 auto!important;padding-bottom:100px!important}
  .topbar{position:sticky!important;display:grid!important;grid-template-columns:44px minmax(150px,.75fr) minmax(0,1.25fr)!important;grid-template-rows:64px 54px!important;height:auto!important;min-height:118px!important;padding:0 10px!important;column-gap:10px!important;row-gap:0!important}
  .sidebar-toggle-desktop{display:grid!important;grid-column:1!important;grid-row:1!important;width:42px!important;height:42px!important;align-self:center!important}
  .page-heading{grid-column:2!important;grid-row:1!important;align-self:center!important}.page-title h1{font-size:17px!important}.page-title small{font-size:6.5px!important}
  .top-actions{grid-column:1/-1!important;grid-row:2!important;width:100%!important;display:grid!important;grid-template-columns:minmax(0,1fr) 230px!important;gap:8px!important;margin:0!important;align-items:center!important}
  .scenario{width:100%!important;min-width:0!important;max-width:none!important;height:42px!important}
  .top-nav-glass{width:230px!important;min-width:230px!important;max-width:230px!important;height:44px!important;min-height:44px!important;padding:3px!important;border-radius:16px!important;margin:0!important}
  .top-nav-glass .button{height:36px!important;min-height:36px!important;font-size:10px!important;border-radius:12px!important}
  .search{display:none!important}
  .module-hero h2{font-size:clamp(27px,5vw,42px)!important}
  .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .floating-assist-stack{right:12px!important;bottom:18px!important}
}

/* True phone size only. */
@media (max-width:760px){
  .app{display:block!important}.sidebar{position:fixed!important;transform:translateX(-103%)!important;width:min(84vw,310px)!important}.menu-open .sidebar{transform:none!important}
  .mobile-menu{display:grid!important}.mobile-bottom{display:grid!important}
  .topbar{display:flex!important;min-height:64px!important;height:auto!important;flex-wrap:wrap!important;padding:8px 10px!important}
  .page-heading{flex:1 1 auto!important}.top-actions{width:100%!important;display:grid!important;grid-template-columns:1fr!important}.scenario{width:100%!important}.top-nav-glass{width:100%!important;max-width:none!important;display:grid!important;grid-template-columns:repeat(3,1fr)!important}
  .module-hero{padding-right:54px!important}.module-hero>.context-help{right:13px!important;top:13px!important}
}

/* Final compact visibility safeguard */
@media (min-width:761px) and (max-width:1000px){
  .top-nav-glass .button{display:grid!important;place-items:center!important;visibility:visible!important;opacity:1!important}
}

/* =========================================================
   V32 · Executive command center + clearer module identity
   ========================================================= */
.page-title h1{
  font-size:26px!important;
  line-height:1.02!important;
  font-weight:850!important;
  letter-spacing:-.035em!important;
  color:#fff!important;
}
.page-title small{
  font-size:9px!important;
  line-height:1!important;
  font-weight:750!important;
  letter-spacing:.18em!important;
  text-transform:uppercase!important;
  color:#aeb9c5!important;
}

.command-v32{display:grid;gap:16px;min-width:0}
.command-v32 .v20-panel{border-radius:12px!important}
.exec-hero{
  min-height:162px;
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(380px,.8fr);
  gap:22px;
  align-items:center;
  padding:24px 26px;
  border:1px solid rgba(255,255,255,.10);
  border-left:3px solid #2d6cdf;
  background:linear-gradient(110deg,rgba(239,48,56,.09),transparent 42%),linear-gradient(180deg,#151a21,#11161c);
  box-shadow:0 18px 48px rgba(0,0,0,.20);
}
.exec-hero-copy small,.exec-area-section>header small,.exec-map-head small,.exec-priority-panel>header small,.exec-insight-grid header small{
  display:block;color:#ff4b52;font-size:9px;font-weight:850;letter-spacing:.18em;text-transform:uppercase
}
.exec-hero-copy h2{margin:9px 0 8px;color:#fff;font-size:clamp(34px,3.5vw,58px);line-height:.96;letter-spacing:-.055em}
.exec-hero-copy p{margin:0;max-width:760px;color:#c4ccd5;font-size:14px;line-height:1.55}
.exec-health-summary{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid rgba(255,255,255,.09);background:#0d1218;min-height:108px}
.exec-health-summary>div{position:relative;padding:18px 16px 14px;border-right:1px solid rgba(255,255,255,.08)}
.exec-health-summary>div:last-child{border-right:0}
.exec-health-summary>div::before{content:"";position:absolute;left:0;top:0;width:100%;height:3px;background:var(--tone)}
.exec-health-summary .red{--tone:#2d6cdf}.exec-health-summary .amber{--tone:#d99a23}.exec-health-summary .green{--tone:#38b979}
.exec-health-summary b{display:block;font-size:31px;line-height:1;color:#fff}.exec-health-summary span{display:block;margin-top:8px;font-size:12px;font-weight:800;color:#fff}.exec-health-summary small{display:block;margin-top:4px;color:#8f9ba7;font-size:9px}

.exec-area-section{border:1px solid rgba(255,255,255,.08);background:#0f141a;padding:20px 20px 18px}
.exec-area-section>header{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:14px}
.exec-area-section>header h3{margin:5px 0 0;color:#fff;font-size:22px;letter-spacing:-.025em}.exec-area-section>header p{margin:0;color:#8f9aa5;font-size:11px}
.exec-area-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.exec-area-card{--tone:#88929e;position:relative;display:grid;grid-template-columns:8px minmax(0,1fr) auto;gap:12px;align-items:start;min-height:122px;padding:14px 14px 13px;text-align:left;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(255,255,255,.025),transparent),#12171d;color:#fff;cursor:pointer;transition:.18s ease}
.exec-area-card:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.16);background:#151b22}.exec-area-card.red{--tone:#2d6cdf}.exec-area-card.amber{--tone:#d99a23}.exec-area-card.green{--tone:#38b979}
.exec-area-card>i{width:7px;height:7px;margin-top:3px;border-radius:50%;background:var(--tone);box-shadow:0 0 0 5px color-mix(in srgb,var(--tone) 12%,transparent)}
.exec-area-card small{display:block;color:#cbd3dc;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.exec-area-card strong{display:block;margin-top:8px;color:#fff;font-size:18px;line-height:1.08}.exec-area-card span{display:block;margin-top:5px;color:#b2bdc8;font-size:11px}.exec-area-card em{display:block;margin-top:10px;color:#7f8a96;font-style:normal;font-size:9px;line-height:1.35}.exec-area-card>b{color:#6f7a85;font-size:20px;font-weight:400}

.exec-kpis{grid-template-columns:repeat(5,minmax(0,1fr))!important}.exec-kpis .v20-kpi{border-radius:10px!important;min-height:142px!important}
.exec-command-grid{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(330px,.75fr);gap:14px;align-items:stretch}
.exec-map-panel{min-width:0}.exec-map-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center!important}.exec-map-head h3{margin:5px 0 2px!important;color:#fff!important;font-size:22px!important}.exec-map-head p{margin:0;color:#8f9aa6;font-size:10px}
.exec-unit-search{display:grid;grid-template-columns:minmax(130px,180px) auto;gap:7px;align-items:center}
.exec-unit-search input{height:39px;min-width:0;padding:0 12px;border:1px solid rgba(255,255,255,.12);border-radius:8px;background:#0b1016;color:#fff;outline:none;font-size:12px}.exec-unit-search input:focus{border-color:rgba(239,48,56,.62);box-shadow:0 0 0 3px rgba(239,48,56,.08)}.exec-unit-search button{height:39px;padding:0 13px;border:1px solid rgba(239,48,56,.35);border-radius:8px;background:rgba(239,48,56,.10);color:#fff;font-size:10px;font-weight:800;cursor:pointer}
.exec-map-panel .trv-real-map{min-height:470px!important}.trv-unit-popup small{display:block;color:#8d99a5;font-size:8px;letter-spacing:.12em}.trv-unit-popup strong{display:block;margin-top:3px;font-size:19px}.trv-unit-popup span{display:block;color:#2d6cdf;font-weight:750;font-size:10px}.trv-unit-popup p{margin:8px 0 5px;line-height:1.4}.trv-unit-popup>b{font-size:10px;color:#26313c}

.exec-priority-panel{display:flex;flex-direction:column;min-height:100%}.exec-priority-panel>header{display:flex!important;align-items:start!important;justify-content:space-between!important;gap:10px}.exec-priority-panel>header h3{margin:5px 0 0;color:#fff;font-size:21px}.exec-now{padding:6px 8px;border:1px solid rgba(255,255,255,.08);background:#0c1116;color:#8e99a5;font-size:8px;text-transform:uppercase;letter-spacing:.08em}
.exec-priority-list{display:grid;margin-top:6px}.exec-priority-item{--tone:#89939e;display:grid;grid-template-columns:28px 8px minmax(0,1fr) auto;gap:9px;align-items:center;padding:14px 0;border-bottom:1px solid rgba(255,255,255,.07)}.exec-priority-item:last-child{border-bottom:0}.exec-priority-item.red{--tone:#2d6cdf}.exec-priority-item.amber{--tone:#d99a23}.exec-priority-item.green{--tone:#38b979}.exec-priority-rank{color:#68737f;font-size:9px;font-weight:800}.exec-priority-item>i{width:7px;height:7px;border-radius:50%;background:var(--tone);box-shadow:0 0 0 5px color-mix(in srgb,var(--tone) 11%,transparent)}.exec-priority-item strong{display:block;color:#fff;font-size:12px}.exec-priority-item small{display:block;margin-top:3px;color:#87929d;font-size:9px}.exec-priority-item em{display:block;margin-top:6px;color:var(--tone);font-style:normal;font-size:9px;font-weight:800}.exec-priority-item>b{max-width:110px;text-align:right;color:#fff;font-size:12px}

.exec-insight-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(360px,.85fr);gap:14px}.exec-insight-grid .v20-trend-panel{min-width:0}.exec-insight-grid .v20-chart{min-height:300px}.exec-income-flow header h3{margin:5px 0 2px;color:#fff;font-size:22px}.exec-income-flow header p{margin:0;color:#8d98a4;font-size:10px}
.exec-flow-steps{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-top:10px}.exec-flow-steps button{--tone:#89939e;position:relative;min-height:112px;padding:12px 10px;text-align:left;border:1px solid rgba(255,255,255,.08);border-top:3px solid var(--tone);background:#10151b;color:#fff;cursor:pointer}.exec-flow-steps button.red{--tone:#2d6cdf}.exec-flow-steps button.amber{--tone:#d99a23}.exec-flow-steps button.green{--tone:#38b979}.exec-flow-steps span{display:block;color:#697580;font-size:8px}.exec-flow-steps strong{display:block;margin-top:25px;font-size:14px}.exec-flow-steps small{display:block;margin-top:5px;color:#aab4be;font-size:8px;line-height:1.35}.exec-flow-conclusion{margin-top:10px;padding:15px;border-left:3px solid #2d6cdf;background:linear-gradient(90deg,rgba(239,48,56,.08),transparent),#0c1117}.exec-flow-conclusion small{color:#3f7ae2;font-size:8px;font-weight:850;letter-spacing:.14em}.exec-flow-conclusion strong{display:block;margin-top:7px;color:#fff;font-size:16px;line-height:1.25}.exec-flow-conclusion p{margin:7px 0 0;color:#9da8b4;font-size:10px;line-height:1.5}
.exec-unit-link{border:0;background:transparent;color:#fff;font:inherit;font-weight:800;text-decoration:underline;text-decoration-color:rgba(239,48,56,.55);text-underline-offset:3px;cursor:pointer}.exec-bottom-grid{grid-template-columns:minmax(0,1.4fr) minmax(330px,.6fr)!important}

/* Guide target must be fully brought into view before explaining it. */
.guide-target-live{scroll-margin-top:110px!important}
body.guide-open .guide-target-live{position:relative!important;z-index:221!important}

@media(max-width:1280px){
  .exec-area-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .exec-command-grid,.exec-insight-grid{grid-template-columns:1fr}
  .exec-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .exec-map-panel .trv-real-map{min-height:410px!important}
  .exec-bottom-grid{grid-template-columns:1fr!important}
}
@media(max-width:1050px){
  .page-title h1{font-size:22px!important}.page-title small{font-size:7.5px!important}
  .exec-hero{grid-template-columns:1fr}.exec-health-summary{max-width:none}
  .exec-unit-search{grid-template-columns:1fr auto}
  .exec-flow-steps{grid-template-columns:repeat(5,minmax(94px,1fr));overflow:auto;padding-bottom:3px}
}
@media(max-width:760px){
  .exec-area-grid{grid-template-columns:1fr}.exec-kpis{grid-template-columns:1fr 1fr!important}.exec-health-summary{grid-template-columns:1fr}.exec-health-summary>div{border-right:0;border-bottom:1px solid rgba(255,255,255,.08)}.exec-map-head{grid-template-columns:1fr!important}.exec-unit-search{grid-template-columns:1fr}.exec-unit-search button{width:100%}.exec-map-panel .trv-real-map{min-height:350px!important}.exec-hero-copy h2{font-size:38px}.page-title h1{font-size:20px!important}
}

/* =========================================================
   TRV V33 · CENTRO DE MANDO MINIMAL + MEMORIA OPERATIVA
   ========================================================= */
body[data-module="command"] .main{padding-top:20px}
.command-v33{display:grid;gap:16px;max-width:1440px;margin:0 auto;padding-bottom:100px}
.command-v33 h2,.command-v33 h3{color:#f7f9fc;letter-spacing:-.035em}
.command-v33 small{letter-spacing:.12em;text-transform:uppercase}
.exec-v33-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:12px 2px 18px;border-bottom:1px solid rgba(255,255,255,.08)}
.exec-v33-head>div:first-child small{color:#3f7ae2;font-size:10px;font-weight:800}
.exec-v33-head h2{margin:7px 0 4px;font-size:30px;line-height:1}
.exec-v33-head p{margin:0;color:#aeb6c0;font-size:14px}
.exec-v33-status{display:flex;gap:18px;align-items:center;color:#dfe4ea;font-size:12px;white-space:nowrap}
.exec-v33-status span{display:flex;align-items:center;gap:7px}.exec-v33-status i{width:8px;height:8px;border-radius:50%;display:block}.exec-v33-status .red i{background:#2d6cdf}.exec-v33-status .amber i{background:#d99a23}.exec-v33-status .green i{background:#37b979}.exec-v33-status b{font-size:15px;color:#fff}
.exec-v33-metrics{display:grid;grid-template-columns:repeat(5,1fr);border:1px solid rgba(255,255,255,.08);background:#0d1218;clip-path:polygon(0 0,calc(100% - 12px) 0,100% 12px,100% 100%,0 100%)}
.exec-v33-metrics>div{min-height:106px;padding:18px 20px;border-right:1px solid rgba(255,255,255,.07);display:flex;flex-direction:column;justify-content:center;gap:4px}.exec-v33-metrics>div:last-child{border-right:0}.exec-v33-metrics small{font-size:9px;color:#8f99a6}.exec-v33-metrics strong{font-size:24px;color:#fff}.exec-v33-metrics span{font-size:11px;color:#8f99a6}.exec-v33-metrics .critical strong{color:#ff5259}
.exec-v33-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.75fr);gap:16px}
.exec-v33-areas,.exec-v33-priorities,.exec-v33-map,.exec-v33-trend,.exec-v33-flow{background:#0d1218;border:1px solid rgba(255,255,255,.08);clip-path:polygon(0 0,calc(100% - 12px) 0,100% 12px,100% 100%,0 100%)}
.exec-v33-areas>header,.exec-v33-priorities>header,.exec-v33-map>header,.exec-v33-trend>header,.exec-v33-flow>header{padding:18px 20px;border-bottom:1px solid rgba(255,255,255,.07);display:flex;justify-content:space-between;align-items:flex-end;gap:18px}.exec-v33-areas header small,.exec-v33-priorities header small,.exec-v33-map header small,.exec-v33-trend header small,.exec-v33-flow header small{font-size:9px;color:#8f99a6}.exec-v33-areas header h3,.exec-v33-priorities header h3,.exec-v33-map header h3,.exec-v33-trend header h3,.exec-v33-flow header h3{margin:4px 0 0;font-size:18px}.exec-v33-areas header>span{font-size:10px;color:#7f8995}
.exec-v33-area-list{display:grid;grid-template-columns:1fr 1fr}.exec-v33-area-row{position:relative;display:grid;grid-template-columns:12px 122px minmax(120px,1fr) 90px minmax(140px,1.2fr) 20px;align-items:center;gap:10px;text-align:left;border:0;border-bottom:1px solid rgba(255,255,255,.055);background:transparent;color:#fff;padding:14px 16px;min-height:70px;cursor:pointer}.exec-v33-area-row:nth-child(odd){border-right:1px solid rgba(255,255,255,.055)}.exec-v33-area-row:hover{background:rgba(255,255,255,.025)}.exec-v33-area-row>i{width:8px;height:8px;border-radius:50%}.exec-v33-area-row.red>i{background:#2d6cdf;box-shadow:0 0 0 5px rgba(239,48,56,.10)}.exec-v33-area-row.amber>i{background:#d99a23;box-shadow:0 0 0 5px rgba(217,154,35,.10)}.exec-v33-area-row.green>i{background:#37b979;box-shadow:0 0 0 5px rgba(55,185,121,.10)}.exec-v33-area-row>strong{font-size:12px;color:#e6eaf0}.exec-v33-area-row>span{font-size:14px;font-weight:800;color:#fff}.exec-v33-area-row>em{font-size:11px;font-style:normal;color:#c0c7d0}.exec-v33-area-row>small{font-size:10px;letter-spacing:0;text-transform:none;color:#7f8995;line-height:1.35}.exec-v33-area-row>b{font-size:20px;font-weight:400;color:#79838f}
.exec-v33-priorities>div{padding:3px 16px}.exec-v33-priorities article{display:grid;grid-template-columns:28px 9px minmax(0,1fr) auto;gap:10px;align-items:center;padding:14px 2px;border-bottom:1px solid rgba(255,255,255,.06)}.exec-v33-priorities article>span{font-size:9px;color:#6e7884}.exec-v33-priorities article>i{width:7px;height:7px;border-radius:50%}.exec-v33-priorities article.red>i{background:#2d6cdf}.exec-v33-priorities article.amber>i{background:#d99a23}.exec-v33-priorities article strong{display:block;font-size:12px;color:#f3f5f8}.exec-v33-priorities article small{display:block;margin-top:3px;font-size:9px;letter-spacing:0;text-transform:none;color:#7e8793}.exec-v33-priorities article>b{font-size:11px;color:#fff}.exec-v33-priorities footer{padding:14px 18px;display:flex;justify-content:space-between;align-items:center;gap:12px}.exec-v33-priorities footer span{font-size:10px;color:#8d97a3}.exec-v33-priorities footer button{border:0;background:transparent;color:#ff646b;font-weight:800;font-size:10px;cursor:pointer}
.exec-v33-map>header{align-items:center}.exec-v33-map>header p{margin:5px 0 0;color:#8d97a3;font-size:12px}.exec-v33-map-stage{height:410px;padding:0;background:#090e14}.exec-v33-map-stage .trv-real-map{height:100%;min-height:410px;border:0!important;border-radius:0!important}.exec-v33-map>footer{display:flex;gap:22px;padding:12px 18px;border-top:1px solid rgba(255,255,255,.06);font-size:10px;color:#9da6b1}.exec-v33-map>footer span{display:flex;align-items:center;gap:7px}.exec-v33-map>footer i{width:7px;height:7px;border-radius:50%}.exec-v33-map>footer .green{background:#37b979}.exec-v33-map>footer .amber{background:#d99a23}.exec-v33-map>footer .red{background:#2d6cdf}.exec-v33-map>footer .gray{background:#7f8995}.exec-v33-map .exec-unit-search{display:flex;gap:6px}.exec-v33-map .exec-unit-search input{width:210px;height:42px;background:#0a0f15;border:1px solid rgba(255,255,255,.1);color:#fff;padding:0 13px;border-radius:8px}.exec-v33-map .exec-unit-search button{height:42px;border:0;border-radius:8px;background:#f22a32;color:#fff;font-weight:800;padding:0 16px}
.exec-v33-lower{display:grid;grid-template-columns:1.35fr .65fr;gap:16px}.exec-v33-trend .v20-chart{height:290px;padding:14px 18px 0}.exec-v33-trend .v20-chart svg{height:235px}.exec-v33-trend .v20-chart-legend{padding:0 18px 14px}.exec-v33-flow-line{display:grid;grid-template-columns:repeat(5,1fr);padding:22px 18px 12px}.exec-v33-flow-line>div{position:relative;padding:0 10px 14px;border-bottom:2px solid rgba(255,255,255,.12)}.exec-v33-flow-line>div.green{border-color:#37b979}.exec-v33-flow-line>div.amber{border-color:#d99a23}.exec-v33-flow-line>div.red{border-color:#2d6cdf}.exec-v33-flow-line i{display:block;width:8px;height:8px;border-radius:50%;background:currentColor;margin-bottom:12px}.exec-v33-flow-line .green{color:#37b979}.exec-v33-flow-line .amber{color:#d99a23}.exec-v33-flow-line .red{color:#2d6cdf}.exec-v33-flow-line b{display:block;color:#fff;font-size:12px}.exec-v33-flow-line span{display:block;color:#7f8995;font-size:9px;margin-top:3px}.exec-v33-flow>p{margin:8px 18px 18px;color:#8c96a2;font-size:12px;line-height:1.55}

/* V33 memory / data layer */
.memory-v33{display:grid;gap:16px;max-width:1320px;margin:0 auto;padding-bottom:100px}.memory-v33 h2,.memory-v33 h3{color:#f7f9fc;letter-spacing:-.035em}.memory-v33-head{display:flex;justify-content:space-between;align-items:flex-end;padding:18px 2px;border-bottom:1px solid rgba(255,255,255,.08)}.memory-v33-head small{font-size:10px;letter-spacing:.14em;color:#3f7ae2}.memory-v33-head h2{font-size:28px;margin:7px 0 5px}.memory-v33-head p{margin:0;color:#aab3be;font-size:13px}.memory-v33-head>span{font-size:10px;color:#b8c1cb;border:1px solid rgba(255,255,255,.1);padding:8px 10px;border-radius:7px;background:#0d1218}.memory-v33-stats{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid rgba(255,255,255,.08);background:#0d1218}.memory-v33-stats>div{padding:17px 20px;border-right:1px solid rgba(255,255,255,.07)}.memory-v33-stats>div:last-child{border-right:0}.memory-v33-stats small{display:block;color:#858f9b;font-size:9px;letter-spacing:.1em;text-transform:uppercase}.memory-v33-stats strong{display:block;margin-top:5px;color:#fff;font-size:23px}.memory-v33-compose{display:grid;grid-template-columns:1.15fr .85fr;gap:16px}.memory-v33-compose>article,.memory-v33-library,.memory-v33-note{background:#0d1218;border:1px solid rgba(255,255,255,.08);clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,0 100%)}.memory-v33-compose article>header,.memory-v33-library>header{padding:18px 20px;border-bottom:1px solid rgba(255,255,255,.07)}.memory-v33-compose header small,.memory-v33-library header small{font-size:9px;letter-spacing:.13em;color:#8d97a3}.memory-v33-compose header h3,.memory-v33-library header h3{margin:5px 0 4px;font-size:18px}.memory-v33-compose header p,.memory-v33-library header p{margin:0;color:#858f9b;font-size:11px;line-height:1.5}.memory-v33-compose form{padding:18px 20px;display:grid;gap:12px}.memory-v33-compose label{display:grid;gap:6px;color:#aeb6c0;font-size:10px;font-weight:800}.memory-v33-compose input,.memory-v33-compose select,.memory-v33-compose textarea,.memory-search input{width:100%;background:#090e14;border:1px solid rgba(255,255,255,.09);color:#fff;border-radius:7px;padding:11px 12px;font:inherit;outline:none}.memory-v33-compose input:focus,.memory-v33-compose select:focus,.memory-v33-compose textarea:focus,.memory-search input:focus{border-color:rgba(239,48,56,.55)}.memory-v33-compose textarea{resize:vertical;line-height:1.5}.memory-v33-compose form>button{justify-self:start;border:0;background:#2d6cdf;color:#fff;font-weight:800;padding:11px 16px;border-radius:7px}.memory-file-drop{min-height:106px;border:1px dashed rgba(255,255,255,.15);display:grid!important;place-content:center;text-align:center;cursor:pointer;background:#090e14}.memory-file-drop input{display:none}.memory-file-drop span{font-size:24px;color:#3f7ae2}.memory-file-drop strong{color:#fff}.memory-file-drop small{font-weight:400;color:#76818d}.memory-v33-library>header{display:flex;justify-content:space-between;align-items:flex-end;gap:16px}.memory-search{width:min(320px,40%);position:relative}.memory-search span{position:absolute;left:11px;top:11px;color:#727c88}.memory-search input{padding-left:32px}.memory-list{display:grid}.memory-item{display:grid;grid-template-columns:42px minmax(0,1fr) auto 34px;gap:13px;align-items:center;padding:13px 18px;border-bottom:1px solid rgba(255,255,255,.055)}.memory-item:last-child{border-bottom:0}.memory-type{width:38px;height:38px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.1);font-size:9px;font-weight:900;color:#fff;background:#101721}.memory-type.file{border-left:3px solid #2d6cdf}.memory-type.note{border-left:3px solid #37b979}.memory-item small{display:block;font-size:8px;letter-spacing:.08em;text-transform:uppercase;color:#7c8793}.memory-item strong{display:block;margin-top:2px;color:#fff;font-size:12px}.memory-item span{display:block;margin-top:3px;color:#7e8995;font-size:10px}.memory-item>button{border:1px solid rgba(255,255,255,.1);background:#111820;color:#dce2e9;border-radius:7px;padding:8px 10px;font-size:9px;font-weight:800}.memory-item>.memory-delete{border:0;background:transparent;color:#808b97;font-size:18px;padding:6px}.memory-empty{padding:30px 22px;display:grid;gap:6px;color:#8d97a3}.memory-empty strong{color:#fff}.memory-v33-note{padding:15px 18px;display:flex;gap:16px;align-items:flex-start}.memory-v33-note strong{min-width:155px;color:#fff;font-size:11px}.memory-v33-note p{margin:0;color:#89939f;font-size:11px;line-height:1.55}

/* Rename DB module visually */
body[data-module="database"] .page-title h1{font-size:28px}

@media (max-width:1180px){.exec-v33-metrics{grid-template-columns:repeat(3,1fr)}.exec-v33-metrics>div:nth-child(3){border-right:0}.exec-v33-metrics>div:nth-child(n+4){border-top:1px solid rgba(255,255,255,.07)}.exec-v33-grid,.exec-v33-lower{grid-template-columns:1fr}.exec-v33-area-row{grid-template-columns:12px 105px 1fr 80px 1.2fr 20px}.memory-v33-compose{grid-template-columns:1fr}}
@media (max-width:880px){.exec-v33-head{align-items:flex-start;flex-direction:column}.exec-v33-status{flex-wrap:wrap}.exec-v33-metrics{grid-template-columns:1fr 1fr}.exec-v33-metrics>div{border-right:1px solid rgba(255,255,255,.07)!important;border-top:1px solid rgba(255,255,255,.07)}.exec-v33-area-list{grid-template-columns:1fr}.exec-v33-area-row:nth-child(odd){border-right:0}.exec-v33-area-row{grid-template-columns:10px 100px 1fr auto 18px}.exec-v33-area-row>small{display:none}.exec-v33-map>header{align-items:flex-start;flex-direction:column}.exec-v33-map .exec-unit-search{width:100%}.exec-v33-map .exec-unit-search input{width:100%}.memory-v33-stats{grid-template-columns:1fr 1fr}.memory-v33-stats>div:nth-child(2){border-right:0}.memory-v33-stats>div:nth-child(n+3){border-top:1px solid rgba(255,255,255,.07)}.memory-v33-library>header{align-items:flex-start;flex-direction:column}.memory-search{width:100%}.memory-item{grid-template-columns:38px minmax(0,1fr) 32px}.memory-item>button:not(.memory-delete){display:none}.memory-v33-note{flex-direction:column}}

/* =========================================================
   V34 — DIRECTOR DASHBOARD + MODULE DATA CAPTURE
   ========================================================= */
:root{--v34-bg:#070b10;--v34-surface:#0e141b;--v34-surface2:#111820;--v34-line:rgba(255,255,255,.085);--v34-text:#f7f9fb;--v34-muted:#a2acb8;--v34-red:#ef2f37;--v34-green:#37bb7b;--v34-amber:#dca02b}

/* Sidebar: calmer, slimmer, no heavy left wall */
.app{grid-template-columns:238px minmax(0,1fr)!important}
.sidebar{width:238px!important;background:#080d12!important;border-right:1px solid rgba(255,255,255,.065)!important;box-shadow:none!important}
.brand{padding:18px 15px 14px!important}.brand-logo{width:86px!important;height:62px!important;border-radius:11px!important}.brand-copy strong{font-size:13px!important;color:#fff!important}.brand-copy small{font-size:9px!important;color:#9da7b3!important}.demo-tag{margin:0 13px 12px!important;border-radius:8px!important;background:#0d141b!important;padding:9px 10px!important}.nav{padding:0 9px 90px!important}.nav-group{margin:9px 0 13px!important}.nav-group-head{padding:0 8px 5px!important}.nav-item{min-height:52px!important;border-radius:8px!important;padding:7px 8px!important;margin:3px 0!important}.nav-item.active{background:linear-gradient(90deg,rgba(239,47,55,.12),rgba(255,255,255,.025))!important;box-shadow:inset 2px 0 0 var(--v34-red)!important}.nav-code{width:34px!important;height:34px!important;border-radius:7px!important;background:#101720!important}.nav-copy strong{font-size:12px!important;color:#f7f9fb!important}.nav-copy small{font-size:8px!important;color:#8d98a5!important}.sidebar-shortcuts{position:sticky!important;bottom:45px!important;background:linear-gradient(180deg,transparent,#080d12 18%)!important;padding:20px 11px 9px!important}.sidebar-shortcuts a{border-radius:8px!important}.sidebar-foot{position:sticky!important;bottom:0!important;background:#080d12!important;padding:6px 13px 12px!important}
body.sidebar-collapsed .app{grid-template-columns:72px minmax(0,1fr)!important}body.sidebar-collapsed .sidebar{width:72px!important}body.sidebar-collapsed .brand{justify-content:center!important;padding:15px 8px!important}body.sidebar-collapsed .brand-logo{width:44px!important;height:44px!important;padding:3px!important}body.sidebar-collapsed .brand-copy,body.sidebar-collapsed .demo-tag,body.sidebar-collapsed .nav-copy,body.sidebar-collapsed .nav-group-head,body.sidebar-collapsed .nav-semaphore,body.sidebar-collapsed .sidebar-shortcuts b,body.sidebar-collapsed .sidebar-foot span:not(.health-dot){display:none!important}body.sidebar-collapsed .nav{padding:8px 8px 90px!important}body.sidebar-collapsed .nav-item{justify-content:center!important;padding:5px!important}body.sidebar-collapsed .nav-code{width:40px!important;height:40px!important}body.sidebar-collapsed .sidebar-shortcuts{padding:18px 8px 8px!important}body.sidebar-collapsed .sidebar-shortcuts a{padding:0!important;justify-content:center!important}

/* Center of command: quiet executive hierarchy */
body[data-module="command"] .main{padding:18px 22px 110px!important}.command-v34{display:grid;gap:14px;min-width:0;color:var(--v34-text)}
.exec34-overview{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:8px 2px 3px;border:0!important;background:transparent!important}.exec34-title small,.exec34-map header small,.exec34-semaphore header small,.exec34-priority header small,.exec34-trend header small,.exec34-foot small{display:block;color:#8e98a5;font-size:9px;font-weight:850;letter-spacing:.17em}.exec34-title h2{font-size:28px;line-height:1.05;letter-spacing:-.04em;margin:6px 0 5px;color:#fff}.exec34-title p{margin:0;color:#a8b1bc;font-size:12px}.exec34-signal{display:flex;align-items:stretch;border:1px solid var(--v34-line);background:#0d131a}.exec34-signal span{min-width:88px;padding:10px 13px;border-left:1px solid var(--v34-line);display:grid;grid-template-columns:9px 1fr;column-gap:7px;align-items:center}.exec34-signal span:first-child{border-left:0}.exec34-signal i{width:7px;height:7px;border-radius:50%}.exec34-signal .red i{background:var(--v34-red)}.exec34-signal .amber i{background:var(--v34-amber)}.exec34-signal .green i{background:var(--v34-green)}.exec34-signal b{font-size:17px}.exec34-signal small{grid-column:1/-1;color:#8f99a5;font-size:8px;margin-top:2px}
.exec34-metrics{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));border:1px solid var(--v34-line);background:#0d131a}.exec34-metric{min-width:0;padding:13px 12px;border-left:1px solid var(--v34-line);position:relative}.exec34-metric:first-child{border-left:0}.exec34-metric small{display:block;color:#929daa;font-size:8px;letter-spacing:.06em}.exec34-metric strong{display:block;margin-top:7px;font-size:17px;color:#fff;letter-spacing:-.03em;white-space:nowrap}.exec34-metric span{display:block;margin-top:4px;color:#7f8995;font-size:8px}.exec34-metric.critical{box-shadow:inset 0 2px 0 var(--v34-red)}.exec34-metric.warning{box-shadow:inset 0 2px 0 var(--v34-amber)}.exec34-metric.positive{box-shadow:inset 0 2px 0 var(--v34-green)}
.exec34-primary{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.65fr);gap:14px}.exec34-map,.exec34-semaphore,.exec34-priority,.exec34-trend{border:1px solid var(--v34-line);background:#0d131a;min-width:0}.exec34-map>header,.exec34-semaphore>header,.exec34-priority>header,.exec34-trend>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:15px 17px;border-bottom:1px solid var(--v34-line)}.exec34-map h3,.exec34-semaphore h3,.exec34-priority h3,.exec34-trend h3{margin:4px 0 0;font-size:16px;color:#fff}.exec34-map-stage{height:395px!important;min-height:395px;background:#0a0f15!important}.exec34-map footer{display:flex;gap:17px;padding:10px 15px;border-top:1px solid var(--v34-line);font-size:9px;color:#aeb6c0}.exec34-map footer i{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px}.exec34-map .green{background:var(--v34-green)}.exec34-map .amber{background:var(--v34-amber)}.exec34-map .red{background:var(--v34-red)}.exec34-map .gray{background:#89939e}.exec-unit-search{display:flex;gap:7px}.exec-unit-search input{height:36px;width:190px;border-radius:8px;border:1px solid rgba(255,255,255,.12);background:#0a1118;color:#fff;padding:0 11px;font-size:10px}.exec-unit-search button{height:36px;border:0;border-radius:8px;background:var(--v34-red);color:#fff;font-weight:800;padding:0 14px;font-size:10px}
.exec34-semaphore header{display:block}.exec34-semaphore header p{margin:5px 0 0;color:#818b97;font-size:9px}.exec34-semaphore>div{display:grid}.exec34-light{display:grid;grid-template-columns:10px minmax(0,1fr) auto 9px;align-items:center;gap:9px;min-height:52px;padding:9px 13px;border:0;border-bottom:1px solid rgba(255,255,255,.055);background:transparent;color:#fff;text-align:left}.exec34-light:last-child{border-bottom:0}.exec34-light:hover{background:rgba(255,255,255,.025)}.exec34-light>i{width:8px;height:8px;border-radius:50%}.exec34-light>i.red{background:var(--v34-red)}.exec34-light>i.amber{background:var(--v34-amber)}.exec34-light>i.green{background:var(--v34-green)}.exec34-light span b{display:block;font-size:10px}.exec34-light span small{display:block;margin-top:2px;color:#7f8995;font-size:8px}.exec34-light strong{font-size:10px;color:#dce1e6;white-space:nowrap}.exec34-light em{font-style:normal;color:#7d8792}
.exec34-secondary{display:grid;grid-template-columns:minmax(300px,.65fr) minmax(0,1.35fr);gap:14px}.exec34-priority-list{display:grid}.exec34-priority-list button{display:grid;grid-template-columns:8px minmax(0,1fr) auto;align-items:center;gap:10px;padding:13px 15px;border:0;border-bottom:1px solid rgba(255,255,255,.055);background:transparent;color:#fff;text-align:left}.exec34-priority-list button:last-child{border-bottom:0}.exec34-priority-list i{width:7px;height:7px;border-radius:50%}.exec34-priority-list i.red{background:var(--v34-red)}.exec34-priority-list i.amber{background:var(--v34-amber)}.exec34-priority-list b{display:block;font-size:10px}.exec34-priority-list small{display:block;color:#8c96a2;margin-top:3px;font-size:8px}.exec34-priority-list strong{font-size:11px}.exec34-trend .v20-chart{height:255px!important}.exec34-trend .v20-chart-legend{border-top:1px solid var(--v34-line)}.exec34-foot{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:13px 15px;border:1px solid var(--v34-line);background:#0d131a}.exec34-foot>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.exec34-foot b{font-size:10px}.exec34-foot i{width:22px;height:2px}.exec34-foot i.green{background:var(--v34-green)}.exec34-foot i.amber{background:var(--v34-amber)}.exec34-foot i.red{background:var(--v34-red)}.exec34-foot button{border:0;background:transparent;color:#fff;text-align:right}.exec34-foot button span{display:block;color:#8d97a3;font-size:9px}.exec34-foot button b{display:block;margin-top:3px;color:#3f7ae2}

/* Persistent capture panel in every module */
.module-records{margin-top:16px;border:1px solid var(--v34-line);background:#0d131a!important;padding:0!important;clip-path:none!important}.module-records>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid var(--v34-line)}.module-records>header small{color:#8994a0;font-size:8px;font-weight:850;letter-spacing:.16em}.module-records>header h3{margin:4px 0 4px;color:#fff;font-size:16px}.module-records>header p{margin:0;color:#929ca8;font-size:9px}.module-record-engine{font-size:8px;color:#63d59c;border:1px solid rgba(55,187,123,.2);padding:6px 8px}.module-record-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,.8fr)}.module-record-form{padding:16px 18px;border-right:1px solid var(--v34-line)}.module-record-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.module-record-fields label{display:grid;gap:5px;min-width:0}.module-record-fields label.wide{grid-column:span 2}.module-record-fields label.file{grid-column:span 1}.module-record-fields label>span{color:#8f99a5;font-size:8px;font-weight:750}.module-record-fields input,.module-record-fields select,.module-record-fields textarea{width:100%;min-width:0;border:1px solid rgba(255,255,255,.10);border-radius:7px;background:#091017;color:#fff;padding:9px 10px;font:inherit;font-size:10px}.module-record-fields input,.module-record-fields select{height:38px}.module-record-fields textarea{resize:vertical;min-height:72px}.module-record-form>button{margin-top:11px;height:38px;border:0;border-radius:7px;background:var(--v34-red);color:#fff;font-weight:850;padding:0 16px}.module-record-history{padding:15px 16px}.module-record-history-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.module-record-history-head small{color:#8d97a3;font-size:8px;letter-spacing:.14em}.module-record-history-head h4{margin:3px 0 0;color:#fff;font-size:13px}.module-record-history-head button{border:0;background:transparent;color:#ff555b;font-size:9px}.module-record-list{display:grid;max-height:360px;overflow:auto}.module-record-item{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto 24px;gap:8px;padding:11px 3px;border-bottom:1px solid rgba(255,255,255,.055)}.module-record-item:last-child{border-bottom:0}.module-record-item small{display:block;color:#75808c;font-size:7px;text-transform:uppercase}.module-record-item strong{display:block;color:#fff;font-size:10px;margin-top:3px}.module-record-item span{display:block;color:#a5aeb8;font-size:8px;margin-top:3px}.module-record-item p{margin:5px 0 0;color:#8e98a4;font-size:8px;line-height:1.45}.module-record-item em{display:block;margin-top:5px;color:#c2cad2;font-style:normal;font-size:8px}.module-record-item>b{font-size:10px;white-space:nowrap}.module-record-item>button{width:24px;height:24px;border:0;background:transparent;color:#7d8792;font-size:16px}.record-empty{margin:16px 0;color:#89939f;font-size:9px}

/* Make real map readable even if dark map styles were inherited */
.trv-real-map .leaflet-tile{filter:none!important;opacity:1!important}.trv-map-fallback{width:100%;height:100%;border:0;display:block;background:#0a0f15}

@media(max-width:1260px){.exec34-metrics{grid-template-columns:repeat(5,1fr)}.exec34-metric:nth-child(6){border-left:0}.exec34-primary{grid-template-columns:minmax(0,1.35fr) minmax(270px,.65fr)}.module-record-fields{grid-template-columns:repeat(2,1fr)}}
@media(max-width:980px){.app{grid-template-columns:78px minmax(0,1fr)!important}.sidebar{width:78px!important}.brand-copy,.demo-tag,.nav-copy,.nav-group-head,.nav-semaphore,.sidebar-shortcuts b,.sidebar-foot span:not(.health-dot){display:none!important}.brand{justify-content:center!important;padding:14px 8px!important}.brand-logo{width:48px!important;height:48px!important}.nav{padding:8px 8px 90px!important}.nav-item{justify-content:center!important}.nav-code{width:42px!important;height:42px!important}.exec34-metrics{grid-template-columns:repeat(3,1fr)}.exec34-metric:nth-child(4),.exec34-metric:nth-child(7){border-left:0}.exec34-primary,.exec34-secondary{grid-template-columns:1fr}.exec34-map-stage{height:340px!important}.module-record-grid{grid-template-columns:1fr}.module-record-form{border-right:0;border-bottom:1px solid var(--v34-line)}}
@media(max-width:700px){.exec34-overview{align-items:flex-start;flex-direction:column}.exec34-metrics{grid-template-columns:repeat(2,1fr)}.exec34-metric:nth-child(odd){border-left:0}.module-record-fields{grid-template-columns:1fr}.module-record-fields label.wide,.module-record-fields label.file{grid-column:auto}.exec-unit-search input{width:150px}}

/* =========================================================
   V35 · MODULOS OPERATIVOS PROFUNDOS + FORMULARIOS REALES
   ========================================================= */
:root{--module-accent:#2d6cdf;--v35-bg:#080d13;--v35-surface:#0d141c;--v35-surface-2:#101821;--v35-line:rgba(255,255,255,.085)}
.topbar{position:sticky!important;overflow:visible!important}
.topbar::before{content:'';position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,var(--module-accent),color-mix(in srgb,var(--module-accent) 35%,transparent) 42%,transparent 78%);z-index:4;pointer-events:none}
.page-title h1{font-size:clamp(24px,2.05vw,31px)!important;font-weight:900!important;color:#fff!important;letter-spacing:-.045em!important}
.page-title small{color:color-mix(in srgb,var(--module-accent) 74%,#fff 26%)!important;font-weight:850!important;letter-spacing:.18em!important}
.module-hero{border-top:2px solid color-mix(in srgb,var(--module-accent) 78%,transparent)!important}
.module-hero>div>small{color:color-mix(in srgb,var(--module-accent) 82%,#fff 18%)!important}

/* Never leave invisible guide layers over editable forms */
body:not(.guide-open) .guide-shade,body:not(.guide-open) .guide-focus,body:not(.guide-open) .guide-card{display:none!important;pointer-events:none!important}
.module-records,.module-record-grid,.module-record-form,.record-section,.record-section-grid{position:relative!important;z-index:2!important;pointer-events:auto!important}
.module-record-form input,.module-record-form select,.module-record-form textarea,.module-record-form button,.module-record-form summary{pointer-events:auto!important;touch-action:manipulation!important;-webkit-user-select:text!important;user-select:text!important}
.module-record-form select,.module-record-form input[type="date"],.module-record-form input[type="datetime-local"]{-webkit-appearance:auto!important;appearance:auto!important}

/* Guide: buttons must always remain visible, including Finalizar */
.guide-card{max-height:calc(100svh - 24px)!important;overflow:auto!important;overscroll-behavior:contain!important;padding-bottom:0!important}
.guide-actions{position:sticky!important;bottom:0!important;z-index:8!important;margin:16px -18px 0!important;padding:13px 18px calc(14px + env(safe-area-inset-bottom))!important;background:linear-gradient(180deg,rgba(8,18,28,.72),#0b1722 28%)!important;border-top:1px solid rgba(255,255,255,.09)!important;backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important}
.guide-actions .next{min-width:116px!important;background:#f22631!important;color:#fff!important;border-color:#f22631!important}

/* Deep record workspace */
.module-records{margin-top:18px!important;background:#0a1118!important;border:1px solid var(--v35-line)!important}
.module-records>header{padding:18px 20px!important;background:linear-gradient(90deg,color-mix(in srgb,var(--module-accent) 7%,transparent),transparent 52%)!important;border-bottom:1px solid var(--v35-line)!important}
.module-records>header h3{font-size:20px!important;letter-spacing:-.035em!important}.module-records>header p{font-size:11px!important;line-height:1.55!important;max-width:760px!important}
.module-record-engine{border-radius:999px!important;background:rgba(54,197,139,.07)!important}
.module-record-grid{grid-template-columns:minmax(0,1.55fr) minmax(300px,.62fr)!important}
.module-record-form{padding:18px!important;border-right:1px solid var(--v35-line)!important;background:#0b1219!important}
.record-form-top{display:grid;grid-template-columns:minmax(180px,.55fr) minmax(240px,1.45fr);gap:10px;margin-bottom:12px}
.record-form-top label,.record-section-grid label{display:grid;gap:6px;min-width:0}.record-form-top label>span,.record-section-grid label>span{font-size:9px;color:#a6b0bc;font-weight:800}
.record-form-top input,.record-form-top select,.record-section-grid input,.record-section-grid select,.record-section-grid textarea{width:100%;min-width:0;background:#070d13!important;border:1px solid rgba(255,255,255,.12)!important;color:#fff!important;border-radius:8px!important;padding:10px 11px!important;font:inherit!important;font-size:11px!important;outline:none!important;box-shadow:none!important}
.record-form-top input,.record-form-top select,.record-section-grid input,.record-section-grid select{height:42px!important}.record-section-grid textarea{min-height:88px!important;resize:vertical!important;line-height:1.5!important}
.record-form-top input:focus,.record-form-top select:focus,.record-section-grid input:focus,.record-section-grid select:focus,.record-section-grid textarea:focus{border-color:color-mix(in srgb,var(--module-accent) 72%,#fff 8%)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--module-accent) 12%,transparent)!important}
.record-section{border:1px solid rgba(255,255,255,.075);background:#0d141c;margin-top:9px}.record-section>summary{list-style:none;display:grid;grid-template-columns:30px 1fr auto;align-items:center;gap:8px;padding:11px 12px;cursor:pointer}.record-section>summary::-webkit-details-marker{display:none}.record-section>summary>span{width:27px;height:27px;display:grid;place-items:center;background:#111c27;border-left:2px solid var(--module-accent);color:#fff;font-size:8px;font-weight:900}.record-section>summary>strong{font-size:11px;color:#fff}.record-section>summary>i{color:#7f8a96;font-style:normal}.record-section[open]>summary{border-bottom:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.018)}.record-section-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px}.record-section-grid label.wide{grid-column:span 2}.record-files{grid-column:1/-1!important;padding:11px;border:1px dashed rgba(255,255,255,.15);background:#080e14}.record-files small{color:#768390;font-size:8px}.record-form-actions{display:flex;align-items:center;gap:13px;margin-top:12px}.record-form-actions>button{height:42px;border:0;background:var(--module-accent);color:#fff;font-weight:900;border-radius:8px;padding:0 18px}.record-form-actions>span{color:#778490;font-size:9px;line-height:1.4;max-width:460px}
.module-record-history{padding:18px!important;background:#091017!important}.module-record-list{max-height:620px!important}.module-record-item{padding:13px 2px!important}.module-record-item strong{font-size:11px!important}.module-record-item span,.module-record-item p,.module-record-item em{font-size:9px!important}

/* V35 executive center */
.command-v35{display:grid;gap:14px;max-width:1460px;margin:0 auto;padding-bottom:100px}
.exec35-overview{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:14px 4px 12px;border-bottom:1px solid rgba(255,255,255,.08)}.exec35-overview small{font-size:9px;letter-spacing:.18em;color:#8d98a5;font-weight:850}.exec35-overview h2{font-size:28px;margin:5px 0 3px;letter-spacing:-.045em}.exec35-overview p{margin:0;color:#929da9;font-size:12px}.exec35-signal{display:grid;grid-template-columns:repeat(3,1fr);min-width:310px;border:1px solid rgba(255,255,255,.08);background:#0d141b}.exec35-signal span{display:grid;grid-template-columns:10px 1fr;gap:2px 8px;padding:11px 13px;border-right:1px solid rgba(255,255,255,.07)}.exec35-signal span:last-child{border-right:0}.exec35-signal i{grid-row:1/3;width:7px;height:7px;border-radius:50%;align-self:center}.exec35-signal b{font-size:16px;color:#fff}.exec35-signal small{letter-spacing:0;font-size:8px}.exec35-signal .red i{background:#f12d38}.exec35-signal .amber i{background:#dca027}.exec35-signal .green i{background:#36c38c}
.exec35-metrics{grid-template-columns:repeat(5,1fr)!important}.exec35-metrics .exec34-metric{min-height:92px!important;padding:14px 15px!important}.exec35-metrics .exec34-metric:nth-child(6){border-left:0!important}.exec35-primary{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(340px,.68fr);gap:14px}.exec35-semaphore,.exec35-payables{background:#0d141b;border:1px solid rgba(255,255,255,.085)}.exec35-semaphore>header,.exec35-payables>header{padding:16px 17px;border-bottom:1px solid rgba(255,255,255,.07)}.exec35-semaphore header small,.exec35-payables header small{color:#87929e;font-size:8px;letter-spacing:.15em}.exec35-semaphore header h3,.exec35-payables header h3{margin:4px 0 2px;font-size:18px}.exec35-semaphore header p{margin:0;color:#77838f;font-size:9px}.exec35-light-list{display:grid}.exec35-light{display:grid;grid-template-columns:10px minmax(0,1fr) auto 12px;gap:10px;align-items:center;min-height:47px;padding:8px 13px;border:0;border-bottom:1px solid rgba(255,255,255,.055);background:transparent;color:#fff;text-align:left}.exec35-light:last-child{border-bottom:0}.exec35-light>i{width:7px;height:7px;border-radius:50%}.exec35-light>i.red{background:#f12d38}.exec35-light>i.amber{background:#dca027}.exec35-light>i.green{background:#36c38c}.exec35-light span b{display:block;font-size:10px}.exec35-light span small{display:block;margin-top:2px;color:#77838f;font-size:8px}.exec35-light>strong{font-size:9px;white-space:nowrap}.exec35-light>em{font-style:normal;color:#9aa4ae;font-size:15px}.exec35-light:hover{background:rgba(255,255,255,.025)}
.exec35-secondary{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);gap:14px}.exec35-payables>header{display:flex;justify-content:space-between;align-items:end}.exec35-payables>header button{border:0;background:transparent;color:#ff5259;font-size:9px;font-weight:800}.exec35-payable{display:grid;grid-template-columns:minmax(0,1fr) 86px 110px;gap:12px;align-items:center;padding:12px 16px;border-bottom:1px solid rgba(255,255,255,.055)}.exec35-payable:last-child{border-bottom:0}.exec35-payable span b{display:block;color:#fff;font-size:10px}.exec35-payable span small{display:block;margin-top:3px;color:#75818d;font-size:8px}.exec35-payable time{font-size:9px;color:#b9c2cc}.exec35-payable>strong{text-align:right;color:#fff;font-size:11px}.exec35-trend{background:#0d141b!important;border:1px solid rgba(255,255,255,.085)!important}

/* New module specific components */
.quote-lab{border:1px solid rgba(255,255,255,.085);background:#0d141b;padding:0!important}.quote-lab>header{display:flex;justify-content:space-between;align-items:end;padding:17px 18px;border-bottom:1px solid rgba(255,255,255,.07)}.quote-lab header small{color:#8b96a2;font-size:8px;letter-spacing:.14em}.quote-lab header h3{margin:4px 0 2px;font-size:18px}.quote-lab header p{margin:0;color:#7f8a96;font-size:9px}.quote-lab header>strong{font-size:25px;color:#fff}.quote-calc-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;padding:14px 18px}.quote-calc-grid label{display:grid;gap:5px;color:#8f99a5;font-size:8px;font-weight:800}.quote-calc-grid input{height:40px;border:1px solid rgba(255,255,255,.1);background:#080e14;color:#fff;border-radius:7px;padding:0 10px;font:inherit}

/* Inputs should remain usable even on iPad compact widths */
@media(max-width:1260px){.record-section-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.exec35-primary{grid-template-columns:minmax(0,1.45fr) minmax(315px,.72fr)}}
@media(max-width:1050px){.record-section-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.module-record-grid{grid-template-columns:1fr!important}.module-record-form{border-right:0!important;border-bottom:1px solid var(--v35-line)!important}.exec35-primary,.exec35-secondary{grid-template-columns:1fr}.exec35-light-list{grid-template-columns:1fr 1fr}.exec35-light:nth-child(odd){border-right:1px solid rgba(255,255,255,.055)}.exec35-metrics{grid-template-columns:repeat(3,1fr)!important}}
@media(max-width:720px){.record-form-top{grid-template-columns:1fr}.record-section-grid{grid-template-columns:1fr}.record-section-grid label.wide{grid-column:auto}.exec35-overview{align-items:flex-start;flex-direction:column}.exec35-signal{min-width:0;width:100%}.exec35-metrics{grid-template-columns:repeat(2,1fr)!important}.exec35-light-list{grid-template-columns:1fr}.exec35-light:nth-child(odd){border-right:0}.quote-calc-grid{grid-template-columns:1fr 1fr}.exec35-payable{grid-template-columns:1fr auto}.exec35-payable time{display:none}}

/* V35 — jerarquía visual por módulo */
.topbar{border-bottom:1px solid color-mix(in srgb,var(--module-accent) 34%,rgba(255,255,255,.08))!important;box-shadow:inset 0 -1px 0 rgba(255,255,255,.025)!important}
.page-title{position:relative;padding-left:13px!important}
.page-title::before{content:'';position:absolute;left:0;top:3px;bottom:3px;width:3px;background:var(--module-accent);box-shadow:0 0 16px color-mix(in srgb,var(--module-accent) 36%,transparent)}
.page-title small{color:color-mix(in srgb,var(--module-accent) 74%,#cbd4dd)!important}
.page-title h1{color:#fff!important;text-shadow:0 1px 0 rgba(0,0,0,.25)!important}
.module-records>header{border-top:2px solid color-mix(in srgb,var(--module-accent) 72%,transparent)!important}
.record-section>summary:hover{background:color-mix(in srgb,var(--module-accent) 5%,#0d141c)!important}
.module-record-form input:not([type=file]),.module-record-form select,.module-record-form textarea{-webkit-touch-callout:default!important}
.module-record-form input[type=file]{position:relative!important;z-index:15!important;opacity:1!important;color:#dce4ec!important;background:#070d13!important;min-height:44px!important;padding:8px!important}
.module-record-form label{position:relative!important;z-index:3!important}
.module-record-form details[open]{z-index:4!important}
.guide-card{overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important}
.guide-card .guide-actions{min-height:70px!important}
@media(max-width:900px){.page-title h1{font-size:24px!important}.page-title small{font-size:8px!important}}

/* =========================================================
   V36 · CAPTURA REAL + COBRANZA DOCUMENTAL + GUIA DE CAMPOS
   ========================================================= */
:root{--v36-field:#0a121a;--v36-panel:#0d151e;--v36-border:rgba(255,255,255,.10)}
/* The module top accent is intentionally different per area via --module-accent */
.topbar::before{height:4px!important;background:linear-gradient(90deg,var(--module-accent) 0 24%,color-mix(in srgb,var(--module-accent) 52%,#fff 7%) 24% 42%,rgba(255,255,255,.07) 42% 100%)!important}

/* Editable workspace: no inherited overlay or click trap may cover controls */
.module-records,.module-record-grid,.module-record-form,.record-workflow,.record-work-section,.record-section-grid,.record-field,.collection-automation,.collection-automation form,.collection-form-grid{position:relative!important;pointer-events:auto!important}
.module-records{z-index:10!important;overflow:visible!important}
.module-record-form{z-index:12!important;isolation:isolate!important}
.module-record-form input,.module-record-form select,.module-record-form textarea,.module-record-form button,.module-record-form input[type=file],.collection-automation input,.collection-automation select,.collection-automation textarea,.collection-automation button{position:relative!important;z-index:14!important;pointer-events:auto!important;touch-action:manipulation!important;-webkit-user-select:auto!important;user-select:auto!important;-webkit-touch-callout:default!important;opacity:1!important}
.module-record-form input:not([type=file]),.module-record-form select,.module-record-form textarea,.collection-automation input:not([type=file]),.collection-automation select,.collection-automation textarea{background:var(--v36-field)!important;color:#f7f9fb!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:10px!important;min-height:46px!important;font-size:12px!important;line-height:1.35!important;padding:11px 12px!important;-webkit-appearance:auto!important;appearance:auto!important}
.module-record-form textarea,.collection-automation textarea{min-height:94px!important;resize:vertical!important}
.module-record-form input:focus,.module-record-form select:focus,.module-record-form textarea:focus,.collection-automation input:focus,.collection-automation select:focus,.collection-automation textarea:focus{outline:none!important;border-color:color-mix(in srgb,var(--module-accent) 75%,#fff 10%)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--module-accent) 14%,transparent)!important;background:#0c1721!important}

.module-records>header{align-items:center!important;background:linear-gradient(90deg,color-mix(in srgb,var(--module-accent) 7%,#0a1118),#0a1118 48%)!important}
.record-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.record-export{display:inline-flex;align-items:center;justify-content:center;height:34px;padding:0 11px;border:1px solid rgba(255,255,255,.12);background:#0b141d;color:#fff;text-decoration:none;font-size:9px;font-weight:850;border-radius:8px}.record-export:hover{border-color:color-mix(in srgb,var(--module-accent) 55%,rgba(255,255,255,.12));background:color-mix(in srgb,var(--module-accent) 8%,#0b141d)}
.module-record-grid{grid-template-columns:minmax(0,1.65fr) minmax(280px,.58fr)!important}.module-record-form{padding:18px!important;background:#091119!important}.record-form-top{grid-template-columns:minmax(190px,.55fr) minmax(260px,1.45fr)!important;margin-bottom:14px!important}
.record-workflow{display:grid;gap:10px}.record-work-section{border:1px solid var(--v36-border);background:var(--v36-panel);overflow:visible}.record-work-section>header{height:auto;min-height:46px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid rgba(255,255,255,.075);background:#0f1821}.record-work-section>header>div{display:flex;align-items:center;gap:9px}.record-work-section>header>div>span{width:28px;height:28px;display:grid;place-items:center;border-left:2px solid var(--module-accent);background:#13202b;color:#fff;font-size:8px;font-weight:900}.record-work-section>header strong{font-size:11px;color:#fff;letter-spacing:.01em}.record-section-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;padding:13px!important;gap:11px!important;background:#0b131b}.record-field{display:grid!important;gap:6px!important;min-width:0!important}.record-field.wide{grid-column:span 2}.record-field-title{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:7px;color:#b3bdc7!important;font-size:9px!important;font-weight:800!important}.record-field-title b{font:inherit;color:inherit}.record-field-help,.record-section-help{display:grid!important;place-items:center!important;flex:0 0 auto;width:22px!important;height:22px!important;min-width:22px!important;border-radius:50%!important;border:1px solid color-mix(in srgb,var(--module-accent) 40%,rgba(255,255,255,.12))!important;background:color-mix(in srgb,var(--module-accent) 8%,#101923)!important;color:color-mix(in srgb,var(--module-accent) 82%,#fff 18%)!important;font-weight:950!important;font-size:11px!important;padding:0!important;cursor:pointer!important}.record-section-help{width:26px!important;height:26px!important;min-width:26px!important}.record-field-help:active,.record-section-help:active{transform:scale(.94)}
.record-files{grid-column:1/-1!important;border:1px dashed rgba(255,255,255,.16)!important;background:#081017!important;padding:12px!important}.record-files>span{font-size:9px;color:#b8c1ca;font-weight:850}.record-files input[type=file]{width:100%;margin-top:7px!important;background:#0b141d!important;border:1px solid rgba(255,255,255,.1)!important;border-radius:8px!important;color:#fff!important}.record-files small{display:block;margin-top:6px;color:#7f8a96;font-size:8px}
.record-form-actions{position:sticky;bottom:8px;z-index:20;margin:13px -4px 0;padding:9px 10px;border:1px solid rgba(255,255,255,.09);background:rgba(8,15,22,.92);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-radius:10px}.record-form-actions>button{min-height:42px!important;border-radius:8px!important}.record-form-actions>span{color:#8d99a5!important}.guide-demo-writing{box-shadow:0 0 0 3px color-mix(in srgb,var(--module-accent) 20%,transparent)!important;border-color:var(--module-accent)!important}

/* Collection package */
.collection-automation{border:1px solid var(--v36-border)!important;background:#0a121a!important;padding:0!important}.collection-automation>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid rgba(255,255,255,.08);background:linear-gradient(90deg,rgba(240,43,53,.07),transparent 55%)}.collection-automation>header small{font-size:8px;letter-spacing:.16em;color:#ff6268;font-weight:900}.collection-automation h3{margin:4px 0;color:#fff;font-size:18px}.collection-automation p{margin:0;color:#98a4af;font-size:9px;line-height:1.5}.collection-automation form{padding:17px}.collection-form-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.collection-form-grid label{display:grid;gap:6px}.collection-form-grid label>span{font-size:9px;color:#aab4bf;font-weight:800}.collection-form-grid .wide{grid-column:span 5}.collection-files{padding:10px;border:1px dashed rgba(255,255,255,.15);background:#081018}.collection-files small{color:#7f8995;font-size:8px}.collection-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:12px}.collection-actions>button{height:42px;padding:0 16px;border:0;border-radius:8px;background:#2d6cdf;color:#fff;font-weight:900}.send-toggle{display:flex!important;align-items:center!important;gap:8px!important;color:#c6ced6;font-size:9px}.send-toggle input{width:18px!important;height:18px!important;min-height:18px!important}.collection-status{margin:8px 0 0;text-align:right;color:#818d98;font-size:8px}

/* Guide card must keep its actions on screen */
.guide-card{max-height:calc(100svh - 20px)!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}.guide-card>p,.guide-card>.guide-example{flex:0 0 auto}.guide-card .guide-actions{margin-top:auto!important;position:sticky!important;bottom:0!important;flex:0 0 auto!important}.guide-card #guideText{overflow:auto!important;max-height:26svh!important}.guide-card .guide-example{max-height:24svh!important;overflow:auto!important}

@media(max-width:1100px){.record-section-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.collection-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.collection-form-grid .wide{grid-column:1/-1}.module-record-grid{grid-template-columns:1fr!important}.module-record-form{border-right:0!important;border-bottom:1px solid var(--v36-border)!important}}
@media(max-width:720px){.record-form-top,.record-section-grid,.collection-form-grid{grid-template-columns:1fr!important}.record-field.wide,.collection-form-grid .wide{grid-column:auto!important}.record-head-actions{justify-content:flex-start}.collection-automation>header{flex-direction:column}.collection-actions{align-items:stretch;flex-direction:column}.collection-actions>button{width:100%}}

/* =========================================================
   V37 · EXPEDIENTE POR ETAPAS + CAMPOS EDITABLES EN SAFARI
   ========================================================= */
.record37{border:1px solid rgba(255,255,255,.09)!important;background:#091017!important;overflow:visible!important}
.record37>header{padding:18px 20px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;border-bottom:1px solid rgba(255,255,255,.08)!important;border-top:3px solid var(--module-accent)!important;background:linear-gradient(90deg,color-mix(in srgb,var(--module-accent) 6%,#0a1118),#0a1118 45%,#091017)!important}
.record37>header h3{font-size:22px!important;line-height:1.08!important;margin:5px 0 5px!important}.record37>header p{max-width:780px!important;margin:0!important;color:#8e9aa7!important;font-size:11px!important;line-height:1.55!important}
.record-head-actions{gap:9px!important}.record-general-help{height:36px!important;display:inline-flex!important;align-items:center!important;gap:7px!important;padding:0 12px!important;border:1px solid color-mix(in srgb,var(--module-accent) 42%,rgba(255,255,255,.12))!important;background:color-mix(in srgb,var(--module-accent) 7%,#0d161f)!important;color:#eef4f8!important;border-radius:8px!important;font-weight:850!important;font-size:9px!important;cursor:pointer!important}.record-general-help span{display:grid!important;place-items:center!important;width:20px!important;height:20px!important;border-radius:50%!important;background:color-mix(in srgb,var(--module-accent) 18%,#111b24)!important;color:var(--module-accent)!important;font-size:12px!important}.record-general-help b{font:inherit!important;color:inherit!important}
.record-capture-shell{display:grid!important;grid-template-columns:230px minmax(0,1fr)!important;min-width:0!important;background:#071017!important}
.record-step-rail{padding:16px 12px!important;border-right:1px solid rgba(255,255,255,.08)!important;background:#081018!important;display:flex!important;flex-direction:column!important;gap:6px!important;min-width:0!important}.record-step-intro{padding:10px 9px 13px!important;margin-bottom:3px!important;border-bottom:1px solid rgba(255,255,255,.07)!important}.record-step-intro small,.record-step-intro strong,.record-step-intro span{display:block!important}.record-step-intro small{color:var(--module-accent)!important;font-size:8px!important;font-weight:900!important;letter-spacing:.14em!important}.record-step-intro strong{margin-top:6px!important;color:#fff!important;font-size:13px!important}.record-step-intro span{margin-top:5px!important;color:#74808d!important;font-size:8px!important;line-height:1.45!important}
.record-step-button{width:100%!important;min-height:50px!important;display:grid!important;grid-template-columns:28px minmax(0,1fr) 14px!important;gap:8px!important;align-items:center!important;padding:7px 9px!important;border:1px solid transparent!important;background:transparent!important;color:#87929e!important;text-align:left!important;border-radius:7px!important;cursor:pointer!important}.record-step-button span{display:grid!important;place-items:center!important;width:26px!important;height:26px!important;border:1px solid rgba(255,255,255,.08)!important;background:#0d1720!important;color:#6f7b87!important;font-size:8px!important;font-weight:900!important}.record-step-button b{font-size:9px!important;line-height:1.25!important}.record-step-button i{font-style:normal!important;font-size:16px!important;color:#5a6672!important}.record-step-button:hover{background:#0d161f!important;color:#fff!important}.record-step-button.is-active{border-color:color-mix(in srgb,var(--module-accent) 34%,rgba(255,255,255,.08))!important;background:color-mix(in srgb,var(--module-accent) 7%,#0e1720)!important;color:#fff!important;box-shadow:inset 3px 0 0 var(--module-accent)!important}.record-step-button.is-active span{border-color:color-mix(in srgb,var(--module-accent) 45%,rgba(255,255,255,.08))!important;color:var(--module-accent)!important}
.record37-form{padding:18px 20px 0!important;background:#091119!important;min-width:0!important;isolation:isolate!important;z-index:50!important}.record37-form *{box-sizing:border-box!important}.record-form-top{display:grid!important;grid-template-columns:minmax(190px,.55fr) minmax(260px,1.45fr)!important;gap:12px!important;padding-bottom:16px!important;margin-bottom:0!important;border-bottom:1px solid rgba(255,255,255,.08)!important}.record-stage{padding:16px 0 0!important;min-height:330px!important}.record-step-panel{display:none!important;border:0!important;background:transparent!important;overflow:visible!important}.record-step-panel.is-active{display:block!important;animation:record37In .18s ease-out!important}@keyframes record37In{from{opacity:.2;transform:translateY(5px)}to{opacity:1;transform:none}}.record-step-panel>header{min-height:auto!important;padding:0 0 14px!important;margin:0!important;border:0!important;background:transparent!important}.record-step-panel>header>div{display:flex!important;gap:10px!important;align-items:flex-start!important}.record-step-panel>header>div>span{width:31px!important;height:31px!important;display:grid!important;place-items:center!important;background:#101b25!important;border-left:3px solid var(--module-accent)!important;color:#dfe6ed!important;font-size:8px!important;font-weight:950!important}.record-step-panel>header strong{display:block!important;color:#fff!important;font-size:17px!important;line-height:1.1!important}.record-step-panel>header small{display:block!important;margin-top:4px!important;color:#77838f!important;font-size:9px!important;font-weight:500!important;line-height:1.4!important}
.record-section-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px 14px!important;padding:0!important;background:transparent!important}.record-field{display:grid!important;gap:7px!important;min-width:0!important;position:relative!important;z-index:70!important}.record-field.wide{grid-column:1/-1!important}.record-field-title{display:block!important;color:#b5c0cb!important;font-size:10px!important;font-weight:800!important;letter-spacing:.01em!important}.record37-form input:not([type=file]),.record37-form select,.record37-form textarea,.collection-automation input:not([type=file]),.collection-automation select,.collection-automation textarea{display:block!important;width:100%!important;min-height:52px!important;padding:13px 14px!important;border:1px solid rgba(255,255,255,.13)!important;border-radius:7px!important;background:#0b151e!important;color:#fff!important;font-family:inherit!important;font-size:15px!important;line-height:1.35!important;outline:none!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;touch-action:auto!important;-webkit-user-select:text!important;user-select:text!important;-webkit-touch-callout:default!important;-webkit-appearance:none!important;appearance:none!important;position:relative!important;z-index:80!important;caret-color:#fff!important}.record37-form select,.collection-automation select{background-image:linear-gradient(45deg,transparent 50%,#8d99a5 50%),linear-gradient(135deg,#8d99a5 50%,transparent 50%)!important;background-position:calc(100% - 18px) 22px,calc(100% - 13px) 22px!important;background-size:5px 5px,5px 5px!important;background-repeat:no-repeat!important;padding-right:35px!important}.record37-form textarea,.collection-automation textarea{min-height:110px!important;resize:vertical!important}.record37-form input:focus,.record37-form select:focus,.record37-form textarea:focus,.collection-automation input:focus,.collection-automation select:focus,.collection-automation textarea:focus{border-color:var(--module-accent)!important;background:#0d1923!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--module-accent) 14%,transparent)!important}.record37-form input::placeholder,.record37-form textarea::placeholder{color:#697683!important;opacity:1!important}.record37-form input[type=date],.record37-form input[type=datetime-local]{color-scheme:dark!important}.record37-form input[type=file]{display:block!important;width:100%!important;min-height:54px!important;padding:9px!important;background:#0a141d!important;border:1px dashed rgba(255,255,255,.18)!important;border-radius:7px!important;color:#dce4ec!important;font-size:12px!important;pointer-events:auto!important;position:relative!important;z-index:80!important}
.record-files{grid-column:1/-1!important;display:grid!important;gap:7px!important;color:#b5c0cb!important;font-size:10px!important;font-weight:800!important}.record-files small{color:#687582!important;font-size:8px!important;font-weight:500!important}.record37-actions{position:sticky!important;bottom:0!important;z-index:95!important;display:grid!important;grid-template-columns:auto minmax(180px,1fr) auto auto!important;gap:9px!important;align-items:center!important;margin:18px -20px 0!important;padding:11px 20px calc(11px + env(safe-area-inset-bottom))!important;border-top:1px solid rgba(255,255,255,.09)!important;background:rgba(7,15,22,.94)!important;-webkit-backdrop-filter:blur(16px)!important;backdrop-filter:blur(16px)!important}.record37-actions>div span,.record37-actions>div small{display:block!important}.record37-actions>div span{font-size:9px!important;color:#aeb8c2!important}.record37-actions>div small{margin-top:3px!important;font-size:7px!important;color:#65717d!important}.record37-actions button{height:42px!important;padding:0 13px!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:7px!important;background:#101a24!important;color:#fff!important;font-size:9px!important;font-weight:900!important;cursor:pointer!important}.record37-actions button:disabled{opacity:.35!important}.record37-actions .record-save-main{background:var(--module-accent)!important;border-color:var(--module-accent)!important;color:#fff!important}.record37-history{border-top:1px solid rgba(255,255,255,.08)!important;background:#081018!important}.record37-history .module-record-history-head{padding:14px 18px!important}.record37-history .module-record-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:0 16px 16px!important}.record37-history .module-record-item{border:1px solid rgba(255,255,255,.08)!important;background:#0d151e!important;border-radius:7px!important}
/* One help for the whole capture. Legacy field bubbles are intentionally removed. */
.record37 .record-field-help,.record37 .record-section-help{display:none!important}
/* Prevent any non-guide overlay from intercepting form interaction. */
body:not(.guide-open) .guide-shade,body:not(.guide-open) .guide-focus,body:not(.guide-open) .guide-card{display:none!important;pointer-events:none!important}.record37-form label,.record37-form input,.record37-form textarea,.record37-form select{pointer-events:auto!important}
.collection-automation{border-radius:0!important}.collection-automation .record-field-help{display:none!important}.collection-automation>header{align-items:center!important}.collection-automation .collection-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.collection-automation .record-general-help{margin-left:auto!important}
@media(max-width:1050px){.record-capture-shell{grid-template-columns:190px minmax(0,1fr)!important}.record-section-grid{grid-template-columns:1fr 1fr!important}.record37-history .module-record-list{grid-template-columns:1fr!important}}
@media(max-width:760px){.record-capture-shell{display:block!important}.record-step-rail{border-right:0!important;border-bottom:1px solid rgba(255,255,255,.08)!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}.record-step-intro{grid-column:1/-1!important}.record-form-top,.record-section-grid,.collection-automation .collection-form-grid{grid-template-columns:1fr!important}.record37-actions{grid-template-columns:1fr 1fr!important}.record37-actions>div{grid-column:1/-1!important;grid-row:1!important}.record37-actions .record-save-main{grid-column:1/-1!important}.record37-form input:not([type=file]),.record37-form select,.record37-form textarea{font-size:16px!important}}

/* V37 · conexión operador → plataforma → cliente */
.pod-connected-flow{border:1px solid rgba(255,255,255,.09)!important;background:#091119!important;padding:0!important}.pod-connected-flow>header{padding:16px 18px!important;display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:16px!important;border-bottom:1px solid rgba(255,255,255,.08)!important}.pod-connected-flow header small{color:#8b96a2!important;font-size:8px!important;font-weight:900!important;letter-spacing:.14em!important}.pod-connected-flow header h3{margin:5px 0 2px!important;font-size:19px!important}.pod-connected-flow header p{margin:0!important;max-width:760px!important;color:#7c8894!important;font-size:9px!important;line-height:1.5!important}.pod-sync-status{flex:0 0 auto!important;padding:8px 10px!important;border:1px solid rgba(255,255,255,.1)!important;background:#0d1720!important;color:#d4dbe2!important;font-size:8px!important;font-weight:850!important}.pod-sync-status.ok{border-color:rgba(52,198,145,.34)!important;color:#52d6a5!important}.pod-flow-steps{display:grid!important;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr) 20px minmax(0,1fr) 20px minmax(0,1fr)!important;gap:0!important;align-items:stretch!important}.pod-flow-steps>article{display:grid!important;grid-template-columns:30px 1fr!important;gap:9px!important;padding:15px!important;min-width:0!important}.pod-flow-steps>article>span{display:grid!important;place-items:center!important;width:28px!important;height:28px!important;border-left:2px solid var(--module-accent)!important;background:#101b25!important;color:#fff!important;font-size:8px!important;font-weight:900!important}.pod-flow-steps small,.pod-flow-steps strong,.pod-flow-steps p{display:block!important}.pod-flow-steps small{color:#74808d!important;font-size:7px!important;font-weight:900!important}.pod-flow-steps strong{margin-top:3px!important;color:#fff!important;font-size:11px!important}.pod-flow-steps p{margin:4px 0 0!important;color:#72808c!important;font-size:8px!important;line-height:1.45!important}.pod-flow-steps>i{display:grid!important;place-items:center!important;color:#485461!important;font-style:normal!important;font-size:15px!important}@media(max-width:980px){.pod-flow-steps{grid-template-columns:1fr 1fr!important}.pod-flow-steps>i{display:none!important}.pod-connected-flow>header{align-items:flex-start!important;flex-direction:column!important}}

/* =========================================================
   V37.1 · CAPTURA EN DRAWER + CAMPOS NATIVOS iPAD
   ========================================================= */
.record-hub{overflow:visible!important;background:#091119!important}.record-hub>header{border-top:0!important;border-left:3px solid var(--module-accent)!important;background:#0a1219!important}.record-new{height:36px!important;padding:0 12px!important;border:1px solid color-mix(in srgb,var(--module-accent) 52%,rgba(255,255,255,.12))!important;background:color-mix(in srgb,var(--module-accent) 10%,#0c151e)!important;color:#fff!important;border-radius:7px!important;display:inline-flex!important;align-items:center!important;gap:7px!important;font-size:9px!important;font-weight:900!important;cursor:pointer!important}.record-new span{font-size:16px!important;font-weight:400!important}.record-hub-strip{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;border-bottom:1px solid rgba(255,255,255,.075)!important;background:#081018!important}.record-hub-strip article{padding:14px 17px!important;border-right:1px solid rgba(255,255,255,.065)!important;min-width:0!important}.record-hub-strip article:last-child{border-right:0!important}.record-hub-strip small{display:block!important;color:#6f7b87!important;font-size:7px!important;font-weight:900!important;letter-spacing:.13em!important}.record-hub-strip strong{display:block!important;margin:5px 0 3px!important;color:#fff!important;font-size:12px!important}.record-hub-strip strong b{font-size:18px!important;color:var(--module-accent)!important}.record-hub-strip span{display:block!important;color:#7f8b97!important;font-size:8px!important;line-height:1.45!important}.record37-history{border-top:0!important}.record37-history .module-record-list{grid-template-columns:repeat(3,minmax(0,1fr))!important}

.record-entry-layer[hidden]{display:none!important}.record-entry-layer{position:fixed!important;inset:0!important;z-index:520!important;display:grid!important;place-items:center!important;padding:22px!important;pointer-events:auto!important}.record-entry-backdrop{position:absolute!important;inset:0!important;border:0!important;background:rgba(1,6,11,.72)!important;-webkit-backdrop-filter:blur(14px)!important;backdrop-filter:blur(14px)!important;cursor:default!important}.record-entry-card{position:relative!important;z-index:2!important;width:min(1120px,calc(100vw - 44px))!important;max-height:calc(100dvh - 44px)!important;display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;background:#071017!important;border:1px solid rgba(255,255,255,.13)!important;border-top:3px solid var(--module-accent)!important;box-shadow:0 28px 80px rgba(0,0,0,.56)!important;overflow:hidden!important;transform:translateY(8px) scale(.992)!important;opacity:0!important;transition:transform .16s ease,opacity .16s ease!important}.record-entry-layer.is-open .record-entry-card{transform:none!important;opacity:1!important}.record-entry-head{min-height:84px!important;padding:15px 17px 14px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;border-bottom:1px solid rgba(255,255,255,.08)!important;background:linear-gradient(90deg,color-mix(in srgb,var(--module-accent) 7%,#091219),#091219 46%)!important}.record-entry-head small{display:block!important;color:color-mix(in srgb,var(--module-accent) 72%,#b6c0ca)!important;font-size:8px!important;font-weight:900!important;letter-spacing:.14em!important}.record-entry-head h3{margin:4px 0 3px!important;color:#fff!important;font-size:22px!important;line-height:1.04!important}.record-entry-head p{margin:0!important;color:#8995a0!important;font-size:9px!important;line-height:1.45!important}.record-entry-head-actions{display:flex!important;align-items:center!important;gap:8px!important;flex:0 0 auto!important}.record-entry-close{width:38px!important;height:38px!important;border:1px solid rgba(255,255,255,.12)!important;background:#0d1720!important;color:#fff!important;border-radius:7px!important;font-size:22px!important;line-height:1!important}.record-entry-card .record-capture-shell{min-height:0!important;display:grid!important;grid-template-columns:220px minmax(0,1fr)!important;overflow:hidden!important;background:#071017!important}.record-entry-card .record-step-rail{overflow:auto!important;-webkit-overflow-scrolling:touch!important}.record-entry-card .record37-form{min-height:0!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important;padding:18px 20px 0!important;z-index:1!important;isolation:auto!important}
/* Keep real controls native and touchable. Avoid stacking tricks that can block Safari focus. */
.record-entry-card .record37-form label,.record-entry-card .record37-form input,.record-entry-card .record37-form select,.record-entry-card .record37-form textarea,.record-entry-card .record37-form button{pointer-events:auto!important;touch-action:manipulation!important;-webkit-user-select:auto!important;user-select:auto!important;position:static!important;z-index:auto!important}.record-entry-card .record37-form input:not([type=file]),.record-entry-card .record37-form select,.record-entry-card .record37-form textarea{font-size:16px!important;-webkit-appearance:auto!important;appearance:auto!important;background:#0b151e!important;color:#fff!important;caret-color:#fff!important}.record-entry-card .record37-form select{background-image:none!important;padding-right:12px!important}.record-entry-card .record-field{position:relative!important;z-index:auto!important}.record-entry-card .record37-actions{z-index:5!important}.record-entry-open{overflow:hidden!important}.record-entry-open .floating-assist-stack{opacity:.25!important;pointer-events:none!important}

/* Brief assistant answers should look conversational, not like a report. */
.ai-answer-brief{padding:2px 0!important;border:0!important;background:transparent!important}.ai-answer-brief .ai-answer-head{padding:0!important;border:0!important;background:transparent!important}.ai-answer-brief .ai-answer-head h4{margin:0 0 8px!important;font-size:18px!important;line-height:1.18!important;color:#fff!important;letter-spacing:-.02em!important}.ai-answer-brief .ai-answer-head p{margin:0 0 7px!important;color:#e8edf2!important;font-size:12px!important;line-height:1.58!important;max-width:68ch!important}.ai-answer-brief .ai-brief-closing{color:#9ca8b4!important;font-size:10px!important}

@media(max-width:1050px){.record-hub-strip{grid-template-columns:1fr!important}.record-hub-strip article{border-right:0!important;border-bottom:1px solid rgba(255,255,255,.06)!important}.record37-history .module-record-list{grid-template-columns:1fr!important}.record-entry-card .record-capture-shell{grid-template-columns:180px minmax(0,1fr)!important}}
@media(max-width:760px){.record-entry-layer{padding:0!important}.record-entry-card{width:100%!important;max-height:100dvh!important;height:100dvh!important;border-left:0!important;border-right:0!important;border-bottom:0!important}.record-entry-head{align-items:flex-start!important}.record-entry-head p{display:none!important}.record-entry-card .record-capture-shell{display:block!important;overflow:auto!important}.record-entry-card .record-step-rail{display:flex!important;overflow-x:auto!important;padding:8px!important;border-bottom:1px solid rgba(255,255,255,.08)!important}.record-entry-card .record-step-intro{display:none!important}.record-entry-card .record-step-button{min-width:150px!important}.record-entry-card .record37-form{overflow:visible!important}.record-entry-head-actions .record-general-help b{display:none!important}}
.record-entry-layer{z-index:160!important}
/* V38 · captura realmente editable en iPad/Safari */
.record-entry-card .record37-form input:not([type=file]),
.record-entry-card .record37-form textarea,
.record-entry-card .record37-form select{
  pointer-events:auto!important;touch-action:auto!important;-webkit-user-select:text!important;user-select:text!important;
  cursor:text!important;opacity:1!important;visibility:visible!important;
}
.record-entry-card .record37-form select{cursor:pointer!important;-webkit-user-select:none!important;user-select:none!important}
.record-entry-card .record37-form input:focus,
.record-entry-card .record37-form textarea:focus,
.record-entry-card .record37-form select:focus{outline:none!important;border-color:color-mix(in srgb,var(--module-accent) 72%,#fff)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--module-accent) 14%,transparent)!important}
.record-general-help{white-space:nowrap!important}
.record-entry-head .record-general-help{min-height:38px!important}

/* V39 · respuestas directas y fluidas del asistente */
#assistant .message.ai .ai-wrap:has(.ai-answer-direct){
  background:transparent;
  border:0;
  box-shadow:none;
  padding:4px 2px 10px;
}
#assistant .ai-answer-direct{
  max-width:760px;
  padding:2px 0;
  background:transparent;
  border:0;
}
#assistant .ai-answer-direct p{
  margin:0 0 10px;
  color:#f4f7fb;
  font-size:15px;
  line-height:1.58;
  letter-spacing:-.01em;
}
#assistant .ai-answer-direct p:last-child{margin-bottom:0}
#assistant .message.ai:has(.ai-answer-direct) > strong{
  opacity:.72;
}
#assistant .message.ai:has(.ai-answer-direct) .ai-meta{
  margin-top:5px;
  opacity:.55;
}


/* =========================================================
   V40 — ESTABILIDAD VISUAL + CENTRO DE MANDO LIMPIO
   ========================================================= */
.command-v40{display:grid;gap:14px;padding:18px 18px 42px;max-width:1480px;margin:0 auto}
.exec40-brief{display:grid;grid-template-columns:minmax(0,1fr) 300px;min-height:126px;border:1px solid rgba(255,255,255,.10);border-left:4px solid #1f70c9;background:linear-gradient(105deg,#12171d,#0d1319);overflow:hidden}.exec40-brief>div:first-child{padding:22px 24px}.exec40-brief small{font-size:8px;letter-spacing:.17em;font-weight:900;color:#9ca7b2}.exec40-brief h2{margin:8px 0 7px;font-size:30px;line-height:1.05;letter-spacing:-.045em;color:#fff}.exec40-brief p{margin:0;max-width:760px;color:#aab4be;font-size:11px;line-height:1.55}.exec40-brief-counts{display:grid;grid-template-columns:repeat(3,1fr);border-left:1px solid rgba(255,255,255,.08)}.exec40-brief-counts span{display:flex;flex-direction:column;justify-content:center;padding:14px;border-left:1px solid rgba(255,255,255,.07);border-top:3px solid currentColor}.exec40-brief-counts span:first-child{border-left:0}.exec40-brief-counts i{width:7px;height:7px;border-radius:50%;background:currentColor}.exec40-brief-counts b{margin-top:7px;font-size:25px;color:#fff}.exec40-brief-counts small{margin-top:3px;font-size:7px;color:#8f9aa5}.exec40-brief-counts .red{color:#ef343c}.exec40-brief-counts .amber{color:#e0a027}.exec40-brief-counts .green{color:#3ec491}
.exec40-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.exec40-groups>article{border:1px solid rgba(255,255,255,.09);background:#0d141b}.exec40-groups header{padding:13px 15px;border-bottom:1px solid rgba(255,255,255,.07)}.exec40-groups header small{display:block;color:#7f8a96;font-size:7px;letter-spacing:.15em;font-weight:900}.exec40-groups header b{display:block;margin-top:4px;color:#fff;font-size:12px}.exec40-groups article>div{display:grid;grid-template-columns:1fr 1fr}.exec40-metric{min-height:82px;padding:13px 14px;border-right:1px solid rgba(255,255,255,.06);border-bottom:1px solid rgba(255,255,255,.06);box-shadow:inset 3px 0 0 rgba(255,255,255,.08)}.exec40-metric:nth-child(2n){border-right:0}.exec40-metric:nth-last-child(-n+2){border-bottom:0}.exec40-metric small{display:block;color:#8f9aa4;font-size:8px}.exec40-metric strong{display:block;margin-top:7px;color:#fff;font-size:20px;letter-spacing:-.04em}.exec40-metric span{display:block;margin-top:4px;color:#6f7a85;font-size:7px}.exec40-metric.green{box-shadow:inset 3px 0 0 #38b987}.exec40-metric.amber{box-shadow:inset 3px 0 0 #d59623}.exec40-metric.red{box-shadow:inset 3px 0 0 #ed2c35}
.exec40-main{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,.65fr);gap:12px}.exec40-map,.exec40-inbox,.exec40-semaphore,.exec40-payables,.exec40-trend{border:1px solid rgba(255,255,255,.09);background:#0c131a}.exec40-map>header,.exec40-inbox>header,.exec40-semaphore>header,.exec40-payables>header,.exec40-trend>header{padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.07)}.exec40-map>header,.exec40-semaphore>header,.exec40-payables>header,.exec40-trend>header{display:flex;align-items:center;justify-content:space-between;gap:14px}.exec40-map header small,.exec40-inbox header small,.exec40-semaphore header small,.exec40-payables header small,.exec40-trend header small{display:block;color:#83909c;font-size:7px;font-weight:900;letter-spacing:.15em}.exec40-map h3,.exec40-inbox h3,.exec40-semaphore h3,.exec40-payables h3,.exec40-trend h3{margin:5px 0 0;color:#fff;font-size:18px;letter-spacing:-.03em}.exec40-map header p,.exec40-inbox header p{margin:4px 0 0;color:#77838e;font-size:8px}.exec-unit-search{display:grid;grid-template-columns:minmax(150px,220px) 76px;gap:7px}.exec-unit-search input{height:38px;border:1px solid rgba(255,255,255,.11);background:#101820;color:#fff;padding:0 12px;border-radius:5px;font-size:10px}.exec-unit-search button{border:0;border-radius:5px;background:#ed2c35;color:#fff;font-weight:900;font-size:9px}.exec40-map-stage{height:420px!important;min-height:420px!important;position:relative;z-index:1!important}.exec40-map>footer{display:flex;gap:18px;padding:10px 14px;color:#83909b;font-size:8px;border-top:1px solid rgba(255,255,255,.07)}.exec40-map>footer span{display:flex;align-items:center;gap:6px}.exec40-map>footer i{width:7px;height:7px;border-radius:50%}.exec40-map>footer .green{background:#38b987}.exec40-map>footer .amber{background:#d59623}.exec40-map>footer .red{background:#ed2c35}.exec40-map>footer .gray{background:#87919d}
.exec40-inbox>header{min-height:92px}.exec40-inbox>div{display:grid}.exec40-inbox button{min-height:83px;display:grid;grid-template-columns:28px 9px minmax(0,1fr) auto 14px;gap:9px;align-items:center;padding:11px 13px;border:0;border-bottom:1px solid rgba(255,255,255,.07);background:transparent;color:#fff;text-align:left}.exec40-inbox button:last-child{border-bottom:0}.exec40-inbox button:hover{background:rgba(255,255,255,.025)}.exec40-inbox .rank{font-size:8px;color:#63707c}.exec40-inbox i{width:7px;height:7px;border-radius:50%}.exec40-inbox i.red{background:#ed2c35}.exec40-inbox i.amber{background:#d59623}.exec40-inbox button span b{display:block;font-size:10px}.exec40-inbox button span small{display:block;margin-top:4px;color:#7d8994;font-size:7px;line-height:1.35}.exec40-inbox button strong{font-size:10px}.exec40-inbox button em{font-style:normal;font-size:17px;color:#77828d}
.exec40-lower{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.55fr);gap:12px}.exec40-semaphore>header p{margin:0;color:#77838e;font-size:8px}.exec40-light-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.exec40-light{min-height:70px;display:grid;grid-template-columns:9px minmax(0,1fr) auto 12px;align-items:center;gap:8px;padding:11px 12px;border:0;border-right:1px solid rgba(255,255,255,.06);border-bottom:1px solid rgba(255,255,255,.06);background:transparent;color:#fff;text-align:left}.exec40-light:hover{background:rgba(255,255,255,.025)}.exec40-light>i{width:7px;height:7px;border-radius:50%}.exec40-light>i.green{background:#38b987}.exec40-light>i.amber{background:#d59623}.exec40-light>i.red{background:#ed2c35}.exec40-light span b{display:block;font-size:9px}.exec40-light span small{display:block;margin-top:3px;color:#76828d;font-size:7px}.exec40-light strong{font-size:8px;white-space:nowrap}.exec40-light em{font-style:normal;color:#65717d}.exec40-payables header button{border:0;background:transparent;color:#ff5c62;font-size:8px;font-weight:800}.exec40-payables>div>div{min-height:65px;display:grid;grid-template-columns:minmax(0,1fr) 84px 90px;gap:9px;align-items:center;padding:11px 14px;border-bottom:1px solid rgba(255,255,255,.07)}.exec40-payables>div>div:last-child{border-bottom:0}.exec40-payables b{display:block;color:#fff;font-size:9px}.exec40-payables small{display:block;margin-top:3px;color:#75818c;font-size:7px}.exec40-payables time{color:#9aa4ae;font-size:8px}.exec40-payables strong{text-align:right;color:#fff;font-size:9px}
.exec40-trend{overflow:visible}.exec40-chart{position:relative;height:270px;padding:10px 16px 30px 48px}.exec40-chart svg{width:100%;height:220px;overflow:visible}.exec40-chart .grid path{stroke:rgba(255,255,255,.07);fill:none}.exec40-chart .l{fill:none;stroke-width:2}.exec40-chart .l.red{stroke:#ef2e37}.exec40-chart .l.green{stroke:#38b987}.exec40-chart .l.amber{stroke:#d59623}.exec40-trend>footer{min-height:44px;display:flex;align-items:center;gap:18px;padding:8px 14px;border-top:1px solid rgba(255,255,255,.07);color:#87939f;font-size:8px}.exec40-trend>footer>span:before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px}.exec40-trend>footer .red:before{background:#ef2e37}.exec40-trend>footer .green:before{background:#38b987}.exec40-trend>footer .amber:before{background:#d59623}.exec40-trend>footer button{margin-left:auto;display:flex;gap:12px;align-items:center;border:0;background:transparent;color:#78838e;font-size:8px}.exec40-trend>footer button em{font-style:normal;color:#fff}
/* Keep maps under app overlays */
.leaflet-container,.leaflet-pane,.leaflet-control-container{z-index:auto!important}.leaflet-pane{z-index:1!important}.leaflet-top,.leaflet-bottom{z-index:20!important}
/* Record capture: use the full canvas cleanly instead of leaving an empty half */
.record-entry-layer{z-index:5000!important}.record-entry-card{width:min(1240px,calc(100vw - 36px))!important;max-height:calc(100dvh - 36px)!important;border-radius:10px!important}.record-entry-card .record-capture-shell{grid-template-columns:176px minmax(0,1fr) 238px!important;align-items:stretch!important}.record-entry-card .record37-form{padding:16px 18px 0!important;background:#081118!important}.record-entry-card .record-section-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}.record-entry-card .record-form-top{grid-template-columns:minmax(190px,.7fr) minmax(0,1.3fr)!important;gap:12px!important}.record-entry-card .record-field input,.record-entry-card .record-field select,.record-entry-card .record-field textarea{min-height:50px!important;border-radius:6px!important;background:#0b151d!important;border:1px solid rgba(255,255,255,.12)!important;color:#fff!important;font-size:14px!important}.record-entry-card .record-field textarea{min-height:118px!important}.record40-summary{padding:18px 16px;border-left:1px solid rgba(255,255,255,.08);background:#09131b;overflow:auto}.record40-summary>small{color:var(--module-accent);font-size:7px;font-weight:900;letter-spacing:.15em}.record40-summary h4{margin:8px 0 0;color:#fff;font-size:18px}.record40-summary>p{margin:8px 0 0;color:#85919c;font-size:9px;line-height:1.55}.record40-summary>div{display:grid;grid-template-columns:1fr 1fr;margin-top:16px;border:1px solid rgba(255,255,255,.08)}.record40-summary>div span{padding:12px;border-right:1px solid rgba(255,255,255,.08)}.record40-summary>div span:last-child{border-right:0}.record40-summary>div b{display:block;color:#fff;font-size:17px}.record40-summary>div small{display:block;margin-top:3px;color:#6f7b86;font-size:7px}.record40-summary ul{margin:16px 0;padding:0;list-style:none;display:grid;gap:9px}.record40-summary li{position:relative;padding-left:14px;color:#98a3ad;font-size:8.5px;line-height:1.45}.record40-summary li:before{content:'';position:absolute;left:0;top:6px;width:5px;height:5px;border-radius:50%;background:var(--module-accent)}.record40-summary .record-general-help{width:100%;justify-content:center;margin-top:8px}
.record37-actions{position:sticky!important;bottom:0!important;background:#071017!important;box-shadow:0 -10px 24px rgba(0,0,0,.25)!important}
/* Top bar must always remain above module content but below dialogs */
.topbar{z-index:1200!important}.floating-assist-stack{z-index:4500!important}
/* Guides above capture and maps */
body.guide-open .guide-card{z-index:7200!important}body.guide-open .guide-shade,body.guide-open #shadeTop,body.guide-open #shadeLeft,body.guide-open #shadeRight,body.guide-open #shadeBottom{z-index:7100!important}.guide-focus{z-index:7150!important}
@media(max-width:1180px){.exec40-groups{grid-template-columns:1fr}.exec40-main,.exec40-lower{grid-template-columns:1fr}.exec40-light-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.record-entry-card .record-capture-shell{grid-template-columns:150px minmax(0,1fr)!important}.record40-summary{display:none}.record-entry-card .record-section-grid{grid-template-columns:1fr 1fr!important}}
@media(max-width:820px){.command-v40{padding:12px 10px 36px}.exec40-brief{grid-template-columns:1fr}.exec40-brief-counts{border-left:0;border-top:1px solid rgba(255,255,255,.08)}.exec40-map-stage{height:340px!important;min-height:340px!important}.exec40-light-grid{grid-template-columns:1fr}.record-entry-card{width:100%!important;max-height:100dvh!important;height:100dvh!important}.record-entry-card .record-capture-shell{display:block!important}.record-entry-card .record37-form{padding:12px!important}.record-entry-card .record-section-grid,.record-entry-card .record-form-top{grid-template-columns:1fr!important}}
