:root {
  --ink: #24302b;
  --muted: #66736c;
  --paper: #fffaf2;
  --surface: #ffffff;
  --sage: #879f84;
  --sage-dark: #405d4a;
  --terracotta: #b95f3e;
  --stone: #e6e0d6;
  --sun: #e3ad43;
  --shadow: 0 20px 60px rgba(41, 46, 38, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 242, 0.92);
  border-bottom: 1px solid rgba(36, 48, 43, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: clamp(220px, 22vw, 276px);
  height: auto;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.header-search {
  display: flex;
  flex: 1 1 340px;
  max-width: 520px;
  align-items: center;
  gap: 8px;
}

.header-search input {
  width: 100%;
  min-width: 180px;
  height: 38px;
  border: 1px solid rgba(36, 48, 43, 0.16);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
}

.header-search button {
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: var(--sage-dark);
  color: #fffaf2;
  padding: 0 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.header-list {
  position: relative;
}

.header-list summary {
  list-style: none;
}

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

.header-list-summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  border: 1px solid rgba(36, 48, 43, 0.14);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  padding: 0 10px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.header-list-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 120;
  display: grid;
  gap: 10px;
  width: min(520px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 110px));
  overflow: hidden;
  border: 1px solid rgba(36, 48, 43, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 22px 60px rgba(41, 46, 38, 0.18);
  padding: 12px;
}

.header-list-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.header-list-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.header-list-bar span {
  border-radius: 999px;
  padding: 8px 10px;
  background: #f1eadf;
  color: var(--sage-dark);
  font-weight: 800;
}

.header-list-bar button,
.selected-list-small-button {
  border: 0;
  border-radius: 8px;
  background: var(--sage-dark);
  color: #fffaf2;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  padding: 8px 10px;
  white-space: nowrap;
}

.header-list-bar button:disabled,
.selected-list-small-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.header-list-items {
  display: grid;
  gap: 8px;
  max-height: min(500px, calc(100vh - 190px));
  overflow-y: auto;
  padding-right: 2px;
}

.header-list-menu .selected-list-row {
  grid-template-columns: 22px 72px minmax(0, 1fr) auto;
  column-gap: 10px;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

.header-list-menu .selected-product-image-button,
.header-list-menu .selected-product-placeholder {
  box-sizing: border-box;
  display: block;
  flex: 0 0 72px;
  width: 72px !important;
  min-width: 72px;
  max-width: 72px;
  height: 72px !important;
  min-height: 72px;
  max-height: 72px;
  padding: 0;
}

.header-list-menu .selected-product-image-button {
  border: 1px solid rgba(36, 48, 43, 0.12);
  background: #fffdf8;
  cursor: zoom-in;
  overflow: hidden;
}

.header-list-menu .selected-product-image-button img {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: 100% !important;
  max-height: 100%;
  object-fit: contain;
}

.header-list-menu .selected-list-copy {
  min-width: 0;
  overflow: hidden;
}

.header-list-menu .selected-list-copy strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
}

.header-list-menu .selected-list-copy small {
  font-size: 0.8rem;
}

.header-list-menu .selected-list-actions {
  min-width: 116px;
}

.selected-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.selected-list-small-button.danger {
  background: #fee2e2;
  color: #991b1b;
}

.header-list-bar button.danger {
  background: #fee2e2;
  color: #991b1b;
}

.site-toast {
  position: fixed;
  top: 92px;
  right: 24px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 48px));
  border-radius: 8px;
  background: var(--sage-dark);
  color: #fffaf2;
  box-shadow: 0 18px 44px rgba(41, 46, 38, 0.22);
  font-weight: 800;
  padding: 12px 14px;
}

.site-toast[hidden] {
  display: none;
}

.image-preview-dialog {
  width: min(760px, calc(100vw - 32px));
  border: 0;
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 24px 80px rgba(20, 24, 22, 0.32);
  padding: 18px;
}

.image-preview-dialog::backdrop {
  background: rgba(24, 30, 27, 0.48);
}

.image-preview-dialog img {
  display: block;
  width: 100%;
  max-height: min(720px, calc(100vh - 120px));
  object-fit: contain;
}

.popup-permission-dialog {
  width: min(520px, calc(100vw - 32px));
  border: 0;
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 24px 80px rgba(20, 24, 22, 0.32);
  padding: 0;
}

.popup-permission-dialog::backdrop {
  background: rgba(24, 30, 27, 0.48);
}

.popup-permission-body {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.popup-permission-body h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.18;
}

.popup-permission-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.popup-permission-body .popup-permission-instruction {
  border-left: 4px solid var(--sage-dark);
  background: #edf1ea;
  color: var(--ink);
  font-weight: 800;
  padding: 10px 12px;
}

.popup-permission-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 6px;
}

.popup-permission-actions button {
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.popup-permission-primary {
  background: var(--sage-dark);
  color: #fffaf2;
}

.popup-permission-secondary {
  background: #edf1ea;
  color: var(--ink);
}

.image-preview-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #fffaf2;
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(41, 46, 38, 0.16);
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.personal-list-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  border: 1px solid rgba(36, 48, 43, 0.14);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.personal-list-toggle strong {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--sage-dark);
  color: #fffaf2;
  font-size: 0.78rem;
}

.personal-list-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 14px;
  width: min(460px, 100vw);
  height: 100vh;
  padding: 22px;
  background: #fffdf8;
  border-left: 1px solid rgba(36, 48, 43, 0.12);
  box-shadow: -24px 0 60px rgba(41, 46, 38, 0.18);
  transform: translateX(105%);
  transition: transform 0.2s ease;
}

.personal-list-panel[aria-hidden="false"] {
  transform: translateX(0);
}

.personal-list-backdrop {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: none;
  background: rgba(36, 48, 43, 0.28);
}

.personal-list-open .personal-list-backdrop {
  display: block;
}

.personal-list-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.personal-list-header h2 {
  font-size: 1.8rem;
}

.personal-list-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: #edf1ea;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.personal-list-message,
.personal-list-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.personal-list-items {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
}

.personal-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  border: 1px solid rgba(36, 48, 43, 0.12);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.personal-list-item strong {
  display: block;
  color: var(--ink);
  line-height: 1.25;
}

.personal-list-item button {
  align-self: start;
  border: 0;
  border-radius: 999px;
  background: #f1eadf;
  color: var(--sage-dark);
  padding: 7px 10px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.personal-list-item ul {
  grid-column: 1 / -1;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.personal-list-type {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 6px;
  border-radius: 999px;
  background: #edf1ea;
  color: var(--sage-dark);
  padding: 4px 8px;
  font-size: 0.74rem;
  font-weight: 800;
}

.personal-list-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.market-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.market-picker span {
  font-weight: 700;
}

.market-picker select {
  min-width: 150px;
  height: 36px;
  border: 1px solid rgba(36, 48, 43, 0.18);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 70px));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 27, 23, 0.76), rgba(20, 27, 23, 0.26) 54%, rgba(20, 27, 23, 0.08));
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  padding: 0 0 clamp(56px, 10vh, 96px) clamp(18px, 6vw, 72px);
  color: #fffaf2;
}

.hero-content h1 {
  font-size: clamp(3.25rem, 8vw, 7.5rem);
}

.hero-copy {
  max-width: 650px;
  margin-top: 18px;
  color: rgba(255, 250, 242, 0.88);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--terracotta);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f5c66d;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.product-search-section {
  padding: clamp(22px, 4vw, 42px) clamp(18px, 4vw, 56px);
  background: #fffdf8;
  border-bottom: 1px solid rgba(36, 48, 43, 0.12);
}

.product-search-inner {
  display: grid;
  gap: 22px;
  max-width: 1500px;
  margin: 0 auto;
}

.product-search-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.product-search-panel,
.gift-idea-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(36, 48, 43, 0.12);
  border-radius: 8px;
  background: #fff;
  padding: clamp(16px, 2vw, 22px);
}

.product-search-heading,
.gift-idea-heading {
  display: grid;
  gap: 12px;
}

.product-search-heading h2 {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.product-search-heading p,
.gift-idea-heading p {
  max-width: 760px;
  color: #4d5a54;
  font-size: 1rem;
  line-height: 1.45;
}

.gift-idea-heading h3 {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.product-search-modal-button {
  min-width: 150px;
  white-space: nowrap;
}

.product-search-dialog {
  width: min(1040px, calc(100vw - 28px));
  max-height: min(88vh, 900px);
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 0;
}

.product-search-dialog::backdrop {
  background: rgba(21, 31, 27, 0.38);
}

.product-search-dialog-card {
  position: relative;
  display: grid;
  gap: 18px;
  max-height: min(88vh, 900px);
  overflow: auto;
  border: 1px solid rgba(36, 48, 43, 0.12);
  border-radius: 10px;
  background: #fffdf8;
  padding: clamp(20px, 4vw, 34px);
  box-shadow: 0 24px 70px rgba(25, 35, 31, 0.22);
}

.product-search-dialog .product-search-heading h2,
.product-search-dialog .gift-idea-heading h3 {
  max-width: 820px;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
}

.product-search-dialog .product-search-heading p,
.product-search-dialog .gift-idea-heading p {
  font-size: 1.08rem;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(36, 48, 43, 0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.product-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 880px;
}

.product-search-form input {
  min-height: 56px;
  border: 1px solid rgba(36, 48, 43, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 16px;
  font: inherit;
  font-size: 1.05rem;
}

.product-search-form button {
  min-width: 132px;
}

.product-search-summary {
  color: var(--sage-dark);
  font-weight: 800;
}

.gift-idea-form {
  display: grid;
  gap: 10px;
}

.gift-idea-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.gift-idea-form input,
.gift-idea-form textarea {
  width: 100%;
  border: 1px solid rgba(36, 48, 43, 0.18);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
  font-weight: 500;
}

.gift-idea-form textarea {
  min-height: 112px;
  resize: vertical;
}

.gift-idea-status {
  color: var(--sage-dark);
  font-weight: 800;
}

.gift-idea-preview {
  display: grid;
  gap: 9px;
  border-top: 1px solid rgba(36, 48, 43, 0.1);
  padding-top: 12px;
}

.gift-idea-preview h4 {
  margin: 0;
  font-size: 1.08rem;
}

.gift-idea-preview ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.gift-idea-admin-link {
  width: fit-content;
  border-radius: 999px;
  background: #edf1ea;
  color: var(--sage-dark);
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.product-search-results {
  min-height: 72px;
}

.product-search-empty {
  max-width: 620px;
  padding: 16px 0;
  color: var(--muted);
}

.product-search-levels {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 12px;
}

.product-search-level {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 280px;
  border: 1px solid rgba(36, 48, 43, 0.12);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.product-search-level-header {
  display: grid;
  gap: 6px;
}

.product-search-level-header h3 {
  font-size: 1.25rem;
}

.product-search-level-header span {
  width: fit-content;
  border-radius: 999px;
  background: #edf1ea;
  color: var(--sage-dark);
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 800;
}

.product-search-item {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(36, 48, 43, 0.1);
}

.product-search-item-title {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
}

.product-search-item p,
.product-search-level-empty {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.38;
}

.product-search-item-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-search-item-footer a {
  border-radius: 999px;
  background: #f1eadf;
  color: var(--sage-dark);
  padding: 5px 8px;
  font-size: 0.76rem;
  font-weight: 800;
}

.inline-list-button {
  width: fit-content;
  border: 0;
  border-radius: 999px;
  background: var(--sage-dark);
  color: #fffaf2;
  padding: 6px 9px;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-hero code {
  color: var(--sage-dark);
  font-weight: 800;
}

.admin-board {
  background: #fffdf8;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}

.admin-toolbar strong {
  display: block;
  font-size: 1.3rem;
}

.admin-proposal-list {
  display: grid;
  gap: 18px;
}

.admin-proposal-card {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(36, 48, 43, 0.12);
  border-radius: 8px;
  background: #fff;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow);
}

.admin-proposal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.admin-proposal-header h2 {
  margin-top: 8px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.admin-status-pill {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #edf1ea;
  color: var(--sage-dark);
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-status-pill.approved {
  background: #dbf6e7;
  color: #0a6b3d;
}

.admin-status-pill.rejected {
  background: #f6e0db;
  color: #8d2d19;
}

.admin-research {
  display: grid;
  gap: 6px;
  border-radius: 8px;
  background: #f8f4ec;
  padding: 12px;
}

.admin-kit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.admin-kit-grid details {
  border: 1px solid rgba(36, 48, 43, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  padding: 12px;
}

.admin-kit-grid summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.admin-kit-grid ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.admin-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
}

.admin-actions textarea {
  min-height: 44px;
  border: 1px solid rgba(36, 48, 43, 0.18);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  resize: vertical;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid rgba(36, 48, 43, 0.14);
  font-weight: 800;
}

.button.primary {
  background: var(--sun);
  color: #24302b;
  border-color: transparent;
}

.button.secondary {
  background: rgba(255, 250, 242, 0.16);
  color: #fffaf2;
  border-color: rgba(255, 250, 242, 0.34);
}

.value-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--stone);
}

.value-band article {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 28px clamp(18px, 4vw, 56px);
  background: #fffdf8;
}

.value-band strong {
  font-size: 1.12rem;
  color: var(--ink);
}

.value-band p {
  color: var(--muted);
  font-size: 0.98rem;
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 4vw, 56px);
}

.section.muted {
  background: #f3eee4;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading h2,
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.section-heading p:not(.eyebrow) {
  margin-top: 12px;
  font-size: 1.05rem;
}

.category-grid,
.theme-grid,
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.category-card,
.theme-card,
.workflow-grid > div,
.notice,
.kit-card {
  border: 1px solid rgba(36, 48, 43, 0.12);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.category-card,
.theme-card,
.workflow-grid > div,
.notice {
  padding: 22px;
}

.category-card img,
.theme-card img {
  width: calc(100% + 44px);
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: -22px -22px 18px;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid rgba(36, 48, 43, 0.1);
  background: #f2eadf;
}

.theme-card span,
.budget,
.meta-row span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #edf1ea;
  color: var(--sage-dark);
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 800;
}

.category-card h3,
.theme-card h3,
.theme-card h2 {
  margin-top: 16px;
  font-size: 1.35rem;
}

.category-card h3 {
  margin-top: 0;
}

.category-card p,
.theme-card p,
.workflow-grid p {
  margin-top: 10px;
}

.theme-groups {
  display: grid;
  gap: 34px;
}

.theme-group {
  display: grid;
  gap: 18px;
}

.theme-group-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(36, 48, 43, 0.12);
  border-radius: var(--radius);
  background: #fffdf8;
}

.theme-group-heading img {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 360px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  background: #f2eadf;
}

.theme-group-heading span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #edf1ea;
  color: var(--sage-dark);
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 800;
}

.theme-group-heading h3 {
  margin-top: 12px;
  font-size: clamp(1.7rem, 3vw, 3rem);
}

.theme-group-heading p {
  max-width: 760px;
  margin-top: 10px;
  font-size: 1rem;
}

.theme-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.theme-grid.compact .theme-card img {
  aspect-ratio: 4 / 3;
  height: auto;
}

.theme-grid.compact .theme-card h3 {
  font-size: 1.18rem;
}

.workflow-grid strong {
  display: block;
  font-size: 1.05rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 40px clamp(18px, 4vw, 56px);
  color: #fffaf2;
  background: #24302b;
}

.site-footer p {
  margin-top: 8px;
  color: rgba(255, 250, 242, 0.7);
}

.page-hero {
  padding: clamp(58px, 9vw, 118px) clamp(18px, 4vw, 56px) clamp(42px, 7vw, 88px);
  background: #fffdf8;
  border-bottom: 1px solid rgba(36, 48, 43, 0.12);
}

.page-hero.compact {
  min-height: 320px;
}

.page-hero.theme {
  background: linear-gradient(120deg, #fffdf8 0%, #f1ebe1 62%, #e3d3bf 100%);
}

.page-hero p:not(.eyebrow) {
  max-width: 780px;
  margin-top: 14px;
  font-size: 1.12rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.macro-hero,
.theme-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  padding: clamp(34px, 7vw, 82px) clamp(18px, 4vw, 56px);
  background: #fffdf8;
  border-bottom: 1px solid rgba(36, 48, 43, 0.12);
}

.macro-hero img,
.theme-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #f2eadf;
}

.hero-visual {
  margin: 0;
}

.macro-hero h1,
.theme-hero h1 {
  font-size: clamp(2.3rem, 5vw, 5rem);
}

.macro-hero p:not(.eyebrow),
.theme-hero p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 14px;
  font-size: 1.12rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.intro-grid h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.intro-grid p:not(.eyebrow) {
  margin-top: 12px;
}

.idea-story {
  background: #fffdf8;
}

.idea-story > div {
  max-width: 980px;
}

.idea-story .eyebrow {
  font-size: 0.92rem;
}

.idea-story h2 {
  max-width: 920px;
  font-size: clamp(2.4rem, 5vw, 5.1rem);
}

.idea-story p:not(.eyebrow) {
  max-width: 960px;
  margin-top: 18px;
  color: #4d5a54;
  font-size: clamp(1.28rem, 2vw, 1.72rem);
  line-height: 1.48;
}

.notice {
  border-left: 5px solid var(--terracotta);
}

.notice p {
  margin-top: 8px;
}

.kit-stack {
  display: grid;
  gap: 18px;
  background: #fffdf8;
}

.buying-guide {
  background: #f7efe2;
}

.kit-card {
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 10px clamp(18px, 3vw, 30px);
  align-items: start;
}

.kit-card.no-kit-image {
  grid-template-columns: 1fr;
}

.kit-image {
  grid-row: 1 / span 4;
  margin: 0;
}

.kit-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 8px;
  background: #f2eadf;
  border: 1px solid rgba(36, 48, 43, 0.1);
}

.kit-card h3 {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
}

.kit-card > p {
  max-width: 850px;
  margin-top: 10px;
}

.kit-meter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.kit-meter span {
  border-radius: 8px;
  background: #f1eadf;
  padding: 8px 10px;
  color: var(--sage-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.kit-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 0;
}

.kit-details div {
  padding: 14px;
  border-radius: 8px;
  background: #f8f4ec;
}

.kit-details dt {
  font-weight: 800;
}

.kit-details dd {
  margin: 6px 0 0;
  color: var(--muted);
}

.role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.role-list span {
  border: 1px solid rgba(36, 48, 43, 0.12);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  background: #fffdf8;
  font-size: 0.86rem;
}

.product-suggestions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.product-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  min-height: 94px;
  padding: 12px;
  border: 1px solid rgba(36, 48, 43, 0.12);
  border-radius: 8px;
  background: #fffdf8;
}

.product-order {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--sage-dark);
  color: #fffaf2;
  font-size: 0.82rem;
  font-weight: 800;
}

.product-row strong {
  display: block;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.25;
}

.product-row .inline-list-button {
  margin-top: 10px;
}

.product-row small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.35;
}

.kit-proposal-public {
  grid-column: 1 / -1;
  margin-top: 22px;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid rgba(36, 48, 43, 0.12);
  border-radius: 8px;
  background: #fffdf8;
}

.kit-proposal-heading {
  display: grid;
  gap: 6px;
  max-width: 980px;
}

.kit-proposal-heading h4 {
  font-size: clamp(1.18rem, 1.8vw, 1.55rem);
}

.kit-proposal-heading p:not(.eyebrow) {
  color: var(--muted);
}

.proposal-products {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.proposal-product-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(36, 48, 43, 0.1);
  border-radius: 8px;
  background: #f8f4ec;
}

.proposal-product-copy {
  min-width: 0;
}

.proposal-product-copy strong {
  display: block;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.3;
}

.proposal-product-copy small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.35;
}

.proposal-product-link {
  justify-self: end;
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  background: var(--sage-dark);
  color: #fffaf2;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.proposal-product-link:hover {
  background: #263a2f;
  color: #fffaf2;
}

.proposal-product-link.secondary {
  background: #e2d2ba;
  color: var(--sage-dark);
}

.proposal-product-link.secondary:hover {
  background: #d6c3a8;
  color: var(--sage-dark);
}

.alternatives-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.alternatives-toggle [data-alternatives-arrow] {
  font-size: 1rem;
  line-height: 1;
}

.proposal-product-actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 2;
  gap: 8px;
  align-items: center;
}

.proposal-product-alternatives {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  margin-top: 4px;
  padding: 10px;
  border: 1px dashed rgba(64, 93, 74, 0.28);
  border-radius: 8px;
  background: #fffdf8;
}

.proposal-product-alternatives[hidden] {
  display: none;
}

.proposal-product-choice {
  display: grid;
  grid-template-columns: 18px 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background: #f8f4ec;
}

.proposal-product-choice.current-choice {
  box-shadow: inset 0 0 0 2px rgba(64, 93, 74, 0.18);
}

.proposal-product-choice input {
  accent-color: var(--sage-dark);
}

.proposal-product-choice strong {
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.proposal-product-choice small {
  color: var(--muted);
  grid-column: 3 / -1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proposal-product-choice-image {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(36, 48, 43, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
}

.proposal-product-choice-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.selected-kit-list {
  background: #fffdf8;
}

.selected-list-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.selected-list-summary span {
  border-radius: 999px;
  padding: 9px 12px;
  background: #f1eadf;
  color: var(--sage-dark);
  font-weight: 800;
}

.selected-list-items {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.selected-list-empty {
  color: var(--muted);
}

.selected-list-row {
  display: grid;
  grid-template-columns: 24px 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(36, 48, 43, 0.12);
  border-radius: 8px;
  background: #f8f4ec;
}

.selected-list-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--sage-dark);
}

.selected-product-image,
.selected-product-image-button,
.selected-product-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 1px solid rgba(36, 48, 43, 0.12);
  background: #fffdf8;
}

.selected-product-image {
  object-fit: contain;
}

.selected-product-image-button {
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
}

.selected-product-image-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.selected-product-placeholder {
  display: block;
  background:
    linear-gradient(135deg, rgba(55, 89, 70, 0.1), rgba(196, 96, 62, 0.08)),
    #fffdf8;
}

.selected-list-copy {
  min-width: 0;
}

.selected-list-copy strong {
  display: block;
  color: var(--ink);
  line-height: 1.25;
}

.selected-list-copy small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.kit-card {
  display: block;
}

.kit-card-summary {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.kit-card-summary .kit-image {
  grid-row: auto;
  margin: 0;
}

.kit-card-summary .kit-image img {
  aspect-ratio: 4 / 3;
}

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

.kit-proposals-grid .kit-proposal-public {
  grid-column: auto;
  margin-top: 0;
}

.kit-proposal-heading {
  grid-template-columns: minmax(0, 1fr);
}

.kit-proposal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.kit-proposal-actions span {
  border-radius: 999px;
  padding: 8px 10px;
  background: #f1eadf;
  color: var(--sage-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.add-proposal-button {
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--sage-dark);
  color: #fffaf2;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.add-proposal-button.secondary {
  background: #efe7da;
  color: var(--sage-dark);
}

.add-proposal-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.kit-proposal-description {
  margin-top: 10px;
  color: var(--muted);
}

.kit-proposals-grid .proposal-product-row {
  grid-template-columns: 64px minmax(0, 1fr);
}

.proposal-product-media,
.product-image-fallback {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 1px solid rgba(36, 48, 43, 0.12);
  background: #fffdf8;
}

.proposal-product-media {
  display: block;
  overflow: hidden;
}

.product-image-button {
  border: 1px solid rgba(36, 48, 43, 0.12);
  background: #fffdf8;
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  cursor: zoom-in;
}

.proposal-product-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.product-image-fallback {
  display: block;
  background:
    linear-gradient(135deg, rgba(55, 89, 70, 0.1), rgba(196, 96, 62, 0.08)),
    #fffdf8;
}

.kit-proposals-grid .proposal-product-link {
  justify-self: start;
}

.role-table {
  overflow-x: auto;
  border: 1px solid rgba(36, 48, 43, 0.12);
  border-radius: 8px;
  background: #fffdf8;
}

.kit-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.checkout-page {
  min-height: 70vh;
}

.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.checkout-actions .button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.checkout-message {
  color: var(--muted);
  margin-bottom: 14px;
}

.checkout-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

.checkout-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(36, 48, 43, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: var(--shadow);
}

.checkout-item strong {
  display: block;
  line-height: 1.25;
}

.checkout-item p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .kit-card {
    grid-template-columns: 1fr;
  }

  .kit-image,
  .product-suggestions,
  .kit-actions {
    grid-column: auto;
  }

  .proposal-product-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .proposal-product-link {
    grid-column: 2;
    justify-self: start;
  }

  .kit-card-summary,
  .kit-proposals-grid,
  .selected-list-row {
    grid-template-columns: 1fr;
  }

  .selected-list-row {
    align-items: start;
  }

  .selected-product-image,
  .selected-product-placeholder {
    width: 84px;
    height: 84px;
  }

  .kit-proposals-grid .proposal-product-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .selected-list-row .proposal-product-link {
    grid-column: auto;
    justify-self: start;
  }

  .checkout-item {
    grid-template-columns: 1fr;
  }

  .checkout-item .button {
    width: 100%;
    justify-content: center;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(36, 48, 43, 0.1);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--sage-dark);
  font-size: 0.82rem;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

@media (max-width: 1120px) {
  .site-header {
    flex-wrap: wrap;
  }

  .header-search {
    order: 3;
    max-width: none;
    flex-basis: 100%;
  }

  .top-nav {
    margin-left: auto;
  }

  .header-list {
    order: 4;
  }

  .personal-list-toggle {
    order: 4;
  }

  .product-search-levels {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  }

  .product-search-tools {
    grid-template-columns: 1fr;
  }

  .product-search-panel,
  .gift-idea-panel {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header,
  .top-nav {
    align-items: flex-start;
  }

  .site-header {
    flex-direction: column;
  }

  .brand-logo {
    width: 210px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    padding-right: 18px;
  }

  .product-search-form,
  .value-band,
  .site-footer,
  .intro-grid,
  .macro-hero,
  .theme-hero,
  .kit-details {
    grid-template-columns: 1fr;
  }

  .top-nav {
    width: 100%;
    justify-content: space-between;
  }

  .header-list,
  .header-list-summary {
    width: 100%;
  }

  .header-list-summary {
    justify-content: center;
  }

  .header-list-menu {
    left: 0;
    right: auto;
    width: calc(100vw - 36px);
  }

  .header-list-bar,
  .selected-list-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .header-list-bar-actions {
    flex-direction: column;
    width: 100%;
  }

  .header-search {
    order: 0;
    width: 100%;
  }

  .header-search input {
    min-width: 0;
  }

  .personal-list-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .personal-list-panel {
    width: 100vw;
  }

  .personal-list-actions {
    grid-template-columns: 1fr;
  }

  .product-search-form button {
    width: 100%;
  }

  .product-search-dialog {
    width: calc(100vw - 18px);
  }

  .product-search-dialog-card {
    padding: 22px 16px;
  }
}
