@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Barlow:wght@400;500;600;700;800;900&display=swap');

/* ── Variables ── */
:root,
[data-theme="dark"] {
  --bg:       #0A0A0A;
  --surf:     #111111;
  --surf2:    #1A1A1A;
  --surf3:    #242424;
  --t1:       #FFFFFF;
  --t2:       rgba(255,255,255,0.55);
  --t3:       rgba(255,255,255,0.30);
  --brand:    #C8FF00;
  --bdim:     rgba(200,255,0,0.12);
  --bglow:    0 0 24px rgba(200,255,0,0.25);
  --teal:     #2DD4BF;
  --amber:    #F59E0B;
  --red:      #EF4444;
  --green:    #22C55E;
  --blue:     #38BDF8;
  --border:   rgba(255,255,255,0.07);
  --input-bg: #1A1A1A;
}

[data-theme="light"] {
  --bg:       #F0F0F0;
  --surf:     #FFFFFF;
  --surf2:    #E8E8E8;
  --surf3:    #DCDCDC;
  --t1:       #0A0A0A;
  --t2:       rgba(0,0,0,0.60);
  --t3:       rgba(0,0,0,0.38);
  --brand:    #6AAF00;
  --bdim:     rgba(100,170,0,0.10);
  --bglow:    0 0 24px rgba(100,170,0,0.20);
  --teal:     #0D9488;
  --amber:    #D97706;
  --red:      #DC2626;
  --green:    #16A34A;
  --blue:     #0284C7;
  --border:   rgba(0,0,0,0.09);
  --input-bg: #EBEBEB;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  background: var(--bg);
  color: var(--t1);
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
a { text-decoration: none; color: inherit; }
input { font: inherit; }

/* ── Utility ── */
.fd    { font-family: 'Barlow Condensed', sans-serif; }
.hidden { display: none !important; }
.page  { max-width: 430px; margin: 0 auto; min-height: 100vh; padding-bottom: 96px; }

/* ── Nav bar ── */
.navbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
}
.navbar-inner { max-width: 430px; margin: 0 auto; display: flex; }
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 10px 0 14px;
  color: var(--t3); transition: color 0.15s;
}
.nav-item.active { color: var(--brand); }
.nav-item .nav-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px; font-weight: 700; letter-spacing: 0.15em;
}
.nav-item svg { display: block; }

/* ── Buttons ── */
.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; border-radius: 16px; border: none; cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
  letter-spacing: 0.1em; transition: transform 0.1s, opacity 0.1s;
}
.btn:active { transform: scale(0.97); }

.btn-brand {
  height: 56px; font-size: 18px;
  background: var(--brand); color: #0A0A0A;
  box-shadow: var(--bglow);
}
.btn-brand-sm {
  height: 48px; font-size: 15px;
  background: var(--brand); color: #0A0A0A;
  box-shadow: var(--bglow);
}
.btn-ghost {
  height: 48px; font-size: 15px;
  background: transparent; color: var(--t3);
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-ghost:active { opacity: 0.6; }
.btn-teal {
  height: 56px; font-size: 18px;
  background: var(--teal); color: #0A0A0A;
  box-shadow: 0 0 24px rgba(45,212,191,0.3);
}
.btn-surface {
  height: 44px; font-size: 14px;
  background: var(--surf2); color: var(--t2);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* ── Cards ── */
.card {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.card-p { padding: 20px; }

/* ── Section label ── */
.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700;
  color: var(--t3); letter-spacing: 0.18em; text-transform: uppercase;
}

/* ── Progress bar ── */
.bar-track { height: 4px; background: rgba(255,255,255,0.07); border-radius: 2px; overflow: hidden; }
.bar-fill  { height: 100%; border-radius: 2px; transition: width 0.5s cubic-bezier(.4,0,.2,1); }
.bar-brand { background: var(--brand); box-shadow: 0 0 8px rgba(200,255,0,0.4); }
.bar-teal  { background: var(--teal);  box-shadow: 0 0 8px rgba(45,212,191,0.4); }
.bar-amber { background: var(--amber); box-shadow: 0 0 8px rgba(245,158,11,0.4); }
.bar-red   { background: var(--red);   box-shadow: 0 0 8px rgba(239,68,68,0.4);  }
.bar-blue  { background: var(--blue);  box-shadow: 0 0 8px rgba(56,189,248,0.4); }

/* ── Sliders ── */
input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 3px;
  outline: none; cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 8px rgba(200,255,0,0.5); cursor: pointer;
}
input[type=range].slider-red::-webkit-slider-thumb {
  background: var(--red); box-shadow: 0 0 8px rgba(239,68,68,0.5);
}
.slider-brand { background: linear-gradient(to right, var(--brand) var(--pct,0%), var(--surf3) var(--pct,0%)); }
.slider-red   { background: linear-gradient(to right, var(--red)   var(--pct,0%), var(--surf3) var(--pct,0%)); }

/* ── Home page ── */
.home-header { padding: 48px 20px 24px; border-bottom: 1px solid var(--border); }
.home-header .fitflow-label { font-size: 13px; color: var(--brand); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 4px; }
.home-header h1  { font-size: 38px; line-height: 1; color: var(--t1); }
.home-header .date-label { font-size: 13px; color: var(--t3); margin-top: 4px; }

.week-strip { display: flex; gap: 8px; padding: 20px; }
.week-day {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 4px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surf);
}
.week-day.active { border-color: rgba(200,255,0,0.3); background: var(--bdim); }
.week-day.done   { border-color: rgba(200,255,0,0.2); }
.week-day .day-abbr { font-size: 9px; color: var(--t3); letter-spacing: 0.1em; font-weight: 700; font-family: 'Barlow Condensed', sans-serif; }
.day-ring { position: relative; width: 28px; height: 28px; }
.day-ring svg { position: absolute; top: 0; left: 0; transform: rotate(-90deg); }
.day-ring .day-letter { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; }

.today-card { margin: 0 16px; }
.today-card .accent-bar { height: 3px; background: var(--brand); box-shadow: 0 0 8px rgba(200,255,0,0.5); }
.today-card .card-body  { padding: 20px; }
.today-card .workout-type { font-size: 11px; color: var(--brand); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 6px; }
.today-card .workout-name { font-size: 26px; color: var(--t1); line-height: 1.1; margin-bottom: 16px; }
.today-card .exercise-count { font-size: 13px; color: var(--t3); margin-bottom: 20px; }
.rest-day-card { margin: 0 16px; padding: 32px 20px; text-align: center; }
.rest-day-card .rest-icon { font-size: 48px; margin-bottom: 16px; }

/* ── Workout flow ── */
.workout-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(16px);
  padding: 48px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.workout-header .back-btn { font-size: 13px; color: var(--t3); margin-bottom: 8px; display: flex; align-items: center; gap: 4px; }
.workout-header .phase-label { font-size: 11px; color: var(--brand); letter-spacing: 0.2em; text-transform: uppercase; }
.workout-header h2 { font-size: 28px; color: var(--t1); line-height: 1.1; margin: 4px 0 12px; }
.set-progress-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.set-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--surf3); transition: background 0.2s; }
.set-dot.done { background: var(--brand); box-shadow: 0 0 6px rgba(200,255,0,0.5); }

/* Pre-workout */
.pre-steps { padding: 24px 16px; display: flex; flex-direction: column; gap: 12px; }
.pre-step {
  padding: 20px; background: var(--surf);
  border: 1px solid var(--border); border-radius: 18px;
  display: flex; align-items: flex-start; gap: 16px;
}
.pre-step.active { border-color: rgba(200,255,0,0.25); background: rgba(200,255,0,0.04); }
.pre-step.done   { opacity: 0.45; }
.step-num {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: var(--surf3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 800;
}
.pre-step.active .step-num { background: var(--brand); color: #0A0A0A; border-color: var(--brand); }
.pre-step.done   .step-num { background: rgba(200,255,0,0.12); color: var(--brand); border-color: rgba(200,255,0,0.2); }
.step-text { font-size: 15px; color: var(--t1); font-weight: 600; }

/* Exercise screen */
.exercise-content { padding: 24px 16px; display: flex; flex-direction: column; gap: 16px; }
.machine-row { display: flex; gap: 8px; flex-wrap: wrap; }
.machine-chip {
  padding: 6px 12px; border-radius: 20px;
  background: rgba(200,255,0,0.07); border: 1px solid rgba(200,255,0,0.15);
  font-size: 12px; color: rgba(200,255,0,0.7);
}
.instruction-list { display: flex; flex-direction: column; gap: 10px; }
.instruction-item { display: flex; align-items: flex-start; gap: 12px; }
.instruction-num {
  width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0;
  background: var(--bdim); border: 1px solid rgba(200,255,0,0.15);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 800; color: var(--brand);
}

/* Set tracker */
.set-tracker { padding: 20px; background: var(--surf); border: 1px solid var(--border); border-radius: 20px; }
.num-cards { display: flex; gap: 12px; margin-bottom: 16px; }
.num-card { flex: 1; }
.num-card label { font-size: 11px; color: var(--t3); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; display: block; font-family: 'Barlow Condensed', sans-serif; }
.num-card-inner { background: var(--surf2); border: 1px solid var(--border); border-radius: 16px; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.num-card-inner input {
  width: 100%; text-align: center; background: transparent; border: none; outline: none;
  font-family: 'Barlow Condensed', sans-serif; font-size: 42px; font-weight: 800; color: var(--t1);
  padding: 8px 0;
}
.num-card-inner input::-webkit-inner-spin-button,
.num-card-inner input::-webkit-outer-spin-button { -webkit-appearance: none; }
.num-card-inner .num-btns { display: flex; width: 100%; }
.num-card-inner .num-btn { flex: 1; height: 40px; font-size: 20px; font-weight: 800; background: var(--surf2); border: none; color: var(--t2); cursor: pointer; }
.num-card-inner .num-btn.plus { background: var(--brand); color: #0A0A0A; }
.num-card-inner .num-btn:active { opacity: 0.7; }

.slider-row { margin-bottom: 14px; }
.slider-row .slider-label { display: flex; justify-content: space-between; margin-bottom: 8px; }
.slider-row .slider-label span { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; color: var(--t3); letter-spacing: 0.1em; text-transform: uppercase; }
.slider-row .slider-val { font-family: 'Barlow Condensed', sans-serif; font-size: 14px; color: var(--brand); font-weight: 800; }

/* Rest timer */
.rest-view { display: flex; flex-direction: column; align-items: center; padding: 60px 20px; gap: 32px; }
.rest-ring { position: relative; width: 220px; height: 220px; }
.rest-ring svg { transform: rotate(-90deg); }
.rest-seconds { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rest-seconds .big-time { font-family: 'Barlow Condensed', sans-serif; font-size: 72px; font-weight: 900; line-height: 1; }
.rest-seconds .rest-label-sm { font-size: 12px; color: var(--t3); letter-spacing: 0.15em; text-transform: uppercase; }

/* Video embed */
.video-container { border-radius: 14px; overflow: hidden; background: var(--surf3); aspect-ratio: 16/9; width: 100%; }
.video-container iframe,
.video-container video,
.video-container img { width: 100%; height: 100%; object-fit: cover; border: none; }
.video-input { display: flex; flex-direction: column; gap: 10px; }
.video-input input {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  background: var(--surf2); border: 1px solid var(--border);
  color: var(--t1); font-size: 14px; outline: none;
}
.video-input input:focus { border-color: rgba(200,255,0,0.3); }
.video-input input::placeholder { color: var(--t3); }

/* Post-workout */
.post-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.post-item:last-child { border-bottom: none; }
.post-check {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: var(--surf2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.post-check.checked { background: rgba(45,212,191,0.15); border-color: rgba(45,212,191,0.3); }

/* Complete screen */
.complete-hero { padding: 48px 20px 32px; text-align: center; }
.complete-hero .crushed { font-size: 56px; line-height: 1; color: var(--brand); }
.complete-hero .subtitle { font-size: 16px; color: var(--t3); margin-top: 8px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px 16px; }
.stat-cell { background: var(--surf); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.stat-cell .stat-val { font-family: 'Barlow Condensed', sans-serif; font-size: 28px; font-weight: 900; color: var(--brand); }
.stat-cell .stat-lbl { font-size: 12px; color: var(--t3); margin-top: 4px; }

/* ── Progress page ── */
.progress-header { padding: 48px 20px 24px; border-bottom: 1px solid var(--border); }
.progress-header .fitflow-label { font-size: 13px; color: var(--brand); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 4px; }
.progress-header h1 { font-size: 38px; line-height: 1; }
.week-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; padding: 20px 16px 0; }
.wg-cell {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 2px; border-radius: 10px; background: var(--surf); border: 1px solid var(--border);
}
.wg-cell.done { border-color: rgba(200,255,0,0.2); background: var(--bdim); }
.wg-cell .wg-abbr { font-family: 'Barlow Condensed', sans-serif; font-size: 8px; color: var(--t3); letter-spacing: 0.08em; text-transform: uppercase; }
.wg-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--surf3); display: flex; align-items: center; justify-content: center; }
.wg-cell.done .wg-dot { background: var(--brand); box-shadow: 0 0 8px rgba(200,255,0,0.4); }
.pain-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.pain-chip { padding: 10px; border-radius: 12px; text-align: center; }
.pain-chip .pain-val { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 900; }
.pain-chip .pain-lbl { font-size: 10px; color: var(--t3); margin-top: 2px; }

/* ── Diet page ── */
.diet-header { padding: 48px 20px 24px; border-bottom: 1px solid var(--border); }
.diet-header .fitflow-label { font-size: 13px; color: var(--brand); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 4px; }
.diet-header h1 { font-size: 38px; line-height: 1; }
.diet-header .date-label { font-size: 13px; color: var(--t3); margin-top: 4px; }
.macro-bar-row { display: flex; flex-direction: column; gap: 14px; }
.macro-bar-item { display: flex; flex-direction: column; gap: 6px; }
.macro-bar-header { display: flex; justify-content: space-between; align-items: baseline; }
.macro-bar-header .macro-lbl { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; color: var(--t3); letter-spacing: 0.14em; text-transform: uppercase; }
.macro-bar-header .macro-val { font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 800; }
.macro-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.macro-chip {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 9px; border-radius: 100px; font-size: 11px; font-weight: 700;
}
.macro-chip-sm { font-size: 10px; padding: 2px 7px; }
.meal-item-row { display: flex; align-items: flex-start; gap: 0; flex-direction: column; gap: 8px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.meal-item-row:last-child { border-bottom: none; padding-bottom: 0; }
.meal-item-header { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.meal-item-name { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.85); }
.meal-item-qty  { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; color: var(--t3); letter-spacing: 0.04em; }
.meal-card-header { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; cursor: pointer; }
.meal-icon-box {
  width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
  background: var(--surf2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.meal-icon-box.done-icon { background: rgba(200,255,0,0.12); border-color: rgba(200,255,0,0.25); }
.meal-card-body { display: none; }
.meal-card-body.open { display: block; }
.meal-card-body-inner { padding: 0 20px 16px; display: flex; flex-direction: column; gap: 14px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 16px; }

/* Water tracker */
.glass-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.glass-btn {
  width: 34px; height: 34px; border-radius: 9px; font-size: 15px;
  background: var(--surf2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform 0.1s;
}
.glass-btn:active { transform: scale(0.88); }
.glass-btn.filled { background: rgba(56,189,248,0.15); border-color: rgba(56,189,248,0.4); }

/* ── Misc ── */
.dot-brand { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex-shrink: 0; box-shadow: 0 0 6px rgba(200,255,0,0.5); }
.check-circle {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--bdim); border: 1px solid rgba(200,255,0,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.tag {
  display: inline-flex; padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.tag-brand { background: var(--bdim); color: var(--brand); border: 1px solid rgba(200,255,0,0.2); }
.tag-teal  { background: rgba(45,212,191,0.1); color: var(--teal);  border: 1px solid rgba(45,212,191,0.2); }

/* ── Theme toggle button ── */
.theme-btn {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--surf2); border: 1px solid var(--border);
  font-size: 18px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; margin-top: 4px;
  transition: background 0.2s, border-color 0.2s;
}
.theme-btn:active { transform: scale(0.92); }

/* ── Food logger (diet page) ── */
.food-entry-form {
  background: var(--surf2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 10px;
}
.food-entry-form.hidden { display: none; }

.food-input {
  width: 100%; padding: 12px 14px;
  border-radius: 12px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--t1); font-size: 15px; outline: none;
  transition: border-color 0.15s;
}
.food-input:focus { border-color: rgba(200,255,0,0.35); }
.food-input::placeholder { color: var(--t3); }
[data-theme="light"] .food-input:focus { border-color: rgba(100,170,0,0.4); }

.food-input-sm {
  padding: 10px 12px; font-size: 14px; border-radius: 10px;
}
/* hide number spinners */
.food-input-sm::-webkit-inner-spin-button,
.food-input-sm::-webkit-outer-spin-button { -webkit-appearance: none; }

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

.food-macro-field label {
  display: block; font-size: 10px; color: var(--t3);
  letter-spacing: 0.12em; text-transform: uppercase;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  margin-bottom: 5px;
}

.food-qty-row {
  display: flex; gap: 10px;
}

/* ── Autocomplete dropdown ── */
.autocomplete-dropdown {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.autocomplete-dropdown.hidden { display: none; }

.autocomplete-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 14px; cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:active,
.autocomplete-item:hover { background: var(--surf2); }

.ac-name   { font-size: 14px; font-weight: 600; color: var(--t1); }
.ac-macros { font-size: 11px; color: var(--t3); font-family: 'Barlow Condensed', sans-serif; letter-spacing: 0.04em; }

/* ── Logged food row ── */
.logged-food-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding-bottom: 12px; margin-bottom: 4px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
[data-theme="dark"] .logged-food-row { border-bottom-color: rgba(255,255,255,0.04); }
.logged-food-row:last-of-type { border-bottom: none; padding-bottom: 4px; }

.remove-food-btn {
  flex-shrink: 0; width: 28px; height: 28px;
  border-radius: 8px; background: transparent;
  border: 1px solid var(--border);
  color: var(--t3); font-size: 11px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px; transition: background 0.15s, color 0.15s;
}
.remove-food-btn:active { background: rgba(239,68,68,0.12); color: var(--red); border-color: rgba(239,68,68,0.3); }
