.screen-editor-app{border:1px solid var(--border);background:var(--background);min-width:0;height:clamp(520px,100vh - 200px,960px);min-height:560px;color:var(--foreground);border-radius:12px;flex-direction:column;font-family:inherit;font-size:14px;line-height:1.45;display:flex;overflow:hidden}.screen-editor-app.is-expanded{z-index:100;border-radius:10px;width:auto;height:auto;min-height:0;position:fixed;inset:8px;box-shadow:0 16px 60px #0f172a55}.screen-editor-top,.screen-editor-toolbar{background:var(--card);border-bottom:1px solid var(--border);align-items:center;gap:10px;padding:8px 12px;display:flex}.screen-editor-top{flex-wrap:wrap;flex-shrink:0;min-height:48px}.screen-editor-grid{flex:1;grid-template-columns:minmax(240px,260px) minmax(0,1fr) minmax(270px,300px);min-width:0;min-height:0;display:grid}.screen-editor-panel{background:var(--card);border-right:1px solid var(--border);min-width:0;padding:10px;overflow:auto}.screen-editor-panel:last-child{border-right:0;border-left:1px solid var(--border)}.screen-editor-panel h2{margin:8px 0;font-size:13px}.screen-editor-panel-title{justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:8px;display:flex}.screen-editor-panel-title h2{margin:0}.screen-editor-panel-tabs{background:var(--muted);border-radius:8px;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-bottom:12px;padding:3px;display:grid}.screen-editor-panel-tabs button{width:100%}.screen-editor-panel-title span{min-width:0;color:var(--muted-foreground);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.screen-inspector-tabs{background:var(--muted);border-radius:8px;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;padding:3px;display:grid}.screen-inspector-tabs button{white-space:nowrap;min-width:0;padding:6px 3px;font-size:12px}.screen-inspector-coordinate-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.screen-inspector-hint{color:var(--muted-foreground);font-size:12px}.screen-inspector-tabs button:focus-visible,.screen-editor-panel button:focus-visible,.screen-editor-toolbar button:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.screen-editor-palette-heading{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.screen-editor-palette-heading h2{margin-bottom:4px}.screen-editor-palette-heading span,.screen-editor-palette-help{color:var(--muted-foreground);font-size:11px}.screen-editor-palette-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;display:grid}.screen-editor-palette-item{flex-direction:column;justify-content:center;align-items:flex-start;gap:2px;min-height:48px;padding:4px 7px;font-size:12px;position:relative}.screen-editor-palette-item>span:first-child{justify-content:center;align-items:center;width:22px;height:22px;display:inline-flex}.screen-editor-palette-item>span:first-child svg{width:16px;height:16px}.screen-editor-palette-item>span:first-child{width:22px;height:22px}.screen-editor-palette-item>svg{width:13px;height:13px;position:absolute;top:6px;right:6px}.screen-editor-palette-item>span:nth-child(2){flex:none;max-width:100%}.screen-editor-palette-help{margin:0 0 5px;line-height:1.45}.screen-editor-panel>button{text-align:left;width:100%;margin:3px 0}.screen-editor-work{flex-direction:column;min-width:0;min-height:0;display:flex}.screen-editor-toolbar{flex-wrap:nowrap;flex-shrink:0;gap:8px 12px;min-height:44px;overflow-x:auto}.screen-editor-toolbar>*{flex-shrink:0}.screen-editor-toolbar label{white-space:nowrap;align-items:center;gap:6px;margin:0;display:inline-flex}.screen-editor-toolbar-control{gap:5px;min-width:0;display:flex}.screen-editor-field{grid-template-columns:76px minmax(0,1fr);align-items:center;gap:4px 8px;min-width:0;margin:8px 0;font-size:12.5px;display:grid}.screen-editor-field>:first-child{color:var(--muted-foreground)}.screen-editor-toolbar-control{flex-direction:row;align-items:center;margin:0}.screen-editor-scroll{background:var(--muted);flex:1;min-width:0;min-height:0;padding:16px;position:relative;overflow:auto}.screen-editor-canvas{box-sizing:border-box;background:var(--card);min-height:600px;margin:0 auto;padding:16px;position:relative;overflow:auto;box-shadow:0 4px 20px #0f172a20}.screen-document-view,.screen-canvas-zoom{min-height:600px}.screen-node{min-width:0}.screen-node-editing{cursor:pointer;outline:none}.screen-empty-node-text{color:var(--muted-foreground);opacity:.7}.screen-node-editing:not(.is-selected):hover:after{content:"";z-index:3;pointer-events:none;border:1px solid var(--ring);position:absolute;inset:-1px}.screen-node-editing.is-selected:before{content:attr(data-node-label);z-index:5;background:var(--ring);color:#fff;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;border-radius:4px;max-width:220px;padding:2px 6px;font-size:11px;line-height:18px;position:absolute;top:-24px;left:0;overflow:hidden}.screen-node-editing.is-selected:not(.is-selected-root):after,.screen-node-editing.is-selected-root:after{content:"";z-index:4;pointer-events:none;outline:2px solid var(--ring);outline-offset:0;position:absolute;inset:-2px}.screen-node-editing.is-selected-parent:after{content:"";z-index:2;pointer-events:none;outline:1px dashed var(--muted-foreground);outline-offset:2px;position:absolute;inset:-3px}.screen-node-editing[data-insert=before]{box-shadow:inset 0 3px #ea580c}.screen-node-editing[data-insert=after]{box-shadow:inset 0 -3px #ea580c}.screen-node-editing[data-insert=inside]{outline-offset:3px;outline:2px solid #ea580c}.screen-repeat-row{border-bottom:1px solid var(--border);flex-direction:column;gap:8px;padding:8px;display:flex}.screen-field{flex-direction:column;gap:4px;display:flex}.screen-table{border:1px solid var(--border);border-radius:6px;overflow-x:auto}.screen-table table{border-collapse:collapse;width:100%;font-size:.875em}.screen-table th,.screen-table td{text-align:left;border-bottom:1px solid var(--border);border-right:1px solid var(--border);white-space:nowrap;padding:6px 10px}.screen-table th:last-child,.screen-table td:last-child{border-right:0}.screen-table tbody tr:last-child td{border-bottom:0}.screen-table th{color:var(--foreground);background:var(--muted);font-weight:600}.screen-editor-panel label{flex-direction:column;gap:5px;margin:12px 0;display:flex}.screen-layer{padding-left:12px}.screen-layer>button{text-align:left;width:100%;min-height:32px;color:var(--muted-foreground);text-overflow:ellipsis;white-space:nowrap;background:0 0;border:1px solid #0000;border-radius:6px;padding:6px 8px;transition:background-color .15s,border-color .15s,color .15s;overflow:hidden}.screen-layer>button:hover{background:var(--accent)}.screen-layer>button:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.screen-layer>button[aria-current=true]{border-color:var(--ring);background:var(--accent);color:var(--accent-foreground);box-shadow:inset 3px 0 0 var(--ring);font-weight:600}.screen-editor-actions{gap:8px;margin-top:16px;display:flex}.screen-inspector-section{border-top:1px solid var(--border);margin-top:10px;padding-top:4px}.screen-editor-panel button:disabled{cursor:not-allowed;opacity:.55}@media (max-width:1100px){.screen-editor-app{height:clamp(560px,100vh - 360px,760px)}.screen-editor-grid{grid-template-columns:minmax(170px,200px) minmax(0,1fr) minmax(250px,270px)}}@media (max-width:600px){.screen-editor-app{height:auto;min-height:0;overflow:visible}.screen-editor-grid{grid-template-columns:1fr}.screen-editor-panel:last-child{border-top:1px solid var(--border);border-left:0;display:block}.screen-editor-scroll{height:auto;min-height:60vh}}@media (min-width:601px) and (max-height:700px){.screen-editor-app:not(.is-expanded){height:560px}}.screen-node button .screen-empty-node-text{color:inherit;opacity:.85}.screen-editor-selection-bar{z-index:20;border:1px solid var(--border);background:var(--card);border-radius:8px;gap:2px;padding:3px;display:flex;position:absolute;box-shadow:0 2px 10px #0f172a26}.screen-editor-selection-bar button{width:26px;height:26px;color:var(--muted-foreground);background:0 0;border:0;padding:0}.screen-editor-selection-bar button:hover{background:var(--accent);color:var(--foreground)}.screen-editor-selection-bar svg{width:15px;height:15px}.screen-editor-app{font-size:13px}.screen-editor-top{flex-wrap:nowrap;gap:8px;min-height:46px;padding:7px 12px}.screen-editor-top-spacer{flex:auto}.screen-editor-title{text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:40%;font-size:14px;font-weight:600;overflow:hidden}.screen-editor-status{color:var(--muted-foreground);font-size:12px}.screen-editor-top .dirty{color:var(--ring)}.screen-editor-grid{grid-template-columns:minmax(220px,240px) minmax(0,1fr) minmax(260px,288px)}.screen-editor-app .screen-editor-panel{padding:0 12px 12px}.screen-editor-app .screen-editor-segmented{border:1px solid var(--input);background:var(--card);border-radius:7px;min-width:0;display:inline-flex;overflow:hidden}.screen-editor-field .screen-editor-segmented{width:100%;display:flex}.screen-editor-app .screen-editor-segmented button{border:0;border-right:1px solid var(--border);min-height:28px;color:var(--muted-foreground);white-space:nowrap;background:0 0;border-radius:0;flex:auto;padding:0 10px;font-size:12.5px}.screen-editor-app .screen-editor-segmented button:last-child{border-right:0}.screen-editor-app .screen-editor-segmented button[aria-pressed=true]{background:color-mix(in srgb, var(--ring) 14%, transparent);color:var(--ring);font-weight:600}.screen-editor-app .screen-editor-segmented button:not([aria-pressed=true]):hover{background:var(--accent);color:var(--foreground)}.screen-editor-app .screen-editor-panel-tabs,.screen-editor-app .screen-inspector-tabs{border-bottom:1px solid var(--border);background:0 0;border-radius:0;gap:2px;margin:0 -12px 8px;padding:0 12px;display:flex}.screen-editor-app .screen-editor-panel-tabs button,.screen-editor-app .screen-inspector-tabs button{width:auto;min-height:0;color:var(--muted-foreground);box-shadow:none;background:0 0;border:0;border-bottom:2px solid #0000;border-radius:0;padding:10px 8px;font-size:13px;font-weight:500}.screen-editor-app .screen-editor-panel-tabs button[aria-selected=true],.screen-editor-app .screen-inspector-tabs button[aria-selected=true]{border-bottom-color:var(--ring);color:var(--foreground);background:0 0}.screen-editor-palette-panel>.screen-editor-palette-list,.screen-editor-palette-group .screen-editor-palette-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.screen-editor-palette-group{margin-top:10px}.screen-editor-palette-group h3{color:var(--muted-foreground);letter-spacing:.06em;margin:0 0 6px;font-size:11px;font-weight:600}.screen-editor-app .screen-editor-palette-item{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:4px;height:auto;min-height:58px;padding:8px 2px 6px;font-size:11.5px}.screen-editor-palette-panel>.screen-editor-palette-help:first-of-type,.screen-editor-palette-panel>input{margin-top:10px}.screen-editor-palette-panel>input{height:30px;font-size:13px}.screen-editor-palette-help{color:var(--muted-foreground);font-size:11px}.screen-editor-inspector .screen-editor-panel-title{border-bottom:1px solid var(--border);margin:0 -12px;padding:10px 12px}.screen-editor-inspector .screen-editor-panel-title h2{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;font-weight:600;overflow:hidden}.screen-editor-inspector .screen-editor-panel-title .screen-inspector-type{background:color-mix(in srgb, var(--ring) 14%, transparent);color:var(--ring);border-radius:999px;flex:none;padding:1px 8px;font-size:11px}.screen-editor-inspector>.screen-inspector-tabs{margin-bottom:0}.screen-inspector-content{padding-top:0}.screen-inspector-section{border-top:0;border-bottom:1px solid var(--border);margin:0 -12px;padding:10px 12px}.screen-inspector-section>h3{color:var(--muted-foreground);letter-spacing:.06em;margin:0 0 8px;font-size:11px;font-weight:600}.screen-editor-field button[role=combobox],.screen-editor-field input{height:30px;min-height:30px;padding-top:0;padding-bottom:0;font-size:13px}.screen-editor-work{position:relative}.screen-editor-scroll{background:color-mix(in srgb, var(--muted) 70%, var(--border));padding:24px 24px 72px}.screen-editor-canvas{background:var(--card);border-radius:4px;box-shadow:0 1px 2px #0f172a14,0 6px 24px #0f172a14}.screen-editor-zoom{z-index:25;border:1px solid var(--border);background:var(--card);border-radius:999px;align-items:center;gap:2px;padding:3px 8px;display:flex;position:absolute;bottom:14px;left:50%;transform:translate(-50%);box-shadow:0 2px 10px #0f172a26}.screen-editor-zoom button{width:26px;height:26px;color:var(--muted-foreground);background:0 0;border:0;border-radius:999px;padding:0}.screen-editor-zoom button:hover{background:var(--accent);color:var(--foreground)}.screen-editor-zoom .screen-editor-zoom-value{width:auto;min-width:46px;color:var(--foreground);font-variant-numeric:tabular-nums;padding:0 6px;font-size:12px}.screen-editor-zoom svg{width:15px;height:15px}.screen-editor-top .screen-editor-top-spacer+.screen-editor-segmented~button,.screen-editor-top button{min-height:30px;font-size:13px}.screen-editor-top button[aria-label]{width:30px;height:30px;padding:0}.screen-editor-top svg{width:16px;height:16px}.screen-editor-app .screen-layer>button{height:auto;min-height:28px;color:var(--foreground);text-align:left;border:0;border-radius:6px;justify-content:flex-start;padding:4px 8px;font-size:13px;font-weight:400}.screen-editor-app .screen-layer>button[aria-current=true]{background:color-mix(in srgb, var(--ring) 14%, transparent);box-shadow:none;color:var(--ring);border:0;font-weight:600}.screen-editor-palette-panel>h2{color:var(--muted-foreground);letter-spacing:.06em;margin:10px 0 4px;font-size:11px;font-weight:600}.screen-editor-app .screen-editor-scroll{scrollbar-width:thin;flex-direction:column;display:flex}.screen-editor-app .screen-editor-canvas{flex:1 0 auto;min-height:0;padding:0;overflow:visible}.screen-editor-app .screen-canvas-zoom{min-height:0}.screen-canvas-fit{overflow:visible}.screen-editor-number{min-width:0;position:relative}.screen-editor-number input{padding-right:28px}.screen-editor-number:after{content:attr(data-unit);color:var(--muted-foreground);pointer-events:none;font-size:11px;position:absolute;top:50%;right:9px;transform:translateY(-50%)}.screen-node-editing.is-selected:before{border-radius:4px 4px 0 0;padding:0 7px;line-height:19px;top:-23px;left:-4px}.screen-node-editing.is-selected-parent:after{outline:1px dashed color-mix(in srgb, var(--ring) 60%, transparent)}.screen-editor-app button.h-9{height:28px;min-height:28px;padding:0 10px;font-size:12.5px}.screen-editor-top button,.screen-editor-top .screen-editor-segmented button{min-height:28px}.screen-editor-top button[aria-label]{width:28px;height:28px}.screen-editor-app .screen-editor-panel-tabs button,.screen-editor-app .screen-inspector-tabs button{padding:7px 8px}.screen-editor-top{min-height:42px;padding:6px 12px}.screen-editor-app button.screen-editor-palette-item{height:auto;min-height:58px;padding:8px 2px 6px;font-size:11.5px}.screen-editor-app .screen-layer>button.h-9{height:auto;min-height:28px;padding:4px 8px;font-size:13px}.screen-node-editing[data-node-id=root]:before,.screen-node-editing[data-node-id=root]:after{display:none}.screen-editor-empty{z-index:1;color:var(--muted-foreground);text-align:center;pointer-events:none;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:24px;display:flex;position:absolute;inset:0}.screen-editor-empty-icon{background:var(--muted);width:64px;height:64px;color:var(--muted-foreground);border-radius:999px;place-items:center;margin-bottom:8px;display:grid}.screen-editor-empty-icon svg{width:28px;height:28px}.screen-editor-empty p{color:var(--muted-foreground);margin:0;font-size:14px}.screen-node-editing .screen-field :is(input,textarea,select){pointer-events:none}.screen-inspector-coordinate-grid .screen-editor-field{grid-template-columns:14px minmax(0,1fr);margin:0}.screen-editor-mobile-tabs{display:none}@media (max-width:768px){.screen-editor-app:not(.is-expanded){height:calc(100dvh - 200px);min-height:480px;overflow:hidden}.screen-editor-top{padding:6px 10px}.screen-editor-title{flex:auto;max-width:none}.screen-editor-top-spacer,.screen-editor-top .screen-editor-segmented,.screen-editor-top .screen-editor-status{display:none}.screen-editor-mobile-tabs{border-bottom:1px solid var(--border);background:var(--card);flex-shrink:0;padding:6px 10px;display:block}.screen-editor-mobile-tabs .screen-editor-segmented{width:100%;display:flex}.screen-editor-mobile-tabs .screen-editor-segmented button{flex:1 1 0}.screen-editor-grid{grid-template-columns:minmax(0,1fr)}.screen-editor-app .screen-editor-grid>*{border:0;display:none}.screen-editor-app .screen-editor-grid[data-mobile-panel=canvas]>.screen-editor-work,.screen-editor-app .screen-editor-grid[data-mobile-panel=parts]>.screen-editor-palette-panel,.screen-editor-app .screen-editor-grid[data-mobile-panel=settings]>.screen-editor-inspector{flex-direction:column;display:flex}.screen-editor-app .screen-editor-grid[data-mobile-panel=parts]>.screen-editor-palette-panel,.screen-editor-app .screen-editor-grid[data-mobile-panel=settings]>.screen-editor-inspector{display:block}.screen-editor-scroll{flex:auto;height:auto;min-height:0;padding:12px 12px 64px}}.screen-editor-overridden i{background:var(--primary);vertical-align:middle;border-radius:50%;width:6px;height:6px;margin-left:5px;display:inline-block}.screen-editor-override-note{background:color-mix(in srgb, var(--primary) 10%, var(--card));color:var(--foreground);border-radius:7px;align-items:center;gap:8px;margin:8px 12px 0;padding:7px 9px;font-size:12px;display:flex}.screen-editor-override-note button{flex-shrink:0;margin-left:auto}.screen-node-editing.is-hidden-here{opacity:.28;outline:1px dashed var(--border);outline-offset:1px}.screen-editor-swatches{border:0;flex-wrap:wrap;align-items:center;gap:5px;min-width:0;margin:0;padding:0;display:flex}.screen-editor-swatch{border:1px solid var(--border);border-radius:6px;width:22px;height:22px;padding:0}.screen-editor-swatch[aria-pressed=true]{outline:2px solid var(--ring);outline-offset:1px}.screen-editor-swatch.is-none{background:linear-gradient(135deg, transparent 46%, var(--destructive) 47% 53%, transparent 54%), var(--card)}.screen-editor-color-code{width:78px;height:22px;padding:0 6px;font-size:11.5px}.screen-editor-padding-inputs{align-items:center;gap:6px;min-width:0;display:flex}.screen-editor-padding-inputs>:first-child{flex:auto;min-width:0}.screen-editor-padding-inputs .screen-editor-field{margin:0;display:block}.screen-editor-pad4{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;display:grid}.screen-editor-pad4>div{display:block}.screen-editor-pad4 input{text-align:center;padding:0 3px}.screen-editor-pad4 small{color:var(--muted-foreground);text-align:center;font-size:10.5px;display:block}.screen-editor-link-toggle{border:1px solid var(--border);background:var(--card);width:28px;height:28px;color:var(--muted-foreground);border-radius:7px;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.screen-editor-link-toggle svg{width:14px;height:14px}.screen-editor-link-toggle[aria-pressed=true]{border-color:var(--primary);background:color-mix(in srgb, var(--primary) 12%, var(--card));color:var(--primary)}.screen-editor-image-preview{border:1px solid var(--border);object-fit:cover;border-radius:7px;width:100%;max-height:96px;margin-bottom:8px;display:block}.screen-image-empty{width:100%;height:100%;min-height:48px;color:var(--muted-foreground);justify-content:center;align-items:center;font-size:12px;display:flex}.screen-editor-source-card{border:1px solid var(--border);background:color-mix(in srgb, var(--muted) 40%, var(--card));border-radius:9px;margin:8px 0;padding:8px 10px}.screen-editor-note{color:var(--muted-foreground);margin:8px 0 0;font-size:12px;line-height:1.5}.screen-editor-source-head{justify-content:space-between;align-items:center;gap:8px;font-size:13px;display:flex}.screen-editor-chips{border:0;flex-wrap:wrap;gap:5px;min-width:0;margin:0;padding:0;display:flex}.screen-editor-chip{border:1px solid var(--border);background:var(--card);border-radius:999px;padding:2px 10px;font-size:12.5px}.screen-editor-chip[aria-pressed=true]{border-color:var(--primary);background:color-mix(in srgb, var(--primary) 12%, var(--card));color:var(--primary);font-weight:600}.screen-editor-filter-row{border-top:1px dashed var(--border);gap:4px;margin:6px 0;padding-top:6px;display:grid}.screen-editor-stack-note{background:var(--muted);color:var(--muted-foreground);margin:0;padding:6px 12px;font-size:12px}