nav {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
nav button {
  min-width: 0;
}
nav span {
  font-size: 10px;
}
.season-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 16px 0 10px;
  padding: 12px 14px;
  background: rgba(14, 32, 53, 0.8);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.season-tools label {
  min-width: 0;
}
.season-tools label > span {
  display: block;
  font-size: 8px;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-bottom: 4px;
}
.season-tools select {
  background: transparent;
  border: 0;
  color: var(--gold);
  font-weight: 750;
  font-size: 14px;
  padding: 2px 15px 2px 0;
  max-width: 160px;
}
.season-tools select option {
  background: #11243c;
  color: var(--text);
}
.cloud-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 0;
  border: 0;
  background: none;
  font-size: 10px;
  color: var(--muted);
  min-width: 0;
  max-width: 58%;
  text-align: left;
}
.cloud-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  min-width: 7px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 4px rgba(144, 168, 194, 0.06);
}
[data-mode="online"] .cloud-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(99, 215, 170, 0.06);
}
[data-mode="offline"] .cloud-dot,
[data-mode="auth"] .cloud-dot,
.has-conflict .cloud-dot {
  background: var(--orange);
}
.cloud-backup-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0 17px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 15px;
}
.cloud-backup-summary > div {
  flex: 1;
  min-width: 0;
}
.cloud-backup-summary strong,
.cloud-backup-summary small {
  display: block;
}
.cloud-backup-summary strong {
  font-size: 12px;
}
.cloud-backup-summary small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.cloud-backup-summary .text-button {
  font-size: 10px;
}
.margin-hero {
  border-color: rgba(189, 147, 64, 0.25);
  background:
    radial-gradient(
      ellipse at 85% 0,
      rgba(189, 147, 64, 0.12),
      transparent 70%
    ),
    linear-gradient(130deg, #13253b, #0d1d31);
}
.margin-hero .margin-total {
  display: block;
  font-size: 38px;
  letter-spacing: -1.4px;
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  margin: 17px 0 10px;
}
.margin-hero p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.negative-text {
  color: var(--red) !important;
}
.chart-switch {
  margin-bottom: 24px;
}
.comparison-chart {
  display: grid;
  gap: 18px;
}
.comparison-row {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) minmax(100px, 2fr) minmax(88px, 1fr);
  gap: 12px;
  align-items: center;
}
.comparison-name {
  border: 0;
  background: none;
  text-align: left;
  font-size: 12px;
  font-weight: 650;
  padding: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.comparison-track {
  height: 26px;
  position: relative;
  background: linear-gradient(
    90deg,
    rgba(240, 140, 152, 0.055) 50%,
    rgba(99, 215, 170, 0.035) 50%
  );
  border-radius: 4px;
}
.comparison-axis {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #48617d;
}
.comparison-track > i {
  position: absolute;
  top: 6px;
  bottom: 6px;
  min-width: 1px;
  border-radius: 3px;
  animation: bar-grow 0.65s ease both;
  transform-origin: left;
}
.comparison-track > i.positive {
  background: linear-gradient(90deg, #98723a, var(--gold));
}
.comparison-track > i.negative {
  background: linear-gradient(90deg, #a95c68, var(--red));
  transform-origin: right;
}
.comparison-value {
  text-align: right;
}
.comparison-value strong {
  display: block;
  color: var(--gold);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.comparison-value small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
}
.unknown-cost {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 9px;
}
.effectif-detail {
  margin-top: 14px;
  color: var(--muted);
  font-size: 10px;
}
.effectif-detail summary {
  cursor: pointer;
  padding: 4px 0;
}
.effectif-detail .field {
  margin-top: 12px;
}
.season-hero {
  display: flex;
  gap: 20px;
  align-items: center;
  background:
    radial-gradient(
      ellipse at 0 50%,
      rgba(189, 147, 64, 0.13),
      transparent 70%
    ),
    #102139;
  border-color: rgba(189, 147, 64, 0.25);
}
.season-hero h2 {
  font-size: 35px;
  margin: 7px 0;
  letter-spacing: -1px;
}
.season-hero p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  margin: 0;
}
.season-seal {
  width: 66px;
  min-width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(189, 147, 64, 0.35);
  background: rgba(189, 147, 64, 0.07);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(189, 147, 64, 0.025);
}
.season-seal svg {
  width: 30px;
  height: 30px;
  color: var(--gold);
}
.report-actions {
  display: flex;
  gap: 10px;
  margin: 17px 0 20px;
}
.report-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 12px;
  padding: 12px;
  font-size: 11px;
  border: 1px solid var(--line);
  flex: 1;
}
.report-actions svg {
  width: 16px;
  height: 16px;
}
.report-switch {
  margin-bottom: 20px;
}
.report-table-wrap {
  overflow: auto;
  margin-top: 20px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.report-table {
  border-collapse: collapse;
  min-width: 560px;
  width: 100%;
  font-size: 11px;
}
.report-table th {
  text-align: left;
  white-space: nowrap;
  color: var(--gold);
  background: #12243b;
  padding: 14px 12px;
  font-size: 10px;
}
.report-table td {
  padding: 13px 12px;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.report-table tr:nth-child(even) {
  background: rgba(130, 183, 244, 0.02);
}
.report-table td:first-child {
  min-width: 145px;
}
.report-table td:not(:first-child) {
  white-space: nowrap;
}
.report-table td button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text);
  text-align: left;
  font-weight: 650;
}
.carry-project {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 18px;
  gap: 6px 12px;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.carry-project strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.carry-project span {
  grid-column: 1;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.carry-project svg {
  grid-column: 2;
  grid-row: 1/3;
  width: 17px;
  height: 17px;
  align-self: center;
  color: var(--gold);
}
.next-season-card p,
.season-dashboard p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.next-season-card > button,
.season-dashboard > button {
  width: 100%;
  display: flex;
  gap: 9px;
  justify-content: center;
  align-items: center;
  min-height: 47px;
  border-radius: 12px;
  padding: 12px;
  border: 0;
  font-size: 12px;
  font-weight: 750;
  margin-top: 15px;
}
.season-dashboard svg {
  width: 16px;
  height: 16px;
}
.cloud-settings-summary {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  padding: 16px;
  background: #12263d;
  border-radius: 12px;
}
.setup-detail {
  margin-top: 24px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.setup-detail summary {
  color: var(--gold);
  cursor: pointer;
}
.setup-detail button {
  border-radius: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  font-size: 11px;
}
.generated-key {
  font-family: monospace !important;
  font-size: 12px !important;
  margin-top: 12px;
}
.form-error {
  color: var(--red);
  font-size: 12px;
  line-height: 1.6;
  min-height: 1em;
}
.auth-modal .sheet {
  max-width: 480px;
  margin: auto;
}
.auth-modal {
  background: rgba(5, 13, 24, 0.94);
  backdrop-filter: blur(12px);
}
.auth-modal .sheet-heading h2 {
  line-height: 1.35;
}
.cloud-copy {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cloud-copy strong,
.cloud-copy small {
  display: block;
}
.cloud-copy strong {
  font-size: 11px;
}
.cloud-copy small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.cloud-copy button {
  font-size: 10px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.conflict-row {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.conflict-row strong,
.conflict-row span {
  display: block;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.conflict-row span {
  color: var(--muted);
  font-size: 11px;
}
.notification-state {
  padding: 16px;
  background: #12263d;
  border-radius: 12px;
  margin-top: 20px;
}
.notification-state strong,
.notification-state small {
  display: block;
}
.notification-state strong {
  font-size: 13px;
}
.notification-state small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin-top: 8px;
}
@media (max-width: 600px) {
  .season-tools {
    padding: 11px 12px;
    gap: 10px;
  }
  .season-tools select {
    font-size: 12px;
    max-width: 140px;
  }
  .cloud-pill {
    font-size: 9px;
    line-height: 1.6;
  }
  .comparison-row {
    grid-template-columns: minmax(72px, 1fr) minmax(90px, 1.5fr) minmax(
        80px,
        1fr
      );
    gap: 8px;
  }
  .comparison-name {
    font-size: 11px;
  }
  .comparison-value strong {
    font-size: 11px;
  }
  .comparison-value small {
    font-size: 8px;
  }
  .season-hero {
    gap: 15px;
  }
  .season-hero h2 {
    font-size: 29px;
  }
  .margin-hero .margin-total {
    font-size: 31px;
  }
  .cloud-copy {
    grid-template-columns: 1fr auto auto;
  }
  .cloud-copy strong {
    font-size: 10px;
  }
  .report-actions button {
    font-size: 10px;
    padding: 10px;
  }
  .season-dashboard h2 {
    font-size: 22px;
  }
}
@media (max-width: 360px) {
  nav span {
    font-size: 8px;
  }
  nav button {
    padding-left: 3px;
    padding-right: 3px;
  }
  .season-tools {
    padding: 10px;
  }
  .season-tools select {
    max-width: 128px;
    font-size: 11px;
  }
  .cloud-pill {
    max-width: 52%;
    font-size: 8px;
  }
  .comparison-row {
    grid-template-columns: minmax(63px, 1fr) minmax(76px, 1.3fr) minmax(
        68px,
        1fr
      );
  }
  .comparison-name {
    font-size: 10px;
  }
  .comparison-value strong {
    font-size: 10px;
  }
  .report-actions {
    flex-direction: column;
  }
  .cloud-copy {
    grid-template-columns: 1fr 1fr;
  }
  .cloud-copy > div {
    grid-column: 1/-1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .comparison-track > i {
    animation: none;
  }
}
