/* Compact opening editor, with a separate numbered selection list. */
#openings .opening-kind-picker{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-bottom:10px}
#openings .opening-kind-picker button,#openings .opening-kind-picker button.active{min-height:36px;padding:6px 5px;font-size:13px;border-width:1px;box-shadow:none}
#openings .opening-kind-picker button.active{background:#214f35;color:#fff;border-color:#214f35}
#openings .opening-kind-picker button.active::before{display:none}
#openings .opening-picker-title{font-size:14px;margin:0}
#openings .opening-detail-options{padding:8px;margin:8px 0;gap:6px}
#openings label,#openings .control-label{font-size:13px;line-height:1.35;margin-top:8px;margin-bottom:4px}
#openings :is(select,input.number-input){min-height:36px;height:36px;padding:6px 8px;font-size:14px;margin-bottom:6px}
#openings .two-col{gap:8px;margin-bottom:6px}
#openings :is(.primary,.secondary,.text-button){min-height:34px;padding:6px 9px;font-size:13px;margin-top:5px}
#openings .advanced-check{padding:4px 0;margin:3px 0;min-height:28px;display:flex;align-items:center;gap:7px}
#openings .advanced-check input{width:17px;height:17px;min-height:17px;flex-shrink:0}
#openings .hint{font-size:12px;line-height:1.4;margin:6px 0}
#openings .editor-heading{margin:10px 0 6px}#openings .editor-heading strong{font-size:14px}
#opening-workspace-list{position:absolute;left:14px;top:54px;z-index:5;width:225px;max-height:calc(100% - 180px);overflow:auto;padding:12px;border:1px solid #aab8ae;border-radius:10px;background:#fffffff2;color:#173323;box-shadow:0 3px 12px #0002}
#opening-workspace-list[hidden]{display:none}#opening-workspace-list h3{font-size:15px;margin:0 0 4px}#opening-workspace-list>p{font-size:12px;line-height:1.4;margin:0 0 8px}
#opening-workspace-list .opening-row{display:flex;border:1px solid #c6d0c9;border-radius:5px;margin:5px 0;background:#fff}#opening-workspace-list .opening-row.selected{border:2px solid #225b36;background:#edf5ec}
#opening-workspace-list .opening-select{display:flex;align-items:center;gap:6px;padding:7px;min-width:0;flex:1;background:transparent;border:0;text-align:left;color:#173323;cursor:pointer}#opening-workspace-list .opening-select svg{display:none}#opening-workspace-list .opening-select strong{display:block;font-size:12px}#opening-workspace-list .opening-select small{display:block;font-size:11px;margin-top:3px}
.opening-list-number,.opening-number-badge{background:#173e29;color:#fff;border:2px solid white;border-radius:50%;min-width:25px;height:25px;display:inline-flex;align-items:center;justify-content:center;font:bold 13px Arial;flex-shrink:0}
#opening-workspace-list .remove-opening{width:28px;min-height:32px;background:transparent;border:0;color:#722d27;font-size:20px;cursor:pointer}
.opening-number-badge{position:absolute;transform:translate(-50%,-50%);pointer-events:none;box-shadow:0 1px 5px #0007;z-index:2}
body:not(.editing-openings) .opening-number-badge{display:none!important}
@media(max-width:760px){#opening-workspace-list{top:44px;left:8px;width:160px;max-height:145px;padding:7px}#opening-workspace-list>p{display:none}#opening-workspace-list h3{font-size:12px}#openings .opening-kind-picker button{min-height:40px}#openings :is(select,input.number-input){font-size:16px}#opening-workspace-list .opening-select{min-height:42px}}

#opening-workspace-list .opening-select strong,#opening-workspace-list .opening-select small{color:#173323;opacity:1}#openings .opening-detail-options .hint{margin:4px 0}#openings .opening-detail-options label{margin:4px 0}

#openings .opening-kind-picker button[data-kind]{grid-column:auto!important}#openings .help-card{padding:8px;margin:8px 0;font-size:12px;line-height:1.4}#openings .help-card p{font-size:12px;line-height:1.4;margin:0}#openings .opening-detail-options{border-radius:6px}

#opening-workspace-list.opposite-sidebar{left:auto;right:70px}
@media(max-width:760px){#opening-workspace-list.opposite-sidebar{right:8px;left:auto}}

/* Compact explicit opening placement. */
#openings #opening-center,#openings label[for="opening-center"]{display:none}#openings .section-title{display:none}#window-bay-options{margin:6px 0}#window-bay-options button{min-height:44px;padding:8px;font-size:14px}#openings label{margin-top:7px;margin-bottom:4px}#openings .two-col{gap:8px}#opening-vertical-move{margin-top:5px}#openings #sill-control{margin:6px 0}#openings .number-input{padding:8px;min-height:40px}

#opening-workspace-list .duplicate-opposing-opening{flex:0 0 110px;min-height:44px;white-space:normal;border:1px solid #8d9ca5;border-radius:5px;background:#edf3f5;color:#193644;padding:6px;font-size:11px;font-weight:700;line-height:1.25}#opening-workspace-list .opening-select{min-width:0;flex:1}

/* Keep the copy action below the opening description. */
#opening-workspace-list .opening-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px}
#opening-workspace-list .opening-select{grid-column:1;grid-row:1;width:100%;min-width:0}
#opening-workspace-list .remove-opening{grid-column:2;grid-row:1}
#opening-workspace-list .duplicate-opposing-opening{grid-column:1 / -1;grid-row:2;justify-self:start;min-height:30px;padding:5px 9px;font-size:11px;width:auto;max-width:100%;margin-left:0}

#partition-openings .partition-opening-list-row{padding:10px;margin:6px 0;border:1px solid #c8d0d5;border-radius:5px;background:white;color:#17212d;font-size:13px;line-height:1.5}#partition-openings .text-button{display:block;min-height:36px;color:#9b3024;font-weight:700}

.partition-wall-card{display:flex;gap:8px;align-items:center;margin:6px 0}.partition-wall-card .secondary{flex:1;min-width:0;text-align:left;white-space:normal;min-height:44px}.partition-wall-card [aria-pressed="true"]{border:2px solid #42636f}.partition-wall-card .text-button{color:#a33122;min-height:44px}#partition-walls>#partition-delete{display:none}

/* Keep the model visible while positioning partition openings. */
#partition-opening-dialog::backdrop{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}
#partition-opening-dialog{margin:0;position:fixed;left:16px;top:90px;max-height:calc(100dvh - 110px);width:min(390px,calc(100vw - 32px));box-shadow:0 6px 24px #0003}
@media(max-width:700px){#partition-opening-dialog{top:auto;bottom:8px;left:8px;width:calc(100vw - 16px);max-height:48dvh;padding:16px}}

#partition-wall-cards{display:none!important}#partition-walls>#partition-delete{display:block}#partition-openings{margin-top:12px}
