:root {
  --color-primary: #e6953b;
  --color-primary-soft: #a97a4f;

  --color-background: #fff7ed;
  --color-surface: #fffbf5;
  --color-surface-strong: #ffffff;
  --color-surface-muted: #f8f5ef;
  --color-surface-stronger: #fff9f1;

  --color-border: #f1e5d8;
  --color-border-muted: rgba(121, 89, 56, 0.16);
  --color-border-strong: #d6c7b2;

  --color-text: #2d2d2d;
  --color-text-muted: #6b7280;

  --color-accent-primary: #5f8f5d;
  --color-accent-soft: #eef7ea;
  --color-accent-muted: #7fa67a;
  --color-accent-surface: #f7fbf4;
  --color-accent-border: rgba(95, 143, 93, 0.24);
  --color-accent-green: var(--color-accent-primary);

  --color-success: #4f7d4d;
  --color-success-bg: #edf7eb;
  --color-warning-bg: #fff4e5;
  --color-info-bg: #eef6ff;

  --shadow-soft: 0 2px 10px rgba(80, 52, 24, 0.04);
  --shadow-card: 0 6px 18px rgba(80, 52, 24, 0.07);

  /* additional spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-xxl: 32px;

  /* additional typography */
  --font-size-caption: 11px;
  --font-size-label: 12px;
  --font-size-body-sm: 13px;
  --font-size-body: 15px;
  --font-size-body-lg: 16px;
  --font-size-heading-sm: 14px;
  --font-size-heading: 17px;
  --font-size-title: 20px;
  --font-size-display: 24px;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* additional radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* elevation */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --focus-ring: 0 0 0 3px rgba(95, 143, 93, 0.24);
  --shadow-focus: var(--focus-ring);
  --transition-fast: 0.12s ease;
  --transition-base: 0.18s ease;
}
body {
  font-family:
    Arial,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: var(--font-size-body);
  line-height: 1.6;
  padding: 18px 18px 24px;
  background: var(--color-background);
  color: var(--color-text);
  -webkit-text-size-adjust: 100%;
}

#app {
  max-width: 620px;
  margin: 0 auto;
}

a {
  color: var(--color-success);
  text-underline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

h1 {
  text-align: center;
}

.day-card {
  background: var(--color-surface-strong);
  padding: 12px;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

button {
  margin-top: 8px;
  padding: 6px 10px;
}

button,
input,
textarea,
select,
[onclick] {
  -webkit-tap-highlight-color: rgba(95, 143, 93, 0.16);
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[onclick]:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.meal-btn {
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-bottom: 6px;
}

.remove-meal-btn {
  font-size: 10px;
  padding: 2px 6px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.meal-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.meal-name {
  position: relative;
  font-size: 14px;
}

.meal-pill {
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.meal-pill--neutral {
  color: var(--color-text-muted);
  background: var(--color-surface-muted);
  border-color: var(--color-border);
}

.meal-pill--attention {
  color: var(--color-success);
  background: var(--color-success-bg);
  border-color: var(--color-accent-border);
}

.meal-recipe-link {
  flex-shrink: 0;
  align-self: center;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.meal-recipe-link:hover {
  color: var(--color-accent-primary);
}

.day-column {
  border: 1px solid var(--color-border);
  padding: 10px;
  background: var(--color-surface-strong);
}

.assignment-row {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(95, 143, 93, 0.07);
}

.assignment-row--light {
  color: #707784;
}

.assignment-row--medium {
  color: #4f5561;
}

.meal-input {
  display: block;
  margin-bottom: 6px;
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.4;
}

.flex-button-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.flex-button-row > button {
  flex: 1;
  min-height: 42px;
}

.meal-action-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  width: 100%;
  margin-top: 2px;
  padding: 6px;
  border-radius: var(--radius-md);
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
}

.meal-edit-container {
  background: var(--color-surface-muted);
  border: 2px solid var(--color-accent-border);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: 0 4px 14px rgba(95, 143, 93, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.surface-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.login-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-md);
}

.login-policy-link {
  color: var(--color-text-muted);
  font-size: var(--font-size-body-sm);
  font-weight: var(--font-weight-semibold);
}

.auth-page {
  min-height: calc(100vh - 42px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: -18px;
  padding: 34px 18px calc(28px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 16% 18%, rgba(230, 149, 59, 0.1), transparent 24%),
    linear-gradient(180deg, #fff8ee 0%, #fff3e6 100%);
}

.auth-shell {
  width: min(100%, 540px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.auth-logo {
  width: min(52vw, 214px);
  height: auto;
  display: block;
}

.auth-brand h1 {
  margin: 0;
  color: #23272f;
  font-size: 42px;
  line-height: 1.08;
  font-weight: var(--font-weight-bold);
}

.auth-brand p {
  max-width: 360px;
  margin: 12px auto 0;
  color: #68707a;
  font-size: 18px;
  line-height: 1.45;
}

.auth-card {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(121, 89, 56, 0.14);
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(80, 52, 24, 0.11);
  text-align: left;
}

.auth-card-header {
  text-align: center;
}

.auth-card-header h2 {
  margin: 0;
  color: #23272f;
  font-size: 25px;
  line-height: 1.2;
}

.auth-card-header p {
  margin: 8px 0 0;
  color: var(--color-text-muted);
  font-size: 17px;
  line-height: 1.35;
}

.auth-alert {
  padding: 11px 13px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-body-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
  text-align: left;
}

.auth-alert--error {
  color: #934018;
  background: #fff0e4;
  border: 1px solid rgba(255, 111, 21, 0.25);
}

.auth-alert--success {
  color: var(--color-success);
  background: var(--color-success-bg);
  border: 1px solid var(--color-accent-border);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #23272f;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-bold);
}

.auth-field input {
  width: 100%;
  min-height: 58px;
  box-sizing: border-box;
  border: 1px solid #cfc7bd;
  border-radius: var(--radius-md);
  padding: 0 16px;
  background: #ffffff;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.3;
  appearance: none;
  -webkit-appearance: none;
}

.auth-field input::placeholder {
  color: #777a81;
}

.auth-password-row {
  position: relative;
}

.auth-password-row input {
  padding-right: 78px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  min-width: 54px;
  min-height: 40px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #636972;
  font-size: var(--font-size-body-sm);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transform: translateY(-50%);
}

.auth-forgot-link {
  align-self: flex-end;
  min-height: 34px;
  margin: -6px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f06a14;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.auth-primary-btn,
.auth-google-btn {
  width: 100%;
  min-height: 58px;
  margin: 0;
  border-radius: var(--radius-md);
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
}

.auth-primary-btn {
  margin-top: 10px;
  border: 1px solid #ff761f;
  background: #ff761f;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(255, 118, 31, 0.2);
}

.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid #ff761f;
  background: #ffffff;
  color: #23272f;
}

.auth-google-mark {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4285f4;
  font-size: 22px;
  font-weight: var(--font-weight-bold);
  line-height: 1;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  color: var(--color-text-muted);
  font-size: var(--font-size-body);
}

.auth-divider span {
  height: 1px;
  background: #d8d4ce;
}

.auth-divider b {
  font-weight: var(--font-weight-regular);
}

.auth-switch {
  color: #686f78;
  font-size: 17px;
  line-height: 1.4;
}

.auth-switch button {
  min-height: 40px;
  margin: 0;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #f06a14;
  font: inherit;
  font-weight: var(--font-weight-bold);
  cursor: pointer;
}

.auth-legal-links {
  padding-bottom: 2px;
}

.auth-page button:disabled,
.auth-page input:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.onboarding-page {
  align-items: flex-start;
}

.onboarding-shell {
  width: min(100%, 560px);
  gap: 22px;
  padding-top: 10px;
}

.onboarding-logo {
  width: min(56vw, 238px);
}

.onboarding-brand p {
  max-width: 420px;
}

.onboarding-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.onboarding-action-card {
  width: 100%;
  min-height: 142px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 22px 20px;
  border: 1px solid rgba(121, 89, 56, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(80, 52, 24, 0.08);
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
}

.onboarding-action-card:hover {
  border-color: rgba(230, 149, 59, 0.2);
  box-shadow: 0 16px 34px rgba(80, 52, 24, 0.12);
}

.onboarding-action-card:active {
  transform: translateY(1px);
}

.onboarding-action-art {
  width: 94px;
  height: 94px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  flex: 0 0 auto;
}

.onboarding-action-art--create {
  background: #fff1dc;
}

.onboarding-action-art--join {
  background: #eff7df;
}

.onboarding-action-icon {
  width: 72px;
  height: 72px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.8;
}

.onboarding-action-icon--create {
  color: #f18417;
  stroke: currentColor;
}

.onboarding-action-icon--join {
  color: #78a933;
  stroke: currentColor;
}

.onboarding-action-icon__badge {
  fill: currentColor;
  stroke: currentColor;
}

.onboarding-action-icon__plus {
  stroke: #ffffff;
  stroke-width: 4.2;
}

.onboarding-action-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.onboarding-action-title {
  color: #23272f;
  font-size: 24px;
  font-weight: var(--font-weight-bold);
  line-height: 1.15;
}

.onboarding-action-helper {
  color: #666d76;
  font-size: 17px;
  line-height: 1.45;
}

.onboarding-action-chevron {
  color: #4d535b;
  font-size: 52px;
  font-weight: var(--font-weight-regular);
  line-height: 1;
}

.onboarding-info-card {
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(230, 149, 59, 0.25);
  border-radius: 20px;
  background: rgba(255, 251, 245, 0.7);
  color: #23272f;
  text-align: left;
}

.onboarding-info-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  color: #f18417;
}

.onboarding-info-icon .onboarding-action-icon {
  width: 54px;
  height: 54px;
}

.onboarding-info-icon .onboarding-action-icon__badge,
.onboarding-info-icon .onboarding-action-icon__plus {
  display: none;
}

.onboarding-info-card strong,
.onboarding-info-card span span {
  display: block;
}

.onboarding-info-card strong {
  margin-bottom: 4px;
  font-size: 18px;
  line-height: 1.25;
}

.onboarding-info-card span span {
  color: #666d76;
  font-size: 16px;
  line-height: 1.4;
}

.settings-link {
  color: var(--color-success);
  font-weight: var(--font-weight-semibold);
}

.policy-page {
  padding: 24px 18px 40px;
}

.policy-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.policy-back-link {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--color-text-muted);
  font-size: var(--font-size-body-sm);
  font-weight: var(--font-weight-semibold);
}

.policy-header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.policy-logo {
  width: 72px;
  height: auto;
  flex: 0 0 auto;
}

.policy-header h1 {
  margin: 0 0 6px;
  font-size: var(--font-size-display);
  line-height: 1.2;
}

.policy-updated {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-body-sm);
  font-weight: var(--font-weight-semibold);
}

.policy-section {
  margin-top: 24px;
}

.policy-section h2 {
  margin: 0 0 8px;
  font-size: var(--font-size-heading);
  line-height: 1.25;
  color: var(--color-text);
}

.policy-section p,
.policy-section ul {
  margin: 0;
  color: var(--color-text-muted);
}

.policy-section ul {
  padding-left: 22px;
}

.policy-section li + li {
  margin-top: 6px;
}

.tonight-panel {
  border-color: rgba(95, 143, 93, 0.16);
  background: var(--color-accent-surface);
  box-shadow: 0 8px 20px rgba(80, 52, 24, 0.08);
}

.tonight-header {
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4f6d4b;
  opacity: 0.85;
  margin-bottom: 4px;
}

.tonight-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  background: var(--color-surface-strong);
  border: 1px solid var(--color-border-muted);
  box-shadow: var(--shadow-sm);
}

.tonight-card-title {
  font-size: var(--font-size-title);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--color-text);
}

.tonight-card-meta {
  font-size: var(--font-size-body-sm);
  color: var(--color-text-muted);
  line-height: 1.4;
}

.day-column-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meal-row {
  padding: 12px 14px;
  background: transparent;
  border-radius: 14px;
  border: 1px solid transparent;
  box-sizing: border-box;

  transition:
    background 0.14s ease,
    border-color 0.14s ease,
    box-shadow 0.14s ease;
}

.meal-row:hover {
  background: #fffaf5;
  border-color: rgba(95, 143, 93, 0.14);
}

.meal-name {
  position: relative;
  font-size: var(--font-size-body-lg);
  font-weight: 600;
  color: var(--color-text);
}

.meal-name-action,
.today-meal-name-action,
.variation-meal-action {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

.meal-name-action {
  display: block;
  max-width: 100%;
  font-size: 15px;
  line-height: 1.16;
  word-break: break-word;
}

.meal-status-row {
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.meal-status-row:empty {
  display: none;
}

.meal-name-action:hover,
.meal-name-action:focus-visible,
.today-meal-name-action:hover,
.today-meal-name-action:focus-visible,
.variation-meal-action:hover,
.variation-meal-action:focus-visible {
  color: #355f34;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.variation-meal-action:disabled {
  cursor: default;
  text-decoration: none;
  opacity: 1;
}

.meal-action-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;

  flex: 1 1 100%;
  width: auto;

  margin-top: 2px;
  padding: 10px 12px;

  border-radius: var(--radius-md);
  background: #fbf7f0;
  border: 1px solid var(--color-border);
}

.meal-action-bar .btn {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.meal-action-bar .remove-meal-btn {
  margin-left: auto;
}

.btn {
  margin-top: 0;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: var(--color-surface-muted);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;

  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    opacity var(--transition-fast),
    transform 0.08s ease;
  touch-action: manipulation;
}

.btn:hover {
  background: #f4efe7;
  border-color: var(--color-border-muted);
  box-shadow: var(--shadow-soft);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-accent-soft);
  color: #355f34;
  border-color: var(--color-accent-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-secondary {
  background: var(--color-surface-strong);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-primary:hover {
  background: #e5f1df;
  border-color: rgba(95, 143, 93, 0.32);
}

.btn-warning {
  background: var(--color-warning-bg);
  color: #9a5a12;
  border-color: rgba(230, 149, 59, 0.18);
}

.btn-danger {
  background: rgba(247, 242, 243, 0.95);
  color: #9b626a;
  border-color: rgba(156, 110, 116, 0.16);
}

.btn-danger:hover {
  background: #f2e8ea;
}

.btn-success {
  background: var(--color-success-bg);
  color: var(--color-success);
  border-color: var(--color-accent-border);
}

.btn-success:hover {
  background: #e5f1df;
  border-color: rgba(95, 143, 93, 0.32);
}

.btn-subtle {
  opacity: 0.92;
}

.suggestion-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-strong);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.suggestion-card-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.suggestion-title {
  color: var(--color-text);
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.suggestion-meta {
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.suggestion-date-pill {
  width: fit-content;
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid var(--color-border-muted);
  border-radius: var(--radius-pill);
  background: var(--color-surface-muted);
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

.suggestion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestion-actions .btn {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

.suggestion-choice-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-muted);
}

.suggestion-choice-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.suggestion-choice-title {
  color: var(--color-text);
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

.suggestion-choice-prompt,
.suggestion-choice-current {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
}

.suggestion-choice-value {
  color: var(--color-text);
  font-size: 15px;
  font-weight: var(--font-weight-bold);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.suggestion-choice-actions,
.suggestion-person-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestion-choice-actions .btn,
.suggestion-person-chip {
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

.suggestion-choice-cancel,
.suggestion-person-chip {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-strong);
  color: var(--color-text);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  touch-action: manipulation;
}

.suggestion-choice-cancel {
  min-height: 32px;
  padding: 0 10px;
  color: var(--color-text-muted);
  font-size: 12px;
}

.suggestion-person-chip {
  margin: 0;
}

.suggestion-person-chip:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.meal-btn {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 1px 2px rgba(0, 0, 0, 0.04);
  min-height: 44px;
  padding: 0 14px;
  font-size: var(--font-size-body);
}

.header-shell {
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(121, 89, 56, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 22px rgba(80, 52, 24, 0.06);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-logo-shell {
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-logo-shell img {
  width: 100%;
  height: auto;
  display: block;
}

.header-content {
  flex: 1;
  min-width: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;

  gap: 8px;
}

.header-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;

  color: #3a3228;
}

.header-save-state {
  font-size: 12px;
  line-height: 1.2;

  color: #8b7d6b;

  min-height: 14px;
}

.header-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 14px;

  margin-top: 2px;
}

.header-user-name {
  font-size: 13px;
  font-weight: 500;

  color: #7f7466;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-icon {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.header-settings-btn {
  width: 46px;
  height: 46px;
  padding: 0;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(95, 143, 93, 0.1);
  border-radius: 18px;
  background: transparent;
  color: #4f704c;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
  transition:
    background 0.12s ease,
    border-color 0.12s ease,
    transform 0.08s ease;
}

.header-settings-btn .app-icon {
  width: 28px;
  height: 28px;
}

.header-settings-btn:hover,
.header-settings-btn--active {
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(95, 143, 93, 0.18);
}

.header-settings-btn:active {
  transform: scale(0.98);
}

.header-signout-btn {
  margin-top: 0;
  min-height: 32px;
  padding: 0 12px;

  font-size: 12px;
  font-weight: 600;

  color: #8b5a2b;

  background: rgba(255, 255, 255, 0.62);

  border: 1px solid rgba(230, 149, 59, 0.14);

  border-radius: 999px;

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);

  flex-shrink: 0;

  transition:
    background 0.12s ease,
    border-color 0.12s ease,
    opacity 0.12s ease;
}

.header-signout-btn:hover {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(95, 143, 93, 0.28);
}

.header-signout-btn:active {
  background: var(--color-accent-surface);
}

@media (max-width: 768px) {
  .header-shell {
    margin-bottom: 22px;
    padding: 13px;
    border-radius: 20px;
  }

  .header-row {
    gap: 12px;
  }

  .header-logo-shell {
    width: 70px;
    height: 70px;
  }

  .header-title {
    font-size: 20px;
  }

  .header-settings-btn {
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .header-user-row {
    align-items: center;
  }
}

.page-section-title {
  margin: 0;
  font-size: 26px;
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.01em;
  color: #3a3228;
}

.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.page-section-subtitle {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.35;
  color: #6f6a63;
}

.week-chip {
  min-height: 42px;
  margin: 0;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 11px;
  border: 1px solid var(--color-accent-border);
  background: rgba(255, 253, 248, 0.9);
  color: #146323;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.week-chip-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.mobile-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 0 24px 0;
  padding: 0 2px;
  border-bottom: 1px solid var(--color-border);
}

.mobile-tab {
  position: relative;
  flex: 1 1 0;
  padding: 0 0 12px 0;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  opacity: 0.82;
  margin-top: 0;
  min-height: 44px;
  touch-action: manipulation;
  text-align: center;
}

.mobile-tab:hover {
  opacity: 1;
  color: var(--color-success);
}

.mobile-tab--active {
  color: #355f34;
  opacity: 1;
  font-weight: 700;
}

.mobile-tab--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 999px;
  background: var(--color-accent-primary);
}

.week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 18px 0;
  padding: 14px 16px;
  border: 1px solid rgba(121, 89, 56, 0.13);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow-soft);
}

.week-nav-btn {
  margin-top: 0;
  width: 46px;
  min-width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.68);
  font-size: 0;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  opacity: 0.88;
  transition:
    opacity 0.12s ease,
    transform 0.08s ease;
}

.week-nav-btn:hover {
  opacity: 1;
  color: var(--color-success);
  border-color: var(--color-accent-border);
  background: var(--color-accent-surface);
}

.week-nav-btn::before {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.week-nav-btn:first-child::before {
  content: "\2039";
}

.week-nav-btn:last-child::before {
  content: "\203a";
}

.week-nav-btn:active {
  transform: translateY(1px);
}

.week-nav-btn:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.week-nav-label {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #6f6a63;
}

.week-nav-label strong {
  color: #141414;
  font-size: 16px;
  line-height: 1.2;
}

.week-nav-label span {
  line-height: 1.2;
}

.planner-title-row {
  margin-bottom: 18px;
}

.getting-started-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: -4px 0 16px 0;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.94);
  border-color: rgba(121, 89, 56, 0.13);
  box-shadow: var(--shadow-soft);
  animation: getting-started-enter 160ms ease-out;
}

.getting-started-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-right: 38px;
  color: #6b5b45;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.getting-started-headline {
  color: var(--color-text);
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

.getting-started-copy {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  line-height: 1.45;
}

.getting-started-cta {
  width: 100%;
  min-height: 46px;
  margin-top: 2px;
}

.getting-started-dismiss {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #7a6f62;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.getting-started-dismiss:hover,
.getting-started-dismiss:focus-visible {
  background: var(--color-surface-muted);
  border-color: var(--color-border);
  color: var(--color-text);
}

.getting-started-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 10px;
}

.getting-started-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(74, 64, 52, 0.18);
}

.getting-started-dot--active {
  width: 18px;
  border-radius: var(--radius-pill);
  background: #6f8e57;
}

.getting-started-dot--done {
  background: rgba(111, 142, 87, 0.42);
}

@keyframes getting-started-enter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.completed-days-toggle {
  width: 100%;
  min-height: 52px;
  margin: 0 0 14px 0;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.88);
  color: #44403a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.completed-days-toggle-icon {
  width: 20px;
  height: 20px;
  color: #4b5563;
}

.completed-days-toggle:hover {
  color: var(--color-text);
  border-color: var(--color-accent-border);
  background: var(--color-accent-surface);
}

.day-column {
  background: var(--color-surface-strong);
  border: 1px solid var(--color-border);

  transition:
    background 0.14s ease,
    border-color 0.14s ease,
    opacity 0.14s ease,
    box-shadow 0.14s ease;
}

.day-column--today {
  background: #fffaf3 !important;
  border: 1px solid rgba(230, 149, 59, 0.18) !important;
  box-shadow: var(--shadow-card);
}

.day-column-today {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a6b32;
}

.day-column-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.day-column-title--today {
  font-size: 15px;
  font-weight: 600;
}

.day-column .meal-name {
  color: var(--color-text);
}

.day-column--today .meal-name {
  font-size: 20px !important;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.day-column--current-week,
.day-column--planner {
  position: relative;
  min-height: 0 !important;
  padding: 18px !important;
  gap: 12px !important;
  border-radius: 14px !important;
  background: rgba(255, 253, 248, 0.92);
  border-color: rgba(121, 89, 56, 0.13);
  box-shadow: var(--shadow-soft);
}

.day-column--planner {
  min-height: 112px !important;
}

.day-column--planner .day-column-label {
  position: relative;
  padding-right: 28px;
}

.day-column--planner .day-column-title {
  font-size: 15px;
  font-weight: 800;
}

.day-column--planner > div:last-child {
  min-width: 0;
  margin-top: 8px !important;
}

.day-column--planner .meal-row {
  padding: 0 !important;
  background: transparent !important;
}

.day-column--planner .meal-name {
  font-size: 20px !important;
  line-height: 1.14 !important;
  font-weight: 800;
}

.day-column--planner .meal-btn {
  width: 100%;
  min-height: 70px;
  margin: 2px 0 0;
  border-style: dashed;
  border-color: rgba(121, 89, 56, 0.22);
  background: rgba(255, 253, 248, 0.55);
  color: #146323;
  font-size: 15px;
  font-weight: 800;
}

.day-column--planner .day-options-button {
  right: 4px;
}

.day-column--current-week .day-column-label {
  position: relative;
  padding-right: 28px;
}

.day-column--current-week .day-column-title {
  font-size: 15px;
  font-weight: 800;
}

.day-options-button {
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  touch-action: manipulation;
}

.day-options-button:hover,
.day-options-button:focus-visible,
.day-options-button--open {
  background: var(--color-surface-muted);
  border-color: var(--color-border);
}

.day-options-button .app-icon {
  width: 20px;
  height: 20px;
}

.day-actions-menu {
  position: absolute;
  top: 42px;
  right: 14px;
  z-index: 20;
  width: min(230px, calc(100% - 28px));
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-strong);
  box-shadow: var(--shadow-card);
  transform-origin: top right;
  animation: day-actions-menu-enter 120ms ease-out;
}

@keyframes day-actions-menu-enter {
  from {
    opacity: 0;
    transform: translateY(-3px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.day-actions-menu-item {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text);
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.day-actions-menu-item:hover,
.day-actions-menu-item:focus-visible {
  background: var(--color-surface-muted);
}

.day-actions-menu-item--danger {
  color: #9b626a;
}

.day-actions-menu-note {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: #fff4e5;
  color: #9a6700;
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.day-actions-menu-note span {
  color: #6f6a63;
}

.suggest-change-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
}

.suggest-change-title {
  color: var(--color-text);
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

.suggest-change-prompt {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
}

.suggest-change-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.suggest-change-choice,
.suggest-change-cancel {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-strong);
  color: var(--color-text);
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  text-align: left;
  cursor: pointer;
}

.suggest-change-choice:hover,
.suggest-change-choice:focus-visible,
.suggest-change-cancel:hover,
.suggest-change-cancel:focus-visible {
  background: #fffaf5;
  border-color: var(--color-border-muted);
}

.suggest-change-cancel {
  color: var(--color-text-muted);
}

.today-hero {
  margin-bottom: 16px;
  padding: 20px 20px 18px;
  border-radius: 14px;
  border: 1px solid rgba(95, 143, 93, 0.42);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.84), transparent 34%),
    linear-gradient(135deg, #f5fbef 0%, #fbfff7 58%, #fff9ef 100%);
  box-shadow: 0 8px 22px rgba(95, 143, 93, 0.1);
}

.today-hero--compact {
  margin-bottom: 14px;
  padding: 14px 16px;
}

.today-hero--compact .today-hero-topline {
  margin-bottom: 10px;
}

.today-hero--compact .today-meal-row {
  margin-bottom: 8px;
}

.today-hero--compact .today-meal-name {
  font-size: 19px;
  line-height: 1.14;
}

.today-hero--static {
  cursor: default;
}

.today-hero-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.today-pill {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: #2f8f43;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.today-date-label {
  min-width: 0;
  flex: 1;
  color: #146323;
  font-size: 15px;
  font-weight: 800;
}

.today-icon {
  width: 28px;
  height: 28px;
  color: #ff9800;
}

.today-meal-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 14px;
}

.today-meal-name {
  margin: 0;
  color: #141414;
  font-size: 22px;
  line-height: 1.14;
  font-weight: 800;
}

.today-empty {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.empty-day-action {
  align-self: stretch;
}

.variation-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(121, 89, 56, 0.09);
}

.variation-list--compact {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.variation-list-label {
  color: #6f6a63;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.variation-row {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 9px;
  background: rgba(248, 245, 239, 0.82);
}

.variation-badge {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid currentColor;
}

.variation-badge--small {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}

.variation-icon {
  width: 70%;
  height: 70%;
}

.variation-badge--1 {
  color: #6b3fb6;
  background: #eadbff;
}

.variation-badge--2 {
  color: #176f3a;
  background: #d8f4dc;
}

.variation-badge--3 {
  color: #e06f00;
  background: #ffedd1;
}

.variation-badge--4 {
  color: #205e9e;
  background: #dcecff;
}

.variation-badge--5 {
  color: #4f7d25;
  background: #e4f5d1;
}

.variation-badge--6 {
  color: #d83a5e;
  background: #ffe0e7;
}

.variation-identity {
  flex: 0 0 auto;
  min-width: 90px;
  max-width: min(44%, 150px);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.variation-row-text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding-top: 0;
}

.variation-person {
  min-width: 0;
  color: #201f1d;
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.variation-meal {
  min-width: 0;
  color: #141414;
  font-size: 14px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.variation-status {
  margin-left: 4px;
  color: var(--color-success);
  font-size: 11px;
  font-weight: 700;
}

.variation-pending {
  color: #8b5a2b;
  font-size: 11px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.variation-pending span {
  color: #6f6a63;
}

.variation-row .assignment-request-btn {
  flex: 0 0 auto;
}

@media (max-width: 420px) {
  .variation-identity {
    min-width: 88px;
    max-width: 48%;
  }

  .variation-row-text {
    min-width: 150px;
  }
}

@media (max-width: 360px) {
  .variation-row {
    flex-wrap: wrap;
  }

  .variation-row-text {
    flex-basis: 100%;
    padding-top: 0;
    padding-left: 34px;
  }
}

.day-column--current-week .meal-row {
  padding: 0 !important;
  background: transparent !important;
}

.day-column--current-week .meal-name {
  font-size: 20px !important;
  line-height: 1.14 !important;
  font-weight: 800;
}

.day-column--current-week .meal-btn {
  width: 100%;
  min-height: 70px;
  margin: 2px 0 0;
  border-style: dashed;
  border-color: rgba(121, 89, 56, 0.22);
  background: rgba(255, 253, 248, 0.55);
  color: #146323;
  font-size: 15px;
  font-weight: 800;
}

.planner-add-week-card {
  width: 100%;
  min-height: 56px;
  margin: 14px 0 0;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(121, 89, 56, 0.13);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.92);
  color: #146323;
  font-size: 16px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.planner-add-week-icon {
  width: 19px;
  height: 19px;
  display: inline-flex;
}

.shopping-surface {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: var(--space-xl);
}

.shopping-surface h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
  color: var(--color-text);
}

.shopping-progress-card,
.shopping-control-card,
.shopping-items-card {
  overflow: hidden;
  border: 1px solid rgba(121, 89, 56, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.shopping-control-card {
  display: flex;
  flex-direction: column;
}

.shopping-progress-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  padding: 18px 18px 0;
}

.shopping-progress-header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 14px;
}

.shopping-progress-remaining {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: #146323;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.shopping-progress-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--color-text);
}

.shopping-progress-summary strong {
  min-width: 0;
  font-size: 24px;
  line-height: 1.2;
}

.shopping-progress-check {
  width: 28px;
  height: 28px;
  display: inline-flex;
  flex-shrink: 0;
  color: #16752c;
}

.shopping-progress-check .app-icon {
  width: 100%;
  height: 100%;
}

.shopping-progress-bar {
  height: 10px;
  overflow: hidden;
  margin-top: 20px;
  border-radius: var(--radius-pill);
  background: rgba(95, 143, 93, 0.16);
}

.shopping-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #16752c;
  transition: width var(--transition-fast);
}

.shopping-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 0;
}

.shopping-filter-control {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin: 0;
  border: 1px solid rgba(95, 143, 93, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: #146323;
}

.shopping-filter-select {
  min-height: 44px;
  min-width: 126px;
  margin: 0;
  padding: 0 38px 0 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #146323;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.shopping-filter-control .app-icon {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 17px;
  height: 17px;
  pointer-events: none;
  transform: translateY(-50%);
}

.shopping-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.shopping-actions-primary {
  width: 100%;
}

.shopping-action-btn {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
}

.shopping-action-btn .app-icon {
  width: 20px;
  height: 20px;
}

.shopping-action-btn--primary,
.shopping-panel .flex-button-row .btn:first-child {
  background: var(--color-accent-soft);
  color: #146323;
  border-color: var(--color-accent-border);
}

.shopping-action-btn--secondary {
  background: rgba(255, 255, 255, 0.78);
  color: var(--color-text);
  border-color: rgba(121, 89, 56, 0.13);
}

.shopping-tally-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px -18px 0;
  border-top: 1px solid rgba(121, 89, 56, 0.1);
}

.shopping-tally-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 8px;
  text-align: center;
}

.shopping-tally-item + .shopping-tally-item {
  border-left: 1px solid rgba(121, 89, 56, 0.1);
}

.shopping-tally-icon {
  width: 23px;
  height: 23px;
  display: inline-flex;
}

.shopping-tally-icon .app-icon {
  width: 100%;
  height: 100%;
}

.shopping-tally-icon--total,
.shopping-tally-icon--checked {
  color: #16752c;
}

.shopping-tally-icon--planner {
  color: #2b72b8;
}

.shopping-tally-icon--manual {
  color: #7a53c7;
}

.shopping-tally-item strong {
  color: var(--color-text);
  font-size: 20px;
  line-height: 1.1;
}

.shopping-tally-item span:last-child {
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.25;
}

.shopping-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.shopping-panel-title {
  font-size: var(--font-size-body-sm);
  font-weight: 700;
  color: var(--color-text);
}

.shopping-input {
  width: 100%;
  min-height: 124px;
  box-sizing: border-box;
  resize: vertical;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface-strong);
  color: var(--color-text);
  font: inherit;
  font-size: var(--font-size-body-lg);
  line-height: 1.4;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.shopping-input:focus {
  border-color: var(--color-accent-primary);
  background: #ffffff;
}

.shopping-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 18px 18px;
}

.shopping-items-card h3 {
  padding: 18px 18px 14px;
}

.shopping-empty {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  border: 1px dashed var(--color-accent-border);
  border-radius: var(--radius-md);
  background: var(--color-accent-surface);
  color: var(--color-text-muted);
  font-size: var(--font-size-body-sm);
  text-align: center;
}

.shopping-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 14px 16px;
  border: 1px solid rgba(121, 89, 56, 0.1);
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform 0.08s ease;
}

.shopping-item:first-child {
  border-radius: 14px 14px 0 0;
}

.shopping-item:last-child {
  border-bottom: 1px solid rgba(121, 89, 56, 0.1);
  border-radius: 0 0 14px 14px;
}

.shopping-list > .shopping-item:only-child {
  border-radius: 14px;
}

.shopping-item:hover {
  border-color: var(--color-accent-border);
  box-shadow: var(--shadow-soft);
}

.shopping-item:active {
  transform: scale(0.995);
}

.shopping-checkbox {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #a4a8ad;
  border-radius: 6px;
  background: #ffffff;
  color: #ffffff;
}

.shopping-checkbox .app-icon {
  width: 100%;
  height: 100%;
}

.shopping-item-content {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shopping-item-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shopping-item-name {
  min-width: 0;
  font-size: 16px;
  line-height: 1.35;
  color: var(--color-text);
  overflow-wrap: anywhere;
}

.shopping-item-source-line {
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.shopping-item-source {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: #146323;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.shopping-item-source--planner {
  background: var(--color-info-bg);
  color: #4a6b8a;
}

.shopping-item-menu {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #69707a;
  cursor: pointer;
}

.shopping-item-menu .app-icon {
  width: 20px;
  height: 20px;
}

.shopping-completed {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding-top: 14px;
}

.shopping-completed-title {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #146323;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.shopping-completed-title .app-icon {
  width: 18px;
  height: 18px;
}

.shopping-item--checked {
  background: rgba(239, 247, 234, 0.72);
  border-color: rgba(95, 143, 93, 0.14);
}

.shopping-item--checked .shopping-checkbox {
  border-color: #19752f;
  background: #19752f;
}

.shopping-item--checked .shopping-item-name {
  color: #6f6a63;
  text-decoration: line-through;
  text-decoration-color: rgba(111, 106, 99, 0.45);
  text-decoration-thickness: 1px;
}

@media (max-width: 768px) {
  .shopping-surface {
    margin-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .shopping-card-header {
    padding: 16px 16px 0;
  }

  .shopping-progress-card {
    padding: 16px 16px 0;
  }

  .shopping-progress-summary strong {
    font-size: 20px;
  }

  .shopping-progress-remaining {
    font-size: 12px;
  }

  .shopping-actions {
    padding: 16px;
  }

  .shopping-tally-row {
    margin: 16px -16px 0;
  }

  .shopping-tally-item {
    padding: 16px 4px;
  }

  .shopping-tally-item strong {
    font-size: 18px;
  }

  .shopping-tally-item span:last-child {
    font-size: 11px;
  }

  .shopping-items-card h3 {
    padding: 16px 16px 12px;
  }

  .shopping-list {
    padding: 0 16px 16px;
  }

  .shopping-item {
    min-height: 72px;
    gap: 12px;
    padding: 13px 12px;
  }

  .shopping-item-content {
    gap: 8px;
  }

  .shopping-item-source {
    padding: 4px 8px;
    font-size: 9px;
  }
}

.settings-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.settings-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background: var(--color-surface);
}

.settings-group-title {
  margin-bottom: var(--space-xs);
  font-size: var(--font-size-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4f704c;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 44px;
}

.settings-label {
  font-size: var(--font-size-body-sm);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
}

.settings-value {
  min-width: 0;
  max-width: 58%;
  color: var(--color-text-muted);
  font-size: var(--font-size-body-sm);
  font-weight: 500;
  line-height: 1.35;
  text-align: right;
  overflow-wrap: anywhere;
}

.settings-action-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.settings-action-list button {
  width: 100%;
  min-height: 44px;
  margin-top: 0;
}

.variation-empty-guidance {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  color: var(--color-text-muted);
  font-size: var(--font-size-body-sm);
  line-height: 1.45;
}

.variation-empty-guidance p {
  margin: 0;
}

.variation-empty-guidance p:first-child {
  color: var(--color-text);
  font-weight: var(--font-weight-semibold);
}

.settings-select {
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface-strong);
  font-size: var(--font-size-body-sm);
  color: var(--color-text);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.settings-select:focus {
  border-color: var(--color-accent-primary);
  background: #ffffff;
}

.household-members-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.household-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: var(--space-md);
  border-radius: var(--radius-md);

  background: var(--color-surface-strong);
  border: 1px solid var(--color-border);
}

.household-member-row--empty {
  justify-content: center;
  min-height: 56px;
  border-style: dashed;
  background: var(--color-accent-surface);
  color: var(--color-text-muted);
  font-size: var(--font-size-body-sm);
}

.household-member-main {
  min-width: 0;
  flex: 1;

  display: flex;
  flex-direction: column;
  gap: 4px;
}

.household-member-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.household-member-email {
  font-size: 12px;
  color: var(--color-text-muted);

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.household-member-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;

  flex-shrink: 0;
}

.household-member-role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;

  opacity: 0.68;
}

.household-member-status {
  padding: 4px 8px;
  border-radius: 999px;

  font-size: 11px;
  font-weight: 600;
}

.household-member-status--active {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.household-member-status--invited {
  background: #fff4e5;
  color: #9a6700;
}

.household-member-remove-btn {
  margin-top: 0;
  min-height: 36px;

  padding: 0 12px;

  border-radius: var(--radius-sm);
  border: 1px solid transparent;

  background: #f7f2f3;
  color: #9b626a;

  font-size: 11px;
  font-weight: 600;

  cursor: pointer;

  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform 0.08s ease;
}

.household-member-remove-btn:hover {
  background: #f2e8ea;
  border-color: rgba(155, 98, 106, 0.14);
}

.household-member-remove-btn:active {
  transform: scale(0.98);
}

@media (max-width: 768px) {
  .settings-row {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-sm);
  }

  .settings-select {
    width: 100%;
  }

  .settings-value {
    max-width: 100%;
    text-align: left;
  }

  .household-member-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .household-member-meta {
    width: 100%;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .household-member-remove-btn {
    margin-left: auto;
    min-height: 40px;
  }
}

/* ==========================
   APP INITIALIZATION LOADING
   ========================== */

.boot-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;
  box-sizing: border-box;

  background: var(--color-background);
  opacity: 1;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease;
}

.boot-loading--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
}

.boot-loading__content {
  width: 100%;
  max-width: 320px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;

  text-align: center;
}

.boot-loading__logo {
  width: 140px;
  height: auto;

  opacity: 0.96;
  filter: drop-shadow(0 3px 10px rgba(80, 52, 24, 0.08));
}

.boot-loading__text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;

  color: var(--color-text-muted);

  min-height: 18px;
}
.operational-message {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 4px 10px;

  border-radius: 999px;

  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  opacity: 1;
  transform: translateY(0);

  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.operational-message--info {
  background: var(--color-info-bg);
  color: #4a6b8a;
}

.operational-message--warning {
  background: var(--color-warning-bg);
  color: #8b5a2b;
}

.operational-message--success {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.boot-recovery-banner {
  display: inline-flex;
  align-items: center;

  width: fit-content;

  min-height: 24px;

  padding: 0 10px;

  border-radius: 999px;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;

  margin-top: 2px;
}

.boot-recovery-banner--offline {
  background: var(--color-warning-bg);
  color: #8b5a2b;
}

.boot-recovery-banner--recovered {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.btn--pending,
.btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;

  pointer-events: none;
}

.btn--pending {
  position: relative;
}

.boot-status-panel {
  display: flex;
  flex-direction: column;
  gap: 4px;

  margin-bottom: 14px;
  padding: 12px 14px;

  border-radius: 14px;

  background: var(--color-accent-surface);

  border: 1px solid var(--color-accent-border);
}

.boot-status-title {
  font-size: 13px;
  font-weight: 700;

  color: var(--color-text);
}

.boot-status-detail {
  font-size: 12px;
  line-height: 1.35;

  color: var(--color-text-muted);
}

.operational-message--dismissing {
  opacity: 0;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  body {
    padding: 12px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .auth-page {
    min-height: calc(100vh - 30px);
    margin: -12px;
    padding: 24px 12px calc(22px + env(safe-area-inset-bottom));
  }

  .auth-shell {
    gap: 18px;
  }

  .auth-logo {
    width: min(58vw, 190px);
  }

  .auth-brand h1 {
    font-size: 34px;
  }

  .auth-brand p {
    font-size: 16px;
  }

  .auth-card {
    gap: 16px;
    padding: 22px 18px;
    border-radius: 22px;
  }

  .auth-card-header h2 {
    font-size: 23px;
  }

  .auth-card-header p,
  .auth-switch {
    font-size: 16px;
  }

  .onboarding-shell {
    gap: 18px;
    padding-top: 4px;
  }

  .onboarding-logo {
    width: min(60vw, 210px);
  }

  .onboarding-action-card {
    min-height: 126px;
    gap: 14px;
    padding: 18px 16px;
    border-radius: 22px;
  }

  .onboarding-action-art {
    width: 76px;
    height: 76px;
  }

  .onboarding-action-icon {
    width: 58px;
    height: 58px;
  }

  .onboarding-action-title {
    font-size: 22px;
  }

  .onboarding-action-helper {
    font-size: 16px;
  }

  .onboarding-action-chevron {
    font-size: 44px;
  }

  .onboarding-info-card {
    gap: 14px;
    padding: 16px;
  }

  .policy-page {
    padding: 12px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .policy-shell {
    padding: 18px;
  }

  .policy-header {
    align-items: flex-start;
    gap: var(--space-md);
  }

  .policy-logo {
    width: 56px;
  }

  .header-signout-btn {
    min-height: 40px;
  }

  .mobile-tabs {
    gap: 0;
    margin-bottom: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mobile-tabs::-webkit-scrollbar {
    display: none;
  }

  .flex-button-row > button,
  .settings-action-list button,
  .shopping-action-btn {
    min-height: 46px;
  }

  .meal-action-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.empty-state-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.empty-state-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2px;
}

.empty-state-copy {
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.72;
  text-align: left;
}

.shopping-empty {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 14px;
  align-items: flex-start;
}
