/* Unorthodox Ops member app — "Clear guidance. Built around you." design language.
   Near-black premium theme: eyebrow labels, Barlow Condensed headlines with red
   accents, subtle-bordered cards, red-pill tab bar. Mobile-first. */

:root {
  --bg: #070708;
  --surface: #0e0e11;
  --card: #121217;
  --card-2: #17171c;
  --line: rgba(255, 255, 255, 0.09);
  --red: #e10600;
  --red-soft: #ff6b61;
  --salmon: #f0756c;
  --green: #22c55e;
  --text: #f5f5f5;
  --muted: #8e939c;
  --radius: 18px;
  --tabbar-h: 74px;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100dvh;
}

body {
  max-width: 560px;
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

/* ---------- eyebrow labels ---------- */
.eyebrow-red, .eyebrow-green, .eyebrow-muted {
  font-size: 11px; font-weight: 800; letter-spacing: 2px; margin: 0;
}
.eyebrow-red { color: var(--red-soft); }
.eyebrow-green { color: var(--green); }
.eyebrow-muted { color: var(--muted); }

.green-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
  display: inline-block;
}

/* ---------- auth ---------- */
.auth-view {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 22px;
  background:
    radial-gradient(560px 300px at 50% -60px, rgba(225, 6, 0, 0.16), transparent),
    var(--bg);
}
.auth-inner { width: 100%; max-width: 400px; }
.auth-inner > .eyebrow-muted { margin-bottom: 10px; }
.auth-hero {
  font-family: var(--font-display); font-weight: 800;
  font-size: 52px; line-height: 0.95; letter-spacing: 1px; margin: 0 0 10px;
}
.auth-hero span { color: var(--red-soft); }
.auth-sub { color: var(--muted); font-size: 14px; margin: 0 0 26px; line-height: 1.5; }

.auth-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.auth-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.auth-tab {
  flex: 1; padding: 11px; border-radius: 12px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font-weight: 700; font-size: 14px;
  cursor: pointer; font-family: var(--font-body);
}
.auth-tab.on { background: rgba(225, 6, 0, 0.16); color: var(--red-soft); border-color: var(--red); }

.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.field input {
  width: 100%; padding: 13px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  font-size: 16px; font-family: var(--font-body);
}
.field input:focus { outline: none; border-color: var(--red); }

.auth-error {
  color: #ff8a80; font-size: 13px; margin: 0 0 12px; line-height: 1.4;
}
.auth-error.info { color: var(--green); font-weight: 600; }
.auth-note { color: var(--muted); font-size: 12px; text-align: center; margin: 14px 0 0; }
.brand-foot {
  text-align: center; margin: 28px 0 0;
  font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: 3px;
  color: var(--muted);
}
.brand-foot span { color: var(--red); }

/* ---------- buttons ---------- */
.btn-red {
  display: inline-block; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--red), #a80400);
  color: #fff; font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 12px; letter-spacing: 0.5px;
  box-shadow: 0 6px 20px rgba(225, 6, 0, 0.3);
  font-family: var(--font-body);
}
.btn-red:active { transform: scale(0.98); }
.btn-block { width: 100%; }

/* ---------- app frame ---------- */
.app-view { min-height: 100dvh; display: flex; flex-direction: column; }
.app-head {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 14px 18px 12px;
  background: rgba(7, 7, 8, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.head-title {
  font-family: var(--font-display); font-weight: 800; font-size: 26px;
  letter-spacing: 0.5px; margin: 2px 0 0;
}
.head-right { text-align: right; }
.head-right .eyebrow-muted { margin-bottom: 6px; }
.head-row { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.member-badge {
  font-size: 10px; font-weight: 800; letter-spacing: 1.5px;
  padding: 6px 11px; border-radius: 999px;
  background: var(--card-2); color: var(--muted); border: 1px solid var(--line);
}
.member-badge.pro { background: rgba(225, 6, 0, 0.15); color: var(--red-soft); border-color: var(--red); }
.logout-btn {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  padding: 6px 10px; border-radius: 999px;
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  cursor: pointer;
}
.logout-btn:active { transform: scale(0.96); }

.app-main {
  flex: 1;
  padding: 18px 16px calc(var(--tabbar-h) + 96px);
}
.view { display: none; animation: fadeUp 0.25s ease; }
.view.on { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.page-head {
  font-family: var(--font-display); font-weight: 800; font-size: 40px;
  letter-spacing: 0.5px; line-height: 1; margin: 6px 0 16px;
}
.page-head span { color: var(--salmon); }

.section-title {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin: 22px 2px 10px; color: var(--text);
}

/* ---------- coach landing ---------- */
.coach-status {
  display: flex; align-items: center; justify-content: space-between;
  margin: 2px 2px 12px;
}
.status-left { display: flex; align-items: center; gap: 8px; }
.ready { color: var(--muted); font-size: 13px; }

.hero-card {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #16161b 0%, #0e0e12 70%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px 22px;
  min-height: 250px;
  display: flex;
}
.hero-text { position: relative; z-index: 1; max-width: 62%; }
.hero-head {
  font-family: var(--font-display); font-weight: 800;
  font-size: 44px; line-height: 0.98; letter-spacing: 0.5px;
  margin: 10px 0 12px; color: #fff;
}
.hero-head .salmon { color: var(--salmon); }
.hero-sub { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin: 0; }
.hero-art {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 46%; max-width: 210px; opacity: 0.95; pointer-events: none;
}
.hero-art svg { width: 100%; height: auto; display: block; }

.feature-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 0 0 18px 18px; border-top: none;
  margin: -18px 6px 0; padding: 26px 6px 12px;
}
.feature-card { display: flex; gap: 8px; align-items: flex-start; padding: 0 10px; }
.feature-card + .feature-card { border-left: 1px solid var(--line); }
.feature-card b { color: var(--red-soft); font-size: 13px; font-weight: 800; }
.feature-card span {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1px; line-height: 1.5;
  color: var(--muted);
}

.missions-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 26px 2px 12px;
}
.missions-head h2 {
  font-family: var(--font-display); font-weight: 800; font-size: 26px;
  letter-spacing: 0.5px; margin: 0;
}
.missions-head .count {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--card-2); border: 1px solid var(--line);
  color: var(--muted); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.mission-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.mission-card {
  position: relative; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 12px 34px; color: var(--text);
  font-family: var(--font-body); min-height: 148px;
}
.mission-card:active { transform: scale(0.97); border-color: var(--red); }
.mission-card b { color: var(--red-soft); font-size: 13px; font-weight: 800; display: block; margin-bottom: 8px; }
.mission-card .eyebrow-muted { font-size: 9.5px; margin-bottom: 6px; display: block; }
.m-title { font-size: 13.5px; font-weight: 700; line-height: 1.35; display: block; }
.m-arrow {
  position: absolute; right: 12px; bottom: 10px;
  color: var(--red-soft); font-size: 18px; font-weight: 700;
}

.saved-thread {
  width: 100%; text-align: left; cursor: pointer; margin-top: 12px;
  background: linear-gradient(120deg, rgba(34, 197, 94, 0.10), rgba(34, 197, 94, 0.03));
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 16px; padding: 16px;
  color: var(--text); font-family: var(--font-body);
}
.saved-thread:active { transform: scale(0.99); }
.st-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.saved-thread .eyebrow-red { margin-bottom: 6px; }
.saved-thread b { font-size: 16px; font-weight: 700; display: block; }
.saved-thread small { color: var(--muted); font-size: 12px; display: block; margin-top: 4px; }
.saved-thread .open { color: var(--red-soft); font-size: 13px; font-weight: 800; letter-spacing: 1px; white-space: nowrap; }

.disclaimer {
  color: var(--muted); font-size: 11.5px; text-align: center;
  margin: 18px 10px 0; line-height: 1.5;
}

.back-link {
  background: none; border: none; cursor: pointer; padding: 0 0 10px;
  color: var(--muted); font-size: 13px; font-weight: 600; font-family: var(--font-body);
}
.back-link:active { color: var(--red-soft); }

/* ---------- track (legacy placeholder styles removed; see track-styles.css) ---------- */
.activity-chips { display: none; }
.target-chips { display: flex; gap: 8px; margin: 0 0 14px; }
.chip {
  flex: 1; padding: 11px 0; border-radius: 12px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line);
  color: var(--muted); font-weight: 700; font-size: 13px; letter-spacing: 0.5px;
  font-family: var(--font-body);
}
.chip.on { background: rgba(225, 6, 0, 0.16); border-color: var(--red); color: #fff; }

/* (track stage / map placeholder / record button retired — see track-styles.css) */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.stat-card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px;
}
.stat-card small {
  display: block; font-size: 10px; font-weight: 800; letter-spacing: 2px;
  color: var(--muted); margin-bottom: 4px;
}
.stat-card b {
  font-family: var(--font-display); font-weight: 800; font-size: 32px;
  letter-spacing: 0.5px; line-height: 1;
}
.stat-card .unit { font-size: 15px; color: var(--muted); margin-left: 3px; }

.record-btn, .record-btn.recording { display: none; } /* retired — see .start-activity in track-styles.css */
@keyframes pulse { 50% { box-shadow: 0 0 0 14px rgba(225, 6, 0, 0.12); } }
.gps-status { text-align: center; color: var(--muted); font-size: 12px; margin: 0; }
.gps-status.live { color: var(--green); }

/* ---------- feed / cards ---------- */
.feed { display: flex; flex-direction: column; gap: 10px; }
.activity-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px;
}
.activity-card .row-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.activity-ico {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(225, 6, 0, 0.14); color: var(--red-soft);
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
}
.activity-card h4 { margin: 0; font-size: 15px; font-weight: 700; }
.activity-card .date { margin-left: auto; color: var(--muted); font-size: 12px; }
.activity-stats { display: flex; gap: 16px; color: var(--muted); font-size: 13px; }
.activity-stats b { color: var(--text); font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.empty-note { color: var(--muted); font-size: 14px; text-align: center; padding: 26px 10px; }

/* ---------- plans ---------- */
.plan-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; margin-bottom: 12px;
}
.plan-card.active { border-color: var(--red); }
.plan-card h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 24px; letter-spacing: 1px; }
.plan-card .meta { color: var(--muted); font-size: 11px; letter-spacing: 1.5px; font-weight: 700; margin-bottom: 12px; }
.plan-card .plan-desc { color: var(--muted); font-size: 14px; margin: 0 0 14px; line-height: 1.5; }
.plan-card .btn-red { width: 100%; }
.plan-day {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px;
}
.check {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--line); background: transparent; cursor: pointer; padding: 0;
}
.check.done { background: var(--green); border-color: var(--green); }
.plan-day small { color: var(--muted); display: block; font-size: 12px; }

/* ---------- fasting ---------- */
.fast-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
}
.fast-ring { width: 210px; height: 210px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--card-2); stroke-width: 12; }
.ring-fg {
  fill: none; stroke: var(--red); stroke-width: 12; stroke-linecap: round;
  stroke-dasharray: 553; stroke-dashoffset: 553;
  transition: stroke-dashoffset 1s linear;
}
.fast-center { position: absolute; text-align: center; }
.fast-center b { font-family: var(--font-display); font-weight: 800; font-size: 42px; display: block; }
.fast-center small { color: var(--muted); font-size: 12px; }

/* ---------- coach chat ---------- */
.chat { display: flex; flex-direction: column; height: calc(100dvh - 280px); min-height: 380px; }
.chat-messages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px 12px; }
.msg {
  max-width: 85%; padding: 11px 14px; border-radius: 14px;
  font-size: 14px; line-height: 1.5;
}
.msg.user { align-self: flex-end; background: rgba(225, 6, 0, 0.18); border: 1px solid rgba(225,6,0,.4); }
.msg.coach { align-self: flex-start; background: var(--card); border: 1px solid var(--line); }
.msg.coach b { color: var(--red-soft); font-family: var(--font-display); letter-spacing: 1px; display: block; margin-bottom: 4px; font-size: 13px; }
.chat-typing { display: flex; gap: 6px; padding: 10px 4px; }
.chat-typing span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--muted);
  animation: blink 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 50% { opacity: 0.25; } }
.chat-remaining { font-size: 12px; color: var(--muted); padding: 2px 4px 6px; min-height: 18px; }
.chat-bar { display: flex; gap: 8px; padding-top: 8px; }
.chat-bar input {
  flex: 1; padding: 13px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  font-size: 15px; font-family: var(--font-body);
}
.chat-bar input:focus { outline: none; border-color: var(--red); }

.lock-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; padding: 30px 24px; text-align: left;
}
.lock-card .eyebrow-red { margin-bottom: 8px; }
.lock-card h3 {
  font-family: var(--font-display); font-weight: 800; font-size: 40px;
  line-height: 1; letter-spacing: 0.5px; margin: 0 0 12px;
}
.lock-card p { color: var(--muted); font-size: 14px; margin: 0 0 20px; line-height: 1.55; }
.lock-card .btn-red { width: 100%; }

/* ---------- stats ---------- */
.stat-band {
  display: flex; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 10px; margin-bottom: 6px;
}
.stat-band > div { flex: 1; text-align: center; }
.stat-band > div + div { border-left: 1px solid var(--line); }
.stat-band b { font-family: var(--font-display); font-weight: 800; font-size: 34px; display: block; }
.stat-band .unit { font-size: 16px; color: var(--muted); }
.stat-band small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 2px; }

.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: 10px 4px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar i {
  width: 100%; border-radius: 6px 6px 3px 3px; min-height: 4px;
  background: linear-gradient(180deg, var(--red), #a80400);
}
.bar small { color: var(--muted); font-size: 10px; font-weight: 700; }

/* ---------- join banner + tabbar ---------- */
.join-banner {
  position: fixed; bottom: var(--tabbar-h); left: 50%; transform: translateX(-50%);
  width: min(560px, 100%); z-index: 9;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: rgba(14, 14, 17, 0.97); border-top: 1px solid var(--red);
}
.join-banner b { display: block; font-size: 13px; letter-spacing: 1px; }
.join-banner small { color: var(--muted); font-size: 12px; }

.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(560px, 100%); height: var(--tabbar-h); z-index: 10;
  display: flex; gap: 2px;
  background: rgba(7, 7, 8, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
}
.tab {
  flex: 1; border: none; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  font-family: var(--font-body); border-radius: 14px; padding: 6px 0;
}
.tab svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab.on { background: rgba(225, 6, 0, 0.18); color: var(--red-soft); }
.tab:active { transform: scale(0.96); }

/* ---------- nutrition lab ---------- */
.lab-eyebrow { margin-top: 26px; }
.lab-head {
  font-family: var(--font-display); font-weight: 800; font-size: 30px;
  letter-spacing: 0.5px; margin: 2px 0 12px;
}
.fw-card {
  background: linear-gradient(120deg, #16161b 0%, #0e0e12 70%);
  border: 1px solid var(--line); border-radius: 20px;
  padding: 20px; overflow: hidden;
}
.fw-card .eyebrow-red { margin-bottom: 4px; }
.fw-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fw-stat b {
  font-family: var(--font-display); font-weight: 800; font-size: 58px;
  line-height: 1; color: #fff; display: block;
}
.fw-stat span { color: var(--salmon); font-size: 17px; font-weight: 700; }
.fw-stat p { color: var(--muted); font-size: 12.5px; margin: 8px 0 0; max-width: 190px; line-height: 1.5; }
.plate-svg { width: 128px; height: 128px; flex-shrink: 0; }
.fw-legend {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px;
  margin: 16px 0 4px;
}
.fw-legend span { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.fw-legend i { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.fw-strip {
  display: flex; margin: 16px -20px -20px; padding: 13px 20px;
  border-top: 1px solid var(--line);
}
.fw-strip span {
  flex: 1; text-align: center; font-size: 10px; font-weight: 800;
  letter-spacing: 1.5px; color: var(--muted);
}
.fw-strip span + span { border-left: 1px solid var(--line); }
.fw-strip b { color: var(--text); }

.fw-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 6px; }
.fw-tab {
  padding: 13px 4px; border-radius: 14px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line);
  color: var(--muted); font-size: 11.5px; font-weight: 800; letter-spacing: 1px;
  font-family: var(--font-body);
}
.fw-tab.on { background: #1c1c22; color: var(--red-soft); }
.fw-tab:active { transform: scale(0.97); }

.foundation-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.foundation-card {
  position: relative; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 12px 38px; color: var(--text);
  font-family: var(--font-body); min-height: 176px;
}
.foundation-card:active { transform: scale(0.97); border-color: var(--red); }
.foundation-card b { color: var(--red-soft); font-size: 13px; font-weight: 800; display: block; margin-bottom: 8px; }
.foundation-card .eyebrow-muted { font-size: 9.5px; margin-bottom: 6px; display: block; }
.f-title { font-size: 14px; font-weight: 700; line-height: 1.3; display: block; }
.foundation-card small { color: var(--muted); font-size: 11.5px; display: block; margin-top: 4px; line-height: 1.4; }
.f-load {
  position: absolute; right: 12px; bottom: 10px;
  color: var(--red-soft); font-size: 11px; font-weight: 800; letter-spacing: 1px;
}

.plate-builder {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; margin-top: 16px;
}
.plate-builder .tfield { margin-bottom: 14px; }
.plate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.plate-grid .tfield { margin-bottom: 10px; }
.tfield select {
  width: 100%; padding: 13px 38px 13px 14px; border-radius: 12px;
  border: 1px solid var(--line); background-color: var(--bg); color: var(--text);
  font-size: 15px; font-weight: 600; font-family: var(--font-body);
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e939c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.tfield select:focus { outline: none; border-color: var(--red); }
#plate-error { margin: 0 0 12px; }
.save-plate { display: flex; align-items: center; justify-content: center; gap: 8px; }
.save-plate span { font-size: 20px; font-weight: 700; line-height: 1; }
.save-plate:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

.plate-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 8px;
}
.plate-row .pi { flex: 1; min-width: 0; }
.plate-row .pi b { display: block; font-size: 14.5px; font-weight: 700; }
.plate-row .pi small { color: var(--muted); font-size: 12px; display: block; margin-top: 2px; }
.plate-fw {
  font-size: 9.5px; font-weight: 800; letter-spacing: 1px; color: var(--red-soft);
  border: 1px solid rgba(225,6,0,.4); border-radius: 999px; padding: 5px 9px; white-space: nowrap;
}
.empty-plates {
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  padding: 34px 20px; text-align: center;
}
.empty-plates svg { width: 30px; height: 30px; stroke: var(--red-soft); margin-bottom: 10px; }
.empty-plates b {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 22px; letter-spacing: 1.5px; margin-bottom: 6px;
}
.empty-plates p { color: var(--muted); font-size: 13px; margin: 0; }

.disclaimer-red {
  border: 1px solid rgba(225, 6, 0, 0.35); border-radius: 12px;
  background: rgba(225, 6, 0, 0.06); padding: 12px 14px;
  text-align: left; margin: 18px 0 0;
}

/* ---------- fasting: build your window ---------- */
.journey-card {
  background: linear-gradient(120deg, #101418 0%, #0b0e11 70%);
  border: 1px solid var(--line); border-radius: 20px;
  padding: 18px 18px 8px; margin-bottom: 16px; overflow: hidden;
}
.journey-card .eyebrow-green { margin-bottom: 2px; }
.journey-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.journey-text h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 30px;
  letter-spacing: 0.5px; margin: 0 0 4px;
}
.journey-text p { color: var(--muted); font-size: 12.5px; margin: 0; }
.journey-art { width: 46%; max-width: 190px; height: auto; flex-shrink: 0; }

.step-head {
  font-family: var(--font-display); font-weight: 800; font-size: 22px;
  letter-spacing: 1px; margin: 24px 2px 2px; display: flex; align-items: baseline; gap: 10px;
}
.step-head b { color: var(--red-soft); font-size: 20px; }
.step-sub { color: var(--muted); font-size: 12.5px; margin: 0 2px 12px; }
.preset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.preset-grid button {
  padding: 14px 4px 11px; border-radius: 14px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line);
  color: var(--text); font-family: var(--font-body);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.preset-grid button b { font-family: var(--font-display); font-weight: 800; font-size: 24px; }
.preset-grid button span { font-size: 9px; font-weight: 800; letter-spacing: 1.5px; color: var(--muted); }
.preset-grid button.on {
  background: linear-gradient(135deg, var(--red), #a80400); border-color: var(--red);
  box-shadow: 0 6px 18px rgba(225, 6, 0, 0.35);
}
.preset-grid button.on span { color: rgba(255,255,255,.85); }
.preset-grid button:active { transform: scale(0.96); }

.ctx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ctx-grid .tfield { margin-bottom: 0; }

.phase-list { margin: 18px 0 4px; display: flex; flex-direction: column; }
.phase-card { display: flex; gap: 14px; padding: 16px 4px; border-top: 1px solid var(--line); }
.phase-card:last-of-type { border-bottom: 1px solid var(--line); }
.phase-num {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--card-2); border: 1px solid var(--line);
  color: var(--green); font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.phase-card small {
  display: block; font-size: 10px; font-weight: 800; letter-spacing: 1.5px;
  color: var(--muted); margin-bottom: 4px;
}
.phase-card b {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 21px; letter-spacing: 1px; margin-bottom: 6px;
}
.phase-card p { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0; }
.phase-note { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 12px 2px 0; }

.ack-row {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 16px 2px 0; font-size: 13px; color: var(--muted); line-height: 1.5;
  cursor: pointer;
}
.ack-row input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--red); flex-shrink: 0; }

.start-fast { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.start-fast span { font-size: 18px; }
.btn-red:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.fast-note { text-align: center; color: var(--muted); font-size: 12px; margin: 10px 0 0; }

#fast-active-wrap .fast-card { margin-bottom: 12px; }
#btn-fast-end { margin-bottom: 6px; }

.analytics-head {
  font-family: var(--font-display); font-weight: 800; font-size: 26px;
  letter-spacing: 0.5px; margin: 2px 0 12px;
}
.analytics-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.analytics-grid .stat-card small { font-size: 9.5px; }
.analytics-grid .stat-card b { font-size: 30px; }
.analytics-grid .stat-card span { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }

.fast-bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; padding: 10px 4px 0; }
.fbar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.fbar i {
  width: 100%; max-width: 44px; border-radius: 6px 6px 3px 3px; min-height: 4px;
  background: linear-gradient(180deg, #3a3a41, #232328);
  border: 1px solid var(--line);
}
.fbar small { color: var(--muted); font-size: 10px; font-weight: 700; }
