/* console1 — shared visual system for jump, CDN, account and recovery pages. */
:root{--bg:#f3f6fb;--panel:#fff;--text:#20324b;--muted:#6d7e94;--line:#e3eaf3;--blue:#2864e8;--cyan:#2864e8;--radius:12px}
[hidden]{display:none!important}
body{font:13px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--text);background:var(--bg)}
button,input,select,textarea{font:inherit;box-sizing:border-box}
button{min-height:34px;padding:7px 13px;border-radius:7px;background:var(--blue);font-weight:500;transition:background .15s,border-color .15s,box-shadow .15s}
button:hover{background:#1c50cc}button:disabled{cursor:not-allowed;opacity:.5}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #a9c7ff;outline-offset:2px}
input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea{min-height:36px;max-width:100%;border:1px solid #d8e2ef;border-radius:7px;background:#fff;padding:7px 10px;color:var(--text);line-height:1.5;box-shadow:none;transition:border-color .15s,box-shadow .15s}
textarea{resize:vertical;min-height:84px;vertical-align:top}
input:focus,select:focus,textarea:focus{outline:none;border-color:#79a4f7;box-shadow:0 0 0 3px #e9f0ff}
input[type=checkbox],input[type=radio]{accent-color:var(--blue);width:15px;height:15px;vertical-align:middle;flex-shrink:0}
input:disabled,select:disabled,textarea:disabled{background:#f3f6fa;color:#718096}
.app{grid-template-columns:210px minmax(0,1fr)}
#sidebar{padding:12px 10px 0;background:#fff;border-right:1px solid var(--line)}
.workspace-switch{border-radius:9px;padding:3px;gap:3px;background:#f1f5fb}.workspace-switch button{min-height:32px;border-radius:6px;font-size:12px}
.brand{height:60px;min-height:60px;font-size:16px;padding:0 10px;gap:10px}.brand .brand-mark.small{height:32px;width:32px;border-radius:10px}
.nav-fold-tools{padding:3px 8px 9px}.nav-fold-tools button{font-size:11px}
#nav{gap:4px;padding-right:3px;margin-top:10px}#nav>button,#nav .nav-children>button{min-height:37px;padding:8px 11px;font-size:13px;border-radius:7px;line-height:21px}
.nav-group summary{min-height:40px;padding:9px 11px;border-radius:7px;color:#687c95;font-size:12px;font-weight:600}
.nav-group.has-active>summary{color:#2459ba}.nav-children{margin-left:11px;padding-left:6px;border-color:#e5ecf5}
#nav button.active{background:#eaf1ff;color:#255fdb;font-weight:600}#nav button:hover{background:#f0f5fd}
.sidebar-bottom{padding:7px 7px 0}.logout{min-height:34px;border-radius:7px;text-align:left}.brand-footer{font-size:11px;padding:10px 3px;line-height:1.8}
.page-tabs{min-height:46px;padding:7px 18px;gap:8px;border-bottom:1px solid var(--line);background:#fff}
.page-tab{border:1px solid #e5ebf4;border-radius:6px;flex-shrink:0}.page-tab button,.close-all-tabs{min-height:30px;font-size:12px;padding:5px 9px}.page-tab.active{border-color:#adc8ff;background:#edf3ff}
.page-tab-list{gap:6px;scrollbar-width:thin;scrollbar-color:#c6d3e5 transparent}.page-tab .tab-close{width:24px}
main>header,.page-tabs+header{min-height:78px;padding:16px 24px;gap:14px;background:#fff}
header h2{font-size:21px;letter-spacing:-.4px;font-weight:650}header p{font-size:12px;color:#74859c;margin-top:4px}.page-title-row{gap:12px}.refresh-current{padding:5px 9px;min-height:30px;font-size:11px}
.pill{border-radius:20px;padding:6px 12px;font-size:12px;background:#f6f9fe;border-color:#e4ebf6}
#content{padding:20px 24px 0;min-width:0}.app-footer{margin-top:20px;padding:18px 24px;font-size:11px}
.panel,.card,.cdn-panel,.cdn-metric,.cdn-hero,.line-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);box-shadow:0 2px 6px #17395d04}
.panel{margin-top:14px;overflow:hidden}.panel-head{padding:16px 18px}.panel-head h3,.toolbar h3,.cdn-toolbar h3{font-size:15px;font-weight:600}
.cards,.cdn-metrics,.cdn-grid,.cdn-grid.cdn-three,.line-cards{gap:16px}.card,.node-summary .card,.cdn-metric{padding:18px 20px}.card strong,.node-summary .card strong,.cdn-metric strong{font-size:28px;letter-spacing:-.5px;margin:6px 0}.card small,.cdn-metric small{font-size:12px;color:var(--muted)}
#content .overview-cards .card:nth-child(n){border:1px solid var(--line);border-top:3px solid #6a96f2;border-radius:12px}
.toolbar,.cdn-toolbar{gap:10px;align-items:center;flex-wrap:wrap}.toolbar{padding-bottom:12px}.toolbar>span:last-child{gap:6px}.toolbar .tiny{margin:0}.node-toolbar>span:first-child{font-size:12px;line-height:1.7}
.secondary,.icon,.cdn-button.cdn-secondary{background:#fff;border:1px solid #dce5f0;color:#4c6482}.secondary:hover,.icon:hover,.cdn-button.cdn-secondary:hover{background:#edf4ff;border-color:#adc5ed;color:#2459ba}
.danger,.cdn-button.cdn-danger{color:#c8424c;border:1px solid #f3d0d5;background:#fff6f7}.danger:hover,.cdn-button.cdn-danger:hover{background:#ffe7eb;color:#ae2739}
.maintenance{background:#fff9ed;color:#946313;border:1px solid #efdcab}.tiny,.cdn-button.cdn-small{min-height:29px;padding:5px 8px;font-size:12px;border-radius:6px;margin:2px}
.status,.cdn-chip{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;line-height:19px;border-radius:5px;font-size:11px;background:#e9f7f0;color:#247d59;white-space:normal}.status.off{background:#ffedf0;color:#be4050}.status.warn{background:#fff5e1;color:#986713}
.hint,.cdn-hint,.cdn-subline{font-size:12px;line-height:1.65;color:#71849c}.empty,.cdn-empty{padding:48px 20px;color:var(--muted)}
.list-search,.stats-filter,.cdn-search{padding:13px 15px;gap:10px;border:1px solid var(--line);border-radius:10px;background:#fff;margin-bottom:14px;align-items:center;flex-wrap:wrap}
.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{min-height:36px;padding:7px 10px;font-size:13px;border-radius:7px;border:1px solid #d8e2ef}
.page-info,.page-size,.node-sort,.local-list-tools,.cdn-count{font-size:12px;color:#6d7e94}.pagination,.cdn-pagination{margin:14px 0;font-size:12px;gap:10px}.pagination button{min-height:32px;padding:5px 10px}
.table-wrap,.cdn-table-wrap{border-radius:10px;scrollbar-width:thin;scrollbar-color:#c6d3e5 #f3f6fa}table,.cdn-table{font-size:13px}th,.cdn-table th{font-size:12px;font-weight:600;letter-spacing:.1px;background:#f6f8fc;color:#70819a;padding:13px 14px;white-space:nowrap}td,.cdn-table td{padding:13px 14px;line-height:1.65;border-color:#edf1f7;vertical-align:middle}tbody tr:hover{background:#f8fbff}.target-url-list{max-width:350px}.target-url-list code{font-size:12px}
.node-table{table-layout:fixed}.node-table th,.node-table td{padding:16px 9px;font-size:12px;vertical-align:top}.node-table th:nth-child(3),.node-table td:nth-child(3){width:21%}.node-table th:nth-child(4),.node-table td:nth-child(4){width:8%}.node-table th:nth-child(5),.node-table td:nth-child(5){width:16%}.node-table th:nth-child(6),.node-table td:nth-child(6){width:14%}.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-name{font-size:14px;font-weight:600;margin-bottom:3px}
.node-ip-summary{display:flex;flex-wrap:wrap;gap:7px;margin:9px 0 6px;font-size:12px}.node-ip-list{display:flex;flex-wrap:wrap;align-content:flex-start;gap:5px;max-height:235px;overflow:auto;padding:1px 3px 3px 0;scrollbar-width:thin}.node-ip-item{display:inline-flex;max-width:100%;margin:0}.node-ip{cursor:default;min-height:28px;font-size:11px;padding:4px 6px;gap:5px;line-height:18px;overflow-wrap:anywhere}.node-ip em{font:inherit;font-size:10px;white-space:nowrap}.node-ip.free{background:#ecf8f1;color:#267956;border-color:#bfe2ce}.node-ip.used{background:#fff0f2;color:#bb4054;border-color:#f0c7ce}.node-ip.pending{background:#f0f4f9;color:#70819a;border-color:#dae3ef}.ip-copy{width:25px;min-height:28px;border-radius:5px 0 0 5px;background:#fff;border-color:#d6e2ee}.node-ip-expand{margin-top:5px}.node-actions{display:flex;flex-wrap:wrap;gap:4px}.node-actions button{margin:0;font-size:11px;padding:5px 7px}.metrics{gap:10px}.metric-row{font-size:11px}.metric-row i{height:4px;border-radius:4px}.sync-detail,.node-detail{font-size:11px;line-height:1.7}.node-heartbeat-note{font-size:11px;margin-top:6px}
.route-cname{min-width:150px;max-width:245px;display:grid;gap:5px}.route-cname>div{display:flex;align-items:center;gap:5px}.route-cname code{font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere;color:#345e9f}.route-cname button{flex-shrink:0}.route-cname .hint{font-size:11px}
.domain-notice,.line-banner,.line-warning,.cdn-note{padding:14px 16px;border:1px solid #dce7fa;border-left:3px solid #8caef4;border-radius:9px;background:#f0f5ff;font-size:12px;line-height:1.8}.domain-notice b{font-size:13px;margin-bottom:5px}.line-card,.cdn-panel,.cdn-hero{padding:18px}.cdn-shell{gap:16px}.cdn-table-panel{padding:0}.cdn-button{border-radius:7px;font-size:13px;min-height:34px;padding:7px 12px}
.field,.cdn-field{gap:7px;margin:14px 0;font-size:13px}.field>input,.field>select,.field>textarea,.cdn-field>input,.cdn-field>select,.cdn-field>textarea{width:100%}.field input[type=checkbox],.field input[type=radio],.cdn-field input[type=checkbox],.cdn-field input[type=radio]{width:15px;min-height:15px}.switch-field{padding:12px 14px;border-radius:8px;font-size:13px}.settings-section{padding:22px}.settings-section h3{font-size:17px;margin-bottom:14px}.grid2,.cdn-form-grid{gap:16px}
/* Defaults and firewall editors share the same aligned, full-width controls. */
.defaults-panel{border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}.defaults-panel .cdn-table{width:100%;table-layout:fixed;min-width:820px}.defaults-panel th:first-child{width:25%}.defaults-panel td{padding:18px;vertical-align:top}.defaults-panel td>strong{display:block;font-size:13px;margin:3px 0 8px}.defaults-editor{display:grid;grid-template-columns:minmax(115px,.8fr) minmax(150px,1.5fr);gap:10px;align-items:start}.defaults-editor label{display:grid;gap:7px;min-width:0}.defaults-editor label>span{font-size:11px;color:#8190a5}.defaults-editor input,.defaults-editor select,.defaults-editor textarea{width:100%;min-width:0;margin:0;font-size:13px;min-height:38px}.defaults-editor textarea{min-height:88px}.defaults-editor+.cdn-hint{margin-top:8px}.defaults-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-top:1px solid var(--line);background:#fbfcfe}
dialog{border:1px solid var(--line);border-radius:14px;box-shadow:0 24px 80px #18365733;max-width:min(840px,calc(100vw - 32px))}dialog::backdrop{background:#182f4e66;backdrop-filter:blur(2px)}.modal-head{padding:18px 22px;border-bottom:1px solid var(--line)}.modal-head h3{font-size:17px;font-weight:600}.modal-actions{padding:16px 22px;border-top:1px solid var(--line);background:#fafcfe;gap:9px}#modal-body{padding:8px 22px 20px}.recovery-progress{padding:16px;line-height:1.8;border-radius:8px}.recovery-buttons{gap:10px;margin:16px 0}.impersonation-banner,#impersonation-banner{gap:12px;align-items:center;flex-wrap:wrap;padding:10px 24px;background:#fff7e8;border-bottom:1px solid #edd4a5;font-size:12px;color:#805c25}#impersonation-banner button{margin-left:auto;background:#fff;border:1px solid #e6c891;color:#805c25}
.login-card{border-radius:18px;box-shadow:0 18px 65px #27477719;padding:34px}.login-card h1{font-size:26px}.login-card label{font-size:13px}.login-card input{min-height:44px;border-radius:9px}.login-card button{min-height:42px}.login-card .hint{font-size:12px}
@media(min-width:1025px) and (max-width:1450px){.app{grid-template-columns:192px minmax(0,1fr)}#content{padding:16px}main>header,.page-tabs+header{padding:15px 18px}.node-table{min-width:1250px}.node-table td:nth-child(3),.node-table th:nth-child(3){width:255px}.defaults-editor{grid-template-columns:1fr}.defaults-editor label>span{font-size:11px}.cards,.cdn-metrics{gap:12px}.card,.cdn-metric{padding:16px}}
@media(max-width:1024px){.app{display:block}#sidebar{width:230px;padding:12px 10px 0}.page-tabs{padding:7px 12px}.page-tabs+header,main>header{min-height:70px;padding:13px 16px}#content{padding:14px 14px 0}.node-table{min-width:0}.node-table tbody tr{margin:10px;border-radius:10px;overflow:hidden}.node-table tbody td{grid-template-columns:90px minmax(0,1fr);padding:10px 12px;font-size:12px}.node-table .node-ip{min-height:29px;font-size:12px}.node-table .ip-copy{min-height:29px}.node-table td.mobile-actions button{min-height:34px}.node-ip-list{max-height:200px}.defaults-panel .cdn-table{min-width:0;table-layout:auto}.defaults-panel .cdn-table thead{display:none}.defaults-panel .cdn-table tbody{display:block}.defaults-panel .cdn-table tr{display:block;padding:14px;border-bottom:1px solid var(--line);margin:0}.defaults-panel .cdn-table td{display:block!important;max-width:none!important;width:100%!important;padding:8px 0;border:0}.defaults-panel .cdn-table td:before{display:block;content:attr(data-label);color:#7c8ea5;font-size:12px;margin-bottom:7px}.defaults-editor{grid-template-columns:minmax(110px,1fr) minmax(130px,2fr)}.defaults-panel td:first-child:before{display:none}.defaults-footer{position:static}.cdn-panel,.settings-section{padding:16px}.cdn-metrics,.cards{gap:12px}.card,.cdn-metric{padding:15px}.card strong,.cdn-metric strong{font-size:25px}dialog{max-width:calc(100vw - 20px);border-radius:12px}.modal-head{padding:16px}.modal-actions{padding:14px 16px}#modal-body{padding:6px 16px 16px}.mobile-nav-toggle{min-height:36px;min-width:44px}#impersonation-banner{padding:10px 14px}}
@media(max-width:640px){body{font-size:13px}header h2{font-size:19px}.pill{font-size:10px}.page-title-row{gap:8px}.list-search,.stats-filter,.cdn-search{padding:12px}.toolbar>span:last-child{justify-content:flex-start}.stats-filter{grid-template-columns:1fr 1fr}.card,.cdn-metric{padding:13px}.card strong,.cdn-metric strong{font-size:23px}.grid2,.cdn-form-grid,.cdn-grid,.cdn-grid.cdn-three{grid-template-columns:1fr}.field input,.field select,.field textarea,.cdn-field input,.cdn-field select,.cdn-field textarea{font-size:16px}.defaults-editor{grid-template-columns:minmax(100px,1fr) minmax(130px,1.6fr);gap:8px}.defaults-editor input,.defaults-editor select,.defaults-editor textarea{font-size:14px}.defaults-panel .cdn-table tr{padding:12px}.defaults-footer{padding:14px;align-items:flex-start;flex-direction:column}.defaults-footer button{width:100%}.login-card{padding:26px}.node-ip-list{max-height:210px}.tiny,.cdn-button.cdn-small{min-height:32px}#content button{min-height:32px}.domain-notice,.cdn-note{padding:12px}.app-footer{padding:16px}.page-tabs{gap:5px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* console2: domain rows fit the viewport; optional targets expand locally. */
.route-table{table-layout:fixed;width:100%;min-width:0;max-width:100%}
.route-table th,.route-table td{padding:12px 8px;min-width:0;vertical-align:top;white-space:normal;overflow-wrap:anywhere}
.route-table .route-id-cell{white-space:nowrap;padding-left:4px;padding-right:4px}.route-table th{white-space:nowrap}.route-table th:nth-child(1){width:3%}.route-table th:nth-child(2){width:5%}.route-table th:nth-child(3){width:16%}.route-table th:nth-child(4){width:7%}.route-table th:nth-child(5){width:18%}.route-table th:nth-child(6){width:19%}.route-table th:nth-child(7){width:6%}.route-table th:nth-child(8){width:12%}.route-table th:nth-child(9){width:14%}
.route-table .code{font-size:12px}.route-domain-host{display:flex;align-items:flex-start;gap:5px;min-width:0}.route-domain-host>.code{min-width:0;overflow-wrap:anywhere}.route-domain-host button,.route-cname button{flex-shrink:0;margin:0}
.route-owner{margin-top:7px}.route-clamp,.route-owner,.route-dns-name{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;overflow-wrap:anywhere;white-space:normal}
.route-dns-name{padding:4px 7px;background:#edf7f3;color:#28785a;border-radius:5px;font-size:11px;margin-bottom:7px}
.route-table .route-cname{min-width:0;max-width:none;margin-top:6px}.route-table .route-cname>div{min-width:0}.route-table .route-cname code{min-width:0;overflow-wrap:anywhere;font-size:11px}
.route-table .status{white-space:normal;max-width:100%;padding:2px 6px}.route-state{display:flex;align-items:flex-start;flex-direction:column;gap:6px}.route-state .hint{font-size:11px}
.route-table .route-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.route-table .route-actions button{margin:0;width:100%;min-width:0;padding:5px 3px;white-space:nowrap;font-size:11px;min-height:30px}
.route-targets{min-width:0}.route-table .target-url-list{min-width:0;max-width:none}.route-table .target-url-item{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:5px;align-items:start}.route-table .target-url-item button{margin:0;padding:4px 6px;min-height:27px}.route-table .target-url-item .code{font-size:11px;line-height:1.65}
.route-target-first .code{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.target-url-details{margin-top:8px}.target-url-details>summary{cursor:pointer;color:#2864e8;font-size:12px;padding:4px 0;user-select:none}.target-url-details:not([open]) .targets-collapse,.target-url-details[open] .targets-expand{display:none}
.target-url-more{max-height:240px;overflow:auto;overscroll-behavior:contain;padding:9px 4px 5px 0;scrollbar-width:thin;border-top:1px solid #e4ebf5}.route-targets .random-target-hint{display:block;margin-top:6px;font-size:11px}
.route-toolbar>span:last-child{display:flex;flex-wrap:wrap;justify-content:flex-end;min-width:0}.route-toolbar{align-items:flex-start}
@media(max-width:1200px){
 .route-table,.route-table tbody{display:block;width:100%;min-width:0}.route-table thead{position:static;width:auto;height:auto;clip:auto;overflow:visible;display:block;white-space:normal}.route-table thead tr{display:block}.route-table thead th{display:none}.route-table.has-mobile-select-all thead th:first-child{display:flex;align-items:center;gap:8px;width:auto;margin:10px;padding:9px 12px;background:#f4f7fc;border:1px solid #e2eaf4;border-radius:7px}.route-table.has-mobile-select-all thead th:first-child:after{content:'全选本页';font-size:12px}
 .route-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin:10px;border:1px solid #e2eaf4;border-radius:9px;overflow:hidden;background:#fff}.route-table tbody td{display:block;width:auto!important;max-width:none!important;min-width:0;min-height:0;border:0;border-top:1px solid #edf1f7;padding:10px 12px;white-space:normal}.route-table tbody td:before{content:attr(data-label);display:block;color:#7c8ea5;font-size:11px;margin-bottom:5px}.route-table tbody .route-select-cell,.route-table tbody .route-id-cell{display:flex;align-items:center;gap:8px;border-top:0}.route-table tbody .route-select-cell:before,.route-table tbody .route-id-cell:before{margin:0}.route-table tbody .route-target-cell,.route-table tbody .route-actions-cell{grid-column:1/-1}.route-table tbody .route-actions-cell .route-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.route-table tbody td.empty{grid-column:1/-1;padding:28px}.route-table tbody td.empty:before{display:none}.route-state{flex-direction:row;flex-wrap:wrap}.route-toolbar>span:last-child{justify-content:flex-start}
}
@media(max-width:480px){.route-table tbody tr{margin:8px}.route-table tbody td{padding:9px 10px}.route-table .route-dns-cell,.route-table .route-domain-cell{grid-column:1/-1}.route-table .route-actions button{min-height:34px;font-size:12px}}
