body[data-toolbox-theme] {
  --theme-side-a:#101e3a; --theme-side-b:#233e69;
  --theme-hero-a:#dcecff; --theme-hero-b:#f5f9ff;
  --theme-accent:#285fc1; --theme-accent-deep:#194da8;
  --theme-surface:#eef4fb;
}
body[data-toolbox-theme="forest"] {
  --theme-side-a:#12302d; --theme-side-b:#225449;
  --theme-hero-a:#d8efe4; --theme-hero-b:#f6fbf8;
  --theme-accent:#20715b; --theme-accent-deep:#165947;
  --theme-surface:#edf6f1;
}
body[data-toolbox-theme="sunset"] {
  --theme-side-a:#492920; --theme-side-b:#704134;
  --theme-hero-a:#ffe4d0; --theme-hero-b:#fff9f2;
  --theme-accent:#a64526; --theme-accent-deep:#87341a;
  --theme-surface:#fcf2eb;
}
body[data-toolbox-theme="lavender"] {
  --theme-side-a:#2e214a; --theme-side-b:#4e3a72;
  --theme-hero-a:#ece2ff; --theme-hero-b:#faf7ff;
  --theme-accent:#6b47ad; --theme-accent-deep:#583595;
  --theme-surface:#f4effc;
}

body[data-toolbox-theme] #app { background:var(--theme-surface); }
body[data-toolbox-theme] #app .sidebar { background:linear-gradient(155deg,var(--theme-side-a),var(--theme-side-b)); }
body[data-toolbox-theme] #app .nav-item.active {
  background:linear-gradient(100deg,var(--theme-accent),var(--theme-accent-deep));
}
body[data-toolbox-theme] .home-hero { background:linear-gradient(112deg,var(--theme-hero-a),var(--theme-hero-b)); }
body[data-toolbox-theme] :is(.home-hero-kicker,.home-hero-caption,.toolbox-theme-trigger) { color:var(--theme-accent-deep); }
body[data-toolbox-theme] .home-hero-kicker::before { background:var(--theme-accent); }
.toolbox-theme-trigger { box-shadow:none; font:inherit; font-size:12px; font-weight:700; white-space:nowrap; }
.toolbox-theme-trigger:hover { background:#f4f8fd; }
.theme-wallpaper {
  position:fixed; inset:0; width:100%; height:100%; object-fit:cover;
  pointer-events:none; transform:scale(1.08); filter:blur(var(--photo-blur,14px));
}
body[data-toolbox-theme="photo"] #app .shell { position:relative; background:#eff5fda0; }
body[data-toolbox-theme="photo"] .home-hero { background:linear-gradient(110deg,#eff7ffeb,#f6faff9e); }
body[data-toolbox-theme="photo"] #app :is(.metric-card,.tool-card,.quick,.module-card) { background:#ffffffed; }
.theme-dialog {
  width:min(430px,calc(100% - 32px)); max-height:calc(100% - 32px); padding:24px;
  border:1px solid #dce4ef; border-radius:18px; color:#15233b; background:#fff;
  box-shadow:0 20px 70px #0b1b3140;
}
.theme-dialog::backdrop { background:#13274775; backdrop-filter:blur(4px); }
.theme-dialog form { display:grid; gap:10px; }
.theme-dialog .eyebrow-small { color:var(--theme-accent); font-size:10px; font-weight:800; letter-spacing:.12em; }
.theme-dialog h2 { margin:0 0 6px; font-size:22px; }
.theme-dialog label,.theme-dialog p { font-size:13px; }
.theme-dialog :is(.form-control,.btn) { font-size:13px; }
.theme-dialog p { min-height:1.4em; margin:0; color:#52627a; }
.theme-clear { display:flex; align-items:center; gap:6px; }
.theme-actions { display:flex; justify-content:flex-end; gap:8px; }
@media(max-width:600px) {
  #app .topbar { height:auto; min-height:56px; padding-block:8px; }
  #app .top-actions { flex-wrap:wrap; justify-content:flex-end; gap:5px; }
  #app .top-pill { padding:5px 8px; }
}
