@import "tailwindcss";

:root {
  --ink: #17211d;
  --muted: #68736d;
  --line: #dce2de;
  --paper: #ffffff;
  --canvas: #f3f6f4;
  --teal: #0e7480;
  --teal-dark: #075964;
  --teal-soft: #dceff0;
  --green: #2f6a4c;
  --green-soft: #e0eee6;
  --coral: #c95743;
  --coral-soft: #f8e5df;
  --gold: #a46f05;
  --gold-soft: #f8eccd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(14, 116, 128, 0.28);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 244px;
  padding: 24px 18px;
  background: #18231f;
  color: #f7faf8;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 7px;
  font-size: 20px;
  font-weight: 760;
}

.brand-mark {
  width: 35px;
  height: 35px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #f0c667;
  color: #18231f;
}

.pool-switcher {
  width: 100%;
  margin: 32px 0 22px;
  padding: 11px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 9px;
}

.pool-avatar {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dceff0;
  color: var(--teal-dark);
}

.pool-switcher strong,
.pool-switcher small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pool-switcher strong {
  font-size: 13px;
  font-weight: 700;
}

.pool-switcher small {
  margin-top: 3px;
  color: #aebcb5;
  font-size: 10px;
}

.primary-nav {
  display: grid;
  gap: 5px;
}

.nav-button {
  border: 0;
  background: transparent;
  min-height: 44px;
  border-radius: 6px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #aebcb5;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.nav-button-active,
.nav-button-active:hover {
  background: #edf6f2;
  color: #193d31;
}

.sidebar-principle {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 7px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #dce6e1;
}

.sidebar-principle svg {
  flex: 0 0 auto;
  margin-top: 1px;
  color: #f0c667;
}

.sidebar-principle p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

.sidebar-principle strong,
.sidebar-principle span {
  display: block;
}

.sidebar-principle span {
  color: #98a9a0;
}

.sidebar-close,
.menu-button,
.mobile-nav,
.sidebar-scrim {
  display: none;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.main-shell {
  min-height: 100vh;
  margin-left: 244px;
}

.topbar {
  min-height: 92px;
  padding: 20px clamp(24px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: rgba(243, 246, 244, 0.96);
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar > div {
  flex: 1;
}

.topbar h1 {
  margin: 3px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 650;
}

.date-label {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.content-stack {
  width: min(1260px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 52px;
}

.summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(180px, 0.65fr) minmax(180px, 0.65fr);
  gap: 12px;
}

.status-panel,
.metric-panel {
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
}

.status-panel {
  padding: 20px 22px;
  border-left: 4px solid var(--green);
  display: flex;
  align-items: center;
  gap: 18px;
}

.status-panel-warning {
  border-left-color: var(--coral);
}

.status-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
}

.status-panel-warning .status-icon {
  background: var(--coral-soft);
  color: var(--coral);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-panel h2,
.section-heading h2,
.learn-intro h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 650;
}

.status-panel p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.metric-panel {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.metric-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: grid;
  place-items: center;
}

.metric-icon-cost {
  background: var(--gold-soft);
  color: var(--gold);
}

.metric-icon-action {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.metric-panel p,
.metric-panel small {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.metric-panel strong {
  display: block;
  margin: 2px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.work-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(370px, 0.64fr);
  gap: 22px;
  align-items: start;
}

.plan-section,
.test-panel,
.content-panel,
.history-section {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
}

.plan-section {
  min-height: 650px;
  padding: 22px;
}

.test-panel {
  position: sticky;
  top: 18px;
  padding: 22px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-heading > svg {
  color: var(--teal);
}

.plan-count,
.cost-chip {
  white-space: nowrap;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.plan-count {
  padding: 6px 9px;
  background: var(--canvas);
  color: var(--muted);
}

.empty-plan {
  min-height: 540px;
  padding: 46px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.empty-plan-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.empty-plan h3 {
  margin: 16px 0 6px;
  font-size: 16px;
}

.empty-plan p {
  max-width: 460px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.button-primary {
  background: var(--teal-dark);
  color: #ffffff;
}

.button-primary:hover {
  background: #034650;
}

.button-secondary {
  border-color: var(--line);
  background: var(--paper);
}

.button-secondary:hover {
  border-color: #aebcb5;
  background: var(--canvas);
}

.topbar-action {
  flex: 0 0 auto;
}

.action-list {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.action-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 13px;
  transition:
    opacity 160ms ease,
    border-color 160ms ease;
}

.action-safety {
  border-color: #e8b8ab;
  background: #fffaf8;
}

.action-diagnose {
  border-color: #e7d19e;
  background: #fffdf8;
}

.action-complete {
  opacity: 0.55;
  border-color: #bfcac4;
}

.action-complete h3 {
  text-decoration: line-through;
}

.action-check {
  width: 30px;
  height: 30px;
  border: 1px solid #b9c5bf;
  border-radius: 50%;
  background: var(--paper);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.action-check[aria-pressed="true"] {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

.action-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.action-parameter {
  margin: 0 0 3px;
  color: var(--teal-dark);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.action-heading h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.cost-chip {
  padding: 5px 8px;
  background: var(--gold-soft);
  color: #76500a;
}

.dose-row {
  margin-top: 13px;
  padding: 11px 12px;
  border-left: 3px solid var(--teal);
  background: var(--canvas);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.dose-row strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.dose-row span {
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.action-detail {
  margin: 12px 0 0;
  color: #4e5c55;
  font-size: 12px;
  line-height: 1.6;
}

.why-details {
  margin-top: 10px;
}

.why-details summary {
  width: fit-content;
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  list-style: none;
}

.why-details summary::-webkit-details-marker {
  display: none;
}

.why-details p {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-left: 2px solid var(--teal-soft);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.retest-row {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #edf0ee;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 10px;
  line-height: 1.45;
}

.retest-row svg {
  flex: 0 0 auto;
}

.guardrail-band {
  padding: 14px 15px;
  border-radius: 6px;
  background: #18231f;
  color: #edf4f0;
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.guardrail-band svg {
  flex: 0 0 auto;
  margin-top: 1px;
  color: #f0c667;
}

.guardrail-band strong {
  display: block;
  font-size: 11px;
}

.guardrail-band p {
  margin: 3px 0 0;
  color: #afbeb6;
  font-size: 10px;
  line-height: 1.55;
}

.test-panel form {
  margin-top: 20px;
}

.profile-fields {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 10px;
}

.target-group {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--canvas);
}

.target-group-heading {
  margin-bottom: 9px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.target-group-heading span {
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
}

.target-group-heading small {
  color: var(--muted);
  font-size: 8px;
  text-align: right;
}

.target-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.target-fields label > span {
  font-size: 9px;
}

.target-fields input {
  background: var(--paper);
}

label > span,
legend {
  display: block;
  margin-bottom: 6px;
  color: #506059;
  font-size: 10px;
  font-weight: 750;
}

input {
  width: 100%;
  height: 40px;
  border: 1px solid #cfd7d3;
  border-radius: 5px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 10px;
  font-size: 12px;
}

input:hover {
  border-color: #aebcb5;
}

fieldset {
  min-width: 0;
  margin: 17px 0 0;
  padding: 0;
  border: 0;
}

.segmented-control {
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--canvas);
  display: grid;
  gap: 3px;
}

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

.segmented-control label {
  min-width: 0;
}

.segmented-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.segmented-control label > span {
  min-height: 34px;
  margin: 0;
  border-radius: 4px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-size: 9px;
  text-align: center;
}

.segmented-control input:checked + span {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(34, 55, 47, 0.12);
}

.segmented-control input:focus-visible + span {
  outline: 3px solid rgba(14, 116, 128, 0.28);
}

.reading-grid {
  margin-top: 17px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 10px;
}

.reading-label {
  min-height: 28px;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.reading-label strong {
  color: var(--ink);
  font-size: 10px;
}

.reading-label span {
  color: var(--muted);
  font-size: 9px;
}

.unit-input,
.currency-input {
  position: relative;
}

.unit-input > span {
  position: absolute;
  right: 9px;
  top: 50%;
  color: #7b8781;
  transform: translateY(-50%);
  font-size: 9px;
  pointer-events: none;
}

.unit-input input {
  padding-right: 38px;
}

.reading-field small {
  display: block;
  min-height: 22px;
  margin-top: 4px;
  color: #89938e;
  font-size: 8px;
  line-height: 1.35;
}

.appearance-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #81b9c1;
}

.dot-cloudy {
  background: #9ea6a2;
}

.dot-green {
  background: #579366;
}

.form-error {
  margin-top: 14px;
  padding: 10px 11px;
  border-radius: 5px;
  background: var(--coral-soft);
  color: #7a2e22;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 10px;
  line-height: 1.45;
}

.form-error svg {
  flex: 0 0 auto;
}

.submit-button {
  width: 100%;
  margin-top: 17px;
}

.text-button {
  width: 100%;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}

.history-section {
  margin-top: 22px;
  padding: 22px;
}

.history-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid #e8ece9;
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.table-status {
  border-radius: 999px;
  padding: 4px 7px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
}

.table-status-warning {
  background: var(--coral-soft);
  color: #8b3728;
}

.cost-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
}

.cost-summary > div {
  min-height: 140px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cost-summary > div + div {
  border-left: 1px solid var(--line);
}

.cost-summary strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
}

.cost-summary span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.cost-layout {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 22px;
}

.content-panel {
  padding: 22px;
}

.price-list {
  margin-top: 18px;
  display: grid;
}

.price-list > label {
  min-height: 72px;
  padding: 12px 0;
  border-bottom: 1px solid #e8ece9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.price-list strong,
.price-list small {
  display: block;
}

.price-list strong {
  font-size: 12px;
}

.price-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.currency-input {
  width: 104px;
  flex: 0 0 auto;
}

.currency-input > span {
  position: absolute;
  left: 10px;
  top: 50%;
  color: var(--muted);
  transform: translateY(-50%);
  font-size: 11px;
}

.currency-input input {
  padding-left: 23px;
}

.buying-rules {
  margin-top: 20px;
}

.buying-rule {
  min-height: 82px;
  padding: 15px 0;
  border-top: 1px solid #e8ece9;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
}

.buying-rule > span {
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.buying-rule strong {
  font-size: 12px;
}

.buying-rule p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.learn-intro {
  min-height: 230px;
  margin-bottom: 14px;
  padding: 34px;
  border-radius: 7px;
  background: #19352d;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.learn-intro > div:first-child {
  max-width: 610px;
}

.learn-intro .eyebrow {
  color: #82cbd1;
}

.learn-intro h2 {
  font-size: 30px;
}

.learn-intro p:last-child {
  margin: 12px 0 0;
  color: #bdd0c7;
  font-size: 13px;
  line-height: 1.65;
}

.learning-loop {
  min-width: 310px;
  display: grid;
  grid-template-columns: 34px auto 24px 34px auto 24px 34px auto;
  align-items: center;
  gap: 7px;
}

.learning-loop span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f0c667;
  color: #183129;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 850;
}

.learning-loop strong {
  font-size: 10px;
}

.learning-loop i {
  height: 1px;
  background: rgba(255, 255, 255, 0.24);
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.lesson-card {
  min-height: 235px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
}

.lesson-short {
  width: 44px;
  height: 31px;
  border-radius: 5px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 850;
}

.lesson-card h3 {
  margin: 16px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.lesson-card > p {
  min-height: 66px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.lesson-card > div {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid #e8ece9;
  color: #3c6655;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 10px;
  line-height: 1.5;
}

.lesson-card > div svg {
  flex: 0 0 auto;
}

.escalation-band {
  margin-top: 16px;
  padding: 20px 22px;
  border: 1px solid #e8c699;
  border-radius: 7px;
  background: #fffaf2;
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.escalation-band svg {
  flex: 0 0 auto;
  color: var(--gold);
}

.escalation-band h3 {
  margin: 0;
  font-size: 13px;
}

.escalation-band p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 1120px) {
  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .status-panel {
    grid-column: 1 / -1;
  }

  .work-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .lesson-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learn-intro {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 860px) {
  .sidebar {
    width: 260px;
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  .sidebar-open {
    transform: translateX(0);
  }

  .sidebar-close {
    position: absolute;
    top: 19px;
    right: 12px;
    color: #ffffff;
    display: flex;
  }

  .sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 25;
    border: 0;
    background: rgba(13, 24, 19, 0.45);
    display: block;
  }

  .main-shell {
    margin-left: 0;
    padding-bottom: 70px;
  }

  .menu-button {
    display: flex;
  }

  .mobile-nav {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 20;
    height: 66px;
    padding: 6px max(12px, env(safe-area-inset-right))
      max(6px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .mobile-nav .nav-button {
    min-height: 52px;
    padding: 4px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    color: var(--muted);
    font-size: 9px;
  }

  .mobile-nav .nav-button-active {
    background: transparent;
    color: var(--teal-dark);
  }

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

  .test-panel {
    position: static;
    grid-row: 1;
  }

  .plan-section {
    min-height: 0;
  }

  .empty-plan {
    min-height: 330px;
  }
}

@media (max-width: 620px) {
  .topbar {
    min-height: 78px;
    padding: 15px 16px;
  }

  .topbar h1 {
    font-size: 22px;
  }

  .date-label {
    font-size: 9px;
  }

  .topbar-action {
    width: 40px;
    padding: 0;
  }

  .topbar-action span {
    display: none;
  }

  .content-stack {
    width: calc(100% - 24px);
    padding-top: 14px;
  }

  .summary-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .status-panel {
    min-height: 112px;
    padding: 16px;
    gap: 12px;
  }

  .status-icon {
    width: 40px;
    height: 40px;
  }

  .status-panel h2,
  .section-heading h2 {
    font-size: 19px;
  }

  .status-panel p:last-child {
    font-size: 11px;
  }

  .metric-panel {
    min-height: 100px;
    padding: 13px;
    align-items: flex-start;
  }

  .metric-icon {
    width: 30px;
    height: 30px;
  }

  .metric-panel strong {
    font-size: 20px;
  }

  .metric-panel small {
    line-height: 1.35;
  }

  .work-grid {
    margin-top: 12px;
    gap: 12px;
  }

  .test-panel,
  .plan-section,
  .history-section,
  .content-panel {
    padding: 16px;
  }

  .profile-fields {
    grid-template-columns: 1fr;
  }

  .reading-grid {
    gap: 11px 8px;
  }

  .reading-label {
    min-height: 31px;
    flex-direction: column;
    gap: 1px;
  }

  .action-item {
    padding: 14px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
  }

  .action-check {
    width: 28px;
    height: 28px;
  }

  .dose-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .dose-row span {
    text-align: left;
  }

  .cost-summary {
    grid-template-columns: 1fr;
  }

  .cost-summary > div {
    min-height: 108px;
    padding: 18px;
  }

  .cost-summary > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .cost-layout {
    margin-top: 12px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .learn-intro {
    min-height: 0;
    padding: 25px 20px;
    gap: 26px;
  }

  .learn-intro h2 {
    font-size: 25px;
  }

  .learning-loop {
    width: 100%;
    min-width: 0;
    grid-template-columns: 30px auto 12px 30px auto 12px 30px auto;
    gap: 4px;
  }

  .learning-loop span {
    width: 30px;
    height: 30px;
  }

  .lesson-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .lesson-card {
    min-height: 0;
    padding: 18px;
  }

  .lesson-card > p {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
