html[data-theme="warm"] {
 --friend-bg:#fffaf2; --friend-text:#402638; --friend-muted:#806c71;
 --friend-purple:#a74319; --friend-blue:#e89025; --friend-coral:#d75a42;
 --friend-orange:#ed8b29; --friend-gold:#ffc647;
 --friend-line:rgba(171,113,53,.18);
 --friend-shadow:0 12px 34px rgba(118,72,32,.08);
 --friend-shadow-high:0 22px 58px rgba(118,72,32,.13);
}
html[data-theme="warm"], html[data-theme="warm"] body.app-body { background:linear-gradient(145deg,#fffdf8 0%,#fff8ed 55%,#fff6ef 100%) fixed !important; color:#402638; }
html[data-theme="warm"] .app-header {background:rgba(255,251,244,.9)!important;box-shadow:0 5px 22px rgba(118,72,32,.05)!important;}
html[data-theme="warm"] .hero-badge {background:#fff0c7!important;border-color:#f4dca0!important;color:#865317!important;}
html[data-theme="warm"] .liquid-hero h1 span {background:none!important;color:#402638!important;-webkit-text-fill-color:#402638;}
html[data-theme="warm"] .liquid-hero h1 span:last-child {color:#a9471b!important;-webkit-text-fill-color:#a9471b;}
html[data-theme="warm"] .liquid-search-bar {border-color:#f2e2cb!important;box-shadow:0 10px 30px rgba(118,72,32,.07)!important;}
html[data-theme="warm"] .liquid-search-bar button {background:linear-gradient(135deg,#ffcf59,#ffb134)!important;color:#402638!important;box-shadow:0 6px 16px rgba(222,142,28,.2)!important;}
html[data-theme="warm"] #mydpAiEntry {background:linear-gradient(115deg,#ffe19a,#ffc956 65%,#ffbd53)!important;color:#402638!important;box-shadow:0 12px 28px -12px rgba(190,115,24,.3)!important;border-color:#ffe6b3!important;}
html[data-theme="warm"] .quick-actions a {background:rgba(255,237,203,.65)!important;color:#88512d!important;}
html[data-theme="warm"] .mobile-tabbar {background:rgba(255,252,246,.92)!important;box-shadow:0 10px 32px rgba(108,68,29,.10)!important;}
html[data-theme="warm"] .mobile-tabbar:not(.is-pressed) a.active:not(.publish-tab) {background:#ffedbe!important;color:#8b4b13!important;}
html[data-theme="warm"] .mobile-tabbar button.publish-tab .material-symbols-rounded {background:linear-gradient(135deg,#ffd15b,#ffb338)!important;color:#402638!important;box-shadow:0 8px 22px rgba(211,138,27,.24)!important;}
html[data-theme="warm"] .mobile-tabbar a {color:#807477!important;}
html[data-theme="warm"] .nav-link.active {color:#9a421d!important;background:#fff0d6!important;}
html[data-theme="warm"] .location-button, html[data-theme="warm"] .category-chip.active {color:#9a421d!important;}
html[data-theme="warm"] ::selection {background:#ffdf8d;color:#402638;}

/* Shared appearance picker; remains readable in both palettes. */
.theme-settings {padding:20px;margin:12px 0 18px;border-radius:20px;background:rgba(255,255,255,.85);border:1px solid var(--friend-line);color:var(--friend-text)}
.theme-settings h3 {margin:0 0 8px;font-size:16px}.theme-settings h3 small {font-weight:400;font-size:12px;opacity:.7}
.theme-settings p {font-size:13px;color:var(--friend-muted);margin:0 0 15px}
.theme-choices {display:grid;grid-template-columns:1fr 1fr;gap:10px}
.theme-choices button {display:grid;gap:7px;text-align:left;padding:14px;border:2px solid transparent;border-radius:16px;background:#faf9f7;color:#402638;cursor:pointer}
.theme-choices button[aria-pressed="true"] {border-color:var(--friend-purple);background:white}
.theme-choices button:focus-visible {outline:3px solid var(--friend-purple);outline-offset:3px}
.theme-choices small {font-size:11px;color:#76666c}.theme-choices strong{font-size:13px}
.theme-swatch {height:24px;border-radius:8px;display:block}
.theme-swatch-warm {background:linear-gradient(90deg,#fff5dd 0 33%,#ffcb58 33% 66%,#402638 66%)}
.theme-swatch-classic {background:linear-gradient(90deg,#f5f7fc 0 33%,#7865ef 33% 66%,#48bafe 66%)}
html[data-theme="warm"] body.bg-surface {background:linear-gradient(145deg,#fffdf8,#fff8ed 55%,#fff6ef) fixed!important;color:#402638}
html[data-theme="warm"] body.bg-surface > header {background:rgba(255,251,244,.9)!important}
html[data-theme="warm"] .bb-chip, html[data-theme="warm"] .bb-btn, html[data-theme="warm"] .bb-tags span {background:#fff0d6;color:#854217;border-color:#efd5a3}
html[data-theme="warm"] .bb-chip.is-on, html[data-theme="warm"] .bb-primary {background:linear-gradient(135deg,#ffd366,#ffb846);color:#402638;box-shadow:0 5px 16px #b17b2920}
html[data-theme="warm"] .bb-group-label {color:#995122}
html[data-theme="warm"] .bb-cover, html[data-theme="warm"] .bb-detail-cover {background-color:#d29a51;background-image:linear-gradient(135deg,#ffda88,#ba722f)}
html[data-theme="warm"] .bb-detail-head h1 {color:#fff8e8!important}
html[data-theme="warm"] .bb-hero-trust {background:#eef7f0;border-color:#cfe8d4;color:#2f7d4a}
html[data-theme="warm"] .bb-cover-placeholder {background:linear-gradient(135deg,#fff3da,#ffe3b8);color:#a9713a}
html[data-theme="warm"] .bb-cover-placeholder small {color:#b98a4d}
html[data-theme="warm"] .bb-cover-source {background:rgba(64,38,18,.55)}
html[data-theme="warm"] .bb-lead {background:#fff6e6;border-color:#f0d9a8;color:#6b5540}
html[data-theme="warm"] .bb-lead-tag, html[data-theme="warm"] .bb-lead-name {color:#8b4b13}
html[data-theme="warm"] .bb-primary.bb-card-link, html[data-theme="warm"] a.bb-card-link {background:none!important;box-shadow:none!important;color:#a9471b!important;border:none!important}
html[data-theme="warm"] .bb-row-actions a, html[data-theme="warm"] .bb-row-actions button {color:#a9471b}
html[data-theme="warm"] .bb-row-actions .bb-nav-link {color:#2f7d4a}
html[data-theme="warm"] .bb-methodology {color:#a99287}
html[data-theme="warm"] .profile-menu-icon, html[data-theme="warm"] .profile-avatar {background:#fff0cc;color:#854217}
html[data-theme="warm"] .primary-action, html[data-theme="warm"] .commerce-primary-button {background:#a74319!important;color:#fff!important;box-shadow:0 8px 20px #a7431920!important}
html[data-theme="warm"] .mydp-ai-sendbtn, html[data-theme="warm"] .mydp-ai-msg.user .mydp-ai-bubble {background:#a74319!important;color:#fff!important}
html[data-theme="warm"] .mydp-ai-reason {background:#fff0d0!important;color:#854217!important}
html[data-theme="warm"] .app-splash {background:#fffaf2!important}
/* Notes controls also follow the selected palette, including injected dialogs. */
html[data-theme="warm"] .note-feed-filters button,
html[data-theme="warm"] .note-draft-button,
html[data-theme="warm"] .note-entry-option,
html[data-theme="warm"] .note-entry-cancel,
html[data-theme="warm"] .mydp-ns-relocate,
html[data-theme="warm"] .mydp-nd-tags span {background:#fff0d6!important;color:#854217!important;border-color:#efd5a3!important;box-shadow:none!important}
html[data-theme="warm"] .note-feed-filters button.is-active,
html[data-theme="warm"] .publish-shortcut,
html[data-theme="warm"] .note-publish-button,
html[data-theme="warm"] .mydp-nd-comment-form button {background:linear-gradient(135deg,#ffd366,#ffb846)!important;color:#402638!important;border-color:#f0cd88!important;box-shadow:0 5px 16px #b17b2920!important}
html[data-theme="warm"] .note-entry-option .material-symbols-rounded,
html[data-theme="warm"] .note-draft-button .material-symbols-rounded,
html[data-theme="warm"] .mydp-ns-icon,
html[data-theme="warm"] .mydp-nd-store {color:#a74319!important;background:transparent!important}
html[data-theme="warm"] .note-feed-search:focus-within,
html[data-theme="warm"] .mydp-ns-bar input:focus {border-color:#c77b3a!important;box-shadow:0 0 0 3px #edc17b35!important}
html[data-theme="warm"] .mydp-note-search {background:#fffaf2!important;color:#402638!important}
