body{--theme-accent:#245847;--theme-bg:#f4f5f1;--theme-panel:#fff;--theme-text:#20352e;--theme-border:#dfe5df;--theme-muted:#62786e;--theme-soft:#e1eae3;--theme-radius:18px;background:var(--theme-bg);color:var(--theme-text)}.theme-accent-blue{--theme-accent:#2458a0}.theme-accent-purple{--theme-accent:#7044a0}.theme-accent-rose{--theme-accent:#a33465}.theme-accent-amber{--theme-accent:#966017}.theme-mode-dark{--theme-bg:#171d20;--theme-panel:#252d31;--theme-text:#edf4f0;--theme-border:#455157;--theme-muted:#b1c5bf;--theme-soft:#36434a}.theme-font-serif{font-family:Georgia,serif}.theme-font-rounded{font-family:ui-rounded,'Trebuchet MS',system-ui,sans-serif}.theme-corners-square{--theme-radius:5px}.theme-wallpaper{position:fixed;inset:0;width:100%;height:100%;object-fit:cover;opacity:.19;pointer-events:none;z-index:0}body>main{position:relative;z-index:1}.panel,.tile{background:var(--theme-panel);color:var(--theme-text);border-color:var(--theme-border);border-radius:var(--theme-radius)}body button{background:var(--theme-accent)}body button.secondary{background:var(--theme-soft);color:var(--theme-text)}body a{color:var(--theme-accent)}.theme-mode-dark a{color:#9ec6fa}.eyebrow,.tile small{color:var(--theme-muted)}.theme-mode-dark input,.theme-mode-dark textarea,.theme-mode-dark select{background:var(--theme-bg);color:var(--theme-text);border-color:var(--theme-border)}.theme-mode-dark .voice-hint{color:var(--theme-muted)}.theme-mode-dark .voice-quick{background:var(--theme-panel);color:var(--theme-text);border-color:var(--theme-border)}.theme-layout-list .tiles{grid-template-columns:1fr}.theme-layout-list .tile{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:0}.theme-layout-list .tile h2{margin:0}.theme-density-compact .panel,.theme-density-compact .tile{padding:14px}.theme-density-compact .tiles{gap:8px}.theme-order-item{display:flex;align-items:center;gap:8px;padding:6px;border-bottom:1px solid var(--theme-border)}.theme-order-item label{flex:1;cursor:grab}.theme-order-item button{padding:6px 12px}.theme-photo-preview{max-width:100%;max-height:200px;object-fit:contain}.theme-reset{margin-top:14px}.theme-preview{margin:0;background:var(--theme-panel);color:var(--theme-text)}.theme-preview button{background:var(--theme-accent)}.theme-preview.theme-mode-dark{background:var(--theme-panel);color:var(--theme-text)}.theme-preview.theme-corners-square{border-radius:5px}
.theme-preview.theme-mode-light{--theme-bg:#f4f5f1;--theme-panel:#fff;--theme-text:#20352e;--theme-border:#dfe5df;--theme-muted:#62786e;--theme-soft:#e1eae3}.theme-preview.theme-accent-green{--theme-accent:#245847}.theme-preview.theme-corners-rounded{--theme-radius:18px;border-radius:18px}.theme-preview.theme-font-system{font-family:system-ui,sans-serif}.theme-preview.theme-density-normal{padding:24px}.theme-preview.theme-density-compact{padding:14px}

.theme-designs{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin-bottom:20px}.theme-design-choice{position:relative;display:grid;gap:5px;cursor:pointer;border:2px solid var(--theme-border);border-radius:12px;padding:8px}.theme-design-choice:has(input:checked){border-color:var(--theme-accent);box-shadow:0 0 0 2px var(--theme-accent)}.theme-design-choice input{width:auto;position:absolute;top:9px;right:9px}.theme-design-choice img{width:100%;border-radius:8px}.theme-preset-editorial .dash-hero{background:var(--theme-panel);color:var(--theme-text);border-left:6px solid var(--theme-accent);border-radius:4px}.theme-preset-editorial .dash-section .dash-heading h2{font-size:23px}.theme-preset-compact .family-dashboard{gap:9px}.theme-preset-compact .dash-hero{padding:12px 18px}.theme-preset-compact .dash-quick-grid,.theme-preset-compact .dash-module-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.theme-preset-compact .dash-module{padding:9px;min-height:0}.theme-preset-mosaic .dash-hero{min-height:150px;align-items:end}.theme-preset-mosaic .dash-module-grid{grid-template-columns:repeat(auto-fit,minmax(175px,1fr))}.theme-preset-mosaic .dash-module{min-height:105px;padding:18px;background:var(--theme-soft)}

/* Complete palettes: accent, page, surfaces, text, border and soft controls. */
body,.theme-preview{--theme-surface:var(--theme-panel);--theme-link:var(--theme-accent)}
body.theme-accent-green,.theme-preview.theme-accent-green,.theme-palette-sample.theme-accent-green{--theme-accent:#245847;--theme-bg:#ecefee;--theme-panel:#fcfdfd;--theme-text:#212d2c;--theme-border:#d3deda;--theme-muted:#3b4847;--theme-soft:#e3e9e7;--theme-link:#245847}
body.theme-mode-dark.theme-accent-green,.theme-preview.theme-mode-dark.theme-accent-green{--theme-accent:#245847;--theme-bg:#182222;--theme-panel:#253131;--theme-text:#eceff0;--theme-border:#384b4b;--theme-muted:#b2bec1;--theme-soft:#2c4240;--theme-link:#a3b9b2}
body.theme-accent-blue,.theme-preview.theme-accent-blue,.theme-palette-sample.theme-accent-blue{--theme-accent:#2458a0;--theme-bg:#eceff4;--theme-panel:#fcfdfe;--theme-text:#212d3f;--theme-border:#d3deec;--theme-muted:#3b485b;--theme-soft:#e3e9f3;--theme-link:#2458a0}
body.theme-mode-dark.theme-accent-blue,.theme-preview.theme-mode-dark.theme-accent-blue{--theme-accent:#2458a0;--theme-bg:#182230;--theme-panel:#253141;--theme-text:#eceff4;--theme-border:#384b66;--theme-muted:#b2beca;--theme-soft:#2c4260;--theme-link:#a3b9d7}
body.theme-accent-purple,.theme-preview.theme-accent-purple,.theme-palette-sample.theme-accent-purple{--theme-accent:#7044a0;--theme-bg:#f1eef4;--theme-panel:#fdfdfe;--theme-text:#32293f;--theme-border:#e2daec;--theme-muted:#4b445b;--theme-soft:#ece7f3;--theme-link:#7044a0}
body.theme-mode-dark.theme-accent-purple,.theme-preview.theme-mode-dark.theme-accent-purple{--theme-accent:#7044a0;--theme-bg:#241f30;--theme-panel:#322e41;--theme-text:#efeef4;--theme-border:#4f4566;--theme-muted:#babcca;--theme-soft:#463b60;--theme-link:#c3b0d7}
body.theme-accent-rose,.theme-preview.theme-accent-rose,.theme-palette-sample.theme-accent-rose{--theme-accent:#a33465;--theme-bg:#f4edf0;--theme-panel:#fefdfd;--theme-text:#3d2532;--theme-border:#edd6e0;--theme-muted:#57404e;--theme-soft:#f3e5eb;--theme-link:#a33465}
body.theme-mode-dark.theme-accent-rose,.theme-preview.theme-mode-dark.theme-accent-rose{--theme-accent:#a33465;--theme-bg:#2b1d27;--theme-panel:#3a2b37;--theme-text:#f1edf1;--theme-border:#5e4154;--theme-muted:#bfbac4;--theme-soft:#58354b;--theme-link:#d8aabe}
body.theme-accent-amber,.theme-preview.theme-accent-amber,.theme-palette-sample.theme-accent-amber{--theme-accent:#966017;--theme-bg:#f4f0eb;--theme-panel:#fefdfc;--theme-text:#3a2f21;--theme-border:#eadfd1;--theme-muted:#544a3c;--theme-soft:#f1eae1;--theme-link:#966017}
body.theme-mode-dark.theme-accent-amber,.theme-preview.theme-mode-dark.theme-accent-amber{--theme-accent:#966017;--theme-bg:#29241b;--theme-panel:#383229;--theme-text:#f0efee;--theme-border:#5a4e3d;--theme-muted:#bebebd;--theme-soft:#544530;--theme-link:#d3bc9e}
body.theme-accent-slate,.theme-preview.theme-accent-slate,.theme-palette-sample.theme-accent-slate{--theme-accent:#475569;--theme-bg:#eeeff1;--theme-panel:#fdfdfd;--theme-text:#292c33;--theme-border:#dadde1;--theme-muted:#42484e;--theme-soft:#e7e9ec;--theme-link:#475569}
body.theme-mode-dark.theme-accent-slate,.theme-preview.theme-mode-dark.theme-accent-slate{--theme-accent:#475569;--theme-bg:#1d2228;--theme-panel:#2b3037;--theme-text:#edeff1;--theme-border:#434a55;--theme-muted:#b6bdc5;--theme-soft:#38414c;--theme-link:#b2b8c0}
body.theme-accent-graphite,.theme-preview.theme-accent-graphite,.theme-palette-sample.theme-accent-graphite{--theme-accent:#303b43;--theme-bg:#edeeee;--theme-panel:#fdfdfd;--theme-text:#24272b;--theme-border:#d6d8d9;--theme-muted:#3d4246;--theme-soft:#e4e6e7;--theme-link:#303b43}
body.theme-mode-dark.theme-accent-graphite,.theme-preview.theme-mode-dark.theme-accent-graphite{--theme-accent:#303b43;--theme-bg:#1a1e22;--theme-panel:#272c31;--theme-text:#eceef0;--theme-border:#3c434a;--theme-muted:#b3bbc1;--theme-soft:#30383f;--theme-link:#a8adb0}
body.theme-accent-sand,.theme-preview.theme-accent-sand,.theme-palette-sample.theme-accent-sand{--theme-accent:#826041;--theme-bg:#f2f0ee;--theme-panel:#fefdfd;--theme-text:#362f2a;--theme-border:#e6dfd9;--theme-muted:#4f4a46;--theme-soft:#efeae6;--theme-link:#826041}
body.theme-mode-dark.theme-accent-sand,.theme-preview.theme-mode-dark.theme-accent-sand{--theme-accent:#826041;--theme-bg:#262422;--theme-panel:#353230;--theme-text:#efeff0;--theme-border:#544e49;--theme-muted:#bcbec1;--theme-soft:#4d453e;--theme-link:#cabcaf}
body.theme-accent-terracotta,.theme-preview.theme-accent-terracotta,.theme-palette-sample.theme-accent-terracotta{--theme-accent:#a64b36;--theme-bg:#f5efed;--theme-panel:#fefdfd;--theme-text:#3d2a28;--theme-border:#eddbd7;--theme-muted:#574643;--theme-soft:#f3e8e5;--theme-link:#a64b36}
body.theme-mode-dark.theme-accent-terracotta,.theme-preview.theme-mode-dark.theme-accent-terracotta{--theme-accent:#a64b36;--theme-bg:#2c2020;--theme-panel:#3b2f2f;--theme-text:#f1eeef;--theme-border:#5f4846;--theme-muted:#bfbcc0;--theme-soft:#593d3b;--theme-link:#dab3ab}
body.theme-accent-olive,.theme-preview.theme-accent-olive,.theme-palette-sample.theme-accent-olive{--theme-accent:#596829;--theme-bg:#f0f1ec;--theme-panel:#fdfdfc;--theme-text:#2d3125;--theme-border:#dee1d4;--theme-muted:#464c40;--theme-soft:#e9ebe3;--theme-link:#596829}
body.theme-mode-dark.theme-accent-olive,.theme-preview.theme-mode-dark.theme-accent-olive{--theme-accent:#596829;--theme-bg:#20251e;--theme-panel:#2e342c;--theme-text:#eeefef;--theme-border:#485042;--theme-muted:#b8bfbe;--theme-soft:#3e4836;--theme-link:#b9c0a5}
body.theme-accent-teal,.theme-preview.theme-accent-teal,.theme-palette-sample.theme-accent-teal{--theme-accent:#166b70;--theme-bg:#ebf1f1;--theme-panel:#fcfdfd;--theme-text:#1e3135;--theme-border:#d0e1e2;--theme-muted:#384d50;--theme-soft:#e1ecec;--theme-link:#166b70}
body.theme-mode-dark.theme-accent-teal,.theme-preview.theme-mode-dark.theme-accent-teal{--theme-accent:#166b70;--theme-bg:#162529;--theme-panel:#223438;--theme-text:#ebeff2;--theme-border:#345158;--theme-muted:#b1c0c6;--theme-soft:#27494f;--theme-link:#9dc1c3}
body.theme-accent-navy,.theme-preview.theme-accent-navy,.theme-palette-sample.theme-accent-navy{--theme-accent:#294775;--theme-bg:#eceef1;--theme-panel:#fcfdfd;--theme-text:#222936;--theme-border:#d4dae3;--theme-muted:#3c4551;--theme-soft:#e3e7ed;--theme-link:#294775}
body.theme-mode-dark.theme-accent-navy,.theme-preview.theme-mode-dark.theme-accent-navy{--theme-accent:#294775;--theme-bg:#192029;--theme-panel:#262e39;--theme-text:#eceef2;--theme-border:#3a4659;--theme-muted:#b3bcc6;--theme-soft:#2e3c51;--theme-link:#a5b2c5}
body.theme-accent-burgundy,.theme-preview.theme-accent-burgundy,.theme-palette-sample.theme-accent-burgundy{--theme-accent:#84304f;--theme-bg:#f2edef;--theme-panel:#fefdfd;--theme-text:#36242d;--theme-border:#e6d6dc;--theme-muted:#504049;--theme-soft:#efe4e8;--theme-link:#84304f}
body.theme-mode-dark.theme-accent-burgundy,.theme-preview.theme-mode-dark.theme-accent-burgundy{--theme-accent:#84304f;--theme-bg:#261c24;--theme-panel:#352a33;--theme-text:#f0edf0;--theme-border:#553f4e;--theme-muted:#bcbac2;--theme-soft:#4d3443;--theme-link:#cba8b5}
body.theme-accent-cobalt,.theme-preview.theme-accent-cobalt,.theme-palette-sample.theme-accent-cobalt{--theme-accent:#3054ad;--theme-bg:#edeff5;--theme-panel:#fdfdfe;--theme-text:#242c42;--theme-border:#d6ddef;--theme-muted:#3d485d;--theme-soft:#e4e9f4;--theme-link:#3054ad}
body.theme-mode-dark.theme-accent-cobalt,.theme-preview.theme-mode-dark.theme-accent-cobalt{--theme-accent:#3054ad;--theme-bg:#1a2232;--theme-panel:#273043;--theme-text:#eceff4;--theme-border:#3c4a6a;--theme-muted:#b3bdcc;--theme-soft:#304064;--theme-link:#a8b7dd}
body.theme-accent-plum,.theme-preview.theme-accent-plum,.theme-palette-sample.theme-accent-plum{--theme-accent:#674268;--theme-bg:#f0eef1;--theme-panel:#fdfdfd;--theme-text:#302833;--theme-border:#e1d9e1;--theme-muted:#49444e;--theme-soft:#ebe6eb;--theme-link:#674268}
body.theme-mode-dark.theme-accent-plum,.theme-preview.theme-mode-dark.theme-accent-plum{--theme-accent:#674268;--theme-bg:#221f27;--theme-panel:#302d37;--theme-text:#eeeef1;--theme-border:#4c4555;--theme-muted:#b9bcc5;--theme-soft:#433a4c;--theme-link:#bfb0c0}
body.theme-accent-petrol,.theme-preview.theme-accent-petrol,.theme-palette-sample.theme-accent-petrol{--theme-accent:#245866;--theme-bg:#eceff0;--theme-panel:#fcfdfd;--theme-text:#212d33;--theme-border:#d3dee0;--theme-muted:#3b484e;--theme-soft:#e3e9eb;--theme-link:#245866}
body.theme-mode-dark.theme-accent-petrol,.theme-preview.theme-mode-dark.theme-accent-petrol{--theme-accent:#245866;--theme-bg:#182227;--theme-panel:#253137;--theme-text:#eceff1;--theme-border:#384b54;--theme-muted:#b2bec4;--theme-soft:#2c424b;--theme-link:#a3b9bf}
body.theme-accent-copper,.theme-preview.theme-accent-copper,.theme-palette-sample.theme-accent-copper{--theme-accent:#95552d;--theme-bg:#f3efed;--theme-panel:#fefdfc;--theme-text:#3a2c26;--theme-border:#eaddd5;--theme-muted:#534841;--theme-soft:#f1e9e4;--theme-link:#95552d}
body.theme-mode-dark.theme-accent-copper,.theme-preview.theme-mode-dark.theme-accent-copper{--theme-accent:#95552d;--theme-bg:#29221f;--theme-panel:#38302d;--theme-text:#f0efef;--theme-border:#5a4a43;--theme-muted:#bebdbf;--theme-soft:#534137;--theme-link:#d2b8a7}
body.theme-accent-mono,.theme-preview.theme-accent-mono,.theme-palette-sample.theme-accent-mono{--theme-accent:#343434;--theme-bg:#ededed;--theme-panel:#fdfdfd;--theme-text:#242528;--theme-border:#d6d6d6;--theme-muted:#3e4043;--theme-soft:#e5e5e5;--theme-link:#343434}
body.theme-mode-dark.theme-accent-mono,.theme-preview.theme-mode-dark.theme-accent-mono{--theme-accent:#343434;--theme-bg:#1a1d20;--theme-panel:#282b2e;--theme-text:#ecedef;--theme-border:#3d4146;--theme-muted:#b4bac0;--theme-soft:#31353a;--theme-link:#aaaaaa}
body.theme-mode-dark a,.theme-preview a{color:var(--theme-link)}
.theme-palettes{display:grid;grid-template-columns:repeat(auto-fit,minmax(108px,1fr));gap:8px;margin:8px 0 18px}.theme-palette-choice{position:relative;cursor:pointer;display:grid;gap:5px;padding:7px;border:1px solid var(--theme-border);border-radius:9px;background:var(--theme-panel);color:var(--theme-text);font-size:12px}.theme-palette-choice:has(input:checked){outline:2px solid var(--theme-accent);outline-offset:1px}.theme-palette-choice input{position:absolute;right:7px;top:7px;width:15px;height:15px;margin:0;accent-color:var(--theme-accent)}.theme-palette-sample{display:flex;align-items:stretch;overflow:hidden;height:30px;border:1px solid var(--theme-border);border-radius:5px;padding-right:20px;background:var(--theme-bg)}.theme-palette-sample i{flex:1;background:var(--theme-accent)}.theme-palette-sample i:nth-child(2){background:var(--theme-soft)}.theme-palette-sample i:nth-child(3){background:var(--theme-bg)}.theme-palette-sample i:nth-child(4){background:var(--theme-text)}.theme-palette-hint{font-size:13px;color:var(--theme-muted)}.theme-preview.panel{background:var(--theme-bg);color:var(--theme-text);border-color:var(--theme-border)}.theme-preview-surface{background:var(--theme-panel);border:1px solid var(--theme-border);border-radius:var(--theme-radius);padding:12px}.theme-preview-chip{display:inline-block;background:var(--theme-soft);color:var(--theme-text);padding:4px 8px;border-radius:5px}.theme-preview-surface button{color:white}.theme-preview-surface a{margin-left:6px}.theme-preview.theme-mode-dark{background:var(--theme-bg)}
