/* Product-specific alternate palettes. No rules apply to the approved original theme. */

/* BubblePop retains its aquarium and translucent panels after dark. */
html[data-site-theme="dark"]:is([data-theme-product="bubblepop"],:has(link[href*="/studio/bubblepop.css"])) {
  --ink:#f2f4ff; --soft:#ccd6ed; --muted:#b3c2df; --cloud:#192b48;
  --blue:#8acbff; --pink:#ffadd6; --yellow:#ffe18b; --grape:#c8b6ff;
  --line:rgba(194,213,249,.22);
  --bubble-night:#101b32; --bubble-panel:rgba(24,41,68,.83);
  --bubble-edge:rgba(184,209,250,.22); --bubble-action:#d1bfff; --bubble-action-ink:#25133f;
}
html[data-site-theme="dark"]:is([data-theme-product="bubblepop"],:has(link[href*="/studio/bubblepop.css"])) body {
  background:radial-gradient(70% 65% at 8% 8%,rgba(45,92,139,.36),transparent 68%),radial-gradient(65% 55% at 94% 38%,rgba(116,49,107,.25),transparent 70%),radial-gradient(70% 60% at 52% 90%,rgba(81,66,133,.27),transparent 72%),var(--bubble-night)!important;
  color:var(--ink)!important;background-attachment:fixed!important;
}
html[data-site-theme="dark"]:is([data-theme-product="bubblepop"],:has(link[href*="/studio/bubblepop.css"])) :is(.hero,.band,.closing,.feedback) {background:transparent!important;color:var(--ink)!important}
html[data-site-theme="dark"]:is([data-theme-product="bubblepop"],:has(link[href*="/studio/bubblepop.css"])) .aquarium {opacity:.88}
html[data-site-theme="dark"]:is([data-theme-product="bubblepop"],:has(link[href*="/studio/bubblepop.css"])) .aquarium img {filter:brightness(1.12) drop-shadow(0 8px 18px rgba(9,13,32,.3))}
html[data-site-theme="dark"]:is([data-theme-product="bubblepop"],:has(link[href*="/studio/bubblepop.css"])) :is(.pane,.panel,.feedback-inner) {background:var(--bubble-panel)!important;color:var(--ink)!important;border-color:var(--bubble-edge)!important;box-shadow:0 16px 44px rgba(1,8,23,.16);backdrop-filter:blur(5px)}
html[data-site-theme="dark"]:is([data-theme-product="bubblepop"],:has(link[href*="/studio/bubblepop.css"])) .site-header {background:rgba(16,27,50,.92)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-site-theme="dark"]:is([data-theme-product="bubblepop"],:has(link[href*="/studio/bubblepop.css"])) :is(.services-footer,.site-footer,.studio-apps-panel) {background:#14223b!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-site-theme="dark"]:is([data-theme-product="bubblepop"],:has(link[href*="/studio/bubblepop.css"])) :is(.hero p,.lead p,.step p,.boost p,.closing p,.feedback-inner>div p,.prose p,.prose li,.page-hero .lede,.mail-plain,.contact-line span) {color:var(--soft)!important}
html[data-site-theme="dark"]:is([data-theme-product="bubblepop"],:has(link[href*="/studio/bubblepop.css"])) :is(.hero h1 b,.page-hero h1 em) {color:var(--grape)}
html[data-site-theme="dark"]:is([data-theme-product="bubblepop"],:has(link[href*="/studio/bubblepop.css"])) .kicker {background:rgba(138,203,255,.14);color:var(--blue)!important}
html[data-site-theme="dark"]:is([data-theme-product="bubblepop"],:has(link[href*="/studio/bubblepop.css"])) :is(.store-button,.page-cta,.feedback-form button) {background:var(--bubble-action)!important;color:var(--bubble-action-ink)!important;border:1px solid var(--bubble-action)!important;box-shadow:0 8px 24px rgba(4,10,26,.22)}
html[data-site-theme="dark"]:is([data-theme-product="bubblepop"],:has(link[href*="/studio/bubblepop.css"])) :is(.store-button,.page-cta,.feedback-form button):hover {background:#e1d5ff!important;border-color:#e1d5ff!important;color:var(--bubble-action-ink)!important}
html[data-site-theme="dark"]:is([data-theme-product="bubblepop"],:has(link[href*="/studio/bubblepop.css"])) .store-button span {opacity:1;color:inherit}
html[data-site-theme="dark"]:is([data-theme-product="bubblepop"],:has(link[href*="/studio/bubblepop.css"])) .step .num {background:#c7b5fa;color:#25133f}
html[data-site-theme="dark"]:is([data-theme-product="bubblepop"],:has(link[href*="/studio/bubblepop.css"])) :is(.feedback-form textarea,.feedback-form input) {background:#111e35!important;color:var(--ink)!important;border-color:#6981a2!important}
html[data-site-theme="dark"]:is([data-theme-product="bubblepop"],:has(link[href*="/studio/bubblepop.css"])) :is(.feedback-form textarea,.feedback-form input)::placeholder {color:#aabbd6;opacity:1}
html[data-site-theme="dark"]:is([data-theme-product="bubblepop"],:has(link[href*="/studio/bubblepop.css"])) :is(.prose a,.topics a,.mail-plain a,.contact-line span a) {color:var(--blue);text-decoration:underline;text-underline-offset:3px}
html[data-site-theme="dark"]:is([data-theme-product="bubblepop"],:has(link[href*="/studio/bubblepop.css"])) :is(.prose strong,.prose summary) {color:var(--ink)}
html[data-site-theme="dark"]:is([data-theme-product="bubblepop"],:has(link[href*="/studio/bubblepop.css"])) .studio-apps-panel a:hover {background:#2a3c5b!important}

/* Tick: a calm paper-and-green palette, rather than dark cells on a white body. */
html[data-site-theme="light"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) {
  --ink:#f8faf8; --raise:#fff; --sunk:#edf3ee; --text:#202e26;
  --line:#d6dfd8; --line-hi:#aebdb2; --muted:#4f6256; --faint:#5e6b62;
  --green:#177c43; --green-mid:#13713c; --green-deep:#105d33; --green-dim:#dff1e5;
}
html[data-site-theme="light"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) body {background:var(--ink);color:var(--text)}
html[data-site-theme="light"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) :is(.site-header,.nav-links.open) {background:rgba(248,250,248,.96);color:var(--text);border-color:var(--line)}
html[data-site-theme="light"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) :is(.nav-links,.studio-apps>summary) {color:#42574a}
html[data-site-theme="light"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) .field-grid i {background:#e9eeea;border-color:#cfdad2}
html[data-site-theme="light"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) .field-grid i.on {background:var(--green-dim);border-color:#8fbea1}
html[data-site-theme="light"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) .field-grid i.full {background:var(--green);border-color:var(--green)}
html[data-site-theme="light"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) :is(.habit,.cat) {background:#fff;color:var(--text);min-width:0}
html[data-site-theme="light"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) .habit:hover {background:#eff6f0;color:var(--text)}
html[data-site-theme="light"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) .habit .week i {background:#e8eee9;border-color:#bfcec3}
html[data-site-theme="light"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) .habit .week i.done {background:var(--green);border-color:var(--green)}
html[data-site-theme="light"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) :is(.button:not(.ghost),.page-cta,.feedback-form button) {background:var(--green);border-color:var(--green);color:#fff}
html[data-site-theme="light"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) :is(.button:not(.ghost),.page-cta,.feedback-form button):hover {background:#105d33;border-color:#105d33;color:#fff}
html[data-site-theme="light"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) .button.ghost {background:transparent;color:var(--text);border-color:#718779}
html[data-site-theme="light"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) .button.ghost:hover {background:#e5efe8;border-color:#496854;color:var(--text)}
html[data-site-theme="light"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) .closing {background:#e3eee6;border-color:var(--line)}
html[data-site-theme="light"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) .closing p {color:#3e5a48}
html[data-site-theme="light"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) :is(.feedback-form input,.feedback-form textarea) {background:#fff;color:var(--text);border-color:#91a797}
html[data-site-theme="light"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) :is(.feedback-form input,.feedback-form textarea)::placeholder {color:#5e6b62;opacity:1}
html[data-site-theme="light"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) :is(.mail-copy,.mail-plain a,.topics a) {color:var(--green-deep)}
html[data-site-theme="light"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) .feedback-status.err {color:#9d2842}

/* Explicit dark keeps Tick's original palette; legal/help surfaces follow it as well. */
html[data-site-theme="dark"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) {
  --ink:#0a0c10; --raise:#10141a; --sunk:#07090c; --line:#27312b; --line-hi:#526358;
  --text:#edf0f1; --muted:#a9b9ae; --faint:#a4b2a8;
  --green:#45df85; --green-mid:#2bb765; --green-deep:#84e9aa; --green-dim:rgba(69,223,133,.12);
}
html[data-site-theme="dark"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) body {background:var(--ink)!important;color:var(--text)!important}
html[data-site-theme="dark"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) :is(.site-header,.services-footer,.site-footer,.studio-apps-panel,.habit,.cat,.hero,.band,.feedback-inner,.legal-main) {background:var(--ink)!important;color:var(--text)!important;border-color:var(--line)!important}
html[data-site-theme="dark"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) .band.sunk {background:var(--sunk)!important}
html[data-site-theme="dark"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) .closing {background:#0d2b1d;color:var(--text)}
html[data-site-theme="dark"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) .habit:hover {background:var(--raise)!important}
html[data-site-theme="dark"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) :is(.button:not(.ghost),.page-cta,.feedback-form button) {background:var(--green)!important;color:#06130c!important;border-color:var(--green)!important}
html[data-site-theme="dark"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) :is(.button:not(.ghost),.page-cta,.feedback-form button):hover {background:#73eda4!important;color:#06130c!important;border-color:#73eda4!important}
html[data-site-theme="dark"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) .button.ghost {background:transparent!important;color:var(--text)!important;border-color:var(--line-hi)!important}
html[data-site-theme="dark"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) .button.ghost:hover {background:#1b2e23!important;border-color:#6b8876!important}
html[data-site-theme="dark"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) :is(.legal-copy h2,.legal-copy summary,.legal-copy strong) {color:var(--text)}
html[data-site-theme="dark"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) :is(.legal-hero p,.legal-copy p,.legal-copy li,.legal-copy details p,.mail-plain) {color:var(--muted)}
html[data-site-theme="dark"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) :is(.legal-hero,.legal-copy .topics,.legal-copy details) {border-color:var(--line)}
html[data-site-theme="dark"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) .notice {background:#14271c;color:var(--text);border-color:var(--green)}
html[data-site-theme="dark"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) :is(.topics a,.legal-copy .topics a,.mail-plain a) {color:var(--green-deep)}
html[data-site-theme="dark"]:is([data-theme-product="bubblepop"],:has(link[href*="/studio/bubblepop.css"])) .lead h2 {color:var(--ink)}
html[data-site-theme="dark"]:is([data-theme-product="bubblepop"],:has(link[href*="/studio/bubblepop.css"])) :is(a,button,input,textarea,select):focus-visible {outline:3px solid var(--grape);outline-offset:4px}
html[data-site-theme="light"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) :is(a,button,input,textarea,select):focus-visible {outline:3px solid var(--green-deep);outline-offset:3px}
html[data-site-theme="light"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) .library img {opacity:1}
html[data-site-theme="light"]:is([data-theme-product="tick"],:has(link[href*="/studio/tick.css"])) .habit strong {color:var(--text)}
