.studio-shape-picker{margin:20px 0 14px}
.studio-shape-picker h4{margin:0 0 10px;font-size:13px;color:var(--text)}
.panel-shape-picker{min-width:0}
.panel-shape-picker [hidden],.element-shape-section[hidden]{display:none!important}
.panel-shape-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.panel-shape-choice{appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;box-sizing:border-box;width:100%;height:auto;min-height:84px;min-width:0;margin:0;padding:10px 8px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--gold-bright);cursor:pointer;transition:background .16s,border-color .16s,box-shadow .16s}
.panel-shape-choice>svg{display:block;width:50px;height:40px;max-width:100%;flex:none}
.panel-shape-choice>span{color:var(--text);font-size:12px;line-height:1.3;text-align:center;overflow-wrap:anywhere}
.panel-shape-choice:hover:not(:disabled){border-color:var(--gold)}
.panel-shape-choice[aria-pressed=true]{border-color:var(--gold);background:var(--theme-selected);box-shadow:inset 0 0 0 1px var(--gold)}
.panel-shape-choice:focus-visible{outline:2px solid var(--gold-bright);outline-offset:3px}
.panel-shape-choice:disabled{opacity:.4;cursor:default}
.shape-setting-label{display:block;font-size:12px;color:var(--muted);margin:14px 0 8px}
.panel-orientation-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.panel-orientation-grid .panel-shape-choice{min-height:54px;padding:8px}
.panel-orientation-grid svg{width:37px;height:32px}
.element-shape-section{padding:18px 0;margin:10px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.element-shape-section h3,.element-shape-section h4{margin:0 0 12px}
.element-shape-section [data-shape-fields]{margin-top:14px}
.assembly-picker .assembly-choice{height:auto;min-height:80px;padding:6px}
.assembly-picker .assembly-choice>span{min-height:30px}
.assembly-picker .assembly-choice>svg{width:48px;height:38px}
.assembly-picker .panel-shape-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.assembly-picker .panel-shape-choice{min-height:80px;padding:8px 4px}
.assembly-picker .panel-shape-choice>svg{width:42px;height:34px}
.assembly-picker .panel-shape-choice>span{font-size:11px;min-height:28px;display:flex;align-items:center}
.assembly-picker .panel-orientation-grid .panel-shape-choice{min-height:44px;padding:5px}
.assembly-picker .panel-orientation-grid svg{width:32px;height:28px}
.assembly-picker .element-shape-section{container-type:inline-size;padding:12px 0;margin:10px 0}
@container(max-width:320px){.assembly-picker .panel-shape-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.panel-shape-choice{transition:none}}
.property-picker-label{display:block;margin:18px 0 9px;color:var(--muted);font-size:12px}
.property-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-width:0;margin-bottom:16px}
.property-choice{min-height:86px;padding:9px 5px;gap:6px}
.property-choice>svg{width:44px;height:36px}
.property-choice>span{display:flex;align-items:center;justify-content:center;min-height:30px;font-size:11px;line-height:1.3}
.profile-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.profile-choice-grid>.property-choice:last-child{grid-column:1/-1;flex-direction:row;min-height:54px;gap:12px}
.frame-profile-picker-field{grid-column:1/-1;min-width:0}
.frame-profile-picker-field .profile-choice-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.frame-profile-picker-field .property-choice:last-child{grid-column:auto;flex-direction:column;min-height:86px;gap:6px}
.frame-profile-dimensions{grid-column:1/-1;min-width:0;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--theme-stage,var(--surface));container-type:inline-size}
.frame-dimensions-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;margin-bottom:12px;font-size:11px;color:var(--muted)}
.frame-dimensions-heading output{color:var(--gold-bright);font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
.frame-dimensions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.frame-dimensions-grid label{display:block;min-width:0;font-size:11px;color:var(--muted)}
.frame-dimensions-grid [data-frame-label]{display:block;line-height:1.4}
.frame-dimensions-grid .input-unit{margin-top:7px}
.frame-spacing-field{margin:16px 0!important;padding:0 0 16px;border-bottom:1px solid var(--line)}
.frame-appearance>summary{padding:3px 0;color:var(--gold-bright);font-size:12px;cursor:pointer}
.frame-appearance[open]>summary{margin-bottom:12px}
.frame-appearance .check-label{margin:12px 0 0}
.frame-extra>.property-picker-label:first-child{margin-top:0}
@container(min-width:350px){.frame-profile-dimensions[data-field-count="3"] .frame-dimensions-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@container(max-width:520px){.frame-profile-picker-field .profile-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.frame-profile-picker-field .property-choice:last-child{grid-column:1/-1;flex-direction:row;min-height:54px}}
.layout-choice-grid,.holes-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:10px}
.layout-fit-control>.property-picker-label,.mounting-section .property-picker-label{margin-top:0}
.layout-fit-control .microcopy{margin-top:8px}
.settings-control-card{padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--theme-stage,var(--surface));min-width:0;margin:14px 0}
.settings-control-card>.field{margin-top:12px}
.settings-control-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;font-size:11px;color:var(--muted)}
.settings-control-heading output{color:var(--gold-bright);font-weight:600;font-size:12px;font-variant-numeric:tabular-nums}
.settings-icon-label{display:flex;align-items:center;gap:6px;min-height:20px}
.settings-icon-label svg{width:18px;height:18px;flex:none;color:var(--gold-bright)}
.layout-orientation{margin:18px 0 12px}
.pattern-orientation-row{display:grid;grid-template-columns:minmax(0,1fr) 68px;gap:8px}
#patternRotationChoices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;min-width:0}
.rotation-choice,.mirror-choice{padding:7px 3px;gap:6px;min-height:62px}
.rotation-choice>svg,.mirror-choice>svg{width:23px;height:23px}
.rotation-choice>span,.mirror-choice>span{font-size:10px;line-height:1.3}
.pattern-project-actions{display:grid;grid-template-columns:1fr;gap:8px;margin:16px 0}
.pattern-project-actions .button{justify-content:flex-start;min-height:36px;height:auto;white-space:normal;padding:9px 10px}
.mounting-summary{padding:9px 11px;margin:12px 0;border-left:2px solid var(--gold);color:var(--gold-bright);font-size:11px;line-height:1.5;background:var(--theme-stage,var(--surface))}
.mounting-summary:empty{display:none}
.mounting-section>#bracketSettings{width:100%;justify-content:flex-start;min-height:36px;height:auto;white-space:normal}
.editor-project-actions{flex:0 0 auto;display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px;padding:12px 14px;border-top:1px solid var(--line);background:var(--theme-panel,var(--surface))}
.editor-project-actions .button{min-height:36px;height:auto;padding:8px 11px;white-space:normal;line-height:1.3}
.editor-project-actions>.project-notebook{flex:0 0 auto}
.editor-project-actions>.project-notebook>div:not(.notebook-floating){top:auto;bottom:calc(100% + 8px);left:0;right:auto}
.editor-library-action .button{min-height:36px;height:auto;padding:8px 11px;white-space:normal;line-height:1.3}
#addToProject{border-color:var(--gold);color:var(--gold-bright);background:var(--theme-selected)}
.mounting-section h3,.bracket-section h3,.bending-section h3{display:flex;align-items:center;gap:10px}
.mounting-section h3>.action-glyph,.bracket-section h3>.action-glyph,.bending-section h3>.action-glyph{width:27px;height:27px;flex:0 0 27px;color:var(--gold-bright)}
.mounting-section.feature-enabled,.bending-section.feature-enabled{background:color-mix(in srgb,var(--gold) 3%,transparent)}
.bracket-section #bracketSettings{width:100%;justify-content:flex-start;gap:10px;min-height:42px}
.bend-advanced{margin-top:16px;padding:12px;border:1px solid var(--line);border-radius:10px}
.bend-advanced>summary{cursor:pointer;color:var(--gold-bright);font-weight:600}
.bend-advanced[open]>.field-grid{margin-top:14px}
#bendEdges .bend-edge{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:10px}
#bendEdges .bend-edge>.check-label{grid-column:1/-1;margin:0}
#bendEdges .bend-direction{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px;grid-row:3}
.bend-direction .button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;height:auto;padding:8px 6px;white-space:normal}
.bend-direction [aria-pressed=true]{border-color:var(--gold);background:var(--theme-selected);color:var(--gold-bright)}
.export-workspace .export-sidebar{display:flex;flex-direction:column;overflow:hidden;padding:0;gap:0}
.export-workspace>.pinned-preview{flex-direction:column}
.export-workspace .pinned-stage,.export-workspace .export-orbit-tools{width:100%;min-width:0}
.export-workspace .export-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:0 0 14px;border-bottom:1px solid var(--line);flex:none}
.export-tabs [role=tab]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:68px;padding:9px 5px;line-height:1.25;font-size:12px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--muted)}
.export-tabs [role=tab] .action-glyph{width:23px;height:23px}
.export-tabs [aria-selected=true]{background:var(--theme-selected);border-color:var(--gold);color:var(--gold-bright);box-shadow:inset 0 -2px var(--gold)}
.export-workspace .export-options{flex:1 1 0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px 8px 16px 0;margin:0;display:block}
.export-options [role=tabpanel]>div,.export-options [role=tabpanel]>.preview-color-field{margin-bottom:20px}
.export-options [role=tabpanel]{animation:export-panel-in .18s ease-out}
.export-options .export-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.export-choice-grid[data-export-input=imageQuality],.export-choice-grid[data-export-input=imageFrame]{grid-template-columns:repeat(2,minmax(0,1fr))}
.export-options .export-choice{min-height:86px;padding:10px 6px;gap:8px}
.export-options .export-choice>svg{width:30px;height:30px;flex:0 0 30px}
.export-options .export-choice>span{font-size:11px;line-height:1.3}
.export-angle-setting{margin-bottom:20px}
.export-angle-setting .export-choice{min-height:76px}
.export-angle-setting .export-choice>svg{width:25px;height:25px;flex-basis:25px}
.export-download-bar{flex:none;border-top:1px solid var(--line);padding:14px 0 0;display:flex;flex-direction:column;gap:8px}
.export-download-bar>.button{width:100%;min-height:42px;justify-content:center}
.export-download-bar>.microcopy{font-size:10px;text-align:center}
.export-download-bar>.modal-error:empty{display:none}
.export-format-card{display:flex;gap:14px;align-items:center;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.export-format-card>.action-glyph{width:32px;height:32px;flex-shrink:0;color:var(--gold-bright)}
.export-format-card p{font-size:12px;margin:6px 0 0}
.export-orbit-tools{display:flex;align-items:center;justify-content:center;gap:10px;flex:none;padding:9px 12px;border-top:1px solid var(--line);background:var(--surface)}
.export-orbit-tools .microcopy{font-size:11px;margin:0}
.export-workspace .pinned-stage>img{min-height:0!important;border-radius:8px}
@keyframes export-panel-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.export-options [role=tabpanel]{animation:none}}
@media(max-width:640px){.editor-project-actions{display:flex;width:auto}.editor-project-actions .button{width:auto;flex:1 1 140px}.editor-project-actions>.project-notebook{flex:1 1 140px}.editor-project-actions .project-notebook>summary{width:100%}}
@media print{.editor-project-actions{display:none!important}}

.export-angle-setting [data-export-value=current]{grid-column:1/-1;flex-direction:row;min-height:42px}

#bendEdges .bend-edge:not(:has(input[data-prop=enabled]:checked))>:not(.check-label){display:none}

/* Compact visual controls shared by scene editing, library and pricing. */
.smart-toggle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.smart-toggle-card{position:relative;display:flex!important;align-items:center;gap:9px;padding:13px 30px 13px 12px;border:1px solid var(--line);border-radius:9px;background:var(--surface);font-size:12px;line-height:1.35;cursor:pointer;min-height:54px;margin:0!important}
.smart-toggle-card>input{position:absolute;right:9px;top:10px;width:14px;height:14px;margin:0;accent-color:var(--gold)}
.smart-toggle-card>.action-glyph{width:24px;height:24px;flex:0 0 24px;color:var(--gold-bright)}
.smart-toggle-card:has(input:checked){border-color:var(--gold);background:var(--theme-selected);color:var(--gold-bright)}
.smart-toggle-card:has(input:disabled){opacity:.5;cursor:default}
.smart-toggle-card:focus-within{outline:2px solid var(--gold);outline-offset:2px}
.smart-guide-controls{display:grid;gap:16px}
.smart-guide-controls .settings-control-card{margin:0}
.smart-guide-controls h4,.pricing-settings-card h3{display:flex;align-items:center;gap:9px;margin:0 0 14px;color:var(--gold-bright);font-size:13px}
.smart-guide-controls h4 svg{width:21px;height:21px}
.guide-anchor-choices,.guide-add-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.guide-anchor-choices .property-choice,.guide-add-actions .property-choice{min-height:86px;padding:9px 5px;font-size:11px;gap:8px}
.guide-anchor-choices .action-glyph,.guide-add-actions .action-glyph{width:29px;height:29px}
.smart-guide-controls .guide-distance{display:grid;grid-template-columns:minmax(0,1fr) 85px;gap:12px;align-items:center;margin:14px 0 0;font-size:11px;color:var(--muted)}
.guide-distance input{min-width:0;margin:0}
.guide-delete-actions{display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:12px;margin-top:12px}
.guide-delete-actions .button{font-size:11px;white-space:normal;min-height:38px;height:auto;flex:1}
.smart-guide-controls [data-guide-status]:empty{display:none}
.smart-guide-controls .microcopy{margin:0}
.environment-element-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:10px 0;max-height:200px;overflow:auto}
.environment-element-choice{display:grid;grid-template-columns:22px 22px minmax(0,1fr) auto;gap:7px;padding:10px 8px;white-space:normal;min-height:50px;height:auto;text-align:left;font-size:11px}
.environment-element-choice[aria-pressed=true]{border-color:var(--gold);background:var(--theme-selected);color:var(--gold-bright)}
.environment-element-choice .element-index{border:1px solid var(--line);border-radius:5px;text-align:center;padding:3px 0}
.environment-element-choice>.action-glyph{width:21px;height:21px}
.environment-element-choice>small{color:var(--muted)}
.environment-quantity-tools{padding:0 0 16px;border-bottom:1px solid var(--line);margin-bottom:16px}
.environment-quantity-tools .microcopy:empty{display:none}
.environment-quantity-tools #environmentDuplicate{width:100%;justify-content:center}
.assembly-dimension-card{padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--theme-stage,var(--surface));display:grid;gap:16px}
.assembly-build-form .dimension-source .button{flex-direction:column;min-height:70px;height:auto;white-space:normal;padding:9px 5px;gap:8px}
.assembly-build-form .dimension-source .action-glyph{width:27px;height:27px}
.assembly-build-form details>summary{display:flex;align-items:center;gap:10px;padding:5px 0}
.assembly-build-form details>summary::after{content:'+';margin-left:auto;font-size:18px}
.assembly-build-form details[open]>summary::after{content:'−'}
.assembly-build-form summary>.action-glyph{width:22px;height:22px}
.assembly-build-form details>.microcopy{margin:10px 0;font-size:11px;line-height:1.6}
.assembly-build-form label:has(input:disabled){opacity:.55}
.assembly-build-form .element-shape-section{padding:0;border:0}
.assembly-build-form .frame-manufacture-toggle{padding-right:35px}
.assembly-build-form .frame-manufacture-toggle input{position:absolute}
.assembly-build-actions{position:sticky;bottom:-1px;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 0 0;border-top:1px solid var(--line);background:var(--theme-panel,var(--surface));z-index:1}
.assembly-build-actions>.button{white-space:normal;min-height:42px;height:auto;justify-content:center;padding:9px;font-size:11px}
.library-search-field{display:flex;align-items:center;gap:9px;flex:1;min-width:180px;border:1px solid var(--line);border-radius:8px;background:var(--surface);padding-left:12px}
.library-search-field:focus-within{border-color:var(--gold)}
.library-search-field>.action-glyph{width:20px;height:20px;color:var(--muted);flex:none}
.library-search-field>#lbQuery{border:0;background:transparent;margin:0;flex:1;min-width:0}
.library-search-field>#lbQuery:focus{outline:none;box-shadow:none}
.library-category-line{display:flex;align-items:center;gap:12px}
.library-category-line>#lbCategories{flex:1;min-width:0;margin:0}
.library-category-line>#lbManage{flex:none;font-size:11px;min-height:34px;padding:8px}
.library-category-line>#lbManage .action-glyph{width:18px;height:18px}
.library-sort-choices,.library-size-choices{display:flex;align-items:center;gap:4px;padding:3px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.library-sort-choices .button,.library-size-choices .button{border-color:transparent;background:transparent;padding:7px;font-size:11px;min-height:32px}
.library-size-choices .button{width:32px;padding:5px}
.library-sort-choices [aria-pressed=true],.library-size-choices [aria-pressed=true]{color:var(--gold-bright);background:var(--theme-selected);border-color:var(--gold)}
.library-browser .library-display-row{gap:8px}
.library-browser .library-view-row{gap:7px}
.library-browser [data-library-view]{display:flex;align-items:center;gap:6px}
.library-browser .library-view-row .action-glyph,.library-sort-choices .action-glyph{width:18px;height:18px}
.library-extra-filters>summary{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:8px;padding:9px 10px}
.library-extra-filters>summary>.action-glyph{width:18px;height:18px}
.library-extra-filters[open]{order:2}
.library-browser .library-selection-bar{flex:none;border-top:1px solid var(--line);margin:0;padding:9px 0;min-height:44px}
.library-selection-bar>#lbTrash{margin-left:auto}
.library-browser [hidden]{display:none!important}
.library-browser .library-search-row .button{min-height:40px;font-size:12px;padding:8px 11px}
.smart-pricing-form{display:grid;gap:16px}
.pricing-settings-card{padding:17px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.pricing-settings-card h3{font-size:14px}
.pricing-settings-card h3>.action-glyph{width:25px;height:25px}
.pricing-settings-card .rate-grid{margin:0;gap:14px}
.pricing-settings-card label:not(.smart-toggle-card){display:grid;gap:7px;min-width:0;font-size:12px;color:var(--muted)}
.pricing-settings-card input[type=number]{margin:0;width:100%;min-width:0}
.pricing-settings-card [data-vat-options]{margin-top:16px}
.pricing-tax-display{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}
.pricing-tax-display .smart-toggle-card{flex-direction:column;text-align:center;padding:14px 20px;min-height:95px;font-size:11px}
.pricing-save-bar{position:sticky;bottom:0;padding:12px 0 0;background:var(--theme-panel,var(--surface));border-top:1px solid var(--line);display:flex;justify-content:flex-end;align-items:center;gap:12px}
.pricing-save-bar button{min-height:44px;padding:10px 25px;flex:none}
.pricing-save-bar .modal-error:empty{display:none}
.cost-panel-summary{display:flex;align-items:center;gap:12px;padding:12px 0 18px;color:var(--muted)}
.cost-panel-summary>svg{width:30px;height:30px;color:var(--gold-bright)}
.cost-breakdown{display:grid;gap:4px}
.cost-item{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px 12px;border-bottom:1px solid var(--line);font-size:13px}
.cost-item>.action-glyph{width:26px;height:26px;color:var(--gold-bright)}
.cost-item strong{display:block;font-weight:500}
.cost-item small{display:block;font-size:11px;color:var(--muted);margin-top:5px}
.cost-item>output{font-weight:600;font-variant-numeric:tabular-nums}
.cost-item.cost-zero{color:var(--muted)}
.cost-item.cost-zero>.action-glyph{color:var(--muted)}
.cost-total{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:19px 16px;border:1px solid var(--gold);border-radius:10px;background:var(--theme-selected);color:var(--gold-bright);font-size:18px;margin:18px 0;font-weight:600}
.cost-total>svg{width:34px;height:34px;flex:none}
.cost-total>div{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;flex:1}
.cost-total .quote-price-line{font-size:15px}
.price-card .price-card-title{display:flex;align-items:center;gap:9px}
.price-card-title>svg{width:23px;height:23px;flex:none;color:var(--gold-bright)}
.price-card #quoteBtn{display:flex;align-items:center;gap:9px;width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--gold-bright);margin-top:12px;text-align:left}
.price-card #quoteBtn>svg{width:21px;height:21px;flex:none}
.price-card #quoteBtn>svg:last-child{margin-left:auto;width:16px;height:16px}
.price-card #quoteBtn:hover{border-color:var(--gold);background:var(--theme-selected)}
@media(max-width:700px){.library-search-row{flex-wrap:wrap}.library-search-field{flex-basis:65%}.library-sort-choices .button>span{display:none}.library-display-row>.library-view-row{flex:auto}.library-category-line>#lbManage>span{display:none}.environment-element-choices{grid-template-columns:1fr}.pricing-tax-display{grid-template-columns:1fr}.pricing-tax-display .smart-toggle-card{flex-direction:row;text-align:left;min-height:50px}.cost-item{gap:8px;padding:12px 0}.library-browser-toolbar{max-height:45vh!important}}

.cost-total>.cost-total-label{justify-content:flex-start;gap:12px;flex:1}
.cost-total-label>.action-glyph{width:27px;height:27px;flex:none}
.cost-total>.cost-total-prices{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex:1;text-align:right}
.cost-total-prices>br{display:none}
@media(max-width:600px){.cost-total:has(.cost-total-prices){flex-direction:column;align-items:stretch}.cost-total>.cost-total-prices{align-items:flex-start;text-align:left}}

.button.export-locked{background:var(--surface-2,#303337);border:1px solid var(--line,#4b4e52);color:var(--muted,#c1c5cb);box-shadow:none}
.button.export-locked:hover,.button.export-locked:focus-visible{border-color:var(--accent,#e3b766);color:var(--text,#e6e3dd);background:var(--surface-2,#303337)}
.export-action-copy{display:grid;text-align:left;gap:2px;line-height:1.2}
.export-action-copy small{font-size:10px;font-weight:400}
.licence-export-notice{padding:18px;margin-bottom:20px;border:1px solid var(--accent,#e3b766);border-radius:12px;background:rgba(227,183,102,.08)}
.licence-export-notice h3{margin:0 0 8px;color:var(--accent,#e3b766)}
.licence-export-notice p{margin:0}

.licence-plan-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}
.licence-plan-choice{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:8px 12px;padding:18px;text-align:left;border-radius:12px;min-width:0}
.licence-plan-choice .action-glyph{grid-row:1/3;width:30px;height:30px}
.licence-plan-choice strong{font-size:20px;color:var(--text,#e6e3dd)}
.licence-plan-choice small{grid-column:2;font-size:11px;font-weight:400;color:var(--muted,#c1c5cb)}
.licence-plan-choice[aria-pressed="true"]{border-color:var(--accent,#e3b766);background:rgba(227,183,102,.14);box-shadow:inset 0 -3px var(--accent,#e3b766)}
@media(max-width:480px){.licence-plan-choice{padding:12px;gap:8px}.licence-plan-choice strong{font-size:16px}.licence-plan-choice .action-glyph{width:22px;height:22px}}
.licence-plan-options .button.licence-plan-choice{height:auto;min-height:116px;white-space:normal;line-height:1.35}

/* Editor actions share the check row; keep the drawing area as tall as possible. */
.editor-pane{container-type:inline-size;container-name:editor}
.editor-library-action #previewImageBtn,.editor-library-action .project-notebook>summary{border-color:var(--gold);color:var(--gold-bright);background:var(--theme-selected);min-height:36px;padding:8px 12px;font-size:12px}
.editor-library-action #previewImageBtn:hover,.editor-library-action .project-notebook>summary:hover{background:color-mix(in srgb,var(--gold) 24%,var(--surface));box-shadow:inset 0 -2px var(--gold)}
.editor-library-action .project-notebook{flex:none}
.editor-pane .checkbar{display:flex;align-items:center;gap:10px;height:auto;min-height:38px;padding:5px 12px;flex:none}
.checkbar>#checkSummary{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.checkbar>.editor-project-actions{display:flex;flex:0 1 auto;flex-wrap:nowrap;justify-content:flex-end;gap:5px;padding:0;border:0;min-width:0;background:none;margin-left:auto}
.checkbar>.editor-project-actions>.button{display:inline-flex;flex:none;align-items:center;gap:6px;min-height:28px;height:28px;padding:4px 7px;font-size:10px;line-height:1.15;white-space:nowrap;border:1px solid var(--line);border-radius:6px}
.checkbar>.editor-project-actions>.button svg{width:16px;height:16px;flex:none}
.checkbar>.editor-project-actions>.button:hover{border-color:var(--gold);color:var(--gold-bright)}
.checkbar>#checkDetails{flex:none;white-space:nowrap;font-size:10px}
.checkbar .export-action-copy small{font-size:8px}
@container editor (max-width:1000px){.checkbar>.editor-project-actions>.button{font-size:0;gap:0;width:30px;justify-content:center}.checkbar>.editor-project-actions>.button>span{display:none}.checkbar .export-action-copy{display:none}.checkbar>#checkSummary{font-size:10px}}
@container editor (max-width:480px){.editor-pane .checkbar{gap:5px;padding-inline:6px}.checkbar>#checkDetails{font-size:10px;padding-inline:7px}.checkbar>#checkDetails svg{width:16px;height:16px}.checkbar>.editor-project-actions{gap:3px}}
.pattern-project-actions,.composition-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0}
.pattern-project-actions .button,.composition-choices .button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;min-width:0;width:100%;min-height:100px;height:auto;padding:14px 9px;text-align:center;white-space:normal;line-height:1.4;border-radius:10px;font-size:12px}
.pattern-project-actions .button>.action-glyph,.composition-choices .button>.action-glyph{width:30px;height:30px;color:var(--gold-bright)}
.pattern-project-actions .button:hover,.composition-choices .button:hover{border-color:var(--gold);background:var(--theme-selected)}
.pattern-layout-section .inversion-card{display:grid;grid-template-columns:26px minmax(0,1fr) 20px;gap:8px 10px;padding:14px;border:1px solid var(--line);border-radius:10px;margin:16px 0;cursor:pointer}
.inversion-card>.action-glyph{grid-column:1;grid-row:1;width:24px;height:24px;color:var(--gold-bright)}
.inversion-card>input{grid-column:3;grid-row:1;margin:0;align-self:center}
.inversion-card>span{grid-column:2;grid-row:1;font-size:12px}
.inversion-card>.microcopy{grid-column:2/4;margin:0;font-size:11px}
.inversion-card:has(input:checked){border-color:var(--gold);background:var(--theme-selected)}
.pattern-layout-section .field-grid>label>.action-glyph{width:20px;height:20px;color:var(--gold-bright);vertical-align:middle;margin-right:6px}
.layout-memory-disclosure{border:1px solid var(--line);border-radius:10px;padding:12px;margin-top:16px}
.layout-memory-disclosure>summary{display:flex;align-items:center;gap:9px;color:var(--gold-bright);cursor:pointer;font-size:12px}
.layout-memory-disclosure>summary>.action-glyph{width:20px;height:20px}
.layout-memory-disclosure>summary:after{content:'+';margin-left:auto}.layout-memory-disclosure[open]>summary:after{content:'−'}
.text-entry-section h3,.compose-section h3{display:flex;align-items:center;gap:10px}
.text-entry-section h3>.action-glyph,.compose-section h3>.action-glyph{width:25px;height:25px;color:var(--gold-bright);flex:none}
.text-entry-section{background:linear-gradient(110deg,color-mix(in srgb,var(--gold) 6%,transparent),transparent)}
.text-entry-section #addTextObject,.compose-section #saveComposition{border-color:color-mix(in srgb,var(--gold) 55%,var(--line));color:var(--gold-bright)}
.compose-section #saveComposition{width:100%;margin-top:16px;white-space:normal;height:auto;min-height:40px}
.pattern-layout-section .microcopy:empty{display:none}
.top-account-status>#headerRegister{border-color:var(--gold);color:var(--gold-bright);background:var(--theme-selected)}
.bracket-icon-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
.bracket-icon-choices>.button{min-height:72px;height:auto;display:flex;align-items:center;justify-content:flex-start;gap:10px;text-align:left;padding:12px;white-space:normal;font-size:12px;line-height:1.4}
.bracket-icon-choices>.button>.action-glyph{width:27px;height:27px;flex:none;color:var(--gold-bright)}
.bracket-icon-choices>.button[aria-pressed=true]{border-color:var(--gold);background:var(--theme-selected);color:var(--gold-bright);box-shadow:inset 0 -2px var(--gold)}
.bracket-choice-field{display:grid;gap:8px}
.smart-bracket-form .bracket-enable-card{display:flex;align-items:center;gap:10px;padding:14px;border:1px solid var(--line);border-radius:10px;color:var(--gold-bright)}
.bracket-enable-card>.action-glyph{width:28px;height:28px;flex:none}
.smart-bracket-form .bracket-dimensions{padding:16px;border:1px solid var(--line);border-radius:10px;gap:15px}
.smart-bracket-form label[hidden],.smart-bracket-form details[hidden]{display:none!important}
.smart-bracket-form .field-grid:has(.bracket-choice-field){grid-template-columns:1fr}
.part-preview>.repair-row{display:flex;flex-wrap:wrap;gap:8px;padding:12px;border:1px solid var(--line);border-radius:10px}
.part-preview .bracket-icon-choices{order:2;grid-template-columns:repeat(3,minmax(0,1fr))}
.part-preview .bracket-icon-choices>.button{flex-direction:column;text-align:center;min-height:68px;padding:9px;font-size:11px}
.part-preview [data-part-view]{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;white-space:normal;height:auto;min-height:38px;padding:7px}
.part-preview [data-part-view]>.action-glyph{width:20px;height:20px;flex:none}
#bracketConnection{border-left:3px solid var(--gold);padding:8px 12px;background:var(--theme-selected);border-radius:0 6px 6px 0}

.preview-notes-actions{display:flex;align-items:center;gap:8px;flex:none}
#modal:has(#bracketForm){width:min(1220px,calc(100vw - 32px))}
#modal:has(#bracketForm) .pinned-workspace{grid-template-columns:minmax(260px,1fr) minmax(420px,480px)!important}
#modal:has(#bracketForm) .pinned-controls>p:first-child{font-size:11px;line-height:1.6;color:var(--muted);margin:0 0 12px}
@media(max-width:800px){#modal:has(#bracketForm) .pinned-workspace{grid-template-columns:1fr!important;grid-template-rows:minmax(150px,.7fr) minmax(220px,1fr)}}
.editor-workflow-group[hidden] .layout-memory-disclosure>summary:after{content:none}

.part-preview>.repair-row>#partFit{margin-left:auto;flex:none}
.part-preview>.repair-row>[data-part-view]{min-width:0;font-size:11px;padding:7px 5px}
.smart-bracket-form>.button[type=submit],.smart-bracket-form>.button.primary{position:sticky;bottom:0;min-height:42px;box-shadow:0 -8px 20px var(--surface)}

.trial-price-list{margin:22px 0;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.trial-price-list>h3{display:flex;align-items:center;gap:10px;margin:0;color:var(--gold-bright)}
.trial-price-list>h3>.action-glyph{width:23px;height:23px;flex:none}
.trial-price-list .licence-plan-options{margin:14px 0}
.trial-price-list .licence-plan-choice{border:1px solid color-mix(in srgb,var(--gold) 60%,var(--line));background:var(--theme-selected);color:var(--gold-bright)}
.trial-price-list .microcopy{margin:0}

.checkbar>.editor-project-actions>.button:not(.export-locked){color:var(--gold-bright);border-color:color-mix(in srgb,var(--gold) 42%,var(--line));background:var(--theme-selected)}
.checkbar>.editor-project-actions>.button:not(.export-locked):hover{border-color:var(--gold);background:color-mix(in srgb,var(--gold) 24%,var(--surface))}
.checkbar>#checkDetails{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:30px;height:30px;padding:5px 10px;border:1px solid var(--gold);border-radius:6px;background:linear-gradient(110deg,var(--gold-bright),var(--gold));color:#292116;font-size:11px;font-weight:700;line-height:1.2}
.checkbar>#checkDetails svg{width:16px;height:16px;flex:none}
.checkbar>#checkDetails:hover{filter:brightness(1.08)}
.checkbar>#checkDetails:focus-visible{outline:2px solid var(--gold-bright);outline-offset:3px}
@container editor (max-width:420px){.checkbar>#checkSummary{flex:1;min-width:20px}.checkbar>#checkDetails{padding:5px 7px;font-size:10px;gap:4px}.checkbar>#checkDetails>svg:last-child{display:none}}
