/* PULSO · evolution. Uses the shared paper, charcoal and terracotta palette. */
body[data-page="evolucao"] .topbar { display: none; }
body[data-page="evolucao"] main { padding-top: 19px; }
.evo-page { min-width: 0; }
.evo-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin: 6px 0 30px; }
.evo-heading-copy { min-width: 0; }
.evo-heading .eyebrow { display: block; margin-bottom: 12px; font-size: 12px; }
.evo-heading h1 { font-size: 64px; font-weight: 500; line-height: 1.04; letter-spacing: -.06em; }
.evo-heading h1 > span { color: var(--accent-text); }
.evo-heading p { margin-top: 13px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.evo-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.evo-periods { display: inline-flex; align-items: center; gap: 5px; }
.evo-periods button { min-height: 38px; border: 1px solid transparent; border-radius: 999px; background: transparent; padding: 9px 16px; color: var(--muted); font-size: 12px; transition: background .16s, color .16s, border-color .16s; }
.evo-periods button:hover { color: var(--ink); background: var(--surface-2); }
.evo-periods button.active, .evo-periods button.is-active, .evo-periods button[aria-pressed="true"] { background: var(--surface); border-color: var(--line); color: var(--ink); }
.evo-demo-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; white-space: nowrap; }
.evo-demo-toggle input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.evo-demo-toggle .icon { width: 17px; height: 17px; }
.evo-demo-toggle[aria-pressed="true"] { color: var(--accent-text); }
.evo-range { margin-left: auto; font-size: 12px; color: var(--muted); line-height: 1.5; }
.evo-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 25px 0 27px; }
.evo-summary article { min-width: 0; padding: 0 28px; border-right: 1px solid var(--line); }
.evo-summary article:first-child { padding-left: 0; }
.evo-summary article:last-child { padding-right: 0; border-right: 0; }
.evo-summary article > span { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.evo-summary article > strong { display: block; color: var(--ink); margin-top: 9px; font-size: 39px; font-weight: 500; line-height: 1.15; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.evo-summary article > strong small { display: inline; margin-left: 4px; color: var(--muted); font-size: 14px; font-weight: 400; letter-spacing: 0; }
.evo-summary article > small { display: block; color: var(--muted); margin-top: 7px; font-size: 11px; line-height: 1.5; }
.evo-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, .85fr); align-items: start; gap: 38px; margin: 35px 0 39px; }
.evo-progress, .evo-frequency { min-width: 0; }
.evo-frequency { border-left: 1px solid var(--line); padding-left: 30px; }
.evo-section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 21px; }
.evo-section-heading h2 { font-size: 28px; font-weight: 500; line-height: 1.16; letter-spacing: -.04em; }
.evo-section-heading p { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.evo-section-heading > span, .evo-section-heading > small { color: var(--muted); font-size: 11px; padding-top: 5px; line-height: 1.5; }
.evo-exercise-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; flex: 1; }
.evo-exercise-field > label, .evo-exercise-field > span { color: var(--muted); font-size: 11px; line-height: 1.4; }
.evo-select { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 11px 35px 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }
.evo-select:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.evo-metric-toggle { display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: transparent; }
.evo-metric-toggle button { min-height: 33px; padding: 7px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 11px; line-height: 1.4; }
.evo-metric-toggle button:hover { color: var(--ink); background: var(--surface-2); }
.evo-metric-toggle button.active, .evo-metric-toggle button.is-active, .evo-metric-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.evo-chart-host { min-width: 0; margin-top: 20px; }
.evo-chart-detail { display: flex; align-items: center; justify-content: space-between; gap: 23px; border-top: 1px solid var(--line); padding: 20px 0 0; margin-top: 15px; }
.evo-chart-detail:empty { display: none; }
.evo-chart-detail-main { display: flex; width: 100%; min-width: 0; align-items: center; justify-content: space-between; gap: 25px; }
.evo-point-insight { width: 100%; min-width: 0; }
.evo-chart-value small { display: inline-block; line-height: 1.5; }
.evo-selected-comparison { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 14px; }
.evo-previous-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.evo-previous-head > span { color: var(--muted); font-size: 11px; }
.evo-previous-head .btn, .evo-best-record .btn { flex-shrink: 0; min-height: 44px; padding: 8px 0 8px 12px; font-size: 11px; }
.evo-previous-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.evo-previous-value strong { color: var(--ink); font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.evo-previous-value > span { color: var(--muted); font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.evo-selected-comparison > p { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.evo-selected-comparison > p.evo-comparison-difference { color: var(--ink); }
.evo-best-records { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 23px; }
.evo-best-records-heading h3 { font-size: 23px; font-weight: 500; line-height: 1.25; letter-spacing: -.035em; }
.evo-best-records-heading > p { margin-top: 7px; font-size: 11px; line-height: 1.6; color: var(--muted); }
.evo-best-records-explanation, .evo-records-footnote, .evo-insights-empty { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.evo-best-records-list { list-style: none; margin: 17px 0 0; padding: 0; }
.evo-best-record { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.evo-best-record > div { min-width: 0; }
.evo-best-record strong { display: block; color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.5; font-variant-numeric: tabular-nums; }
.evo-best-record span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.evo-records-more { min-height: 44px; padding-left: 0; font-size: 12px; margin-top: 8px; }
.evo-records-footnote { font-size: 11px; }
.evo-chart-detail-main > span, .evo-chart-detail-main > small { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.evo-chart-value { display: block; color: var(--accent-text); margin-top: 5px; font-size: 34px; font-weight: 500; line-height: 1.12; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.evo-chart-value small { font-size: 14px; letter-spacing: 0; margin-left: 4px; font-weight: 400; }
.evo-chart-comparison { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 12px; line-height: 1.65; text-align: left; margin-top: 13px; }
.evo-chart-comparison strong { display: inline; font-size: 14px; font-weight: 500; color: var(--ink); }
.evo-chart-comparison.is-positive, .evo-chart-comparison.is-positive strong { color: var(--success); }
.evo-chart-hint { margin-top: 20px; color: var(--muted); font-size: 12px; line-height: 1.7; max-width: 700px; }
.evo-history { border-top: 1px solid var(--line); padding-top: 27px; }
.evo-history-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 25px; margin-bottom: 22px; }
.evo-history-head h2 { font-size: 29px; font-weight: 500; line-height: 1.15; letter-spacing: -.04em; }
.evo-history-head p { color: var(--muted); font-size: 13px; line-height: 1.65; margin-top: 8px; }
.evo-history-tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.evo-history-tools .btn { min-height: 39px; font-size: 12px; padding: 10px 16px; }
.evo-history-list { border-top: 1px solid var(--line); }
.evo-history-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) 120px 22px; align-items: center; gap: 25px; width: 100%; min-height: 87px; padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); text-align: left; transition: background .16s; }
.evo-history-row:hover { background: var(--surface-2); }
.evo-history-row:focus-visible { outline: 2px solid var(--focus); outline-offset: -3px; }
.evo-history-date { display: block; color: var(--muted); font-size: 12px; line-height: 1.55; font-variant-numeric: tabular-nums; }
.evo-history-date strong { display: block; color: var(--ink); font-size: 15px; font-weight: 500; }
.evo-history-date small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.evo-history-name { min-width: 0; }
.evo-history-name strong { display: block; font-size: 16px; font-weight: 500; letter-spacing: -.02em; line-height: 1.5; }
.evo-history-name small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; line-height: 1.5; }
.evo-history-meta { color: var(--muted); font-size: 12px; line-height: 1.6; }
.evo-history-volume { display: block; font-size: 16px; font-weight: 500; letter-spacing: -.025em; text-align: right; font-variant-numeric: tabular-nums; }
.evo-history-volume small { display: block; color: var(--muted); margin-top: 4px; font-size: 10px; font-weight: 400; letter-spacing: 0; }
.evo-history-arrow { display: grid; place-items: center; color: var(--muted); }
.evo-history-arrow .icon { width: 17px; height: 17px; }
.evo-demo-badge { display: inline-flex; align-items: center; padding: 2px 7px; margin-left: 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 9px; font-weight: 400; letter-spacing: 0; vertical-align: middle; }
.evo-empty, .evo-chart-empty { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: 230px; padding: 30px 0; color: var(--muted); }
.evo-empty strong, .evo-chart-empty strong { display: block; color: var(--ink); font-size: 23px; font-weight: 500; line-height: 1.3; letter-spacing: -.035em; }
.evo-empty p, .evo-chart-empty p { font-size: 13px; line-height: 1.7; max-width: 450px; margin-top: 10px; }
.evo-empty .btn, .evo-chart-empty .btn { margin-top: 20px; font-size: 12px; }
.evo-week-filter { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; padding: 11px 14px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.evo-week-filter button { border: 0; background: transparent; color: var(--accent-text); padding: 4px 0; min-height: 30px; font-size: 11px; white-space: nowrap; }
.evo-progress-chart, .evo-chart-scroll, .evo-frequency-chart { min-width: 0; }
.evo-chart-scroll { width: 100%; overflow-x: auto; overflow-y: hidden; padding: 5px 0 13px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; overscroll-behavior-x: contain; }
.evo-chart { display: block; width: 100%; height: auto; overflow: visible; }
.evo-chart text { font-family: Urbanist, sans-serif; }
.evo-axis { fill: none; stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.evo-gridline { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.evo-axis-label, .evo-date-label, .evo-unit { fill: var(--muted); font-size: 11px; font-weight: 400; }
.evo-date-label { font-size: 10px; }
.evo-unit { font-size: 10px; }
.evo-line { fill: none; stroke: var(--accent-text); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.evo-point { cursor: pointer; outline: none; }
.evo-point-hit { fill: transparent; stroke: none; pointer-events: all; }
.evo-point-dot { fill: var(--accent-text); stroke: var(--bg); stroke-width: 2; vector-effect: non-scaling-stroke; }
.evo-point-ring { fill: none; stroke: var(--accent-text); stroke-width: 2; opacity: 0; vector-effect: non-scaling-stroke; }
.evo-point:hover .evo-point-ring { opacity: .55; }
.evo-point.is-selected .evo-point-ring, .evo-point[aria-pressed="true"] .evo-point-ring { opacity: 1; }
.evo-point.is-selected .evo-point-dot, .evo-point[aria-pressed="true"] .evo-point-dot { stroke-width: 2.5; }
.evo-point:focus-visible .evo-point-ring { stroke: var(--focus); stroke-width: 3; opacity: 1; }
.evo-record-picker { display: flex; align-items: center; gap: 12px; margin-top: 16px; min-width: 0; }
.evo-record-picker > span { color: var(--muted); font-size: 11px; line-height: 1.5; flex-shrink: 0; }
.evo-record-picker select { flex: 1; min-width: 0; min-height: 39px; padding: 9px 33px 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 12px; }
.evo-record-picker select:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.evo-chart-note { color: var(--muted); font-size: 11px; line-height: 1.65; margin-top: 11px; }
.evo-frequency-bars { display: flex; align-items: stretch; gap: 7px; overflow-x: auto; overflow-y: hidden; padding: 4px 3px 13px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; overscroll-behavior-x: contain; }
.evo-week-bar { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; min-width: 32px; min-height: 214px; padding: 7px 3px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--muted); transition: background .16s, border-color .16s; }
.evo-week-bar:hover { background: var(--surface-2); }
.evo-week-bar:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.evo-week-bar.is-selected, .evo-week-bar[aria-pressed="true"] { background: var(--surface-2); border-color: var(--line); }
.evo-week-count { font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--ink); font-variant-numeric: tabular-nums; }
.evo-week-track { position: relative; display: block; width: 100%; height: 157px; flex-shrink: 0; }
.evo-week-fill { position: absolute; bottom: 0; left: 16%; right: 16%; display: block; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--accent-soft); transition: background .16s; }
.evo-week-bar:hover .evo-week-fill, .evo-week-bar.is-selected .evo-week-fill, .evo-week-bar[aria-pressed="true"] .evo-week-fill { background: var(--accent-text); }
.evo-week-track > .evo-week-goal { position: absolute; left: 0; right: 0; height: 1px; z-index: 1; border-top: 1px dashed var(--line-strong); pointer-events: none; }
.evo-week-label { color: var(--muted); font-size: 9px; line-height: 1.3; white-space: nowrap; }
.evo-week-bar.is-selected .evo-week-label, .evo-week-bar[aria-pressed="true"] .evo-week-label { color: var(--ink); }
.evo-frequency-legend { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; line-height: 1.6; margin-top: 12px; }
.evo-frequency-legend::before { content: ""; display: block; width: 17px; flex-shrink: 0; border-top: 1px dashed var(--line-strong); }
.evo-frequency-chart > p { color: var(--muted); font-size: 12px; line-height: 1.65; margin-top: 17px; }
.evo-section-heading .eyebrow, .evo-history-head .eyebrow { display: block; font-size: 10px; margin-bottom: 10px; }
.evo-record-date { display: inline-flex; align-items: center; color: var(--muted); font-size: 12px; line-height: 1.5; }
.evo-chart-detail-main > div:first-child { min-width: 0; }
.evo-chart-detail-main p { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.evo-record-meta { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; text-align: right; }
.evo-record-meta strong { color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.5; }
.evo-record-meta > span { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.evo-record-meta .btn { min-height: 33px; padding: 7px 0; margin-top: 5px; font-size: 11px; }
.evo-record-meta .btn .icon { width: 13px; height: 13px; }
.evo-current-week { margin: 23px 0 25px; }
.evo-current-week > strong { display: block; color: var(--ink); font-size: 44px; font-weight: 500; letter-spacing: -.055em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.evo-current-week > strong small { color: var(--muted); font-size: 25px; font-weight: 400; letter-spacing: -.03em; }
.evo-current-week > span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.evo-frequency-caption { color: var(--muted); font-size: 11px; line-height: 1.6; margin-bottom: 7px; }
.evo-history-columns { display: grid; grid-template-columns: minmax(0, 1fr) 120px 22px; gap: 25px; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.evo-history-columns > span:nth-child(2) { text-align: right; }
.evo-history-search { display: flex; align-items: center; gap: 9px; min-width: 0; width: 238px; flex-shrink: 0; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--surface); color: var(--muted); }
.evo-history-search:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.evo-history-search .icon { width: 16px; height: 16px; flex-shrink: 0; }
.evo-history-search input { width: 100%; min-width: 0; border: 0; border-radius: 0; outline: none; padding: 0; background: transparent; color: var(--ink); font: inherit; font-size: 12px; }
.evo-history-search input::placeholder { color: var(--muted); opacity: 1; }
.evo-history-date { color: var(--ink); font-size: 18px; font-weight: 500; }
.evo-history-date small { font-weight: 400; }
.evo-history-count { margin-top: 18px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.evo-show-more { display: flex; width: fit-content; margin: 23px auto 0; }
.evo-empty h3 { color: var(--ink); font-size: 23px; font-weight: 500; line-height: 1.3; letter-spacing: -.035em; }
.evo-empty > small { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.7; }
@media (max-width: 1180px) {
  .evo-grid { grid-template-columns: minmax(0, 1.65fr) minmax(250px, .85fr); gap: 28px; }
  .evo-frequency { padding-left: 24px; }
  .evo-summary article { padding-left: 21px; padding-right: 21px; }
  .evo-summary article > strong { font-size: 35px; }
  .evo-section-heading h2 { font-size: 25px; }
  .evo-history-row { grid-template-columns: 78px minmax(0, 1fr) 105px 18px; gap: 20px; }
  .evo-history-columns { grid-template-columns: minmax(0, 1fr) 105px 18px; gap: 20px; }
}
@media (max-width: 960px) {
  .evo-heading h1 { font-size: 57px; }
  .evo-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; margin-top: 30px; }
  .evo-frequency { padding: 26px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .evo-frequency .evo-section-heading { margin-bottom: 16px; }
  .evo-frequency-bars { gap: 11px; }
  .evo-week-bar { min-width: 37px; min-height: 198px; }
  .evo-week-track { height: 140px; }
  .evo-week-label { font-size: 10px; }
  .evo-week-fill { left: 24%; right: 24%; }
  .evo-history-row { grid-template-columns: 74px minmax(0, 1fr) 95px 17px; gap: 17px; }
  .evo-history-name strong { font-size: 15px; }
  .evo-history-meta { font-size: 11px; }
  .evo-history-columns { grid-template-columns: minmax(0, 1fr) 95px 17px; gap: 17px; }
  .evo-current-week { margin-top: 19px; margin-bottom: 21px; }
}
@media (max-width: 700px) {
  body[data-page="evolucao"] main { padding-top: 8px; }
  .evo-heading { align-items: flex-start; gap: 18px; margin: 8px 0 24px; }
  .evo-heading .eyebrow { margin-bottom: 10px; font-size: 10px; }
  .evo-heading h1 { font-size: 47px; letter-spacing: -.06em; }
  .evo-heading p { font-size: 13px; margin-top: 12px; }
  .evo-heading > .btn { min-height: 39px; padding: 10px 13px; font-size: 11px; }
  .evo-toolbar { gap: 13px 12px; margin-bottom: 20px; }
  .evo-periods { gap: 3px; }
  .evo-periods button { padding: 8px 11px; min-height: 36px; font-size: 11px; }
  .evo-demo-toggle { min-height: 35px; font-size: 10px; gap: 6px; padding: 6px 0; }
  .evo-demo-toggle input { width: 16px; height: 16px; }
  .evo-demo-toggle .icon { width: 15px; height: 15px; }
  .evo-periods { order: 1; }
  .evo-demo-toggle { order: 2; margin-left: auto; }
  .evo-range { order: 3; flex-basis: 100%; margin: 0; font-size: 11px; line-height: 1.5; }
  .evo-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
  .evo-summary article { padding: 19px 17px; border-right: 1px solid var(--line); }
  .evo-summary article:nth-child(2n) { border-right: 0; padding-right: 0; }
  .evo-summary article:nth-child(2n + 1) { padding-left: 0; }
  .evo-summary article:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .evo-summary article > span { font-size: 11px; }
  .evo-summary article > strong { font-size: 33px; margin-top: 7px; }
  .evo-summary article > strong small { font-size: 12px; margin-left: 3px; }
  .evo-summary article > small { font-size: 10px; line-height: 1.6; margin-top: 6px; }
  .evo-grid { margin: 28px 0 30px; gap: 26px; }
  .evo-section-heading { gap: 14px; margin-bottom: 18px; }
  .evo-section-heading h2 { font-size: 25px; }
  .evo-section-heading p { font-size: 12px; line-height: 1.65; margin-top: 7px; }
  .evo-section-heading > span, .evo-section-heading > small { font-size: 10px; }
  .evo-exercise-field { gap: 6px; }
  .evo-exercise-field > label, .evo-exercise-field > span { font-size: 10px; }
  .evo-select { min-height: 43px; font-size: 13px; padding-left: 12px; border-radius: 8px; }
  .evo-metric-toggle { padding: 3px; gap: 2px; }
  .evo-metric-toggle button { font-size: 10px; min-height: 31px; padding: 7px 12px; }
  .evo-chart-host { margin-top: 17px; }
  .evo-chart-scroll { padding-top: 2px; padding-bottom: 12px; }
  .evo-chart:not([style*="min-width"]) .evo-axis-label,
  .evo-chart:not([style*="min-width"]) .evo-date-label,
  .evo-chart:not([style*="min-width"]) .evo-unit { font-size: clamp(13px, calc(34px - 3.6vw), 22px); }
  .evo-point-hit { stroke: transparent; stroke-width: 28px; vector-effect: non-scaling-stroke; }
  .evo-line { stroke-width: 2.5; vector-effect: non-scaling-stroke; }
  .evo-record-picker { display: flex; flex-direction: column; align-items: stretch; gap: 7px; margin-top: 12px; }
  .evo-record-picker > span { font-size: 10px; }
  .evo-record-picker select { min-height: 41px; font-size: 12px; }
  .evo-chart-note { font-size: 10px; line-height: 1.7; margin-top: 10px; }
  .evo-chart-detail { padding-top: 18px; margin-top: 16px; gap: 16px; }
  .evo-selected-comparison { margin-top: 17px; padding-top: 11px; }
  .evo-previous-head { gap: 10px; }
  .evo-previous-value { align-items: flex-start; flex-direction: column; gap: 3px; }
  .evo-selected-comparison > p, .evo-best-records-explanation, .evo-insights-empty { font-size: 11px; }
  .evo-best-records { margin-top: 23px; padding-top: 20px; }
  .evo-best-records-heading h3 { font-size: 22px; }
  .evo-best-record { gap: 12px; }
  .evo-best-record strong { font-size: 14px; }
  .evo-chart-detail-main > span, .evo-chart-detail-main > small { font-size: 11px; }
  .evo-chart-value { font-size: 31px; margin-top: 5px; }
  .evo-chart-value small { font-size: 12px; }
  .evo-chart-comparison { max-width: none; font-size: 10px; line-height: 1.6; gap: 3px 7px; }
  .evo-chart-comparison strong { font-size: 13px; }
  .evo-chart-hint { font-size: 11px; line-height: 1.7; margin-top: 18px; }
  .evo-frequency { padding-top: 24px; }
  .evo-frequency-bars { gap: 8px; padding-left: 2px; padding-right: 2px; }
  .evo-week-bar { min-width: 34px; min-height: 187px; padding: 7px 3px; gap: 7px; }
  .evo-week-count { font-size: 11px; }
  .evo-week-track { height: 132px; }
  .evo-week-fill { left: 17%; right: 17%; }
  .evo-week-label { font-size: 9px; }
  .evo-frequency-legend { font-size: 10px; gap: 7px; margin-top: 11px; }
  .evo-frequency-chart > p { font-size: 11px; }
  .evo-history { padding-top: 24px; }
  .evo-history-head { flex-direction: column; align-items: stretch; gap: 16px; margin-bottom: 19px; }
  .evo-history-head h2 { font-size: 25px; }
  .evo-history-head p { font-size: 12px; line-height: 1.65; margin-top: 7px; }
  .evo-history-tools { gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
  .evo-history-tools .btn { min-height: 36px; padding: 9px 11px; font-size: 10px; }
  .evo-history-tools .btn .icon { width: 13px; height: 13px; }
  .evo-history-search { width: 100%; min-height: 42px; }
  .evo-history-search input { font-size: 12px; }
  .evo-history-columns { display: none; }
  .evo-history-date { font-size: 17px; }
  .evo-chart-detail-main { gap: 15px; align-items: flex-start; }
  .evo-record-date { font-size: 11px; }
  .evo-chart-detail-main p { font-size: 10px; max-width: 160px; }
  .evo-record-meta { flex: 1; max-width: 160px; }
  .evo-record-meta strong { font-size: 12px; }
  .evo-record-meta > span { font-size: 10px; line-height: 1.65; }
  .evo-record-meta .btn { font-size: 10px; min-height: 34px; }
  .evo-current-week > strong { font-size: 39px; }
  .evo-current-week > strong small { font-size: 23px; }
  .evo-current-week > span { font-size: 11px; }
  .evo-frequency-caption { font-size: 10px; }
  .evo-history-row { grid-template-columns: 52px minmax(0, 1fr) 16px; gap: 3px 12px; min-height: 91px; padding: 16px 0; }
  .evo-history-date { grid-column: 1; grid-row: 1 / span 3; align-self: center; font-size: 17px; }
  .evo-history-date strong { font-size: 13px; }
  .evo-history-date small { font-size: 10px; margin-top: 3px; }
  .evo-history-name { grid-column: 2; grid-row: 1; }
  .evo-history-name strong { font-size: 14px; line-height: 1.5; }
  .evo-history-name small { font-size: 10px; margin-top: 2px; }
  .evo-history-meta { grid-column: 2; grid-row: 2; font-size: 10px; line-height: 1.6; }
  .evo-history-volume { grid-column: 2; grid-row: 3; text-align: left; font-size: 12px; line-height: 1.5; margin-top: 3px; }
  .evo-history-volume small { display: inline; font-size: 9px; margin-left: 5px; }
  .evo-history-arrow { grid-column: 3; grid-row: 1 / span 3; align-self: center; }
  .evo-history-arrow .icon { width: 15px; height: 15px; }
  .evo-demo-badge { padding: 2px 5px; margin-left: 5px; font-size: 8px; }
  .evo-empty, .evo-chart-empty { min-height: 195px; padding: 25px 0; }
  .evo-empty strong, .evo-chart-empty strong { font-size: 22px; }
  .evo-empty p, .evo-chart-empty p { font-size: 12px; }
  .evo-week-filter { gap: 10px; padding: 10px 12px; font-size: 11px; margin-bottom: 13px; }
  .evo-week-filter button { font-size: 10px; }
}
@media (max-width: 370px) {
  .evo-heading h1 { font-size: 43px; }
  .evo-toolbar { gap: 10px; }
  .evo-periods button { font-size: 10px; padding-left: 10px; padding-right: 10px; }
  .evo-demo-toggle { font-size: 9px; gap: 5px; }
  .evo-summary article > strong { font-size: 30px; }
  .evo-summary article { padding-left: 13px; padding-right: 13px; }
  .evo-chart-comparison { max-width: none; }
  .evo-history-row { column-gap: 10px; grid-template-columns: 46px minmax(0, 1fr) 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .evo-periods button, .evo-history-row, .evo-week-bar, .evo-week-fill { transition: none; }
  .evo-chart-scroll, .evo-frequency-bars { scroll-behavior: auto; }
}
