/* Exact v6 theme variables only. Map to the existing app theme system.
   Component styles and motion remain in preview/. This is not a complete UI stylesheet. */
:root {
  color-scheme: light;
  --bg: #fafafa;
  --side: #f4f4f4;
  --surface: #ffffff;
  --ink: #1c1c1c;
  --muted: #6b6b6b;
  --line: #e2e2e2;
  --accent: #202020;
  --soft: #eeeeee;
  --ring: #707070;
  --shadow: 0 12px 36px #00000005, 0 1px 3px #00000004;
  --glass: #ffffffeb;
  --node: #606060;
  --glow: #0000000a;
  --hero-line: #c8c8c8;
  --photo-shadow: 0 16px 44px #00000010;
  --control-bg: #f6f6f6;
  --control-hover: #ededed;
  --silver: #202020;
  --on-silver: #ffffff;
  --ice: #202020;
  --ice-dim: #ebebeb;
  --workspace-border: #0000000c;
  --workspace-highlight: #ffffff;
  --glass-edge: #e4e4e4;
  --glass-shade: #00000008;
  --title-soft: #333333;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121212;
  --side: #161616;
  --surface: #1c1c1c;
  --ink: #f2f2f2;
  --muted: #a0a0a0;
  --line: #363636;
  --accent: #eeeeee;
  --soft: #292929;
  --ring: #b5b5b5;
  --shadow: 0 16px 40px #00000018, 0 1px 3px #00000012;
  --glass: #1c1c1ceb;
  --node: #b0b0b0;
  --glow: #ffffff10;
  --hero-line: #484848;
  --photo-shadow: 0 16px 44px #00000040;
  --control-bg: #242424;
  --control-hover: #303030;
  --silver: #eeeeee;
  --on-silver: #1c1c1c;
  --ice: #eeeeee;
  --ice-dim: #303030;
  --workspace-border: #ffffff0b;
  --workspace-highlight: #ffffff0a;
  --glass-edge: #363636;
  --glass-shade: #0000001c;
  --title-soft: #dedede;
}

:root {
 --ui-canvas:var(--bg);--ui-surface:var(--surface);--ui-rail:var(--side);--ui-ink:var(--ink);--ui-muted:var(--muted);
 --ui-placeholder:var(--muted);--ui-line:var(--line);--ui-control-line:#b0b0b0;--ui-soft:var(--soft);--ui-selected:var(--ice-dim);--ui-focus:var(--ring);
 --ctl-line:var(--ui-control-line);--ctl-line-hover:var(--ring);--ctl-soft:var(--soft);--ctl-soft-hover:var(--control-hover);--ctl-focus:var(--ring);--paper:var(--surface);
 --ui-success:#376045;--ui-success-bg:#edf4ed;--ui-warning:#795211;--ui-warning-bg:#fcf4e5;--ui-danger:#963c35;--ui-danger-bg:#fcf0ed;
}
:root[data-theme="dark"] {
 --ui-control-line:#666666;--ui-success:#9ed5af;--ui-success-bg:#1d3225;--ui-warning:#ecc47e;--ui-warning-bg:#382d1c;--ui-danger:#f2aaa2;--ui-danger-bg:#3a2523;
}
html {color-scheme:light;scrollbar-color:var(--ui-control-line) var(--ui-canvas)}
html[data-theme="dark"] {color-scheme:dark}
::selection {background:var(--ui-selected);color:var(--ui-ink)}
html body :is(.primary-button,.primary,.new-project) {background:var(--silver);color:var(--on-silver);border-color:var(--silver);box-shadow:0 2px 5px var(--glass-shade)}
html body :is(.primary-button,.primary,.new-project):hover:not(:disabled) {background:color-mix(in srgb,var(--silver) 88%,var(--surface));color:var(--on-silver);border-color:var(--silver)}
html body :is(.nav-item.active,.composer-tab.active,.settings-tabs [aria-selected="true"],.task-nav-item.selected) {background:var(--surface);color:var(--ink);border-color:var(--line);box-shadow:0 1px 3px var(--glass-shade)}
html body :is(.filters button.active,.human-method.selected,.scene-options>button[aria-pressed="true"]) {background:var(--ui-selected);color:var(--ink);border-color:var(--line)}
html body :is(.task-nav-item.selected small,.task-nav-item.selected time) {color:var(--ink)}
html body :is(.composer,.conversation-composer) {border-color:var(--line);box-shadow:0 1px 3px var(--glass-shade)}
html body :is(.composer,.conversation-composer):focus-within {border-color:var(--ui-control-line)}
html body :is(dialog,.work-card,.creation-result-card) {background:var(--surface);border-color:var(--line)}
html body dialog {box-shadow:0 24px 80px #00000030}
html body dialog::backdrop {background:#00000040}
html body :is(.demo-note,.settings-note) {color:var(--muted)!important}
html body :is(button,[role="button"]):is(:disabled,[aria-disabled="true"]) {background:var(--soft);color:var(--muted);border-color:var(--line);box-shadow:none}
html body :is(.form-error,#studioLoginError,.creation-error) {color:var(--ui-danger)}
html body .form-error {background:var(--ui-danger-bg)}
html body :is(.danger-button,[data-delete-draft],[data-delete-work],[data-delete-asset],[data-delete-profile],[data-delete-job]) {color:var(--ui-danger)}
html body .appearance-toolbar {display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:calc(12px * var(--ui-text-scale,1))}
html body .appearance-toolbar label {display:flex;gap:8px;align-items:center;margin:0}
html body .appearance-toolbar select {width:auto;margin:0}
html body .appearance-toolbar input {margin:0}
html body #loginAppearance {background:var(--silver);color:var(--on-silver);border:1px solid var(--silver);border-radius:99px;box-shadow:0 2px 8px var(--glass-shade)}

:root {--ui-info:#3d4d66;--ui-info-bg:#e8edf5}
:root[data-theme="dark"] {--ui-info:#b3c8ea;--ui-info-bg:#252f40}
html body :is(.type-pill,.favorite-button) {background:var(--surface);color:var(--ink)}
html body .favorite-button.saved svg {fill:currentColor;stroke:currentColor}
html body :is(.creation-plan-chip.is-selected,.material-badge-main) {background:var(--silver);color:var(--on-silver)}
html body .creation-plan-chip.is-selected small {color:var(--on-silver)}
html body :is(.batch-error,.batch-status.error) {color:var(--ui-danger);background:var(--ui-danger-bg)}

/* F4 C: feedback on existing controls; no state or layout animation. */
html body :is(.primary-button,.secondary-button,.primary,.new-project,.material-op,.material-add) {transition:background-color 160ms ease,border-color 160ms ease,box-shadow 160ms ease,transform 160ms ease}
html body :is(input,select,textarea) {transition:border-color 180ms ease,box-shadow 180ms ease,background-color 180ms ease}
html body :is(.featured-card,.art-card,.work-card) {transition:transform 180ms ease,box-shadow 180ms ease}
html body :is(.featured-card>img,.art-image img) {transition:transform 500ms cubic-bezier(.2,.65,.3,1)}
@media(hover:hover) and (pointer:fine) {
 html body :is(.featured-card,.art-card,.work-card):hover {transform:translateY(-3px);box-shadow:0 8px 18px var(--glass-shade)}
 html body :is(.featured-card:hover>img,.art-card:hover .art-image img) {transform:scale(1.025)}
 html[data-ui-input="pointer"] body :is(.primary-button,.primary):hover:not(:disabled) {transform:translateY(-1px)}
}
html[data-ui-input="pointer"] body :is(.primary-button,.primary):active:not(:disabled) {transform:scale(.985)}
html[data-motion="off"] *,html[data-motion="off"] *::before,html[data-motion="off"] *::after {animation:none!important;transition:none!important;scroll-behavior:auto!important}
html[data-motion="off"] body :is(.featured-card,.art-card,.work-card,.primary-button,.primary):is(:hover,:active),html[data-motion="off"] body :is(.featured-card:hover>img,.art-card:hover .art-image img) {transform:none}
@media(prefers-reduced-motion:reduce) {
 *,*::before,*::after {animation:none!important;transition:none!important;scroll-behavior:auto!important}
 html body :is(.featured-card,.art-card,.work-card,.primary-button,.primary):is(:hover,:active),html body :is(.featured-card:hover>img,.art-card:hover .art-image img) {transform:none}
}
