.tnt-page { padding-bottom: 30px; }
.tnt-heading { margin-bottom: 24px; }
.tnt-heading-panel { display: flex; flex-direction: column; gap: 23px; }
.tnt-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.tnt-badge { display: inline-block; background: var(--ui-surface); color: var(--ui-muted); border: 1px solid var(--ui-line); border-radius: 6px; padding: 5px 9px; font-size: 12px; font-weight: 550; }
.tnt-title-block h1 { font-size: clamp(26px,2.65vw,36px); max-width: 960px; letter-spacing: -1.1px; line-height: 1.2; }
.tnt-subtitle { color: var(--ui-muted); margin-top: 12px; font-size: 14px; line-height: 1.65; max-width: 900px; }
.tnt-scenarios { display: flex; flex-wrap: wrap; gap: 10px; }
.tnt-scenario { color: var(--ui-ink); background: var(--ui-surface); border: 1px solid var(--ui-control-line); border-radius: 8px; padding: 12px 17px; min-height: 44px; font-size: 13px; font-weight: 600; transition: background 160ms var(--ui-ease),border-color 160ms var(--ui-ease); }
.tnt-scenario:hover { background: var(--ui-subtle); }
.tnt-scenario.tnt-active { background: var(--ui-primary); color: var(--ui-on-primary); border-color: var(--ui-primary); }
.tnt-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 24px; }
.tnt-card { min-width: 0; border: 1px solid var(--ui-line); border-radius: 12px; background: var(--ui-surface); box-shadow: 0 2px 4px #20212403; }
.tnt-kpi { padding: 20px; }
.tnt-kpi-top { display: flex; align-items: flex-start; flex-direction: column; gap: 8px; }
.tnt-kpi-label { font-size: 13px; font-weight: 650; line-height: 1.5; }
.tnt-trend { display: inline-block; background: var(--ui-subtle); color: var(--ui-muted); border-radius: 5px; padding: 3px 6px; font-size: 12px; line-height: 1.5; }
.tnt-value-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 8px; margin: 17px 0 15px; }
.tnt-kpi-value { font-size: 33px; font-weight: 650; line-height: 1.1; letter-spacing: -.7px; font-variant-numeric: tabular-nums; }
.tnt-value-hint { color: var(--ui-muted); font-size: 12px; }
.tnt-kpi-details { padding-top: 13px; border-top: 1px solid var(--ui-line); color: var(--ui-muted); font-size: 12px; }
.tnt-detail-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 7px; line-height: 1.5; }
.tnt-detail-row:first-child { margin-top: 0; }
.tnt-detail-row > span:last-child,.tnt-detail-row > strong { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.tnt-kpi-history { font-size: 12px; line-height: 1.6; margin: 16px 0; }
.tnt-kpi-history > div + div { margin-top: 6px; }
.tnt-caution { color: #963548; }
.tnt-positive { color: #146b49; }
.tnt-blue { color: var(--ui-primary); }
.tnt-chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 24px; }
.tnt-chart-card,.tnt-simulator { padding: 24px; }
.tnt-chart-card h2,.tnt-simulator h2,.tnt-matrix h2 { font-size: 19px; letter-spacing: -.35px; line-height: 1.45; }
.tnt-card-heading { margin-bottom: 20px; }
.tnt-description { font-size: 13px; color: var(--ui-muted); line-height: 1.65; margin-top: 6px; }
.tnt-chart-wrap { position: relative; width: 100%; height: 335px; margin-top: 18px; }
.tnt-evolution-row > .tnt-chart-card:last-child .tnt-chart-wrap { height: 290px; }
.tnt-year-controls { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 15px; padding: 4px; background: var(--ui-subtle); border-radius: 8px; width: fit-content; }
.tnt-year-button { padding: 8px 12px; min-height: 40px; background: transparent; color: var(--ui-muted); border: 1px solid transparent; border-radius: 6px; font-size: 12px; font-weight: 600; }
.tnt-year-button:hover { color: var(--ui-ink); background: var(--ui-surface); }
.tnt-year-button.tnt-active { color: var(--ui-primary); background: var(--ui-surface); border-color: var(--ui-control-line); }
.tnt-insight { padding: 15px; margin-top: 20px; border: 1px solid var(--ui-line); border-radius: 8px; font-size: 12px; color: var(--ui-muted); line-height: 1.8; background: var(--ui-canvas); }
.tnt-insight strong { color: var(--ui-ink); font-weight: 600; }
.tnt-insight code { color: var(--ui-ink); font: inherit; }
.tnt-kicker { display: block; margin-bottom: 7px; color: var(--ui-muted); font-size: 12px; font-weight: 650; letter-spacing: 1px; }
.tnt-control + .tnt-control { margin-top: 23px; }
.tnt-control-label { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-size: 12px; }
.tnt-control-label label { max-width: 62%; font-weight: 550; line-height: 1.6; }
.tnt-control-label > span { text-align: right; color: var(--ui-primary); font-weight: 650; line-height: 1.6; font-variant-numeric: tabular-nums; }
.tnt-range { margin-top: 7px !important; }
.tnt-range-notes { display: flex; justify-content: space-between; align-items: flex-start; gap: 11px; color: var(--ui-muted); font-size: 12px; line-height: 1.5; }
.tnt-range-notes > span { flex: 1; }
.tnt-range-notes > span:last-child { text-align: right; }
.tnt-range-notes > span:not(:first-child):not(:last-child) { text-align: center; }
.tnt-results { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-top: 23px; padding-top: 20px; border-top: 1px solid var(--ui-line); }
.tnt-result { background: var(--ui-subtle); border-radius: 8px; padding: 13px 10px; }
.tnt-result-label { color: var(--ui-muted); font-size: 12px; line-height: 1.5; }
.tnt-result-value { font-size: 23px; line-height: 1.3; font-weight: 650; margin: 7px 0 3px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.tnt-result-note { color: var(--ui-muted); font-size: 12px; line-height: 1.5; }
.tnt-matrix { padding: 24px; }
.tnt-table-scroll { margin-top: 20px; overflow-x: auto; border: 1px solid var(--ui-line); border-radius: 8px; }
.tnt-table { min-width: 1000px; width: 100%; border-collapse: separate; border-spacing: 0; }
.tnt-table th { white-space: normal; vertical-align: bottom; line-height: 1.6; }
.tnt-table th:first-child { width: 21%; }
.tnt-table td { vertical-align: top; line-height: 1.7; padding-top: 15px; padding-bottom: 15px; }
.tnt-table td:first-child { font-size: 13px; font-weight: 600; }
.tnt-table th:last-child,.tnt-table td:last-child { background: var(--ui-selected); color: #00529f; }
.tnt-table td span { display: inline; }
.tnt-page .tnt-kpi strong { font-weight: 650; }
@media (max-width: 1180px) {
  .tnt-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tnt-kpi-top { flex-direction: row; justify-content: space-between; }
  .tnt-kpi-details { margin-top: 16px; }
  .tnt-chart-row { grid-template-columns: 1fr; }
  .tnt-chart-wrap { height: 350px; }
  .tnt-evolution-row > .tnt-chart-card:last-child .tnt-chart-wrap { height: 330px; }
  .tnt-control-label label { max-width: 70%; }
}
@media (max-width: 680px) {
  .tnt-title-block h1 { max-width: none; font-size: 28px; letter-spacing: -.8px; }
  .tnt-kpis { grid-template-columns: 1fr; }
  .tnt-kpi { padding: 20px; }
  .tnt-kpi-top { flex-wrap: wrap; }
  .tnt-chart-card,.tnt-simulator,.tnt-matrix { padding: 20px; }
  .tnt-badges { gap: 7px; }
  .tnt-badge { font-size: 12px; }
  .tnt-scenarios { display: grid; grid-template-columns: 1fr; }
  .tnt-scenario { text-align: left; }
  .tnt-control-label { flex-direction: column; gap: 5px; }
  .tnt-control-label label { max-width: none; }
  .tnt-control-label > span { text-align: left; }
  .tnt-range-notes { flex-wrap: wrap; gap: 7px 14px; }
  .tnt-range-notes > span { flex: 0 0 calc(50% - 7px); text-align: left !important; }
  .tnt-results { grid-template-columns: 1fr; gap: 10px; }
  .tnt-result { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 13px 15px; }
  .tnt-result-value { grid-column: 2; grid-row: 1/3; font-size: 26px; margin: 0; }
  .tnt-result-note { grid-column: 1; }
  .tnt-chart-wrap { height: 330px; margin-left: -6px; width: calc(100% + 10px); }
  .tnt-evolution-row > .tnt-chart-card:last-child .tnt-chart-wrap { height: 350px; }
  .tnt-chart-card h2,.tnt-simulator h2,.tnt-matrix h2 { font-size: 18px; }
  .tnt-table-scroll { margin-left: -4px; margin-right: -4px; }
}
