/* V2.0.0_NETWORK_FULL_CORE_PLUS_DASHBOARD_TEST1: scoped cockpit layer below.
   Only trusted navigation toggles body.is-cockpit; management stays white. */
#dashboard-workspace { color: #193751; min-width: 0; }
#dashboard-workspace *, #dashboard-workspace *::before, #dashboard-workspace *::after { box-sizing: border-box; }
.dashboard-feedback { color: #526e87; margin: 0 0 12px; font-size: 14px; line-height: 1.6; }
.dashboard-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px; border: 1px solid #dce6ef; border-radius: 12px; background: #fff; }
.dashboard-company-label { font-weight: 650; font-size: 14px; }
.dashboard-toolbar select { min-width: 180px; max-width: 320px; min-height: 40px; border: 1px solid #bccddd; border-radius: 7px; background: #fff; color: #203f5b; padding: 8px 12px; font: inherit; }
.dashboard-updated { display: grid; gap: 4px; margin-right: auto; font-size: 14px; }
.dashboard-updated small { color: #6b7f92; font-size: 12px; overflow-wrap: anywhere; }
.dashboard-basis, .dashboard-component-note { padding: 12px 2px; margin: 0; color: #526b82; font-size: 14px; line-height: 1.65; }
.dashboard-component-note { padding-bottom: 18px; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.dashboard-metric { display: flex; flex-direction: column; gap: 7px; min-width: 0; text-align: left; padding: 18px 16px; min-height: 154px; border: 1px solid #dbe6f0; border-top: 3px solid #bad2e7; border-radius: 11px; background: #fff; color: #163e61; font: inherit; cursor: pointer; box-shadow: 0 3px 12px rgba(38, 83, 120, .035); }
.dashboard-metric:hover { background: #f8fbff; border-color: #82afd4; box-shadow: 0 6px 18px rgba(38, 83, 120, .07); }
.dashboard-metric-prominent { border-top-color: #2875b7; background: linear-gradient(135deg, #f5faff, #fff); }
.dashboard-metric-label { color: #42617b; line-height: 1.5; font-size: 14px; font-weight: 600; }
.dashboard-metric-number { display: block; width: 100%; max-width: 100%; min-width: 0; font-variant-numeric: tabular-nums; font-size: clamp(21px, 1.3vw, 25px); line-height: 1.45; white-space: normal; overflow-wrap: anywhere; word-break: normal; overflow: visible; direction: ltr; text-align: left; font-weight: 700; letter-spacing: -.3px; }
.dashboard-unit { color: #688094; font-size: 12px; }
.dashboard-metric-note { margin-top: auto; color: #60798d; font-size: 12px; line-height: 1.65; }
.dashboard-primary-grid { display: grid; grid-template-columns: minmax(330px, .85fr) minmax(0, 1.6fr); gap: 16px; align-items: start; }
.dashboard-panel { min-width: 0; border: 1px solid #dce6f0; border-radius: 12px; background: #fff; padding: 20px; margin-bottom: 16px; }
.dashboard-panel-head { margin-bottom: 16px; }
.dashboard-panel h2 { color: #193f60; font-size: 19px; line-height: 1.5; margin: 0 0 6px; }
.dashboard-panel h3 { color: #284b67; font-size: 16px; margin: 18px 0 8px; }
.dashboard-caption { color: #637b90; font-size: 13px; line-height: 1.65; margin: 0; }
.dashboard-donut-layout { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dashboard-donut { width: min(230px, 100%); height: 230px; flex: 1 1 200px; }
.dashboard-svg-center { fill: #284e6d; font: 600 16px 'Microsoft YaHei', sans-serif; }
.dashboard-svg-sub { fill: #617a90; font: 14px 'Microsoft YaHei', sans-serif; }
.dashboard-svg-month { fill: #375c78; font: 14px 'Microsoft YaHei', sans-serif; }
.dashboard-donut-legend { flex: 1 1 160px; display: grid; gap: 5px; min-width: 0; }
.dashboard-legend-item { display: grid; grid-template-columns: 10px minmax(0, 1fr); text-align: left; align-items: center; gap: 5px 8px; padding: 10px 4px; border: none; background: transparent; cursor: pointer; color: #254f70; font: inherit; }
.dashboard-legend-item strong, .dashboard-legend-item small { grid-column: 2; overflow-wrap: anywhere; font-size: 13px; font-variant-numeric: tabular-nums; }
.dashboard-legend-item small { color: #687c91; font-size: 12px; }
.dashboard-swatch { display: inline-block; width: 9px; height: 9px; border-radius: 2px; flex: 0 0 9px; }
.dashboard-window-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.dashboard-monthly-svg { width: 100%; min-height: 225px; max-height: 330px; display: block; overflow: visible; }
#dashboard-workspace svg [role='button'] { cursor: pointer; }
#dashboard-workspace svg [role='button']:hover { opacity: .76; }
#dashboard-workspace button:focus-visible, #dashboard-workspace select:focus-visible, #dashboard-workspace summary:focus-visible, #dashboard-workspace svg [role='button']:focus-visible { outline: 3px solid #468fbf; outline-offset: 3px; }
.dashboard-monthly-legend { display: flex; flex-wrap: wrap; gap: 9px 15px; color: #526b82; font-size: 12px; margin-bottom: 12px; }
.dashboard-monthly-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.dashboard-exact-details { border-top: 1px solid #e5ecf3; padding-top: 12px; }
.dashboard-exact-details summary { cursor: pointer; color: #246b9d; font-size: 14px; line-height: 1.65; }
.dashboard-table-scroll { overflow-x: auto; margin-top: 12px; max-width: 100%; }
.dashboard-data-table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 13px; }
.dashboard-data-table th { background: #f1f6fb; color: #405f79; text-align: left; padding: 10px; white-space: nowrap; }
.dashboard-data-table td { padding: 10px; border-bottom: 1px solid #e5ecf3; color: #254a67; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dashboard-warning { color: #936522; background: #fff8e9; border-left: 3px solid #d7a54e; padding: 10px 12px; margin: 12px 0 0; font-size: 13px; line-height: 1.7; }
.dashboard-comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dashboard-comparison { display: grid; gap: 10px; max-height: 330px; overflow-y: auto; padding: 2px 5px 2px 0; }
.dashboard-bar-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; text-align: left; border: 0; border-radius: 6px; padding: 8px; background: transparent; color: #2c536f; font: inherit; cursor: pointer; }
.dashboard-bar-item:hover, .dashboard-legend-item:hover { background: #f2f8fd; }
.dashboard-bar-label { font-size: 14px; overflow-wrap: anywhere; }
.dashboard-bar-amount { font-size: 14px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dashboard-bar-track { grid-column: 1 / -1; display: block; height: 10px; background: #edf2f8; border-radius: 4px; overflow: hidden; }
.dashboard-bar-fill { display: block; height: 100%; background: linear-gradient(90deg, #519fc7, #276daf); border-radius: 4px; }
.dashboard-bar-item small { grid-column: 1 / -1; }
.dashboard-alerts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.dashboard-alert { display: flex; align-items: flex-start; gap: 10px; padding: 14px; text-align: left; background: #fffaf0; border: 1px solid #eadbbc; border-radius: 8px; color: #735626; font: inherit; cursor: pointer; }
.dashboard-alert strong { font-size: 23px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.dashboard-alert span { font-size: 13px; line-height: 1.7; }
.dashboard-alert:disabled { background: #f5f8fb; border-color: #dfe7f0; color: #6b7e91; cursor: default; }
.dashboard-maturity-list { max-height: 320px; overflow-y: auto; margin-bottom: 14px; }
.dashboard-maturity-item { display: grid; width: 100%; gap: 5px; padding: 13px 5px; border: 0; border-bottom: 1px solid #e8eef4; background: transparent; text-align: left; color: #284d6b; font: inherit; cursor: pointer; }
.dashboard-maturity-item strong { font-size: 14px; overflow-wrap: anywhere; }
.dashboard-maturity-item span, .dashboard-maturity-item small { font-size: 13px; line-height: 1.65; color: #667e92; }
.dashboard-maturity-item:hover { background: #f4f9fd; }
.dashboard-contracts { border-top: 3px solid #7b96b6; }
.dashboard-contract-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.dashboard-contract-metrics .dashboard-metric { min-height: 142px; }
.dashboard-contract-schedule { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 15px; }
.dashboard-contract-month { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; border: 1px solid #e0e9f2; border-radius: 8px; padding: 13px; }
.dashboard-contract-month > strong { color: #365c7c; font-size: 15px; }
.dashboard-contract-link { border: 0; padding: 3px 0; background: transparent; color: #326e9c; font: inherit; font-size: 13px; text-align: left; line-height: 1.7; cursor: pointer; font-variant-numeric: tabular-nums; }
.dashboard-contract-link:hover { text-decoration: underline; }
.dashboard-contract-link:disabled { color: #748596; cursor: default; text-decoration: none; }
.dashboard-empty, .dashboard-loading { padding: 22px; margin: 0 0 16px; color: #5d778d; font-size: 14px; line-height: 1.8; background: #f7fafd; border: 1px dashed #cbdce9; border-radius: 10px; }
.dashboard-empty-error { border-color: #e0ba91; color: #8a622e; background: #fffaf1; }
.dashboard-footnote { color: #788a9a; font-size: 12px; line-height: 1.7; padding: 5px 0 12px; }
#dashboard-page:fullscreen { overflow-y: auto; background: #f3f7fb; padding: 24px; }
@media (max-width: 1600px) { .dashboard-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dashboard-metric { min-height: 139px; } .dashboard-metric-number { font-size: 25px; } .dashboard-alerts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1400px) { .dashboard-primary-grid { grid-template-columns: minmax(0, 1fr); } .dashboard-donut-layout { flex-wrap: nowrap; } .dashboard-donut { flex: 0 1 220px; } .dashboard-monthly-svg { min-height: 250px; } .dashboard-updated { flex: 1 1 220px; } }
@media (max-width: 950px) { .dashboard-comparison-grid { grid-template-columns: minmax(0, 1fr); } .dashboard-alerts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dashboard-contract-metrics, .dashboard-contract-schedule { grid-template-columns: minmax(0, 1fr); } .dashboard-toolbar select { max-width: 100%; } .dashboard-monthly-svg { min-width: 620px; } .dashboard-monthly { overflow-x: auto; } }
@media (max-width: 680px) { .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dashboard-panel { padding: 16px; } .dashboard-donut-layout { flex-wrap: wrap; } .dashboard-metric-number { font-size: 21px; } .dashboard-toolbar { padding: 12px; } .dashboard-updated { flex-basis: 100%; } .dashboard-bar-item { grid-template-columns: minmax(0, 1fr); } .dashboard-alerts { grid-template-columns: minmax(0, 1fr); } }

/* Navy/teal cockpit. No root palette overrides leak into the management UI. */
body.is-cockpit, body.is-cockpit .app-shell { background: #061524; color: #eaf6ff; }
body.is-cockpit .app-header { color: #eaf6ff; background: #081c2e; border-bottom: 1px solid #21475d; box-shadow: none; }
body.is-cockpit .app-brand-title { font-size: 18px; }
body.is-cockpit .app-brand-subtitle { color: #a3bbcd; font-size: 12px; }
body.is-cockpit .app-sidebar { background: #081c2e; border-color: #21475d; }
body.is-cockpit .nav-caption { color: #a3bbcd; font-size: 12px; }
body.is-cockpit .nav-item { color: #c6dbea; }
body.is-cockpit .nav-item:hover { background: #103149; color: #eaf6ff; }
body.is-cockpit .workbench-navigation > summary, body.is-cockpit .nav-subitem { color: #c6dbea; }
body.is-cockpit .workbench-navigation > summary:hover, body.is-cockpit .nav-subitem:hover { color: #eaf6ff; background: #103149; }
body.is-cockpit .nav-item.is-current, body.is-cockpit .nav-item.active, body.is-cockpit .nav-item[aria-current="page"] { color: #76ebe2; background: #103149; box-shadow: inset 3px 0 #39d4d0; }
body.is-cockpit .nav-icon { color: #a3cfff; background: #0b2236; border-color: #315d76; }
body.is-cockpit .nav-item[aria-current="page"] .nav-icon { color: #071c2b; background: #39d4d0; border-color: #39d4d0; }
body.is-cockpit .sidebar-boundary { border-color: #21475d; background: #0b2236; }
body.is-cockpit .sidebar-boundary p, body.is-cockpit .sidebar-boundary summary, body.is-cockpit .environment-badge, body.is-cockpit #production-status, body.is-cockpit #compatibility-tools { color: #a3bbcd; font-size: 12px; }
body.is-cockpit .app-main { max-width: none; padding: 24px 24px 40px; }
body.is-cockpit .page-heading { margin-bottom: 16px; }
body.is-cockpit .page-heading h1 { color: #eaf6ff; font-size: 27px; }
body.is-cockpit .page-description, body.is-cockpit .eyebrow { color: #a3bbcd; }
body.is-cockpit .role-badge { color: #d9edfa; font-size: 12px; border-color: #3d5d72; }
#dashboard-workspace { color: #eaf6ff; }
.cockpit-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; }
.cockpit-heading h1 { color: #eaf6ff; font-size: 27px; line-height: 1.35; margin: 3px 0 7px; letter-spacing: 1px; }
.cockpit-eyebrow { color: #79e8df; font-size: 12px; letter-spacing: 2px; margin: 0; }
.cockpit-scope-badge { color: #a9d8f7; border: 1px solid #315d76; border-radius: 6px; background: #0b2236; padding: 9px 12px; font-size: 12px; }
#dashboard-feedback { color: #a3bbcd; margin: 0 0 12px; font-size: 13px; line-height: 1.65; }
#dashboard-feedback.form-error { color: #ffbdc7; }
#dashboard-workspace .primary-button { background: #39d4d0; border-color: #39d4d0; color: #06212f; font-weight: 700; }
#dashboard-workspace .primary-button:hover { background: #7ee6e0; }
#dashboard-workspace .secondary-button { background: #103149; border: 1px solid #396076; color: #eaf6ff; }
#dashboard-workspace .secondary-button:hover { background: #18435e; }
#dashboard-workspace .primary-button, #dashboard-workspace .secondary-button { min-height: 38px; font-size: 13px; padding: 8px 12px; }
.dashboard-toolbar { padding: 13px 16px; border-color: #21475d; background: #0b2236; border-radius: 10px; }
.dashboard-company-label { color: #d2e7f4; font-size: 13px; }
.dashboard-toolbar select { min-width: 168px; min-height: 38px; border-color: #3c647c; background: #103149; color: #eaf6ff; font-size: 13px; }
.dashboard-updated { font-size: 13px; color: #d5e8f4; }
.dashboard-updated small, .dashboard-basis, .dashboard-component-note { color: #a3bbcd; }
.dashboard-basis, .dashboard-component-note { font-size: 13px; }
.dashboard-metrics { grid-template-columns: minmax(245px,1.5fr) repeat(3,minmax(110px,.8fr)) minmax(195px,1.15fr) minmax(135px,.9fr); }
.dashboard-metric { padding: 16px; min-height: 150px; border-color: #21475d; border-top-color: #416d88; border-radius: 9px; background: #0b2236; color: #eaf6ff; box-shadow: 0 4px 14px #00000018; }
.dashboard-metric:hover { background: #103149; border-color: #4985a0; box-shadow: none; }
.dashboard-metric-prominent { border-top-color: #39d4d0; background: linear-gradient(125deg,#103149,#0b2236 75%); }
.dashboard-metric-prominent .dashboard-metric-number { color: #76ebe2; }
.dashboard-metric-label { color: #c6dbea; font-size: 13px; }
.dashboard-metric-number { font-size: clamp(22px,1.35vw,27px); line-height: 1.4; letter-spacing: -.4px; }
.dashboard-metrics > .dashboard-metric:first-child .dashboard-metric-number { font-size: clamp(27px,1.65vw,34px); }
.dashboard-unit, .dashboard-metric-note { color: #a3bbcd; }
.dashboard-primary-grid { grid-template-columns: minmax(0,1fr) minmax(0,1.45fr) minmax(0,1fr); align-items: stretch; }
.dashboard-panel { border-color: #21475d; border-radius: 10px; background: #0b2236; padding: 18px; }
.dashboard-panel-head { position: relative; padding: 0 0 12px 12px; margin-bottom: 14px; border-bottom: 1px solid #21475d; }
.dashboard-panel-head::before { content: ''; width: 3px; height: 21px; position: absolute; left: 0; top: 3px; background: #39d4d0; border-radius: 2px; }
.dashboard-panel h2 { color: #eaf6ff; font-size: 18px; margin: 0 0 5px; }
.dashboard-panel h3 { color: #d9edfa; font-size: 15px; }
.dashboard-caption { color: #a3bbcd; }
.dashboard-donut-layout { gap: 8px; }
.dashboard-donut { width: 100%; height: 205px; flex: 1 1 160px; }
.dashboard-svg-center { fill: #d7eaf6; font-size: 15px; }
.dashboard-svg-sub { fill: #a3bbcd; font-size: 13px; }
.dashboard-svg-month { fill: #d5e8f4; font-size: 13px; }
.cockpit-svg-value { fill: #eaf6ff; font: 600 15px 'Microsoft YaHei',sans-serif; }
.dashboard-donut-legend { gap: 3px; width: 100%; }
.dashboard-legend-item { padding: 8px 3px; border-radius: 5px; color: #d7eaf6; font-size: 13px; }
.dashboard-legend-item strong { white-space: nowrap; overflow-wrap: normal; overflow-x: auto; }
.dashboard-legend-item small { color: #a3bbcd; }
.dashboard-monthly-svg { min-height: 235px; max-height: 340px; }
.cockpit-composite-svg { width: 100%; min-height: 220px; display: block; }
.cockpit-annual-svg { width: 100%; min-height: 200px; max-height: 270px; display: block; }
#dashboard-workspace svg [role='button']:hover { opacity: 1; filter: brightness(1.2); }
#dashboard-workspace button:focus-visible, #dashboard-workspace select:focus-visible, #dashboard-workspace summary:focus-visible, #dashboard-workspace svg [role='button']:focus-visible { outline-color: #7ee6e0; }
.dashboard-monthly-legend { color: #bcd2e2; margin: 12px 0; }
.dashboard-exact-details { border-color: #21475d; }
.dashboard-exact-details summary { color: #90ccff; font-size: 13px; }
.dashboard-exact-details p { padding-top: 10px; }
.dashboard-data-table th { background: #103149; color: #d5e8f4; }
.dashboard-data-table td { border-color: #21475d; color: #d1e5f2; }
.dashboard-warning { color: #ffd294; background: #322b22; border-left-color: #ffc56b; }
.cockpit-current-metrics { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; }
.cockpit-current-metrics .dashboard-metric { min-height: 143px; padding: 13px; border-top-color: #64a5ff; }
.cockpit-window-metrics { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; margin-top: 10px; }
.cockpit-window-metrics .dashboard-metric { min-height: 135px; }
.dashboard-pressure-branches { border: 1px solid #39d4d0; border-radius: 7px; padding: 14px; margin: 14px 0; background: #103149; }
.dashboard-pressure-branches h3 { margin: 0 0 8px; }
.dashboard-pressure-branches .primary-button, .dashboard-pressure-branches .secondary-button { margin: 12px 9px 0 0; }
.cockpit-analytic-grid { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(0,1fr); gap: 16px; }
.dashboard-comparison-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.dashboard-bar-item { color: #d7eaf6; }
.dashboard-bar-item:hover, .dashboard-legend-item:hover, .cockpit-top-item:hover, .cockpit-attention-item:hover { background: #103149; }
.dashboard-bar-label, .dashboard-bar-amount { font-size: 13px; }
.dashboard-bar-amount { white-space: nowrap; overflow-wrap: normal; overflow-x: auto; }
.dashboard-bar-track { height: 8px; background: #17384e; border-radius: 3px; }
.dashboard-bar-fill { background: linear-gradient(90deg,#398ad1,#39d4d0); border-radius: 3px; }
.cockpit-ranking { display: grid; gap: 7px; padding: 0; margin: 0 0 13px; list-style: none; }
.cockpit-top-item { width: 100%; display: grid; grid-template-columns: 24px minmax(0,1fr); align-items: center; gap: 5px 8px; text-align: left; background: transparent; border: 0; border-radius: 5px; padding: 9px 5px; color: #d7eaf6; cursor: pointer; font: inherit; }
.cockpit-rank { color: #64a5ff; font-size: 18px; font-weight: 700; grid-row: 1 / 3; }
.cockpit-top-item strong { overflow-wrap: anywhere; font-size: 13px; }
.cockpit-rank-amount { grid-column: 2; color: #79e8df; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow-x: auto; }
.cockpit-top-item small { grid-column: 2; color: #a3bbcd; font-size: 12px; overflow-wrap: anywhere; }
.cockpit-attention-list { display: grid; gap: 7px; margin-bottom: 14px; }
.cockpit-attention-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; padding: 7px; border: 0; border-radius: 5px; background: transparent; color: #d7eaf6; text-align: left; font: inherit; font-size: 13px; cursor: pointer; }
.cockpit-attention-item strong { color: #ffc56b; }
.cockpit-attention-item small { grid-column: 1 / -1; color: #a3bbcd; font-size: 12px; line-height: 1.6; }
.cockpit-processing-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.cockpit-processing-metrics .dashboard-metric { border-top-color: #ffc56b; min-height: 135px; }
.dashboard-alerts { margin-bottom: 12px; }
.dashboard-alert { flex-direction: column; gap: 8px; background: #2a2925; border-color: #75613d; color: #ffd294; }
.dashboard-alert strong { font-size: 22px; }
.dashboard-alert small { font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.dashboard-alert:disabled { background: #10293d; border-color: #315267; color: #a3bbcd; }
.dashboard-maturity-item { border-color: #21475d; color: #d5e8f4; }
.dashboard-maturity-item span, .dashboard-maturity-item small { color: #a3bbcd; }
.dashboard-maturity-item:hover { background: #103149; }
.dashboard-contracts { border-top-color: #b29aff; }
.dashboard-contract-metrics { grid-template-columns: repeat(5,minmax(0,1fr)); }
.dashboard-contract-month { border-color: #315267; }
.dashboard-contract-month > strong { color: #d5e8f4; }
.dashboard-contract-link { color: #9fcfff; }
.dashboard-contract-link:disabled { color: #a3bbcd; }
.dashboard-empty, .dashboard-loading { color: #bcd2e2; background: #0b2236; border-color: #396076; }
.dashboard-empty-error { border-color: #b28b51; color: #ffd294; background: #302b24; }
.dashboard-footnote { color: #a3bbcd; }
#dashboard-page:fullscreen { background: #061524; color: #eaf6ff; }
@media (max-width: 1700px) {
  .dashboard-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .dashboard-metric { min-height: 137px; }
  .dashboard-primary-grid { grid-template-columns: minmax(0,1fr) minmax(0,1.5fr); }
  .cockpit-top-debts { grid-column: 1 / -1; }
  .cockpit-ranking { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .cockpit-current-metrics, .dashboard-contract-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 1400px) {
  body.is-cockpit .app-main { padding: 20px; }
  .dashboard-metric-number { font-size: 24px; }
  .cockpit-window-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cockpit-analytic-grid { grid-template-columns: minmax(0,1fr); }
  .cockpit-attention-list, .dashboard-comparison-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-comparison-grid > :last-child { grid-column: 1 / -1; }
  .dashboard-alerts { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 1100px) {
  .dashboard-primary-grid { grid-template-columns: minmax(0,1fr); }
  .cockpit-top-debts { grid-column: auto; }
  .cockpit-ranking { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-donut-layout { flex-wrap: nowrap; }
  .dashboard-donut { width: 210px; flex: 0 1 210px; }
  .cockpit-processing-metrics { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 760px) {
  body.is-cockpit .app-main { padding: 14px; }
  .dashboard-metrics, .cockpit-current-metrics, .dashboard-alerts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cockpit-window-metrics, .dashboard-comparison-grid, .dashboard-contract-metrics, .dashboard-contract-schedule, .cockpit-attention-list { grid-template-columns: minmax(0,1fr); }
  .dashboard-comparison-grid > :last-child { grid-column: auto; }
  .dashboard-monthly, .cockpit-composite { overflow-x: auto; }
  .cockpit-annual-pressure { overflow-x: auto; }
  .cockpit-annual-svg { min-width: 850px; }
  .dashboard-monthly-svg { min-width: 630px; }
  .cockpit-composite-svg { min-width: 520px; }
  .dashboard-donut-layout { flex-wrap: wrap; }
  .dashboard-metric-number { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { body.is-cockpit .page-panel { animation: none; } }

/* Facts, not risk scores. Every color is paired with a visible Chinese badge.
   Scope stays inside the dashboard; the white management workspace is unchanged. */
#dashboard-workspace .dashboard-status-danger { --dashboard-status-color: #ff8194; --dashboard-status-surface: #302332; }
#dashboard-workspace .dashboard-status-warning { --dashboard-status-color: #ffc56b; --dashboard-status-surface: #302b24; }
#dashboard-workspace .dashboard-status-success { --dashboard-status-color: #62d9ad; --dashboard-status-surface: #123126; }
#dashboard-workspace .dashboard-status-info { --dashboard-status-color: #64a5ff; --dashboard-status-surface: #10293d; }
#dashboard-workspace .dashboard-status-unknown { --dashboard-status-color: #bfccdf; --dashboard-status-surface: #192b3d; }
#dashboard-workspace .dashboard-status-neutral { --dashboard-status-color: #a3bbcd; --dashboard-status-surface: #102638; }
#dashboard-workspace .dashboard-status-label { display: inline-flex; align-items: center; max-width: 100%; gap: 5px; color: var(--dashboard-status-color, #a3bbcd); font-size: 12px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
#dashboard-workspace .dashboard-alert[class*='dashboard-status-'], #dashboard-workspace .dashboard-status-summary-item { border-color: var(--dashboard-status-color, #315267); background: var(--dashboard-status-surface, #102638); }
#dashboard-workspace .dashboard-alert[class*='dashboard-status-'] > strong, #dashboard-workspace .cockpit-attention-item[class*='dashboard-status-'] > strong { color: var(--dashboard-status-color, #a3bbcd); }
#dashboard-workspace .cockpit-attention-item[class*='dashboard-status-'] .dashboard-bar-fill { background: var(--dashboard-status-color, #a3bbcd); }
#dashboard-workspace .dashboard-metric[class*='dashboard-status-'] { border-top-color: var(--dashboard-status-color, #416d88); }
#dashboard-workspace .dashboard-status-unknown-note { display: block; grid-column: 1 / -1; padding-top: 5px; border-top: 1px dashed #60778f; color: #bfccdf; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
#dashboard-workspace .cockpit-attention-item > .dashboard-status-label, #dashboard-workspace .cockpit-top-item > .dashboard-status-label { grid-column: 1 / -1; }
#dashboard-workspace .dashboard-alert:disabled, #dashboard-workspace .dashboard-status-summary-item:disabled { cursor: default; opacity: 1; }
#dashboard-workspace .dashboard-overview-heading { color: #d9edfa; font-size: 16px; line-height: 1.5; margin: 15px 0 10px; }
#dashboard-workspace .dashboard-reading-notes { margin: -2px 0 14px; color: #a3bbcd; font-size: 12px; }
#dashboard-workspace .dashboard-reading-notes summary { display: list-item; cursor: pointer; color: #90ccff; line-height: 1.7; }
#dashboard-workspace .dashboard-reading-notes p { margin: 8px 0; line-height: 1.65; }
#dashboard-workspace .dashboard-status-overview { margin: 0 0 18px; padding: 13px 15px; border: 1px solid #315267; border-radius: 9px; background: #0b2236; }
#dashboard-workspace .dashboard-status-overview-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 10px; }
#dashboard-workspace .dashboard-status-overview h2 { color: #d9edfa; font-size: 16px; line-height: 1.5; margin: 0; }
#dashboard-workspace .dashboard-status-overview .dashboard-caption { font-size: 12px; }
#dashboard-workspace .dashboard-status-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
#dashboard-workspace .dashboard-status-summary-item { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding: 9px 11px; border: 1px solid; border-radius: 7px; color: #eaf6ff; font: inherit; font-size: 12px; line-height: 1.5; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
#dashboard-workspace .dashboard-status-summary-item strong { color: var(--dashboard-status-color, #a3bbcd); font-size: 19px; font-variant-numeric: tabular-nums; }
#dashboard-workspace .dashboard-status-summary-item:hover:not(:disabled) { outline: 1px solid var(--dashboard-status-color, #a3bbcd); }
@media (max-width: 1400px) { #dashboard-workspace .dashboard-status-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { #dashboard-workspace .dashboard-status-summary { grid-template-columns: minmax(0, 1fr); } }

/* DEBT_OVERVIEW_UI_R1: overview first, pressure second, analysis below.
   Scoped presentation only; all monetary calculations remain server-owned. */
body.is-cockpit .app-main { padding-top: 18px; }
/* In the desktop overview, persistent authentication feedback belongs in the
   spare sidebar area, never over a monetary card. Login and workbench alerts
   retain their existing placement and semantics. */
@media (min-width: 1100px) {
  body.is-cockpit .status-message { left: 16px; right: auto; bottom: 112px; width: 198px; max-width: 198px; box-sizing: border-box; }
}
#dashboard-page #dashboard-feedback { font-size: 12px; margin: 0 0 8px; line-height: 1.5; }
#dashboard-workspace .cockpit-heading { margin-bottom: 12px; }
#dashboard-workspace .cockpit-heading h1 { font-size: 28px; margin: 0 0 5px; }
#dashboard-workspace .cockpit-eyebrow { display: none; }
#dashboard-workspace .dashboard-toolbar { padding: 12px 15px; margin-bottom: 8px; }
#dashboard-workspace .dashboard-basis { display: none; }
#dashboard-workspace .dashboard-reading-notes { margin: 0 0 8px; }
#dashboard-workspace .dashboard-overview-heading { margin: 10px 0 8px; }
#dashboard-workspace .dashboard-metrics { display: grid; grid-template-columns: 1.35fr 1.2fr .8fr .85fr 1fr; gap: 10px; margin-bottom: 14px; }
#dashboard-workspace .dashboard-metrics .dashboard-metric { min-height: 126px; padding: 13px 15px; gap: 4px; }
#dashboard-workspace .dashboard-metric-number { font-size: clamp(22px,1.65vw,32px); white-space: normal; overflow: visible; overflow-wrap: anywhere; line-height: 1.25; }
#dashboard-workspace .dashboard-metric-label { font-size: 13px; line-height: 1.5; }
#dashboard-workspace .dashboard-unit, #dashboard-workspace .dashboard-metric-note { font-size: 11px; line-height: 1.5; }
#dashboard-workspace .cockpit-pressure-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; padding: 15px; margin: 0 0 14px; border-color: #396f8b; }
#dashboard-workspace .cockpit-pressure-summary > .dashboard-panel-head { grid-column: 1 / -1; margin: 0; padding-bottom: 7px; }
#dashboard-workspace .cockpit-current-metrics, #dashboard-workspace .cockpit-window-metrics { display: contents; }
#dashboard-workspace .cockpit-pressure-summary .dashboard-metric { min-height: 97px; padding: 10px 12px; gap: 3px; background: #102d43; }
#dashboard-workspace .cockpit-window-metrics .dashboard-metric { border-top-color: #39d4d0; background: #0e3543; }
#dashboard-workspace .cockpit-pressure-summary > .dashboard-exact-details, #dashboard-workspace .dashboard-pressure-branches { grid-column: 1 / -1; margin: 0; }
#dashboard-workspace .cockpit-pressure-summary > .dashboard-exact-details { padding-top: 5px; }
#dashboard-workspace .dashboard-pressure-branches[hidden] { display: none; }
#dashboard-workspace .overview-contract-supplement { margin-bottom: 14px; padding: 15px; }
#dashboard-workspace .overview-contract-supplement .dashboard-panel-head { margin-bottom: 10px; padding-bottom: 7px; }
#dashboard-workspace .overview-supplement-metrics { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; }
#dashboard-workspace .overview-supplement-metrics .dashboard-metric { min-height: 120px; padding: 10px; gap: 3px; }
#dashboard-workspace .overview-supplement-metrics .dashboard-metric-number { font-size: 23px; }
#dashboard-workspace .overview-analysis-heading { padding-top: 15px; border-top: 1px solid #315267; margin-top: 22px; }
@media (max-width: 1200px) {
  #dashboard-workspace .dashboard-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  #dashboard-workspace .overview-supplement-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  #dashboard-workspace .dashboard-metrics, #dashboard-workspace .cockpit-pressure-summary, #dashboard-workspace .overview-supplement-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #dashboard-workspace .dashboard-metric-number { font-size: 23px; }
}
@media (max-width: 420px) {
  #dashboard-workspace .dashboard-metrics, #dashboard-workspace .cockpit-pressure-summary, #dashboard-workspace .overview-supplement-metrics { grid-template-columns: minmax(0,1fr); }
}

/* UI_R2: full-surface semantic emphasis, not decorative risk ratings. */
#dashboard-workspace .dashboard-metric[class*='dashboard-status-'],
#dashboard-workspace .dashboard-metric[class*='dashboard-intent-'] {
  color: #eef6ff; border: 1px solid var(--metric-border, #3b6680);
  border-top: 3px solid var(--metric-accent, #72b9ff);
  background: linear-gradient(130deg,var(--metric-surface,#12344a),var(--metric-base,#102838));
}
#dashboard-workspace .dashboard-metric[class*='dashboard-status-'] .dashboard-metric-number,
#dashboard-workspace .dashboard-metric[class*='dashboard-intent-'] .dashboard-metric-number { color: var(--metric-accent,#89ceff); }
#dashboard-workspace .dashboard-metric.dashboard-status-warning,
#dashboard-workspace .dashboard-metric.dashboard-intent-pressure { --metric-accent:#ffd08a; --metric-border:#ab773b; --metric-surface:#3c3023; --metric-base:#29241e; }
#dashboard-workspace .dashboard-metric.dashboard-status-success,
#dashboard-workspace .dashboard-metric.dashboard-intent-paid { --metric-accent:#86efc1; --metric-border:#3c9473; --metric-surface:#173d32; --metric-base:#102c26; }
#dashboard-workspace .dashboard-metric.dashboard-status-danger { --metric-accent:#ff9aa6; --metric-border:#ba5667; --metric-surface:#492732; --metric-base:#30212a; }
#dashboard-workspace .dashboard-metric.dashboard-status-unknown,
#dashboard-workspace .dashboard-metric.dashboard-intent-unknown { --metric-accent:#d2dbea; --metric-border:#748298; --metric-surface:#283545; --metric-base:#1a293a; }
#dashboard-workspace .dashboard-metric.dashboard-status-neutral { --metric-accent:#bacfe0; --metric-border:#49677b; --metric-surface:#1b3143; --metric-base:#112838; }
#dashboard-workspace .dashboard-metric:hover:not(:disabled) { outline:1px solid var(--metric-accent,#89ceff); box-shadow:0 5px 20px #0004; }
#dashboard-workspace .cockpit-pressure-summary { border-color:#936a39; background:linear-gradient(140deg,#172c3a,#142736); }
#dashboard-workspace .cockpit-pressure-summary .dashboard-panel-head { border-bottom-color:#765a38; }

/* Native modal stays inside the overview, including browser fullscreen. */
#dashboard-drill-dialog { width:min(1450px,calc(100vw - 64px)); max-width:calc(100vw - 24px); min-width:0; max-height:calc(100dvh - 48px); margin:auto; padding:0; border:1px solid #47728b; border-radius:14px; background:#0b2234; color:#e6f1fa; box-shadow:0 30px 100px #000b; overflow:hidden; }
#dashboard-drill-dialog[open] { display:flex; flex-direction:column; }
#dashboard-drill-dialog::backdrop { background:#020b17bd; backdrop-filter:blur(3px); }
#dashboard-drill-dialog .dashboard-drill-header { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:20px 24px 14px; border-bottom:1px solid #34536a; flex-shrink:0; background:#102e44; }
#dashboard-drill-dialog h2 { color:#f4f8fc; font-size:23px; line-height:1.4; margin:0; overflow-wrap:anywhere; }
#dashboard-drill-dialog h3 { color:#dceefd; font-size:17px; margin:16px 0 10px; }
#dashboard-drill-dialog p { color:#b7cede; line-height:1.65; }
#dashboard-drill-status { padding:10px 24px; margin:0; flex-shrink:0; font-size:13px; }
#dashboard-drill-status[role='alert'] { color:#ffb1bb; background:#402733; }
#dashboard-drill-content { padding:4px 24px 20px; min-height:140px; overflow:auto; overscroll-behavior:contain; }
#dashboard-drill-dialog .dashboard-drill-footer { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:10px; padding:14px 24px; border-top:1px solid #34536a; flex-shrink:0; background:#102b40; }
#dashboard-drill-dialog button { color:#d9edfd; background:#153952; border:1px solid #4a728e; border-radius:7px; padding:9px 14px; min-height:38px; font:inherit; font-size:13px; cursor:pointer; }
#dashboard-drill-dialog button:hover:not(:disabled) { color:#fff; background:#215071; border-color:#8acfff; }
#dashboard-drill-dialog button:focus-visible { outline:3px solid #ffd08a; outline-offset:3px; }
#dashboard-drill-dialog button:disabled { opacity:.55; cursor:default; }
#dashboard-drill-dialog .dashboard-drill-header button { white-space:nowrap; min-width:72px; }
#dashboard-drill-dialog .dashboard-drill-table-wrap { width:100%; overflow:auto; border:1px solid #35546b; border-radius:8px; }
#dashboard-drill-dialog .dashboard-drill-table { width:100%; min-width:1080px; table-layout:auto; border-collapse:collapse; font-size:13px; line-height:1.65; color:#dfebf4; }
#dashboard-drill-dialog .dashboard-drill-table th { width:auto; min-width:70px; background:#17394e; color:#b9ddf4; font-size:12px; font-weight:600; text-align:left; padding:12px 10px; border-bottom:1px solid #4a7189; }
#dashboard-drill-dialog .dashboard-drill-table td { background:#0f293d; color:#dfebf4; font-size:13px; padding:12px 10px; border-bottom:1px solid #294b63; vertical-align:top; min-width:70px; max-width:220px; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
#dashboard-drill-dialog .dashboard-drill-table tr:nth-child(even) td { background:#122f43; }
#dashboard-drill-dialog .dashboard-drill-facts { display:grid; grid-template-columns:minmax(100px,.55fr) minmax(160px,1.5fr) minmax(100px,.55fr) minmax(160px,1.5fr); border-top:1px solid #34536a; margin:10px 0; }
#dashboard-drill-dialog .dashboard-drill-facts dt,#dashboard-drill-dialog .dashboard-drill-facts dd { margin:0; padding:11px 12px; border-bottom:1px solid #34536a; overflow-wrap:anywhere; }
#dashboard-drill-dialog .dashboard-drill-facts dt { color:#a6c4d9; background:#122f43; }
#dashboard-drill-dialog .dashboard-drill-facts dd { color:#eff7fd; }
#dashboard-drill-dialog .dashboard-drill-empty { padding:35px 20px; border:1px dashed #607c92; border-radius:8px; text-align:center; }
@media(max-width:900px) {
  #dashboard-drill-dialog { width:calc(100vw - 24px); max-height:calc(100dvh - 24px); }
  #dashboard-drill-dialog .dashboard-drill-header { padding:14px 16px; }
  #dashboard-drill-content { padding:4px 16px 16px; }
  #dashboard-drill-status { padding:10px 16px; }
  #dashboard-drill-dialog .dashboard-drill-facts { grid-template-columns:100px minmax(0,1fr); }
}
