/* ============================================================
   Gym Tracker — Styles
   Dark theme matching my-training-program.html
   ============================================================ */

:root {
  --bg: #0a0b0e;
  --surface: #111318;
  --surface2: #181b22;
  --border: #22262f;
  --text: #e6e8ed;
  --text-dim: #6b7280;
  --push: #ff5e5e;
  --push-dim: rgba(255,94,94,0.12);
  --pull: #5ea8ff;
  --pull-dim: rgba(94,168,255,0.12);
  --legs: #5eff8e;
  --legs-dim: rgba(94,255,142,0.12);
  --cardio: #ffb85e;
  --cardio-dim: rgba(255,184,94,0.12);
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 72px; /* space for bottom nav */
  overflow-x: hidden;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 9999;
}

/* ---- Typography ---- */
h1, h2, .serif { font-family: 'Instrument Serif', serif; }

/* ---- Container ---- */
.container { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* ============================================================
   Bottom Navigation
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 0 8px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.nav-item svg { width: 22px; height: 22px; }
.nav-item.active { color: var(--text); }

/* ============================================================
   Tab Panels
   ============================================================ */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ============================================================
   Page Headers
   ============================================================ */
.page-header {
  text-align: center;
  padding: 24px 24px 16px;
  position: relative;
}
.page-header h1 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.page-header .sub {
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 300;
  margin-top: 4px;
}
.sync-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--surface2);
  margin-top: 8px;
}

/* ============================================================
   Day Navigation (used in Log + Reference)
   ============================================================ */
.day-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px 8px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--bg) 80%, transparent 100%);
}

.day-btn {
  padding: 10px 22px;
  border-radius: 40px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.day-btn:hover { border-color: #444; }
.day-btn.active-push { background: var(--push-dim); border-color: var(--push); color: var(--push); }
.day-btn.active-pull { background: var(--pull-dim); border-color: var(--pull); color: var(--pull); }
.day-btn.active-legs { background: var(--legs-dim); border-color: var(--legs); color: var(--legs); }
.day-btn.active-cardio { background: var(--cardio-dim); border-color: var(--cardio); color: var(--cardio); }

/* ============================================================
   Log Tab
   ============================================================ */
.log-header {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
}

.date-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  padding: 12px 16px;
  cursor: pointer;
}

.date-input::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

/* Exercise log card */
.log-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  animation: fadeUp 0.3s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.log-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.log-card-illust {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  background: var(--surface2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.log-card-illust svg {
  width: 36px;
  height: 36px;
  max-width: 36px;
  max-height: 36px;
  flex-shrink: 0;
}

.log-card-title-wrap {
  flex: 1;
  min-width: 0;
}

.log-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

.log-card-target {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 300;
}

.log-card-badges {
  display: flex;
  gap: 6px;
}

.badge {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.06em;
}

.badge-new-push { background: var(--push-dim); color: var(--push); }
.badge-new-pull { background: var(--pull-dim); color: var(--pull); }
.badge-new-legs { background: var(--legs-dim); color: var(--legs); }
.badge-abs-push { background: var(--push-dim); color: var(--push); }
.badge-abs-pull { background: var(--pull-dim); color: var(--pull); }
.badge-abs-legs { background: var(--legs-dim); color: var(--legs); }

/* Sets grid */
.sets-grid {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 6px 10px;
  align-items: center;
  margin-bottom: 10px;
}

.sets-grid .set-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
  text-align: center;
  min-width: 28px;
}

.sets-grid .col-header {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  padding-bottom: 2px;
}

.set-input {
  width: 100%;
  min-height: 48px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  padding: 8px;
  transition: border-color 0.2s;
  -moz-appearance: textfield;
}

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

.set-input:focus {
  outline: none;
  border-color: var(--text-dim);
}

.set-input.weight-input:focus { border-color: var(--push); }
.set-input.reps-input:focus { border-color: var(--pull); }

.set-input::placeholder {
  color: var(--text-dim);
  font-weight: 300;
  font-size: 0.85rem;
}

/* Notes textarea */
.exercise-notes {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  padding: 10px 12px;
  resize: vertical;
  min-height: 40px;
  max-height: 120px;
}

.exercise-notes:focus {
  outline: none;
  border-color: var(--text-dim);
}

.exercise-notes::placeholder {
  color: var(--text-dim);
  font-weight: 300;
}

/* Save button */
.save-btn {
  display: block;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--radius);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin: 24px 0 16px;
  letter-spacing: 0.02em;
}

.save-btn:active { transform: scale(0.98); }

.save-btn.push-save { background: var(--push); color: #0a0b0e; }
.save-btn.pull-save { background: var(--pull); color: #0a0b0e; }
.save-btn.legs-save { background: var(--legs); color: #0a0b0e; }

.save-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ============================================================
   Reference Tab
   ============================================================ */
.day-section {
  margin-top: 24px;
  animation: fadeUp 0.5s ease both;
}

.day-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.day-header .day-num {
  font-family: 'Instrument Serif', serif;
  font-size: 1.6rem;
}

.day-header .day-title {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.day-header .day-muscles {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 300;
  margin-left: auto;
}

/* Exercise card (reference) */
.exercise-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.4s ease both;
}

.exercise-card.abs-card {
  border-style: dashed;
  opacity: 0.85;
}

.exercise-card.abs-card::after {
  content: 'ABS';
  position: absolute;
  top: 10px; right: 12px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 6px;
}

.card-push .exercise-card.abs-card::after { background: var(--push-dim); color: var(--push); }
.card-pull .exercise-card.abs-card::after { background: var(--pull-dim); color: var(--pull); }
.card-legs .exercise-card.abs-card::after { background: var(--legs-dim); color: var(--legs); }

.exercise-illust {
  width: 100px;
  height: 100px;
  background: var(--surface2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exercise-illust svg { width: 80px; height: 80px; }

.exercise-info { display: flex; flex-direction: column; justify-content: center; }

.exercise-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.exercise-name .new-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.06em;
}

.push-badge { background: var(--push-dim); color: var(--push); }
.pull-badge { background: var(--pull-dim); color: var(--pull); }
.legs-badge { background: var(--legs-dim); color: var(--legs); }

.exercise-details {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.detail {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 300;
}

.detail strong {
  color: var(--text);
  font-weight: 600;
}

.exercise-note {
  font-size: 0.74rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 6px;
  line-height: 1.5;
}

/* Substitute cards */
.sub-wrapper {
  position: relative;
  margin-bottom: 12px;
}

.sub-connector {
  position: absolute;
  left: 50px;
  top: -6px;
  width: 2px;
  height: 18px;
  background: repeating-linear-gradient(180deg, var(--border) 0px, var(--border) 3px, transparent 3px, transparent 6px);
}

.sub-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  margin-bottom: 6px;
}

.sub-label .swap-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.sub-label span {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.exercise-card.sub-card {
  border-style: dashed;
  border-color: #2a3548;
  opacity: 0.8;
}

.exercise-card.sub-card .sub-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.06em;
  background: rgba(94,168,255,0.15);
  color: #5ea8ff;
  border: 1px solid rgba(94,168,255,0.25);
}

/* Cardio section */
.cardio-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  animation: fadeUp 0.4s ease both;
}

.cardio-card .exercise-illust {
  background: var(--cardio-dim);
}

/* ============================================================
   Dashboard Tab
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.stat-card.wide { grid-column: 1 / -1; }

.stat-value {
  font-family: 'Instrument Serif', serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* Chart containers */
.chart-section {
  margin-bottom: 32px;
}

.chart-section h3 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chart-canvas-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.chart-canvas-wrap canvas {
  width: 100%;
  height: 160px;
}

.chart-label {
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Weight comparison table */
.weight-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}

.weight-table th,
.weight-table td {
  padding: 10px 12px;
  text-align: left;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border);
}

.weight-table th {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.weight-table td:nth-child(2),
.weight-table td:nth-child(3) {
  text-align: center;
  font-weight: 600;
}

.pb-badge {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--cardio-dim);
  color: var(--cardio);
  margin-left: 6px;
  letter-spacing: 0.04em;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-dim);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state p {
  font-size: 0.88rem;
  font-weight: 300;
}

/* ============================================================
   Rest Timer
   ============================================================ */
.timer-fab {
  position: fixed;
  bottom: 84px;
  right: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 500;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.timer-fab:active { transform: scale(0.92); }
.timer-fab svg { width: 24px; height: 24px; }

.timer-fab.running {
  border-color: var(--cardio);
  background: var(--cardio-dim);
}

.timer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,11,14,0.92);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.timer-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.timer-display {
  font-family: 'Instrument Serif', serif;
  font-size: 5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.timer-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 300;
}

.timer-controls {
  display: flex;
  gap: 16px;
}

.timer-btn {
  padding: 14px 32px;
  border-radius: 40px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.timer-btn:active { transform: scale(0.96); }
.timer-btn.primary { background: var(--cardio); color: #0a0b0e; border-color: var(--cardio); }

.timer-config {
  display: flex;
  align-items: center;
  gap: 12px;
}

.timer-config label {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.timer-config input {
  width: 60px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  text-align: center;
  padding: 8px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 500px) {
  .exercise-card, .cardio-card {
    grid-template-columns: 72px 1fr;
    gap: 14px;
    padding: 16px;
  }
  .exercise-illust { width: 72px; height: 72px; }
  .exercise-illust svg { width: 56px; height: 56px; }
  .day-header .day-muscles { display: none; }
  .day-nav { gap: 4px; }
  .day-btn { padding: 8px 14px; font-size: 0.75rem; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { padding: 12px; }
  .stat-value { font-size: 1.6rem; }

  .coach-card { padding: 14px; }
}

/* ============================================================
   Form Tips (Log Tab)
   ============================================================ */
.info-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 700;
  font-style: italic;
  font-family: 'Instrument Serif', serif;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.info-btn:hover, .info-btn.active {
  background: var(--pull-dim);
  border-color: var(--pull);
  color: var(--pull);
}

.form-tips-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--surface2);
  border-radius: 10px;
  margin-bottom: 0;
}

.form-tips-panel.open {
  max-height: 300px;
  padding: 12px 16px;
  margin-bottom: 12px;
}

.form-tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.form-tips-list li {
  font-size: 0.76rem;
  color: var(--text-dim);
  font-weight: 300;
  line-height: 1.6;
  padding: 3px 0 3px 16px;
  position: relative;
}

.form-tips-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pull);
  opacity: 0.4;
}

/* ============================================================
   Substitute Toggle (Log Tab)
   ============================================================ */
.sub-toggle-btn {
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text-dim);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  margin-left: 6px;
}

.sub-toggle-btn:hover {
  background: var(--pull-dim);
  border-color: var(--pull);
  color: var(--pull);
}

.sub-content .log-card-header {
  margin-bottom: 12px;
}

.sub-content .sets-grid {
  margin-bottom: 10px;
}

.badge-sub {
  font-size: 0.58rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(94,168,255,0.15);
  color: #5ea8ff;
  border: 1px solid rgba(94,168,255,0.25);
  margin-left: 6px;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

/* ============================================================
   AI Coach (Dashboard Tab)
   ============================================================ */
.coach-section {
  margin-bottom: 32px;
}

.coach-section h3 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.coach-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.coach-btn:hover {
  border-color: var(--cardio);
  background: var(--cardio-dim);
}

.coach-btn:active { transform: scale(0.98); }

.coach-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.coach-btn .spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top: 2px solid var(--cardio);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.coach-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 12px;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.coach-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.coach-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.coach-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.coach-card-name {
  font-size: 0.88rem;
  font-weight: 600;
  flex: 1;
}

.coach-action-badge {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.coach-action-badge.increase { background: rgba(94,255,142,0.12); color: #5eff8e; }
.coach-action-badge.maintain { background: rgba(94,168,255,0.12); color: #5ea8ff; }
.coach-action-badge.decrease { background: rgba(255,94,94,0.12); color: #ff5e5e; }
.coach-action-badge.deload { background: rgba(255,184,94,0.12); color: #ffb85e; }

.coach-card-values {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.coach-card-values .current {
  color: var(--text-dim);
}

.coach-card-values .arrow {
  color: var(--text-dim);
  font-size: 0.72rem;
}

.coach-card-values .suggested {
  font-weight: 700;
  color: var(--text);
}

.coach-card-reason {
  font-size: 0.76rem;
  color: var(--text-dim);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 10px;
}

.coach-apply-btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.coach-apply-btn:hover {
  background: rgba(94,255,142,0.12);
  border-color: #5eff8e;
  color: #5eff8e;
}

.coach-apply-btn.applied {
  background: rgba(94,255,142,0.12);
  border-color: #5eff8e;
  color: #5eff8e;
  cursor: default;
}

.coach-error {
  background: var(--surface);
  border: 1px solid rgba(255,94,94,0.3);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--push);
}
