#stool-architecture[hidden]{display:none!important}
.architecture-sheet h2:before{display:none}
#stool-architecture{position:fixed;inset:0;z-index:10045;display:flex;align-items:center;justify-content:center;background:#25252255;padding:16px;font:14px NotoSansJP,sans-serif;color:#373735;box-sizing:border-box}
.architecture-sheet{display:flex;flex-direction:column;width:min(100%,600px);max-height:calc(100dvh - 32px);background:#fff;border-radius:22px;padding:20px;box-sizing:border-box}
.architecture-sheet header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.architecture-sheet h2{font-size:17px;margin:0;font-weight:400}.architecture-sheet header button{width:36px;padding:0;border:0;background:#f3f3ef;border-radius:50%;font-size:22px}
.architecture-content{overflow:auto;min-height:0}.architecture-sheet button{font:inherit;min-height:42px;padding:9px 12px;border:1px solid #d9d9d2;background:#fff;color:inherit;border-radius:10px;cursor:pointer}.architecture-sheet input,.architecture-sheet select{font:16px NotoSansJP,sans-serif;background:#f8f8f5;border:1px solid #d9d9d2;color:inherit;border-radius:8px;min-height:42px;padding:8px;box-sizing:border-box;min-width:0;width:100%}.architecture-ceiling{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:center}.architecture-sheet label{display:grid;gap:6px;font-size:12px;color:#68685f}.architecture-ceiling .architecture-switch{display:flex;align-items:center;gap:10px}.architecture-switch input{width:20px;min-height:20px;accent-color:#373735}.architecture-add{display:flex;gap:8px;margin-top:18px}.architecture-add button{flex:1}#architecture-help{font-size:12px;color:#77776d;line-height:1.7}#architecture-map{display:block;width:100%;max-height:260px;border:1px solid #e8e8e2;border-radius:12px;touch-action:manipulation;cursor:crosshair}#architecture-list{display:flex;overflow:auto;gap:6px;margin:14px 0}#architecture-list button{flex:none;font-size:12px}#architecture-list [aria-pressed=true]{color:white;background:#373735;border-color:#373735}#architecture-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}#architecture-delete,#architecture-convert{font-size:12px;margin-top:14px}#stool-architecture [hidden]{display:none!important}#architecture-error{font-size:12px;line-height:1.7;color:#934c3e}.architecture-sheet footer{padding-top:12px;border-top:1px solid #eee}#architecture-apply{width:100%;background:#373735;color:#fff;border-color:#373735}
#dp-architecture-open{position:absolute;top:82px;left:16px;z-index:20;min-height:40px;padding:8px 13px;background:#ffffffed;border:1px solid #dfdfd8;border-radius:12px;color:#68685f;font:12px NotoSansJP,sans-serif;cursor:pointer}#dp-architecture-open[hidden]{display:none!important}#architecture-menu-open{display:block;width:100%;min-height:44px;margin-top:12px;border:1px solid #d9d9d2;border-radius:12px;background:white;color:#373735;font:inherit}
@media(max-width:600px){#dp-architecture-open{top:138px;left:12px}.architecture-sheet{padding:18px;max-height:calc(100dvh - 24px)}#stool-architecture{padding:12px}}
/* Placement stays ahead of numeric and finish settings, including on phones. */
.architecture-content{display:flex;flex-direction:column;gap:0;overscroll-behavior:contain}
.architecture-add{order:0;margin-top:0;position:sticky;top:0;z-index:2;background:#fff;padding-bottom:8px}
#architecture-help{order:1;margin:4px 0 8px}
.architecture-snap{order:2;display:flex!important;align-items:center;gap:8px!important;min-height:44px;margin-bottom:6px}
.architecture-snap input{width:20px;min-height:20px;accent-color:#373735;padding:0}
#architecture-map{order:3;max-height:none;flex:none;aspect-ratio:520/380;box-sizing:border-box;background:#fff;touch-action:none;user-select:none;-webkit-user-select:none;cursor:default}
#architecture-map [data-kind]{cursor:grab}#architecture-map:active [data-kind]{cursor:grabbing}
.architecture-hit{stroke:transparent;stroke-width:44;vector-effect:non-scaling-stroke;pointer-events:stroke}
.architecture-handle{cursor:crosshair}
.architecture-dimension{font:17px NotoSansJP,sans-serif;fill:#55554e;paint-order:stroke;stroke:#fff;stroke-width:5px;stroke-linejoin:round;pointer-events:none}
.architecture-dimension-line{fill:none;stroke:#a8a89e;stroke-width:1;pointer-events:none}
#architecture-selection{order:4;min-height:24px;font-size:12px;margin:8px 0;color:#68685f;font-variant-numeric:tabular-nums}
#architecture-list{order:5;margin:0 0 12px;min-height:0;flex-shrink:0}
#architecture-fields{order:6}#architecture-delete{order:7;align-self:flex-start}#architecture-convert{order:8;align-self:flex-start}
.architecture-ceiling{order:9;margin-top:22px;padding-top:18px;border-top:1px solid #e8e8e2}
#architecture-finishes{order:10}#architecture-error{order:11}
.architecture-add [aria-pressed=true]{background:#373735;color:#fff;border-color:#373735}
.architecture-sheet button{min-height:44px}.architecture-sheet header button{min-width:44px}
#architecture-wall-modes{order:4;display:flex;gap:8px;margin:0 0 12px;flex-shrink:0}
#architecture-wall-modes button{flex:1;font-size:13px}
#architecture-wall-modes [aria-pressed=true]{background:#373735;border-color:#373735;color:#fff}
.architecture-move-handle{cursor:grab;touch-action:none}
.architecture-move-handle:active{cursor:grabbing}
.architecture-edge-dimension{font-size:18px}
@media(max-height:500px){#stool-architecture{padding:8px}.architecture-sheet{max-height:calc(100dvh - 16px);padding:12px}.architecture-sheet header{margin-bottom:8px}#architecture-map{max-height:220px}.architecture-sheet footer{padding-top:8px}}
