:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #edf4f1;
  color-scheme: light;
}
* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #e9f3ef 0%, #f7f8f5 46%, #eef2f5 100%);
}
main {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(99, 118, 138, .22);
}
h1, h2, h3, p { margin: 0; }
h1 {
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0;
}
h2 {
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: 0;
}
h3 {
  font-size: 14px;
  line-height: 1.2;
  color: #445266;
  letter-spacing: 0;
  margin: 18px 0 8px;
}
.status {
  min-width: 220px;
  border: 1px solid rgba(99, 118, 138, .22);
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
  color: #445266;
  font-size: 14px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 18px;
  align-items: start;
  margin-top: 20px;
}
.input-panel {
  order: 2;
}
.panel.stack {
  order: 1;
}
body.first-run-mode .layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
}
body.first-run-mode .session-log-fields,
body.first-run-mode #save-profile-button,
body.first-run-mode #regenerate-history-button,
body.first-run-mode #load-progression-button,
body.first-run-mode #load-recent-session-button,
body.first-run-mode #load-history-button,
body.first-run-mode #log-button {
  display: none;
}
body.first-run-mode #coach-form {
  gap: 16px;
}
.panel {
  border: 1px solid rgba(99, 118, 138, .22);
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 18px 42px rgba(23, 32, 51, .07);
}
form {
  display: grid;
  gap: 14px;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
label {
  display: grid;
  gap: 6px;
  color: #445266;
  font-size: 13px;
  font-weight: 700;
}
input, select, textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #c8d1dc;
  border-radius: 8px;
  padding: 8px 10px;
  background: #ffffff;
  color: #172033;
  font: inherit;
}
textarea {
  min-height: 72px;
  resize: vertical;
}
button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: #176b4d;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}
button.secondary {
  background: #24364f;
}
button.ghost-button {
  border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .16);
  color: #ffffff;
}
summary {
  cursor: pointer;
  color: #27364d;
  font-weight: 800;
}
details > summary {
  list-style-position: inside;
}
details[open] > summary {
  margin-bottom: 10px;
}
.advanced-controls {
  border: 1px solid rgba(99, 118, 138, .22);
  border-radius: 8px;
  padding: 10px;
  background: #f7f9fa;
}
.profile-controls {
  background: #f4f7f7;
}
.profile-controls > label {
  margin-top: 10px;
}
.signal-fields {
  display: grid;
  gap: 10px;
}
.signal-fields h3 {
  margin-top: 0;
  color: #172033;
}
.coach-style-controls {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  border: 1px solid #dce8e1;
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(135deg, #f8fcf9, #eef7f3);
}
.coach-style-heading {
  display: grid;
  gap: 3px;
}
.coach-style-heading h3 {
  margin: 0;
  color: #172033;
}
.coach-style-heading p {
  margin: 0;
  color: #5f6f7c;
  font-size: 13px;
}
.coach-style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.coach-style-grid label {
  color: #314056;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.coach-style-grid select {
  margin-top: 6px;
  background: #ffffff;
  font-weight: 800;
}
.coach-style-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.coach-style-actions p {
  flex: 1 1 220px;
  margin: 0;
}
.coach-hero {
  display: grid;
  gap: 18px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(12, 61, 48, .96), rgba(21, 85, 71, .94) 48%, rgba(30, 74, 107, .92));
  color: #ffffff;
  box-shadow: 0 22px 54px rgba(15, 50, 65, .22);
}
#daily-coach-hero {
  margin-top: 20px;
}
.coach-hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  pointer-events: none;
}
.hero-kicker-row,
.hero-cta-row,
.signal-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.hero-kicker-row {
  justify-content: space-between;
}
.coach-badge,
.signal-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, .16);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}
.coach-badge-soft {
  background: rgba(207, 236, 222, .18);
  color: #e8fff3;
}
.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(104px, 132px);
  gap: 18px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  color: #bfe9d3;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}
.coach-hero h2 {
  margin: 4px 0 8px;
  color: #ffffff;
  font-size: 42px;
  line-height: 1.02;
}
.hero-recommendation,
.hero-why {
  color: #eefaf4;
  line-height: 1.45;
}
.coach-handoff-card {
  display: grid;
  gap: 6px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(207, 236, 222, .32);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .13);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}
.coach-handoff-card span {
  color: #bfe9d3;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.coach-handoff-card strong {
  min-width: 0;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.3;
}
.coach-handoff-card p {
  min-width: 0;
  margin: 0;
  color: #eefaf4;
  line-height: 1.45;
}
.hero-score-card {
  display: grid;
  gap: 2px;
  justify-items: center;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  padding: 14px 12px;
  background: rgba(255, 255, 255, .14);
}
.hero-score-card span,
.hero-score-card em {
  color: #d9f5e7;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}
.hero-score-card strong {
  color: #ffffff;
  font-size: 42px;
  line-height: 1;
}
.hero-cta-row {
  position: relative;
  z-index: 1;
}
.hero-secondary-actions {
  position: relative;
}
.hero-secondary-actions summary {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .14);
  color: #ffffff;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}
.hero-secondary-actions summary::-webkit-details-marker {
  display: none;
}
.hero-secondary-actions summary::after {
  content: " +";
}
.hero-secondary-actions[open] summary::after {
  content: " -";
}
.hero-secondary-action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.mobile-rhythm-strip {
  display: none;
}
.mobile-rhythm-strip button {
  min-width: 0;
  appearance: none;
  cursor: pointer;
}
.next-action-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  border: 1px solid #cfe3d8;
  border-radius: 8px;
  padding: 12px 14px;
  background: #f3fbf7;
  box-shadow: 0 10px 24px rgba(23, 32, 51, .05);
}
.next-action-strip span {
  border-radius: 999px;
  padding: 4px 8px;
  background: #176b4d;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.next-action-strip strong {
  min-width: 0;
  color: #172033;
  font-size: 15px;
  line-height: 1.35;
}
.hero-onboarding {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  position: relative;
  z-index: 1;
}
.onboarding-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 8px;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, .12);
}
.onboarding-step span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #f4d58d;
  color: #172033;
  font-size: 12px;
  font-weight: 900;
}
.onboarding-step strong {
  min-width: 0;
  color: #ffffff;
  font-size: 13px;
}
.onboarding-step em {
  grid-column: 1 / -1;
  color: #e4f5ed;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}
.hero-coach-interview {
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  padding: 12px;
  background: rgba(8, 35, 28, .28);
}
.interview-intro {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.interview-intro span {
  color: #f4d58d;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.interview-intro strong {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.25;
}
.interview-intro em {
  color: #d9f5e7;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}
.hero-personalization {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  position: relative;
  z-index: 1;
}
.hero-interview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.hero-personalization label {
  color: #d9f5e7;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.hero-personalization input,
.hero-personalization select {
  margin-top: 6px;
  border-color: rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .92);
  color: #172033;
  font-weight: 800;
}
.hero-cta-row button {
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}
.coach-hero-yellow {
  background: linear-gradient(135deg, rgba(91, 69, 19, .96), rgba(95, 86, 30, .94) 48%, rgba(24, 83, 87, .92));
}
.coach-hero-orange,
.coach-hero-red {
  background: linear-gradient(135deg, rgba(91, 42, 34, .96), rgba(98, 63, 34, .94) 48%, rgba(46, 67, 94, .92));
}
.coach-hero-green {
  background: linear-gradient(135deg, rgba(13, 75, 52, .96), rgba(25, 98, 74, .94) 48%, rgba(30, 82, 109, .92));
}
.coach-details {
  margin-top: 14px;
}
.advanced-controls .actions {
  margin-top: 10px;
}
button:disabled {
  cursor: not-allowed;
  opacity: .55;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.history-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.progress-story {
  display: grid;
  gap: 12px;
}
.progress-story-lede {
  margin: 0;
  color: #1f352d;
  font-weight: 700;
}
.progress-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.progress-story-card {
  border: 1px solid #dce8e1;
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, #fbfefa, #f5fbf7);
}
.progress-story-memory-card {
  grid-column: 1 / -1;
  border-color: #c8ded4;
  background: #f2fbf6;
}
.progress-story-momentum-card {
  grid-column: 1 / -1;
  border-color: #cbded5;
  background: #ffffff;
  border-left: 4px solid #176b4d;
}
.progress-story-seven-day-promise-card {
  grid-column: 1 / -1;
  border-color: #bcd8cc;
  background: #f7fcf9;
  border-left: 4px solid #176b4d;
}
.progress-story-return-card {
  grid-column: 1 / -1;
  border-color: #c8ded4;
  background: #ffffff;
  border-left: 4px solid #176b4d;
}
.progress-story-memory-card p {
  font-size: 14px;
  line-height: 1.45;
}
.progress-story-momentum-card p,
.progress-story-seven-day-promise-card p,
.progress-story-return-card p {
  font-size: 14px;
  line-height: 1.45;
}
.progress-story-card span {
  display: block;
  margin-bottom: 6px;
  color: #0e6a49;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.progress-story-card p {
  margin: 0;
  color: #24352e;
}
.history-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #e7ebf0;
  padding: 10px 0;
}
.history-row:first-child {
  border-top: 0;
}
.history-row button {
  min-height: 34px;
  padding: 6px 10px;
}
.history-insight-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.history-quality-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.history-insight-filter-button,
.history-quality-action-button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}
.check-in-preset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.check-in-preset-button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}
.profile-diff-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.profile-reset-button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}
.continuity-grid {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.continuity-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-top: 1px solid #e7ebf0;
  padding: 8px 0;
}
.continuity-row:first-child {
  border-top: 0;
}
.program-preview-grid {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.program-preview-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-top: 1px solid #e7ebf0;
  padding: 8px 0;
}
.program-preview-row:first-child {
  border-top: 0;
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.metric {
  border-left: 4px solid #176b4d;
  padding: 8px 10px;
  background: #f5f7f8;
  min-height: 58px;
}
.metric span {
  display: block;
  color: #637083;
  font-size: 12px;
  font-weight: 700;
}
.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}
.daily-flow-compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
}
.daily-flow-compact-item {
  border-left: 3px solid #176b4d;
  background: #f7f9fa;
  padding: 8px 10px;
  min-height: 54px;
}
.daily-flow-compact-item span {
  display: block;
  color: #637083;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.daily-flow-compact-item strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
}
.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.section-eyebrow {
  color: #176b4d;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.path-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 9px;
  background: #edf6f1;
  color: #176b4d;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.guided-path-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.guided-path-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid #d8dee5;
  border-radius: 8px;
  padding: 11px;
  background: #ffffff;
  appearance: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.guided-path-card:focus-visible {
  outline: 3px solid rgba(28, 95, 78, .24);
  outline-offset: 2px;
}
.guided-path-card span {
  color: #637083;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.guided-path-card strong {
  color: #172033;
  font-size: 14px;
  line-height: 1.25;
}
.guided-path-card p {
  color: #445266;
  font-size: 12px;
  line-height: 1.35;
}
.guided-path-current {
  border-color: #176b4d;
  background: #eef8f3;
  box-shadow: inset 0 3px 0 #176b4d;
}
.guided-path-completed {
  background: #f7faf8;
}
.guided-path-next {
  background: #f8f9fb;
}
.tomorrow-change-card {
  display: grid;
  gap: 7px;
  border: 1px solid #c8ded4;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  background: #f2fbf6;
}
.post-log-coach-response {
  display: grid;
  gap: 7px;
  border: 1px solid #c8ded4;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  background: #ffffff;
  border-left: 4px solid #176b4d;
}
.quick-log-card,
.post-log-coach-response,
.tomorrow-change-card,
.progress-story-memory-card,
.progress-story-seven-day-promise-card,
.progress-story-return-card {
  box-shadow: 0 10px 24px rgba(23, 32, 51, .05);
}
.log-section .empty,
.plan-section .empty,
.progress-story-section .empty {
  border: 1px dashed #c8ded4;
  border-radius: 8px;
  padding: 12px;
  background: #f8fbf9;
  color: #445266;
  line-height: 1.45;
}
.tomorrow-change-card span {
  color: #176b4d;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.post-log-coach-response span {
  color: #176b4d;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.tomorrow-change-card strong {
  color: #172033;
  font-size: 15px;
  line-height: 1.3;
}
.post-log-coach-response strong {
  color: #172033;
  font-size: 15px;
  line-height: 1.3;
}
.tomorrow-change-card p {
  margin: 0;
  color: #314056;
  font-size: 13px;
  line-height: 1.45;
}
.post-log-coach-response p {
  margin: 0;
  color: #314056;
  font-size: 13px;
  line-height: 1.45;
}
.coach-supporting-details {
  margin-top: 12px;
}
.section.coach-supporting-details > summary {
  color: #172033;
  font-weight: 900;
  cursor: pointer;
}
.section.coach-supporting-details > summary::marker {
  color: #176b4d;
}
.today-signal-read {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid #d7e1ea;
  border-radius: 8px;
  padding: 12px;
  background: #f8fbf9;
}
.today-signal-read h3 {
  margin: 0;
  color: #172033;
  font-size: 15px;
}
.today-signal-read p {
  margin: 0;
  color: #314056;
  line-height: 1.45;
}
.signal-read-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.signal-read-grid > div {
  min-width: 0;
  border: 1px solid #e1e7ee;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}
.signal-read-grid strong {
  display: block;
  color: #176b4d;
  font-size: 12px;
  text-transform: uppercase;
}
.signal-read-grid ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 18px;
  color: #314056;
  font-size: 13px;
  line-height: 1.35;
}
.stack {
  display: grid;
  gap: 16px;
}
.section {
  border-top: 1px solid #d8dee5;
  padding-top: 14px;
}
.advanced-section {
  background: #f7f9fa;
  border: 1px solid #d8dee5;
  border-radius: 8px;
  padding: 12px;
}
.advanced-section.section {
  border-top: 1px solid #d8dee5;
}
.raw-section pre {
  max-height: 180px;
}
.section:first-child {
  border-top: 0;
  padding-top: 0;
}
.workout-plan-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid #cbded5;
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #f8fbf9, #eef7f3);
}
.workout-plan-card h3 {
  margin: 3px 0 5px;
  color: #172033;
  font-size: 20px;
}
.workout-plan-card p {
  color: #445266;
  line-height: 1.4;
}
.plan-read-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.plan-read-summary span {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid #d8e6df;
  border-radius: 8px;
  padding: 9px;
  background: #ffffff;
}
.plan-read-summary em {
  color: #176b4d;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}
.plan-read-summary strong {
  color: #172033;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.goal-progression-cue,
.constraint-guardrail-cue {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  border: 1px solid #d8e6df;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}
.constraint-guardrail-cue {
  border-color: #cbded5;
  background: #f8fbf9;
}
.goal-progression-cue span,
.constraint-guardrail-cue span {
  color: #176b4d;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.goal-progression-cue strong,
.constraint-guardrail-cue strong {
  color: #172033;
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.goal-progression-cue p,
.constraint-guardrail-cue p {
  margin: 0;
  color: #445266;
  font-size: 13px;
  line-height: 1.4;
}
.workout-start-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr);
  gap: 12px;
  align-items: start;
  margin-top: 12px;
  border: 1px solid #cfe3d8;
  border-radius: 8px;
  padding: 14px;
  background: #f3fbf7;
}
.workout-start-card > div:first-child {
  display: grid;
  gap: 5px;
}
.workout-start-card > div:first-child > span {
  color: #176b4d;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.workout-start-card strong {
  color: #172033;
  line-height: 1.3;
}
.workout-start-card p {
  color: #445266;
  line-height: 1.4;
}
.workout-start-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.workout-start-grid span {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid #d8e6df;
  border-radius: 8px;
  padding: 9px;
  background: #ffffff;
}
.workout-start-grid em {
  color: #176b4d;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}
.workout-start-grid strong {
  color: #172033;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.coach-question-card,
.session-adjust-card {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid #d8dee5;
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfd;
}
.coach-question-card {
  border-color: #cbded5;
  background: #ffffff;
  border-left: 4px solid #176b4d;
}
.coach-question-card > div:first-child,
.session-adjust-card > div:first-child {
  display: grid;
  gap: 5px;
}
.coach-question-card > div:first-child > span,
.session-adjust-card > div:first-child > span {
  color: #637083;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.coach-question-card strong,
.session-adjust-card strong {
  color: #172033;
  line-height: 1.3;
}
.coach-question-card p,
.session-adjust-card p {
  color: #445266;
  line-height: 1.4;
}
.coach-question-actions,
.session-adjust-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.coach-question-button,
.session-adjust-button {
  min-height: 44px;
  border: 1px solid #cbded5;
  background: #ffffff;
  color: #176b4d;
}
.coach-question-button-active,
.session-adjust-button-active {
  background: #176b4d;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(23, 107, 77, .18);
}
.coach-question-response,
.session-adjust-response {
  border-left: 3px solid #176b4d;
  padding-left: 10px;
  color: #445266;
}
.coach-question-response strong,
.session-adjust-response strong {
  display: block;
  margin-bottom: 4px;
}
.workout-plan-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.workout-plan-stats span {
  display: grid;
  gap: 2px;
  min-width: 72px;
  border: 1px solid #d8e6df;
  border-radius: 8px;
  padding: 8px;
  background: #ffffff;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
}
.workout-plan-stats strong {
  color: #637083;
  font-size: 10px;
  text-transform: uppercase;
}
.workout-rationale-details {
  margin-top: 10px;
}
.workout-block-card {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  border: 1px solid #d8dee5;
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfd;
}
.workout-block-heading {
  display: grid;
  gap: 4px;
}
.workout-block-heading h3 {
  margin: 0;
  color: #172033;
  font-size: 16px;
}
.workout-block-heading p {
  color: #445266;
  font-size: 13px;
  line-height: 1.4;
}
.workout-exercise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.exercise-log-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 0;
  border-top: 0;
}
.exercise-log-row:first-of-type {
  border-top: 0;
}
.premium-exercise-card {
  min-width: 0;
  border: 1px solid #d7e1ea;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(23, 32, 51, .06);
}
.exercise-card-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}
.exercise-log-name {
  color: #172033;
  font-weight: 800;
  line-height: 1.25;
}
.exercise-log-summary {
  min-width: 0;
}
.exercise-log-meta {
  color: #637083;
  font-size: 12px;
  margin-top: 4px;
}
.exercise-intent-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 7px;
  background: #edf6f1;
  color: #176b4d;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.workout-card-purpose,
.exercise-substitution-note {
  margin-top: 8px;
  color: #27364d;
  font-size: 13px;
  line-height: 1.4;
}
.exercise-substitution-note {
  border-left: 3px solid #9b5b00;
  padding-left: 8px;
  color: #5a3a08;
}
.exercise-prescription-grid,
.exercise-log-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.exercise-prescription-grid span {
  display: grid;
  gap: 2px;
  border: 1px solid #e1e7ee;
  border-radius: 8px;
  padding: 8px;
  background: #f8fafb;
  min-width: 0;
}
.exercise-prescription-grid em {
  color: #637083;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}
.exercise-prescription-grid strong {
  color: #172033;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.exercise-log-controls {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.exercise-swap-controls {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.exercise-swap-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: end;
}
.exercise-alternative-filter {
  min-width: 132px;
}
.exercise-alternative-filter select {
  width: 100%;
}
.exercise-alternatives-button,
.exercise-alternative-apply {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}
.exercise-alternatives-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid #d8dee5;
  border-radius: 8px;
  background: #f5f7f8;
}
.exercise-alternative-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 10px;
  border: 1px solid #d8dee5;
  border-radius: 8px;
  background: #fff;
}
.preferred-swap-quick-apply {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #7aa36f;
  border-radius: 8px;
  background: #eef7ed;
}
.preferred-swap-row {
  border-color: #7aa36f;
  background: #fbfef9;
}
.not-preferred-swap-row {
  border-style: dashed;
}
.exercise-alternative-row > div {
  min-width: 0;
}
.exercise-alternative-preference-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e8eef6;
  color: #27364d;
  font-size: 11px;
  font-weight: 700;
}
.exercise-alternative-reason {
  margin-top: 4px;
  color: #445266;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.exercise-alternative-preference-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
}
.exercise-alternative-evidence-button {
  padding: 4px 7px;
  font-size: 11px;
}
.exercise-alternative-apply {
  white-space: nowrap;
}
.preferred-swap-apply {
  font-weight: 700;
}
.compact-label {
  gap: 4px;
  font-size: 12px;
}
.compact-label input,
.compact-label select {
  min-height: 34px;
  padding: 6px 8px;
}
.session-log-fields {
  margin-top: 16px;
}
.session-log-fields h3 {
  margin-top: 0;
}
.quick-log-card {
  border: 1px solid #d7e1ea;
  border-radius: 8px;
  padding: 12px;
  background: #f8fbf9;
}
.quick-log-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}
.quick-log-heading span {
  color: #172033;
  font-size: 13px;
  font-weight: 900;
}
.quick-log-heading p {
  margin: 0;
  color: #526274;
  font-size: 12px;
  line-height: 1.45;
}
.quick-log-fields {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.quick-log-note {
  grid-column: 1 / -1;
}
.quick-log-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
.quick-log-actions span {
  color: #526274;
  font-size: 12px;
  line-height: 1.4;
}
.session-note-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.session-note-prompt-button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}
ul {
  margin: 8px 0 0;
  padding-left: 18px;
}
li {
  margin: 4px 0;
}
.coach-action-checklist {
  display: grid;
  gap: 6px;
  padding-left: 0;
  list-style: none;
}
.coach-action-checklist li {
  border-left: 4px solid #176b4d;
  padding: 8px 10px;
  background: #f5f7f8;
  color: #172033;
}
.coach-action-checklist .coach-action-state-completed {
  border-left-color: #176b4d;
}
.coach-action-checklist .coach-action-state-current {
  border-left-color: #9b5b00;
  background: #fff7ea;
}
.coach-action-checklist .coach-action-state-next {
  border-left-color: #637083;
}
.muted {
  color: #637083;
}
.empty {
  color: #637083;
  font-size: 14px;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 8px 0 0;
  padding: 12px;
  border-radius: 8px;
  background: #172033;
  color: #e7edf4;
  font-size: 12px;
  line-height: 1.45;
  max-height: 260px;
  overflow: auto;
}
@media (max-width: 840px) {
  main { width: min(100vw - 20px, 680px); padding-top: 12px; }
  header { align-items: flex-start; flex-direction: column; }
  h1 { font-size: 24px; }
  .panel { padding: 14px; }
  .layout, body.first-run-mode .layout { grid-template-columns: 1fr; }
  .input-panel { order: 2; }
  .panel.stack { order: 1; }
  .coach-hero { padding: 18px; }
  .hero-main { grid-template-columns: 1fr; }
  .coach-hero h2 { font-size: 34px; }
  .hero-score-card { justify-items: start; }
  .hero-cta-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .hero-cta-row button,
  .hero-secondary-actions summary {
    width: 100%;
  }
  .hero-secondary-action-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
  .mobile-rhythm-strip {
    position: sticky;
    top: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
    padding: 6px;
    border: 1px solid rgba(200, 222, 212, .82);
    border-radius: 8px;
    background: rgba(247, 250, 248, .94);
    backdrop-filter: blur(10px);
  }
  .mobile-rhythm-strip button {
    min-width: 0;
    border: 1px solid #d7e1ea;
    border-radius: 8px;
    padding: 7px 5px;
    background: #ffffff;
    color: #314056;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
    overflow-wrap: anywhere;
    scroll-snap-align: start;
  }
  .mobile-rhythm-strip button:focus-visible {
    outline: 3px solid rgba(28, 95, 78, .24);
    outline-offset: 2px;
  }
  #daily-coach-path { order: 1; }
  .readiness-section { order: 2; }
  .coach-call-section { order: 3; }
  .plan-section { order: 4; }
  .log-section { order: 5; }
  .progress-story-section { order: 6; }
  .owner-control-section { order: 7; }
  .continuity-section { order: 8; }
  .last-session-section { order: 9; }
  .section[data-mobile-step]::before,
  #daily-coach-hero[data-mobile-step]::before {
    content: attr(data-mobile-step);
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 4px 8px;
    margin-bottom: 8px;
    background: #e7f4ee;
    color: #176b4d;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }
  #daily-coach-hero[data-mobile-step]::before {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, .18);
    color: #e8fff3;
  }
  .guided-path-card,
  .tomorrow-change-card,
  .progress-story-card,
  .today-signal-read,
  .coach-style-controls {
    padding: 10px;
  }
  .quick-log-card,
  .tomorrow-change-card,
  .progress-story-memory-card,
  .progress-story-momentum-card,
  .progress-story-seven-day-promise-card,
  .progress-story-return-card {
    border-left: 4px solid #176b4d;
  }
  .guided-path-card strong {
    font-size: 13px;
  }
  .guided-path-card p,
  .tomorrow-change-card p,
  .progress-story-card p,
  .today-signal-read p,
  .coach-style-heading p,
  .coach-style-actions p {
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  .progress-story-card p {
    border-radius: 8px;
    white-space: normal;
  }
  .coach-style-controls {
    gap: 10px;
    margin-top: 12px;
  }
  .coach-style-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  #post-log-adaptation-output {
    overflow-wrap: anywhere;
  }
  #post-log-adaptation-output ul {
    padding-left: 18px;
  }
  .fields, .metric-row, .daily-flow-compact, .history-filters, .hero-onboarding, .hero-personalization, .hero-interview-grid, .coach-style-grid, .guided-path-grid, .progress-story-grid, .signal-read-grid, .quick-log-fields { grid-template-columns: 1fr; }
  .quick-log-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .section-heading-row { display: grid; }
  .actions,
  .history-insight-actions,
  .history-quality-actions,
  .check-in-preset-actions,
  .profile-diff-actions,
  .exercise-swap-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .actions button,
  .quick-log-actions button,
  .history-insight-filter-button,
  .history-quality-action-button,
  .check-in-preset-button,
  .profile-reset-button,
  .session-note-prompt-button,
  .exercise-alternatives-button,
  .history-row button {
    width: 100%;
  }
  .history-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .workout-plan-card { grid-template-columns: 1fr; }
  .plan-read-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workout-start-card,
  .workout-start-grid { grid-template-columns: 1fr; }
  .coach-question-actions,
  .session-adjust-actions { grid-template-columns: 1fr; }
  .workout-plan-stats { justify-content: stretch; }
  .workout-plan-stats span { min-width: 0; }
  .workout-exercise-grid,
  .exercise-log-row,
  .exercise-prescription-grid,
  .exercise-log-controls { grid-template-columns: 1fr; }
  .exercise-alternatives-panel { grid-template-columns: 1fr; }
  .exercise-alternative-row { grid-template-columns: 1fr; }
  .preferred-swap-quick-apply { grid-template-columns: 1fr; }
  .exercise-alternative-filter { min-width: 0; }
  .exercise-alternative-apply { width: 100%; }
  .continuity-row, .program-preview-row { grid-template-columns: 1fr; }
  .status { width: 100%; }
  input, select, textarea, button { font-size: 16px; }
  pre { max-height: 180px; }
}
@media (max-width: 520px) {
  main {
    width: calc(100vw - 12px);
    padding-bottom: 24px;
  }
  header {
    gap: 10px;
    padding: 14px 0;
  }
  h1 { font-size: 22px; }
  h2 { font-size: 17px; }
  .coach-hero h2 { font-size: 30px; }
  .panel { padding: 12px; }
  .layout { gap: 12px; }
  .coach-hero {
    padding: 16px;
    gap: 14px;
  }
  .guided-path-grid,
  .progress-story,
  .progress-story-grid,
  .signal-read-grid {
    gap: 8px;
  }
  .mobile-rhythm-strip {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(98px, 1fr);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
  }
  .mobile-rhythm-strip button {
    padding: 8px;
    white-space: nowrap;
  }
  .next-action-strip {
    grid-template-columns: 1fr;
    padding: 10px;
  }
  .status { min-width: 0; }
  .exercise-alternatives-panel { padding: 8px; }
}
