/* 0.5.2: a self-contained catalogue rail next to the drawing workspace. */
.aamdt .aamdt-top-panels:empty,.aamdt .aamdt-status:empty{display:none}
.aamdt .aamdt-side{gap:0;border:1px solid var(--line);border-radius:14px;background:#fff;position:sticky;top:12px;max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain}
.aamdt .aamdt-filter-panel{display:block;padding:12px;border:0;border-radius:0;background:#f1f5ec;flex:none}
.aamdt .aamdt-filter-panel>label{margin:0 0 8px}
.aamdt .aamdt-filter-panel input{min-width:0;width:100%}
.aamdt .aamdt-category-disclosure>summary{font-size:13px;padding:8px;border:1px solid var(--line);border-radius:7px;background:#fff}
.aamdt .aamdt-category-disclosure[open]>summary{margin-bottom:8px}
.aamdt .aamdt-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;max-height:240px;overflow:auto}
.aamdt .aamdt-categories button{font-size:11px;padding:7px 4px;min-width:0}
.aamdt .aamdt-results-panel{border:0;box-shadow:none;border-radius:0;padding:10px;min-height:120px;display:flex;flex-direction:column;flex:1;overflow:hidden}
.aamdt .aamdt-list{height:auto;min-height:120px;max-height:58vh;overflow:auto;flex:1}
.aamdt .aamdt-own-connection{border:0;border-bottom:1px solid var(--line);border-radius:14px 14px 0 0;padding:10px;gap:6px;flex:none}
.aamdt .aamdt-own-connection select{width:100%;max-width:none;font-size:13px}
.aamdt .aamdt-own-connection button,.aamdt .aamdt-own-connection a{font-size:12px}
.aamdt .aamdt-own-connection p{margin:0;font-size:11px}
.aamdt .aamdt-canvas-dock{position:sticky;top:0;z-index:9;background:#fcfdf9;border:1px solid var(--line);border-bottom:0;border-radius:12px 12px 0 0;padding:8px}
.aamdt .aamdt-tools{border-radius:6px;padding:6px;gap:5px}
.aamdt .aamdt-stage>.aamdt-viewport{border-radius:0 0 14px 14px;height:clamp(400px,66vh,800px)}
.aamdt .aamdt-reference{margin:0 0 8px;padding:4px 8px;background:#f1f5ec;border-radius:8px}
.aamdt .aamdt-reference img{width:96px;height:64px}
.aamdt .aamdt-reference button{font-size:12px;min-height:30px}
.aamdt .aamdt-placement-options{font-size:12px;margin-top:5px}
.aamdt .aamdt-placement-options>summary{padding:6px}
.aamdt .aamdt-movement{padding:8px;gap:8px}
.aamdt .aamdt-movement label{margin:0}
.aamdt .aamdt-movement select{width:auto;font-size:12px;max-width:240px}
.aamdt .aamdt-movement [data-role=density-note]{font-size:11px}
.aamdt .aamdt-calibration{margin:0 0 8px;padding:12px}
.aamdt .aamdt-season-note{padding:7px;font-size:11px}
@media(max-width:800px){
 .aamdt .aamdt-side{position:relative;top:auto;max-height:48dvh}
 .aamdt .aamdt-list{min-height:100px;max-height:26vh}
 .aamdt .aamdt-layout{gap:10px}
 .aamdt .aamdt-canvas-dock{position:relative;top:auto}
 .aamdt .aamdt-tools button{font-size:11px;padding:6px}
 .aamdt .aamdt-stage>.aamdt-viewport{height:55dvh;min-height:300px}
 .aamdt .aamdt-categories{max-height:140px}
}
@media print{.aamdt .aamdt-canvas-dock{display:none!important}.aamdt .aamdt-stage>.aamdt-viewport{height:auto}}
