:root {
  --bg: #f4f5f2;
  --surface: #ffffff;
  --surface-alt: #f7f8f5;
  --surface-strong: #1f2a24;
  --text: #1f2a24;
  --muted: #66746c;
  --line: #d8dfd8;
  --green: #2f7a59;
  --green-soft: #e6f1eb;
  --coral: #e06a4a;
  --coral-soft: #fce9e3;
  --mint: #abdcc6;
  --yellow: #d1c39a;
  --blue: #356fd6;
  --shadow: 0 14px 30px rgba(31, 40, 28, 0.07);
  --html-bg: #ecefea;
  --chrome-bg: rgba(246, 247, 244, 0.95);
  --chrome-line: rgba(216, 223, 215, 0.95);
  color-scheme: light;
  font-family:
    "Pretendard Variable",
    Pretendard,
    SUIT,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

[data-theme="dark"] {
  --bg: #111813;
  --surface: #18221c;
  --surface-alt: #202b24;
  --surface-strong: #ecf3ed;
  --text: #ecf3ed;
  --muted: #a8b6ad;
  --line: #354238;
  --green: #79c99d;
  --green-soft: #1f3b2d;
  --coral: #ff9d86;
  --coral-soft: #3f2621;
  --mint: #88d3b0;
  --yellow: #b5a97d;
  --blue: #7da6ff;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  --html-bg: #0d120e;
  --chrome-bg: rgba(17, 24, 19, 0.95);
  --chrome-line: rgba(52, 66, 56, 0.95);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.is-hidden {
  display: none !important;
}

html {
  background: var(--html-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(47, 122, 89, 0.08), rgba(224, 106, 74, 0.03) 220px, transparent 320px),
    var(--bg);
  color: var(--text);
  line-height: 1.48;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
}

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

h1,
h2,
h3,
p,
small,
strong,
span,
label,
button {
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

#app {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
}

.setup-shell {
  min-height: 100vh;
  padding: 20px 16px 30px;
}

.brand-row,
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--surface-strong);
  border-radius: 8px;
  background: var(--mint);
  box-shadow: 4px 4px 0 var(--surface-strong);
  color: var(--surface-strong);
  font-weight: 900;
}

.brand-copy {
  margin-right: auto;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-name {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
}

.setup-card {
  margin-top: 26px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.setup-import-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.setup-import-panel strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.35;
}

.setup-import-panel .secondary-btn {
  width: 100%;
}

.step-meter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-bottom: 20px;
}

.step-dot {
  height: 6px;
  border-radius: 999px;
  background: #dce2d5;
}

.step-dot.is-active {
  background: var(--green);
}

.screen-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
}

.screen-copy {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.field-stack {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.divider-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.divider-label::before,
.divider-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.field-label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}

.field-label-help-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.field-help-toggle {
  position: relative;
  flex: 0 0 auto;
}

.field-help-toggle summary {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--green);
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  list-style: none;
}

.field-help-toggle summary::-webkit-details-marker {
  display: none;
}

.field-help-toggle[open] summary {
  border-color: color-mix(in srgb, var(--green) 42%, var(--line));
  background: color-mix(in srgb, var(--green-soft) 42%, var(--surface));
}

.field-help-toggle p {
  position: absolute;
  z-index: 20;
  top: 28px;
  right: 0;
  width: min(236px, calc(100vw - 56px));
  margin: 0;
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--green) 22%, var(--line));
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 22px rgb(26 31 27 / 14%);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 820;
  line-height: 1.45;
}

.field-help-card {
  position: absolute;
  z-index: 20;
  top: 28px;
  right: 0;
  width: min(300px, calc(100vw - 48px));
  margin: 0;
  padding: 10px 11px;
  border: 1px solid color-mix(in srgb, var(--green) 22%, var(--line));
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 22px rgb(26 31 27 / 14%);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 780;
  line-height: 1.45;
}

.field-help-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
}

.field-help-card dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.field-help-card dl div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
}

.field-help-card dt,
.field-help-card dd {
  margin: 0;
}

.field-help-card dt {
  color: var(--text);
  font-weight: 950;
}

.field-help-card p {
  position: static;
  width: auto;
  margin: 8px 0 0;
  padding: 8px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 11.5px;
  font-weight: 820;
}

.workout-guide-summary {
  color: color-mix(in srgb, var(--green) 58%, var(--muted));
}

.field-error {
  color: #b5362b;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.field-label.is-invalid .text-field,
.field-label.is-invalid .select-field,
.field-label.is-invalid .note-field,
.field-label.is-invalid .segmented-field {
  border-color: #b5362b;
  background: color-mix(in srgb, #ffe6df 54%, var(--surface-alt));
}

.status-row {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.compact-status-row .status-btn {
  min-height: 46px;
  gap: 0;
  padding: 8px 11px;
}

.compact-status-row .status-btn small {
  display: none;
}

.status-btn {
  display: grid;
  gap: 3px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
  padding: 10px 12px;
  color: var(--text);
  text-align: left;
}

.status-btn span {
  font-weight: 950;
  line-height: 1.25;
}

.status-btn small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.42;
}

.status-btn.is-selected {
  border-color: var(--surface-strong);
  background: var(--green-soft);
  box-shadow: 2px 2px 0 var(--surface-strong);
}

.status-btn.is-locked {
  cursor: default;
}

.status-btn.is-locked:not(.is-selected) {
  opacity: 0.48;
}

.segmented-field {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 3px;
  gap: 3px;
}

.segment-btn {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 900;
}

.segment-btn.is-selected {
  background: var(--green-soft);
  color: var(--surface-strong);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 24%, var(--line));
}

.segment-btn:disabled {
  opacity: 0.74;
}

.status-edit-btn {
  flex: 0 0 auto;
}

.text-field,
.select-field,
.note-field {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--text);
  outline: none;
  padding: 0 12px;
}

.note-field {
  min-height: 74px;
  padding: 12px 13px;
  resize: none;
}

.text-field::placeholder,
.note-field::placeholder {
  color: #aeb8aa;
  opacity: 0.42;
}

.text-field:focus,
.select-field:focus,
.note-field:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 125, 85, 0.14);
}

.select-field:disabled {
  cursor: default;
  opacity: 0.72;
}

.text-field:disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

.choice-grid {
  display: grid;
  gap: 10px;
}

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

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

.choice-btn {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--text);
  font-weight: 850;
}

.choice-btn.is-selected {
  border-color: var(--surface-strong);
  background: var(--green-soft);
  box-shadow: 2px 2px 0 var(--surface-strong);
}

.goal-btn {
  display: grid;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
  padding: 14px;
  text-align: left;
}

.goal-btn.is-selected {
  border-color: var(--surface-strong);
  background: var(--coral-soft);
  box-shadow: 2px 2px 0 var(--surface-strong);
}

.goal-icon {
  font-size: 24px;
  line-height: 1;
}

.goal-name {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 900;
}

.goal-desc {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
  color: #263026;
  font-size: 14px;
  font-weight: 850;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
  color: #263026;
  font-size: 13px;
  font-weight: 850;
  box-sizing: border-box;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--green);
}

.time-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 8px;
}

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

.record-time-grid .pace-preview {
  grid-column: 1 / -1;
}

.time-number-field {
  min-width: 0;
  padding: 0 8px;
  text-align: center;
  font-weight: 950;
}

.action-row {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.compact-action-row {
  margin-top: 12px;
}

.archive-quick-section {
  margin: -2px 0 14px;
}

.archive-quick-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
  padding: 0 14px;
  color: var(--text);
  font-weight: 900;
}

.archive-quick-btn strong {
  color: #1d6843;
  font-size: 13px;
}

.archive-quick-btn:disabled {
  cursor: default;
  opacity: 0.58;
}

.primary-btn,
.secondary-btn,
.icon-btn {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.primary-btn {
  flex: 1;
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

.secondary-btn {
  background: var(--surface);
  color: var(--surface-strong);
  padding: 0 16px;
}

.compact-btn {
  min-height: 36px;
  padding: 0 11px;
  font-size: 12px;
}

.icon-btn {
  display: grid;
  width: 48px;
  place-items: center;
  background: var(--surface);
  color: var(--surface-strong);
  font-size: 18px;
}

.topbar-spacer {
  width: 48px;
  min-width: 48px;
}

.tiny-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-wrap: pretty;
}

.no-top-space {
  margin-top: 0;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 86px;
  background: var(--bg);
}

.app-shell.is-readable .content {
  gap: 10px;
  padding: 12px 12px 14px;
}

.app-shell.is-readable .panel-title-row {
  margin-bottom: 8px;
}

.app-shell.is-readable .recommend-copy {
  margin-top: 5px;
  color: color-mix(in srgb, var(--muted) 92%, var(--text));
  font-size: 13px;
  line-height: 1.52;
}

.app-shell.is-readable .pill {
  min-height: 24px;
  padding: 0 8px;
  font-size: 10.5px;
}

.app-shell.is-readable .field-hint {
  color: color-mix(in srgb, var(--muted) 88%, var(--surface));
  font-size: 11px;
}

.app-shell.is-readable .action-row {
  margin-top: 14px;
  gap: 8px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 66px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--chrome-line);
  background: var(--chrome-bg);
  backdrop-filter: blur(12px);
}

.topbar > div {
  min-width: 0;
}

.topbar-title {
  margin: 0;
  font-size: 19px;
  font-weight: 950;
  line-height: 1.15;
  text-wrap: balance;
}

.home-brand-title {
  font-size: 30px;
  line-height: 1.03;
}

.topbar-sub {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.content {
  display: grid;
  gap: 12px;
  padding: 14px 14px 16px;
}

.hero-panel,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 9px 20px rgba(31, 40, 28, 0.055);
}

.hero-panel {
  overflow: hidden;
}

.hero-art {
  display: grid;
  min-height: 126px;
  padding: 17px;
  align-content: end;
  background:
    linear-gradient(135deg, rgba(171, 220, 198, 0.86), rgba(230, 241, 235, 0.98) 72%, rgba(224, 106, 74, 0.2)),
    var(--green-soft);
  border-bottom: 1px solid var(--surface-strong);
}

.hero-line {
  width: 86%;
  max-width: 330px;
  height: 18px;
  border-bottom: 5px solid var(--surface-strong);
  border-radius: 0 0 50% 50%;
  transform: rotate(-4deg);
}

.hero-kicker {
  margin: 13px 0 0;
  color: var(--surface-strong);
  font-size: 12px;
  font-weight: 900;
}

.hero-title {
  margin: 2px 0 0;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-comment {
  max-width: 330px;
  margin: 8px 0 0;
  color: var(--surface-strong);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.5;
  text-wrap: pretty;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hero-body,
.panel-body {
  padding: 15px;
}

.panel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.schedule-title-row {
  align-items: flex-start;
}

.schedule-title-row .panel-title {
  padding-top: 3px;
}

.panel-title {
  margin: 0;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.25;
  text-wrap: balance;
}

.current-goal-body {
  display: grid;
  gap: 14px;
}

.current-goal-body .panel-title-row {
  margin-bottom: 0;
}

.current-goal-stack {
  display: grid;
  gap: 12px;
}

.goal-summary-line {
  margin: 0;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
  text-wrap: balance;
}

.goal-head-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0 4px;
}

.goal-distance {
  color: var(--surface-strong);
  font-size: 19px;
  font-weight: 950;
  line-height: 1.2;
}

.goal-head-main {
  min-width: 0;
}

.goal-target-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.goal-duration-inline {
  color: var(--surface-strong);
  font-size: 20px;
  font-weight: 950;
  line-height: 1.1;
  white-space: nowrap;
}

.goal-head-caption {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

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

.goal-quick-grid div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 9px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.goal-quick-grid span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1.2;
}

.goal-quick-grid strong {
  color: var(--surface-strong);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.goal-copy-block {
  display: grid;
  gap: 6px;
}

.goal-copy-block .recommend-copy,
.current-goal-body > .recommend-copy {
  margin: 0;
}

.goal-status-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid color-mix(in srgb, var(--green) 24%, var(--line));
  border-radius: 8px;
  background: var(--green-soft);
}

.goal-status-strip span,
.goal-status-strip strong {
  display: block;
}

.goal-status-strip span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1.2;
}

.goal-status-strip strong {
  margin-top: 3px;
  color: var(--surface-strong);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.2;
  white-space: nowrap;
}

.goal-status-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  text-wrap: pretty;
}

.current-goal-actions {
  margin-top: 0;
}

.current-goal-actions .secondary-btn {
  flex: 0 0 auto;
  min-width: 108px;
}

.goal-fit-btn {
  min-width: 0;
  padding: 0 10px;
  white-space: nowrap;
}

.goal-fit-empty-row {
  display: flex;
  justify-content: flex-end;
}

.pill {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: #1d6843;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.edit-pill {
  background: var(--coral-soft);
  color: #a43e28;
}

.goal-edit-panel {
  border-color: rgba(225, 106, 79, 0.62);
  box-shadow: 0 10px 24px rgba(225, 106, 79, 0.11);
}

.edit-mode-banner {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(225, 106, 79, 0.58);
  border-radius: 8px;
  background: var(--coral-soft);
}

.edit-mode-banner strong {
  color: var(--surface-strong);
  font-size: 13.5px;
  font-weight: 950;
  line-height: 1.35;
}

.edit-mode-banner span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.weekday-selector {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  max-width: 240px;
  margin-left: auto;
}

.weekday-btn {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.weekday-btn.is-selected {
  border-color: var(--surface-strong);
  background: var(--green-soft);
  color: #1d6843;
  box-shadow: 1px 1px 0 var(--surface-strong);
}

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

.empty-summary {
  min-height: 76px;
}

.metric {
  min-width: 0;
  min-height: 72px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.metric-value {
  display: block;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: normal;
}

.metric-label {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.report-focus-panel {
  border-color: color-mix(in srgb, var(--green) 18%, var(--line));
}

.report-focus-panel .recommend-copy {
  margin-bottom: 10px;
}

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

.report-focus-grid .metric {
  min-height: 66px;
  background: color-mix(in srgb, var(--green-soft) 24%, var(--surface-alt));
}

.dogfood-action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid color-mix(in srgb, var(--green) 18%, var(--line));
  border-radius: 8px;
  background: var(--surface-alt);
}

.dogfood-action-card.is-pass {
  border-color: color-mix(in srgb, var(--green) 28%, var(--line));
  background: color-mix(in srgb, var(--green-soft) 30%, var(--surface));
}

.dogfood-action-card.is-pending {
  border-color: color-mix(in srgb, var(--yellow) 26%, var(--line));
  background: color-mix(in srgb, var(--yellow) 14%, var(--surface));
}

.dogfood-action-card.is-fail {
  border-color: color-mix(in srgb, #b5362b 28%, var(--line));
  background: color-mix(in srgb, #ffe6df 52%, var(--surface));
}

.dogfood-action-card div {
  min-width: 0;
}

.dogfood-action-card strong,
.dogfood-action-card span {
  display: block;
}

.dogfood-action-card strong {
  color: var(--surface-strong);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
}

.dogfood-action-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  text-wrap: pretty;
}

.dogfood-action-card small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-align: right;
}

.my-profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--green) 20%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--green-soft) 24%, var(--surface-alt));
}

.my-profile-head strong {
  display: block;
  color: var(--surface-strong);
  font-size: 19px;
  font-weight: 950;
  line-height: 1.25;
}

.my-profile-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 820;
  line-height: 1.4;
}

.my-profile-head small {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.2;
  white-space: nowrap;
}

.recommend-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: 0;
  text-wrap: balance;
}

.recommend-copy {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.56;
  text-wrap: pretty;
}

.coach-brief-panel {
  border-color: color-mix(in srgb, var(--green) 24%, var(--line));
}

.coach-brief-panel .recommend-title {
  font-size: 17px;
  line-height: 1.35;
}

.coach-brief-panel.is-good {
  background: color-mix(in srgb, var(--green-soft) 34%, var(--surface));
}

.coach-brief-panel.is-caution {
  background: color-mix(in srgb, var(--yellow) 24%, var(--surface));
  border-color: color-mix(in srgb, var(--yellow) 34%, var(--line));
}

.coach-brief-panel.is-alert {
  background: color-mix(in srgb, var(--coral-soft) 34%, var(--surface));
  border-color: color-mix(in srgb, var(--coral) 34%, var(--line));
}

.plan-list,
.record-list,
.shoe-list {
  display: grid;
  gap: 10px;
}

.compact-list {
  gap: 8px;
}

.weekly-summary-card {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.compact-weekly-summary {
  gap: 7px;
}

.compact-weekly-inline {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.45;
}

.weekly-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.weekly-progress-head span {
  color: var(--surface-strong);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
}

.weekly-progress-head strong {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.25;
  white-space: nowrap;
}

.weekly-progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--green) 13%, var(--surface));
}

.weekly-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.weekly-summary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.weekly-summary-row span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.weekly-summary-row strong {
  color: var(--surface-strong);
  font-size: 13px;
  font-weight: 950;
}

.weekly-summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.weekly-summary-card p strong {
  color: var(--green);
}

.remaining-workouts {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.remaining-workouts span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.remaining-workouts strong {
  color: var(--surface-strong);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
}

.remaining-workouts p {
  grid-column: 1 / -1;
}

.remaining-workout-list {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 6px;
  margin-top: 2px;
}

.remaining-workout-list span {
  padding: 5px 7px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--surface-strong);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.inline-note-toggle {
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.inline-note-toggle summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.inline-note-toggle summary::marker {
  color: var(--green);
}

.inline-note-body {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.block-summary-card {
  margin-top: 10px;
}

.block-validation-card {
  margin-top: 10px;
  gap: 10px;
}

.block-validation-list {
  display: grid;
  gap: 8px;
}

.block-validation-item {
  display: grid;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.block-validation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.block-validation-head strong {
  font-size: 13px;
  font-weight: 950;
  line-height: 1.2;
}

.block-validation-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.block-validation-metrics span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.block-validation-metrics strong {
  color: var(--surface-strong);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
}

.block-validation-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.status-chip.is-pass {
  background: var(--green-soft);
  color: #1d6843;
}

.status-chip.is-fail {
  background: var(--coral-soft);
  color: #a43e28;
}

.status-chip.is-pending {
  background: #f2efe2;
  color: var(--muted);
}

.block-validation-item.is-pass {
  border-color: color-mix(in srgb, var(--green) 36%, var(--line));
}

.block-validation-item.is-fail {
  border-color: color-mix(in srgb, var(--coral) 44%, var(--line));
}

.block-validation-item.is-pending {
  border-color: color-mix(in srgb, var(--yellow) 50%, var(--line));
}

.block-coverage-trend-card {
  margin-top: 10px;
}

.block-coverage-trend-card.is-up {
  border-color: color-mix(in srgb, var(--green) 42%, var(--line));
  background: color-mix(in srgb, var(--green-soft) 42%, var(--surface));
}

.block-coverage-trend-card.is-down {
  border-color: color-mix(in srgb, var(--coral) 48%, var(--line));
  background: color-mix(in srgb, var(--coral-soft) 28%, var(--surface));
}

.block-coverage-trend-card.is-neutral {
  border-color: color-mix(in srgb, var(--yellow) 45%, var(--line));
}

.block-coverage-mini-chart {
  margin-top: 2px;
}

.block-coverage-chart-item {
  display: grid;
  gap: 4px;
}

.block-coverage-chart-row small {
  color: var(--surface-strong);
  font-size: 11px;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.block-coverage-chart-row {
  grid-template-columns: 38px 1fr 92px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.block-coverage-chart-row.is-current {
  color: var(--surface-strong);
}

.block-coverage-chart-row.is-current .chart-track {
  border-color: var(--green);
}

.block-coverage-fill {
  background: var(--green);
}

.block-coverage-chart-row:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--green) 55%, white);
  outline-offset: 2px;
  border-radius: 8px;
}

.block-coverage-tip {
  display: none;
  margin: 0 0 0 38px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.block-coverage-tip.is-visible {
  display: block;
}

.block-decision-card {
  margin-top: 10px;
}

.block-decision-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.block-decision-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}

.block-decision-head strong {
  font-size: 18px;
  font-weight: 950;
  line-height: 1.2;
}

.block-decision-card.is-go {
  border-color: color-mix(in srgb, var(--green) 42%, var(--line));
  background: color-mix(in srgb, var(--green-soft) 48%, var(--surface));
}

.block-decision-card.is-go .block-decision-head strong {
  color: var(--green);
}

.block-decision-card.is-fix {
  border-color: color-mix(in srgb, var(--yellow) 55%, var(--line));
}

.block-decision-card.is-stop {
  border-color: color-mix(in srgb, var(--coral) 48%, var(--line));
  background: color-mix(in srgb, var(--coral-soft) 32%, var(--surface));
}

.block-decision-card.is-stop .block-decision-head strong {
  color: var(--coral);
}

.home-schedule-card {
  display: grid;
  gap: 12px;
}

.home-schedule-head {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
}

.large-day-badge {
  width: 52px;
  height: 52px;
  font-size: 15px;
}

.home-schedule-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.home-schedule-metrics span {
  display: grid;
  min-width: 0;
  min-height: 58px;
  align-content: center;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.home-schedule-metrics small {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1.2;
}

.home-schedule-metrics strong {
  color: var(--surface-strong);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.home-schedule-metrics span.is-muted {
  background: color-mix(in srgb, var(--surface-alt) 62%, var(--surface));
}

.home-schedule-metrics span.is-muted strong {
  color: var(--muted);
  font-weight: 850;
}

.home-schedule-metrics span.is-tone-positive strong {
  color: var(--green);
}

.home-schedule-metrics span.is-tone-negative strong {
  color: var(--coral);
}

.plan-item,
.record-item,
.shoe-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
  padding: 12px;
}

.plan-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
}

.plan-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.status-chip {
  flex: 0 0 auto;
  min-height: 22px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.status-chip.is-complete {
  background: var(--green-soft);
  color: #1d6843;
}

.status-chip.is-incomplete {
  background: var(--surface-alt);
  color: var(--muted);
  border: 1px solid var(--line);
}

.plan-item > div:last-child,
.record-item,
.shoe-item {
  min-width: 0;
}

.plan-item.is-done {
  background: var(--green-soft);
}

.plan-item.is-pending {
  border-color: color-mix(in srgb, var(--coral) 26%, var(--line));
  background: color-mix(in srgb, var(--coral-soft) 28%, var(--surface));
}

.plan-item.is-done .day-badge {
  background: var(--green);
  color: var(--surface);
}

.plan-item.is-pending .day-badge {
  background: var(--yellow);
}

.record-item.is-done {
  border-color: rgba(47, 125, 85, 0.5);
  background: var(--green-soft);
}

.nested-list {
  margin-top: 12px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.day-badge {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--surface-strong);
  border-radius: 8px;
  background: var(--yellow);
  color: var(--surface-strong);
  font-size: 13px;
  font-weight: 950;
}

.item-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 950;
  line-height: 1.28;
  text-wrap: balance;
}

.workout-alias {
  display: inline-block;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 750;
  opacity: 0.72;
  vertical-align: baseline;
}

.item-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-wrap: pretty;
}

.app-shell.is-readable .item-sub {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-hero-body {
  display: grid;
  gap: 8px;
}

.home-hero-panel {
  overflow: hidden;
  --hero-start: rgba(171, 220, 198, 0.88);
  --hero-end: rgba(224, 106, 74, 0.12);
  --hero-base: var(--green-soft);
  --hero-rail-start: rgba(47, 122, 89, 0.95);
  --hero-rail-end: rgba(171, 220, 198, 0.68);
}

.home-hero-panel.hero-tone-mint {
  --hero-start: rgba(171, 220, 198, 0.88);
  --hero-end: rgba(224, 106, 74, 0.12);
  --hero-base: color-mix(in srgb, var(--green-soft) 82%, var(--surface));
  --hero-rail-start: rgba(47, 122, 89, 0.95);
  --hero-rail-end: rgba(171, 220, 198, 0.68);
}

.home-hero-panel.hero-tone-sky {
  --hero-start: rgba(157, 204, 255, 0.9);
  --hero-end: rgba(155, 234, 213, 0.28);
  --hero-base: color-mix(in srgb, var(--blue) 12%, var(--surface));
  --hero-rail-start: rgba(53, 111, 214, 0.94);
  --hero-rail-end: rgba(157, 204, 255, 0.74);
}

.home-hero-panel.hero-tone-sunset {
  --hero-start: rgba(255, 186, 164, 0.95);
  --hero-end: rgba(255, 224, 154, 0.6);
  --hero-base: color-mix(in srgb, var(--coral-soft) 72%, var(--surface));
  --hero-rail-start: rgba(224, 106, 74, 0.95);
  --hero-rail-end: rgba(255, 209, 129, 0.78);
}

.home-hero-panel.hero-tone-lilac {
  --hero-start: rgba(207, 184, 255, 0.9);
  --hero-end: rgba(168, 222, 199, 0.26);
  --hero-base: color-mix(in srgb, #8e6adb 18%, var(--surface));
  --hero-rail-start: rgba(142, 106, 219, 0.95);
  --hero-rail-end: rgba(207, 184, 255, 0.76);
}

.home-hero-panel.hero-tone-peach {
  --hero-start: rgba(255, 208, 170, 0.9);
  --hero-end: rgba(255, 168, 136, 0.28);
  --hero-base: color-mix(in srgb, #ffc18f 26%, var(--surface));
  --hero-rail-start: rgba(227, 134, 76, 0.95);
  --hero-rail-end: rgba(255, 208, 170, 0.78);
}

.home-hero-panel.hero-tone-ocean {
  --hero-start: rgba(123, 186, 255, 0.88);
  --hero-end: rgba(93, 213, 210, 0.3);
  --hero-base: color-mix(in srgb, #51a3ff 18%, var(--surface));
  --hero-rail-start: rgba(39, 111, 204, 0.95);
  --hero-rail-end: rgba(123, 186, 255, 0.75);
}

.home-hero-panel.hero-tone-lime {
  --hero-start: rgba(204, 236, 141, 0.9);
  --hero-end: rgba(154, 211, 109, 0.26);
  --hero-base: color-mix(in srgb, #bfe982 23%, var(--surface));
  --hero-rail-start: rgba(102, 157, 58, 0.95);
  --hero-rail-end: rgba(204, 236, 141, 0.74);
}

.home-hero-band {
  display: grid;
  gap: 5px;
  padding: 13px 15px 12px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, var(--hero-start), var(--hero-end)),
    var(--hero-base);
}

.home-hero-panel-band {
  border-color: color-mix(in srgb, var(--hero-rail-start) 24%, var(--line));
}

.home-hero-panel-band .home-hero-body {
  gap: 10px;
}

.home-hero-panel-card {
  border-color: color-mix(in srgb, var(--green) 26%, var(--line));
}

.home-hero-surface {
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--hero-start), var(--hero-end)),
    var(--hero-base);
}

.home-hero-panel-rail .home-hero-body {
  position: relative;
}

.home-hero-rail {
  height: 5px;
  background: linear-gradient(90deg, var(--hero-rail-start), var(--hero-rail-end));
}

.home-hero-panel-split {
  position: relative;
}

.home-hero-split-side {
  position: absolute;
  inset: 0 auto 0 0;
  width: 9px;
  background: linear-gradient(180deg, var(--hero-rail-start), var(--hero-rail-end));
}

.home-hero-panel-split .home-hero-body {
  padding-left: 17px;
}

.home-hero-panel-frame {
  border: 1px solid color-mix(in srgb, var(--hero-rail-start) 46%, var(--line));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--hero-rail-start) 12%, transparent);
}

.home-hero-panel-frame .home-hero-body {
  background: color-mix(in srgb, var(--hero-base) 52%, var(--surface));
}

.home-hero-panel-glow .home-hero-body {
  background:
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--hero-start) 55%, transparent) 0%, transparent 52%),
    linear-gradient(135deg, color-mix(in srgb, var(--hero-base) 70%, var(--surface)), var(--surface));
}

.home-hero-panel-ribbon {
  position: relative;
  border-color: color-mix(in srgb, var(--hero-rail-start) 28%, var(--line));
}

.home-hero-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 86px;
  height: 86px;
  background: linear-gradient(135deg, transparent 46%, var(--hero-rail-start) 47%, var(--hero-rail-end) 100%);
  opacity: 0.28;
  pointer-events: none;
}

.home-hero-panel-ribbon .home-hero-body {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--hero-base) 56%, var(--surface)), var(--surface)),
    var(--surface);
}

.home-hero-panel-glass .home-hero-body {
  border: 1px solid color-mix(in srgb, var(--hero-rail-start) 32%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--hero-start) 34%, var(--surface)), color-mix(in srgb, var(--surface) 82%, transparent)),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.home-hero-title {
  margin: 0;
  color: var(--surface-strong);
  font-size: 31px;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
}

.home-hero-copy {
  margin: 0;
  color: var(--surface-strong);
  font-weight: 680;
  line-height: 1.45;
  opacity: 0.9;
}

.home-hero-panel-card .home-hero-copy {
  opacity: 1;
}

.home-hero-guide {
  margin: 0;
  font-size: 17px;
  font-weight: 730;
  line-height: 1.35;
  color: color-mix(in srgb, var(--surface-strong) 90%, var(--muted));
}

.app-shell.is-readable .home-hero-guide {
  font-size: 16px;
}

.home-hero-title-rail {
  font-size: 29px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.record-form-intro {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.5;
}

.record-form-error {
  padding: 10px 12px;
  border: 1px solid #b5362b;
  border-radius: 8px;
  background: color-mix(in srgb, #ffe6df 76%, var(--surface));
  color: #8c241c;
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.45;
}

.record-form-error.is-hidden {
  display: none;
}

.record-form-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.record-form-section.is-core {
  border-color: color-mix(in srgb, var(--green) 24%, var(--line));
  background: var(--surface-alt);
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--green) 40%, transparent);
}

.record-readiness-card {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--green) 22%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--green-soft) 34%, var(--surface));
}

.record-readiness-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0;
}

.record-readiness-row .status-btn {
  min-height: 40px;
  padding: 8px 6px;
  text-align: center;
}

.record-readiness-row .status-btn span {
  font-size: 12px;
}

.record-form-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.record-form-section-head strong {
  color: var(--surface-strong);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.2;
}

.record-form-section-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  text-align: right;
}

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

.record-measure-grid .field-label {
  grid-template-rows: auto 46px minmax(18px, auto);
}

.record-measure-grid .field-label.has-help {
  grid-template-rows: auto 46px;
}

.record-measure-grid .field-label.has-help .select-field {
  min-height: 46px;
}

.record-measure-grid .field-hint {
  min-height: 18px;
}

.record-continuous-segment {
  width: 100%;
}

.mood-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.mood-btn {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
  font-size: 11.5px;
  font-weight: 850;
}

.mood-btn.is-selected {
  border-color: var(--surface-strong);
  background: var(--coral-soft);
  box-shadow: 2px 2px 0 var(--surface-strong);
}

.mood-chip {
  display: grid;
  gap: 5px;
  place-items: center;
  padding: 7px 4px;
}

.mood-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1px solid var(--surface-strong);
  border-radius: 999px;
}

.mood-dot-1 {
  background: var(--coral);
}

.mood-dot-2 {
  background: #f59f57;
}

.mood-dot-3 {
  background: var(--yellow);
}

.mood-dot-4 {
  background: var(--mint);
}

.mood-dot-5 {
  background: var(--green);
}

.pace-preview {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px dashed #9aa693;
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--surface-strong);
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.progress-shell {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--surface-strong);
  border-radius: 999px;
  background: #eef1e8;
}

.progress-fill {
  height: 100%;
  border-right: 1px solid var(--surface-strong);
  background: var(--green);
}

.progress-fill.warn {
  background: var(--yellow);
}

.progress-fill.danger {
  background: var(--coral);
}

.shoe-head,
.record-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.shoe-name,
.record-name {
  margin: 0;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.28;
  text-wrap: balance;
}

.shoe-meta,
.record-meta {
  max-width: 48%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
  text-align: right;
  word-break: normal;
  overflow-wrap: anywhere;
}

.record-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  max-width: 58%;
}

.record-head-actions .record-meta {
  max-width: none;
}

.record-edit-btn {
  min-height: 26px;
  white-space: nowrap;
}

.inline-link-btn {
  justify-self: flex-start;
  min-height: 24px;
  margin-top: -2px;
}

.feedback-box {
  display: grid;
  gap: 10px;
}

.star-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.star-btn {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
  color: #9aa693;
  font-size: 22px;
  font-weight: 950;
}

.star-btn.is-selected {
  border-color: var(--surface-strong);
  background: #fff7d8;
  color: var(--surface-strong);
  box-shadow: 2px 2px 0 var(--surface-strong);
}

.chart-list {
  display: grid;
  gap: 10px;
}

.chart-row {
  display: grid;
  grid-template-columns: 38px 1fr 62px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.chart-track {
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--surface-strong);
  border-radius: 999px;
  background: #eef1e8;
}

.chart-fill {
  height: 100%;
  background: var(--green);
}

.section-divider {
  height: 1px;
  margin: 16px 0;
  background: var(--line);
}

.compact-title-row {
  margin-bottom: 10px;
}

.report-toggle-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.3;
}

.report-toggle-panel[open] summary {
  margin-bottom: 10px;
}

.report-toggle-panel summary::marker {
  color: var(--green);
}

.report-toggle-panel small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
  text-align: right;
}

.toggle-panel-body {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.report-toggle-panel:not([open]) .toggle-panel-body {
  display: none;
}

.block-detail-toggle {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.block-detail-toggle summary {
  font-size: 14px;
}

.block-detail-toggle[open] summary {
  margin-bottom: 8px;
}

.block-detail-body {
  gap: 10px;
  margin-top: 10px;
}

.block-detail-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.tab-btn {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.tab-btn.is-active {
  border-color: var(--surface-strong);
  color: var(--surface-strong);
  background: #fff7d8;
  box-shadow: 1px 1px 0 var(--surface-strong);
}

.block-detail-body .block-validation-card,
.block-detail-body .block-decision-card {
  margin-top: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: end center;
  background: rgba(16, 20, 17, 0.4);
  padding: 18px;
}

.settings-backdrop {
  place-items: start center;
  background: rgba(16, 20, 17, 0.28);
  padding: 76px 16px 16px;
}

.readiness-check-backdrop {
  place-items: center;
}

.modal-card {
  width: min(100%, 444px);
  border: 1px solid var(--surface-strong);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  box-shadow: var(--shadow);
}

.settings-card {
  display: grid;
  gap: 16px;
}

.readiness-check-card {
  display: grid;
  gap: 12px;
}

.settings-head,
.setting-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.compact-icon-btn {
  width: 38px;
  min-height: 38px;
  font-size: 18px;
}

.settings-section {
  display: grid;
  gap: 10px;
}

.settings-title {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.25;
}

.settings-copy {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}

.settings-guide {
  display: grid;
  gap: 8px;
}

.settings-guide p {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: start;
  margin: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.settings-guide strong {
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.35;
}

.settings-guide span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
  text-wrap: pretty;
}

.switch-btn {
  position: relative;
  flex: 0 0 auto;
  width: 54px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-alt);
  padding: 3px;
}

.switch-knob {
  display: block;
  width: 24px;
  height: 24px;
  border: 1px solid var(--surface-strong);
  border-radius: 50%;
  background: var(--surface);
  transition: transform 0.18s ease, background 0.18s ease;
}

.switch-btn.is-on {
  border-color: var(--green);
  background: var(--green-soft);
}

.switch-btn.is-on .switch-knob {
  background: var(--green);
  transform: translateX(20px);
}

.record-comment-card {
  display: flex;
  min-height: min(34vh, 260px);
  max-height: 38vh;
  flex-direction: column;
}

.modal-title {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.2;
}

.record-comment-body {
  display: grid;
  gap: 7px;
  overflow: auto;
}

.comment-line {
  margin: 0;
  color: var(--surface-strong);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.strong-line {
  font-weight: 950;
}

.comment-section {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
}

.comment-step {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: #1d6843;
  font-size: 11px;
  font-weight: 950;
}

.comment-comparison {
  display: grid;
  position: relative;
  gap: 7px;
  padding-left: 30px;
}

.comparison-table {
  display: grid;
  position: relative;
  gap: 5px;
  padding-left: 30px;
}

.comparison-step {
  position: absolute;
  top: 9px;
  left: 0;
}

.comparison-metric-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 6px;
  align-items: center;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.comparison-metric-row strong,
.comparison-metric-row span {
  min-width: 0;
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1.35;
}

.comparison-metric-row strong {
  color: var(--surface-strong);
}

.comparison-metric-row span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.comparison-metric-row span.is-tone-positive {
  color: var(--green);
}

.comparison-metric-row span.is-tone-negative {
  color: var(--coral);
}

.comparison-metric-row.is-onTarget span,
.comparison-metric-row.is-free span {
  color: var(--green);
}

.comparison-metric-row.is-faster span,
.comparison-metric-row.is-slower span {
  color: var(--coral);
}

.comparison-row {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 9px;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.comparison-row strong,
.comparison-row span {
  display: block;
}

.comparison-row strong {
  color: var(--surface-strong);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.3;
}

.comparison-row span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.42;
}

.comparison-dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border: 1px solid var(--surface-strong);
  border-radius: 999px;
  background: var(--blue);
}

.comparison-row.is-onTarget .comparison-dot,
.comparison-row.is-free .comparison-dot {
  background: var(--green);
}

.comparison-row.is-faster .comparison-dot,
.comparison-row.is-slower .comparison-dot {
  background: var(--coral);
}

.next-comment .comment-step {
  background: #fff7d8;
  color: var(--surface-strong);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 14px;
}

.modal-confirm-btn {
  flex: 0 0 auto;
  min-width: 88px;
  padding: 0 18px;
}

.menu-list {
  display: grid;
  gap: 10px;
}

.menu-section-label {
  margin: 8px 2px -2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.25;
  letter-spacing: 0;
}

.menu-section-label:first-child {
  margin-top: 0;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--text);
  text-align: left;
}

.menu-item > span:first-child {
  min-width: 0;
}

.menu-item strong,
.menu-item small {
  display: block;
}

.menu-item strong {
  font-size: 15px;
  font-weight: 950;
  line-height: 1.3;
}

.menu-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  text-wrap: pretty;
}

.menu-item > span:last-child {
  color: var(--green);
  font-size: 24px;
  font-weight: 900;
}

.data-menu-item {
  display: grid;
  align-items: start;
}

.data-menu-item > span:last-child {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.data-actions {
  width: 100%;
  margin-top: 0;
}

.data-actions .secondary-btn {
  flex: 1;
}

.sync-settings-panel {
  width: 100%;
  margin-top: 8px;
}

.sync-form-grid {
  margin-top: 8px;
  gap: 8px;
}

.sync-toggle-row {
  margin-bottom: 0;
}

.sync-toggle-guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.sync-toggle-guide-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.sync-toggle-guide-item .sync-guide-dot {
  background: var(--muted);
}

.sync-toggle-guide-item.is-active .sync-guide-dot {
  background: var(--green);
}

.sync-advanced-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
  padding: 8px 10px;
}

.sync-advanced-panel summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.sync-advanced-panel[open] .field-label {
  margin-top: 8px;
}

.sync-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sync-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--text);
}

.sync-status-pill.is-ok {
  border-color: rgba(42, 119, 83, 0.35);
  background: rgba(207, 235, 214, 0.75);
  color: var(--green);
}

.sync-status-pill.is-pending {
  border-color: rgba(60, 94, 157, 0.35);
  background: rgba(219, 234, 255, 0.7);
  color: var(--blue);
}

.sync-status-pill.is-warn {
  border-color: rgba(176, 116, 42, 0.35);
  background: rgba(247, 228, 195, 0.7);
  color: var(--yellow);
}

.sync-status-pill.is-error {
  border-color: rgba(148, 73, 73, 0.4);
  background: rgba(248, 220, 220, 0.8);
  color: var(--coral);
}

.sync-status-pill.is-idle {
  color: var(--muted);
}

.sync-status-time {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.sync-guide-panel {
  width: 100%;
  margin-top: 8px;
}

.sync-health-panel {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
  display: grid;
  gap: 8px;
}

.sync-health-panel.is-ok {
  border-color: rgba(42, 119, 83, 0.25);
}

.sync-health-panel.is-warn {
  border-color: rgba(176, 116, 42, 0.25);
}

.sync-health-panel.is-error {
  border-color: rgba(148, 73, 73, 0.35);
}

.sync-health-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.sync-health-meta-item {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.sync-health-meta-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.sync-health-meta-item strong {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
  word-break: break-all;
}

.sync-health-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.sync-health-item {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.sync-health-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.sync-health-item strong {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
  word-break: break-all;
}

.sync-guide-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.sync-guide-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.sync-guide-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--muted);
  flex: 0 0 auto;
}

.sync-guide-item.is-ok .sync-guide-dot {
  background: var(--green);
}

.sync-guide-item.is-warn .sync-guide-dot {
  background: var(--yellow);
}

.sync-guide-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.sync-guide-copy strong {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
}

.sync-guide-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.tiny-link {
  margin-top: 2px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.compact-checkbox-row {
  min-height: 42px;
  padding: 0 10px;
  font-size: 13px;
}

.compact-toggle-row {
  min-height: 42px;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: var(--chrome-bg);
  border-top: 1px solid var(--chrome-line);
  backdrop-filter: blur(12px);
}

.bottom-nav-inner {
  display: grid;
  width: min(100%, 480px);
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.nav-btn {
  display: grid;
  min-height: 52px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.nav-icon {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.coach-metric-grid {
  margin-top: 10px;
}

.coach-model-grid,
.coach-template-grid {
  margin-top: 10px;
}

.coach-template-grid .choice-btn {
  min-height: 42px;
  font-size: 12px;
}

.coach-room-guide {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.coach-room-guide summary {
  cursor: pointer;
  color: var(--surface-strong);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

.coach-room-guide summary::marker {
  color: var(--green);
}

.coach-room-guide ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 16px;
}

.coach-room-guide li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.coach-room-guide b {
  color: var(--text);
  font-weight: 900;
}

.dogfood-loop-panel {
  display: grid;
  margin-top: 10px;
  padding: 11px;
  border: 1px solid color-mix(in srgb, var(--green) 20%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--green-soft) 18%, var(--surface-alt));
}

.dogfood-loop-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.dogfood-loop-head::-webkit-details-marker {
  display: none;
}

.dogfood-loop-head::after {
  content: "열기";
  align-self: center;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 900;
}

.dogfood-loop-panel[open] .dogfood-loop-head::after {
  content: "닫기";
}

.dogfood-loop-head > span {
  min-width: 0;
}

.dogfood-loop-head strong,
.dogfood-loop-head span {
  display: block;
}

.dogfood-loop-head strong {
  color: var(--surface-strong);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.2;
}

.dogfood-loop-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  text-wrap: pretty;
}

.dogfood-step-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.dogfood-step {
  display: flex;
  gap: 8px;
  min-width: 0;
  min-height: 56px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.dogfood-step-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--muted);
}

.dogfood-step.is-pass .dogfood-step-dot {
  background: var(--green);
}

.dogfood-step.is-pending .dogfood-step-dot {
  background: var(--yellow);
}

.dogfood-step.is-fail .dogfood-step-dot {
  background: #b5362b;
}

.dogfood-step div {
  min-width: 0;
}

.dogfood-step strong,
.dogfood-step small {
  display: block;
}

.dogfood-step strong {
  color: var(--surface-strong);
  font-size: 11.5px;
  font-weight: 950;
  line-height: 1.25;
}

.dogfood-step small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 820;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.coach-copy-main-btn {
  width: 100%;
}

.core-lock-note {
  margin: 2px 2px 0;
}

.coach-config-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.coach-config-panel {
  margin-top: 10px;
}

.coach-config-panel summary {
  font-size: 12px;
  font-weight: 900;
}

.coach-config-panel[open] .coach-config-form {
  margin-top: 8px;
}

.coach-preview-label {
  margin-top: 12px;
}

.coach-prompt-preview {
  min-height: 220px;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre;
  resize: vertical;
}

.coach-run-status {
  display: grid;
  gap: 2px;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.coach-run-status strong {
  font-size: 12px;
  font-weight: 900;
}

.coach-run-status small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.coach-run-status.is-ok {
  border-color: color-mix(in srgb, var(--green) 34%, var(--line));
  background: color-mix(in srgb, var(--green-soft) 28%, var(--surface));
}

.coach-run-status.is-error {
  border-color: color-mix(in srgb, var(--coral) 34%, var(--line));
  background: color-mix(in srgb, var(--coral-soft) 32%, var(--surface));
}

.coach-actions .primary-btn {
  flex: 1 1 210px;
}

.coach-output-label {
  margin-top: 10px;
}

.coach-output-preview {
  min-height: 360px;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  resize: vertical;
}

.nav-btn.is-active {
  background: var(--surface-strong);
  color: var(--surface);
}

.empty-state {
  padding: 16px;
  border: 1px dashed #9aa693;
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.58;
}

.link-btn {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 950;
}

.subtle-link {
  min-height: 34px;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
}

.danger-link {
  color: var(--coral);
}

.profile-edit-panel {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.profile-edit-panel summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.my-detail-panel[open] {
  display: grid;
  gap: 10px;
}

.safety-guide-card {
  display: grid;
  gap: 7px;
  padding: 10px 11px;
  border: 1px solid color-mix(in srgb, var(--green) 18%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--green-soft) 22%, var(--surface-alt));
}

.safety-guide-card strong {
  color: var(--surface-strong);
  font-size: 12.5px;
  font-weight: 950;
  line-height: 1.25;
}

.safety-guide-card ol {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.safety-guide-card li {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

@media (max-width: 360px) {
  .screen-title,
  .hero-title {
    font-size: 23px;
  }

  .time-grid,
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

@media (max-width: 390px) {
  .schedule-title-row {
    display: grid;
    gap: 8px;
  }

  .weekday-selector {
    justify-content: flex-start;
    max-width: none;
    margin-left: 0;
  }

  .split-grid {
    gap: 8px;
  }
}

@media (min-width: 720px) {
  body {
    padding: 18px 0;
  }

  #app {
    min-height: calc(100vh - 36px);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(29, 36, 26, 0.16);
  }

  .bottom-nav {
    position: sticky;
    bottom: 0;
  }
}
