/* Creator shares the application's saved theme on desktop and phones. */
.creator-mode .context-trail-actions #themeButton{display:grid;place-items:center;flex:none;width:34px;min-width:34px;height:34px;padding:0;border:1px solid var(--line);border-radius:var(--radius-ui);color:var(--ink);background:transparent;font-size:18px;line-height:1}
.creator-mode #themeButton .theme-label{display:none}

html[data-theme=dark] .creator-mode{color-scheme:dark;--ink:#f1eee5;--panel:#191a18;--bg:#101110;--raised:#242521;--line:#3b3e35;--muted:#abb0a2;--button:#ffffff;--buttonInk:#101110;--stage:#101110;--accent:#ffffff;--creator-blue:#ffffff;color:var(--ink);background:var(--bg)}
html[data-theme=dark] .creator-mode :is(.context-trail,.config,.creator-editor,.creator-background-panel){background:var(--panel);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .creator-mode .stage{background:var(--stage)}
html[data-theme=dark] .creator-mode .creator-glove-type select{color-scheme:dark;background:var(--panel);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .creator-mode .creator-wordmark{color:var(--muted)}
html[data-theme=dark] .creator-mode .creator-wordmark img{filter:invert(1);mix-blend-mode:screen}
html[data-theme=dark] .creator-mode .creator-wordmark small{border-color:var(--line)}
html[data-theme=dark] .creator-mode #creatorSaveStatus{color:var(--muted)}
html[data-theme=dark] .creator-mode #creatorSaveStatus:before{border-color:var(--muted)}
html[data-theme=dark] .creator-mode .studio-mode-switch button[aria-pressed=true]{background:var(--accent);color:var(--bg)}
html[data-theme=dark] .creator-mode :is(#creatorReview,#creatorShare,.creator-primary,.config .primary){background:transparent;color:var(--ink);border:1px solid var(--ink)}
html[data-theme=dark] .creator-mode :is(.creator-tools-toggle,.creator-scene-button,.creator-canvas-toolbar){background:#191a18ed;color:var(--ink);border-color:var(--line);box-shadow:0 4px 18px #0004}
html[data-theme=dark] .creator-mode .creator-canvas-toolbar button{color:var(--ink)}
html[data-theme=dark] .creator-mode .creator-canvas-toolbar button:hover{background:var(--raised)}
html[data-theme=dark] .creator-mode .creator-canvas-toolbar i{background:var(--line)}
html[data-theme=dark] .creator-mode :is(.creator-editor-head,.creator-editor-tabs,.creator-placement-sliders,.creator-mark-actions,.creator-backdrop-tuning){border-color:var(--line)}
html[data-theme=dark] .creator-mode :is(.creator-editor-head h2,.creator-background-panel h2,.creator-range output){color:var(--ink)}
html[data-theme=dark] .creator-mode :is(.creator-editor-head small,.creator-editor-head button,.creator-background-panel>header button,.creator-background-panel>header small,.creator-scene-button small,.creator-welting legend,.creator-field,.creator-font-picker>span,.creator-thread-label,.creator-range,.creator-lock,.creator-editor-hint,.creator-background-intro,.creator-empty p,.creator-background-grid>button>small,.creator-editor .surface-palette-heading span,.creator-editor .surface-palette-note){color:var(--muted)}
html[data-theme=dark] .creator-mode .creator-editor-tabs button{color:var(--muted)}
html[data-theme=dark] .creator-mode .creator-editor-tabs button.active{color:var(--accent);border-bottom-color:var(--accent)}
html[data-theme=dark] .creator-mode :is(.creator-field input,.creator-field select,.creator-font-picker>button,.creator-font-options,.creator-font-options button,.creator-mark-list button,.creator-welting button,.creator-background-grid>button,.creator-art-preview span){background:var(--panel);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .creator-mode :is(.creator-font-sample,.creator-upgrade,.creator-upload){background:var(--raised);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .creator-mode :is(.creator-upgrade small,.creator-upgrade b,.creator-art-preview span){color:var(--muted)}
html[data-theme=dark] .creator-mode .creator-font-options button:hover{background:var(--raised)}
html[data-theme=dark] .creator-mode :is(.creator-font-options button[aria-selected=true],.creator-mark-list button[aria-pressed=true],.creator-welting button[aria-pressed=true],.creator-editor-head #creatorPin[aria-pressed=true],.config .step-tab.active){background:#292929;color:var(--accent);border-color:var(--accent)}
html[data-theme=dark] .creator-mode .creator-editor .surface-swatch.active{outline-color:var(--accent)!important}
html[data-theme=dark] .creator-mode .creator-background-grid>button>span{border-color:var(--line)}
html[data-theme=dark] .creator-mode .creator-background-grid>button[aria-pressed=true]>span{outline-color:var(--accent)}
html[data-theme=dark] .creator-mode .creator-background-grid>button[aria-pressed=true]>b{color:var(--accent)}
html[data-theme=dark] .creator-mode .creator-editor-head #creatorPreview{background:var(--raised);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .creator-mode .creator-link{color:var(--ink)}
html[data-theme=dark] .creator-mode .creator-link:hover{color:var(--accent)}
html[data-theme=dark] .creator-mode :is(.creator-link.danger,.creator-wording-error){color:#ffaaa1}
html[data-theme=dark] .creator-mode :is(.creator-range input[type=range],.creator-lock input){accent-color:var(--accent)}
html[data-theme=dark] .creator-mode :is(.creator-field input:focus,.creator-font-picker button:focus-visible,button:focus-visible,.creator-upload:focus-within){outline-color:var(--accent);border-color:var(--accent)}
html[data-theme=dark] .creator-mode .creator-field input[aria-invalid=true]{border-color:#ffaaa1;outline-color:#ffaaa1}
html[data-theme=dark] .creator-mode .creator-art-preview{background:repeating-conic-gradient(#242521 0% 25%,#191a18 0% 50%) 50% / 16px 16px;border-color:var(--line)}

/* Theme the sharing controls; the poster itself keeps the chosen artwork. */
html[data-theme=dark] .creator-mode :is(.creator-share-dialog,.creator-share-shell>header,.creator-share-controls){background:var(--panel);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .creator-mode .creator-share-preview{background:radial-gradient(ellipse at 50% 40%,#292c25,#101110)}
html[data-theme=dark] .creator-mode :is(.creator-share-shell>header>button,.creator-share-controls input,.creator-share-choices>button,.creator-poster-upload){background:var(--raised);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .creator-mode :is(.creator-share-shell>header small,.creator-share-preview>span,.creator-share-controls>label,.creator-share-controls>label>small,.creator-share-controls legend,.creator-poster-position-hint,.creator-poster-fine-position,.creator-poster-range,.creator-poster-backgrounds>button,.creator-share-help,#creatorPosterStatus){color:var(--muted)}
html[data-theme=dark] .creator-mode :is(.creator-poster-range output,.creator-poster-reset){color:var(--ink)}
html[data-theme=dark] .creator-mode .creator-share-controls .creator-poster-range input[type=range]{accent-color:var(--accent)}
html[data-theme=dark] .creator-mode .creator-poster-backgrounds>button>span{border-color:var(--line)}
html[data-theme=dark] .creator-mode .creator-poster-backgrounds>button[aria-pressed=true]>span{outline-color:var(--accent)}
html[data-theme=dark] .creator-mode .creator-poster-backgrounds>button[aria-pressed=true]>b{color:var(--accent)}
html[data-theme=dark] .creator-mode .creator-share-choices>button[aria-pressed=true]{background:#292929;color:var(--accent);border-color:var(--accent)}
html[data-theme=dark] .creator-mode :is(.creator-share-primary,.creator-share-secondary){background:transparent;color:var(--ink);border-color:var(--ink)}
html[data-theme=dark] .creator-mode .creator-share-dialog :is(button:focus-visible,input:focus-visible){outline-color:var(--accent)}

@media(max-width:768px){
  .creator-mode .context-trail .context-trail-actions{gap:6px}
  .creator-mode .context-trail-actions #themeButton{width:32px;min-width:32px;height:32px;font-size:17px}
}
@media(max-width:360px){
  .creator-mode .context-trail{gap:6px;padding:0 10px}
  .creator-mode .creator-wordmark img{width:22px;height:21px}
  .creator-mode .creator-wordmark small{font-size:10px;margin-left:6px;padding-left:6px}
  .creator-mode .studio-mode-switch button{min-width:42px;width:42px;padding:5px 4px}
}
