/* My Router Login on the tools theme: reuses tools-routers-polish.css for hero, cards and sections;
   these rules restyle the gateway widgets from router-login.css to match. */
.tools-myrouter-page .router-selector-card .panel-body{padding:20px}
.tools-myrouter-page .myrouter-sub{margin:0 0 4px;color:#0b2d49!important;font-size:16px;font-weight:800}
.tools-myrouter-page .myrouter-hint{margin:0 0 12px;color:#4f6575;font-size:14px;line-height:1.55}

/* Quick addresses: clear two-column buttons with who uses each one. */
.tools-myrouter-page .gateway-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}
.tools-myrouter-page .gateway-preset{position:relative;display:flex;flex-direction:column;gap:2px;min-height:64px;padding:12px 40px 12px 14px;border:1px solid #d5e3ec;border-radius:12px;background:#f8fbfc;color:#0b2d49;text-decoration:none;transition:border-color .15s,background .15s}
.tools-myrouter-page .gateway-preset span{font-size:18px;font-weight:800;letter-spacing:.01em}
.tools-myrouter-page .gateway-preset small{color:#4f6575;font-size:12px;line-height:1.35}
.tools-myrouter-page .gateway-preset i{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#00766d}
.tools-myrouter-page .gateway-preset:hover,.tools-myrouter-page .gateway-preset:focus{border-color:#00766d;background:#f1faf8;text-decoration:none}

/* Custom address: one row of fields, then the action. */
.tools-myrouter-page .myrouter-custom{margin-top:20px;padding-top:18px;border-top:1px solid #e2eaef;background:none;border-radius:0;box-shadow:none;padding-left:0;padding-right:0;padding-bottom:0}
.tools-myrouter-page .myrouter-form-row{display:grid;grid-template-columns:minmax(0,1fr) 170px;gap:12px}
.tools-myrouter-page #gateway-form label{display:block;margin-bottom:6px;color:#173a53;font-size:13px;font-weight:800}
.tools-myrouter-page #gateway-address,.tools-myrouter-page #gateway-protocol{width:100%;height:46px;padding:0 12px;border:1px solid #c9d8e2;border-radius:10px;background:#fff;color:#173a53;font-size:15px}
.tools-myrouter-page #gateway-address:focus,.tools-myrouter-page #gateway-protocol:focus{border-color:#00766d;outline:0;box-shadow:0 0 0 3px rgba(0,118,109,.15)}
.tools-myrouter-page .gateway-field-help{margin:6px 0 0;color:#4f6575;font-size:13px}
.tools-myrouter-page .gateway-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;margin-top:14px;border:0;border-radius:10px;background:linear-gradient(135deg,#0b4965,#00766d);color:#fff;font-weight:800;text-decoration:none}
.tools-myrouter-page .gateway-primary:hover,.tools-myrouter-page .gateway-primary:focus{color:#fff;text-decoration:none;filter:brightness(1.08)}
.tools-myrouter-page .gateway-primary[aria-disabled=true]{background:#e8eef2;color:#455b6b;cursor:not-allowed;filter:none}
.tools-myrouter-page .gateway-destination{margin-top:12px}

/* Sign-in help: username + link to brand credentials. */
.tools-myrouter-page .myrouter-signin{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px;padding-top:18px;border-top:1px solid #e2eaef}
.tools-myrouter-page .gateway-username{margin:0;padding:14px;border:1px solid #dce7ed;border-radius:12px;background:#f8fbfc}
.tools-myrouter-page .gateway-username label{display:block;margin-bottom:6px;color:#173a53;font-size:13px;font-weight:800}
.tools-myrouter-page .gateway-username>div{display:flex;gap:8px}
.tools-myrouter-page .gateway-username input{flex:1;min-width:0;height:42px;padding:0 10px;border:1px solid #c9d8e2;border-radius:8px;background:#fff;font-family:monospace;font-size:15px}
.tools-myrouter-page .gateway-username button{min-height:42px;padding:0 14px;border:1px solid #00766d;border-radius:8px;background:#fff;color:#00665e;font-weight:800}
.tools-myrouter-page .gateway-username small{display:block;margin-top:8px;color:#4f6575;font-size:12px;line-height:1.5}
.tools-myrouter-page .myrouter-guide-link{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid #dce7ed;border-radius:12px;background:#fff;color:#0b2d49;text-decoration:none}
.tools-myrouter-page .myrouter-guide-link>i:first-child{color:#00766d;font-size:20px}
.tools-myrouter-page .myrouter-guide-link span{flex:1}
.tools-myrouter-page .myrouter-guide-link strong{display:block;font-size:14px;line-height:1.35}
.tools-myrouter-page .myrouter-guide-link small{display:block;margin-top:2px;color:#4f6575;font-size:12px}
.tools-myrouter-page .myrouter-guide-link>i:last-child{color:#00766d}
.tools-myrouter-page .myrouter-guide-link:hover,.tools-myrouter-page .myrouter-guide-link:focus{border-color:#00766d;text-decoration:none}
.tools-myrouter-page .gateway-private{display:flex;align-items:flex-start;gap:8px;margin:16px 0 0;color:#4f6575;font-size:13px;line-height:1.5}
.tools-myrouter-page .gateway-private i{margin-top:2px;color:#00766d}

/* Saved router banner. */
.tools-myrouter-page .gateway-remembered:not([hidden]){display:grid;gap:10px;margin:0 0 16px;padding:18px;border:1px solid #9fd9d1;border-left:5px solid #00766d;border-radius:14px;background:#f1faf8}
.tools-myrouter-page .gateway-remembered h2{margin:2px 0 4px;color:#0b2d49!important;font-size:19px}
.tools-myrouter-page .gateway-remembered code{color:#00665e;background:#fff;font-size:15px}
.tools-myrouter-page .gateway-remembered .gateway-primary{margin-top:0}

/* Device instructions. */
.tools-myrouter-page .myrouter-devices{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.tools-myrouter-page .myrouter-devices details{border:1px solid #dce7ed;border-radius:12px;background:#f8fbfc}
.tools-myrouter-page .myrouter-devices summary{display:flex;align-items:center;gap:8px;min-height:48px;padding:12px 14px;color:#173a53;font-weight:800;cursor:pointer}
.tools-myrouter-page .myrouter-devices summary i{width:18px;color:#00766d;text-align:center}
.tools-myrouter-page .myrouter-devices p{margin:0;padding:0 14px 14px;color:#35505f;font-size:14px;line-height:1.6}

/* Less common addresses. */
.tools-myrouter-page .myrouter-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.tools-myrouter-page .myrouter-chips a{padding:7px 12px;border:1px solid #d5e3ec;border-radius:999px;background:#fff;color:#0b3553;font-family:monospace;font-size:13px;font-weight:700}
.tools-myrouter-page .myrouter-chips a:hover,.tools-myrouter-page .myrouter-chips a:focus{border-color:#00766d;color:#00665e;text-decoration:none}
.tools-myrouter-page .gateway-support{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:14px;padding:14px 16px;border-radius:12px;background:#fdeceb;color:#7a271a}
.tools-myrouter-page .gateway-support p{margin:2px 0 0;font-size:13px}
.tools-myrouter-page .gateway-support a{flex-shrink:0;color:#b42318;font-weight:800}

@media(max-width:767px){
  .tools-myrouter-page .router-selector-card .panel-body{padding:16px}
  .tools-myrouter-page .gateway-presets{grid-template-columns:1fr}
  .tools-myrouter-page .myrouter-form-row,.tools-myrouter-page .myrouter-signin,.tools-myrouter-page .myrouter-devices{grid-template-columns:1fr}
  .tools-myrouter-page .gateway-support{flex-direction:column;align-items:flex-start}
}
.tools-myrouter-page .gateway-preset{align-items:flex-start!important;justify-content:center!important;text-align:left!important}
.tools-myrouter-page .myrouter-form-row{grid-template-columns:minmax(0,1fr) 210px}@media(max-width:767px){.tools-myrouter-page .myrouter-form-row{grid-template-columns:1fr}}
.tools-myrouter-page .myrouter-devices{align-items:start}
