/* ==========================================================================
   stevennguyen — OCC-DSS: Hệ Hỗ Trợ Ra Quyết Định Trưởng Phòng OCC
   Executive Decision Support System · 5 Global Airline Benchmarks · OPCON 1..4 · MCDA
   Ultra-Lean Ribbon Trigger (2 DOM nodes) + Zero-Idle-DOM 3-Mode Workspace in #occ/exec
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Ultra-Lean Ribbon Trigger inside #occ-command-ribbon (2 DOM nodes total)
   -------------------------------------------------------------------------- */
.dss-ribbon-slot {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  display: flex;
  box-sizing: border-box;
}

.dss-ribbon-btn {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: var(--radius-md);
  background: #0A1E38;
  border: 1px solid #38BDF8;
  color: #F0F9FF;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.38;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: 0 6px 18px rgba(2, 8, 20, 0.26);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.dss-ribbon-btn::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #34D399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
  flex-shrink: 0;
}

.dss-ribbon-btn[data-dss-opcon="1"] {
  background: #07241D;
  border-color: #34D399;
  color: #ECFDF5;
}

.dss-ribbon-btn[data-dss-opcon="2"] {
  background: #0A1E38;
  border-color: #38BDF8;
  color: #F0F9FF;
}

.dss-ribbon-btn[data-dss-opcon="2"]::before {
  background: #38BDF8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.26);
}

.dss-ribbon-btn[data-dss-opcon="3"] {
  background: #351C05;
  border-color: #FBBF24;
  color: #FEF3C7;
}

.dss-ribbon-btn[data-dss-opcon="3"]::before {
  background: #FBBF24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.28);
}

.dss-ribbon-btn[data-dss-opcon="4"] {
  background: #3A0B19;
  border-color: #FB7185;
  color: #FFE4E8;
}

.dss-ribbon-btn[data-dss-opcon="4"]::before {
  background: #FB7185;
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.3);
}

.dss-ribbon-btn:hover {
  filter: brightness(1.12);
}

.dss-ribbon-btn[aria-pressed="true"] {
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.45), 0 8px 20px rgba(2, 8, 20, 0.36);
}

.dss-ribbon-btn:focus-visible,
.dss-mode-btn:focus-visible,
.dss-sc-btn:focus-visible,
.dss-preset-btn:focus-visible,
.dss-opt-card:focus-visible,
.dss-btn-approve:focus-visible,
.dss-btn-copy:focus-visible,
.dss-try-btn:focus-visible,
.dss-range:focus-visible,
#dss-head-ack:focus-visible,
.dss-svg-bar-row:focus-visible {
  outline: 2px solid #38BDF8;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   2. 3-Mode Executive Workspace Switcher & Zero-Idle-DOM Stage Slot
   -------------------------------------------------------------------------- */
.dss-mode-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  background: #071426;
  border: 1px solid #21436B;
  color: #F0F7FF;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.dss-mode-btn {
  flex: 1 1 210px;
  min-width: 0;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: #0B1E36;
  border: 1px solid #254872;
  color: #E2F0FF;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dss-mode-btn:hover {
  background: #102A4A;
  border-color: #38BDF8;
}

.dss-mode-btn.active {
  background: #0C3559;
  border-color: #38BDF8;
  color: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.36);
}

.dss-mode-meta {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: #091A30;
  border: 1px solid #264B75;
  color: #7DD3FC;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.dss-stage-slot {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.dss-stage-slot:empty {
  display: none;
  margin: 0;
}

#occ-desk-stage.dss-subview-active > .occ-wallboard,
#occ-desk-stage.dss-subview-active > .exec-bottom-grid {
  display: none !important;
}

/* --------------------------------------------------------------------------
   3. Mode 2 (#dss-workbench) — KPI-Driven Executive Decision Support Cockpit
   -------------------------------------------------------------------------- */
.dss-workbench,
.dss-models-panel {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: var(--radius-lg, 14px);
  background: #06101E;
  border: 1px solid #1E3A5F;
  color: #F0F7FF;
  box-shadow: 0 14px 34px rgba(2, 8, 20, 0.36);
}

.dss-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 14px;
  margin-bottom: 12px;
  min-width: 0;
}

.dss-title {
  flex: 1 1 320px;
  min-width: 0;
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  color: #FFFFFF;
  overflow-wrap: anywhere;
}

.dss-title::before {
  content: "OCC-DSS · EXECUTIVE DECISION SUPPORT · UNITED · AA HEAT · SW BAKER · DELTA · IOCC";
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 10.8px;
  font-weight: 700;
  color: #7DD3FC;
  letter-spacing: 0.03em;
}

.dss-disclaimer {
  flex: 0 1 460px;
  min-width: 0;
  max-width: 100%;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  background: #331C05;
  border: 1px solid #F59E0B;
  color: #FEF3C7;
  font-family: var(--font-mono);
  font-size: 10.8px;
  font-weight: 700;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

/* Context Selector (4 Scenarios) */
.dss-context-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
  min-width: 0;
}

.dss-sc-btn {
  min-width: 0;
  max-width: 100%;
  padding: 9px 11px;
  border-radius: var(--radius-md);
  background: #09182C;
  border: 1px solid #1E3A5F;
  color: #E6F2FF;
  font-family: var(--font-sans);
  font-size: 12.2px;
  font-weight: 700;
  line-height: 1.38;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dss-sc-btn:hover {
  background: #0E2340;
  border-color: #38BDF8;
}

.dss-sc-btn.active {
  background: #0C3559;
  border-color: #38BDF8;
  color: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

/* Auto-Computed OPCON 1..4 Triage Strip */
.dss-opcon-strip {
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  background: #08172A;
  border: 1px solid #244770;
  min-width: 0;
}

.dss-opcon-strip[data-dss-opcon="1"] {
  border-color: #34D399;
}

.dss-opcon-strip[data-dss-opcon="2"] {
  border-color: #38BDF8;
}

.dss-opcon-strip[data-dss-opcon="3"] {
  border-color: #FBBF24;
}

.dss-opcon-strip[data-dss-opcon="4"] {
  border-color: #FB7185;
}

.dss-opcon-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 8px;
  min-width: 0;
}

.dss-opcon-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  background: #07261E;
  border: 1px solid #34D399;
  color: #ECFDF5;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.dss-opcon-strip[data-dss-opcon="2"] .dss-opcon-badge {
  background: #0B2542;
  border-color: #38BDF8;
  color: #F0F9FF;
}

.dss-opcon-strip[data-dss-opcon="3"] .dss-opcon-badge {
  background: #361D05;
  border-color: #FBBF24;
  color: #FEF3C7;
}

.dss-opcon-strip[data-dss-opcon="4"] .dss-opcon-badge {
  background: #3B0B19;
  border-color: #FB7185;
  color: #FFE4E8;
}

.dss-opcon-auth {
  flex: 1 1 320px;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: #D2E6FA;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.dss-kpi-triggers {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
}

.dss-trig-pill {
  min-width: 0;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background: #07241D;
  border: 1px solid #10B981;
  color: #ECFDF5;
  font-family: var(--font-mono);
  font-size: 10.6px;
  font-weight: 700;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.dss-trig-pill[data-tone="warn"] {
  background: #331C05;
  border-color: #F59E0B;
  color: #FEF3C7;
}

.dss-trig-pill[data-tone="alert"] {
  background: #380B19;
  border-color: #FB7185;
  color: #FFE4E8;
}

#occ-root.occ-exception-only .dss-trig-pill[data-tone="good"] {
  opacity: 0.45;
}

#occ-root.occ-exception-only .dss-trig-pill[data-tone="good"]:hover,
#occ-root.occ-exception-only .dss-trig-pill[data-tone="good"]:focus-within {
  opacity: 0.95;
}

/* Strategic Priority Compass & ConnectionSaver Micro-Hold Simulator */
.dss-controls-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 12px;
  min-width: 0;
}

.dss-panel,
.dss-chart-card {
  min-width: 0;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  background: #09182C;
  border: 1px solid #1E3A5F;
  color: #F0F7FF;
  box-sizing: border-box;
}

.dss-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  margin-bottom: 8px;
  min-width: 0;
}

.dss-panel-lbl {
  font-family: var(--font-mono);
  font-size: 10.8px;
  font-weight: 700;
  color: #7DD3FC;
  letter-spacing: 0.02em;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.dss-panel-tag {
  font-family: var(--font-mono);
  font-size: 10.8px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: #0D2542;
  border: 1px solid #29507D;
  color: #E2F0FF;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.dss-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  min-width: 0;
}

.dss-preset-btn {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  background: #0C213B;
  border: 1px solid #284C77;
  color: #E6F2FF;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.32;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.dss-preset-btn:hover {
  background: #122E52;
  border-color: #38BDF8;
}

.dss-preset-btn.active {
  background: #0C3559;
  border-color: #38BDF8;
  color: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.dss-weights-grid {
  display: grid;
  grid-template-columns: minmax(0, 148px) minmax(0, 1fr);
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
}

.dss-weights-grid label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #E6F2FF;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.dss-range {
  width: 100%;
  min-width: 0;
  accent-color: #38BDF8;
  cursor: pointer;
  margin: 2px 0;
}

.dss-hold-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: #07261E;
  border: 1px solid #34D399;
  color: #ECFDF5;
}

.dss-hold-val[data-tone="warn"] {
  background: #331C05;
  border-color: #F59E0B;
  color: #FEF3C7;
}

.dss-hold-val[data-tone="alert"] {
  background: #3B0B19;
  border-color: #FB7185;
  color: #FFE4E8;
}

.dss-hold-scale {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 8px;
  margin: 4px 0 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: #B4D0EC;
}

.dss-hold-verdict {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: #07241D;
  border: 1px solid #10B981;
  color: #ECFDF5;
  font-size: 11.8px;
  font-weight: 600;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.dss-hold-verdict[data-tone="warn"] {
  background: #331C05;
  border-color: #F59E0B;
  color: #FEF3C7;
}

.dss-hold-verdict[data-tone="alert"] {
  background: #380B19;
  border-color: #FB7185;
  color: #FFE4E8;
}

/* 4-Option MCDA Matrix & Dual Vector SVG */
.dss-mcda-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: 12px;
  margin-bottom: 12px;
  min-width: 0;
}

.dss-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.dss-opt-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 8px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: #09182C;
  border: 1px solid #214067;
  color: #F0F7FF;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.dss-opt-card:hover {
  background: #0E2340;
  border-color: #38BDF8;
}

.dss-opt-card.selected {
  background: #0B2C4D;
  border-color: #38BDF8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.45);
}

.dss-opt-card[data-blocked="true"] {
  background: #230B16;
  border-color: #9F1239;
}

.dss-opt-card[data-blocked="true"].selected {
  background: #340C1B;
  border-color: #FB7185;
  box-shadow: 0 0 0 1px rgba(251, 113, 133, 0.5);
}

.dss-opt-rank {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 10.8px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: #0D2744;
  border: 1px solid #2D5584;
  color: #E6F2FF;
  max-width: 100%;
}

.dss-opt-card[data-top="true"] .dss-opt-rank {
  background: #072A21;
  border-color: #34D399;
  color: #6EE7B7;
}

.dss-opt-card[data-blocked="true"] .dss-opt-rank {
  background: #3D0B1B;
  border-color: #FB7185;
  color: #FFE4E8;
}

.dss-opt-model {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #7DD3FC;
}

.dss-opt-card[data-blocked="true"] .dss-opt-model {
  color: #FDA4AF;
}

.dss-opt-title {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.35;
}

.dss-opt-metrics {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 10.8px;
  font-weight: 600;
  color: #C4DCF4;
  line-height: 1.38;
}

.dss-chart-title {
  margin: 0;
  font-size: 13.2px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.32;
}

.dss-svg-bar-row {
  cursor: pointer;
}

.dss-rationale-box {
  margin-top: 9px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  background: #061222;
  border: 1px solid #1E3D63;
  color: #E6F2FF;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.dss-rat-why {
  font-weight: 700;
  color: #F0F9FF;
  margin-bottom: 4px;
}

.dss-rat-delta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #B4D2EE;
}

/* Human-in-the-Loop Decision Gate & Cross-OCC Dispatch */
.dss-gate-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  background: #081628;
  border: 1px solid #23466E;
  min-width: 0;
}

.dss-gate-bar[data-dss-signed="true"] {
  border-color: #34D399;
}

.dss-verdict-strip {
  flex: 1 1 100%;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  background: #331C05;
  border: 1px solid #F59E0B;
  color: #FEF3C7;
  font-size: 12.2px;
  font-weight: 700;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.dss-verdict-strip[data-tone="good"] {
  background: #07261E;
  border-color: #34D399;
  color: #ECFDF5;
}

.dss-verdict-strip[data-tone="alert"] {
  background: #380B19;
  border-color: #FB7185;
  color: #FFE4E8;
}

.dss-ack-label {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.2px;
  font-weight: 600;
  color: #E6F2FF;
  line-height: 1.42;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.dss-ack-label input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: #34D399;
  flex-shrink: 0;
}

.dss-gate-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.dss-btn-approve,
.dss-btn-copy,
.dss-try-btn {
  min-width: 0;
  max-width: 100%;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 12.4px;
  font-weight: 800;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dss-btn-approve {
  background: #064E3B;
  border: 1px solid #34D399;
  color: #ECFDF5;
}

.dss-btn-approve:hover:not(:disabled) {
  background: #065F46;
  border-color: #6EE7B7;
}

.dss-btn-approve:disabled {
  background: #10233A;
  border: 1px solid #2B4E76;
  color: #B2CEEB;
  opacity: 1 !important;
  cursor: not-allowed;
}

.dss-btn-copy {
  background: #0C2340;
  border: 1px solid #38BDF8;
  color: #F0F9FF;
}

.dss-btn-copy:hover {
  background: #123158;
}

/* --------------------------------------------------------------------------
   4. Mode 3 (#dss-models-panel) — 5 Global OCC Models & 7 Golden KPI Rules
   -------------------------------------------------------------------------- */
.dss-models-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
  min-width: 0;
}

.dss-model-card {
  min-width: 0;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: #09182C;
  border: 1px solid #204068;
  color: #F0F7FF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}

.dss-model-card[data-dss-model-card="balanced"] {
  grid-column: 1 / -1;
}

.dss-model-top {
  font-family: var(--font-mono);
  font-size: 10.6px;
  font-weight: 800;
  color: #7DD3FC;
  overflow-wrap: anywhere;
}

.dss-model-name {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.34;
}

.dss-model-mech {
  margin: 0;
  font-size: 12.2px;
  color: #D2E6FA;
  line-height: 1.45;
}

.dss-model-lesson {
  margin: 0;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  background: #061222;
  border-left: 3px solid #38BDF8;
  font-size: 11.8px;
  font-weight: 600;
  color: #E6F2FF;
  line-height: 1.42;
}

.dss-try-btn {
  align-self: flex-start;
  background: #0C3559;
  border: 1px solid #38BDF8;
  color: #FFFFFF;
}

.dss-try-btn:hover {
  background: #114573;
}

.dss-rules-box {
  min-width: 0;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: #081526;
  border: 1px solid #21436B;
}

.dss-rules-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
}

.dss-rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.dss-rule-item {
  min-width: 0;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: #0B1E36;
  border: 1px solid #23466E;
  font-size: 12px;
  color: #D6E8FA;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.dss-rule-item strong {
  display: block;
  color: #7DD3FC;
  font-family: var(--font-mono);
  font-size: 11px;
  margin-bottom: 2px;
}

/* --------------------------------------------------------------------------
   5. Responsive Collapse (<= 1120px, <= 980px, <= 680px / 390px Zero Overflow)
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .dss-kpi-triggers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .dss-context-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dss-controls-grid,
  .dss-mcda-grid,
  .dss-models-grid,
  .dss-rules-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dss-model-card[data-dss-model-card="balanced"] {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .dss-workbench,
  .dss-models-panel {
    padding: 10px 11px;
  }
  .dss-mode-bar {
    padding: 7px 8px;
  }
  .dss-mode-btn,
  .dss-mode-meta {
    flex-basis: 100%;
    width: 100%;
    text-align: left;
  }
  .dss-context-bar,
  .dss-weights-grid,
  .dss-kpi-triggers,
  .dss-opt-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .dss-btn-approve,
  .dss-btn-copy,
  .dss-try-btn {
    flex-basis: 100%;
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dss-ribbon-btn,
  .dss-mode-btn,
  .dss-sc-btn,
  .dss-preset-btn,
  .dss-opt-card,
  .dss-btn-approve,
  .dss-btn-copy,
  .dss-try-btn {
    transition: none;
  }
}
