/* The same compact menu and page controls on desktop and phone. */
.brand{gap:10px;padding:0 10px;height:42px}
.brand h1{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.brand .finder-help{display:block;margin-left:auto;flex:none}
.brand .mobile-menu-toggle{display:block;position:static;flex:none;width:34px;height:32px;padding:0;font-size:21px;background:#0e1a2b;color:white;border:1px solid #526171;border-radius:5px}
.mobile-site-menu{display:block;position:fixed;top:46px;right:6px;width:min(320px,calc(100vw - 12px));max-height:calc(100dvh - 100px);overflow:auto;overscroll-behavior:contain;z-index:50;padding:10px 14px;background:#0e1a2b;color:white;border:1px solid #c9a96166;border-radius:8px;box-shadow:0 8px 28px #0005}
.mobile-site-menu a{display:block;color:white;padding:10px 0;text-decoration:none;border-bottom:1px solid #ffffff18;font-size:13px}
.mobile-site-menu summary{cursor:pointer;padding:10px 0;color:#c9a961;font-weight:600}
.mobile-site-menu details a{padding-left:12px}.mobile-site-menu h2{font-size:14px;color:#c9a961;margin:0 0 3px}
.mobile-site-menu a:focus-visible,.mobile-site-menu summary:focus-visible,.brand button:focus-visible,.diagram-pager button:focus-visible{outline:2px solid #c9a961;outline-offset:2px}
.canvas-wrap.has-page-controls>svg{height:calc(100% - 56px)}
.diagram-pager{position:absolute;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:10px;min-height:56px;padding:5px 8px;background:#f5f8fb;border-top:1px solid #dce4eb;z-index:7;touch-action:manipulation}
.diagram-pager button{min-height:44px;min-width:110px;padding:7px 12px;font-size:12px;border:1px solid #bdcbd7;border-radius:7px;background:white;color:#102b40;font-weight:650;touch-action:manipulation}
.diagram-pager button:disabled{opacity:.4;cursor:default}.diagram-pager button:not(:disabled):active{background:#dcecff}
.diagram-page-label{min-width:80px;text-align:center;line-height:1.3;font-size:12px;font-weight:650}.diagram-page-label small{display:block;font-size:10px;font-weight:400;color:#647689}
.has-page-controls .canvas-note{bottom:60px}.has-page-controls .detail{bottom:90px}
@media(max-width:650px){
  .brand{height:40px;gap:6px;padding:0 6px}.brand h1{font-size:11px}.brand .finder-help{display:block;font-size:10px}.brand .mobile-menu-toggle{width:32px;height:32px}
  .workspace,.list-hidden .workspace{top:40px}
  .mobile-site-menu{top:44px}.mobile-site-menu a,.mobile-site-menu summary{min-height:44px}
  .diagram-pager{gap:6px;padding:5px 6px}.diagram-pager button{flex:1;min-width:0;font-size:12px;padding:8px 4px}
  .diagram-page-label{min-width:70px;font-size:11px}
  .has-page-controls .mobile-zoom{bottom:64px}.has-page-controls .detail{bottom:62px}
}
@media print{.diagram-pager,.mobile-site-menu,.brand .mobile-menu-toggle{display:none!important}.canvas-wrap.has-page-controls>svg{height:100%}}
/* Make machine switching and help obvious without taking space from the drawing. */
.machine-switch{display:flex;align-items:center;gap:9px;min-width:0}
.machine-switch>label{flex:none;color:#dfc982;font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;cursor:pointer}
.machine-switch h1{margin:0}
.brand .finder-help{display:flex;align-items:center;justify-content:center;gap:4px;min-height:32px;padding:5px 10px;border:1px solid #dfc982;border-radius:5px;background:#dfc982;color:#102b40;font-weight:700;text-decoration:none}
.brand .finder-help:hover{background:#efdaa1}
@media(max-width:650px){
 .brand{height:50px}
 .machine-switch{flex:1;flex-direction:column;align-items:flex-start;gap:1px}
 .machine-switch>label{font-size:9px;line-height:11px;padding-left:2px}
 .machine-switch h1{max-width:100%;width:auto}
 .brand #machineSelector{min-height:27px;padding-top:2px;padding-bottom:2px}
 .brand .finder-help{flex-direction:column;gap:0;line-height:1.25;font-size:10px;padding:4px 7px;min-height:34px}
 .workspace,.list-hidden .workspace{top:50px}
 .mobile-site-menu{top:54px}
}
