:root {
  color-scheme: only dark;
  --bg: #050505;
  --bg-raised: #121212;
  --bg-soft: #1a1a1a;
  --bg-input: #0c0c0c;
  --line: rgba(255, 255, 255, 0.1);
  --ink: #f2f2f2;
  --muted: #9b9b9b;
  --accent: #6dbf5b;
  --accent-strong: #8fd67d;
  --accent-dim: rgba(109, 191, 91, 0.14);
  --danger: #e07a6a;
  --warn: #d4b56a;
  --radius: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

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

html {
  background-color: #050505 !important;
  background: #050505 !important;
  color-scheme: only dark;
}

html, body { min-height: 100%; }

body {
  font-family: var(--font-body);
  color: #f2f2f2 !important;
  background-color: #050505 !important;
  background: #050505 !important;
  background-image: none !important;
  line-height: 1.45;
  accent-color: var(--accent);
}

/* Solid underlay so nothing behind/around content can flash white */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #050505;
  pointer-events: none;
}

h1, h2, h3, h4, .brand, .section-title, .page-head h1, .panel h2, .stat-value, .trends-title {
  color: var(--ink);
}

a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 5, 5, 0.92) !important;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.brand-icon {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.4rem;
  flex-shrink: 0;
}

.brand:hover { text-decoration: none; color: var(--accent-strong); }

.landing-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  animation: rise 0.9s ease-out both;
}

.landing-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
}

.landing-brand h1 {
  margin: 0;
}

.auth-brand-link {
  display: inline-flex;
  margin-bottom: 1rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a { color: var(--ink); text-decoration: none; opacity: 0.85; }
.nav a:hover { opacity: 1; color: var(--accent-strong); }
.nav-muted { opacity: 0.55 !important; }
.nav-primary {
  opacity: 1 !important;
  color: var(--accent-strong) !important;
  font-weight: 600;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 550;
}

.hero-photo {
  text-align: center;
  padding: 1.75rem 1.25rem;
  margin-bottom: 1.25rem;
  background: var(--bg-raised);
}

.hero-photo-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--accent-strong);
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.hero-photo-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.hero-photo-sub {
  color: var(--muted);
  max-width: 26rem;
  margin: 0 auto 1.25rem;
}

.hero-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.hero-photo-alt {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.btn-photo {
  min-width: 12rem;
  padding: 0.85rem 1.4rem;
  font-size: 1.05rem;
}

body.has-log-bar .main {
  padding-bottom: 5.5rem;
}

body.has-tabbar .main {
  padding-bottom: calc(5.25rem + env(safe-area-inset-bottom));
}

.topbar-brand {
  justify-content: flex-start;
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.15rem;
  padding: 0.45rem 0.5rem calc(0.45rem + env(safe-area-inset-bottom));
  background: rgba(8, 8, 8, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.35rem 0.25rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 10px;
  min-height: 3.1rem;
}

.tabbar-item:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.tabbar-item.is-active {
  color: var(--accent-strong);
}

.tabbar-icon {
  display: grid;
  place-items: center;
  line-height: 0;
}

.tabbar-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.settings-panel {
  padding: 0.35rem 0;
}

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

.settings-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.settings-list li:last-child .settings-link {
  border-bottom: none;
}

.settings-link:hover {
  background: rgba(255, 255, 255, 0.03);
}

.settings-link-icon {
  color: var(--accent-strong);
  flex: 0 0 auto;
  line-height: 0;
}

.settings-link-text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.settings-link-text strong {
  font-weight: 600;
  font-size: 1rem;
}

.settings-link-text span {
  color: var(--muted);
  font-size: 0.88rem;
}

.settings-link-muted .settings-link-icon,
.settings-link-muted strong {
  color: var(--muted);
}

.log-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(5, 5, 5, 0.97) 35%);
  pointer-events: none;
}

.log-bar-btn,
.log-bar-hint {
  pointer-events: auto;
}

.log-bar-btn {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.log-bar-hint {
  color: var(--muted);
  font-size: 0.9rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 1rem;
}

.photo-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 180px;
  border: 1.5px dashed rgba(109, 191, 91, 0.4);
  border-radius: 14px;
  background: var(--bg-input);
  cursor: pointer;
  margin-bottom: 1rem;
  padding: 1.25rem;
  text-align: center;
  position: relative;
}

.photo-drop:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.photo-drop-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 550;
}

.photo-drop-sub { color: var(--muted); font-size: 0.95rem; }

.photo-drop input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.main {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 550;
  letter-spacing: -0.02em;
}

.page-head p { color: var(--muted); margin-top: 0.25rem; }

.panel {
  background: var(--bg-raised) !important;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: none;
  margin-bottom: 1rem;
}

.panel h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 550;
  margin-bottom: 0.85rem;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 720px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
}

.stat {
  background: var(--bg-soft) !important;
  color: var(--ink);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 550;
}

.stat-sub { color: var(--muted); font-size: 0.85rem; margin-top: 0.15rem; }

.stat-cal .stat-label,
.stat-cal .stat-value,
.macro-cal { color: #f0c674 !important; }

.stat-protein .stat-label,
.stat-protein .stat-value,
.macro-p { color: #7ec8e3 !important; }

.stat-carbs .stat-label,
.stat-carbs .stat-value,
.macro-c { color: #8fd67d !important; }

.stat-fat .stat-label,
.stat-fat .stat-value,
.macro-f { color: #e0a06a !important; }

.label-cal,
.field-cal > label { color: #f0c674 !important; }

.label-protein,
.field-protein > label { color: #7ec8e3 !important; }

.label-carbs,
.field-carbs > label { color: #8fd67d !important; }

.label-fat,
.field-fat > label { color: #e0a06a !important; }

.stat-cal {
  border-color: rgba(240, 198, 116, 0.28);
}
.stat-protein {
  border-color: rgba(126, 200, 227, 0.28);
}
.stat-carbs {
  border-color: rgba(143, 214, 125, 0.28);
}
.stat-fat {
  border-color: rgba(224, 160, 106, 0.28);
}

.progress {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.55rem;
}

.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  border-radius: inherit;
}

.progress.over > span { background: linear-gradient(90deg, #c9785f, #e07a6a); }

label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.field { margin-bottom: 0.85rem; }

input, select, textarea, button {
  font: inherit;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  background: var(--bg-input) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  color-scheme: dark;
  caret-color: var(--accent);
}

input::placeholder,
textarea::placeholder {
  color: #777777;
}

option {
  background: #111111;
  color: var(--ink);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--ink) !important;
  -webkit-box-shadow: 0 0 0 1000px #0d0d0d inset !important;
  box-shadow: 0 0 0 1000px #0d0d0d inset !important;
  transition: background-color 99999s ease-out 0s;
  caret-color: var(--accent);
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(109, 191, 91, 0.5);
  border-color: transparent;
}

textarea { min-height: 88px; resize: vertical; }

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
}

.row .field { flex: 1; min-width: 120px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  background: var(--accent);
  color: #061008;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover { background: var(--accent-strong); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover { background: rgba(255,255,255,0.06); color: var(--ink); }

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(224, 122, 106, 0.35);
}

.btn-danger:hover { background: rgba(224, 122, 106, 0.12); }

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.auth-card {
  width: min(400px, 100%);
  background: var(--bg-raised) !important;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.auth-card h1.auth-brand {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.65rem;
}

.auth-card .lede { color: var(--muted); margin-bottom: 1.25rem; }

.auth-footer {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.alert {
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.alert-error {
  background: rgba(224, 122, 106, 0.14);
  color: #f0b5ab;
  border: 1px solid rgba(224, 122, 106, 0.3);
}

.alert-ok {
  background: rgba(155, 207, 138, 0.12);
  color: var(--accent-strong);
  border: 1px solid rgba(155, 207, 138, 0.28);
}

.alert-warn {
  background: rgba(212, 181, 106, 0.12);
  color: #e6d19a;
  border: 1px solid rgba(212, 181, 106, 0.28);
}

.list { list-style: none; }

.list-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.list-item:last-child { border-bottom: none; }

.list-item h3 {
  font-size: 1rem;
  font-weight: 600;
}

.list-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.15rem;
}

.list-actions {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 0.35rem;
  white-space: nowrap;
}

.macros {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 0.88rem;
}

.meal-slot {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.meal-slot:first-of-type {
  margin-top: 0.35rem;
  padding-top: 0;
  border-top: none;
}

.meal-slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.meal-slot-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 550;
  margin: 0;
  color: var(--ink);
}

.meal-slot-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(143, 214, 125, 0.45);
  background: #0c0c0c;
  color: var(--accent-strong);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.meal-slot-add:hover {
  background: rgba(143, 214, 125, 0.12);
  border-color: var(--accent);
  text-decoration: none;
  color: var(--accent-strong);
}

.food-lookup-field {
  position: relative;
  z-index: 2;
  overflow: visible;
}

.food-lookup-input-wrap {
  position: relative;
  z-index: 3;
}

.food-suggest {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  max-height: 16rem;
  overflow: auto;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.food-suggest-status {
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.meal-foods,
.meal-entry,
.meal-add-wrap,
.food-add-wrap,
.list-item.meal-entry,
.list-item.food-item {
  overflow: visible;
}

.food-suggest-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.1rem 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.food-suggest-item:last-child {
  border-bottom: none;
}

.food-suggest-item:hover,
.food-suggest-item.is-active {
  background: rgba(143, 214, 125, 0.1);
}

.food-suggest-name {
  grid-column: 1;
  font-weight: 550;
  font-size: 0.92rem;
}

.food-suggest-meta {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.food-suggest-src {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.food-suggest-empty {
  padding: 0.65rem 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.meal-slot-empty {
  padding: 0.15rem 0 0.35rem;
  font-size: 0.88rem;
}

.meals-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.meals-panel-head h2 {
  margin: 0;
}

.meal-entry {
  flex-direction: column;
  align-items: stretch;
}

.meal-entry-main {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.meal-entry-info {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  min-width: 0;
}

.meal-entry-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: #161616;
  flex: 0 0 auto;
}

.meal-entry-body {
  width: 100%;
}

.meal-foods {
  margin-top: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.meal-foods-hint {
  margin: 0 0 0.5rem;
}

.food-list .list-item {
  padding: 0.55rem 0;
}

.food-name {
  font-size: 0.95rem;
  font-weight: 550;
  margin: 0;
}

.meal-add-food {
  margin-top: 0.5rem;
}

.meal-edit-wrap,
.meal-add-wrap,
.food-add-wrap {
  width: 100%;
}

.meal-edit-form .actions,
.food-edit-form .actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.row-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (max-width: 640px) {
  .row-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .list-actions {
    flex-direction: row;
    align-items: center;
  }
}

.empty {
  color: var(--muted);
  padding: 0.5rem 0;
}

.landing-product {
  justify-content: flex-start;
  padding-top: 2.75rem;
  padding-bottom: 3.5rem;
  max-width: 28rem;
  margin: 0 auto;
  width: 100%;
}

.landing-v2 .landing-hero {
  margin-bottom: 2.75rem;
}

.landing-v2 .landing-brand {
  margin-bottom: 1.35rem;
}

.landing-v2 .landing-tagline {
  margin-top: 0.15rem;
}

.landing-v2 .landing-sub {
  margin-top: 0.85rem;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.landing-hero {
  margin-bottom: 1.5rem;
}

.landing-note {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  animation: rise 0.9s ease-out 0.18s both;
}

.landing-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 1.35rem;
  animation: rise 0.9s ease-out 0.12s both;
}

.landing-cta-plans {
  margin-top: 1.5rem;
}

.landing-try {
  width: 100%;
  margin-bottom: 2.75rem;
  animation: rise 0.9s ease-out 0.2s both;
}

.landing-try-kicker {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
}

.landing-try-form {
  display: grid;
  gap: 0.75rem;
}

.landing-drop {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 1.35rem 1rem 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: #0a0a0a;
  cursor: text;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.landing-drop:focus-within {
  border-color: rgba(143, 214, 125, 0.55);
  background: #0d0d0d;
}

.landing-drop-icon {
  color: var(--accent-strong);
  line-height: 0;
  margin-bottom: 0.15rem;
}

.landing-drop-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

.landing-drop-or {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.landing-drop textarea {
  width: 100%;
  margin-top: 0.35rem;
  text-align: left;
  border-style: solid;
  background: #050505;
}

.landing-photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.landing-photo-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
  justify-self: center;
  padding: 0.15rem;
}

.landing-photo-btn:hover {
  color: var(--accent-strong);
}

.landing-try-msg {
  text-align: center;
  min-height: 1.2em;
}

.landing-result {
  margin-top: 1.35rem;
  padding: 1.25rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0c0c0c;
  text-align: center;
  animation: rise 0.55s ease-out both;
}

.landing-diary {
  margin-top: 1.5rem;
  text-align: left;
  animation: rise 0.7s ease-out 0.15s both;
}

.landing-diary-day {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  padding: 0 0.15rem;
}

.landing-diary-day-label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.landing-diary-meal-type {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 550;
  text-transform: capitalize;
}

.landing-diary-entry {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0c0c0c;
}

.landing-diary.is-live .landing-diary-entry {
  border-color: rgba(143, 214, 125, 0.35);
  box-shadow: 0 0 0 1px rgba(143, 214, 125, 0.08);
}

.landing-diary-thumb {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
  background: #161616;
  display: block;
}

.landing-diary-body {
  min-width: 0;
  padding-top: 0.1rem;
}

.landing-diary-name {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
}

.landing-diary-cal {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-strong);
  font-variant-numeric: tabular-nums;
}

.landing-diary-macros {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}

.landing-diary-notes {
  margin-top: 0.45rem !important;
  font-size: 0.8rem !important;
}

.landing-diary .btn {
  display: block;
  width: 100%;
  margin-top: 0.85rem;
  text-align: center;
}

.landing-result-name {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 550;
}

.landing-result-cal {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--accent-strong);
  font-variant-numeric: tabular-nums;
}

.landing-result-macros {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.landing-result .btn {
  margin-top: 0.35rem;
}

.landing-plans {
  width: 100%;
  margin-bottom: 2rem;
  animation: rise 0.9s ease-out 0.24s both;
}

.landing-plans-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  font-weight: 550;
  margin: 0 0 1.15rem;
  letter-spacing: -0.02em;
}

.landing-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
  text-align: left;
  width: 100%;
}

.landing-compare-col h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.landing-compare-lead {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.landing-compare-pro h3 {
  color: var(--accent-strong);
}

.landing-compare-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.landing-demo {
  width: 100%;
  text-align: left;
  margin-bottom: 1.25rem;
}

.landing-demo h2 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.demo-result {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.demo-result h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.demo-macros {
  margin-bottom: 0.45rem;
}

.landing-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  width: 100%;
  margin-bottom: 1.25rem;
  text-align: left;
}

.landing-tier {
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0c0c0c;
}

.landing-tier-pro {
  border-color: rgba(143, 214, 125, 0.4);
  background: rgba(143, 214, 125, 0.08);
}

.landing-tier h3 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
}

.landing-tier ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.auth-signup-title {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  text-align: left;
}

.auth-signup-help {
  margin: 0 0 0.85rem;
  text-align: left;
}

.landing-product .home-signup {
  width: 100%;
  max-width: none;
}

@media (max-width: 560px) {
  .landing-tiers,
  .landing-compare {
    grid-template-columns: 1fr;
  }
}

.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem 3rem;
}

.landing h1,
.landing-brand h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(2.75rem, 12vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: none;
  animation: rise 0.9s ease-out both;
}

.landing-tagline {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  animation: rise 0.9s ease-out 0.08s both;
}

.landing-sub {
  margin-top: 0.65rem;
  max-width: 28rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  line-height: 1.45;
  animation: rise 0.9s ease-out 0.12s both;
}

.landing-login {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  animation: rise 0.9s ease-out 0.28s both;
}

.landing-login a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.landing-login a:hover {
  color: var(--accent-strong);
}

.btn-google {
  width: 100%;
  background: #1a1a1a !important;
  color: var(--ink) !important;
  border: 1px solid var(--line);
  margin-bottom: 0.25rem;
}

.btn-google:hover {
  background: #242424 !important;
  color: var(--ink) !important;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 1rem 0;
}

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

.home-auth .home-signup {
  margin-top: 1.5rem;
  text-align: left;
  width: min(400px, 100%);
  animation: rise 0.9s ease-out 0.12s both;
}

.auth-card h1.auth-brand {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.65rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(0.4em); }
  to { opacity: 1; transform: translateY(0); }
}

.onboard-panel {
  margin-bottom: 0.85rem;
  padding: 0.85rem 1rem 0.75rem;
  border-color: rgba(143, 214, 125, 0.35);
  background: linear-gradient(165deg, rgba(143, 214, 125, 0.06), transparent 55%);
}

.onboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.onboard-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 550;
  margin: 0;
}

.onboard-sub {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.onboard-progress {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.onboard-dot {
  flex: 1;
  height: 3px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  cursor: default;
}

.onboard-dot.is-active {
  background: var(--accent);
}

.onboard-dot.is-done {
  background: rgba(143, 214, 125, 0.45);
}

.onboard-viewport {
  overflow: visible;
}

.onboard-track {
  display: block;
  width: 100%;
  transform: none !important;
}

.onboard-step {
  display: none;
  padding: 0;
  margin: 0;
  opacity: 1;
  pointer-events: auto;
}

.onboard-step.is-active {
  display: block;
}

.onboard-step h3 {
  margin: 0 0 0.15rem;
  font-size: 1rem;
}

.onboard-step .help {
  margin: 0 0 0.55rem;
}

.onboard-optional {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.85rem;
}

.onboard-toggles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0;
}

.onboard-toggle,
.onboard-card {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0c0c0c;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.onboard-toggle {
  text-align: center;
  font-weight: 650;
  font-size: 1rem;
  padding: 0.75rem 0.85rem;
}

.onboard-toggle.is-selected,
.onboard-card.is-selected {
  border-color: var(--accent);
  background: rgba(143, 214, 125, 0.12);
  box-shadow: inset 0 0 0 1px rgba(143, 214, 125, 0.25);
}

.onboard-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0;
}

.onboard-height-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.onboard-height-label-row label {
  margin-bottom: 0;
}

.onboard-unit-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-input);
}

.onboard-unit-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.28rem 0.55rem;
  cursor: pointer;
}

.onboard-unit-btn.is-selected {
  background: rgba(143, 214, 125, 0.16);
  color: var(--accent-strong);
}

.onboard-height-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 0.4rem;
  align-items: center;
}

.onboard-height-suffix {
  color: var(--muted);
  font-size: 0.85rem;
}

.onboard-activity {
  display: grid;
  gap: 0.35rem;
  margin-top: 0;
}

.onboard-card {
  display: grid;
  gap: 0.1rem;
  padding: 0.6rem 0.75rem;
}

.onboard-card strong {
  font-size: 0.92rem;
}

.onboard-card span {
  color: var(--muted);
  font-size: 0.8rem;
}

.onboard-past {
  display: grid;
  gap: 0.4rem;
  margin-top: 0;
}

.onboard-past-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr 5.5rem;
  gap: 0.4rem;
  align-items: center;
}

.onboard-past-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.onboard-past-row input {
  margin: 0;
  padding: 0.4rem 0.45rem;
}

.onboard-bf-preview {
  margin-top: 0.45rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.92rem;
}

.onboard-nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.onboard-msg {
  flex: 1;
  margin: 0;
  min-height: 0;
}

.onboard-panel.is-done {
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 560px) {
  .onboard-fields {
    grid-template-columns: 1fr;
  }

  .onboard-past-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.trends-panel {
  padding: 0.85rem 1rem 0.75rem;
}

.trends-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
}

.trends-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 550;
  margin: 0;
}

.trends-meta {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.trends-head-compact {
  margin-bottom: 0.45rem;
}

.trend-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.35rem;
}

.trend-chip {
  display: inline-flex;
  align-items: center;
}

.trend-chip.is-editing .trend-chip-btn {
  display: none;
}

.trend-chip-btn {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #0c0c0c;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  line-height: 1.2;
}

.trend-chip-btn:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.trend-chip-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.trend-chip-value {
  font-size: 0.92rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.trend-chip-btn.cal .trend-chip-value { color: #f0c674; }
.trend-chip-btn.protein .trend-chip-value { color: #7ec8e3; }
.trend-chip-btn.carbs .trend-chip-value { color: #8fd67d; }
.trend-chip-btn.fat .trend-chip-value { color: #e0a06a; }

.trend-chip-btn.cal { border-color: rgba(240, 198, 116, 0.35); }
.trend-chip-btn.protein { border-color: rgba(126, 200, 227, 0.35); }
.trend-chip-btn.carbs { border-color: rgba(143, 214, 125, 0.35); }
.trend-chip-btn.fat { border-color: rgba(224, 160, 106, 0.35); }

.trend-chip-edit {
  display: none;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.25rem 0.2rem 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(143, 214, 125, 0.4);
  background: #0c0c0c;
}

.trend-chip.is-editing .trend-chip-edit {
  display: inline-flex;
}

.trend-chip-edit[hidden] {
  display: none !important;
}

.trend-chip-edit input {
  width: 4.5rem;
  margin: 0;
  padding: 0.3rem 0.4rem;
  font-weight: 650;
  border-radius: 8px;
}

.trend-chip-edit .btn {
  padding: 0.3rem 0.55rem;
  font-size: 0.78rem;
}

.trend-chip-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.15rem;
}

.trend-chip-msg {
  margin: 0.15rem 0 0.25rem;
  min-height: 0;
}

.trend-goal-unit {
  color: var(--muted);
  font-size: 0.8rem;
}

.trend-macro-balance {
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin: 0 0 0.35rem;
}

.trend-macro-balance.is-ok { color: var(--accent-strong); }
.trend-macro-balance.is-off { color: #e6d19a; }

.trend-flex-select {
  width: auto;
  min-width: 6rem;
  padding: 0.3rem 0.45rem;
  font-size: 0.8rem;
}

.trends-subhead-compact {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
}

.trends-subhead-compact .trends-subhead-row {
  margin-bottom: 0.25rem;
}

.trends-legend {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.trends-legend-row {
  margin: 0 0 0.35rem;
}

.trends-legend .leg {
  color: var(--muted);
  text-decoration: none;
}

.trends-legend a.leg:hover {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.trends-legend .leg::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 2px;
  margin-right: 0.35rem;
  vertical-align: middle;
  border-radius: 1px;
}

.trends-legend .leg.cal::before { background: #9bcf8a; }
.trends-legend .leg.goal::before {
  background: transparent;
  height: 0;
  border-top: 2px dashed #8fd67d;
  width: 12px;
  border-radius: 0;
}
.trends-legend .leg.today-cal::before { background: #c5ecc0; }
.trends-legend .leg.wt::before {
  background: transparent;
  height: 0;
  border-top: 2px dotted #f0a060;
  width: 12px;
  border-radius: 0;
}
.trends-legend .leg.protein::before { background: #7ec8e3; }
.trends-legend .leg.carbs::before {
  background: transparent;
  height: 0;
  border-top: 2px dashed #8fd67d;
  width: 12px;
  border-radius: 0;
}
.trends-legend .leg.fat::before {
  background: transparent;
  height: 0;
  border-top: 2px dotted #e0a06a;
  width: 12px;
  border-radius: 0;
}
.trends-legend .leg.today-macros::before { display: none; }

.trends-subhead {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.trends-subhead-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.trends-subtitle {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 550;
  margin: 0;
  color: var(--ink);
}

.trends-legend-row {
  flex-wrap: wrap;
  row-gap: 0.35rem;
}


.chart-wrap-axis {
  height: 200px;
}

.chart-wrap {
  width: 100%;
  height: 220px;
  margin-top: 0.35rem;
  position: relative;
}

.chart-wrap-dense {
  height: 184px;
  margin-top: 0.35rem;
  border-radius: 10px;
  background: #0a0a0a;
  border: 1px solid var(--line);
  overflow: hidden;
}

.chart-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.preview {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin: 0.75rem 0;
  display: none;
}

.preview.show { display: block; }

.hidden { display: none !important; }

.inline-form {
  display: grid;
  gap: 0.75rem;
}

.help { color: var(--muted); font-size: 0.9rem; margin-top: 0.35rem; }

/* Hard lock: every major surface stays near-black (beats cached / UA light paints) */
html,
body,
.landing,
.auth-wrap,
.main {
  background: #050505 !important;
  background-color: #050505 !important;
  color: #f2f2f2 !important;
}

.topbar,
.panel,
.auth-card,
.trends-panel,
.log-bar-hint {
  background: #121212 !important;
  background-color: #121212 !important;
  color: #f2f2f2 !important;
}

.stat,
.photo-drop,
.btn-google,
.chart-wrap-dense {
  background: #0c0c0c !important;
  background-color: #0c0c0c !important;
  color: #f2f2f2 !important;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
  background: #0c0c0c !important;
  background-color: #0c0c0c !important;
  color: #f2f2f2 !important;
}

@media (prefers-color-scheme: light) {
  :root { color-scheme: only dark; }
  html, body {
    background: #050505 !important;
    color: #f2f2f2 !important;
  }
}

.day-nav {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 3rem;
  align-items: center;
  justify-items: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto 1.15rem;
  padding: 0.75rem 0.55rem;
  background: #121212 !important;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.day-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #0c0c0c !important;
  color: var(--ink) !important;
  text-decoration: none !important;
  font-size: 1.25rem;
  line-height: 1;
  justify-self: center;
}

.day-nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent-strong) !important;
  background: #161616 !important;
}

.day-nav-center {
  text-align: center;
  min-width: 0;
  width: 100%;
}

.day-nav-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 550;
  color: var(--ink);
  line-height: 1.15;
}

.day-nav-sub {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.day-nav-today-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--accent-strong);
}

/* Guest trial */
.guest-banner {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(143, 214, 125, 0.28);
  background: rgba(109, 191, 91, 0.08);
}

.guest-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.guest-banner-text {
  margin: 0;
  font-size: 0.95rem;
}

.guest-banner-meta {
  color: var(--muted);
  font-weight: 400;
}

.guest-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.guest-banner-timer {
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  margin-right: 0.25rem;
}

.guest-ai-gate {
  padding: 0.25rem 0 0.5rem;
}

.guest-ai-title {
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
}

.guest-wall {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.guest-wall-card {
  width: min(420px, 100%);
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.guest-wall-card h2 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
}

.guest-wall-card p {
  color: var(--muted);
  margin: 0 0 1.15rem;
}

.guest-wall-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

body.guest-locked {
  overflow: hidden;
}

body.guest-locked .main,
body.guest-locked .topbar,
body.guest-locked .tabbar {
  pointer-events: none;
  user-select: none;
}

body.guest-locked .guest-wall {
  pointer-events: auto;
  user-select: auto;
}
