/* Keep the saved theme id "mint" so existing rooms adopt the purple palette. */
body[data-theme="mint"] {
  --bg: #fbf8ff;
  --paper: #fff;
  --ink: #46345f;
  --muted: #7b668f;
  --line: #e9dff4;
  --green: #8660b9;
  --pale: #f1e7ff;
  --text-secondary: #735e89;
  --text-caption: #80699a;
  background: radial-gradient(ellipse at 100% 0, #f0e4ff 0, transparent 48%), var(--bg) !important;
}
body[data-theme="mint"] .sidebar { background: #f3edfb; }
body[data-theme="mint"] .brand-mark { color: #f1e5ff; background: #7953a7; }
body[data-theme="mint"] .brand small,
body[data-theme="mint"] .sidebar-label,
body[data-theme="mint"] .side-note,
body[data-theme="mint"] .sidebar-bottom { color: #7a638f; }
body[data-theme="mint"] .nav { color: #806d93; }
body[data-theme="mint"] .nav.active { background: #e7d9f7; color: #644189; }
body[data-theme="mint"] .nav:hover { background: #eee3fa; }
body[data-theme="mint"] .hero {
  background: radial-gradient(circle at 84% 25%, #fffaff 0, transparent 31%), linear-gradient(116deg, #eaddfa, #f0e6ff 56%, #e8e2ff);
  border: 1px solid #e1d1f5;
  box-shadow: 0 14px 40px #a88bc214;
}
body[data-theme="mint"] .hero .little-label { border-color: #d8c4ee; color: #806399; }
body[data-theme="mint"] .hero-heart,
body[data-theme="mint"] .tiny-star { color: #b092d2; }
body[data-theme="mint"] .hero-art svg { filter: hue-rotate(22deg) saturate(.8); }
.space-chip.mint.selected { background: #eee1fc; color: #75519c; border-color: #d8c1ef; }
.person-card.mint, .review-card.mint { --accent: #9670bc; --tint: #f0e5fc; border-color: #e0cef2; }
.person-card.mint { background: linear-gradient(135deg, #fff 48%, #f6efff); box-shadow: 0 8px 28px #9d77bc09; }
body[data-theme="mint"] .quick-note,
body[data-theme="mint"] .upload-zone { background: #f3ecfc; border-color: #ddcbed; }
body[data-theme="mint"] .quote-card { background: #eee7fa; }
body[data-theme="mint"] .quote-card label,
body[data-theme="mint"] .quote-card textarea { color: #7f6698; }
body[data-theme="mint"] .button { border-color: #ddcfeb; }
body[data-theme="mint"] .button:hover { background: #f6f0fc; }
body[data-theme="mint"] .button.primary:hover { background: #70489e; }
body[data-theme="mint"] .button.soft,
body[data-theme="mint"] .pill { background: #f0e6fc; color: #79529c; border-color: #e5d5f5; }
body[data-theme="mint"] .field { color: #705a86; }
body[data-theme="mint"] .field input,
body[data-theme="mint"] .field textarea,
body[data-theme="mint"] .field select { color: #4d3a66; background: #fdfbff; border-color: #e4d8f1; }
body[data-theme="mint"] .status-dot { background: #ad87cf; }
body[data-theme="mint"] .bank-tab.active { background: #eee1fb; border-color: #d8c0ee; color: #75519b; }
body[data-theme="mint"] .bank-source { background: #f5effd; border-color: #e5d5f4; }
body[data-theme="mint"] .bank-stats { color: #7b6490; }
body[data-theme="mint"] .bank-stats b { color: #78509f; }
body[data-theme="mint"] .bank-person { color: #775990; }
.celebration.mint { background: #4c326f70; }
.celebration.mint .reward-card { background: linear-gradient(145deg, #fffaff, #efe4ff 72%, #eae3ff); border-color: #fff8ff; box-shadow: 0 28px 100px #4325664d; }
.celebration.mint h2 { color: #78519d; }
.celebration.mint p { color: #7b658f; }
.celebration.mint .reward-tag { color: #8b64b0; background: #fff9; }
.celebration.mint .button { background: #9c76c5; border-color: #9c76c5; }
.celebration.mint .confetti i { color: #dbc1ff; }
.celebration.mint .confetti i:nth-child(2n) { color: #fff2ff; }
.celebration.mint .reward-art:has(.lay-photo-card) { height: auto; margin: 22px 0 25px; }
.lay-photo-card { position: relative; padding: 9px 9px 12px; background: #fff; border-radius: 5px; box-shadow: 0 12px 30px #9571b02b; transform: rotate(-3deg); width: min(245px, 100%); }
.lay-photo-card img { display: block; width: 100%; height: 255px; object-fit: contain; background: #f6f0fc; }
.lay-photo-caption { display: block; margin-top: 10px; color: #9675b0; font-size: 9px; letter-spacing: .04em; }
.lay-photo-star { position: absolute; right: -23px; top: -22px; font-size: 48px; color: #c19be0; text-shadow: 0 0 20px #fff; }
.reward-card > small { line-height: 1.8; }
.reward-card > small a, .lay-photo-credits a { text-decoration: underline; text-underline-offset: 3px; }
.reward-card.lay-photo-reward { max-height: calc(100dvh - 35px); overflow-y: auto; }
.lay-reward-library { border: 1px solid #e4d3f4; background: linear-gradient(135deg, #fff, #f6edff); padding: 20px; border-radius: 18px; margin: 14px 0 22px; }
.lay-reward-library h3 { color: #78529e; margin-top: 7px; font-size: 20px; }
.lay-reward-library > p { color: #82708e; font-size: 14px; margin: 7px 0 16px; }
.lay-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.lay-photo-grid figure { margin: 0; background: #fff; border-radius: 7px; padding: 5px; box-shadow: 0 5px 15px #9270ac13; }
.lay-photo-grid img { width: 100%; height: 124px; object-fit: contain; display: block; background: #f4eefb; border-radius: 3px; }
.lay-photo-grid figcaption { font-size: 11px; text-align: center; color: #86689c; padding: 8px 0 4px; }
.lay-photo-credits { font-size: 12px; color: #826b94; margin-top: 15px; }
.lay-photo-credits summary { cursor: pointer; }
.lay-photo-credits p { margin-top: 10px; line-height: 1.8; }
@media (max-width: 540px) {
  .lay-reward-library { padding: 15px; }
  .lay-photo-grid { gap: 6px; }
  .lay-photo-grid img { height: 95px; }
  .lay-photo-card img { height: min(235px, 31dvh); }
  .celebration.mint .reward-card { padding: 23px; }
}
