/* Aerithm A2 production layer
   Future Neuro editorial direction with Lieflat chart geometry. */

:root {
  color-scheme: light;
  --rf-paper: var(--aerithm-bg);
  --rf-mist: var(--aerithm-bg-soft);
  --rf-ink: var(--aerithm-txt);
  --rf-graphite: var(--aerithm-txt-secondary);
  --rf-muted: var(--aerithm-mut);
  --rf-rule: var(--aerithm-grid);
  --rf-rule-strong: var(--aerithm-grid-strong);
  --rf-wisteria: var(--aerithm-recovery);
  --rf-blush: #eedfe3;
  --rf-celadon: var(--aerithm-positive);
  --rf-indigo: var(--aerithm-hero);
  --rf-deep: var(--aerithm-data);
  --rf-editorial: var(--font-editorial);
  --rf-mono: var(--font-technical);
}

.owner-analysis-banner {
  position: relative;
  z-index: 90;
  padding: 8px 18px;
  border-bottom: 1px solid var(--color-rule-strong);
  background: #162a4f;
  color: #fff;
  font: 700 11px/1.3 var(--font-mono);
  letter-spacing: .12em;
  text-align: center;
}

body[data-runtime-mode="owner"] :is(
  #feedback-button,
  #settings-controls,
  #sync-controls,
  #today-workout-button,
  #checkin-button,
  #create-plan-button,
  #reset-plan-button,
  #generate-proposal,
  [data-create-plan],
  [data-proposal-action],
  [data-adopt-priority],
  [data-priority-action],
  [data-race-reset],
  [data-adaptive-proposal],
  [data-confirm-purpose],
  [data-save-alignment],
  [data-purpose-form],
  [data-post-run-form],
  [data-feedback-run],
  [data-save-alignment],
  #record-form,
  [data-delete-record]
) {
  display: none !important;
}

body[data-runtime-mode="owner"] [data-session-id] {
  pointer-events: none;
  opacity: .78;
}

body.rf-editorial {
  --bg: var(--rf-paper);
  --surface: var(--rf-paper);
  --surface-2: var(--rf-mist);
  --line: var(--rf-rule);
  --line-strong: var(--rf-rule-strong);
  --ink: var(--rf-ink);
  --muted: var(--rf-muted);
  --lime: var(--rf-indigo);
  --lime-deep: var(--rf-deep);
  --orange: var(--aerithm-caution);
  --blue: var(--rf-indigo);
  --purple: #7287a3;
  --red: var(--aerithm-danger);
  --radius: 0;
  padding: 0;
  background: var(--rf-paper);
  color: var(--rf-ink);
  font-family: var(--rf-editorial);
}

body.rf-editorial::before {
  content: none;
}

.rf-editorial .shell {
  display: block;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow: visible;
  background: var(--rf-paper);
}

.rf-editorial .side {
  position: sticky;
  z-index: 40;
  top: 0;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
  align-items: center;
  min-height: 64px;
  height: auto;
  padding: 8px clamp(18px, 3vw, 48px);
  border: 0;
  border-bottom: 1px solid rgba(23, 33, 43, .18);
  background: rgba(255, 255, 255, .94);
  color: var(--rf-ink);
  backdrop-filter: blur(18px);
}

.rf-editorial .brand {
  position: relative;
  display: inline-flex;
  width: max-content;
  min-width: 138px;
  min-height: 44px;
  align-items: center;
  color: var(--rf-ink);
  text-decoration: none;
}

.rf-editorial .brand img { position: relative; z-index: 1; display: block; width: 138px; height: auto; background: var(--rf-paper); }
.rf-brand-fallback { position: absolute; left: 0; display: grid; min-width: 132px; gap: 1px; color: var(--rf-deep); line-height: 1; }
.rf-brand-fallback strong { font: 500 18px/1 var(--rf-mono); letter-spacing: -.04em; }
.rf-brand-fallback small { color: var(--rf-muted); font: 500 7px/1.2 var(--rf-mono); letter-spacing: .09em; text-transform: uppercase; }

.rf-editorial .nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  margin: 0;
}

.rf-editorial .nav a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border-radius: 0;
  color: var(--rf-muted);
  font: 400 10px/1 var(--rf-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.rf-editorial .nav a:hover,
.rf-editorial .nav a:focus-visible {
  background: transparent;
  color: var(--rf-ink);
}

.rf-editorial .nav a[aria-current="page"] {
  background: transparent;
  color: var(--rf-indigo);
  box-shadow: inset 0 -1px 0 var(--rf-indigo);
}

.rf-editorial .local-note {
  position: static;
  color: var(--rf-muted);
  font: 9px/1.4 var(--rf-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.rf-editorial .local-dot {
  width: 5px;
  height: 5px;
  border-radius: 0;
  background: var(--rf-celadon);
  box-shadow: none;
}

.rf-editorial main {
  padding: 0 clamp(18px, 3vw, 48px) 72px;
  background: var(--rf-paper);
}

.rf-editorial .topbar {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  justify-self: end;
}

.rf-editorial .topbar-right { gap: 8px; flex-wrap: wrap; }
.rf-editorial .topbar-right > [data-app-version] { font: 500 11px/1.4 var(--rf-mono); letter-spacing: .02em; }
.rf-editorial .topbar .actions { gap: 5px; }
.rf-editorial .topbar .btn { min-height: 44px; padding: 8px 10px; }

.rf-editorial .settings-disclosure { position: relative; }
.rf-editorial .settings-disclosure > summary { display: inline-flex; gap: 7px; list-style: none; white-space: nowrap; }
.rf-editorial .settings-disclosure > summary::-webkit-details-marker { display: none; }
.rf-editorial .settings-disclosure:not([open]) > .settings-panel { display: none; }
.rf-editorial .settings-disclosure[open] > summary { border-color: var(--rf-deep); background: var(--rf-deep); color: var(--rf-paper); }
.rf-editorial .settings-disclosure[open] .settings-chevron { transform: rotate(180deg); }
.rf-editorial .layered-settings-icon { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.rf-editorial .settings-chevron { transition: transform 140ms ease; }
.rf-editorial .settings-panel {
  position: absolute;
  z-index: 34;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: min(292px, calc(100vw - 32px));
  border: 1px solid var(--rf-rule-strong);
  background: rgba(255, 255, 255, .99);
  color: var(--rf-ink);
  box-shadow: 0 22px 58px rgba(23, 24, 39, .22);
}
.rf-editorial .settings-panel > p { margin: 0; padding: 13px 15px 11px; border-bottom: 1px solid var(--rf-rule); color: var(--rf-muted); font: 600 9px/1.2 var(--rf-mono); letter-spacing: .08em; text-transform: uppercase; }
.rf-editorial .settings-panel > :is(button, a) {
  display: grid;
  grid-template-columns: 24px 1fr;
  width: 100%;
  min-height: 64px;
  padding: 11px 15px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid var(--rf-rule);
  background: transparent;
  color: var(--rf-ink);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}
.rf-editorial .settings-panel > :is(button, a):last-child { border-bottom: 0; }
.rf-editorial .settings-panel > :is(button, a):hover,
.rf-editorial .settings-panel > :is(button, a):focus-visible { background: var(--rf-mist); }
.rf-editorial .settings-panel > :is(button, a) > span:first-child { color: var(--rf-indigo); font: 16px/1 var(--rf-mono); }
.rf-editorial .settings-panel strong,
.rf-editorial .settings-panel small { display: block; }
.rf-editorial .settings-panel strong { font: 600 11px/1.25 var(--rf-mono); text-transform: uppercase; }
.rf-editorial .settings-panel small { margin-top: 4px; color: var(--rf-muted); font: 10px/1.35 var(--rf-editorial); }

.rf-editorial .eyebrow,
.rf-editorial .section-meta,
.rf-editorial .metric-label,
.rf-editorial th {
  font-family: var(--rf-mono);
}

.rf-editorial .eyebrow {
  color: var(--rf-indigo);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
}

.rf-editorial .page-context {
  color: var(--rf-ink);
  font-size: 15px;
  font-weight: 500;
}

.rf-editorial .skip { position: absolute; min-height: 44px; }
.rf-editorial .skip:not(:focus-visible) { top: -100px; }

.rf-editorial .sync-state,
.rf-editorial .section-meta { color: var(--rf-muted); }

.rf-editorial .sync-icon {
  border-color: var(--rf-rule);
  border-radius: 0;
  color: var(--rf-indigo);
}

.rf-editorial .btn,
.rf-editorial .tab {
  min-width: 44px;
  min-height: 44px;
  border-color: var(--rf-rule);
  border-radius: 0;
  background: transparent;
  color: var(--rf-ink);
  font: 500 10px/1.2 var(--rf-mono);
  letter-spacing: .035em;
  text-transform: uppercase;
}

.rf-editorial .btn:hover,
.rf-editorial .tab:hover { border-color: var(--rf-graphite); background: rgba(166, 165, 196, .12); }
.rf-editorial .btn-primary,
.rf-editorial .tab[aria-pressed="true"],
.rf-editorial .tab[aria-selected="true"] { border-color: var(--rf-deep); background: var(--rf-deep); color: var(--rf-paper); }
.rf-editorial .btn-primary:hover { border-color: var(--rf-indigo); background: var(--rf-indigo); }
.rf-editorial :focus-visible { outline: 2px solid var(--rf-indigo); outline-offset: 3px; }

.rf-editorial .sync-panel,
.rf-editorial .control-status,
.rf-editorial dialog {
  border-color: var(--rf-rule-strong);
  border-radius: 0;
  background: rgba(243, 243, 240, .98);
  color: var(--rf-ink);
  box-shadow: 0 24px 80px rgba(23, 24, 39, .28);
}

.rf-editorial .sync-disclosure[open] > summary { border-color: var(--rf-deep); background: var(--rf-deep); color: var(--rf-paper); }
.rf-editorial .sync-panel { max-height: calc(100dvh - 176px); overflow-y: auto; }
.rf-editorial .topbar .sync-panel .btn { width: auto; min-width: 0; padding: 10px 14px; font-size: 13px; }
.rf-editorial .input,
.rf-editorial .search { min-height: 44px; border-color: var(--rf-rule); border-radius: 0; background: #f8f8f5; color: var(--rf-ink); }
.rf-editorial dialog::backdrop { background: rgba(23, 24, 39, .72); backdrop-filter: blur(7px); }
.rf-editorial .dialog-head,
.rf-editorial #run-dialog .dialog-head {
  position: sticky;
  z-index: 12;
  top: 0;
  background:
    radial-gradient(circle at 84% 10%, rgba(166, 165, 196, .28), transparent 32%),
    linear-gradient(100deg, rgba(243, 243, 240, .98), rgba(228, 229, 239, .92));
  backdrop-filter: blur(14px);
}
.rf-editorial .dialog-head h2 { color: var(--rf-deep); font-weight: 300; }
.rf-editorial .dialog-body { min-width: 0; color: var(--rf-ink); }
.rf-editorial .dialog-body > * { min-width: 0; }
.rf-editorial .field label,
.rf-editorial .field legend { color: var(--rf-graphite); }
.rf-editorial .field small,
.rf-editorial .dialog-body .section-meta { color: var(--rf-muted); overflow-wrap: anywhere; }
.rf-editorial .dialog-foot {
  position: sticky;
  z-index: 11;
  bottom: 0;
  background: rgba(243, 243, 240, .96);
  backdrop-filter: blur(14px);
}
.rf-editorial .btn:disabled,
.rf-editorial .input:disabled { opacity: .68; }

/* The A2 views replace the legacy Dashboard and Performance canvases only.
   Recovery, Runs, and Calendar retain their behavior inside the shared shell. */
.rf-editorial [data-app-page="dashboard"]:not(#rf-dashboard),
.rf-editorial [data-app-page="performance"]:not(#rf-performance) { display: none !important; }

.rf-view {
  position: relative;
  margin: 0 !important;
  padding: 0 4px 28px;
  color: var(--rf-ink);
}

.rf-view[hidden] { display: none !important; }
.rf-catalog {
  position: absolute;
  z-index: 2;
  top: 19px;
  right: 0;
  color: rgba(23, 35, 71, .65);
  font: 9px/1.5 var(--rf-mono);
  letter-spacing: .1em;
  text-align: right;
  text-transform: uppercase;
}

.rf-intro {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(280px, 4fr);
  align-items: start;
  gap: clamp(32px, 5vw, 76px);
  min-height: 0;
  padding: 22px 36px 22px;
  border-bottom: 1px solid rgba(43, 41, 47, .44);
}

.rf-intro h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(39px, 3.8vw, 54px);
  font-weight: 300;
  letter-spacing: -.057em;
  line-height: .97;
  text-wrap: balance;
}

.rf-intro-copy {
  max-width: 740px;
  margin: 14px 0 0;
  color: var(--rf-graphite);
  font-size: 16px;
  line-height: 1.58;
}

.rf-decision {
  padding: 16px 0 4px 28px;
  border-left: 1px solid var(--rf-rule-strong);
}

.rf-decision h2 {
  margin: 7px 0 12px;
  color: var(--rf-deep);
  font-size: clamp(29px, 2.6vw, 37px);
  font-weight: 300;
  letter-spacing: -.045em;
  line-height: 1;
}

.rf-decision p:not(.eyebrow) { margin: 0 0 14px; color: var(--rf-graphite); font-size: 13px; line-height: 1.45; }

.rf-state-band {
  display: grid;
  grid-template-columns: minmax(220px, 3fr) minmax(0, 9fr);
  gap: 36px;
  padding: 28px 36px 18px;
  background: linear-gradient(105deg, transparent 0 22%, rgba(166, 165, 196, .09) 54%, rgba(228, 210, 216, .14));
}

.rf-state-band h2 {
  max-width: 330px;
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.rf-state-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rf-rule-strong);
}

.rf-state-item {
  min-width: 0;
  padding: 15px 18px 17px 0;
  border-bottom: 1px solid var(--rf-rule);
}

.rf-state-item + .rf-state-item { padding-left: 18px; }
.rf-state-label,
.rf-kicker { color: var(--rf-indigo); font: 500 11px/1.35 var(--rf-mono); letter-spacing: .075em; text-transform: uppercase; }
.rf-state-item strong { display: block; margin-top: 6px; font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.rf-state-item small { display: block; margin-top: 6px; color: var(--rf-muted); font-size: 12px; line-height: 1.45; }

.rf-focus-signal {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 140px minmax(220px, 1fr) minmax(260px, 1.55fr);
  gap: 18px;
  padding: 16px 18px;
  background: linear-gradient(90deg, rgba(166, 165, 196, .25), rgba(228, 229, 239, .54));
}

.rf-focus-signal strong { font-size: 15px; font-weight: 500; }
.rf-focus-signal small { color: var(--rf-graphite); font-size: 12px; line-height: 1.5; }

.rf-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  padding: 0 36px;
  background: var(--rf-rule);
}

.rf-module {
  min-width: 0;
  padding: 28px;
  background: var(--rf-paper);
}

.rf-span-6 { grid-column: span 6; }
.rf-span-7 { grid-column: span 7; }
.rf-span-5 { grid-column: span 5; }
.rf-span-8 { grid-column: span 8; }
.rf-span-4 { grid-column: span 4; }
.rf-span-12 { grid-column: 1 / -1; }

.rf-module h2,
.rf-module h3 { margin: 6px 0 0; font-weight: 400; letter-spacing: -.035em; }
.rf-module h2 { font-size: clamp(26px, 2.5vw, 38px); }
.rf-module h3 { font-size: 22px; }

.rf-direction-intro h1 { max-width: 940px; font-size: clamp(37px, 3.5vw, 52px); }
.rf-direction-grid { margin-top: 30px; }
.rf-evidence-direction { min-height: 320px; }
.rf-evidence-direction[data-direction="performance"] {
  background: linear-gradient(140deg, rgba(41, 75, 130, .08), var(--rf-paper) 58%);
}
.rf-evidence-direction[data-direction="recovery"] {
  background: linear-gradient(140deg, rgba(166, 165, 196, .18), var(--rf-paper) 62%);
}
.rf-evidence-direction .rf-observation { max-width: 620px; }
.rf-relationship {
  margin: 42px 36px 0;
  padding: 34px;
  border-top: 1px solid var(--rf-rule-strong);
  border-bottom: 1px solid var(--rf-rule-strong);
  background: linear-gradient(105deg, rgba(190, 210, 195, .24), rgba(243, 243, 240, .8) 58%);
}
.rf-relationship h2 { max-width: 920px; }
.rf-relationship .rf-observation { max-width: 820px; font-size: 16px; }
.rf-today-plan-grid { align-items: stretch; }
.rf-today-brief { background: linear-gradient(130deg, rgba(228, 229, 239, .48), var(--rf-paper) 64%); }
.rf-plan-lens { background: linear-gradient(145deg, rgba(228, 210, 216, .3), var(--rf-paper) 68%); }
.rf-plan-lens[data-plan-mode="none"] { color: var(--rf-graphite); }
.rf-claim-boundary {
  margin: 34px 36px 0;
  padding-top: 16px;
  border-top: 1px solid var(--rf-rule);
  color: var(--rf-muted);
  font: 10px/1.55 var(--rf-mono);
  letter-spacing: .045em;
  text-transform: uppercase;
}
.rf-method-evidence { overflow-wrap: anywhere; }
.rf-direction-grid .evidence-drawer summary,
.rf-relationship .evidence-drawer summary { color: var(--rf-indigo); min-height: 44px; display: flex; align-items: center; }
.rf-direction-grid .evidence-drawer summary:focus-visible,
.rf-relationship .evidence-drawer summary:focus-visible { outline: 2px solid var(--rf-indigo); outline-offset: 2px; }
.rf-plan-lens[data-plan-mode="none"] { grid-column: 1 / -1; }

.rf-session {
  min-height: 260px;
  padding: 28px;
  align-self: start;
  background:
    radial-gradient(circle at 80% 25%, rgba(166, 165, 196, .4), transparent 30%),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(228, 229, 239, .035) 35px 36px),
    linear-gradient(145deg, #151520, #2b2936);
  color: var(--rf-paper);
}

.rf-session .rf-kicker { color: var(--rf-wisteria); }
.rf-session h2 { max-width: 620px; font-size: clamp(31px, 3vw, 43px); font-weight: 300; line-height: 1; }
.rf-session > p { max-width: 540px; color: rgba(243, 243, 240, .72); font-size: 13px; line-height: 1.55; }
.rf-session-steps { display: grid; gap: 0; margin: 18px 0 0; padding: 0; list-style: none; }
.rf-session-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 2px 10px; padding: 8px 0; border-top: 1px solid rgba(243, 243, 240, .18); }
.rf-session-steps span { grid-row: span 2; color: var(--rf-wisteria); font: 500 9px/1.4 var(--rf-mono); }
.rf-session-steps strong { font-size: 13px; font-weight: 500; }
.rf-session-steps small { color: rgba(243, 243, 240, .62); font-size: 11px; }
.rf-session-action { margin-top: 18px; }
.rf-editorial .rf-session-action {
  border-color: rgba(243, 243, 240, .5);
  color: var(--rf-paper);
}
.rf-editorial .rf-session-action:hover,
.rf-editorial .rf-session-action:focus-visible { border-color: var(--rf-paper); background: rgba(243, 243, 240, .11); }
.rf-prescription-grid { align-items: start; background: transparent; }
.rf-intro + .rf-prescription-grid { margin-top: 30px; }
.rf-weekly-dose {
  min-height: 0;
  background:
    radial-gradient(circle at 86% 16%, rgba(166, 165, 196, .3), transparent 28%),
    linear-gradient(145deg, rgba(228, 229, 239, .4), var(--rf-paper) 56%);
}
.rf-prescription-grid .rf-weekly-dose { border-left: 1px solid var(--rf-rule); }
.rf-weekly-dose .rf-chart { height: auto; min-height: 0; margin-top: 4px; }
.rf-weekly-dose .rf-axis { font-size: 11px; }
.rf-chart .rf-rung-value { font: 700 12px/1 var(--rf-mono); }
.rf-chart .rf-rung-total { fill: var(--rf-deep); font: 600 13px/1 var(--rf-mono); }

.rf-dashboard-week { align-items: stretch; }
.rf-week-schedule {
  background:
    linear-gradient(112deg, rgba(228, 210, 216, .24), transparent 46%),
    var(--rf-paper);
}
.rf-week-schedule h2 { max-width: 660px; }
.rf-week-schedule-head { display: flex; justify-content: space-between; gap: 22px; margin-top: 24px; padding: 13px 0; border-top: 1px solid var(--rf-rule-strong); border-bottom: 1px solid var(--rf-rule); }
.rf-week-schedule-head strong { display: block; margin-top: 4px; color: var(--rf-deep); font-size: 15px; font-weight: 500; }
.rf-week-schedule-head > span { max-width: 260px; color: var(--rf-muted); font: 9px/1.45 var(--rf-mono); text-align: right; text-transform: uppercase; }
.rf-week-days { display: grid; }
.rf-week-day {
  display: grid;
  grid-template-columns: 62px minmax(150px, 1fr) minmax(180px, 1.1fr);
  gap: 14px;
  width: 100%;
  min-height: 60px;
  padding: 10px 0;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--rf-rule);
  background: transparent;
  color: var(--rf-ink);
  text-align: left;
  cursor: pointer;
}
.rf-week-day:hover { background: linear-gradient(90deg, rgba(166, 165, 196, .14), transparent); }
.rf-week-day > span { color: var(--rf-indigo); font: 500 9px/1.3 var(--rf-mono); text-transform: uppercase; }
.rf-week-day strong { color: var(--rf-deep); font-size: 13px; font-weight: 500; }
.rf-week-day small { color: var(--rf-muted); font-size: 10px; line-height: 1.4; }
.rf-week-day.is-rest strong { color: var(--rf-muted); font-weight: 400; }
.rf-plan-rationale {
  background:
    radial-gradient(circle at 18% 10%, rgba(243, 243, 240, .72), transparent 36%),
    linear-gradient(135deg, rgba(166, 165, 196, .32), rgba(228, 210, 216, .46) 58%, rgba(190, 210, 195, .28));
}
.rf-plan-rationale h2 { max-width: 560px; }
.rf-plan-rationale .rf-observation { margin-top: 28px; }

.rf-chart-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.rf-chart-head p { max-width: 520px; margin: 8px 0 0; color: var(--rf-muted); font: 11px/1.55 var(--rf-mono); letter-spacing: .025em; text-transform: uppercase; }
.rf-chart-host { position: relative; }
.rf-chart { display: block; width: 100%; min-height: 310px; margin-top: 20px; touch-action: pan-y; cursor: crosshair; }
.rf-chart text { font-family: var(--rf-mono); }
.rf-chart .rf-gridline { stroke: rgba(69, 67, 73, .22); stroke-width: .8; vector-effect: non-scaling-stroke; }
.rf-chart .rf-axis { fill: var(--rf-muted); font-size: 9px; letter-spacing: .03em; }
.rf-chart .rf-context { stroke: var(--rf-wisteria); fill: none; }
.rf-chart .rf-primary { stroke: var(--rf-deep); fill: none; }
.rf-chart .rf-focus-line { stroke: var(--rf-graphite); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; pointer-events: none; }
.rf-chart .rf-focus-dot { fill: var(--rf-paper); stroke: var(--rf-indigo); stroke-width: 2; vector-effect: non-scaling-stroke; pointer-events: none; }
.rf-chart [data-rf-point] { transition: opacity 140ms ease, filter 140ms ease; }
.rf-chart [data-rf-point].rf-muted { opacity: .28; }
.rf-chart [data-rf-point].rf-active { filter: drop-shadow(0 0 2px rgba(41, 75, 130, .32)); }
.rf-chart-tooltip {
  position: absolute;
  z-index: 4;
  width: max-content;
  max-width: min(320px, calc(100% - 16px));
  padding: 9px 11px;
  border: 1px solid rgba(243, 243, 240, .28);
  background: var(--rf-deep);
  box-shadow: 0 8px 24px rgba(23, 24, 39, .2);
  color: var(--rf-paper);
  font: 10px/1.5 var(--rf-mono);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 100ms ease;
}
.rf-chart-tooltip[data-visible="true"] { opacity: 1; visibility: visible; }
.rf-inspector {
  min-height: 48px;
  margin-top: 10px;
  padding: 10px 13px;
  border-left: 2px solid var(--rf-indigo);
  background: linear-gradient(90deg, rgba(166, 165, 196, .2), transparent 76%);
  color: var(--rf-graphite);
  font: 10px/1.55 var(--rf-mono);
}

.rf-source { margin-top: 11px; color: var(--rf-muted); font: 10px/1.55 var(--rf-mono); letter-spacing: .025em; text-transform: uppercase; }

.rf-atmosphere {
  position: relative;
  display: flex;
  min-height: 104px;
  margin: 32px 36px 0;
  padding: 18px 22px;
  align-items: end;
  justify-content: space-between;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(23, 24, 39, .55), rgba(23, 24, 39, .02) 58%, rgba(23, 24, 39, .32)),
    url("/assets/runformula-atmosphere-runner-v1.png");
  background-position: center 48%;
  background-size: cover;
  color: rgba(243, 243, 240, .92);
}

.rf-atmosphere::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(243, 243, 240, .035) 47px 48px); pointer-events: none; }
.rf-atmosphere > * { position: relative; z-index: 1; }
.rf-atmosphere figcaption { display: grid; gap: 6px; }
.rf-atmosphere span { font: 500 9px/1.2 var(--rf-mono); letter-spacing: .09em; text-transform: uppercase; }
.rf-atmosphere strong { font-size: 24px; font-weight: 300; letter-spacing: -.03em; }

.rf-fact-list { margin: 22px 0 0; }
.rf-fact-list div { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-top: 1px solid var(--rf-rule); }
.rf-fact-list dt { color: var(--rf-muted); font: 500 9px/1.35 var(--rf-mono); letter-spacing: .05em; text-transform: uppercase; }
.rf-fact-list dd { margin: 0; font-size: 13px; font-weight: 500; text-align: right; }
.rf-soft { background: linear-gradient(100deg, rgba(166, 165, 196, .18), rgba(228, 229, 239, .5)); }
.rf-dark { background: var(--rf-deep); color: var(--rf-paper); }
.rf-dark .rf-kicker { color: var(--rf-wisteria); }
.rf-dark .rf-fact-list div { border-color: rgba(243, 243, 240, .18); }
.rf-dark .rf-fact-list dt { color: rgba(243, 243, 240, .62); }
.rf-observation { color: var(--rf-graphite); line-height: 1.58; }
.rf-dark .rf-observation { color: rgba(243, 243, 240, .72); }
.rf-text-action { display: inline-flex; min-height: 44px; align-items: center; padding: 0; border: 0; background: transparent; color: var(--rf-indigo); font: 500 10px/1 var(--rf-mono); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.rf-dark .rf-text-action { color: var(--rf-wisteria); }

/* Performance: a selectable analytical report, not a gallery of hero cards. */
.rf-purpose-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 72px;
  margin: 0 36px;
  align-items: center;
  border-bottom: 1px solid rgba(43, 41, 47, .3);
}

.rf-purpose-tabs [role="tab"] { min-height: 44px; padding: 0 14px; border: 1px solid var(--rf-rule); background: transparent; color: var(--rf-muted); font: 500 10px/1 var(--rf-mono); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.rf-purpose-tabs [role="tab"][aria-selected="true"] { border-color: var(--rf-deep); background: var(--rf-deep); color: var(--rf-paper); }
.rf-performance-report { margin-top: 34px; }
.rf-performance-blocks { margin-top: 20px; }
.rf-block-list { margin-top: 18px; border-top: 1px solid var(--rf-rule); }
.rf-block-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .55fr); gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--rf-rule); }
.rf-block-row strong, .rf-block-row small { display: block; }
.rf-block-row strong { color: var(--rf-deep); font-size: 15px; font-weight: 500; }
.rf-block-row small { margin-top: 4px; color: var(--rf-muted); font: 10px/1.45 var(--rf-mono); }
@media (max-width: 620px) {
  .rf-block-row { grid-template-columns: 1fr; gap: 8px; }
}
.rf-performance-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 18px 0 0; padding: 18px 0; border-top: 1px solid var(--rf-rule); border-bottom: 1px solid var(--rf-rule); }
.rf-performance-facts span { display: block; color: var(--rf-muted); font: 500 9px/1.3 var(--rf-mono); letter-spacing: .05em; text-transform: uppercase; }
.rf-performance-facts strong { display: block; margin-top: 6px; font-size: 17px; font-weight: 500; }
.rf-evidence-list { display: grid; gap: 0; margin: 20px 0 0; padding: 0; list-style: none; }
.rf-evidence-list li { display: grid; grid-template-columns: 92px 1fr; gap: 18px; padding: 13px 0; border-top: 1px solid var(--rf-rule); }
.rf-evidence-list span { color: var(--rf-muted); font: 500 9px/1.35 var(--rf-mono); text-transform: uppercase; }
.rf-evidence-list strong { display: block; font-size: 14px; font-weight: 500; }
.rf-evidence-list small { display: block; margin-top: 4px; color: var(--rf-muted); line-height: 1.45; }

/* Performance begins with the athlete's actual ledger, then narrows to like-for-like evidence. */
.rf-performance-overview {
  margin: 42px 36px 0;
  padding: 0 0 34px;
  border-bottom: 1px solid var(--rf-rule-strong);
}
.rf-performance-lead { display: grid; grid-template-columns: minmax(260px, 7fr) minmax(260px, 5fr); gap: 44px; align-items: end; }
.rf-performance-lead h2 { max-width: 780px; margin: 7px 0 0; color: var(--rf-deep); font-size: clamp(34px, 4vw, 58px); font-weight: 300; letter-spacing: -.05em; line-height: .98; }
.rf-performance-lead > p { margin: 0; color: var(--rf-graphite); line-height: 1.58; }
.rf-performance-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 24px 0 0; border-top: 1px solid var(--rf-rule); border-bottom: 1px solid var(--rf-rule); }
.rf-performance-metrics > div { min-width: 0; padding: 15px 14px 17px; }
.rf-performance-metrics > div + div { border-left: 1px solid var(--rf-rule); }
.rf-performance-metrics dt { color: var(--rf-muted); font: 500 9px/1.3 var(--rf-mono); letter-spacing: .07em; text-transform: uppercase; }
.rf-performance-metrics dd { margin: 8px 0 0; color: var(--rf-deep); font-size: clamp(24px, 2.4vw, 35px); font-weight: 300; letter-spacing: -.04em; }
.rf-performance-metrics small { display: block; margin-top: 7px; color: var(--rf-muted); font-size: 11px; line-height: 1.4; }
.rf-record-archive { margin-top: 16px; border-block: 1px solid var(--rf-rule-strong); }
.rf-record-archive > summary { display: flex; min-height: 58px; justify-content: space-between; gap: 24px; align-items: center; padding: 10px 4px; color: var(--rf-deep); cursor: pointer; }
.rf-record-archive > summary span { display: grid; gap: 3px; }
.rf-record-archive > summary span:last-child { color: var(--rf-indigo); font: 600 10px/1 var(--rf-mono); letter-spacing: .04em; text-transform: uppercase; }
.rf-record-archive > summary small { color: var(--rf-muted); font: 9px/1.4 var(--rf-mono); text-transform: uppercase; }
.rf-record-columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 0; align-items: start; border-top: 1px solid var(--rf-rule); }
.rf-record-columns > article { min-width: 0; padding: 18px; background: var(--rf-paper); }
.rf-record-columns > article + article { border-left: 1px solid var(--rf-rule); }
.rf-record-columns .rf-chart-head > strong { color: var(--rf-indigo); font: 300 34px/1 var(--rf-editorial); }
.rf-record-list { margin: 18px 0 0; padding: 0; list-style: none; }
.rf-record-list li { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; min-height: 74px; padding: 12px 0; border-top: 1px solid var(--rf-rule); }
.rf-record-list span, .rf-record-list small { display: block; color: var(--rf-muted); font: 9px/1.45 var(--rf-mono); letter-spacing: .03em; text-transform: uppercase; }
.rf-record-list strong { display: block; margin: 4px 0; color: var(--rf-deep); font-size: 21px; font-weight: 400; }
.rf-record-entry { margin-top: 18px; border-top: 1px solid var(--rf-rule); border-bottom: 1px solid var(--rf-rule); }
.rf-record-entry > summary { padding: 8px 0; color: var(--rf-deep); font: 500 10px/1 var(--rf-mono); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.rf-record-entry form { padding: 18px 0 28px; }

/* Shared editorial page opening for the retained operational views. */
.rf-page-intro {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(260px, 4fr);
  gap: clamp(34px, 6vw, 86px);
  min-height: 0;
  padding: 34px 0 28px;
  align-items: center;
  border-bottom: 1px solid rgba(43, 41, 47, .44);
}
.rf-page-intro h1 { max-width: 760px; margin: 7px 0 0; color: var(--rf-deep); font-size: clamp(38px, 4.2vw, 58px); font-weight: 300; letter-spacing: -.052em; line-height: .98; }
.rf-page-intro p { max-width: 720px; margin: 14px 0 0; color: var(--rf-graphite); font-size: 14px; line-height: 1.55; }
.rf-page-intro aside { padding: 20px 0 4px 24px; border-left: 1px solid var(--rf-rule-strong); }
.rf-page-intro aside strong { display: block; margin-top: 8px; color: var(--rf-deep); font-size: 18px; font-weight: 400; line-height: 1.35; }

.rf-runs-summary {
  display: grid;
  grid-template-columns: minmax(360px, 7fr) minmax(440px, 5fr);
  gap: clamp(34px, 5vw, 78px);
  margin: 0;
  padding: 24px 0 22px;
  align-items: end;
  border-bottom: 1px solid rgba(43, 41, 47, .44);
}
.rf-runs-view .rf-page-intro { display: block; padding: 0; border: 0; }
.rf-runs-view .rf-page-intro h1 { max-width: 620px; font-size: clamp(34px, 3.2vw, 46px); }
.rf-runs-view .rf-page-intro p { max-width: 640px; margin-top: 11px; }
.rf-runs-view .rf-lifetime-ledger { grid-template-columns: minmax(210px, 5fr) minmax(0, 7fr); gap: 24px; margin: 0; }
.rf-runs-view .rf-lifetime-primary .metric-value { font-size: clamp(48px, 5vw, 68px); }
.rf-runs-view .rf-lifetime-ledger dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rf-runs-view .rf-run-ledger { margin-top: 22px; }
.rf-run-tools { display: grid; justify-items: end; gap: 8px; }

/* Lieflat custom chart palette: white ground; blue-black ink; cool rules;
   DATA deep indigo; DATA2 blue; HERO slate; FAINT celadon. */
.rf-recovery-view {
  --rf-chart-bg: #ffffff;
  --rf-chart-txt: #17212b;
  --rf-chart-muted: #5e6872;
  --rf-chart-grid: #d9dee2;
  --rf-chart-data: #162a4f;
  --rf-chart-data-2: #315f94;
  --rf-chart-hero: #7287a3;
  --rf-chart-faint: #dbe8df;
}
.rf-recovery-opening { display: grid; grid-template-columns: minmax(280px, 4fr) minmax(0, 8fr); gap: 42px; margin-top: 38px; }
.rf-recovery-reading {
  padding: 22px 24px;
  border-right: 1px solid var(--rf-rule-strong);
  background: linear-gradient(140deg, rgba(219, 232, 223, .44), rgba(255, 255, 255, .96) 62%);
}
.rf-recovery-reading h2 { margin: 8px 0 0; color: var(--rf-deep); font-size: clamp(29px, 3vw, 43px); font-weight: 300; letter-spacing: -.045em; line-height: 1.02; }
.rf-recovery-reading > p:last-child { color: var(--rf-graphite); line-height: 1.58; }
.rf-health-ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rf-rule); }
.rf-editorial .rf-health-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 76px; padding: 11px 0; border: 0; border-bottom: 1px solid var(--rf-rule); background: transparent; }
.rf-editorial .rf-health-row:nth-child(odd) { padding-right: 18px; }
.rf-editorial .rf-health-row:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--rf-rule); }
.rf-editorial .rf-health-row .icon { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--rf-wisteria); border-radius: 50%; background: transparent; color: var(--rf-indigo); font: 600 9px/1 var(--rf-mono); }
.rf-editorial .rf-health-row .health-label { color: var(--rf-ink); font-size: 13px; font-weight: 500; }
.rf-editorial .rf-health-row .health-sub { margin-top: 3px; color: var(--rf-muted); font: 9px/1.35 var(--rf-mono); }
.rf-editorial .rf-health-row .health-value { color: var(--rf-deep); font-size: 24px; font-weight: 300; text-align: right; }
.rf-editorial .rf-health-row .metric-unit { margin-left: 4px; font-size: 11px; }
.rf-recovery-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(300px, 4fr); gap: 1px; margin-top: 46px; background: var(--rf-rule); }
.rf-chart-sheet, .rf-sleep-sheet { min-width: 0; padding: 28px; background: #ffffff; }
.rf-chart-sheet .tabs { max-width: 430px; justify-content: flex-end; }
.rf-chart-sheet .tabs .tab { flex: 0 0 auto; white-space: nowrap; }
.rf-lieflat-host { min-height: 360px; }
.rf-recovery-chart { min-height: 310px; margin-top: 16px; }
.rf-recovery-chart .rf-calendar-tick { stroke: var(--rf-chart-grid); stroke-width: .8; }
.rf-recovery-chart .rf-average-line { stroke: var(--rf-chart-hero); stroke-width: 1; stroke-dasharray: 4 5; }
.rf-recovery-chart .rf-hairline { fill: none; stroke: var(--rf-chart-data); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.rf-recovery-chart .rf-day-dot { fill: var(--rf-chart-data); stroke: var(--rf-chart-data); stroke-width: 1.2; }
.rf-recovery-chart .rf-day-dot.weekend { fill: var(--rf-chart-bg); }
.rf-recovery-chart .rf-day-dot.featured { stroke-width: 2; }
.rf-recovery-chart .rf-peak-label { fill: var(--rf-chart-txt); font: 600 10px/1 var(--rf-mono); paint-order: stroke; stroke: var(--rf-chart-bg); stroke-width: 4px; }
.rf-editorial .chart-tooltip {
  z-index: 30;
  border: 1px solid rgba(243, 243, 240, .28);
  border-radius: 0;
  background: var(--rf-deep);
  color: var(--rf-paper);
  box-shadow: 0 14px 32px rgba(23, 35, 71, .24);
  font: 500 11px/1.45 var(--rf-mono);
}
.rf-editorial .chart-tooltip[hidden] { display: none; }
.rf-hundred-field { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; width: min(100%, 320px); height: auto; min-height: 0; margin: 34px auto 26px; padding: 0; overflow: visible; background: transparent; }
.rf-hundred-field .stage-dot { display: block; width: 7px; height: 7px; justify-self: center; border-radius: 50%; background: var(--rf-chart-data); }
.rf-hundred-field .stage-dot.light { border-radius: 1px; background: #37679f; }
.rf-hundred-field .stage-dot.rem { border-radius: 1px; background: #755d8c; transform: rotate(45deg) scale(.82); }
.rf-hundred-field .stage-dot.awake { border: 1.5px solid #9a5e4f; background: var(--rf-chart-bg); }
.rf-sleep-sheet .legend { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
.rf-sleep-sheet .legend > div { padding: 10px 0; border-top: 1px solid var(--rf-rule); color: var(--rf-graphite) !important; }
.rf-sleep-sheet .legend i { background: currentColor; }
.rf-sleep-sheet .legend > div:nth-child(1) i { background: var(--rf-chart-data); }
.rf-sleep-sheet .legend > div:nth-child(2) i { border-radius: 1px; background: #37679f; }
.rf-sleep-sheet .legend > div:nth-child(3) i { border-radius: 1px; background: #755d8c; transform: rotate(45deg) scale(.82); }
.rf-sleep-sheet .legend > div:nth-child(4) i { border: 1.5px solid #9a5e4f; background: var(--rf-chart-bg); }
.rf-sleep-sheet #wellness-extra { margin-top: 22px; border-top: 1px solid var(--rf-rule-strong); }

/* Runs: one archival ledger with progressive disclosure, not a metric-card wall. */
.rf-lifetime-ledger { display: grid; grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr); gap: 42px; margin: 38px 0 34px; align-items: end; }
.rf-lifetime-primary { padding: 4px 0 16px; border-bottom: 1px solid var(--rf-rule-strong); }
.rf-lifetime-primary .metric-value { color: var(--rf-deep); font-size: clamp(58px, 7vw, 92px); font-weight: 300; letter-spacing: -.065em; }
.rf-lifetime-primary .metric-unit { margin-left: 9px; }
.rf-lifetime-ledger dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--rf-rule); }
.rf-lifetime-ledger dl > div { padding: 17px 16px 16px 0; border-bottom: 1px solid var(--rf-rule); }
.rf-lifetime-ledger dl > div + div { padding-left: 16px; border-left: 1px solid var(--rf-rule); }
.rf-lifetime-ledger dt { color: var(--rf-muted); font: 500 9px/1.4 var(--rf-mono); letter-spacing: .05em; text-transform: uppercase; }
.rf-lifetime-ledger dd { margin: 7px 0 0; color: var(--rf-deep); font-size: 17px; }
.rf-run-ledger .table-tools {
  padding: 24px 26px;
  background: linear-gradient(110deg, rgba(228, 229, 239, .28), rgba(243, 243, 240, .94) 64%);
}
.rf-run-ledger .table-tools h2 { margin: 5px 0; color: var(--rf-deep); font-size: 28px; font-weight: 400; letter-spacing: -.035em; }
.rf-activity-table { min-width: 980px; }
.rf-activity-table th { padding-block: 12px; background: transparent; border-top: 1px solid var(--rf-rule-strong); }
.rf-activity-table td { padding-block: 17px; vertical-align: top; }
.rf-activity-table tbody tr:nth-child(even) td { background: rgba(228, 229, 239, .17); }
.rf-run-date { color: var(--rf-muted); font: 10px/1.4 var(--rf-mono); text-transform: uppercase; }
.rf-run-classification, .rf-run-secondary { display: block; margin-top: 6px; color: var(--rf-muted); font: 9px/1.4 var(--rf-mono); text-transform: uppercase; }
.rf-run-classification b { color: var(--rf-indigo); font-weight: 600; }
.rf-run-more summary { min-width: 130px; padding: 0; color: var(--rf-indigo); font: 500 9px/1 var(--rf-mono); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.rf-run-more dl { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 8px 18px; min-width: 300px; margin: 8px 0 0; padding: 12px; background: var(--rf-mist); }
.rf-run-more dl div { display: flex; justify-content: space-between; gap: 12px; }
.rf-run-more dt { color: var(--rf-muted); }
.rf-run-more dd { margin: 0; color: var(--rf-deep); font-weight: 500; }

/* Calendar: compact weekly prescription strips with only planned days emphasized. */
.rf-calendar-view > .panel { margin-top: 38px; padding: 0; border: 0; }
.rf-calendar-view .adherence { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 28px; border-top: 1px solid var(--rf-rule); border-bottom: 1px solid var(--rf-rule); }
.rf-calendar-view .adherence > span { min-height: 66px; padding: 14px 24px 12px 0; background: transparent; color: var(--rf-muted); }
.rf-calendar-view .adherence > span + span { padding-left: 24px; border-left: 1px solid var(--rf-rule); }
.rf-calendar-view .adherence strong { color: var(--rf-deep); font-size: 24px; font-weight: 300; }
.rf-calendar-view .calendar { display: grid; gap: 24px; }
.rf-calendar-view .calendar-week { overflow: hidden; border: 1px solid var(--rf-rule); border-radius: 0; background: transparent; }
.rf-calendar-view .calendar-empty-state { min-height: clamp(280px, 46vh, 520px); display: flex; align-items: flex-start; padding: clamp(42px, 7vw, 92px) clamp(4px, 2vw, 24px); border-top: 1px solid var(--rf-rule); }
.rf-calendar-view .calendar-empty-copy { max-width: 640px; }
.rf-calendar-view .calendar-empty-copy h2 { margin: 10px 0 12px; color: var(--rf-deep); font-size: clamp(30px, 4vw, 54px); font-weight: 400; letter-spacing: -.035em; line-height: 1.04; }
.rf-calendar-view .calendar-empty-copy p { max-width: 590px; margin: 0 0 24px; color: var(--rf-muted); font-size: 16px; line-height: 1.65; }
.rf-calendar-view .calendar-week.current-week { border-color: var(--rf-deep); }
.rf-calendar-view .calendar-week-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; min-height: 82px; padding: 17px 20px; align-items: center; border-bottom: 1px solid var(--rf-rule); background: linear-gradient(105deg, rgba(228, 229, 239, .28), transparent 64%); }
.rf-calendar-view .calendar-week-head > div:first-child > strong { display: block; margin-top: 6px; color: var(--rf-deep); font-size: 19px; font-weight: 400; }
.rf-week-dose { text-align: right; }
.rf-week-dose strong { display: block; color: var(--rf-deep); font-size: 29px; font-weight: 300; }
.rf-week-dose span { color: var(--rf-muted); font: 9px/1.3 var(--rf-mono); text-transform: uppercase; }
.rf-calendar-view .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(112px, 1fr)); min-width: 784px; }
.rf-calendar-view .calendar-day { min-height: 142px; padding: 13px 10px 11px; border-right: 1px solid var(--rf-rule); background: rgba(243, 243, 240, .55); }
.rf-calendar-view .calendar-day:last-child { border-right: 0; }
.rf-calendar-view .calendar-day[data-today="true"] { background: linear-gradient(180deg, rgba(166, 165, 196, .22), transparent); }
.rf-calendar-view .calendar-day-head { display: flex; justify-content: space-between; padding: 0 1px 10px; color: var(--rf-muted); font: 500 9px/1 var(--rf-mono); text-transform: uppercase; }
.rf-calendar-view .calendar-day-head strong { color: var(--rf-deep); font-weight: 500; }
.rf-calendar-view .calendar-day-empty { display: grid; min-height: 72px; place-items: center; color: var(--rf-rule-strong); }
.rf-calendar-view .calendar-session { display: grid; width: 100%; min-height: 82px; padding: 11px; align-content: start; border: 1px solid var(--rf-deep); border-radius: 0; background: linear-gradient(145deg, var(--rf-deep), #223564); color: var(--rf-paper); text-align: left; cursor: pointer; }
.rf-calendar-view .calendar-session:hover { background: var(--rf-indigo); }
.rf-calendar-view .calendar-session .session-kind { color: var(--rf-wisteria); font: 500 8px/1.3 var(--rf-mono); letter-spacing: .05em; text-transform: uppercase; }
.rf-calendar-view .calendar-session strong { margin-top: 7px; font-size: 20px; font-weight: 300; }
.rf-calendar-view .calendar-session small { margin-top: 6px; color: rgba(243, 243, 240, .64); font: 8px/1.2 var(--rf-mono); text-transform: uppercase; }
.rf-calendar-archive { border-top: 1px solid var(--rf-rule-strong); border-bottom: 1px solid var(--rf-rule); }
.rf-calendar-archive > summary { padding: 12px 0; color: var(--rf-indigo); font: 500 10px/1 var(--rf-mono); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.rf-calendar-archive > div { display: grid; gap: 24px; padding-bottom: 24px; }

/* Run Detail uses one dominant finding, a restrained evidence ledger, and one next action. */
.rf-versioned-finding { display: grid; grid-template-columns: minmax(0, 8fr) minmax(280px, 4fr); gap: 1px; margin: 30px 0 34px; background: var(--rf-rule); }
.rf-first-sustained-help { margin-top: 20px; }
.rf-first-sustained-help > summary { color: var(--rf-deep); font-size: 13px; line-height: 1.5; }
.rf-first-sustained-help .rf-disclosure-marker { margin-left: auto; padding-left: 12px; }
.rf-first-sustained-help .rf-disclosure-marker::after { content: "+"; }
.rf-first-sustained-help[open] .rf-disclosure-marker::after { content: "−"; }
.rf-first-sustained-help p { color: var(--rf-graphite); line-height: 1.55; }
.rf-run-primary { min-height: 300px; padding: 34px; background: linear-gradient(135deg, rgba(166, 165, 196, .22), rgba(243, 243, 240, .94)); }
.rf-run-primary h2 { max-width: 800px; margin: 14px 0 0; color: var(--rf-deep); font-size: clamp(35px, 4vw, 57px); font-weight: 300; letter-spacing: -.055em; line-height: .98; }
.rf-run-primary p { max-width: 720px; color: var(--rf-graphite); line-height: 1.55; }
.rf-run-finding-notes { display: grid; background: var(--rf-rule); gap: 1px; }
.rf-run-finding-notes article { padding: 24px; background: var(--rf-paper); }
.rf-run-finding-notes strong { display: block; margin-top: 9px; color: var(--rf-deep); font-size: 16px; font-weight: 500; }
.rf-run-finding-notes p { color: var(--rf-muted); font-size: 12px; line-height: 1.5; }
.rf-editorial .run-verdict[data-contract-source="legacy_compatibility"] { display: none; }
.rf-comparable-brief { display: grid; grid-template-columns: minmax(180px, 3fr) minmax(0, 7fr); gap: 18px; min-height: 0; margin: 30px 0 34px; padding: 22px 24px; align-items: center; border-top: 1px solid var(--rf-rule-strong); border-bottom: 1px solid var(--rf-rule); }
.rf-comparable-brief strong { color: var(--rf-deep); font-size: 17px; font-weight: 500; }
.rf-comparable-brief small { grid-column: 2; color: var(--rf-muted); line-height: 1.45; }
.rf-editorial .detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 26px 0; border-top: 1px solid var(--rf-rule); }
.rf-editorial .detail-stat { min-height: 82px; padding: 14px 14px 14px 0; border-width: 0 0 1px; }
.rf-editorial .detail-stat:not(:nth-child(4n+1)) { padding-left: 14px; border-left: 1px solid var(--rf-rule); }
.rf-effort-evidence { margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--rf-rule-strong); }
.rf-section-lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 5fr); gap: 32px; align-items: end; }
.rf-section-lead h3 { margin: 7px 0 0; color: var(--rf-deep); font-size: 30px; font-weight: 400; }
.rf-section-lead > p { color: var(--rf-graphite); line-height: 1.5; }
.rf-effort-ledger { display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px 0 34px; border-top: 1px solid var(--rf-rule); border-bottom: 1px solid var(--rf-rule); }
.rf-effort-ledger > div { padding: 17px 20px 19px 0; }
.rf-effort-ledger > div + div { padding-left: 20px; border-left: 1px solid var(--rf-rule); }
.rf-effort-ledger dt { color: var(--rf-muted); font: 500 9px/1.3 var(--rf-mono); text-transform: uppercase; }
.rf-effort-ledger dd { margin: 7px 0; color: var(--rf-deep); font-size: 21px; font-weight: 400; }
.rf-effort-ledger small { color: var(--rf-muted); line-height: 1.4; }
.rf-zone-composition { margin: 34px 0 20px; border-top: 1px solid var(--rf-rule-strong); border-bottom: 1px solid var(--rf-rule); }
.rf-zone-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding: 24px 26px;
  align-items: end;
  background: linear-gradient(112deg, rgba(228, 229, 239, .58), rgba(243, 243, 240, .92) 58%, rgba(166, 165, 196, .2));
}
.rf-zone-heading h4 { margin: 7px 0 5px; color: var(--rf-deep); font-size: clamp(25px, 2.5vw, 34px); font-weight: 400; letter-spacing: -.04em; }
.rf-zone-heading p { max-width: 680px; margin: 0; color: var(--rf-graphite); font-size: 12px; line-height: 1.45; }
.rf-zone-heading > strong { color: var(--rf-deep); font-size: clamp(42px, 5vw, 68px); font-weight: 300; letter-spacing: -.06em; }
.rf-zone-field { display: block; width: 100%; height: auto; min-height: 230px; overflow: visible; background: var(--rf-paper); }
.rf-zone-spoke { stroke: var(--rf-rule); stroke-width: .7; }
.rf-zone-dot { opacity: .94; transform-box: fill-box; transform-origin: center; animation: rf-zone-dot-in .38s cubic-bezier(.16, 1, .3, 1) var(--rf-dot-delay) both; }
.rf-zone-core { stroke: var(--rf-paper); stroke-width: 1.5; }
.rf-zone-1 { fill: var(--rf-rule); background: var(--rf-rule); }
.rf-zone-2 { fill: var(--rf-wisteria); background: var(--rf-wisteria); }
.rf-zone-3 { fill: #6d6b91; background: #6d6b91; }
.rf-zone-4 { fill: var(--rf-indigo); background: var(--rf-indigo); }
.rf-zone-5 { fill: var(--rf-deep); background: var(--rf-deep); }
.rf-zone-label { fill: var(--rf-graphite); font: 600 9px/1 var(--rf-mono); letter-spacing: .08em; }
.rf-zone-value { fill: var(--rf-deep); font: 500 14px/1 var(--rf-editorial); }
.rf-zone-source { fill: var(--rf-muted); font: 500 7px/1 var(--rf-mono); letter-spacing: .1em; }
.rf-zone-legend { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rf-rule); }
.rf-zone-legend li { display: grid; gap: 8px; min-width: 0; padding: 14px 13px; }
.rf-zone-legend li + li { border-left: 1px solid var(--rf-rule); }
.rf-zone-legend span { display: flex; gap: 7px; align-items: center; color: var(--rf-graphite); font: 500 9px/1.3 var(--rf-mono); text-transform: uppercase; }
.rf-zone-legend i { display: block; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; }
.rf-zone-legend strong { color: var(--rf-deep); font-size: 13px; font-weight: 500; }
.rf-zone-guardrail { margin: 0 0 30px; line-height: 1.55; }
.rf-zone-tick-card { padding: 28px 26px 30px; border-top: 1px solid var(--rf-rule-strong); background: linear-gradient(125deg, rgba(228, 229, 239, .38), rgba(243, 243, 240, .94) 64%); }
.rf-zone-tick-card header { display: grid; grid-template-columns: minmax(0, 7fr) minmax(240px, 5fr); gap: 30px; align-items: end; }
.rf-zone-tick-card header h4 { margin: 7px 0 0; color: var(--rf-deep); font-size: 24px; font-weight: 400; letter-spacing: -.035em; }
.rf-zone-tick-card header p { margin: 0; color: var(--rf-muted); font-size: 12px; line-height: 1.5; }
.rf-tick-row-chart { display: block; width: 100%; height: auto; margin-top: 18px; overflow: visible; }
.rf-tick-row-floor { stroke: var(--rf-rule); stroke-width: .8; }
.rf-tick-row-mark { stroke: var(--rf-indigo); stroke-width: .95; opacity: .78; vector-effect: non-scaling-stroke; }
.rf-tick-row-mark.is-dominant { stroke: var(--rf-deep); stroke-width: 1.2; opacity: 1; }
.rf-tick-row-fifth { fill: var(--rf-rule-strong); }
.rf-tick-row-label { fill: var(--rf-graphite); font: 600 12.5px/1 var(--rf-mono); letter-spacing: .035em; }
.rf-tick-row-value { fill: var(--rf-deep); font: 600 12.5px/1 var(--rf-mono); }
.rf-tick-row-key { fill: var(--rf-muted); font: 600 10px/1 var(--rf-mono); letter-spacing: .06em; }
@keyframes rf-zone-dot-in { from { opacity: 0; transform: scale(.12); } }
.rf-coach-story { margin: 16px 0 42px; }
.rf-coach-story > header { display: grid; grid-template-columns: minmax(0, 8fr) minmax(240px, 4fr); gap: 36px; padding: 30px 0; align-items: end; border-bottom: 1px solid var(--rf-rule-strong); }
.rf-coach-story > header h2 { max-width: 780px; margin: 8px 0 0; color: var(--rf-deep); font-size: clamp(29px, 3vw, 43px); font-weight: 300; letter-spacing: -.045em; line-height: 1.02; }
.rf-coach-summary { max-width: 850px; margin: 15px 0 0; color: var(--rf-graphite); font-size: 14px; line-height: 1.55; }
.rf-coach-story-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1px; background: var(--rf-rule); }
.rf-coach-story-grid article { min-height: 220px; padding: 26px; background: var(--rf-paper); }
.rf-coach-observation { grid-column: span 4; }
.rf-coach-hypothesis { grid-column: span 4; }
.rf-coach-action { grid-column: span 4; background: var(--rf-deep) !important; color: var(--rf-paper); }
.rf-coach-story-grid strong { display: block; margin-top: 9px; color: var(--rf-deep); font-size: 20px; font-weight: 500; }
.rf-coach-story-grid p { color: var(--rf-graphite); line-height: 1.55; }
.rf-coach-action .eyebrow, .rf-coach-action strong { color: var(--rf-wisteria); }
.rf-coach-action p { color: rgba(243, 243, 240, .74); }

.rf-coach-status { margin: 46px 0 42px; }
.rf-coach-status > header { display: grid; grid-template-columns: minmax(240px, 7fr) minmax(260px, 5fr); gap: 34px; align-items: end; padding-bottom: 18px; border-bottom: 1px solid var(--rf-rule-strong); }
.rf-coach-status > header h3 { margin: 7px 0 0; color: var(--rf-deep); font-size: 30px; font-weight: 400; letter-spacing: -.04em; }
.rf-coach-status > header p { margin: 0; color: var(--rf-graphite); line-height: 1.5; }
.rf-coach-status-ledger { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1px; background: var(--rf-rule); }
.rf-coach-status-ledger .adaptation-card { min-height: 224px; padding: 24px; background: var(--rf-paper); }
.rf-coach-status-ledger .adaptation-card:nth-child(1) { grid-column: span 5; }
.rf-coach-status-ledger .adaptation-card:nth-child(2) { grid-column: span 4; background: linear-gradient(135deg, var(--rf-paper), rgba(166, 165, 196, .2)); }
.rf-coach-status-ledger .adaptation-card:nth-child(3) { grid-column: span 3; background: linear-gradient(145deg, rgba(228, 210, 216, .32), rgba(190, 210, 195, .24)); }
.rf-coach-status-ledger .adaptation-card h3 { color: var(--rf-deep); font-size: 19px; font-weight: 500; }
.rf-coach-status-ledger .adaptation-facts { margin-top: auto; }
.rf-editorial .adaptation-facts div {
  border-color: rgba(143, 141, 147, .7);
  border-radius: 0;
  background: linear-gradient(135deg, rgba(243, 243, 240, .82), rgba(228, 229, 239, .54));
}
.rf-editorial .adaptation-facts dt { color: var(--rf-muted); }
.rf-editorial .adaptation-facts dd { color: var(--rf-deep); font-weight: 500; }

/* Shared legacy views, dialogs, and progressive detail. */
.rf-editorial section[data-app-page="recovery"],
.rf-editorial section[data-app-page="runs"],
.rf-editorial section[data-app-page="calendar"] { margin-top: 0; padding-inline: 36px; }
.rf-editorial .panel,
.rf-editorial .metrics,
.rf-editorial .health-card,
.rf-editorial .review-note,
.rf-editorial .focus-card,
.rf-editorial .adaptation-card,
.rf-editorial .confidence-card,
.rf-editorial .verdict-copy,
.rf-editorial .detail-stat { border-radius: 0; border-color: var(--rf-rule); background: transparent; box-shadow: none; }
.rf-editorial .metric { border-color: var(--rf-rule); }
.rf-editorial .metric-value { font-weight: 300; }
.rf-editorial .info-tip { width: 44px; height: 44px; border-radius: 0; background: transparent; color: var(--rf-indigo); }
.rf-editorial .table-scroll { border-color: var(--rf-rule); }
.rf-editorial th { color: var(--rf-muted); background: var(--rf-mist); }
.rf-editorial td { border-color: var(--rf-rule); color: var(--rf-graphite); }
.rf-editorial tr:hover td { background: rgba(166, 165, 196, .1); }
.rf-editorial .run-link { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; }
.rf-editorial summary { display: flex; min-height: 44px; align-items: center; }

.rf-editorial #run-dialog {
  width: min(1320px, calc(100% - 32px));
  background: var(--rf-paper);
}
.rf-editorial #run-dialog .dialog-body { padding: 0 28px 34px; }
.rf-editorial #run-detail-title { color: var(--rf-deep); font-weight: 300; }
.rf-editorial .run-tabs { position: sticky; z-index: 10; top: 89px; gap: 0; padding: 10px 0; background: rgba(243, 243, 240, .94); backdrop-filter: blur(12px); }
.rf-editorial .run-panel { margin-top: 0; }
.rf-editorial .run-tabs .tab { border-inline-width: 0 0; border-top: 0; }
.rf-editorial .run-tabs .tab[aria-selected="true"],
.rf-editorial .run-tabs .tab[aria-pressed="true"] { border-bottom-color: var(--rf-deep); background: transparent; color: var(--rf-deep); }
.rf-editorial .run-verdict { gap: 1px; background: var(--rf-rule); }
.rf-editorial .verdict-copy,
.rf-editorial .confidence-card { padding: 30px; }
.rf-editorial .verdict-copy h3 { color: var(--rf-deep); font-size: clamp(31px, 4vw, 58px); font-weight: 300; line-height: 1; }
.rf-editorial .confidence-card { background: linear-gradient(145deg, rgba(166, 165, 196, .25), rgba(228, 229, 239, .55)); }
.rf-editorial .evidence-strip { border-color: var(--rf-rule); background: var(--rf-rule); }
.rf-editorial .evidence-chip { background: var(--rf-paper); }

/* Operational dialogs use the same paper ledger, visible labels, and bounded actions. */
.rf-editorial #settings-dialog { width: min(900px, calc(100% - 28px)); }
.rf-editorial #data-dialog { width: min(980px, calc(100% - 28px)); }
.rf-editorial #settings-dialog .dialog-body,
.rf-editorial #data-dialog .dialog-body { gap: 18px; padding: 24px; }
.rf-editorial .data-card {
  gap: 11px;
  padding: 18px;
  border: 1px solid var(--rf-rule);
  border-radius: 0;
  background:
    radial-gradient(circle at 86% 8%, rgba(166, 165, 196, .18), transparent 34%),
    linear-gradient(120deg, rgba(248, 248, 245, .98), rgba(228, 229, 239, .26));
  color: var(--rf-graphite);
}
.rf-editorial .data-card > strong,
.rf-editorial .data-card > label { color: var(--rf-deep); font-size: 14px; font-weight: 500; }
.rf-editorial .data-card .actions { flex-wrap: wrap; justify-content: flex-start; }
.rf-editorial #data-dialog .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 4px 0; border-top: 0; }
.rf-editorial #data-dialog .detail-grid .field { padding: 0; border: 0; }
.rf-editorial #data-dialog input[type="file"] { padding: 8px; overflow: hidden; }
.rf-editorial #data-dialog .btn { max-width: 100%; white-space: normal; text-align: center; }
.rf-editorial #backup-list .revision-item,
.rf-editorial #product-feedback-list .revision-item {
  border: 1px solid var(--rf-rule);
  border-radius: 0;
  background: rgba(248, 248, 245, .92);
  color: var(--rf-graphite);
}
.rf-editorial #garmin-profile-suggestion { background: linear-gradient(115deg, rgba(190, 210, 195, .36), rgba(166, 165, 196, .18)); }

.rf-run-signal-explorer { margin: 18px 0 28px; padding: 26px; border-top: 1px solid var(--rf-rule-strong); border-bottom: 1px solid var(--rf-rule); }
.rf-run-signal-explorer .rf-chart { min-height: 420px; }
.rf-run-phases { margin: 18px 0 14px; }
.rf-run-phase-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.rf-run-phase-buttons button { min-height: 44px; padding: 8px 12px; border: 1px solid var(--rf-rule-strong); border-radius: 2px; background: var(--aerithm-bg); color: var(--aerithm-txt); text-align: left; cursor: pointer; }
.rf-run-phase-buttons button strong,
.rf-run-phase-buttons button span { display: block; }
.rf-run-phase-buttons button span { margin-top: 2px; color: var(--aerithm-muted); font: 600 10px/1.2 var(--aerithm-mono); letter-spacing: .04em; }
.rf-run-phase-buttons button[aria-pressed="true"] { border-color: var(--aerithm-data); box-shadow: inset 0 -3px 0 var(--aerithm-data); }

.rf-empty { min-height: 220px; display: grid; place-items: center; padding: 28px; border: 1px solid var(--rf-rule); color: var(--rf-muted); font: 10px/1.6 var(--rf-mono); text-align: center; text-transform: uppercase; }
.rf-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  .rf-editorial *,
  .rf-editorial *::before,
  .rf-editorial *::after { scroll-behavior: auto !important; animation-duration: .00001ms !important; animation-iteration-count: 1 !important; transition-duration: .00001ms !important; }
}

/* Garmin detailed health, route, plan/actual, and performance history */
.rf-timeline-sheet {
  margin-top: 1.25rem;
  padding: clamp(1rem, 2vw, 1.6rem);
  border: 1px solid var(--aerithm-grid);
  background: color-mix(in srgb, var(--aerithm-bg) 94%, var(--aerithm-data));
}

.rf-timeline-day { display: grid; gap: .35rem; min-width: 13rem; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.rf-detailed-timeline, .rf-sleep-hypnogram, .rf-sleep-detail, .rf-recovery-episodes { min-height: 15rem; }
.rf-recovery-episodes .rf-hairline { fill: none; stroke: var(--aerithm-data); stroke-width: 2; vector-effect: non-scaling-stroke; }
.rf-recovery-episodes .rf-day-dot { fill: var(--aerithm-bg); stroke: var(--aerithm-data); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.rf-recovery-episodes .rf-day-dot:focus,
.rf-readiness-association .rf-association-dot:focus { outline: none; stroke: var(--aerithm-focus); stroke-width: 4; }
.rf-timeline-line { fill: none; stroke: var(--aerithm-data); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rf-timeline-line.stress { stroke: var(--aerithm-caution); }
.rf-timeline-line.body_battery, .rf-timeline-line.sleep { stroke: var(--aerithm-recovery); }
.rf-sleep-interval { stroke: var(--aerithm-bg); stroke-width: .8; }
.rf-sleep-interval.deep { fill: var(--aerithm-ramp-5); }
.rf-sleep-interval.light { fill: var(--aerithm-data); }
.rf-sleep-interval.rem { fill: var(--aerithm-recovery); }
.rf-sleep-interval.awake { fill: var(--aerithm-caution); }
.rf-sleep-interval.unmeasurable { fill: var(--aerithm-grid); }

.rf-recovery-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
  align-items: start;
}
.rf-recovery-analysis-grid > .rf-timeline-sheet { min-width: 0; margin-top: 0; }
.rf-recovery-analysis-grid .rf-chart-head { display: grid; gap: .5rem; }
.rf-recovery-analysis-grid .rf-recovery-episode,
.rf-recovery-analysis-grid .rf-association-lead { grid-template-columns: 1fr; gap: .75rem; }
.rf-recovery-analysis-grid .rf-recovery-episode dl { border-top: 1px solid var(--aerithm-grid); padding-top: .75rem; }

.rf-recovery-episode {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 1fr);
  gap: 1.5rem;
  margin: 1rem 0;
  padding: 1rem 0;
  border-block: 1px solid var(--aerithm-grid);
}
.rf-recovery-episode h3 { margin: .35rem 0; font-size: clamp(1.2rem, 2.4vw, 1.8rem); }
.rf-recovery-episode dl { margin: 0; display: grid; gap: .65rem; }
.rf-recovery-episode dl div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--aerithm-grid); padding-bottom: .45rem; }
.rf-recovery-episode dt { color: var(--aerithm-muted); }
.rf-recovery-episode dd { margin: 0; font-weight: 700; text-align: right; }

.rf-association-lead { display: grid; grid-template-columns: minmax(0, 5fr) minmax(420px, 7fr); gap: 2rem; margin: 1rem 0; padding-block: 1rem; border-block: 1px solid var(--aerithm-grid); }
.rf-association-lead h3 { margin: .35rem 0; max-width: 42rem; font-size: clamp(1.35rem, 2.6vw, 2rem); font-weight: 500; line-height: 1.08; }
.rf-association-lead p { max-width: 46rem; color: var(--aerithm-muted); line-height: 1.55; }
.rf-association-lead dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-left: 1px solid var(--aerithm-grid); }
.rf-association-lead dl div { min-width: 0; padding: .8rem 1rem; border-right: 1px solid var(--aerithm-grid); }
.rf-association-lead dt { color: var(--aerithm-muted); font: 700 9px/1.4 var(--aerithm-mono); letter-spacing: .05em; text-transform: uppercase; }
.rf-association-lead dd { margin: .5rem 0 0; color: var(--aerithm-txt); font-size: 1.55rem; font-weight: 500; }
.rf-association-lead small { display: block; margin-top: .35rem; color: var(--aerithm-muted); line-height: 1.35; }
.rf-readiness-association { min-height: 19rem; }
.rf-readiness-association .rf-zero-line { stroke: var(--aerithm-txt); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.rf-readiness-association .rf-association-bar { stroke-width: 10; stroke-linecap: square; vector-effect: non-scaling-stroke; }
.rf-readiness-association .rf-association-bar.unfavorable { stroke: var(--aerithm-caution); }
.rf-readiness-association .rf-association-bar.within { stroke: var(--aerithm-muted); }
.rf-readiness-association .rf-association-bar.supportive { stroke: var(--aerithm-data); }
.rf-readiness-association .rf-association-label { fill: var(--aerithm-txt); font: 700 10px/1 var(--aerithm-mono); letter-spacing: .035em; }
.rf-readiness-association .rf-association-count { fill: var(--aerithm-muted); font: 700 8px/1 var(--aerithm-mono); }
.rf-readiness-association .rf-association-value { fill: var(--aerithm-txt); font: 700 9px/1 var(--aerithm-mono); }
.rf-readiness-association .rf-association-dot { stroke: var(--aerithm-bg); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.rf-readiness-association .rf-association-dot.unfavorable { fill: var(--aerithm-caution); }
.rf-readiness-association .rf-association-dot.within { fill: var(--aerithm-muted); }
.rf-readiness-association .rf-association-dot.supportive { fill: var(--aerithm-data); }
.rf-readiness-performance-sheet td span { display: block; margin-top: .2rem; color: var(--aerithm-muted); font-size: .72rem; }
.rf-timeline-disclosure { margin-top: 1.25rem; border-block: 1px solid var(--aerithm-grid); }
.rf-timeline-disclosure > summary { display: flex; min-height: 64px; justify-content: space-between; gap: 1rem; align-items: center; padding: .75rem .25rem; color: var(--aerithm-txt); cursor: pointer; }
.rf-timeline-disclosure > summary span { display: grid; gap: .25rem; }
.rf-timeline-disclosure > summary small { color: var(--aerithm-muted); font: 700 9px/1.4 var(--aerithm-mono); letter-spacing: .04em; text-transform: uppercase; }
.rf-timeline-disclosure > summary span:last-child { color: var(--aerithm-data); font: 700 10px/1 var(--aerithm-mono); text-transform: uppercase; }
.rf-timeline-disclosure .rf-timeline-sheet { margin-top: 0; border: 0; border-top: 1px solid var(--aerithm-grid); }

.rf-garmin-plan-actual { margin-top: 1rem; }
.rf-garmin-plan-actual .evidence-drawer > summary,
body[data-beta-profile="lean-analysis"] #plan-list .evidence-drawer > summary {
  color: var(--rf-indigo);
  font-size: 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.rf-plan-actual-summary, .rf-coordinate-ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin: 1rem 0;
}
.rf-plan-actual-summary span, .rf-coordinate-ledger span { display: grid; gap: .3rem; padding: .7rem; border-left: 2px solid var(--aerithm-grid); }

.rf-lifetime-progression,
.rf-provider-history { margin: 1rem 0 1.5rem; padding: 1rem; border: 1px solid var(--aerithm-grid); }
.rf-lifetime-progression-chart { min-height: 18rem; }
.rf-lifetime-progression-chart .rf-lifetime-line { fill: none; vector-effect: non-scaling-stroke; }
.rf-lifetime-progression-chart .rf-lifetime-line.complete { stroke: var(--aerithm-data); stroke-width: 2.2; }
.rf-lifetime-progression-chart .rf-lifetime-line.partial { stroke: var(--aerithm-muted); stroke-width: 1.4; stroke-dasharray: 5 5; }
.rf-lifetime-progression-chart .rf-day-dot { stroke: var(--aerithm-bg); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.rf-lifetime-progression-chart .rf-day-dot.complete { fill: var(--aerithm-data); }
.rf-lifetime-progression-chart .rf-day-dot.partial { fill: var(--aerithm-muted); }
.rf-provider-history-chart { min-height: 18rem; }
.rf-provider-history-chart .rf-hairline { fill: none; stroke: var(--aerithm-data); stroke-width: 2; vector-effect: non-scaling-stroke; }
.rf-provider-history-chart .rf-average-line { stroke: var(--aerithm-muted); stroke-width: 1; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.rf-provider-history-chart .rf-average-label { fill: var(--aerithm-muted); font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.rf-provider-history-chart .rf-deviation-stem { stroke: var(--aerithm-grid); stroke-width: 2; vector-effect: non-scaling-stroke; }
.rf-provider-history-chart .rf-day-dot { stroke: var(--aerithm-bg); stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.rf-provider-history-chart .rf-above-average { fill: var(--aerithm-data); }
.rf-provider-history-chart .rf-below-average { fill: var(--aerithm-caution); }
.rf-provider-history-chart .rf-at-average { fill: var(--aerithm-muted); }
.rf-provider-history-controls { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; margin: .85rem 12px 0; padding-top: .75rem; border-top: 1px solid var(--aerithm-grid); }
.rf-provider-history-controls > div { display: grid; gap: .35rem; }
.rf-control-label { color: var(--aerithm-muted); font: 700 10px/1.3 var(--rf-mono); letter-spacing: .08em; text-transform: uppercase; }
.rf-segmented-control { display: flex; flex-wrap: wrap; gap: .35rem; }
.rf-segmented-control button { min-height: 44px; padding: .55rem .75rem; border: 1px solid var(--aerithm-grid); background: var(--aerithm-bg); color: var(--aerithm-txt); cursor: pointer; font: 700 10px/1 var(--rf-mono); letter-spacing: .04em; }
.rf-segmented-control button[aria-pressed="true"] { border-color: var(--aerithm-data); background: var(--aerithm-data); color: var(--aerithm-bg); }
.rf-segmented-control button:focus-visible { outline: 2px solid var(--aerithm-data); outline-offset: 2px; }
.rf-provider-chart-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1rem; border-block: 1px solid var(--aerithm-grid); }
.rf-provider-chart-summary > div { display: grid; gap: .25rem; padding: .7rem; border-right: 1px solid var(--aerithm-grid); }
.rf-provider-chart-summary > div:last-child { border-right: 0; }
.rf-provider-chart-summary span { color: var(--aerithm-muted); font-size: .72rem; }
.rf-provider-chart-summary strong { font-size: 1rem; }

.rf-route-read-model { display: grid; gap: 1rem; }
.rf-route-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--aerithm-grid); }
.rf-route-facts > div { display: grid; gap: .25rem; padding: .85rem; border-right: 1px solid var(--aerithm-grid); }
.rf-route-facts > div:last-child { border-right: 0; }
.rf-route-facts span, .rf-route-facts small { color: var(--aerithm-muted); }
.rf-route-facts strong { font-size: 1.15rem; }
.rf-private-route-map { background: color-mix(in srgb, var(--aerithm-bg) 96%, var(--aerithm-data)); border: 1px solid var(--aerithm-grid); padding: .5rem; }
.rf-osm-map { position: relative; width: 100%; aspect-ratio: 900 / 510; overflow: hidden; background: #e8ece8; isolation: isolate; }
.rf-map-tile-layer { position: absolute; inset: 0 auto auto 0; z-index: 0; transform-origin: 0 0; background: repeating-linear-gradient(45deg, #e7ebe7, #e7ebe7 12px, #dde3de 12px, #dde3de 24px); pointer-events: none; }
.rf-map-tile-layer img { position: absolute; display: block; width: 256px; height: 256px; max-width: none; user-select: none; }
.rf-map-tile-layer img.rf-map-tile-unavailable { opacity: 0; }
.rf-route-overlay { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: pan-y; pointer-events: all; }
.rf-map-hit-area { fill: transparent; pointer-events: all; }
.rf-route-overlay:focus-visible { outline: 3px solid var(--aerithm-data); outline-offset: -3px; }
.rf-map-controls { position: absolute; z-index: 5; top: .75rem; left: .75rem; display: grid; box-shadow: 0 3px 12px rgba(23, 35, 71, .18); }
.rf-map-controls button { display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 1px solid var(--aerithm-grid); background: rgba(255, 255, 255, .96); color: var(--aerithm-data); cursor: pointer; font: 700 1.25rem/1 var(--rf-mono); }
.rf-map-controls button + button { border-top: 0; }
.rf-map-controls button:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--aerithm-data); outline-offset: -3px; }
.rf-map-controls button:disabled { color: var(--aerithm-muted); cursor: not-allowed; }
.rf-osm-map .rf-chart-tooltip { z-index: 7; }
.rf-osm-map .rf-inspector { position: absolute; z-index: 4; right: .75rem; bottom: .75rem; left: .75rem; min-height: 0; margin: 0; background: rgba(255, 255, 255, .94); box-shadow: 0 3px 14px rgba(23, 35, 71, .16); pointer-events: none; }
.rf-map-attribution { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: space-between; margin: .5rem 0 0; color: var(--aerithm-muted); font: 10px/1.45 var(--rf-mono); }
.rf-map-attribution a { color: var(--aerithm-data); }
.rf-route-halo { fill: none; stroke: var(--aerithm-bg); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.rf-route-line { fill: none; stroke: var(--aerithm-data); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rf-route-start { fill: var(--aerithm-recovery); stroke: var(--aerithm-bg); stroke-width: 2; }
.rf-route-finish { fill: var(--aerithm-caution); stroke: var(--aerithm-bg); stroke-width: 2; }
.rf-route-split { fill: var(--aerithm-bg); stroke: var(--aerithm-data); stroke-width: 2; }
.rf-route-cursor { fill: var(--aerithm-bg); stroke: var(--aerithm-caution); stroke-width: 3; vector-effect: non-scaling-stroke; pointer-events: none; }
.rf-route-label, .rf-route-north { fill: var(--aerithm-txt); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.rf-route-elevation-line { fill: none; stroke: var(--aerithm-recovery); stroke-width: 2; }

@media (max-width: 760px) {
  .rf-recovery-analysis-grid { grid-template-columns: 1fr; }
  .rf-recovery-episode { grid-template-columns: 1fr; }
  .rf-association-lead { grid-template-columns: 1fr; gap: 1rem; }
  .rf-association-lead dl { border-top: 1px solid var(--aerithm-grid); border-left: 0; }
  .rf-association-lead dl div:first-child { padding-left: 0; }
  .rf-timeline-disclosure > summary { align-items: flex-start; }
  .rf-plan-actual-summary, .rf-coordinate-ledger, .rf-route-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rf-timeline-day { min-width: 0; width: 100%; }
  .rf-provider-chart-summary { grid-template-columns: 1fr; }
  .rf-provider-chart-summary > div { border-right: 0; border-bottom: 1px solid var(--aerithm-grid); }
  .rf-provider-chart-summary > div:last-child { border-bottom: 0; }
  .rf-osm-map .rf-inspector { font-size: 8px; }
}

@media (max-width: 1500px) {
  .rf-editorial .local-note { display: none; }
}

@media (max-width: 1400px) {
  .rf-editorial .side { grid-template-columns: minmax(132px, 1fr) auto minmax(132px, 1fr); }
  .rf-editorial .brand img { width: 120px; }
  .rf-editorial .nav { gap: 12px; }
  .rf-editorial .local-note,
  .rf-editorial .sync-state > span:first-child { display: none; }
  .rf-editorial .topbar .btn { width: 44px; padding-inline: 0; font-size: 0; }
  .rf-editorial .topbar .btn > span { font-size: 13px; }
  .rf-editorial .settings-disclosure > summary > span:not(.settings-chevron) { display: none; }
  .rf-editorial .settings-disclosure > summary .settings-chevron { display: none; }
  .rf-editorial #sync-toggle-label,
  .rf-editorial .sync-chevron { display: none; }
}

@media (max-width: 1040px) {
  .rf-editorial .side { grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr); }
  .rf-editorial .local-note { display: none; }
  .rf-editorial .nav { justify-content: center; gap: 18px; }
  .rf-intro { grid-template-columns: 1fr; min-height: 0; }
  .rf-decision { padding: 22px 0 0; border-top: 1px solid var(--rf-rule-strong); border-left: 0; }
  .rf-state-band { grid-template-columns: 1fr; }
  .rf-state-band h2 { max-width: 650px; }
  .rf-span-7,
  .rf-span-5 { grid-column: span 6; }
  .rf-session,
  .rf-weekly-dose { grid-column: 1 / -1; }
  .rf-prescription-grid .rf-weekly-dose { border-top: 1px solid var(--rf-rule); border-left: 0; }
  .rf-performance-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rf-performance-metrics > div:nth-child(4) { border-left: 0; }
  .rf-performance-metrics > div:nth-child(n+4) { border-top: 1px solid var(--rf-rule); }
  .rf-record-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rf-recovery-opening { grid-template-columns: 1fr; }
  .rf-recovery-reading { padding-right: 0; padding-bottom: 22px; border-right: 0; border-bottom: 1px solid var(--rf-rule-strong); }
  .rf-recovery-grid { grid-template-columns: 1fr; }
  .rf-sleep-sheet { display: grid; grid-template-columns: minmax(260px, 4fr) minmax(0, 8fr); gap: 0 30px; }
  .rf-sleep-sheet .rf-chart-head { grid-column: 1 / -1; }
  .rf-hundred-field { grid-row: span 2; }
  .rf-coach-observation,
  .rf-coach-hypothesis,
  .rf-coach-action { grid-column: span 6; }
  .rf-coach-action { grid-column: 1 / -1; min-height: 170px !important; }
  .rf-coach-status-ledger .adaptation-card:nth-child(1),
  .rf-coach-status-ledger .adaptation-card:nth-child(2) { grid-column: span 6; }
  .rf-coach-status-ledger .adaptation-card:nth-child(3) { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body.rf-editorial { padding: 0; background: var(--rf-paper); }
  .rf-editorial .side { position: relative; grid-template-columns: 104px minmax(0, 1fr); gap: 4px 10px; padding: 7px 14px 5px; }
  .rf-editorial .brand img { width: 100px; }
  .rf-editorial .topbar { grid-column: 2; justify-self: end; }
  .rf-editorial .nav { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; width: 100%; overflow: visible; }
  .rf-editorial .nav a { min-width: 0; padding-inline: 1px; font-size: 8px; letter-spacing: .035em; }
  .rf-editorial main { padding: 0 14px 54px; }
  .rf-editorial .topbar-right { gap: 4px; }
  .rf-editorial .sync-state { display: none; }
  .rf-editorial .actions { flex-wrap: nowrap; justify-content: flex-end; gap: 3px; }
  .rf-editorial .topbar .btn { width: 44px; min-width: 44px; min-height: 44px; padding-inline: 0; font-size: 0; }
  .rf-editorial .topbar .btn span { font-size: 13px; }
  .rf-editorial .settings-panel { position: fixed; top: 60px; right: 14px; width: min(292px, calc(100vw - 28px)); }
  .rf-intro { padding: 34px 12px 28px; }
  .rf-intro h1 { font-size: clamp(39px, 12vw, 54px); }
  .rf-intro-copy { font-size: 15px; }
  .rf-state-band { gap: 22px; padding: 26px 12px 0; }
  .rf-state-grid { grid-template-columns: 1fr; }
  .rf-state-item,
  .rf-state-item + .rf-state-item { padding: 14px 0; }
  .rf-focus-signal { grid-column: 1; grid-template-columns: 1fr; gap: 7px; padding: 15px; }
  .rf-grid { margin-top: 31px; padding: 0 12px; }
  .rf-span-7,
  .rf-span-5,
  .rf-span-6,
  .rf-span-8,
  .rf-span-4 { grid-column: 1 / -1; }
  .rf-module { padding: 22px 19px; }
  .rf-session { min-height: 0; padding: 26px 22px; }
  .rf-chart { min-height: 280px; }
  .rf-atmosphere { min-height: 88px; margin: 28px 12px 0; padding: 14px; background-position: 58% 48%; }
  .rf-atmosphere strong { font-size: 18px; }
  .rf-atmosphere > span { display: none; }
  .rf-purpose-tabs { margin: 0 12px; padding-block: 12px; }
  .rf-performance-facts { grid-template-columns: 1fr; }
  .rf-evidence-list li { grid-template-columns: 74px 1fr; }
  .rf-performance-overview { margin-inline: 12px; }
  .rf-performance-lead,
  .rf-page-intro,
  .rf-lifetime-ledger,
  .rf-versioned-finding,
  .rf-section-lead,
  .rf-coach-story > header { grid-template-columns: 1fr; }
  .rf-performance-lead { gap: 18px; }
  .rf-performance-metrics { grid-template-columns: 1fr; }
  .rf-performance-metrics > div,
  .rf-performance-metrics > div + div,
  .rf-performance-metrics > div:nth-child(3) { padding: 15px 0; border-left: 0; border-top: 1px solid var(--rf-rule); }
  .rf-record-columns { grid-template-columns: 1fr; }
  .rf-page-intro { gap: 20px; min-height: 0; padding: 28px 0 24px; }
  .rf-page-intro aside { padding: 18px 0 0; border-top: 1px solid var(--rf-rule-strong); border-left: 0; }
  .rf-health-ledger { grid-template-columns: 1fr; }
  .rf-editorial .rf-health-row,
  .rf-editorial .rf-health-row:nth-child(odd),
  .rf-editorial .rf-health-row:nth-child(even) { padding: 10px 0; border-left: 0; }
  .rf-chart-sheet, .rf-sleep-sheet { padding: 22px 16px; }
  .rf-chart-sheet .rf-chart-head { display: grid; }
  .rf-chart-sheet .tabs { max-width: none; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .rf-sleep-sheet { display: block; }
  .rf-hundred-field { margin-inline: auto; }
  .rf-runs-summary { grid-template-columns: 1fr; gap: 22px; padding: 24px 0 18px; }
  .rf-runs-view .rf-lifetime-ledger { grid-template-columns: 1fr; gap: 14px; }
  .rf-lifetime-ledger dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rf-run-tools { width: 100%; justify-items: start; }
  .rf-run-tools label, .rf-run-tools .search { width: 100%; }
  .rf-zone-heading { grid-template-columns: 1fr; gap: 12px; padding: 20px 16px; }
  .rf-zone-heading > strong { font-size: 46px; }
  .rf-zone-field { min-height: 0; }
  .rf-zone-legend { grid-template-columns: 1fr; }
  .rf-zone-legend li { grid-template-columns: 1fr auto; align-items: center; }
  .rf-zone-legend li + li { border-top: 1px solid var(--rf-rule); border-left: 0; }
  .rf-zone-tick-card { padding: 22px 16px 24px; }
  .rf-zone-tick-card header { grid-template-columns: 1fr; gap: 10px; }
  .rf-tick-row-chart { min-width: 0; }
  .rf-calendar-view .calendar-week-head { grid-template-columns: 1fr; }
  .rf-week-dose { text-align: left; }
  .rf-run-primary { min-height: 0; padding: 24px 20px; }
  .rf-comparable-brief { grid-template-columns: 1fr; }
  .rf-comparable-brief small { grid-column: 1; }
  .rf-editorial .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rf-editorial .detail-stat:not(:nth-child(4n+1)) { padding-left: 0; border-left: 0; }
  .rf-editorial .detail-stat:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--rf-rule); }
  .rf-effort-ledger { grid-template-columns: 1fr; }
  .rf-effort-ledger > div + div { padding-left: 0; border-top: 1px solid var(--rf-rule); border-left: 0; }
  .rf-coach-observation,
  .rf-coach-hypothesis,
  .rf-coach-action { grid-column: 1 / -1; }
  .rf-coach-status > header { grid-template-columns: 1fr; gap: 12px; }
  .rf-coach-status-ledger .adaptation-card:nth-child(1),
  .rf-coach-status-ledger .adaptation-card:nth-child(2),
  .rf-coach-status-ledger .adaptation-card:nth-child(3) { grid-column: 1 / -1; min-height: 0; }
  .rf-week-schedule-head { display: grid; }
  .rf-week-schedule-head > span { max-width: none; text-align: left; }
  .rf-week-day { grid-template-columns: 52px 1fr; gap: 4px 12px; }
  .rf-week-day small { grid-column: 2; }
  .rf-editorial section[data-app-page="recovery"],
  .rf-editorial section[data-app-page="runs"],
  .rf-editorial section[data-app-page="calendar"] { padding-inline: 12px; }
  .rf-editorial #run-dialog { width: calc(100% - 14px); max-height: calc(100vh - 14px); }
  .rf-editorial #run-dialog .dialog-body { padding-inline: 14px; }
  .rf-editorial .run-tabs { top: 83px; overflow-x: auto; flex-wrap: nowrap; }
  .rf-editorial .run-tabs .tab { flex: 0 0 auto; }
  .rf-run-signal-explorer { padding: 20px 0; }
  .rf-run-signal-explorer .rf-chart { min-height: 360px; }
  .rf-run-signal-explorer .rf-chart-compact { min-height: 0; aspect-ratio: 520 / 560; }
  .rf-run-signal-explorer .rf-chart-compact .rf-axis { font-size: 14px; }
  .rf-run-signal-explorer .rf-chart-compact text:not(.rf-axis) { font-size: 15px; }
  .rf-editorial #settings-dialog,
  .rf-editorial #data-dialog { width: calc(100% - 14px); max-height: calc(100vh - 14px); }
  .rf-editorial #settings-dialog .dialog-body,
  .rf-editorial #data-dialog .dialog-body,
  .rf-editorial #data-dialog .detail-grid { grid-template-columns: 1fr; }
  .rf-editorial .dialog-head,
  .rf-editorial .dialog-foot { padding-inline: 16px; }
  .rf-editorial #settings-dialog .dialog-body,
  .rf-editorial #data-dialog .dialog-body { padding-inline: 16px; }
}

@media (max-width: 700px) {
  .rf-relationship { margin: 31px 12px 0; padding: 24px 19px; }
  .rf-claim-boundary { margin: 28px 12px 0; }
  .rf-span-6 { grid-column: 1 / -1; }
}
