.merge-suggestions{border:1px solid var(--line);background:var(--surface);border-radius:8px;margin:12px 0}.merge-suggestions-body{padding:0 12px 12px;font-size:12px;line-height:1.6}.merge-suggestions-body p{color:var(--text-secondary);margin:8px 0}.merge-suggestions-body .merge-limit{color:var(--gold)}.merge-settings{flex-wrap:wrap;gap:10px;margin:12px 0;display:flex}.merge-settings label{flex:1;gap:4px;min-width:100px;display:grid}.merge-settings select{width:100%;min-height:38px}.merge-candidates{gap:6px;max-height:240px;margin:12px 0;display:grid;overflow:auto}.merge-candidates button{text-align:left;white-space:normal;background:var(--surface-soft);gap:3px;min-height:44px;display:grid}.merge-candidates button[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent-border)}.merge-candidates span{color:var(--text-secondary);font-size:11px}.merge-preview{align-items:center;gap:8px;min-height:44px;display:flex}.merge-material-marking{border-bottom:1px solid var(--line);padding:4px 0 12px}.merge-material-marking>label{gap:4px;display:grid}.merge-material-marking select{min-height:38px}.merge-mode{gap:6px;margin:12px 0;display:flex}.merge-mode button{flex:1;min-height:38px;font-size:12px}.merge-mode button[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent-border);color:var(--gold)}.material-substitutions>label{gap:4px;margin:10px 0;display:grid}.material-substitutions select{width:100%;min-width:0;min-height:38px}.substitute-colours{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.substitute-colours i{border:1px solid var(--line);border-radius:4px;flex:none;width:18px;height:18px}.material-marking-legend i{background:var(--gold);border-radius:2px;width:9px;height:9px;margin-right:5px;display:inline-block}.material-usage-overlay{width:100%;height:100%;image-rendering:pixelated;pointer-events:none;position:absolute;inset:0}.merge-overlay{pointer-events:none;width:100%;height:100%;position:absolute;inset:0;overflow:visible}.merge-outline{fill:none;stroke:var(--gold);stroke-width:1.5px;stroke-dasharray:4 3}.merge-overlay .selected .merge-outline{stroke-width:2.5px;stroke-dasharray:none}.merge-overlay text{fill:var(--gold);stroke:var(--surface);font-weight:700}.merge-changed{fill:var(--gold);fill-opacity:.3;stroke:var(--gold);stroke-width:1px}@media (pointer:coarse){.merge-settings select,.merge-material-marking select,.material-substitutions select,.merge-suggestions button{min-height:44px}}.workshop-mode-navigation{flex-shrink:0;min-width:0;position:relative}.site-sections .workshop-mode-trigger{border:1px solid var(--line);background:var(--surface-soft);width:100%;min-height:44px;color:var(--text-secondary);letter-spacing:1px;white-space:nowrap;border-radius:12px;gap:9px;padding:0 15px;font-size:13px}.workshop-mode-trigger>span{text-align:left;flex:0 0 calc(4em + 4px)}.site-sections .workshop-mode-trigger[data-active=true],.site-sections .workshop-mode-trigger:hover,.site-sections .workshop-mode-trigger[aria-expanded=true]{color:var(--gold);border-color:var(--accent-border);background:var(--accent-soft)}.workshop-mode-chevron{opacity:.65;transition:transform var(--ui-motion-control,.15s) var(--ui-motion-easing,ease);flex-shrink:0}.workshop-mode-trigger[aria-expanded=true] .workshop-mode-chevron{transform:rotate(180deg)}.workshop-mode-options{z-index:15;border:1px solid var(--line-strong);background:var(--surface);min-width:180px;box-shadow:0 8px 28px var(--shadow-soft);opacity:0;visibility:hidden;transform:translateY(calc(-1 * var(--ui-motion-offset,6px))) scale(var(--ui-motion-scale,.98));transform-origin:0 0;pointer-events:none;transition:opacity var(--ui-motion-menu,.18s) var(--ui-motion-easing,ease),transform var(--ui-motion-menu,.18s) var(--ui-motion-easing,ease),visibility 0s linear var(--ui-motion-menu,.18s);border-radius:12px;gap:4px;padding:6px;display:grid;position:absolute;top:calc(100% + 8px);left:0}.workshop-mode-options[data-open=true]{opacity:1;visibility:visible;pointer-events:auto;transition-delay:0s;transform:translateY(0)scale(1)}.workshop-mode-options{overscroll-behavior:contain;scroll-padding-block:6px;overflow-y:auto}.workshop-mode-options[data-side=above]{transform-origin:0 100%;top:auto;bottom:calc(100% + 8px)}.workshop-mode-navigation[data-open=true]:after{content:"";z-index:15;width:max(180px,100%);height:10px;position:absolute;top:100%;left:0}.workshop-mode-navigation[data-open=true][data-side=above]:after{top:auto;bottom:100%}.site-sections .workshop-mode-options a{letter-spacing:0;background:0 0;border-color:#0000;border-radius:8px;justify-content:flex-start;gap:10px;height:auto;min-height:44px;padding:0 12px}.site-sections .workshop-mode-options a:hover{background:var(--accent-soft);box-shadow:none;transform:none}.site-sections .workshop-mode-options a[aria-current=page]{background:var(--accent-soft);box-shadow:none}.workshop-mode-check{flex-shrink:0;margin-left:auto}@media (width<=760px){.site-sections .workshop-mode-trigger{letter-spacing:0;padding:0 9px;font-size:12px}.workshop-mode-trigger>span{flex-basis:4em}.workshop-mode-options{min-width:max(180px,100%);max-width:calc(100vw - 36px)}}@media (pointer:coarse){.site-sections .workshop-mode-options a{min-height:48px;font-size:13px}.site-sections .workshop-mode-options a:active{background:var(--accent-soft);transform:none}}@media (prefers-reduced-motion:reduce){.workshop-mode-chevron,.workshop-mode-options{transition:none}}.image-adjustment-control>span{align-items:center;gap:8px;margin-bottom:3px}.image-adjustment-control .image-adjustment-value{border:1px solid var(--line-strong);background:var(--surface);width:54px;min-width:0;height:24px;color:var(--gold);font:inherit;font-variant-numeric:tabular-nums;text-align:right;border-radius:4px;padding:2px 5px}.image-adjustment-control .image-adjustment-value:hover{border-color:var(--gold)}.image-adjustment-control .image-adjustment-value:focus{outline:2px solid var(--gold);outline-offset:2px}.lighting-palette-control{border:1px solid var(--line);background:var(--surface-soft);border-radius:10px;margin:12px 0;padding:12px}.lighting-palette-control>.check-field{gap:8px;margin:0}.lighting-palette-settings{gap:10px;margin-top:12px;display:grid}.lighting-palette-settings>div>span{color:var(--muted);margin-bottom:5px;font-size:12px;display:block}.lighting-palette-settings .hint{margin:0;font-size:12px;line-height:1.65}.lighting-palette-control .field-pair{margin:0}.lighting-palette-control [role=status]{color:var(--muted);margin:8px 0 0;font-size:12px}.palette-mode-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.palette-mode-cards>label{cursor:pointer;border:1px solid var(--line);background:var(--surface);border-radius:8px;align-items:center;gap:12px;padding:16px;display:flex}.palette-mode-cards>label.selected{border-color:var(--gold);background:var(--accent-soft)}.palette-mode-cards input{accent-color:var(--gold);flex-shrink:0;margin:0}.palette-mode-cards strong{font-size:16px;font-weight:500;display:block}.palette-mode-cards small{color:var(--muted);margin-top:6px;font-size:11px;display:block}.palette-mode-cards em{color:var(--gold);border:1px solid var(--accent-border);vertical-align:middle;border-radius:3px;padding:1px 4px;font-size:10px;font-style:normal}.lighting-palette-control .palette-mode-description{margin:10px 0 0;font-size:12px}.lighting-palette-settings{grid-template-columns:repeat(2,minmax(0,1fr))}.lighting-palette-settings>.field-pair,.lighting-palette-settings>.hint{grid-column:1/-1}@media (width<=480px){.palette-mode-cards>label{gap:8px;padding:12px}.palette-mode-cards strong{font-size:14px}.lighting-palette-settings{grid-template-columns:1fr}}.observation-camera{border:1px solid var(--line);background:var(--surface-soft);border-radius:6px;margin:12px 0;padding:10px 12px}.observation-camera>summary{cursor:pointer;color:var(--text-secondary);font-size:12px}.observation-camera .viewport-frame-controls{gap:10px;margin-top:12px;display:grid}.observation-camera .voxel-check{color:var(--text-secondary);align-items:center;gap:6px;font-size:11px;display:flex}.observation-camera .voxel-axis{color:var(--text-secondary);font-size:11px;display:block}.observation-camera .voxel-axis>input,.observation-camera .voxel-axis>select{height:36px;margin-top:6px;font-size:12px}.observation-camera .viewport-frame-ratio{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end;gap:8px;display:grid}.observation-camera .viewport-frame-ratio label{color:var(--text-secondary);font-size:11px}.observation-camera .viewport-frame-ratio input{height:36px;margin-top:6px;font-size:12px}.observation-camera .viewport-frame-ratio>span{color:var(--muted);line-height:36px}.observation-camera .viewport-frame-fov>span{color:var(--text-secondary);justify-content:space-between;align-items:center;font-size:11px;display:flex}.observation-camera .viewport-frame-fov output{color:var(--gold)}.observation-camera .viewport-frame-fov-limits{color:var(--muted)!important;font-size:10px!important}.observation-camera .voxel-help{color:var(--muted);font-size:10px;line-height:1.8}.observation-preview-modes{gap:6px;margin:10px 0;display:flex}.observation-preview-modes button{padding:6px 10px;font-size:11px}.observation-preview-modes button[aria-pressed=true]{background:var(--accent-soft);color:var(--gold);border-color:var(--accent-border)}.observation-camera-error{color:var(--danger);font-size:11px;line-height:1.8}.observation-comparison svg{touch-action:none;cursor:grab;-webkit-user-select:none;user-select:none}.observation-comparison.is-dragging svg{cursor:grabbing}.observation-comparison svg:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.observation-preview-help{margin-top:10px}.inventory-characters{color:var(--text);margin:16px 20px;font-size:12px}.inventory-character-picker,.inventory-character-create{flex-wrap:wrap;align-items:flex-end;gap:12px;display:flex}.inventory-character-picker label,.inventory-character-create label{align-items:center;gap:10px;display:flex}.inventory-character-picker select,.inventory-character-create input{font:inherit;border:1px solid var(--line-strong);background:var(--surface);min-width:180px;max-width:100%;color:var(--text);border-radius:6px;padding:8px 10px}.inventory-characters button{font:inherit;border:1px solid var(--line-strong);background:var(--surface);color:var(--gold);cursor:pointer;border-radius:6px;padding:8px 11px}.inventory-characters button:hover{background:var(--accent-soft)}.inventory-character-picker>span,.inventory-character-create>span{color:var(--muted);align-self:center;font-size:11px;line-height:1.8}.inventory-character-create{background:var(--accent-soft);border-radius:8px;margin-top:12px;padding:14px}.inventory-characters>p{color:var(--gold);margin:10px 0 0}.inventory-page>.inventory-characters{border:1px solid var(--line);background:var(--surface);border-radius:10px;margin:0 0 20px;padding:16px 20px}@media (width<=650px){.inventory-characters{margin:14px}.inventory-character-picker label,.inventory-character-create label{flex-direction:column;align-items:flex-start;max-width:100%}.inventory-character-picker>span,.inventory-character-create>span{flex-basis:100%}.inventory-character-picker select{max-width:230px}}.inventory-characters{border:1px solid var(--line);background:var(--surface-soft);border-radius:8px;padding:12px 14px}.inventory-characters .inventory-character-picker{align-items:center;gap:12px 16px}.inventory-characters .inventory-character-picker label{flex-direction:row;flex:0 auto;align-items:center;gap:12px;min-width:0;margin:0;display:flex}.inventory-character-picker label>span{white-space:nowrap;color:var(--text-secondary);flex:none;font-size:12px}.inventory-characters .inventory-character-picker select{text-overflow:ellipsis;width:230px;min-width:140px;max-width:100%;height:36px;padding:6px 10px;overflow:hidden}.inventory-character-picker>button{flex:none;height:36px;padding:6px 12px}.inventory-character-picker>span{margin-left:auto}.inventory-sync-state{color:var(--muted);flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px;font-size:12px;line-height:1.7;display:flex}.inventory-sync-state>span{flex:200px}.inventory-recovery{border:1px solid var(--line);color:var(--muted);border-radius:8px;margin-top:10px;padding:10px 12px;line-height:1.8}.inventory-recovery summary{cursor:pointer;color:var(--gold)}.inventory-recovery p{margin:8px 0}.inventory-recovery>div{flex-wrap:wrap;gap:8px;display:flex}.inventory-recovery[open]>p,.inventory-recovery[open]>div{animation:ui-backdrop-enter var(--ui-motion-dialog,.18s) var(--ui-motion-easing,ease) both}.inventory-characters button:disabled{opacity:.55;cursor:default}@media (prefers-reduced-motion:reduce){.inventory-recovery[open]>p,.inventory-recovery[open]>div{animation:none}}.inventory-characters select:focus-visible,.inventory-characters button:focus-visible,.inventory-characters input:focus-visible{outline:2px solid var(--gold);outline-offset:2px}@media (width<=650px){.inventory-characters{padding:12px}.inventory-characters .inventory-character-picker{gap:10px}.inventory-characters .inventory-character-picker label{flex:100%;justify-content:space-between}.inventory-characters .inventory-character-picker select{width:min(230px,100% - 64px);min-width:0}.inventory-character-picker>span{flex:1;min-width:120px;margin-left:0}}.cloth-cost{border:1px solid var(--line);background:var(--surface-soft);border-radius:8px;gap:10px;margin:0 20px 16px;padding:12px 14px;font-size:12px;display:grid}.cloth-cost-heading{flex-wrap:wrap;align-items:center;gap:8px 18px;display:flex}.cloth-cost-heading h5{margin:0;font-size:12px;font-weight:500}.cloth-cost-total{white-space:nowrap;align-items:baseline;gap:8px;margin-left:auto;display:flex}.cloth-cost-total>span{color:var(--muted);font-size:11px}.cloth-cost-total strong{color:var(--gold);font-variant-numeric:tabular-nums;font-size:20px;font-weight:500;line-height:1.3}.cloth-cost-total small{color:var(--muted);margin-left:4px;font-size:11px;font-weight:400}.cloth-cost-prices{flex-wrap:wrap;align-items:center;gap:8px 16px;margin-left:auto;display:flex}.cloth-cost-prices label{min-width:0;color:var(--text-secondary);align-items:center;gap:7px;font-size:12px;display:flex}.cloth-cost-prices label>span{white-space:nowrap;color:var(--muted);align-items:center;gap:5px;font-size:11px;display:flex}.cloth-stock-card .cloth-cost-prices input{box-sizing:border-box;border:1px solid var(--line-strong);background:var(--surface);width:88px;min-width:0;height:32px;color:var(--text);font:inherit;font-variant-numeric:tabular-nums;border-radius:6px;padding:5px 8px;font-size:12px}.cloth-cost-prices input:focus-visible{outline:2px solid var(--gold);outline-offset:2px}.cloth-cost-prices input[aria-invalid=true]{border-color:var(--danger)}.cloth-cost-result{flex-wrap:wrap;align-items:baseline;gap:6px 14px;line-height:1.8;display:flex}.cloth-cost-result>span{color:var(--muted);font-size:11px}.cloth-cost-combination{flex-wrap:wrap;align-items:baseline;gap:6px 10px;margin:0;display:flex}.cloth-cost-combination>div{align-items:baseline;gap:6px;display:flex}.cloth-cost-combination>div+div:before{content:"+";color:var(--muted);margin-right:4px}.cloth-cost-combination dt{color:var(--text-secondary)}.cloth-cost-combination dd{color:var(--muted);font-variant-numeric:tabular-nums;margin:0}.cloth-cost-combination dd strong{color:var(--text);font-size:14px;font-weight:500}.cloth-stock-card .cloth-cost-savings,.cloth-stock-card .cloth-cost-empty,.cloth-stock-card .cloth-cost-price-error{color:var(--muted);margin:0;font-size:11px;line-height:1.8}.cloth-cost-savings strong{color:var(--success);font-weight:500}.cloth-stock-card .cloth-cost-price-error{color:var(--danger)}.cloth-cost-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.cloth-stock-card .cloth-cost-actions>button{min-height:32px;padding:6px 10px;font-size:12px}.cloth-stock-card .cloth-cost-apply{background:var(--gold);border-color:var(--gold);color:var(--on-accent)}.cloth-stock-card .cloth-cost-apply:hover:not(:disabled){background:var(--gold-hover);border-color:var(--gold-hover)}@media (width<=650px){.cloth-cost{gap:8px;margin:0 14px 14px;padding:10px 12px}.cloth-cost-heading{gap:8px 12px}.cloth-cost-prices{flex-basis:100%;order:1;gap:4px 12px;margin-left:0}.cloth-cost-prices label{flex:240px;justify-content:space-between}.cloth-stock-card .cloth-cost-prices input{width:92px;min-height:44px}.cloth-stock-card .cloth-cost-actions>button{min-height:44px}.cloth-stock-card .cloth-cost-apply{white-space:normal;text-align:center}.cloth-cost-actions>button{flex:120px}.cloth-cost-actions>.cloth-cost-apply{flex-basis:100%}.cloth-cost-total{flex:100%;justify-content:space-between;gap:6px}}.wallpaper-stock{min-width:0}.cloth-stock-card .wallpaper-stock-price-warning{color:var(--text-secondary);margin:0;font-size:11px;line-height:1.7}.cloth-stock-table.wallpaper-stock-table{table-layout:auto;min-width:1030px}.wallpaper-stock-table .wallpaper-stock-col-name{width:24%}.wallpaper-stock-table .wallpaper-stock-col-actions{width:190px}.wallpaper-stock-table th:first-child{min-width:235px}.wallpaper-stock-table .cloth-stock-color{white-space:nowrap}.wallpaper-stock-shortage{background:var(--accent-soft);min-width:18px;color:var(--gold);border-radius:4px;padding:1px 6px;font-weight:600;display:inline-block}.wallpaper-stock-table .is-unknown,.wallpaper-stock-table .is-covered{color:var(--muted)}.wallpaper-stock-row-actions{grid-template-columns:1fr 1.4fr;gap:7px;min-width:155px;display:grid}.cloth-stock-card .wallpaper-stock-row-actions button{padding:6px 9px;font-size:11px}.cloth-stock-card .wallpaper-stock-row-actions .wallpaper-stock-fill{background:var(--accent-soft);border-color:var(--accent-border);justify-content:center;align-items:center;gap:3px;display:inline-flex}.cloth-stock-card .wallpaper-stock-row-actions .is-complete{opacity:1;color:var(--success);background:color-mix(in srgb,var(--success) 8%,var(--surface));border-color:color-mix(in srgb,var(--success) 28%,var(--line))}.wallpaper-stock-fill svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:12px;height:12px}.cloth-stock-card .wallpaper-stock-row-actions .wallpaper-stock-row-undo{color:var(--muted);background:0 0;border:0;grid-column:1/-1;justify-self:center;padding:1px 8px;font-size:10px}.wallpaper-stock-popover-error{color:var(--danger);margin:0;font-size:12px;line-height:1.7}@media (width<=650px){.wallpaper-stock-table th:first-child{min-width:220px}.cloth-stock-card .wallpaper-stock-row-actions button,.wallpaper-stock-popover input,.wallpaper-stock-popover button{min-height:44px}}.cloth-stock-card{border:1px solid var(--line-strong);background:var(--surface);color:var(--text);border-radius:10px;margin:18px 0 14px;font-size:12px;overflow:hidden}.stock-view-toolbar{justify-content:space-between;align-items:center;gap:12px;padding:0 20px 18px;display:flex}.stock-category-switch{border:1px solid var(--line);background:var(--surface-soft);border-radius:9px;gap:4px;min-width:0;padding:4px;display:flex}.cloth-stock-card .stock-category-switch button{min-height:38px;color:var(--text-secondary);background:0 0;border-color:#0000;justify-content:center;align-items:center;gap:10px;padding:7px 14px;display:flex}.cloth-stock-card .stock-category-switch button[aria-pressed=true]{background:var(--surface);border-color:var(--line-strong);color:var(--gold);box-shadow:0 1px 3px #3122190a}.stock-category-switch button>span{font-variant-numeric:tabular-nums;color:var(--muted);font-size:11px}.stock-category-title{font-size:13px;font-weight:500}.cloth-stock-card .stock-detail-toggle{min-height:38px;color:var(--text-secondary);border-color:var(--line);justify-content:center;align-items:center;gap:7px;font-size:12px;display:flex}.stock-detail-toggle>span{font-size:18px;font-weight:400;line-height:1}.stock-category-panel[hidden],.stock-usage-detail[hidden]{display:none}.stock-usage-detail{border-top:1px solid var(--line);padding-top:14px}.stock-usage-heading{justify-content:space-between;align-items:center;gap:12px;margin:0 20px 12px;display:flex}.stock-usage-heading h5{margin:0;font-size:12px;font-weight:500}.stock-usage-heading>span{color:var(--muted);font-variant-numeric:tabular-nums;font-size:11px}.cloth-stock-actions{flex-wrap:wrap;align-items:center;gap:10px;padding:0 20px 18px;display:flex}.cloth-stock-actions>span{color:var(--muted);font-size:11px;line-height:1.7}.cloth-stock-card button{font:inherit;cursor:pointer;border:1px solid var(--line-strong);background:var(--surface);color:var(--gold);white-space:nowrap;border-radius:6px;padding:7px 11px}.cloth-stock-card button:hover:not(:disabled){background:var(--accent-soft);border-color:var(--gold)}.cloth-stock-card button:disabled{opacity:.45;cursor:default}.cloth-stock-card .cloth-stock-fill{background:var(--gold);color:var(--surface)}.cloth-stock-card .cloth-stock-fill:hover:not(:disabled){background:var(--gold-hover);color:var(--surface)}.cloth-stock-row-actions{justify-content:flex-end;gap:6px;display:flex}.cloth-stock-row-actions button{padding:6px 9px;font-size:11px}.cloth-stock-feedback{color:var(--success)!important;margin:0 20px 16px!important;font-size:12px!important;line-height:1.8!important}.cloth-stock-feedback.is-error{color:var(--gold)!important}.cloth-stock-extra{border:1px solid var(--accent-border);background:var(--accent-soft);border-radius:8px;flex-wrap:wrap;align-items:flex-end;gap:12px;margin:0 20px 18px;padding:16px;display:flex}.cloth-stock-extra>strong,.cloth-stock-extra>span{flex-basis:100%;line-height:1.7}.cloth-stock-extra>span{color:var(--muted);font-size:11px}.cloth-stock-extra label{color:var(--text-secondary);gap:7px;font-size:11px;display:grid}.cloth-stock-extra input{box-sizing:border-box;border:1px solid var(--line-strong);background:var(--surface);width:130px;max-width:100%;color:var(--text);font:inherit;border-radius:5px;padding:8px 10px}.cloth-stock-card button:focus-visible,.cloth-stock-extra input:focus-visible{outline:2px solid var(--gold);outline-offset:2px}.cloth-stock-heading{justify-content:space-between;align-items:center;gap:16px;padding:17px 20px 0;display:flex}.cloth-stock-heading>div{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.cloth-stock-heading h4{margin:0;font-size:14px;font-weight:600}.cloth-stock-heading>div>span{color:var(--muted);font-size:11px}.cloth-stock-heading a,.cloth-stock-notice a{color:var(--gold);white-space:nowrap;font-size:12px;text-decoration:none}.cloth-stock-heading a:hover,.cloth-stock-notice a:hover{text-decoration:underline}.cloth-stock-summary{align-items:center;gap:30px;padding:22px 20px;display:flex}.cloth-stock-primary,.cloth-stock-secondary{flex-shrink:0;gap:6px;display:grid}.cloth-stock-summary>div>span{color:var(--text-secondary);font-size:12px}.cloth-stock-summary strong{font-variant-numeric:tabular-nums;letter-spacing:-.7px;font-size:28px;font-weight:600;line-height:1.2}.cloth-stock-primary strong{color:var(--gold)}.cloth-stock-summary strong small{letter-spacing:0;color:var(--muted);margin-left:7px;font-size:12px;font-weight:400}.cloth-stock-secondary{border-left:1px solid var(--line);padding-left:28px}.cloth-stock-secondary strong{font-size:22px}.cloth-stock-context{overflow-wrap:anywhere;text-align:right;min-width:0;color:var(--muted)!important;margin:0 0 0 auto!important;font-size:11px!important;line-height:1.8!important}.cloth-stock-context>span{display:block}.cloth-stock-saved{color:var(--success)}.cloth-stock-notice{background:var(--accent-soft);border-radius:6px;padding:10px 12px;color:var(--text-secondary)!important;margin:0 20px 16px!important;font-size:11px!important;line-height:1.7!important}.cloth-stock-notice a{margin-left:10px;font-size:11px}.cloth-stock-detail{border-top:1px solid var(--line)}.cloth-stock-detail>summary{cursor:pointer;align-items:center;gap:8px;padding:13px 20px;font-size:12px;font-weight:500;list-style:none;display:flex}.cloth-stock-detail>summary:before{content:"›";font-size:18px;font-weight:400;line-height:1;transition:transform .15s}.cloth-stock-detail[open]>summary:before{transform:rotate(90deg)}.cloth-stock-detail>summary small{color:var(--muted);margin-left:auto;font-size:11px;font-weight:400}.cloth-stock-scroll{border:1px solid var(--line);border-radius:7px;max-height:360px;margin:0 20px 16px;overflow:auto}.cloth-stock-table{border-collapse:collapse;font-variant-numeric:tabular-nums;white-space:nowrap;width:100%;font-size:12px}.cloth-stock-table thead{z-index:1;background:var(--surface-soft);position:sticky;top:0}.cloth-stock-table th,.cloth-stock-table td{text-align:right;border-bottom:1px solid var(--line);padding:11px 16px;font-weight:400}.cloth-stock-table thead th{color:var(--text-secondary);font-size:11px}.cloth-stock-table th:first-child{text-align:left}.cloth-stock-table tbody tr:last-child>*{border-bottom:0}.cloth-stock-table tbody tr:hover{background:var(--surface-soft)}.cloth-stock-color{align-items:center;gap:8px;font-weight:500;display:flex}.cloth-stock-color i{width:13px;height:13px;box-shadow:inset 0 0 0 1px var(--line-strong);border-radius:3px;flex-shrink:0}.cloth-stock-size{color:var(--muted);margin:6px 0 0 21px;font-size:10px;display:block}.cloth-stock-values{gap:6px;display:grid}.cloth-stock-values>span{justify-content:flex-end;align-items:center;gap:14px;min-height:18px;display:flex}.cloth-stock-values small{color:var(--muted);font-size:10px;font-weight:400}.cloth-stock-values .is-short{color:var(--gold);font-weight:600}.cloth-stock-values .is-covered,.cloth-stock-pack.is-covered{color:var(--muted)}.cloth-stock-values .is-unknown{color:var(--muted);font-size:11px}.cloth-stock-pack{color:var(--gold);font-size:16px;font-weight:600}.cloth-stock-pack small{font-size:11px;font-weight:400}.cloth-stock-rule{color:var(--muted);padding:0 20px 14px;font-size:11px}.cloth-stock-rule>summary{cursor:pointer;width:fit-content}.cloth-stock-rule p{color:var(--text-secondary)!important;margin:8px 0 0!important;font-size:11px!important;line-height:1.9!important}.cloth-stock-sr-only{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.cloth-stock-summary{flex-wrap:wrap;padding-top:10px;padding-bottom:20px}.cloth-stock-actions>.cloth-stock-action-message{white-space:nowrap;text-overflow:ellipsis;flex:240px;min-width:0;overflow:hidden}.cloth-stock-actions>.cloth-stock-action-message.has-feedback{color:var(--success)}.cloth-stock-order{color:var(--muted)!important;margin:0 20px 12px!important;font-size:11px!important;line-height:1.6!important}.cloth-stock-table{table-layout:fixed;min-width:730px}.cloth-stock-col-color{width:18%}.cloth-stock-col-pack{width:120px}.cloth-stock-col-actions{width:190px}.cloth-stock-table thead th{height:42px;box-shadow:inset 0 -1px var(--line);padding-top:6px;padding-bottom:6px;font-weight:500}.cloth-stock-table thead th>small{color:var(--muted);margin-left:6px;font-size:10px;font-weight:400}.cloth-stock-table th,.cloth-stock-table td{padding:14px 18px}.cloth-stock-table .cloth-stock-operation-heading{text-align:center}.cloth-stock-table tbody th{vertical-align:middle}.cloth-stock-color{font-size:13px}.cloth-stock-color i{width:16px;height:16px}.cloth-stock-size{margin-left:24px}.cloth-stock-values{gap:9px}.cloth-stock-values>span{min-height:20px}.cloth-stock-values .is-short{background:var(--accent-soft);border-radius:4px;justify-self:end;width:fit-content;padding:1px 6px}.cloth-stock-pack{min-width:42px;display:inline-block}.cloth-stock-row-actions{grid-template-columns:1fr 1.4fr;gap:7px;display:grid}.cloth-stock-row-actions button:first-child{background:var(--accent-soft);border-color:var(--accent-border)}.cloth-stock-row-actions button:last-child{color:var(--muted);background:0 0;border:0;grid-column:1/-1;justify-self:center;padding:1px 8px;font-size:10px}.cloth-stock-row-actions .cloth-stock-complete{justify-content:center;align-items:center;gap:3px;transition:background-color .2s,border-color .2s,color .2s,transform .15s;display:inline-flex}.cloth-stock-complete:active:not(:disabled){transform:scale(.95)}.cloth-stock-row-actions .cloth-stock-complete.is-complete{opacity:1;color:var(--success);background:color-mix(in srgb,var(--success) 8%,var(--surface));border-color:color-mix(in srgb,var(--success) 28%,var(--line))}.cloth-stock-complete svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:12px;height:12px}.cloth-stock-extra-button{min-width:0;max-width:100%}.cloth-stock-extra-button>span{text-overflow:ellipsis;min-width:0;overflow:hidden}@media (width<=650px){.cloth-stock-actions>button{min-height:44px}}.cloth-stock-complete.just-completed{animation:.55s ease-out cloth-stock-confirm}.cloth-stock-complete.just-completed path{stroke-dasharray:18;animation:.35s ease-out both cloth-stock-check}@keyframes cloth-stock-confirm{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--success) 28%,transparent);transform:scale(.94)}45%{transform:scale(1.04)}to{transform:scale(1);box-shadow:0 0 0 7px #0000}}@keyframes cloth-stock-check{0%{stroke-dashoffset:18px}to{stroke-dashoffset:0}}@media (prefers-reduced-motion:reduce){.cloth-stock-row-actions .cloth-stock-complete{transition:none}.cloth-stock-complete.just-completed,.cloth-stock-complete.just-completed path{animation:none}}.cloth-stock-scroll{scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent;max-height:460px}.cloth-pack-popover{box-sizing:border-box;border:1px solid var(--line-strong);background:var(--surface);width:260px;max-width:calc(100vw - 24px);color:var(--text);font:inherit;border-radius:10px;margin:0;padding:16px;position:fixed;inset:auto;box-shadow:0 10px 32px #31221926}.cloth-pack-popover form{gap:16px;display:grid}.cloth-pack-popover strong{font-size:13px;font-weight:500}.cloth-pack-popover label{color:var(--text-secondary);gap:8px;font-size:12px;display:grid}.cloth-pack-popover label>span{align-items:center;gap:10px;display:flex}.cloth-pack-popover input{box-sizing:border-box;border:1px solid var(--line-strong);background:var(--surface-soft);width:100%;min-width:0;color:var(--text);font:inherit;border-radius:6px;padding:9px 10px}.cloth-pack-popover form>div{justify-content:flex-end;gap:8px;display:flex}.cloth-pack-popover button{font:inherit;cursor:pointer;border:1px solid var(--line-strong);background:var(--surface);color:var(--gold);border-radius:6px;padding:8px 12px;font-size:12px}.cloth-pack-popover button[type=submit]{background:var(--gold);border-color:var(--gold);color:var(--surface)}.cloth-pack-popover button:hover{filter:brightness(.96)}.cloth-pack-popover input:focus-visible,.cloth-pack-popover button:focus-visible{outline:2px solid var(--gold);outline-offset:2px}@media (width<=650px){.cloth-stock-heading{padding:15px 14px 0}.cloth-stock-heading>div{flex-direction:column;align-items:flex-start;gap:5px}.cloth-stock-summary{flex-wrap:wrap;gap:20px;padding:10px 14px 18px}.cloth-stock-secondary{padding-left:20px}.cloth-stock-context{text-align:left;flex-wrap:wrap;flex-basis:100%;gap:8px;display:flex}.cloth-stock-notice{margin:0 14px 14px!important}.cloth-stock-detail>summary{padding:12px 14px}.cloth-stock-scroll{margin:0 14px 14px}.cloth-stock-table th,.cloth-stock-table td{padding:10px}.cloth-stock-rule{padding:0 14px 14px}.cloth-stock-values>span{gap:7px}.cloth-stock-actions{padding:0 14px 16px}.cloth-stock-actions>span{flex-basis:100%}.cloth-stock-extra{margin:0 14px 16px}.cloth-stock-feedback{margin:0 14px 14px!important}.stock-view-toolbar{flex-wrap:wrap;gap:10px;padding:0 14px 14px}.stock-category-switch{flex:100%}.cloth-stock-card .stock-category-switch button{flex-direction:column;flex:1;gap:3px;min-height:44px;padding:7px 10px}.stock-category-switch button>span{font-size:10px}.cloth-stock-card .stock-detail-toggle{min-height:44px;margin-left:auto}.stock-usage-heading{margin:0 14px 12px}.cloth-stock-context{font-size:11px!important}}.review-notice-label{padding-inline-end:10px;display:inline-block;position:relative}.gallery-review-dot{pointer-events:none;background:#bb5a4b;border-radius:50%;width:5px;height:5px;margin:0;display:block;position:absolute;top:50%;right:0;transform:translateY(-50%)}:root[data-theme=dark] .gallery-review-dot{background:#dc8b7a}.header-more{flex-shrink:0;position:relative}.header-nav .header-more-trigger{border:1px solid var(--line);background:var(--surface);white-space:nowrap;border-radius:8px;gap:8px;min-width:76px;min-height:38px;padding:8px 12px;font-size:12px}.header-nav .header-more-trigger:hover,.header-nav .header-more-trigger[aria-expanded=true]{border-color:var(--accent-border);background:var(--accent-soft);color:var(--gold)}.header-nav .header-more-chevron{transition:transform var(--ui-motion-control) var(--ui-motion-easing);flex-shrink:0;display:block}.header-more-trigger[aria-expanded=true] .header-more-chevron{transform:rotate(180deg)}.header-more-options{z-index:15;border:1px solid var(--line-strong);background:var(--surface);width:200px;max-width:calc(100vw - 24px);box-shadow:0 8px 28px var(--shadow-medium);opacity:0;visibility:hidden;transform:translateY(calc(-1 * var(--ui-motion-offset))) scale(var(--ui-motion-scale));transform-origin:100% 0;pointer-events:none;transition:opacity var(--ui-motion-menu) var(--ui-motion-easing),transform var(--ui-motion-menu) var(--ui-motion-easing),visibility 0s linear var(--ui-motion-menu);border-radius:10px;gap:3px;padding:6px;display:grid;position:absolute;top:calc(100% + 8px);right:0}.header-more-options[data-open=true]{opacity:1;visibility:visible;pointer-events:auto;transition-delay:0s;transform:translateY(0)scale(1)}.header-more-options{overscroll-behavior:contain;scroll-padding-block:6px;overflow-y:auto}.header-more-options[data-side=above]{transform-origin:100% 100%;top:auto;bottom:calc(100% + 8px)}.header-nav .header-more-options>button{white-space:nowrap;width:100%;min-height:42px;color:var(--text-secondary);border:0;border-radius:6px;justify-content:flex-start;padding:10px 12px;font-size:12px}.header-nav .header-more-options>button:hover,.header-nav .header-more-options>button:focus-visible{background:var(--accent-soft);color:var(--gold)}.header-nav .header-more-options .header-more-icon{width:18px;height:18px;color:var(--gold);flex-shrink:0;display:block}.header-nav .header-more-options .header-more-badge{text-align:center;flex-shrink:0;min-width:27px;margin-left:auto;line-height:1.5;display:inline-block}@media (width<=760px){.site-header .header-nav.header-more-actions{justify-content:flex-end;gap:12px;display:flex}.header-nav .header-more-trigger,.header-nav .header-more-options>button{min-height:44px}}@media (pointer:coarse){.header-nav .header-more-trigger{min-height:44px}.header-nav .header-more-options>button{min-height:48px;font-size:13px}.header-more-trigger:active,.header-nav .header-more-options>button:active{background:var(--accent-soft);color:var(--gold)}}@media (prefers-reduced-motion:reduce){.header-more-chevron,.header-more-options{transition:none}}.header-nav>button.community-group-trigger{border:1px solid var(--accent-border);min-height:38px;color:var(--gold);white-space:nowrap;border-radius:8px;padding:8px 12px;font-size:12px}.header-nav>button.community-group-trigger:hover{background:var(--accent-soft)}.modal.community-group-dialog{width:400px;max-width:calc(100vw - 32px);height:max-content;max-height:calc(100dvh - 32px);margin:auto;position:fixed;inset:0}.community-group-dialog .community-group-invitation{color:var(--text-secondary);font-size:15px;line-height:1.8}.community-group-number{border:1px solid var(--line);background:var(--surface-soft);color:var(--muted);border-radius:8px;flex-wrap:wrap;align-items:center;gap:8px;margin:22px 0 24px;padding:18px;font-size:13px;display:flex}.community-group-number strong{color:var(--text);letter-spacing:1.5px;font-variant-numeric:tabular-nums;-webkit-user-select:all;user-select:all;font-size:24px;font-weight:500}.community-group-actions{justify-content:flex-end;gap:10px;display:flex}.community-group-actions>button,.community-group-join{border:1px solid var(--line);border-radius:6px;min-height:42px;padding:10px 16px;font-size:13px}.community-group-join{background:var(--gold);border-color:var(--gold);color:var(--on-accent);justify-content:center;align-items:center;gap:8px;transition:background .15s,border-color .15s;display:inline-flex}.community-group-join:hover{background:var(--gold-hover);border-color:var(--gold-hover)}.community-group-copy-status{min-height:20px;color:var(--muted);text-align:right;margin-top:10px;font-size:12px;line-height:20px}@media (width<=760px){.header-nav>button.community-group-trigger{min-height:44px}}@media (width<=420px){.community-group-actions>button,.community-group-join{flex:1;min-height:44px}}.mobile-workbench-navigation,.workshop-start-actions,.mobile-upload-label,.mobile-convert-feedback{display:none}@media (width<=900px){.mobile-workbench-navigation{top:env(safe-area-inset-top,0px);z-index:9;background:var(--surface);border:1px solid var(--line);box-shadow:0 3px 12px var(--shadow-faint);border-radius:10px;flex-shrink:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:6px;display:grid;position:sticky}.mobile-workbench-navigation[data-suspended=true]{visibility:hidden;pointer-events:none}.mobile-workbench-navigation>button{white-space:nowrap;min-width:0;min-height:44px;color:var(--text-secondary);border:0;gap:6px;padding:6px 3px;font-size:12px;position:relative}.mobile-workbench-navigation>button[aria-current=location]{background:var(--accent-soft);color:var(--gold)}.mobile-workbench-navigation>button:disabled{opacity:.45}.mobile-workbench-navigation>button>svg{flex-shrink:0}.mobile-workbench-navigation>button>i{background:var(--gold);border-radius:50%;width:5px;height:5px;position:absolute;top:5px;right:5px}#workshop-settings,#workshop-preview,#workshop-export{scroll-margin-top:calc(76px + env(safe-area-inset-top,0px))}#workshop-settings:focus,#workshop-preview:focus,#workshop-export:focus{outline:none}.workshop-start-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px;display:grid}.workshop-start-actions>button{background:var(--surface);min-width:0;min-height:44px;font-size:12px}.mobile-upload-label{display:inline}.desktop-upload-label{display:none}.mobile-convert-feedback:not(:empty){color:var(--text-secondary);background:var(--accent-soft);overflow-wrap:anywhere;border-radius:6px;margin:10px 0 0;padding:10px 12px;font-size:12px;line-height:1.7;display:block}.mobile-convert-feedback[data-error=true]{color:var(--danger);background:var(--danger-soft)}.settings-panel .intro h1{font-size:24px;line-height:1.45}.settings-panel .intro p{line-height:1.6}.settings-panel .upload-zone{min-height:76px;margin-top:16px}.settings-panel .convert-action>button{min-height:48px;font-size:14px}.settings-panel .preset-row{flex-wrap:wrap;gap:6px}.settings-panel .preset-row>span{flex-basis:100%;margin-bottom:2px}.settings-panel .preset-row>button{white-space:nowrap;flex:1;min-height:44px;padding:6px;font-size:12px}.settings-panel .conversion-comparison-setting{align-items:center;min-height:44px}.settings-panel .ordinary-crop-entry>button,.settings-panel .text-button{min-height:44px}}.beginner-guide-trigger{white-space:nowrap;border-radius:8px;min-height:38px;font-size:12px}.beginner-guide-trigger[aria-expanded=true]{color:var(--gold);border-color:var(--accent-border);background:var(--accent-soft)}.beginner-guide-panel{z-index:21;border:1px solid var(--line-strong);background:var(--surface);width:380px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 48px);color:var(--text);box-shadow:0 8px 28px var(--shadow-soft);opacity:0;visibility:hidden;transform:translateY(var(--ui-motion-offset)) scale(var(--ui-motion-scale));transform-origin:100% 100%;pointer-events:none;transition:opacity var(--ui-motion-menu) var(--ui-motion-easing),transform var(--ui-motion-menu) var(--ui-motion-easing),visibility 0s linear var(--ui-motion-menu);border-radius:12px;padding:18px;position:fixed;top:12px;left:12px;overflow:auto}.beginner-guide-panel[data-open=true]{opacity:1;visibility:visible;pointer-events:auto;transition-delay:0s;transform:translateY(0)scale(1)}.beginner-guide-panel:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.beginner-conversion-guide{flex-direction:column;display:flex;overflow:hidden}.beginner-conversion-guide>.beginner-guide-heading,.beginner-conversion-guide>.beginner-guide-progress,.beginner-conversion-guide>.beginner-guide-footer,.beginner-conversion-guide>.beginner-guide-links{flex-shrink:0}.beginner-conversion-guide>.beginner-guide-content{min-height:0;overflow:auto}.beginner-guide-heading,.beginner-guide-heading>span,.beginner-guide-actions,.beginner-guide-footer,.beginner-guide-footer>div,.beginner-guide-links{align-items:center;gap:8px;display:flex}.beginner-guide-heading{border-bottom:1px solid var(--line);justify-content:space-between;padding-bottom:15px}.beginner-guide-heading>span{color:var(--gold);font-size:12px}.beginner-guide-panel button{border-radius:8px;min-height:36px;padding:7px 10px;font-size:12px}.beginner-guide-heading>button{min-width:36px;color:var(--muted);border-color:#0000;padding:6px}.beginner-guide-progress{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:16px 0 20px;padding:0;list-style:none;display:grid}.beginner-guide-progress li{color:var(--muted);white-space:nowrap;flex-direction:column;align-items:center;gap:7px;font-size:10px;display:flex}.beginner-guide-progress li>span{border:1px solid var(--line);border-radius:50%;place-items:center;width:25px;height:25px;font-size:11px;display:grid}.beginner-guide-progress li[aria-current=step]{color:var(--gold)}.beginner-guide-progress li[aria-current=step]>span,.beginner-guide-progress li[data-done=true]>span{border-color:var(--accent-border);background:var(--accent-soft);color:var(--gold)}.beginner-guide-content h3{margin:0 0 10px;font-size:16px;font-weight:500;line-height:1.6}.beginner-guide-content>p{color:var(--text-secondary);margin:10px 0;font-size:12px;line-height:1.9}.beginner-guide-content>.beginner-guide-note{color:var(--muted);font-size:11px}.beginner-guide-content>.beginner-guide-photo-note{border:1px solid var(--accent-border);background:var(--accent-soft);color:var(--text-secondary);border-radius:6px;padding:10px 12px}.beginner-guide-photo-note strong{color:var(--gold);margin-bottom:4px;font-weight:600;display:block}.beginner-guide-actions{flex-wrap:wrap;margin:14px 0}.beginner-guide-footer{border-top:1px solid var(--line);justify-content:space-between;gap:6px;margin-top:16px;padding-top:14px}.beginner-guide-footer>button:not(.primary){color:var(--gold);border-color:#0000;padding:7px 0}.beginner-guide-links{justify-content:space-between;margin-top:10px}.beginner-guide-links a,.beginner-guide-links button{color:var(--muted);font-size:11px}.beginner-guide-links button{border-color:#0000;min-height:32px;padding:4px 0}.beginner-guide-links a:hover{color:var(--gold)}.beginner-guide-downloads{border:1px solid var(--line);border-radius:8px;margin:14px 0;overflow:hidden}.beginner-guide-downloads>div{align-items:center;gap:9px;padding:12px 10px;display:flex}.beginner-guide-downloads>div+div{border-top:1px solid var(--line)}.beginner-guide-downloads>div>span{color:var(--gold);font-size:12px}.beginner-guide-downloads p{flex:1;min-width:0;margin:0}.beginner-guide-downloads strong{font-size:12px;font-weight:500;display:block}.beginner-guide-downloads small{color:var(--muted);margin-top:4px;font-size:10px;line-height:1.7;display:block}.beginner-guide-downloads button{flex-shrink:0}.beginner-guide-content>.beginner-guide-success{color:var(--success);font-size:11px}.beginner-guide-welcome .beginner-guide-content{padding-top:16px}.beginner-guide-resume{z-index:15;background:var(--surface);border-color:var(--accent-border);min-height:44px;color:var(--gold);box-shadow:0 8px 28px var(--shadow-soft);border-radius:8px;font-size:12px;position:fixed;bottom:24px;right:24px}.beginner-guide-invitation{border-top:1px solid var(--line);justify-content:center;align-items:center;gap:4px;margin:18px auto 0;padding-top:14px;display:flex}.beginner-guide-invitation>button:first-child{min-height:38px;color:var(--gold);background:0 0;border-color:#0000;font-size:11px}.beginner-guide-invitation>button:last-child{min-width:32px;min-height:32px;color:var(--muted);border-color:#0000;padding:5px;font-size:15px}[data-guide-target]{scroll-margin-top:24px;scroll-margin-bottom:80px}@media (width<=760px){.beginner-guide-trigger{min-height:44px}.beginner-guide-panel{width:360px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:15px}.beginner-guide-panel button{min-height:44px}.beginner-guide-heading{padding-bottom:10px}.beginner-guide-progress{margin:12px 0 16px}.beginner-guide-resume{right:12px;bottom:max(12px,env(safe-area-inset-bottom))}.workspace-heading:has(.beginner-guide-trigger){flex-wrap:wrap}.workspace-heading:has(.beginner-guide-trigger) .workspace-actions{flex-wrap:wrap}.beginner-guide-invitation>button{min-height:44px!important}}@media (prefers-reduced-motion:reduce){.beginner-guide-panel{transition:none}}.beginner-guide-spotlight{z-index:20;pointer-events:none;opacity:0;visibility:hidden;transition:opacity var(--ui-motion-menu) var(--ui-motion-easing),visibility 0s linear var(--ui-motion-menu);position:fixed;inset:0;overflow:visible}.beginner-guide-spotlight[data-open=true]{opacity:1;visibility:visible;transition-delay:0s}.beginner-guide-shade{fill:var(--backdrop);pointer-events:none}.beginner-guide-spotlight[data-open=true] .beginner-guide-shade{pointer-events:fill}.beginner-guide-ring{fill:none;stroke:var(--gold);stroke-width:2px;pointer-events:none}.beginner-guide-settings{flex-wrap:wrap;gap:6px;margin-top:12px;display:flex}.beginner-guide-settings button[aria-pressed=true]{border-color:var(--accent-border);background:var(--accent-soft);color:var(--gold)}.modal.beginner-style-dialog{background:var(--surface);width:660px;margin:auto;padding:24px}.beginner-style-dialog .modal-heading{align-items:flex-start}.beginner-style-dialog .modal-heading h2{font-size:24px;line-height:1.5}.beginner-style-dialog .modal-heading>button{border-radius:8px;min-width:38px;min-height:38px;font-size:18px}.beginner-style-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:22px;display:grid}.beginner-style-options>button{text-align:left;white-space:normal;border:1px solid var(--line-strong);background:var(--surface-soft);color:var(--text);border-radius:10px;flex-direction:column;justify-content:flex-start;align-items:stretch;gap:10px;padding:16px;display:flex}.beginner-style-options>button:hover:not(:disabled){border-color:var(--gold);background:var(--accent-soft)}.beginner-style-art{background:var(--surface);border:1px solid var(--line);border-radius:6px;flex-shrink:0;height:240px;margin-bottom:4px;display:block;position:relative;overflow:hidden}.beginner-style-art img{object-fit:contain;width:100%;height:100%;max-height:100%;image-rendering:pixelated;display:block;position:absolute;inset:0}.beginner-style-label{color:var(--gold);justify-content:space-between;gap:10px;font-size:17px;font-weight:500;display:flex}.beginner-style-options strong{font-size:11px;font-weight:500;line-height:1.8}.beginner-style-description{color:var(--text-secondary);font-size:12px;line-height:1.9}.beginner-style-dialog>.beginner-style-footnote{color:var(--muted);margin-top:18px;font-size:11px}.modal.beginner-style-dialog{width:940px}.beginner-creation-columns{grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:18px;margin-top:20px;display:grid}.beginner-creation-columns>section{min-width:0}.beginner-creation-columns h3{color:var(--muted);margin-bottom:10px;font-size:12px;font-weight:500}.beginner-creation-columns .beginner-style-options{margin-top:0}.beginner-drawing-option{grid-template-columns:minmax(0,1fr)}.beginner-route-canvas{color:var(--gold);background:var(--accent-soft);place-items:center;display:grid}.beginner-style-art.beginner-route-canvas{background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);background-size:20px 20px}@media (width<=760px){.beginner-creation-columns,.beginner-creation-columns .beginner-style-options{gap:10px}.beginner-creation-columns .beginner-style-label{white-space:normal;font-size:14px}.beginner-creation-columns .beginner-style-options>button{padding:10px}.beginner-creation-columns .beginner-style-art{height:150px}}@media (width<=620px){.beginner-creation-columns .beginner-style-options{grid-template-columns:minmax(0,1fr)}.beginner-creation-columns .beginner-style-options>button{flex-direction:column;gap:8px;display:flex}.beginner-creation-columns .beginner-style-art{align-self:stretch;width:100%;height:110px}.beginner-creation-columns .beginner-style-description{font-size:11px}.beginner-creation-columns .beginner-drawing-option .beginner-style-art{height:150px}.beginner-route-canvas svg{width:64px;height:64px}}.drawing-guide{flex-direction:column;display:flex;overflow:hidden}.drawing-guide .beginner-guide-heading,.drawing-guide .beginner-guide-footer{flex-shrink:0}.drawing-guide .beginner-guide-content{min-height:0;padding-top:16px;overflow:auto}.drawing-guide-colors{flex-wrap:wrap;gap:8px;margin:14px 0;display:flex}.drawing-guide-colors button{min-height:44px}.drawing-guide-colors i{border:1px solid var(--line-strong);border-radius:4px;flex-shrink:0;width:20px;height:20px}.drawing-guide-colors button[aria-pressed=true]{border-color:var(--accent-border);background:var(--accent-soft);color:var(--gold)}.blank-canvas-guide{background:var(--accent-soft);border:1px solid var(--accent-border);color:var(--gold);border-radius:8px;margin-top:18px;padding:14px;font-size:12px}.blank-canvas-guide p{color:var(--text-secondary);margin-top:8px;font-size:12px;line-height:1.8}@media (width<=620px){.modal.beginner-style-dialog{max-height:calc(100dvh - 24px);padding:20px 16px}.beginner-style-dialog .modal-heading h2{font-size:21px}.beginner-style-dialog .modal-heading>button{min-width:44px;min-height:44px}.beginner-style-options{grid-template-columns:1fr;gap:10px;margin-top:16px}.beginner-style-options>button{grid-template-columns:70px minmax(0,1fr);gap:5px 12px;padding:13px;display:grid}.beginner-style-art{grid-row:1/4;align-self:center;width:70px;height:96px;margin:0}.beginner-style-label{font-size:16px}}@media (prefers-reduced-motion:reduce){.beginner-guide-spotlight{transition:none}}:root{--ui-motion-control:.15s;--ui-motion-menu:.18s;--ui-motion-dialog:.18s;--ui-motion-easing:ease;--ui-motion-offset:6px;--ui-motion-scale:.98}.ui-dialog[open]{animation:ui-dialog-enter var(--ui-motion-dialog) var(--ui-motion-easing) both}.ui-dialog[open][data-closing=true]{pointer-events:none;animation-name:ui-dialog-exit}.ui-dialog::backdrop,.ui-dialog-backdrop{animation:ui-backdrop-enter var(--ui-motion-dialog) var(--ui-motion-easing) both}.ui-dialog[data-closing=true]::backdrop,.ui-dialog-backdrop[data-closing=true]{animation-name:ui-backdrop-exit}@keyframes ui-dialog-enter{0%{opacity:0;transform:translateY(var(--ui-motion-offset)) scale(var(--ui-motion-scale))}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes ui-dialog-exit{0%{opacity:1;transform:translateY(0)scale(1)}to{opacity:0;transform:translateY(var(--ui-motion-offset)) scale(var(--ui-motion-scale))}}@keyframes ui-backdrop-enter{0%{opacity:0}to{opacity:1}}@keyframes ui-backdrop-exit{0%{opacity:1}to{opacity:0}}@media (prefers-reduced-motion:reduce){.ui-dialog[open],.ui-dialog::backdrop,.ui-dialog-backdrop{animation:none}}.hsl-result-actions{flex-wrap:wrap;gap:8px;margin:10px 0 14px;display:flex}.hsl-tutorial-link{min-height:40px;color:var(--gold);text-underline-offset:3px;align-items:center;margin:-8px 0 10px;font-size:12px;line-height:1.8;display:flex}.hsl-tutorial-link:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.hsl-result-actions>button{border:1px solid var(--line);background:var(--surface);min-width:0;min-height:40px;color:var(--text-secondary);border-radius:8px;flex:120px;gap:6px;padding:8px;font-size:12px}.hsl-result-actions>button:hover:not(:disabled){border-color:var(--accent-border);background:var(--accent-soft);color:var(--gold)}.hsl-result-actions svg,.hsl-parameters-dialog svg{fill:none;stroke:currentColor;stroke-width:1.6px;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;width:18px;height:18px}.hsl-result-actions>button:focus-visible,.hsl-parameters-dialog button:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.modal.hsl-parameters-dialog{background:var(--surface);width:560px;max-width:calc(100vw - 24px);height:max-content;max-height:calc(100dvh - 24px);margin:auto;position:fixed;inset:0}.hsl-parameters-dialog .modal-heading{gap:12px;margin-bottom:12px}.hsl-parameters-dialog .modal-heading h2{margin:0;font-size:21px}.hsl-parameters-dialog .modal-heading button{border-radius:8px;min-width:38px;min-height:38px}.hsl-parameters-dialog>p{margin:0 0 16px;font-size:12px}.hsl-parameters-table{border:1px solid var(--line);border-radius:8px;overflow-x:auto}.hsl-parameters-table table{border-collapse:collapse;white-space:nowrap;font-variant-numeric:tabular-nums;width:100%;font-size:12px}.hsl-parameters-table th,.hsl-parameters-table td{border-bottom:1px solid var(--line);text-align:right;padding:11px 10px}.hsl-parameters-table th:first-child{text-align:left}.hsl-parameters-table thead{background:var(--surface-soft);color:var(--text-secondary)}.hsl-parameters-table th{font-weight:500}.hsl-parameters-table tbody tr:last-child>*{border-bottom:0}.hsl-parameters-swatch{border:1px solid var(--line-strong);border-radius:50%;width:10px;height:10px;margin-right:7px;display:inline-block}.hsl-parameters-dialog footer{justify-content:flex-end;margin-top:18px;display:flex}.hsl-parameters-dialog footer button{border-radius:8px;min-height:40px;padding:8px 18px;font-size:12px}@media (width<=760px),(pointer:coarse){.hsl-result-actions>button,.hsl-parameters-dialog button,.hsl-tutorial-link{min-height:44px}.hsl-parameters-dialog .modal-heading button{min-width:44px}}@media (width<=420px){.hsl-parameters-table th,.hsl-parameters-table td{padding:10px 6px;font-size:11px}}.site-header>.header-account{border:1px solid var(--line);min-height:38px;color:var(--text);white-space:nowrap;border-radius:20px;flex:none;order:100;justify-content:center;align-items:center;gap:8px;padding:5px 10px;font-size:12px;font-weight:400;line-height:1.5;display:inline-flex}.site-header>.header-account>svg{flex:none;width:17px;height:17px;display:block}.header-account:hover,.header-account[aria-current=page]{background:var(--surface-hover);border-color:var(--gold)}.header-account-avatar{background:var(--accent-soft);width:28px;height:28px;color:var(--gold);border-radius:50%;flex:none;place-items:center;font-size:12px;display:grid;overflow:hidden}.header-account-avatar img{object-fit:cover;width:100%;height:100%}.header-account-name{text-overflow:ellipsis;max-width:116px;font-size:12px;overflow:hidden}@media (width<=600px){.site-header>.header-account{gap:6px;min-height:36px;padding:4px 7px}.header-account-name{max-width:76px}.header-account-avatar{width:25px;height:25px}}.site-header{position:relative}.site-header>.header-account{margin-left:12px}@media (width<=760px){.site-header>.header-account{top:14px;right:max(12px,env(safe-area-inset-right));max-width:142px;margin:0;position:absolute}.site-header>.brand{padding-right:130px}}.header-account-error{z-index:30;background:var(--surface);border:1px solid var(--line);color:var(--text);border-radius:8px;padding:8px 12px;font-size:12px;position:absolute;top:100%;right:24px}.header-account-avatar{position:relative}.header-account-avatar img{background:var(--accent-soft);position:absolute;inset:0}.header-account-error{max-width:min(460px,100vw - 24px);box-shadow:0 8px 28px var(--shadow-medium);align-items:center;gap:8px;line-height:1.6;display:flex}.header-account-error>span{overflow-wrap:anywhere;min-width:0}.header-account-error>a{min-height:44px;color:var(--gold);flex-shrink:0;align-items:center;display:inline-flex}.header-account-error>button{border:0;flex-shrink:0;width:44px;height:44px;padding:0}.header-account[aria-disabled=true]{cursor:progress}@media (width<=760px){.site-header>.header-account{min-height:44px}.header-account-error{right:max(12px,env(safe-area-inset-right));gap:6px;padding:6px 8px}}@media (pointer:coarse){.site-header>.header-account{min-height:44px}}.helpful-heart{isolation:isolate;flex:none;display:block;overflow:visible}.helpful-heart-shimmer{animation:3.2s linear infinite helpful-heart-shimmer}.helpful-heart[data-growing=true] .helpful-heart-shimmer{animation-duration:7s}.helpful-heart{--heart-orbit-gold:#b18542;--heart-orbit-pale:#f3dca1;--heart-orbit-shade:#967143}:root[data-theme=dark] .helpful-heart{--heart-orbit-gold:#dcba78;--heart-orbit-pale:#f6dfa6;--heart-orbit-shade:#ad844c}.helpful-heart-orbit path{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.helpful-heart-orbit-back path{stroke:var(--heart-orbit-gold);stroke-width:.7px;opacity:.3}.helpful-heart-orbit-front path{stroke-width:.9px}.helpful-heart-orbit-back circle{fill:var(--heart-orbit-gold);opacity:.3}.helpful-heart-orbit-front circle{fill:var(--heart-orbit-pale)}.helpful-heart-ornament{fill:var(--heart-orbit-pale);stroke:var(--heart-orbit-gold);stroke-width:.5px;stroke-linejoin:round;stroke-linecap:round}@keyframes helpful-heart-shimmer{to{transform:translate(-72px)}}@media (prefers-reduced-motion:reduce){.helpful-heart-shimmer{animation:none}}.helpful-heart .helpful-heart-base,.helpful-heart .helpful-heart-layer{stroke-width:1.6px;stroke-linecap:round;stroke-linejoin:round}.helpful-heart[data-celebrating=true]{transform-origin:50%;animation:helpful-heart-filled .48s var(--ui-motion-easing)}@keyframes helpful-heart-filled{0%,to{transform:scale(1)}45%{transform:scale(1.12)}75%{transform:scale(.98)}}.helpful-heart-intake circle{transform-origin:12px 12px;animation:.56s linear both helpful-heart-draw-in}.helpful-heart-intake circle+circle{animation-duration:.47s;animation-delay:90ms}.helpful-heart[data-absorbing=true] .helpful-heart-body{transform-origin:12px 12px;animation:.56s ease-in-out helpful-heart-intake}@keyframes helpful-heart-draw-in{0%{opacity:0;transform:scale(1)}18%{opacity:.65}80%{opacity:.35}to{opacity:0;transform:scale(.18)}}@keyframes helpful-heart-intake{0%,to{transform:scale(1)}40%{transform:scale(.82,.92)}72%{transform:scale(.94,1.04)}}@media (prefers-reduced-motion:reduce){.helpful-heart[data-celebrating=true],.helpful-heart[data-absorbing=true] .helpful-heart-body{animation:none}.helpful-heart-intake{display:none}}.helpful-heart-particles{z-index:18;pointer-events:none;width:0;height:0;position:fixed}.helpful-heart-particle{background:var(--particle-color);offset-rotate:0deg;offset-anchor:center;will-change:offset-distance,transform,opacity;border-radius:50%;width:4px;height:4px;display:block;position:absolute;top:0;left:0}.helpful-heart-particle[data-kind=heart]{background:0 0;border-radius:0;width:8px;height:8px}.helpful-heart-particle[data-kind=heart] svg{width:100%;height:100%;fill:var(--particle-color);display:block}.helpful-heart-particle[data-kind=streak]{border-radius:2px;width:9px;height:2px}@media (prefers-reduced-motion:reduce){.helpful-heart-particles{display:none}}:root{--helpful-safe-left:env(safe-area-inset-left,0px);--helpful-safe-right:env(safe-area-inset-right,0px);--helpful-safe-top:env(safe-area-inset-top,0px);--helpful-safe-bottom:env(safe-area-inset-bottom,0px);--helpful-top-gap:32px}.site-helpful-header-root{display:contents}.site-helpful-debug{white-space:nowrap;color:var(--muted);justify-content:space-between;align-items:center;gap:8px;margin-top:6px;font-size:11px;display:flex}.site-helpful-prompt .site-helpful-debug input[type=number]{border:1px solid var(--line-strong);background:var(--surface);width:78px;min-width:0;min-height:26px;color:var(--text-secondary);font:inherit;border-radius:4px;padding:3px 6px}.site-guestbook-group{align-items:center;gap:8px;min-width:0;display:flex}.site-guestbook-group>a{flex:1}.site-header .site-helpful-compact{cursor:pointer;background:0 0;border:0;border-radius:8px;flex:0 0 40px;place-items:center;width:40px;height:40px;padding:0;display:grid}.site-header .site-helpful-compact:hover{background:var(--accent-soft)}.site-helpful-compact>span{display:flex}.site-helpful{border:1px solid var(--line-strong);background:var(--surface);width:100%;min-height:56px;box-shadow:0 4px 14px var(--shadow-faint);color:var(--text-secondary);text-align:left;white-space:nowrap;transition:transform var(--ui-motion-control) var(--ui-motion-easing);border-radius:8px;align-items:center;gap:10px;padding:8px 12px;display:flex;position:relative}.site-helpful:hover:not(:disabled){border-color:var(--accent-border);background:var(--surface);transform:translateY(-1px)}.site-helpful:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.site-helpful:disabled{opacity:1;cursor:wait}.site-helpful[aria-pressed=true]{border-color:var(--accent-border);cursor:default}.site-helpful[aria-pressed=true] .site-helpful-label{white-space:normal;overflow-wrap:anywhere}.site-helpful-share-platform{white-space:nowrap}.site-helpful-icon{border:1px solid var(--accent-border);background:var(--accent-soft);width:32px;height:32px;color:var(--gold);border-radius:8px;flex-shrink:0;place-items:center;display:grid}.site-helpful-copy{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.site-helpful-label{color:var(--text-secondary);font-size:12px;line-height:1.4}.site-helpful-total{color:var(--muted);font-variant-numeric:tabular-nums;font-size:11px;line-height:1.4}.site-helpful-total strong{color:var(--gold);font-size:13px;font-weight:500}.site-helpful-action{border-left:1px solid var(--line);color:var(--gold);flex-shrink:0;padding-left:10px;font-size:12px;line-height:24px}.site-helpful-status{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@keyframes site-helpful-confirm{0%{opacity:.5;transform:scale(var(--ui-motion-scale))}to{opacity:1;transform:scale(1)}}.site-helpful-prompt{z-index:19;width:268px;max-width:calc(100vw - max(16px,env(safe-area-inset-left)) - max(16px,env(safe-area-inset-right)));opacity:1;transform-origin:100% 0;transition:opacity var(--ui-motion-control) var(--ui-motion-easing),transform var(--ui-motion-control) var(--ui-motion-easing);position:fixed}.site-helpful-close{z-index:1;border:1px solid var(--line-strong);background:var(--surface);width:24px;height:24px;min-height:0;color:var(--muted);cursor:pointer;border-radius:50%;place-items:center;padding:0;font-size:18px;line-height:1;display:grid;position:absolute;top:-10px;right:-10px}.site-helpful-close:hover{border-color:var(--accent-border);background:var(--accent-soft);color:var(--text)}.site-helpful-close:focus-visible{outline:2px solid var(--gold);outline-offset:2px}.site-helpful-content{display:contents}.site-helpful-community{border:1px solid var(--line-strong);background:var(--surface);box-shadow:0 4px 14px var(--shadow-faint);border-radius:8px;margin-top:6px;padding:12px}.site-helpful-community-heading{color:var(--muted);justify-content:space-between;gap:8px;font-size:11px;line-height:1.6;display:flex}.site-helpful-community-heading>span:last-child{color:var(--gold);font-size:10px}.site-helpful-community-number{width:fit-content;color:var(--text);letter-spacing:1.5px;font-variant-numeric:tabular-nums;-webkit-user-select:all;user-select:all;margin:5px 0 10px;font-size:20px;font-weight:500;line-height:1.4;display:block}.site-helpful-community-actions{gap:8px;display:flex}.site-helpful-community-actions>button,.site-helpful-community-actions>a{border:1px solid var(--line-strong);background:var(--surface);min-height:32px;color:var(--text-secondary);border-radius:5px;flex:1;justify-content:center;align-items:center;gap:5px;padding:6px 8px;font-size:11px;text-decoration:none;display:inline-flex}.site-helpful-community-actions>a{border-color:var(--accent-border);background:var(--accent-soft);color:var(--gold)}.site-helpful-community-actions>button:hover,.site-helpful-community-actions>a:hover{border-color:var(--gold);background:var(--accent-soft)}.site-helpful-community-actions>button:focus-visible,.site-helpful-community-actions>a:focus-visible{outline:2px solid var(--gold);outline-offset:2px}.site-helpful-community-status{color:var(--muted);overflow-wrap:anywhere;font-size:11px;line-height:1.5;display:block}.site-helpful-community-status:not(:empty){margin-top:8px}@media (width<=900px),(pointer:coarse){.site-helpful-content{max-height:inherit;overscroll-behavior:contain;border-radius:8px;display:block;overflow:hidden auto}.site-helpful-close{background:var(--surface);border:0;width:44px;height:44px;font-size:22px;top:10px;right:0}.site-helpful{gap:8px;min-height:64px;padding-right:48px}.site-helpful-community-heading,.site-helpful-community-status{font-size:12px}.site-helpful-community-heading>span:last-child{font-size:11px}.site-helpful-community-actions>button,.site-helpful-community-actions>a{min-height:44px;font-size:13px}.site-helpful-prompt .site-helpful-debug input[type=number]{min-height:44px;font-size:16px}}.site-helpful-prompt[hidden]{display:none}.site-helpful-prompt[data-phase=prompt]{animation:site-helpful-appear var(--ui-motion-menu) var(--ui-motion-easing)}.site-helpful-prompt[data-phase=docking]{opacity:0;transform-origin:28px;pointer-events:none;transform:scale(.16,.55)}.site-helpful-prompt[data-phase=docking] .site-helpful-icon svg{visibility:hidden}@media (width<=900px){:root{--helpful-top-gap:96px}.site-header .site-helpful-compact{flex-basis:44px;width:44px;height:44px}}@keyframes site-helpful-appear{0%{opacity:0;transform:translateY(-8px)scale(.96)}to{opacity:1;transform:translateY(0)scale(1)}}.site-helpful-received{animation:site-helpful-receive .72s var(--ui-motion-easing)}@keyframes site-helpful-receive{0%{transform:scale(.94)}32%{transform:scale(1.27)}56%{transform:scale(.96)}78%{transform:scale(1.06)}to{transform:scale(1)}}@media (prefers-reduced-motion:reduce){.site-helpful,.site-helpful-prompt{transition:none}.site-helpful-received,.site-helpful-prompt[data-phase=prompt]{animation:none}}.gallery-material-filter{border:1px solid var(--line);background:var(--surface);border-radius:10px;flex-shrink:0;align-items:center;gap:4px;padding:3px;display:inline-flex}.gallery-material-filter button{min-height:36px;color:var(--text-secondary);font:inherit;white-space:nowrap;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:7px;margin:0;padding:7px 12px;font-size:12px;line-height:1.5}.gallery-material-filter button:hover{background:var(--surface-soft);color:var(--text)}.gallery-material-filter button[aria-pressed=true]{border-color:var(--accent-border);background:var(--accent-soft);color:var(--gold)}.gallery-material-filter button:focus-visible{outline:2px solid var(--gold);outline-offset:1px}.gallery-static-controls{margin-bottom:24px}@media (width<=560px){.gallery-material-filter{grid-area:2/1/auto/-1;display:flex}.gallery-material-filter button{flex:1;min-height:44px}}.gallery-hsl-details{border:1px solid var(--accent-border);background:var(--surface-soft);border-radius:10px;margin:18px 0;padding:16px}.gallery-hsl-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;display:flex}.gallery-hsl-heading h3{color:var(--gold);margin:0;font-size:13px;font-weight:500}.gallery-hsl-heading button{border:1px solid var(--line);background:var(--surface);min-height:40px;color:var(--text);border-radius:8px;justify-content:center;align-items:center;gap:7px;margin:0;padding:8px 12px;font-size:12px;display:inline-flex}.gallery-hsl-heading button:hover:not(:disabled){border-color:var(--accent-border);color:var(--gold)}.gallery-hsl-details>p,.gallery-hsl-details details>p{color:var(--text-secondary);margin:10px 0 0;font-size:12px;line-height:1.8}.gallery-hsl-details details{margin-top:12px}.gallery-hsl-details summary{color:var(--gold);cursor:pointer;font-size:12px}.gallery-hsl-details .hsl-parameters-table{background:var(--surface);margin-top:12px}.gallery-hsl-details button:focus-visible,.gallery-hsl-details summary:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.gallery-submission-preview-card>.gallery-hsl-details{margin:0 20px 20px}@media (width<=760px),(pointer:coarse){.gallery-hsl-heading button{min-height:44px}.gallery-hsl-details summary{align-content:center;min-height:36px}}.gallery-tabs,.gallery-pagination,.gallery-local-users{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.gallery-tabs{border-bottom:1px solid var(--line);margin-bottom:28px;padding-bottom:14px}.gallery-tabs a{color:inherit;border-radius:10px;padding:8px 14px;text-decoration:none}.gallery-tabs a[aria-current=page]{background:var(--gold);color:var(--on-accent)}.gallery-local-users{border:1px dashed var(--line);background:var(--surface-soft);border-radius:12px;margin-bottom:20px;padding:10px 14px;font-size:12px}.gallery-local-users>span{color:var(--muted);margin-right:3px}.gallery-local-users button{border-radius:8px;min-height:32px;padding:6px 12px;font-size:12px}.gallery-local-users button[aria-pressed=true]{border-color:var(--accent-border);background:var(--accent-soft);color:var(--gold);box-shadow:0 0 0 1px var(--accent-border)}.gallery-search{gap:10px;max-width:560px;margin-bottom:24px;display:flex}.gallery-search input{border:1px solid var(--line);background:var(--surface);min-width:0;color:inherit;border-radius:10px;flex:1;padding:11px 12px}.gallery-empty{text-align:center;border:1px dashed var(--line);border-radius:16px;padding:50px 24px}.gallery-empty h2{font-size:22px}.gallery-description,.gallery-reference{white-space:pre-wrap;overflow-wrap:anywhere}.gallery-review-reason{background:var(--surface-soft);border-left:3px solid var(--gold);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:0 8px 8px 0;padding:12px;font-size:13px}.community-cover-placeholder{min-height:220px;color:var(--muted);justify-content:center;align-items:center;display:flex}.gallery-pagination{justify-content:center;margin-top:32px}@media (width<=760px){.gallery-tabs{gap:4px}.gallery-tabs a{padding:8px 10px}}.community-gallery{--gallery-danger:#aa4d41}.community-gallery .gallery-grid{grid-template-columns:repeat(4,minmax(0,1fr))}:root[data-theme=dark] .community-gallery{--gallery-danger:#e6a195}.community-gallery .gallery-artwork{flex-direction:column;display:flex;position:relative}.community-gallery .gallery-artwork-copy{padding:22px 22px 0}.community-gallery .gallery-community-copy{flex-direction:column;flex:1;padding:0 22px 22px;display:flex}.community-gallery .gallery-reference{-webkit-line-clamp:2;color:var(--text-secondary);opacity:1;-webkit-box-orient:vertical;margin:14px 0 6px;font-size:12px;line-height:1.7;display:-webkit-box;overflow:hidden}.gallery-description-block{min-width:0;margin:0 0 16px}.community-gallery .gallery-description{-webkit-line-clamp:3;color:var(--text-secondary);-webkit-box-orient:vertical;margin:0;font-size:13px;line-height:1.8;display:-webkit-box;overflow:hidden}.community-gallery .gallery-description-more{color:var(--gold);background:0 0;border:0;border-radius:4px;align-items:center;gap:4px;margin-top:3px;padding:4px 0;font-size:11px;display:inline-flex}.gallery-description-more:hover{text-underline-offset:3px;text-decoration:underline}.gallery-description-more:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.gallery-description-full{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-size:14px;line-height:1.9}.gallery-description-dialog h2{overflow-wrap:anywhere}.gallery-featured-badge{z-index:1;pointer-events:none;border:1px solid var(--accent-border);background:var(--surface);color:var(--gold);box-shadow:0 2px 6px var(--shadow-soft);border-radius:999px;align-items:center;gap:5px;padding:4px 8px;font-size:10px;line-height:1.4;display:inline-flex;position:absolute;top:23px;right:23px}.gallery-featured-badge svg{fill:currentColor;width:12px;height:12px}.gallery-status-row{flex-wrap:wrap;align-items:center;gap:7px;margin:6px 0 18px;display:flex}.gallery-state{border:1px solid var(--line);background:var(--surface-soft);color:var(--text-secondary);border-radius:999px;align-items:center;gap:5px;padding:5px 9px;font-size:11px;font-weight:500;line-height:1.4;display:inline-flex}.gallery-state svg{width:12px;height:12px}.gallery-state.is-pending{background:var(--accent-soft);border-color:var(--accent-border);color:var(--gold)}.gallery-state.is-approved{color:#587b65;background:#587b650c;border-color:#587b6535}.gallery-state.is-rejected{color:var(--gallery-danger);background:color-mix(in srgb,var(--gallery-danger) 7%,transparent);border-color:color-mix(in srgb,var(--gallery-danger) 25%,transparent)}.gallery-state.is-hidden{color:var(--muted)}.gallery-version-note{color:var(--muted);font-size:10px}.gallery-state-clock{box-sizing:border-box;border:1px solid;border-radius:50%;width:11px;height:11px;position:relative}.gallery-state-clock:after{content:"";border-bottom:1px solid;border-left:1px solid;width:3px;height:4px;position:absolute;top:2px;left:4px}:root[data-theme=dark] .gallery-state.is-approved{color:#9aba9f;background:#9aba9f0c;border-color:#9aba9f35}.gallery-management{border-top:1px solid var(--line);margin-top:auto;padding-top:16px}.gallery-management-heading{color:var(--muted);letter-spacing:.5px;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;font-size:11px;display:flex}.gallery-management-heading small{letter-spacing:0;font-variant-numeric:tabular-nums;font-size:11px}.gallery-management-actions{flex-wrap:wrap;align-items:center;gap:7px;display:flex}.gallery-management-actions button{white-space:nowrap;background:var(--surface);border-radius:9px;justify-content:center;align-items:center;gap:6px;min-height:38px;padding:8px 10px;font-size:12px;font-weight:500;line-height:1.3;transition:background .16s,border-color .16s,color .16s;display:inline-flex}.gallery-management-actions button svg{flex-shrink:0}.gallery-management-actions button:hover:not(:disabled){background:var(--surface-hover);border-color:var(--line-strong)}.gallery-management-actions button:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.gallery-management-actions .gallery-feature-toggle{border-color:var(--accent-border);color:var(--gold);background:var(--accent-soft)}.gallery-management-actions .gallery-feature-toggle[aria-pressed=true] svg{fill:currentColor}.gallery-management-actions .gallery-management-danger{color:var(--gallery-danger);background:0 0;border-color:#0000;margin-left:auto}.gallery-management-actions .gallery-management-danger:hover:not(:disabled){border-color:color-mix(in srgb,var(--gallery-danger) 25%,transparent);background:color-mix(in srgb,var(--gallery-danger) 8%,transparent)}.gallery-management-actions button.primary{background:var(--gold);border-color:var(--gold);color:var(--on-accent)}.gallery-management-actions button.primary:hover:not(:disabled){background:var(--gold-hover)}.gallery-management-feedback{z-index:80;box-sizing:border-box;border:1px solid var(--accent-border);background:var(--surface);width:max-content;max-width:calc(100vw - 32px);box-shadow:0 8px 30px var(--shadow-soft);color:var(--gold);pointer-events:none;border-radius:12px;align-items:center;gap:9px;padding:12px 16px;font-size:13px;line-height:1.6;display:flex;position:fixed;bottom:24px;left:50%;transform:translate(-50%)}.gallery-management-feedback svg{flex-shrink:0}.gallery-management-dialog{box-sizing:border-box;border:1px solid var(--line);background:var(--surface);width:min(480px,100vw - 32px);max-height:calc(100dvh - 40px);color:var(--text);box-shadow:0 24px 90px var(--shadow-faint);--gallery-danger:#aa4d41;border-radius:20px;margin:auto;padding:28px;position:fixed;inset:0;overflow:auto}:root[data-theme=dark] .gallery-management-dialog{--gallery-danger:#e6a195}.gallery-management-dialog::backdrop{background:var(--backdrop);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.gallery-management-dialog-heading{justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px;display:flex}.gallery-management-dialog-heading h2{margin:8px 0 0;font-size:23px;font-weight:500;line-height:1.5}.gallery-management-dialog .gallery-dialog-close{width:30px;height:30px;color:var(--muted);background:var(--surface-soft);border:0;border-radius:50%;flex:none;place-items:center;padding:0;font-size:24px;line-height:1;display:grid}.gallery-management-dialog-work{border:1px solid var(--line);background:var(--surface-soft);color:var(--gold);border-radius:12px;align-items:center;gap:12px;margin-bottom:22px;padding:14px 16px;display:flex}.gallery-management-dialog-work>svg{flex-shrink:0}.gallery-management-dialog-work>div{gap:5px;min-width:0;display:grid}.gallery-management-dialog-work strong{color:var(--text);overflow-wrap:anywhere;font-size:14px;font-weight:500}.gallery-management-dialog-work span{color:var(--muted);font-size:12px}.gallery-management-field{justify-content:space-between;align-items:center;margin:0 0 10px;font-size:13px;font-weight:500;display:flex}.gallery-management-field span{color:var(--muted);font-size:12px;font-weight:400}.gallery-management-dialog input,.gallery-management-dialog textarea{box-sizing:border-box;border:1px solid var(--line-strong);background:var(--surface);width:100%;color:var(--text);font:inherit;border-radius:10px;padding:12px 14px;font-size:14px;display:block}.gallery-management-dialog #gallery-sort,.gallery-management-dialog #gallery-review-reason{border:1px solid var(--line-strong);background:var(--surface);color:var(--text);font:inherit;border-radius:10px;padding:12px 14px;font-size:14px}.gallery-management-dialog textarea{resize:vertical;min-height:140px;line-height:1.7}.gallery-management-help{color:var(--text-secondary);margin:12px 0 0;font-size:13px;line-height:1.8}.gallery-management-dialog-footer{border-top:1px solid var(--line);justify-content:flex-end;gap:10px;margin-top:26px;padding-top:20px;display:flex}.gallery-management-dialog-footer button{border-radius:10px;min-width:90px;min-height:40px;font-size:13px}.gallery-management-dialog .gallery-confirm-danger{border-color:var(--gallery-danger);background:var(--gallery-danger);color:var(--surface)}.gallery-management-dialog .gallery-confirm-danger:hover:not(:disabled){filter:brightness(.94)}.gallery-management-error{background:color-mix(in srgb,var(--gallery-danger) 8%,var(--surface));color:var(--gallery-danger);border-radius:9px;margin:14px 0 0;padding:10px 12px;font-size:13px;line-height:1.7}.gallery-submission{border:1px solid var(--line);background:var(--surface);max-width:1160px;box-shadow:0 8px 30px var(--shadow-faint);border-radius:20px;margin:0 auto;padding:30px;display:block}.gallery-submission-heading{justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px;display:flex}.gallery-submission-heading h2{margin:8px 0;font-size:27px;font-weight:500;line-height:1.4}.gallery-submission-heading p{color:var(--text-secondary);margin:0;font-size:13px;line-height:1.8}.gallery-submission-audit{border:1px solid var(--accent-border);background:var(--accent-soft);color:var(--gold);border-radius:999px;flex:none;align-items:center;gap:6px;padding:7px 10px;font-size:11px;display:inline-flex}.gallery-submission-steps{border:1px solid var(--line);background:var(--surface-soft);border-radius:12px;grid-template-columns:repeat(3,1fr);gap:16px;margin:0 0 28px;padding:16px 20px;list-style:none;display:grid}.gallery-submission-steps li{color:var(--muted);align-items:center;gap:9px;font-size:12px;display:flex}.gallery-submission-steps li>span{border:1px solid var(--line);background:var(--surface);border-radius:50%;flex:none;place-items:center;width:26px;height:26px;font-size:11px;display:grid}.gallery-submission-steps li[data-active=true]{color:var(--gold);font-weight:500}.gallery-submission-steps li[data-active=true]>span{border-color:var(--gold);background:var(--gold);color:var(--on-accent)}.gallery-submission-steps li[data-complete=true]>span{border-color:var(--accent-border);background:var(--accent-soft);color:var(--gold)}.gallery-submission-layout{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);align-items:start;gap:30px;display:grid}.gallery-submission-fields{min-width:0}.gallery-field-heading{justify-content:space-between;align-items:center;gap:10px;margin:0 0 12px;display:flex}.gallery-field-heading h3{margin:0;font-size:14px;font-weight:500}.gallery-field-heading>span{color:var(--muted);font-size:11px}.gallery-details-heading{border-top:1px solid var(--line);margin-top:24px;padding-top:22px}.gallery-submission .gallery-file-input{display:none}.gallery-file-picker{border:1px dashed var(--accent-border);background:var(--surface-soft);text-align:left;border-radius:12px;align-items:center;gap:14px;width:100%;min-width:0;padding:20px 16px;transition:background .16s,border-color .16s;display:flex}.gallery-file-picker:hover:not(:disabled),.gallery-file-picker.is-dragging{background:var(--accent-soft);border-color:var(--gold)}.gallery-file-picker.has-file{border-style:solid;border-color:var(--accent-border)}.gallery-file-symbol{border:1px solid var(--accent-border);background:var(--surface);height:46px;color:var(--gold);border-radius:11px;flex:0 0 46px;place-items:center;display:grid}.gallery-file-copy{flex:1;gap:7px;min-width:0;display:grid}.gallery-file-copy strong{text-overflow:ellipsis;white-space:nowrap;color:var(--text);font-size:13px;font-weight:500;overflow:hidden}.gallery-file-copy>span{color:var(--muted);font-size:11px;line-height:1.6}.gallery-file-select{border:1px solid var(--line);background:var(--surface);color:var(--gold);border-radius:7px;flex:none;padding:6px 9px;font-size:11px}.gallery-submission .gallery-field-note{color:var(--muted);opacity:1;align-items:flex-start;gap:6px;margin:10px 0 0;font-size:11px;line-height:1.8;display:flex}.gallery-field-note svg{color:var(--gold);flex:none;margin-top:3px}.gallery-submission .gallery-submission-label{gap:9px;margin:17px 0 0;font-size:13px;font-weight:500;display:grid;position:relative}.gallery-submission-label>span:first-child{align-items:center;gap:8px;display:flex}.gallery-submission-label small{color:var(--muted);font-size:10px;font-weight:400}.gallery-submission .gallery-submission-label input,.gallery-submission .gallery-submission-label textarea{box-sizing:border-box;border:1px solid var(--line);background:var(--surface);width:100%;color:var(--text);font:inherit;border-radius:10px;margin:0;padding:11px 13px;font-size:13px;line-height:1.65;display:block}.gallery-submission .gallery-submission-label input{min-height:43px}.gallery-submission .gallery-submission-label textarea{resize:vertical;min-height:104px}.gallery-submission-label .gallery-field-count{color:var(--muted);pointer-events:none;font-size:10px;font-weight:400;position:absolute;bottom:14px;right:12px}.gallery-submission-label:has(.gallery-field-count) input{padding-right:64px}.gallery-submission .gallery-description-field{gap:0}.gallery-description-field>span:first-child{margin-bottom:9px}.gallery-submission .gallery-description-field textarea{border-bottom:0;border-radius:10px 10px 0 0;min-height:116px;max-height:260px}.gallery-description-field-footer{border:1px solid var(--line);background:var(--surface-soft);color:var(--muted);border-top:0;border-radius:0 0 10px 10px;justify-content:space-between;align-items:center;gap:10px;padding:9px 13px;font-size:10px;font-weight:400;line-height:1.6;display:flex}.gallery-description-field-footer>span:last-child{font-variant-numeric:tabular-nums;flex-shrink:0}.gallery-description-field-footer .is-over-limit{color:var(--gallery-danger)}.gallery-description-field:focus-within textarea,.gallery-description-field:focus-within .gallery-description-field-footer{border-color:var(--gold)}.gallery-login-card{box-sizing:border-box;border:1px solid var(--line);background:var(--surface);width:min(100%,640px);box-shadow:0 10px 35px var(--shadow-faint);text-align:center;border-radius:22px;flex-direction:column;align-items:center;margin:38px auto 60px;padding:38px 28px;display:flex}.gallery-login-illustration{background:var(--surface-soft);border-radius:24px;place-items:center;width:112px;height:100px;margin-bottom:14px;display:grid}.gallery-login-card>.eyebrow{font-size:10px}.gallery-login-card h2{margin:12px 0;font-family:Noto Serif SC,Songti SC,SimSun,serif;font-size:25px;font-weight:500;line-height:1.5}.gallery-login-card>p{color:var(--muted);margin:0;font-size:13px;line-height:1.9}.gallery-login-benefits{color:var(--text-secondary);flex-wrap:wrap;justify-content:center;gap:20px;margin:22px 0 26px;font-size:11px;display:flex}.gallery-login-benefits span{align-items:center;gap:6px;display:inline-flex}.gallery-login-benefits svg{width:14px;height:14px;color:var(--gold)}.gallery-login-card .gallery-login-button{background:var(--gold);border-color:var(--gold);min-width:180px;min-height:44px;color:var(--on-accent);border-radius:11px;justify-content:center;align-items:center;gap:28px;font-size:13px;display:flex}.gallery-login-button:hover{background:var(--gold-hover)}.gallery-login-browse{color:var(--muted);margin-top:15px;padding:5px;font-size:11px;text-decoration:none}.gallery-login-browse:hover{color:var(--gold)}@media (width<=620px){.gallery-login-card{border-radius:18px;margin:24px auto 40px;padding:30px 20px}.gallery-login-card h2{font-size:22px}.gallery-login-card>p{font-size:12px}.gallery-description-field-footer{align-items:flex-start;font-size:10px}}.community-gallery .gallery-summary-card{padding-bottom:24px;transition:border-color .16s,box-shadow .16s}.gallery-summary-open{z-index:2;cursor:pointer;background:0 0;border:0;border-radius:12px;width:100%;height:100%;padding:0;position:absolute;inset:0}.gallery-summary-open:hover{background:0 0}.gallery-summary-open:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.gallery-summary-card:has(.gallery-summary-open:hover){border-color:var(--accent-border);box-shadow:0 8px 26px var(--shadow-soft)}.gallery-summary-card .gallery-artwork-copy h2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.gallery-summary-card .gallery-credit{margin-top:8px}.gallery-summary-card .gallery-picture-action{background:var(--surface);color:var(--gold);border-color:var(--accent-border);border-radius:50%;font-size:18px}.community-gallery .gallery-summary-open,.community-gallery .gallery-summary-open:hover:not(:disabled),.community-gallery .gallery-summary-open:active{background:0 0;border:0}.gallery-summary-card:focus-within{border-color:var(--accent-border)}.gallery-summary-card>.gallery-artwork-copy{z-index:3;pointer-events:none;position:relative}.gallery-summary-card .gallery-card-like,.gallery-summary-card .gallery-like-button{pointer-events:auto}@media (prefers-reduced-motion:reduce){.community-gallery .gallery-summary-card,.gallery-summary-card .gallery-picture img{transition:none}}.gallery-work-dialog{width:min(900px,100vw - 32px);padding:26px 28px}.gallery-work-dialog .gallery-management-dialog-heading{margin-bottom:20px}.gallery-work-dialog .gallery-management-dialog-heading h2{font-size:21px}.gallery-work-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:28px;display:grid}.gallery-work-cover{aspect-ratio:1;box-sizing:border-box;border:1px solid var(--line);background:var(--surface-soft);border-radius:14px;justify-content:center;align-items:center;padding:12px;display:flex;position:sticky;top:0;overflow:hidden}.gallery-work-cover img{object-fit:contain;width:100%;height:100%;image-rendering:pixelated;display:block}.gallery-work-info{min-width:0}.gallery-work-dialog .gallery-artwork-copy{padding:0}.gallery-work-dialog .gallery-artwork-copy h2{letter-spacing:1px;font-size:24px}.gallery-work-description{margin:22px 0}.gallery-work-description .gallery-status-row{margin:0 0 20px}.gallery-work-description section+section{margin-top:18px}.gallery-work-description h3{color:var(--muted);margin:0 0 7px;font-size:11px;font-weight:500}.gallery-work-description section>p{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--text-secondary);margin:0;font-size:13px;line-height:1.85}.gallery-work-footer{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:20px;margin-top:26px;padding-top:20px;display:flex}.gallery-work-footer>span{color:var(--muted);font-size:11px;line-height:1.7}.gallery-work-footer>button{background:var(--gold);border-color:var(--gold);color:var(--on-accent);border-radius:10px;flex-shrink:0;align-items:center;gap:20px;padding:11px 18px;font-size:13px;display:inline-flex}@media (width<=760px){.gallery-work-dialog{border-radius:16px;width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:20px}.gallery-work-layout{grid-template-columns:1fr;gap:22px}.gallery-work-cover{aspect-ratio:auto;min-height:220px;max-height:320px;position:static}.gallery-work-cover img{max-height:290px}.gallery-work-footer{align-items:flex-start;gap:12px}.gallery-work-footer>button{gap:10px;padding:10px 14px}.gallery-work-dialog .gallery-artwork-copy h2{font-size:22px}}.gallery-work-dialog[open]{transform-origin:50%;flex-direction:column;max-width:none;max-height:calc(100dvh - 40px);padding:0;display:flex;overflow:hidden}.gallery-work-dialog .gallery-management-dialog-heading{border-bottom:1px solid var(--line);flex-shrink:0;margin:0;padding:20px 26px 16px}.gallery-work-layout{overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0;padding:24px 26px;overflow:auto}.gallery-work-cover{top:0}.gallery-work-dialog .gallery-dialog-close{width:40px;height:40px}.gallery-work-footer{background:var(--surface);flex-shrink:0;margin:0;padding:16px 26px}.gallery-work-footer>button{min-height:44px}.gallery-work-dialog>.gallery-management-error{margin:0;padding:8px 26px}.gallery-work-dialog::backdrop{animation:.25s both gallery-backdrop-in}.gallery-work-dialog[data-closing]::backdrop{animation:.22s both gallery-backdrop-out}.gallery-work-dialog[data-closing] .gallery-work-layout{pointer-events:none}@keyframes gallery-backdrop-in{0%{opacity:0}to{opacity:1}}@keyframes gallery-backdrop-out{0%{opacity:1}to{opacity:0}}@media (width<=760px){.gallery-work-dialog[open]{border-bottom:0;border-radius:22px 22px 0 0;width:100%;max-height:92dvh;margin:0;inset:auto 0 0}.gallery-work-dialog .gallery-management-dialog-heading{padding:16px 18px 12px}.gallery-work-dialog .gallery-dialog-close{width:44px;height:44px}.gallery-work-layout{scrollbar-gutter:auto;gap:20px;padding:18px}.gallery-work-cover{min-height:180px;max-height:260px}.gallery-work-cover img{max-height:234px}.gallery-work-footer{padding:14px 18px max(14px,env(safe-area-inset-bottom));gap:12px}.gallery-work-footer>span{font-size:10px}.gallery-work-footer>button{min-height:46px;font-size:13px}.gallery-work-dialog .gallery-management-actions button{min-height:44px}.gallery-work-dialog .gallery-facts{gap:16px 12px}.gallery-tabs a{min-height:40px}}@media (prefers-reduced-motion:reduce){.gallery-work-dialog::backdrop,.gallery-work-dialog[data-closing]::backdrop{animation:none}}@media (width<=760px){html:has(.gallery-work-dialog[open]){scrollbar-gutter:auto}.gallery-work-dialog[open]{width:100vw}.gallery-work-layout{display:block}.gallery-work-cover{width:100%;height:240px;margin-bottom:22px}.gallery-work-info{display:block}}.community-gallery .gallery-summary-card{border-bottom-width:2px;border-bottom-color:var(--line);background:var(--surface);box-shadow:inset 0 1px 0 var(--surface),0 2px 0 color-mix(in srgb,var(--line) 30%,var(--surface)),0 8px 18px var(--shadow-faint)}.gallery-summary-card>.gallery-picture{border:1px solid var(--line);background:var(--surface-soft);box-shadow:inset 0 1px 3px var(--shadow-faint),0 1px 0 var(--surface);border-radius:10px}.gallery-summary-status{z-index:1;pointer-events:none;max-width:calc(100% - 68px);position:absolute;bottom:11px;right:49px}.gallery-summary-status .gallery-status-row{justify-content:flex-end;gap:5px;margin:0}.gallery-summary-status .gallery-state{background:var(--surface);box-shadow:0 2px 6px var(--shadow-soft);padding:5px 8px;font-size:10px}.gallery-summary-status .gallery-state.is-pending{background:var(--accent-soft)}.gallery-summary-status .gallery-state.is-approved{background:color-mix(in srgb,var(--success) 8%,var(--surface));color:var(--success)}.gallery-summary-status .gallery-state.is-rejected{background:color-mix(in srgb,var(--gallery-danger) 8%,var(--surface))}.gallery-summary-status .gallery-state.is-hidden{border-color:var(--line-strong);color:var(--text-secondary)}.gallery-browser-controls{flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:12px;margin-bottom:24px;display:flex}.gallery-browser-controls .gallery-search{flex:0 560px;gap:12px;min-width:0;margin:0}.gallery-browser-controls .gallery-search input,.gallery-browser-controls .gallery-search button,.gallery-sort-control .gallery-sort-trigger{border:1px solid var(--line);height:44px;font:inherit;border-radius:10px;font-size:13px;line-height:1.5}.gallery-browser-controls .gallery-search input{background:var(--surface);color:var(--text);padding:10px 14px}.gallery-browser-controls .gallery-search button{background:var(--surface);min-width:88px;color:var(--text);white-space:nowrap;flex-shrink:0;justify-content:center;align-items:center;gap:8px;margin:0;padding:10px 14px;font-weight:400;transition:border-color .15s,background .15s;display:inline-flex}.gallery-browser-controls .gallery-search button svg{color:var(--gold);flex-shrink:0}.gallery-browser-controls .gallery-search button:hover{border-color:var(--accent-border);background:var(--surface-soft)}.gallery-browser-controls .gallery-refresh-recommendations{border:1px solid var(--line);background:var(--surface);height:44px;color:var(--text);font:inherit;white-space:nowrap;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;gap:8px;margin:0;padding:10px 14px;font-size:13px;line-height:1.5;transition:border-color .15s,background .15s;display:inline-flex}.gallery-refresh-recommendations svg{color:var(--gold);flex-shrink:0}.gallery-refresh-recommendations svg.is-refreshing{transform-origin:50%;animation:.45s cubic-bezier(.2,.65,.35,1) gallery-recommendation-spin}@keyframes gallery-recommendation-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.gallery-refresh-recommendations svg.is-refreshing{animation:none}}.gallery-browser-controls .gallery-refresh-recommendations:hover:not(:disabled){border-color:var(--accent-border);background:var(--surface-soft)}.gallery-browser-controls .gallery-refresh-recommendations:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.gallery-sort-control{z-index:5;flex:0 0 156px;margin:0;display:block;position:relative}.gallery-sort-control .gallery-sort-trigger{background:var(--surface);width:100%;color:var(--text);text-align:left;cursor:pointer;align-items:center;gap:10px;margin:0;padding:10px 12px;transition:border-color .15s,background .15s;display:flex}.gallery-sort-trigger>span{white-space:nowrap;flex:1}.gallery-sort-trigger>svg{pointer-events:none;flex-shrink:0}.gallery-sort-icon{color:var(--gold)}.gallery-sort-chevron{color:var(--muted);transition:transform .15s}.gallery-sort-trigger[aria-expanded=true]{border-color:var(--accent-border);background:var(--surface-soft)}.gallery-sort-trigger[aria-expanded=true] .gallery-sort-chevron{transform:rotate(180deg)}.gallery-sort-menu{border:1px solid var(--line-strong);background:var(--surface);width:max-content;min-width:100%;box-shadow:0 8px 24px var(--shadow-soft),0 2px 6px var(--shadow-faint);border-radius:12px;padding:5px;position:absolute;top:calc(100% + 8px);right:0}.gallery-sort-option{min-height:40px;color:var(--text-secondary);white-space:nowrap;cursor:pointer;border-radius:8px;justify-content:space-between;align-items:center;gap:18px;padding:9px 10px;font-size:13px;line-height:1.5;display:flex}.gallery-sort-option.is-active{background:var(--surface-soft);color:var(--text)}.gallery-sort-option[aria-selected=true]{background:var(--accent-soft);color:var(--gold);font-weight:500}.gallery-sort-option[aria-selected=true].is-active{background:color-mix(in srgb,var(--gold) 14%,var(--surface))}.gallery-sort-option svg{flex-shrink:0}.gallery-sort-control .gallery-sort-trigger:hover{border-color:var(--accent-border);background:var(--surface-soft)}.gallery-browser-controls .gallery-search input:focus-visible,.gallery-browser-controls .gallery-search button:focus-visible,.gallery-sort-control .gallery-sort-trigger:focus-visible{outline:2px solid var(--gold);outline-offset:3px}@media (width<=560px){.gallery-browser-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.gallery-browser-controls .gallery-search{display:contents}.gallery-browser-controls .gallery-search input{grid-column:1/-1;width:100%}.gallery-sort-control{min-width:0}.gallery-browser-controls .gallery-search button{width:100%}.gallery-browser-controls .gallery-refresh-recommendations{grid-column:1/-1;width:100%}}.gallery-card-like{z-index:4;pointer-events:auto;flex-shrink:0;margin:0;position:relative}.gallery-like-button{border:1px solid var(--line);background:var(--surface);min-width:54px;min-height:34px;color:var(--muted);font-variant-numeric:tabular-nums;border-radius:999px;justify-content:center;align-items:center;gap:6px;padding:6px 10px;font-size:12px;line-height:1;display:inline-flex}.gallery-like-button svg{flex-shrink:0}.gallery-like-button[aria-pressed=true]{color:#b86b64;background:color-mix(in srgb,#b86b64 7%,var(--surface));border-color:#b86b6435}.gallery-like-button:hover:not(:disabled){color:#b86b64;background:color-mix(in srgb,#b86b64 6%,var(--surface));border-color:#b86b6450}.gallery-like-button:disabled{opacity:.6}.gallery-work-primary-actions{flex-shrink:0;align-items:center;gap:10px;display:flex}.gallery-work-primary-actions>.primary{background:var(--gold);border-color:var(--gold);min-height:44px;color:var(--on-accent);border-radius:10px;align-items:center;gap:18px;padding:11px 18px;font-size:13px;display:inline-flex}.gallery-work-primary-actions .gallery-like-button{min-width:64px;min-height:42px}.gallery-management-feedback.is-error{color:var(--gallery-danger);border-color:color-mix(in srgb,var(--gallery-danger) 35%,var(--line))}.gallery-pagination button{border-radius:10px;min-height:42px;font-size:12px}.gallery-pagination span{color:var(--muted);font-variant-numeric:tabular-nums;font-size:12px}:root[data-theme=dark] .gallery-like-button[aria-pressed=true],:root[data-theme=dark] .gallery-like-button:hover:not(:disabled){color:#e1a39d;background:color-mix(in srgb,#e1a39d 8%,var(--surface));border-color:#e1a39d45}@media (width<=760px){.gallery-card-like{margin-right:0}.gallery-card-like .gallery-like-button{min-height:40px}.gallery-work-footer>span{display:none}.gallery-work-primary-actions{justify-content:space-between;width:100%}.gallery-work-primary-actions>.primary{flex:1;justify-content:center;min-height:46px}.gallery-work-primary-actions .gallery-like-button{min-width:70px;min-height:46px}.gallery-pagination{gap:10px}.gallery-pagination button{min-height:44px}}@media (width>=761px) and (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){.community-gallery .gallery-summary-card{transform-origin:50%;backface-visibility:hidden;transform-style:preserve-3d;isolation:isolate;transition:transform .38s cubic-bezier(.2,.8,.2,1),box-shadow .35s,border-color .25s;transform:perspective(1000px)rotateX(0)rotateY(0)}.community-gallery .gallery-summary-card:hover{transform:perspective(1000px) translateY(-4px) rotateX(var(--card-rotate-x,1.2deg)) rotateY(var(--card-rotate-y,-1.2deg));z-index:3;border-color:var(--accent-border);box-shadow:0 14px 28px var(--shadow-soft),0 5px 12px var(--shadow-faint),inset 0 1px 0 color-mix(in srgb,var(--surface) 85%,transparent);transition:transform .12s ease-out,box-shadow .3s,border-color .2s}.gallery-summary-card>.gallery-picture,.gallery-summary-card>.gallery-artwork-copy{pointer-events:none;transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s}.gallery-summary-card:hover>.gallery-picture{box-shadow:0 8px 18px var(--shadow-faint),0 2px 4px var(--shadow-faint)}.gallery-summary-card:hover>.gallery-artwork-copy{transform:translateZ(6px)}.gallery-summary-card .gallery-picture:after{content:"";border-radius:inherit;pointer-events:none;opacity:0;background:radial-gradient(ellipse at var(--card-light-x,30%) var(--card-light-y,20%),#ffffff30 0%,#ffffff10 30%,transparent 70%);transition:opacity .25s;position:absolute;inset:0}.gallery-summary-card:hover .gallery-picture:after{opacity:1}.gallery-summary-card .gallery-picture-action{box-shadow:0 2px 5px var(--shadow-faint);transition:transform .25s,box-shadow .25s,background .25s}.gallery-summary-card:hover .gallery-picture-action{background:var(--accent-soft);color:var(--gold);box-shadow:0 4px 9px var(--shadow-faint);transform:scale(1.05)}.gallery-summary-card .gallery-palette-tag,.gallery-summary-card .gallery-featured-badge{transition:box-shadow .25s}.gallery-summary-card:hover .gallery-palette-tag,.gallery-summary-card:hover .gallery-featured-badge{box-shadow:0 4px 10px var(--shadow-soft)}}.gallery-submission label.gallery-consent{border:1px solid var(--line);background:var(--surface-soft);border-radius:10px;align-items:flex-start;gap:10px;margin:22px 0 0;padding:14px;font-size:12px;line-height:1.8;display:flex}.gallery-consent input{width:15px;height:15px;accent-color:var(--gold);flex:none}.gallery-submission-actions{border-top:1px solid var(--line);align-items:center;gap:10px;margin-top:20px;padding-top:18px;display:flex}.gallery-submission-actions button{border-radius:10px;flex:1;justify-content:center;align-items:center;gap:7px;min-height:43px;padding:10px 14px;font-size:13px;display:inline-flex}.gallery-submission-notice{background:var(--accent-soft);color:var(--gold);border-radius:10px;margin:0 0 18px;padding:12px 14px;font-size:12px;line-height:1.8}.gallery-submission-preview{min-width:0;position:sticky;top:100px}.gallery-preview-heading{justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;display:flex}.gallery-preview-heading h3{margin:0;font-size:14px;font-weight:500}.gallery-preview-heading>span{color:var(--muted);font-size:11px}.gallery-submission-preview-card{border:1px solid var(--line);background:var(--surface);box-shadow:0 10px 24px var(--shadow-faint);border-radius:16px;overflow:hidden}.gallery-submission .gallery-preview-empty{border-bottom:1px solid var(--line);background:var(--surface-soft);border-radius:0;flex-direction:column;justify-content:center;align-items:center;gap:0;min-height:280px;padding:25px 20px;display:flex}.gallery-preview-empty strong{color:var(--text);margin:12px 0 8px;font-size:14px;font-weight:500}.gallery-preview-empty>p:not(.gallery-management-error){max-width:270px;color:var(--muted);margin:0;font-size:12px;line-height:1.9}.gallery-preview-illustration{background:radial-gradient(var(--accent-soft),transparent 70%);border-radius:50%;place-items:center;width:146px;height:130px;display:grid}.gallery-preview-empty.is-generating .gallery-preview-illustration{animation:1.6s ease-in-out infinite gallery-preview-pulse}.gallery-preview-placeholder-copy{padding:20px 22px 22px}.gallery-preview-placeholder-copy h4{overflow-wrap:anywhere;margin:0 0 8px;font-family:Noto Serif SC,Songti SC,SimSun,serif;font-size:20px;font-weight:500}.gallery-preview-placeholder-copy p{color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 14px;font-size:12px;line-height:1.8}.gallery-preview-placeholder-copy>span{border-top:1px solid var(--line);color:var(--muted);padding-top:12px;font-size:11px;display:block}.gallery-generated-cover{background:var(--surface-soft);border-bottom:1px solid var(--line);place-items:center;padding:14px;display:grid;position:relative}.gallery-submission-preview .gallery-generated-cover img{object-fit:contain;background:0 0;border-radius:7px;width:100%;max-width:100%;height:auto;max-height:420px;display:block}.gallery-preview-palette{border:1px solid var(--line);background:var(--surface);color:var(--gold);border-radius:6px;padding:4px 7px;font-size:10px;position:absolute;bottom:22px;right:22px}.gallery-submission .gallery-submission-preview .gallery-artwork-copy{padding:20px 22px 22px}.gallery-submission .gallery-submission-preview .gallery-artwork-copy h2{overflow-wrap:anywhere;font-size:22px}.gallery-preview-description{color:var(--text-secondary);white-space:pre-wrap;overflow-wrap:anywhere;margin:0;padding:0 22px 22px;font-size:12px;line-height:1.8}.gallery-preview-guidance{color:var(--muted);gap:10px;margin-top:18px;padding:0 4px;font-size:11px;display:grid}.gallery-preview-guidance span{align-items:center;gap:8px;display:flex}.gallery-preview-guidance svg{color:var(--gold)}@keyframes gallery-preview-pulse{50%{opacity:.55;transform:translateY(-3px)}}@media (width<=1000px){.gallery-submission-layout{gap:22px}.gallery-file-select{display:none}.gallery-submission{padding:24px}}@media (width<=760px){.gallery-submission{border-radius:16px;padding:18px}.gallery-submission-heading{gap:10px}.gallery-submission-heading h2{font-size:23px}.gallery-submission-audit{padding:6px 8px;font-size:10px}.gallery-submission-layout{grid-template-columns:1fr;gap:26px}.gallery-submission-steps{gap:8px;margin-bottom:22px;padding:12px 10px}.gallery-submission-steps li{gap:6px;font-size:11px}.gallery-submission-steps li>span{width:23px;height:23px}.gallery-submission-preview{position:static}.gallery-field-heading>span{font-size:10px}.gallery-file-picker{gap:10px;padding:16px 12px}.gallery-file-symbol{flex-basis:40px;height:40px}.gallery-file-copy strong{font-size:12px}.gallery-management-dialog{padding:22px}.gallery-management-actions button{min-height:40px}.community-gallery .gallery-artwork-copy{padding:20px 18px 0}.community-gallery .gallery-community-copy{padding:0 18px 18px}}@media (prefers-reduced-motion:reduce){.gallery-preview-empty.is-generating .gallery-preview-illustration{animation:none}.gallery-file-picker,.gallery-management-actions button{transition:none}}@media (width<=1400px){.community-gallery .gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=1050px){.community-gallery .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=620px){.community-gallery .gallery-grid{grid-template-columns:1fr}}.gallery-card-reactions{align-items:center;gap:6px;display:flex}.gallery-favorite-button[aria-pressed=true],.gallery-favorite-button:hover:not(:disabled),:root[data-theme=dark] .gallery-favorite-button[aria-pressed=true],:root[data-theme=dark] .gallery-favorite-button:hover:not(:disabled){color:var(--gold);border-color:var(--accent-border);background:var(--accent-soft)}.gallery-pagination-pages,.gallery-page-jump,.gallery-page-jump label{justify-content:center;align-items:center;gap:10px;display:flex}.gallery-page-jump{margin:0}.gallery-page-jump label{color:var(--muted);white-space:nowrap;font-size:12px}.gallery-page-jump input{box-sizing:border-box;border:1px solid var(--line);background:var(--surface);width:76px;min-height:42px;color:var(--text);font:inherit;text-align:center;font-variant-numeric:tabular-nums;border-radius:10px;padding:8px}.gallery-like-button:focus-visible,.gallery-pagination button:focus-visible,.gallery-page-jump input:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.gallery-work-primary-actions{flex-wrap:wrap}@media (width<=760px){.gallery-page-jump input{min-height:44px}.gallery-work-primary-actions{gap:8px}.gallery-work-primary-actions .gallery-like-button{min-width:58px}.gallery-work-primary-actions>.primary{gap:8px;min-width:0;padding:10px 12px}}@media (width<=620px){.gallery-pagination-pages{flex-wrap:wrap;gap:8px;width:100%}.gallery-pagination-summary{text-align:center;flex-basis:100%;order:-1;margin-bottom:4px}}.observation-guide{max-width:1720px;margin:auto;padding:48px 38px 64px}.observation-guide>.tutorial-back{margin-bottom:22px}.observation-guide-heading{justify-content:space-between;align-items:center;gap:24px;margin-bottom:28px;display:flex}.observation-guide-heading h1{letter-spacing:3px;margin:12px 0;font-family:Noto Serif SC,Songti SC,SimSun,serif;font-size:34px;font-weight:500}.observation-guide-heading p{color:var(--muted);font-size:14px;line-height:1.9}.observation-guide-heading>a{flex-shrink:0}.observation-guide-overview{border:1px solid var(--accent-border);background:var(--accent-soft);color:var(--gold);border-radius:10px;flex-wrap:wrap;gap:12px 28px;padding:18px 22px;font-size:12px;line-height:1.8;display:flex}.observation-guide-image-hint{color:var(--muted);margin:16px 0 24px;font-size:12px}.observation-guide-steps{gap:24px;margin:0;padding:0;list-style:none;display:grid}.observation-guide-step{border:1px solid var(--line);background:var(--surface);border-radius:12px;grid-template-columns:minmax(240px,.8fr) minmax(0,1.6fr);align-items:start;gap:28px;padding:28px;display:grid}.observation-guide-number{background:var(--accent-soft);width:38px;height:38px;color:var(--gold);font-variant-numeric:tabular-nums;border-radius:50%;place-items:center;font-size:14px;display:inline-grid}.observation-guide-copy h2{margin:16px 0 12px;font-size:20px;font-weight:500;line-height:1.6}.observation-guide-copy p{color:var(--text-secondary);font-size:14px;line-height:1.95}.observation-guide-copy .observation-guide-note{border-left:2px solid var(--gold);background:var(--accent-soft);color:var(--gold);border-radius:0 6px 6px 0;margin-top:18px;padding:12px 14px;font-size:13px}.observation-guide-step figure{min-width:0;margin:0}.observation-guide-images{gap:20px;min-width:0;display:grid}.observation-guide-image-button{border:1px solid var(--line);background:var(--surface-soft);cursor:zoom-in;border-radius:8px;justify-content:center;align-items:center;width:100%;padding:8px;display:flex}.observation-guide-image-button:hover{border-color:var(--gold)}.observation-guide-step img{object-fit:contain;border-radius:4px;width:auto;max-width:100%;height:auto;max-height:640px;display:block}.observation-guide-step figcaption{text-align:center;color:var(--muted);margin-top:10px;font-size:12px;line-height:1.8}.observation-guide-footer{color:var(--muted);justify-content:space-between;align-items:center;gap:20px;padding-top:32px;font-size:13px;line-height:1.8;display:flex}.observation-guide-footer>a{flex-shrink:0}.observation-guide-thanks{border:1px solid var(--accent-border);background:var(--accent-soft);color:var(--text-secondary);border-radius:10px;margin-top:28px;padding:18px 22px;font-size:14px;line-height:1.9}.observation-guide-thanks a{color:var(--gold);text-underline-offset:4px;text-decoration:underline}.observation-guide-thanks a:hover{color:var(--gold-hover)}.observation-screenshot-dialog{border:1px solid var(--line-strong);background:var(--surface);width:min(1200px,100vw - 32px);max-width:none;max-height:calc(100dvh - 32px);color:var(--text);box-shadow:0 30px 100px var(--shadow-modal);border-radius:12px;margin:auto;padding:20px;position:fixed;inset:0;overflow:hidden}.observation-screenshot-dialog::backdrop{background:#000000b3}.observation-screenshot-heading{justify-content:space-between;align-items:center;gap:16px;display:flex}.observation-screenshot-heading h2{margin:0;font-size:18px;font-weight:500;line-height:1.5}.observation-screenshot-heading>button{flex-shrink:0;padding:8px 12px;font-size:22px;line-height:1}.observation-screenshot-view{justify-content:center;align-items:center;min-width:0;margin-top:16px;display:flex}.observation-screenshot-view img{object-fit:contain;border-radius:4px;width:auto;max-width:100%;height:auto;max-height:calc(100dvh - 200px);display:block}.observation-screenshot-caption{color:var(--muted);text-align:center;margin-top:12px;font-size:12px;line-height:1.8}@media (width<=760px){.observation-screenshot-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:12px}.observation-screenshot-heading h2{font-size:15px}.observation-guide{padding:28px 18px 40px}.observation-guide-heading{flex-direction:column;align-items:flex-start;gap:16px}.observation-guide-heading h1{letter-spacing:1px;font-size:27px}.observation-guide-overview{gap:8px 20px;padding:14px 16px}.observation-guide-step{grid-template-columns:1fr;gap:20px;padding:18px}.observation-guide-copy h2{margin-top:12px;font-size:19px}.observation-guide-step img{max-height:none}.observation-guide-footer{flex-direction:column;align-items:flex-start}}.tutorial-page{max-width:1720px;margin:auto;padding:48px 38px 64px}.tutorial-heading{justify-content:space-between;align-items:center;gap:24px;margin-bottom:28px;display:flex}.tutorial-heading h1{letter-spacing:2px;margin:12px 0;font-family:Noto Serif SC,Songti SC,SimSun,serif;font-size:34px;font-weight:500;line-height:1.5}.tutorial-heading p{color:var(--muted);font-size:14px;line-height:1.9}.tutorial-heading>.gallery-return{flex-shrink:0}.tutorial-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;display:grid}.tutorial-card{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:12px;flex-direction:column;gap:18px;padding:30px;text-decoration:none;transition:border-color .2s,background .2s;display:flex}.tutorial-card:hover{border-color:var(--gold);background:var(--accent-soft)}.tutorial-card:focus-visible,.tutorial-back:focus-visible{outline:2px solid var(--gold);outline-offset:4px}.tutorial-card-top{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.tutorial-draft,.tutorial-format{border:1px solid var(--accent-border);background:var(--accent-soft);color:var(--gold);letter-spacing:0;vertical-align:middle;white-space:nowrap;border-radius:5px;padding:3px 9px;font-family:inherit;font-size:11px;font-weight:400;display:inline-block}.tutorial-format{background:var(--surface-soft);border-color:var(--line);color:var(--muted)}.tutorial-card h2{margin:0;font-size:24px;font-weight:500;line-height:1.5}.tutorial-card p{color:var(--text-secondary);margin:0;font-size:14px;line-height:1.95}.tutorial-card-topics{color:var(--muted);flex-wrap:wrap;gap:8px 20px;font-size:12px;display:flex}.tutorial-card-link{border-top:1px solid var(--line);color:var(--gold);justify-content:space-between;margin-top:auto;padding-top:16px;font-size:13px;display:flex}.tutorial-back{color:var(--gold);font-size:13px;line-height:1.8;text-decoration:none;display:inline-block}.experimental-guide-nav a{color:var(--gold);text-underline-offset:4px}.experimental-guide-section{margin-top:32px;scroll-margin-top:24px}.experimental-guide-section>h2{margin:0 0 20px;font-size:24px;font-weight:500;line-height:1.6}.experimental-guide-section .observation-guide-copy h3{margin:16px 0 12px;font-size:20px;font-weight:500;line-height:1.6}.miniature-guide>.tutorial-back,.ipad-drawing-guide>.tutorial-back,.basic-usage-guide>.tutorial-back{margin-bottom:22px}.basic-usage-guide .miniature-guide-steps{color:var(--text-secondary);font-size:14px;line-height:1.95}.basic-usage-guide>.help-callout{margin-top:24px;font-size:14px;line-height:1.95}.basic-usage-guide>.help-callout strong,.basic-usage-guide>.help-callout p{font-size:14px}.ipad-drawing-guide .miniature-guide-steps{color:var(--text-secondary);font-size:14px;line-height:1.95}.tutorial-draft-note{border:1px solid var(--accent-border);background:var(--accent-soft);color:var(--gold);border-radius:8px;margin:0 0 24px;padding:14px 18px;font-size:13px;line-height:1.9}.miniature-guide-steps{gap:20px;margin:0;padding:0;list-style:none;display:grid}.miniature-guide-steps>li{border:1px solid var(--line);background:var(--surface);border-radius:12px;grid-template-columns:40px minmax(0,1fr);gap:22px;padding:28px;display:grid}.tutorial-step-number{background:var(--accent-soft);width:38px;height:38px;color:var(--gold);font-variant-numeric:tabular-nums;border-radius:50%;place-items:center;font-size:14px;display:grid}.miniature-guide-steps h2{margin:2px 0 14px;font-size:21px;font-weight:500;line-height:1.6}.miniature-guide-steps p{margin:12px 0}.miniature-guide-steps p:last-child{margin-bottom:0}.miniature-guide-steps ul{gap:10px;margin:14px 0;padding-left:22px;display:grid}.miniature-guide-steps strong{color:var(--text);font-weight:500}.miniature-guide-steps a{color:var(--gold);text-underline-offset:4px}.tutorial-footer{justify-content:space-between;align-items:center;gap:20px;margin-top:32px;display:flex}.tutorial-image-placeholder{border:1px dashed var(--line-strong);background:var(--surface-soft);min-height:200px;color:var(--muted);border-radius:8px;place-items:center;margin-top:20px;font-size:13px;display:grid}.miniature-help-link{color:var(--gold);text-underline-offset:3px;font-size:12px;line-height:1.8}@media (width<=760px){.tutorial-page{padding:28px 18px 40px}.tutorial-heading{flex-direction:column;align-items:flex-start;gap:16px}.tutorial-heading h1{letter-spacing:1px;font-size:27px}.tutorial-cards{grid-template-columns:1fr;gap:18px}.tutorial-card{padding:22px}.tutorial-card h2{font-size:22px}.miniature-guide-steps>li{grid-template-columns:1fr;gap:12px;padding:20px}.miniature-guide-steps h2{font-size:19px}.tutorial-footer{flex-wrap:wrap;align-items:flex-start}}.hsl-guide-activation{border:2px solid var(--gold);background:var(--accent-soft);border-radius:8px;margin-top:18px;padding:18px}.hsl-guide-activation>strong{color:var(--gold);font-size:20px;line-height:1.7;display:block}.hsl-guide-activation>.hsl-guide-color-order{color:var(--gold);font-weight:700}.hsl-guide-troubleshooting{border:1px solid var(--accent-border);background:var(--accent-soft);border-radius:12px;grid-column:1/-1;padding:24px}.hsl-guide-troubleshooting h3{color:var(--gold);margin:0 0 12px;font-size:20px;line-height:1.6}.hsl-guide-troubleshooting p{color:var(--text-secondary);margin:8px 0;font-size:14px;line-height:1.95}.hsl-guide-troubleshooting ol{gap:18px;margin:20px 0 0;padding-left:24px;display:grid}.hsl-guide-troubleshooting li{padding-left:4px;line-height:1.8}@media (width<=760px){.hsl-guide-activation,.hsl-guide-troubleshooting{padding:18px}.hsl-guide-activation>strong{font-size:17px}}.miniature-spacing-control{margin-top:14px}.miniature-spacing-control input[type=range]{width:100%;height:24px;accent-color:var(--gold);cursor:pointer;margin:8px 0;display:block}.miniature-spacing-control .miniature-spacing-bounds{color:var(--muted);gap:12px}.miniature-spacing-bounds small{font-size:10px;line-height:1.6}.miniature-spacing-bounds small:last-child{text-align:right;white-space:nowrap}.source-crop-settings{border:1px solid var(--line);background:var(--surface-soft);border-radius:8px;grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;gap:14px;margin-top:18px;padding:14px;display:grid}.source-crop-settings>*{min-width:0}.source-crop-settings .full-field{margin-top:0}.source-crop-settings input,.source-crop-settings select{height:40px;min-height:40px;margin-top:7px;font-size:12px}.source-crop-custom-ratio{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end;gap:5px;display:grid}.source-crop-custom-ratio label{color:var(--text-secondary);font-size:11px}.source-crop-custom-ratio input{font-variant-numeric:tabular-nums;appearance:textfield;padding-inline:8px}.source-crop-custom-ratio input::-webkit-inner-spin-button{appearance:none;margin:0}.source-crop-custom-ratio input::-webkit-outer-spin-button{appearance:none;margin:0}.source-crop-custom-ratio>span{color:var(--muted);line-height:40px}.source-crop-dialog .crop-fields .hint{margin-bottom:10px}.source-crop-dialog .crop-summary{margin-top:12px;line-height:1.8}.source-crop-budget-sizing{margin:8px 0;font-size:12px}.source-crop-actions{border-top:1px solid var(--line);justify-content:flex-end;align-items:center;gap:10px;margin-top:22px;padding-top:16px;display:flex}.source-crop-actions>button{white-space:nowrap;min-width:80px;min-height:40px;padding:9px 18px;font-size:13px;font-weight:500;line-height:1.4}.source-crop-actions>.primary{min-width:136px;font-weight:600}.ordinary-crop-entry{margin-top:16px}.ordinary-crop-entry>button{background:var(--surface-soft);width:100%;min-height:36px;color:var(--text-secondary);padding:8px 12px;font-size:12px}@media (width<=620px){.source-crop-settings{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px}.source-crop-custom-ratio input{padding-inline:4px;font-size:11px}}@media (width<=440px){.source-crop-settings>.full-field:first-child,.source-crop-custom-ratio{grid-column:1/-1}}@media (width<=620px){.source-crop-actions{gap:8px;margin-top:18px;padding-top:14px}.source-crop-actions>button{flex:1;min-width:0;min-height:44px}.source-crop-actions>.primary{flex:1.5;min-width:0}}.night-glow-brushes{border-top:1px solid var(--accent-border);margin-top:18px;padding-top:16px}.night-glow-brushes-heading{color:var(--gold);align-items:center;gap:8px;font-size:12px;display:flex}.night-glow-brushes-heading strong{font-weight:500}.night-glow-brushes-heading span{border:1px solid var(--accent-border);color:var(--muted);border-radius:4px;padding:1px 5px;font-size:10px}.brush-palette .night-glow-brushes-note{color:var(--muted);margin:8px 0 12px;font-size:10px;line-height:1.8}.palette-options{flex-wrap:wrap;align-items:center;gap:10px 18px;margin-bottom:14px;display:flex}.palette-options .palette-layer-option{margin-bottom:0}.palette-pagination{justify-content:space-between;align-items:center;gap:8px;margin-top:14px;display:flex}.palette-pagination button{min-height:34px;padding:6px 10px;font-size:10px}.palette-pagination span{color:var(--muted);font-variant-numeric:tabular-nums;font-size:10px}.palette-family-nav{grid-template-columns:repeat(auto-fit,minmax(60px,1fr));gap:6px;margin-bottom:16px;display:grid}.palette-family-nav button{background:var(--surface);min-width:0;min-height:36px;color:var(--text-secondary);border:1px solid var(--line);border-radius:6px;justify-content:center;align-items:center;gap:5px;padding:6px 3px;font-size:11px;display:flex}.palette-family-nav button i{border:1px solid var(--swatch-border);border-radius:50%;flex:0 0 9px;width:9px;height:9px}.palette-family-nav button span{white-space:nowrap}.palette-family-nav button[aria-pressed=true]{border-color:var(--gold);color:var(--gold);background:var(--accent-soft)}.palette-family-nav button:focus-visible{outline:2px solid var(--gold);outline-offset:2px}.palette-picker{border-bottom:1px solid var(--line);margin:0 0 16px;padding-bottom:14px}.palette-sv{border:1px solid var(--swatch-border);touch-action:none;-webkit-user-select:none;user-select:none;cursor:crosshair;background-image:linear-gradient(#0000,#000),linear-gradient(90deg,#fff,#0000);border-radius:6px;width:100%;height:150px;position:relative}.palette-sv[aria-disabled=true]{opacity:.55;cursor:default}.palette-sv:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.palette-sv-cursor{pointer-events:none;border:2px solid #fff;border-radius:50%;width:12px;height:12px;position:absolute;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #0008}.palette-hue{color:var(--muted);align-items:center;gap:10px;margin:10px 0;font-size:10px;display:flex}.palette-hue>span{flex-shrink:0}.palette-hue input{appearance:none;cursor:pointer;background:0 0;border:0;flex:1;width:100%;min-width:0;height:24px;margin:0;padding:0}.palette-hue input::-webkit-slider-runnable-track{background:linear-gradient(90deg,red,#ff0,#0f0,#0ff,#00f,#f0f,red);border-radius:6px;height:12px}.palette-hue input::-webkit-slider-thumb{appearance:none;background:0 0;border:2px solid #fff;border-radius:3px;width:12px;height:20px;margin-top:-4px;box-shadow:0 0 0 1px #0006}.palette-hue input::-moz-range-track{background:linear-gradient(90deg,red,#ff0,#0f0,#0ff,#00f,#f0f,red);border-radius:6px;height:12px}.palette-hue input::-moz-range-thumb{background:0 0;border:2px solid #fff;border-radius:3px;width:8px;height:16px;box-shadow:0 0 0 1px #0006}.palette-picker-comparison{color:var(--muted);flex-wrap:wrap;gap:7px 12px;font-size:10px;display:flex}.palette-picker-comparison>span{align-items:center;gap:5px;min-width:0;display:flex}.palette-picker-comparison>span:last-child{flex:1;min-width:120px}.palette-picker-comparison i{border:1px solid var(--swatch-border);border-radius:3px;flex:0 0 16px;height:16px}.palette-picker-comparison code{color:var(--text-secondary);font-size:9px}.palette-picker-comparison b{text-overflow:ellipsis;white-space:nowrap;color:var(--text-secondary);font-weight:400;overflow:hidden}.palette-nearby-heading{color:var(--text-secondary);margin:12px 0 7px;font-size:10px}.palette-picker .brush-colors.palette-nearby{grid-template-columns:repeat(8,minmax(0,1fr));gap:5px}.brush-palette .palette-picker-hint{margin:8px 0 0;font-size:10px;line-height:1.6}.brush-palette .palette-swatches>button{position:relative}.brush-palette .palette-swatches>button:hover:not(:disabled){border:1px solid var(--gold-hover);transform:none}.brush-palette .palette-swatches>button[aria-pressed=true]{outline:2px solid var(--gold);outline-offset:0;box-shadow:none;border-color:#0000}.brush-palette .palette-swatches>button:focus-visible{outline:2px dashed var(--gold);outline-offset:3px}.palette-swatch-check{background:var(--surface);width:13px;height:13px;color:var(--text);border-radius:3px 0 2px;place-items:center;display:grid;position:absolute;bottom:0;right:0}.palette-swatch-check svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:12px;height:12px;display:block}@media (pointer:coarse){.palette-family-nav button{min-height:44px}}.miniature-settings-control{margin-top:0}.miniature-settings-control .miniature-help-link{margin-top:12px;display:inline-flex}.miniature-settings-control .miniature-sizing-error{color:#b64935}.settings-select{min-width:0}.settings-select-control{margin-top:7px;position:relative}.settings-select-trigger{border:1px solid var(--line-strong);background:var(--surface-soft);width:100%;min-height:40px;color:var(--text);text-align:left;border-radius:5px;justify-content:space-between;gap:10px;padding:9px 11px;font-size:12px;line-height:1.6}.settings-select-trigger>span{overflow-wrap:anywhere;min-width:0}.settings-select-trigger>svg{transition:transform var(--ui-motion-menu) var(--ui-motion-easing);flex-shrink:0}.settings-select-trigger[aria-expanded=true]{border-color:var(--gold);background:var(--surface)}.settings-select-trigger[aria-expanded=true]>svg{transform:rotate(180deg)}.settings-select-menu{z-index:15;overscroll-behavior:contain;touch-action:pan-y pinch-zoom;box-sizing:border-box;border:1px solid var(--line-strong);background:var(--surface);box-shadow:0 8px 24px var(--shadow-medium);color:var(--text);opacity:0;visibility:hidden;pointer-events:none;transform:translateY(calc(-1 * var(--ui-motion-offset))) scale(var(--ui-motion-scale));transform-origin:top;transition:opacity var(--ui-motion-menu) var(--ui-motion-easing),transform var(--ui-motion-menu) var(--ui-motion-easing),visibility 0s var(--ui-motion-menu);border-radius:10px;gap:3px;margin:0;padding:6px;display:grid;position:fixed;inset:auto;overflow-y:auto}.settings-select-menu[data-native-popover=true]:not(:popover-open){display:none}.settings-select-menu[data-above=true]{transform-origin:bottom;transform:translateY(var(--ui-motion-offset)) scale(var(--ui-motion-scale))}.settings-select-menu[data-open=true]{opacity:1;visibility:visible;pointer-events:auto;transition-delay:0s;transform:translateY(0)scale(1)}.settings-select-option{cursor:pointer;border-radius:6px;justify-content:space-between;align-items:center;gap:8px;min-height:40px;padding:9px 10px;font-size:12px;line-height:1.6;display:flex}.settings-select-option>span{overflow-wrap:anywhere;min-width:0}.settings-select-option>svg{visibility:hidden;color:var(--gold);flex-shrink:0}.settings-select-option[data-active=true]{background:var(--surface-hover)}.settings-select-option[aria-selected=true]{background:var(--accent-soft);color:var(--gold)}.settings-select-option[aria-selected=true]>svg{visibility:visible}.settings-select-option[data-active=true][aria-selected=false]{box-shadow:inset 2px 0 0 var(--gold)}@media (width<=640px),(pointer:coarse){.settings-select-trigger,.settings-select-option{min-height:44px}}@media (prefers-reduced-motion:reduce){.settings-select-trigger>svg,.settings-select-menu{transition:none}}.experimental-color-box{border:1px dashed var(--border,#cfbda7);border-radius:8px;min-width:0;margin:20px 0;padding:14px}.experimental-color-box legend{padding:0 7px;font-size:14px;font-weight:600}.experimental-color-help{color:var(--gold);text-underline-offset:3px;margin:4px 0 0;font-size:12px;line-height:1.8;display:inline-block}.experimental-color-help:focus-visible{outline:2px solid var(--gold);outline-offset:4px}.experimental-color-box .full-field{margin-bottom:10px;display:block}.experimental-color-box .hint:last-child{margin-bottom:0}.experimental-dither-controls{border-top:1px solid var(--line);margin-top:14px;padding-top:14px}.experimental-dither-controls>.full-field:first-child{margin-top:0}.conversion-parameter-changes{overflow-wrap:anywhere;min-width:0;margin-top:18px}.conversion-parameter-changes h3{margin:0 0 10px;font-size:14px;font-weight:500}.conversion-parameter-table{overscroll-behavior-x:contain;overflow-x:auto}.conversion-parameter-table:focus-visible{outline:2px solid var(--gold);outline-offset:2px}.conversion-parameter-changes table{border-collapse:collapse;table-layout:fixed;width:100%;font-size:12px;line-height:1.8}.conversion-parameter-changes th,.conversion-parameter-changes td{text-align:left;vertical-align:top;border-bottom:1px solid var(--line);padding:9px 12px;font-weight:400}.conversion-parameter-changes thead th{color:var(--muted);background:var(--accent-soft)}.conversion-parameter-changes th:first-child{width:25%}.conversion-parameter-changes.has-multiple-candidates table{min-width:560px}.conversion-parameter-changes.has-many-candidates table{min-width:880px}.conversion-parameter-changes.has-many-candidates th:first-child{width:16%}@media (width<=600px){.conversion-parameter-changes th,.conversion-parameter-changes td{padding:8px 6px;font-size:11px}}.lighting-conversion-dialog{inset:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);width:min(1380px,calc(100vw - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)));max-width:none;max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:12px;margin:auto;padding:0;position:fixed;overflow:hidden}.lighting-conversion-dialog[open]{flex-direction:column;display:flex}.lighting-conversion-dialog::backdrop{background:var(--backdrop)}.lighting-conversion-dialog>header{flex-shrink:0;justify-content:space-between;align-items:start;gap:16px;padding:20px 24px 12px;display:flex}.lighting-conversion-dialog>header>div{min-width:0}.lighting-conversion-dialog h2{margin:0 0 8px;font-size:21px;font-weight:500}.lighting-conversion-dialog p{color:var(--muted);margin:0;font-size:12px;line-height:1.8}.lighting-conversion-dialog button{min-height:38px;font-size:12px}.lighting-conversion-close{border-radius:8px;flex-shrink:0;min-width:38px;padding:8px}.lighting-conversion-close svg{fill:none;stroke:currentColor;stroke-width:1.6px;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px}.lighting-conversion-body{overscroll-behavior:contain;min-height:0;padding:0 24px 20px;overflow:auto}.lighting-conversion-layout.has-source{grid-template-columns:minmax(0,1fr) minmax(0,2fr);align-items:start;gap:20px;display:grid}.lighting-conversion-source{min-width:0}.lighting-conversion-source h3{align-items:center;min-height:46px;margin:0;font-size:14px;font-weight:500;display:flex}.lighting-conversion-source>p{margin-top:8px}.lighting-conversion-source .lighting-conversion-image img{width:100%;height:100%}.lighting-conversion-candidates{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;display:grid}.lighting-conversion-candidates section{flex-direction:column;min-width:0;display:flex}.lighting-conversion-candidates h3{flex-wrap:wrap;align-items:center;gap:8px;min-height:46px;margin:0;font-size:14px;font-weight:500;display:flex}.lighting-conversion-candidates h3 span{background:var(--accent-soft);color:var(--gold);border-radius:4px;padding:2px 6px;font-size:11px}.lighting-conversion-image{border:1px solid var(--line);background:repeating-conic-gradient(var(--checker-base) 0% 25%,var(--checker-tile) 0% 50%) 0 / 16px 16px;border-radius:6px;justify-content:center;align-items:center;height:clamp(180px,43dvh,470px);display:flex;overflow:hidden}.lighting-conversion-image img,.lighting-conversion-image canvas{object-fit:contain;width:auto;max-width:100%;height:auto;max-height:100%;display:block}.lighting-conversion-image canvas{image-rendering:pixelated;object-fit:contain;width:100%;height:100%}.lighting-conversion-candidates section>p{margin:8px 0 12px}.lighting-conversion-candidates section>button{margin-top:auto}.lighting-conversion-dialog>footer{border-top:1px solid var(--line);background:var(--surface);flex-shrink:0;justify-content:space-between;align-items:center;gap:16px;padding:14px 24px;display:flex}@media (width<=900px){.lighting-conversion-layout.has-source{grid-template-columns:1fr;gap:16px}.lighting-conversion-source{grid-template-columns:96px 1fr;align-items:center;gap:0 12px;display:grid}.lighting-conversion-source h3{grid-area:1/2;align-self:end;min-height:0}.lighting-conversion-source .lighting-conversion-image{aspect-ratio:auto;grid-area:1/1/3;height:72px;min-height:0}.lighting-conversion-source>p{grid-area:2/2;align-self:start;margin-top:4px}}@media (width<=760px){.lighting-conversion-dialog{width:calc(100vw - 20px - env(safe-area-inset-left) - env(safe-area-inset-right))}.lighting-conversion-dialog>header{padding:16px}.lighting-conversion-body{padding:0 16px 16px}.lighting-conversion-candidates{gap:12px}.lighting-conversion-candidates h3{gap:4px;min-height:52px;font-size:12px;line-height:1.6}.lighting-conversion-candidates h3 span{font-size:10px}.lighting-conversion-candidates .lighting-conversion-image{aspect-ratio:4/3;height:auto;min-height:90px}.lighting-conversion-image canvas{width:100%;height:100%}.lighting-conversion-candidates section>p{overflow-wrap:anywhere;font-size:11px;line-height:1.7}.lighting-conversion-dialog h2{font-size:19px}.lighting-conversion-dialog>footer{flex-wrap:wrap;gap:8px;padding:12px 16px}.lighting-conversion-dialog>footer>p{flex-basis:100%}.lighting-conversion-dialog>footer>button{width:100%}}@media (width<=760px),(pointer:coarse){.lighting-conversion-dialog button{min-height:44px}.lighting-conversion-close{min-width:44px}}@media (height<=500px){.lighting-conversion-dialog>header{padding:8px 14px}.lighting-conversion-dialog h2{margin-bottom:4px;font-size:18px}.lighting-conversion-body{padding:0 14px 12px}.lighting-conversion-dialog>footer{padding:8px 14px}}@media (height<=420px){.lighting-conversion-dialog>header p,.lighting-conversion-dialog>footer>p{display:none}.lighting-conversion-dialog>footer{justify-content:flex-end}.lighting-conversion-dialog>footer>button{width:auto}}.conversion-comparison-setting{align-items:center;gap:8px;margin:12px 0;font-size:12px;line-height:1.8;display:flex}.conversion-comparison-setting input{flex-shrink:0}.reconversion-dialog{border:1px solid var(--line);background:var(--surface);width:min(1160px,100vw - 32px);max-width:none;max-height:calc(100dvh - 32px);color:var(--text);border-radius:12px;margin:auto;padding:0;overflow:hidden}.reconversion-dialog[open]{flex-direction:column;display:flex}.reconversion-dialog::backdrop{background:#000000a6}.reconversion-dialog>header{flex-shrink:0;justify-content:space-between;align-items:start;gap:16px;padding:20px 24px 12px;display:flex}.reconversion-dialog h2{margin:0 0 8px;font-size:21px;font-weight:500}.reconversion-dialog p{color:var(--muted);margin:0;font-size:12px;line-height:1.8}.reconversion-body{overscroll-behavior:contain;min-height:0;padding:0 24px 20px;overflow:auto}.reconversion-toolbar{color:var(--muted);justify-content:space-between;align-items:center;gap:12px;margin:4px 0 12px;font-size:12px;display:flex}.reconversion-toolbar>div{gap:6px;display:flex}.reconversion-toolbar button{font-variant-numeric:tabular-nums;min-width:36px;padding:5px 10px}.reconversion-pair{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.reconversion-pair section{min-width:0}.reconversion-dialog h3{margin:0 0 10px;font-size:14px;font-weight:500}.reconversion-pair h3{align-items:center;gap:8px;display:flex}.reconversion-pair h3 span{background:var(--accent-soft);color:var(--gold);border-radius:4px;padding:2px 6px;font-size:11px;font-weight:400}.reconversion-image{border:1px solid var(--line);background:repeating-conic-gradient(#eee 0% 25%,#fff 0% 50%) 0/16px 16px;border-radius:6px;justify-content:center;align-items:center;height:clamp(180px,43dvh,470px);display:flex;overflow:hidden}.reconversion-image .local-zoom-frame{touch-action:none;overflow:hidden}.reconversion-image canvas{width:100%;height:auto;image-rendering:pixelated;-webkit-user-select:none;user-select:none;display:block}.reconversion-dialog .reconversion-image-info{font-variant-numeric:tabular-nums;margin-top:8px}.reconversion-dialog .reconversion-help{margin:8px 0 12px}.reconversion-dialog .reconversion-edit-note{color:var(--gold);padding:12px 0 0}.reconversion-dialog>footer{border-top:1px solid var(--line);background:var(--surface);flex-shrink:0;justify-content:flex-end;gap:10px;padding:14px 24px;display:flex}@media (width<=600px){.reconversion-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.reconversion-dialog>header{padding:16px 12px 10px}.reconversion-dialog h2{font-size:18px}.reconversion-body{padding:0 12px 16px}.reconversion-pair{gap:8px}.reconversion-image{height:clamp(150px,32dvh,280px)}.reconversion-pair h3{flex-wrap:wrap;gap:4px;font-size:13px}.reconversion-dialog .reconversion-image-info{font-size:11px}.reconversion-dialog>footer{padding:12px}.reconversion-dialog>footer button{flex:1}}.personal-center-page{width:min(1080px,100%);margin:0 auto;padding:48px 32px 28px}.personal-center-content{position:relative}.personal-center-frame{background:var(--page);border:0;width:100%;display:block}.personal-center-frame[aria-hidden=true]{pointer-events:none;position:absolute;top:0;left:0}.personal-center-status{border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:18px;font-size:14px;line-height:1.8}.personal-center-status button{margin-top:12px;display:flex}.personal-center-status-actions{flex-wrap:wrap;gap:10px;display:flex}.personal-center-login-notice{margin-bottom:18px}.personal-center-loading{border:1px solid var(--line);background:var(--page);max-width:1000px;color:var(--text);border-radius:24px;margin:0 auto;padding:28px}.personal-center-loading-heading{margin-bottom:22px;position:relative}.personal-center-loading-heading h1{margin:0;font-family:system-ui,-apple-system,Microsoft YaHei,sans-serif;font-size:27px;font-weight:600;line-height:1.5}.personal-center-loading-heading:after{content:"";background:var(--gold);border-radius:999px;width:64px;height:4px;margin-top:14px;display:block}.personal-center-loading-heading>span{color:var(--muted);align-items:center;gap:8px;font-size:12px;display:inline-flex;position:absolute;top:12px;right:0}.personal-center-loading-heading i{border:2px solid var(--line);border-top-color:var(--gold);border-radius:50%;width:14px;height:14px;animation:.8s linear infinite personal-center-spin}.personal-center-skeleton{grid-template-columns:minmax(0,240px) minmax(0,1fr);align-items:start;gap:32px;display:grid}.personal-center-placeholder-account,.personal-center-placeholder-panels>section{border:1px solid var(--line);background:var(--surface);border-radius:16px}.personal-center-placeholder-account{justify-items:center;gap:22px;min-height:294px;padding:24px;display:grid}.personal-center-placeholder-avatar{border-radius:50%;width:88px;height:88px}.personal-center-placeholder-name{width:100%;max-width:180px;height:24px}.personal-center-placeholder-email{width:100%;max-width:190px;height:16px}.personal-center-placeholder-button{border-radius:9px;width:110px;height:32px}.personal-center-placeholder-panels{gap:20px;min-width:0;display:grid}.personal-center-placeholder-panels>section{padding:22px}.personal-center-placeholder-panels h2{margin:0 0 18px;font-family:system-ui,-apple-system,Microsoft YaHei,sans-serif;font-size:18px;font-weight:600;line-height:1.5}.personal-center-placeholder-field{gap:7px;margin-bottom:18px;font-size:14px;font-weight:600;display:grid}.personal-center-placeholder-field>div{border-radius:8px;height:32px}.personal-center-placeholder-providers{flex-wrap:wrap;gap:12px;display:flex}.personal-center-placeholder-providers>div{border-radius:14px;width:48px;height:48px}.personal-center-shimmer{background:linear-gradient(100deg,var(--surface-hover) 25%,var(--surface) 45%,var(--surface-hover) 65%);background-size:250% 100%;border-radius:6px;animation:1.6s ease-in-out infinite personal-center-shimmer}.personal-center-placeholder-avatar{border-radius:50%}.personal-center-placeholder-providers>div{border-radius:14px}@keyframes personal-center-spin{to{transform:rotate(360deg)}}@keyframes personal-center-shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}@media (width<=650px){.personal-center-page{padding:30px 12px 20px}.personal-center-loading{padding:18px}.personal-center-skeleton{grid-template-columns:1fr;gap:18px}.personal-center-placeholder-panels>section{padding:18px}.personal-center-loading-heading>span{margin-top:8px;position:static}}@media (prefers-reduced-motion:reduce){.personal-center-loading-heading i,.personal-center-shimmer{animation:none}}.personal-center-frame{opacity:0;transition:opacity .2s}.personal-center-content[data-ready=true] .personal-center-frame{opacity:1}.personal-center-content[data-ready=true]>.personal-center-loading{opacity:0;pointer-events:none;position:absolute;top:0;left:0;right:0}.personal-center-content[data-ready=true] .personal-center-shimmer,.personal-center-content[data-ready=true] .personal-center-loading-heading i{animation:none}.personal-center-loading{font-family:system-ui,-apple-system,Microsoft YaHei,sans-serif;font-size:14px;line-height:1.5;transition:opacity .2s}.personal-center-placeholder-account{align-content:start}.personal-center-placeholder-field{line-height:21px}.personal-center-placeholder-description{color:var(--muted);margin:1px 0 0;font-size:12px;font-weight:400;line-height:18px}@media (width<=650px){.personal-center-loading-heading>span{margin-top:0;font-size:11px;position:absolute}}@media (prefers-reduced-motion:reduce){.personal-center-frame,.personal-center-loading{transition:none}}.personal-center-placeholder-panels>section:nth-child(2){min-height:159px}.personal-center-placeholder-password>div{width:60%}.personal-center-placeholder-security>p{margin:0 0 18px;font-size:14px;line-height:21px}.personal-center-placeholder-security>.personal-center-placeholder-button{width:68px}.personal-center-placeholder-avatar{border:3px solid var(--line);box-shadow:0 12px 28px #2c568624}.personal-center-placeholder-panels>section:nth-child(2){padding-bottom:42px}.personal-center-placeholder-security>p{margin-bottom:14px}@media (width<=650px){.personal-center-placeholder-panels>section:nth-child(2){padding-bottom:38px}}.editor-error-boundary{background:var(--surface-soft);min-height:100vh;color:var(--text);place-items:center;padding:24px;display:grid}.editor-error-boundary>section{border:1px solid var(--line);background:var(--surface);border-radius:14px;width:min(100%,760px);padding:28px}.editor-error-boundary h1{margin:0 0 18px;font-size:24px}.editor-error-boundary p{overflow-wrap:anywhere;line-height:1.7}.editor-error-actions{flex-wrap:wrap;gap:12px;margin:20px 0;display:flex}.editor-error-boundary details{margin-top:24px}.editor-error-boundary summary{cursor:pointer}.editor-error-boundary textarea{box-sizing:border-box;resize:vertical;background:var(--surface-soft);width:100%;height:240px;color:inherit;border:1px solid var(--line);border-radius:6px;margin-top:12px;padding:12px;font:12px/1.6 monospace;display:block}@font-face{font-family:local-sans;src:local(Microsoft YaHei UI);font-display:swap}dialog.crop-dialog{width:850px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:24px;position:fixed;inset:0;overflow:auto}dialog.crop-dialog::backdrop{background:var(--backdrop);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.crop-dialog .modal-heading h2{margin:0;font-size:21px}.crop-layout{grid-template-columns:minmax(0,1fr) 260px;align-items:start;gap:24px;margin-top:18px;display:grid}.crop-preview{border:1px solid var(--line);background:repeating-conic-gradient(var(--checker-base) 0% 25%,var(--checker-tile) 0% 50%) 0 0/16px 16px;border-radius:8px;min-width:0;overflow:hidden}.crop-preview svg{touch-action:none;-webkit-user-select:none;user-select:none;width:100%;height:360px;max-height:48dvh;display:block}.crop-selection{cursor:move}.crop-handle-nw,.crop-handle-se{cursor:nwse-resize}.crop-handle-ne,.crop-handle-sw{cursor:nesw-resize}.crop-handle-n,.crop-handle-s{cursor:ns-resize}.crop-handle-w,.crop-handle-e{cursor:ew-resize}.crop-fields .field-pair{row-gap:18px}.crop-fields .hint{margin:0 0 16px}.crop-fields{min-width:0}.crop-alignment{border:1px solid var(--line);background:var(--surface);border-radius:8px;margin-bottom:18px;padding:10px 12px}.crop-alignment-toggle{width:100%;min-height:28px;color:var(--text);text-align:left;background:0 0;border:0;border-radius:4px;justify-content:space-between;align-items:center;gap:12px;padding:0;font-size:12px;display:flex}.crop-alignment-toggle:hover:not(:disabled){color:var(--gold);background:0 0}.crop-alignment-toggle:focus-visible{outline:2px solid var(--gold);outline-offset:4px}.crop-switch-track{border:1px solid var(--line-strong);background:var(--line-strong);border-radius:10px;flex:0 0 30px;height:18px;position:relative}.crop-switch-track:after{content:"";background:var(--surface);border-radius:50%;width:12px;height:12px;position:absolute;top:2px;left:2px}.crop-alignment-toggle[aria-checked=true] .crop-switch-track{border-color:var(--gold);background:var(--gold)}.crop-alignment-toggle[aria-checked=true] .crop-switch-track:after{transform:translate(12px)}.crop-alignment-hint{color:var(--text-secondary);margin:5px 0 0;font-size:11px;line-height:1.6}.crop-instructions{border-top:1px solid var(--line);color:var(--text-secondary);margin:16px 0 0;padding-top:12px;font-size:11px;line-height:1.8}.crop-shortcuts{gap:8px;margin-top:16px;display:flex}.crop-shortcuts button{flex:1;font-size:12px}.crop-shortcuts button[aria-pressed=true]{color:var(--gold);border-color:var(--gold);background:var(--accent-soft)}.crop-summary{color:var(--text-secondary);margin:18px 0 0;font-size:12px;line-height:2}.crop-summary strong{color:var(--text);font-size:17px}.crop-fields .blank-canvas-error{color:var(--danger);font-size:12px;line-height:1.8}@media (width<=620px){dialog.crop-dialog{padding:18px}.crop-layout{grid-template-columns:1fr;gap:16px}.crop-preview svg{height:240px;max-height:32dvh}.crop-fields .hint{margin-bottom:10px}.crop-summary{margin-top:10px}}.vision-comparison{border:1px solid var(--line);background:var(--surface);border-radius:10px;margin:18px 0;padding:18px}.vision-comparison summary{cursor:pointer;color:var(--text-secondary);font-size:13px}.vision-comparison summary span{float:right;color:var(--muted);font-size:11px}.vision-compare-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:16px 0;display:grid}.vision-comparison figure{min-width:0;margin:0}.vision-comparison figcaption{color:var(--text-secondary);margin-bottom:10px;font-size:12px}.vision-comparison small{color:var(--muted);margin-top:8px;font-size:11px;display:block}.vision-compare-grid canvas{width:100%;height:auto;image-rendering:pixelated;background:var(--checker-base);display:block}.vision-original{margin-top:16px!important}.vision-original img{max-width:100%;max-height:640px;margin:auto;display:block}.vision-comparison .text-button{margin-top:6px}@media (width<=620px){.vision-compare-grid{gap:10px}.vision-comparison{padding:12px}.vision-comparison figcaption{font-size:11px}}.visual-conversion{border:1px solid var(--accent-border);background:var(--surface-soft);border-radius:12px;margin:16px 0;padding:16px}.visual-conversion-title{justify-content:space-between;align-items:center;gap:8px;display:flex}.visual-conversion-title span{color:var(--muted);font-size:11px}.visual-conversion p{color:var(--text-secondary);margin:10px 0;font-size:12px;line-height:1.7}.visual-conversion label{justify-content:space-between;font-size:12px;display:flex}.visual-conversion output{font-variant-numeric:tabular-nums}.visual-conversion input{width:100%;accent-color:var(--gold);margin:10px 0 3px}.visual-strength-hints{color:var(--muted);justify-content:space-between;font-size:10px;display:flex}.visual-conversion button{width:100%;margin:12px 0 8px}.visual-conversion small{color:var(--muted);font-size:11px;display:block}.visual-conversion details{color:var(--muted);margin-top:10px;font-size:11px}.visual-conversion summary{cursor:pointer}:root{font-synthesis:none;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--page:#f7f1e8;--surface:#fffdf9;--surface-soft:#f6efe6;--surface-hover:#eee2d3;--text:#40352b;--text-secondary:#665747;--muted:#796b5b;--line:#e1d5c4;--line-strong:#cbbca7;--gold:#91552f;--gold-hover:#7b4526;--on-accent:#fffaf3;--accent-soft:#f1e1c9;--accent-border:#c9a57b;--canvas:#f5f2ec;--checker-base:#f5f3ef;--checker-tile:#e5e2dc;--success:#547259;--danger:#a33f31;--danger-soft:#fbe9e3;--danger-border:#d8a095;color:var(--text);background:var(--page);--status-dot:#739475;--active-border:#c9a57b66;--shadow-faint:#67462908;--shadow-soft:#6746290d;--shadow-medium:#6746291a;--shadow-canvas:#43352624;--shadow-modal:#43352633;--canvas-grid:#93795814;--sample-grid:#75644b20;--loading-bg:#fffaf2ed;--spinner-track:#c9bda9;--backdrop:#372c2066;--swatch-border:#59463340;font-family:local-sans,PingFang SC,system-ui,sans-serif;font-weight:400}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--page:#211e1a;--surface:#2a2520;--surface-soft:#24201c;--surface-hover:#393026;--text:#f0e7db;--text-secondary:#d0bfaa;--muted:#b5a48f;--line:#453c31;--line-strong:#645443;--gold:#e0b87e;--gold-hover:#efd0a4;--on-accent:#302419;--accent-soft:#423525;--accent-border:#90734d;--canvas:#1b1b1a;--checker-base:#262626;--checker-tile:#333332;--success:#b1c5a2;--danger:#f2ac94;--danger-soft:#49302d;--danger-border:#8c554a;--status-dot:#94ba9e;--active-border:#90734d80;--shadow-faint:#0000000d;--shadow-soft:#0002;--shadow-medium:#0004;--shadow-canvas:#0006;--shadow-modal:#0008;--canvas-grid:#ddd1bf08;--sample-grid:#25334230;--loading-bg:#211e1af0;--spinner-track:#645443;--backdrop:#100e0bcc;--swatch-border:#ffffff40}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select,summary{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);color:inherit;background:0 0;border-radius:6px;justify-content:center;align-items:center;gap:7px;padding:9px 13px;transition:background .15s,border-color .15s;display:inline-flex}button:hover:not(:disabled){background:var(--surface-hover);border-color:var(--gold-hover)}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--gold);outline-offset:3px}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}input[type=checkbox]{accent-color:var(--gold);width:14px;height:14px}input[type=range]{accent-color:var(--gold);width:100%}input[type=number],select{background:var(--surface-soft);width:100%;min-width:0;color:var(--text);border:1px solid var(--line-strong);border-radius:5px;height:40px;padding:10px 11px}select{cursor:pointer}.hidden-input{display:none}.site-header{border-bottom:1px solid var(--line);background:var(--surface);justify-content:space-between;align-items:center;height:82px;padding:0 38px;display:flex}.brand{align-items:center;gap:12px;display:flex}.brand-mark{width:41px;height:41px;color:var(--gold);border:1px solid var(--accent-border);border-radius:8px;place-items:center;display:grid;transform:rotate(-4deg)}.brand-mark svg{width:27px;height:27px}.brand strong{letter-spacing:3px;font-family:Noto Serif SC,Songti SC,SimSun,serif;font-size:20px}.brand small{color:var(--muted);letter-spacing:2px;margin-top:4px;font-size:10px;display:block}.header-nav{align-items:center;gap:13px;font-size:12px;display:flex}.header-nav>button{border-color:#0000}.header-nav>.quiet{border-color:var(--line)}.badge{border:1px solid var(--line-strong);color:var(--muted);border-radius:4px;padding:0 4px;font-size:10px}.privacy{color:var(--success);align-items:center;gap:7px;margin-right:16px;font-size:11px;display:flex}.privacy i{background:var(--status-dot);border-radius:50%;width:5px;height:5px}.app-layout{grid-template-columns:307px minmax(0,1fr);gap:32px;max-width:1720px;margin:auto;padding:28px 38px 20px;display:grid}.settings-panel{background:var(--surface);border:1px solid var(--line);box-shadow:0 8px 28px var(--shadow-faint);border-radius:10px;align-self:start;padding:23px 21px}.eyebrow{color:var(--gold);letter-spacing:2px;font-size:10px;font-weight:500}.intro h1{letter-spacing:2px;margin:12px 0 9px;font-family:Noto Serif SC,Songti SC,SimSun,serif;font-size:27px;font-weight:500;line-height:1.55}.intro p{color:var(--muted);font-size:11px}.upload-zone{border:1px dashed var(--accent-border);background:var(--surface-soft);flex-direction:column;gap:11px;width:100%;margin-top:22px;padding:19px 9px}.upload-zone.dragging{border-color:var(--gold);background:var(--accent-soft)}.upload-icon{color:var(--gold)}.upload-zone strong{text-overflow:ellipsis;white-space:nowrap;max-width:220px;font-size:12px;font-weight:500;display:block;overflow:hidden}.upload-zone small{color:var(--muted);margin-top:6px;font-size:10px;display:block}.upload-zone.has-image{text-align:left;flex-direction:row;padding:11px}.upload-zone.has-image strong{max-width:158px}.upload-zone img{object-fit:cover;border-radius:3px;width:44px;height:44px}.control-section{margin-top:1px;padding:22px 0 0}.section-heading{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.section-heading h2{letter-spacing:.5px;font-size:12px;font-weight:500}.section-heading>span{color:var(--muted);font-family:monospace;font-size:10px}.segmented{background:var(--surface-soft);border:1px solid var(--line);border-radius:6px;gap:3px;padding:3px;display:flex}.segmented button{white-space:nowrap;color:var(--muted);border:0;flex:1;padding:8px 10px;font-size:11px}.segmented button.active{background:var(--accent-soft);color:var(--gold);box-shadow:inset 0 0 0 1px var(--active-border)}.hint{color:var(--muted);margin-top:8px;font-size:10px;line-height:1.8}.subtle{color:var(--muted)}.field-pair{grid-template-columns:1fr 1fr;gap:12px;margin-top:16px;display:grid}.field-pair label,.full-field{color:var(--text-secondary);font-size:11px}.field-pair label>span{color:var(--muted);float:right;font-size:10px}.field-pair input,.field-pair select,.full-field select{margin-top:7px;font-size:12px}.full-field{margin-top:15px;display:block}.preset-row{align-items:center;gap:5px;margin-top:10px;font-size:10px;display:flex}.preset-row>span{color:var(--muted);margin-right:auto}.preset-row button{color:var(--text-secondary);border-color:#0000;padding:4px 7px;font-size:10px}.preset-row button.chosen{border-color:var(--accent-border);color:var(--gold);background:var(--accent-soft)}.advanced{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:21px;font-size:11px}.settings-section-label{align-items:center;gap:8px;display:flex}.settings-section-icon{color:var(--gold);flex-shrink:0}.settings-disclosure-heading{letter-spacing:.5px;margin:0;font-size:12px;font-weight:500}.advanced-toggle{width:100%;min-height:48px;font:inherit;letter-spacing:inherit;color:var(--text-secondary);text-align:left;border:0;border-radius:5px;justify-content:space-between;padding:12px 0;transition:color .2s,background-color .2s}.advanced-toggle:hover:not(:disabled){color:var(--gold);background:color-mix(in srgb,var(--surface-soft) 65%,transparent)}.advanced-toggle[aria-expanded=true]{color:var(--gold)}.advanced-chevron{color:var(--muted);flex-shrink:0;transition:transform .3s cubic-bezier(.22,1,.36,1),color .2s}.advanced-toggle[aria-expanded=true] .advanced-chevron{color:var(--gold);transform:rotate(180deg)}.advanced-collapse{opacity:0;visibility:hidden;grid-template-rows:0fr;transition:grid-template-rows .32s cubic-bezier(.22,1,.36,1),opacity .2s,visibility 0s .32s;display:grid}.advanced-collapse.is-open{opacity:1;visibility:visible;grid-template-rows:1fr;transition-delay:0s}.advanced-clip{min-height:0;overflow:hidden}.advanced-content{padding:4px 4px 16px}@media (prefers-reduced-motion:reduce){.advanced-collapse,.advanced-chevron,.advanced-toggle{transition:none}}.range-field{margin-bottom:12px;display:block}.range-field>span{color:var(--text-secondary);justify-content:space-between;font-size:11px;display:flex}.range-field output{color:var(--gold)}.check-field{color:var(--text-secondary);flex-wrap:wrap;align-items:center;gap:5px;margin:14px 0;display:flex}.check-field small{color:var(--muted);font-size:9px}.text-button{color:var(--gold);border:0;margin-top:10px;padding:6px 0;font-size:10px}.convert-action{text-align:center;margin-top:20px}.primary{background:var(--gold);border-color:var(--gold);color:var(--on-accent);font-weight:600}.primary:hover:not(:disabled){background:var(--gold-hover);border-color:var(--gold-hover)}.convert-action>.primary{width:100%;height:43px;font-size:12px}.convert-action>small{color:var(--muted);margin-top:10px;font-size:9px;display:block}.workspace{min-width:0}.workspace-heading{justify-content:space-between;align-items:center;gap:10px;padding:4px 0 22px;display:flex}.workspace-heading h2{letter-spacing:1px;margin-top:7px;font-size:20px;font-weight:400}.version-pill{color:var(--muted);border:1px solid var(--line);white-space:nowrap;border-radius:20px;padding:6px 8px;font-size:9px}.preview-card{border:1px solid var(--line-strong);background:var(--surface);box-shadow:0 14px 40px var(--shadow-soft);border-radius:10px;overflow:hidden}.preview-toolbar{background:var(--surface-soft);border-bottom:1px solid var(--line-strong);justify-content:space-between;align-items:center;gap:8px;padding:11px 15px;display:flex}.preview-toolbar .segmented{background:0 0;border:0;padding:0}.preview-toolbar .segmented button{padding:7px 16px;font-size:11px}.preview-toolbar .segmented button.active{background:var(--accent-soft);box-shadow:none;color:var(--text)}.preview-controls{align-items:center;gap:3px;font-size:10px;display:flex}.preview-controls label{color:var(--text-secondary);white-space:nowrap;align-items:center;gap:4px;margin-right:12px;display:flex}.preview-controls button{color:var(--text-secondary);border-color:#0000;padding:4px 7px;font-size:12px}.preview-controls .zoom-reset{min-width:43px;font-size:10px}.canvas-stage{background-color:var(--canvas);background-image:linear-gradient(var(--canvas-grid) 1px,transparent 1px),linear-gradient(90deg,var(--canvas-grid) 1px,transparent 1px);background-size:20px 20px;flex-direction:column;justify-content:flex-start;align-items:center;min-height:478px;padding:26px;display:flex;position:relative;overflow:visible}.pattern-canvas{height:auto;image-rendering:pixelated;box-shadow:0 6px 35px var(--shadow-canvas);background-color:var(--checker-base);background-image:conic-gradient(var(--checker-tile) 25%,transparent 0 50%,var(--checker-tile) 0 75%,transparent 0);background-size:16px 16px;flex-shrink:0;margin:auto;display:block}.pattern-canvas.editing{cursor:crosshair;touch-action:none}.original-image{object-fit:contain;max-width:100%;max-height:700px;margin:auto;display:block}.empty-stage{justify-content:center;min-height:493px}.empty-state{text-align:center}.sample-art{border:7px solid var(--surface);width:270px;height:190px;box-shadow:0 18px 35px var(--shadow-medium);border-radius:4px;margin:0 auto 24px;position:relative;transform:rotate(-3deg)}.sample-art img{object-fit:contain;filter:saturate(.9);width:100%;height:100%;display:block}.sample-art:after{content:"";background-image:linear-gradient(var(--sample-grid) 1px,transparent 1px),linear-gradient(90deg,var(--sample-grid) 1px,transparent 1px);background-size:7px 7px;position:absolute;inset:0}.sample-art span{z-index:1;background:var(--surface);border:1px solid var(--accent-border);color:var(--gold);box-shadow:0 5px 10px var(--shadow-medium);padding:7px 12px;font-size:9px;position:absolute;bottom:12px;right:-34px;transform:rotate(3deg)}.empty-state h3{letter-spacing:1px;font-size:17px;font-weight:400}.empty-state p{color:var(--muted);margin:12px 0 17px;font-size:11px;line-height:1.8}.sample-button{color:var(--gold);border-color:var(--accent-border);background:var(--accent-soft);padding:10px 19px;font-size:11px}.empty-state>small{color:var(--muted);margin-top:12px;font-size:10px;display:block}.loading-overlay{background:var(--loading-bg);z-index:3;flex-direction:column;justify-content:center;align-items:center;gap:16px;min-height:300px;display:flex;position:absolute;inset:0}.loading-overlay strong{font-size:15px;font-weight:400}.loading-overlay>span{color:var(--muted);font-size:11px}.loading-overlay progress{width:200px;height:5px;accent-color:var(--gold)}.spinner{border:2px solid var(--spinner-track);border-top-color:var(--gold);border-radius:50%;width:28px;height:28px;animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.editor-bar{border-top:1px solid var(--line-strong);background:var(--surface-soft);justify-content:space-between;align-items:center;gap:10px;min-height:52px;padding:9px 13px;display:flex}.edit-tools{gap:3px;min-width:0;display:flex}.edit-tools>button{color:var(--text-secondary);white-space:nowrap;border-color:#0000;padding:6px 9px;font-size:10px}.edit-tools>button.active{color:var(--gold);background:var(--accent-soft)}.edit-tools svg{width:14px;height:14px}.edit-tools select{width:120px;height:28px;margin-left:5px;padding:3px;font-size:10px}.editor-bar>span{color:var(--muted);white-space:nowrap;font-size:9px}.result-stats{grid-template-columns:repeat(4,1fr);gap:12px;margin-top:18px;display:grid}.result-stats>div{background:var(--surface);border:1px solid var(--line);border-radius:7px;min-height:92px;padding:15px 17px;position:relative}.result-stats span{color:var(--muted);font-size:10px;display:block}.result-stats span small{color:var(--muted);font-size:9px}.result-stats strong{letter-spacing:.5px;white-space:nowrap;margin-top:8px;font-size:22px;font-weight:500;display:block}.result-stats strong small{color:var(--muted);letter-spacing:0;margin-left:8px;font-size:10px;font-weight:400}.budget-track{background:var(--line);height:2px;margin-top:9px;position:absolute;bottom:8px;left:17px;right:17px}.budget-track i{background:var(--gold);height:100%;display:block}.over strong{color:var(--danger)}.over .budget-track i{background:var(--danger)}.result-details{justify-content:space-between;align-items:center;gap:15px;margin:15px 0 4px;display:flex}.palette-strip{border-radius:3px;gap:2px;max-width:70%;height:13px;display:flex;overflow:hidden}.palette-strip>span{width:14px;min-width:9px}.result-details>span{color:var(--muted);font-size:9px}.status-line{color:var(--success);min-height:34px;padding:13px 0 5px;font-size:11px;line-height:1.7}.result-note{color:var(--gold);font-size:10px;line-height:1.8}.export-bar{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:20px;margin-top:15px;padding:20px 0 10px;display:flex}.export-bar h3{font-size:12px;font-weight:500}.export-bar p{color:var(--muted);margin-top:7px;font-size:10px}.export-actions{align-items:center;gap:8px;display:flex}.export-actions button{white-space:nowrap;padding:10px 12px;font-size:10px}.export-actions button.primary{padding:11px 17px;font-size:12px}.render-note{color:var(--muted);align-items:flex-start;gap:5px;margin-top:8px;font-size:9px;line-height:1.9;display:flex}.render-note svg{flex-shrink:0;width:13px;height:13px;margin-top:2px}.render-note a{color:var(--gold);white-space:nowrap;font-size:9px}.render-note a:hover{text-decoration:underline}.site-footer{border-top:1px solid var(--line);max-width:1644px;color:var(--muted);justify-content:space-between;margin:0 auto;padding:20px 38px;font-size:9px;display:flex}.dot{color:var(--muted);padding:0 8px}.message{border-radius:6px;justify-content:space-between;align-items:center;margin-bottom:12px;padding:10px 14px;font-size:12px;line-height:1.8;display:flex}.message.error{background:var(--danger-soft);border:1px solid var(--danger-border);color:var(--danger)}.message button{border:0;padding:4px}.stage-note{color:var(--muted);margin-top:12px;font-size:10px}.modal-backdrop{background:var(--backdrop);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);z-index:20;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.modal{border:1px solid var(--line-strong);background:var(--surface-soft);width:820px;max-width:100%;max-height:90dvh;color:var(--text);box-shadow:0 30px 100px var(--shadow-modal);border-radius:12px;margin:0;padding:26px;position:relative;overflow:auto}.modal-heading{justify-content:space-between;align-items:center;margin-bottom:18px;display:flex}.modal-heading h2{margin-top:8px;font-size:23px;font-weight:400}.modal-heading button{padding:7px}.modal>p{color:var(--text-secondary);font-size:11px;line-height:1.8}.family-tabs{flex-wrap:wrap;gap:6px;margin:20px 0;display:flex}.family-tabs button{padding:7px 14px;font-size:11px}.family-tabs .active{color:var(--gold);background:var(--accent-soft);border-color:var(--accent-border)}.catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:2px;display:grid}.catalog-color{border:1px solid var(--line-strong);cursor:pointer;background:var(--surface-soft);border-radius:6px;align-items:center;gap:9px;padding:10px 9px 25px;display:flex;position:relative}.catalog-swatch{width:34px;height:34px;box-shadow:inset 0 0 0 1px var(--swatch-border);border-radius:3px;flex-shrink:0;display:block}.catalog-color strong{font-size:12px;font-weight:500}.catalog-color span>small{color:var(--muted);margin-top:4px;font-size:8px;display:block}.catalog-color>input{flex-shrink:0;margin-left:auto}.catalog-color .catalog-ids{color:var(--muted);font-size:8px;position:absolute;bottom:7px;left:9px}.catalog-color.transparent{border-color:var(--accent-border)}.help-content{color:var(--text-secondary);font-size:12px;line-height:1.9}.help-content ol{margin:0;padding-left:23px}.help-content li{padding:0 0 14px 8px}.help-content li strong{color:var(--gold);font-weight:500}.help-content h3{color:var(--text);margin-top:20px;font-size:14px}.help-content>p{margin:7px 0 15px}.help-callout{background:var(--accent-soft);border:1px solid var(--accent-border);color:var(--text-secondary);border-radius:7px;margin-top:10px;padding:15px 18px}.help-callout strong{color:var(--gold);font-size:12px}.help-callout p{margin-top:6px;font-size:11px}@media (width>=1500px){.app-layout{grid-template-columns:325px minmax(0,1fr);gap:36px}.canvas-stage{min-height:550px}.settings-panel{padding:25px}.result-stats strong{font-size:26px}}@media (width<=1200px){.app-layout{grid-template-columns:280px minmax(0,1fr);gap:22px;padding:22px}.settings-panel{padding:19px 17px}.version-pill{display:none}.export-bar{flex-direction:column;align-items:flex-start;gap:14px}.result-stats{gap:8px}.result-stats>div{padding:12px 10px}.result-stats strong{font-size:18px}.result-stats strong small{margin-left:4px;font-size:9px}.canvas-stage{min-height:430px;padding:19px}.editor-bar>span{display:none}.workspace-heading h2{font-size:19px}}@media (width<=820px){.app-layout{grid-template-columns:240px minmax(0,1fr);gap:14px;padding:18px 14px}.settings-panel{padding:18px 13px}.intro h1{font-size:23px}.field-pair{gap:8px}.preview-toolbar{flex-wrap:wrap}.preview-controls{margin-left:auto}.result-stats{grid-template-columns:repeat(2,1fr)}.export-actions{flex-wrap:wrap}.canvas-stage{min-height:370px;padding:15px}.empty-stage{min-height:430px}.sample-art{width:190px;height:150px}.sample-art span{font-size:8px;right:-9px}.empty-state p{font-size:10px}.workspace-heading h2{font-size:15px}.result-details{flex-direction:column;align-items:flex-start;gap:9px}.palette-strip{max-width:100%}.render-note{display:block}.render-note svg{display:none}.catalog-grid{grid-template-columns:repeat(3,1fr)}.site-footer{gap:15px;padding:18px;line-height:1.8}}@media (width<=620px){.app-layout{flex-direction:column;gap:24px;padding:15px;display:flex}.settings-panel{width:100%;padding:20px}.intro h1{font-size:25px;line-height:1.45}.intro h1 br{display:none}.intro p{margin-top:8px}.upload-zone{flex-direction:row;margin-top:18px;padding:15px}.upload-zone.has-image strong{max-width:220px}.control-section{padding-top:19px}.field-pair{gap:14px}.convert-action{margin-top:18px}.workspace-heading h2{font-size:19px}.workspace-heading{padding-bottom:17px}.preview-toolbar{flex-wrap:nowrap;padding:10px}.preview-toolbar .segmented button{padding:7px 10px;font-size:10px}.preview-controls label{margin-right:0;font-size:9px}.preview-controls button{padding:3px 4px}.canvas-stage{min-height:365px;padding:20px}.empty-stage{min-height:430px}.sample-art{width:240px;height:177px}.result-stats{grid-template-columns:repeat(2,1fr)}.result-stats>div{padding:15px}.result-stats strong{font-size:24px}.export-bar{gap:17px}.export-actions{grid-template-columns:repeat(3,1fr);width:100%;display:grid}.export-actions .primary{grid-column:1/-1;height:44px}.site-footer{flex-direction:column;gap:5px;padding:20px}.header-nav>button{font-size:9px}.header-nav>.quiet{border:0}.header-nav .badge{display:none}.brand{gap:8px}.modal-backdrop{padding:12px}.modal{padding:20px 15px}.catalog-grid{grid-template-columns:repeat(2,1fr);gap:7px}.family-tabs{gap:5px}.family-tabs button{padding:6px 10px}.catalog-color{padding-bottom:28px}.modal-heading h2{font-size:21px}}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}.editor-bar{flex-wrap:wrap;gap:10px}.edit-tools{flex-wrap:wrap}.edit-tools kbd{color:var(--text-secondary);border:1px solid var(--line-strong);border-radius:3px;padding:1px 4px;font:9px system-ui}.pattern-canvas.picking{cursor:crosshair}.pattern-canvas:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.brush-palette{border-top:1px solid var(--line);background:var(--surface);padding:16px 20px 18px}.brush-palette-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px;font-size:11px;display:flex}.brush-palette-heading strong{color:var(--text);font-weight:500}.brush-palette-heading strong span{color:var(--muted);margin-left:6px}.current-brush{color:var(--text-secondary);align-items:center;gap:7px;display:flex}.current-brush i{border:1px solid var(--swatch-border);border-radius:3px;width:16px;height:16px;display:inline-block}.brush-colors{grid-template-columns:repeat(auto-fill,minmax(28px,1fr));gap:7px;display:grid}.brush-colors button{aspect-ratio:1;border:1px solid var(--swatch-border);border-radius:4px;width:100%;min-width:0;padding:0}.brush-colors button:hover:not(:disabled){border:2px solid var(--gold-hover);transform:scale(1.08)}.brush-colors button[aria-pressed=true]{outline:2px solid var(--gold);outline-offset:2px;box-shadow:inset 0 0 0 2px var(--surface)}.brush-palette p{color:var(--muted);margin-top:12px;font-size:10px;line-height:1.8}.palette-strip{flex-wrap:wrap;gap:3px;overflow:visible}.palette-strip button{border:1px solid var(--swatch-border);border-radius:2px;flex:0 0 14px;width:14px;height:14px;padding:0;display:block}.palette-strip button:hover:not(:disabled){outline:1px solid var(--gold)}.canvas-stage.compare-stage{align-items:flex-start;min-height:0}.compare-pair{flex-shrink:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;margin:auto;display:grid}.compare-pair figure{min-width:0;margin:0}.compare-pair figcaption{color:var(--text-secondary);margin-bottom:12px;font-size:11px}.compare-pair img,.compare-pair .pattern-canvas{height:auto;margin:0;display:block;width:100%!important;max-width:100%!important}.compare-pair img{background-color:var(--checker-base);background-image:conic-gradient(var(--checker-tile) 25%,transparent 0 50%,var(--checker-tile) 0 75%,transparent 0);background-size:16px 16px}.compare-stage .stage-note{line-height:1.8}.preview-toolbar{flex-wrap:wrap}.preview-controls{margin-left:auto}@media (width<=820px){.compare-pair{grid-template-columns:1fr}.compare-pair figure{width:100%;max-width:680px;margin:auto}.preview-toolbar{flex-wrap:wrap}}.split-settings{border:1px solid var(--line-strong);background:var(--surface);border-radius:8px;margin-top:20px;padding:18px}.split-heading{justify-content:space-between;align-items:center;gap:16px;display:flex}.split-heading h3{color:var(--gold);font-size:13px;font-weight:500}.split-heading p{color:var(--muted);margin-top:7px;font-size:10px;line-height:1.8}.split-heading .segmented{flex-shrink:0}.split-fields{grid-template-columns:180px 1fr;align-items:start;gap:18px;margin-top:17px;display:grid}.split-fields label{color:var(--text-secondary);font-size:11px}.split-fields select{margin-top:7px;font-size:12px}.split-summary{color:var(--text-secondary);flex-direction:column;gap:5px;padding:1px 0 0 8px;font-size:11px;line-height:1.5;display:flex}.split-summary strong{color:var(--gold);font-size:18px;font-weight:500}.split-summary small{color:var(--muted);font-size:9px}.export-actions{flex-wrap:wrap;justify-content:flex-end}.export-actions .primary{min-width:137px}@media (width<=1200px){.split-fields{grid-template-columns:1fr 1fr;gap:12px}.split-summary{grid-column:1/-1;padding:0}.split-heading{flex-direction:column;align-items:flex-start;gap:12px}}@media (width<=620px){.split-settings{padding:16px}.split-heading,.split-heading .segmented{width:100%}.export-actions{justify-content:stretch}.export-actions .primary{grid-column:1/-1}.split-fields{gap:12px}}.palette-strip{height:auto;min-height:14px}.result-details{align-items:flex-start}.import-batches{flex-wrap:wrap;align-items:center;gap:8px;margin-top:16px;display:flex}.import-batches>span{color:var(--text-secondary);margin-right:4px;font-size:11px}.import-batches button{padding:7px 10px;font-size:11px}.import-batches button[aria-pressed=true]{border-color:var(--accent-border);background:var(--accent-soft);color:var(--gold)}.large-import-note{border-left:2px solid var(--accent-border);color:var(--gold);margin-top:14px;padding:12px;font-size:11px;line-height:1.8}.source-picking{cursor:crosshair;touch-action:none;-webkit-user-select:none;user-select:none}.current-brush{flex-wrap:wrap}.source-sample{color:var(--muted);align-items:center;gap:7px;display:inline-flex}.editor-hint{color:var(--gold);padding:0 20px 13px;font-size:11px;line-height:1.8}.background-actions{border-top:1px solid var(--line);background:var(--surface-soft);align-items:center;gap:15px;padding:13px 20px;display:flex}.background-actions button{color:var(--gold);border-color:var(--accent-border);flex-shrink:0;font-size:11px}.background-actions>span{color:var(--muted);font-size:10px;line-height:1.8}.transparent-swatch{border:1px solid var(--swatch-border);background-color:var(--checker-base);background-image:conic-gradient(var(--checker-tile) 25%,transparent 0 50%,var(--checker-tile) 0 75%,transparent 0);background-size:8px 8px;border-radius:3px;flex-shrink:0;width:18px;height:18px;display:inline-block}.transparent-choice{margin-bottom:15px;font-size:11px}.transparent-choice small{color:var(--muted);font-size:10px}.transparent-choice[aria-pressed=true]{border-color:var(--gold);background:var(--accent-soft);color:var(--gold)}@media (width<=820px){.background-actions{flex-direction:column;align-items:flex-start;gap:8px}}@media (width<=620px){.editor-hint{padding:0 14px 13px}.background-actions{padding:13px 14px}.brush-palette{padding:16px 14px}.edit-tools button{padding:7px 9px}}.merge-savings{color:var(--gold);margin-top:6px;font-weight:500;display:block}.split-summary.over strong,.split-summary .split-budget-error{color:var(--danger)}.split-summary small{font-size:11px}@media (width<=620px){.split-fields{grid-template-columns:1fr}}.header-nav>button.theme-toggle{background:0 0;border:0;border-radius:22px;flex:0 0 54px;justify-self:center;width:54px;min-width:54px;height:44px;min-height:44px;margin:0;padding:0}.header-nav>button.theme-toggle:hover{background:0 0}.theme-toggle-track{background:var(--line-strong);width:54px;height:30px;box-shadow:inset 0 0 0 1px var(--shadow-soft);border-radius:999px;transition:background .2s;display:block;position:relative}.theme-toggle-thumb{color:#91552f;background:#fffdf9;border-radius:50%;place-items:center;width:24px;height:24px;transition:transform .2s;display:grid;position:absolute;top:3px;left:3px;box-shadow:0 1px 4px #0003}.header-nav .theme-toggle-thumb svg{width:16px;height:16px;display:block}.theme-toggle[aria-checked=true] .theme-toggle-track{background:var(--gold)}.theme-toggle[aria-checked=true] .theme-toggle-thumb{transform:translate(24px)}@media (prefers-reduced-motion:reduce){.theme-toggle-track,.theme-toggle-thumb{transition:none}}.segmented button:hover:not(:disabled):not(.active){color:var(--text-secondary)}@media (width<=620px){.site-header{flex-wrap:wrap;gap:12px;height:auto;min-height:70px;padding:14px 15px}.header-nav{flex:1;justify-content:flex-end}}@media (width<=420px){.header-nav{flex:0 0 100%;justify-content:space-between}}.app-layout.refining{grid-template-columns:minmax(0,1fr) 300px;align-items:start;gap:24px}.workspace-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.workspace-actions>button{white-space:nowrap;padding:8px 11px;font-size:11px}.mode-toggle[aria-pressed=true]{color:var(--gold);border-color:var(--accent-border);background:var(--accent-soft)}.editor-entry{border-top:1px solid var(--line-strong);background:var(--surface-soft);justify-content:space-between;align-items:center;gap:16px;padding:15px 18px;display:flex}.editor-entry>span,.editor-entry p{color:var(--muted);font-size:11px;line-height:1.8}.editor-entry>button{color:var(--gold);border-color:var(--accent-border);background:var(--accent-soft);flex-shrink:0;font-size:11px}.refinement-panel{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent;border:1px solid var(--line-strong);background:var(--surface);min-width:0;max-height:calc(100dvh - 140px);box-shadow:0 12px 36px var(--shadow-medium);border-radius:12px;align-self:start;padding:16px;position:sticky;top:20px;overflow:auto}.refinement-heading{justify-content:space-between;align-items:center;gap:8px;padding-bottom:14px;display:flex}.refinement-heading h2{letter-spacing:.5px;white-space:nowrap;font-size:16px;font-weight:500}.refinement-heading-actions{flex-shrink:0;align-items:center;gap:5px;display:flex}.refinement-heading-actions>button{min-height:30px;color:var(--muted);white-space:nowrap;gap:4px;padding:5px 7px;font-size:10px}.refinement-heading-actions>.history-toggle[aria-expanded=true]{color:var(--gold);border-color:var(--accent-border);background:var(--accent-soft)}.history-toggle-chevron{line-height:1;transition:transform .15s;display:inline-block}.history-toggle[aria-expanded=true] .history-toggle-chevron{transform:rotate(180deg)}.refinement-panel .edit-tools{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;display:grid}.refinement-panel .editor-bar{background:0 0;border:0;padding:0;display:block}.refinement-panel .edit-tools>button{border-color:var(--line);gap:5px;min-height:36px;padding:7px 4px;font-size:11px}.refinement-panel .edit-tools>button.active,.refinement-panel .edit-tools>button[aria-pressed=true]{border-color:var(--accent-border);background:var(--accent-soft);color:var(--gold)}.refinement-panel .edit-tools>button:last-child{grid-column:1/-1;min-height:32px;margin-top:2px}.text-tool{color:var(--text-secondary);padding:0 0 16px;font-size:11px}.text-groups-heading{justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px;display:flex}.text-groups-heading button{padding:6px 8px;font-size:11px}.text-groups-heading span{color:var(--muted);font-weight:400}.text-group-list{flex-direction:column;gap:5px;max-height:160px;margin-bottom:10px;display:flex;overflow:auto}.text-group-list button{justify-content:flex-start;gap:8px;min-width:0;padding:7px 9px;font-size:11px}.text-group-row{flex-shrink:0;min-width:0;position:relative}.text-group-list .text-group-select{width:100%;padding-right:39px}.text-group-list button[aria-pressed=true]{border-color:var(--gold);background:var(--accent-soft);color:var(--gold)}.text-group-order-hint{margin-bottom:8px}.text-group-list button[data-reorder-handle=true]{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}.text-group-grip{color:var(--muted);font-size:15px;line-height:1}.text-group-list button.text-group-dragging,.editor-layer-row.dragging{opacity:.45;cursor:grabbing}.text-group-list button.text-group-drop-before,.editor-layer-row.drop-before{box-shadow:inset 0 2px 0 var(--gold)}.text-group-list button.text-group-drop-after,.editor-layer-row.drop-after{box-shadow:inset 0 -2px 0 var(--gold)}.text-group-list strong{text-overflow:ellipsis;white-space:nowrap;text-align:left;flex:1;min-width:0;font-weight:500;overflow:hidden}.text-group-list small{color:var(--muted);white-space:nowrap;font-size:9px}.text-group-current{color:var(--muted);margin:8px 0 10px;font-size:10px}.text-group-list .text-group-delete{width:28px;height:28px;color:var(--muted);background:0 0;border:0;justify-content:center;padding:0;font-size:20px;line-height:1;position:absolute;top:50%;right:5px;transform:translateY(-50%)}.text-group-list .text-group-delete:hover:not(:disabled){color:var(--danger);background:var(--danger-soft)}.pattern-canvas.text-positioning{cursor:default}.pattern-canvas.text-grabbable{cursor:grab}.pattern-canvas.text-dragging{cursor:grabbing}.pattern-canvas.text-resizing{cursor:nwse-resize}.text-content-label{display:block}.text-tool textarea{resize:vertical;border:1px solid var(--line-strong);background:var(--surface-soft);width:100%;min-height:78px;color:var(--text);font:inherit;border-radius:5px;margin-top:7px;padding:10px 11px;line-height:1.7;display:block}.text-tool textarea:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.text-tool .field-pair{margin-top:12px}.budget-field{min-width:0;font-size:11px;position:relative}.budget-field>label{color:var(--text-secondary);display:block}.budget-field>input{margin-top:7px;font-size:12px}.wallpaper-budget-settings{margin:10px 0 14px}.wallpaper-budget-settings>.field-pair{margin-top:0}.budget-input-error{color:var(--danger);margin-top:10px;font-size:11px;line-height:1.7}.budget-field input[aria-invalid=true]{border-color:var(--danger)}.result-stats .garden-coin-stat{min-width:0}.result-stats .garden-coin-stat strong{white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.result-stats .garden-coin-note{margin-top:8px;font-size:9px;line-height:1.6}.preset-row{flex-wrap:wrap}.budget-max{height:14px;color:var(--gold);border-radius:3px;padding:0 3px;font-size:9px;line-height:1;position:absolute;top:0;right:0}.text-tool-actions{gap:8px;margin-top:12px;display:flex}.text-tool-actions>button{flex:1;min-height:36px;font-size:11px}.text-tool-error{color:var(--danger);margin-top:8px;font-size:11px;line-height:1.7}.refinement-panel .edit-tools kbd{margin-left:3px}.refinement-panel .editor-hint{padding:11px 0 14px;font-size:10px;line-height:1.8}.brush-size-control{border:1px solid var(--line);background:var(--surface-soft);border-radius:6px;margin-top:12px;padding:10px}.brush-size-control label{color:var(--text-secondary);justify-content:space-between;align-items:center;font-size:11px;display:flex}.brush-size-control output{color:var(--gold);font-variant-numeric:tabular-nums}.brush-size-control input{width:100%;margin:10px 0;display:block}.brush-size-presets{gap:4px;display:flex}.brush-size-presets button{flex:1;min-width:0;padding:4px 0;font-size:10px}.brush-size-presets button[aria-pressed=true]{color:var(--gold);background:var(--accent-soft);border-color:var(--accent-border)}.result-stats .home-limit-excess{color:var(--danger);margin-top:8px;margin-bottom:8px;font-size:10px;line-height:1.6}.home-limit-warning{border:1px solid var(--danger-border);background:var(--danger-soft);color:var(--danger);border-radius:6px;margin:12px 0;padding:10px 12px;font-size:11px;line-height:1.8}.refinement-actions>.home-limit-warning{grid-column:1/-1;margin:0}.status-line.home-limit-status{color:var(--danger)}.refinement-panel .background-actions{flex-direction:column;align-items:stretch;gap:8px;margin:0 -16px;padding:14px 16px}.refinement-panel .background-actions>button{width:100%;min-height:37px}.refinement-panel .background-actions>span{font-size:10px;line-height:1.7}.refinement-panel .brush-palette{margin:0 -16px;padding:15px 16px}.refinement-panel .brush-palette-heading{align-items:flex-start;gap:8px;margin-bottom:12px}.refinement-panel .current-brush{gap:5px;max-width:100%;font-size:10px;line-height:1.6}.refinement-panel .current-brush i{flex-shrink:0;width:14px;height:14px}.refinement-panel .transparent-choice{justify-content:flex-start;gap:6px;width:100%;margin-bottom:10px;padding:8px;font-size:10px}.refinement-panel .transparent-choice small{font-size:9px}.refinement-panel .brush-colors button{flex-shrink:0;min-height:0}.refinement-panel .brush-palette p{margin-top:12px;font-size:10px;line-height:1.7}.edit-history{border:1px solid var(--line);background:var(--surface-soft);border-radius:8px;margin-bottom:14px;padding:12px 10px}.edit-history[hidden]{display:none}.history-heading{justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px;display:flex}.history-heading h3{font-size:12px;font-weight:500}.history-heading>span{color:var(--muted);font-size:10px}.history-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:10px;display:grid}.history-controls>button{min-width:0;min-height:32px;color:var(--text-secondary);padding:6px 8px;font-size:10px}.history-controls svg{flex-shrink:0;width:13px;height:13px}.edit-history ol{margin:0;padding:0;list-style:none}.edit-history li{margin:0;padding:2px 0;font-size:11px;line-height:1.5}.history-record{width:100%;min-height:44px;color:var(--text-secondary);text-align:left;border:1px solid #0000;border-radius:6px;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;font-size:11px;line-height:1.5;display:flex}.history-record-label{overflow-wrap:anywhere;flex:1;min-width:0}.history-record small{color:var(--muted);margin-top:2px;font-size:9px;display:block}.history-record:hover:not(:disabled){background:var(--surface-hover);border-color:var(--line-strong)}.history-record:focus-visible{outline-offset:-3px}.history-future .history-record{color:var(--muted);background:var(--surface-soft)}.history-current .history-record,.history-record[aria-current=step]{color:var(--gold);background:var(--accent-soft);border-color:var(--accent-border);box-shadow:inset 3px 0 0 var(--gold)}.history-current .history-record:hover:not(:disabled),.history-record[aria-current=step]:hover:not(:disabled){background:var(--accent-soft);border-color:var(--gold)}.history-position{border:1px solid var(--accent-border);color:var(--gold);white-space:nowrap;border-radius:4px;flex-shrink:0;align-self:center;padding:2px 5px;font-size:9px;line-height:1.5}.edit-history>p{color:var(--muted);padding:2px 0 8px;font-size:10px;line-height:1.8}.edit-history>.history-hint{margin-bottom:7px;padding:0}.editor-save-state{color:var(--success);align-items:flex-start;gap:7px;padding:12px 0;font-size:10px;line-height:1.7;display:flex}.editor-save-state:before{content:"";background:currentColor;border-radius:50%;flex-shrink:0;width:5px;height:5px;margin-top:6px}.editor-save-state.unsaved{color:var(--gold)}.refinement-actions{z-index:1;border-top:1px solid var(--line);background:var(--surface);box-shadow:0 -6px 15px var(--shadow-faint);grid-template-columns:1fr 1fr;gap:8px;margin:0 -16px -16px;padding:12px 16px 16px;display:grid;position:sticky;bottom:-16px}.refinement-actions>button{gap:5px;min-width:0;min-height:38px;padding:8px 5px;font-size:11px}dialog.unsaved-dialog{width:480px;max-width:calc(100vw - 32px);box-shadow:0 24px 80px var(--shadow-modal);margin:auto;padding:24px;position:fixed;inset:0}dialog.unsaved-dialog::backdrop{background:var(--backdrop);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.text-delete-dialog>p{overflow-wrap:anywhere;white-space:pre-wrap;max-height:40vh;overflow:auto}.text-delete-dialog .text-delete-confirm{background:var(--danger);border-color:var(--danger)}.text-delete-dialog .text-delete-confirm:hover:not(:disabled){background:var(--danger);border-color:var(--danger);filter:brightness(.9)}dialog.blank-canvas-dialog{width:440px;max-width:calc(100vw - 32px);margin:auto;padding:24px;position:fixed;inset:0}dialog.blank-canvas-dialog::backdrop{background:var(--backdrop);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.blank-canvas-dialog .modal-heading h2{margin:0;font-size:21px}.blank-canvas-dialog form>p{color:var(--text-secondary);font-size:12px;line-height:1.8}.blank-canvas-dialog form>.blank-canvas-error{color:var(--danger);margin-top:12px}.blank-canvas-actions{justify-content:flex-end;gap:9px;margin-top:24px;display:flex}.blank-canvas-actions>button{font-size:12px}.project-cache-bar{color:var(--muted);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 16px;margin:0 0 12px;font-size:11px;line-height:1.7;display:flex}.project-cache-bar>span{flex:1;min-width:160px}.project-cache-bar.has-error>span{color:var(--danger)}.unsaved-dialog h2{margin-bottom:12px;font-size:19px;font-weight:500;line-height:1.5}.unsaved-dialog>p{color:var(--text-secondary);font-size:12px;line-height:1.9}.unsaved-actions{flex-wrap:wrap;justify-content:flex-end;gap:9px;margin-top:23px;display:flex}.unsaved-actions>button{padding:9px 12px;font-size:11px}@media (width<=1100px){.app-layout.refining{grid-template-columns:minmax(0,1fr) 280px;gap:18px}.refining .workspace-heading{flex-wrap:wrap;align-items:flex-start}.refining .workspace-actions{margin-left:auto}}@media (width<=900px){.app-layout.refining{flex-direction:column;align-items:stretch;gap:20px;display:flex}.refining .workspace{display:contents}.refining .workspace>*{order:4;min-width:0}.refining .workspace>.workspace-heading{order:0}.refining .workspace>.message{order:1}.refining .workspace>.preview-card{order:2}.refinement-panel{overscroll-behavior:auto;order:3;width:100%;max-height:none;position:static;overflow:visible}.refinement-actions{position:static}.refinement-panel .edit-tools{grid-template-columns:repeat(3,minmax(0,1fr))}.refinement-panel .edit-tools>button{min-height:40px}.history-controls>button{min-height:38px}}@media (width<=620px){.workspace-heading{flex-wrap:wrap;align-items:flex-start}.workspace-actions{gap:6px;margin-left:auto}.workspace-actions>button{padding:7px 9px;font-size:10px}.editor-entry{flex-wrap:wrap;align-items:flex-start;gap:12px;padding:14px}.editor-entry>button{min-height:38px;margin-left:auto}dialog.unsaved-dialog{padding:22px 18px}.unsaved-actions{grid-template-columns:1fr 1fr;display:grid}.unsaved-actions>button:last-child{grid-column:1/-1}}.favorite-colors{border-top:1px solid var(--line);padding:15px 0}.favorite-colors-heading{align-items:center;gap:8px;margin-bottom:12px;display:flex}.favorite-colors-heading h3{font-size:12px;font-weight:500}.favorite-colors-heading>span{color:var(--muted);font-variant-numeric:tabular-nums;margin-right:auto;font-size:10px}.favorite-colors-heading>button{min-height:28px;color:var(--text-secondary);margin-left:auto;padding:4px 8px;font-size:10px}.favorite-colors-heading>button.active{border-color:var(--accent-border);background:var(--accent-soft);color:var(--gold)}.favorite-color-slots{grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;padding:3px 0;display:grid}.favorite-color-slot{background:0 0;border:0;border-radius:6px;flex-direction:column;gap:6px;min-width:0;padding:0;display:flex;position:relative}.favorite-color-slot:hover:not(:disabled){background:0 0;border:0}.favorite-color-slot .favorite-color-swatch,.favorite-color-slot.empty>span{aspect-ratio:1;border:1px solid var(--swatch-border);width:100%;height:auto;box-shadow:0 2px 5px var(--shadow-faint);border-radius:6px;flex-shrink:0;place-items:center;display:grid;position:relative}.favorite-color-slot.empty>span{border:1px dashed var(--line-strong);background:var(--surface-soft);color:var(--muted);font-size:18px;font-weight:300;line-height:1}.favorite-color-slot>small{color:var(--muted);font-variant-numeric:tabular-nums;font-size:9px;line-height:1;display:block}.favorite-color-slot:hover:not(:disabled) .favorite-color-swatch,.favorite-color-slot.empty:hover:not(:disabled)>span{border-color:var(--gold-hover)}.favorite-color-slot[aria-pressed=true] .favorite-color-swatch,.favorite-color-slot.selected .favorite-color-swatch,.favorite-color-slot.selected.empty>span{outline:2px solid var(--gold);outline-offset:2px;box-shadow:inset 0 0 0 2px var(--surface)}.favorite-color-slot[aria-pressed=true]>small,.favorite-color-slot.selected>small{color:var(--gold);font-weight:600}.favorite-color-slot.unavailable .favorite-color-swatch:after{content:"";background:var(--text);height:2px;box-shadow:0 0 0 1px var(--surface);border-radius:2px;position:absolute;inset:calc(50% - 1px) 1px auto;transform:rotate(-45deg)}.favorite-colors .favorite-colors-hint,.refinement-panel .favorite-colors .favorite-colors-hint{color:var(--muted);margin-top:10px;font-size:10px;line-height:1.7}.favorite-color-editor{border:1px solid var(--line);background:var(--surface-soft);border-radius:7px;margin-top:11px;padding:10px}.favorite-colors .favorite-color-editor>p,.refinement-panel .favorite-colors .favorite-color-editor>p{color:var(--text-secondary);overflow-wrap:anywhere;margin:0;font-size:10px;line-height:1.7}.favorite-color-actions{gap:6px;margin-top:8px;display:flex}.favorite-color-actions>button{flex:1;min-width:0;min-height:30px;padding:6px 5px;font-size:10px}.favorite-color-actions>button:first-child{border-color:var(--accent-border);background:var(--accent-soft);color:var(--gold)}.favorite-colors .favorite-colors-status,.refinement-panel .favorite-colors .favorite-colors-status{color:var(--success);overflow-wrap:anywhere;margin-top:9px;font-size:10px;line-height:1.7}@media (width<=900px){.favorite-color-slots{gap:8px;max-width:440px}.favorite-color-slot .favorite-color-swatch,.favorite-color-slot.empty>span{border-radius:8px}.favorite-color-actions>button{min-height:36px}}@media (width<=420px){.favorite-color-slots{gap:6px}.favorite-color-slot .favorite-color-swatch,.favorite-color-slot.empty>span{border-radius:6px}}.palette-order-controls{align-items:center;gap:8px;min-width:0;margin:2px 0 12px;display:flex}.palette-order-controls>span{color:var(--muted);flex-shrink:0;font-size:10px}.palette-order-controls .segmented{flex:1;gap:2px;min-width:0;padding:3px}.palette-order-controls .segmented button{min-width:0;min-height:29px;padding:6px 4px;font-size:10px}.brush-color-groups{min-width:0;margin:-4px;padding:4px}.brush-color-family{min-width:0}.brush-color-family+.brush-color-family{margin-top:13px}.brush-color-family-heading{color:var(--muted);justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;font-size:10px;line-height:1.4;display:flex}.brush-color-family-heading strong{color:var(--text-secondary);font-weight:400}.brush-color-family-heading>span{font-variant-numeric:tabular-nums;font-size:9px}.brush-color-groups .brush-colors{grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}.palette-layer-option{color:var(--text-secondary);cursor:pointer;align-items:center;gap:6px;margin-bottom:14px;font-size:11px;display:flex}.palette-layer-option input{margin:0}.palette-layer{min-width:0}.palette-layer+.palette-layer{border-top:1px solid var(--line);margin-top:12px;padding-top:12px}.palette-layer-toggle{border:1px solid var(--line);background:var(--surface-soft);width:100%;min-width:0;min-height:38px;color:var(--text-secondary);text-align:left;border-radius:6px;justify-content:flex-start;align-items:center;gap:8px;padding:8px 10px;display:flex}.palette-layer-toggle[aria-expanded=true]{border-color:var(--accent-border);background:var(--accent-soft);color:var(--gold)}.palette-layer-toggle:hover:not(:disabled){border-color:var(--gold-hover)}.palette-layer-title{flex:1;min-width:0;font-size:11px;font-weight:500;line-height:1.5}.palette-layer-count{font-variant-numeric:tabular-nums;color:var(--muted);flex-shrink:0;font-size:10px;line-height:1.5}.palette-layer-chevron{text-align:center;flex-shrink:0;width:12px;font-size:15px;line-height:1;transition:transform .15s;display:inline-block}.palette-layer-toggle[aria-expanded=true] .palette-layer-chevron{transform:rotate(180deg)}.palette-layer-content{min-width:0;padding-top:12px}.palette-layer-content[hidden]{display:none}.local-zoom-frame{flex-shrink:0;width:100%;min-width:0;margin:auto}.local-zoom-frame.is-zoomed,.canvas-stage.standalone-stage{overflow:hidden}.preview-controls .fullscreen-toggle{border-color:var(--line-strong);white-space:nowrap;margin-right:8px}.preview-controls .fullscreen-toggle[aria-pressed=true]{color:var(--gold);background:var(--accent-soft)}.app-layout.refining.editor-fullscreen{z-index:10;background:var(--page);grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr) 300px;align-items:stretch;gap:12px;width:100%;max-width:none;height:100dvh;margin:0;padding:12px;display:grid;position:fixed;inset:0;overflow:hidden}.editor-fullscreen .workspace{flex-direction:column;min-height:0;display:flex;overflow:hidden}.editor-fullscreen .workspace>:not(.preview-card):not(.message){display:none}.editor-fullscreen .workspace>.message{flex-shrink:0;max-height:20vh;overflow:auto}.editor-fullscreen .preview-card{flex-direction:column;flex:1;width:100%;min-height:0;display:flex}.editor-fullscreen .preview-toolbar,.editor-fullscreen .preview-shortcuts{flex-shrink:0}.editor-fullscreen .canvas-stage{flex:1;justify-content:center;min-height:0;overflow:hidden}.editor-fullscreen .canvas-stage>.stage-note{display:none}.editor-fullscreen .compare-pair{grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr) minmax(0,1fr);height:100%;min-height:0}.editor-fullscreen .compare-pair figure{flex-direction:column;max-width:none;height:100%;min-height:0;display:flex}.editor-fullscreen .compare-pair figcaption{flex-shrink:0}.editor-fullscreen .refinement-panel{order:initial;overscroll-behavior:contain;align-self:stretch;width:auto;height:100%;min-height:0;max-height:none;position:relative;top:auto;overflow:auto}.editor-fullscreen .refinement-actions{position:sticky}@media (width<=700px){.app-layout.refining.editor-fullscreen{grid-template-rows:minmax(0,1fr) minmax(0,36dvh);grid-template-columns:minmax(0,1fr);gap:6px;padding:6px}.editor-fullscreen .preview-toolbar{flex-wrap:wrap}.editor-fullscreen .canvas-stage,.editor-fullscreen .refinement-panel{padding:12px}.editor-fullscreen .refinement-actions{margin-bottom:-12px;bottom:-12px}}.local-zoom-content{transform-origin:0 0;width:100%;position:relative}.brush-preview{pointer-events:none;z-index:2;position:absolute;overflow:hidden}:root{--picker-cursor:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%3e%3cg%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpath%20d='M3%2029%205%2023%2017%2011%2021%2015%209%2027Z%20M15%209%2023%2017%20M19%2011%2025%205Q28%202%2030%205Q32%207%2029%2010L23%2016'%20fill='none'%20stroke='%23fff'%20stroke-width='3.5'/%3e%3cpath%20d='M3%2029%205%2023%2017%2011%2021%2015%209%2027Z'%20fill='%23fff'%20stroke='%2329231c'%20stroke-width='1.3'/%3e%3cpath%20d='M19%2011%2025%205Q28%202%2030%205Q32%207%2029%2010L23%2016'%20fill='%2329231c'%20stroke='%2329231c'%20stroke-width='1.3'/%3e%3cpath%20d='M15%209%2023%2017%20M7%2023%2016%2014'%20fill='none'%20stroke='%2329231c'%20stroke-width='1.3'/%3e%3c/g%3e%3c/svg%3e") 3 29,crosshair}.pattern-canvas.picking,.source-picking,.local-zoom-frame.temporary-picking .pattern-canvas.editing,.local-zoom-frame.temporary-picking img{cursor:var(--picker-cursor)}.selection-overlay{touch-action:none;cursor:crosshair;-webkit-user-select:none;user-select:none;width:100%;height:100%;position:absolute;inset:0}.selection-panel{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:16px;font-size:11px}.selection-heading{justify-content:space-between;align-items:center;gap:8px;display:flex}.selection-heading>div{gap:5px;display:flex}.selection-heading button{padding:5px 8px;font-size:10px}.selection-panel p{color:var(--text-secondary);margin-top:10px;font-size:10px;line-height:1.8}.selection-colors{gap:5px;max-height:230px;margin-top:12px;padding:2px;display:grid;overflow:auto}.selection-colors button{justify-content:flex-start;min-width:0;padding:7px;font-size:11px}.selection-colors button[aria-pressed=true]{border-color:var(--gold);background:var(--accent-soft)}.selection-colors i{border:1px solid var(--line-strong);border-radius:3px;flex:none;width:22px;height:22px}.selection-colors span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.selection-colors small{white-space:nowrap;color:var(--muted);margin-left:auto;font-size:10px}.selection-apply{width:100%;margin-top:10px;font-size:11px}.local-zoom-content>img{width:100%;height:auto;max-height:none;margin:0;display:block}.local-zoom-frame.pan-ready,.local-zoom-frame.pan-ready *{cursor:grab}.local-zoom-frame.is-panning,.local-zoom-frame.is-panning *{cursor:grabbing;-webkit-user-select:none;user-select:none}.preview-shortcuts{border-bottom:1px solid var(--line);background:var(--surface-soft);color:var(--text-secondary);flex-wrap:wrap;align-items:center;gap:6px 18px;padding:8px 15px;font-size:10px;line-height:1.6;display:flex}.preview-shortcuts>span{white-space:nowrap;align-items:center;gap:4px;display:inline-flex}.preview-shortcuts>button{font:inherit;color:inherit;white-space:nowrap;border:0;border-radius:0;gap:4px;padding:0}.preview-shortcuts>button:hover:not(:disabled){color:var(--gold);background:0 0}.preview-shortcuts kbd{font:inherit;border:1px solid var(--line-strong);color:var(--gold);background:var(--surface);border-radius:3px;padding:0 4px;font-size:10px}dialog.png-preview-dialog{width:1120px;max-width:calc(100vw - 32px);height:min(900px,90dvh);max-height:90dvh;margin:auto;padding:22px;position:fixed;inset:0;overflow:hidden}dialog.png-preview-dialog[open]{flex-direction:column;gap:14px;display:flex}dialog.png-preview-dialog::backdrop{background:var(--backdrop);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.png-preview-dialog .modal-heading{flex-shrink:0;margin:0}.png-preview-dialog .modal-heading h2{margin:0;font-size:21px}.png-preview-toolbar{flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;display:flex}.png-preview-toolbar p{color:var(--text-secondary);font-size:12px;line-height:1.7}.png-preview-toolbar .segmented{flex-shrink:0}.png-preview-image{background:var(--surface);border:1px solid var(--line);border-radius:7px;flex:1;justify-content:center;align-items:center;min-height:0;padding:12px;display:flex;overflow:auto}.png-preview-image>img{object-fit:contain;width:auto;max-width:100%;height:auto;max-height:100%;display:block}.png-preview-image.detail{display:block}.png-preview-image.detail>img{max-width:none;max-height:none}.png-preview-image>p{color:var(--muted);font-size:13px}.png-preview-actions{flex-shrink:0;align-items:center;gap:10px;display:flex}.png-preview-actions>span{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--muted);margin-right:auto;font-size:12px;overflow:hidden}.png-preview-actions>button{flex-shrink:0;font-size:12px}.png-preview-error{color:var(--danger);align-items:center;gap:12px;font-size:12px;display:flex}@media (width<=620px){dialog.png-preview-dialog{gap:12px;padding:15px}.png-preview-toolbar{flex-direction:column;align-items:flex-start}.png-preview-actions{flex-wrap:wrap;justify-content:flex-end}.png-preview-actions>span{width:100%}}dialog.blueprint-export-dialog{overscroll-behavior:contain;width:min(680px,100vw - 32px);max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:24px;position:fixed;inset:0;overflow:auto}.blueprint-export-dialog::backdrop{background:#0000008c}.export-choice-intro,.map-placement-intro{color:var(--text-secondary);margin:12px 0 18px;font-size:13px;line-height:1.7}.blueprint-export-choices{grid-template-columns:1fr 1fr;gap:14px;display:grid}.blueprint-export-dialog>.hint+.blueprint-export-choices{margin-top:14px}.blueprint-export-choice{text-align:left;white-space:normal;background:var(--surface-soft);flex-direction:column;align-items:flex-start;gap:12px;padding:22px;line-height:1.7}.blueprint-export-choice strong{color:var(--text);font-size:18px}.blueprint-export-choice span{color:var(--text-secondary);font-size:13px}.blueprint-export-choice small{color:var(--muted);font-size:11px}.blueprint-export-choice[aria-pressed=true]{border-color:var(--gold);background:var(--accent-soft)}dialog.map-placement-dialog{scrollbar-gutter:stable;width:min(1040px,100vw - 32px);margin:0 auto;top:16px;bottom:auto}.map-placement-layout{grid-template-columns:minmax(0,1fr) 230px;align-items:start;gap:24px;display:grid}.map-placement-canvas{background:var(--surface-soft);border:1px solid var(--line);border-radius:8px;min-width:0;padding:10px}.map-placement-canvas svg{touch-action:none;-webkit-user-select:none;user-select:none;width:100%;max-height:65dvh;display:block;overflow:visible}.map-placement-canvas>p{text-align:center;color:var(--muted);margin-top:8px;font-size:11px;line-height:1.6}.map-observation-caption{display:block}.map-land{fill:var(--surface);stroke:var(--line-strong);stroke-width:.7px}.map-grid{color:var(--line-strong)}.map-centre{stroke:var(--gold);stroke-width:.35px;stroke-dasharray:2 2;opacity:.65;fill:none}.map-dimension{fill:var(--text-secondary);font-size:4px}.map-artwork{cursor:grab}.map-artwork:active{cursor:grabbing}.map-artwork-outline{fill:none;stroke:var(--gold);stroke-width:.8px;pointer-events:none}.map-artwork.invalid .map-artwork-outline{stroke:var(--danger)}.map-artwork-centre{fill:var(--surface);stroke:var(--gold);stroke-width:.6px;pointer-events:none}.map-rotation-line{stroke:var(--gold);stroke-width:.6px;pointer-events:none}.map-rotation-handle{fill:var(--gold);stroke:var(--surface);stroke-width:.8px;cursor:crosshair}.map-wall-footprint{fill:var(--gold)}.map-front-direction{pointer-events:none;color:var(--text)}.map-front-direction path{fill:none;stroke:currentColor;stroke-width:1.1px;stroke-linecap:round;stroke-linejoin:round}.map-front-direction text{fill:currentColor;paint-order:stroke;stroke:var(--surface-soft);stroke-width:1.5px;stroke-linejoin:round;font-size:6px;font-weight:700}.map-light-direction{pointer-events:none;color:var(--gold)}.map-light-direction circle,.map-light-direction path{fill:none;stroke:currentColor;stroke-width:1.1px;stroke-linecap:round;stroke-linejoin:round}.map-light-direction text{fill:var(--text);font-size:6px;font-weight:600}.map-artwork [role=button]:focus-visible{filter:drop-shadow(0 0 1px var(--gold));outline:none}.map-placement-controls{flex-direction:column;gap:12px;display:flex}.map-placement-controls label{color:var(--text-secondary);flex-direction:column;gap:5px;font-size:12px;display:flex}.map-orientation-controls{color:var(--text-secondary);flex-direction:column;grid-column:1/-1;gap:6px;font-size:12px;display:flex}.map-orientation-controls .segmented{width:100%}.map-orientation-controls .segmented button{flex:1;padding:8px 5px}.map-orientation-controls small{color:var(--muted);font-size:11px;line-height:1.6}.site-footer{align-items:center;gap:16px}.result-stats .cloth-pack-stat{border:1px solid var(--accent-border);background:var(--accent-soft);border-radius:6px;align-items:center;gap:10px;max-width:100%;margin-top:8px;padding:4px 8px;line-height:1.5;display:inline-flex}.result-stats .cloth-pack-stat>span{color:var(--text-secondary);white-space:nowrap;font-size:10px}.result-stats .cloth-pack-stat>b{color:var(--gold);font-variant-numeric:tabular-nums;font-size:13px;font-weight:600}.variant-balance-control{border-top:1px solid var(--line);margin-top:16px;padding-top:14px}.variant-balance-control .check-field{margin:0;font-size:12px}.variant-balance-details{margin-top:12px;font-size:11px}.variant-balance-details summary{cursor:pointer;color:var(--gold);flex-wrap:wrap;justify-content:space-between;gap:6px 16px;line-height:1.8;display:flex}.variant-balance-details summary>span{color:var(--muted);font-variant-numeric:tabular-nums}.variant-balance-table{border:1px solid var(--line);border-radius:6px;max-height:260px;margin-top:10px;overflow:auto}.variant-balance-table table{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%}.variant-balance-table caption{text-align:left;color:var(--muted);padding:10px;font-size:10px}.variant-balance-table th,.variant-balance-table td{border-top:1px solid var(--line);text-align:right;padding:8px 12px;font-weight:400}.variant-balance-table th:first-child{text-align:left}.variant-balance-table thead th{color:var(--muted);background:var(--surface-soft)}.variant-balance-table tbody th i{border:1px solid var(--swatch-border);vertical-align:-1px;border-radius:2px;width:11px;height:11px;margin-right:7px;display:inline-block}.site-footer-meta{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:12px 20px;display:flex}.site-page-views{border:1px solid var(--accent-border);background:var(--surface);min-width:152px;box-shadow:0 3px 12px var(--shadow-faint);white-space:nowrap;border-radius:12px;flex-shrink:0;align-items:center;gap:11px;padding:10px 16px 10px 11px;display:inline-flex}.page-views-icon{background:var(--accent-soft);width:34px;height:34px;color:var(--gold);border-radius:9px;flex-shrink:0;place-items:center;display:grid}.page-views-copy{flex-direction:column;gap:3px;display:flex}.page-views-label{letter-spacing:1px;color:var(--text-secondary);font-size:10px;line-height:1.4}.page-views-total{align-items:baseline;gap:7px;line-height:1.2;display:flex}.page-views-total strong{letter-spacing:.3px;color:var(--gold);font-variant-numeric:tabular-nums;font-size:20px;font-weight:600}.page-views-total small{color:var(--muted);letter-spacing:0;font-size:9px;font-weight:400}@media (width<=700px){.site-footer{align-items:flex-start;gap:14px}.site-footer-meta{justify-content:flex-start;gap:12px 16px;width:100%}.site-page-views{min-width:145px}}.map-height-summary{color:var(--text-secondary);grid-column:1/-1;font-size:12px;line-height:1.7}.map-artwork-summary{color:var(--text-secondary);align-items:center;gap:10px;font-size:12px;line-height:1.7;display:flex}.map-artwork-summary img{object-fit:contain;width:64px;height:64px;image-rendering:pixelated;background:var(--surface-soft);border:1px solid var(--line);border-radius:4px}.map-turn-actions{gap:8px;display:flex}.map-turn-actions button{flex:1}.map-placement-error{color:var(--danger);margin-top:12px;font-size:13px;line-height:1.7}.blueprint-export-actions{justify-content:space-between;gap:12px;margin-top:20px;display:flex}.observation-controls{border:1px solid var(--line);background:var(--surface-soft);border-radius:8px;margin-top:8px;padding:16px}.observation-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.observation-heading>span{color:var(--muted);font-size:11px}.observation-collapse{opacity:0;grid-template-rows:0fr;transition:grid-template-rows .22s,opacity .22s;display:grid}.observation-collapse.is-expanded{opacity:1;grid-template-rows:1fr}.observation-collapse-inner{min-height:0;overflow:hidden}.observation-shooting{color:var(--text-secondary);margin-top:12px;font-size:11px;line-height:1.8}.observation-check{align-items:center;gap:8px;font-size:12px;flex-direction:row!important;display:flex!important}.observation-check input{flex:none}.observation-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:18px;display:grid}.observation-field-group{flex-direction:column;gap:10px;min-width:0;display:flex}.observation-field-group>strong{color:var(--text);font-size:12px}.observation-field-group label{color:var(--text-secondary);flex-direction:column;gap:5px;font-size:11px;display:flex}.observation-field-group input,.observation-field-group select,.observation-field-group button{font-size:12px}.observation-field-group button{align-self:flex-start}.observation-height-adjust{grid-template-columns:minmax(0,1fr) 145px;align-items:start;gap:14px;display:grid}.observation-height-range input{min-height:20px;margin:9px 0 0}.observation-height-range>span{color:var(--muted);justify-content:space-between;display:flex}.observation-height-range small{font-size:10px}.observation-height-presets{flex-wrap:wrap;gap:5px;display:flex}.observation-height-presets button{padding:5px 8px;font-size:11px}.observation-height-presets button[aria-pressed=true]{color:var(--gold);border-color:var(--gold)}.observation-pair{grid-template-columns:1fr 1fr;gap:10px;display:grid}.observation-fields .hint{margin-top:0}.observation-color-result{align-items:center;gap:9px;font-size:12px;display:flex}.observation-color-result>i{border:1px solid var(--line-strong);border-radius:5px;flex:none;width:30px;height:30px}.observation-color-result small{color:var(--muted);margin-top:4px;font-size:10px;line-height:1.6;display:block}.observation-comparison{grid-template-columns:1fr 1fr;gap:8px;display:grid}.observation-comparison figure{min-width:0;margin:0}.observation-comparison svg{border:1px solid var(--line);background:var(--surface);width:100%;display:block}.observation-comparison figcaption{text-align:center;color:var(--muted);margin-top:5px;font-size:10px}.observation-markers{color:var(--gold);border:1px solid var(--line);border-radius:6px;padding:10px 12px;font-size:12px;line-height:1.7}.observation-markers ol{margin:8px 0 0;padding-left:20px}.map-observation-footprint{stroke:var(--gold);stroke-width:.8px;stroke-dasharray:1.5 1;fill-opacity:.75;pointer-events:none}.map-observation [role=button]{cursor:move;outline:none}.map-observation [role=button] circle{fill:var(--surface);fill-opacity:.8;stroke:var(--gold);stroke-width:.8px}.map-observation [role=button] path{fill:none;stroke:var(--gold);stroke-width:1px;pointer-events:none}.map-observation [role=button]:focus circle{stroke-width:1.5px;stroke:var(--text)}.map-observation text{fill:var(--text);paint-order:stroke;stroke:var(--surface);stroke-width:1.1px;pointer-events:none;font-size:4px}@media (width<=760px){.observation-fields{grid-template-columns:1fr}.observation-field-group+.observation-field-group{border-top:1px solid var(--line);padding-top:14px}}@media (width<=700px){.blueprint-export-choices,.map-placement-layout{grid-template-columns:1fr}.map-placement-controls{grid-template-columns:1fr 1fr;display:grid}.map-artwork-summary,.map-placement-controls>.hint{grid-column:1/-1}.map-placement-canvas svg{max-height:52dvh}.blueprint-export-actions{flex-wrap:wrap}dialog.blueprint-export-dialog{padding:16px}}.site-sections{align-self:center;align-items:center;gap:12px;margin-left:clamp(24px,4vw,80px);margin-right:auto;display:flex}.site-sections a{border:1px solid var(--line);background:var(--surface-soft);min-height:44px;color:var(--text-secondary);letter-spacing:1px;white-space:nowrap;border-radius:12px;justify-content:center;align-items:center;gap:9px;padding:0 15px;font-size:13px;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,transform .2s;display:inline-flex}.site-sections .section-icon{color:var(--gold);flex-shrink:0}.site-sections .section-arrow{opacity:.5;flex-shrink:0;transition:transform .2s,opacity .2s}.site-sections a[aria-current=page]{color:var(--gold);border-color:var(--accent-border);background:var(--accent-soft);box-shadow:inset 0 1px 0 var(--surface)}.site-sections a[aria-current=page] .section-arrow{opacity:1}@media (hover:hover){.site-sections a:hover{color:var(--gold);border-color:var(--accent-border);background:var(--accent-soft);box-shadow:0 4px 12px var(--shadow-soft);transform:translateY(-1px)}.site-sections a:hover .section-arrow{opacity:1;transform:translate(2px)}}.site-sections a:active{box-shadow:inset 0 1px 3px var(--shadow-medium);transform:translateY(0)scale(.97)}.site-sections a:focus-visible{outline:2px solid var(--gold);outline-offset:4px}@media (prefers-reduced-motion:reduce){.site-sections a,.site-sections .section-arrow{transition:none}.site-sections a:hover,.site-sections a:active,.site-sections a:hover .section-arrow{transform:none}}.gallery-return{color:var(--gold);border:1px solid var(--accent-border);border-radius:6px;align-items:center;gap:12px;padding:9px 13px;font-size:12px;display:inline-flex}.gallery-return:hover{background:var(--accent-soft)}html{scrollbar-gutter:stable}.gallery-page{max-width:1720px;min-height:calc(100vh - 210px);margin:auto;padding:52px 38px 70px}.gallery-intro{justify-content:space-between;align-items:center;gap:24px;margin-bottom:34px;display:flex}.gallery-intro h1{letter-spacing:6px;margin:12px 0;font-family:Noto Serif SC,Songti SC,SimSun,serif;font-size:36px;font-weight:500}.gallery-intro p{color:var(--muted);font-size:13px;line-height:1.9}.gallery-grid{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:24px;display:grid}.gallery-artwork{background:var(--surface);border:1px solid var(--line);min-width:0;box-shadow:0 6px 20px var(--shadow-soft);border-radius:12px;flex-direction:column;padding:12px;display:flex}.gallery-picture{aspect-ratio:1;background:var(--surface-soft);border:1px solid var(--line);border-radius:7px;justify-content:center;align-items:center;width:100%;min-width:0;padding:8px;display:flex;position:relative;overflow:hidden}.gallery-picture img{object-fit:contain;width:100%;height:100%;image-rendering:pixelated;display:block}.gallery-picture-action{color:#fff;background:#131e30d9;border:1px solid #fff5;border-radius:6px;place-items:center;width:28px;height:28px;font-size:14px;display:grid;position:absolute;bottom:10px;right:10px}.gallery-palette-tag{border:1px solid var(--line);background:var(--surface);color:var(--text-secondary);box-shadow:0 2px 6px var(--shadow-soft);pointer-events:none;border-radius:20px;padding:4px 9px;font-size:11px;line-height:1.5;position:absolute;top:10px;left:10px}.gallery-palette-tag.is-lighting{color:var(--gold);border-color:var(--accent-border)}.gallery-artwork-copy{padding:16px 4px 6px;container-type:inline-size}.gallery-artwork-copy h2{letter-spacing:2px;overflow-wrap:anywhere;margin:0 0 7px;font-family:Noto Serif SC,Songti SC,SimSun,serif;font-size:21px;font-weight:500}.gallery-credit{justify-content:space-between;align-items:center;gap:8px;min-height:24px;display:flex}.gallery-artist{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--muted);font-size:11px;line-height:1.7;overflow:hidden}.gallery-upright-tag{white-space:nowrap;border:1px solid color-mix(in srgb,var(--success) 30%,transparent);background:color-mix(in srgb,var(--success) 8%,var(--surface));color:var(--success);border-radius:20px;flex-shrink:0;align-items:center;padding:3px 9px;font-size:10px;line-height:1.6;display:inline-flex}.gallery-facts{border-top:1px solid var(--line);grid-template-columns:minmax(0,1fr) max-content;gap:16px 10px;margin:16px 0 0;padding-top:16px;display:grid}.gallery-facts dt{color:var(--muted);margin-bottom:7px;font-size:10px}.gallery-facts dd{font-variant-numeric:tabular-nums;margin:0;font-size:15px;line-height:1.6}.gallery-facts small{color:var(--muted);margin-left:4px;font-size:10px}.gallery-facts .gallery-furniture-value{white-space:nowrap;align-items:center;gap:8px;display:flex}.gallery-furniture-value>span:first-child{white-space:nowrap}.gallery-cloth-stock{box-sizing:border-box;border:1px solid var(--accent-border);background:var(--surface);color:var(--gold);text-align:left;font-variant-numeric:tabular-nums;white-space:nowrap;border-radius:20px;flex-shrink:0;align-items:center;gap:5px;margin:0;padding:3px 7px;font-size:11px;line-height:1.5;display:inline-flex}.gallery-cloth-stock strong{overflow-wrap:anywhere;font-weight:500}.gallery-cloth-stock-icon{border:1px solid;border-radius:50%;flex-shrink:0;place-items:center;width:15px;height:15px;font-size:10px;line-height:1;display:grid}.gallery-cloth-stock.is-ready{color:var(--success);border-color:color-mix(in srgb,var(--success) 30%,var(--line))}.gallery-cloth-stock.is-loading{color:var(--muted)}@container (width<=300px){.gallery-facts{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.gallery-facts>div:has(.gallery-furniture-value){grid-column:1/-1}}@media (width<=960px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}}@media (width<=540px){.gallery-grid{grid-template-columns:1fr}}@media (width<=760px){.gallery-page{padding:30px 18px 45px}.gallery-intro{gap:14px;margin-bottom:24px}.gallery-intro h1{font-size:29px}.gallery-intro>.gallery-return{display:none}.site-sections{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;height:auto;margin-left:0;display:grid}.site-sections a{letter-spacing:0;min-width:0;padding:0 9px;font-size:12px}}.shortcut-dialog{width:560px;margin:auto}.shortcut-dialog::backdrop{background:var(--backdrop);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.shortcut-table{border-collapse:collapse;width:100%;margin-top:16px;font-size:12px}.shortcut-table th,.shortcut-table td{text-align:left;border-bottom:1px solid var(--line);padding:10px 8px;line-height:1.7}.shortcut-table th{color:var(--muted);font-weight:500}.shortcut-table kbd{color:var(--gold);font-family:inherit}.shortcut-dialog-actions{justify-content:flex-end;margin-top:18px;display:flex}.update-dialog{overscroll-behavior:contain;width:min(540px,100vw - 32px);max-height:calc(100dvh - 32px);margin:auto;position:fixed;inset:0}.update-dialog::backdrop{background:var(--backdrop);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.update-list{margin:12px 0 0;padding-left:24px}.update-list li{padding-left:6px}.update-list li+li{border-top:1px solid var(--line);margin-top:20px;padding-top:18px}.update-list li::marker{color:var(--gold);font-weight:600}.update-list h3{margin:0 0 8px;font-size:15px}.update-list p{color:var(--text-secondary);margin:0;font-size:13px;line-height:1.9}.update-dialog-actions{justify-content:space-between;align-items:center;gap:16px;margin-top:24px;display:flex}.update-author{color:var(--muted);font-size:12px}.site-footer-brand{flex-direction:column;gap:6px;display:flex}.announcement-entry{color:var(--gold);border:0;padding:4px 0;font-size:11px}.update-history{border-top:1px solid var(--line);margin-top:24px;padding-top:18px}.update-history>h3{color:var(--muted);margin-bottom:10px;font-size:12px;font-weight:500}.update-history details+details{margin-top:12px}.update-history summary{cursor:pointer;color:var(--text-secondary);font-size:12px;line-height:1.8}.update-history summary span{color:var(--gold);margin-right:8px}.update-history .update-author{text-align:right;margin-top:12px}.wallpaper-palette{margin-top:12px}.wallpaper-palette .family-tabs{flex-wrap:wrap;gap:5px;margin-bottom:12px}.wallpaper-grid{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px;padding:3px;display:grid}.wallpaper-grid button{border:1px solid var(--line,#d6d0c6);text-align:center;border-radius:10px;flex-direction:column;align-items:center;gap:5px;padding:8px;display:flex}.wallpaper-grid button.active{outline:2px solid var(--accent,#ad874d);outline-offset:0}.wallpaper-grid img{aspect-ratio:1;object-fit:cover;border-radius:4px;width:100%}.wallpaper-grid strong{font-size:12px;line-height:1.5}.wallpaper-grid small{opacity:.65;font-size:11px}.category-usage{flex-wrap:wrap;gap:8px 24px;padding:10px 0;font-size:13px;display:flex}.category-usage .over{color:#b74632}.wallpaper-scale{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:12px 0;padding:12px 0}.wallpaper-scale-heading{color:var(--text-secondary);justify-content:space-between;align-items:center;margin-bottom:8px;font-size:12px;display:flex}.wallpaper-scale-heading strong{font-weight:500}.wallpaper-scale-heading span{color:var(--muted);font-size:11px}.wallpaper-scale-options{flex-wrap:wrap;gap:4px;display:flex}.wallpaper-scale-options button{font-variant-numeric:tabular-nums;border-radius:5px;min-width:38px;min-height:28px;padding:4px 7px;font-size:11px;line-height:18px}.wallpaper-scale-options button[aria-pressed=true]{color:var(--gold);background:var(--accent-soft);border-color:var(--accent-border);font-weight:500}.wallpaper-scale-detail{color:var(--text-secondary);font-variant-numeric:tabular-nums;margin-top:8px;font-size:11px;line-height:1.6}.wallpaper-scale-hint{color:var(--muted);margin-top:3px;font-size:10px;line-height:1.6}.editor-layers-panel{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:14px 0;padding:14px 0}.editor-layers-heading{justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px;display:flex}.editor-layers-heading strong{font-size:13px}.editor-layers-heading small,.editor-layers-heading>span{color:var(--text-secondary);font-size:10px;font-weight:400}.editor-layers-enable{border:1px solid var(--line);background:var(--surface-soft);text-align:left;border-radius:10px;justify-content:flex-start;gap:12px;width:100%;padding:13px 14px;transition:background .18s,border-color .18s,box-shadow .18s,transform .18s;display:flex}.editor-layers-enable:hover:not(:disabled){background:var(--accent-soft);border-color:var(--accent-border);box-shadow:0 3px 10px var(--shadow-soft)}.editor-layers-enable:active:not(:disabled){box-shadow:none;transform:translateY(1px)}.editor-layers-illustration{border:1px solid var(--accent-border);background:var(--surface);width:44px;height:44px;color:var(--gold);border-radius:10px;flex:0 0 44px;place-items:center;display:grid}.editor-layers-illustration path{transition:transform .2s}.editor-layers-front{fill:var(--accent-soft)}.editor-layers-enable:is(:hover,:focus-visible):not(:disabled) .editor-layers-front{transform:translateY(-2px)}.editor-layers-enable:is(:hover,:focus-visible):not(:disabled) .editor-layers-back{transform:translateY(2px)}.editor-layers-intro-copy{flex:1;gap:5px;min-width:0;display:grid}.editor-layers-intro-copy strong{font-size:13px;font-weight:600;line-height:1.4}.editor-layers-intro-copy>span{color:var(--text-secondary);font-size:11px;line-height:1.6}.editor-layers-enable-action{color:var(--gold);white-space:nowrap;flex-shrink:0;align-items:center;gap:5px;font-size:11px;display:inline-flex}.editor-layers-enable-action svg{transition:transform .18s}.editor-layers-enable:is(:hover,:focus-visible):not(:disabled) .editor-layers-enable-action svg{transform:translate(2px)}.editor-layers-intro-hint{color:var(--muted);margin:8px 2px 0;font-size:10px;line-height:1.7}.editor-layers-controls{animation:.2s ease-out editor-layers-reveal}@keyframes editor-layers-reveal{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.editor-layers-enable,.editor-layers-illustration path,.editor-layers-enable-action svg{transition:none}.editor-layers-controls{animation:none}.editor-layers-enable:active:not(:disabled){transform:none}}.editor-layer-actions{flex-wrap:wrap;gap:6px;margin-bottom:10px;display:flex}.editor-layer-actions button{padding:6px 9px;font-size:11px}.editor-layer-list{grid-template-columns:minmax(0,1fr);gap:5px;max-height:none;display:grid;overflow:visible}.editor-layer-row{border:1px solid var(--line);background:var(--surface-soft);border-radius:6px;align-items:center;gap:4px;min-width:0;padding:5px;display:flex}.editor-layer-row.selected{border-color:var(--accent-border);background:var(--accent-soft)}.editor-layer-row .editor-layer-drag{color:var(--text-secondary);background:0 0;border:0;flex:0 0 16px;justify-content:center;align-items:center;padding:2px;display:flex}.editor-layer-row button[data-reorder-handle=true]{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}.editor-layer-row.dragging button[data-reorder-handle=true]{cursor:grabbing}.list-drag-preview{z-index:10000;opacity:.85;filter:drop-shadow(0 4px 8px #0002);max-height:none;margin:0;padding:0;position:fixed;top:0;left:0;overflow:visible;pointer-events:none!important}.list-drag-preview *{pointer-events:none!important}.editor-layer-row .editor-layer-delete{color:var(--text-secondary);background:0 0;border:0;flex-shrink:0;padding:4px;font-size:18px;line-height:1}.editor-layer-row>button{min-height:30px;padding:5px;font-size:10px}.editor-layer-row .editor-layer-select{text-align:left;background:0 0;border:0;flex:1;align-items:center;gap:8px;min-width:0;display:flex}.editor-layer-row .editor-layer-icon{flex:0 0 30px;justify-content:center;align-items:center;width:30px;height:30px;padding:6px;display:inline-flex}.editor-layer-icon svg{flex-shrink:0}.editor-layer-select small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.editor-layer-select>span:last-child{min-width:0}.editor-layer-select strong{text-overflow:ellipsis;white-space:nowrap;font-size:12px;display:block;overflow:hidden}.editor-layer-select small{color:var(--text-secondary);margin-top:3px;font-size:10px;display:block}.editor-layer-swatch{border:1px solid var(--line);border-radius:4px;flex-shrink:0;width:22px;height:22px}.editor-layer-settings{gap:8px;margin:12px 0;display:grid}.editor-layer-settings label{color:var(--text-secondary);gap:4px;font-size:11px;display:grid}.editor-layer-settings input{box-sizing:border-box;width:100%;min-width:0}.editor-layer-settings>button{justify-self:start;font-size:11px}.editor-layer-saving{color:var(--text-secondary);margin:8px 0;font-size:11px}.editor-layer-settings input[type=text],.editor-layer-settings input:not([type]){border:1px solid var(--line);background:var(--surface-soft);min-height:36px;color:var(--text-primary);border-radius:6px;padding:8px 10px}.experimental-dither-strength{margin:15px 0 0}.experimental-dither-strength input{margin:7px 0 0;display:block}.export-actions .gallery-submit-button,.export-actions button.primary{border-radius:6px;gap:8px;min-width:137px;height:44px;min-height:44px;padding:11px 17px;font-size:12px;font-weight:600;line-height:1.5}.export-actions .gallery-submit-button{border-color:var(--gold);background:var(--gold);color:var(--on-accent);box-shadow:none}.gallery-submit-icon{flex:0 0 18px;justify-content:center;align-items:center;width:18px;height:18px;display:inline-flex}.gallery-submit-icon svg{flex-shrink:0;width:18px;height:18px;display:block}.gallery-submit-copy{white-space:nowrap;min-width:0;line-height:inherit}.export-actions .gallery-submit-button:hover:not(:disabled){border-color:var(--gold-hover);background:var(--gold-hover);color:var(--on-accent)}@media (width<=620px){.export-actions .gallery-submit-button{min-width:0;padding:8px 10px}}.site-header{grid-template-columns:max-content minmax(0,1fr) max-content max-content;grid-template-areas:"brand sections actions account";gap:0 clamp(12px,1vw,20px);height:82px;padding:0 clamp(16px,2vw,38px);display:grid}.site-header>.brand{grid-area:brand;justify-self:start;padding-right:0}.site-header>.header-account{order:initial;grid-area:account;justify-self:end;max-width:190px;margin:0;position:static}.site-header>.site-sections{flex-wrap:nowrap;grid-area:sections;gap:clamp(8px,.7vw,12px);width:max-content;min-width:0;height:auto;margin:0}.site-header>.site-sections>a,.site-header>.site-sections>.site-guestbook-group>a,.site-header>.site-sections .workshop-mode-trigger{padding-left:clamp(9px,.9vw,15px);padding-right:clamp(9px,.9vw,15px)}.site-header>.header-nav{flex-wrap:nowrap;grid-area:actions;justify-self:end;gap:clamp(8px,.8vw,12px);width:max-content;min-width:0}.site-header .privacy{white-space:nowrap;margin-right:0;display:flex}.site-header[data-layout=double],.site-header[data-layout=stacked]{grid-template-columns:minmax(0,1fr) max-content;grid-template-areas:"brand account""sections actions";row-gap:12px;height:auto;padding-top:14px;padding-bottom:14px}.site-header[data-layout=stacked]{grid-template-areas:"brand account""sections sections""actions actions"}@media (width<=760px){.site-header .brand strong{letter-spacing:1px;font-size:17px}.site-header .brand small{font-size:8px}.site-header .brand-mark{width:34px;height:34px}.site-header .brand-mark svg{width:23px;height:23px}.site-header>.site-sections{width:100%}.site-header .privacy{display:none}.site-header>.header-nav{flex-wrap:wrap;justify-content:flex-end;width:100%}}.modal-backdrop,.modal-backdrop>.modal{overscroll-behavior:contain}.touch-preview-hint{display:none!important}.local-zoom-frame.pan-ready{touch-action:none}.preview-controls .pan-toggle[aria-pressed=true]{color:var(--gold);border-color:var(--accent-border);background:var(--accent-soft)}@media (width<=900px){.app-layout:not(.editor-fullscreen){flex-direction:column;align-items:stretch;display:flex}.app-layout>.settings-panel,.workspace,.voxel-workspace{width:100%;min-width:0}.workspace-heading{flex-wrap:wrap}.preview-toolbar{flex-wrap:wrap;min-width:0}.preview-controls{flex-wrap:wrap;justify-content:flex-end;gap:6px;min-width:0}.preview-controls button,.preview-controls label{min-height:40px}.preview-controls button{min-width:40px}.preview-controls .fullscreen-toggle{margin-right:0}.result-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.result-stats>div{min-width:0}.result-stats strong{white-space:normal;overflow-wrap:anywhere}.modal-heading{gap:12px}.modal-heading>button{flex-shrink:0;min-width:40px;min-height:40px}.field-pair{grid-template-columns:repeat(2,minmax(0,1fr))}.field-pair>label{min-width:0}}@media (width<=760px){.site-header>.site-sections{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.site-header>.site-sections>a,.site-header>.site-sections>.site-guestbook-group>a,.site-header>.site-sections .workshop-mode-trigger{letter-spacing:0;gap:5px;min-height:44px;padding-left:6px;padding-right:6px}.site-header>.site-sections .section-arrow,.site-header>.site-sections>.site-guestbook-group>a>.section-icon{display:none}.site-header>.site-sections>.site-guestbook-group{gap:4px}.site-header .header-nav{flex:0 0 100%;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;display:grid}.header-nav>button,.header-nav>.gallery-return{min-width:0;min-height:44px;margin:0;padding:8px 4px;font-size:12px;line-height:1.5}.header-nav>button,.header-nav>.quiet{border:1px solid var(--line)}}@media (width<=359px){.site-header>.site-sections{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=620px){.site-header{padding:14px max(12px,env(safe-area-inset-right)) 14px max(12px,env(safe-area-inset-left));gap:12px}.site-sections a{min-height:44px;line-height:1.5}.site-sections .section-icon{flex-shrink:0}.app-layout:not(.editor-fullscreen){padding:16px max(12px,env(safe-area-inset-right)) 20px max(12px,env(safe-area-inset-left));gap:20px}.settings-panel{padding:18px 16px}.upload-zone>span,.upload-zone>div{min-width:0}.upload-zone img,.upload-icon{flex-shrink:0}.upload-zone.has-image strong{max-width:100%}.upload-zone small{white-space:normal;line-height:1.6}.workspace-heading h2{font-size:18px}.workspace-actions{justify-content:flex-end;width:100%}.workspace-actions>button,.editor-entry>button{min-height:44px;font-size:12px}.preview-toolbar{gap:8px;padding:10px}.preview-toolbar>.segmented{width:100%}.preview-toolbar .segmented button{white-space:normal;min-width:0;min-height:40px;padding:8px 6px;font-size:12px}.preview-toolbar .preview-controls{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;width:100%;margin:0;display:grid}.preview-controls button,.preview-controls .zoom-reset{min-width:0;min-height:44px;padding:6px 2px;font-size:12px}.preview-controls label{justify-content:center;gap:3px;min-height:44px;margin:0;font-size:11px}.preview-controls .pan-toggle{white-space:normal}.preview-controls input[type=checkbox]{flex-shrink:0;margin:0}.preview-shortcuts{gap:6px 12px;padding:10px 12px}.preview-shortcuts>button{min-height:36px}.canvas-stage{min-height:280px;padding:14px}.empty-stage{min-height:360px}.empty-state{width:100%;min-width:0}.sample-art{aspect-ratio:240/177;max-width:calc(100% - 16px);height:auto}.sample-art span{max-width:100%;padding:7px 8px;right:-8px}.result-stats>div{padding:12px 10px}.result-stats strong{font-size:20px;line-height:1.5}.export-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.export-actions button{white-space:normal;min-width:0;min-height:44px;font-size:12px}.refinement-panel .edit-tools>button,.refinement-actions>button{min-height:44px;font-size:12px}.refinement-panel .edit-tools kbd{display:none}.refinement-heading{flex-wrap:wrap}.refinement-heading-actions{margin-left:auto}.refinement-heading-actions>button{min-height:40px}.brush-color-groups .brush-colors{grid-template-columns:repeat(auto-fill,minmax(36px,1fr));gap:8px}.favorite-color-slots{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-width:320px}.favorite-color-slot .favorite-color-swatch,.favorite-color-slot.empty>span{min-height:40px;max-height:56px}.modal-backdrop{padding:8px}dialog.modal{overscroll-behavior:contain;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:16px}.modal .segmented{flex-wrap:wrap;min-width:0}.modal .segmented button{white-space:normal;min-width:0;min-height:40px}.modal .modal-heading h2{overflow-wrap:anywhere;font-size:19px}.blank-canvas-actions,.png-preview-actions{flex-wrap:wrap}.blank-canvas-actions>button,.unsaved-actions>button,.blueprint-export-actions>button,.png-preview-actions>button{min-height:44px}.catalog-color{flex-wrap:wrap;gap:6px;min-width:0;padding-bottom:10px}.catalog-color>span{min-width:0}.catalog-color .catalog-ids{overflow-wrap:anywhere;flex-basis:100%;line-height:1.5;position:static}.modal .map-placement-controls{grid-template-columns:minmax(0,1fr)}.site-footer{padding-bottom:max(20px,env(safe-area-inset-bottom));overflow-wrap:anywhere}}@media (pointer:coarse){.site-header :is(button,a),.mobile-workbench-navigation button,.settings-panel button,.settings-select-option{-webkit-tap-highlight-color:transparent}.site-header .site-helpful-compact:active{background:var(--accent-soft)}:root body input:is([type=number],[type=text],[type=search]),:root body select,:root body textarea{min-height:44px;font-size:16px}input[type=range]{min-height:32px}input[type=checkbox]{width:18px;height:18px}.segmented button,.preset-row button,.brush-size-presets button,.voxel-presets button,.voxel-view-actions button,.voxel-crop-controls button{min-height:44px}.check-field,.voxel-check,.palette-layer-option{min-height:36px}}@media (any-pointer:coarse){.preview-shortcuts>span:not(.touch-preview-hint){display:none}.preview-shortcuts .touch-preview-hint{white-space:normal;font-size:12px;display:block!important}}@media (width<=700px){.app-layout.refining.editor-fullscreen{padding:max(6px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));grid-template-rows:minmax(0,1fr) minmax(0,32dvh)}.editor-fullscreen .preview-shortcuts{display:none}.editor-fullscreen .refinement-panel .background-actions,.editor-fullscreen .refinement-panel .brush-palette,.editor-fullscreen .refinement-actions{margin-left:-12px;margin-right:-12px;padding-left:12px;padding-right:12px}}@media (width<=900px) and (height<=500px){.app-layout.refining.editor-fullscreen{padding:max(6px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr) 240px;gap:6px}.editor-fullscreen .preview-shortcuts{display:none}.editor-fullscreen .refinement-actions{position:static}}.local-zoom-frame{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;position:relative}.canvas-stage[data-page-scroll=true] .local-zoom-frame{touch-action:pan-y}.pattern-canvas.brushing{cursor:none}.local-zoom-frame.pan-ready .pattern-canvas.brushing{cursor:grab}.local-zoom-frame.is-panning .pattern-canvas.brushing{cursor:grabbing}.is-touch-navigating .local-zoom-content{will-change:transform}.tablet-quick-size{white-space:nowrap;background:var(--surface);border:1px solid var(--line-strong);pointer-events:auto;border-radius:14px;align-items:center;gap:7px;min-height:44px;padding:6px 10px;font-size:12px;display:flex;box-shadow:0 4px 18px #0002}.tablet-quick-size input{width:92px;min-width:60px;height:36px;accent-color:var(--gold);margin:0}.tablet-quick-size output{font-variant-numeric:tabular-nums;min-width:30px}.color-picker-preview{z-index:1500;pointer-events:none;-webkit-user-select:none;user-select:none;position:fixed;inset:0}.color-picker-preview[hidden]{display:none}.color-picker-loupe{flex-direction:column;align-items:center;gap:5px;display:flex;position:absolute;transform:translate(-50%)}.color-picker-lens{box-sizing:content-box;background:repeating-conic-gradient(#ccc 0 25%,#fff 0 50%) 0/12px 12px;border:3px solid #fff;border-radius:50%;width:96px;height:96px;position:relative;overflow:hidden;box-shadow:0 0 0 1px #29231c,0 4px 12px #0005}.color-picker-lens canvas{width:96px;height:96px;image-rendering:pixelated;display:block}.color-picker-crosshair{border:1px solid #fff;width:18px;height:18px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #29231c,inset 0 0 0 1px #29231c}.color-picker-target{border:1px solid #fff;border-radius:50%;width:18px;height:18px;position:absolute;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #29231c}.color-picker-target:before,.color-picker-target:after{content:"";background:#fff;position:absolute;box-shadow:0 0 0 1px #29231c}.color-picker-target:before{width:8px;height:1px;top:8px;left:4px}.color-picker-target:after{width:1px;height:8px;top:4px;left:8px}.editor-layer-thumbnail{border:1px solid var(--line-strong);background-color:var(--checker-base);background-image:conic-gradient(var(--checker-tile) 25%,transparent 0 50%,var(--checker-tile) 0 75%,transparent 0);background-size:10px 10px;flex:0 0 38px;justify-content:center;align-items:center;width:38px;height:38px;display:flex;overflow:hidden}.editor-layer-thumbnail canvas{max-width:100%;max-height:100%;image-rendering:pixelated;display:block}.tablet-drawing .editor-layer-row{border-radius:4px;gap:2px;padding:4px 2px}.tablet-drawing .editor-layer-row.selected{border-color:var(--gold);box-shadow:inset 3px 0 var(--gold)}.tablet-drawing .editor-layer-select strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tablet-drawing .editor-layer-row .editor-layer-icon{flex-basis:36px;width:36px;min-height:44px}.tablet-drawing .editor-layer-row .editor-layer-delete{min-width:30px}.tablet-drawing .editor-layer-row .editor-layer-select{touch-action:pan-y}.tablet-drawing,.tablet-drawing *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.tablet-drawing :is(input,textarea,[contenteditable=true]){-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}.tablet-drawing img{-webkit-user-drag:none}.tablet-drawing .canvas-stage{touch-action:none;overscroll-behavior:none}.tablet-drawing button,.tablet-input-settings summary{touch-action:manipulation;min-height:44px;font-size:12px}.tablet-drawing-bar{z-index:6;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;padding:8px;display:flex;position:relative}.tablet-primary-tools,.tablet-panel-tools{background:var(--surface);border:1px solid var(--line-strong);pointer-events:auto;border-radius:14px;align-items:center;gap:4px;padding:6px;display:flex;box-shadow:0 4px 18px #0002}.tablet-primary-tools button{min-width:44px;padding:6px 10px}.tablet-primary-tools button span{display:none}.tablet-primary-tools button[aria-pressed=true],.tablet-panel-tools button[aria-expanded=true],.tablet-brush-presets button[aria-pressed=true]{background:var(--accent-soft);border-color:var(--gold);color:var(--gold)}.tablet-color{border:1px solid var(--line-strong);border-radius:50%;flex-shrink:0;width:22px;height:22px;display:inline-block}.tablet-input-settings summary{cursor:pointer;border-radius:6px;align-items:center;padding:6px 10px;list-style:none;display:flex}.tablet-input-settings summary::-webkit-details-marker{display:none}.tablet-input-settings>div,.tablet-brush-popover{background:var(--surface);border:1px solid var(--line-strong);pointer-events:auto;overscroll-behavior:contain;border-radius:14px;width:min(320px,100vw - 40px);max-height:calc(100dvh - 180px);padding:16px;position:absolute;top:calc(100% + 8px);right:8px;overflow:auto;box-shadow:0 8px 30px #0003}.tablet-input-settings label{align-items:center;gap:10px;min-height:44px;font-size:13px;display:flex}.tablet-input-settings input{flex-shrink:0;width:20px;height:20px}.tablet-input-settings p{color:var(--text-secondary);margin:4px 0 10px;font-size:12px;line-height:1.7}.tablet-brush-popover{left:8px;right:auto}.tablet-popover-heading{justify-content:space-between;align-items:center;margin-bottom:10px;font-size:14px;display:flex}.tablet-popover-heading button{min-width:44px}.tablet-brush-size{align-items:center;gap:10px;font-size:12px;display:flex}.tablet-brush-size input{touch-action:none;flex:1;min-width:70px;min-height:44px}.tablet-brush-size output{min-width:42px}.tablet-brush-presets{gap:4px;margin-top:8px;display:flex}.tablet-brush-presets button{flex:1;min-width:0;padding:4px}.tablet-drawing-feedback{width:100%;max-width:600px;color:var(--text-secondary);text-overflow:ellipsis;white-space:nowrap;pointer-events:none;font-size:11px;line-height:1.6;overflow:hidden}.tablet-drawing .preview-shortcuts{display:none}.tablet-drawing .preview-toolbar{flex-wrap:wrap;gap:6px;padding:6px}.tablet-drawing .preview-controls{flex-wrap:wrap;gap:4px}.tablet-drawing .preview-controls .palette-mode-entry,.tablet-drawing .preview-controls .lighting-preview-entry{display:none}.tablet-drawing .preview-controls .fullscreen-toggle{margin:0}.tablet-drawing .preview-toolbar .segmented button{min-height:40px}.tablet-drawing .refinement-heading{background:var(--surface);z-index:3;gap:8px;padding:8px 0;position:sticky;top:-16px}.tablet-drawing .refinement-panel{touch-action:pan-y;min-width:0;padding:16px}.tablet-drawing .refinement-panel .eyebrow,.tablet-drawing .refinement-panel kbd{display:none}.tablet-drawing .refinement-heading h2{font-size:16px}.tablet-drawing .refinement-heading-actions{gap:4px}.tablet-drawing .refinement-heading-actions button{min-width:44px;padding:6px 8px}.tablet-drawing:not([data-tablet-panel=tools]) .history-toggle{display:none}.tablet-drawing .brush-colors{grid-template-columns:repeat(auto-fill,minmax(38px,1fr))}.tablet-drawing .brush-colors button{min-height:40px}.tablet-drawing .refinement-panel input[type=range]{min-height:44px}.tablet-drawing input:is([type=number],[type=text]),.tablet-drawing select,.tablet-drawing textarea{min-height:44px;font-size:16px}.tablet-drawing[data-tablet-panel=closed]>.refinement-panel,.tablet-drawing[data-tablet-panel=colors]>.refinement-panel>:not(.refinement-heading):not(.brush-size-control):not(.favorite-colors):not(.brush-palette):not(.refinement-actions):not(.editor-save-state){display:none}.tablet-eraser-modes{flex-wrap:wrap;gap:8px;margin-bottom:12px;display:flex}.tablet-eraser-modes button{flex:1;min-height:44px}.tablet-eraser-modes button[aria-pressed=true]{background:var(--accent-soft);border-color:var(--gold);color:var(--gold)}.tablet-eraser-modes p{width:100%;color:var(--text-secondary);font-size:12px;line-height:1.6}.tablet-drawing .brush-size-control input[type=range]{touch-action:none}.tablet-drawing[data-tablet-panel=layers]>.refinement-panel>:not(.refinement-heading):not(.editor-layers-panel):not(.refinement-actions):not(.editor-save-state){display:none}.tablet-drawing:not(.editor-fullscreen)[data-tablet-panel=closed]{grid-template-columns:minmax(0,1fr)}.app-layout.tablet-drawing.editor-fullscreen{isolation:isolate;padding:0;display:block}.tablet-drawing.editor-fullscreen>.workspace,.tablet-drawing.editor-fullscreen .preview-card{border:0;border-radius:0;width:100%;height:100%;position:relative}.tablet-drawing.editor-fullscreen .tablet-drawing-bar{top:max(10px,env(safe-area-inset-top));left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));pointer-events:none;padding:0;position:absolute}.tablet-drawing.editor-fullscreen .canvas-stage{flex:1;height:100%;padding:90px 50px 86px}.tablet-drawing.editor-fullscreen .preview-toolbar{bottom:max(12px,env(safe-area-inset-bottom));z-index:5;border:1px solid var(--line-strong);background:var(--surface);border-radius:14px;justify-content:center;width:max-content;max-width:calc(100% - 24px);position:absolute;left:50%;transform:translate(-50%);box-shadow:0 4px 18px #0002}.tablet-drawing.editor-fullscreen .tablet-drawing-feedback{bottom:max(78px,calc(env(safe-area-inset-bottom) + 66px));background:var(--surface);border:1px solid var(--line);opacity:.9;border-radius:8px;width:auto;max-width:calc(100vw - 40px);padding:5px 10px;position:fixed;left:50%;transform:translate(-50%)}.tablet-drawing.editor-fullscreen>.refinement-panel{--drawing-panel-top:max(86px,calc(env(safe-area-inset-top) + 76px));--drawing-panel-bottom:max(92px,calc(env(safe-area-inset-bottom) + 82px));z-index:5;top:var(--drawing-panel-top);right:max(12px,env(safe-area-inset-right));width:320px;max-width:calc(100% - 24px);height:auto;max-height:calc(100% - var(--drawing-panel-top) - var(--drawing-panel-bottom));border:1px solid var(--line-strong);border-radius:16px;position:absolute;bottom:auto;overflow:auto;box-shadow:0 8px 36px #0003}.tablet-drawing.editor-fullscreen[data-left-handed=true]>.refinement-panel,.tablet-drawing.editor-fullscreen[data-tablet-panel=colors]>.refinement-panel{right:auto;left:max(12px,env(safe-area-inset-left))}.tablet-drawing.editor-fullscreen .refinement-panel .text-tool-panel{display:none}.tablet-drawing.editor-fullscreen .refinement-actions{margin:12px -16px -16px;padding:12px 16px;position:static;bottom:auto}.tablet-drawing.editor-fullscreen .favorite-colors-hint{display:none}@media (width<=700px){.tablet-drawing.editor-fullscreen .canvas-stage{padding:140px 12px}.tablet-drawing.editor-fullscreen .tablet-drawing-bar{gap:6px}.tablet-primary-tools{gap:2px;max-width:100%}.tablet-primary-tools button{min-width:40px;padding:6px 8px}.tablet-drawing.editor-fullscreen>.refinement-panel{--drawing-panel-top:max(142px,calc(env(safe-area-inset-top) + 132px));--drawing-panel-bottom:max(142px,calc(env(safe-area-inset-bottom) + 132px))}.tablet-drawing.editor-fullscreen .preview-toolbar .preview-controls{justify-content:center;width:auto;display:flex}.tablet-drawing.editor-fullscreen .preview-toolbar>.segmented{width:auto}.tablet-drawing.editor-fullscreen .tablet-drawing-feedback{bottom:max(128px,calc(env(safe-area-inset-bottom) + 116px))}}@media (height<=550px){.tablet-drawing.editor-fullscreen .canvas-stage{padding-top:80px;padding-bottom:80px}.tablet-drawing.editor-fullscreen .tablet-drawing-feedback{display:none}.tablet-drawing.editor-fullscreen>.refinement-panel{--drawing-panel-bottom:max(72px,calc(env(safe-area-inset-bottom) + 62px))}}.tablet-drawing-feedback[hidden]{display:none}.auto-hsl-dialog{inset:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);width:min(1420px,calc(100vw - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)));max-width:none;max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:12px;margin:auto;padding:0;position:fixed;overflow:hidden}.auto-hsl-dialog[open]{flex-direction:column;display:flex}.auto-hsl-dialog::backdrop{background:var(--backdrop)}.auto-hsl-dialog>header{flex-shrink:0;justify-content:space-between;align-items:flex-start;gap:20px;padding:24px 28px 18px;display:flex}.auto-hsl-dialog>header>div{min-width:0}.auto-hsl-eyebrow{color:var(--gold);letter-spacing:.06em;margin-bottom:7px;font-size:11px;display:block}.auto-hsl-dialog h2{margin:0 0 8px;font-size:21px;font-weight:500;line-height:1.4}.auto-hsl-dialog p{color:var(--muted);margin:0;font-size:12px;line-height:1.8}.auto-hsl-dialog button{min-height:38px;font-size:12px}.auto-hsl-close{border-radius:8px;flex-shrink:0;min-width:38px;padding:8px}.auto-hsl-close svg{fill:none;stroke:currentColor;stroke-width:1.6px;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px}.auto-hsl-body{overscroll-behavior:contain;min-height:0;padding:0 28px 24px;overflow:auto}.auto-hsl-candidates{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;display:grid}.auto-hsl-comparison-layout{grid-template-columns:minmax(140px,.5fr) minmax(0,2fr);align-items:start;gap:20px;display:grid}.auto-hsl-comparison-layout>.auto-hsl-source{min-width:0}.auto-hsl-candidates.auto-hsl-matrix{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 18px}.auto-hsl-matrix section{flex-direction:column;display:flex}.auto-hsl-matrix h3{flex-wrap:wrap;min-height:32px}.auto-hsl-comparison-layout .auto-hsl-image{height:clamp(110px,20dvh,230px)}.auto-hsl-comparison-layout>.auto-hsl-source img{width:100%;height:100%}.auto-hsl-matrix .auto-hsl-usage{margin-bottom:10px}.auto-hsl-matrix .auto-hsl-use-candidate{margin-top:auto}.auto-hsl-candidates section{min-width:0}.auto-hsl-dialog h3{margin:0 0 11px;font-size:14px;font-weight:500}.auto-hsl-candidates h3,.auto-hsl-source h3{align-items:center;gap:8px;display:flex}.auto-hsl-candidates h3>span,.auto-hsl-source h3>span{border:1px solid var(--line);color:var(--muted);border-radius:4px;padding:2px 6px;font-size:10px;font-weight:400}.auto-hsl-optimized h3>span{color:var(--gold);background:var(--accent-soft)}.auto-hsl-image{border:1px solid var(--line);background:repeating-conic-gradient(var(--checker-base) 0% 25%,var(--checker-tile) 0% 50%) 0 / 16px 16px;border-radius:6px;justify-content:center;align-items:center;height:clamp(200px,37dvh,470px);display:flex;overflow:hidden}.auto-hsl-optimized .auto-hsl-image{border-color:var(--gold)}.auto-hsl-image img{object-fit:contain;width:auto;max-width:100%;height:auto;max-height:100%;display:block}.auto-hsl-image .auto-hsl-pattern{width:100%;height:100%;image-rendering:pixelated;object-fit:contain}.auto-hsl-dialog .auto-hsl-image-info{color:var(--muted);font-variant-numeric:tabular-nums;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:5px;margin-top:8px;font-size:11px;display:flex}.auto-hsl-image-info strong{color:var(--text);font-weight:500}.auto-hsl-use-candidate{width:100%;margin-top:12px}.auto-hsl-dialog .auto-hsl-usage{font-variant-numeric:tabular-nums;margin-top:5px;font-size:10px;line-height:1.7}.auto-hsl-dialog>footer{border-top:1px solid var(--line);background:var(--surface);flex-shrink:0;justify-content:space-between;align-items:center;gap:16px;padding:16px 28px;display:flex}.auto-hsl-dialog>footer>div{gap:10px;display:flex}@media (width<=900px){.auto-hsl-dialog>header{padding:20px 20px 16px}.auto-hsl-body{padding:0 20px 20px}.auto-hsl-candidates{gap:12px}.auto-hsl-image{height:clamp(170px,30dvh,360px)}.auto-hsl-dialog>footer{padding:14px 20px}}@media (width<=620px){.auto-hsl-dialog{width:calc(100vw - 16px - env(safe-area-inset-left) - env(safe-area-inset-right));max-height:calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.auto-hsl-dialog>header{padding:16px 14px}.auto-hsl-dialog h2{font-size:19px}.auto-hsl-body{padding:0 14px 18px}.auto-hsl-candidates{grid-template-columns:1fr;gap:20px}.auto-hsl-image{aspect-ratio:4/3;height:auto;min-height:140px;max-height:60dvh}.auto-hsl-image img,.auto-hsl-image .auto-hsl-pattern{object-fit:contain;width:100%;height:100%}.auto-hsl-dialog h3{margin-bottom:8px;font-size:13px}.auto-hsl-dialog>footer{padding:12px 14px;display:block}.auto-hsl-dialog>footer>p{margin-bottom:8px}.auto-hsl-dialog>footer>div{gap:8px}.auto-hsl-dialog>footer button{flex:1}}@media (width<=900px){.auto-hsl-comparison-layout{grid-template-columns:1fr;gap:16px}.auto-hsl-comparison-layout>.auto-hsl-source{grid-template-columns:120px 1fr;align-items:start;gap:0 14px;display:grid}.auto-hsl-comparison-layout>.auto-hsl-source h3{grid-area:1/2;align-self:end}.auto-hsl-comparison-layout>.auto-hsl-source .auto-hsl-image{aspect-ratio:auto;grid-area:1/1/3;height:90px;min-height:0}.auto-hsl-comparison-layout>.auto-hsl-source .auto-hsl-image-info{grid-area:2/2}}@media (width<=620px){.auto-hsl-candidates.auto-hsl-matrix{gap:18px 10px}.auto-hsl-matrix h3{gap:4px;min-height:38px;font-size:12px}.auto-hsl-matrix .auto-hsl-image{aspect-ratio:4/3;height:auto;min-height:90px;max-height:none}.auto-hsl-matrix .auto-hsl-use-candidate{padding:8px 4px;font-size:12px}.auto-hsl-matrix .auto-hsl-image-info,.auto-hsl-matrix .auto-hsl-usage{font-size:10px}}@media (width<=760px),(pointer:coarse){.auto-hsl-dialog button{min-height:44px}.auto-hsl-close{min-width:44px}}@media (height<=500px){.auto-hsl-dialog>header{padding:8px 14px}.auto-hsl-eyebrow{display:none}.auto-hsl-dialog h2{margin-bottom:4px;font-size:18px}.auto-hsl-body{padding:0 14px 12px}.auto-hsl-dialog>footer{padding:8px 14px}}@media (height<=420px){.auto-hsl-dialog>header p,.auto-hsl-dialog>footer>p{display:none}.auto-hsl-dialog>footer{justify-content:flex-end;display:flex}}
