:root {
  --iz-dark: #102a43;
  --iz-darker: #0b1f33;
  --iz-light: #f4f7fa;
  --iz-line: #d9e2ec;
  --iz-muted: #627d98;
  --iz-accent: #d62828;
  --iz-green: #14804a;
  --iz-yellow: #a15c00;
  --iz-white: #fff;
}

.iz-survey-wrap,
.iz-report {
  max-width: 1080px;
  margin: 24px auto;
  color: #172b4d;
  font-family: inherit;
}

.iz-survey-header,
.iz-main-card {
  background: linear-gradient(135deg, var(--iz-darker), var(--iz-dark));
  color: var(--iz-white);
  border-radius: 18px;
  padding: clamp(24px, 5vw, 56px);
  box-shadow: 0 16px 44px rgba(16, 42, 67, .18);
}

.iz-survey-header h1,
.iz-main-card h2 {
  color: var(--iz-white);
  margin: 4px 0 8px;
}

.iz-eyebrow {
  margin: 0 0 8px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #bcccdc;
}

.iz-survey-subtitle,
.iz-survey-deadline,
.iz-main-card p {
  color: #d9e2ec;
}

.iz-survey-form {
  margin-top: 24px;
}

.iz-survey-section,
.iz-report-section,
.iz-auto-summary,
.iz-method-note {
  background: #fff;
  border: 1px solid var(--iz-line);
  border-radius: 16px;
  padding: clamp(20px, 4vw, 36px);
  margin: 22px 0;
}

.iz-survey-section h2,
.iz-report-section h2 {
  margin-top: 0;
  color: var(--iz-dark);
}

.iz-scale-explainer,
.iz-help,
.iz-section-heading p,
.iz-survey-submit p,
.iz-privacy-note {
  color: var(--iz-muted);
}

.iz-score-field {
  border: 0;
  padding: 24px 0;
  margin: 0;
  border-bottom: 1px solid #e8eef4;
}

.iz-score-field:last-child {
  border-bottom: 0;
}

.iz-score-field legend {
  width: 100%;
  font-size: 1.05rem;
  font-weight: 750;
  color: #243b53;
}

.iz-required { color: var(--iz-accent); }
.iz-help { margin: 6px 0 14px; font-size: .94rem; }

.iz-score-options {
  display: grid;
  grid-template-columns: repeat(11, minmax(34px, 1fr));
  gap: 7px;
}

.iz-score-options label { cursor: pointer; }
.iz-score-options input { position: absolute; opacity: 0; pointer-events: none; }
.iz-score-options span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid #bcccdc;
  border-radius: 9px;
  font-weight: 700;
  background: #fff;
  transition: .15s ease;
}
.iz-score-options label:hover span { border-color: var(--iz-dark); background: #f0f4f8; }
.iz-score-options input:focus + span { outline: 3px solid rgba(21, 101, 192, .25); }
.iz-score-options input:checked + span { background: var(--iz-dark); border-color: var(--iz-dark); color: #fff; }

.iz-no-score { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--iz-muted); }
.iz-survey-submit { text-align: center; margin: 28px 0; }
.iz-button {
  border: 0;
  border-radius: 999px;
  background: var(--iz-accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 28px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(214, 40, 40, .2);
}
.iz-button:hover { filter: brightness(.94); }
.iz-privacy-note { font-size: .86rem; text-align: center; }

.iz-notice {
  max-width: 780px;
  margin: 28px auto;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--iz-line);
  background: #fff;
}
.iz-notice-success { border-left: 5px solid var(--iz-green); }
.iz-notice-error { border-left: 5px solid var(--iz-accent); }
.iz-notice-info { border-left: 5px solid #486581; }

.iz-main-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}
.iz-index-number {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.iz-index-number strong {
  font-size: clamp(4.5rem, 12vw, 9rem);
  line-height: .86;
  letter-spacing: -.06em;
}
.iz-index-number span { color: #bcccdc; margin-top: 10px; font-weight: 700; }
.iz-index-change { grid-column: 1 / -1; font-weight: 800; font-size: 1.05rem; }
.iz-trend-up { color: var(--iz-green); }
.iz-trend-down { color: var(--iz-accent); }
.iz-trend-stable { color: #486581; }
.iz-main-card .iz-trend-up { color: #67d391; }
.iz-main-card .iz-trend-down { color: #ff8b8b; }
.iz-main-card .iz-trend-stable { color: #bcccdc; }

.iz-auto-summary { font-size: 1.12rem; line-height: 1.72; }
.iz-section-heading { margin-bottom: 20px; }
.iz-section-heading p { margin-bottom: 0; }
.iz-table-wrap { overflow-x: auto; }
.iz-results-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.iz-results-table th,
.iz-results-table td { padding: 14px 10px; border-bottom: 1px solid #e8eef4; text-align: left; vertical-align: middle; }
.iz-results-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--iz-muted); }
.iz-results-table tbody th { width: 38%; color: #243b53; }
.iz-bar { height: 12px; min-width: 180px; background: #e8eef4; border-radius: 999px; overflow: hidden; }
.iz-bar span { display: block; height: 100%; background: linear-gradient(90deg, #486581, var(--iz-dark)); border-radius: inherit; }

.iz-player-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.iz-player-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px 72px 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--iz-line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
}
.iz-player-card img,
.iz-player-placeholder { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--iz-dark); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.iz-player-rank { width: 42px; height: 42px; border-radius: 50%; background: var(--iz-light); color: var(--iz-dark); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; font-weight: 900; }
.iz-player-info h3 { margin: 0; font-size: 1rem; color: #243b53; }
.iz-player-info p { margin: 3px 0 0; color: var(--iz-muted); font-size: .85rem; }
.iz-player-score { text-align: right; }
.iz-player-score strong { display: block; font-size: 1.7rem; color: var(--iz-dark); }
.iz-player-score span { display: block; white-space: nowrap; color: var(--iz-muted); font-size: .78rem; }
.iz-player-delta { position: absolute; right: 12px; bottom: 8px; font-size: .76rem; font-weight: 800; }

.iz-chart-scroll { overflow-x: auto; }
.iz-evolution-chart { width: 100%; min-width: 720px; height: auto; }
.iz-grid-line { stroke: #d9e2ec; stroke-width: 1; }
.iz-line { fill: none; stroke: var(--iz-dark); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.iz-point { fill: #fff; stroke: var(--iz-accent); stroke-width: 4; }
.iz-axis-label { fill: #627d98; font-size: 13px; }
.iz-point-value { fill: #102a43; font-size: 14px; font-weight: 800; }
.iz-method-note { background: var(--iz-light); color: #486581; line-height: 1.65; }

@media (max-width: 780px) {
  .iz-score-options { grid-template-columns: repeat(6, 1fr); }
  .iz-main-card { grid-template-columns: 1fr; }
  .iz-index-number { align-items: flex-start; }
  .iz-index-change { grid-column: auto; }
  .iz-player-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .iz-score-options { grid-template-columns: repeat(4, 1fr); }
  .iz-player-card { grid-template-columns: 40px 54px 1fr auto; gap: 9px; }
  .iz-player-card img, .iz-player-placeholder { width: 50px; height: 50px; }
  .iz-player-score strong { font-size: 1.4rem; }
}

.iz-main-card .iz-index-change a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.iz-dashboard-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.iz-dashboard-split .iz-report-section { margin: 0; }
.iz-dashboard-split .iz-evolution-chart { min-width: 620px; }
.iz-archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.iz-archive-card { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; padding: 16px; border: 1px solid var(--iz-line); border-radius: 12px; text-decoration: none !important; background: #fff; }
.iz-archive-card span { color: var(--iz-dark); font-weight: 800; }
.iz-archive-card strong { grid-row: span 2; align-self: center; font-size: 1.7rem; color: var(--iz-dark); }
.iz-archive-card small { color: var(--iz-muted); }
.iz-archive-card:hover { border-color: var(--iz-dark); transform: translateY(-1px); }
@media (max-width: 900px) {
  .iz-dashboard-split { grid-template-columns: 1fr; }
  .iz-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .iz-archive-grid { grid-template-columns: 1fr; }
}

.iz-weekly-survey-section {
  border-left: 5px solid var(--iz-accent);
}
.iz-weekly-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.iz-weekly-result-card {
  border: 1px solid var(--iz-line);
  border-radius: 16px;
  padding: 22px;
  background: #fff;
}
.iz-weekly-result-card h3 {
  margin: 0 0 8px;
  color: #243b53;
  font-size: 1.08rem;
  line-height: 1.4;
}
.iz-weekly-result-card > p {
  margin: 0 0 18px;
  color: var(--iz-muted);
}
.iz-weekly-score-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.iz-weekly-result-card .iz-index-number {
  align-items: flex-start;
}
.iz-weekly-result-card .iz-index-number strong {
  font-size: clamp(3rem, 7vw, 5.2rem);
}
.iz-weekly-result-card .iz-index-number span {
  color: var(--iz-muted);
}
.iz-weekly-median {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--iz-muted);
}
.iz-weekly-median strong {
  color: var(--iz-dark);
  font-size: 2rem;
}
@media (max-width: 780px) {
  .iz-weekly-result-grid { grid-template-columns: 1fr; }
}
