/* Component headers must never inherit the application's floating toolbar. */
main header{position:static;inset:auto;z-index:auto;height:auto;min-height:0;margin:0;background:transparent;box-shadow:none;backdrop-filter:none;border-radius:0}
.ecosystem-heading{padding:0;border:0;margin-bottom:22px}
.capacity-card header{padding:0;border:0;align-items:flex-start}

@media(max-width:800px){
  html{scroll-padding-top:145px;-webkit-text-size-adjust:100%}
  body{font-size:16px;background:#eef2f7}
  .app-body{margin-left:0;min-width:0}
  .app-body>header{position:sticky;top:0;z-index:40;display:grid;grid-template-columns:44px minmax(0,1fr) 40px;gap:8px;height:auto;min-height:0;margin:0;padding:10px 16px 12px;border:0;border-bottom:1px solid #dce3ed;border-radius:0;background:rgba(246,249,253,.96);box-shadow:0 5px 22px #1b304908;backdrop-filter:blur(20px)}
  .menu{display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:12px;background:#e8edf4;color:#182230;font-size:22px}
  .breadcrumb{font-size:12px;line-height:1.35;letter-spacing:0;min-width:0}.breadcrumb span{margin:0 5px}.breadcrumb b{display:block;font-size:14px;font-weight:650;color:#192432}
  .header-right{display:contents}.header-right .synthetic,.header-right>.avatar{display:none}
  .header-right>.icon-button{grid-column:3;grid-row:1;width:40px;height:40px}
  .global-focus,.global-period{display:flex;gap:0;border:0;padding:0;margin:0;min-width:0;width:auto}
  .global-focus{grid-column:1/3;grid-row:2}.global-period{grid-column:3;grid-row:2;position:relative;width:140px;justify-self:end}
  .global-focus{width:calc(100% - 104px)}
  .app-body>header{padding-top:calc(10px + env(safe-area-inset-top))}
  .global-focus>span,.global-period>span{display:none}
  .global-focus select,.global-period select{font-size:13px!important;min-height:44px!important;height:44px;width:100%;min-width:0;max-width:none;padding:9px 25px 9px 12px;border:1px solid #dce3ed;border-radius:11px;background:#fff;color:#243243}
  main{padding:24px 16px 36px;width:100%;max-width:100%;overflow:clip}
  main>*{min-width:0;max-width:100%}
  .executive-home{grid-template-columns:minmax(0,1fr)}
  .executive-home>*{min-width:0;max-width:100%}
  .executive-home>.exec-head{order:-3}.executive-home>.exec-metrics{order:-2}.executive-home>.metric-basis{order:-1}
  .page-heading,.exec-head{display:flex;align-items:flex-start;flex-direction:column;gap:16px;margin-bottom:22px}
  .page-heading>div,.exec-head>div{width:100%;min-width:0}
  .page-heading h1{font-size:30px;line-height:1.14;letter-spacing:-1px;overflow-wrap:break-word}
  .exec-head h1{font-size:33px;line-height:1.1;letter-spacing:-1.5px}.exec-head h1 span{color:#77828e}
  .exec-kicker{font-size:10px;letter-spacing:1.6px;margin-bottom:12px}
  .page-heading p,.exec-head p{font-size:14px!important;line-height:1.6}
  .heading-actions,.heading-period{width:100%;min-width:0}.heading-actions>*{flex:1}
  .period-switch{display:flex;flex-wrap:nowrap;width:100%;max-width:100%;overflow-x:auto;padding:4px;margin:0;gap:3px;border-radius:12px;scroll-snap-type:x proximity}
  .period-switch button{flex:0 0 auto!important;min-height:42px;font-size:13px;padding:10px 13px;scroll-snap-align:start}
  .command-surface{grid-template-columns:minmax(0,1fr);padding:24px 20px;gap:24px;border-radius:22px;min-height:0}
  .command-copy h2{font-size:27px;line-height:1.2;letter-spacing:-.8px;margin:13px 0}.command-copy p{font-size:14px;line-height:1.65}
  .command-copy>p{display:none}.command-copy h2{font-size:24px}
  .command-copy small{font-size:10px!important;letter-spacing:1.5px}
  .ask-orbit{width:100%;min-height:52px;gap:4px;margin-top:20px;padding:4px;background:#ffffff0d;backdrop-filter:none}
  .ask-orbit span{padding-left:7px;flex-shrink:0}.ask-orbit input{min-width:0;padding:10px 6px;font-size:16px;background:transparent;border-radius:0}.ask-orbit button{width:44px;height:44px;flex-shrink:0;margin:0}
  .priority-snapshot{padding:22px 0 0;border:0;border-top:1px solid #ffffff20;grid-template-columns:52px minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:15px}
  .priority-label{grid-column:1/-1;border:0;padding:0;margin:0 0 14px;font-size:11px!important}
  .priority-snapshot strong{grid-column:1;grid-row:2;font-size:38px;line-height:1;margin:3px 0 0}
  .priority-snapshot p{grid-column:2;grid-row:2;font-size:14px;line-height:1.6}.priority-snapshot button{grid-column:2;grid-row:3;min-height:44px;margin:12px 0 0;padding:8px 0;font-size:13px;align-self:start}
  .exec-metrics,.performance-metrics,.metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border-radius:18px;overflow:hidden}
  .exec-metric,.performance-metrics .exec-metric{padding:18px 14px;min-height:130px;border-right:1px solid #dce3ed;border-bottom:1px solid #dce3ed}
  .exec-metric:last-child:nth-child(odd){grid-column:1/-1;min-height:110px}
  .exec-metric small{font-size:10px!important;letter-spacing:.8px;line-height:1.5;display:block;min-height:30px}
  .exec-metric b{font-size:27px;letter-spacing:-1px;margin-top:8px;overflow-wrap:anywhere}.exec-metric span{font-size:12px;line-height:1.5}
  .metric-basis{margin:12px 2px 24px;font-size:12px;line-height:1.6}.metric-basis button{display:inline;font-size:12px;padding:0}
  .ecosystem-intelligence{padding:20px 16px;margin-bottom:20px;border-radius:20px;backdrop-filter:none}
  .ecosystem-heading{display:flex;flex-direction:column;align-items:flex-start;gap:16px;padding:0;margin:0 0 20px;position:static;height:auto;min-height:0}
  .ecosystem-heading>div:first-child{width:100%;max-width:100%}.ecosystem-heading h2{font-size:26px;line-height:1.2;letter-spacing:-.8px;margin:9px 0}.ecosystem-heading p{font-size:14px;line-height:1.65}
  .ecosystem-heading small{font-size:10px;letter-spacing:1.5px}.ecosystem-period{flex-direction:row;align-items:center;flex-wrap:wrap;gap:8px 14px;text-align:left;white-space:normal}
  .ecosystem-focusbar{display:flex;width:100%;max-width:100%;margin:0 0 18px;overflow-x:auto;padding:4px;gap:3px;flex-shrink:0}
  .ecosystem-focusbar button{flex:0 0 auto;min-height:44px;font-size:13px;padding:10px 13px}
  .ecosystem-grid,.capacity-grid,.capacity-section:not(.focus-all) .capacity-grid{grid-template-columns:minmax(0,1fr);gap:14px}
  .ecosystem-card{padding:20px;border-radius:17px}.ecosystem-card-top{grid-template-columns:7px minmax(0,1fr) auto;gap:10px}.ecosystem-card-top small{font-size:10px!important;letter-spacing:.6px;line-height:1.4}.ecosystem-card h3{font-size:21px;margin-top:5px}.ecosystem-card-top em{font-size:9px;letter-spacing:.3px;padding:5px 6px}
  .ecosystem-card>strong{font-size:32px;margin-top:24px}.ecosystem-card>p{font-size:14px!important}.ecosystem-card-stats{margin:18px 0 16px;gap:8px}.ecosystem-card-stats b{font-size:15px}.ecosystem-card-stats span{font-size:12px!important}.ecosystem-capacity>span{font-size:12px}.ecosystem-capacity>i{height:5px}.ecosystem-services span{font-size:11px;padding:5px 7px}
  .connection-head,.card-head,.exec-card-head,.risk-head,.ledger-head,.coverage-head,.capacity-head{padding:20px;align-items:flex-start;gap:12px;flex-direction:column}
  .connection-head h3{font-size:22px;line-height:1.25}.connection-head>span{white-space:normal}.connection-list{grid-template-columns:1fr}.connection-row{padding:20px;grid-template-columns:7px minmax(0,1fr);gap:12px}.connection-row aside{grid-column:2;display:flex;align-items:center;gap:12px;text-align:left}.connection-row aside span{margin:0}.connection-row h4{font-size:16px;line-height:1.45}
  .exec-grid,.visual-grid,.grid-2,.grid-equal,.performance-grid,.sim-grid,.gen-layout,.copilot-layout,.playbook-grid,.op-grid,.compact-page .op-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
  .card,.exec-card,.forecast-card{border-radius:18px}.card-head h2,.exec-card-head h2{font-size:19px;line-height:1.3}.card-head p,.exec-card-head p{font-size:13px;line-height:1.6}.card-body{padding:20px}
  .pulse-row{grid-template-columns:22px minmax(0,1fr) 48px 22px;gap:10px;padding:19px 0}.pulse-row h3{font-size:15px;line-height:1.45}.pulse-row p{font-size:12px!important;line-height:1.5}.pulse-row .pulse-data{display:none}.pulse-score{font-size:13px}
  .nba-row{grid-template-columns:28px minmax(0,1fr)!important;gap:12px;padding:20px 16px}.nba-index{font-size:20px}.nba-row h3{font-size:17px;line-height:1.4}.nba-row p{font-size:14px;line-height:1.6}.nba-cell{margin:3px 0}.nba-cell small{font-size:11px!important}.nba-cell b{font-size:13px}.nba-actions,.nba-actions:has(.danger-action){display:flex!important;flex-wrap:wrap;gap:8px;grid-template-columns:none!important}.nba-actions button{flex:1 1 68px;min-height:44px;font-size:13px;padding:10px 8px}.nba-actions button:last-child{flex:0 0 40px}.nba-actions .badge{width:auto;white-space:normal}
  .history-row{grid-template-columns:42px minmax(0,1fr);gap:10px;padding:20px 16px}.history-row h3{font-size:16px}.history-row p{font-size:13px!important}.history-row .history-owner{display:block;grid-column:2}.history-row>strong{display:block;grid-column:2;text-align:left}.history-status{grid-column:2;justify-self:start}
  .risk-summary,.ledger-kpis,.coverage-kpis{display:flex;flex-wrap:wrap;gap:16px;width:100%}.risk-summary span{min-width:70px}.risk-summary b{font-size:19px}.risk-head h2,.ledger-head h2,.coverage-head h2,.capacity-head h2{font-size:24px;line-height:1.25}
  .risk-table,.ledger-table{overflow:visible}.risk-labels,.ledger-labels{display:none!important}
  .risk-row,.ledger-row{min-width:0;width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:20px;align-items:start}
  .risk-row>span,.ledger-row>span{display:block!important;min-width:0;line-height:1.5}.risk-row>span:first-child,.ledger-row>span:first-child{grid-column:1/-1}.risk-row b,.ledger-row span>b{font-size:16px;line-height:1.4}.risk-row small,.ledger-row small,.ledger-row em{font-size:12px!important;line-height:1.5}.risk-row>span:nth-child(2){grid-column:1/-1}.risk-row>span:last-child{grid-column:1/-1;font-size:18px!important;font-weight:700}.risk-row>span:last-child:before{content:'Receita exposta · ';font-size:12px;font-weight:400;color:#6d7887}.ledger-row>span:last-child{font-weight:700;font-size:17px!important}.vertical-tags i{font-size:11px!important}
  .coverage-tabs{padding:12px 16px;overflow-x:auto;max-width:100%}.coverage-tabs button{min-height:44px;flex-shrink:0;font-size:12px}
  .coverage-matrix{overflow:visible}.coverage-labels{display:none}.coverage-row{min-width:0;grid-template-columns:1fr 1fr;padding:18px 16px;gap:9px}.coverage-account{grid-column:1/-1;padding:0 0 9px}.coverage-account b{font-size:17px}.coverage-cell{padding:12px 10px 12px 23px}.coverage-cell>i{top:17px}.coverage-cell b{font-size:12px!important;line-height:1.4}.coverage-cell small{font-size:11px!important;line-height:1.5}.coverage-cell:nth-child(2):before{content:'Tributtax'}.coverage-cell:nth-child(3):before{content:'Renttax'}.coverage-cell:nth-child(4):before{content:'TTjus'}.coverage-cell:nth-child(5):before{content:'TT Academy'}.coverage-cell:before{display:block;font-size:11px;font-weight:700;color:#586678;margin-bottom:7px}
  .capacity-grid{padding:16px}.capacity-card{padding:20px}.capacity-card header{position:static;display:flex;justify-content:space-between;gap:12px;min-height:0;height:auto;padding:0;margin:0;border:0;box-shadow:none;background:transparent;backdrop-filter:none}.capacity-card h3{font-size:20px}.capacity-legend span{font-size:13px!important;gap:8px;padding:3px 0}.capacity-card footer b{font-size:14px}
  .outcome-flow{grid-template-columns:1fr;gap:12px;padding:16px}.outcome-step{display:grid;grid-template-columns:52px 1fr;gap:2px 12px;padding:16px}.outcome-step b{grid-row:1/3;font-size:28px;align-self:center}.outcome-step span{margin:0;font-size:14px!important}.outcome-step small{font-size:12px!important}.outcome-step:after{display:none}
  .revenue-chart{height:240px;padding-right:12px}.bars{gap:7px}.bar-group>b{font-size:10px}.legend-inline{flex-wrap:wrap;line-height:1.5}.learning-strip{grid-template-columns:1fr;padding:22px;gap:14px}
  .table-wrap{overflow:auto;overscroll-behavior-x:contain}table{min-width:620px}th{padding:14px 16px}td{padding:16px}.generated-document table{min-width:0;display:block;overflow:auto}
  table.mobile-records{display:block;min-width:0;width:100%}table.mobile-records thead{display:none}table.mobile-records tbody{display:block;width:100%}table.mobile-records tr{display:block;border-bottom:1px solid #dce3ed;padding:18px 20px}table.mobile-records td,.activity-card table.mobile-records td{display:block;border:0;padding:7px 0;font-size:14px;width:100%}table.mobile-records td:before{content:attr(data-label);display:block;font-size:10px;letter-spacing:.8px;font-weight:700;color:#6d7887;margin-bottom:5px}table.mobile-records .company-cell{min-width:0}table.mobile-records .company-cell strong{font-size:15px}
  .time-toolbar{padding:12px;gap:12px}.view-tabs button{min-height:44px;font-size:13px}.period-control{gap:10px}.period-control select{min-height:44px;font-size:14px}.period-control>span{font-size:10px!important;max-width:90px}
  .toolbar{gap:10px}.toolbar .search,.toolbar select{width:100%;min-width:0;max-width:none;font-size:16px}.result-count{margin-left:0}
  .generated-document{padding:22px 18px}.generated-document .doc-top{flex-direction:column;gap:12px}.generated-document h2{font-size:25px}.generated-document p,.generated-document li{font-size:15px;line-height:1.75}.gen-controls button{min-height:48px;font-size:14px}
  .gen-controls button{border-radius:12px}.forecast-head{gap:12px;align-items:flex-start}.forecast-head>div{min-width:0}.confidence-pill{flex-shrink:0;max-width:88px;white-space:normal;font-size:12px;line-height:1.45;padding:8px 10px;border-radius:10px}.forecast-factors{flex-wrap:wrap;gap:7px}.forecast-factors span{font-size:12px;padding:6px 8px}.layer-strip{border-radius:16px;overflow:hidden}
  .graph-stage{min-height:420px}.graph-node{width:78px;height:78px;font-size:10px}.graph-node b{font-size:11px}.graph-core{width:88px;height:88px;font-size:12px}
  .notice{font-size:13px;line-height:1.6;padding:14px;overflow-wrap:anywhere}.source-health{grid-template-columns:1fr 1fr}.app-footer{flex-direction:column;gap:9px;padding:0 20px 26px;font-size:11px!important}
  .primary,.secondary,.ghost,.danger,.tab{min-height:44px;font-size:14px}.drawer{width:100%;padding:28px 20px 36px;border-radius:22px 22px 0 0;max-height:94dvh;margin-top:auto}.drawer h2{font-size:28px;line-height:1.2;padding-right:24px}.drawer p{font-size:15px;line-height:1.7}.close{width:40px;height:40px;top:12px;right:12px}.detail-grid{gap:10px}.detail-box{padding:14px}.detail-box strong{font-size:17px}.custom-date-grid{grid-template-columns:1fr}.action-bar>*{flex:1 1 130px}
  input,textarea{font-size:16px!important}input[type=range]{min-height:40px}button,select,a{touch-action:manipulation}.formula{overflow-wrap:anywhere}
  #sidebar{position:fixed;top:0;left:0;bottom:0;width:min(320px,86vw);height:100dvh;max-height:100dvh;border-radius:0 22px 22px 0;z-index:110;transform:translateX(-105%);transition:transform .24s ease;padding:25px 18px 0;overflow-y:auto;background:#121923}
  #sidebar.open{transform:translateX(0)}#sidebar nav a{font-size:15px;min-height:50px}#sidebar .sidebar-bottom{padding-top:20px}#sidebar .system-health{padding:14px 8px}.person{padding-bottom:24px}
  .nav-scrim{position:fixed;inset:0;z-index:105;background:#07101d88;backdrop-filter:blur(5px);border:0;padding:0}
  body.mobile-nav-open{overflow:hidden}
  #toast{bottom:calc(20px + env(safe-area-inset-bottom));font-size:13px;padding:13px 18px;border-radius:14px;width:max-content;max-width:calc(100vw - 32px)}
  .login{display:flex;flex-direction:column;gap:0;padding:0;background:#eef2f7}.manifesto{border-radius:0;padding:28px 24px 24px;min-height:0}.manifesto-body{padding-top:24px}.manifesto h1{font-size:36px;letter-spacing:-1.5px;line-height:1.1;margin:16px 0}.manifesto p{font-size:14px;line-height:1.65}.orbit-visual,.manifesto footer{display:none}.manifesto .brand{font-size:23px}.signin{padding:28px 24px 36px;border-radius:24px 24px 0 0;margin-top:-1px;box-shadow:none;backdrop-filter:none;border:0}.signin h2{font-size:30px;letter-spacing:-1px}.signin input{min-height:52px;font-size:16px}.signin small{font-size:12px}.signin .pill{font-size:10px!important;white-space:normal}
}
@media(max-width:360px){.exec-metric b{font-size:23px;white-space:nowrap}.ecosystem-card-top{grid-template-columns:7px minmax(0,1fr)}.ecosystem-card-top em{grid-column:2;justify-self:start}.global-period{width:126px}.global-focus{width:calc(100% - 90px)}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
