:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#1e1f22;--panel:#2a2b2f;--panel2:#323338;--line:#3c3d43;--text:#d9d6cf;--muted:#8d8a84;--accent:#d08a4c}.project-dialog.screen-size-notice{overscroll-behavior:contain;background:var(--panel);width:min(384px,100vw - 32px);max-height:calc(100dvh - 32px);color:var(--text);margin:auto;padding:20px;font-size:14px;line-height:1.5;overflow:auto}.project-dialog.screen-size-notice::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#0008}.project-dialog.screen-size-notice h2{margin:0;font-size:16px}.screen-size-notice p{margin:12px 0 0}.screen-size-notice-actions{justify-content:flex-end;margin-top:20px;display:flex}.screen-size-notice-actions button{min-height:44px;padding:8px 20px}@media (width<=640px){.screen-size-notice-actions button{width:100%}}*{box-sizing:border-box}html,body,#root{background:var(--bg);height:100%;color:var(--text);margin:0;font:12px/1.35 system-ui,-apple-system,Segoe UI,sans-serif;overflow:hidden}button{background:var(--panel2);color:var(--text);border:1px solid var(--line);cursor:pointer;font:inherit;border-radius:5px;padding:4px 9px}button:hover:not(:disabled){border-color:#5a5b62}button:disabled{opacity:.4;cursor:default}button.on,button.sel{color:#f0bc91;background:#3d342b}button.brush-item.sel{border-color:var(--accent);color:#fff}button.link{color:var(--accent);background:0 0;border:none;padding:2px 4px}select,input[type=number],input.hex,.layer input{color:var(--text);border:1px solid var(--line);font:inherit;background:#1a1b1d;border-radius:4px;padding:3px 5px}input[type=range],input[type=checkbox]{accent-color:var(--accent)}.app{flex-direction:column;height:100%;display:flex}.topbar{--popover-clearance:60px;background:var(--panel);border-bottom:1px solid var(--line);flex-shrink:0;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px;padding:5px 10px;display:grid}.topbar-controls{min-width:0;height:28px}.topbar-actions,.topbar-agents{align-items:center;gap:6px;min-width:0;height:28px;display:flex}.topbar-actions{width:max-content;min-width:100%}.topbar-actions>*,.topbar-agents>*{flex-shrink:0}.topbar-controls .chk{white-space:nowrap}.topbar-agents{position:relative}@media (width<=640px){.topbar{--popover-clearance:92px;grid-template-columns:minmax(0,1fr);gap:4px}.topbar-agents{justify-self:end}}.command-count{font-variant-numeric:tabular-nums;margin-left:auto}.sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.optbar{border-bottom:1px solid var(--line);background:#26272b;flex-shrink:0}.scroll-strip{align-items:center;min-width:0;display:flex}.scroll-strip-viewport{scrollbar-width:none;flex:1;min-width:0;height:100%;overflow:auto hidden}.scroll-strip-viewport::-webkit-scrollbar{display:none}.scroll-strip-content{white-space:nowrap;align-items:center;gap:8px;width:max-content;min-width:100%;height:100%;display:flex}.scroll-strip-content>*{flex-shrink:0}.scroll-strip-content.topbar-actions{gap:6px}.scroll-strip .scroll-strip-arrow{flex:0 0 28px;width:28px;height:28px;padding:0}.scroll-strip .scroll-strip-arrow[hidden]{display:none}.scroll-strip-end{flex:none;align-items:center;height:100%;padding-left:8px;display:flex}.scroll-strip-left svg{transform:rotate(180deg)}.scroll-strip :focus-visible{outline-offset:-2px}.option-row{height:38px;padding:4px 10px}.brush-controls,.tool-options{border:0;flex:none;align-items:center;gap:8px;min-width:0;margin:0;padding:0;display:flex}.brush-controls:disabled{opacity:.45}.tool-brush-readout{flex:0 0 176px;align-items:center;gap:8px;width:176px;display:flex}.brush-readout{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.tool-readout{flex:0 0 72px;align-items:center;gap:6px;width:72px;display:inline-flex}.tool-readout>span{text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.optbar .tool-help-button{width:24px;height:26px;color:var(--muted);background:0 0;border-color:#0000;flex:0 0 24px;padding:0}.tool-help-pop{white-space:normal;background:var(--panel);width:320px;max-width:calc(100vw - 20px);color:var(--text);border:1px solid var(--line);font:inherit;border-radius:6px;margin:0;padding:10px 12px;position:fixed;inset:auto;overflow:auto;box-shadow:0 8px 28px #0007}.export-caret svg{transform:none}.export-menu{white-space:normal;background:var(--panel);width:220px;max-width:calc(100vw - 20px);color:var(--text);border:1px solid var(--line);border-radius:6px;margin:0;padding:4px;position:fixed;inset:auto;overflow-y:auto;box-shadow:0 8px 28px #0007}.export-menu>button{background:0 0;border-color:#0000;justify-content:flex-start;width:100%;padding:7px 10px;display:flex}.export-menu>button:focus-visible{outline-offset:-2px}.tool-options>*,.inline-form .schema-form>*{flex-shrink:0}.optbar input[type=range]{width:110px}.optbar .num{width:58px}.logo{letter-spacing:.5px;color:var(--accent);margin-right:8px;font-weight:700}.sep{background:var(--line);width:1px;height:18px;margin:0 4px}.grow{flex:1}.muted{color:var(--muted)}.chk{align-items:center;gap:4px;display:flex}.main{flex:1;min-height:0;display:flex}.toolbar{background:var(--panel);border-right:1px solid var(--line);scrollbar-width:none;flex-direction:column;flex:0 0 44px;align-items:center;gap:4px;width:44px;padding:6px 0;display:flex;overflow:hidden auto}.toolbar::-webkit-scrollbar{display:none}.toolbar button{flex-shrink:0;width:36px;height:34px;padding:0;font-size:16px}aside{background:var(--panel);min-width:0;overflow-y:auto}aside.left{border-right:1px solid var(--line);flex:0 0 196px;width:196px}aside.right{border-left:1px solid var(--line);flex:0 0 248px;width:248px}.panel{border-bottom:1px solid var(--line);min-width:0;padding:8px 10px 10px}.panel-title{text-transform:uppercase;letter-spacing:.6px;min-height:24px;color:var(--muted);align-items:center;gap:6px;margin-bottom:6px;font-size:10.5px;font-weight:600;display:flex}.group-title{color:var(--muted);margin:8px 0 3px;font-size:10.5px}.brushes>.panel-title{z-index:1;background:var(--panel);margin:-8px -10px 6px;padding:8px 10px 6px;position:sticky;top:0}.brushes>.brush-heading{flex-direction:column;align-items:stretch;gap:6px}.brush-heading-label{justify-content:space-between;align-items:center;display:flex}.brush-heading .field{text-transform:none;letter-spacing:normal;font-weight:400}.brush-heading select{flex:1;min-width:0}.preset-count{font-variant-numeric:tabular-nums}.brush-empty{line-height:1.6}.brush-item{background:#232427;flex-direction:column;align-items:flex-start;width:100%;margin-bottom:4px;padding:3px;display:flex}.brush-item img{object-fit:contain;background:#29292b;border-radius:3px;width:100%;height:38px;display:block}.brush-item span{overflow-wrap:anywhere;max-width:100%;padding:2px 2px 0;font-size:11px}.canvas-wrap{touch-action:none;cursor:crosshair;background:#18191b;flex:1;min-width:0;position:relative;overflow:hidden}.canvas-wrap.tool-pan{cursor:grab}.canvas-wrap.tool-eyedropper{cursor:copy}.paper{transform-origin:0 0;background:repeating-conic-gradient(#d8d8d8 0 25%, #f4f4f4 0 50%) 0 0 / 16px 16px;position:absolute;top:0;left:0;box-shadow:0 6px 30px #0000008c}.paper canvas{image-rendering:auto;width:100%;height:100%;display:block}.brush-ring{pointer-events:none;border:1px solid #ffffffd9;border-radius:50%;outline:1px solid #0009;position:absolute;transform:translate(-50%,-50%)}.zoom-badge{white-space:nowrap;text-overflow:ellipsis;max-width:calc(100% - 20px);color:var(--muted);pointer-events:none;background:#00000080;border-radius:10px;padding:2px 8px;position:absolute;bottom:8px;right:10px;overflow:hidden}.sv{aspect-ratio:3/2;cursor:crosshair;touch-action:none;width:100%;position:relative}.sv canvas{border-radius:4px;width:100%;height:100%;display:block}.sv-dot,.hue-dot{pointer-events:none;border:2px solid #fff;border-radius:50%;width:12px;height:12px;position:absolute;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #000}.hue{touch-action:none;cursor:ew-resize;background:linear-gradient(90deg,red,#ff0,#0f0,#0ff,#00f,#f0f,red);border-radius:4px;height:14px;margin:8px 0;position:relative}.hue-dot{top:50%}.row{align-items:center;gap:6px;margin:4px 0;display:flex}.row.small label{align-items:center;gap:3px;display:flex}.row.small input[type=range]{flex:1;min-width:0}.row.buttons button{flex:1;padding:4px 0}.swatch{border:1px solid #000;border-radius:4px;width:18px;height:18px;padding:0}.swatch.big{width:34px;height:26px}.swatches{grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;margin-top:6px;display:grid}.swatches .swatch{aspect-ratio:1;width:100%;min-width:0;height:auto;min-height:0}.hex{width:90px}.layer-list{scrollbar-gutter:stable;height:220px;margin:6px 0;overflow-y:auto}.layer{cursor:pointer;background:#232427;border:1px solid #0000;border-radius:4px;align-items:center;gap:6px;margin-bottom:3px;padding:5px 6px;display:flex}.layer.sel{border-color:var(--accent);background:#34302b}.layer .eye{background:0 0;border:none;padding:0 4px;font-size:13px}.lname{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.ltags,.lid{color:var(--muted);font-size:10px}.slider{grid-template-columns:96px minmax(0,1fr) 34px;align-items:center;gap:4px;margin:2px 0;display:grid}.slider input[type=range]{width:100%;min-width:0;margin:0}.slider label{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;font-size:11px;overflow:hidden}.slider span{text-align:right;font-variant-numeric:tabular-nums;font-size:11px}.console{border:1px solid var(--line);background:#242529f7;border-radius:8px;padding:10px;position:absolute;bottom:12px;left:260px;right:270px;box-shadow:0 10px 40px #00000080}.console textarea{color:#cfe3c8;border:1px solid var(--line);background:#17181a;border-radius:4px;width:100%;height:110px;font:11px ui-monospace,Menlo,monospace}.console pre{max-height:160px;color:var(--muted);margin:6px 0 0;font:11px ui-monospace,Menlo,monospace;overflow:auto}.toast{border:1px solid var(--line);background:#333;border-radius:16px;padding:6px 14px;position:fixed;top:92px;left:50%;transform:translate(-50%)}.toast.err{background:#5a2723;border-color:#8a3a33}@media (width<=900px){aside.left{display:none}aside.right{flex-basis:210px;width:210px}.console{left:50px;right:10px}}.paper .sel-overlay,.paper .ref-overlay,.paper .drag-overlay{pointer-events:none;width:100%;height:100%;position:absolute;top:0;left:0}.paper .ref-overlay{object-fit:fill}.brush-ring.mask{border-style:dashed;border-color:#9fd3ff}.swatch-pair{width:30px;height:24px;position:relative}.swatch-pair .swatch{z-index:1;position:absolute;top:0;left:0}.swatch-pair .swatch.second{z-index:0;cursor:pointer;top:7px;left:10px}.mask-row button{align-items:center;gap:4px;padding:3px 6px;display:inline-flex}.layer.clipped{margin-left:14px}.small-text{margin-top:4px;font-size:11px}.field{color:var(--muted);align-items:center;gap:4px;font-size:11px;display:inline-flex}.field input[type=checkbox],.chk input[type=checkbox],.row.small input[type=checkbox]{flex-shrink:0;margin:0}.field select{max-width:100%}.row.small>select{min-width:0;max-width:100%}.row.small>label{min-width:0}.field .num{width:60px;min-width:0}.field input.text,.field textarea{color:var(--text);border:1px solid var(--line);font:inherit;background:#1a1b1d;border-radius:4px;width:100%;padding:3px 5px}.field.bad input{border-color:#a5463c}.grow-field{flex:1;min-width:0}.row.wrap{flex-wrap:wrap}.panel-title .caret,.skill-cat-head .caret{width:14px;height:14px;color:var(--muted);flex:0 0 14px;justify-content:center;align-items:center;display:inline-flex}.panel-actions{flex:none;align-items:center;margin-left:auto;display:inline-flex}.panel-toggle,.skill-cat-toggle{min-width:0;color:inherit;font:inherit;text-transform:inherit;letter-spacing:inherit;text-align:left;background:0 0;border:0;border-radius:3px;flex:1;justify-content:flex-start;align-items:center;gap:6px;padding:2px 0;display:flex}.panel-toggle[aria-expanded=true] .caret,.skill-cat-toggle[aria-expanded=true] .caret{transform:rotate(90deg)}button.primary{border-color:var(--line);color:#fff;background:#4a3a2a}.inline-form .schema-form{align-items:center;gap:8px;display:flex}.inline-form .schema-form .row{margin:0}.inline-form .slider{grid-template-columns:auto 90px 30px;margin:0}.schema-form .row{margin:3px 0}.tag{color:#9fd09f;background:#2f3a2f;border-radius:8px;margin-left:6px;padding:0 5px;font-size:10px}.tag.warn{color:#e0b070;background:#4a3a22}.skill-cat{margin:4px 0}.skill-cat-head{align-items:center;gap:4px;padding:3px 2px;display:flex}.skill-cat-toggle b{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.skill-cat-head .tag{white-space:nowrap;margin-left:0}.skill-cat-head>.link{flex-shrink:0}.skill-item{background:#232427;border:1px solid #0000;border-radius:4px;margin:4px 0 6px 12px;padding:6px}.skill-item.sel{border-color:var(--accent)}.skill-title{flex-wrap:wrap;align-items:center;gap:4px;margin-bottom:2px;font-weight:600;display:flex}.skill-title>.link{margin-left:auto}.skill-active{border-top:1px solid var(--line);margin-top:8px;padding-top:6px}.skill-active pre.guide{white-space:pre-wrap;background:#1a1b1d;border-radius:4px;max-height:260px;padding:6px;font:11px/1.4 ui-sans-serif,system-ui;overflow:auto}.recipe{background:#232427;border-radius:4px;margin:8px 0;padding:6px}code{font:11px ui-monospace,Menlo,monospace}.dyn-row{grid-template-columns:60px minmax(0,1fr) minmax(28px,44px) 24px;align-items:center;gap:4px;display:grid}.dyn-row input[type=range]{width:100%;min-width:0;margin:0}.dyn-row .dyn-label{opacity:.8;text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.dyn-row select{width:100%;min-width:0;padding:3px 2px;font-size:11px}.panel .panel{background:#ffffff08;border-radius:4px;margin:4px 0;padding:4px 6px}img.analysis{width:100%;image-rendering:pixelated;border-radius:4px;margin:4px 0}.effect{border-left:2px solid #ffaa3c80;margin:4px 0;padding-left:6px}.layer.kind-group .lname{font-weight:600}.layer.kind-adjustment .lname{font-style:italic}.logo-mark{width:22px;height:22px;margin-right:6px;display:block}.rec-wrap{display:inline-flex}.rec-dot{vertical-align:0;background:#e0453a;border-radius:50%;width:9px;height:9px;margin-right:6px;animation:1s steps(2,end) infinite rec-blink;display:inline-block}.rec-dot.paused{background:#8d8a84;animation:none}@keyframes rec-blink{50%{opacity:.25}}.topbar button.rec-on{color:#f1d2cd;background:#3a2321}.rec-pop{z-index:50;width:330px;max-width:calc(100vw - 20px);max-height:calc(100dvh - var(--popover-clearance));background:var(--panel);border:1px solid var(--line);border-radius:8px;flex-direction:column;gap:8px;padding:10px 12px;display:flex;position:absolute;top:calc(100% + 6px);right:0;overflow-y:auto;box-shadow:0 8px 28px #00000073}.rec-pop>*{flex-shrink:0}.rec-pop .rec-row{color:var(--muted);justify-content:space-between;align-items:center;gap:10px;display:flex}.rec-pop .rec-row select{flex:1;min-width:0;max-width:230px}.rec-pop .row{justify-content:flex-end;display:flex}.rec-pop button.primary{background:var(--accent);color:#1e1f22;border-color:#0000;font-weight:600}.rec-pop .small{font-size:11px}.navigator{border:1px solid var(--line);cursor:pointer;z-index:5;background:#18191be0;border-radius:6px;padding:4px;line-height:0;position:absolute;bottom:36px;right:10px;box-shadow:0 4px 18px #00000073}.navigator canvas{display:block}.navigator .nav-view{border:1.5px solid var(--accent);pointer-events:none;margin:4px;position:absolute;box-shadow:0 0 0 9999px #00000059}.navigator{overflow:hidden}.rec-preview-box{border:1px solid var(--line);background:#141517;border-radius:6px;justify-content:center;align-items:center;min-height:120px;padding:6px;display:flex}.rec-preview{border-radius:3px;max-width:100%;display:block}button{justify-content:center;align-items:center;gap:4px;display:inline-flex}button svg{flex-shrink:0;display:block}.panel button{min-height:24px}button:focus:not(.brush-item){outline:none}button:focus-visible:not(.brush-item){color:#fff;text-underline-offset:3px;background:#50535b;text-decoration:underline}button:focus-visible:not(.brush-item) svg{stroke-width:2.3px}button.brush-item:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.layers .buttons{flex-wrap:wrap}.agent-wrap{display:inline-flex;position:relative}.agent-connected{color:#79deb1;background:#263c34}.agent-connected svg{filter:none}button.agent-connected:focus-visible{color:#79deb1}.agent-pop{z-index:30;background:#25262a;border:1px solid #555;border-radius:8px;width:330px;max-width:90vw;padding:14px;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 8px 24px #0008}.agent-tools{grid-template-columns:1fr 1fr;gap:7px;max-height:280px;display:grid;overflow:auto}.agent-tools span{align-items:center;gap:5px;font-size:12px;display:flex}.agent-pop{max-height:calc(100dvh - var(--popover-clearance));overflow-y:auto}.http-mcp-controls{border-bottom:1px solid #555;gap:7px;padding-bottom:12px;display:grid}.http-mcp-controls p{margin:3px 0}.http-mcp-controls label{align-items:center;gap:8px;display:flex}.http-mcp-controls select,.http-mcp-controls input{width:100%;min-width:0}.http-mcp-controls input{box-sizing:border-box;color:#ddd;font:inherit;background:#191a1c;border:1px solid #45464a;border-radius:4px;padding:5px 6px}.http-mcp-controls form,.http-mcp-actions{align-items:center;gap:6px;display:flex}.rec-on{font-variant-numeric:tabular-nums;min-width:130px}.rec-action{white-space:nowrap;flex-shrink:0;width:142px}.rec-time{font-variant-numeric:tabular-nums;width:5ch}@media (width<=900px){.dyn-row{grid-template-columns:60px minmax(0,1fr) 24px;row-gap:2px}.dyn-row .dyn-label{grid-area:1/1}.dyn-row select{grid-area:1/2}.dyn-row input[type=range]{grid-area:2/2}.dyn-row button{grid-area:1/3}}.save-as-split{flex-shrink:0;align-items:stretch;gap:0;display:inline-flex}.save-as-split>button:first-child{border-radius:4px 0 0 4px}.save-as-caret{border-left:0;border-radius:0 4px 4px 0;justify-content:center;align-items:center;width:19px;min-width:19px;padding:0;display:flex}.project-dialog{white-space:normal;overflow-wrap:anywhere;box-sizing:border-box;color:#eee;background:#28292c;border:1px solid #666;border-radius:9px;width:min(720px,100vw - 24px);max-height:calc(100dvh - 24px);padding:18px;overflow:auto}.project-dialog::backdrop{background:#0009}.project-dialog h2{margin:0;font-size:18px}.project-dialog h3{color:#bbb;margin:18px 0 10px;font-size:13px}.project-dialog-header,.project-dialog-actions{align-items:center;gap:10px;display:flex}.project-dialog-header{justify-content:space-between;margin-bottom:16px}.project-dialog-actions{flex-wrap:wrap;margin:12px 0}.project-file{border-bottom:1px solid #444;align-items:center;gap:10px;min-width:0;padding:10px 0;display:flex}.project-thumbnail{object-fit:contain;background:#18191a;flex-shrink:0;justify-content:center;align-items:center;width:76px;height:58px;display:flex}.project-file-details{flex-direction:column;flex:1;gap:5px;min-width:0;display:flex}.project-file-details strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.project-file-details span{color:#aaa;font-size:11px}.project-save-options{max-width:460px}.project-save-options>label{align-items:center;gap:8px;margin:14px 0;display:flex}.project-error{color:#ffb299}.project-operation,.project-notice{z-index:1000;box-sizing:border-box;background:#343538;border:1px solid #777;border-radius:7px;align-items:center;gap:10px;max-width:calc(100vw - 28px);padding:10px 14px;display:flex;position:fixed;bottom:38px;left:50%;transform:translate(-50%);box-shadow:0 4px 16px #0008}.project-operation progress{accent-color:#d08a4c;width:100px}.project-notice{white-space:normal;flex-wrap:wrap;bottom:90px}.project-notice>span{overflow-wrap:anywhere;flex:1;min-width:180px;font-size:12px}.project-notice button{white-space:nowrap}@media (width<=500px){.project-dialog{padding:12px}.project-file{gap:6px}.project-thumbnail{width:48px;height:44px}.project-file-details span{font-size:10px}.project-file>button{min-width:25px;padding:4px}.project-operation progress{width:65px}}.right .row:not(.dyn-row){flex-wrap:wrap}.right select,.right .field,.right .row>input{min-width:0;max-width:100%}.right .row>select{flex-shrink:1}.right .layer-compositing{grid-template-columns:minmax(0,1fr) minmax(34px,.8fr) 32px;gap:5px;display:grid}.layer-compositing input[type=range]{width:100%;margin:0}.layer-compositing>span{text-align:right;font-variant-numeric:tabular-nums}.layer-toggles>button{width:30px;height:28px;padding:0}.options .row>.field:not(:has(input[type=checkbox])){grid-template-columns:62px minmax(0,1fr);gap:6px;width:100%;display:grid}.options .field select,.options .field .num{width:100%}.options .field input[type=color]{width:100%;min-width:0}.options .row>.field:has(input[type=checkbox]){flex-wrap:wrap}.preset-filter{text-transform:none;letter-spacing:normal;justify-content:flex-start;width:100%;font-weight:400}.panel.accordion.collapsed{padding-top:4px;padding-bottom:4px}.accordion.collapsed>.panel-title{min-height:28px;margin-bottom:0}.panel-toggle{min-height:28px}@media (hover:hover) and (pointer:fine){aside,.layer-list,.project-dialog,.console pre{scrollbar-width:thin;scrollbar-color:#62636b var(--panel)}:is(aside,.layer-list,.project-dialog,.console pre)::-webkit-scrollbar{width:8px;height:8px}:is(aside,.layer-list,.project-dialog,.console pre)::-webkit-scrollbar-track{background:var(--panel)}:is(aside,.layer-list,.project-dialog,.console pre)::-webkit-scrollbar-thumb{border:2px solid var(--panel);background:#62636b;border-radius:4px}}@media (pointer:coarse){.layer-list{scrollbar-gutter:auto}}.action-dialog{max-width:440px}.action-dialog fieldset{border:0;min-width:0;margin:16px 0;padding:0}.action-dialog label{gap:8px;display:grid}.action-dialog input{width:100%;min-width:0;color:var(--text);border:1px solid var(--line);font:inherit;background:#1a1b1d;border-radius:4px;padding:7px 8px;font-size:16px}.action-dialog .project-dialog-actions{justify-content:flex-end;margin-bottom:0}.application-settings{width:min(760px,100vw - 24px);max-height:calc(100dvh - 24px);padding:0;overflow:hidden}.application-settings[open]{flex-direction:column;display:flex}.settings-header{flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;padding:14px 18px;display:flex}.settings-tabs{flex-wrap:wrap;flex-shrink:0;gap:5px;padding:0 18px 12px;display:flex}.settings-tabs button{white-space:normal;flex:1;min-height:36px}.settings-tabs button[aria-selected=true]{color:#fff;border-color:var(--line);box-shadow:none;background:#474950}.application-settings button:focus-visible{box-shadow:none;color:#fff;border-color:var(--line);background:#555860;outline:none}.settings-scroll{overscroll-behavior:contain;min-height:0;padding:0 18px 12px;overflow:auto}.settings-scroll h3{color:#eee;margin:8px 0 16px;font-size:15px}.settings-field{grid-template-columns:minmax(130px,1fr) minmax(0,1fr);align-items:center;gap:14px;margin:12px 0;display:grid}.settings-field :is(input,select){box-sizing:border-box;width:100%;min-width:0;min-height:32px}.settings-check{align-items:center;gap:10px;margin:14px 0;display:flex}.option-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 12px;margin:8px 0;display:grid}.option-choice{cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;min-width:0;min-height:28px;margin:0;padding:0;display:flex}.option-choice input{flex-shrink:0;margin:0}.option-choice span{overflow-wrap:anywhere;min-width:0}.option-choice:has(input:focus-visible) span{color:#fff;background:#50535b}.option-choice input:focus-visible{outline:none}.settings-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;margin:10px 0;display:grid}.settings-form-grid.three-columns{grid-template-columns:repeat(3,minmax(0,1fr))}.settings-form-grid .settings-field{flex-direction:column;justify-content:space-between;align-items:stretch;gap:6px;min-width:0;margin:0;display:flex}@media (width<=600px){.option-grid,.settings-form-grid.three-columns{grid-template-columns:repeat(2,minmax(0,1fr))}}.settings-diagnostics{font-size:12px}.settings-diagnostics>div{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin:10px 0;display:grid}.settings-diagnostics dt{color:#aaa}.settings-diagnostics dd{overflow-wrap:anywhere;margin:0}.settings-memory{background:#35363a;border-radius:5px;flex-wrap:wrap;justify-content:space-between;gap:10px;padding:12px;display:flex}.settings-memory p{flex-basis:100%;margin:0}.settings-over-budget{color:#ffe2c5;background:#49382e}.settings-footer{background:#303135;flex-shrink:0;padding:10px 18px 14px}.settings-footer p{margin:0 0 10px}.settings-buttons{align-items:center;gap:8px;display:flex}.settings-buttons>span{flex:1}.settings-buttons button{min-height:36px}.settings-sources{flex-direction:column;gap:10px;display:flex}.settings-header-actions,.connection-heading{align-items:center;gap:6px;display:flex}.connection-heading{justify-content:space-between}.help-button{width:28px;height:28px;color:var(--muted);background:0 0;border-color:#0000;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:inline-flex}.tool-help-pop p{margin:8px 0 0}.settings-memory{display:block}.settings-meter-label{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px;margin-bottom:8px;display:flex}.settings-memory progress,.settings-storage-usage progress{width:100%;height:8px;accent-color:var(--accent);display:block}.settings-memory p{margin-top:8px}.settings-details,.connection-tools{margin:14px 0}.settings-details summary,.connection-tools summary{cursor:pointer;color:var(--muted)}.settings-details summary:focus-visible,.connection-tools summary:focus-visible{color:#fff;background:#50535b;border-radius:3px;outline:none}.rec-pop .panel-title{justify-content:space-between}.settings-scroll h3{margin:18px 0 12px}.settings-buttons>.settings-applied{color:#b8c9a9;flex:0 0 18px;justify-content:center;align-items:center;height:18px;display:inline-flex}.painting-allowance h3{align-items:center;gap:8px;display:flex}.allowance-controls{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end;gap:12px;display:grid}.allowance-controls .settings-field{flex-direction:column;align-items:stretch;gap:6px;min-width:0;margin:0;display:flex}.allowance-actions{align-items:center;gap:6px;display:flex}.allowance-actions button{min-height:32px}.allowance-effective{overflow-wrap:anywhere;flex-direction:column;gap:6px;min-width:0;display:flex}.allowance-effective output{align-items:center;min-height:32px;display:flex}.allowance-request{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-top:12px;display:flex}.allowance-request>div{min-width:0}.allowance-request p{overflow-wrap:anywhere;margin:6px 0 0}.allowance-notice{box-sizing:border-box;border-radius:5px;align-items:center;gap:12px;max-width:calc(100vw - 24px);display:flex;top:auto;bottom:14px}.allowance-notice span{min-width:0}.allowance-notice button{flex-shrink:0}.panel-progress{width:100%;height:4px;accent-color:var(--accent);margin:8px 0;display:block}.skill-description{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.rec-action,.rec-on{justify-content:center;width:96px;min-width:96px;position:relative}.rec-progress{width:calc(100% - 8px);height:2px;accent-color:var(--accent);position:absolute;bottom:2px;left:4px}.settings-sources textarea{box-sizing:border-box;resize:vertical;width:100%;min-height:100px}.connection-details{white-space:normal;min-width:0}.connection-details .http-mcp-controls input{box-sizing:border-box;max-width:100%}@media (width<=500px){.settings-header,.settings-footer{padding:12px}.settings-tabs,.settings-scroll{padding:0 12px 10px}.settings-tabs button{flex-basis:40%}.application-settings :is(input,textarea,select){font-size:16px}.settings-field{grid-template-columns:minmax(100px,1fr) minmax(0,1fr);gap:8px}.settings-buttons button{min-height:44px}.application-settings{width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}}
