body.one-v66-shell > main.router-workspace {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  padding-inline: clamp(8px, 1vw, 16px);
}
.router-workspace > .section, .router-workspace-grid { margin-top: 12px; }
.router-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  box-sizing: border-box;
  text-decoration: none;
}
.router-workspace > .router-back { margin-bottom: 10px; }
.router-heading { display: flex; align-items: center; gap: 16px; }
.router-heading > div { flex: 1; min-width: 0; }
.router-heading img { object-fit: contain; flex-shrink: 0; }
.router-workspace-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.router-workspace :is(h1, h2), .router-overview h2 { margin: 0 0 .5rem; }
.router-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.router-workspace label { display: grid; gap: 6px; min-width: 0; }
.router-workspace :is(select, input, textarea) { width: 100%; min-width: 0; box-sizing: border-box; }
:is(.router-workspace, .router-overview) button { min-height: 44px; padding: 8px 14px; }
.router-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 8px 18px; }
.router-facts > div { border-bottom: 1px solid var(--one-line); padding: 8px 0; min-width: 0; }
.router-facts dt { font-size: .85rem; }
.router-facts dd { margin: 3px 0 0; font-weight: 700; overflow-wrap: anywhere; }
#setup-command { min-height: 5rem; font-family: monospace; }
.router-heading p, [data-router="ping-result"] { overflow-wrap: anywhere; }
[data-router="message"]:empty { display: none; }
body.tycon-one-app .one-v280-overview-tabs button[hidden] { display: none !important; }
body.tycon-one-app [data-router-selected="true"] .one-v280-summary-panel {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
@media (max-width: 700px) {
  .router-workspace-grid, .router-form-grid { grid-template-columns: minmax(0, 1fr); }
  .router-heading img { width: clamp(64px, 19vw, 96px); height: auto; }
}

:is(.router-workspace, .router-overview) label { display:grid; gap:6px; min-width:0; margin-block:12px; }
:is(.router-workspace, .router-overview) :is(input, select, textarea) { width:100%; min-width:0; box-sizing:border-box; padding:10px; }
:is(.router-workspace, .router-overview) textarea { min-height:7rem; overflow-wrap:anywhere; }
:is(.router-workspace, .router-overview) [hidden] { display:none !important; }
.router-overview > .section { margin-top:12px; }

.router-management-picker { display:grid; grid-template-columns:1fr 1.5fr 1fr; gap:12px; }
.router-management-layout { display:grid; grid-template-columns:minmax(190px, 25%) minmax(0,1fr); gap:20px; }
.router-management-layout nav { display:grid; align-content:start; gap:8px; max-height:75vh; overflow:auto; }
.router-management-layout .router-control-button { text-align:left; white-space:normal; border:1px solid var(--one-line); border-radius:10px; }
.router-management-field { min-width:0; margin:12px 0; }
.router-management-field fieldset { border:1px solid var(--one-line); border-radius:12px; padding:12px; min-width:0; }
.router-management-field small { display:block; opacity:.8; line-height:1.5; }
:is(.router-workspace,.router-overview) .router-management-include { display:flex; align-items:center; gap:8px; }
:is(.router-workspace,.router-overview) .router-management-include input, .router-management-field input[type="checkbox"] { width:20px; min-height:20px; flex:0 0 20px; }
.router-management-value { display:grid; grid-template-columns:minmax(120px,30%) minmax(0,1fr); gap:12px; padding:8px 0; border-bottom:1px solid var(--one-line); overflow-wrap:anywhere; }
.router-management-records details { margin:10px 0; padding:12px; border:1px solid var(--one-line); border-radius:10px; }
.router-management-records summary { cursor:pointer; font-weight:700; }
.router-management-array-row { margin:12px 0; padding:12px; border:1px solid var(--one-line); border-radius:10px; }
@media(max-width:800px){.router-management-picker,.router-management-layout{grid-template-columns:minmax(0,1fr)}.router-management-layout nav{max-height:240px}.router-management-value{grid-template-columns:minmax(0,1fr)}}

/* One router workspace: summary in the site, full controls in details. */
:is(.router-details,.router-summary) > .section,
:is(.router-details,.router-summary) .router-workspace-grid > .section { padding:22px !important; margin-bottom:0; }
:is(.router-details,.router-summary) .router-heading { gap:20px; }
:is(.router-details,.router-summary) .router-heading :is(h1,h2) { font-size:clamp(1.5rem,2.4vw,2rem) !important; line-height:1.15; margin:0 0 6px; }
:is(.router-details,.router-summary) .router-heading img { width:88px; height:88px; }
:is(.router-details,.router-summary) .router-heading p { margin:6px 0 10px; }
:is(.router-details,.router-summary) .router-heading .eyebrow { font-size:.7rem; margin:0 0 8px; }
.router-header-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.router-header-actions a { text-decoration:none; }
.router-health-chip { display:inline-flex; align-items:center; gap:7px; font-size:.85rem; font-weight:700; color:#627487; }
.router-health-chip::before { content:''; width:8px; height:8px; border-radius:50%; background:currentColor; }
.router-health-chip.online { color:#177248; }
.router-main-nav { display:flex; gap:6px; overflow-x:auto; padding:12px 0; margin-top:4px; border-bottom:1px solid var(--one-line); }
.router-main-nav button { flex:0 0 auto; border:1px solid transparent; border-radius:10px; background:transparent; color:inherit; font:inherit; font-weight:650; cursor:pointer; }
.router-main-nav button.active { background:#0755ac; color:white; box-shadow:0 3px 8px #12395d20; }
.router-main-nav button:disabled { opacity:.45; cursor:default; }
.router-main-nav button:focus-visible,.router-page-button:focus-visible { outline:3px solid #338bdb; outline-offset:2px; }
.router-details > [data-router="wifi"],.router-details > [data-router="management"] { margin-top:14px; }
:is(.router-details,.router-summary) .section h2 { font-size:1.35rem !important; }
.router-management-picker { display:flex; align-items:end; gap:12px; border-bottom:1px solid var(--one-line); margin-bottom:18px; padding-bottom:14px; }
.router-management-picker > label { flex:1; max-width:480px; margin:0; }
.router-management-picker .router-mobile-page { display:none; }
.router-management-layout { grid-template-columns:240px minmax(0,1fr); gap:24px; }
.router-management-layout .router-page-nav { gap:3px; max-height:65vh; padding-right:14px; border-right:1px solid var(--one-line); }
.router-page-nav .router-page-button { border:0; border-radius:8px; text-align:left; white-space:normal; font:inherit; font-size:.88rem; line-height:1.4; background:transparent; color:inherit; cursor:pointer; }
.router-page-nav .router-page-button.active { background:#e2edf9; color:#074c94; font-weight:700; }
.router-management-content { min-width:0; }
.router-management-content h3 { font-size:1.25rem; margin:18px 0 8px; }
.router-management-content > p { margin:8px 0 16px; }
.router-management-content .router-action-picker { margin-top:0; }
.router-management-content form > button { margin:6px 8px 6px 0; }
.router-management-content [data-manage="message"]:empty { display:none; }
@media(max-width:800px) {
  .router-management-layout { grid-template-columns:minmax(0,1fr); }
  .router-management-layout .router-page-nav { display:none; }
  .router-management-picker { display:grid; grid-template-columns:minmax(0,1fr); }
  .router-management-picker .router-mobile-page { display:grid; }
  .router-management-picker > label { max-width:none; }
  :is(.router-details,.router-summary) > .section,
  :is(.router-details,.router-summary) .router-workspace-grid > .section { padding:16px !important; }
  :is(.router-details,.router-summary) .router-heading img { width:64px; height:64px; }
  .router-main-nav { gap:2px; }
}

:is(.router-details,.router-summary) .router-header-actions .btn {
  display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:8px 14px;
  box-sizing:border-box; border-radius:12px; font-size:.9rem; line-height:1.3; font-weight:650; text-decoration:none;
}
.router-local-note { font-size:.8rem; margin:8px 4px; opacity:.8; }
.router-name-form { margin-top:12px; }
.router-name-form label { max-width:480px; }
.router-name-form button { margin-right:8px; }
.router-management-picker { flex-wrap:wrap; }
.router-saved-note { font-size:.85rem; }

.router-dashboard-panel { margin-top:12px; }
.router-dashboard-panel .btn { display:inline-flex; align-items:center; padding:10px 14px; min-height:44px; margin:6px 10px 6px 0; text-decoration:none; border-radius:12px; }

.router-setup-wizard > .section { margin-top:16px; padding:24px !important; }
.router-setup-wizard h1 { font-size:2rem !important; }
.router-setup-wizard h2 { font-size:1.4rem !important; }
.router-setup-choices { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:16px; margin:18px 0; }
.router-setup-choices button { text-align:left; padding:24px; border:1px solid var(--one-line); border-radius:16px; background:var(--one-surface,transparent); color:inherit; cursor:pointer; }
.router-setup-choices strong,.router-setup-choices span { display:block; }
.router-setup-choices strong { font-size:1.15rem; margin-bottom:12px; }
.router-setup-choices span { line-height:1.5; opacity:.8; }
#setup-progress { display:flex; align-items:center; gap:16px; margin-top:16px; }
.router-setup-wizard .btn { display:inline-flex; align-items:center; min-height:44px; padding:10px 16px; margin:8px 10px 8px 0; text-decoration:none; }

/* Site overview never exposes direct router administration. */
.router-summary [data-router="login"] { display:none !important; }
:is(.router-summary,.router-details) [hidden] { display:none !important; }
