:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px;letter-spacing:0;color:#26323c;background:#f5f7fa}*{box-sizing:border-box}body{margin:0}header{height:74px;padding:0 30px;background:white;border-bottom:1px solid #e0e6ec;display:flex;align-items:center;justify-content:space-between}header strong{font-size:18px;display:flex;align-items:center;gap:12px}header strong:before{content:'A';display:grid;place-items:center;width:36px;height:36px;border-radius:6px;background:#147b68;color:#fff;font-size:23px}main{max-width:1360px;margin:0 auto;padding:0 28px}h2{font-size:22px;margin:0 0 24px;font-weight:650}label{display:block;font-size:12px;color:#6d7b88;font-weight:500;margin:0}input{display:block;width:100%;min-width:0;padding:10px;border:1px solid #d7e0e8;border-radius:4px;background:white;color:#293845;font:inherit;margin-top:7px;outline:none}input:focus{border-color:#147b68;box-shadow:0 0 0 2px #147b6812}button{padding:10px 16px;background:#147b68;color:white;border:1px solid #147b68;border-radius:5px;cursor:pointer;margin:0;font:inherit;font-size:12px;font-weight:600}button:hover{background:#106653}button:disabled{opacity:.5;cursor:wait}header button{background:white;color:#6c7987;border-color:#dce4eb}#auth{max-width:390px;margin:70px auto}#auth h2{font-size:28px;margin-bottom:30px}#form label{margin:18px 0}#form>button{width:100%;padding:13px;margin-top:10px}#dashboard{display:grid;grid-template-columns:195px minmax(0,1fr);min-height:calc(100vh - 74px)}nav{grid-row:1/4;display:flex;flex-direction:column;gap:8px;padding:32px 20px 30px 0;border-right:1px solid #e0e6ec}nav:before{content:'工作空间';font-size:11px;color:#92a0ac;padding:0 12px 12px}nav button{background:transparent;color:#6e7e8c;border:0;text-align:left;padding:13px 12px}nav button.active{background:#e7f2ed;color:#147b68}#metrics{margin:30px 0 26px 30px;padding:23px 25px;background:white;border-block:1px solid #e0e6ec;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.metric-label{font-size:11px;color:#8a99a6}.metric-value{font-size:24px;font-weight:650;margin-top:8px}.metric small{font-size:11px;font-weight:400;color:#9aa6b0}.metric:nth-child(2) .metric-value{color:#b08134}.metric:nth-child(3) .metric-value{color:#5487a1}#servers,#sites{grid-column:2;padding:10px 0 40px 30px}#rows{background:white;border-block:1px solid #e0e6ec;margin-bottom:20px}.row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:24px;border-bottom:1px solid #e7edf2}.row:last-child{border-bottom:0}.row label:first-child input{font-weight:650}.row button{justify-self:start;background:white;color:#a5606a;border-color:#e8d9dc;padding:7px 12px}#add{background:white;color:#526673;border-color:#d5dfe6;margin-right:8px}.site{padding:23px 0;border-bottom:1px solid #dfe7ed;display:flex;flex-wrap:wrap;align-items:center;gap:10px}.site a{font-weight:650;margin-right:auto;color:#147b68;text-decoration:none}.site button{background:white;color:#647b8b;border-color:#dce4eb;font-size:11px}#upload{max-width:none;display:grid;grid-template-columns:1fr 1.5fr auto;align-items:end;gap:20px;padding:22px 0 28px;border-bottom:1px solid #dfe7ed;margin-bottom:16px}#upload button{height:40px}#upload input[type=file]{height:40px;padding:7px;font-size:12px}.empty{padding:50px 20px;color:#8fa0ae;text-align:center}.toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.toolbar h2{margin:0}.toolbar span{font-size:12px;color:#8698a5}#message{position:fixed;right:25px;bottom:20px;background:#294b42;color:white;padding:13px 22px;border-radius:5px;max-width:calc(100vw - 40px);box-shadow:0 4px 18px #0002}#message:empty{display:none}code,pre{white-space:pre-wrap;overflow-wrap:anywhere}a{color:#147b68}[hidden]{display:none!important}@media(max-width:900px){main{padding:0 18px}#dashboard{grid-template-columns:155px minmax(0,1fr)}#metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.row{grid-template-columns:repeat(2,minmax(0,1fr))}#upload{grid-template-columns:1fr}}@media(max-width:600px){header{padding:0 18px;height:66px}main{padding:0 16px}#dashboard{display:block}nav{flex-direction:row;border-right:0;border-bottom:1px solid #e0e6ec;padding:12px 0}nav:before{display:none}nav button{flex:1;text-align:center}#metrics{margin:20px 0;padding:20px;gap:20px}#servers,#sites{padding:10px 0 30px}.row{grid-template-columns:1fr;padding:20px;gap:15px}#auth{margin:45px auto}.metric-value{font-size:22px}}
:root .probe-node{grid-column:span 2;min-width:0}.probe-node h3{font-size:16px;margin:0 0 8px}.probe-stamp{font-size:11px;color:#8293a0;margin:0 0 18px}.probe-node dl{display:grid;grid-template-columns:120px minmax(0,1fr);font-size:12px;gap:12px;margin:0}.probe-node dt{color:#8293a0}.probe-node dd{margin:0;overflow-wrap:anywhere}@media(max-width:900px){:root .probe-node{grid-column:span 2}.probe-node dl{grid-template-columns:100px minmax(0,1fr)}}
:root #metrics{display:none}:root #rows{background:transparent;border:0}.node-band{padding:24px 0;border-top:1px solid #dfe6ed}.node-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.node-heading h3{font-size:17px;margin:0;overflow-wrap:anywhere}.node-state{font-size:11px;background:#f5eee5;color:#a36d34;padding:4px 9px;border-radius:4px}.node-state.online{background:#e9f4ee;color:#237d59}.node-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:22px 0 24px}.node-stats dt{font-size:11px;color:#8494a1;margin-bottom:7px}.node-stats dd{font-size:13px;margin:0;overflow-wrap:anywhere}.node-details{border-top:1px dashed #dfe6ed;padding-top:18px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.node-details label:last-child{grid-column:span 2}.node-details small{display:block;margin-top:7px;color:#8494a1}.node-details small.due-soon{color:#b4792c}#servers h2{margin-top:28px}@media(max-width:650px){.node-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.node-details{grid-template-columns:1fr}.node-details label:last-child{grid-column:auto}}
:root body{background:#f8fafb}:root header{height:64px}:root #dashboard{grid-template-columns:150px minmax(0,1fr)}:root #servers{padding-top:30px}:root #rows{overflow-x:auto}.status-table{border-collapse:collapse;width:100%;min-width:950px;background:#fff;font-size:12px}.status-table th{text-align:left;padding:14px 12px;color:#768693;font-weight:500;background:#f0f4f6;border-bottom:1px solid #dde5eb;white-space:nowrap}.status-table td{padding:18px 12px;border-bottom:1px solid #e7edf1;vertical-align:middle;min-width:100px}.status-table td:first-child{min-width:160px}.status-table td:last-child{min-width:40px}.status-table strong{font-size:14px;font-weight:600}.status-table small{display:block;color:#8b9ba6;font-size:10px;margin-top:6px;white-space:nowrap}.status-table progress{display:block;height:5px;width:95px;max-width:100%;margin-top:8px;border:0;border-radius:2px;overflow:hidden;accent-color:#49a77c}.status-table progress::-webkit-progress-bar{background:#eaf0f3}.status-table progress::-webkit-progress-value{background:#49a77c}.signal{display:inline-block;width:7px;height:7px;background:#c4ccd3;border-radius:50%;margin-right:9px}.signal.online{background:#49a77c}.expand-node{padding:5px 10px;border:1px solid #dce4ea;background:white;color:#6c7f8e;font-size:19px}.expand-node:hover{background:#eff4f6}.status-table .node-band{border:0;padding:8px 10px}.status-table .node-stats{max-width:1000px}.status-table .node-details{max-width:1000px}.status-table .node-details small.due-soon,.status-table small.due-soon{color:#b5792d}@media(max-width:650px){:root #dashboard{display:block}.status-table{min-width:880px}.status-table td{padding:15px 10px}}
body:not(.session-ready) #auth{display:none}.inline-note{min-width:140px;width:160px;margin:0;padding:8px!important;font-size:12px!important}.status-table{min-width:1120px!important}
nav:before{display:none!important}#cloudflare{grid-column:2;padding:30px 0 40px 30px;min-width:0}#cloudflare h3{font-size:15px;margin:28px 0 16px}#cloudflare p{font-size:12px;overflow-wrap:anywhere}.cf-scroll{overflow:auto}.cf-scroll .status-table{min-width:680px!important}@media(max-width:650px){#cloudflare{padding:25px 0}}
.cf-project{padding:24px 0;border-top:1px solid #dfe6ed}.cf-project h3{margin:0 0 10px;font-size:17px}.cf-project p{font-size:12px;overflow-wrap:anywhere}.cf-upload{display:flex;align-items:end;gap:16px;max-width:620px;padding:14px 0}.cf-upload label{flex:1}.cf-version{padding:10px 0;border-top:1px solid #e7edf1;color:#718595}@media(max-width:600px){.cf-upload{display:block}.cf-upload button{margin-top:12px}}
#custom-panel{grid-column:2;padding:30px 0 40px 30px;min-width:0}.custom-form{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:14px;align-items:end;border-block:1px solid #dfe6ed;padding:20px 0}.custom-list{margin-top:24px}.custom-row{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e7edf1;padding:17px 12px;background:#fff}.custom-row span,.custom-row small{display:block;color:#718595;font-size:12px;margin-top:5px}.custom-row small{font-size:11px}.custom-row .delete{margin-left:18px}@media(max-width:650px){#custom-panel{padding:24px 0}.custom-form{grid-template-columns:1fr}.custom-form button{justify-self:start}}
#custom-panel.custom-inline{padding:32px 0 0;border-top:1px solid #dfe6ed;margin-top:28px;grid-column:auto}
.custom-row.horizontal{display:grid;grid-template-columns:minmax(130px,1fr) minmax(160px,1.3fr) minmax(150px,1.5fr) auto;gap:18px;max-width:none;padding:18px 0;background:transparent}.custom-row.horizontal input[readonly]{border-color:transparent;background:transparent;padding-left:0;box-shadow:none}.custom-actions{display:flex;gap:8px;align-self:end;padding-bottom:2px}.custom-actions button{white-space:nowrap}.custom-actions .delete{margin:0;background:white;color:#a45b65;border-color:#e2d3d7}.custom-row.editing{background:#f0f6f3}.custom-row.horizontal label{min-width:0}@media(max-width:850px){.custom-row.horizontal{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}@media(max-width:500px){.custom-row.horizontal{grid-template-columns:1fr}.custom-actions{justify-self:start}}

/* ==== 站点监控 / 记事本 / 收藏夹 ==== */
#notes,#favs{grid-column:2;padding:30px 0 40px 30px;min-width:0}
#siteRows .toolbar,#notesWrap .toolbar,#favsWrap .toolbar{display:flex;align-items:center;gap:10px;justify-content:flex-start;margin-bottom:20px;flex-wrap:wrap}
#siteRows .toolbar button,#favsWrap .toolbar button{background:white;color:#526673;border-color:#d5dfe6}
#siteRows .toolbar button:hover,#favsWrap .toolbar button:hover{background:#eff4f6}
.site-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:16px}
.site-card{background:#fff;border:1px solid #e4ebf1;border-radius:9px;padding:18px 20px;display:flex;flex-direction:column;gap:14px}
.site-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.site-head strong{font-size:15px}
.site-host{color:#8494a1;font-size:11px;flex:1;overflow-wrap:anywhere}
.badge{font-size:11px;padding:4px 9px;border-radius:4px;background:#f0f4f6;color:#7b8b98;white-space:nowrap}
.badge.ok{background:#e9f4ee;color:#237d59}
.badge.down{background:#fbecee;color:#a63a4a}
.site-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.site-stats .stat{min-width:0}
.site-stats small{display:block;color:#8494a1;font-size:10px;margin-bottom:5px}
.site-stats span{font-size:14px;font-weight:600}
.site-stats span.warn{color:#b4792c}
.spark{display:flex;align-items:flex-end;gap:2px;height:34px;border-top:1px dashed #e6edf2;padding-top:8px}
.spark i{flex:1;min-width:2px;border-radius:1px;background:#bcd8c9;display:block}
.spark i.down{background:#e0a3ab}
.spark span{align-self:center}
.site-link{align-self:flex-start;font-size:12px;color:#147b68;text-decoration:none;font-weight:600}
.notes-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:22px;align-items:start}
.notes-side{display:flex;flex-direction:column;gap:10px;min-width:0}
.notes-add{width:100%}
.notes-search{margin:0}
.notes-list{display:flex;flex-direction:column;gap:6px;max-height:62vh;overflow:auto}
.notes-item{background:#fff;border:1px solid #e7edf2;border-radius:6px;padding:10px 12px;text-align:left;display:flex;flex-direction:column;gap:4px;cursor:pointer}
.notes-item:hover{background:#f3f8f6;border-color:#cfe2d9}
.notes-item strong{font-size:13px;color:#2b3a45;font-weight:600;overflow-wrap:anywhere}
.notes-item small{color:#93a2ad;font-size:10px}
.notes-item.pinned{border-left:3px solid #147b68}
.notes-main{background:#fff;border:1px solid #e4ebf1;border-radius:9px;padding:20px 22px;display:flex;flex-direction:column;gap:12px;min-height:420px}
.notes-title{margin:0;font-size:17px;font-weight:650;border:0;border-bottom:1px solid #e7edf2;border-radius:0;padding:6px 2px}
.notes-title:focus{box-shadow:none;border-color:#147b68}
.notes-tags{margin:0;font-size:12px}
.notes-body{margin:0;flex:1;min-height:300px;resize:vertical;padding:10px;border:1px solid #e2e9ef;border-radius:5px;font:13px/1.7 ui-monospace,"Microsoft YaHei",monospace;color:#2b3a45;outline:none}
.notes-body:focus{border-color:#147b68;box-shadow:0 0 0 2px #147b6812}
.notes-actions{display:flex;gap:10px}
.notes-actions .delete{background:white;color:#a45b65;border-color:#e8d9dc}
.favs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:16px}
.fav-group{background:#fff;border:1px solid #e4ebf1;border-radius:9px;padding:16px 18px}
.fav-group-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.fav-group-name{margin:0;font-weight:650;border:0;border-bottom:1px solid #e7edf2;border-radius:0;padding:4px 2px}
.fav-group-head .delete{background:white;color:#a45b65;border-color:#e8d9dc;padding:6px 10px;font-size:11px;white-space:nowrap}
.fav-list{display:flex;flex-direction:column;gap:8px}
.fav-row{display:grid;grid-template-columns:38px minmax(80px,1fr) minmax(120px,2fr) 30px;gap:8px;align-items:center}
.fav-row input{margin:0;font-size:12px;padding:7px 8px}
.fav-icon{text-align:center}
.fav-row .delete{background:white;color:#a45b65;border-color:#e8d9dc;padding:5px 0;font-size:12px}
.fav-add{background:white;color:#526673;border-color:#d5dfe6;border-style:dashed;font-size:11px}
@media(max-width:900px){.notes-layout{grid-template-columns:1fr}.favs-grid{grid-template-columns:1fr}.site-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){#notes,#favs{padding:20px 0 30px}.notes-main{padding:16px}.fav-row{grid-template-columns:34px minmax(60px,1fr) minmax(90px,1.4fr) 28px}}