.tools-heading{align-items:flex-start}.tools-heading .tools-actions{justify-content:flex-end}.tools-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tools-actions .button,.tools-card .button{min-height:33px;padding:7px 10px;font-size:12px}.tools-card{background:#fff;border:1px solid #e0e7f0;border-radius:8px;padding:21px 23px;margin-bottom:20px;min-width:0}.tools-card-heading{margin-bottom:18px}.tools-card h2{font-size:16px;font-weight:600;color:#2a405e;margin:0}.tools-card-heading p{font-size:12px;color:#5e7089;line-height:1.7;margin:8px 0 0}.tools-note{border-left:3px solid #88aed4;background:#f4f8fd;border-radius:3px;padding:12px 14px;color:#526e90;font-size:13px;line-height:1.7;overflow-wrap:anywhere}.tools-note.is-error{border-color:#d3a261;background:#fff8ed;color:#92611d}.tools-small{font-size:12px;color:#5e7089;line-height:1.7}.tools-badge{display:inline-flex;align-items:center;gap:6px;border-radius:4px;background:#eef2f7;color:#566b85;padding:4px 7px;font-size:11px;font-weight:500;white-space:nowrap}.tools-badge:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.tools-badge.active{color:#08746e;background:#e8f5f2}.tools-badge.expired,.tools-badge.critical{color:#b44437;background:#fff0ed}.tools-badge.expiring,.tools-badge.warning{color:#8d5e15;background:#fff5df}.tools-table-wrap{overflow-x:auto;max-width:100%}.tools-table{width:100%;border-collapse:collapse;white-space:nowrap}.tools-table th{text-align:left;background:#f5f7fb;color:#5e7089;font-size:12px;font-weight:600;padding:12px 13px;border-block:1px solid #e4ebf4}.tools-table td{font-size:13px;color:#586e89;padding:13px;border-bottom:1px solid #e9eef5;vertical-align:middle;max-width:300px}.tools-table td:last-child{padding-right:4px}.tools-table tbody tr:last-child td{border-bottom:0}.tools-table td .tools-actions{min-width:145px;flex-wrap:nowrap}.tools-table tbody tr:hover{background:#f8fbff}.tools-table .button.secondary{border-color:transparent;background:transparent;color:#5b779a;padding-inline:6px}.tools-table .button.secondary:hover{background:#edf4fc}.tools-table .button.primary{background:#eef5fd;border-color:#c4d8f0;color:#165fb2;box-shadow:none}.tools-table .button.primary:hover{background:#deedfd}.tools-identity{display:flex;flex-direction:column;gap:6px}.tools-identity strong{font-size:13px;color:#263e5d;font-weight:600;white-space:normal;overflow-wrap:anywhere;min-width:100px;max-width:230px}.tools-identity small{font-size:11px;color:#5e7089}.tools-filter{display:flex;gap:14px;align-items:end;flex-wrap:wrap;margin-bottom:19px}.tools-filter .tools-field:first-child{flex:1;min-width:200px;max-width:510px}.tools-filter .tools-field:not(:first-child){min-width:120px}.tools-field{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:12px;color:#4c6483}.tools-field>span{font-weight:600}.tools-field input,.tools-field select,.tools-field textarea{width:100%;font:inherit;min-height:38px;border:1px solid #cbd7e5;border-radius:6px;color:#2f4868;background:#fff;padding:9px 11px;outline:none}.tools-field input[readonly]{background:#f3f6fa;color:#8390a5}.tools-field textarea{resize:vertical;min-height:80px}.tools-field small{font-size:11px;color:#5e7089;line-height:1.65}.tools-field input:focus,.tools-field select:focus,.tools-field textarea:focus{border-color:#4a88cc;box-shadow:0 0 0 3px #1565c014}.tools-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px 23px;margin:16px 0 24px}.tools-form-grid .wide{grid-column:1/-1}.tools-stats{margin-bottom:23px}.tools-dialog{width:min(700px,calc(100vw - 36px));max-height:90dvh;padding:0;border:1px solid #cedbe9;border-radius:10px;color:#304965;background:#fff;box-shadow:0 25px 90px #10223a30;overflow:auto}.tools-dialog.wide{width:min(1000px,calc(100vw - 36px))}.tools-dialog::backdrop{background:#10223a70;backdrop-filter:blur(3px)}.tools-modal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:23px 26px 20px;border-bottom:1px solid #e4ebf4;position:sticky;top:0;background:#fff;z-index:2}.tools-modal-heading h2{font-size:20px;color:#2b4261;margin:0;overflow-wrap:anywhere}.tools-modal-heading p{margin:8px 0 0;font-size:12px;color:#5e7089;line-height:1.7}.tools-close{display:flex;gap:5px;align-items:center;border:0;background:#f1f5fa;border-radius:5px;padding:7px 9px;color:#5e7089;font-size:12px;flex-shrink:0}.tools-close .ui-icon{width:15px;height:15px}.tools-modal-body{padding:23px 26px}.tools-modal-body .tools-card{background:#f9fbfe;border-color:#e3ebf5;margin-top:20px}.tools-info{display:grid;grid-template-columns:105px minmax(0,1fr) 105px minmax(0,1fr);gap:0;margin:22px 0;border:1px solid #e0e8f2;border-radius:6px;overflow:hidden;font-size:12px}.tools-info dt,.tools-info dd{padding:12px;margin:0;border-bottom:1px solid #e6edf6;overflow-wrap:anywhere;min-width:0}.tools-info dt{background:#f4f7fb;color:#5e7089}.tools-info dd{color:#3d587a;background:#fff}.tools-output{display:block;resize:vertical;width:100%;min-height:145px;max-height:45dvh;padding:14px;margin:15px 0;border:1px solid #d8e3f0;background:#f4f8fd;border-radius:6px;color:#3d5c82;font:12px/1.8 Consolas,monospace;word-break:break-all;white-space:pre-wrap}.danger-text{color:#b9463b!important}.tools-profile-list{margin-top:20px}.tools-profile-list .tools-card-heading{border-bottom:1px solid #e5ecf5;padding-bottom:15px;display:flex;align-items:center;gap:8px}.tools-check{display:flex;gap:9px;align-items:center;font-size:12px;color:#607b9b;margin:0 0 18px}.tools-check input{min-height:0;accent-color:#1565c0}.tools-network>.tools-actions{margin-bottom:17px}.tools-alerts{display:flex;flex-direction:column;gap:0}.tools-alert{padding:20px 0;border-bottom:1px solid #e5ecf4}.tools-alert:first-child{padding-top:0}.tools-alert:last-child{border:0;padding-bottom:0}.tools-alert h3{font-size:14px;font-weight:600;margin:11px 0;color:#385676}.tools-alert p{font-size:13px;color:#5e7089;line-height:1.7;margin:8px 0}.tools-alert small{display:block;font-size:11px;color:#5e7089;margin:9px 0 14px}.tools-terminal{height:430px;max-height:55dvh;min-height:200px;background:#101e31;border-radius:6px;padding:11px;overflow:hidden}.tools-terminal .xterm{height:100%}.tools-terminal .xterm-viewport{border-radius:4px}#tools-content{min-width:0}#tools-content>form{max-width:1180px}.tools-action-results:empty{display:none}
/* Operational overview: one metric rail and factual state distribution. */
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr);gap:20px}.dashboard-grid>.tools-card{margin-bottom:20px}.health-row{margin-top:24px}.health-row:first-of-type{margin-top:10px}.health-title{display:flex;align-items:center;justify-content:space-between;color:#334f70;font-size:13px;margin-bottom:12px}.health-title strong{font-size:15px}.health-title small{font-size:12px;color:#5e7089}.health-track{height:9px;display:flex;overflow:hidden;border-radius:3px;background:#e9eef5}.health-segment{height:100%;min-width:0}.health-segment.online{background:#168e9c}.health-segment.offline{background:#b9c7d9}.health-segment.unknown{background:#e7a746}.health-legend{display:flex;gap:19px;flex-wrap:wrap;margin-top:11px;font-size:12px;color:#5e7089}.health-legend span{display:flex;align-items:center;gap:6px}.health-legend i{width:6px;height:6px;border-radius:2px;background:#b9c7d9}.health-legend .online{background:#168e9c}.health-legend .unknown{background:#e7a746}.health-legend b{font-weight:600;color:#3d587a;margin-left:3px}.attention-row{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid #e7edf5}.attention-row:last-child{border:0;padding-bottom:0}.attention-row>.ui-icon{width:19px;height:19px;color:#a36d20}.attention-row>div{flex:1;min-width:0}.attention-row strong{font-size:13px;color:#48617f;font-weight:500}.attention-row p{margin:5px 0 0;font-size:11px;color:#5e7089}.attention-count{font-size:23px;font-weight:600;color:#a8711d;min-width:35px;text-align:right}.attention-row .button{color:#6681a2;background:transparent;border:0;padding-inline:6px}.quick-access{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border:1px solid #e0e7f0;background:#fff;border-radius:8px;margin-bottom:23px;overflow:hidden}.quick-link{display:flex;gap:12px;text-align:left;align-items:center;border:0;border-right:1px solid #e7edf5;padding:19px 20px;background:transparent;color:#416486;min-width:0}.quick-link:last-child{border:0}.quick-link:hover{background:#f1f7fe}.quick-link>.ui-icon{width:22px;height:22px;color:#377db7}.quick-link strong{display:block;font-size:13px;font-weight:600;color:#365475}.quick-link small{display:block;font-size:11px;color:#5e7089;margin-top:5px;line-height:1.5}.quick-link .ui-icon:last-child{width:15px;height:15px;margin-left:auto;color:#94a8c0}.dashboard-recent .tools-card-heading{display:flex;align-items:center;justify-content:space-between}.service-note{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:400;color:#527563}.service-note .ui-icon{width:14px;height:14px}.tools-date{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#536f90}.tools-date small{font-size:11px;color:#5e7089}.company-chip{display:inline-flex;align-items:center;border:1px solid #d2e1f3;border-radius:4px;padding:4px 7px;color:#386f9e;background:#f4f8fe;font-size:11px;white-space:nowrap}.company-chip.yingchuang{color:#087782;background:#eff9f8;border-color:#c6e6e2}.node-ratio{font-size:14px;color:#3c587a;white-space:nowrap}.node-ratio strong{font-size:17px;color:#147b79;font-weight:600}.node-ratio small{font-size:11px;color:#5e7089}.ros-status{display:flex;align-items:flex-start;flex-direction:column;gap:6px}.ros-status small{font-size:11px;color:#5e7089}.row-menu-trigger{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;background:transparent;color:#6b82a0;border-radius:5px;padding:6px;min-height:31px}.row-menu-trigger:hover{background:#eaf2fc}.action-popover{position:fixed;inset:auto;margin:0;width:205px;padding:6px;background:#fff;border:1px solid #dae4f1;border-radius:7px;box-shadow:0 10px 30px #18365422;color:#36516f;z-index:80}.action-popover::backdrop{background:transparent}.action-popover .button{display:flex;width:100%;justify-content:flex-start;border:0;background:transparent;padding:10px;font-size:12px;min-height:36px;color:#496b91;box-shadow:none}.action-popover .button:hover:not(:disabled){background:#eff5fc}.action-popover .button .ui-icon{width:15px;height:15px}.action-popover hr{border:0;border-top:1px solid #e8edf5;margin:5px 0}.action-menu{display:inline-flex}.tools-actions .row-menu-trigger .ui-icon{width:18px;height:18px}
@media(max-width:1150px){.tools-heading{flex-direction:column;align-items:stretch}.tools-heading .tools-actions{justify-content:flex-start}.tools-info{grid-template-columns:95px minmax(0,1fr)}.tools-table td{padding:12px 10px}.quick-link{padding:17px 15px;gap:9px}.quick-link small{display:none}.dashboard-grid{grid-template-columns:minmax(0,1.25fr) minmax(260px,1fr)}}
@media(max-width:780px){.tools-card{padding:19px 17px}.tools-form-grid{grid-template-columns:1fr;gap:17px}.tools-field.wide{grid-column:auto}.tools-dialog,.tools-dialog.wide{width:calc(100vw - 22px);max-height:94dvh}.tools-modal-heading,.tools-modal-body{padding:20px 18px}.tools-heading h1{font-size:23px}.tools-heading .tools-actions{gap:7px}.tools-actions .button{white-space:normal}.tools-info{grid-template-columns:84px minmax(0,1fr)}.tools-filter{gap:12px}.tools-filter .tools-field:first-child{flex-basis:100%;min-width:170px}.tools-filter .tools-field:not(:first-child){min-width:0;flex:1}.tools-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.tools-terminal{height:390px}.tools-table{min-width:780px}.dashboard-grid{grid-template-columns:1fr;gap:0}.quick-access{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-link{padding:17px 15px}.quick-link:nth-child(2){border-right:0}.quick-link:nth-child(-n+2){border-bottom:1px solid #e7edf5}.quick-link strong{font-size:12px}.quick-link>.ui-icon{width:20px;height:20px}.health-legend{gap:17px}.dashboard-recent .tools-card-heading{align-items:flex-start;gap:12px}.service-note{font-size:10px;white-space:nowrap}}

.tools-identity small,.tools-date,.tools-date small{font-size:12px;color:#5e7089}.row-menu-trigger{color:#4b6688;border-color:#dce5f0;background:#fff}.row-menu-trigger:hover{border-color:#adc6e5;background:#eaf2fc}.tools-card-heading+.health-row{margin-top:10px}

/* OpenWrt actions remain directly visible; narrow tables scroll independently. */
.tools-table td .tools-openwrt-row-actions{flex-wrap:wrap;min-width:360px;gap:6px}
@media(max-width:780px){.tools-table td .tools-openwrt-row-actions{min-width:250px;max-width:270px}}

/* Desktop OpenWrt action column: visible without horizontal scrolling. */
@media(min-width:1200px){
 .tools-table:has(.tools-openwrt-row-actions){table-layout:fixed;min-width:0;width:100%}
 .tools-table:has(.tools-openwrt-row-actions) :is(th,td):last-child{width:300px;padding-right:13px}
 .tools-table:has(.tools-openwrt-row-actions) :is(th,td):nth-last-child(2){width:110px}
 .tools-table:has(.tools-openwrt-row-actions) :is(th,td):nth-child(2){width:86px}
 .tools-table:has(.tools-openwrt-row-actions) :is(th,td):nth-last-child(3){width:160px}
 .tools-table:has(.tools-openwrt-row-actions):has(th:nth-child(6)) :is(th,td):nth-child(3){width:94px}
 .tools-table:has(.tools-openwrt-row-actions) td:first-child .tools-identity{min-width:0}
 .tools-table:has(.tools-openwrt-row-actions) td:first-child .tools-identity strong{min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .tools-table td .tools-openwrt-row-actions{min-width:0;max-width:none;width:100%;flex-wrap:wrap}
 .tools-openwrt-row-actions>.button{flex-shrink:0}
}
@media(min-width:1200px){.tools-table:has(.tools-openwrt-row-actions) td:nth-last-child(3) .tools-identity>:first-child{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}

/* Wide OpenWrt tables: bounded customer column and four inline actions. */
@media(min-width:1600px){
 .tools-table:has(.tools-openwrt-row-actions) :is(th,td):first-child{width:250px}
 .tools-table:has(.tools-openwrt-row-actions) :is(th,td):last-child{width:400px}
 .tools-table:has(.tools-openwrt-row-actions) :is(th,td):nth-last-child(3){width:calc(45% - 292.5px)}
 .tools-table:has(.tools-openwrt-row-actions) :is(th,td):nth-child(2){width:calc(20% - 130px)}
 .tools-table:has(.tools-openwrt-row-actions) :is(th,td):nth-last-child(2){width:calc(35% - 227.5px)}
 .tools-table:has(.tools-openwrt-row-actions):has(th:nth-child(6)) :is(th,td):nth-child(3){width:calc(20% - 130px)}
 .tools-table:has(.tools-openwrt-row-actions):has(th:nth-child(6)) :is(th,td):nth-last-child(3){width:calc(35% - 227.5px)}
 .tools-table:has(.tools-openwrt-row-actions):has(th:nth-child(6)) :is(th,td):nth-child(2){width:calc(15% - 97.5px)}
 .tools-table:has(.tools-openwrt-row-actions):has(th:nth-child(6)) :is(th,td):nth-last-child(2){width:calc(30% - 195px)}
 .tools-table td .tools-openwrt-row-actions{flex-wrap:nowrap}
}

/* Keep filters, table headings, and reading feedback usable during long sessions. */
.tools-table-wrap{max-height:min(65dvh,760px);overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain;scroll-padding-top:48px}
.tools-table-wrap:focus-visible{outline:3px solid #397fd0;outline-offset:-3px}
.tools-table th{position:sticky;top:0;z-index:1;background:#f5f7fb;box-shadow:0 1px 0 #dce5f0}
.tools-table-hint{display:none}.tools-list-summary,.tools-refresh-status{font-size:12px;color:#5e7089;line-height:1.7;margin:10px 0;overflow-wrap:anywhere}
.tools-table-block:not(:has(tbody tr))>.tools-table-hint{display:none}
.tools-loading{display:flex;align-items:center;gap:9px;font-size:13px;color:#526e90;line-height:1.7;padding:12px 0}
.tools-loading .spinner{width:17px;height:17px;flex-shrink:0}.tools-refresh-status[role="alert"]{color:#92611d}
.tools-modal-heading>div,.tools-heading>div:first-child{min-width:0}.tools-modal-body{overflow-wrap:anywhere}
.tools-output:focus-visible{outline:3px solid #397fd0;outline-offset:2px}.tools-info dd{line-height:1.65}
@media(max-width:780px){
 .tools-table-wrap{max-height:60dvh}.tools-table-hint{display:block;font-size:11px;color:#5e7089;margin:0 0 10px;line-height:1.7}
 .tools-actions .button,.tools-card .button,.tools-close,.row-menu-trigger,.action-popover .button{min-height:44px;min-width:44px}
 .tools-close,.row-menu-trigger{min-width:44px;justify-content:center}.tools-field input,.tools-field select,.tools-field textarea,.tools-output{font-size:16px}
 .tools-field input,.tools-field select{min-height:44px}.tools-check{min-height:44px}.tools-check input{min-width:20px;min-height:20px}
 .tools-modal-heading{gap:12px}.tools-modal-heading h2{font-size:19px;line-height:1.45}
 .tools-dialog .tools-actions{gap:8px}.tools-list-summary,.tools-refresh-status{margin-block:9px}
 .tools-filter .tools-field:not(:first-child){min-width:110px}.tools-filter .tools-list-summary{flex-basis:100%;margin:0}
 .dashboard-recent .tools-card-heading{flex-wrap:wrap}.service-note{white-space:normal}.quick-link{min-height:64px}
}
@media(pointer:coarse){.tools-actions .button,.tools-card .button,.tools-close,.row-menu-trigger,.action-popover .button{min-height:44px;min-width:44px}.tools-field input,.tools-field select,.tools-field textarea,.tools-output{font-size:16px}.tools-field input,.tools-field select{min-height:44px}}

@media(max-width:600px){
  :is(.dashboard-recent .tools-table,.tools-table:has(.tools-openwrt-row-actions,.ros-status)) :is(th,td):first-child{
    width:155px;max-width:155px
  }
  :is(.dashboard-recent .tools-table,.tools-table:has(.tools-openwrt-row-actions,.ros-status)) td:first-child .tools-identity>*{
    max-width:135px;white-space:normal;overflow-wrap:anywhere
  }
}
