* {
  box-sizing: border-box;
}

/* Shared food-forward refresh */
:root {
  --bg: #eef9fc;
  --panel: rgba(255, 251, 242, 0.95);
  --panel-strong: #fffaf0;
  --text: #251915;
  --ink: #251915;
  --muted: #746157;
  --line: rgba(107, 67, 45, 0.17);
  --brand: #bf2f24;
  --brand-deep: #7f201b;
  --gold: #d99b2b;
  --gold-deep: #a76720;
  --basil: #426d3d;
  --sage: #dfe8cf;
  --cream: #fff6e6;
  --shadow: 0 18px 46px rgba(74, 39, 25, 0.14);
  --radius-xl: 8px;
  --radius-lg: 8px;
  --radius-md: 8px;
}

body {
  background:
    linear-gradient(90deg, rgba(15, 156, 171, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(21, 95, 169, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 8% 8%, rgba(196, 234, 244, 0.42), transparent 26%),
    radial-gradient(circle at 92% 18%, rgba(223, 232, 207, 0.24), transparent 25%),
    linear-gradient(135deg, #f8fdff 0%, #eaf7fb 50%, #edf9fc 100%);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(248, 253, 255, 0.62), rgba(248, 253, 255, 0.18)),
    radial-gradient(circle at 50% 100%, rgba(15, 156, 171, 0.12), transparent 42%);
}

.topbar,
.site-header {
  border-color: rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 251, 242, 0.95), rgba(251, 239, 219, 0.9));
  box-shadow: 0 14px 34px rgba(74, 39, 25, 0.12);
}

.site-header {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
}

.brand-portrait,
.chef-image,
.dashboard-hero-image,
.login-hero-image {
  border: 3px solid rgba(255, 250, 240, 0.92);
}

.brand-portrait {
  border-radius: 50%;
}

.mini-label,
.eyebrow {
  color: var(--brand-deep);
}

.topnav a,
.site-header a {
  border-radius: 8px;
}

.topnav a:hover,
.site-header a:hover {
  color: var(--brand-deep);
  background: rgba(191, 47, 36, 0.1);
}

.content-card,
.card {
  border-color: rgba(107, 67, 45, 0.15);
  background:
    linear-gradient(180deg, rgba(255, 251, 242, 0.98), rgba(252, 242, 225, 0.95));
  box-shadow: var(--shadow);
}

.container {
  width: min(1180px, calc(100% - 32px));
}

.page-shell {
  grid-template-columns: minmax(240px, 28vw) minmax(0, 1fr);
}

.visual-panel {
  min-height: calc(100vh - 56px);
  margin: 28px 0 28px 28px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(37, 25, 21, 0.04), rgba(127, 32, 27, 0.14)),
    #fff3dd;
}

.visual-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(107, 67, 45, 0.18);
  border-radius: 8px;
  pointer-events: none;
}

.chef-image {
  top: 30px;
  width: min(100% - 48px, 360px);
  max-height: 470px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 16%;
}

.visual-content {
  top: 530px;
  width: min(100% - 48px, 360px);
  padding: 18px;
  border-left: 5px solid var(--brand);
  background: rgba(255, 251, 242, 0.84);
  backdrop-filter: blur(10px);
}

.visual-content h1 {
  color: #251915;
}

.content-panel {
  padding: 28px 28px 40px;
}

.landing-hero,
.login-hero,
.dashboard-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-color: rgba(107, 67, 45, 0.13);
}

.landing-hero::before,
.pricing-page .landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.96) 0%, rgba(255, 250, 240, 0.82) 48%, rgba(37, 25, 21, 0.18) 100%),
    url("../assets/images/chef-hero.png") right center / auto 120% no-repeat;
  pointer-events: none;
}

.landing-hero > *,
.login-hero > *,
.dashboard-hero > * {
  position: relative;
  z-index: 1;
}

.landing-hero h2,
.login-hero h2,
.dashboard-hero h2,
.content-card h2,
.card h2 {
  color: #251915;
  letter-spacing: 0;
}

.landing-hero .lead,
.login-hero .lead,
.dashboard-hero .lead {
  max-width: 42rem;
}

.login-hero,
.dashboard-hero {
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  align-items: stretch;
  justify-items: stretch;
  gap: 0;
  padding: 0;
  text-align: left;
}

.login-hero-image,
.dashboard-hero-image {
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 360px;
  object-fit: cover;
  object-position: center 15%;
  border-width: 0 1px 0 0;
  border-radius: 0;
  box-shadow: none;
}

.login-hero-copy,
.dashboard-hero-copy {
  display: grid;
  align-content: center;
  max-width: 620px;
  padding: 38px;
}

.dashboard-links {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.link-card,
.stat-card,
.dashboard-panel,
.pricing-card,
.recipe-list-row,
.mini-list-item,
.recipe-context-card,
.session-resume-card {
  position: relative;
  overflow: hidden;
}

.link-card::before,
.stat-card::before,
.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--accent, var(--brand));
}

.link-card-submit,
.stat-card:nth-child(1) {
  --accent: #bf2f24;
}

.link-card-recipes,
.stat-card:nth-child(2) {
  --accent: #426d3d;
}

.link-card-drinks,
.stat-card:nth-child(3) {
  --accent: #176f75;
}

.link-card-pantry {
  --accent: #6f7d35;
}

.link-card-ask {
  --accent: #d99b2b;
}

.link-card-fix {
  --accent: #7d4d2f;
}

.link-card-tools {
  --accent: #6f7d35;
}

.link-card-billing {
  --accent: #7f201b;
}

.link-card-support {
  --accent: #8a3f63;
}

.link-card {
  min-height: 162px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.link-card h3,
.stat-card h3,
.dashboard-panel h3,
.pricing-card h3 {
  color: #251915;
}

.link-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.link-card:hover,
.recipe-list-row:hover {
  border-color: rgba(191, 47, 36, 0.28);
  box-shadow: 0 18px 38px rgba(74, 39, 25, 0.16);
  transform: translateY(-2px);
}

.stat-card {
  min-height: 150px;
}

.stat-card h3,
.pricing-card h3 {
  color: var(--brand-deep);
}

.dashboard-panels {
  grid-template-columns: 1.25fr 1fr 1fr;
}

.section-heading {
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(107, 67, 45, 0.12);
}

.section-heading a {
  color: var(--brand-deep);
}

.mini-list-item,
.recipe-list-row,
.generated-recipe-card pre,
.generated-recipe-badge,
.drink-legend-item {
  border-radius: 8px;
  border-color: rgba(107, 67, 45, 0.13);
  background: rgba(255, 248, 236, 0.88);
}

.recipe-context-card,
.session-resume-card {
  border-color: rgba(107, 67, 45, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 248, 236, 0.95), rgba(223, 232, 207, 0.56));
}

input,
textarea,
select {
  border-color: rgba(107, 67, 45, 0.22);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.96);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(191, 47, 36, 0.18);
  border-color: rgba(191, 47, 36, 0.46);
}

.btn {
  border-radius: 8px;
  background: linear-gradient(135deg, #7f201b 0%, #bf2f24 46%, #d99b2b 100%);
  box-shadow: 0 12px 24px rgba(127, 32, 27, 0.22);
}

.btn-secondary {
  color: var(--brand-deep);
  background: rgba(255, 250, 240, 0.88);
  border: 1px solid rgba(107, 67, 45, 0.18);
  box-shadow: none;
}

.chat-messages {
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.88), rgba(255, 248, 236, 0.58));
}

.chat-message-user {
  background: #bf2f24;
}

.modal-backdrop {
  background: rgba(37, 25, 21, 0.54);
}

.modal-card {
  border-radius: 8px;
  border-color: rgba(107, 67, 45, 0.16);
  background: rgba(255, 250, 240, 0.98);
  box-shadow: 0 24px 80px rgba(37, 25, 21, 0.26);
}

@media (max-width: 980px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .visual-panel {
    min-height: 0;
  }

  .chef-image {
    width: min(100%, 260px);
    max-height: 320px;
  }

  .visual-content {
    top: auto;
  }

  .login-hero,
  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .login-hero-copy,
  .dashboard-hero-copy {
    max-width: none;
    padding: 30px;
  }

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

@media (max-width: 768px) {
  .site-header,
  .container {
    width: min(100% - 24px, 1000px);
  }

  .landing-hero,
  .login-hero,
  .dashboard-hero {
    min-height: 0;
  }

  .landing-hero::before,
  .pricing-page .landing-hero::before {
    background:
      linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(255, 250, 240, 0.86)),
      url("../assets/images/chef-hero.png") center top / 100% auto no-repeat;
  }

  .landing-hero {
    padding-top: 240px;
  }

  .login-hero-image,
  .dashboard-hero-image {
    min-height: 260px;
  }

  .login-hero-copy,
  .dashboard-hero-copy {
    padding: 24px 18px 28px;
  }

  .dashboard-links,
  .dashboard-stats,
  .dashboard-panels {
    grid-template-columns: 1fr;
  }

  .link-card {
    min-height: 138px;
  }
}

/* True final cool-blue pop theme override. Keep this at the end of the file. */
:root {
  --bg: #eef9ff;
  --panel: rgba(248, 253, 255, 0.96);
  --panel-strong: #ffffff;
  --text: #102136;
  --ink: #102136;
  --muted: #4c6478;
  --line: rgba(36, 121, 176, 0.2);
  --brand: #0877ff;
  --brand-deep: #083f91;
  --gold: #ff3ea5;
  --gold-deep: #c11478;
  --basil: #08a88a;
  --sage: #dff7ff;
  --cream: #f8fdff;
  --shadow: 0 20px 50px rgba(9, 62, 125, 0.14);
}

body {
  background:
    linear-gradient(90deg, rgba(8, 119, 255, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(8, 168, 138, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 8% 10%, rgba(95, 210, 255, 0.36), transparent 26%),
    radial-gradient(circle at 92% 18%, rgba(255, 62, 165, 0.14), transparent 24%),
    linear-gradient(135deg, #fbfeff 0%, #ebf8ff 46%, #e7fbff 100%) !important;
  color: var(--text);
}

body::before {
  background:
    linear-gradient(180deg, rgba(251, 254, 255, 0.7), rgba(251, 254, 255, 0.14)),
    radial-gradient(circle at 50% 100%, rgba(8, 119, 255, 0.1), transparent 44%) !important;
}

.topbar,
.site-header,
.content-card,
.card,
.dashboard-panel,
.pricing-card,
.link-card,
.stat-card,
.mini-list-item,
.recipe-list-row,
.generated-recipe-card,
.recipe-context-card,
.session-resume-card,
.pantry-usage-card,
.modal-card {
  border-color: rgba(36, 121, 176, 0.16) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 249, 255, 0.94)) !important;
  box-shadow: var(--shadow) !important;
}

.visual-panel {
  background:
    linear-gradient(180deg, rgba(8, 119, 255, 0.05), rgba(8, 168, 138, 0.1)),
    #eaf8ff !important;
}

.visual-panel::before,
.section-heading,
.generated-recipe-card pre,
.generated-recipe-badge,
.drink-legend-item {
  border-color: rgba(36, 121, 176, 0.16) !important;
}

.visual-content {
  border-left-color: var(--brand) !important;
  background: rgba(248, 253, 255, 0.86) !important;
}

.landing-hero h2,
.login-hero h2,
.dashboard-hero h2,
.content-card h2,
.card h2,
.link-card h3,
.stat-card h3,
.dashboard-panel h3,
.pricing-card h3,
.visual-content h1 {
  color: var(--ink) !important;
}

.mini-label,
.eyebrow,
.topnav a:hover,
.site-header a:hover {
  color: var(--brand-deep) !important;
}

.topnav a:hover,
.site-header a:hover {
  background: rgba(8, 119, 255, 0.1) !important;
}

.link-card-submit,
.stat-card:nth-child(1) {
  --accent: #0877ff;
}

.link-card-recipes,
.stat-card:nth-child(2) {
  --accent: #08a88a;
}

.link-card-drinks,
.stat-card:nth-child(3) {
  --accent: #00a7c7;
}

.link-card-ask {
  --accent: #ff3ea5;
}

.link-card-fix {
  --accent: #7b4dff;
}

.link-card-tools {
  --accent: #22c55e;
}

.link-card-billing {
  --accent: #005bd8;
}

.link-card:hover,
.recipe-list-row:hover {
  border-color: rgba(8, 119, 255, 0.32) !important;
  box-shadow: 0 18px 38px rgba(8, 119, 255, 0.16) !important;
}

input,
textarea,
select {
  border-color: rgba(36, 121, 176, 0.24) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(8, 119, 255, 0.2) !important;
  border-color: rgba(8, 119, 255, 0.5) !important;
}

.btn {
  background: linear-gradient(135deg, #083f91 0%, #0877ff 48%, #00c2ff 100%) !important;
  box-shadow: 0 14px 28px rgba(8, 119, 255, 0.24) !important;
}

.btn-secondary {
  color: var(--brand-deep) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(36, 121, 176, 0.22) !important;
}

.chat-messages {
  background:
    linear-gradient(180deg, rgba(239, 250, 255, 0.9), rgba(248, 253, 255, 0.66)) !important;
}

.chat-message-user {
  background: #0877ff !important;
}

.chat-message-assistant {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(223, 247, 255, 0.9)) !important;
}

.modal-backdrop {
  background: rgba(10, 28, 50, 0.54) !important;
}

.voice-autoplay-button {
  border-color: rgba(8, 119, 255, 0.62) !important;
  background: linear-gradient(135deg, rgba(239, 250, 255, 0.98), rgba(223, 247, 255, 0.98)) !important;
  box-shadow: 0 18px 36px rgba(8, 119, 255, 0.14) !important;
}

.voice-autoplay-button-mark {
  border-color: var(--brand-deep) !important;
  color: var(--brand-deep) !important;
}

.voice-autoplay-button strong {
  background: #ff3ea5 !important;
}

.voice-autoplay-button.is-on,
.voice-control-panel {
  border-color: rgba(8, 168, 138, 0.42) !important;
  background: linear-gradient(135deg, rgba(232, 255, 250, 0.98), rgba(239, 250, 255, 0.96)) !important;
}

.voice-control-panel {
  border-left-color: #08a88a !important;
}

.voice-control-panel.is-listening,
.voice-talk-btn.is-listening,
.voice-wake-toggle.is-listening {
  border-color: rgba(255, 62, 165, 0.7) !important;
  background: linear-gradient(135deg, #7b4dff 0%, #0877ff 48%, #ff3ea5 100%) !important;
  color: #fff !important;
  box-shadow: 0 0 0 4px rgba(8, 119, 255, 0.16), 0 16px 32px rgba(8, 119, 255, 0.24) !important;
}

.voice-control-panel.heard-wake-word {
  border-color: rgba(34, 197, 94, 0.72) !important;
  border-left-color: #22c55e !important;
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(223, 247, 255, 0.94)) !important;
}

.voice-heard-mark {
  border-color: rgba(34, 197, 94, 0.88) !important;
  background: #22c55e !important;
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.28) !important;
}

.voice-autoplay-button.is-on .voice-autoplay-button-mark {
  background: var(--brand-deep) !important;
  color: #fff !important;
}

/* Final cool-blue pop theme: removes the warm brown wash across the app. */
:root {
  --bg: #eef9ff;
  --panel: rgba(248, 253, 255, 0.96);
  --panel-strong: #ffffff;
  --text: #102136;
  --ink: #102136;
  --muted: #4c6478;
  --line: rgba(36, 121, 176, 0.2);
  --brand: #0877ff;
  --brand-deep: #083f91;
  --gold: #ff3ea5;
  --gold-deep: #c11478;
  --basil: #08a88a;
  --sage: #dff7ff;
  --cream: #f8fdff;
  --shadow: 0 20px 50px rgba(9, 62, 125, 0.14);
}

body {
  background:
    linear-gradient(90deg, rgba(8, 119, 255, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(8, 168, 138, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 8% 10%, rgba(95, 210, 255, 0.36), transparent 26%),
    radial-gradient(circle at 92% 18%, rgba(255, 62, 165, 0.14), transparent 24%),
    linear-gradient(135deg, #fbfeff 0%, #ebf8ff 46%, #e7fbff 100%) !important;
  color: var(--text);
}

body::before {
  background:
    linear-gradient(180deg, rgba(251, 254, 255, 0.7), rgba(251, 254, 255, 0.14)),
    radial-gradient(circle at 50% 100%, rgba(8, 119, 255, 0.1), transparent 44%) !important;
}

.topbar,
.site-header,
.content-card,
.card,
.dashboard-panel,
.pricing-card,
.link-card,
.stat-card,
.mini-list-item,
.recipe-list-row,
.generated-recipe-card,
.recipe-context-card,
.session-resume-card,
.pantry-usage-card,
.modal-card {
  border-color: rgba(36, 121, 176, 0.16) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 249, 255, 0.94)) !important;
  box-shadow: var(--shadow) !important;
}

.visual-panel {
  background:
    linear-gradient(180deg, rgba(8, 119, 255, 0.05), rgba(8, 168, 138, 0.1)),
    #eaf8ff !important;
}

.visual-panel::before,
.section-heading,
.generated-recipe-card pre,
.generated-recipe-badge,
.drink-legend-item {
  border-color: rgba(36, 121, 176, 0.16) !important;
}

.visual-content {
  border-left-color: var(--brand) !important;
  background: rgba(248, 253, 255, 0.86) !important;
}

.landing-hero h2,
.login-hero h2,
.dashboard-hero h2,
.content-card h2,
.card h2,
.link-card h3,
.stat-card h3,
.dashboard-panel h3,
.pricing-card h3,
.visual-content h1 {
  color: var(--ink) !important;
}

.mini-label,
.eyebrow,
.topnav a:hover,
.site-header a:hover {
  color: var(--brand-deep) !important;
}

.topnav a:hover,
.site-header a:hover {
  background: rgba(8, 119, 255, 0.1) !important;
}

.link-card-submit,
.stat-card:nth-child(1) {
  --accent: #0877ff;
}

.link-card-recipes,
.stat-card:nth-child(2) {
  --accent: #08a88a;
}

.link-card-drinks,
.stat-card:nth-child(3) {
  --accent: #00a7c7;
}

.link-card-ask {
  --accent: #ff3ea5;
}

.link-card-fix {
  --accent: #7b4dff;
}

.link-card-tools {
  --accent: #22c55e;
}

.link-card-billing {
  --accent: #005bd8;
}

.link-card:hover,
.recipe-list-row:hover {
  border-color: rgba(8, 119, 255, 0.32) !important;
  box-shadow: 0 18px 38px rgba(8, 119, 255, 0.16) !important;
}

input,
textarea,
select {
  border-color: rgba(36, 121, 176, 0.24) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(8, 119, 255, 0.2) !important;
  border-color: rgba(8, 119, 255, 0.5) !important;
}

.btn {
  background: linear-gradient(135deg, #083f91 0%, #0877ff 48%, #00c2ff 100%) !important;
  box-shadow: 0 14px 28px rgba(8, 119, 255, 0.24) !important;
}

.btn-secondary {
  color: var(--brand-deep) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(36, 121, 176, 0.22) !important;
}

.chat-messages {
  background:
    linear-gradient(180deg, rgba(239, 250, 255, 0.9), rgba(248, 253, 255, 0.66)) !important;
}

.chat-message-user {
  background: #0877ff !important;
}

.chat-message-assistant {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(223, 247, 255, 0.9)) !important;
}

.modal-backdrop {
  background: rgba(10, 28, 50, 0.54) !important;
}

.voice-autoplay-button {
  border-color: rgba(8, 119, 255, 0.62) !important;
  background: linear-gradient(135deg, rgba(239, 250, 255, 0.98), rgba(223, 247, 255, 0.98)) !important;
  box-shadow: 0 18px 36px rgba(8, 119, 255, 0.14) !important;
}

.voice-autoplay-button-mark {
  border-color: var(--brand-deep) !important;
  color: var(--brand-deep) !important;
}

.voice-autoplay-button strong {
  background: #ff3ea5 !important;
}

.voice-autoplay-button.is-on,
.voice-control-panel {
  border-color: rgba(8, 168, 138, 0.42) !important;
  background: linear-gradient(135deg, rgba(232, 255, 250, 0.98), rgba(239, 250, 255, 0.96)) !important;
}

.voice-control-panel {
  border-left-color: #08a88a !important;
}

.voice-control-panel.is-listening,
.voice-talk-btn.is-listening,
.voice-wake-toggle.is-listening {
  border-color: rgba(255, 62, 165, 0.7) !important;
  background: linear-gradient(135deg, #7b4dff 0%, #0877ff 48%, #ff3ea5 100%) !important;
  color: #fff !important;
  box-shadow: 0 0 0 4px rgba(8, 119, 255, 0.16), 0 16px 32px rgba(8, 119, 255, 0.24) !important;
}

.voice-control-panel.heard-wake-word {
  border-color: rgba(34, 197, 94, 0.72) !important;
  border-left-color: #22c55e !important;
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(223, 247, 255, 0.94)) !important;
}

.voice-heard-mark {
  border-color: rgba(34, 197, 94, 0.88) !important;
  background: #22c55e !important;
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.28) !important;
}

/* Ask Chef autoplay uses a button instead of a checkbox so it stays visible and aligned. */
.voice-preference-panel {
  margin: 0 0 18px;
}

.voice-autoplay-button {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 112px;
  padding: 18px;
  border: 3px solid rgba(127, 32, 27, 0.72);
  border-left-width: 10px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 246, 221, 0.98), rgba(225, 249, 253, 0.98));
  color: var(--text);
  text-align: left;
  box-shadow: 0 18px 36px rgba(127, 32, 27, 0.16);
  cursor: pointer;
}

.voice-autoplay-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(127, 32, 27, 0.2);
}

.voice-autoplay-button:focus-visible {
  outline: 4px solid rgba(15, 156, 171, 0.34);
  outline-offset: 4px;
}

.voice-autoplay-button-mark {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 4px solid var(--brand-deep);
  border-radius: 22px;
  background: #fff;
  color: var(--brand-deep);
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
}

.voice-autoplay-button-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.voice-autoplay-button-copy > span {
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1.15;
}

.voice-autoplay-button-copy small {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

.voice-autoplay-button strong {
  align-self: start;
  justify-self: end;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.voice-autoplay-button.is-on {
  border-color: rgba(15, 156, 171, 0.72);
  background: linear-gradient(135deg, rgba(219, 250, 243, 0.98), rgba(237, 251, 254, 0.98));
}

.voice-autoplay-button.is-on .voice-autoplay-button-mark {
  border-color: rgba(15, 156, 171, 0.85);
  background: var(--brand-deep);
  color: #fff;
}

.voice-control-panel {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 18px;
  border: 2px solid rgba(23, 111, 117, 0.28);
  border-left: 8px solid #176f75;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(237, 251, 254, 0.96), rgba(255, 248, 236, 0.92));
  box-shadow: 0 14px 30px rgba(37, 25, 21, 0.1);
}

.voice-heard-mark {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 8px solid rgba(66, 109, 61, 0.86);
  border-radius: 999px;
  background: #426d3d;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: scale(0.82);
  pointer-events: none;
  box-shadow: 0 18px 40px rgba(49, 91, 47, 0.28);
}

.voice-control-panel.heard-wake-word .voice-heard-mark {
  opacity: 1;
  transform: scale(1);
}

.voice-control-panel h3 {
  margin: 2px 0 6px;
  font-size: 1.22rem;
}

.voice-control-status {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.voice-control-panel.is-listening {
  border-color: rgba(191, 47, 36, 0.56);
  border-left-color: #bf2f24;
  background: linear-gradient(135deg, rgba(255, 241, 230, 0.98), rgba(225, 249, 253, 0.96));
}

.voice-control-panel.is-listening .voice-control-status {
  color: var(--brand-deep);
}

.voice-control-panel.heard-wake-word {
  border-color: rgba(66, 109, 61, 0.72);
  border-left-color: #426d3d;
  background: linear-gradient(135deg, rgba(232, 248, 226, 0.98), rgba(225, 249, 253, 0.92));
  padding-right: 150px;
}

.voice-control-panel.heard-wake-word .voice-control-status {
  color: #315b2f;
}

.voice-control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.voice-talk-btn,
.voice-wake-toggle {
  min-height: 54px;
}

.chat-button-row .voice-talk-btn {
  min-height: 0;
}

.voice-wake-toggle {
  padding: 14px 18px;
  border: 2px solid rgba(107, 67, 45, 0.2);
  border-radius: 12px;
  background: rgba(255, 252, 246, 0.96);
  color: var(--brand-deep);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.voice-wake-toggle.is-on {
  border-color: rgba(23, 111, 117, 0.65);
  background: #176f75;
  color: #fff;
  box-shadow: 0 12px 24px rgba(23, 111, 117, 0.2);
}

.voice-talk-btn.is-listening,
.voice-wake-toggle.is-listening {
  border-color: rgba(191, 47, 36, 0.75);
  background: linear-gradient(135deg, #7f201b 0%, #bf2f24 54%, #d99b2b 100%);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(191, 47, 36, 0.16), 0 16px 32px rgba(127, 32, 27, 0.24);
}

.voice-talk-btn.is-listening::after,
.voice-wake-toggle.is-listening::after {
  content: "Listening";
  display: inline-block;
  margin-left: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.voice-control-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .voice-autoplay-button {
    grid-template-columns: 86px minmax(0, 1fr);
    min-height: 0;
  }

  .voice-autoplay-button-mark {
    width: 76px;
    height: 76px;
  }

  .voice-autoplay-button strong {
    grid-column: 2;
    justify-self: start;
  }

  .voice-control-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .voice-heard-mark {
    position: static;
    width: 100%;
    height: 54px;
    border-width: 4px;
    border-radius: 12px;
    transform: scale(1);
    order: -1;
  }

  .voice-control-panel.heard-wake-word {
    padding-right: 18px;
  }

  .voice-talk-btn,
  .voice-wake-toggle {
    width: 100%;
  }
}

/* Final override: keep the voice autoplay opt-in large and aligned after global form styles. */
.voice-preference {
  display: block;
  padding: 18px;
}

.voice-preference .voice-preference-label {
  display: grid !important;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 0 !important;
}

.voice-preference .voice-autoplay-toggle {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  margin: -1px !important;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.voice-preference .voice-checkmark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 5px solid var(--brand-deep);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(127, 32, 27, 0.18);
}

.voice-preference .voice-checkmark::after {
  content: "";
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: transparent;
}

.voice-preference .voice-autoplay-toggle:checked + .voice-checkmark::after {
  content: "\2713";
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1;
}

.voice-preference .voice-autoplay-toggle:focus-visible + .voice-checkmark {
  outline: 4px solid rgba(15, 156, 171, 0.35);
  outline-offset: 4px;
}

.voice-preference .voice-preference-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.voice-preference .voice-preference-copy span {
  font-size: 1.12rem;
  line-height: 1.2;
}

.voice-preference .voice-preference-copy small {
  font-size: 0.98rem;
  line-height: 1.42;
}

.voice-preference strong {
  align-self: start;
  margin-top: 6px;
}

@media (max-width: 640px) {
  .voice-preference .voice-preference-label {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .voice-preference strong {
    grid-column: 2;
    margin: 0;
  }
}

/* Pricing copy stays on a clean panel instead of overlapping the chef photo. */
.pricing-page .landing-hero {
  min-height: 0 !important;
  padding: 28px !important;
  overflow: visible !important;
}

.pricing-page .landing-hero::before {
  display: none !important;
}

@media (max-width: 768px) {
  .pricing-page .landing-hero {
    padding: 18px !important;
  }
}

.support-page {
  display: grid;
  gap: 20px;
}

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

.support-intro {
  border-left: 5px solid #8a3f63;
}

.support-response-notice {
  max-width: 720px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 4px solid #a22e24;
  color: #6f211b;
  background: #f7dfb2;
  font-weight: 800;
}

.support-reply-badge {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: #b3261e;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
}

.link-card .support-reply-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  margin: 0;
}

.link-card.has-support-reply {
  position: relative;
  outline: 3px solid rgba(179, 38, 30, 0.28);
}

.support-chat {
  display: grid;
  gap: 16px;
}

.support-chat-messages {
  min-height: 360px;
  max-height: 60vh;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(92, 54, 35, 0.18);
  background: rgba(255, 252, 245, 0.72);
}

.support-chat-message {
  width: fit-content;
  max-width: min(78%, 680px);
  padding: 10px 12px;
  border-radius: 8px;
}

.support-chat-message p {
  margin: 0 0 5px;
  white-space: pre-wrap;
}

.support-chat-message small {
  color: inherit;
  opacity: 0.72;
}

.support-chat-message-user {
  align-self: flex-end;
  color: #fff;
  background: #8e2d22;
}

.support-chat-message-admin {
  align-self: flex-start;
  color: #2a1b15;
  background: #f0dfbd;
}

.support-chat-message-admin.is-new-reply {
  border: 3px solid #b3261e;
  background: #ffe6a8;
}

.support-new-reply-label {
  display: block;
  margin-bottom: 6px;
  color: #8e211a;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.support-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.support-chat-form .btn {
  margin: 0;
}

.admin-chat-thread {
  display: grid;
  gap: 12px;
}

.admin-message-inbox {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 0.66fr);
  height: 560px;
  border: 1px solid rgba(92, 54, 35, 0.18);
  overflow: hidden;
  background: rgba(255, 252, 245, 0.72);
}

.admin-message-stat .btn {
  margin-top: 10px;
}

.admin-support-page {
  display: grid;
  gap: 20px;
}

.admin-support-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.admin-support-header h2 {
  margin-bottom: 8px;
}

.admin-support-count {
  min-width: 130px;
  padding: 16px;
  border-left: 4px solid #a22e24;
  background: #fff4dc;
}

.admin-support-count strong {
  display: block;
  margin-top: 4px;
  font-size: 2.4rem;
  line-height: 1;
}

.admin-support-inbox {
  min-width: 0;
}

.account-page {
  display: grid;
  gap: 20px;
  max-width: 900px;
}

.account-danger-zone {
  display: grid;
  gap: 14px;
  border-left: 5px solid #a22e24;
}

.account-danger-zone p {
  max-width: 720px;
}

.account-danger-zone input {
  max-width: 320px;
  margin: 0;
}

.account-delete-btn {
  width: fit-content;
  margin: 0;
  background: #8e211a;
}

.admin-user-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.admin-user-delete {
  margin: 0;
  color: #8e211a;
  border-color: rgba(142, 33, 26, 0.34);
}

.admin-delete-error {
  color: #8e211a;
}

.admin-deletion-failure-count {
  color: #426d3d;
  font-weight: 700;
}

.admin-deletion-failure-count.has-failures {
  color: #8e211a;
}

.admin-deletion-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.admin-deletion-status {
  padding: 5px 8px;
  border: 1px solid rgba(107, 67, 45, 0.16);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-deletion-status.is-complete {
  color: #315b2e;
  border-color: rgba(49, 91, 46, 0.24);
  background: #e5f1dc;
}

.admin-deletion-status.is-failed {
  color: #8e211a;
  border-color: rgba(142, 33, 26, 0.24);
  background: #fff0ea;
}

.admin-parting-gift-panel .mini-empty {
  margin-bottom: 14px;
}

.admin-parting-gift-actions {
  margin-top: 12px;
}

.admin-parting-gift-actions .btn {
  min-width: 128px;
}

.admin-message-users {
  overflow-y: auto;
  border-right: 1px solid rgba(92, 54, 35, 0.18);
  background: rgba(242, 225, 193, 0.28);
}

.pantry-page {
  display: grid;
  gap: 20px;
}

.pantry-hero {
  min-height: 0;
}

.pantry-bulk-card,
.pantry-single-card,
.pantry-list-card {
  display: grid;
  gap: 16px;
}

.pantry-chat-bubble {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(162, 46, 36, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(229, 247, 249, 0.78), rgba(255, 248, 236, 0.74));
}

.pantry-chat-bubble textarea {
  min-height: 132px;
  margin: 0;
}

.pantry-review-wrap {
  display: grid;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(107, 67, 45, 0.12);
}

.pantry-review-list,
.pantry-list {
  display: grid;
  gap: 12px;
}

.pantry-review-row,
.pantry-item-row {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(107, 67, 45, 0.13);
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.88);
}

.pantry-review-row {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
}

.pantry-review-row label {
  margin: 0;
}

.pantry-review-row input {
  margin: 6px 0 0;
}

.pantry-single-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.pantry-single-form label {
  margin: 0;
}

.pantry-single-form input {
  margin: 6px 0 0;
}

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

.pantry-item-row h4 {
  margin: 0 0 5px;
}

.pantry-item-row p {
  margin: 0;
  color: var(--muted);
}

.pantry-row-actions {
  display: flex;
  justify-content: flex-end;
}

.pantry-usage-card {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(107, 67, 45, 0.14);
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.82);
}

.pantry-usage-text {
  min-height: 98px;
  margin: 0;
  resize: vertical;
}

.pantry-usage-actions {
  align-items: center;
}

@media (max-width: 900px) {
  .pantry-review-row,
  .pantry-single-form,
  .pantry-item-row {
    grid-template-columns: 1fr;
  }

  .pantry-row-actions,
  .pantry-review-row .btn,
  .pantry-single-form .btn {
    width: 100%;
  }

  .pantry-row-actions .btn {
    width: 100%;
  }

  .pantry-usage-actions .btn {
    width: 100%;
  }

}

.admin-message-user {
  width: 100%;
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid rgba(92, 54, 35, 0.14);
  border-radius: 0;
  color: #2a1b15;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.admin-message-user:hover,
.admin-message-user.is-active {
  background: #fff8eb;
}

.admin-message-user.is-active {
  box-shadow: inset 4px 0 #a22e24;
}

.admin-message-user-copy,
.admin-message-user-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.admin-message-user-copy strong,
.admin-message-user-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-message-user-meta {
  flex: 0 0 auto;
  align-items: flex-end;
}

.admin-message-unread {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: #a22e24;
  font-size: 0.75rem;
  font-weight: 800;
}

.admin-message-detail {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  overflow: hidden;
}

.admin-message-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-message-detail-heading h4 {
  margin: 0;
}

.admin-message-delete {
  margin: 0;
  color: #8e2d22;
  border-color: rgba(142, 45, 34, 0.35);
}

.admin-message-empty {
  grid-row: 1 / -1;
  align-self: center;
  justify-self: center;
  max-width: 320px;
  text-align: center;
}

.admin-chat-thread {
  min-height: 0;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  padding: 12px;
  background: #fffdf8;
  border: 1px solid rgba(92, 54, 35, 0.18);
}

.admin-chat-reply {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  min-width: 0;
}

.admin-chat-reply .btn {
  margin: 0;
  min-width: 96px;
  height: 52px;
}

.admin-chat-reply textarea {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  height: 52px;
  max-height: 120px;
  margin: 0;
  padding: 12px 14px;
  resize: vertical;
  box-sizing: border-box;
}

@media (max-width: 700px) {
  .admin-support-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-message-inbox {
    grid-template-columns: 1fr;
    grid-template-rows: 180px minmax(0, 1fr);
    height: 620px;
  }

  .admin-message-users {
    border-right: 0;
    border-bottom: 1px solid rgba(92, 54, 35, 0.18);
  }

  .support-chat-form,
  .admin-chat-reply {
    grid-template-columns: 1fr;
  }
}

/* Standalone public landing page */
.welcome-page {
  background: #211713;
}

.welcome-page main {
  min-height: 100vh;
}

.welcome-hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fffaf0;
  background:
    linear-gradient(180deg, rgba(18, 12, 9, 0.2) 0%, rgba(18, 12, 9, 0.12) 34%, rgba(18, 12, 9, 0.86) 100%),
    linear-gradient(90deg, rgba(18, 12, 9, 0.64) 0%, rgba(18, 12, 9, 0.18) 52%, rgba(18, 12, 9, 0.12) 100%),
    url("../assets/images/chef-hero.png") center 24% / cover no-repeat;
}

.welcome-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px clamp(20px, 5vw, 72px);
  background: linear-gradient(180deg, rgba(18, 12, 9, 0.58), transparent);
}

.welcome-brand {
  display: grid;
  gap: 2px;
  color: #fffaf0;
  text-decoration: none;
}

.welcome-brand span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 700;
}

.welcome-brand small {
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.welcome-pricing-link {
  padding: 9px 0;
  color: #fffaf0;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 250, 240, 0.45);
}

.welcome-pricing-link:hover {
  border-bottom-color: #f0bd58;
}

.welcome-copy {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 150px 0 clamp(42px, 8vh, 82px);
  text-align: center;
}

.welcome-kicker {
  margin: 0 0 10px;
  color: #f0bd58;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.welcome-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 11vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.42);
}

.welcome-message {
  max-width: 680px;
  margin: 24px auto 0;
  color: rgba(255, 250, 240, 0.9);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.welcome-enter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 52px;
  margin-top: 28px;
  padding: 13px 24px;
  border: 1px solid rgba(255, 250, 240, 0.5);
  border-radius: 8px;
  background: #bf2f24;
  color: #fffaf0;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(40, 13, 10, 0.34);
  transition: background-color 160ms ease, transform 160ms ease;
}

.welcome-enter-btn:hover {
  background: #d13a2d;
  transform: translateY(-2px);
}

.welcome-account-note {
  margin: 12px 0 0;
  color: rgba(255, 250, 240, 0.7);
  font-size: 0.86rem;
}

.welcome-afterword {
  min-height: 72px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 20px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: #fff4df;
  color: #5c3328;
  text-align: center;
}

.welcome-afterword p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .welcome-hero {
    min-height: calc(100svh - 104px);
    background:
      linear-gradient(180deg, rgba(18, 12, 9, 0.26) 0%, rgba(18, 12, 9, 0.16) 30%, rgba(18, 12, 9, 0.9) 100%),
      url("../assets/images/chef-hero.png") center 18% / cover no-repeat;
  }

  .welcome-header {
    padding: 18px 20px;
  }

  .welcome-brand span {
    font-size: 1.45rem;
  }

  .welcome-copy {
    width: min(100% - 32px, 680px);
    padding: 130px 0 34px;
  }

  .welcome-copy h1 {
    font-size: clamp(3.6rem, 20vw, 5.5rem);
  }

  .welcome-message {
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.58;
  }

  .welcome-enter-btn {
    width: 100%;
  }

  .welcome-afterword {
    min-height: 104px;
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 15px 20px;
  }
}

:root {
  --bg: #f3dfaa;
  --bg-accent: #2aa9b8;
  --panel: rgba(255, 250, 240, 0.94);
  --panel-strong: #fffdf7;
  --text: #17313c;
  --muted: #4d6f7d;
  --line: rgba(30, 110, 138, 0.18);
  --brand: #0f9cab;
  --brand-deep: #155fa9;
  --gold: #f3b63f;
  --gold-deep: #d69418;
  --shadow: 0 22px 60px rgba(28, 109, 208, 0.16);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.52), transparent 24%),
    radial-gradient(circle at right 18%, rgba(15, 156, 171, 0.12), transparent 22%),
    radial-gradient(circle at bottom 18%, rgba(243, 182, 63, 0.2), transparent 22%),
    linear-gradient(135deg, #fbf3d2 0%, var(--bg) 34%, #e7c778 72%, #dca94a 100%);
  color: var(--text);
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(180px, 22vw) minmax(0, 1fr);
}

.visual-panel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: transparent;
  margin: 28px 0 28px 28px;
  border-radius: 0;
  box-shadow: none;
}

.chef-image {
  position: absolute;
  top: 28px;
  left: 50%;
  width: min(100%, 260px);
  max-height: 360px;
  height: auto;
  object-fit: contain;
  object-position: center center;
  transform: translateX(-50%);
  border-radius: 18px;
  box-shadow: var(--shadow);
  background: #f5ede2;
}

.visual-overlay {
  display: none;
}

.visual-content {
  position: absolute;
  top: 420px;
  left: 50%;
  width: min(100%, 260px);
  transform: translateX(-50%);
  z-index: 1;
  color: var(--text);
}

.visual-content h1 {
  margin: 10px 0 12px;
  font-size: clamp(2.1rem, 3vw, 3.4rem);
  line-height: 1.02;
}

.visual-content p {
  max-width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.content-panel {
  padding: 28px;
}

.topbar,
.content-card,
.site-header,
.card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.topbar,
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.85);
  backdrop-filter: blur(14px);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-badge {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, #ffd978 34%, var(--brand) 72%, var(--brand-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  font-size: 1.35rem;
}

.brand-portrait {
  width: 68px;
  height: 68px;
  object-fit: cover;
  object-position: center 16%;
  border-radius: 18px;
  box-shadow: var(--shadow);
  background: #f5ede2;
}

.mini-label,
.eyebrow {
  display: inline-block;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.mini-label {
  margin: 0 0 4px;
  color: var(--muted);
}

.brand-title {
  margin: 0;
  font-size: 1.3rem;
}

.brand-title-large {
  margin: 0;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  line-height: 1.05;
}

.topnav,
.site-header nav {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.topnav a,
.site-header a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background-color 140ms ease, color 140ms ease;
}

.topnav a:hover,
.site-header a:hover {
  background: rgba(243, 182, 63, 0.18);
  color: var(--brand-deep);
}

.content-card,
.card {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96) 0%, rgba(255, 244, 225, 0.94) 100%);
  border-radius: var(--radius-xl);
  padding: 24px;
}

.content-panel > .content-card,
.content-panel > .topbar {
  margin-bottom: 20px;
}

.content-card h2,
.card h2 {
  margin: 10px 0 10px;
  font-size: clamp(1.8rem, 2vw, 2.5rem);
}

.content-card h3,
.card h3 {
  margin-top: 0;
}

.lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 24px auto 40px;
}

.auth-grid,
.dashboard-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

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

.login-page {
  display: grid;
  gap: 20px;
}

.dashboard-page {
  display: grid;
  gap: 20px;
}

.landing-hero {
  display: grid;
  gap: 16px;
}

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

.landing-grid {
  margin-top: 0;
}

.trial-status-card {
  display: grid;
  gap: 14px;
}

.dashboard-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 20px;
  padding: 30px;
}

.dashboard-hero-image {
  width: min(100%, 360px);
  max-height: 460px;
  object-fit: contain;
  object-position: center center;
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: #f5ede2;
}

.dashboard-hero-copy {
  max-width: 44rem;
}

.login-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 18px;
  padding: 28px;
}

.login-hero-image {
  width: min(100%, 320px);
  max-height: 420px;
  object-fit: contain;
  object-position: center center;
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: #f5ede2;
}

.login-hero-copy {
  max-width: 42rem;
}

.narrow-card {
  width: min(640px, 100%);
  margin: 0 auto;
}

.assistant-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.chat-stack {
  display: grid;
  gap: 20px;
}

.ask-chef-workspace {
  scroll-behavior: smooth;
}

.ask-chef-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ask-chef-path {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(111, 57, 31, 0.2);
  border-radius: 8px;
  color: inherit;
  background: rgba(255, 250, 239, 0.9);
  text-decoration: none;
}

.ask-chef-path:hover {
  border-color: rgba(162, 46, 36, 0.48);
  background: #fff8e9;
}

.ask-chef-path-number {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #a22e24;
  font-weight: 800;
}

.ask-chef-path strong,
.ask-chef-path small {
  display: block;
}

.ask-chef-path small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.assistant-sidebar {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 0;
}

.recipe-start-panel {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: 14px;
  border: 1px solid rgba(162, 46, 36, 0.22);
  border-radius: 8px;
  background: #fff4dc;
}

.recipe-start-panel p {
  margin: 0;
  color: #704337;
  line-height: 1.45;
}

.recipe-start-btn {
  width: 100%;
  margin: 0;
}

.recipe-start-btn.is-ready {
  box-shadow: 0 8px 20px rgba(162, 46, 36, 0.22);
}

.recipe-start-btn.is-active {
  color: #315b2e;
  border-color: rgba(49, 91, 46, 0.28);
  background: #e5f1dc;
  box-shadow: none;
}

.chat-card {
  min-height: 760px;
}

.general-chat-card {
  display: grid;
  grid-template-rows: auto minmax(170px, 1fr) auto;
  gap: 18px;
}

.assistant-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(243, 182, 63, 0.2), rgba(15, 156, 171, 0.14));
  color: var(--muted);
  line-height: 1.6;
}

.sidebar-utility-links {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.sidebar-utility-link {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(247, 251, 244, 0.9);
  border: 1px solid rgba(28, 109, 208, 0.1);
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.sidebar-utility-link:hover {
  transform: translateY(-1px);
  border-color: rgba(28, 109, 208, 0.24);
  box-shadow: 0 10px 20px rgba(20, 56, 102, 0.08);
}

.sidebar-utility-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.sidebar-utility-copy {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--muted);
}

.fix-dish-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 250, 252, 0.95) 100%);
  border: 1px solid rgba(28, 109, 208, 0.12);
}

.fix-dish-panel-header h3 {
  margin: 6px 0 0;
  font-size: 1.1rem;
}

.fix-dish-panel .lead {
  margin: 8px 0 0;
}

.fix-dish-actions {
  display: flex;
  justify-content: flex-start;
}

.fix-dish-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fix-dish-stage-grid {
  margin-top: 6px;
}

.fix-dish-chip {
  appearance: none;
  border: 1px solid rgba(127, 32, 27, 0.28);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-deep);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.fix-dish-chip:hover {
  background: rgba(255, 246, 221, 0.98);
}

.fix-dish-chip.is-selected,
.fix-dish-chip[aria-pressed="true"] {
  border-color: rgba(127, 32, 27, 0.85);
  background: var(--brand-deep);
  color: #fff;
  box-shadow: 0 10px 22px rgba(127, 32, 27, 0.18);
}

.fix-dish-chip.is-selected::before,
.fix-dish-chip[aria-pressed="true"]::before {
  content: "\2713";
  margin-right: 6px;
  font-weight: 900;
}

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

.fix-dish-grid > div {
  display: grid;
  align-content: start;
}

.fix-dish-grid input[type="file"] {
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(28, 109, 208, 0.12);
  font-size: 0.92rem;
}

.fix-dish-photo-status {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  min-height: 18px;
}

.fix-dish-photo-note {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--muted);
}

.fix-dish-photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fix-dish-photo-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(28, 109, 208, 0.12);
  color: var(--brand-deep);
  font-size: 0.78rem;
  line-height: 1.2;
}

.kitchen-timer-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 250, 252, 0.95) 100%);
  border: 1px solid rgba(28, 109, 208, 0.12);
}

.kitchen-timer-header h3 {
  margin: 6px 0 0;
  font-size: 1.1rem;
}

.kitchen-timer-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.kitchen-timer {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(28, 109, 208, 0.1);
}

.kitchen-timer.is-done {
  border-color: rgba(243, 182, 63, 0.55);
  box-shadow: 0 8px 22px rgba(243, 182, 63, 0.18);
}

.kitchen-timer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.kitchen-timer-inputs {
  display: flex;
  gap: 8px;
  align-items: center;
}

.kitchen-timer-display {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--brand-deep);
}

.kitchen-timer-hours,
.kitchen-timer-minutes {
  width: 78px;
  margin: 0;
}

.kitchen-timer-reason {
  margin-bottom: 10px;
}

.kitchen-timer-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.recipe-photo-import {
  margin-bottom: 16px;
}

.recipe-photo-tools {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.recipe-photo-tools .btn {
  justify-self: start;
}

.public-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.chat-card {
  display: grid;
  grid-template-rows: auto auto minmax(380px, 1fr) auto;
  gap: 14px;
}

.chat-prelude {
  display: grid;
  gap: 10px;
  align-content: start;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  flex-wrap: wrap;
}

.chat-header .lead {
  margin: 4px 0 0;
  max-width: 38rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--muted);
}

.chat-messages {
  min-height: 480px;
  max-height: 62vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(217, 244, 246, 0.96) 62%, rgba(181, 229, 239, 0.94) 100%);
  border: 1px solid rgba(28, 109, 208, 0.12);
}

.general-chat-card .chat-messages {
  min-height: 220px;
  max-height: 260px;
}

.chat-message {
  max-width: min(720px, 88%);
  padding: 16px 18px;
  border-radius: 18px;
  margin-bottom: 14px;
  box-shadow: 0 10px 26px rgba(53, 34, 19, 0.08);
}

.chat-message:last-child {
  margin-bottom: 0;
}

.chat-message p {
  margin: 0;
  line-height: 1.7;
  white-space: pre-wrap;
}

.chat-voice-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.voice-preference {
  padding: 16px 18px;
  margin-bottom: 18px;
  border: 2px solid rgba(199, 43, 37, 0.62);
  border-left-width: 8px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 247, 225, 0.98) 0%, rgba(237, 251, 254, 0.95) 100%);
  box-shadow: 0 16px 34px rgba(137, 42, 22, 0.13);
}

.voice-preference-label {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  color: var(--brand-deep);
  font-weight: 800;
  cursor: pointer;
}

.voice-preference-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.voice-preference-copy span {
  line-height: 1.2;
}

.voice-preference-copy small {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
}

.voice-preference strong {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.voice-preference input {
  appearance: none;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  margin: 0;
  border: 4px solid var(--brand-deep);
  border-radius: 16px;
  background: #fff;
  accent-color: var(--brand);
  cursor: pointer;
}

.voice-preference input::before {
  content: "";
  width: 32px;
  height: 32px;
  border-radius: 10px;
  transform: scale(0);
  transition: transform 120ms ease-in-out;
  background: var(--brand);
}

.voice-preference input:checked::before {
  transform: scale(1);
}

.voice-preference input:focus-visible {
  outline: 3px solid rgba(15, 156, 171, 0.35);
  outline-offset: 3px;
}

.voice-preference p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 560px) {
  .voice-preference-label {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .voice-preference strong {
    margin-left: 72px;
  }
}

.chat-voice-btn {
  appearance: none;
  border: 1px solid rgba(15, 156, 171, 0.28);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-deep);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.chat-voice-btn:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.chat-voice-audio {
  max-width: min(100%, 320px);
  height: 34px;
}

.chat-message-label {
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chat-message-assistant {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(237, 251, 254, 0.97) 68%, rgba(211, 242, 248, 0.95) 100%);
  border-bottom-left-radius: 8px;
}

.chat-message-user {
  margin-left: auto;
  background: linear-gradient(135deg, var(--gold) 0%, #f0ae21 18%, var(--brand) 58%, var(--brand-deep) 100%);
  color: #fff;
  border-bottom-right-radius: 8px;
}

.chat-message-user .chat-message-label {
  color: rgba(255, 255, 255, 0.8);
}

.chat-composer {
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(235, 250, 252, 0.96) 72%, rgba(214, 243, 248, 0.95) 100%);
  border: 1px solid rgba(28, 109, 208, 0.14);
}

.chat-composer textarea {
  min-height: 140px;
}

.chat-actions {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-top: 14px;
}

.chat-button-row {
  display: flex;
  gap: 12px;
  align-items: center;
}


.chat-helper {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.chat-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(243, 182, 63, 0.18), rgba(15, 156, 171, 0.12));
  color: var(--brand-deep);
  font-weight: 700;
}

.session-resume-card {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 252, 240, 0.96) 0%, rgba(233, 247, 249, 0.95) 100%);
  border: 1px solid rgba(28, 109, 208, 0.16);
}

.session-resume-card h3 {
  margin: 4px 0 0;
  font-size: 1rem;
}

.recipe-context-card {
  display: grid;
  gap: 5px;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(248, 252, 246, 0.92);
  border: 1px solid rgba(28, 109, 208, 0.12);
}

.recipe-context-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.recipe-context-card h3 {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.25;
}

.recipe-context-summary {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.35;
  color: var(--muted);
}

.recipe-context-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(15, 156, 171, 0.12);
  color: var(--brand-deep);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.recipe-context-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.recipe-context-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(28, 109, 208, 0.12);
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1;
}

.resume-session-list {
  display: grid;
  gap: 8px;
}

.resume-session-item {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(28, 109, 208, 0.14);
}

.resume-session-item h4,
.resume-session-item p {
  margin: 0;
}

.resume-session-item h4 {
  font-size: 0.95rem;
}

.resume-session-item p {
  color: var(--muted);
  line-height: 1.35;
  font-size: 0.88rem;
}

.resume-session-item .chat-button-row {
  gap: 6px;
}

.resume-session-item .btn-small {
  padding: 7px 10px;
  font-size: 0.9rem;
}

.kitchen-converter-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(235, 250, 252, 0.95) 100%);
  border: 1px solid rgba(28, 109, 208, 0.12);
  display: grid;
  gap: 14px;
}

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

.kitchen-converter-grid label {
  margin-top: 0;
}

.kitchen-converter-actions {
  display: flex;
  justify-content: flex-start;
}

.kitchen-converter-result {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(28, 109, 208, 0.12);
  color: var(--brand-deep);
  font-weight: 700;
}

.source-priority-note {
  margin-top: 16px;
  font-size: 0.95rem;
}

.auth-link-row {
  margin: 16px 0 0;
}

.auth-link-row a {
  color: var(--brand-deep);
  font-weight: 700;
  text-decoration: none;
}

.auth-link-row a:hover {
  text-decoration: underline;
}

/* Drinks Section */

.drink-studio-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.drink-studio-hero h2 {
  margin-bottom: 8px;
}

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

.drinks-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.drink-studio-layout {
  margin-top: 20px;
}

.drinks-chat-card {
  min-height: 100%;
}

.drinks-picker-card {
  display: grid;
  gap: 10px;
}

.drinks-picker-panel,
.drink-detail-panel {
  display: grid;
  gap: 16px;
}

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

.drinks-picker-card label {
  margin-top: 0;
}

.drinks-picker-actions {
  justify-content: flex-start;
  margin-top: 2px;
}

.drinks-context-card {
  background: linear-gradient(180deg, rgba(252, 251, 244, 0.95) 0%, rgba(234, 248, 250, 0.94) 100%);
}

.drink-studio-notes {
  min-height: 260px;
  max-height: 360px;
}

.drink-question-panel {
  padding: 18px;
  border: 1px solid rgba(28, 109, 208, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(235, 249, 250, 0.86), rgba(255, 249, 238, 0.92));
}

.drink-visual-card {
  display: grid;
  gap: 18px;
}

.drink-visual-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.drink-glass-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(229, 247, 251, 0.96) 60%, rgba(214, 239, 246, 0.98) 100%);
  border: 1px solid rgba(28, 109, 208, 0.12);
  min-height: 520px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -18px 40px rgba(116, 182, 201, 0.08);
}

.drink-glass-illustration {
  position: absolute;
  inset: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.95;
  z-index: 0;
}

.drink-glass-illustration svg {
  width: min(270px, 100%);
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 10px 18px rgba(17, 64, 84, 0.12));
}

.drink-garnish {
  position: absolute;
  top: 42px;
  right: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 84px;
  pointer-events: none;
}

.drink-garnish::before,
.drink-garnish::after {
  content: "";
  position: absolute;
}

.drink-garnish-badge {
  position: absolute;
  top: 64px;
  right: -4px;
  max-width: 140px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(28, 109, 208, 0.12);
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 8px 16px rgba(17, 64, 84, 0.08);
}

.drink-garnish.garnish-citrus::before,
.drink-garnish.garnish-orange::before {
  top: 0;
  right: 14px;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 18px rgba(17, 64, 84, 0.14);
}

.drink-garnish.garnish-citrus::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.72) 0 14%, transparent 15%),
    radial-gradient(circle at 50% 50%, rgba(198, 228, 82, 0.18) 0 56%, transparent 57%),
    conic-gradient(from 0deg, #d9f186 0 12.5%, #edf9b2 12.5% 25%, #d3ee74 25% 37.5%, #edf9b2 37.5% 50%, #d3ee74 50% 62.5%, #edf9b2 62.5% 75%, #d3ee74 75% 87.5%, #edf9b2 87.5% 100%);
}

.drink-garnish.garnish-orange::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 250, 235, 0.72) 0 14%, transparent 15%),
    radial-gradient(circle at 50% 50%, rgba(255, 182, 72, 0.2) 0 56%, transparent 57%),
    conic-gradient(from 0deg, #ffb347 0 12.5%, #ffe1a3 12.5% 25%, #ffb03a 25% 37.5%, #ffe1a3 37.5% 50%, #ffb03a 50% 62.5%, #ffe1a3 62.5% 75%, #ffb03a 75% 87.5%, #ffe1a3 87.5% 100%);
}

.drink-garnish.garnish-cherry::before {
  top: 10px;
  right: 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8c8c 0, #c9272b 55%, #8e1519 100%);
  box-shadow: 0 8px 14px rgba(64, 16, 19, 0.18);
}

.drink-garnish.garnish-cherry::after {
  top: -4px;
  right: 34px;
  width: 28px;
  height: 42px;
  border-top: 3px solid #5d7c35;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-radius: 50%;
  transform: rotate(-18deg);
}

.drink-garnish.garnish-olive::before {
  top: 8px;
  right: 20px;
  width: 22px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #d6ef8d 0, #849d38 58%, #587021 100%);
  box-shadow: 0 8px 14px rgba(36, 55, 16, 0.18);
}

.drink-garnish.garnish-olive::after {
  top: 2px;
  right: 30px;
  width: 48px;
  height: 2px;
  background: #b8965a;
  transform: rotate(-28deg);
  transform-origin: right center;
}

.drink-garnish.garnish-herb::before,
.drink-garnish.garnish-herb::after {
  width: 26px;
  height: 44px;
  background: linear-gradient(180deg, #7dd17f 0%, #4ca152 100%);
  border-radius: 60% 40% 60% 40%;
  box-shadow: 0 8px 14px rgba(25, 71, 28, 0.16);
}

.drink-garnish.garnish-herb::before {
  top: 0;
  right: 22px;
  transform: rotate(-20deg);
}

.drink-garnish.garnish-herb::after {
  top: 6px;
  right: 40px;
  transform: rotate(16deg);
}

.drink-garnish.garnish-generic::before {
  top: 16px;
  right: 24px;
  width: 48px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f0d0a2 0%, #d49a5d 100%);
  box-shadow: 0 8px 14px rgba(64, 41, 20, 0.14);
  transform: rotate(-20deg);
}

.drink-glass-frame {
  position: relative;
  width: min(220px, 100%);
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48) 0%, rgba(215, 240, 246, 0.2) 100%);
  border: 2px solid rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 0 0 1px rgba(28, 109, 208, 0.08),
    0 18px 30px rgba(17, 64, 84, 0.08);
  backdrop-filter: blur(4px);
  z-index: 1;
}

.drink-glass {
  position: relative;
  height: 440px;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  overflow: hidden;
  border-radius: 18px 18px 28px 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(234, 246, 248, 0.08) 100%);
  border: 1px solid rgba(23, 49, 60, 0.08);
  box-shadow:
    inset 12px 0 18px rgba(255, 255, 255, 0.2),
    inset -8px 0 14px rgba(255, 255, 255, 0.08);
}

.drink-glass-reflection {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 22px;
  width: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.06) 100%);
  opacity: 0.64;
  filter: blur(0.2px);
  z-index: 2;
  pointer-events: none;
}

.drink-glass-rim-glow {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 72%;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.12) 100%);
  filter: blur(0.4px);
  z-index: 2;
  pointer-events: none;
}

.drink-glass-wrap.shape-highball {
  align-items: center;
}

.drink-glass-frame.shape-highball {
  width: min(220px, 100%);
  border-radius: 28px 28px 34px 34px;
}

.drink-glass.shape-highball {
  height: 440px;
  border-radius: 18px 18px 28px 28px;
}

.drink-glass-wrap.shape-rocks {
  align-items: end;
}

.drink-glass-illustration.shape-rocks svg {
  width: min(286px, 100%);
}

.drink-glass-frame.shape-rocks {
  width: min(240px, 100%);
  padding: 10px 12px 12px;
  border-radius: 16px 16px 22px 22px;
}

.drink-glass.shape-rocks {
  height: 270px;
  border-radius: 14px 14px 18px 18px;
}

.drink-glass-wrap.shape-shot {
  align-items: end;
}

.drink-glass-illustration.shape-shot svg {
  width: min(160px, 100%);
}

.drink-glass-frame.shape-shot {
  width: min(132px, 100%);
  padding: 8px 10px 10px;
  border-radius: 12px 12px 18px 18px;
}

.drink-glass.shape-shot {
  height: 210px;
  border-radius: 10px 10px 16px 16px;
}

.drink-glass-wrap.shape-coupe,
.drink-glass-wrap.shape-wine {
  align-items: end;
}

.drink-glass-illustration.shape-coupe svg,
.drink-glass-illustration.shape-wine svg {
  width: min(300px, 100%);
}

.drink-glass-frame.shape-coupe,
.drink-glass-frame.shape-wine {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0 18px 112px;
}

.drink-glass-frame.shape-coupe::before,
.drink-glass-frame.shape-wine::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 26px;
  width: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(188, 226, 236, 0.88) 100%);
  box-shadow: 0 0 0 1px rgba(28, 109, 208, 0.12);
}

.drink-glass-frame.shape-coupe::after,
.drink-glass-frame.shape-wine::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(201, 235, 242, 0.9) 100%);
  box-shadow: 0 0 0 1px rgba(28, 109, 208, 0.12);
}

.drink-glass-frame.shape-coupe::before {
  height: 96px;
}

.drink-glass-frame.shape-coupe::after {
  width: 86px;
}

.drink-glass.shape-coupe {
  height: 250px;
  width: min(250px, 100%);
  clip-path: polygon(6% 0, 94% 0, 72% 100%, 28% 100%);
  border-radius: 0;
  border: 2px solid rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(28, 109, 208, 0.08);
}

.drink-glass-frame.shape-wine::before {
  height: 112px;
}

.drink-glass-frame.shape-wine::after {
  width: 94px;
}

.drink-glass.shape-wine {
  height: 310px;
  width: min(216px, 100%);
  clip-path: polygon(18% 0, 82% 0, 92% 16%, 88% 40%, 80% 66%, 68% 86%, 50% 100%, 32% 86%, 20% 66%, 12% 40%, 8% 16%);
  border-radius: 0;
  border: 2px solid rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(28, 109, 208, 0.08);
}

.drink-layer {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -10px 16px rgba(0, 0, 0, 0.06);
}

.drink-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.08) 24%, rgba(255, 255, 255, 0) 54%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.02) 28%, rgba(0, 0, 0, 0.08) 100%);
  pointer-events: none;
}

.drink-layer-label {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  position: relative;
  z-index: 1;
}

.drink-side-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.drink-legend {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 250, 251, 0.95) 100%);
  border: 1px solid rgba(28, 109, 208, 0.12);
}

.drink-legend-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.drink-legend-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(23, 49, 60, 0.16);
}

.drink-legend-item strong,
.drink-legend-item p {
  margin: 0;
}

.drink-legend-item p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.drink-layer-builder {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(107, 67, 45, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.74);
}

.drink-layer-rows {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.drink-layer-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 96px 84px auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(107, 67, 45, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.drink-layer-row label {
  margin-top: 0;
}

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

.drink-layer-total {
  margin-top: 12px;
  font-weight: 800;
}

.drink-layer-total.is-valid {
  color: #315b2e;
}

.drink-layer-total.is-invalid {
  color: #8e211a;
}

.drink-layer-raw {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dashboard-links {
  margin-top: 20px;
}

.dashboard-stats,
.dashboard-panels,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.dashboard-panels {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card h3,
.pricing-card h3 {
  margin: 10px 0 8px;
  font-size: clamp(2rem, 3vw, 3rem);
}

.dashboard-panel {
  display: grid;
  gap: 18px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
}

.section-heading h3 {
  margin-bottom: 0;
}

.section-heading a {
  color: var(--brand-deep);
  font-weight: 700;
  text-decoration: none;
}

.section-heading a:hover {
  text-decoration: underline;
}

.mini-list {
  display: grid;
  gap: 14px;
}

.mini-list-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(28, 109, 208, 0.14);
}

.mini-list-item h4,
.mini-empty {
  margin: 0 0 8px;
}

.mini-list-item p,
.mini-empty {
  color: var(--muted);
  line-height: 1.6;
}

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

.admin-seed-sync {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  justify-items: start;
}

.admin-seed-sync .mini-empty {
  margin: 0;
}

.admin-metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-search-row input {
  width: 100%;
}

.admin-generator-panel {
  grid-column: span 2;
}

.admin-generator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.admin-generator-grid textarea {
  min-height: 176px;
  resize: vertical;
}

.admin-generator-panel .action-stack {
  gap: 14px;
}

.admin-generator-panel .action-stack > div {
  display: grid;
  gap: 8px;
}

.admin-generator-panel .action-stack select {
  width: 100%;
}

.admin-generator-actions {
  margin-top: 6px;
  align-items: stretch;
}

.admin-generator-actions .btn {
  min-width: 150px;
}

.admin-generator-panel .mini-empty {
  margin: 2px 0 0;
}

.generated-recipe-card {
  display: grid;
  gap: 10px;
}

.generated-recipe-card h4 {
  margin: 0;
}

.generated-recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.generated-recipe-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(28, 109, 208, 0.12);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1;
}

.generated-recipe-card pre {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(28, 109, 208, 0.1);
  color: var(--muted);
  white-space: pre-wrap;
  font: inherit;
  line-height: 1.55;
}

.action-stack {
  display: grid;
  gap: 12px;
  align-content: start;
}

.pricing-page {
  display: grid;
  gap: 20px;
}

.pricing-card {
  display: grid;
  gap: 12px;
}

.pricing-card-featured {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 252, 240, 0.98) 0%, rgba(230, 247, 249, 0.94) 100%);
}

.price-unit {
  font-size: 1rem;
  color: var(--muted);
}

.feature-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  line-height: 1.8;
}

.link-card {
  text-decoration: none;
}

.link-card:hover {
  transform: translateY(-2px);
}

label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 700;
}

.field-help {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(28, 109, 208, 0.2);
  border-radius: 12px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(23, 182, 200, 0.22);
  border-color: rgba(23, 182, 200, 0.55);
}

textarea {
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffd36f 0%, var(--gold) 20%, var(--brand) 58%, var(--brand-deep) 100%);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(28, 109, 208, 0.22);
}

.btn:hover {
  filter: brightness(1.06) saturate(1.04);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

.btn-small {
  margin-top: 0;
  padding: 10px 14px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--brand-deep);
  border: 1px solid rgba(28, 109, 208, 0.18);
  box-shadow: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.9);
  filter: none;
}

.status-card p {
  margin: 0;
}

.recipe-list {
  display: grid;
  gap: 12px;
}

.recipe-list-header {
  margin: 6px 0 10px;
}

.recipe-list-header h3 {
  margin: 0 0 6px;
}

.recipe-list-header .lead {
  margin: 0;
}

.recipe-card {
  overflow-wrap: anywhere;
}

.recipe-list-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  text-align: left;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(28, 109, 208, 0.16);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.recipe-list-row:hover {
  border-color: rgba(28, 109, 208, 0.28);
  box-shadow: 0 12px 28px rgba(20, 56, 102, 0.08);
  transform: translateY(-1px);
}

.recipe-list-row-main h4 {
  margin: 0;
}

.recipe-list-row-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 0.96rem;
}

.recipe-detail-card {
  margin-top: 12px;
}

.recipe-detail-body {
  overflow-wrap: anywhere;
}

.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(16, 33, 54, 0.48);
  backdrop-filter: blur(6px);
}

.modal-card {
  width: min(100%, 840px);
  max-height: min(85vh, 920px);
  overflow: auto;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 250, 241, 0.98);
  border: 1px solid rgba(28, 109, 208, 0.14);
  box-shadow: 0 24px 80px rgba(20, 56, 102, 0.22);
}

.recipe-modal-card .section-heading {
  margin-bottom: 18px;
}

.recipe-meta {
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.recipe-subtle {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.is-hidden {
  display: none;
}

#answer,
#recipe-message,
#auth-message,
#welcome-text {
  line-height: 1.7;
  white-space: pre-wrap;
}

@media (max-width: 980px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .admin-generator-panel {
    grid-column: span 1;
  }

  .admin-generator-grid {
    grid-template-columns: 1fr;
  }

  .visual-panel {
    min-height: 0;
    margin: 20px 20px 0;
    padding-top: 0;
  }

  .chef-image {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    width: min(100%, 220px);
    max-height: 300px;
    margin: 0 auto;
    transform: none;
  }

  .visual-content {
    position: relative;
    top: auto;
    left: auto;
    width: min(100%, 320px);
    margin: 16px auto 0;
    transform: none;
    text-align: center;
  }

  .content-panel {
    padding: 20px;
  }

}

@media (max-width: 768px) {
  .auth-grid,
  .dashboard-links,
  .dashboard-stats,
  .dashboard-panels,
  .form-grid,
  .assistant-layout,
  .drinks-layout,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

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

  .assistant-sidebar,
  .chat-card {
    min-height: 0;
  }

  .public-filter-grid {
    grid-template-columns: 1fr;
  }

  .ask-chef-paths {
    grid-template-columns: 1fr;
  }

  .drink-visual-shell {
    grid-template-columns: 1fr;
  }

  .drinks-picker-grid {
    grid-template-columns: 1fr;
  }

  .drink-studio-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .drink-studio-actions {
    justify-content: stretch;
  }

  .drink-studio-actions .btn {
    flex: 1 1 160px;
  }

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

  .fix-dish-grid {
    grid-template-columns: 1fr;
  }

  .chat-messages {
    min-height: 360px;
    max-height: none;
    padding: 16px;
  }

  .chat-message {
    max-width: 100%;
  }

  .drink-glass {
    height: 360px;
  }

  .chat-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .recipe-list-row-meta {
    justify-content: flex-start;
  }

  .chat-button-row {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }


  .hero-actions {
    flex-direction: column;
  }

  .visual-panel {
    margin: 16px 16px 0;
  }

  .visual-content {
    left: 20px;
    right: 20px;
    bottom: 24px;
  }

  .topbar,
  .site-header,
  .content-card,
  .card {
    padding: 18px;
    border-radius: 18px;
  }

  .container {
    width: min(100% - 24px, 1000px);
  }

}

/* Final shared food theme overrides */
:root {
  --bg: #eef9fc;
  --panel: rgba(255, 251, 242, 0.95);
  --panel-strong: #fffaf0;
  --text: #251915;
  --ink: #251915;
  --muted: #746157;
  --line: rgba(107, 67, 45, 0.17);
  --brand: #bf2f24;
  --brand-deep: #7f201b;
  --gold: #d99b2b;
  --gold-deep: #a76720;
  --shadow: 0 18px 46px rgba(74, 39, 25, 0.14);
  --radius-xl: 8px;
  --radius-lg: 8px;
  --radius-md: 8px;
}

body {
  background:
    linear-gradient(90deg, rgba(15, 156, 171, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(21, 95, 169, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 8% 8%, rgba(196, 234, 244, 0.42), transparent 26%),
    radial-gradient(circle at 92% 18%, rgba(223, 232, 207, 0.24), transparent 25%),
    linear-gradient(135deg, #f8fdff 0%, #eaf7fb 50%, #edf9fc 100%);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  color: var(--text);
}

.site-header,
.topbar,
.content-card,
.card {
  border-color: rgba(107, 67, 45, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 251, 242, 0.98), rgba(252, 242, 225, 0.95));
  box-shadow: var(--shadow);
}

.site-header {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
}

.container {
  width: min(1180px, calc(100% - 32px));
}

.page-shell {
  grid-template-columns: minmax(240px, 28vw) minmax(0, 1fr);
}

.visual-panel {
  min-height: calc(100vh - 56px);
  margin: 28px 0 28px 28px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(37, 25, 21, 0.04), rgba(127, 32, 27, 0.14)),
    #fff3dd;
}

.chef-image {
  top: 30px;
  width: min(100% - 48px, 360px);
  max-height: 470px;
  border: 3px solid rgba(255, 250, 240, 0.92);
  border-radius: 8px;
  object-fit: cover;
  object-position: center 16%;
}

.brand-portrait {
  border: 3px solid rgba(255, 250, 240, 0.92);
  border-radius: 50%;
}

.visual-content {
  top: 530px;
  width: min(100% - 48px, 360px);
  padding: 18px;
  border-left: 5px solid var(--brand);
  background: rgba(255, 251, 242, 0.84);
}

.mini-label,
.eyebrow,
.section-heading a {
  color: var(--brand-deep);
}

.topnav a,
.site-header a,
.btn,
input,
textarea,
select,
.recipe-list-row,
.mini-list-item,
.modal-card,
.generated-recipe-card pre,
.generated-recipe-badge {
  border-radius: 8px;
}

.topnav a:hover,
.site-header a:hover {
  color: var(--brand-deep);
  background: rgba(191, 47, 36, 0.1);
}

.landing-hero,
.login-hero,
.dashboard-hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.landing-hero::before,
.pricing-page .landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.96) 0%, rgba(255, 250, 240, 0.82) 48%, rgba(37, 25, 21, 0.18) 100%),
    url("../assets/images/chef-hero.png") right center / auto 120% no-repeat;
  pointer-events: none;
}

.landing-hero > *,
.login-hero > *,
.dashboard-hero > * {
  position: relative;
  z-index: 1;
}

.login-hero,
.dashboard-hero {
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  align-items: stretch;
  justify-items: stretch;
  gap: 0;
  padding: 0;
  text-align: left;
}

.login-hero-image,
.dashboard-hero-image {
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 360px;
  object-fit: cover;
  object-position: center 15%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.login-hero-copy,
.dashboard-hero-copy {
  display: grid;
  align-content: center;
  max-width: 620px;
  padding: 38px;
}

.landing-hero h2,
.login-hero h2,
.dashboard-hero h2,
.content-card h2,
.card h2,
.link-card h3,
.stat-card h3,
.dashboard-panel h3,
.pricing-card h3 {
  color: #251915;
  letter-spacing: 0;
}

.dashboard-links {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.link-card,
.stat-card,
.pricing-card,
.recipe-list-row,
.mini-list-item,
.recipe-context-card,
.session-resume-card {
  position: relative;
  overflow: hidden;
}

.link-card::before,
.stat-card::before,
.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--accent, var(--brand));
}

.link-card-submit,
.stat-card:nth-child(1) {
  --accent: #bf2f24;
}

.link-card-recipes,
.stat-card:nth-child(2) {
  --accent: #426d3d;
}

.link-card-drinks,
.stat-card:nth-child(3) {
  --accent: #176f75;
}

.link-card-ask {
  --accent: #d99b2b;
}

.link-card-fix {
  --accent: #7d4d2f;
}

.link-card-tools {
  --accent: #6f7d35;
}

.link-card-billing {
  --accent: #7f201b;
}

.link-card {
  min-height: 162px;
}

.link-card:hover,
.recipe-list-row:hover {
  border-color: rgba(191, 47, 36, 0.28);
  box-shadow: 0 18px 38px rgba(74, 39, 25, 0.16);
  transform: translateY(-2px);
}

.dashboard-panels {
  grid-template-columns: 1.25fr 1fr 1fr;
}

.section-heading {
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(107, 67, 45, 0.12);
}

.mini-list-item,
.recipe-list-row,
.generated-recipe-card pre,
.generated-recipe-badge,
.drink-legend-item {
  border-color: rgba(107, 67, 45, 0.13);
  background: rgba(255, 248, 236, 0.88);
}

.recipe-context-card,
.session-resume-card {
  border-color: rgba(107, 67, 45, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 248, 236, 0.95), rgba(223, 232, 207, 0.56));
}

input,
textarea,
select {
  border-color: rgba(107, 67, 45, 0.22);
  background: rgba(255, 252, 246, 0.96);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(191, 47, 36, 0.18);
  border-color: rgba(191, 47, 36, 0.46);
}

.btn {
  background: linear-gradient(135deg, #7f201b 0%, #bf2f24 46%, #d99b2b 100%);
  box-shadow: 0 12px 24px rgba(127, 32, 27, 0.22);
}

.btn-secondary {
  color: var(--brand-deep);
  background: rgba(255, 250, 240, 0.88);
  border: 1px solid rgba(107, 67, 45, 0.18);
  box-shadow: none;
}

.chat-messages {
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.88), rgba(255, 248, 236, 0.58));
}

.chat-message-user {
  background: #bf2f24;
}

.modal-backdrop {
  background: rgba(37, 25, 21, 0.54);
}

.modal-card {
  border-color: rgba(107, 67, 45, 0.16);
  background: rgba(255, 250, 240, 0.98);
  box-shadow: 0 24px 80px rgba(37, 25, 21, 0.26);
}

@media (max-width: 980px) {
  .visual-panel {
    min-height: 0;
  }

  .chef-image {
    width: min(100%, 260px);
    max-height: 320px;
  }

  .visual-content {
    top: auto;
  }

  .login-hero,
  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .login-hero-copy,
  .dashboard-hero-copy {
    max-width: none;
    padding: 30px;
  }

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

@media (max-width: 768px) {
  .site-header,
  .container {
    width: min(100% - 24px, 1000px);
  }

  .landing-hero,
  .login-hero,
  .dashboard-hero {
    min-height: 0;
  }

  .landing-hero::before,
  .pricing-page .landing-hero::before {
    background:
      linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(255, 250, 240, 0.86)),
      url("../assets/images/chef-hero.png") center top / 100% auto no-repeat;
  }

  .landing-hero {
    padding-top: 240px;
  }

  .login-hero-image,
  .dashboard-hero-image {
    min-height: 260px;
  }

  .login-hero-copy,
  .dashboard-hero-copy {
    padding: 24px 18px 28px;
  }

  .dashboard-links,
  .dashboard-stats,
  .dashboard-panels {
    grid-template-columns: 1fr;
  }

  .link-card {
    min-height: 138px;
  }
}

/* True final cool-blue pop theme override. Keep this at the end of the file. */
:root {
  --bg: #eef9ff;
  --panel: rgba(248, 253, 255, 0.96);
  --panel-strong: #ffffff;
  --text: #102136;
  --ink: #102136;
  --muted: #4c6478;
  --line: rgba(36, 121, 176, 0.2);
  --brand: #0877ff;
  --brand-deep: #083f91;
  --gold: #ff3ea5;
  --gold-deep: #c11478;
  --basil: #08a88a;
  --sage: #dff7ff;
  --cream: #f8fdff;
  --shadow: 0 20px 50px rgba(9, 62, 125, 0.14);
}

body {
  background:
    linear-gradient(90deg, rgba(8, 119, 255, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(8, 168, 138, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 8% 10%, rgba(95, 210, 255, 0.36), transparent 26%),
    radial-gradient(circle at 92% 18%, rgba(255, 62, 165, 0.14), transparent 24%),
    linear-gradient(135deg, #fbfeff 0%, #ebf8ff 46%, #e7fbff 100%) !important;
  color: var(--text);
}

body::before {
  background:
    linear-gradient(180deg, rgba(251, 254, 255, 0.7), rgba(251, 254, 255, 0.14)),
    radial-gradient(circle at 50% 100%, rgba(8, 119, 255, 0.1), transparent 44%) !important;
}

.topbar,
.site-header,
.content-card,
.card,
.dashboard-panel,
.pricing-card,
.link-card,
.stat-card,
.mini-list-item,
.recipe-list-row,
.generated-recipe-card,
.recipe-context-card,
.session-resume-card,
.pantry-usage-card,
.modal-card {
  border-color: rgba(36, 121, 176, 0.16) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 249, 255, 0.94)) !important;
  box-shadow: var(--shadow) !important;
}

.visual-panel {
  background:
    linear-gradient(180deg, rgba(8, 119, 255, 0.05), rgba(8, 168, 138, 0.1)),
    #eaf8ff !important;
}

.visual-panel::before,
.section-heading,
.generated-recipe-card pre,
.generated-recipe-badge,
.drink-legend-item {
  border-color: rgba(36, 121, 176, 0.16) !important;
}

.visual-content {
  border-left-color: var(--brand) !important;
  background: rgba(248, 253, 255, 0.86) !important;
}

.landing-hero h2,
.login-hero h2,
.dashboard-hero h2,
.content-card h2,
.card h2,
.link-card h3,
.stat-card h3,
.dashboard-panel h3,
.pricing-card h3,
.visual-content h1 {
  color: var(--ink) !important;
}

.mini-label,
.eyebrow,
.topnav a:hover,
.site-header a:hover {
  color: var(--brand-deep) !important;
}

.topnav a:hover,
.site-header a:hover {
  background: rgba(8, 119, 255, 0.1) !important;
}

.link-card-submit,
.stat-card:nth-child(1) {
  --accent: #0877ff;
}

.link-card-recipes,
.stat-card:nth-child(2) {
  --accent: #08a88a;
}

.link-card-drinks,
.stat-card:nth-child(3) {
  --accent: #00a7c7;
}

.link-card-ask {
  --accent: #ff3ea5;
}

.link-card-fix {
  --accent: #7b4dff;
}

.link-card-tools {
  --accent: #22c55e;
}

.link-card-billing {
  --accent: #005bd8;
}

.link-card:hover,
.recipe-list-row:hover {
  border-color: rgba(8, 119, 255, 0.32) !important;
  box-shadow: 0 18px 38px rgba(8, 119, 255, 0.16) !important;
}

input,
textarea,
select {
  border-color: rgba(36, 121, 176, 0.24) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(8, 119, 255, 0.2) !important;
  border-color: rgba(8, 119, 255, 0.5) !important;
}

.btn {
  background: linear-gradient(135deg, #083f91 0%, #0877ff 48%, #00c2ff 100%) !important;
  box-shadow: 0 14px 28px rgba(8, 119, 255, 0.24) !important;
}

.btn-secondary {
  color: var(--brand-deep) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(36, 121, 176, 0.22) !important;
}

.chat-messages {
  background:
    linear-gradient(180deg, rgba(239, 250, 255, 0.9), rgba(248, 253, 255, 0.66)) !important;
}

.chat-message-user {
  background: #0877ff !important;
}

.chat-message-assistant {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(223, 247, 255, 0.9)) !important;
}

.modal-backdrop {
  background: rgba(10, 28, 50, 0.54) !important;
}

.voice-autoplay-button {
  border-color: rgba(8, 119, 255, 0.62) !important;
  background: linear-gradient(135deg, rgba(239, 250, 255, 0.98), rgba(223, 247, 255, 0.98)) !important;
  box-shadow: 0 18px 36px rgba(8, 119, 255, 0.14) !important;
}

.voice-autoplay-button-mark {
  border-color: var(--brand-deep) !important;
  color: var(--brand-deep) !important;
}

.voice-autoplay-button strong {
  background: #ff3ea5 !important;
}

.voice-autoplay-button.is-on,
.voice-control-panel {
  border-color: rgba(8, 168, 138, 0.42) !important;
  background: linear-gradient(135deg, rgba(232, 255, 250, 0.98), rgba(239, 250, 255, 0.96)) !important;
}

.voice-control-panel {
  border-left-color: #08a88a !important;
}

.voice-control-panel.is-listening,
.voice-talk-btn.is-listening,
.voice-wake-toggle.is-listening {
  border-color: rgba(255, 62, 165, 0.7) !important;
  background: linear-gradient(135deg, #7b4dff 0%, #0877ff 48%, #ff3ea5 100%) !important;
  color: #fff !important;
  box-shadow: 0 0 0 4px rgba(8, 119, 255, 0.16), 0 16px 32px rgba(8, 119, 255, 0.24) !important;
}

.voice-control-panel.heard-wake-word {
  border-color: rgba(34, 197, 94, 0.72) !important;
  border-left-color: #22c55e !important;
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(223, 247, 255, 0.94)) !important;
}

.voice-heard-mark {
  border-color: rgba(34, 197, 94, 0.88) !important;
  background: #22c55e !important;
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.28) !important;
}

.voice-autoplay-button.is-on .voice-autoplay-button-mark {
  background: var(--brand-deep) !important;
  color: #fff !important;
}

