.builder {padding:28px 0 44px}
.builder-back {color:#586e5a;font-size:14px}
.builder-header,.builder-bottom,.work-caption,.dialog-bar {display:flex;justify-content:space-between;align-items:center;gap:14px}
.builder-header {margin:14px 0 20px;flex-wrap:wrap}
.builder h1 {font-size:clamp(30px,3.4vw,48px)}
.builder h2 {font-size:24px;margin:0 0 14px}
.builder h2:not(:first-child) {margin-top:24px}
.builder-grid {display:grid;grid-template-columns:minmax(185px,.85fr) minmax(280px,2.1fr) minmax(190px,.95fr);gap:14px;align-items:start}
.builder-panel,.builder-work {border:1px solid #d9ded2;background:#fffefb;border-radius:12px;min-width:0}
.builder-panel {padding:16px}
.builder-panel button,.builder-bottom button,.dialog-bar button {font-size:13px;padding:7px 10px}
.builder-panel input,.builder-panel select,.builder-panel textarea {min-width:0;font-size:14px}
.builder-panel h2,.builder-panel label,.builder-panel details {overflow-wrap:anywhere}
.builder-panel details {margin-top:18px;border-top:1px solid #e0e3d9;padding-top:12px}
.builder-panel summary {cursor:pointer;font-weight:600}
.builder-panel audio {width:100%}
.tool-grid,.property-pair {display:grid;grid-template-columns:1fr 1fr;gap:6px}
.tool-grid button {background:#f4f6ee}
.property-pair label {margin:8px 0}
.layer-choice {display:block;width:100%;text-align:left;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.layer-choice.current {background:#e1ecdc;border-color:#789071}
.work-caption,.dialog-bar {padding:11px 15px;border-bottom:1px solid #d9ded2}
.work-caption span {color:#6e776b;font-size:13px}
.canvas-scroll {height:70vh;min-height:360px;overflow:auto;background-color:#e9ebe5;background-image:radial-gradient(#c4c9bf 1px,transparent 1px);background-size:12px 12px;border-radius:0 0 12px 12px;overscroll-behavior:contain}
.design-mat {padding:18px 14px 36px}
#design-canvas,#design-preview,.custom-story {max-width:550px;margin:auto}
#design-canvas {box-shadow:0 3px 15px #33433326}
.layout-board {container-type:inline-size;position:relative;overflow:hidden;width:100%;isolation:isolate}
.layout-item {position:absolute;box-sizing:border-box;display:block;line-height:1.18}
.layout-item img,.layout-item svg,.layout-shape {display:block;width:100%;height:100%}
.layout-text {white-space:pre-wrap;overflow-wrap:anywhere;overflow:hidden;height:100%;line-height:1.18;color:inherit}
.layout-motif {width:100%;height:100%;background:currentColor;mask:url('/art/ornament-horizontal.png') center/100% 100% no-repeat}
#design-canvas .layout-item {touch-action:none;user-select:none;cursor:grab}
#design-canvas .layout-item:active {cursor:grabbing}
#design-canvas .layout-item:hover {outline:1px dashed #678663}
#design-canvas .layout-item.is-selected {outline:2px solid #597e57}
.resize-grip {position:absolute;right:0;bottom:0;transform:translate(25%,25%);width:18px;height:18px;border:2px solid white;border-radius:50%;background:#41683c;cursor:nwse-resize;touch-action:none}
.builder-bottom {margin-top:14px;flex-wrap:wrap}
#design-status {font-size:14px;color:#566e55}
#design-dialog {width:min(590px,95vw);max-height:88vh;padding:0;border:1px solid #d2d8ca;border-radius:14px;color:inherit;background:#f0f0e9}
#design-dialog::backdrop {background:#18271ca6}
.dialog-bar {position:sticky;top:0;z-index:1;background:#fffdf6}
.custom-story {position:relative;background:#fffdf8;--band:#37543f}
.custom-story .response {padding:24px;container-type:inline-size}
.custom-story .response h2 {font-size:28px}
.custom-story .sound-toggle {top:12px;right:12px}
.custom-recipient {text-align:center;padding:16px;margin:0;font:22px Georgia}
@media(max-width:900px){.builder-grid{grid-template-columns:minmax(160px,.8fr) minmax(240px,1.6fr)}.inspector{grid-column:1/-1}.inspector .property-pair{grid-template-columns:repeat(4,1fr)}}
@media(max-width:600px){.builder-grid{display:flex;flex-direction:column}.builder-panel,.builder-work{width:100%}.builder-header .row{width:100%}.canvas-scroll{height:65svh}.tool-grid{grid-template-columns:repeat(3,1fr)}.builder-panel details:not([open]){margin-top:8px}.inspector .property-pair{grid-template-columns:1fr 1fr}.builder-panel{padding:13px}.builder-header button{font-size:13px}.builder{padding-top:18px}}

.layout-shape.cut-down{clip-path:polygon(0 0,100% 0,50% 100%)}
.layout-shape.cut-up{clip-path:polygon(0 100%,100% 100%,50% 0)}
.layout-board [hidden]{display:none!important}
.layout-album-nav{position:absolute;left:10%;width:80%;display:flex;gap:2cqw;align-items:center;justify-content:center;font:400 3cqw Arial}
.layout-album-nav button{padding:0 2cqw;font-size:4cqw}
.layout-board .story-count{--band:#22463a;height:100%;align-items:center}
.layout-board .widget-sample,.layout-board .response{height:100%;text-align:center;background:#fffdf6e8;color:#26342b;padding:3cqw;font:400 3.4cqw Arial;box-sizing:border-box;overflow:auto;container-type:normal}
.layout-board .widget-sample strong,.layout-board .response h2{font:400 5cqw Georgia}
.layout-board .widget-sample span{background:#37543f;color:white;display:inline-block;padding:2cqw}
.layout-board .response label{font-size:3cqw;margin:2cqw 0}
.layout-board .response p{font-size:3cqw}
#design-layers{max-height:36vh;overflow:auto}
