/* Desktop/mobile review fixes: 20261101 */
#quote-dialog:has(#direct-quote-frame[style*="display: block"]){max-height:96dvh!important}
#quote-dialog #direct-quote-frame{height:calc(96dvh - 76px)!important;max-height:560px!important;min-height:0!important}
#simple-opening-dialog:has(svg){height:min(760px,96dvh);max-height:96dvh!important;overflow:hidden!important;display:flex;flex-direction:column}
#simple-opening-dialog:not([open]){display:none!important}
#simple-opening-dialog:has(svg) h2{margin:0 0 8px}
#simple-opening-dialog:has(svg)>[data-close]{position:absolute;right:12px;top:10px}
#simple-opening-dialog:has(svg)>[data-body]{overflow:auto;min-height:0;flex:1;padding-bottom:4px}
#simple-opening-dialog [data-body]>.choices:last-of-type{position:sticky;bottom:-4px;background:white;padding:8px 0;margin-bottom:0;z-index:3;border-top:1px solid #ccd7dc}
#simple-opening-dialog [data-body]>p:empty{display:none}
#simple-opening-dialog [data-body]>p{margin:6px 0;font-size:12px}
#simple-opening-dialog svg{height:clamp(120px,23dvh,220px)!important}
#simple-opening-dialog .choices{gap:5px!important;margin:6px 0!important}
#simple-opening-dialog .choices button{padding:7px!important}
#lean-editor-popup select{width:100%!important;min-width:0!important;text-overflow:ellipsis}
@media(max-width:600px){
 #quote-dialog{width:calc(100vw - 12px)!important;max-width:none!important;padding:10px!important;max-height:96dvh!important}
 #simple-opening-dialog{width:calc(100vw - 12px)!important;max-width:none!important;padding:10px!important}
 #simple-opening-dialog svg text{font-weight:700}
 #lean-editor-popup .lean-compact-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(94px,1fr) minmax(100px,1fr)!important;gap:5px!important}
 #lean-editor-popup .lean-compact-row select{font-size:14px!important;padding:7px 4px!important}
 #lean-editor-popup #lean-layout{min-width:112px!important}
 #designer-landing .designer-paths article>p,#designer-landing .designer-paths article>ul{display:none}
 #designer-landing .designer-paths article{padding:12px!important}
 #designer-landing .designer-paths h2{font-size:21px!important;margin:6px 0!important}
 #designer-landing .designer-paths img{max-height:115px!important;object-fit:contain;margin:8px 0!important}
 #designer-landing .advanced-example{margin:8px 0!important}
 #designer-landing .designer-start{padding:12px!important}
}


@media(max-width:600px){#designer-landing .designer-paths{gap:12px!important}#designer-landing .designer-paths article>img{margin:8px 0!important}#designer-landing .designer-start{margin-top:8px!important}}
@media(max-width:600px){#designer-landing .designer-paths article{min-height:0!important;height:auto!important;gap:6px!important}#designer-landing .advanced-example{height:auto!important;min-height:0!important}#designer-landing .designer-paths img{height:115px!important}}
@media(max-width:600px){#lean-editor-popup label:has(>#lean-layout){grid-column:1/-1!important}#lean-editor-popup .lean-compact-row{grid-template-columns:1fr 1fr!important}#lean-editor-popup .lean-compact-row>label{grid-column:1/-1!important;margin:0!important}#lean-editor-popup .lean-compact-row{padding:3px 0!important}}
@media(max-width:600px){#designer-landing .designer-paths{grid-auto-rows:max-content!important;align-items:start!important}#designer-landing .designer-paths article{align-self:start!important;justify-content:flex-start!important;flex:none!important}#designer-landing .designer-paths article>figure{padding:0!important;height:115px!important;flex:none!important}#designer-landing .designer-paths article>figure img{margin:0!important}}
#quote-dialog,#simple-opening-dialog{box-sizing:border-box!important}
