/* Siluetra-specific chrome uses the real Spectrum token layer and Dockview layout. */
html,body{height:100%;margin:0;overflow:hidden;font-family:var(--spectrum-sans-font-family,Arial,sans-serif);font-size:12px}
sp-theme#siluetra-theme{display:block;width:100%;height:100%;--desktop-bg:var(--spectrum-gray-100);--desktop-raised:var(--spectrum-gray-75);--desktop-line:var(--spectrum-gray-300);--desktop-text:var(--spectrum-gray-800);--desktop-muted:var(--spectrum-gray-600);--desktop-accent:var(--spectrum-blue-900);color:var(--desktop-text);background:var(--desktop-bg);--spectrum-actionbutton-size-s-height:28px}
#editor{height:100%;display:flex;flex-direction:column;background:var(--desktop-bg);color:var(--desktop-text)}#editor.hidden{display:none}
.topbar{flex:0 0 42px;min-height:42px;height:42px;gap:8px;padding:0 8px;background:var(--desktop-raised);border-bottom:1px solid var(--desktop-line);box-shadow:none;overflow:visible}
.topbar .brand{font-size:12px;gap:5px;min-width:84px}.brand-mark{width:22px;height:22px}.document-area{width:170px;flex:none}.document-title{gap:4px}.document-title #project-name{width:132px}.save-state{font-size:10px;line-height:12px;margin:0}.document-view{margin-left:0;gap:3px}.view-tabs{border:0;padding:0;gap:2px}.top-actions{gap:4px;margin-left:auto}.app-action-group{gap:2px;padding:0 4px}.app-action-group+ .app-action-group{border-left:1px solid var(--desktop-line)}.ux-menus{gap:1px;margin:0}.structure-state{font-size:10px}
.context-bar{height:34px;min-height:34px;flex:0 0 34px;gap:8px;padding:0 10px;background:var(--desktop-bg);border-bottom:1px solid var(--desktop-line);overflow-x:auto;overflow-y:hidden;white-space:nowrap}.context-breadcrumb{font-size:11px;min-width:100px;max-width:210px;color:var(--desktop-muted);overflow:hidden;text-overflow:ellipsis}.context-tool-hint{font-size:11px}.tool-group{gap:6px;border:0;border-left:1px solid var(--desktop-line);padding:0 6px}.tool-group-label{font-size:10px;color:var(--desktop-muted)}.tool-group>div{gap:2px}.context-bar .gradient-inline{gap:4px}
.workspace{display:flex;flex:1 1 0;min-height:0;min-width:0;position:relative;gap:0;background:var(--desktop-line);overflow:hidden}#desktop-dockview{flex:1 1 0;min-width:0;height:100%;position:relative}#desktop-dockview>.dockview-component{width:100%;height:100%}.desktop-pane{height:100%;width:100%;min-width:0;min-height:0;overflow:hidden;display:flex;flex-direction:column;background:var(--desktop-raised);color:var(--desktop-text)}.desktop-pane>.library,.desktop-pane>.properties,.desktop-pane>.floating-palette{position:static!important;display:flex;flex-direction:column;width:100%!important;min-width:0!important;height:100%!important;max-height:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;margin:0;overflow:auto;background:var(--desktop-raised);color:var(--desktop-text)}.desktop-pane .dock-header,.desktop-pane .floating-header{display:none}.desktop-pane #properties,.desktop-pane #appearance-content,.desktop-pane #resources-content{overflow:auto;flex:1;min-height:0;padding:8px}.desktop-pane #library-content{display:flex;flex-direction:column;height:100%;overflow:hidden}.desktop-pane .floating-body{padding:8px;overflow:auto;min-height:0}.desktop-pane .history-list{overflow:auto}.desktop-pane .hidden{display:none!important}
/* The 4px gutter, neutral hover and 24px square rhythm adapt Graphite PanelSubdivision/IconButton; drag behavior is Dockview. */
.dockview-theme-siluetra{--dv-group-view-background-color:var(--desktop-raised);--dv-tabs-and-actions-container-background-color:var(--desktop-bg);--dv-activegroup-visiblepanel-tab-background-color:var(--desktop-raised);--dv-activegroup-hiddenpanel-tab-background-color:var(--desktop-bg);--dv-inactivegroup-visiblepanel-tab-background-color:var(--desktop-raised);--dv-inactivegroup-hiddenpanel-tab-background-color:var(--desktop-bg);--dv-activegroup-visiblepanel-tab-color:var(--desktop-text);--dv-activegroup-hiddenpanel-tab-color:var(--desktop-muted);--dv-inactivegroup-visiblepanel-tab-color:var(--desktop-text);--dv-inactivegroup-hiddenpanel-tab-color:var(--desktop-muted);--dv-tab-divider-color:var(--desktop-line);--dv-separator-border:var(--desktop-line);--dv-tabs-and-actions-container-height:28px;--dv-tab-font-size:11px;--dv-sash-size:4px;--dv-sash-color:var(--desktop-line);--dv-tab-margin:0;--dv-border-radius:0;--dv-drag-over-background-color:color-mix(in srgb,var(--desktop-accent) 20%,transparent);--dv-drag-over-border-color:var(--desktop-accent)}.dv-resize-container{border:1px solid var(--desktop-line);box-shadow:0 8px 32px #0005}.dv-default-tab{padding:0 8px}.dv-tabs-container .dv-tab{border-radius:0}.dv-default-tab .dv-default-tab-content{font-weight:500}
#tools{flex:0 0 40px;width:40px;min-width:40px;display:flex;flex-direction:column;align-items:center;padding:5px 0;gap:1px;border-right:1px solid var(--desktop-line);background:var(--desktop-bg);overflow:visible;z-index:3}.tool-family{width:34px;height:32px;position:relative;display:flex;align-items:center;justify-content:center;margin:0}.tool-family>sp-action-button{width:30px;height:30px;min-width:30px;padding:0;border-radius:2px}.tool-family>sp-action-button span,.tool-family>sp-action-button kbd{display:none}.tool-family>sp-action-button.active{background:var(--spectrum-gray-300);box-shadow:inset 2px 0 var(--desktop-accent)}.tool-family>sp-action-menu{position:absolute;right:-4px;bottom:-2px;transform:scale(.7);transform-origin:bottom right;max-width:16px}.tool-family>sp-action-menu::part(button){min-width:16px;width:16px;padding:0}.tool-cluster{display:flex;flex-direction:column;border-top:1px solid var(--desktop-line);gap:1px;padding-top:4px;margin-top:4px}.rail-colors{width:32px;height:40px;padding:0;margin-top:auto}.rail-swatch{width:23px!important;height:23px!important;border:1px solid var(--desktop-line);border-radius:0!important}.ui-icon{width:16px!important;height:16px!important;min-width:16px;max-width:16px;max-height:16px;vertical-align:middle;flex:none}sp-menu-item .ui-icon{width:16px!important;height:16px!important}
#canvas-wrap{display:block;position:relative;width:100%;height:100%;min-width:0;min-height:0;background:var(--spectrum-gray-200)!important;border:0;padding:0}#canvas{width:100%;height:100%;display:block;touch-action:none}.canvas-label{position:absolute;top:8px;left:10px;right:10px;font-size:10px;color:var(--desktop-muted);pointer-events:none;z-index:1}.canvas-label span:last-child{color:var(--desktop-muted)}
.statusbar{display:flex;flex:0 0 27px;min-height:27px;height:27px;gap:12px;padding:0 8px;background:var(--desktop-bg);border-top:1px solid var(--desktop-line);font-size:10px}.status-hint{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.canvas-bottom{gap:4px;align-items:center}.statusbar sp-action-button{height:22px;--spectrum-actionbutton-size-s-height:22px;font-size:10px}.statusbar .zoom-group{gap:1px}.statusbar #status{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.divider{height:18px;background:var(--desktop-line)}
.selection-header{border:0;padding:4px 0 8px;margin:0 0 5px;gap:6px}.selection-header strong{font-size:12px}.selection-header small,.selection-header span{font-size:10px;color:var(--desktop-muted)}.inspector-section{margin:0;border:0;border-top:1px solid var(--desktop-line);border-radius:0;background:transparent}.inspector-section>summary{padding:7px 0;font-size:11px;font-weight:600;background:transparent}.inspector-section-body{padding:0 0 8px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0}.field{padding:0;min-width:0;gap:3px;font-size:11px}.field.full{grid-column:1/-1}.field label{font-size:10px;color:var(--desktop-muted)}.field-value{gap:3px}.field-unit{font-size:10px;color:var(--desktop-muted)}sp-textfield,sp-number-field,sp-picker{width:100%;min-width:0;max-width:100%;--spectrum-textfield-height:28px}sp-number-field{--spectrum-numberfield-width:100%}sp-slider{width:100%;min-width:60px}sp-action-button,sp-button{font-size:11px;max-width:100%}sp-action-group{gap:2px}.prop-buttons{display:flex;flex-wrap:wrap;gap:3px;margin:7px 0}.prop-buttons sp-action-button{flex:1;font-size:10px}.prop-buttons sp-action-button .ui-icon{width:14px!important;height:14px!important}.context-bar sp-number-field,.context-bar sp-picker{width:100px}.context-bar sp-slider{width:120px}.context-bar sp-action-button{height:24px}.context-bar .prop-buttons{flex-wrap:nowrap;margin:0}
.layer-row{height:25px;min-height:25px;padding-top:0;padding-bottom:0;gap:4px;border-bottom:0;border-radius:0;font-size:11px}.layer-row.active{background:color-mix(in srgb,var(--desktop-accent) 19%,transparent);box-shadow:inset 2px 0 var(--desktop-accent)}.layer-row .name{font-size:11px}.layer-row sp-action-button{width:22px;min-width:22px;height:22px;padding:0}.layer-row .ui-icon{width:14px!important;height:14px!important}.layer-tree{flex:1;min-height:0;overflow:auto}.layers-footer{display:flex;border-top:1px solid var(--desktop-line);padding:3px 6px;gap:4px;margin-top:auto}.resource-search-wrap{padding:6px;display:flex;gap:6px;border-bottom:1px solid var(--desktop-line)}.resource-use-hint{font-size:10px;margin:0 0 5px;color:var(--desktop-muted)}.resource-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:5px 0}.resource-card{border:1px solid var(--desktop-line);border-radius:2px;background:transparent;box-shadow:none;padding:0;position:relative}.resource-card .resource{height:86px;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4px}.resource-card .resource>svg{width:100%;height:53px}.resource-card .resource span{font-size:10px}.resource-kind{display:none}.resource-star{position:absolute;right:0;top:0;width:20px;height:20px}.resource-card:hover{border-color:var(--desktop-accent)}#resources-content>details>summary{padding:6px 0;font-size:11px;border-bottom:1px solid var(--desktop-line)}
.desktop-appearance h3{font-size:11px;margin:0 0 10px}.appearance-swatches{display:flex;gap:5px;margin-bottom:14px}.paint-chip{width:16px;height:16px;border:1px solid var(--desktop-line);display:inline-block;vertical-align:middle}.desktop-appearance>.field{display:flex;flex-direction:column;margin-bottom:12px}.fabric-tiles{gap:5px}.fabric-tiles sp-action-button{padding:4px;min-height:55px;display:flex;flex-direction:column}.fabric-swatch{height:34px}.history-list sp-action-button{display:flex;width:100%;justify-content:flex-start;min-height:27px;font-size:11px;border-radius:0}.history-list sp-action-button.current{background:var(--spectrum-gray-200)}
#modal{border:1px solid var(--desktop-line);border-radius:4px;background:var(--desktop-raised);color:var(--desktop-text);padding:0;max-height:85vh;width:min(620px,90vw);box-shadow:0 12px 48px #0006}#modal sp-dialog{width:100%;--spectrum-dialog-padding:18px}.modal-header{padding:0 0 12px;border-bottom:1px solid var(--desktop-line);background:transparent}.modal-header h2{font-size:16px;font-weight:500}.modal-content{padding:12px 0;max-height:65vh;overflow:auto}.modal-footer{padding:10px 0 0;background:transparent;gap:6px}.context,.appearance-popover,.variants-popover,.pathfinder-popover{border:1px solid var(--desktop-line);border-radius:3px;background:var(--desktop-raised);color:var(--desktop-text);box-shadow:0 6px 24px #0005;padding:5px}#color-palette{border-radius:3px;width:270px;min-width:270px;background:var(--desktop-raised);color:var(--desktop-text)}.color-swatch{width:18px;height:18px;border-radius:2px}.edge-confirm{border-radius:3px;font-size:11px;padding:6px 8px;gap:6px}.settings-layout{gap:12px}.settings-pages h3{font-size:13px}.command-results sp-action-button{display:flex;width:100%;justify-content:flex-start;border-radius:0}sp-tooltip{font-size:11px}input[type=color]{width:28px;height:25px;border-radius:2px;padding:1px}details>summary:focus-visible{outline:2px solid var(--spectrum-focus-indicator-color);outline-offset:1px}
.start{background:var(--desktop-bg);color:var(--desktop-text)}.start-head{height:48px;border-bottom:1px solid var(--desktop-line);background:var(--desktop-raised)}.start-main h1{font-size:20px;font-weight:500}.launcher-nav{background:var(--desktop-raised);border-right:1px solid var(--desktop-line)}.recent-card{border:1px solid var(--desktop-line);border-radius:3px;box-shadow:none}.recent-card:hover{border-color:var(--desktop-accent)}
@media(max-width:1200px){.topbar .brand{min-width:25px;font-size:0}.document-area{width:130px}.document-title #project-name{width:95px}.top-actions #help,.top-actions #settings{min-width:24px;width:24px}.structure-state{display:none}.app-action-group{padding:0 2px}.statusbar #status{max-width:140px}.canvas-bottom sp-action-button span{display:none}}
@media(max-width:1050px){.document-area{width:110px}.document-title #project-name{width:80px}.top-actions #save{font-size:0;min-width:28px}.top-actions #export{font-size:10px}.topbar{gap:3px}.statusbar{gap:6px}.status-hint{max-width:230px}.context-breadcrumb{min-width:80px;max-width:160px}.resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.dv-right-actions-container sp-action-button{width:22px;height:22px;min-width:22px}
/* Browser-verified desktop polish: avoid inherited native-button constraints on custom hosts. */
.new-document-layout .template{height:160px!important;min-width:0;display:flex;flex-direction:column;padding:6px;border-radius:2px}
.new-document-layout .template-content{display:flex;flex-direction:column;align-items:stretch;white-space:normal;width:100%}
#modal:has(.new-document-layout){width:min(740px,90vw)}
.new-document-layout .template svg{width:100%;height:84px;min-height:84px;margin:0}.new-document-layout .template strong{display:block;line-height:14px;font-size:11px;padding:5px 0 1px}.new-document-layout .template span{font-size:9px;line-height:12px;padding:0;white-space:normal}
#modal sp-dialog{--spectrum-dialog-confirm-padding-grid:18px;--spectrum-dialog-confirm-description-padding:0px;--spectrum-dialog-confirm-footer-padding-top:0px}.modal-header{padding:0 0 8px}.modal-content{padding:10px 0}.modal-footer{padding-top:8px}
.tool-family>sp-action-menu{transform:none;right:-2px;bottom:-2px;width:14px;height:14px}.tool-family>sp-action-menu::part(button){min-width:14px;width:14px;height:14px;padding:0}.tool-family>sp-action-menu .ui-icon{width:9px!important;height:9px!important;min-width:9px}
.desktop-pane,.modal-content,.context,sp-menu{overscroll-behavior:contain}
@media (prefers-reduced-motion:reduce){.layer-row,.resource-card,.tool-family>sp-action-button{transition:none!important;animation:none!important}}
@media (hover:hover){.resource-card:hover{border-color:var(--desktop-accent)}}

#color-palette{display:block;max-height:calc(100dvh - 140px);overflow-y:auto;overflow-x:hidden}
#color-palette .color-sv{height:110px}#color-palette sp-slider.color-hue{height:auto;min-height:44px;appearance:auto;background:none;border-radius:0;margin-top:6px}

@media(min-width:1024px){.statusbar #object-count{display:block;white-space:nowrap;max-width:190px;overflow:hidden;text-overflow:ellipsis}}
@media(max-width:1050px){.topbar .brand{--mod-actionbutton-font-size:0px;width:32px;min-width:32px}.top-actions #save{display:inline-flex;width:28px;min-width:28px}}
.document-area .save-state{display:block;height:12px;line-height:12px}.topbar #project-name{--mod-textfield-height:23px;--mod-textfield-font-size:11px}.topbar #variant-button{width:44px;min-width:44px;height:23px;--mod-actionbutton-height:23px}
@media(max-width:1050px){.topbar .document-area{width:144px;min-width:144px}}
