﻿:root {
  --bg: #d48bc7;
  --panel: rgba(255, 245, 252, 0.86);
  --panel-strong: #fff7fd;
  --ink: #2e1e3f;
  --muted: #725f86;
  --line: rgba(78, 52, 104, 0.14);
  --accent: #ff3f9f;
  --accent-2: #d61f8a;
  --accent-3: #9d1468;
  --shadow: 0 18px 45px rgba(80, 34, 116, 0.16);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(227, 47, 135, 0.42), transparent 28%),
    radial-gradient(circle at top right, rgba(186, 49, 122, 0.34), transparent 24%),
    linear-gradient(180deg, #f7e8ff 0%, var(--bg) 100%);
}

body.drawer-open {
  overflow: hidden;
}

body.auth-pending .app-shell,
body.auth-pending .auth-shell-page {
  opacity: 0;
  pointer-events: none;
}

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

.app-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 20px 44px;
}

.mobile-topbar,
.auth-mobile-topbar,
.mobile-nav-head,
.mobile-drawer-actions,
.mobile-nav-backdrop,
.auth-copy-head {
  display: none;
}

.menu-toggle-button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #d7dfea, #bcc9df);
  box-shadow: inset 0 0 0 1px rgba(101, 128, 173, 0.24);
  display: inline-grid;
  gap: 4px;
  align-content: center;
  justify-items: center;
  cursor: pointer;
}

.menu-toggle-button span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #193c6e;
}

.mobile-close-button {
  min-width: 84px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding: 32px;
  background: linear-gradient(135deg, rgba(255, 244, 252, 0.95), rgba(242, 227, 255, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-main {
  flex: 1 1 0;
  min-width: 0;
}

.eyebrow,
.section-kicker,
.mini-head {
  margin: 0 0 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--accent-2);
  font-weight: 700;
}

h1,
h2,
h3,
.hero-stat strong {
  font-family: "Fraunces", serif;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
}

.hero-copy {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  text-wrap: balance;
}

.hero-stat {
  min-width: 210px;
  padding: 18px 20px;
  background: var(--panel-strong);
  border-radius: 22px;
  border: 1px solid var(--line);
  display: grid;
  gap: 6px;
}

.hero-stat span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.hero-stat strong {
  font-size: 1.35rem;
}

.auth-hero-stat {
  min-width: 280px;
  align-items: start;
}

.auth-copy-small {
  margin: 4px 0 0;
  font-size: 0.92rem;
}

.auth-inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(46, 30, 63, 0.07);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 20px;
  padding: 14px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(226, 235, 252, 0.9), rgba(206, 220, 247, 0.85));
  box-shadow: inset 0 0 0 1px rgba(120, 145, 189, 0.22), 0 12px 32px rgba(65, 88, 136, 0.18);
  overflow-x: hidden;
}

.tab-button,
.primary-button,
.ghost-button,
.danger-button {
  border: 0;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.tab-button {
  min-height: 60px;
  min-width: 0;
  padding: 13px 10px;
  border-radius: 22px;
  background: linear-gradient(135deg, #d7dfea, #bcc9df);
  color: #193c6e;
  box-shadow: inset 0 0 0 1px rgba(101, 128, 173, 0.24);
  font-weight: 700;
  font-size: 0.94rem;
  text-align: center;
  line-height: 1.15;
  white-space: nowrap;
}

.tab-button.active {
  color: #0e2f59;
  box-shadow: 0 14px 26px rgba(53, 124, 213, 0.28), inset 0 0 0 1px rgba(35, 117, 209, 0.16);
}

.tab-button[data-tab="meals"].active {
  background: linear-gradient(135deg, #6dc6ff, #3890ea);
}

.tab-button[data-tab="today-meal"].active {
  background: linear-gradient(135deg, #8fd98e, #47b857);
}

.tab-button[data-tab="recipes"].active {
  background: linear-gradient(135deg, #ffb2e1, #db63ac);
}

.tab-button[data-tab="week-meal"].active {
  background: linear-gradient(135deg, #ffd684, #f2a93b);
}

.tab-button[data-tab="shopping"].active {
  background: linear-gradient(135deg, #ffb6c8, #f47a96);
}

.tab-button[data-tab="stores"].active {
  background: linear-gradient(135deg, #cab0ff, #8e67ef);
}

.tab-button[data-tab="pantry"].active {
  background: linear-gradient(135deg, #9fe7da, #43bea6);
}

.tab-button[data-tab="next-list"].active {
  background: linear-gradient(135deg, #ffd4a0, #ee8d47);
}

.tab-button[data-tab="reports"].active {
  background: linear-gradient(135deg, #69b6ff, #2f88e8);
  color: white;
  box-shadow: 0 14px 28px rgba(47, 136, 232, 0.34);
}

.primary-button {
  padding: 13px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-2), #cf64ff);
  color: white;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(176, 75, 255, 0.24);
}

.ghost-button {
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(46, 30, 63, 0.07);
  color: var(--ink);
}

.danger-button {
  padding: 13px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #d83a52, #f15f6c);
  color: white;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(216, 58, 82, 0.24);
}

.primary-button:hover,
.danger-button:hover,
.ghost-button:hover,
.tab-button:hover {
  transform: translateY(-1px);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.panel-grid {
  display: grid;
  gap: 20px;
}

.meal-layout,
.recipe-layout,
.shopping-layout,
.store-layout {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.planner-layout,
.pantry-layout,
.next-layout,
.reports-layout {
  grid-template-columns: 1fr;
}

.card {
  background: var(--panel);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  padding: 24px;
}

.auth-shell-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-page-dark {
  background:
    radial-gradient(circle at top left, rgba(255, 107, 196, 0.26), transparent 24%),
    radial-gradient(circle at bottom right, rgba(165, 91, 255, 0.24), transparent 22%),
    linear-gradient(180deg, #f7e8ff 0%, #cba8f6 100%);
}

.auth-card-page {
  width: min(980px, 100%);
  display: grid;
  gap: 24px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(255, 244, 252, 0.95), rgba(242, 227, 255, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.auth-card-page--dark {
  width: min(1240px, 100%);
  padding: 0;
  background: linear-gradient(135deg, rgba(255, 244, 252, 0.97), rgba(242, 227, 255, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
  box-shadow: 0 26px 54px rgba(80, 34, 116, 0.2);
}

.auth-login-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1.08fr) minmax(380px, 1fr);
  gap: 0;
}

.auth-page-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  line-height: 1.02;
  max-width: 12ch;
}

.auth-page-copy--dark {
  min-height: 100%;
  padding: 32px 34px;
  background: linear-gradient(180deg, rgba(255, 245, 252, 0.92), rgba(242, 227, 255, 0.78));
  color: var(--ink);
  display: grid;
  align-content: start;
  gap: 14px;
}

.auth-page-copy--dark .section-kicker,
.auth-page-copy--dark .mini-head {
  color: var(--accent-2);
}

.auth-page-copy--dark .hero-copy,
.auth-page-copy--dark .auth-copy-small {
  color: var(--muted);
}

.auth-page-copy--account {
  display: grid;
  align-content: start;
  gap: 14px;
}

.auth-main-panel {
  padding: 36px;
  background: linear-gradient(180deg, rgba(255, 245, 252, 0.68), rgba(242, 227, 255, 0.54));
}

.auth-main-panel [hidden] {
  display: none !important;
}

.license-panel {
  display: grid;
  gap: 16px;
  margin-top: 2px;
  padding: 20px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 244, 252, 0.72));
  border: 1px solid rgba(176, 75, 255, 0.14);
  box-shadow: 0 18px 34px rgba(176, 75, 255, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.license-panel[hidden] {
  display: none;
}

.license-panel-copy {
  display: grid;
  gap: 8px;
}

.license-panel-copy h2 {
  margin: 0;
}

.license-form {
  gap: 14px;
}

.auth-access-panel {
  padding: 20px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(250, 239, 255, 0.76));
  border: 1px solid rgba(176, 75, 255, 0.14);
  box-shadow: 0 18px 34px rgba(176, 75, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.auth-form-grid.is-locked,
.update-password-form.is-locked {
  opacity: 0.88;
  pointer-events: none;
}

.auth-form-grid {
  gap: 16px;
}

.auth-form-grid--dark {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 18px 16px;
}

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

.auth-form-grid--dark label {
  color: #342048;
  font-weight: 700;
}

.auth-form-grid--dark input,
.auth-form-grid--dark select,
.auth-form-grid--dark textarea {
  border-color: rgba(78, 52, 104, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), 0 8px 18px rgba(176, 75, 255, 0.06);
}

.auth-form-grid--dark input::placeholder,
.auth-form-grid--dark textarea::placeholder {
  color: rgba(114, 95, 134, 0.78);
}

.auth-recovery-copy h2 {
  margin: 0 0 10px;
}

.auth-recovery-copy {
  display: grid;
  gap: 8px;
  padding-top: 8px;
}

.update-password-form {
  margin-top: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(176, 75, 255, 0.12);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 52px;
}

.password-toggle-button {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(46, 30, 63, 0.58);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.password-toggle-button::before {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z'/><circle cx='12' cy='12' r='3'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z'/><circle cx='12' cy='12' r='3'/></svg>") center / contain no-repeat;
}

.password-toggle-button.is-visible::before {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m3 3 18 18'/><path d='M10.6 10.7a3 3 0 0 0 4.2 4.2'/><path d='M9.4 5.1A10.8 10.8 0 0 1 12 5c6.5 0 10 7 10 7a18.6 18.6 0 0 1-2.2 3.1'/><path d='M6.7 6.8C3.9 8.7 2 12 2 12s3.5 7 10 7a9.8 9.8 0 0 0 4.1-.8'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m3 3 18 18'/><path d='M10.6 10.7a3 3 0 0 0 4.2 4.2'/><path d='M9.4 5.1A10.8 10.8 0 0 1 12 5c6.5 0 10 7 10 7a18.6 18.6 0 0 1-2.2 3.1'/><path d='M6.7 6.8C3.9 8.7 2 12 2 12s3.5 7 10 7a9.8 9.8 0 0 0 4.1-.8'/></svg>") center / contain no-repeat;
}

.password-toggle-button:hover {
  transform: translateY(-50%);
  color: var(--ink);
}

.password-toggle-button--dark {
  color: rgba(114, 95, 134, 0.72);
}

.password-toggle-button--dark:hover {
  color: var(--ink);
}

.auth-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.auth-actions-row--dark {
  align-items: center;
}

.update-password-form .auth-actions-row {
  justify-content: flex-start;
}

.auth-primary-button {
  background: linear-gradient(135deg, var(--accent-2), #cf64ff);
  box-shadow: 0 16px 28px rgba(176, 75, 255, 0.24);
}

.auth-ghost-button,
.auth-link-button {
  border-radius: 999px;
  background: rgba(46, 30, 63, 0.07);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(176, 75, 255, 0.12);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-ghost-button:hover,
.auth-link-button:hover {
  background: rgba(176, 75, 255, 0.12);
}

.auth-actions-row .ghost-button {
  min-height: 50px;
}

.auth-message {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.auth-message--light {
  color: var(--muted);
}

.auth-message[data-tone="success"] {
  color: #8a1170;
}

.auth-message[data-tone="error"] {
  color: #c2364e;
}

.account-summary-card {
  margin-top: 12px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(176, 75, 255, 0.12);
  display: grid;
  gap: 8px;
}

.account-summary-card strong {
  font-family: "Fraunces", serif;
  font-size: 1.55rem;
  line-height: 1.05;
}

.account-danger-zone {
  margin-top: 18px;
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(216, 58, 82, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.account-danger-zone h2 {
  margin: 6px 0 0;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.account-danger-zone .hero-copy {
  max-width: 560px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(176, 75, 255, 0.2), rgba(255, 95, 178, 0.14));
  border: 1px solid rgba(176, 75, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.card h2 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  color: #341d4a;
}

.share-status {
  min-height: 1.2rem;
  margin: -6px 0 14px;
  color: var(--accent-2);
  font-size: 0.92rem;
  font-weight: 700;
}

.shopping-search-field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.recipe-form-status {
  margin-top: -4px;
}

.meal-controls-toggle {
  display: none;
}

.meal-controls-panel {
  display: grid;
  gap: 0;
}

.stack-form,
.form-row {
  display: grid;
  gap: 14px;
}

.top-gap {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.form-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.search-field {
  margin-bottom: 16px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

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

.color-picker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.color-picker-row input[type="color"] {
  padding: 6px;
  min-height: 48px;
}

.color-ok-button {
  min-width: 72px;
}

.sheet-board,
.store-board,
.store-source-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

#shopping-board {
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  grid-template-columns: none;
  align-items: start;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 16px;
  padding-bottom: 8px;
}

.jump-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.jump-tab-button {
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(176, 75, 255, 0.14), rgba(255, 95, 178, 0.14));
  color: var(--ink);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(176, 75, 255, 0.12);
}

.store-board {
  padding: 18px 22px 18px 18px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  overflow-x: hidden;
}

.sheet-column,
.store-column {
  background: var(--panel-strong);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 240px;
}

.sheet-column-head,
.store-column-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(176, 75, 255, 0.14), rgba(255, 95, 178, 0.1));
}

.sheet-column-head h3,
.store-column-head h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: #341d4a;
}

.meal-column-breakfast {
  background: linear-gradient(180deg, rgba(255, 247, 251, 0.95), rgba(255, 239, 246, 0.92));
}

.meal-column-breakfast .sheet-column-head {
  background: linear-gradient(135deg, rgba(255, 123, 149, 0.3), rgba(255, 186, 203, 0.2));
}

.meal-column-lunch {
  background: linear-gradient(180deg, rgba(244, 255, 249, 0.95), rgba(231, 249, 239, 0.92));
}

.meal-column-lunch .sheet-column-head {
  background: linear-gradient(135deg, rgba(64, 191, 133, 0.28), rgba(160, 234, 190, 0.18));
}

.meal-column-dinner {
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.95), rgba(232, 240, 255, 0.92));
}

.meal-column-dinner .sheet-column-head {
  background: linear-gradient(135deg, rgba(72, 142, 232, 0.28), rgba(169, 205, 255, 0.18));
}

.meal-column-snacks {
  background: linear-gradient(180deg, rgba(255, 252, 243, 0.95), rgba(255, 245, 217, 0.92));
}

.meal-column-snacks .sheet-column-head {
  background: linear-gradient(135deg, rgba(245, 185, 59, 0.28), rgba(255, 223, 147, 0.2));
}

.column-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.select-all-button {
  padding: 6px 10px;
  font-size: 0.85rem;
  background: rgba(101, 61, 142, 0.72);
  color: white;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  text-shadow: 0 1px 1px rgba(36, 21, 58, 0.28);
}

.select-all-button:hover {
  background: rgba(101, 61, 142, 0.84);
}

.select-all-button:disabled {
  opacity: 0.55;
  cursor: default;
}

.sheet-column-body,
.store-column-body {
  padding: 0;
  display: grid;
  gap: 0;
  align-content: start;
}

.sheet-item,
.pantry-row {
  background: rgba(255, 255, 255, 0.86);
  border: 0;
  border-top: 1px solid rgba(78, 52, 104, 0.12);
  border-radius: 0;
  padding: 12px 14px;
}

.sheet-item strong,
.pantry-name strong,
.store-item-line strong {
  display: block;
}

.recipe-note {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 20px rgba(80, 34, 116, 0.08);
}

.recipe-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.recipe-note-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  margin-bottom: 8px;
}

.recipe-note-header strong {
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.25;
}

.recipe-note-text {
  margin: 0;
  padding-left: 1.35rem;
  color: var(--muted);
  line-height: 1.55;
}

.recipe-note-text li + li {
  margin-top: 0.3rem;
}

.sheet-item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.item-check {
  display: inline-flex;
  align-items: center;
  margin-right: 2px;
}

.item-check input {
  width: auto;
}

.item-qty {
  flex-shrink: 0;
}

.sheet-item:first-child,
.pantry-row:first-child {
  border-top: 0;
}

.shopping-meta,
.empty-copy {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.sheet-item .shopping-meta:empty {
  display: none;
}

.sheet-item.is-dragging {
  opacity: 0.5;
}

.store-item-line.is-dragging {
  opacity: 0.5;
}

.store-assignment-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.58fr);
  gap: 30px;
  align-items: start;
}

.store-item-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(31, 42, 42, 0.12);
}

.store-item-line:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.store-item-controls {
  display: grid;
  min-width: 120px;
  justify-items: end;
  gap: 8px;
}

.unassign-button {
  padding: 6px 10px;
  font-size: 0.82rem;
  min-width: 88px;
}

.bulk-assign-panel {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  display: grid;
  gap: 12px;
}

.bulk-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.qty-pill {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(46, 30, 63, 0.06);
  font-size: 0.8rem;
  color: var(--muted);
}

.store-chips {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.store-chip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  color: white;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.store-chip button {
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
}

.pantry-board {
  display: grid;
  gap: 18px;
}

.pantry-category-section {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.pantry-category-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(176, 75, 255, 0.16), rgba(255, 95, 178, 0.12));
}

.pantry-category-head h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: #341d4a;
}

.pantry-category-body {
  display: grid;
}

.pantry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.pantry-name {
  display: block;
}

.pantry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.pantry-need-button {
  min-width: 150px;
  padding: 10px 14px;
}

.purchase-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(176, 75, 255, 0.1);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.purchase-check input {
  width: auto;
}

.purchase-action {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.purchase-log-button {
  padding: 8px 12px;
  min-width: 0;
  box-shadow: none;
}

.purchase-date-copy {
  font-size: 0.78rem;
  color: var(--muted);
}

.report-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.report-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.report-stat-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(78, 52, 104, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}

.report-stat-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.report-stat-card strong {
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
}

.report-chart,
.report-history,
.report-latest {
  display: grid;
  gap: 8px;
}

.report-chart {
  margin-bottom: 8px;
}

.chart-row {
  display: grid;
  grid-template-columns: minmax(110px, 140px) minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
}

.chart-label,
.chart-value {
  font-size: 0.9rem;
  color: var(--ink);
}

.chart-bar-track {
  height: 14px;
  background: rgba(46, 30, 63, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.chart-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-2), #cf64ff);
}

.report-history-row {
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(78, 52, 104, 0.12);
  border-radius: 12px;
}

.report-history-date {
  font-weight: 700;
}

.report-history-items {
  color: var(--muted);
  line-height: 1.45;
}

.latest-list {
  display: grid;
  gap: 6px;
}

.latest-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(170px, 240px) minmax(110px, 140px);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(78, 52, 104, 0.12);
  border-radius: 12px;
}

.latest-name,
.latest-meta,
.latest-date {
  font-size: 0.92rem;
}

.latest-name {
  font-weight: 700;
}

.latest-meta,
.latest-date {
  color: var(--muted);
}

.today-plan-board,
.week-plan-board {
  display: grid;
  gap: 18px;
}

.plan-date-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(176, 75, 255, 0.18), rgba(255, 95, 178, 0.12));
  border: 1px solid rgba(176, 75, 255, 0.14);
}

.plan-date-banner span {
  color: var(--muted);
}

.today-meal-table-card {
  width: 100%;
  min-width: 0;
  padding: 18px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.compact-head {
  margin-bottom: 10px;
}

.compact-head h3 {
  margin: 0;
  font-size: 1.28rem;
}

.today-meal-table {
  display: grid;
  border: 1px solid rgba(78, 52, 104, 0.12);
  border-radius: 16px;
  overflow: hidden;
}

.today-meal-table-row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(78, 52, 104, 0.12);
}

.today-meal-table-row:first-child {
  border-top: 0;
}

.today-meal-table-header {
  background: rgba(176, 75, 255, 0.12);
  font-weight: 700;
  color: #341d4a;
}

.today-meal-table-row.meal-type-breakfast {
  background: linear-gradient(135deg, rgba(255, 244, 249, 0.96), rgba(255, 234, 242, 0.94));
}

.today-meal-table-row.meal-type-lunch {
  background: linear-gradient(135deg, rgba(242, 255, 247, 0.96), rgba(227, 248, 235, 0.94));
}

.today-meal-table-row.meal-type-dinner {
  background: linear-gradient(135deg, rgba(245, 249, 255, 0.96), rgba(229, 238, 255, 0.94));
}

.today-meal-table-row.meal-type-snacks {
  background: linear-gradient(135deg, rgba(255, 251, 241, 0.96), rgba(255, 243, 215, 0.94));
}

.today-meal-table-row strong,
.today-meal-table-row span {
  line-height: 1.35;
}

.table-select {
  min-width: 0;
  background: rgba(255, 255, 255, 0.96);
}

.week-plan-table {
  display: grid;
  gap: 10px;
}

.week-plan-row {
  display: grid;
  grid-template-columns: minmax(120px, 160px) repeat(4, minmax(150px, 1fr));
  gap: 10px;
}

.week-plan-header {
  align-items: center;
}

.week-plan-head-cell,
.week-plan-day-cell,
.week-plan-cell {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(78, 52, 104, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.week-plan-head-cell,
.week-plan-day-cell {
  font-weight: 700;
}

.week-plan-head-cell {
  background: linear-gradient(135deg, rgba(176, 75, 255, 0.22), rgba(255, 95, 178, 0.18));
  color: #4a235f;
  box-shadow: inset 0 0 0 1px rgba(176, 75, 255, 0.12);
  font-weight: 800;
}

.week-plan-head-cell.meal-type-breakfast,
.week-plan-cell.meal-type-breakfast {
  background: linear-gradient(135deg, rgba(255, 244, 249, 0.96), rgba(255, 234, 242, 0.94));
}

.week-plan-head-cell.meal-type-lunch,
.week-plan-cell.meal-type-lunch {
  background: linear-gradient(135deg, rgba(242, 255, 247, 0.96), rgba(227, 248, 235, 0.94));
}

.week-plan-head-cell.meal-type-dinner,
.week-plan-cell.meal-type-dinner {
  background: linear-gradient(135deg, rgba(245, 249, 255, 0.96), rgba(229, 238, 255, 0.94));
}

.week-plan-head-cell.meal-type-snacks,
.week-plan-cell.meal-type-snacks {
  background: linear-gradient(135deg, rgba(255, 251, 241, 0.96), rgba(255, 243, 215, 0.94));
}

.week-plan-day-cell {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(122, 60, 255, 0.16), rgba(77, 160, 255, 0.14));
  color: #33244a;
  box-shadow: inset 0 0 0 1px rgba(122, 60, 255, 0.1);
}

.week-plan-cell {
  padding: 10px;
}

.week-plan-mobile-label {
  display: none;
}

.empty-state {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(31, 42, 42, 0.18);
  background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 1080px) {
  .store-assignment-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .hero {
    display: none;
  }

  .meal-layout,
  .recipe-layout,
  .shopping-layout,
  .store-layout,
  .planner-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .hero > div:first-child,
  .hero-main,
  .hero-stat,
  .auth-hero-stat {
    width: 100%;
    min-width: 0;
  }

  .auth-hero-stat {
    display: none;
  }

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

  .pantry-row {
    grid-template-columns: 1fr;
  }

  .pantry-actions {
    justify-content: start;
  }

  .week-plan-row,
  .report-history-row,
  .latest-row {
    grid-template-columns: 1fr;
  }

  .today-meal-table-row {
    grid-template-columns: 1fr;
  }

  .recipe-board {
    grid-template-columns: 1fr;
  }

  .meal-list-card {
    order: 2;
  }

  .meal-controls-card {
    order: 1;
  }

  .shopping-controls-card,
  .store-controls-card {
    order: 1;
  }

  .shopping-list-card,
  .store-board-card {
    order: 2;
  }

  .meal-controls-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .meal-controls-card.is-collapsed .meal-controls-panel,
  .shopping-controls-card.is-collapsed .shopping-controls-panel,
  .store-controls-card.is-collapsed .store-controls-panel {
    display: none;
  }

  .shopping-controls-card.is-collapsed,
  .store-controls-card.is-collapsed {
    padding-bottom: 14px;
  }

  .shopping-controls-card.is-collapsed .card-head,
  .store-controls-card.is-collapsed .card-head {
    margin-bottom: 0;
  }

  .week-plan-table {
    gap: 14px;
  }

  .week-plan-header {
    display: none;
  }

  .week-plan-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(78, 52, 104, 0.12);
  }

  .week-plan-day-cell {
    justify-content: center;
    font-size: 1.02rem;
  }

  .week-plan-cell {
    display: grid;
    grid-template-columns: minmax(92px, 116px) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.82);
  }

  .week-plan-mobile-label {
    display: block;
    font-weight: 700;
    color: #4a235f;
  }

  .week-plan-select {
    min-width: 0;
  }

  .card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .card-actions {
    justify-content: flex-start;
  }

  .shopping-list-card .card-head,
  .store-board-card .card-head {
    gap: 10px;
    padding: 12px 14px;
  }

  .shopping-list-card .card-actions,
  .store-board-card .card-actions {
    width: auto;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding: 18px 12px 32px;
  }

  .mobile-topbar,
  .auth-mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 22px;
    background: rgba(255, 247, 253, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 40;
  }

  .mobile-topbar strong,
  .auth-mobile-topbar strong {
    font-family: "Fraunces", serif;
    font-size: 1.15rem;
  }

  .mobile-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(46, 30, 63, 0.34);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 70;
  }

  .app-shell.menu-open .mobile-nav-backdrop,
  body.auth-copy-open .mobile-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .hero,
  .card {
    padding: 20px;
  }

  .auth-shell-page {
    place-items: start;
    padding: 14px;
  }

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

  .auth-card-page--dark {
    padding: 0;
  }

  .auth-login-layout {
    grid-template-columns: 1fr;
  }

  .auth-main-panel {
    padding: 22px 18px 24px;
  }

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

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

  .auth-copy-head .section-kicker {
    margin: 0;
  }

  .auth-page-copy {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(320px, 86vw);
    height: 100dvh;
    padding: 22px 18px;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(255, 247, 253, 0.98), rgba(242, 227, 255, 0.96));
    box-shadow: 20px 0 40px rgba(46, 30, 63, 0.2);
    transform: translateX(-110%);
    transition: transform 180ms ease;
    z-index: 80;
    border-radius: 0 24px 24px 0;
  }

  .auth-page-copy--dark {
    background: linear-gradient(180deg, rgba(255, 247, 253, 0.98), rgba(242, 227, 255, 0.96));
  }

  body.auth-copy-open .auth-page-copy {
    transform: translateX(0);
  }

  h1 {
    font-size: clamp(1.8rem, 10vw, 2.9rem);
  }

  .hero-copy {
    max-width: none;
    font-size: 0.96rem;
    line-height: 1.45;
  }

  .hero-stat {
    padding: 16px;
    border-radius: 18px;
  }

  .hero-stat strong {
    font-size: 1.15rem;
  }

  .auth-inline-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .ghost-link,
  .auth-inline-actions .ghost-button {
    width: 100%;
  }

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

  .card-actions {
    width: 100%;
    justify-content: start;
  }

  .auth-actions-row,
  .bulk-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .auth-actions-row .primary-button,
  .bulk-actions .primary-button,
  .bulk-actions .ghost-button,
  .card-actions .ghost-button,
  .card-actions .primary-button {
    width: 100%;
  }

  .shopping-list-card .card-actions .ghost-button,
  .shopping-list-card .card-actions .primary-button,
  .store-board-card .card-actions .ghost-button,
  .store-board-card .card-actions .primary-button,
  .shopping-controls-card .meal-controls-toggle,
  .store-controls-card .meal-controls-toggle {
    width: auto;
  }

  .tabs {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(320px, 86vw);
    height: 100dvh;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0;
    padding: 18px 16px 24px;
    border-radius: 0 24px 24px 0;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(-110%);
    transition: transform 180ms ease;
    z-index: 80;
    scroll-snap-type: none;
  }

  .app-shell.menu-open .tabs {
    transform: translateX(0);
  }

  .mobile-nav-head,
  .mobile-drawer-actions {
    display: grid;
    gap: 10px;
  }

  .mobile-nav-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin-bottom: 4px;
  }

  .mobile-nav-head strong {
    font-family: "Fraunces", serif;
    font-size: 1.2rem;
  }

  .mobile-drawer-actions {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .tab-button {
    min-height: 52px;
    padding: 12px 10px;
    border-radius: 18px;
    font-size: 0.95rem;
    white-space: normal;
  }

  .sheet-board,
  .store-board,
  .store-source-board,
  .recipe-board {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #shopping-board {
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 74vw);
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
  }

  .shopping-list-card #shopping-board {
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 74vw);
    grid-template-columns: none;
    overflow-x: auto;
  }

  .shopping-list-card {
    padding: 14px 12px 16px;
  }

  .shopping-list-card .card-head {
    margin-bottom: 10px;
  }

  .shopping-list-card .jump-tabs {
    gap: 8px;
    margin-bottom: 10px;
    padding: 0 2px 6px;
    scroll-padding-left: 2px;
  }

  .shopping-list-card .jump-tab-button {
    padding: 8px 12px;
    font-size: 0.88rem;
  }

  .shopping-list-card .sheet-column {
    min-height: 0;
    border-radius: 18px;
    width: auto;
    justify-self: start;
  }

  .shopping-list-card .sheet-column-head {
    padding: 12px 14px;
  }

  .shopping-list-card .sheet-column-head h3 {
    font-size: 1rem;
  }

  .shopping-list-card .sheet-item {
    padding: 10px 12px;
  }

  .shopping-list-card .sheet-item-row {
    gap: 10px;
  }

  .shopping-list-card .item-qty {
    font-size: 0.78rem;
  }

  .store-board {
    padding: 14px;
  }

  .store-board-card .store-assignment-layout {
    gap: 14px;
  }

  .store-board-card .store-source-board,
  .store-board-card .store-board {
    width: 100%;
    justify-self: stretch;
  }

  .store-board-card .store-column {
    width: 100%;
    min-height: 0;
  }

  .shopping-controls-card,
  .store-controls-card,
  .shopping-list-card,
  .store-board-card {
    padding-left: 12px;
    padding-right: 12px;
  }

  .sheet-column,
  .store-column,
  .recipe-note {
    min-height: 0;
  }

  .store-item-line {
    align-items: start;
    gap: 12px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .store-item-controls {
    min-width: 0;
    width: 100%;
    justify-items: start;
    gap: 8px;
  }

  .pantry-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .pantry-need-button {
    width: 100%;
    min-width: 0;
  }

  .report-filters,
  .report-stats {
    grid-template-columns: 1fr;
  }

  .chart-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .chart-bar-track {
    order: 3;
  }

  .chart-value {
    justify-self: start;
  }

  .plan-date-banner {
    padding: 12px 14px;
  }

  .today-meal-table-card {
    padding: 0;
    background: transparent;
    border: 0;
  }

  .today-meal-table-row {
    padding: 12px 14px;
  }

  .week-plan-head-cell,
  .week-plan-day-cell,
  .week-plan-cell {
    padding: 10px 12px;
  }

  .week-plan-cell {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .hero {
    padding: 18px;
  }

  h1 {
    font-size: clamp(1.7rem, 9vw, 2.5rem);
  }

  .hero-copy {
    font-size: 0.92rem;
  }

  .auth-inline-actions {
    grid-template-columns: 1fr;
  }

  .tabs {
    width: min(292px, 90vw);
    padding: 16px 14px 22px;
  }

  .tab-button {
    min-height: 48px;
    font-size: 0.9rem;
  }

  .recipe-note-header strong {
    font-size: 1.06rem;
  }
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auth-mode-button {
  min-height: 52px;
  border: 1px solid rgba(176, 75, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: #3a2850;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.auth-mode-button.is-active {
  background: linear-gradient(135deg, var(--accent-2), #cf64ff);
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(176, 75, 255, 0.2);
}

.auth-mode-button:hover {
  transform: translateY(-1px);
}

body.auth-mode-existing #signup-button {
  display: none;
}

body.auth-mode-new #forgot-password-button {
  display: none;
}

.privacy-shell {
  max-width: 1080px;
}

.privacy-hero {
  margin-bottom: 20px;
}

.privacy-card {
  padding: 0;
}

.privacy-content {
  display: grid;
  gap: 16px;
  padding: 0 22px 24px;
}

.privacy-content h3 {
  margin: 8px 0 0;
  font-size: 1.18rem;
}

.privacy-content p,
.privacy-content li {
  color: var(--muted);
  line-height: 1.7;
}

.privacy-content ul {
  margin: 0;
  padding-left: 22px;
}

.privacy-actions {
  padding: 0 22px 24px;
}

.auth-legal-links {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 14px;
}

.auth-legal-links--page {
  padding: 0 18px 18px;
}

.auth-legal-link {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-legal-link:hover {
  color: var(--accent-3);
}

@media (max-width: 720px) {
  .privacy-content,
  .privacy-actions {
    padding-left: 18px;
    padding-right: 18px;
  }

  .auth-legal-links {
    margin-top: 10px;
  }

  .auth-legal-links--page {
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 14px;
  }
}

.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: -2px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent-2);
  flex: 0 0 auto;
}

.auth-consent span {
  display: block;
}

body.auth-mode-existing #privacy-consent-row {
  display: none;
}
