/* v2.6.4: shared compact console for redirect and CDN, desktop and mobile. */
:root{--bg:#f5f6f8;--panel:#fff;--text:#273444;--muted:#798595;--line:#e6e9ee;--cyan:#2878e6;--blue:#2878e6;color-scheme:light}
html{scrollbar-gutter:stable}body{background:var(--bg);font:12px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--text)}body:before{display:none}
button,input,select,textarea{font:inherit}button{background:#2878e6;color:#fff;border-radius:4px;padding:6px 10px;min-height:30px;font-weight:500;box-shadow:none;transition:background .15s}button:hover{filter:none;background:#1768d4}button:focus-visible,summary:focus-visible{outline:2px solid #7eb3fa;outline-offset:2px}
.app{grid-template-columns:184px minmax(0,1fr)}#sidebar{padding:6px 6px 0;background:#fff;box-shadow:none;backdrop-filter:none;border-right:1px solid var(--line);overflow:hidden}
.workspace-switch{margin-bottom:4px;padding:2px;border-radius:5px;background:#f2f5fa;border-color:#e3e8ef;gap:2px}.workspace-switch button{padding:3px 0;min-height:26px;line-height:20px;font-size:12px;border-radius:3px}
.brand{height:44px;min-height:44px;font-size:14px;gap:7px;padding:0 8px}.brand:after{display:none}.brand .brand-mark.small{width:26px;height:26px;border-radius:6px;font-size:10px;box-shadow:none}.brand-footer{padding:8px 4px;margin-top:3px;font-size:10px}.brand-footer a{font-size:10px}.sidebar-bottom{padding:0 6px}.logout{font-size:12px;padding:6px;min-height:30px;margin:0}
.nav-fold-tools{display:flex;justify-content:flex-end;gap:10px;padding:3px 6px;border-bottom:1px solid #f1f2f5}.nav-fold-tools button{background:none;color:#8994a3;font-size:10px;min-height:22px;padding:0;box-shadow:none}
#nav{display:flex;flex-direction:column;gap:2px;margin-top:6px;overflow:auto;min-height:0;flex:1;padding-bottom:10px;scrollbar-width:thin}
#nav>button,#nav .nav-children>button{width:100%;min-height:32px;padding:6px 10px;font-size:12px;line-height:20px;border-radius:4px;color:#536171;background:transparent;box-shadow:none;text-align:left;flex:none;font-weight:400}
#nav button:before{font-size:13px;margin-right:8px;width:15px}#nav button:hover{background:#f4f7fb;color:#2878e6}#nav button.active{background:#ecf4ff;color:#2676de;box-shadow:none;font-weight:600}
.nav-group{border:0;margin:0}.nav-group summary{list-style:none;display:flex;align-items:center;justify-content:space-between;padding:7px 10px;min-height:34px;color:#536171;cursor:pointer;border-radius:4px;font-weight:500}.nav-group summary::-webkit-details-marker{display:none}.nav-group summary:hover{background:#f4f7fb}.nav-group.has-active>summary{color:#2676de}.nav-chevron{font-size:17px;line-height:16px;transform:rotate(0);transition:transform .15s}.nav-group[open]>.nav-chevron,.nav-group[open]>summary>.nav-chevron{transform:rotate(90deg)}
.nav-children{display:grid;gap:1px;margin-left:12px;padding-left:4px;border-left:1px solid #e9edf3}#nav .nav-children>button{padding:5px 8px;min-height:30px;font-size:12px}.nav-children button:before{display:none}
main{padding:0;min-height:100vh;max-width:100%;background:var(--bg)}.page-tabs{padding:3px 10px;margin:0;min-height:34px;background:#fff;border-bottom:1px solid var(--line);backdrop-filter:none;gap:5px}.page-tab{border-radius:4px}.page-tab button,.close-all-tabs{padding:3px 8px;min-height:26px;font-size:11px;line-height:20px}.page-tab .tab-close{width:22px;padding:3px}.page-tab-list{gap:4px}
main>header,.page-tabs+header{height:auto;min-height:56px;margin:0;padding:9px 12px;background:#fff;border-bottom:1px solid var(--line);gap:10px}.page-title-row{gap:10px}header h2{font-size:17px;font-weight:600}header p{font-size:11px;margin:2px 0 0;color:#8a95a3}.refresh-current{min-height:25px;padding:3px 7px;font-size:11px}.pill{font-size:11px;padding:5px 9px;border-radius:4px;box-shadow:none;background:#f8fafc;border-color:#e9edf2}
#content{min-width:0;padding:10px 12px 0;max-width:100%}.app-footer{margin:12px 0 0;padding:12px;border-color:var(--line);font-size:10px;gap:8px}.app-footer span,.app-footer a{font-size:10px}
.panel,.card,.cdn-panel,.cdn-metric,.cdn-hero,.line-card{background:#fff;border:1px solid var(--line);border-radius:5px;box-shadow:none}.panel{margin-top:10px}.cards,.cdn-metrics{gap:10px;grid-template-columns:repeat(4,minmax(0,1fr))}.card,.node-summary .card,.cdn-metric{padding:12px 14px}.card strong,.node-summary .card strong,.cdn-metric strong{font-size:23px;line-height:1.3;margin:4px 0;color:#273e5b}.card span,.cdn-metric>span{font-size:12px}.card small,.cdn-metric small{font-size:11px}.overview-dashboard{padding:0;background:transparent;box-shadow:none;border-radius:0}.overview-cards .card{background:#fff;box-shadow:none;border-color:var(--line)}.overview-cards .card:after{display:none}.overview-cards .card span{color:#798595}.overview-cards .card strong{color:#2878e6}.quota-panel{background:#fff}.quota-panel .card{background:#f7faff}.quota-panel small{color:#75859a}
.toolbar,.panel-head,.cdn-toolbar{gap:8px}.toolbar{padding-bottom:8px;flex-wrap:wrap}.toolbar>span{min-width:0}.toolbar>span:last-child{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.panel-head{padding:10px 12px}.panel-head h3,.toolbar h3,.cdn-toolbar h3{font-size:13px}.node-toolbar>span:first-child{flex:1 1 350px;font-size:11px;color:#7c8897}.node-toolbar>span:last-child{flex:0 1 auto;justify-content:flex-end}
.secondary,.icon,.cdn-button.cdn-secondary{background:#fff;border:1px solid #dce2e9;color:#53677f}.danger,.cdn-button.cdn-danger{background:#fff4f4;color:#d45353;border:1px solid #f3d3d3}.maintenance{background:#fff8e9;color:#ad7d27;border-color:#efe0bd}.tiny,.cdn-button.cdn-small{min-height:25px;padding:3px 6px;font-size:11px;border-radius:4px;margin:1px}.status,.cdn-chip{padding:2px 6px;border-radius:3px;font-size:11px;line-height:18px}.status{background:#eaf8f1;color:#248568}.status.off{background:#fff0f0;color:#cd5656}.status.warn{background:#fff6e5;color:#ad7d27}
.list-search,.stats-filter,.cdn-search{gap:7px}.list-search,.stats-filter{padding:8px 10px;border-radius:5px;border-color:var(--line);box-shadow:none;margin-bottom:10px}.list-search>input,.page-size select,.toolbar select,.node-sort select,.cdn-search input,.cdn-search select,.field input,.field select,.field textarea,.cdn-field input,.cdn-field select,.cdn-field textarea{padding:6px 8px;font-size:12px;min-height:30px;border-radius:4px;background:#fff;border-color:#dce2e9;color:#33465e}.list-search>input{min-width:140px}.page-info,.page-size,.node-sort,.local-list-tools,.cdn-count{font-size:11px}.local-list-tools{margin:8px 0;gap:10px}.local-list-tools select{padding:5px 8px;border-radius:4px;border:1px solid #dce2e9;background:#fff;font-size:12px}.pagination,.cdn-pagination{margin:8px 0 12px;font-size:11px;gap:8px}.pagination button{padding:4px 7px;min-height:26px;font-size:11px}
.table-wrap,.cdn-table-wrap{min-width:0;max-width:100%;overflow:auto}table,.cdn-table{font-size:12px}th,td,.cdn-table th,.cdn-table td{padding:8px 10px;border-color:#edf0f3}th,.cdn-table th{font-size:11px;font-weight:500;background:#f7f8fa;color:#738092}td{vertical-align:middle}.hint,.cdn-hint,.cdn-subline{font-size:11px;line-height:1.5}.empty,.cdn-empty{padding:26px}.target-url-list{max-width:320px}.target-url-list>div{grid-template-columns:17px minmax(0,1fr)}
.node-table{min-width:0;width:100%;table-layout:fixed}.node-table th,.node-table td{padding:8px 6px;overflow-wrap:anywhere;width:auto;max-width:none;vertical-align:top}.node-table th:nth-child(1),.node-table td:nth-child(1){width:26px}.node-table th:nth-child(2),.node-table td:nth-child(2){width:35px}.node-table th:nth-child(3),.node-table td:nth-child(3){width:18%}.node-table th:nth-child(4),.node-table td:nth-child(4){width:9%}.node-table th:nth-child(5),.node-table td:nth-child(5){width:15%}.node-table th:nth-child(6),.node-table td:nth-child(6){width:16%}.node-table th:nth-child(7),.node-table td:nth-child(7){width:10%}.node-table th:nth-child(8),.node-table td:nth-child(8){width:12%}.node-table th:nth-child(9),.node-table td:nth-child(9){width:auto}.node-name{font-size:12px;font-weight:600}.node-ip-list{max-width:100%;gap:3px}.node-ip-item{min-width:0;max-width:100%}.node-ip{min-width:0;font-size:10px;gap:4px;padding:2px 4px}.node-ip em{font-size:9px}.ip-copy{width:20px;min-height:20px}.node-ip-expand:empty{display:none}.node-ip-expand{min-height:0}.node-ip-summary{gap:4px;margin:4px 0}.metrics{min-width:0;gap:6px}.metric-row{font-size:11px}.metric-row i{height:3px}.sync-detail{font-size:11px;line-height:1.5;margin-top:4px}.node-heartbeat-note{font-size:10px;margin-top:4px}.node-detail{font-size:11px;margin:5px 0}.node-detail summary{cursor:pointer;color:#547ca7;list-style:disclosure-closed}.node-detail[open] summary{list-style:disclosure-open}.node-update{display:block;border-top:0;padding:0;margin-top:5px}.node-update>summary{font-size:10px}.sync-reason{max-width:100%;font-size:11px}.node-actions{gap:3px}.node-actions button{max-width:100%;white-space:normal}.node-summary{margin-bottom:10px}
.stats-tables{grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:start;gap:12px}.stats-tables>div{min-width:0}.stats-tables .panel{margin-top:0}.stats-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.stats-chart{padding:8px 10px}.stats-bars{height:210px}.stats-filter{grid-template-columns:repeat(5,minmax(0,1fr))}
.line-banner,.line-warning,.domain-notice,.cdn-note{padding:10px 12px;border-radius:5px;margin-bottom:10px;font-size:12px;line-height:1.6;border-color:#dfE8f4;background:#f1f7ff;box-shadow:none}.line-banner{gap:5px}.line-banner>span{font-size:11px}.domain-notice b{display:block;margin-bottom:3px;font-weight:600}.domain-notice>div{white-space:pre-wrap;overflow-wrap:anywhere;color:#65758b}.line-cards{gap:10px}.line-card{padding:12px}.route-config-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.cdn-shell{gap:12px}.cdn-panel{padding:12px}.cdn-table-panel{padding:0}.cdn-hero{padding:14px}.cdn-hero h3{font-size:18px}.cdn-hero p{font-size:12px;line-height:1.6}.cdn-kicker{font-size:10px;margin-bottom:4px}.cdn-grid,.cdn-grid.cdn-three{gap:12px}.cdn-button{font-size:12px;border-radius:4px;padding:6px 10px;min-height:30px}.cdn-table{min-width:0;table-layout:auto}.cdn-table .cdn-actions{min-width:100px}.cdn-metric strong{margin:4px 0}.cdn-plan-card{gap:9px}.cdn-plan-card h3{font-size:15px}.cdn-plan-price{font-size:23px}.cdn-note{margin:0}.cdn-field{margin:10px 0;gap:5px;font-size:12px}
dialog{border-radius:6px;box-shadow:0 14px 50px #1a35542e}dialog::backdrop{background:#172e465c;backdrop-filter:none}.modal-head,.modal-actions{padding:10px 14px}.modal-head h3,.announcement-modal .modal-head h3{font-size:15px}.modal-head .icon{font-size:18px;min-height:26px}#modal-body{padding:8px 14px 12px}.field{margin:10px 0;font-size:12px}.field textarea{min-height:80px}.settings-section{padding:14px 16px}.settings-section h3{font-size:14px}.settings-eyebrow,.announcement-kicker{display:none}.switch-field{font-size:12px;font-weight:400;padding:9px 10px;border-radius:4px;margin:9px 0}.announcement-content{font-size:13px;padding:16px;line-height:1.7}.release-package{font-size:13px!important;overflow-wrap:anywhere}.release-panel .cards{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}pre{max-width:100%;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.recovery-progress{white-space:pre-wrap;font:12px/1.6 ui-monospace,monospace;background:#f7f9fc;border:1px solid #e1e7ef;border-radius:4px;padding:12px;max-height:260px;overflow:auto}.recovery-buttons{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
@media(min-width:1025px) and (max-width:1400px){.app{grid-template-columns:170px minmax(0,1fr)}.node-table th,.node-table td{padding:7px 4px;font-size:11px}.node-table th:nth-child(7),.node-table td:nth-child(7){width:9%}.node-table th:nth-child(3),.node-table td:nth-child(3){width:17%}.node-table th:nth-child(8),.node-table td:nth-child(8){width:11%}.node-actions button{font-size:10px;padding:3px 4px}.node-ip-summary .mark-used-ips{display:block}.brand{font-size:13px}.cdn-grid.cdn-three{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1024px){.app{display:block}#sidebar{width:210px;height:100dvh;position:fixed;inset:0 auto 0 0;padding-top:8px;z-index:102;transform:translateX(-105%);background:#fff}.app.nav-open #sidebar{transform:translateX(0)}.brand .mobile-nav-close{min-width:28px;min-height:28px;font-size:18px}.mobile-nav-toggle{min-width:48px;min-height:30px;padding:4px 8px;font-size:12px}main{padding:0}main>header,.page-tabs+header{min-height:54px;flex-wrap:wrap;padding:8px 10px}.header-title{min-width:0}.page-tabs{padding:3px 8px}.page-tab button{min-height:30px}.close-all-tabs{min-height:30px}#content{padding:9px 10px 0}.cards,.cdn-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.stats-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-tables{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.stats-tables table,.stats-tables tbody{display:table}.stats-tables tbody{display:table-row-group}.stats-tables thead{position:static;width:auto;height:auto;clip:auto;overflow:visible;display:table-header-group}.stats-tables tr{display:table-row;box-shadow:none}.stats-tables td,.stats-tables th{display:table-cell;width:auto!important;max-width:150px;padding:8px;min-height:0;border-radius:0;overflow-wrap:anywhere}.stats-tables td:before{display:none}.table-wrap,.cdn-table-wrap{overflow:auto}.node-table{min-width:0}.node-table tbody tr{margin:8px}.node-table tbody td{display:grid;grid-template-columns:90px minmax(0,1fr);padding:8px 10px;font-size:12px}.node-table td.mobile-select{display:flex}.node-table td.mobile-actions{display:block}.node-actions{display:flex;gap:5px}.node-table td.mobile-actions button{min-height:30px;margin:1px;font-size:12px;padding:5px 8px}.node-table .node-ip{min-height:23px;font-size:11px}.node-table .ip-copy{min-height:23px}.node-table .node-detail summary{font-size:12px}#content button,.modal-actions button,#modal-body>button{min-height:30px}.node-detail{margin:3px 0}.node-detail[open]{margin-bottom:6px}.cdn-grid,.cdn-grid.cdn-three{grid-template-columns:repeat(2,minmax(0,1fr))}.cdn-table td{font-size:12px}.route-config-layout{grid-template-columns:1fr}.nav-fold-tools button{min-height:24px}.cdn-metric{padding:12px}.cdn-hero h3{font-size:17px}.line-workspace{height:auto}.release-panel .cards{grid-template-columns:1fr}.settings-section{padding:12px}.stats-user-column,.stats-domain-column{overflow:hidden}}
@media(max-width:640px){.stats-tables,.stats-cards,.cdn-grid,.cdn-grid.cdn-three{grid-template-columns:1fr}.cards,.cdn-metrics{gap:8px}.card,.node-summary .card,.cdn-metric{padding:10px}.card strong,.node-summary .card strong,.cdn-metric strong{font-size:21px}.page-title-row{gap:6px}header h2{font-size:16px}header p{display:none}.pill{margin-left:auto;font-size:10px}.app-footer span{display:none}.stats-bars{height:180px}.stats-filter>*{min-width:0}.list-search>input{min-width:120px}.list-search .page-size{margin:0}.page-info{margin:0}.route-toolbar>span{justify-content:flex-start;gap:4px}.route-toolbar>span button{font-size:11px;padding:5px 7px}.cdn-toolbar h3{font-size:13px}.cdn-form-grid,.grid2{grid-template-columns:1fr}.stats-tables table,.stats-tables th,.stats-tables td{font-size:11px}.app-footer{padding:10px}.mobile-nav-toggle{min-width:36px}.login-card{border-radius:8px;padding:24px}.login-card h1{font-size:22px}.login-card label,.login-card input{font-size:13px}}

/* Override legacy nth-child gradients with readable, consistent cards. */
#content .overview-cards .card:nth-child(n){background:#fff;border:1px solid #e2e8f0;border-top:3px solid #2878e6;box-shadow:none}
#content .overview-cards .card span{color:#536171;opacity:1}
#content .overview-cards .card strong{color:#16375d}
