  /* ==============================
   小白板纪念册 · Design System
   Quiet family album direction
   ============================== */

:root {
  color-scheme: light only;

  /* Garden defaults — also re-asserted under [data-theme="garden"] below */
  --album-bg:       #FBF5E8;
  --album-card:     #FFFDF8;
  --album-accent:   #4A7C59;
  --album-warm:     #FFE4A8;
  --album-warm-ink: #B6731A;
  --album-line:     #E8DFCB;

  --ink:        #2F261F;
  --muted:      #7C6A5A;
  --line:       var(--album-line);
  --paper:      var(--album-bg);
  --surface:    var(--album-card);

  --primary:        var(--album-accent);
  --primary-hover:  #3B6648;
  --primary-subtle: #DDEBE0;
  --primary-ring:   rgba(74, 124, 89, 0.22);

  --sky:    #537D8D;
  --garden: #637C63;
  --warm:   #C86F2D;
  --rose:   #B45350;

  --shadow-sm: 0 1px 2px rgba(47, 38, 31, 0.06);
  --shadow-md: 0 10px 24px rgba(64, 42, 24, 0.08);
  --shadow-lg: 0 18px 36px rgba(64, 42, 24, 0.10);

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 8px;
  --radius-full: 9999px;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;

  --font-heading: 'Songti SC', 'STSong', 'Noto Serif CJK SC', Georgia, serif;
  --font-body:    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono:    'SF Mono', 'Fira Code', monospace;
}

[data-theme="garden"] {
  --album-bg:       #FBF5E8;
  --album-card:     #FFFDF8;
  --album-accent:   #4A7C59;
  --album-warm:     #FFE4A8;
  --album-warm-ink: #B6731A;
  --album-line:     #E8DFCB;

  --line          : var(--album-line);
  --paper         : var(--album-bg);
  --surface       : var(--album-card);
  --primary       : var(--album-accent);
  --primary-hover : #3B6648;
  --primary-subtle: #DDEBE0;
  --primary-ring  : rgba(74, 124, 89, 0.22);
}

[data-theme="frosting"] {
  --album-bg:       #F7EFE6;
  --album-card:     #FFFDF8;
  --album-accent:   #C97287;
  --album-warm:     #FFD9C2;
  --album-warm-ink: #B05A2A;
  --album-line:     #ECDCC8;

  --line:           var(--album-line);
  --paper:          var(--album-bg);
  --surface:        var(--album-card);
  --primary:        var(--album-accent);
  --primary-hover:  #A85770;
  --primary-subtle: #F6DDE3;
  --primary-ring:   rgba(201, 114, 135, 0.22);
}

/* ---- reset & base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background:
    linear-gradient(90deg, rgba(47, 38, 31, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(47, 38, 31, 0.02) 1px, transparent 1px),
    var(--album-bg);
  background-size: 28px 28px;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* ---- shell ---- */
.app-shell {
  width: min(100%, calc(100% - 32px));
  max-width: 1040px;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 0 calc(40px + env(safe-area-inset-bottom));
}

/* ---- top bar ---- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.topbar h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
}

/* ---- eyebrow ---- */
.eyebrow {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.topbar .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 249, 238, 0.86);
  border: 1px solid rgba(216, 198, 177, 0.8);
}

/* ---- headings ---- */
h2 {
  margin-top: 0;
  margin-bottom: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
}

h3 {
  margin-top: 0;
  margin-bottom: var(--space-xs);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

p {
  margin-top: 0;
  line-height: 1.6;
}

/* ---- buttons ---- */
button {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.icon-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  white-space: nowrap;
}

.icon-button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.icon-button:active,
.primary-button:active,
.secondary-button:active {
  transform: translateY(0);
}

.icon-button:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 20px;
  border-radius: var(--radius-full);
}

.icon-button:hover {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.primary-button {
  min-height: 44px;
  padding: 10px 22px;
  border-color: var(--primary);
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 8px 18px rgba(200, 111, 45, 0.20);
}

.primary-button:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 10px 22px rgba(168, 85, 30, 0.22);
}

.secondary-button {
  min-height: 44px;
  padding: 10px 20px;
  border-color: var(--line);
  background: rgba(255, 253, 248, 0.72);
  color: var(--ink);
}

.secondary-button:hover {
  border-color: var(--muted);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

/* ---- panels ---- */
.today-panel,
.workspace,
.timeline {
  margin-top: var(--space-md);
}

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

.panel + .panel {
  margin-top: var(--space-md);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.panel-heading p {
  margin-bottom: 0;
}

.ritual-panel {
  background: var(--album-bg);
  position: relative;
  overflow: hidden;
}

.ritual-panel::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(138, 111, 86, 0.18);
  pointer-events: none;
}

/* ---- status pill ---- */
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid #D8C6B1;
  border-radius: var(--radius-full);
  padding: 4px 12px;
  background: #FAF4EA;
  color: #74563D;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* ---- flow row ---- */
.flow-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  position: relative;
  margin: 22px 0 4px;
  padding: 0;
  list-style: none;
}

.flow-row::before {
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  top: 50%;
  height: 2px;
  background: #DDCFBE;
  transform: translateY(-50%);
  pointer-events: none;
}

.flow-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid #DDCFBE;
  border-radius: var(--radius-md);
  padding: 7px 12px;
  background: var(--album-card);
  color: #6E5A49;
  font-size: 14px;
  font-weight: 700;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.flow-label {
  min-width: 0;
}

.flow-index {
  position: relative;
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #D8C6B1;
  border-radius: var(--radius-full);
  background: #FAF4EA;
  color: #7C6A5A;
  font-size: 13px;
  line-height: 1;
}

.flow-step.completed {
  border-color: #D8C6B1;
  background: #FBF5EC;
}

.flow-step.completed .flow-index {
  border-color: #B9A48D;
  background: #EFE2D3;
  color: transparent;
}

.flow-step.completed .flow-index::before {
  content: "✓";
  position: absolute;
  color: #74563D;
  font-size: 14px;
}

.flow-step.active {
  border-color: var(--primary);
  background: #FFF8EF;
  color: var(--ink);
  box-shadow: 0 0 0 2px var(--primary-ring);
}

.flow-step.active .flow-index {
  border-color: var(--primary);
  background: var(--primary);
  color: #FFFFFF;
}

.flow-step.upcoming {
  color: #8A7A69;
}

/* ---- grid ---- */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

/* ---- form fields ---- */
.field {
  display: grid;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

/* ---- actions row ---- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* ---- hint text ---- */
.hint {
  margin: 0 0 var(--space-sm);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ---- recognition card ---- */
.recognition-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #FBF5EC;
  padding: var(--space-md);
  margin-top: var(--space-md);
}

.recognition-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 18px;
}

/* ---- checklist ---- */
.check-list {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.check-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: var(--space-sm);
  border: 1px solid #DDCFBE;
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: var(--space-sm);
  transition: box-shadow 200ms ease;
}

.check-row:focus-within {
  box-shadow: 0 0 0 3px var(--primary-ring);
}

.check-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--garden);
  cursor: pointer;
}

.check-row input[type="text"] {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 200ms ease;
}

.check-row input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

/* ---- errors ---- */
.error-box {
  border: 1px solid #FECACA;
  border-radius: var(--radius-md);
  background: #FEF2F2;
  color: #991B1B;
  padding: 12px 16px;
  margin-bottom: var(--space-md);
  font-size: 14px;
}

.error-box p {
  margin: 0;
}

.error-box p + p {
  margin-top: var(--space-xs);
}

/* ---- upload status ---- */
.upload-status {
  border: 1.5px dashed #D9C9B7;
  border-radius: var(--radius-md);
  padding: 12px;
  background: var(--surface);
  margin-bottom: var(--space-md);
  transition: border-color 200ms ease, background 200ms ease;
}

.upload-status.uploading {
  border-color: var(--primary);
  border-style: solid;
  background: var(--primary-subtle);
}

.upload-status.failed {
  border-color: var(--rose);
  border-style: solid;
  background: #FEF2F2;
}

.photo-preview,
.card-photo,
.record-photo {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.photo-preview {
  max-height: 180px;
  margin-bottom: var(--space-sm);
}

/* ---- illustration options ---- */
.illustration-options {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.illustration-option {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 80px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.illustration-option:hover {
  border-color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.illustration-option strong {
  font-family: var(--font-heading);
  font-weight: 700;
}

.illustration-option span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.illustration-option.selected {
  border-color: var(--primary);
  background: var(--primary-subtle);
  box-shadow: 0 0 0 2px var(--primary-ring);
}

/* ---- memory card ---- */
.memory-card {
  display: grid;
  gap: var(--space-sm);
  min-width: 0;
  border: 1px solid #D8C6B1;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  background: var(--album-card);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow-wrap: anywhere;
}

.memory-card.sky {
  border-color: #B8CED2;
  background: linear-gradient(180deg, #F7FBFA 0%, var(--album-card) 100%);
}

.memory-card.garden {
  border-color: #C7D2BB;
  background: linear-gradient(180deg, #F8FAF3 0%, var(--album-card) 100%);
}

.memory-card.warm {
  border-color: #E1C7A9;
  background: linear-gradient(180deg, #FFF8EF 0%, var(--album-card) 100%);
}

.card-art {
  display: grid;
  gap: var(--space-sm);
  min-height: 160px;
  border: 1px solid rgba(138, 111, 86, 0.18);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  background:
    linear-gradient(135deg, rgba(83, 125, 141, 0.12), rgba(99, 124, 99, 0.10)),
    #FFF9EE;
  align-content: end;
}

.card-photo {
  height: 100%;
  min-height: 160px;
}

.card-art strong {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
}

.card-art span,
.card-date,
.photo-chip,
.card-note {
  line-height: 1.5;
}

.card-date {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.photo-chip {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #E8CC9B;
  border-radius: var(--radius-full);
  padding: 4px 10px;
  background: #FFF6E6;
  color: #87552B;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.card-note {
  border-left: 3px solid #D8C6B1;
  margin: 0;
  padding-left: 12px;
  color: var(--muted);
  font-style: italic;
}

/* ---- timeline ---- */
.record-list {
  display: grid;
  gap: var(--space-md);
}

.record-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-md);
  align-items: stretch;
  border: 1px solid #E2DCD3;
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  background: var(--surface);
  transition: box-shadow 200ms ease;
}

.record-item:hover {
  box-shadow: var(--shadow-sm);
}

.record-item h3 {
  margin-bottom: var(--space-xs);
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.record-item p {
  margin-bottom: var(--space-xs);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.record-item .hint {
  margin-bottom: 0;
}

.record-thumb {
  display: grid;
  min-height: 100px;
  border: 1px solid rgba(217, 119, 6, 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  background:
    linear-gradient(135deg, rgba(83, 125, 141, 0.12), rgba(99, 124, 99, 0.10)),
    #FFF9EE;
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.35;
  place-items: end start;
  overflow-wrap: anywhere;
}

.record-photo {
  height: 100%;
  min-height: 92px;
}

/* ---- animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel {
  animation: fadeInUp 350ms ease both;
}

.today-panel .panel {
  animation-delay: 0ms;
}

.workspace .panel {
  animation-delay: 50ms;
}

.timeline .panel {
  animation-delay: 100ms;
}

@media (prefers-reduced-motion: reduce) {
  .panel {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}

/* ---- responsive ---- */
@media (max-width: 760px) {
  .app-shell {
    width: calc(100% - 20px);
    padding-top: max(var(--space-md), env(safe-area-inset-top));
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
  }

  .topbar > div:first-child {
    min-width: 0;
  }

  .topbar h1 {
    font-size: clamp(22px, 5.4vw, 24px);
    line-height: 1.12;
    word-break: keep-all;
  }

  .topbar-actions {
    justify-content: flex-end;
    width: auto;
    flex-shrink: 0;
  }

  .eyebrow {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

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

  .panel-heading {
    display: grid;
  }

  .status-pill {
    width: fit-content;
    max-width: 100%;
    white-space: normal;
  }

  .flow-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-top: 18px;
  }

  .flow-row::before {
    left: 7%;
    right: 7%;
    top: 19px;
    display: block;
  }

  .flow-step {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
    min-height: 74px;
    padding: 6px 4px 8px;
    text-align: center;
    border-radius: 16px;
  }

  .flow-label {
    display: block;
    font-size: 0;
    line-height: 1.2;
  }

  .flow-label::before {
    content: attr(data-compact-label);
    display: block;
    font-size: 12px;
    white-space: nowrap;
  }

  .flow-step:last-child {
    grid-column: auto;
  }

  .recognition-card {
    padding: 14px;
  }

  .check-row {
    align-items: flex-start;
    grid-template-columns: 28px 1fr;
  }

  .photo-preview {
    max-height: 220px;
  }

  .theme-popover {
    min-width: min(240px, calc(100vw - 28px));
  }
}

@media (max-width: 620px) {
  .app-shell {
    width: calc(100% - 16px);
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }

  .panel {
    padding: var(--space-md);
    border-radius: 8px;
  }

  .topbar {
    gap: 12px;
    margin-bottom: 12px;
  }

  .topbar h1 {
    font-size: 19px;
  }

  .topbar-actions {
    justify-content: flex-end;
    gap: 8px;
  }

  .icon-button {
    width: 42px;
    height: 42px;
  }

  .topbar .eyebrow {
    max-width: 100%;
    padding: 0 7px;
    font-size: 11px;
  }

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

  .actions button {
    width: 100%;
  }

  .record-item {
    grid-template-columns: 1fr;
  }

  .record-thumb {
    min-height: 110px;
    padding: 12px;
  }

  .memory-card {
    padding: 14px;
  }

  .card-art,
  .card-photo {
    min-height: 140px;
  }

  .field input,
  .field textarea,
  .field select,
  .check-row input[type="text"] {
    font-size: 16px;
  }

  .photo-chip {
    font-size: 12px;
  }

  .theme-popover {
    right: 0;
    max-width: calc(100vw - 16px);
  }
}

@media (max-width: 420px) {
  .topbar {
    gap: 8px;
  }

  .topbar h1 {
    font-size: 18px;
  }

  .topbar .eyebrow {
    padding: 0 6px;
    font-size: 10px;
  }

  .flow-step {
    min-height: 70px;
    padding-inline: 2px;
    font-size: 13px;
  }

  .flow-index {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .flow-label::before {
    font-size: 11px;
  }

  .theme-popover-option {
    grid-template-columns: 24px 1fr 18px;
    gap: 10px;
    font-size: 13px;
  }

  .theme-swatch,
  .theme-picker-swatch {
    width: 20px;
    height: 20px;
  }

  .record-thumb {
    min-height: 80px;
  }
}

/* ---- theme picker ---- */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.theme-picker {
  position: relative;
}

.theme-picker-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.theme-picker-swatch {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--album-accent) 0 50%, var(--album-warm) 50% 100%);
  border: 1px solid rgba(47, 38, 31, 0.12);
  display: inline-block;
}

.theme-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--album-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-sm);
  z-index: 20;
}

.theme-popover[hidden] {
  display: none;
}

.theme-popover-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.theme-popover-option {
  display: grid;
  grid-template-columns: 28px 1fr 18px;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-sm);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  text-align: left;
}

.theme-popover-option:hover,
.theme-popover-option:focus-visible {
  background: var(--primary-subtle);
  outline: none;
}

.theme-popover-option[aria-checked="true"] .theme-popover-check {
  opacity: 1;
}

.theme-popover-check {
  opacity: 0;
  font-weight: 600;
  color: var(--primary);
}

.theme-swatch {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(47, 38, 31, 0.12);
}

.theme-swatch-garden {
  background: linear-gradient(90deg, #4A7C59 0 50%, #FFE4A8 50% 100%);
}

.theme-swatch-frosting {
  background: linear-gradient(90deg, #C97287 0 50%, #FFD9C2 50% 100%);
}
