/* Shared studio and Image Lab themes. Loaded after either application's base CSS.
   Theme only the interface: source and result canvases deliberately stay neutral. */
html[data-style] {
  color-scheme: light;
  --theme-bg: #f4f5f3;
  --theme-surface: #ffffff;
  --theme-raised: #e9ece7;
  --theme-ink: #26332b;
  --theme-muted: #536257;
  --theme-line: #aab7ad;
  --theme-accent: #356046;
  --theme-accent-hover: #244b33;
  --theme-on-accent: #ffffff;
  --theme-soft: #e0ebdf;
  --theme-radius: 14px;
  --theme-shadow: 0 10px 32px #18261b0b;
  --theme-heading: "Segoe UI", Arial, sans-serif;
  --theme-pattern: none;
  --theme-pattern-size: auto;
  --theme-error: #962838;
  --theme-error-bg: #fff0f1;
  --theme-error-line: #c88892;
  --theme-success: #216341;
  --theme-success-bg: #e8f4ec;
  --theme-success-line: #82b697;
  --image-canvas: #25282d;
  --bg: var(--theme-bg);
  --surface: var(--theme-surface);
  --panel: var(--theme-surface);
  --panel2: var(--theme-raised);
  --text: var(--theme-ink);
  --muted: var(--theme-muted);
  --border: var(--theme-line);
  --line: var(--theme-line);
  --primary: var(--theme-accent);
  --accent: var(--theme-accent);
  --purple: var(--theme-accent);
  --radius: var(--theme-radius);
  color: var(--text);
  background: var(--bg);
  font-family: "Segoe UI", system-ui, Arial, sans-serif;
}

html[data-style="model-kit"] {
  --theme-bg:#edf2e7; --theme-surface:#fffef7; --theme-raised:#e0e8d8;
  --theme-ink:#183627; --theme-muted:#4e6353; --theme-line:#92a58d;
  --theme-accent:#285e3b; --theme-accent-hover:#18492a; --theme-soft:#dbe9d7;
  --theme-radius:6px; --theme-heading:ui-monospace, "Cascadia Mono", Consolas, monospace;
  --theme-pattern:linear-gradient(#315a3510 1px,transparent 1px),linear-gradient(90deg,#315a3510 1px,transparent 1px);
  --theme-pattern-size:32px 32px;
}
html[data-style="ghibli"] {
  --theme-bg:#f4f3e7; --theme-surface:#fffef7; --theme-raised:#e5eadb;
  --theme-ink:#273e32; --theme-muted:#566756; --theme-line:#a0b399;
  --theme-accent:#40664c; --theme-accent-hover:#2c5038; --theme-soft:#e4ebd7;
  --theme-radius:19px; --theme-heading:Georgia, "Times New Roman", serif;
  --theme-pattern:radial-gradient(ellipse at 90% 0%,#bed4b64d,transparent 43%),radial-gradient(ellipse at 0% 45%,#e6d4a133,transparent 42%);
}
html[data-style="retro-console"] {
  --theme-bg:#202126; --theme-surface:#2a2d34; --theme-raised:#363a43;
  --theme-ink:#f5f1e6; --theme-muted:#c1bdaf; --theme-line:#626673;
  --theme-accent:#f4cb52; --theme-accent-hover:#ffe28b; --theme-soft:#443d28;
  --theme-on-accent:#252114; --theme-radius:9px;
  --theme-heading:"Arial Black", "Segoe UI", sans-serif;
  --theme-shadow:0 5px 0 #111318,0 14px 28px #0002;
  --theme-pattern:linear-gradient(140deg,#c9cdd008,transparent 40%);
}
html[data-style="action-figure"] {
  --theme-bg:#f8f4ea; --theme-surface:#fffdf8; --theme-raised:#e9ecf4;
  --theme-ink:#20293c; --theme-muted:#566176; --theme-line:#a7afbd;
  --theme-accent:#b92b31; --theme-accent-hover:#972027; --theme-soft:#f8e4df;
  --theme-radius:10px; --theme-heading:"Arial Black", "Segoe UI", sans-serif;
  --theme-shadow:4px 5px 0 #24457318;
  --theme-pattern:linear-gradient(120deg,#3154a212,transparent 46%);
}
html[data-style="pixel-art"] {
  --theme-bg:#142c25; --theme-surface:#203a2e; --theme-raised:#2b4939;
  --theme-ink:#fff2bc; --theme-muted:#d1cba5; --theme-line:#748667;
  --theme-accent:#e8c267; --theme-accent-hover:#ffdc8b; --theme-soft:#3c472b;
  --theme-on-accent:#292615; --theme-radius:0px;
  --theme-heading:ui-monospace, "Cascadia Mono", Consolas, monospace;
  --theme-shadow:4px 4px 0 #0a1b16;
  --theme-pattern:linear-gradient(#dcc98b08 1px,transparent 1px),linear-gradient(90deg,#dcc98b08 1px,transparent 1px);
  --theme-pattern-size:16px 16px;
}
html[data-style="pixel-arcade"] {
  --theme-bg:#090e28; --theme-surface:#141c3b; --theme-raised:#222b50;
  --theme-ink:#f3f5ff; --theme-muted:#bcc6e4; --theme-line:#53649d;
  --theme-accent:#43e8f1; --theme-accent-hover:#99f8ff; --theme-soft:#173a4d;
  --theme-on-accent:#10232e; --theme-radius:2px;
  --theme-heading:ui-monospace, "Cascadia Mono", Consolas, monospace;
  --theme-shadow:4px 4px 0 #bd2d9560;
  --theme-pattern:radial-gradient(ellipse at 100% 0%,#b62f8824,transparent 42%),radial-gradient(ellipse at 0% 45%,#148bb71a,transparent 40%);
}
html[data-style="ps1-character"] {
  --theme-bg:#dde0e8; --theme-surface:#f4f5f9; --theme-raised:#cbd0df;
  --theme-ink:#252a42; --theme-muted:#555e78; --theme-line:#939db9;
  --theme-accent:#454c9a; --theme-accent-hover:#333b7d; --theme-soft:#e2e3f3;
  --theme-radius:3px; --theme-heading:"Arial Black", "Segoe UI", sans-serif;
  --theme-shadow:inset 1px 1px 0 #fff,3px 3px 0 #7e88a544;
  --theme-pattern:linear-gradient(135deg,#aab3d033 25%,transparent 25%),linear-gradient(225deg,#b7c0dc22 25%,transparent 25%);
  --theme-pattern-size:230px 230px;
}
html[data-style="miniature"] {
  --theme-bg:#f1f2eb; --theme-surface:#fffdf7; --theme-raised:#e1e7dc;
  --theme-ink:#303c35; --theme-muted:#59675e; --theme-line:#a3b2a1;
  --theme-accent:#4b6a55; --theme-accent-hover:#34543e; --theme-soft:#e0eadd;
  --theme-radius:13px; --theme-heading:"Trebuchet MS", "Segoe UI", sans-serif;
  --theme-shadow:0 5px 0 #b8956e35,0 14px 28px #45493a0c;
  --theme-pattern:radial-gradient(ellipse at 100% 0%,#c8d4bc44,transparent 45%);
}
html[data-style="plush"] {
  --theme-bg:#fff3e9; --theme-surface:#fffaf4; --theme-raised:#f1e0d3;
  --theme-ink:#50382f; --theme-muted:#765b4d; --theme-line:#b69a85;
  --theme-accent:#935044; --theme-accent-hover:#773c33; --theme-soft:#f6e1d5;
  --theme-radius:24px; --theme-heading:"Trebuchet MS", "Segoe UI", sans-serif;
  --theme-shadow:0 8px 0 #d9bea52b,0 14px 32px #794c3210;
  --theme-pattern:radial-gradient(ellipse at 100% 0%,#bac69a30,transparent 40%),radial-gradient(ellipse at 0% 40%,#efb99c24,transparent 40%);
}
html[data-style="brick-world"] {
  --theme-bg:#f4f7fb; --theme-surface:#ffffff; --theme-raised:#e2e9f4;
  --theme-ink:#21314b; --theme-muted:#566680; --theme-line:#9faec4;
  --theme-accent:#245bb2; --theme-accent-hover:#17458e; --theme-soft:#e2ecff;
  --theme-radius:5px; --theme-heading:"Arial Black", "Segoe UI", sans-serif;
  --theme-shadow:0 5px 0 #c9d5e8;
  --theme-pattern:radial-gradient(circle at 10px 10px,#2359a60a 0 5px,transparent 6px);
  --theme-pattern-size:40px 40px;
}
html[data-style="caricature"] {
  --theme-bg:#fff8e9; --theme-surface:#fffdf5; --theme-raised:#f0e6d4;
  --theme-ink:#302b27; --theme-muted:#6c5d4e; --theme-line:#b4a48d;
  --theme-accent:#9e4c1d; --theme-accent-hover:#7d3613; --theme-soft:#f7e6d1;
  --theme-radius:5px; --theme-heading:Georgia, "Times New Roman", serif;
  --theme-shadow:3px 4px 0 #302b2724;
  --theme-pattern:repeating-linear-gradient(0deg,transparent 0 31px,#80674d0b 31px 32px);
}
html[data-style="film-nostalgia"] {
  --theme-bg:#201c19; --theme-surface:#2c2621; --theme-raised:#3b332c;
  --theme-ink:#f4eadf; --theme-muted:#c7baaa; --theme-line:#756957;
  --theme-accent:#e0b87e; --theme-accent-hover:#f9d5a1; --theme-soft:#443826;
  --theme-on-accent:#2e2316; --theme-radius:3px;
  --theme-heading:Georgia, "Times New Roman", serif;
  --theme-shadow:0 9px 20px #0002;
  --theme-pattern:radial-gradient(ellipse at 0% 0%,#c4915d14,transparent 48%);
}
html[data-style="comic-book"] {
  --theme-bg:#fff5c9; --theme-surface:#fffdf0; --theme-raised:#f0e4b5;
  --theme-ink:#20243a; --theme-muted:#595848; --theme-line:#30364c;
  --theme-accent:#b52d34; --theme-accent-hover:#942129; --theme-soft:#f9e2d6;
  --theme-radius:2px; --theme-heading:Impact, "Arial Black", sans-serif;
  --theme-shadow:5px 5px 0 #20243a;
  --theme-pattern:radial-gradient(#252a4212 .8px,transparent 1px);
  --theme-pattern-size:9px 9px;
}
html[data-style="claymation"] {
  --theme-bg:#f5e6d8; --theme-surface:#fff6eb; --theme-raised:#e8d3bd;
  --theme-ink:#4a3028; --theme-muted:#705448; --theme-line:#b2927d;
  --theme-accent:#99503a; --theme-accent-hover:#7b3c29; --theme-soft:#f1d9c6;
  --theme-radius:25px; --theme-heading:"Trebuchet MS", "Segoe UI", sans-serif;
  --theme-shadow:0 6px 0 #b47f5330,0 14px 28px #6b3f2312;
  --theme-pattern:radial-gradient(ellipse at 100% 0%,#d99e7240,transparent 48%);
}
html[data-style="sticker"] {
  --theme-bg:#faf3ff; --theme-surface:#ffffff; --theme-raised:#eee1f2;
  --theme-ink:#402842; --theme-muted:#715674; --theme-line:#b69abc;
  --theme-accent:#963a70; --theme-accent-hover:#7d285a; --theme-soft:#f5dfee;
  --theme-radius:22px; --theme-heading:"Trebuchet MS", "Segoe UI", sans-serif;
  --theme-shadow:4px 5px 0 #cfb1d266,0 0 0 4px #fff;
  --theme-pattern:radial-gradient(ellipse at 100% 0%,#edb9dc38,transparent 45%),radial-gradient(ellipse at 0% 60%,#cdbce533,transparent 42%);
}
html[data-style="desk-figurine"] {
  --theme-bg:#17191e; --theme-surface:#23262b; --theme-raised:#303338;
  --theme-ink:#f4ebdd; --theme-muted:#c4bbaa; --theme-line:#716759;
  --theme-accent:#dbb77e; --theme-accent-hover:#f4d49e; --theme-soft:#3b3429;
  --theme-on-accent:#2d2418; --theme-radius:6px;
  --theme-heading:Georgia, "Times New Roman", serif;
  --theme-shadow:0 9px 0 #0c0f1266,0 16px 30px #0002;
  --theme-pattern:radial-gradient(ellipse at 50% 0%,#bd976519,transparent 55%);
}
html[data-style="ms-paint"] {
  --theme-bg:#c6c6c6; --theme-surface:#eeeeee; --theme-raised:#d5d5d5;
  --theme-ink:#111111; --theme-muted:#4c4c4c; --theme-line:#777777;
  --theme-accent:#173d91; --theme-accent-hover:#102c70; --theme-soft:#dbe4fb;
  --theme-radius:0px; --theme-heading:Tahoma, "Segoe UI", Arial, sans-serif;
  --theme-shadow:inset 1px 1px 0 #fff,3px 3px 0 #808080;
}
html[data-style="editorial"] {
  --theme-bg:#f8f7f3; --theme-surface:#ffffff; --theme-raised:#ebe9e3;
  --theme-ink:#181818; --theme-muted:#5c5a54; --theme-line:#b2afa6;
  --theme-accent:#353535; --theme-accent-hover:#101010; --theme-soft:#efede7;
  --theme-radius:0px; --theme-heading:Georgia, "Times New Roman", serif;
  --theme-shadow:none;
}
html:is([data-style="retro-console"],[data-style="pixel-art"],[data-style="pixel-arcade"],[data-style="film-nostalgia"],[data-style="desk-figurine"]) {
  color-scheme:dark;
  --theme-error:#ffb7c2; --theme-error-bg:#3d2029; --theme-error-line:#a75d6b;
  --theme-success:#a6e4be; --theme-success-bg:#1f392c; --theme-success-line:#62967a;
}

html[data-style] body {
  min-height:100vh;
  color:var(--text);
  background:var(--bg);
  background-image:var(--theme-pattern);
  background-size:var(--theme-pattern-size);
  font-family:"Segoe UI",system-ui,Arial,sans-serif;
}
html[data-style] :is(button,input,textarea,select) { font-family:inherit; }
html[data-style] :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select) {
  font-size:1rem;
  color:var(--text);
  background:var(--surface);
  border-color:var(--border);
}
html[data-style] :is(input,textarea)::placeholder { color:var(--muted); opacity:1; }
html[data-style] :is(button,.button,.primary,.secondary,select,.chip) { min-height:44px; }
html[data-style] :is(button,a,input,textarea,select,summary):focus-visible,
html[data-style] .dropzone:focus-within {
  outline:3px solid var(--accent);
  outline-offset:4px;
}
html[data-style] :is(a:hover,.text-button,.browse,.upload-icon,.drop-content svg,.step-icon,.sun-icon) { color:var(--accent); }
html[data-style] :is(.intro h1,.trend-heading h1,.admin-main>h1,.document h1) {
  font-family:var(--theme-heading);
  letter-spacing:-.035em;
  color:var(--text);
}
html[data-style] :is(h1 span,h1 em) {
  background:none;
  color:var(--accent);
  -webkit-text-fill-color:currentColor;
}
html[data-style] :is(.eyebrow,.intro .eyebrow,.status-heading .eyebrow) { color:var(--accent); }
html[data-style] :is(.header-label,.brand-label) { border-color:var(--line); }
html[data-style] :is(.site-header,footer,.output-top,.output-bottom,.result-tabs,.card-meta) { border-color:var(--line); }
html[data-style] .site-header { background:var(--surface); }
html[data-style] .site-header .home-link { color:var(--muted); }
html[data-style] .site-header nav a.active { border-color:var(--accent); }
html[data-style] :is(.header-label,.tag,.preview-label,.section-title span,.variant small,.file-info,.privacy,.seed-help,.form-hint,.photo-actions,.image-state,.status-pill) { font-size:.875rem; }
html[data-style] :is(.drop-copy span:last-child,.drop-copy strong,.form-error,.controls summary,.notes summary) { font-size:.875rem; }
html[data-style] .style-logo { width:260px; height:86px; max-width:75vw; object-fit:contain; }
html[data-style] :is(.upload-panel,.results-panel,.controls,.output-panel,.style-examples,.notes,.history-card,.moderation-card,.community-card) {
  color:var(--text);
  background:var(--surface);
  border-color:var(--line);
  border-radius:var(--radius);
  box-shadow:var(--theme-shadow);
}
html[data-style] :is(.status-panel,.queue-estimate,.quota-panel,.sharing-choice,.photo-tip,.edition,.progress-box:not(.error)) {
  color:var(--text);
  background:var(--theme-soft);
  border-color:var(--line);
  border-radius:var(--radius);
}
html[data-style] .sharing-status { border-color:var(--accent); }
html[data-style] :is(.edition div span,.photo-tip,.desktop-drop-help,.controls summary,.notes summary,.example-grid figcaption,footer span:first-child) { color:var(--text); }
html[data-style] :is(.lede,.muted,.drop-content,.drop-copy span:last-child,.file-info,.privacy,.status-detail,.status-foot,.form-hint,.seed-help,.notes,.document p,.document li,.moderation-card p,.output-bottom p,.history-card p) { color:var(--muted); }
html[data-style] :is(.tag,.tag.soft,.preview-label,.status-pill,#history-count) {
  color:var(--accent);
  background:var(--theme-soft);
  border-color:var(--line);
}
html[data-style] :is(.button,.secondary,.lightbox-close,#lightbox-close,.lightbox-footer .secondary) {
  background:var(--theme-raised);
  color:var(--text);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:none;
  font-size:.9375rem;
}
html[data-style] :is(.button:hover,.secondary:hover,.lightbox-close:hover,#lightbox-close:hover) {
  background:var(--theme-soft);
  color:var(--text);
  border-color:var(--accent);
}
html[data-style] :is(.primary,.button.primary,.chip.active) {
  color:var(--theme-on-accent);
  background:var(--accent);
  border-color:var(--accent);
  box-shadow:none;
}
html[data-style] :is(.primary:hover,.button.primary:hover,.chip.active:hover) {
  color:var(--theme-on-accent);
  background:var(--theme-accent-hover);
  border-color:var(--theme-accent-hover);
}
html[data-style] .button.ghost { background:var(--surface); }
html[data-style] .button.ghost:hover { background:var(--theme-soft); }
html[data-style] .chip { color:var(--muted); border-color:var(--line); }
html[data-style] .chip.active { color:var(--theme-on-accent); }
html[data-style] :is(.field,.search,.variant,.dropzone,.prompt-preview,.admin-login input,.document input[type="password"],.moderation-switch select) {
  color:var(--text);
  background:var(--surface);
  border-color:var(--line);
  border-radius:var(--radius);
}
html[data-style] :is(.dropzone:hover,.dropzone.dragging,.dropzone.dragover,.variant:has(input:checked)) {
  background:var(--theme-soft);
  border-color:var(--accent);
}
html[data-style] :is(input[type="checkbox"],input[type="radio"]) { accent-color:var(--accent); }
html[data-style] .replace { background:var(--surface); color:var(--text); border:1px solid var(--line); }
html[data-style] .progress-track { background:var(--theme-raised); }
html[data-style] #progress-fill { background:var(--accent); }
html[data-style] :is(#queue-position,#quota-timer,.progress-value) { color:var(--accent); }
html[data-style] .spinner { border-color:var(--line); border-top-color:var(--accent); }
html[data-style] .portrait.rendering { outline-color:var(--accent); }
html[data-style] .worker-status.online .status-dot { background:var(--theme-success); }

/* Neutral viewing surfaces are shared by every theme, including light themes. */
html[data-style] :is(.image-pane,.image-pane img,.image-pane button,.portrait,.portrait img,.peach,.pink,.lilac,.history-images,.history-images img,.example-grid img,.moderation-card img,.dropzone img,.upload-thumb,.card-image,#lightbox-image,dialog img) {
  background:var(--image-canvas);
}
html[data-style] .portrait:before { display:none; }
html[data-style] :is(.placeholder,.image-state,.star) { color:#f1f2f4; }
html[data-style] .empty-output { color:#d7dade; background:var(--image-canvas); }
html[data-style] .image-pane .pending-preview { opacity:1; }
html[data-style] :is(.image-pane figcaption,.image-open span,.image-open:hover span,.card-tag) {
  color:#fff;
  background:#25282df2;
  border-color:#7b818a;
}
html[data-style] :is(dialog,#lightbox) { color:var(--text); background:var(--surface); border-color:var(--line); border-radius:var(--radius); }
html[data-style] :is(dialog::backdrop,#lightbox::backdrop) { background:#101216df; }
html[data-style] :is(#lightbox-counter,#lightbox-message) { color:var(--muted); }
html[data-style] #lightbox :is(button,a):focus-visible { outline-color:var(--accent); }
html[data-style] #toast { color:var(--surface); background:var(--text); }
html[data-style] .skip { color:var(--theme-on-accent); background:var(--accent); }
html[data-style] .file-drop-overlay {
  border-color:var(--accent);
  background:var(--surface);
  box-shadow:0 0 0 18px #101216b3;
}
html[data-style] .file-drop-overlay h2 { color:var(--text); }
html[data-style] .file-drop-overlay p { color:var(--muted); }
html[data-style] .drop-symbol { color:var(--accent); }

/* Status colors carry the same meaning regardless of the decorative palette. */
html[data-style] :is(.error,.form-error,.status-pill.error) { color:var(--theme-error); }
html[data-style] :is(.error,.progress-box.error) { background:var(--theme-error-bg); border-color:var(--theme-error-line); }
html[data-style] .progress-box.error :is(p,strong) { color:var(--theme-error); }
html[data-style] :is(.danger,.danger:hover) { color:var(--theme-error); border-color:var(--theme-error-line); background:var(--theme-error-bg); }
html[data-style] .status-pill.done { color:var(--theme-success); background:var(--theme-success-bg); }
html[data-style] :is(button:disabled,.button[aria-disabled="true"]) { cursor:not-allowed; }

/* Material cues live on the interface frames, never over the artwork. */
html[data-style="model-kit"] :is(.site-header,.controls,.upload-panel,.style-examples) { border-width:2px; }
html[data-style="model-kit"] :is(.eyebrow,.preview-label,.tag) { font-family:ui-monospace,Consolas,monospace; }
html[data-style="ghibli"] :is(.intro h1,.trend-heading h1) { font-weight:500; }
html[data-style="ghibli"] .site-header { border-bottom:3px double var(--line); }
html[data-style="retro-console"] .site-header { border-bottom:4px solid #e9bc48; box-shadow:0 3px 0 #b44848; }
html[data-style="retro-console"] :is(.controls,.upload-panel,.results-panel) { border-top:3px solid #838994; }
html[data-style="action-figure"] :is(.site-header,.output-top) { border-bottom:4px solid var(--accent); }
html[data-style="action-figure"] :is(.controls,.upload-panel,.style-examples) { border-top:5px solid #3154a2; }
html:is([data-style="pixel-art"],[data-style="pixel-arcade"]) :is(.intro h1,.trend-heading h1) { letter-spacing:-.065em; line-height:1.18; }
html:is([data-style="pixel-art"],[data-style="pixel-arcade"]) :is(.controls,.upload-panel,.results-panel,.output-panel,.style-examples,.notes) { border-width:2px; }
html[data-style="pixel-arcade"] .site-header { border-bottom:2px solid #43e8f1; box-shadow:0 3px 0 #cf429c; }
html[data-style="ps1-character"] :is(.controls,.upload-panel,.results-panel,.style-examples) { border-top-color:#fff; border-left-color:#fff; border-right-width:2px; border-bottom-width:2px; }
html[data-style="miniature"] :is(.controls,.upload-panel,.results-panel,.style-examples) { border-bottom:4px solid #a78663; }
html[data-style="plush"] :is(.controls,.upload-panel,.results-panel,.style-examples,.notes) { border:2px dashed #b69a85; }
html[data-style="plush"] :is(.intro h1,.trend-heading h1) { letter-spacing:-.045em; font-weight:750; }
html[data-style="plush"] .site-header { border-bottom:2px dashed #b69a85; }
html[data-style="brick-world"] .site-header { border-bottom:5px solid #245bb2; box-shadow:0 3px 0 #d9a52e; }
html[data-style="brick-world"] :is(.controls,.upload-panel,.style-examples) { border-top:5px solid #c43b3d; }
html[data-style="caricature"] :is(.intro h1,.trend-heading h1) { font-style:italic; }
html[data-style="caricature"] :is(.controls,.upload-panel,.results-panel,.notes) { border:2px solid #5b4b3c; border-radius:6px 10px 5px 8px; }
html[data-style="film-nostalgia"] :is(.style-examples,.output-panel,.results-panel) { border-top:7px solid #e8dcc9; }
html[data-style="film-nostalgia"] :is(.tag,.preview-label,.eyebrow,.card-caption) { font-family:ui-monospace,Consolas,monospace; }
html[data-style="comic-book"] :is(.intro h1,.trend-heading h1) { text-transform:uppercase; letter-spacing:.005em; font-weight:700; }
html[data-style="comic-book"] :is(.controls,.upload-panel,.results-panel,.output-panel,.style-examples,.notes) { border:2px solid #20243a; }
html[data-style="comic-book"] .site-header { border-bottom:3px solid #20243a; }
html[data-style="claymation"] :is(.controls,.upload-panel,.results-panel,.style-examples,.notes) { border-width:2px; border-radius:28px 20px 25px 22px; }
html[data-style="sticker"] :is(.controls,.upload-panel,.results-panel,.output-panel,.style-examples) { border:2px solid #ac83b1; }
html[data-style="desk-figurine"] :is(.site-header,.intro,.trend-heading) { border-bottom:1px solid #9c825a; }
html[data-style="desk-figurine"] :is(.intro h1,.trend-heading h1) { font-weight:500; }
html[data-style="ms-paint"] :is(.controls,.upload-panel,.results-panel,.output-panel,.style-examples) { border:2px solid #fff; border-right-color:#777; border-bottom-color:#777; }
html[data-style="ms-paint"] :is(.output-top,.site-header) { color:#fff; background:#173d91; border-color:#fff; }
html[data-style="ms-paint"] .site-header :is(a,.header-label,.brand-label,.brand-dot,nav a,nav a.active,.worker-status) { color:#fff; }
html[data-style="ms-paint"] .site-header :is(.header-label,.brand-label) { border-color:#9fb6e5; }
html[data-style="ms-paint"] .site-header nav a.active { border-bottom-color:#ffde43; }
html[data-style="ms-paint"] .site-header :is(a,button):focus-visible { outline-color:#ffde43; }
html[data-style="ms-paint"] .output-top .preview-label { color:#fff; background:#173d91; border-color:#aabde7; }
html[data-style="editorial"] :is(.intro h1,.trend-heading h1) { font-weight:400; letter-spacing:-.055em; }
html[data-style="editorial"] :is(.site-header,.intro,.trend-heading) { border-bottom:1px solid #353535; }
html[data-style="editorial"] :is(.controls,.upload-panel,.results-panel,.style-examples,.notes) { box-shadow:none; border-top:2px solid #353535; }

@media (max-width:780px) {
  html[data-style] .style-logo { width:230px; height:77px; }
  html[data-style] :is(.controls,.upload-panel,.results-panel,.style-examples,.notes) { box-shadow:none; }
  html[data-style] .tag { white-space:normal; }
  html[data-style] .moderation-switch select { width:100%; max-width:100%; }
}
@media (max-width:480px) {
  html[data-style] .site-header { background:var(--surface); }
  html[data-style="ms-paint"] .site-header { background:#173d91; }
  html[data-style] .style-logo { width:210px; height:70px; max-width:80vw; }
  html[data-style] :is(.intro h1,.trend-heading h1) { overflow-wrap:anywhere; }
  html[data-style] .example-grid figcaption { font-size:.875rem; line-height:1.45; }
  html[data-style] :is(.primary,.secondary,.button) { font-size:.9375rem; }
}
@media (prefers-reduced-motion:reduce) {
  html[data-style] *,html[data-style] *::before,html[data-style] *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}
