/* Scoped to the phone guide; existing headers, navigation and controls keep their styles. */
@layer uniform-controls{
 #phone-authorization[open]{box-sizing:border-box!important;display:block!important;min-width:0!important;width:min(540px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;padding:0!important;overflow:auto!important;}
 #phone-authorization .phone-guide-body{box-sizing:border-box!important;min-width:0!important;width:100%!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:14px!important;padding:20px!important;}
 #phone-authorization h2,#phone-authorization p{max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;}
 #phone-authorization button{width:100%!important;min-width:0!important;min-height:48px!important;height:auto!important;white-space:normal!important;}
}
#phone-authorization[open]{box-sizing:border-box!important;display:block!important;width:min(540px,calc(100% - 24px))!important;max-width:calc(100% - 24px)!important;max-height:calc(100dvh - 24px)!important;padding:0!important;overflow:auto!important;background:#fff;color:#132b47;}
#phone-authorization .phone-guide-body{display:flex;flex-direction:column;align-items:stretch;gap:14px;padding:20px;font-size:18px;line-height:1.5;}
#phone-authorization h2,#phone-authorization p{margin:0;overflow-wrap:anywhere;}
#phone-authorization button{box-sizing:border-box!important;min-height:48px!important;height:auto!important;width:100%!important;white-space:normal!important;}
#phone-authorization svg{display:block;align-self:center;max-width:100%;height:auto;flex-shrink:0;}
#phone-authorization strong{font-size:26px;letter-spacing:.14em;text-align:center;overflow-wrap:anywhere;}
#phone-authorization input{box-sizing:border-box;width:100%;min-width:0;min-height:48px;font-size:20px;text-transform:uppercase;}
#phone-connect-from-laptop{max-width:100%;min-height:48px;white-space:normal;}
.phone-guide-launch-row{display:flex;justify-content:center;margin:8px 0 12px;gap:10px;}
.phone-guide-launch-row[hidden]{display:none!important;}
#phone-guide-launch{max-width:100%;white-space:normal;min-height:44px;}
dialog#phone-guide{box-sizing:border-box;width:min(540px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:0;overflow:auto;}
#phone-guide .phone-guide-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;position:sticky;top:0;background:#fff;z-index:1;}
#phone-guide h2{font-size:25px;margin:0;}
#phone-guide .phone-guide-heading button{min-width:44px;min-height:44px;width:44px;}
#phone-guide .phone-guide-body{padding:18px;display:flex;flex-direction:column;align-items:flex-start;gap:14px;font-size:18px;line-height:1.5;color:#132b47;background:#fff;}
#phone-guide h3,#phone-guide p{margin:0;}
#phone-guide h3{font-size:23px;line-height:1.3;}
#phone-guide button{min-height:48px;max-width:100%;white-space:normal;}
#phone-guide .phone-guide-body>button{width:100%;}
#phone-guide .phone-guide-qr{width:224px;height:224px;max-width:100%;align-self:center;background:#fff;}
#phone-guide .phone-guide-picture{box-sizing:border-box;align-self:stretch;border:2px solid #c3a347;border-radius:12px;background:#f3f6fc;padding:20px;display:flex;gap:16px;align-items:center;font-weight:600;}
#phone-guide .phone-guide-glyph{display:grid;place-items:center;border:2px solid #132b47;border-radius:6px;min-width:45px;min-height:45px;font-size:34px;line-height:1;}
#phone-guide .phone-guide-instruction{display:flex;flex-direction:column;gap:8px;width:100%;}
#phone-guide details{width:100%;font-size:16px;}
#phone-guide summary{cursor:pointer;padding:12px 0;}
#phone-guide details p{margin:10px 0;}
#phone-guide a{overflow-wrap:anywhere;color:#132b47;text-decoration:underline;}
#phone-guide input{box-sizing:border-box;width:100%;min-width:0;font-size:16px;}
#phone-guide .phone-guide-footer{display:flex;justify-content:flex-end;padding:14px 18px;background:#fff;}
@media(max-width:600px){.phone-guide-launch-row{justify-content:stretch;}#phone-guide-launch{width:100%;}}
@layer uniform-controls{
 #phone-guide[open]{display:block!important;box-sizing:border-box!important;width:min(540px,calc(100% - 24px))!important;max-width:calc(100% - 24px)!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important;padding:0!important;}
 #phone-guide .phone-guide-heading{flex-wrap:nowrap!important;}
 #phone-guide .phone-guide-heading>button{width:44px!important;min-width:44px!important;max-width:44px!important;flex:0 0 44px!important;}
 #phone-guide .phone-guide-body>button{width:100%!important;max-width:100%!important;}
 #phone-guide-launch{width:auto!important;min-width:0!important;max-width:100%!important;min-height:44px!important;height:auto!important;padding:10px 16px!important;white-space:normal!important;}
 @media(max-width:600px){#phone-guide-launch{width:100%!important;}}
}

@media(min-width:1024px){.phone-guide-launch-row{margin:0;flex:0 0 auto;align-items:center;gap:10px;}.phone-guide-launch-row>button{flex:0 0 auto;}}
