/* Shared chrome and scoped Enterprise surfaces are cosmetic only. */
.sidebar{background:#fff;color:#475569;border-right:1px solid #edf0f8;padding-top:24px}
.brand{border-color:#edf0f8}.brand strong{color:#172554}.brand-mark{border-radius:12px;background:linear-gradient(135deg,#2563eb,#7c3aed);box-shadow:0 5px 15px #6366f126}.brand small,.side-meta{color:#64748b}.side-meta{border-color:#edf0f8}
.nav{gap:6px}.nav button{position:relative;color:#475569;border-radius:12px;padding:12px 10px}.nav button:hover{color:#4338ca;background:#f4f5ff}.nav button.active{color:#4338ca;background:#eef0ff}.nav button.active:before{content:"";position:absolute;left:0;top:25%;height:50%;width:3px;border-radius:4px;background:linear-gradient(#22d3ee,#7c3aed)}
.nav-icon svg{width:18px;height:18px}
.contextbar{border-color:#edf0f8;gap:10px}.contextbar select,.contextbar .ts-control{border-radius:999px;border-color:#e2e8f0;background:#fff}.contextbar .ts-dropdown{border-radius:14px;overflow:hidden}.contextbar .ts-control{padding-left:14px}.context-actions .btn{border-radius:999px;font-size:12px}.context-actions .btn.primary{background:#4f46e5;border-color:#4f46e5}.context-fields .field>span{letter-spacing:.025em;font-size:9px}
.contextbar{display:block}.context-fields{display:grid;grid-template-columns:minmax(130px,1fr) minmax(210px,1.6fr) 80px 100px 80px minmax(155px,1.2fr);gap:8px}.context-fields .field,.context-fields .field.unit,.context-fields .field.province{min-width:0}.context-actions{justify-content:flex-end;margin-top:8px}
@media(max-width:1250px){.context-fields{grid-template-columns:repeat(6,minmax(0,1fr))}.context-fields .field.province{grid-column:span 2}.context-fields .field.unit{grid-column:span 4}.context-fields .field:last-child{grid-column:span 3}}
@media(max-width:760px){.context-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.context-fields .field.province{grid-column:span 1}.context-fields .field.unit{grid-column:span 2}.context-fields .field:last-child{grid-column:1/-1}}
.bento-mode{background:#f4f7fe;min-height:100vh}.bento-mode .content{padding-top:18px}.bento-heading{margin-bottom:10px}.bento-kicker{font-size:10px;color:#6366f1;font-weight:800;letter-spacing:.1em}.bento-heading h1{margin:4px 0 5px;font-size:clamp(21px,2vw,29px);line-height:1.25;letter-spacing:-.035em;color:#172554}.bento-heading p{margin:0;color:#64748b;font-size:12px}.bento-heading p>span{margin:0 6px;color:#94a3b8}
.bento-status{margin-bottom:18px;color:#64748b;font-size:11px}.bento-status summary{cursor:pointer;list-style:none;display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;min-height:30px}.bento-status summary::-webkit-details-marker{display:none}.status-timestamps>span{margin:0 6px;color:#94a3b8}.status-chips{display:flex;flex-wrap:wrap;gap:5px}.status-toggle{margin-left:auto;color:#4f46e5;font-weight:600}.status-explanation{padding:10px 14px;margin-top:8px;background:#fff;border:1px solid #e8edf8;border-radius:14px;line-height:1.6}.status-explanation p{margin:3px 0}.bento-status summary:focus-visible{outline:2px solid #6366f1;outline-offset:4px;border-radius:8px}
.bento-top{display:grid;grid-template-columns:minmax(300px,5fr) minmax(0,7fr);gap:18px;align-items:stretch}.bento-card{min-width:0;background:#fff;border:1px solid #edf1fb;border-radius:24px;box-shadow:0 10px 40px -10px rgba(30,41,59,.07);padding:22px}.bento-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.bento-card-head h2{margin:0;color:#172554;font-size:19px;font-weight:750;letter-spacing:-.025em}.bento-card-head p{margin:5px 0 0;font-size:12px;line-height:1.5;color:#8291af}.bento-mode .badge{border-radius:999px;white-space:nowrap}
.hero-card{display:flex;flex-direction:column;position:relative;overflow:hidden;background:radial-gradient(ellipse at 20% 50%,#e6fbff80,transparent 52%),radial-gradient(ellipse at 95% 30%,#f4ecff80,transparent 50%),#fff}.hero-gauge{position:relative;width:min(340px,100%);margin:auto;flex:1;display:grid;align-items:center}.radial-gauge{display:block;width:100%;filter:drop-shadow(0 4px 12px #818cf815)}.gauge-number{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;padding-top:8px}.gauge-number strong{font-size:clamp(42px,4vw,60px);line-height:1.1;font-weight:800;letter-spacing:-.045em;color:#0f172a;font-variant-numeric:tabular-nums}.gauge-number span{margin-top:8px;font-size:12px;color:#8291af}.hero-comparison{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px 0;border-top:1px solid #edf0f8;text-align:center}.hero-comparison>div{display:grid;gap:5px}.hero-comparison>div+div{border-left:1px solid #edf0f8}.hero-comparison span,.hero-comparison small{font-size:11px;color:#8291af}.hero-comparison strong{font-size:18px;font-variant-numeric:tabular-nums}.hero-footer{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#64748b;padding-top:10px;border-top:1px solid #edf0f8}
.bento-pillars{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.pillar-card{text-align:left;color:#0f172a;padding:16px 18px;border-radius:20px;cursor:pointer;transition:box-shadow .18s,transform .18s,border-color .18s;font-variant-numeric:tabular-nums}.pillar-card:hover{transform:translateY(-2px);border-color:#c7d2fe;box-shadow:0 12px 28px -10px #6366f135}.pillar-card.selected{border-color:var(--pillar-color);box-shadow:0 0 0 2px color-mix(in srgb,var(--pillar-color) 12%,transparent)}.pillar-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.pillar-heading h3{margin:0;font-size:12px;font-weight:650;color:#64748b;line-height:1.45}.bento-icon{display:inline-grid;place-items:center;width:36px;height:36px;flex-shrink:0;border-radius:12px;background:#eef2ff;color:#6366f1}.bento-icon svg{width:21px;height:21px}.pillar-card .bento-icon{color:var(--pillar-color);background:color-mix(in srgb,var(--pillar-color) 9%,white)}.pillar-score{display:flex;gap:7px;align-items:baseline;margin:7px 0}.pillar-score strong{font-size:29px;letter-spacing:-.04em;line-height:1.1}.pillar-score>span{font-size:11px;color:#8291af}.pillar-meta,.pillar-bottom{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:#8291af;line-height:1.5}.pillar-meta{margin-bottom:10px}.pillar-progress{height:9px;border-radius:999px;background:color-mix(in srgb,var(--pillar-color) 10%,#f8fafc);overflow:hidden}.pillar-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,color-mix(in srgb,var(--pillar-color) 65%,white),var(--pillar-color))}.pillar-bottom{margin-top:6px}
.bento-charts{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:18px;margin-top:18px;font-variant-numeric:tabular-nums}.chart-legend{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px;margin:18px 0 4px;font-size:10px;color:#64748b}.chart-legend span{display:flex;align-items:center;gap:5px}.chart-legend i{width:7px;height:7px;border-radius:50%}.trend-svg{display:block;width:100%;min-height:160px}.trend-svg text{font-size:10px;fill:#8291af}.bento-footnote{margin:10px 0 0;font-size:10px;color:#8291af;line-height:1.6}.composition-stack{display:flex;height:12px;border-radius:999px;overflow:hidden;background:#f1f5f9;margin:20px 0 15px}.composition-stack i{height:100%}.composition-list>div{display:grid;grid-template-columns:minmax(0,1fr) auto 42px;align-items:center;gap:10px;padding:8px 0;color:#64748b;font-size:11px}.composition-label{display:flex;align-items:center;gap:8px}.composition-label i{width:7px;height:7px;border-radius:50%;flex-shrink:0}.composition-list strong{color:#334155;font-size:12px}.composition-list small{font-weight:400;color:#8291af}.composition-list>div>span:last-child{text-align:right}
.bento-insights .panel{border-radius:22px;border-color:#edf0f8;box-shadow:0 10px 40px -10px #1e293b12;overflow:hidden}.insight-warning{background:#fff7f8}.insight-strength{background:#f6f5ff}.bento-insights .panel-head{border-color:#e9e9f3}.bento-insights h2{display:flex;align-items:center;gap:8px;color:#172554}.insight-warning .bento-icon{background:#ffe9ed;color:#e11d48}.insight-strength .bento-icon{background:#ede9fe;color:#7c3aed}.bento-insights .mini-ticket strong{line-height:1.5}.bento-insights .mini-ticket p{line-height:1.6}.bento-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:165px;text-align:center;color:#8291af;font-size:11px}.bento-empty>svg{width:36px;height:36px;color:#a5b4fc}.bento-empty strong{color:#475569;font-size:13px}.bento-empty span{max-width:290px;line-height:1.6}
@media(min-width:1500px){.hero-gauge{width:365px}.pillar-card{padding:20px}.pillar-score{margin:10px 0}.pillar-score strong{font-size:33px}}
@media(max-width:1000px){.bento-top{grid-template-columns:1fr}.hero-card{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:10px 24px}.hero-card .bento-card-head{grid-column:1/-1}.hero-gauge{grid-row:2/4;margin:0 auto;max-width:285px}.hero-comparison{grid-template-columns:1fr;border:0}.hero-comparison>div+div{border-left:0}.hero-footer{grid-column:2;flex-direction:column}.bento-pillars{grid-template-columns:repeat(3,minmax(0,1fr))}.bento-charts{grid-template-columns:1fr}.status-toggle{margin-left:0}}
@media(max-width:600px){.bento-mode .content{padding:16px 12px 40px}.bento-heading h1{font-size:22px}.bento-status summary{gap:8px}.status-timestamps{width:100%;font-size:10px}.bento-pillars{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pillar-card{padding:13px;border-radius:18px}.pillar-heading h3{font-size:11px}.pillar-card .bento-icon{width:29px;height:29px;border-radius:9px}.pillar-score strong{font-size:25px}.pillar-meta,.pillar-bottom{font-size:9px;flex-wrap:wrap}.hero-card{display:flex;padding:20px}.hero-comparison{width:100%;grid-template-columns:1fr 1fr}.hero-footer{width:100%;flex-direction:row}.hero-gauge{max-width:270px;width:100%;margin:0 auto}.bento-card-head h2{font-size:17px}.bento-charts .bento-card{padding:18px}.bento-insights{grid-template-columns:1fr}.contextbar .context-fields{gap:8px}.context-actions{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.pillar-card{transition:none}.pillar-card:hover{transform:none}}
/* Keep the unchanged detail tables scrolling inside their own container. */
.bento-mode .detail-columns>*{min-width:0}
@media(max-width:900px){.bento-mode .detail-columns{grid-template-columns:minmax(0,1fr)}}
.bento-heading{display:flex;align-items:center;justify-content:space-between;gap:10px 24px;flex-wrap:wrap;margin-bottom:12px}.bento-heading h1{margin:0;flex:1;min-width:200px}.bento-heading p{margin:0;text-align:right;max-width:48%;line-height:1.5}
.gauge-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 12px;font-size:9px;color:#64748b;margin:0 0 13px}.gauge-legend span{display:flex;align-items:center;gap:4px}.gauge-legend i{width:6px;height:6px;border-radius:50%}
.hero-card .badge.info{background:#f0f9ff;border-color:#bae6fd;color:#0369a1}
.chart-legend{justify-content:flex-start;gap:6px;margin-top:16px}.chart-legend button{display:flex;align-items:center;gap:5px;border:1px solid #e8edf8;background:#fff;color:#475569;border-radius:999px;padding:6px 9px;font-size:10px;text-align:left}.chart-legend button[aria-pressed="false"]{opacity:.55;background:#f1f5f9;text-decoration:line-through}.chart-legend button:focus-visible{outline:2px solid #6366f1;outline-offset:2px}.trend-svg [hidden]{display:none}
@media(max-width:600px){
 .bento-heading{gap:6px}.bento-heading h1{font-size:20px}.bento-heading p{max-width:100%;flex-basis:100%;font-size:11px}
 .bento-mode #group-detail .panel-head{flex-wrap:wrap;gap:10px;padding:14px}.bento-mode #group-detail .detail-summary{display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px;width:100%;text-align:left}.bento-mode #group-detail .detail-summary strong{font-size:19px}.bento-mode #group-detail .detail-summary .text-button{margin:0}.bento-mode #group-detail .detail-summary span{margin:0}
 .bento-mode #group-detail .detail-columns{padding:10px;gap:12px}.bento-mode #group-detail .detail-metrics-card,.bento-mode #group-detail .comparison-card{padding:10px}.bento-mode #group-detail .table-wrap{border:0;overflow:visible;background:transparent}
 .bento-mode #group-detail table{display:block;min-width:0;width:100%;font-variant-numeric:tabular-nums}
 .bento-mode #group-detail thead{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
 .bento-mode #group-detail tbody,.bento-mode #group-detail tfoot{display:grid;gap:10px;width:100%}
 .bento-mode #group-detail tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px;padding:12px;background:#fff;border:1px solid #e2e8f0;border-radius:12px}
 .bento-mode #group-detail td{display:flex;flex-direction:column;align-items:flex-end;gap:3px;padding:0!important;border:0!important;min-width:0;max-width:none!important;font-size:12px;white-space:normal;overflow-wrap:anywhere;text-align:right;background:transparent!important}
 .bento-mode #group-detail td::before{content:attr(data-mobile-label);font-size:9px;line-height:1.4;letter-spacing:.02em;color:#64748b;font-weight:500;text-align:right}
 .bento-mode #group-detail td:first-child{grid-column:1/-1;align-items:flex-start;text-align:left;font-weight:650;line-height:1.5;padding-bottom:6px!important;border-bottom:1px solid #edf0f8!important}
 .bento-mode #group-detail td:first-child::before{display:none}.bento-mode #group-detail td[colspan]:not(:first-child){grid-column:1/-1}
 .bento-mode #group-detail tr.selected{border-color:#a5b4fc;background:#f5f7ff}.bento-mode #group-detail .row-link{font-size:12px;line-height:1.5}.bento-mode #group-detail .metric-note{font-size:10px;line-height:1.5}
 .bento-mode #group-detail tfoot{margin-top:10px}.bento-mode #group-detail tfoot tr{background:#eef2ff;border-color:#c7d2fe}
 .bento-mode #group-detail .progress-kpis{gap:7px}.bento-mode #group-detail .progress-kpis article{padding:10px;min-width:0}.bento-mode #group-detail .progress-kpis strong{font-size:16px}
 .chart-legend button{font-size:9px;min-height:32px}.trend-svg{min-height:180px}.hero-card .hero-gauge{grid-row:auto}.hero-card .gauge-legend{grid-column:1/-1}
}
@media(min-width:601px) and (max-width:1000px){.hero-card .hero-gauge{grid-row:2/5}.hero-card .gauge-legend{grid-column:2;margin:0}.hero-card .hero-comparison{grid-column:2}}
@media(max-width:600px){.bento-mode #group-detail .progress-table tbody td:nth-child(4){grid-column:1/-1;align-items:flex-start;text-align:left}.bento-mode #group-detail .progress-table tbody td:nth-child(4)::before{text-align:left}}

/* Read-only formula handbook: scoped so data-table layout is unchanged. */
.formula-page{max-width:1200px;margin:auto;color:#0f172a;font-variant-numeric:tabular-nums}
.formula-context{display:flex!important;justify-content:space-between;gap:14px;padding:18px 24px!important;min-height:64px}.formula-context strong{font-size:14px}.formula-context span{font-size:12px;color:#64748b;margin-left:auto}
.formula-intro,.formula-principles{background:white;border:1px solid #edf0f8;border-radius:20px;padding:24px;margin:18px 0;box-shadow:0 10px 40px -10px #0f172a0d}
.formula-page h2{font-size:19px;line-height:1.4;margin:10px 0}.formula-page p,.formula-page li{font-size:13px;line-height:1.75;color:#475569}
.formula-index{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
.formula-index a{display:grid;grid-template-columns:32px 1fr;gap:4px 12px;align-items:center;padding:16px;background:white;border:1px solid #edf0f8;border-radius:16px;text-decoration:none;color:#0f172a}
.formula-index a:hover,.formula-index a:focus-visible{border-color:var(--formula-color);box-shadow:0 5px 20px #0f172a08}.formula-index svg{width:27px;color:var(--formula-color);grid-row:1/3}.formula-index span{font-weight:650;font-size:13px}.formula-index small{color:#64748b;font-size:11px}
.formula-principles ol{padding-left:20px}.formula-principles li+li{margin-top:8px}
.formula-group{scroll-margin-top:120px;margin:32px 0}.formula-group>header{display:flex;align-items:center;gap:14px;margin-bottom:16px}.formula-group>header .bento-icon{color:var(--formula-color);background:white;flex-shrink:0}.formula-group>header h2,.formula-group>header p{margin:0}
.formula-card{background:white;border:1px solid #edf0f8;border-radius:20px;padding:22px;margin-bottom:14px;box-shadow:0 10px 30px -15px #0f172a15}
.formula-card-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.formula-card-heading h3{font-size:15px;line-height:1.5;flex:1;min-width:180px;margin:0}.formula-code{background:#f1f5f9;color:var(--formula-color);font-size:12px;font-weight:700;border-radius:9px;padding:8px}
.formula-equation{display:flex;align-items:center;justify-content:center;gap:16px;background:#f8faff;border-radius:14px;padding:20px;margin:20px 0;font-size:13px;line-height:1.6}.formula-equation>span:first-child,.formula-equation>span:last-child{flex-shrink:0}.formula-fraction{display:flex;flex-direction:column;text-align:center;max-width:650px}.formula-fraction>span:first-child{padding:0 12px 9px;border-bottom:1px solid #94a3b8}.formula-fraction>span:last-child{padding:9px 12px 0}
.formula-card ul{padding-left:20px}.formula-card li+li{margin-top:6px}.formula-scoring{color:#166534!important}.formula-caution{background:#fffbeb;border-radius:12px;padding:14px 16px;margin-top:16px}.formula-caution strong{font-size:12px;color:#92400e}.formula-caution p{margin:4px 0 0;color:#92400e}
.formula-footer{font-size:12px;line-height:1.7;color:#64748b;padding:10px 0 24px}.formula-inline{border:1px solid #e2e8f0;border-radius:12px;margin:12px 0;padding:12px 14px;font-size:12px;line-height:1.7;background:#f8faff}.formula-inline summary{cursor:pointer;font-weight:650;color:#4338ca}.formula-inline p{margin:8px 0;color:#475569}
@media(max-width:800px){.formula-index{grid-template-columns:repeat(2,minmax(0,1fr))}.formula-card{padding:16px}.formula-equation{gap:10px;font-size:12px;flex-wrap:wrap}.formula-fraction{max-width:100%}.formula-intro,.formula-principles{padding:18px}}
@media(max-width:500px){.formula-index{gap:8px}.formula-index a{padding:12px;grid-template-columns:24px 1fr;gap:4px 8px}.formula-index svg{width:22px}.formula-index span{font-size:11px}.formula-index small{font-size:10px}.formula-equation{padding:15px 10px}.formula-card-heading .badge{margin-left:44px}.formula-page h2{font-size:17px}.bento-mode .nav{display:flex;overflow-x:auto}.bento-mode .nav button{flex:0 0 58px}}

/* One visual language across screens. Do not change columns, rows or data. */
.enterprise-mode{--bg:#f4f7fe;--surface-2:#f8faff;--line:#e8edf7;--blue:#4f46e5;--blue-2:#eef2ff;background:var(--bg);font-family:Inter,"Segoe UI",Arial,sans-serif;line-height:1.5}
.enterprise-mode .num{font-family:inherit;font-variant-numeric:tabular-nums;letter-spacing:-.015em}
.enterprise-mode .panel,.enterprise-mode .quality-card,.enterprise-mode .sample-card,.enterprise-mode .ticket{border-color:#e8edf7;border-radius:22px;box-shadow:0 10px 40px -12px #1e293b12}
.enterprise-mode .panel-head{padding:20px 22px;border-color:#edf0f8}.enterprise-mode .panel-head h2{font-size:16px;letter-spacing:-.02em;color:#172554}.enterprise-mode .panel-head p{line-height:1.6}.enterprise-mode .panel-body{padding:22px}
.enterprise-mode .page-head h1{color:#172554;letter-spacing:-.035em;font-size:27px}.enterprise-mode .page-head .eyebrow{color:#6366f1}.enterprise-mode .head-note{line-height:1.6}
.enterprise-mode .detail-columns{padding:20px;gap:18px;min-width:0}.enterprise-mode .detail-columns>*{min-width:0}.enterprise-mode .detail-metrics-card,.enterprise-mode .comparison-card{background:#f8faff;border:1px solid #edf0f8;border-radius:18px;padding:18px}.enterprise-mode .detail-columns h3{font-size:14px;line-height:1.5;color:#172554}
.enterprise-mode .table-wrap{border:1px solid #e8edf7;border-radius:14px;background:white;min-width:0;max-width:100%}.enterprise-mode .table-wrap table{font-variant-numeric:tabular-nums}.enterprise-mode .table-wrap th{background:#f8faff;color:#64748b;font-size:10px;font-weight:650;line-height:1.5;letter-spacing:.025em;padding:13px 12px;border-color:#e8edf7}.enterprise-mode .table-wrap td{font-family:inherit;font-size:12px;line-height:1.65;padding:12px;border-color:#edf0f8}.enterprise-mode .table-wrap tbody tr:hover td{background:#f6f8ff}.enterprise-mode .table-wrap tr.mine td,.enterprise-mode .table-wrap tr.selected td{background:#eef2ff}.enterprise-mode .metric-table tfoot td{background:#eef2ff;border-top:1px solid #dfe5f9;color:#172554}.enterprise-mode .metric-table tfoot .lost{color:#b91c1c}
.enterprise-mode .row-link,.enterprise-mode .text-button{font-size:12px;line-height:1.5;font-weight:650;color:#4f46e5}.enterprise-mode .peer-row{line-height:1.6;border-color:#e8edf7}.enterprise-mode .comparison-kpi{border-color:#e8edf7;padding:12px 0}.enterprise-mode .comparison-kpi strong{font-size:20px}.enterprise-mode .detail-summary strong{font-size:24px;letter-spacing:-.025em}
.enterprise-mode .metric-table:not(.progress-table){min-width:0;table-layout:fixed}.enterprise-mode .metric-table:not(.progress-table) th:first-child{width:35%}.enterprise-mode .metric-table:not(.progress-table) th,.enterprise-mode .metric-table:not(.progress-table) td{padding-left:6px;padding-right:6px;overflow-wrap:anywhere;white-space:normal}.enterprise-mode .metric-table:not(.progress-table) td:first-child{padding-left:12px}.enterprise-mode .metric-table:not(.progress-table) td.num{white-space:nowrap}.enterprise-mode .metric-table:not(.progress-table) td[colspan]{white-space:normal}
.enterprise-mode .progress-kpis article{border-radius:14px;background:#fff;border-color:#e8edf7;padding:16px}.enterprise-mode .progress-kpis strong{font-size:22px}.enterprise-mode .progress-kpis span{font-size:11px}
.enterprise-mode .badge{border-radius:999px;padding:4px 9px;line-height:1.4}.enterprise-mode .btn{border-radius:12px;border-color:#e2e8f0;font-weight:650}.enterprise-mode .btn.primary{background:#4f46e5;border-color:#4f46e5}.enterprise-mode .btn:hover{background:#f8faff}.enterprise-mode .btn.primary:hover{background:#4338ca}.enterprise-mode input[type=search]{border-radius:12px;border-color:#e2e8f0;height:40px}
.enterprise-mode .quality-card{padding:20px}.enterprise-mode .quality-card p{line-height:1.6}.enterprise-mode .empty-state{border:1px solid #edf0f8;border-radius:18px;background:#f8faff}.enterprise-mode .empty-state h2{color:#475569}.enterprise-mode .banner,.enterprise-mode .period-notice,.enterprise-mode .formality-notice{border-radius:14px;line-height:1.6}.enterprise-mode .ticket-head{border-color:#edf0f8}.enterprise-mode .ticket-head h3{line-height:1.5}.enterprise-mode .ticket-part p{font-size:12px;line-height:1.65}.enterprise-mode .matrix{border-radius:18px;border-color:#e8edf7}.enterprise-mode .matrix-chip{border-radius:8px}.enterprise-mode .stats-row{border-radius:16px}.enterprise-mode .catalog-panel{overflow:hidden}.enterprise-mode .catalog-row{padding:14px 18px;line-height:1.5}

/* Give short period labels real space; let long agency names wrap, not clip. */
.enterprise-mode .context-fields{grid-template-columns:minmax(170px,1fr) minmax(250px,1.6fr) 104px 124px 104px minmax(190px,1.2fr);align-items:start;gap:10px}
.enterprise-mode .context-fields .field{grid-column:auto;min-width:0}.enterprise-mode .context-fields .field>span{min-height:15px;white-space:nowrap}
.enterprise-mode .contextbar select{height:40px;padding:0 26px 0 12px;font-size:12px;border-radius:14px}.enterprise-mode .contextbar .ts-control{min-height:40px;padding:9px 30px 9px 12px;border-radius:14px;font-size:12px;line-height:1.5;flex-wrap:wrap;align-items:center}.enterprise-mode .contextbar .ts-control>.item{white-space:normal;overflow-wrap:anywhere;max-width:100%;line-height:1.5}.enterprise-mode .contextbar .ts-control>input{min-width:0!important}.enterprise-mode .contextbar .ts-wrapper:not(.focus).has-items .ts-control>input{position:absolute;width:1px!important;opacity:0;pointer-events:none}.enterprise-mode .contextbar .ts-wrapper.focus .ts-control>input{position:static;opacity:1;pointer-events:auto}.enterprise-mode .contextbar .ts-dropdown{font-size:12px}.enterprise-mode .contextbar .ts-dropdown .option{line-height:1.6;white-space:normal;padding:10px 14px}
@media(max-width:1450px){.enterprise-mode .context-fields{grid-template-columns:repeat(12,minmax(0,1fr))}.enterprise-mode .context-fields .field.province{grid-column:span 4}.enterprise-mode .context-fields .field.unit{grid-column:span 8}.enterprise-mode .context-fields .field:nth-child(3){grid-column:span 3}.enterprise-mode .context-fields .field:nth-child(4){grid-column:span 3}.enterprise-mode .context-fields .field:nth-child(5){grid-column:span 2}.enterprise-mode .context-fields .field:last-child{grid-column:span 4}}
@media(max-width:760px){.enterprise-mode .context-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.enterprise-mode .context-fields .field.province,.enterprise-mode .context-fields .field.unit,.enterprise-mode .context-fields .field:last-child{grid-column:1/-1}.enterprise-mode .context-fields .field:nth-child(3),.enterprise-mode .context-fields .field:nth-child(4),.enterprise-mode .context-fields .field:nth-child(5){grid-column:span 1}.enterprise-mode .contextbar{padding:12px}.enterprise-mode .context-fields .field>span{font-size:8px;letter-spacing:0}.enterprise-mode .context-actions{gap:6px;flex-wrap:wrap}.enterprise-mode .nav{display:flex;overflow-x:auto;gap:4px}.enterprise-mode .nav button{flex:0 0 60px}.enterprise-mode .detail-columns{padding:12px}.enterprise-mode .panel-head,.enterprise-mode .panel-body{padding:16px}.enterprise-mode .detail-columns{grid-template-columns:minmax(0,1fr)}.enterprise-mode .ticket-grid,.enterprise-mode .quality-grid{grid-template-columns:minmax(0,1fr)}.enterprise-mode .page-head h1{font-size:23px}}
@media print{.enterprise-mode{background:#fff}}
/* Long tables own their scroll viewport: column headings never disappear. */
.enterprise-mode .table-wrap,.enterprise-mode.bento-mode #group-detail .table-wrap{max-height:65vh;overflow:auto}
.enterprise-mode .table-wrap th{position:sticky;top:0;z-index:2;box-shadow:0 1px 0 #dfe5f1}
.ranking-modal{display:flex;flex-direction:column;overflow:hidden}
.ranking-modal .modal-top{position:relative;flex-shrink:0;z-index:3;gap:12px}
.ranking-report{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
.ranking-report>h1,.ranking-report>p,.ranking-notes{flex-shrink:0}
.ranking-scroll{flex:1;min-height:0;overflow:auto}
.leadership-table th{position:sticky;top:0;z-index:2;box-shadow:0 1px 0 #cbd5e1}
@media(max-width:760px){.ranking-modal .modal-top{flex-wrap:wrap}.ranking-report{padding:12px}.ranking-notes{font-size:10px}.ranking-report h1{font-size:14px}}
@media print{.ranking-modal,.ranking-report,.ranking-scroll,.enterprise-mode .table-wrap,.enterprise-mode.bento-mode #group-detail .table-wrap{display:block;overflow:visible;max-height:none}.leadership-table th,.enterprise-mode .table-wrap th{position:static;box-shadow:none}}
