/* #383 guided DNS overlay; preserve the unmodified standalone machine experience. */
body.ifd-dns-guided-active{background:#edf2f7}
body.ifd-dns-guided-active .md-header,body.ifd-dns-guided-active .md-tabs,body.ifd-dns-guided-active .md-sidebar,body.ifd-dns-guided-active .md-footer,body.ifd-dns-guided-active .ifd-modebar{display:none!important}
body.ifd-dns-guided-active .md-main,body.ifd-dns-guided-active .md-main__inner,body.ifd-dns-guided-active .md-content,body.ifd-dns-guided-active .md-content__inner{margin:0!important;padding:0!important;max-width:none!important}
body.ifd-dns-guided-active .md-content__inner>h1,body.ifd-dns-guided-active .md-content__inner:before{display:none!important}
body.ifd-dns-guided-active .md-main__inner{height:100dvh;overflow:hidden}
#ifd-dns-guided{height:100dvh;display:flex;flex-direction:column;min-height:0;overflow:hidden;background:#f0f4f8;color:#183149;font:15px/1.5 system-ui,sans-serif}
#ifd-dns-guided *{box-sizing:border-box}
#ifd-dns-guided button,#ifd-dns-guided input{font:inherit}
#ifd-dns-guided button:focus-visible,#ifd-dns-guided a:focus-visible,#ifd-dns-guided input:focus-visible{outline:3px solid #2c83ba;outline-offset:2px}
#ifd-dns-guided a{color:#1763a0}
#ifd-dns-guided .dns-guided-top{min-height:54px;flex-shrink:0;display:flex;justify-content:space-between;align-items:center;gap:12px;background:#09233e;color:white;padding:10px 18px}
#ifd-dns-guided .dns-guided-top strong{font-size:17px}
#ifd-dns-guided .dns-guided-top a{color:#d8eafd;font-size:13px}
#ifd-dns-guided .dns-guided-body{min-height:0;flex:1;display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.82fr);gap:0}
#ifd-dns-guided .dns-guided-environment{min-width:0;min-height:0;overflow:auto;border-right:2px solid #d1dbe5;padding:8px;background:#f3f6fa}
#ifd-dns-guided .dns-guided-task{min-width:0;min-height:0;overflow:hidden;background:white}
#ifd-dns-guided #dns-guided-task-content{height:100%;min-height:0;display:flex;flex-direction:column}
#ifd-dns-guided .dns-guided-task-head{padding:18px 18px 10px;border-bottom:1px solid #dce5ed;flex-shrink:0}
#ifd-dns-guided .dns-guided-task-head small{font-size:12px;color:#47647d;font-weight:600}
#ifd-dns-guided .dns-guided-task-head h1{font-size:21px!important;line-height:1.3!important;color:#0d2944!important;margin:8px 0!important}
#ifd-dns-guided .dns-guided-task-scroll{padding:14px 18px;overflow:auto;flex:1;min-height:0;font-size:15px}
#ifd-dns-guided .dns-guided-task-scroll p{margin:0 0 14px;max-width:65ch}
#ifd-dns-guided .dns-guided-task-scroll code{font:13px/1.4 ui-monospace,monospace;background:#ecf3fa;color:#173c5c;padding:2px 5px;overflow-wrap:anywhere}
#ifd-dns-guided .dns-guided-task-scroll .dns-guided-check,#ifd-dns-guided .dns-guided-feedback{border-left:3px solid #2d699b;background:#f0f6fb;padding:10px 12px;font-size:13px}
#ifd-dns-guided .dns-guided-task-actions{display:flex;flex-wrap:wrap;gap:8px;padding:12px 14px;border-top:1px solid #dce5ed;flex-shrink:0;background:white}
#ifd-dns-guided .dns-guided-task-actions button{min-height:40px;border:1px solid #9bb0c2;background:white;border-radius:6px;padding:8px 13px;color:#183149;cursor:pointer}
#ifd-dns-guided .dns-guided-task-actions button[data-dns-action="continue"]{background:#15649a;border-color:#15649a;color:white;font-weight:700;flex:1}
#ifd-dns-guided .dns-guided-task-actions button:disabled{opacity:.45;cursor:not-allowed}
#ifd-dns-guided .dns-guided-answers{display:grid;gap:10px;margin:12px 0}
#ifd-dns-guided .dns-guided-answers button{min-height:44px;text-align:left;padding:12px;background:#f5f9fc;color:#102b46;border:1px solid #b6c7d6;border-radius:6px;cursor:pointer}
#ifd-dns-guided .dns-guided-answers button:hover{background:#dcecf9}
#ifd-dns-guided .dns-guided-switch{display:none}
#ifd-dns-guided .dns-guided-environment .machine-review-bar{margin:0 0 6px;padding:6px 9px}
#ifd-dns-guided .dns-guided-environment .setup-devices{gap:7px;padding:5px 0}
#ifd-dns-guided .dns-guided-environment .setup-devices button{padding:7px 9px;min-width:140px}
#ifd-dns-guided .dns-guided-environment .setup-devices button[aria-pressed=true]{padding:6px 8px}
#ifd-dns-guided .dns-guided-environment .setup-session{padding-bottom:5px}
#ifd-dns-guided .dns-guided-environment .setup-app{max-height:none}
@media(max-width:760px){
 #ifd-dns-guided .dns-guided-top{min-height:50px;padding:8px 10px;flex-wrap:wrap}
 #ifd-dns-guided .dns-guided-top strong{font-size:14px;order:-1;width:100%}
 #ifd-dns-guided .dns-guided-top a{font-size:12px}
 #ifd-dns-guided .dns-guided-switch{display:flex;gap:6px;padding:7px 10px;background:#dce8f2;flex-shrink:0}
 #ifd-dns-guided .dns-guided-switch button{flex:1;min-height:41px;background:white;border:1px solid #91a9bd;border-radius:6px;color:#233f57}
 #ifd-dns-guided .dns-guided-switch button[aria-pressed=true]{background:#145d90;color:white;font-weight:700}
 #ifd-dns-guided .dns-guided-body{display:block;min-height:0}
 #ifd-dns-guided .dns-guided-body[data-dns-current-view="environment"] .dns-guided-task,#ifd-dns-guided .dns-guided-body[data-dns-current-view="task"] .dns-guided-environment{display:none}
 #ifd-dns-guided .dns-guided-environment,#ifd-dns-guided .dns-guided-task{height:100%;border:0}
 #ifd-dns-guided .dns-guided-task-head{padding:12px 14px 7px}
 #ifd-dns-guided .dns-guided-task-head h1{font-size:19px!important}
 #ifd-dns-guided .dns-guided-task-scroll{padding:12px 14px}
}

/* Bounded #383 teaching repair: keep the workspace and all its controls inside the viewport. */
body.ifd-dns-guided-active{margin:0!important;overflow:hidden!important}
body.ifd-dns-guided-active .md-container{padding:0!important;margin:0!important}
body.ifd-dns-guided-active .md-content__inner>h1{display:none!important}
#ifd-dns-guided{position:fixed;inset:0;width:100%;height:100dvh;z-index:5}
#ifd-dns-guided .dns-guided-body{grid-template-columns:minmax(0,1.15fr) minmax(340px,1fr)}
#ifd-dns-guided .machine-review-bar,#ifd-dns-guided .setup-session{display:none}
#ifd-dns-guided .dns-guided-environment{padding:12px;overflow:auto}
#ifd-dns-guided .setup-devices{position:sticky;top:-12px;background:#f3f6fa;z-index:1;padding:8px 0 12px;display:grid;grid-template-columns:1fr 1fr}
#ifd-dns-guided .setup-devices button{min-width:0;width:100%;font-size:14px}
#ifd-dns-guided .setup-devices button small{white-space:normal}
#ifd-dns-guided .setup-appliance{margin:0;max-width:none;border-radius:8px}
#ifd-dns-guided .setup-appliance .service-app{min-height:0;padding:20px}
#ifd-dns-guided .service-app header{margin-bottom:14px}
#ifd-dns-guided .service-app h2{font-size:22px}
#ifd-dns-guided .service-app h3{font-size:17px;margin:16px 0 10px}
#ifd-dns-guided .service-form{margin:12px 0;grid-template-columns:1fr}
#ifd-dns-guided .service-facts{grid-template-columns:1fr}
#ifd-dns-guided .service-facts>div{display:grid;grid-template-columns:1fr 1.2fr;gap:12px;padding:9px 0}
#ifd-dns-guided .service-facts dd{margin:0;overflow-wrap:anywhere}
#ifd-dns-guided .service-table table{display:table;min-width:0;table-layout:fixed}
#ifd-dns-guided .service-table th,#ifd-dns-guided .service-table td{min-width:0;white-space:normal;overflow-wrap:anywhere;padding:9px}
#ifd-dns-guided .dns-site-clock{display:none}
#ifd-dns-guided[data-dns-stage="4"] .dns-site-clock,#ifd-dns-guided[data-dns-stage="5"] .dns-site-clock{display:block}
#ifd-dns-guided .dns-site-history{margin-top:16px}
#ifd-dns-guided .dns-guided-sites{display:grid;gap:7px;margin:12px 0 18px}
#ifd-dns-guided .dns-guided-sites>div{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:center;gap:8px}
#ifd-dns-guided .dns-guided-sites button{text-align:left;overflow-wrap:anywhere;min-height:40px;padding:8px;color:#155b8c;background:#f2f7fb;border:1px solid #b8cad9;border-radius:5px;cursor:pointer;font:13px/1.3 ui-monospace,monospace}
#ifd-dns-guided .dns-guided-sites span{font-size:13px;overflow-wrap:anywhere}
#ifd-dns-guided .dns-guided-task-head h1:focus{outline:none}
@media(max-width:760px){
 #ifd-dns-guided .dns-guided-body{display:block}
 #ifd-dns-guided .dns-guided-environment{padding:8px}
 #ifd-dns-guided .setup-devices{top:-8px}
 #ifd-dns-guided .setup-devices button{font-size:12px}
 #ifd-dns-guided .setup-devices button>span{display:none}
 #ifd-dns-guided .setup-devices button{grid-template-columns:1fr}
 #ifd-dns-guided .setup-appliance .service-app{padding:14px}
}
