/* ProteinClarity public site. Warm, confident, never clinical. Deep raspberry on
   offwhite, ink #1B0E15, system/Inter type (BUILD-LOG brand conventions).
   The accent custom property keeps the fork's --green NAME (hundreds of
   references); its VALUE is ProteinClarity raspberry. */

/* Light is the brand-forward default: warm offwhite paper, deep raspberry, near-black ink. */
:root {
  color-scheme: light;
  --bg: #fbf7f9;
  --bg-2: #f5edf1;
  --surface: #ffffff;
  --surface-2: #f7f0f3;
  --surface-3: #f0e6eb;
  --glass: rgba(252, 248, 250, 0.74);
  --ink: #1b0e15;
  --ink-display: #1b0e15;
  --ink-2: #46303c;
  --muted: #6f5a66;
  /* WCAG AA: >=4.5:1 on every light surface (bg, panel white, surface-2/3) -
     this styles table headers, sub-labels, and placeholders. */
  --faint: #6d5566;
  --line: #ead9e1;
  --line-2: #dcc8d2;
  --track: #e8dae1;
  --green: #be185d;
  --green-bright: #9d174d;
  --green-ink: #ffffff;
  --green-soft: rgba(190, 24, 93, 0.09);
  --green-line: rgba(190, 24, 93, 0.28);
  /* Raw accent channels for glows/washes with bespoke alphas:
     rgba(var(--green-rgb), a). Keep in sync with --green / --honey. */
  --green-rgb: 190, 24, 93;
  --honey-rgb: 176, 127, 46;
  --honey: #b07f2e;
  /* Dark enough for AA small text on the honey-soft pills (demo pill, chips). */
  --honey-bright: #7d5717;
  --honey-soft: rgba(176, 127, 46, 0.12);
  --honey-line: rgba(176, 127, 46, 0.3);
  --blue: #3f72a8;
  --red: #b6493c;
  --amber: #a8782a;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1080px;
  --shadow: 0 24px 60px -28px rgba(27, 14, 21, 0.22);
  --shadow-sm: 0 12px 30px -18px rgba(27, 14, 21, 0.16);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* Dark: plum near-black, off-white text, brighter raspberry. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1b0e15;
  --bg-2: #120710;
  --surface: #251521;
  --surface-2: #2d1a28;
  --surface-3: #36202f;
  --glass: rgba(37, 21, 33, 0.6);
  --ink: #f6ecf1;
  --ink-display: #faf3f7;
  --ink-2: #ddc7d2;
  --muted: #b292a3;
  /* AA >=4.5:1 against every dark surface (see the light-theme note). */
  --faint: #b497a7;
  --line: #3a2533;
  --line-2: #4a3140;
  --track: #3c2734;
  --green: #f06ba8;
  --green-bright: #ff8fc0;
  --green-ink: #330a1e;
  --green-soft: rgba(240, 107, 168, 0.14);
  --green-line: rgba(240, 107, 168, 0.32);
  --green-rgb: 240, 107, 168;
  --honey-rgb: 224, 179, 106;
  --honey: #e0b36a;
  --honey-bright: #efc886;
  --honey-soft: rgba(224, 179, 106, 0.14);
  --honey-line: rgba(224, 179, 106, 0.3);
  --blue: #7fb3f0;
  --red: #ef8a7d;
  --amber: #e0b24a;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.72);
  --shadow-sm: 0 12px 30px -18px rgba(0, 0, 0, 0.7);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1000px 580px at 84% -12%, rgba(var(--honey-rgb), 0.1), transparent 60%),
    radial-gradient(820px 520px at 8% 2%, rgba(var(--green-rgb), 0.09), transparent 58%),
    radial-gradient(900px 600px at 10% 106%, rgba(var(--honey-rgb), 0.08), transparent 60%),
    radial-gradient(1200px 760px at 62% 124%, rgba(var(--green-rgb), 0.07), transparent 60%);
}

:root[data-theme="dark"] body::before {
  background:
    radial-gradient(1000px 580px at 84% -12%, rgba(var(--honey-rgb), 0.12), transparent 60%),
    radial-gradient(820px 520px at 8% 2%, rgba(var(--green-rgb), 0.08), transparent 58%),
    radial-gradient(900px 600px at 10% 106%, rgba(var(--honey-rgb), 0.06), transparent 60%),
    radial-gradient(1200px 760px at 62% 124%, rgba(var(--green-rgb), 0.07), transparent 60%);
}

a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.16s ease;
}

a:hover {
  color: var(--green-bright);
}

h1,
h2,
h3,
p {
  margin: 0;
}

::selection {
  background: var(--green-soft);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--green) 70%, transparent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- buttons ---------- */

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--green);
  background-image: linear-gradient(180deg, var(--green-bright), var(--green));
  color: var(--green-ink);
  font: inherit;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease,
    border-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

a.button {
  color: var(--green-ink);
}

button:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -10px rgba(var(--green-rgb), 0.6);
  color: var(--green-ink);
}

button:active,
.button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

button + button {
  margin-left: 8px;
}

button.ghost {
  background: transparent;
  background-image: none;
  border-color: var(--line-2);
  color: var(--ink);
}

button.ghost:hover {
  border-color: var(--green-line);
  background: var(--surface-2);
  box-shadow: none;
  color: var(--ink);
}

.button.ghost {
  background: transparent;
  background-image: none;
  border-color: var(--line-2);
  color: var(--ink);
}

button.danger {
  background: transparent;
  background-image: none;
  border-color: rgba(239, 125, 112, 0.45);
  color: var(--red);
}

button.danger:hover {
  background: rgba(239, 125, 112, 0.1);
  border-color: var(--red);
  color: var(--red);
  box-shadow: none;
}

/* ---------- layout shells ---------- */

.landing,
.auth,
.settings,
.onboarding,
.admin,
.doc {
  width: min(var(--maxw), calc(100vw - 40px));
  margin: 0 auto;
  padding: 0 0 72px;
}

/* ---------- nav ---------- */

nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 8px;
  padding: 16px 4px;
}

nav::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  z-index: -1;
  pointer-events: none;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}

nav > strong,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  flex: none;
}

.brand-bowl {
  width: 26px;
  height: 26px;
  fill: var(--green);
  filter: drop-shadow(0 2px 4px rgba(var(--green-rgb), 0.28));
}

nav span,
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  color: var(--ink-2);
  font-weight: 550;
  white-space: nowrap;
}

nav a:not(.button) {
  padding: 7px 11px;
  border-radius: 8px;
}

nav a:not(.button):hover {
  color: var(--ink);
  background: var(--surface-2);
}

nav .button {
  padding: 9px 15px;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  flex: none;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.theme-toggle:hover {
  color: var(--green);
  border-color: var(--green-line);
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .ic-moon {
  fill: currentColor;
  stroke: none;
}

.theme-toggle .ic-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .ic-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .ic-moon {
  display: none;
}

/* ---------- hero ---------- */

.hero {
  max-width: 760px;
  padding: 56px 0 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 44px;
  padding: 60px 0 36px;
  position: relative; /* anchors the full-width hero word-field behind everything */
}

.hero-copy {
  max-width: 560px;
  position: relative;
  z-index: 1; /* headline sits above the word-field */
}

.eyebrow {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--green-line);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-bright);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.eyebrow-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(var(--green-rgb), 0.2);
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 680;
  background: linear-gradient(180deg, var(--ink-display) 0%, var(--ink) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1 .accent {
  background: linear-gradient(180deg, var(--green-bright), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hero p,
.lede {
  max-width: 52ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.actions,
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions .button {
  padding: 12px 20px;
  font-size: 15px;
}

.actions a:not(.button),
.hero-actions a:not(.button) {
  color: var(--ink-2);
  font-weight: 550;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-row svg {
  width: 16px;
  height: 16px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* On phones, center the trust chips and tighten the gaps so they sit neatly
   under the centered hero copy instead of strung along the left edge. */
@media (max-width: 640px) {
  .trust-row {
    justify-content: center;
    text-align: center;
    gap: 8px 18px;
  }
}

/* ---------- hero phone (the client's side: a real bot conversation) ---------- */

.hero-shot {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.phone {
  width: min(340px, 88vw);
  border: 1px solid var(--line-2);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(1.2deg);
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.phone-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-bright));
  color: var(--green-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.phone-top strong { display: block; font-size: 14.5px; letter-spacing: -0.01em; }

.phone-top .phone-presence {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
}

.phone-chat {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px 14px;
  background:
    radial-gradient(420px 300px at 90% 0%, var(--green-soft), transparent 70%),
    var(--bg);
}

.msg {
  max-width: 86%;
  padding: 9px 12px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.42;
}

.msg small { display: block; margin-top: 3px; color: inherit; opacity: 0.78; font-size: 12px; }

.msg.in {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  background: var(--green);
  color: var(--green-ink);
  font-weight: 550;
}

.msg.out {
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
}

.phone-foot {
  padding: 9px 14px 12px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--faint);
  font-size: 11.5px;
  text-align: center;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--green);
  font-size: 19px;
  font-weight: 600;
  transition: transform 0.16s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details[open] summary { border-bottom: 1px solid var(--line); }

.faq .faq-a { padding: 13px 18px 16px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }

.faq .faq-a p + p { margin-top: 8px; }

/* ---------- closing CTA band ---------- */

.cta-band {
  margin: 0 0 26px;
  padding: 52px 28px;
  border: 1px solid var(--green-line);
  border-radius: var(--radius);
  background:
    radial-gradient(640px 300px at 50% -40%, var(--green-soft), transparent 70%),
    var(--surface);
  text-align: center;
}

.cta-band h2 { font-size: clamp(24px, 3.6vw, 34px); letter-spacing: -0.025em; max-width: 21ch; margin: 0 auto; }

.cta-band p { max-width: 52ch; margin: 12px auto 0; color: var(--muted); font-size: 16px; }

.cta-band .hero-actions { justify-content: center; }

/* ---------- section heads ---------- */

.section {
  position: relative;
  padding: 92px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 8px 0 10px;
  font-size: clamp(26px, 3.2vw, 34px);
  letter-spacing: -0.03em;
  font-weight: 660;
}

.section-head p {
  color: var(--muted);
  font-size: 16px;
}

/* ---------- features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.features article {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.features article:hover {
  transform: translateY(-3px);
  border-color: var(--green-line);
  box-shadow: 0 26px 50px -28px rgba(0, 0, 0, 0.8);
}

.features h2 {
  font-size: 17px;
  font-weight: 640;
}

.features p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ---------- how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 9px;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  color: var(--green);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
}

.step h2 {
  font-size: 16px;
  font-weight: 640;
}

.step p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.step code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}

/* ---------- generic panels / forms ---------- */

.panel,
form {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.panel h1,
.panel h2 {
  background: none;
  -webkit-background-clip: border-box;
  color: var(--ink);
}

.panel p {
  color: var(--muted);
}

input,
select,
textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--faint);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--green-line);
  box-shadow: 0 0 0 3px var(--green-soft);
  background: var(--surface);
}

textarea {
  line-height: 1.5;
  resize: vertical;
}

label {
  color: var(--ink-2);
}

/* ---------- auth ---------- */

.auth {
  max-width: 432px;
  padding-top: 36px;
}

.auth-status {
  text-align: center;
  padding: 32px 28px;
}
.auth-status .status-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--green-soft);
  border: 1px solid var(--green-line, var(--green));
  color: var(--green);
}
.auth-status .status-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth-status .eyebrow { margin-bottom: 8px; }
.auth-status h1 { margin: 0 0 8px; }
.auth-status > p { color: var(--ink-2, var(--muted)); }
.auth-status .button { margin-top: 18px; }

.auth > a:first-child {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth form {
  display: grid;
  gap: 14px;
  padding: 28px;
}

.auth form h1 {
  margin: 0 0 4px;
  font-size: 26px;
  letter-spacing: -0.03em;
  font-weight: 680;
  background: none;
  color: var(--ink);
}

.auth form > p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.auth-sub {
  margin: 0 0 6px !important;
  color: var(--muted);
  font-size: 14.5px;
}

[data-invite-field][hidden] {
  display: none;
}

.auth form > p a {
  font-weight: 600;
}

.auth button[type="submit"],
.auth form button:not(.ghost) {
  margin-top: 4px;
  width: 100%;
  padding: 12px;
}

#message {
  min-height: 0;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
}

#message:not(:empty) {
  margin-top: 2px;
}

.fine-print {
  margin: 0;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.5;
}

/* ---------- pricing ---------- */

.pricing-hero {
  max-width: 760px;
  padding: 48px 0 12px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  max-width: 860px;
  margin: 28px auto 0;
}

.pricing-grid article {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.pricing-grid article.popular {
  border-color: var(--green-line);
  background: linear-gradient(180deg, rgba(var(--green-rgb), 0.07), var(--surface) 42%);
  box-shadow: 0 30px 60px -34px rgba(var(--green-rgb), 0.45);
}

.plan-badge {
  align-self: center;
  margin-bottom: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  color: var(--green-bright);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-grid h2 {
  font-size: 18px;
}

.price {
  margin: 10px 0 8px;
  font-size: 40px;
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price span {
  font-size: 15px;
  font-weight: 550;
  color: var(--muted);
  letter-spacing: 0;
}

.pricing-grid p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.plan-features {
  list-style: none;
  display: grid;
  gap: 9px;
  margin: 14px auto 18px;
  padding: 0;
  width: min(100%, 300px);
}

.plan-features li {
  position: relative;
  width: 100%;
  padding-left: 26px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
}

.plan-features li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  width: 6px;
  height: 3px;
  border-left: 1.6px solid var(--green);
  border-bottom: 1.6px solid var(--green);
  transform: rotate(-45deg);
}

.pricing-grid .button {
  margin-top: auto;
  width: 100%;
}

.pricing-note {
  margin: 18px auto 0;
  max-width: 580px;
  text-align: center;
}

/* ---------- onboarding ---------- */

.onboarding {
  max-width: 920px;
  padding-top: 8px;
}

.compact-hero {
  padding: 32px 0 4px;
  margin-bottom: 18px;
}

.compact-hero h1 {
  max-width: 740px;
  font-size: clamp(30px, 4.4vw, 46px);
}

.compact-hero p {
  margin-top: 14px;
  max-width: 60ch;
  color: var(--muted);
  font-size: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 6px;
}

.form-grid label {
  display: grid;
  gap: 7px;
}

.form-grid label span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

.notice.warn {
  border-color: rgba(224, 178, 74, 0.4);
  background: rgba(224, 178, 74, 0.08);
}

.notice .notice-icon {
  flex: none;
  margin-top: 1px;
  color: var(--amber);
}

.notice .notice-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notice button {
  margin-top: 8px;
  padding: 8px 13px;
  font-size: 13px;
}

.notice.ok {
  border-color: var(--green-line);
  background: var(--green-soft);
}

.notice.ok .notice-icon {
  color: var(--green);
}

.settings pre {
  margin: 12px 0 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--green-bright);
  font-family: var(--mono);
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---------- settings / admin ---------- */

.settings,
.admin {
  display: grid;
  /* minmax(0, 1fr): without it the implicit track grows to fit the widest
     child (e.g. a wide admin table), blowing the page out past the phone
     viewport - body overflow-x:clip then hides the nav and CTAs. */
  grid-template-columns: minmax(0, 1fr);
  max-width: 920px;
  gap: 22px;
  padding-top: 8px;
}

/* Grid children default to min-width:auto, which lets wide content (tables,
   long codes) inflate the track instead of scrolling inside their panel. */
.settings > *,
.admin > * {
  min-width: 0;
}

.settings .panel { padding: 22px 24px; }
.settings .panel h1,
.settings .panel h2 { margin: 6px 0 8px; }
.settings .panel > p { margin: 0 0 14px; line-height: 1.55; }
.settings .panel .btn-row { margin-top: 4px; }
/* early-access celebration (subtle, one-time confetti) */
.plan-celebrate { position: relative; overflow: hidden; }
.celebrate-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid var(--green-line);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti span {
  position: absolute;
  top: -14px;
  width: 7px;
  height: 11px;
  border-radius: 2px;
  opacity: 0;
}
.confetti span:nth-child(odd) { background: var(--green); }
.confetti span:nth-child(even) { background: var(--honey); }
.confetti span:nth-child(3n) { background: var(--green-bright); }
.confetti span:nth-child(1) { left: 6%; animation-delay: 0.02s; }
.confetti span:nth-child(2) { left: 14%; animation-delay: 0.28s; }
.confetti span:nth-child(3) { left: 23%; animation-delay: 0.12s; }
.confetti span:nth-child(4) { left: 31%; animation-delay: 0.42s; }
.confetti span:nth-child(5) { left: 40%; animation-delay: 0.06s; }
.confetti span:nth-child(6) { left: 48%; animation-delay: 0.34s; }
.confetti span:nth-child(7) { left: 57%; animation-delay: 0.18s; }
.confetti span:nth-child(8) { left: 65%; animation-delay: 0.48s; }
.confetti span:nth-child(9) { left: 74%; animation-delay: 0.1s; }
.confetti span:nth-child(10) { left: 82%; animation-delay: 0.38s; }
.confetti span:nth-child(11) { left: 90%; animation-delay: 0.22s; }
.confetti span:nth-child(12) { left: 96%; animation-delay: 0.3s; }
@media (prefers-reduced-motion: no-preference) {
  .plan-celebrate .confetti span { animation: confetti-fall 2.8s cubic-bezier(0.3, 0.7, 0.4, 1) forwards; }
}
@keyframes confetti-fall {
  0% { opacity: 0; transform: translateY(-12px) rotate(0deg); }
  12% { opacity: 0.95; }
  100% { opacity: 0; transform: translateY(240px) rotate(380deg); }
}

.settings-links { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.settings-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.settings-links a:hover { color: var(--ink); }
.settings-status { color: var(--green); font-weight: 600; }
.settings-status:empty { display: none; }
.bot-link-out { margin-top: 10px; }
.bot-link-out:empty { display: none; }
#botLink:empty { display: none; }

/* "Don't have Telegram?" helper shown beneath Connect actions */
.tg-help {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.tg-help a { color: var(--green); text-decoration: none; }
.tg-help a:hover { text-decoration: underline; }
/* the hidden attribute must win over button/display rules */
[hidden] { display: none !important; }

.admin {
  max-width: 1000px;
}

.settings nav,
.admin nav,
.onboarding nav {
  margin-bottom: 4px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.funnel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.funnel-step {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}
.funnel-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.funnel-num { font-size: 24px; font-weight: 820; letter-spacing: -0.02em; }
.funnel-pct { color: var(--green); font-size: 12px; font-weight: 720; }
@media (max-width: 640px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.stat-grid article {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.stat-grid span,
.stat-grid em,
.empty-note {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.stat-grid strong {
  color: var(--ink);
  font-size: 26px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.admin-table th,
.admin-table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

.admin-table th {
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.account-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 15px;
}

.account-line .pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  color: var(--green-bright);
  font-family: var(--mono);
  font-size: 12px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.btn-row button {
  margin-left: 0;
}

/* ---------- doc ---------- */

.doc {
  max-width: 720px;
  padding-top: 28px;
  line-height: 1.7;
  color: var(--ink-2);
}

.doc h1 {
  margin: 10px 0 18px;
  font-size: clamp(32px, 4vw, 46px);
}

.doc h2 {
  margin: 28px 0 8px;
  color: var(--ink);
}

.doc p {
  margin: 0 0 14px;
  color: var(--ink-2);
}

.doc strong {
  color: var(--ink);
}

/* ---------- cta band ---------- */

.cta-band {
  margin-top: 72px;
  padding: clamp(52px, 7vw, 88px) clamp(28px, 5vw, 60px);
  border: 1px solid var(--green-line);
  border-radius: var(--radius);
  background:
    radial-gradient(720px 280px at 82% 0%, rgba(var(--honey-rgb), 0.12), transparent 70%),
    linear-gradient(120deg, rgba(var(--honey-rgb), 0.07) 0%, rgba(var(--green-rgb), 0.12) 100%),
    var(--surface);
}

.cta-band h2 {
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.03em;
  color: var(--ink-display);
}

.cta-band p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 16px;
}

.cta-band .button {
  padding: 14px 26px;
  font-size: 16px;
}

/* ---------- footer ---------- */

footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}

footer a {
  color: var(--muted);
  font-weight: 500;
}

footer a:hover {
  color: var(--ink);
}

footer .footer-brand {
  margin-right: auto;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

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

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 0 24px;
  }

  .steps,
  .pricing-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid article.popular {
    order: -1;
  }
}

@media (max-width: 640px) {
  .landing,
  .auth,
  .settings,
  .onboarding,
  .admin,
  .doc {
    width: calc(100vw - 28px);
  }

  nav {
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 4px;
    row-gap: 6px;
  }

  /* Tighten links on small screens so the bar doesn't feel cramped. */
  nav a:not(.button) {
    padding: 6px 8px;
    font-size: 14px;
  }
  nav .button {
    padding: 8px 13px;
    font-size: 14px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: 1fr;
  }
}

/* ======================================================================
   "Parse" art direction - landing hero, sections, ring, motion
   ====================================================================== */

.count,
.tn strong {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
/* Offset in-page anchor jumps so the sticky nav doesn't cover the heading. */
#how,
#pricing {
  scroll-margin-top: 88px;
}
#siteNav {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
#siteNav::after {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ghost-link {
  color: var(--ink-2);
  font-weight: 550;
}
.ledger {
  display: grid;
  gap: 7px;
}
.tn {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.tn strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- the mess ---------- */
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- try-it demo ---------- */
.demo {
  max-width: 840px;
  margin: 8px auto 0;
}
.chip {
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
}
.chip:hover {
  border-color: var(--honey-line);
  color: var(--honey-bright);
  background: var(--honey-soft);
  box-shadow: none;
  transform: none;
}

/* ---------- CTA band art ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
}

/* ---------- footer signal line ---------- */
.footer-signal {
  width: 100%;
  height: 22px;
  flex: 1 1 100%;
  color: var(--line-2);
  margin-bottom: 6px;
}
.footer-signal path {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
}
body.loaded .footer-signal path {
  transition: stroke-dashoffset 2s ease;
  stroke-dashoffset: 0;
}

/* ---------- keyframes ---------- */

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .footer-signal path {
    transition: none !important;
    stroke-dashoffset: 0 !important;
  }
}
@media (max-width: 640px) {
  .eyebrow-chip {
    margin-bottom: 18px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .hero-actions .button,
  .hero-actions .ghost-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* ======================================================================
   Onboarding wizard - tap-first, smart defaults
   ====================================================================== */
.onboarding.wizard {
  max-width: 640px;
  padding-bottom: 60px;
}
.wiz {
  margin-top: 8px;
}
.wiz-progress {
  display: flex;
  gap: 8px;
  margin: 8px 0 30px;
}
.wiz-dot {
  height: 4px;
  flex: 1;
  border-radius: 999px;
  background: var(--line-2);
  transition: background-color 0.3s ease;
}
.wiz-dot.active {
  background: var(--green);
}
.wiz-step {
  animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.wiz h1 {
  margin: 6px 0 8px;
  font-size: clamp(26px, 4.4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.04;
  background: none;
  color: var(--ink-display);
  -webkit-text-fill-color: var(--ink-display);
}
.wiz h1 .accent {
  color: var(--green-bright);
  -webkit-text-fill-color: var(--green-bright);
}
.wiz-sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

/* fine-tune (manual targets) dims the auto selectors above it */
.wiz-step.auto-paused #goalCards,
.wiz-step.auto-paused .wiz-row {
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

/* row: activity + weight */
.wiz-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.field-label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface-2);
}
.seg button {
  padding: 9px 6px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  background-image: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.seg button:hover {
  color: var(--ink);
  box-shadow: none;
  transform: none;
}
.seg button.selected {
  background: var(--green);
  background-image: linear-gradient(180deg, var(--green-bright), var(--green));
  color: var(--green-ink);
}
.num-field {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface-2);
  padding-right: 14px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.num-field:focus-within {
  border-color: var(--green-line);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.num-field input {
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 18px;
  font-weight: 650;
  min-height: 46px;
}
.num-field input:focus {
  box-shadow: none;
}
.num-unit {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

/* target preview card */
.target-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
  margin-top: 20px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: radial-gradient(120% 100% at 0% 0%, rgba(var(--green-rgb), 0.07), rgba(255, 255, 255, 0.015));
}
.tc-head {
  display: grid;
  gap: 4px;
}
.tc-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tc-cal {
  font-size: 34px;
  font-weight: 760;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink-display);
  font-variant-numeric: tabular-nums;
}
.tc-cal em {
  font-size: 14px;
  font-weight: 600;
  font-style: normal;
  color: var(--muted);
}
.tc-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  max-width: 36ch;
}
.macro {
  display: grid;
  grid-template-columns: 56px 44px 1fr;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}
.macro span {
  color: var(--muted);
}
.macro b {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* advanced disclosure */
.advanced {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.advanced summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 550;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.advanced summary::-webkit-details-marker {
  display: none;
}
.advanced summary::before {
  content: "+";
  font-family: var(--mono);
  color: var(--green);
}
.advanced[open] summary::before {
  content: "\2212";
}
.advanced summary:hover {
  color: var(--ink);
}

/* wizard nav */
.wiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
}
.wiz-nav .button {
  padding: 12px 24px;
}
.wiz-nav [data-back] {
  margin-right: auto;
}
.wiz-nav [data-next],
.wiz-nav a.button:last-child {
  margin-left: auto;
}
.wiz-skip {
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
}
.wiz-msg {
  margin-top: 16px;
  min-height: 1em;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* step 3: sequential connect steps + logging examples */
.connect-steps {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.connect-steps > li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.cs-num {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid var(--green-line);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 13px;
  font-weight: 700;
}
.cs-body {
  flex: 1;
  min-width: 0;
}
.cs-body > strong {
  display: block;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.cs-body > p {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.cs-body .button {
  margin: 0;
}
.cs-body .bot-link-out {
  margin-top: 10px;
}
.cs-body .bot-link-out:empty {
  display: none;
}
.log-examples {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.log-examples li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 13.5px;
}
.log-examples li em {
  color: var(--muted);
  font-style: normal;
}
.log-examples li b {
  color: var(--green);
  font-weight: 700;
}

@media (max-width: 560px) {
  .wiz-row {
    grid-template-columns: 1fr;
  }
  .target-card {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 16px;
  }
}
/* ======================================================================
   Food-bucket editor (drag-and-drop pills) - shared with dashboard
   ====================================================================== */
.fb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fb-bucket { display: flex; flex-direction: column; padding: 14px; min-height: 230px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color 0.16s ease, background-color 0.16s ease; }
.fb-bucket.fb-over { border-color: var(--green-line, var(--active-border)); background: var(--green-soft); }
.fb-head { display: flex; align-items: center; gap: 8px; }
.fb-head strong { font-size: 14px; font-weight: 720; letter-spacing: -0.01em; }
.fb-count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-family: var(--mono, ui-monospace, monospace); font-size: 11px; }
.fb-sub { display: block; margin: 3px 0 10px; color: var(--muted); font-size: 11.5px; }
.fb-good .fb-head strong { color: var(--green); }
.fb-todo .fb-head strong { color: var(--ink); }
.fb-bad .fb-head strong { color: var(--red); }
.fb-zone { display: flex; flex-wrap: wrap; gap: 7px; align-content: flex-start; flex: 1; min-height: 96px; padding: 9px; border: 1px dashed var(--line); border-radius: 10px; background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.fb-empty { margin: auto; align-self: center; color: var(--muted); font-size: 12px; opacity: 0.65; }
.fb-pill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 7px 5px 11px; border-radius: 14px; border: 1px solid var(--line-2, var(--line)); background: var(--surface-2); color: var(--ink); font-size: 12.5px; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; cursor: grab; -webkit-user-select: none; user-select: none; transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease; }
.fb-pill:hover { transform: translateY(-1px); }
.fb-pill:active { cursor: grabbing; }
.fb-pill.fb-dragging { opacity: 0.45; }
.fb-good .fb-pill { border-color: var(--green-line, var(--active-border)); background: var(--green-soft); color: var(--green); }
.fb-todo .fb-pill { border-color: var(--line-2, var(--line)); background: var(--surface-2); color: var(--ink); border-style: dashed; }
.fb-bad .fb-pill { border-color: rgba(239, 125, 112, 0.42); background: rgba(239, 125, 112, 0.12); color: var(--red); }
.fb-pill-text { min-width: 0; overflow-wrap: anywhere; word-break: break-word; cursor: pointer; }
.fb-x { display: inline-grid; place-items: center; flex: 0 0 auto; align-self: center; width: 16px; height: 16px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: inherit; font-size: 14px; line-height: 1; cursor: pointer; opacity: 0.6; }
.fb-x:hover { opacity: 1; background: rgba(255, 255, 255, 0.18); }
.fb-add { display: block; margin-top: 10px; padding: 0; border: 0; background: none; box-shadow: none; }
.fb-add input { box-sizing: border-box; width: 100%; min-height: 36px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: 13px; }
.fb-hint { margin: 18px 0 2px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
@media (max-width: 760px) { .fb-grid { grid-template-columns: 1fr; } .fb-bucket { min-height: 0; } }
.share-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  right: 0;
  min-width: 184px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
}
.share-opt {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.share-opt:hover { background: var(--surface-2); }
.footer-share {
  margin: 0;
  border: 0;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.footer-share:hover { color: var(--ink); }

/* ============================================================
   LOADING STATE - admin / settings skeletons + top progress bar
   Keyed on body.is-loading (CSP-safe: JS only toggles the class
   and creates the .page-progress div via createElement).
   ============================================================ */
:root {
  --sk-base: var(--surface-2);
  --sk-hi: color-mix(in srgb, var(--surface-2) 78%, var(--ink) 22%);
}

@keyframes pc-shimmer {
  0% { background-position: 180% 0; }
  100% { background-position: -80% 0; }
}
@keyframes pc-progress { 0% { left: -42%; } 100% { left: 100%; } }

/* Admin: paint faux stat cards + faux table rows into empty panels */
body.is-loading #adminFunnel,
body.is-loading #adminUsers,
body.is-loading #adminSubscriptions,
body.is-loading #adminUsage,
body.is-loading #adminTgErrors,
body.is-loading #adminJobs {
  min-height: 92px;
  border-radius: var(--radius-sm);
  background-image: linear-gradient(100deg, var(--sk-base) 28%, var(--sk-hi) 48%, var(--sk-base) 68%);
  background-size: 220% 100%;
  background-repeat: no-repeat;
  animation: pc-shimmer 1.45s ease-in-out infinite;
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 26px, #0000 26px 44px);
          mask: repeating-linear-gradient(180deg, #000 0 26px, #0000 26px 44px);
}

body.is-loading #adminStats {
  min-height: 96px;
  border-radius: var(--radius-sm);
  background-image: linear-gradient(100deg, var(--sk-base) 28%, var(--sk-hi) 48%, var(--sk-base) 68%);
  background-size: 220% 100%;
  background-repeat: no-repeat;
  animation: pc-shimmer 1.45s ease-in-out infinite;
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(33.33% - 12px), #0000 calc(33.33% - 12px) 33.33%);
          mask: repeating-linear-gradient(90deg, #000 0 calc(33.33% - 12px), #0000 calc(33.33% - 12px) 33.33%);
}

/* Settings: shimmer the account line while /api/me loads */
body.is-loading #account {
  display: inline-block;
  min-width: 220px;
  min-height: 18px;
  border-radius: 6px;
  color: transparent !important;
  background-image: linear-gradient(100deg, var(--sk-base) 28%, var(--sk-hi) 48%, var(--sk-base) 68%);
  background-size: 220% 100%;
  background-repeat: no-repeat;
  animation: pc-shimmer 1.45s ease-in-out infinite;
}

/* Slim top progress bar (shared element, created in JS) */
.page-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px;
  z-index: 200; pointer-events: none; opacity: 0;
  transition: opacity .25s ease; overflow: hidden;
}
.page-progress::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -42%;
  width: 38%; border-radius: 0 4px 4px 0;
  background: linear-gradient(90deg, transparent, var(--green-bright));
  box-shadow: 0 0 12px color-mix(in srgb, var(--green) 65%, transparent);
}
body.is-loading .page-progress { opacity: 1; }
body.is-loading .page-progress::before { animation: pc-progress 1.05s ease-in-out infinite; }

/* Busy button: a spinner appended after the (possibly relabeled) text while an
   async action is in flight. Inherits the button's text color. */
@keyframes btn-spin { to { transform: rotate(360deg); } }
button.is-busy,
.button.is-busy {
  cursor: default;
  opacity: 0.9;
}
button.is-busy::after,
.button.is-busy::after {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.5em;
  vertical-align: -0.12em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}

@media (max-width: 640px) {
  body.is-loading #adminStats {
    -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(50% - 10px), #0000 calc(50% - 10px) 50%);
            mask: repeating-linear-gradient(90deg, #000 0 calc(50% - 10px), #0000 calc(50% - 10px) 50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-loading #adminStats,
  body.is-loading #adminFunnel,
  body.is-loading #adminUsers,
  body.is-loading #adminSubscriptions,
  body.is-loading #adminUsage,
  body.is-loading #adminTgErrors,
  body.is-loading #adminJobs,
  body.is-loading #account {
    animation: none;
    background-image: none;
    background-color: var(--sk-base);
  }
  body.is-loading .page-progress::before { animation: none; left: 0; width: 100%; }
}

.form-msg { min-height: 1.2em; margin: 10px 0 0; font-size: 14px; }
.form-msg.error { color: var(--red); }
.form-msg.ok { color: var(--green-bright); }
.form-grid label span em { font-style: normal; font-weight: 500; color: var(--faint); font-size: 0.85em; }

.m-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }

.feed { list-style: none; margin: 0; padding: 0; }
button.ghost.danger { border-color: rgba(182, 73, 60, 0.4); color: var(--red); }
button.ghost.danger:hover { background: rgba(182, 73, 60, 0.08); border-color: var(--red); }

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

/* settings plan cards */
.plan-status { font-size: 14.5px; color: var(--ink-2); margin-bottom: 12px; }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 6px 0 12px; }
.plan-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.plan-card h3 { margin: 0; font-size: 16px; }
.plan-card-price { font-size: 26px; font-weight: 700; color: var(--ink-display); margin: 0; }
.plan-card-price span { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.plan-card p { font-size: 14px; color: var(--ink-2); margin: 0; flex-grow: 1; }
.plan-card button { width: 100%; }

/* admin operator actions */
.admin-actions { white-space: nowrap; }
.admin-actions button { padding: 4px 10px; font-size: 12.5px; margin-right: 6px; }
.admin-actions button.danger { color: var(--red, #ef8a7d); border-color: currentColor; }

/* ============================================================
   Stage-7 polish: mobile nav, inline validation, error pages
   ============================================================ */

/* CSS-only hamburger (CSP forbids inline JS; no JS needed at all).
   Used on the public pages whose nav carries real links. */
.nav-menu-box {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav-burger {
  display: none;
  flex: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.nav-burger svg {
  width: 20px;
  height: 20px;
  stroke: var(--ink);
  stroke-width: 2.1;
  fill: none;
  stroke-linecap: round;
}

.nav-burger .ic-close { display: none; }

@media (max-width: 760px) {
  nav.has-burger .nav-burger { display: grid; }
  nav.has-burger .nav-links {
    position: absolute;
    top: calc(100% - 4px);
    left: 0;
    right: 0;
    z-index: 30;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow);
  }
  nav.has-burger .nav-menu-box:checked ~ .nav-links { display: flex; }
  nav.has-burger .nav-menu-box:checked ~ .nav-burger .ic-open { display: none; }
  nav.has-burger .nav-menu-box:checked ~ .nav-burger .ic-close { display: block; }
  nav.has-burger .nav-links a { text-align: center; }
  nav.has-burger .nav-links .button { margin-top: 4px; }
  nav.has-burger .nav-menu-box:focus-visible ~ .nav-burger {
    outline: 2px solid color-mix(in srgb, var(--green) 70%, transparent);
    outline-offset: 2px;
  }
}

/* Inline validation: only flags fields the user has actually touched
   (:user-invalid), so forms never open shouting in red. */
input:user-invalid,
textarea:user-invalid,
select:user-invalid {
  border-color: var(--red) !important;
  background: color-mix(in srgb, var(--red) 4%, var(--surface));
}

input:user-invalid:focus-visible,
textarea:user-invalid:focus-visible {
  outline-color: color-mix(in srgb, var(--red) 70%, transparent);
}

.field-hint {
  margin: -6px 0 10px;
  color: var(--faint);
  font-size: 12.5px;
}

#message:empty,
.form-msg:empty { display: none; }

/* Friendly error pages (404 / 403 / expired links) */
.error-page {
  max-width: 480px;
  margin: 0 auto;
  padding-top: 8vh;
  text-align: center;
}

.error-page .error-code {
  display: block;
  margin: 30px 0 6px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.error-page h1 { font-size: clamp(26px, 5vw, 34px); margin-bottom: 10px; }

.error-page p { color: var(--muted); font-size: 16px; line-height: 1.55; }

.error-page .hero-actions { justify-content: center; }

.error-page .error-wave {
  width: min(280px, 70vw);
  margin: 26px auto 0;
  color: var(--green-line);
}

/* ============================================================
   Batch 1: the money screen on phones (a11y + mobile tables)
   ============================================================ */

/* Screen-reader-only text: real labels for placeholder-styled forms and the
   table captions, without changing the visual design. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Operator console: wide admin tables swipe inside their panel instead of
   getting clipped by the page's overflow-x clip on phones. */

#adminSubscriptions,
#adminUsage,
#adminStripeErrors,
#adminTgErrors,
#adminJobs {
  overflow-x: auto;
}

/* Touch targets (WCAG 2.5.5-ish): 44px hit areas on coarse pointers; the
   icons stay 18px, only the padding grows. */
@media (pointer: coarse) {
  .theme-toggle {
    width: 44px;
    height: 44px;
  }
  .nav-burger {
    width: 44px;
    height: 44px;
  }
  nav a:not(.button) { padding: 11px 13px; }
}

/* ===========================================================================
   Stage 5 - the web stage: Telegram bridge (landing), the animated
   conversation demo, /demo's seeded week, and the protein-led dashboard.
   Raspberry palette via the existing custom properties.
   =========================================================================== */

/* ---------- animated conversation (landing.js drives [data-demo-chat]) ---- */

.phone-chat.demo-anim {
  height: 430px;
  overflow: hidden;
  justify-content: flex-end;
}

.phone-chat.demo-anim .msg {
  display: none;
}

.phone-chat.demo-anim .msg.is-shown {
  display: block;
  animation: msgIn 0.32s ease-out;
}

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

.msg.typing {
  display: none;
  min-width: 54px;
}

.msg.typing.is-shown { display: flex; gap: 5px; align-items: center; }

.msg.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: typingDot 1.1s ease-in-out infinite;
}

.msg.typing span:nth-child(2) { animation-delay: 0.18s; }
.msg.typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .phone-chat.demo-anim .msg.is-shown { animation: none; }
  .msg.typing span { animation: none; }
}

/* Our bot's one-tap inline keyboard, imitated in chat mocks. */
.msg-chip {
  display: inline-block;
  margin: 7px 4px 1px 0;
  padding: 6px 12px;
  border: 1px solid var(--green-line);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12.5px;
  font-weight: 650;
}

:root[data-theme="dark"] .msg-chip { color: var(--green-bright); }

/* A photo message in the mock (no real image asset needed). */
.msg-photo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
}

.msg-photo svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

/* ---------- Telegram bridge section (the landing's one job) -------------- */

.bridge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

@media (max-width: 860px) {
  .bridge-grid { grid-template-columns: minmax(0, 1fr); }
}

.bridge-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bridge-cta {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  text-align: center;
}

.bridge-cta .fine-print { margin: 10px 0 0; }

.tg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.tg-plane {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ---------- /demo: seeded week + weight payoff ---------------------------- */

.demo-hero { text-align: left; }

.demo-hero .lede { max-width: 60ch; }

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  justify-content: center;
  margin: 26px 0 10px;
}

@media (max-width: 860px) {
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .demo-grid .hero-shot { order: -1; }
}

.demo-page .phone { transform: none; }

.demo-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.demo-week h2 { margin: 4px 0 12px; font-size: 19px; letter-spacing: -0.015em; }

.demo-week-svg,
.demo-weight-svg {
  width: 100%;
  height: auto;
  display: block;
}

.wk-bar { fill: var(--track); }

.wk-bar.hit { fill: var(--green); }

.wk-day {
  fill: var(--faint);
  font-size: 11.5px;
  font-family: var(--font);
}

.wk-grams {
  fill: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  font-family: var(--font);
}

.wk-floor {
  stroke: var(--ink-2);
  stroke-width: 1.6;
  stroke-dasharray: 5 5;
}

.wk-floor-label {
  fill: var(--ink-2);
  font-size: 11px;
  font-weight: 650;
  font-family: var(--font);
}

.wt-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.wt-dot { fill: var(--green); }

.demo-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- the protein-led dashboard (index.html + app.js) -------------- */

.dash {
  width: min(var(--maxw), calc(100vw - 40px));
  margin: 0 auto;
  padding-bottom: 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.dash > * { min-width: 0; }

.dash-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

@media (max-width: 860px) {
  .dash-cols { grid-template-columns: minmax(0, 1fr); }
}

.dash-today-grid {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.dash-today-side {
  width: 100%;
  min-width: 0;
}

@media (max-width: 640px) {
  .dash-today-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .dash-entries,
  .dash-entry,
  .quick-add,
  .form-note {
    text-align: left;
  }
}

.protein-ring-wrap { width: 168px; }

.protein-ring-wrap svg { width: 100%; height: auto; display: block; }

.ring-track { stroke: var(--track); }

.ring-progress {
  stroke: var(--green);
  transition: stroke-dasharray 0.6s ease;
}

.ring-progress.cleared { stroke: var(--green-bright); }

.ring-number {
  fill: var(--ink-display);
  font-size: 34px;
  font-weight: 750;
  font-family: var(--font);
  letter-spacing: -0.02em;
  text-anchor: middle;
}

.ring-label {
  fill: var(--muted);
  font-size: 12.5px;
  font-family: var(--font);
  text-anchor: middle;
}

.floor-line {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.floor-line.cleared { color: var(--green); }

:root[data-theme="dark"] .floor-line.cleared { color: var(--green-bright); }

.cal-quiet {
  margin: 0;
  color: var(--faint);
  font-size: 13.5px;
}

.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--honey-line);
  border-radius: 999px;
  background: var(--honey-soft);
  color: var(--honey-bright);
  font-size: 13px;
  font-weight: 650;
}

.dash-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.dash-eyebrow-row .eyebrow { margin: 0; }

.week-bars svg { width: 100%; height: auto; display: block; }

.week-summary {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 600;
}

.dash-entries { margin: 14px 0 0; display: grid; gap: 8px; }

.dash-entry {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 14px;
}

.dash-entry .entry-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }

.dash-entry .entry-protein { font-weight: 700; white-space: nowrap; }

.dash-entry .entry-cal { color: var(--faint); font-size: 12.5px; white-space: nowrap; }

.dash-entry button {
  margin: 0;
  padding: 2px 8px;
  border: 0;
  background: none;
  color: var(--faint);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  border-radius: 7px;
}

.dash-entry button:hover { color: var(--red); background: var(--surface-3); }

.dash-empty { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

.quick-add {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 0;
}

.quick-add input {
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.quick-add input:focus-visible { outline: 2px solid var(--green-line); outline-offset: 1px; }

.quick-add .qa-name { flex: 2 1 160px; min-width: 0; }

.quick-add .qa-num { flex: 1 1 86px; min-width: 0; }

.quick-add .button { flex-shrink: 0; }

/* Phone widths: the name field gets its own full row so the teaching
   placeholder ("Log something - e.g. protein shake") never truncates. */
@media (max-width: 480px) {
  .quick-add .qa-name { flex-basis: 100%; }
}

.form-note { margin: 8px 0 0; color: var(--faint); font-size: 12.5px; }

.form-note:empty { display: none; }

.weigh-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; }

.weigh-row input {
  flex: 1 1 110px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.weigh-row input:focus-visible { outline: 2px solid var(--green-line); outline-offset: 1px; }

.weight-summary { margin: 4px 0 10px; color: var(--ink-2); font-size: 14.5px; font-weight: 600; }

.floor-edit { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0 0; }

.floor-edit input {
  width: 96px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
}

.floor-edit input:focus-visible { outline: 2px solid var(--green-line); outline-offset: 1px; }

.dash-links { margin: 14px 0 0; color: var(--muted); font-size: 13.5px; }
