/* Style only otherwise unstyled controls; do not recolor active round chips or special controls. */
#viewerSection :is(dialog,.stage62-draw-toolbar) button:not([class]),
#viewerSection :is(dialog,.stage62-draw-toolbar) button[class=""]{font:inherit;font-size:13px;color:#d9eaff;background:#1a3048;border:1px solid #39526a;border-radius:8px;padding:7px 11px;cursor:pointer;}
#viewerSection :is(dialog,.stage62-draw-toolbar) button:not([class]):hover:not(:disabled),
#viewerSection :is(dialog,.stage62-draw-toolbar) button[class=""]:hover:not(:disabled){background:#294663;}
#viewerSection .stage62-draw-toolbar button[aria-pressed="true"]{background:#245879;border-color:#76bce1;}
#viewerSection :is(#stage64Notes,#stage65Annotations).stage78-floating{position:fixed;inset:auto;top:100px;left:16px;margin:0;width:min(460px,calc(100vw - 16px));height:min(520px,calc(100dvh - 16px));max-width:calc(100vw - 8px);max-height:calc(100dvh - 8px);min-width:min(280px,calc(100vw - 8px));min-height:min(200px,calc(100dvh - 8px));resize:both;overflow:auto;z-index:150;}
#viewerSection .stage78-floating[open]{display:flex;flex-direction:column;}
#viewerSection .stage78-floating header{cursor:move;touch-action:none;user-select:none;flex:none;}
#viewerSection .stage78-floating .stage61-settings-content{flex:1;min-height:0;overflow:auto;padding-bottom:20px;}
#viewerSection .stage78-route-choices{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0;}
#viewerSection .stage78-route-choices label{display:inline-flex;align-items:center;gap:3px;}
#viewerSection .stage78-route-legend{position:absolute;z-index:20;left:12px;bottom:145px;background:#102438;border:1px solid #4d718b;border-radius:8px;padding:10px;display:grid;gap:5px;}
#viewerSection .stage78-route-legend[hidden]{display:none;}
/* Also style native buttons in other application dialogs. */
dialog button:where(:not([class]),[class=""]){font:inherit;font-size:13px;color:#d9eaff;background:#1a3048;border:1px solid #39526a;border-radius:8px;padding:7px 11px;cursor:pointer;}
dialog button:where(:not([class]),[class=""]):hover:not(:disabled){background:#294663;}
