/* Shared workspace dialogs stay roomy with a centered desktop margin. */
:is(#modal-root,.modal-root) .drawer-backdrop{padding:clamp(24px,6vh,64px) 6vw;min-width:0;box-sizing:border-box;place-items:center}
:is(#modal-root,.modal-root) .drawer-backdrop>.modal{width:100%;max-width:1280px;min-width:0;box-sizing:border-box;max-height:calc(100vh - clamp(48px,12vh,128px));max-height:calc(100dvh - clamp(48px,12dvh,128px));margin:0}
:is(#modal-root,.modal-root) .modal :is(.modal-body,form,.form-grid){min-width:0}
:is(#modal-root,.modal-root) #port-plan-rows{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));column-gap:24px}
:is(#modal-root,.modal-root) .port-plan-row{min-width:0}
:is(#modal-root,.modal-root) .port-plan-row .select{min-width:0;max-width:100%}
@media(max-width:600px){:is(#modal-root,.modal-root) .drawer-backdrop{padding:24px 12px}:is(#modal-root,.modal-root) .drawer-backdrop>.modal{width:100%;max-width:100%;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);border-radius:14px}}
/* Ethernet status cards stay dense even when their parent panel fills the screen. */
:is(#modal-root,.modal-root) .router-ports-modal #port-live-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:10px;align-items:start}
:is(#modal-root,.modal-root) .port-live-card{padding:12px;border-radius:10px}
:is(#modal-root,.modal-root) .port-live-card header b{font-size:13px}
:is(#modal-root,.modal-root) .port-live-card header small{font-size:11px;margin-top:2px}
:is(#modal-root,.modal-root) .port-link{padding:3px 7px;font-size:10px}
:is(#modal-root,.modal-root) .port-live-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0;font-size:11px;line-height:1.4}
:is(#modal-root,.modal-root) .port-live-stats span{min-width:0;flex-direction:column;align-items:flex-start;gap:3px}
:is(#modal-root,.modal-root) .port-live-stats b{font-size:12px;overflow-wrap:anywhere}
:is(#modal-root,.modal-root) .port-live-card>p{margin:8px 0;font-size:12px;line-height:1.4}
:is(#modal-root,.modal-root) .port-live-card footer{justify-content:flex-start;gap:6px}
:is(#modal-root,.modal-root) .port-live-card footer>span{font-size:10px;line-height:1.4}
:is(#modal-root,.modal-root) .port-live-card .btn{min-height:30px;padding:5px 8px;font-size:11px;line-height:1.35}
:is(#modal-root,.modal-root) .port-live-card>small{display:block;margin-top:6px;font-size:10px;line-height:1.4}

/* Router tools: section labels beside evenly sized action grids. */
.modal-root .router-detail-modal .router-detail-actions{grid-template-columns:minmax(0,1fr);align-items:start;gap:14px;margin:22px 0}
.modal-root .router-detail-modal .router-action-group{display:grid;grid-template-columns:180px minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:22px;row-gap:6px;align-items:start;min-width:0;padding:18px}
.modal-root .router-detail-modal .router-action-group h3{grid-column:1;grid-row:1;margin:3px 0 0}
.modal-root .router-detail-modal .router-action-group>p{grid-column:1;grid-row:2;margin:0;font-size:12px}
.modal-root .router-detail-modal [data-router-action-group="services"]{grid-column:2;grid-row:1/3;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:stretch}
.modal-root .router-detail-modal [data-router-action-group="checks"]{grid-column:2;grid-row:1/3;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}
.modal-root .router-detail-modal .router-detail-actions .router-tool-card{height:100%;min-height:88px;padding:12px;gap:10px;align-items:center}
.modal-root .router-detail-modal .router-tool-icon{width:32px;height:32px;border-radius:9px;font-size:18px}
.modal-root .router-detail-modal .router-tool-copy{gap:4px}
.modal-root .router-detail-modal .router-tool-copy b{font-size:13px}
.modal-root .router-detail-modal .router-tool-copy small{font-size:11px;line-height:1.45}
.modal-root .router-detail-modal .router-tool-arrow{flex-shrink:0;font-size:15px}
.modal-root .router-detail-modal .router-advanced-actions{margin:0;padding:15px 18px}
@media(max-width:1100px){.modal-root .router-detail-modal .router-action-group{grid-template-columns:150px minmax(0,1fr);column-gap:18px}.modal-root .router-detail-modal [data-router-action-group="services"]{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.modal-root .router-detail-modal .router-action-group{display:block;padding:16px}.modal-root .router-detail-modal .router-action-group>p{margin:6px 0 14px}.modal-root .router-detail-modal [data-router-action-group="services"],.modal-root .router-detail-modal [data-router-action-group="checks"]{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.modal-root .router-detail-modal [data-router-action-group="services"],.modal-root .router-detail-modal [data-router-action-group="checks"]{grid-template-columns:minmax(0,1fr)}.modal-root .router-detail-modal .router-detail-actions .router-tool-card{min-height:76px}}

/* Manual remote setup is an alternative to the main enable/verify sequence. */
.remote-setup-fallback{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:10px 0 14px;padding-top:12px;border-top:1px solid #ffffff20}.remote-setup-fallback>span{font-size:12px;opacity:.8}.theme-light .remote-setup-fallback{border-color:#17212d20}

/* Stable identity accents, separate from link and service status colors. */
.modal-root .port-plan-row>div>b,.modal-root .port-live-card header b{color:#7dd3fc}
.modal-root .router-name-accent,.modal-root .router-detail-modal>.modal-head h2{color:#f4d35e}
.modal-root.theme-light .port-plan-row>div>b,.modal-root.theme-light .port-live-card header b{color:#03658c}
.modal-root.theme-light .router-name-accent,.modal-root.theme-light .router-detail-modal>.modal-head h2{color:#806000}

/* Guided setup uses the same identity accents with quiet supporting text. */
.modal-root #network-form>h3{color:#f4d35e;padding-bottom:10px;border-bottom:1px solid #ffffff18;margin:24px 0 16px}
.modal-root #network-form .field{color:#7dd3fc}
.modal-root #network-form .field>small{color:#aab8c6;line-height:1.5}
.modal-root.theme-light #network-form>h3{color:#806000;border-color:#17212d20}
.modal-root.theme-light #network-form .field{color:#03658c}
.modal-root.theme-light #network-form .field>small{color:#526071}

/* Keep dialog dismissal and existing actions reachable during long forms. */
:is(#modal-root,.modal-root) .drawer-backdrop>.modal>.modal-head{position:sticky;top:0;z-index:5;background:inherit;flex-shrink:0}
:is(#modal-root,.modal-root) .drawer-backdrop>.modal>.modal-foot{position:sticky;bottom:0;z-index:5;background:inherit;flex-shrink:0}

/* Subscriber navigation stays close to both ends of the current page. */
.subscriber-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 20px;border-top:1px solid var(--ops-line,#34404d);font-size:12px}
.subscriber-pagination>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.subscriber-pagination label{display:flex;align-items:center;gap:8px}.subscriber-pagination .select{width:68px;min-height:32px;padding:5px 8px}.subscriber-pagination .btn{min-height:32px;padding:6px 10px;font-size:12px}
.customers-table tbody tr[hidden]{display:none!important}
@media(max-width:600px){.subscriber-pagination{padding:12px}.subscriber-pagination>div{width:100%;gap:8px}.subscriber-pagination label{width:100%}}

/* A quiet accent for optional assisted onboarding. */
.app-layout #setup-assistance{background:#183332;border-color:#365b57;color:#b1d8ce;box-shadow:none}
.app-layout #setup-assistance:hover{background:#20403c;border-color:#527970;color:#d0e9e1}
.app-layout #setup-assistance:focus-visible{outline:2px solid #88b9aa;outline-offset:3px}
.app-layout.theme-light #setup-assistance{background:#eaf3ef;border-color:#b9cfc5;color:#365e50}
.app-layout.theme-light #setup-assistance:hover{background:#dfede6;border-color:#91b3a3;color:#294d40}

/* Quiet action colors distinguish access tools from recovery operations. */
.modal-root .router-detail-modal .router-advanced-actions>summary{color:#9fc7d7}
.modal-root .router-detail-modal [data-router-action-group="advanced"]{gap:10px}
.modal-root .router-detail-modal .router-advanced-actions [data-router-action="native_agent_enrollment"],.modal-root .router-detail-modal .router-advanced-actions [data-router-action="connector_enrollment"]{background:#1c303e;border-color:#3c5668;color:#bdd7e5}
.modal-root .router-detail-modal .router-advanced-actions [data-router-action="retry_claim"]{background:#19372f;border-color:#3b6053;color:#bad9cb}
.modal-root .router-detail-modal .router-advanced-actions [data-router-action="revoke_connector"]{background:#3a2925;border-color:#715149;color:#e2c0b5}
.modal-root .router-detail-modal .router-advanced-actions [data-router-tool="replacement"]{background:#302e24;border-color:#625a40;color:#d9cda7}
.modal-root .router-detail-modal .router-advanced-actions .btn:hover{filter:brightness(1.12)}
.modal-root .router-detail-modal .router-advanced-actions .btn:focus-visible{outline:2px solid #94b9c5;outline-offset:3px}
.modal-root.theme-light .router-detail-modal .router-advanced-actions>summary{color:#3c6577}
.modal-root.theme-light .router-detail-modal .router-advanced-actions [data-router-action="native_agent_enrollment"],.modal-root.theme-light .router-detail-modal .router-advanced-actions [data-router-action="connector_enrollment"]{background:#edf3f8;border-color:#b8ccd9;color:#3b5d73}
.modal-root.theme-light .router-detail-modal .router-advanced-actions [data-router-action="retry_claim"]{background:#edf5ef;border-color:#bfd3c5;color:#3d6250}
.modal-root.theme-light .router-detail-modal .router-advanced-actions [data-router-action="revoke_connector"]{background:#f8efeb;border-color:#ddc1b5;color:#855347}
.modal-root.theme-light .router-detail-modal .router-advanced-actions [data-router-tool="replacement"]{background:#f7f3e9;border-color:#d5c9a8;color:#73623a}

.payment-service-summary{margin:12px 0 16px}
.payment-service-summary h4{margin:0 0 8px}
.payment-service-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;list-style:none;margin:0;padding:0}
.payment-service-steps li{display:grid;align-content:start;gap:3px;min-width:0;padding:9px 11px;border:1px solid var(--ops-line,#344452);border-radius:9px;overflow-wrap:anywhere}
.payment-service-steps :is(small,time),.payment-service-note{font-size:.78rem}
.payment-service-steps b{font-size:.9rem}
.payment-service-note{display:flex;flex-wrap:wrap;gap:4px 18px;margin-top:8px}
@media(max-width:700px){.payment-service-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}

.customer-search.search::before{top:50%;transform:translateY(-50%);line-height:1;pointer-events:none}

/* Hotspot dashboard: separate activity from package and voucher inventory. */
.hotspot-admin-page .hotspot-metrics{gap:12px;margin-bottom:14px}
.hotspot-admin-page .hotspot-metrics[aria-label="Hotspot activity"]{grid-template-columns:repeat(3,minmax(0,1fr))}
.hotspot-admin-page .hotspot-metrics .metric{min-width:0;min-height:0;padding:14px 16px;display:flex;flex-direction:column;align-items:flex-start;gap:5px}
.hotspot-admin-page .hotspot-metrics .metric::after{display:none}
.hotspot-admin-page .hotspot-metrics .metric-value{margin:0;font-size:clamp(20px,2.2vw,28px);line-height:1.2}
.hotspot-admin-page .hotspot-metrics .metric small{margin:0;font-size:12px;line-height:1.4}
.hotspot-admin-page .hotspot-metrics .metric a{font-size:12px;font-weight:650;color:#8bc6ff}
.app-layout.theme-light .hotspot-admin-page .hotspot-metrics .metric a{color:#145e9c}
.hotspot-admin-page .hotspot-heading-actions{display:flex;flex-wrap:wrap;gap:8px}
.hotspot-admin-page .hotspot-admin-grid{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:14px}
.hotspot-admin-page .hotspot-admin-grid>.panel{min-width:0}
.hotspot-admin-page .hotspot-admin-grid .panel-header{gap:10px;padding:14px 16px;min-height:0;flex-wrap:wrap}
.hotspot-admin-page .hotspot-admin-grid .panel-header :is(h2,p){margin:0}
.hotspot-admin-page .hotspot-admin-grid .panel-header p{margin-top:4px;color:var(--ops-muted)}
.hotspot-admin-page .package-admin-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));gap:10px}
.hotspot-admin-page .package-admin{min-width:0;padding:12px;overflow-wrap:anywhere}
.hotspot-admin-page .package-admin h3{font-size:14px;margin:0 0 6px}
@media(max-width:760px){.hotspot-admin-page .hotspot-admin-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:520px){.hotspot-admin-page .hotspot-metrics[aria-label="Hotspot activity"]{grid-template-columns:repeat(2,minmax(0,1fr))}.hotspot-admin-page .hotspot-metrics[aria-label="Hotspot activity"] .metric:last-child{grid-column:1/-1}}

/* Hotspot commerce surfaces and metric accents. */
.hotspot-admin-page{
  --hotspot-hero:#182537;--hotspot-edge:#34465b;--hotspot-surface:#17212e;
  --hotspot-blue:#91c9ff;--hotspot-green:#80dfbd;--hotspot-gold:#f2ce76;--hotspot-violet:#cab5fa
}
.app-layout.theme-light .hotspot-admin-page{
  --hotspot-hero:#e9f3ff;--hotspot-edge:#c5d6e8;--hotspot-surface:#f8fbff;
  --hotspot-blue:#205d95;--hotspot-green:#12634b;--hotspot-gold:#80520b;--hotspot-violet:#634795
}
.hotspot-admin-page>.page-heading{
  padding:clamp(16px,2.4vw,28px);margin-bottom:16px;border:1px solid var(--hotspot-edge);
  border-radius:18px;background:radial-gradient(ellipse at 92% 0%,color-mix(in srgb,var(--hotspot-gold) 15%,transparent),transparent 56%),var(--hotspot-hero)
}
.hotspot-admin-page>.page-heading .eyebrow{color:var(--hotspot-gold)}
.hotspot-admin-page .hotspot-heading-actions .btn:not(.btn-primary){background:var(--hotspot-surface);border-color:var(--hotspot-edge)}
.hotspot-admin-page .hotspot-metrics .metric{
  --hotspot-accent:var(--hotspot-blue);position:relative;padding:13px 15px 13px 17px;
  border-color:var(--hotspot-edge);border-left:3px solid var(--hotspot-accent);
  background:linear-gradient(120deg,color-mix(in srgb,var(--hotspot-accent) 7%,var(--hotspot-surface)),var(--hotspot-surface))
}
.hotspot-admin-page .hotspot-metrics .metric:nth-child(2){--hotspot-accent:var(--hotspot-green)}
.hotspot-admin-page .hotspot-metrics .metric:nth-child(3){--hotspot-accent:var(--hotspot-violet)}
.hotspot-admin-page .hotspot-metrics[aria-label="Hotspot activity"] .metric:nth-child(3){--hotspot-accent:var(--hotspot-gold)}
.hotspot-admin-page .hotspot-metrics .metric-value{color:var(--hotspot-accent)}
.hotspot-admin-page .hotspot-metrics .metric a{color:var(--hotspot-blue)}
.hotspot-admin-page .hotspot-metrics .metric a:hover{text-decoration:underline}
.hotspot-admin-page .hotspot-admin-grid>.panel{border-color:var(--hotspot-edge);border-top:2px solid var(--hotspot-blue)}
.hotspot-admin-page .hotspot-admin-grid>.panel:nth-child(2){border-top-color:var(--hotspot-violet)}
.hotspot-admin-page .hotspot-admin-grid .panel-header{background:var(--hotspot-surface)}
.hotspot-admin-page .package-admin{background:var(--hotspot-surface);border-color:var(--hotspot-edge)}
.hotspot-admin-page .package-admin-price{color:var(--hotspot-gold)}
.hotspot-admin-page .voucher-list article{gap:10px}
.hotspot-admin-page .voucher-list article>span:first-child{min-width:0;overflow-wrap:anywhere}
@media(max-width:760px){.hotspot-admin-page>.page-heading{gap:14px}.hotspot-admin-page .hotspot-heading-actions{width:100%}}

.hotspot-admin-page.hotspot-compact>.page-heading{padding:0;background:none;border:0;border-radius:0;margin-bottom:16px}
.hotspot-activity-strip{display:flex;flex-wrap:wrap;gap:8px 0;padding:10px 0 14px;margin-bottom:14px;border-block-end:1px solid var(--hotspot-edge);font-size:13px}
.hotspot-activity-strip>*{padding-inline:14px;border-inline-end:1px solid var(--hotspot-edge)}
.hotspot-activity-strip>:first-child{padding-inline-start:0;color:var(--hotspot-blue)}
.hotspot-activity-strip>:last-child{border:0}
.hotspot-online-label{color:var(--hotspot-green)}
.hotspot-activity-strip small,.hotspot-workbench-heading :is(small,p),.hotspot-package-rows li span{color:var(--ops-muted)}
.hotspot-workbench{overflow:hidden}
.hotspot-workbench [hidden]{display:none!important}
.hotspot-workbench-tabs{display:flex;gap:18px;padding-inline:16px;border-bottom:1px solid var(--hotspot-edge)}
.hotspot-workbench-tabs button{font:inherit;color:inherit;background:none;border:0;border-bottom:2px solid transparent;padding:12px 3px;cursor:pointer}
.hotspot-workbench-tabs button[aria-pressed="true"]{border-color:var(--hotspot-blue);color:var(--hotspot-blue);font-weight:700}
.hotspot-workbench-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:12px 16px}
.hotspot-workbench-heading :is(h3,p){margin:0}
.hotspot-workbench-heading p{font-size:12px;margin-top:4px}
.hotspot-package-rows,.hotspot-workbench .voucher-list{list-style:none;margin:0;padding:0 16px}
.hotspot-package-rows li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px 18px;border-top:1px solid var(--hotspot-edge);padding:11px 0;font-size:13px}
.hotspot-package-rows li b{overflow-wrap:anywhere}
.hotspot-package-rows li strong{color:var(--hotspot-gold)}
@media(max-width:520px){.hotspot-package-rows li{grid-template-columns:minmax(0,1fr) auto}.hotspot-package-rows li span{grid-row:2}.hotspot-package-rows li strong{grid-column:2;grid-row:1}}

.subscriber-usage-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin-bottom:12px}
.subscriber-usage-heading h3{margin:0}

/* PPPoE policy modal: breathing room for focus rings and readable previews. */
#pppoe-policy-form{display:grid;gap:14px}
#pppoe-policy-form>.field{display:grid;gap:6px;min-width:0;margin:0}
#pppoe-policy-form>.field :is(.select,.input){width:100%;max-width:100%}
#pppoe-policy-form>#pppoe-policy-comparison{grid-template-columns:repeat(2,minmax(0,1fr));margin:2px 0 0;gap:12px}
#pppoe-policy-comparison>article{min-width:0;overflow-wrap:anywhere}
#pppoe-policy-form>#pppoe-policy-price{margin:0}
#pppoe-policy-form>.error:empty{display:none}
#pppoe-policy-form>button[type="submit"]{justify-self:start}
#pppoe-policy-result{margin-top:14px}
#pppoe-policy-result+.port-toolbar{margin-top:10px}
#modal-root.theme-light #pppoe-policy-comparison>article{background:#f1f5f9;border-color:#cbd5e1;color:#182b3e}
#modal-root.theme-light #pppoe-policy-comparison>article b{color:#182b3e}
#modal-root.theme-light #pppoe-policy-comparison>article :is(small,span){color:#415a73}
@media(max-width:560px){#pppoe-policy-form>#pppoe-policy-comparison{grid-template-columns:minmax(0,1fr)}}
