
/* Mobile-specific editor only. Never change printable pedigree geometry. */
.plp-mobile-help,.plp-mobile-shade{display:none}
@media screen and (max-width:800px){
 html,body{max-width:100%;overflow-x:clip}
 header{padding:12px 14px;gap:10px}
 header .logo{font-size:15px}
 header .nav-primary{max-width:100%;display:flex;overflow-x:auto;white-space:nowrap;flex-wrap:nowrap;gap:5px;scrollbar-width:thin;padding-bottom:4px}
 header .nav-primary a{font-size:12px;padding:9px}
 .editor-shell,.editor-shell.sidebar-collapsed{display:block!important;position:relative;grid-template-columns:initial!important}
 .editor-shell>main,.editor-shell.sidebar-collapsed>main{width:100%;min-width:0;padding:12px!important}
 .plp-mobile-help{display:block;background:#f1e8d6;border:1px solid #e1c895;border-radius:9px;color:#544124;padding:11px 12px;font-size:12px;line-height:1.45;margin-bottom:12px}
 .editor-view-top{position:sticky;top:0;z-index:100;background:#f1f4f8;padding:9px 0;margin-bottom:7px}
 .editor-view-top .panel-toggle{min-height:44px;min-width:170px;text-align:center}
 .editor-view-hint{font-size:11px}
 .editor-toolbar{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;gap:7px;scrollbar-width:thin;padding:8px;border-radius:10px}
 .editor-toolbar button{flex:0 0 auto;min-height:44px;white-space:nowrap;font-size:12px;padding:10px 12px}
 .plp-view-controls{justify-content:flex-start;gap:8px}
 .plp-view-controls input{width:90px}
 .plp-view-controls button{min-height:42px}
 .page-breadcrumb{font-size:11px}
 .intro{align-items:flex-start}
 .intro #subtitle{font-size:12px;line-height:1.5}
 .intro h1{font-size:21px}
 .intro .counter{font-size:11px;white-space:nowrap}
 #sheet{width:100%;max-width:100%;padding:10px!important;overflow:hidden}
 #sheet .sheet-head{gap:5px}
 #sheet .sheet-head h2{font-size:17px}
 #sheet .sheet-head strong{font-size:11px;letter-spacing:1px}
 #sheet .sheet-head .crest{font-size:16px}
 #mobileTreeScroll{overflow-x:auto!important;overflow-y:hidden!important;touch-action:pan-x pan-y;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;max-width:100%;padding-bottom:13px;margin:10px 0}
 #mobileTreeScroll .tree{min-width:850px}
 #mobileTreeScroll .bird{touch-action:manipulation}
 #mobileTreeScroll .bird strong{font-size:12px}
 #mobileTreeScroll .bird .ring{font-size:11px}
 .sheet-foot{font-size:8px;gap:8px;flex-wrap:wrap}
 #editSidebar{display:block!important;visibility:visible!important;position:fixed!important;z-index:1300!important;top:0;left:0;bottom:0;width:min(94vw,390px)!important;max-width:390px;overflow-y:auto!important;-webkit-overflow-scrolling:touch;background:white!important;box-shadow:12px 0 45px #0f233359;padding:20px 18px 70px!important;border:0!important;transform:translateX(-110%);transition:transform .22s ease;overscroll-behavior:contain}
 .editor-shell.plp-mobile-open #editSidebar{transform:translateX(0)!important}
 .editor-shell.sidebar-collapsed #editSidebar{transform:translateX(-110%)!important}
 #editSidebar input:not([type=checkbox]),#editSidebar select,#editSidebar textarea{font-size:16px!important;min-height:43px}
 #editSidebar textarea{min-height:110px}
 #editSidebar .sidebar-hide{min-height:43px;min-width:48px}
 #editSidebar #apply{min-height:48px}
 #mobileShade{display:none;position:fixed;inset:0;background:#06111ba8;z-index:1299}
 .editor-shell.plp-mobile-open #mobileShade{display:block!important}
 .editor-shell.sidebar-collapsed #mobileShade{display:none!important}
 .plp-dialog-panel{padding:17px;width:min(95vw,700px)}
 .plp-dialog button,dialog button{min-height:42px}
 body.plp-mobile-editor-open{overflow:hidden}
}
@media screen and (max-width:430px){
 .editor-view-hint{display:none}
 .plp-view-controls label{font-size:11px}
 .plp-mobile-help{font-size:11px}
 .intro{gap:8px}
}
@media print{
 .plp-mobile-help,#mobileShade{display:none!important}
 #editSidebar{display:none!important}
 .editor-shell{display:block!important}
 #mobileTreeScroll{overflow:visible!important;max-width:none!important}
}
