* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: #1b1f24;
  background: #f3f5f8;
}

.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

header h1 {
  margin: 0 0 8px;
  font-size: 30px;
}

header p {
  margin: 0 0 20px;
  color: #4a5562;
}

.t90-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

.t90-card {
  border-radius: 12px;
  padding: 10px 12px;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.t90-card-non {
  background: linear-gradient(135deg, #fb923c, #ea580c);
}

.t90-card-committee {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.t90-card-committee-eh {
  background: linear-gradient(135deg, #10b981, #047857);
}

.t90-label {
  margin: 0 0 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.92;
}

.t90-value {
  margin: 0;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.1;
}

.t90-meta {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.3;
  opacity: 0.95;
}

.t90-help {
  margin: 8px 2px 0;
  font-size: 12px;
  color: #4b5563;
}

.panel {
  background: #fff;
  border: 1px solid #dfe4ea;
  border-radius: 10px;
  padding: 16px;
  margin-top: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.panel h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.config-panel {
  padding: 0;
  overflow: hidden;
}

.config-panel summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}

.config-panel summary::-webkit-details-marker {
  display: none;
}

.config-panel[open] summary {
  border-bottom-color: #dfe4ea;
}

.config-title {
  font-size: 18px;
  font-weight: 600;
}

.config-hint {
  font-size: 12px;
  color: #6b7785;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.config-body {
  padding: 12px 14px 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

label {
  font-size: 13px;
  color: #303945;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  font-size: 14px;
}

.config-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.config-grid label {
  font-size: 12px;
  gap: 4px;
}

.config-grid label > span {
  color: #3f4955;
}

.config-grid label > small {
  color: #6b7785;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
}

.config-grid input {
  padding: 6px 8px;
  font-size: 13px;
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

button {
  border: 1px solid #cbd5e1;
  background: #eef2f7;
  color: #1a2330;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
}

button:hover {
  background: #e3e9f1;
}

.status {
  margin: 12px 0 6px;
  font-size: 13px;
  min-height: 18px;
}

.chart-wrap {
  width: 100%;
  min-height: 540px;
  border: 1px solid #ecf0f4;
  border-radius: 8px;
  background: #fff;
}

.chart-wrap .plotly,
.chart-wrap .js-plotly-plot,
.chart-wrap .plot-container {
  width: 100% !important;
  height: 540px !important;
}

.note {
  margin: 8px 0 0;
  font-size: 12px;
  color: #667382;
}

@media (max-width: 860px) {
  .t90-strip {
    grid-template-columns: 1fr;
  }

  .t90-value {
    font-size: 21px;
  }

  .t90-meta {
    font-size: 10px;
  }

  .config-body {
    padding: 10px 10px 12px;
  }

  .config-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .config-grid label {
    font-size: 11px;
  }

  .config-grid label > small {
    font-size: 9px;
  }

  .config-grid input {
    padding: 6px 7px;
    font-size: 12px;
  }

  .chart-wrap {
    min-height: 420px;
  }

  .chart-wrap .plotly,
  .chart-wrap .js-plotly-plot,
  .chart-wrap .plot-container {
    height: 420px !important;
  }
}
