/* ── VARIABLES ─────────────────────────────────────────── */

:root {
  --teal:        #2A9E8F;
  --teal-light:  #E4F4F2;
  --teal-dark:   #1D7A6D;
  --teal-muted:  #82CEC7;

  --bg:          #F7F9F8;
  --surface:     #FFFFFF;
  --surface-2:   #EFF3F2;

  --text-1:      #192927;
  --text-2:      #4A6360;
  --text-3:      #90ADAA;

  --border:      #DDE8E6;
  --border-lt:   #EEF3F2;

  --fast-bg:     #FDFAF3;
  --fast-border: #EAD9B4;
  --fast-amber:  #B87F00;

  --green:       #2A9B5E;
  --green-lt:    #E4F5ED;
  --amber:       #B87F00;
  --amber-lt:    #FDF3DC;
  --red:         #D43F3F;
  --red-lt:      #FCECEC;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:      0 2px 8px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);

  --r-sm:   8px;
  --r:      14px;
  --r-lg:   18px;

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;

  --nav-h:     66px;
  --hdr-h:     76px;
  --safe-b:    env(safe-area-inset-bottom, 0px);
}

/* ── RESET ─────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overscroll-behavior: none; }
button { font-family: var(--font); cursor: pointer; }
input, textarea { font-family: var(--font); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* ── APP SHELL ─────────────────────────────────────────── */

#app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

/* ── HEADER ─────────────────────────────────────────────── */

#app-header {
  flex-shrink: 0;
  background: var(--teal);
  color: white;
  padding: 14px 20px 16px;
  min-height: var(--hdr-h);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background 0.25s ease;
}
#app-header.hdr-fast { background: #9C7200; }
#app-header.hdr-rest { background: #4E8070; }

.header-title    { font-size: 26px; font-weight: 700; letter-spacing: -0.4px; line-height: 1.1; }
.header-subtitle { font-size: 13px; opacity: 0.78; margin-top: 3px; font-weight: 400; }

/* ── MAIN ───────────────────────────────────────────────── */

#main-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 14px calc(14px + var(--nav-h) + var(--safe-b));
  overscroll-behavior-y: contain;
}

/* ── BOTTOM NAV ─────────────────────────────────────────── */

#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  padding-bottom: var(--safe-b);
  z-index: 100;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 0 8px;
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 500;
  transition: color 0.15s;
  min-height: 56px;
}
.nav-btn svg  { width: 22px; height: 22px; }
.nav-btn.active { color: var(--teal); }

/* ── CARDS ──────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border-radius: var(--r);
  padding: 18px;
  margin-bottom: 11px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-lt);
}

/* ── TYPOGRAPHY HELPERS ─────────────────────────────────── */

.field-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-2);
  margin-bottom: 12px;
}
.optional-tag {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  color: var(--text-3);
  margin-left: 4px;
}
.waist-hint {
  font-size: 10px;
  font-weight: 600;
  color: var(--teal);
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
}

/* ── BUTTONS ────────────────────────────────────────────── */

.btn-primary {
  background: var(--teal);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  padding: 15px 24px;
  font-size: 16px;
  font-weight: 600;
  min-height: 52px;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:active { background: var(--teal-dark); transform: scale(0.98); }
.btn-full { width: 100%; }

.btn-secondary {
  background: var(--teal-light);
  color: var(--teal-dark);
  border: none;
  border-radius: var(--r-sm);
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  min-height: 44px;
}

.btn-ghost {
  background: none;
  color: var(--teal);
  border: none;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-sm);
}
.btn-ghost:active { background: var(--teal-light); }

.btn-sm  { font-size: 14px; padding: 8px 14px; min-height: 40px; }
.btn-xs  { font-size: 13px; padding: 4px 10px;  min-height: 32px; }

/* ── FAST DAY CARD ──────────────────────────────────────── */

.fast-day-card {
  background: var(--fast-bg);
  border-color: var(--fast-border);
}
.fast-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.fast-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--fast-amber);
}
.fast-cals { font-size: 24px; font-weight: 800; color: var(--text-1); }
.fast-target { font-size: 14px; font-weight: 400; color: var(--text-2); }

.cal-bar-bg {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin-bottom: 16px;
  overflow: hidden;
}
.cal-bar-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 3px;
  transition: width 0.35s ease, background 0.35s ease;
  min-width: 0;
}

.meal-empty {
  font-size: 14px;
  color: var(--text-3);
  padding: 4px 0 10px;
}

.meal-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-lt);
}
.meal-row:last-child { border-bottom: none; }
.meal-name  { flex: 1; font-size: 15px; }
.meal-cals  { font-size: 14px; font-weight: 600; color: var(--text-2); }
.meal-del {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 20px;
  line-height: 1;
  min-width: 36px;
  min-height: 36px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.meal-del:active { background: var(--red-lt); color: var(--red); }

.add-meal-form {
  display: none;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  flex-wrap: wrap;
}
.add-meal-form.open { display: flex; }

.input-field {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 15px;
  color: var(--text-1);
  background: var(--surface);
  outline: none;
  min-height: 46px;
}
.input-field:focus { border-color: var(--teal); }
.input-sm { flex: 0 0 76px; max-width: 76px; }

.add-meal-btn {
  width: 100%;
  text-align: center;
  padding: 11px;
  border: 1.5px dashed var(--border);
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 14px;
  margin-top: 2px;
}
.add-meal-btn:active { background: var(--teal-light); border-color: var(--teal); color: var(--teal); }

/* ── ACTIVITY CARD ──────────────────────────────────────── */

.day-type-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.badge-training { background: var(--teal-light);  color: var(--teal-dark); }
.badge-fast     { background: var(--amber-lt);     color: var(--amber); }
.badge-rest     { background: var(--surface-2);    color: var(--text-2); }

.activity-name     { font-size: 20px; font-weight: 700; color: var(--text-1); line-height: 1.2; margin-bottom: 3px; }
.activity-location { font-size: 14px; color: var(--text-2); margin-bottom: 16px; }

.workout-status { border-top: 1px solid var(--border-lt); padding-top: 14px; margin-top: 6px; }
.status-row { display: flex; gap: 8px; margin-top: 8px; }

.status-btn {
  flex: 1;
  padding: 12px 6px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  min-height: 50px;
  transition: all 0.15s;
}
.status-btn.sel-yes     { background: var(--green-lt);  border-color: var(--green);  color: var(--green); }
.status-btn.sel-partial { background: var(--amber-lt);  border-color: var(--amber);  color: var(--amber); }
.status-btn.sel-no      { background: var(--red-lt);    border-color: var(--red);    color: var(--red); }

.rest-note { font-size: 14px; color: var(--text-2); margin-top: 8px; }

/* ── PLAN REFERENCE CARD ────────────────────────────────── */

.plan-ref-card { background: var(--teal-light); border-color: var(--teal-muted); }

.plan-ref-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.plan-ref-header .field-label { margin-bottom: 0; }

.ex-ref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(42,158,143,0.14);
}
.ex-ref-row:last-child { border-bottom: none; padding-bottom: 0; }
.ex-ref-name { font-size: 15px; font-weight: 500; }
.ex-ref-sets { font-size: 14px; color: var(--teal-dark); font-weight: 700; }

.plan-ref-empty { display: flex; align-items: center; justify-content: space-between; }
.plan-ref-empty .field-label { margin-bottom: 0; }

/* ── MEDITATION CARD ────────────────────────────────────── */

.meditation-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 0;
  min-height: 56px;
}
.med-check {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  flex-shrink: 0;
  background: var(--surface-2);
  transition: all 0.2s ease;
}
.meditation-btn.done .med-check {
  background: var(--teal);
  border-color: var(--teal);
}
.med-title { display: block; font-size: 16px; font-weight: 600; color: var(--text-1); }
.med-sub   { display: block; font-size: 13px; color: var(--text-2); margin-top: 2px; }

/* ── BODY METRICS ───────────────────────────────────────── */

.metrics-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.metric-label {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
  margin-bottom: 6px;
}

/* Weight toggle */
.weight-toggle-row { margin-bottom: 4px; }
.weight-entry { margin-top: 8px; margin-bottom: 2px; }

/* Blood pressure */
.bp-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 14px;
}
.bp-field { flex: 1; }
.bp-sep {
  font-size: 26px;
  font-weight: 300;
  color: var(--text-3);
  padding-bottom: 10px;
  flex-shrink: 0;
}
.bp-sub-label {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  margin-bottom: 4px;
}

/* Other workout */
.other-workout-section {
  border-top: 1px solid var(--border-lt);
  margin-top: 14px;
  padding-top: 14px;
}
.other-workout-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-1);
  min-height: 36px;
}
.other-workout-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--teal);
  flex-shrink: 0;
}
.other-workout-desc { margin-top: 10px; }

/* Grey out planned activity when substituted */
.activity-name.greyed { color: var(--text-3); }

/* Character counter for limited text fields */
.char-counter {
  font-size: 12px;
  color: var(--text-3);
  text-align: right;
  margin-top: 5px;
  font-weight: 500;
  transition: color 0.15s;
}
.char-counter.near-limit { color: var(--amber); }
.char-counter.at-limit   { color: var(--red);   font-weight: 700; }
.metric-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface);
}
.metric-wrap:focus-within { border-color: var(--teal); }

.metric-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 11px 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  background: transparent;
  min-height: 50px;
  width: 0;
}
.metric-unit {
  padding: 0 10px 0 2px;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── ENERGY LEVEL ───────────────────────────────────────── */

.energy-row { display: flex; gap: 8px; }
.energy-btn {
  flex: 1;
  padding: 13px 4px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-2);
  font-size: 18px;
  font-weight: 700;
  min-height: 54px;
  transition: all 0.15s;
}
.energy-btn.active {
  background: var(--teal-light);
  border-color: var(--teal);
  color: var(--teal-dark);
}
.energy-label {
  text-align: center;
  font-size: 13px;
  color: var(--teal-dark);
  font-weight: 500;
  margin-top: 8px;
  min-height: 18px;
}

/* ── NOTES ──────────────────────────────────────────────── */

.notes-ta {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px;
  font-size: 15px;
  color: var(--text-1);
  background: var(--surface);
  resize: none;
  outline: none;
  line-height: 1.5;
}
.notes-ta:focus { border-color: var(--teal); }
.notes-ta::placeholder { color: var(--text-3); }

/* ── SAVE SECTION ───────────────────────────────────────── */

.save-section { padding: 4px 0 8px; }
.saved-note { text-align: center; font-size: 13px; color: var(--text-3); margin-top: 10px; }

/* ── SUNDAY PROMPT ──────────────────────────────────────── */

.sunday-prompt {
  background: var(--teal-light);
  border-color: var(--teal-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sunday-prompt-text { font-size: 15px; color: var(--teal-dark); font-weight: 500; }

/* ── WEEK VIEW ──────────────────────────────────────────── */

.week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.week-nav-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font-size: 18px;
}
.week-nav-btn:disabled { opacity: 0.3; cursor: default; }
.week-nav-label { font-size: 14px; font-weight: 600; }

.week-grid { display: flex; flex-direction: column; gap: 8px; }

.day-card {
  background: var(--surface);
  border-radius: var(--r);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--border-lt);
  box-shadow: var(--shadow-sm);
  min-height: 72px;
  width: 100%;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.day-card:active { border-color: var(--teal); box-shadow: var(--shadow); }
.day-card.is-today  { border-color: var(--teal); }
.day-card.is-fast   { background: var(--fast-bg); border-color: var(--fast-border); }
.day-card.is-rest   { background: var(--surface-2); }
.day-card.is-future { opacity: 0.6; }

.dc-left { flex-shrink: 0; text-align: center; width: 40px; }
.dc-dow  { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-3); }
.dc-num  { font-size: 24px; font-weight: 800; color: var(--text-1); line-height: 1.1; }
.day-card.is-today .dc-num { color: var(--teal); }

.dc-mid { flex: 1; }
.dc-activity { font-size: 15px; font-weight: 600; color: var(--text-1); line-height: 1.2; }
.dc-location { font-size: 12px; color: var(--text-2); margin-top: 2px; }

.dc-right { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.status-dot.done    { background: var(--green); }
.status-dot.partial { background: var(--amber); }
.status-dot.skipped { background: var(--red); }
.status-dot.open    { background: transparent; border: 2px solid var(--border); }

.dc-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.dc-type.training { color: var(--teal); }
.dc-type.fast     { color: var(--amber); }
.dc-type.rest     { color: var(--text-3); }

/* ── PROGRESS VIEW ──────────────────────────────────────── */

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 11px;
}
.stat-card {
  background: var(--surface);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-lt);
}
.stat-value { font-size: 34px; font-weight: 800; color: var(--teal); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-2); margin-top: 4px; font-weight: 500; }
.stat-sub   { font-size: 11px; color: var(--text-3); margin-top: 2px; }

.chart-card {
  background: var(--surface);
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 11px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-lt);
}
.chart-title { font-size: 14px; font-weight: 700; color: var(--text-1); margin-bottom: 14px; }
.chart-wrap  { position: relative; height: 160px; }
.chart-empty {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  color: var(--text-3);
  font-size: 14px;
}

/* Chart taller when legend is shown (BP chart) */
.chart-wrap-tall { position: relative; height: 190px; }

/* Weight range tabs */
.range-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.range-tab {
  flex: 1;
  padding: 7px 4px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
  transition: all 0.15s;
}
.range-tab.active {
  background: var(--teal-light);
  border-color: var(--teal);
  color: var(--teal-dark);
}

/* Weight goal card */
.goal-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.goal-stats-row {
  display: flex;
  gap: 0;
  margin-top: 2px;
  margin-bottom: 4px;
}
.goal-stat {
  flex: 1;
  text-align: center;
  padding: 10px 4px;
  border-right: 1px solid var(--border-lt);
}
.goal-stat:last-child { border-right: none; }
.goal-stat-value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.1;
}
.goal-stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  margin-top: 3px;
  font-weight: 500;
}

/* Stat card caution / warning border */
.stat-card.caution { border-color: var(--amber); }
.stat-card.warning  { border-color: var(--red); }

/* ── PLAN VIEW ──────────────────────────────────────────── */

.plan-week-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.plan-week-label { font-size: 13px; color: var(--text-2); font-weight: 500; }

.plan-section { margin-bottom: 11px; }
.plan-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.plan-section-title { font-size: 17px; font-weight: 700; color: var(--text-1); }
.plan-section-tag {
  font-size: 11px;
  font-weight: 600;
  background: var(--teal-light);
  color: var(--teal-dark);
  padding: 3px 8px;
  border-radius: 20px;
}

.ex-table { width: 100%; }
.ex-header-row {
  display: grid;
  grid-template-columns: 1fr 52px 68px 36px;
  gap: 6px;
  margin-bottom: 6px;
}
.ex-col-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.ex-row {
  display: grid;
  grid-template-columns: 1fr 52px 68px 36px;
  gap: 6px;
  align-items: center;
  margin-bottom: 7px;
}
.ex-input {
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 10px;
  font-size: 15px;
  color: var(--text-1);
  background: var(--surface);
  outline: none;
  width: 100%;
  min-height: 46px;
}
.ex-input:focus { border-color: var(--teal); }
.ex-input-num { text-align: center; font-weight: 600; }

.ex-del {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 20px;
  min-height: 44px;
  min-width: 36px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ex-del:active { background: var(--red-lt); color: var(--red); }

.add-ex-btn {
  width: 100%;
  text-align: left;
  padding: 12px;
  border: 1.5px dashed var(--border);
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 14px;
  margin-top: 2px;
}
.add-ex-btn:active { background: var(--teal-light); border-color: var(--teal); color: var(--teal); }

.plan-save-btn { margin-top: 4px; }
.template-note { font-size: 13px; color: var(--text-3); margin-bottom: 14px; font-style: italic; }

/* ── TOAST ──────────────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 16px + var(--safe-b));
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--text-1);
  color: white;
  padding: 12px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
  z-index: 1000;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── DESKTOP BORDER ─────────────────────────────────────── */

@media (min-width: 480px) {
  #app { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
  #bottom-nav { border-radius: 0 0 var(--r-lg) var(--r-lg); }
}
