:root{--accent:#801e2f;--border:#e3e3e3;--text-muted:#777;color:#242424;background:#f3f3f3;color-scheme:light}
.app-header{background:#fff}.brand{color:#292929}.brand-mark{background:#801e2f;color:#fff;box-shadow:inset 0 1px 0 #ffffff22,0 2px 6px #0000000d}.brand-mark i{color:#efcad0}.brand .brand-light{color:#929292}.header-context{color:#858585}.header-context .local-chip{background:#f5f5f5;border-color:#e8e8e8;color:#858585}.local-chip i,.control-bottom i{background:#999}.primary{background:#801e2f;box-shadow:0 2px 4px #540c191a,inset 0 1px 0 #ffffff15}.primary:hover{background:#681526;box-shadow:0 4px 10px #540c1926}.icon-button{color:#666;background:#fafafa;border-color:#e6e6e6}.icon-button:not(:disabled):hover{background:#f3eeee;color:#801e2f}
.control-pane{background:#f7f7f7}.pane-title,.panel-tabs{background:#fff}.pane-title .eyebrow{color:#999}.pane-title h1{color:#242424}.pane-title p{color:#858585}.panel-tabs{border-color:#e6e6e6}.panel-tabs button{color:#858585}.panel-tabs button.active,.panel-tabs button:hover{color:#801e2f}.panel-tabs .tab-indicator{background:#f7edef;border-color:#ead4d9;box-shadow:0 2px 5px #6b162309}.control-scroll{scrollbar-color:#d1d1d1 transparent}.panel-heading p{color:#858585}.text-button{color:#858585}.text-button:hover{color:#801e2f}.field-group,.field-group:last-child{border-color:#e5e5e5;background:#fff;box-shadow:0 2px 6px #00000003}.field-group:hover{border-color:#d3bfc4;box-shadow:0 3px 12px #52102205}.group-toggle{background:#fff}.group-toggle:hover{background:#fbf8f9}.is-collapsed .group-toggle{background:#fdfdfd}.group-title{color:#333}.group-title::before{background:#801e2f}.is-collapsed .group-title::before{background:#c8c8c8}.group-current{background:#f6f6f6;border-color:#e8e8e8;color:#777}.group-chevron{color:#aaa}.effect-badge{background:#f4f4f4;color:#888}.effect-badge.export-only{background:#f5f5f5;color:#888}.field-label{color:#555}.field-help{color:#858585}.choice{background:#fcfcfc;border-color:#e5e5e5;color:#727272}.choice:hover{background:#fbf7f8;border-color:#cfaab3}.choice.active{background:#faf1f3;border-color:#ab5d6c;color:#801e2f;box-shadow:0 0 0 1px #801e2f12}.choice.active::after{background:#801e2f;color:#fff}.choice .sample-shell{background:#f0f0f0;color:#888}.choice.active .sample-shell{background:#f0e2e6}.demo-user,.demo-dir,.demo-plain{color:#777}.demo-caret{color:#801e2f}.demo-chain i{background:#999;color:#fff}.demo-chain i+i{background:#bbb;color:#fff}.switch-row{color:#555}.switch-row input{background:#d6d6d6}.switch-row input:checked{background:#801e2f}.switch-row input::after{background:#fff;box-shadow:0 1px 3px #00000024}.more-controls{background:#f3f3f3;border-color:#e3e3e3}.more-controls summary{color:#888}.control-bottom{background:#f3f3f3;border-color:#e4e4e4;color:#999}.styles button{background:#fff;border-color:#e3e3e3;color:#858585}.styles button:hover{border-color:#cfaab3}.styles button.active{background:#faf1f3;border-color:#ab5d6c;color:#801e2f;box-shadow:0 0 0 1px #801e2f12,0 3px 10px #00000005}.styles button b{color:#777}.powerline-mini span,.mini-capsule span{background:#999;color:#fff}.powerline-mini span+span,.mini-capsule span+span{background:#bbb;color:#fff}.filters{background:#ededed}.filters button{color:#888}.filters button.active{background:#fff;color:#801e2f}.theme{background:#fff;border-color:#e4e4e4}.theme:hover{border-color:#cfaab3}.theme.active{background:#faf1f3;border-color:#ab5d6c;box-shadow:0 0 0 1px #801e2f12}.check{color:#801e2f}.theme small,.small-note{color:#858585}.tint-card,.module-colors{background:#f0f0f0;border-color:#e0e0e0}#swatches label,.module-colors label,.color-row label{color:#777}.module-row{border-color:#e5e5e5;background:#fff}.module-row.selected{border-color:#c4929d;background:#faf1f3;box-shadow:inset 3px 0 #801e2f}.module-row small{color:#aaa}.module-row button{color:#888;border-color:#e5e5e5}.module-row button:not(:disabled):hover{background:#f6e9ec;border-color:#c79ba5;color:#801e2f}.side-label{background:#ededed;color:#777}.empty{color:#999}.control-input,.control-select,.module-columns select,.module-colors select,.parameter-toolbar input,.parameter input{background:#fff;color:#444;border-color:#dedede}.advanced{border-color:#e0e0e0}.advanced summary,details>summary{color:#777}.advanced a{color:#801e2f}.parameter{border-color:#e7e7e7}.parameter small,.parameter label>span,#parameter-count{color:#888}
.preview-pane{background:#f1f1f1}.preview-bar h2{color:#272727}.preview-bar .eyebrow{color:#969696}.preview-bar .live-dot{background:#801e2f;box-shadow:0 0 0 3px #eddee1}.preview-actions .subtle{background:#fff;border-color:#e2e2e2;color:#808080}.preview-actions .subtle:hover{background:#faf3f5;border-color:#cda6b0;color:#801e2f}.subtle[aria-pressed=true],.preview-actions .subtle[aria-pressed=true]{background:#f5e8ec;color:#801e2f;border-color:#cfa5af}.preview-feedback{color:#858585}#preview-state{background:#fafafa;border-color:#e0e0e0;color:#929292}.preview-canvas{background-image:radial-gradient(#ccc8 .65px,transparent .65px);border-color:#ddd;box-shadow:inset 0 1px 0 #ffffffb0}.preview-canvas:has(.terminal.updated){border-color:#b87887;box-shadow:0 0 0 3px #801e2f08,inset 0 1px 0 #fff}.terminal.updated{box-shadow:0 0 0 3px #801e2f16,0 18px 34px #0000001f}.preview-tools{background:#fafafa;border-color:#e0e0e0}.segmented{background:#ededed}.segmented button{color:#999}.segmented button.active{background:#fff;color:#801e2f;box-shadow:0 1px 4px #00000015}.preview-tools label{color:#888}.preview-tools input,.toolbar input{accent-color:#801e2f}.preview-help{color:#888}.preview-quick{border-color:#ddd;color:#999}.preview-quick button{background:#fafafa;border-color:#dedede;color:#888}.preview-quick button.active{border-color:#cfa8b2;background:#f7ecef;color:#801e2f}.preview-quick button:hover{border-color:#ba7e8d}.selection-trail{border-color:#801e2f;background:#801e2f05;box-shadow:0 0 0 3px #801e2f0a}.press-ripple{background:#801e2f}.download{background:#f5f5f5;border-color:#e0e0e0;color:#444}.download:hover{background:#f7ecef;border-color:#cda5af}.download span{color:#888}dialog{background:#fcfcfc;border-color:#ddd;color:#333}dialog::backdrop{background:#18181866}dialog .muted{color:#999}.close{color:#999}#toast{background:#292929;color:#fff}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline-color:#a65163}
.language-switch{display:flex;gap:2px;border:1px solid #e4e4e4;border-radius:7px;padding:3px;background:#f6f6f6;flex-shrink:0}.language-switch button{font-size:10px;min-width:30px;padding:5px 7px;border:0;border-radius:4px;background:transparent;color:#999;transition:background .18s,color .18s,box-shadow .18s}.language-switch button.active{background:#fff;color:#801e2f;box-shadow:0 1px 3px #0000000d}.language-switch button:hover{color:#801e2f}
html[lang=en] .panel-tabs button{font-size:10px}html[lang=en] .pane-title h1{font-size:21px}html[lang=en] .group-title{font-size:11px}html[lang=en] .group-current{font-size:9px;max-width:100px}html[lang=en] .choice{font-size:10px}html[lang=en] .preview-quick{flex-wrap:wrap}
@media(max-width:1100px){html[lang=en] .panel-tabs button{font-size:9px}html[lang=en] .pane-title h1{font-size:19px}.app-header{gap:16px}.header-context{gap:10px}}
@media(max-width:760px){.brand .brand-light{display:none}.app-header{gap:10px}.header-actions{gap:5px}.header-actions .icon-button{width:28px;height:29px;font-size:17px}.primary{padding:9px 11px}.language-switch{padding:2px;gap:1px}.language-switch button{font-size:9px;min-width:26px;padding:5px 5px}.preview-pane{border-color:#ddd}html[lang=en] .preview-actions .subtle{padding:6px;font-size:8px}html[lang=en] .preview-tools label{font-size:8px}html[lang=en] .group-title{font-size:11px}.preview-tools label{color:#888}}
@media(prefers-reduced-motion:reduce){.language-switch button{transition:none}}
.styles button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0}.styles button b,.styles button b.powerline-mini{margin:0 0 10px}.terminal #screen{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--fg) 26%,var(--bg)) var(--bg)}.terminal #screen::-webkit-scrollbar{width:6px;height:6px}.terminal #screen::-webkit-scrollbar-track{background:var(--bg)}.terminal #screen::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--fg) 26%,var(--bg));border-radius:6px}.terminal #screen::-webkit-scrollbar-corner{background:var(--bg)}
/* Before / after comparison keeps both configurations visible and editable. */
.comparison-column{width:100%;min-width:0;min-height:0}.comparison-caption{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:11px;min-height:32px}.comparison-caption>div{display:flex;align-items:center;gap:8px}.comparison-kicker{font-size:7px;letter-spacing:1.4px;color:#aaa}.comparison-caption h3{font-size:11px;color:#555;font-weight:600}.comparison-caption>span{font-size:9px;color:#999;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:50%}.current-column .comparison-kicker,.current-column .comparison-caption h3{color:#801e2f}.is-comparing .preview-canvas{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;gap:16px;padding:17px!important}.is-comparing .comparison-column{display:flex;flex-direction:column}.is-comparing .comparison-column .terminal{flex:1;min-height:0;max-height:calc(100dvh - 425px);width:100%}.is-comparing .terminal .titlebar{padding:11px 12px;font-size:8px}.is-comparing .terminal .titlebar>span:not(.traffic){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.is-comparing .terminal .titlebar>span:last-child{opacity:1}.is-comparing #terminal .titlebar>span:last-child{display:none}.is-comparing .terminal .traffic{gap:4px;flex-shrink:0}.is-comparing .terminal .traffic i{width:6px;height:6px}.is-comparing #screen,.is-comparing #baseline-screen{padding:19px 14px;min-height:190px;max-height:calc(100dvh - 505px);overflow:auto;white-space:pre;font-size:14px;line-height:1.9;flex:1;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--fg) 26%,var(--bg)) var(--bg);overscroll-behavior:contain}.is-comparing .terminal-footer{padding:9px 12px;font-size:7px}.baseline-column .segment[data-preview-module]{cursor:default}.comparison-note{font-size:10px;line-height:1.8;color:#888;padding:0 2px;margin:-4px 0 14px}.preview-pane.is-comparing .preview-help{padding-top:12px;padding-bottom:12px}.is-comparing .preview-actions #compare{border-color:#c99aa5;color:#801e2f;background:#f7edef}
@media(min-width:1101px){.editor-shell:has(.preview-pane.is-comparing){grid-template-columns:350px minmax(0,1fr)}.editor-shell:has(.preview-pane.is-comparing) .control-scroll{padding-left:18px;padding-right:18px}.editor-shell:has(.preview-pane.is-comparing) .pane-title{padding-left:20px;padding-right:20px}.editor-shell:has(.preview-pane.is-comparing) .pane-title h1{font-size:18px}.editor-shell:has(.preview-pane.is-comparing) .panel-tabs{padding-left:10px;padding-right:10px}.editor-shell:has(.preview-pane.is-comparing) .panel-tabs button{font-size:9px;gap:4px}.preview-pane.is-comparing{padding-left:24px;padding-right:24px}}
@media(min-width:761px) and (max-width:1100px){.is-comparing .preview-canvas{gap:10px;padding:10px!important}.is-comparing .comparison-caption>span{display:none}.is-comparing .comparison-caption>div{gap:6px}.is-comparing .comparison-caption h3{font-size:10px}.preview-pane.is-comparing{padding-left:14px;padding-right:14px}.is-comparing .preview-bar{gap:10px}.is-comparing .preview-bar h2{font-size:20px}}
@media(max-width:760px){.editor-shell:has(.preview-pane.is-comparing){grid-template-rows:56% 44%}.is-comparing .preview-canvas{grid-template-columns:1fr;gap:12px;overflow-y:auto;padding:10px!important;align-items:start}.is-comparing .comparison-caption{min-height:16px;margin-bottom:5px}.is-comparing .comparison-caption h3{font-size:9px}.is-comparing .comparison-kicker{font-size:6px}.is-comparing .comparison-caption>span{font-size:8px}.is-comparing .comparison-column{min-height:125px;flex-shrink:0}.is-comparing .comparison-column .terminal{height:auto;min-height:100px;max-height:170px;flex:1}.is-comparing #screen,.is-comparing #baseline-screen{padding:10px;min-height:65px;max-height:120px;line-height:1.65}.is-comparing .terminal .titlebar{padding:6px 9px;font-size:7px}.is-comparing .terminal-footer{display:none}.comparison-note{font-size:8px;line-height:1.6;margin:0 0 6px;padding:0}.is-comparing .preview-feedback{padding-top:5px}.is-comparing .preview-actions .subtle{font-size:8px;padding:6px}.is-comparing .preview-canvas .comparison-column{width:100%}}
@media(max-height:780px) and (min-width:761px){.is-comparing #screen,.is-comparing #baseline-screen{min-height:120px;max-height:calc(100dvh - 445px)}.is-comparing .comparison-column .terminal{max-height:calc(100dvh - 375px)}.is-comparing .comparison-note{font-size:9px;margin-bottom:10px}}
.agent-export-card{border-color:#d6a9b4;background:#faf2f4}.agent-export-card:hover{border-color:#a45265;background:#f8ecef}.agent-export-card>b{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#801e2f}.agent-export-card .agent-badge{display:inline-block;font-size:7px;letter-spacing:1px;border-radius:4px;color:#996875;background:#efdee3;padding:4px 6px;margin:0}.agent-dialog{width:min(820px,calc(100vw - 36px));max-width:820px;max-height:90dvh;overflow:auto}.agent-dialog h2{font-size:25px}.agent-dialog #agent-setup-name{font-size:11px;color:#888}.agent-dialog .agent-intro{font-size:12px;line-height:1.85;margin-top:14px;color:#777}.agent-prompt-toolbar{display:flex;align-items:center;gap:10px;margin:18px 0 10px;font-size:11px;color:#888}.agent-prompt-toolbar select{border:1px solid #ddd;border-radius:5px;color:#555;background:#fff;padding:5px 8px;font-size:11px}.agent-prompt-toolbar>span{margin-left:auto;font-size:9px;color:#999}.agent-dialog #agent-prompt{display:block;resize:vertical;width:100%;height:clamp(200px,37dvh,380px);min-height:140px;border:1px solid #dedede;border-radius:8px;padding:16px;background:#f6f6f6;color:#515151;font:11px/1.8 Menlo,Consolas,monospace;white-space:pre;overflow:auto;tab-size:2;scrollbar-width:thin;scrollbar-color:#ccc #f5f5f5}.agent-dialog #agent-prompt:focus{outline:2px solid #b16e7d;outline-offset:2px}.agent-prompt-actions{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:18px}.agent-prompt-actions>div{display:flex;gap:8px}.agent-footnote{font-size:10px;color:#999;line-height:1.8;margin-top:14px}.agent-prompt-actions .subtle{border-color:#ddd;color:#777;background:#fff}.agent-prompt-actions .primary{font-size:11px}.agent-prompt-actions .subtle:hover{border-color:#b67a89;color:#801e2f}@media(max-width:600px){.agent-dialog{padding:24px 18px;width:calc(100vw - 24px);max-height:92dvh}.agent-dialog h2{font-size:21px}.agent-dialog .agent-intro{font-size:11px}.agent-dialog #agent-prompt{font-size:10px;padding:12px;height:32dvh}.agent-prompt-actions{flex-wrap:wrap;gap:12px}.agent-prompt-actions>div{margin-left:auto}.agent-prompt-actions .primary,.agent-prompt-actions .subtle{font-size:10px}.agent-prompt-toolbar>span{font-size:8px}}
