/* Independently selectable application and code palettes. Original inspired palettes. */
:root,[data-ui-theme="cockpit-dark"]{--bg:#0b1119;--panel:#111c29;--panel-2:#18283a;--input:#0d1825;--line:#31465c;--muted:#9aacbf;--text:#e2eaf4;--blue:#8ac3ff;--accent:#216bb5;--accent-text:#fff;--mint:#65d5ae;--amber:#edbf7c;--active:#203e60;--header:#0e1723;--shadow:#0002;--notice-bg:#133341;--notice-fg:#c3e9f3;--error-bg:#3a202a;--error-fg:#ffc2cb;--bs-body-bg:var(--bg);--bs-body-color:var(--text);--bs-border-color:var(--line);color-scheme:dark}
[data-ui-theme="claude-light"]{--bg:#f3f1eb;--panel:#faf9f5;--panel-2:#eeebe3;--input:#fffefa;--line:#d5cfc2;--muted:#706a60;--text:#302c27;--blue:#a54b31;--accent:#a94f35;--accent-text:#fff;--mint:#24694c;--amber:#8e560e;--active:#eee0d4;--header:#faf9f5;--shadow:#57472d0c;--notice-bg:#e9f0e7;--notice-fg:#31553e;--error-bg:#fae5df;--error-fg:#8c3025;color-scheme:light}
[data-ui-theme="claude-dark"]{--bg:#20201d;--panel:#292724;--panel-2:#33312d;--input:#211f1d;--line:#555047;--muted:#bbb2a4;--text:#ece6dc;--blue:#eab08d;--accent:#a65036;--accent-text:#fff;--mint:#a5ceac;--amber:#e5bc7c;--active:#4a372c;--header:#252420;--shadow:#0002;--notice-bg:#303c32;--notice-fg:#d0e0cc;--error-bg:#482c28;--error-fg:#ffc2ad}
[data-ui-theme="gpt-light"]{--bg:#f4f4f4;--panel:#fff;--panel-2:#f0f0f0;--input:#fff;--line:#d5d5d5;--muted:#626262;--text:#242424;--blue:#116149;--accent:#16765c;--accent-text:#fff;--mint:#136e50;--amber:#8c590c;--active:#dceee6;--header:#fff;--shadow:#00000008;--notice-bg:#e4f2ec;--notice-fg:#24543f;--error-bg:#fde8e7;--error-fg:#972c2c;color-scheme:light}
[data-ui-theme="gpt-dark"]{--bg:#171717;--panel:#212121;--panel-2:#2d2d2d;--input:#181818;--line:#4b4b4b;--muted:#b1b1b1;--text:#ececec;--blue:#83d8b8;--accent:#23735a;--accent-text:#fff;--mint:#7fd4ac;--amber:#e9c07a;--active:#244639;--header:#1c1c1c;--shadow:#0002;--notice-bg:#253e32;--notice-fg:#c8e9d7;--error-bg:#47292b;--error-fg:#f6b5bd}
[data-ui-theme="nord-dark"]{--bg:#242a35;--panel:#2e3440;--panel-2:#3b4252;--input:#272e39;--line:#566176;--muted:#b1bccd;--text:#eceff4;--blue:#a0d5df;--accent:#476681;--accent-text:#fff;--mint:#a3be8c;--amber:#ebcb8b;--active:#3f5267;--header:#2b313c;--shadow:#0002;--notice-bg:#344d59;--notice-fg:#d8e9ed;--error-bg:#50353e;--error-fg:#edbbc4}
[data-ui-theme="solarized-light"]{--bg:#eee8d5;--panel:#fdf6e3;--panel-2:#f1ead5;--input:#fffaed;--line:#c9bea2;--muted:#68777b;--text:#334b54;--blue:#176c8c;--accent:#177592;--accent-text:#fff;--mint:#406d42;--amber:#885b0b;--active:#e3e8d4;--header:#fdf6e3;--shadow:#5143260c;--notice-bg:#e1ebd6;--notice-fg:#385a3d;--error-bg:#f8e0d3;--error-fg:#9b392c;color-scheme:light}
[data-ui-theme="sap-light"]{--bg:#edf1f5;--panel:#fff;--panel-2:#f5f7f9;--input:#fff;--line:#d5dce3;--muted:#586b7c;--text:#223548;--blue:#0064d9;--accent:#0070f2;--accent-text:#fff;--mint:#188918;--amber:#9a6700;--active:#e5f1fc;--header:#fff;--shadow:#23384b10;--notice-bg:#eaf4fb;--notice-fg:#214967;--error-bg:#fff0ef;--error-fg:#a32121;color-scheme:light}
[data-ui-theme="sap-dark"]{--bg:#161a1d;--panel:#202529;--panel-2:#293136;--input:#1a1f22;--line:#455158;--muted:#b2bec6;--text:#f2f4f5;--blue:#91c8f6;--accent:#0070f2;--accent-text:#fff;--mint:#8cdb8c;--amber:#f2cc60;--active:#253b4d;--header:#1b2023;--shadow:#0003;--notice-bg:#233944;--notice-fg:#cae7f5;--error-bg:#4c2826;--error-fg:#ffd0cb;color-scheme:dark}
body{background:var(--bg);color:var(--text)}.app-header{background:var(--header);border-color:var(--line)}.brand,.brand:hover{color:var(--text)}.brand-mark{background:var(--panel-2);border-color:var(--line);color:var(--blue);box-shadow:none}.eyebrow,.brand-caption,.layout-hint,.muted,.helper,.input-meta,.workspace-footer,.login-note{color:var(--muted)}.blue,a,.text-button,.panel-symbol,.grip,.document-icon{color:var(--blue)}.quiet-button,.icon-button{color:var(--muted)}.quiet-button:hover,.icon-button:hover{background:var(--active);color:var(--text)}.text-button:hover{color:var(--text)}.mode-badge{color:var(--mint);border-color:var(--line);background:var(--panel-2)}.workflow-strip,.grid-stack-item-content.cockpit-panel{background:var(--panel);border-color:var(--line)}.cockpit-panel{box-shadow:0 4px 18px var(--shadow)}.panel-header{border-bottom-color:var(--line)}.panel-drag h2{color:var(--text);font-size:13px}.step>span{border-color:var(--line);color:var(--muted)}.step.active>span{background:var(--accent);color:var(--accent-text);border-color:var(--accent);box-shadow:none}.step.done>span{background:var(--active);color:var(--mint);border-color:var(--line)}.step small,.step:not(.active):not(.done){color:var(--muted)}.workflow-strip>b{color:var(--muted)}.notice{background:var(--notice-bg);color:var(--notice-fg);border-color:var(--line)}.notice.is-error,.error-banner{background:var(--error-bg);color:var(--error-fg);border-color:var(--line)}.inline-error{color:var(--error-fg)}.btn-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text);box-shadow:none}.btn-primary:hover,.btn-primary:focus-visible{background:color-mix(in srgb,var(--accent) 85%,var(--text));border-color:var(--accent);color:var(--accent-text)}.btn-primary:disabled{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.btn-outline-secondary{background:var(--panel-2);color:var(--text);border-color:var(--line)}.btn-outline-secondary:hover{background:var(--active);color:var(--text);border-color:var(--blue)}
.form-control,.form-select,.form-control:focus,.form-select:focus{background-color:var(--input);color:var(--text);border-color:var(--line)}.form-control:focus,.form-select:focus{border-color:var(--blue);box-shadow:0 0 0 2px color-mix(in srgb,var(--blue) 20%,transparent)}.form-control::placeholder{color:var(--muted)}.form-control:disabled,.form-select:disabled{background-color:var(--panel-2);color:var(--muted)}.task-settings label,.code-toolbar label{color:var(--text)}.task-input,.paste-input{min-height:105px;font-size:12px}.panel-body>*{flex-shrink:0}.panel-body>.task-input,.panel-body>.paste-input{flex-shrink:1}.panel-body{gap:12px;padding:15px}.master-summary,.history-card,.status-card{background:var(--panel-2);border-color:var(--line);color:var(--text)}.master-summary small,.history-text small,.history-state{color:var(--muted)}.history-card:hover,.history-card.selected{background:var(--active)}.history-card.selected{border-color:var(--blue);box-shadow:inset 3px 0 var(--blue)}.history-icon{color:var(--blue)}.history-state{border-color:var(--line)}.history-items{flex-shrink:1;min-height:48px}.history-card{min-height:48px}.history-text strong{font-size:12px}.history-toolbar{flex-shrink:0}.status-subheading{flex-wrap:wrap}.status-cards{min-height:185px;flex-shrink:0}.status-card{overflow:visible}.status-card-head button,.status-card-head strong{color:var(--text);font-size:12px}.status-card h3,.status-card ul{font-size:11px}.status-card li{color:var(--text)}.status-card .none,.empty-state,.empty-inline{color:var(--muted)}.completed{color:var(--mint)}.missing{color:var(--amber)}.empty-state strong{color:var(--text)}.empty-state>span{color:var(--blue)}.progress{background:var(--line)}.progress-bar{background:var(--mint)}.progress-bar.amber{background:var(--amber)}.pill{color:var(--blue);background:var(--active)}.main-tabs{border-color:var(--line)}.main-tabs button,.file-tabs button{color:var(--muted)}.main-tabs button.active{background:var(--active);color:var(--text);border-color:var(--blue)}.main-tabs button:hover,.file-tabs button:hover{color:var(--text)}.file-toolbar{background:var(--panel-2)}.file-tabs button.active{background:var(--active);color:var(--blue);box-shadow:inset 0 0 0 1px var(--line)}.focused{box-shadow:0 0 0 100vmax #050a12bd!important}.editor-settings{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex-shrink:0;padding:0 13px 10px;font-size:11px;color:var(--muted)}.editor-settings .form-select{width:auto;font-size:11px;max-width:210px;height:29px}.wrap-setting{display:flex;align-items:center;gap:6px;margin-left:auto;cursor:pointer}.wrap-setting input{accent-color:var(--accent)}.code-toolbar{flex-shrink:0}.code-view{flex-shrink:1!important}.code-view.wrap-code{white-space:pre-wrap;overflow-wrap:anywhere}.login-shell{background:var(--bg)}.login-card{background:var(--panel);border-color:var(--line)}.login-card label{color:var(--text)}
.app-dialog{color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:25px;max-width:440px}.app-dialog::backdrop{background:#050a12bb}.app-dialog h2{font-size:20px;margin-bottom:12px}.app-dialog p{line-height:1.7;margin-bottom:16px}.app-dialog form>div{display:flex;justify-content:flex-end;gap:10px}.appearance-dialog{width:min(680px,92vw);max-width:680px;max-height:90vh;overflow:auto}.appearance-dialog header{display:flex;justify-content:space-between;align-items:flex-start}.appearance-dialog legend{font-size:13px;font-weight:600;margin:7px 0 12px}.theme-options{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}.theme-choice{display:flex;flex-direction:column;gap:8px;padding:10px;border:1px solid var(--line);border-radius:8px;position:relative;cursor:pointer;font-size:12px}.theme-choice:has(input:checked){border-color:var(--blue);outline:1px solid var(--blue);background:var(--active)}.theme-choice input{position:absolute;bottom:12px;right:10px;accent-color:var(--accent)}.theme-choice:has(input:focus-visible){outline:3px solid var(--blue);outline-offset:2px}.theme-swatch{height:65px;background:var(--swatch-bg);border-radius:5px;position:relative;overflow:hidden;border:1px solid #8885}.swatch-sidebar{position:absolute;inset:0 auto 0 0;width:27%;background:var(--swatch-accent);opacity:.28}.swatch-line{position:absolute;left:35%;right:10%;height:5px;top:15px;background:var(--swatch-accent);opacity:.7;box-shadow:0 12px var(--swatch-accent)}.swatch-button{position:absolute;left:35%;width:28%;height:11px;bottom:9px;background:var(--swatch-accent);border-radius:2px}.theme-title{padding-right:18px}.grid-stack-placeholder>.placeholder-content{background:color-mix(in srgb,var(--blue) 15%,transparent)!important;border-color:var(--blue)!important}
.code-view,[data-code-theme="sap-dark"]{--code-bg:#0c1520;--code-fg:#d6e1ee;--code-keyword:#88beff;--code-string:#cce6a0;--code-comment:#96ad9a;--code-number:#edbf86;--code-selection:#315b85;color-scheme:dark}
[data-code-theme="sap-light"]{--code-bg:#fff;--code-fg:#20242b;--code-keyword:#0000b5;--code-string:#006534;--code-comment:#667066;--code-number:#884016;--code-selection:#c5dfff;color-scheme:light}
[data-code-theme="monokai-pro"]{--code-bg:#2d2a2e;--code-fg:#fcfcfa;--code-keyword:#ff6188;--code-string:#ffd866;--code-comment:#b2aab4;--code-number:#ab9df2;--code-selection:#59525d;color-scheme:dark}
[data-code-theme="dracula"]{--code-bg:#282a36;--code-fg:#f8f8f2;--code-keyword:#ff79c6;--code-string:#f1fa8c;--code-comment:#9daed9;--code-number:#bd93f9;--code-selection:#44475a;color-scheme:dark}
[data-code-theme="nord"]{--code-bg:#2e3440;--code-fg:#eceff4;--code-keyword:#88c0d0;--code-string:#a3be8c;--code-comment:#a7b5c9;--code-number:#b48ead;--code-selection:#4c566a;color-scheme:dark}
[data-code-theme="github-light"]{--code-bg:#fff;--code-fg:#24292f;--code-keyword:#cf222e;--code-string:#0a3069;--code-comment:#57606a;--code-number:#0550ae;--code-selection:#b6d7ff;color-scheme:light}
[data-code-theme="solarized-dark"]{--code-bg:#002b36;--code-fg:#b6cbcd;--code-keyword:#6cb9e8;--code-string:#b3c353;--code-comment:#8babae;--code-number:#d9a3c2;--code-selection:#164b57;color-scheme:dark}
.code-view{background:var(--code-bg);color:var(--code-fg)}.code-view code{color:inherit;font-size:inherit}.code-view .syntax-keyword{color:var(--code-keyword)}.code-view .syntax-string{color:var(--code-string)}.code-view .syntax-comment{color:var(--code-comment);font-style:italic}.code-view .syntax-number{color:var(--code-number)}.code-view ::selection,.code-view::selection{background:var(--code-selection)}
/* Codex-inspired neutral palettes and SAP Fiori shell palettes, using explicit hex tokens. */
[data-ui-theme="codex-dark"]{--bg:#101113;--panel:#17181b;--panel-2:#202125;--input:#131416;--line:#34353b;--muted:#a1a1aa;--text:#f0eff4;--blue:#c3b8ff;--accent:#7664d8;--accent-text:#fff;--mint:#75d2b0;--amber:#edc47e;--active:#302b47;--header:#17181b;--shadow:#0004;--notice-bg:#222136;--notice-fg:#ddd8ff;--error-bg:#40272e;--error-fg:#ffc0ca;color-scheme:dark}
[data-ui-theme="codex-light"]{--bg:#f4f4f5;--panel:#fff;--panel-2:#f0f0f2;--input:#fff;--line:#dedee3;--muted:#65656f;--text:#202024;--blue:#5748b8;--accent:#6558c8;--accent-text:#fff;--mint:#18765f;--amber:#875407;--active:#e9e7f8;--header:#fff;--shadow:#0000000a;--notice-bg:#efedfb;--notice-fg:#3f357f;--error-bg:#fce9eb;--error-fg:#a12c3d;color-scheme:light}
[data-ui-theme="fiori-light"]{--bg:#f5f7f9;--panel:#fff;--panel-2:#f2f4f6;--input:#fff;--line:#d9dfe5;--muted:#5b6b7a;--text:#1d2d3e;--blue:#0070f2;--accent:#0070f2;--accent-text:#fff;--mint:#188918;--amber:#9a5d00;--active:#eaf3fc;--header:#fff;--shadow:#15293510;--notice-bg:#eaf4fb;--notice-fg:#214967;--error-bg:#fff0ef;--error-fg:#a32121;color-scheme:light}
[data-ui-theme="fiori-dark"]{--bg:#111a23;--panel:#19242e;--panel-2:#202e3a;--input:#151f28;--line:#3d4c59;--muted:#b4c0cc;--text:#f2f5f7;--blue:#5ba8ff;--accent:#0070f2;--accent-text:#fff;--mint:#78d89a;--amber:#f0c56e;--active:#243e57;--header:#19242e;--shadow:#0003;--notice-bg:#203846;--notice-fg:#d2ebf8;--error-bg:#4c2826;--error-fg:#ffd0cb;color-scheme:dark}
@container(max-width:560px){.status-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.history-card{max-width:none}.handoff-actions{grid-template-columns:1fr}.editor-settings{gap:6px}.wrap-setting{margin-left:0}}@media(max-width:1100px){.workspace-bar{align-items:flex-start;flex-wrap:wrap}.workspace-actions{flex-wrap:wrap}}@media(max-width:600px){.theme-options{grid-template-columns:repeat(2,1fr)}.appearance-dialog{padding:18px}.editor-settings .form-select{max-width:170px}.status-cards{gap:8px}.code-toolbar{flex-wrap:wrap}}
