.theme-toggle{display:inline-grid!important;place-items:center;flex:0 0 36px;width:36px;height:36px;min-height:36px;padding:7px!important;border:1px solid #ffffff55!important;border-radius:5px;background:transparent!important;color:white!important}
.theme-toggle:hover{background:#ffffff18!important;border-color:#ffffffaa!important}.theme-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
html[data-theme=dark]{color-scheme:dark;--paper:#0c1323;--ink:#e9eef9;--muted:#9daec9;--line:#2b3953;--pale:#151f34;--blue:#9bb4ff;--blue-deep:#819eff;--mint-pale:#233416;--surface:#121d31;--raised:#18253c}
html[data-theme=dark] body{background:var(--paper);color:var(--ink)}
:root[data-theme=dark] button{background:var(--raised);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.topbar,.network-bar,.build-header,.build-network){background:#10182b;color:#f4f6ff}
html[data-theme=dark] .hero{background-color:#2546e8}
html[data-theme=dark] .hero .hero-actions .primary{background:#c3f53c;color:#243216}
html[data-theme=dark] .hero .hero-actions .lime{background:#c3f53c;color:#243216;border-color:#c3f53c}
html[data-theme=dark] .header-new{background:#c3f53c;color:#243216}
html[data-theme=dark] :is(.principle-strip,.workbench,.editor-toolbar,.build-layout,.screen-editor,.result-pane,.logic-pane,.page-footer,.build-footer,.next-idea){background:var(--surface);border-color:var(--line)}
html[data-theme=dark] :is(input,textarea,select,.button,.project-tools .icon-button,.screen-select,.tool-import button,.app-bar button,.app-file-actions button,.app-picker button,.panel-heading button,.runtime-toolbar button,.runtime-navigation button,dialog,.template-card,.block-choice,.project-card){background:var(--raised);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] #ai-versions>button{background:var(--raised);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .system-bar :is(strong,b){color:#d0dcf5}
html[data-theme=dark] :is(.system-bar,.block-library,.result-toolbar,.screen-sidebar,.panel-heading,.runtime-toolbar,.runtime-navigation,.app-status,.output-context,.result-footer,.mode-note,.screen-meta,.build-report,.transition-extra,.workbench-footer){background:#101b2e;color:var(--muted);border-color:var(--line)}
html[data-theme=dark] :is(.canvas-wrap,.graph-canvas,.sketch-surface){background-color:#101a2c;background-image:radial-gradient(#334361 1px,transparent 1px)}
html[data-theme=dark] :is(.node,.block-row,.transition){background:var(--raised);border-color:#435572;color:var(--ink)}
html[data-theme=dark] :is(.node.selected,.screen-select[aria-current=true]){background:#20341e;border-color:#a8d64e;color:#e7f6c8}
html[data-theme=dark] .node-head{background:#22354a;color:#b9cafa;border-color:#405272}
html[data-theme=dark] :is(.node-name,.node-detail,.ai-message p,.guide-copy,.modal-note){color:var(--ink)}
html[data-theme=dark] :is(.node-detail,.canvas-help,.ai-message small,.ai-message>span,.ai-provider-row,#ai-budget,.describe-view #ai-budget,#ai-versions small,.run-heading p){color:var(--muted)}
html[data-theme=dark] :is(.ai-label,.start-tag,.state-tag,.graph-status,.status-chip){background:#273a1d;color:#d6f6a0}
html[data-theme=dark] :is(.mode-tabs button[aria-selected=true],.result-toolbar [role=tab][aria-selected=true],#artifact-code-tabs button[aria-pressed=true]){background:#293a62;color:#d9e3ff}
html[data-theme=dark] :is(.description-presets button,.starter-bar button){color:#d5e0ff}
html[data-theme=dark] :is(.description-presets button:hover,.starter-bar button:hover){background:#263918;color:#d9f3ae}
html[data-theme=dark] :is(#code-editor,#source-code,#screen-source,#export-source){background:#0b1425;color:#dce7ff;border-color:var(--line)}
html[data-theme=dark] :is(.source-line-number,.line-number){color:#7386a7}
html[data-theme=dark] :is(.app-preview,.iframe-shell,#app-runtime,.runtime-empty,.app-runtime){background:#0e182a;border-color:var(--line)}
html[data-theme=dark] :is(.app-runtime iframe,.iframe-shell iframe){background:#111a2c;border-color:var(--line)}
html[data-theme=dark] .runtime-navigation button{background:#c3f53c;color:#243216;border-color:#c3f53c}
html[data-theme=dark] :is(.primary,.button.primary,.run-controls .primary,.panel-heading .primary,[data-build-action=run]){background:#c3f53c;color:#243216;border-color:#c3f53c}
html[data-theme=dark] :is(.runtime-error,.tool-runtime-error,.build-report.error){background:#3b2128;color:#ffbfbe;border-color:#70414b}
html[data-theme=dark] .guest-workspace-note{background:#151f36!important;color:#b7c8ed!important}
html[data-theme=dark] :is(.modal-heading,.inspector,.transition-list,.editor-help,.build-bottom,.app-bar,.source-meta){border-color:var(--line)}
html[data-theme=dark] .screen-select .start-tag{background:#3b5422;color:#e3f6b8}
html[data-theme=dark] .ai-build-status{color:#ffc7a7}
html[data-theme=dark] .describe-view #description-message.success{color:#c8ee94}
@media(max-width:760px){.header-end{gap:9px}.theme-toggle{flex-basis:34px;width:34px;height:34px;min-height:34px}.build-header{gap:12px}.build-header nav{gap:1px}.build-header nav a,.build-header nav button{padding-inline:7px}}
