.operations-board {
  --ob-text: #172b39;
  --ob-quiet: #526776;
  --ob-border: #dce6ea;
  --ob-teal: #087c72;
  --ob-red: #b13525;
  display: grid;
  gap: 16px;
  max-width: 1440px;
  min-width: 0;
  margin: 0 auto;
  color: var(--ob-text);
  font-family: Inter, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.operations-board *, .operations-board *::before, .operations-board *::after { box-sizing: border-box; }
.operations-board h2, .operations-board h3, .operations-board h4, .operations-board p, .operations-board dl { margin: 0; }
.operations-board button { cursor: pointer; font: inherit; }
.operations-board button:focus-visible, .operations-board input:focus-visible,
.operations-board select:focus-visible, .operations-board summary:focus-visible {
  outline: 2px solid #1b8f9b;
  outline-offset: 3px;
}
.operations-board [hidden] { display: none !important; }
.operations-board .ob-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: clamp(18px, 4vw, 35px);
  border-radius: 18px;
  color: #f5fbff;
  background: linear-gradient(112deg, #142d43 8%, #163e4d 67%, #185759);
  box-shadow: 0 6px 18px #142d431c;
}
.operations-board .ob-header h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 740; letter-spacing: -.025em; }
.operations-board .ob-header p { margin-top: 7px; color: #c7e5e5; font-size: 13px; overflow-wrap: anywhere; }
.operations-board .ob-legacy {
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid #9ac0c37d;
  border-radius: 9px;
  background: #d6fcfd0d;
  color: #f5fbff;
  white-space: nowrap;
}
.operations-board .ob-legacy:hover { background: #d6fcfd23; }
.operations-board .ob-controls { display: flex; flex-wrap: wrap; column-gap: 14px; row-gap: 8px; }
.operations-board .ob-controls label { flex: 0 1 205px; min-width: 0; font-size: 12px; color: var(--ob-quiet); font-weight: 650; }
.operations-board .ob-controls input, .operations-board .ob-controls select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  margin-top: 4px;
  border: 1px solid var(--ob-border);
  border-radius: 8px;
  background-color: #fff;
  color: var(--ob-text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}
.operations-board .ob-controls input:disabled { color: #657782; background: #ecf2f5; }
.operations-board .ob-modes {
  display: flex;
  gap: 3px;
  width: min(100%, 320px);
  background: #e4edef;
  padding: 4px;
  border-radius: 10px;
}
.operations-board .ob-modes button {
  flex: 1;
  min-height: 42px;
  padding: 4px 14px;
  border: 0;
  border-radius: 7px;
  color: var(--ob-quiet);
  background: transparent;
  font-weight: 660;
}
.operations-board .ob-modes button[aria-pressed="true"] { color: #065e5b; background: #fff; box-shadow: 0 1px 3px #183b5222; }
.operations-board .ob-body { min-width: 0; display: grid; gap: 16px; }
.operations-board .ob-kpis, .operations-board .ob-insights { display: grid; gap: 14px; }
.operations-board .ob-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.operations-board .ob-insights { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.operations-board .ob-card, .operations-board .ob-kpi {
  min-width: 0;
  padding: clamp(13px, 2vw, 22px);
  background: #fff;
  border: 1px solid var(--ob-border);
  border-radius: 13px;
  box-shadow: 0 2px 6px #142d4308;
}
.operations-board .ob-primary { background: #e8f4f2; border-color: #b9d9d3; }
.operations-board .ob-kpi dt, .operations-board .ob-muted, .operations-board .ob-kpi small { color: var(--ob-quiet); font-size: 13px; }
.operations-board .ob-kpi dd {
  margin: 6px 0 3px;
  color: var(--ob-text);
  font-size: clamp(17px, 2.05vw, 28px);
  letter-spacing: -.035em;
  font-weight: 735;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.operations-board .ob-kpi dd, .operations-board .ob-card td, .operations-board .ob-composition dd,
.operations-board .ob-trend-selected strong { font-variant-numeric: tabular-nums; }
.operations-board .ob-primary dd { color: #065d56; }
.operations-board .ob-negative, .operations-board .ob-negative dd { color: var(--ob-red); }
.operations-board h3 { color: var(--ob-text); font-size: 18px; font-weight: 730; }
.operations-board h4 { margin-top: 16px; font-size: 13px; }
.operations-board h3 + .ob-muted { margin-top: 5px; }
.operations-board .ob-plot {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--ob-columns), minmax(0,1fr));
  gap: 2px;
  height: 145px;
  margin: 10px 0;
}
.operations-board .ob-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ob-quiet);
  text-align: center;
  align-items: center;
}
.operations-board .ob-column[aria-pressed="true"], .operations-board .ob-column:hover { background: #edf5f5; color: #125854; }
.operations-board .ob-column small { font-size: 11px; line-height: 20px; }
.operations-board .ob-column-plot { position: relative; display: block; height: 125px; width: 100%; }
.operations-board .ob-column-plot::before { content: ''; position: absolute; left: -1px; right: -1px; top: 50%; border-top: 1px solid #c8d8dd; }
.operations-board .ob-column i {
  position: absolute;
  left: 50%;
  width: 64%;
  max-width: 30px;
  height: var(--ob-bar);
  transform: translateX(-50%);
}
.operations-board .ob-plot-gain { bottom: 50%; border-radius: 4px 4px 0 0; background: var(--ob-teal); }
.operations-board .ob-plot-loss { top: 50%; border-radius: 0 0 4px 4px; background: #c95141; }
.operations-board .ob-plot-missing { top: 50%; border-top: 2px dotted #6e8794; }
.operations-board .ob-trend-selected, .operations-board .ob-section-title, .operations-board .ob-composition > div, .operations-board .ob-alerts li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.operations-board .ob-trend-selected span, .operations-board .ob-section-title span { color: var(--ob-quiet); font-size: 12px; }
.operations-board .ob-trend-selected strong { display: block; font-size: 17px; overflow-wrap: anywhere; }
.operations-board .ob-link {
  min-height: 40px;
  padding: 4px 10px;
  border: 1px solid #c4e1dd;
  border-radius: 7px;
  background: #edf8f6;
  color: #066558;
  white-space: nowrap;
}
.operations-board .ob-link:disabled { color: #526776; background: #f1f4f5; border-color: #dce6ea; cursor: default; }
.operations-board details summary { cursor: pointer; min-height: 38px; padding: 9px 0; color: #125e60; font-size: 13px; }
.operations-board .ob-trend-table { overflow-x: auto; }
.operations-board .ob-composition { margin-top: 10px; }
.operations-board .ob-composition > div, .operations-board .ob-alerts li { min-height: 38px; border-bottom: 1px solid #eaf0f2; }
.operations-board .ob-composition dd { margin: 0; text-align: right; font-weight: 650; overflow-wrap: anywhere; }
.operations-board .ob-composition dt, .operations-board .ob-alerts li, .operations-board .ob-basis p { color: var(--ob-quiet); font-size: 13px; }
.operations-board .ob-alerts { list-style: none; padding: 3px 8px; margin: 5px 0 0; background: #fbf5e8; border-radius: 6px; }
.operations-board .ob-alerts strong { text-align: right; color: #85481f; overflow-wrap: anywhere; }
.operations-board table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.operations-board thead { color: var(--ob-quiet); background: #f3f7f8; }
.operations-board th, .operations-board td { padding: 9px 6px; text-align: right; border: 0; border-bottom: 1px solid #e9eff1; }
.operations-board th:first-child { text-align: left; }
.operations-board td { overflow-wrap: anywhere; }
.operations-board .ob-projects td:nth-child(4) { font-weight: 700; }
.operations-board .ob-projects button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #065e5a;
  text-align: left;
  overflow-wrap: anywhere;
}
.operations-board .ob-projects button:hover { text-decoration: underline; }
.operations-board .ob-basis p + p { margin-top: 6px; }
.operations-board .ob-loading { display: flex; align-items: center; gap: 12px; min-height: 90px; color: var(--ob-quiet); }

@media (max-width: 1040px) {
  .operations-board .ob-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .operations-board { gap: 12px; }
  .operations-board .ob-insights { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .operations-board .ob-kpis { gap: 8px; }
  .operations-board .ob-controls label { flex: 1 1 140px; }
  .operations-board .ob-modes { width: 100%; }
  .operations-board .ob-section-title { flex-wrap: wrap; }
  .operations-board .ob-projects { display: block; margin: 6px 0 0; }
  .operations-board .ob-projects thead { display: none; }
  .operations-board .ob-projects tbody { display: grid; gap: 9px; }
  .operations-board .ob-projects tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 10px; padding: 6px 10px 10px; border-radius: 8px; background: #f3f7f8; }
  .operations-board .ob-projects th { grid-column: 1 / -1; }
  .operations-board .ob-projects th, .operations-board .ob-projects td { display: block; padding: 0; border: 0; text-align: left; }
  .operations-board .ob-projects td::before { content: attr(data-label); display: block; font-size: 11px; color: var(--ob-quiet); font-weight: 500; }
  .operations-board .ob-projects button { width: 100%; }
}
@media (max-width: 380px) {
  .operations-board .ob-header { flex-wrap: wrap; }
  .operations-board .ob-kpi { padding: 11px; }
  .operations-board .ob-controls label { flex-basis: 110px; }
}


/* Responsive controls and monthly detail share the same data at every width. */
.operations-board .ob-controls { align-items: end; }
.operations-board .ob-date-actions { display: flex; gap: 5px; padding-top: 4px; }
.operations-board .ob-date-actions button {
  min-height: 44px;
  min-width: 44px;
  border: 1px solid var(--ob-border);
  background: #fff;
  color: var(--ob-text);
  border-radius: 8px;
  padding: 8px 12px;
}
.operations-board .ob-date-actions button:disabled { opacity: .45; cursor: default; }
.operations-board .ob-date-actions button:hover:enabled { border-color: #087c72; background: #edf8f6; }
.operations-board .ob-basis-inline { font-size: 12px; color: var(--ob-quiet); line-height: 1.6; }
.operations-board .ob-trend-table table { font-size: 12px; }
.operations-board .ob-trend-table th, .operations-board .ob-trend-table td { white-space: nowrap; }
.operations-board .ob-loading { flex-wrap: wrap; }
@media(max-width: 640px) {
  .operations-board .ob-date-actions { width: 100%; }
  .operations-board .ob-date-actions [data-current] { flex: 1; }
  .operations-board .ob-controls input, .operations-board .ob-controls select { font-size: 16px; }
  .operations-board .ob-trend-table table, .operations-board .ob-trend-table tbody { display: block; }
  .operations-board .ob-trend-table thead { display: none; }
  .operations-board .ob-trend-table tr { display: grid; grid-template-columns: minmax(0,1fr); padding: 8px 0; border-top: 1px solid var(--ob-border); }
  .operations-board .ob-trend-table th { display: block; border: 0; padding: 4px 0; }
  .operations-board .ob-trend-table td { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; white-space: normal; padding: 4px 0; border: 0; }
  .operations-board .ob-trend-table td::before { content: attr(data-label); flex: 0 1 auto; color: var(--ob-quiet); text-align: left; }
}
