/* menu-designer.css v1.0 (2026-11-21): Developer > Screens and Dropdowns > Menu Designer (components/menu-designer.js). Shares the sdz-* look of
   screen-designer.css (bars, panes, badges, cards, tabs). Theme tokens only; 14px between boxes. */
.mdz{display:flex;flex-direction:column;gap:14px;min-width:0}
.mdz-main{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:14px;align-items:start}
@media (max-width:1100px){.mdz-main{grid-template-columns:minmax(0,1fr)}}
.mdz-treepane{max-height:66vh;overflow:auto}
.mdz-tools{display:flex;flex-wrap:wrap;gap:6px;padding:8px 12px;border-bottom:1px solid var(--o-line,#ccc)}
.mdz-tree,.mdz-tree ul{list-style:none;margin:0;padding:0}
.mdz-tree{padding:6px 8px}
.mdz-tree ul{padding-left:18px;border-left:1px dashed var(--o-line,#ccc);margin-left:8px}
.mdz-node{display:flex;align-items:center;gap:6px;padding:3px 8px;border-radius:6px;cursor:pointer;font-size:13px;border:1px solid transparent}
.mdz-node:hover{background:var(--o-hover,rgba(0,0,0,.04))}
.mdz-node.sel{border-color:var(--o-accent,#1f6fb2);background:var(--o-selected,var(--t-selected,rgba(0,0,0,.06)))}
.mdz-node[draggable=true]{cursor:grab}
.mdz-rail>.mdz-node{font-weight:600;text-transform:uppercase;font-size:12px;letter-spacing:.04em;color:var(--o-muted,var(--t-muted,#666))}
.mdz-ico{width:14px;text-align:center;color:var(--o-muted,var(--t-muted,#666))}
.mdz-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mdz-drop-before{box-shadow:inset 0 2px 0 var(--o-green,#1e8e3e)}
.mdz-drop-after{box-shadow:inset 0 -2px 0 var(--o-green,#1e8e3e)}
.mdz-drop-inside{outline:2px dashed var(--o-green,#1e8e3e);outline-offset:-2px}
.mdz-parked{list-style:none;margin:0;padding:6px 12px;font-size:12.5px}
.mdz-parked li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 0}
.mdz-details{max-height:66vh;overflow:auto}
.mdz-preview{margin-top:10px;max-height:340px;overflow:auto;border:1px solid var(--o-line,#ccc);border-radius:8px;padding:8px;columns:3 240px}
.mdz-preview details{break-inside:avoid;margin:0 0 4px}
.mdz-preview summary{font-weight:600;font-size:12.5px;cursor:pointer}
.mdz-preview details details{margin-left:12px}
.mdz-pv-leaf{display:block;border:0!important;background:none!important;box-shadow:none!important;padding:1px 0 1px 14px!important;height:auto!important;min-height:0!important;font:inherit;font-size:12.5px;color:inherit;text-align:left;cursor:default}
/* v1.1 (2026-11-21): the Screen Designer v3 look. The root also carries .sdz, so the designer's reset, top bar, inspector rows, switches and
   drawer bar styles (screen-designer.css) apply; these rules lay out the two panes and the tree. */
.sdz.mdz-app .mdz-main{grid-template-columns:minmax(0,1fr) 360px;gap:12px;align-items:stretch}
@container sdz (max-width:900px){.sdz.mdz-app .mdz-main{grid-template-columns:minmax(0,1fr)}}
.sdz.mdz-app .mdz-treepane,.sdz.mdz-app .mdz-details{max-height:none;display:flex;flex-direction:column;min-height:0}
.sdz.mdz-app .mdz-scroll{overflow:auto;max-height:calc(100vh - 420px);min-height:240px}
.sdz.mdz-app .mdz-tools{display:flex;align-items:center;flex-wrap:nowrap;gap:6px;height:44px;padding:0 10px 0 14px;border-bottom:1px solid var(--z-line)}
.sdz.mdz-app .mdz-tools>.sdz-cap{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sdz.mdz-app .mdz-tools>.sdz-cap>span{text-transform:none;letter-spacing:normal;font-weight:400}
.sdz.mdz-app .mdz-tsp{flex:1 1 auto}
.sdz.mdz-app .mdz-sm{height:28px!important;padding:0 9px!important;font-size:12.5px!important}
@container sdz (max-width:1240px){.sdz.mdz-app .mdz-sm .sdz-lbl{display:none}.sdz.mdz-app .mdz-sm{width:28px!important;padding:0!important}}
.sdz.mdz-app .mdz-tree{padding:8px 10px}
.sdz.mdz-app .mdz-tree ul{padding-left:16px;margin-left:11px;border-left:1px solid var(--z-line)}
.sdz.mdz-app .mdz-node{height:30px;padding:0 8px;gap:8px;border:0;border-radius:6px;font-size:13px;color:var(--z-text)}
.sdz.mdz-app .mdz-node:hover{background:var(--z-hover)}
.sdz.mdz-app .mdz-node.sel{background:var(--z-sel);box-shadow:inset 2px 0 var(--z-accent);border:0}
.sdz.mdz-app .mdz-ico{width:16px;display:inline-flex;color:var(--z-muted)}
.sdz.mdz-app .mdz-folder>.mdz-node .mdz-ico{color:var(--z-amber)}
.sdz.mdz-app .mdz-rail>.mdz-node{font-size:11px;font-weight:700;letter-spacing:.05em;color:var(--z-muted)}
.sdz.mdz-app .mdz-rail>.mdz-node .mdz-ico{color:var(--z-accent)}
.sdz.mdz-app .mdz-badge{margin-left:auto;font-size:11.5px;color:var(--z-muted);white-space:nowrap}
.sdz.mdz-app .mdz-node small.muted{font-size:11.5px;color:var(--z-muted)}
.sdz.mdz-app .mdz-drop-before{box-shadow:inset 0 3px 0 var(--z-green)}
.sdz.mdz-app .mdz-drop-after{box-shadow:inset 0 -3px 0 var(--z-green)}
.sdz.mdz-app .mdz-drop-inside{outline:2px dashed var(--z-green);outline-offset:-2px;background:var(--z-good-bg)}
.sdz.mdz-app .mdz-pcap{margin:10px 14px 4px}
.sdz.mdz-app .mdz-parked{padding:0 14px 10px}
.sdz.mdz-app .mdz-parked li{height:28px;color:var(--z-muted)}
.sdz.mdz-app .mdz-parked li .sdz-ic{width:13px;height:13px;vertical-align:-2px}
.sdz.mdz-app .mdz-roles{display:flex;flex-wrap:wrap;gap:4px}
.sdz.mdz-app .mdz-bottom .sdz-dbody{height:auto;max-height:360px}
.sdz.mdz-app .mdz-preview{border-color:var(--z-line);background:var(--z-paper)}
.sdz.mdz-app .sdz-pad{padding:12px 14px}
.sdz.mdz-app .sdz-chk{display:flex!important;align-items:center;gap:8px;margin-bottom:6px!important}
.sdz.mdz-app .sdz-chk select{max-width:360px}
/* v1.2: the whole window while designing (the .sdz-full rule in screen-designer.css fixes it to the window); the panes fill it */
.sdz.mdz-app.sdz-full{display:flex!important;flex-direction:column}
.sdz.mdz-app.sdz-full .mdz-main{flex:1 1 auto;min-height:0}
.sdz.mdz-app.sdz-full .mdz-scroll{max-height:none;flex:1 1 auto;min-height:0}
.sdz.mdz-app.sdz-full .mdz-bottom{flex:0 0 auto}
/* v1.2.1 (step 7 pass): the role preview used CSS columns in a box capped at 340px high, so the columns ran off to the right (15730px wide at 1614): the menu groups are now a grid that wraps and scrolls down */
.mdz-preview{columns:auto!important;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:4px 16px;align-items:start}
.mdz-preview > details{margin:0}
