/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: "Inter", system-ui, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --spacing: 0.25rem;
    --container-md: 28rem;
    --container-6xl: 72rem;
    --text-xs: 0.75rem;
    --text-xs--line-height: calc(1 / 0.75);
    --text-sm: 0.875rem;
    --text-sm--line-height: calc(1.25 / 0.875);
    --text-2xl: 1.5rem;
    --text-2xl--line-height: calc(2 / 1.5);
    --text-3xl: 1.875rem;
    --text-3xl--line-height: calc(2.25 / 1.875);
    --default-transition-duration: 150ms;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
    --color-bg: #fafaf5;
    --color-ink: #1c1e1b;
    --color-ink-muted: #5c6b5e;
    --color-ink-faint: #5c6b5e;
    --font-display: "Oswald", Impact, sans-serif;
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .visible {
    visibility: visible;
  }
  .relative {
    position: relative;
  }
  .container {
    width: 100%;
    @media (width >= 40rem) {
      max-width: 40rem;
    }
    @media (width >= 48rem) {
      max-width: 48rem;
    }
    @media (width >= 64rem) {
      max-width: 64rem;
    }
    @media (width >= 80rem) {
      max-width: 80rem;
    }
    @media (width >= 96rem) {
      max-width: 96rem;
    }
  }
  .mx-auto {
    margin-inline: auto;
  }
  .mt-4 {
    margin-top: calc(var(--spacing) * 4);
  }
  .mb-6 {
    margin-bottom: calc(var(--spacing) * 6);
  }
  .mb-8 {
    margin-bottom: calc(var(--spacing) * 8);
  }
  .flex {
    display: flex;
  }
  .grid {
    display: grid;
  }
  .hidden {
    display: none;
  }
  .inline {
    display: inline;
  }
  .w-full {
    width: 100%;
  }
  .max-w-6xl {
    max-width: var(--container-6xl);
  }
  .max-w-md {
    max-width: var(--container-md);
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
  }
  .cursor-pointer {
    cursor: pointer;
  }
  .resize {
    resize: both;
  }
  .items-center {
    align-items: center;
  }
  .justify-between {
    justify-content: space-between;
  }
  .gap-4 {
    gap: calc(var(--spacing) * 4);
  }
  :where(.space-y-3 > :not(:last-child)) {
    --tw-space-y-reverse: 0;
    margin-block-start: calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));
    margin-block-end: calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)));
  }
  .overflow-x-auto {
    overflow-x: auto;
  }
  .bg-bg {
    background-color: var(--color-bg);
  }
  .p-6 {
    padding: calc(var(--spacing) * 6);
  }
  .text-left {
    text-align: left;
  }
  .font-sans {
    font-family: var(--font-sans);
  }
  .text-2xl {
    font-size: var(--text-2xl);
    line-height: var(--tw-leading, var(--text-2xl--line-height));
  }
  .text-3xl {
    font-size: var(--text-3xl);
    line-height: var(--tw-leading, var(--text-3xl--line-height));
  }
  .text-sm {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }
  .text-xs {
    font-size: var(--text-xs);
    line-height: var(--tw-leading, var(--text-xs--line-height));
  }
  .text-ink {
    color: var(--color-ink);
  }
  .text-ink-faint {
    color: var(--color-ink-faint);
  }
  .text-ink-muted {
    color: var(--color-ink-muted);
  }
  .ring {
    --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }
  .filter {
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  @media (width >= 48rem) {
    .md\:grid-cols-4 {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }
}
:root {
  --forest: #18542a;
  --carrot: #f96015;
  --carrot-deep: #e04f09;
  --cream: #f3e8cc;
  --canvas: #fafaf5;
  --charcoal: #1c1e1b;
  --muted-green: #5c6b5e;
  --kiwi: #9abc05;
  --sunshine: #ffc926;
  --tomato: #d52518;
  --matcha: #0d3a1f;
  --bg: var(--canvas);
  --surface: var(--canvas);
  --surface-2: var(--cream);
  --border: var(--cream);
  --border-2: var(--muted-green);
  --line: rgba(28, 30, 27, 0.1);
  --shadow: 0 6px 20px rgba(24, 84, 42, 0.08);
  --ink: var(--charcoal);
  --ink-muted: var(--muted-green);
  --ink-faint: var(--muted-green);
  --heading: var(--forest);
  --nav: var(--forest);
  --nav-ink: var(--cream);
  --accent: var(--carrot);
  --accent-hover: var(--carrot-deep);
  --accent-ink: #ffffff;
  --orange: var(--carrot);
  --success: var(--forest);
  --danger: var(--tomato);
  --macro-protein: var(--kiwi);
  --macro-carbs: var(--sunshine);
  --macro-fat: var(--carrot);
  --macro-sugar: var(--forest);
  --font-display: 'Oswald', Impact, 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 8px;
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-base: cubic-bezier(0.25, 1, 0.5, 1);
  --t-fast: 200ms;
  --t-base: 400ms;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: scroll;
  padding-top: 0;
}
.editorial {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
h1.editorial, h2.editorial, h3.editorial {
  color: var(--heading);
}
.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
nav.app-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  padding-top: env(safe-area-inset-top);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}
.nav-brand {
  font-size: 28px;
  color: var(--heading);
  text-decoration: none;
}
.nav-guide {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
}
.nav-guide-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.nav-guide-copy {
  font-size: 13px;
  line-height: 1.35;
}
.nav-guide-steps {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.nav-guide-steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-guide-steps li::before {
  content: counter(step) ". ";
  counter-increment: step;
}
.nav-signin {
  min-height: 40px;
  padding: 8px 16px;
}
body.is-authed .nav-guide, body.is-authed .nav-signin {
  display: none;
}
.nav-guide {
  display: none;
}
.nav-tabs {
  display: flex;
}
.nav-user-badge {
  display: none;
}
body.is-authed .nav-user-badge {
  display: flex;
}
.nav-tabs {
  position: relative;
  gap: 4px;
  background: var(--surface);
  padding: 4px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
}
.nav-tab-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  background: var(--accent);
  border-radius: var(--r-pill);
  transition: transform var(--t-base) var(--ease-spring), width var(--t-base) var(--ease-spring);
  z-index: 0;
}
.nav-tab-btn {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  color: var(--ink-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 18px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: color var(--t-fast);
}
.nav-tab-btn:hover {
  color: var(--ink);
}
.nav-tab-btn.active {
  color: var(--accent-ink);
  font-weight: 600;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-user-badge {
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 6px 4px 14px;
  border-radius: var(--r-pill);
}
.user-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--heading);
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
  animation: fadeIn 450ms var(--ease-spring);
  will-change: transform, opacity;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.985) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 40px 0 60px;
}
#dash-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-copy {
  position: relative;
  z-index: 2;
}
.hero-title {
  font-size: 40px;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
.hero-sub {
  font-size: 18px;
  color: var(--ink-muted);
  max-width: 420px;
}
#canvas-container {
  position: relative;
  width: 100%;
  height: 480px;
  z-index: 2;
  cursor: grab;
}
#canvas-container:active {
  cursor: grabbing;
}
#canvas-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}
.bottom-nav {
  display: none;
}
.fab {
  display: none;
}
.profile-layout {
  display: grid;
  gap: 16px;
  max-width: 760px;
}
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.profile-card h2 {
  font-size: 24px;
  margin-bottom: 16px;
}
.page-heading-row {
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
@media (max-width: 900px) {
  .nav-tabs {
    display: none;
  }
  .nav-user-badge {
    display: none;
  }
  .nav-right {
    margin-left: auto;
  }
  .page {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
  .bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: var(--nav);
    border-top: 1px solid rgba(243, 232, 204, 0.2);
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  }
  .bottom-nav .nav-tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--nav-ink);
    padding: 6px 4px;
    font-size: 11px;
  }
  .bottom-nav .nav-tab-btn i {
    font-size: 20px;
  }
  .bottom-nav .nav-tab-btn.active {
    color: var(--accent);
  }
  body.show-fab .fab {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 16px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    z-index: 210;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 0;
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 6px 16px rgba(24, 84, 42, 0.2);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
  }
  .btn.log-meal-header {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-title {
    font-size: 34px;
  }
  #canvas-container {
    height: 350px;
  }
  .main-grid {
    grid-template-columns: 1fr;
  }
}
[data-guest-only] {
  display: none;
}
body:not(.is-authed) [data-guest-only] {
  display: block;
}
body:not(.is-authed) [data-authed-only] {
  display: none !important;
}
.guest-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  margin-bottom: 16px;
}
.guest-banner p {
  margin-top: 6px;
}
.guest-sample {
  background: var(--surface);
  border: 1px dashed var(--border-2);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 12px;
}
.sample-pill {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.guest-sample-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.guest-sample-grid div {
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: 12px;
}
.guest-sample-grid span {
  display: block;
  color: var(--ink-muted);
  font-size: 12px;
}
.guest-sample-grid strong {
  font-size: 18px;
}
.guest-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
}
.guest-intro h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 8px 0 12px;
}
.guest-intro ul {
  margin: 12px 0 16px;
  padding-left: 18px;
}
.guest-intro li {
  margin: 6px 0;
}
.food-orbit {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  container-type: size;
}
.food-orbit-spin {
  position: absolute;
  inset: 8%;
  animation: food-spin 28s linear infinite;
}
.food-orbit-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  transform: rotate(calc(var(--i) * 45deg)) translateY(-34cqmin) rotate(calc(var(--i) * -45deg));
}
.guest-sample input {
  width: 100%;
  margin-top: 4px;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: inherit;
}
.food-orbit-face {
  width: 72px;
  height: 72px;
  animation: food-spin 28s linear infinite reverse;
}
.food-orbit-face svg {
  width: 100%;
  height: 100%;
  display: block;
}
@media (max-width: 900px) {
  .guest-home-grid {
    grid-template-columns: 1fr;
  }
  .food-orbit {
    width: min(280px, 80%);
  }
  input, select, textarea {
    font-size: 16px !important;
  }
}
@keyframes food-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .food-orbit-spin, .food-orbit-face {
    animation: none;
  }
}
.guest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.android-download-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-muted);
}
.is-ios .android-download, .is-ios .android-download-note {
  display: none;
}
[hidden] {
  display: none !important;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-spring);
  text-decoration: none;
  line-height: 1;
}
.btn:focus-visible, .field input:focus-visible, .field select:focus-visible, .form-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn:disabled {
  opacity: 0.55;
  cursor: wait;
}
.btn-fill {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
  border-radius: var(--r-pill);
  min-height: 48px;
  font-weight: 600;
}
.btn-fill:hover, .btn-fill:active {
  background: var(--accent-hover);
}
.btn-ghost {
  background: var(--cream);
  color: var(--forest);
  border-color: transparent;
  border-radius: var(--r-pill);
  font-weight: 600;
}
.btn-ghost:hover {
  border-color: var(--forest);
}
.btn-danger {
  background: rgba(213, 37, 24, 0.1);
  color: var(--danger);
  border-color: rgba(213, 37, 24, 0.3);
}
.btn-danger:hover {
  background: rgba(213, 37, 24, 0.18);
  border-color: var(--danger);
}
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--r-sm);
}
.btn-lg {
  padding: 14px 24px;
  font-size: 15px;
  border-radius: var(--r-md);
}
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  line-height: 1;
}
.rating-badge.rating-a {
  background: rgba(24, 84, 42, 0.12);
  color: var(--success);
  border: 1px solid rgba(24, 84, 42, 0.35);
}
.rating-badge.rating-b {
  background: var(--sunshine);
  color: var(--ink);
  border: 1px solid transparent;
}
.rating-badge.rating-c {
  background: rgba(249, 96, 21, 0.16);
  color: var(--ink);
  border: 1px solid rgba(249, 96, 21, 0.5);
}
.rating-badge.rating-d {
  background: rgba(213, 37, 24, 0.1);
  color: var(--danger);
  border: 1px solid rgba(213, 37, 24, 0.35);
}
.rating-badge.rating-na {
  background: var(--cream);
  color: var(--ink-muted);
  border: 1px solid var(--line);
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 30, 27, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease-spring);
  padding: 24px;
}
.overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 480px;
  padding: 28px;
  transform: translateY(12px) scale(0.98);
  transition: transform var(--t-base) var(--ease-spring);
  box-shadow: 0 20px 40px rgba(24, 84, 42, 0.18);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.modal-wide {
  max-width: 720px;
}
.modal-subtitle {
  color: var(--ink-muted);
  font-size: 12px;
  margin-top: 5px;
}
.overlay.open .modal {
  transform: translateY(0) scale(1);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-title {
  font-size: 24px;
}
.confirm-body {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  flex: 1;
}
.field-row {
  display: flex;
  gap: 16px;
}
.field-grow-2 {
  flex: 2;
}
.field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.field input, .field select, .form-input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--t-fast);
}
.field input:focus, .field select:focus, .form-input:focus {
  border-color: var(--border-2);
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}
@media (max-width: 640px) {
  .overlay {
    padding: 12px;
    align-items: flex-end;
  }
  .modal {
    padding: 22px 18px;
    max-height: 92vh;
  }
  .field-row {
    flex-direction: column;
    gap: 0;
  }
  .btn {
    min-height: 44px;
  }
  .form-actions .btn {
    flex: 1;
  }
}
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: var(--ink);
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-size: 13px;
  box-shadow: var(--shadow);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s var(--ease-spring);
  pointer-events: auto;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast--success {
  border-color: var(--success);
  color: var(--success);
}
.toast--danger {
  border-color: var(--danger);
  color: var(--danger);
}
.toast--info {
  border-color: var(--border-2);
  color: var(--ink);
}
.trend-weight-form {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 260px) auto;
  align-items: end;
  gap: 16px;
  margin-top: 18px;
}
@media (max-width: 900px) {
  .toast-container {
    left: 12px;
    right: 12px;
    bottom: calc(88px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 680px) {
  .trend-weight-form {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }
}
.dash-masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.dash-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.dash-greeting-h1 {
  font-size: 40px;
  line-height: 1.15;
}
.dash-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.dash-hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.dash-kcal-card, .dash-train-card, .dash-tile, .dash-section, .dash-catering, .dash-adaptive-card, .trend-chart-card, .summary-card, .timer-strip, .sidebar-section, .macro-card, .food-log-card {
  border: 1px solid var(--border);
}
.dash-more, .dash-why {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  margin: 16px 0;
}
.dash-more summary, .dash-why summary {
  cursor: pointer;
  font-weight: 600;
}
.today-strip {
  margin: 16px 0 8px;
}
.dash-kcal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow);
}
.dash-card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
.dash-kcal-numbers {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
}
.dash-kcal-main {
  font-size: 56px;
  line-height: 1;
}
.dash-kcal-unit {
  font-size: 16px;
  color: var(--ink-muted);
}
.dash-kcal-bar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.dash-kcal-bar-track {
  flex: 1;
  height: 8px;
  background: var(--cream);
  border-radius: 4px;
  overflow: hidden;
}
.dash-kcal-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--carrot);
  border-radius: 4px;
  transition: width 0.7s var(--ease-spring), background var(--t-fast);
}
.dash-kcal-bar-fill[data-state="met"] {
  background: var(--forest);
}
.dash-kcal-bar-fill[data-state="over"] {
  background: var(--tomato);
}
.dash-kcal-pct[data-state="over"] {
  color: var(--tomato);
  font-weight: 600;
}
.dash-kcal-pct {
  font-size: 12px;
  color: var(--ink-muted);
  min-width: 34px;
  text-align: right;
}
.dash-kcal-target-label {
  font-size: 12px;
  color: var(--ink-faint);
}
.dash-train-card {
  background: var(--surface);
  border: none;
  border-radius: var(--r-lg);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform var(--t-fast) var(--ease-base), background var(--t-fast);
}
.dash-train-card:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
}
.dash-train-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 16px 0 12px;
}
.dash-train-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dash-train-stat-val {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.dash-train-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.dash-train-stat-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
  flex-shrink: 0;
}
.dash-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
  align-items: stretch;
}
.dash-macro-col {
  background: var(--surface);
  border: none;
  border-radius: var(--r-lg);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  box-shadow: var(--shadow);
}
.dash-macro-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dash-macro-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.dash-macro-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.dash-macro-val {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.dash-macro-track {
  height: 6px;
  background: var(--cream);
  border-radius: 2px;
  overflow: hidden;
}
.dash-macro-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 0.7s var(--ease-spring);
}
.dash-macro-fill--p {
  background: var(--macro-protein);
}
.dash-macro-fill--c {
  background: var(--macro-carbs);
}
.dash-macro-fill--f {
  background: var(--macro-fat);
}
.dash-macro-fill--s {
  background: var(--macro-sugar);
}
.dash-wk-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.dash-tile {
  background: var(--surface);
  border: none;
  border-radius: var(--r-lg);
  padding: 20px 22px;
  cursor: default;
  box-shadow: var(--shadow);
  transition: background var(--t-fast), transform var(--t-fast);
}
.dash-tile[onclick] {
  cursor: pointer;
}
.dash-tile[onclick]:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
}
.dash-tile-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.dash-tile-val {
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 4px;
  color: var(--ink);
}
.dash-tile-sub {
  font-size: 11px;
  color: var(--ink-muted);
}
.dash-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.dash-adaptive-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.dash-adaptive-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow);
}
.dash-adaptive-card h2 {
  font-size: 24px;
  margin-bottom: 8px;
}
.dash-adaptive-target {
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 8px;
}
.dash-remaining-macros {
  color: var(--ink-faint);
  font-size: 12px;
  margin-bottom: 8px;
}
.dash-catering {
  margin-bottom: 16px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
  box-shadow: var(--shadow);
}
.dash-catering .dash-card-label {
  color: var(--cream);
  opacity: 0.8;
}
.dash-catering h2.editorial {
  color: var(--canvas);
}
.dash-catering .rating-badge {
  background: var(--cream);
  color: var(--forest);
  border-color: transparent;
}
.dash-catering-adjustment {
  color: var(--cream);
}
.dash-catering-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.dash-catering-head h2 {
  font-size: 24px;
}
.dash-catering-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.dash-catering-grid > div {
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--canvas);
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dash-catering-grid span, .dash-catering-grid small {
  color: var(--ink-muted);
  font-size: 12px;
}
.dash-catering-grid strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}
.dash-catering-adjustment {
  margin-top: 16px;
  font-size: 13px;
  text-transform: capitalize;
}
.dash-why-card {
  margin-bottom: 20px;
}
.dash-why-card .dash-insight + .dash-insight {
  margin-top: 12px;
}
@media (max-width: 760px) {
  .dash-catering-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dash-catering-head {
    flex-direction: column;
  }
}
@media (max-width: 420px) {
  .dash-catering-grid {
    grid-template-columns: 1fr;
  }
}
.dash-adaptive-suggestion, .dash-insight {
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.6;
}
@media (max-width: 760px) {
  .dash-masthead {
    align-items: flex-start;
    gap: 20px;
  }
  .dash-masthead, .dash-actions {
    flex-direction: column;
  }
  .dash-actions {
    width: 100%;
  }
  .dash-actions .btn {
    width: 100%;
  }
  .dash-hero-row, .dash-row-2, .dash-adaptive-row, .dash-bottom-row {
    grid-template-columns: 1fr;
  }
  .dash-kcal-main {
    font-size: 48px;
  }
  .dash-greeting-h1 {
    font-size: 32px;
  }
}
.dash-section {
  background: var(--surface);
  border: none;
  border-radius: var(--r-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow);
}
.dash-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.dash-section-link {
  background: transparent;
  border: none;
  font-size: 12px;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color var(--t-fast);
  font-family: inherit;
}
.dash-section-link:hover {
  color: var(--ink);
}
.dash-food-row, .dash-workout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.dash-food-row:last-child, .dash-workout-row:last-child {
  border-bottom: none;
}
.dash-food-name, .dash-workout-name {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 2px;
}
.dash-food-meta, .dash-workout-meta {
  font-size: 12px;
  color: var(--ink-muted);
}
.dash-food-kcal, .dash-workout-sets {
  font-size: 14px;
  color: var(--ink-muted);
  white-space: nowrap;
}
.dash-empty-meals {
  font-size: 14px;
  color: var(--ink-faint);
  padding: 20px 0;
  text-align: center;
}
.sidebar-section {
  background: var(--surface);
  border: none;
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.sidebar-title {
  font-size: 20px;
  font-weight: 300;
  margin-bottom: 16px;
}
.summary-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sidebar-section .summary-card {
  border: 0;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-muted);
}
.summary-row strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.log-heading {
  margin-bottom: 16px;
}
.log-title {
  font-size: 24px;
  font-weight: 300;
}
.timer-strip {
  background: var(--surface);
  border: none;
  border-radius: var(--r-lg);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.timer-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.timer-val {
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
}
.timer-actions {
  display: flex;
  gap: 10px;
}
.exercise-card {
  background: var(--surface);
  border: none;
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.exercise-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.exercise-title {
  font-size: 20px;
  font-weight: 300;
}
.set-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
.set-table th, .set-table td {
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
}
.set-table th {
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--line);
}
.set-table td {
  border-bottom: 1px solid var(--line);
}
.set-table tr:last-child td {
  border-bottom: none;
}
.trend-chart-card {
  background: var(--surface);
  border: none;
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.trend-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.trend-chart-title {
  font-size: 22px;
  font-weight: 300;
}
.chart-filters {
  display: flex;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: var(--r-pill);
}
.chart-filter-btn {
  background: transparent;
  border: none;
  color: var(--ink-muted);
  font-size: 11px;
  font-family: inherit;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--t-fast);
}
.chart-filter-btn.active {
  background: var(--accent);
  color: var(--accent-ink);
}
.chart-wrapper {
  position: relative;
  width: 100%;
}
.nutrition-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .nutrition-grid {
    grid-template-columns: 1fr;
  }
}
.day-summary {
  background: var(--surface);
  border: none;
  border-radius: var(--r-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}
.day-kcal {
  font-size: 32px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.1;
}
.day-kcal span {
  font-size: 16px;
  color: var(--ink-muted);
}
.day-sub {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-top: 4px;
}
.macro-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.macro-card {
  background: var(--surface);
  border: none;
  border-radius: var(--r-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow);
}
.macro-card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}
.macro-card-val {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.macro-card-target {
  font-size: 11px;
  color: var(--ink-faint);
}
.macro-detail {
  background: var(--surface);
  border: none;
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
}
.macro-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-muted);
}
.macro-detail-val {
  color: var(--ink);
}
.food-log-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.food-log-title {
  font-size: 24px;
  font-weight: 300;
}
.empty-food {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  text-align: center;
  color: var(--ink);
  font-size: 14px;
}
.food-log-card {
  background: var(--surface);
  border: none;
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
}
.food-log-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.food-log-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}
.estimate-note {
  color: var(--ink-faint);
  font-size: 11px;
}
.food-log-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.food-log-macros {
  font-size: 12px;
  color: var(--ink-muted);
  display: flex;
  gap: 12px;
}
.macro-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.scan-dropzone {
  border: 2px dashed var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t-fast);
  background: var(--bg);
}
.scan-dropzone:hover {
  border-color: var(--ink-muted);
}
@media (max-width: 640px) {
  .food-log-heading, .food-log-card {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }
  .food-log-controls {
    align-items: stretch;
    flex-direction: column;
  }
  .food-log-actions {
    justify-content: space-between;
  }
  .food-log-macros {
    flex-wrap: wrap;
    gap: 6px 12px;
  }
}
.macro-track .m-p {
  background: var(--macro-protein);
}
.macro-track .m-c {
  background: var(--macro-carbs);
}
.macro-track .m-f {
  background: var(--macro-fat);
}
.pin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 30, 27, 0.45);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
}
.pin-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.login-box {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.login-brand {
  font-size: 32px;
  color: var(--heading);
  margin-bottom: 48px;
}
.login-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.login-step--hidden {
  display: none;
}
.login-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 2px;
}
.login-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-2);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 22px;
  padding: 8px 0;
  outline: none;
  transition: border-color var(--t-base);
  box-sizing: border-box;
}
.login-input:focus {
  border-bottom-color: var(--ink-muted);
}
.login-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
}
.login-btn {
  margin-top: 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 13px 28px;
  min-height: 48px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
  align-self: flex-start;
}
.login-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.login-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.login-back {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-faint);
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
  transition: color var(--t-fast);
  text-align: left;
}
.login-back:hover {
  color: var(--ink-muted);
}
.login-error {
  font-size: 13px;
  color: var(--danger);
  margin-top: 16px;
  min-height: 20px;
}
.login-lockout {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 4px;
  min-height: 20px;
}
@keyframes loginShake {
  0%, 100% {
    transform: translateX(0);
  }
  15% {
    transform: translateX(-8px);
  }
  30% {
    transform: translateX(8px);
  }
  45% {
    transform: translateX(-6px);
  }
  60% {
    transform: translateX(6px);
  }
  75% {
    transform: translateX(-3px);
  }
  90% {
    transform: translateX(3px);
  }
}
.login-shake {
  animation: loginShake 0.45s var(--ease-spring);
}
.admin-body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}
.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0;
}
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.admin-head h1 {
  font-size: clamp(32px,6vw,40px);
}
.admin-login {
  width: min(420px,100%);
  display: grid;
  gap: 10px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
}
.admin-login input {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-2);
  background: var(--bg);
  color: var(--ink);
}
.admin-login [role="alert"] {
  color: var(--danger);
}
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.admin-metrics div {
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-metrics span,.admin-note,td small {
  color: var(--ink-muted);
  font-size: 12px;
}
.admin-metrics strong {
  font-size: 28px;
}
.admin-table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  background: var(--surface);
}
.admin-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}
.admin-table-wrap th,.admin-table-wrap td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.admin-table-wrap td small {
  display: block;
  margin-top: 4px;
}
.admin-table-wrap select {
  min-height: 36px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border-2);
  border-radius: 6px;
}
.admin-note {
  margin-top: 14px;
}
@media (max-width:760px) {
  .admin-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .admin-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}
.editorial {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@property --tw-space-y-reverse {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-ring-inset {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}
@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-space-y-reverse: 0;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-outline-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
    }
  }
}
