.structure-heading,.structure-detail-title{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}.structure-heading h2{margin:6px 0 10px}.structure-heading small{font-size:11px;letter-spacing:.1em;color:var(--pm-muted)}.structure-heading p{margin:0}.structure-heading .primary{margin:0;white-space:nowrap}
.structure-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:20px;align-items:start}#structure-boxes{display:flex;flex-direction:column;gap:8px;margin:0;padding:0}#structure-boxes .structure-box{text-align:left;display:flex;flex-direction:column;gap:5px;background:#fff;border:1px solid var(--pm-line);padding:16px;border-radius:13px;color:var(--pm-ink);width:100%}.structure-box strong{font-size:16px}.structure-box span,.structure-box small{font-size:12px;line-height:1.5}#structure-boxes .structure-box[aria-pressed=true]{background:#fff4f5;border-color:#dc8d94;color:#a6131d}#structure-detail{background:white;border:1px solid var(--pm-line);border-radius:16px;padding:22px;min-width:0}.admin-content #structure-detail h3{font-size:24px;margin:4px 0 6px}.structure-detail-title p{margin:0}.structure-detail-title small{font-size:12px}.structure-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.structure-actions .primary{margin:0}.structure-drawers{display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid var(--pm-line);padding-bottom:16px;margin-bottom:16px}.structure-drawers button{background:#f6f7fa;border-color:transparent}.structure-drawers button[aria-pressed=true]{background:#242934;color:white}.structure-scope{font-size:12px!important;margin:18px 0 12px}.compartment-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px}.compartment-card{border:1px solid var(--pm-line);background:#fafbfe;border-radius:13px;padding:16px;min-width:0}.compartment-top{display:flex;gap:12px;justify-content:space-between;align-items:center;font-size:13px}.compartment-top strong{font-size:20px;white-space:nowrap;font-variant-numeric:tabular-nums}.compartment-card h4{font-family:var(--pm-title-font);font-size:17px;line-height:1.4;margin:16px 0 8px;overflow-wrap:anywhere}.compartment-card p{font-size:12px!important;overflow-wrap:anywhere}.compartment-card small{font-size:12px}.compartment-card .structure-actions{margin-top:16px}.structure-empty{padding:24px;background:#f6f7fa;border-radius:12px}.structure-editor{scroll-margin-top:16px;margin-top:20px!important}.structure-close{float:right;margin-bottom:12px}.reference-picker{margin-top:10px}.reference-picker label{margin-top:0!important}#reference-results{display:grid;gap:6px;max-height:280px;overflow:auto;overscroll-behavior:contain}#reference-results .reference-result{text-align:left;background:#fafbfe;padding:12px;display:flex;flex-direction:column;gap:6px;flex:none;min-height:58px}#reference-results .reference-result strong{font-size:14px;line-height:1.5}.reference-result small{font-size:12px;line-height:1.5}#reference-search-count{font-size:12px;margin:8px 0}#reference-selected{display:flex;flex-direction:column;gap:6px;padding:14px;background:#f6f7fa;border:1px solid var(--pm-line);border-radius:10px;margin-top:10px;font-size:13px;line-height:1.5}#reference-selected:has(strong){border-color:#d4a9ae;background:#fff7f8}#reference-selected small{font-size:12px}.inventory-views{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:12px}.inventory-views label{margin-top:0!important}.admin-content .stock-breakdown{margin:0;padding:9px 12px;white-space:normal;min-width:210px}.stock-breakdown .stock-box-line{margin-top:12px;padding-top:10px;border-top:1px solid var(--pm-line)}.stock-box-line small{font-size:12px!important}.admin-content #inventory-rows td{vertical-align:top;white-space:normal;min-width:140px}.admin-content #inventory-rows td:nth-child(2){min-width:220px}.admin-content #inventory-rows td:last-child button{margin:0 6px 6px 0}.inventory-quantity{font-weight:650;font-variant-numeric:tabular-nums}.inventory-hint{font-size:13px!important}
@media(max-width:1100px){.structure-layout{grid-template-columns:190px minmax(0,1fr)}.structure-detail-title{flex-wrap:wrap}}
@media(max-width:760px){.structure-layout{grid-template-columns:1fr}#structure-boxes{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}.structure-heading{flex-wrap:wrap}#structure-detail{padding:16px}.structure-drawers button{flex:1}.structure-actions button{min-height:44px!important}.inventory-views{grid-template-columns:1fr}.structure-close{float:none;margin-bottom:14px}}
