:root {
  color-scheme: light;
  --ink: #10110f;
  --paper: #f2f3ee;
  --card: #ffffff;
  --line: #d9dcd3;
  --line-strong: #bfc3b8;
  --muted: #6f726a;
  --muted-light: #93968d;
  --accent: #b8ff45;
  --accent-ink: #172000;
  --warning: #f1d886;
  --danger: #cc5b49;
  --sans: Montserrat, "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  --shell: min(1120px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

body {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  translate: 0 -150%;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--sans);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  translate: 0;
}

:focus-visible {
  outline: 2px solid #65a700;
  outline-offset: 3px;
}

.site-header {
  border-bottom: 1px solid #282a26;
  background: var(--ink);
  color: #f6f6f1;
}

.header-inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: Georgia, serif;
  font-size: 18px;
  font-style: italic;
  letter-spacing: 0;
}

.header-product {
  color: #a9aca3;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.app-shell {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  padding-block: 42px 30px;
}

.setup-screen,
.session-screen,
.session-summary > div,
.section-heading > div,
.target-form > div,
.workout-grid,
.set-card,
.set-card-heading > div,
.stats-column,
.stats-card,
.stats-heading > div,
.history-list,
.history-row {
  min-width: 0;
}

.session-screen,
.workout-grid,
.set-card,
.recommendation-card,
.stats-column,
.stats-card {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.recommendation-card * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.eyebrow {
  display: block;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.setup-screen {
  max-width: 920px;
  margin: 0 auto;
}

.setup-heading {
  margin-bottom: 24px;
}

.setup-heading h1,
.section-heading h1,
.set-card h2,
.stats-card h2 {
  margin: 0;
  font-family: var(--sans);
  letter-spacing: -0.04em;
}

.setup-heading h1 {
  margin-top: 7px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.04;
}

.setup-heading p {
  max-width: 620px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.setup-card,
.target-card,
.set-card,
.stats-card {
  border: 1px solid #cfd2ca;
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 18px 55px rgba(20, 24, 17, 0.08);
}

.setup-card {
  padding: 34px;
}

.setup-question {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.setup-question + .setup-question {
  margin-top: 34px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.setup-plan .target-form {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.setup-question legend {
  margin-bottom: 14px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
}

.setup-question legend span {
  display: inline-grid;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.choice-grid-three {
  grid-template-columns: repeat(3, 1fr);
}

.choice-card {
  display: grid;
  min-height: 94px;
  align-content: center;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafbf7;
  cursor: pointer;
  text-align: left;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.choice-card:hover {
  border-color: #91958a;
  background: #fff;
}

.choice-card[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink), 0 6px 18px rgba(0, 0, 0, 0.13);
  color: #fff;
}

.choice-card strong {
  font-family: var(--sans);
  font-size: 15px;
}

.choice-card small {
  color: #7b7e75;
  font-size: 12px;
}

.choice-card[aria-pressed="true"] small {
  color: #b8bbb2;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.primary-button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.primary-button:hover:not(:disabled) {
  border-color: #9ce62d;
  background: #9ce62d;
}

.primary-button:disabled {
  border-color: #d7d9d2;
  background: #d7d9d2;
  color: #8b8e85;
  cursor: not-allowed;
}

.secondary-button {
  border: 1px solid #55594f;
  background: transparent;
  color: #f6f6f1;
}

.secondary-button:hover {
  border-color: #fff;
}

.setup-submit {
  width: 100%;
  margin-top: 32px;
}

.setup-prompt,
.form-error {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.form-error {
  color: #9d3c2e;
}

.session-summary {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #e8eae3;
}

.session-summary strong,
.session-summary small {
  display: block;
}

.session-summary strong {
  margin-top: 1px;
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.session-summary small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
}

.text-button {
  min-height: 36px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: #4f534a;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
}

.target-card {
  overflow: hidden;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  border-bottom: 1px solid var(--line);
}

.section-heading h1 {
  margin-top: 4px;
  font-size: clamp(22px, 3vw, 30px);
}

.step-label {
  flex: none;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.target-form {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.target-value-group,
.opening-load-group {
  min-width: 0;
  padding: 34px 30px;
}

.opening-load-group {
  border-left: 1px solid var(--line);
  background: #fafbf7;
}

.target-value-group > label,
.opening-load-group > label,
.actual-field-label > label {
  display: block;
  margin-bottom: 8px;
  color: #55584f;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.opening-load-group > p {
  margin: -4px 0 15px;
  color: var(--muted);
  font-size: 12px;
}

.starting-source {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.starting-source > span {
  display: block;
  margin-bottom: 8px;
  color: #55584f;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.source-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 4px;
  background: #e7e9e2;
}

.source-toggle button {
  min-height: 42px;
  padding: 7px 8px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
}

.source-toggle button[aria-pressed="true"] {
  background: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.13);
  color: #fff;
}

.opening-load-preview {
  margin: 0 0 14px !important;
  padding: 9px 11px;
  border-left: 3px solid #8bd11f;
  background: #edf5e2;
  color: #46523a !important;
  font-size: 11px !important;
}

.large-number-field {
  display: flex;
  align-items: baseline;
  border-bottom: 2px solid var(--ink);
}

.large-number-field:focus-within {
  border-color: #65a700;
}

.large-number-field input {
  width: 100%;
  min-width: 0;
  padding: 0 8px 6px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(52px, 7vw, 76px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  appearance: textfield;
}

.large-number-field > span {
  padding-bottom: 11px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
}

input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.done-button {
  min-width: 52px;
  min-height: 42px;
  flex: none;
  margin-left: 10px;
  align-self: center;
  border: 0;
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
}

.range {
  width: 100%;
  height: 32px;
  margin: 14px 0 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

.range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: #d2d5cc;
}

.range::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: #d2d5cc;
}

.range::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border: 5px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
  appearance: none;
}

.range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 5px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted-light);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
}

.conversion-note {
  margin: 17px 0 0;
  padding: 10px 12px;
  border-left: 3px solid #8bd11f;
  background: #f1f8e7;
  color: #4e5941;
  font-size: 12px;
}

.profile-velocity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.profile-velocity-row label {
  display: block;
  margin-bottom: 3px;
  color: #55584f;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-velocity-row p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.profile-velocity-field {
  min-height: 44px;
}

.compact-number-field {
  display: flex;
  min-height: 50px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #c9ccc4;
  border-radius: 4px;
  background: #fff;
}

.compact-number-field:focus-within {
  border-color: #65a700;
}

.compact-number-field input {
  width: 100%;
  min-width: 0;
  padding: 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
}

.compact-number-field > span {
  display: grid;
  min-width: 42px;
  place-items: center;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.compact-number-field .done-button {
  min-height: 50px;
  margin: 0;
  border-radius: 0;
}

.unit-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 14px 0 26px;
}

.unit-row > span {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.unit-toggle {
  display: flex;
  padding: 3px;
  border-radius: 3px;
  background: #e7e9e2;
}

.unit-toggle button {
  width: 40px;
  min-height: 30px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.unit-toggle button[aria-pressed="true"] {
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.12);
  color: var(--ink);
}

.opening-load-group .primary-button {
  width: 100%;
}

.workout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(370px, 0.94fr);
  align-items: start;
  gap: 18px;
}

.set-card {
  overflow: hidden;
}

.set-card-heading,
.stats-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.set-card-heading {
  padding: 26px 28px;
  border-bottom: 1px solid var(--line);
}

.set-card h2,
.stats-card h2 {
  margin-top: 3px;
  font-size: 21px;
}

.planned-load {
  text-align: right;
}

.planned-load span,
.planned-load strong {
  display: block;
}

.planned-load span {
  color: var(--muted);
  font-size: 10px;
}

.planned-load strong {
  font-family: var(--sans);
  font-size: 23px;
  letter-spacing: -0.04em;
}

.actuals-form {
  display: grid;
  gap: 0;
  padding: 28px;
}

.actual-field {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.actual-field:first-child {
  padding-top: 0;
}

.actual-field-label > label {
  margin-bottom: 0;
}

.actual-field-controls {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(118px, 140px) minmax(120px, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 18px;
}

.actual-field-controls .compact-number-field {
  width: 100%;
  max-width: 140px;
  min-height: 46px;
  grid-row: 1 / span 2;
}

.actual-range {
  height: 28px;
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.actual-range-labels {
  grid-column: 2;
  grid-row: 2;
}

.log-set-button {
  margin-top: 22px;
}

.actuals-form .form-error {
  margin: 8px 0 0;
}

.recommendation-card {
  padding: 28px;
  background: var(--ink);
  color: #f6f6f1;
  scroll-margin-top: 8px;
}

.recommendation-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #aeb1a8;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recommendation-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 99px;
  background: rgba(184, 255, 69, 0.13);
  color: var(--accent);
}

.recommendation-status.decrease {
  background: rgba(241, 216, 134, 0.13);
  color: var(--warning);
}

.recommendation-status.hold {
  background: rgba(255, 255, 255, 0.09);
  color: #e7e8e2;
}

.recommendation-card h2 {
  margin-top: 23px;
  color: #fff;
  font-size: clamp(27px, 4vw, 38px);
}

.recommendation-card > p {
  max-width: 590px;
  margin: 8px 0 22px;
  color: #b9bcb2;
  font-size: 14px;
}

.recommendation-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-block: 1px solid #373a34;
}

.recommendation-details > div {
  min-width: 0;
  padding: 13px 12px 13px 0;
}

.recommendation-details > div + div {
  padding-left: 13px;
  border-left: 1px solid #373a34;
}

.recommendation-details dt {
  color: #92958d;
  font-size: 9px;
}

.recommendation-details dd {
  margin: 3px 0 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
}

.recommendation-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.stats-column {
  display: grid;
  gap: 18px;
}

.stats-card {
  padding: 24px;
}

.stats-heading {
  margin-bottom: 20px;
}

.results-chart-panel {
  min-width: 0;
  margin: 18px 0 0;
  padding: 17px 0 0;
  border-top: 1px solid var(--line);
}

.results-chart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #55584f;
  font-family: var(--sans);
  font-size: 9px;
}

.results-chart-key {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
}

.results-chart-key i {
  width: 13px;
  height: 0;
}

.chart-actual-key {
  border-top: 2px solid var(--ink);
}

.chart-target-key {
  margin-left: 5px;
  border-top: 1px dashed #76af1d;
}

.results-chart-canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 166px;
  margin-top: 9px;
}

.chart-empty {
  margin: 0;
  padding: 24px 0 7px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.empty-state {
  margin: 0;
  padding: 18px 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.history-list {
  display: grid;
}

.history-columns,
.history-row {
  display: grid;
  grid-template-columns: 38px minmax(68px, 1.35fr) minmax(34px, 0.65fr) minmax(40px, 0.7fr) minmax(48px, 0.85fr);
  align-items: center;
  gap: 5px;
}

.history-columns {
  padding: 0 0 7px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.15;
}

.history-columns span:not(:first-child),
.history-row strong:not(:first-child) {
  text-align: right;
}

.history-row {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.history-row strong {
  min-width: 0;
  overflow: hidden;
  font-family: var(--sans);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-summary {
  border-top-color: var(--line-strong);
  background: #f6f7f2;
}

.history-summary strong {
  font-size: 9px;
}

.history-hit {
  color: #568c08;
}

.data-note {
  margin: 15px 2px 0;
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 940px) {
  :root {
    --shell: min(100% - 36px, 760px);
  }

  .workout-grid {
    grid-template-columns: 1fr;
  }

  .stats-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .target-form {
    grid-template-columns: 1fr;
  }

  .opening-load-group {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .stats-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: calc(100% - 16px);
  }

  .header-inner {
    min-height: 58px;
  }

  .wordmark {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .wordmark-mark {
    width: 28px;
    height: 28px;
  }

  .header-product {
    display: none;
  }

  .app-shell {
    padding-block: 16px;
  }

  .setup-heading h1 {
    font-size: 30px;
  }

  .setup-heading p {
    font-size: 14px;
  }

  .setup-card {
    padding: 18px 14px;
  }

  .choice-grid,
  .choice-grid-three {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: 66px;
    padding: 11px 13px;
  }

  .choice-card strong {
    font-size: 14px;
  }

  .choice-card small {
    font-size: 11px;
  }

  .session-summary {
    align-items: flex-start;
    padding: 12px 14px;
  }

  .session-summary strong {
    font-size: 14px;
  }

  .section-heading,
  .set-card-heading {
    align-items: flex-start;
    padding: 18px 14px;
  }

  .section-heading h1,
  .set-card h2 {
    font-size: 19px;
  }

  .step-label {
    padding-top: 4px;
  }

  .target-value-group,
  .opening-load-group,
  .actuals-form,
  .recommendation-card {
    padding: 18px 14px;
  }

  .large-number-field input {
    font-size: 46px;
  }

  .compact-number-field input {
    font-size: 16px;
  }

  .profile-velocity-row {
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 12px;
  }

  .source-toggle button {
    min-height: 38px;
    padding-inline: 5px;
    font-size: 9px;
  }

  .range {
    height: 42px;
    margin-top: 8px;
  }

  .range::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
    margin-top: -12px;
    border-width: 6px;
  }

  .range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-width: 6px;
  }

  .actuals-form {
    grid-template-columns: 1fr;
  }

  .actual-field {
    grid-template-columns: 94px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 14px 0;
  }

  .actual-field-label {
    display: flex;
    min-height: 46px;
    flex-direction: column;
    grid-column: 1;
    grid-row: 1;
    justify-content: center;
  }

  .actual-field-label > label {
    font-size: 14px;
    letter-spacing: 0.08em;
  }

  .actual-field-controls {
    display: contents;
  }

  .actual-field-controls .compact-number-field {
    max-width: none;
    grid-column: 2;
    grid-row: 1;
  }

  .actual-range {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 9px;
  }

  .actual-range-labels {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: -8px;
    font-size: 10px;
  }

  .planned-load strong {
    font-size: 18px;
  }

  .recommendation-card h2 {
    font-size: 25px;
  }

  .recommendation-details {
    grid-template-columns: 1fr;
  }

  .recommendation-details > div {
    padding: 10px 0;
  }

  .recommendation-details > div + div {
    padding-left: 0;
    border-top: 1px solid #373a34;
    border-left: 0;
  }

  .recommendation-actions {
    grid-template-columns: 1fr;
  }

  .stats-card {
    padding: 17px 13px;
  }

  .history-columns,
  .history-row {
    gap: 4px;
  }

  .results-chart-canvas {
    height: 142px;
  }

  .data-note {
    line-height: 1.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
