:root{color-scheme:light;--primary:#006b57;--on-primary:#fff;--primary-container:#a1f2d4;--surface:#f7f9f7;--container:#edf2ef;--high:#e2e9e5;--ink:#18211d;--muted:#58665e;--outline:#b7c5bc;--error:#ba1a1a;--white:#fff;--secondary:#45618a;--amber:#946100}*{box-sizing:border-box;letter-spacing:0}body{margin:0;background:var(--surface);color:var(--ink);font:14px/1.5 system-ui,"Microsoft YaHei",sans-serif}button,input,select{font:inherit}button,a,input,select{ -webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}a{color:var(--primary)}svg{width:20px;height:20px;flex-shrink:0}button:focus-visible,a:focus-visible{outline:3px solid var(--secondary);outline-offset:3px}button{border:0;border-radius:20px;min-height:40px;padding:8px 18px;display:inline-flex;gap:8px;align-items:center;justify-content:center;background:var(--primary);color:var(--on-primary);font-weight:600}button.tonal{background:var(--high);color:var(--primary)}button.text{background:transparent;color:var(--primary)}button.danger{background:var(--error);color:white}button.icon{padding:0;width:40px;height:40px;min-width:40px;background:transparent;color:var(--muted);border-radius:50%}button:hover{filter:brightness(.96)}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:1px solid var(--high);background:var(--surface)}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;font-size:20px;font-weight:650}.brand svg{width:28px;height:28px;color:var(--primary)}.top-actions{display:flex;align-items:center;gap:8px}.account-name{margin-right:8px;color:var(--muted)}.layout{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:calc(100vh - 72px)}nav{padding:24px 12px;border-right:1px solid var(--high)}nav:empty{display:none}nav button{display:flex;width:100%;justify-content:flex-start;border-radius:28px;padding:14px 20px;gap:14px;margin-bottom:5px;background:transparent;color:var(--muted);font-weight:500}nav button.active{background:var(--primary-container);color:#002e24;font-weight:650}nav .nav-divider{height:1px;background:var(--outline);margin:20px 12px}main{padding:32px;max-width:1480px;width:100%;min-width:0}.layout:has(nav:empty){display:block}.layout:has(nav:empty) main{max-width:none}.page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:28px;flex-wrap:wrap}h1{font-size:28px;line-height:1.3;font-weight:600;margin:0}h2{font-size:18px;font-weight:600;margin:0 0 20px}h3{font-size:16px;font-weight:600;margin:0}p{margin:8px 0}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:32px}.metric{background:var(--container);border-radius:8px;padding:20px;min-width:0}.metric .metric-icon{color:var(--primary);margin-bottom:16px}.metric:nth-child(2) .metric-icon{color:var(--secondary)}.metric:nth-child(3) .metric-icon{color:var(--amber)}.metric-label{color:var(--muted);font-size:13px}.metric-value{font-size:26px;line-height:1.3;margin:6px 0;font-weight:600;overflow-wrap:anywhere}.metric-note{font-size:12px;color:var(--muted)}section.band{padding:24px 0;border-top:1px solid var(--high)}.split{display:grid;grid-template-columns:1.3fr 1fr;gap:32px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{text-align:left;font-size:12px;font-weight:600;color:var(--muted);background:var(--container)}th,td{padding:14px 16px;border-bottom:1px solid var(--high)}td{font-variant-numeric:tabular-nums}td.wrap{white-space:normal;min-width:160px;max-width:320px;overflow-wrap:anywhere}.table-actions{display:flex;gap:4px}.cell-title{font-weight:600}.cell-detail{font-size:12px;color:var(--muted);margin-top:3px}.tag{display:inline-block;color:var(--primary);font-size:12px;font-weight:600}.tag.off{color:var(--error)}.bar{width:100%;height:6px;background:var(--high);border-radius:3px;overflow:hidden;margin-top:12px}.bar-fill{height:100%;background:var(--primary);width:0}.bar-fill.warn{background:var(--amber)}.node-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.node{border:1px solid var(--outline);border-radius:8px;padding:20px;min-width:0}.node-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:12px}.node-name{font-size:17px;font-weight:600;overflow-wrap:anywhere}.node-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}.node-values strong{display:block;font-size:18px}.node-values span{font-size:12px;color:var(--muted)}.node-footer{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted);margin-top:14px;flex-wrap:wrap}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field.full{grid-column:1/-1}label,.field-label{font-size:13px;font-weight:500;color:var(--muted)}input:not([type=checkbox]),select{width:100%;height:50px;border:1px solid var(--outline);border-radius:4px;background:var(--surface);padding:0 13px;color:var(--ink);min-width:0}input:focus,select:focus{outline:2px solid var(--primary);outline-offset:0}input[readonly]{background:var(--container)}input[type=checkbox]{width:18px;height:18px;accent-color:var(--primary)}.check-row{display:flex;align-items:center;gap:10px;padding:10px 0;color:var(--ink);font-size:14px}.check-row input{flex-shrink:0}.switch-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 0;border-bottom:1px solid var(--high);margin-bottom:24px}.switch{appearance:none;width:48px!important;height:28px!important;border:2px solid var(--outline);border-radius:20px;background:var(--high);position:relative;cursor:pointer}.switch:before{content:'';position:absolute;width:16px;height:16px;border-radius:50%;background:var(--muted);left:4px;top:4px;transition:transform .15s}.switch:checked{background:var(--primary);border-color:var(--primary)}.switch:checked:before{background:white;transform:translateX(18px)}.form-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:28px}.form-width{max-width:680px}.helper{font-size:12px;color:var(--muted)}.error{color:var(--error);font-size:13px;min-height:20px}.login{width:100%;max-width:400px;margin:48px auto}.login .login-mark{display:flex;align-items:center;justify-content:center;width:56px;height:56px;background:var(--primary-container);color:var(--primary);border-radius:16px;margin-bottom:24px}.login-mark svg{width:28px;height:28px}.login h1{margin-bottom:28px}.login form{display:grid;gap:20px}.login button[type=submit]{width:100%;margin-top:6px}.segmented{display:flex;border:1px solid var(--outline);border-radius:24px;overflow:hidden;margin-bottom:28px}.segmented button{flex:1;border-radius:0;background:transparent;color:var(--muted)}.segmented button.active{background:var(--primary-container);color:#002e24}.empty{text-align:center;color:var(--muted);padding:48px 20px}.empty svg{width:36px;height:36px;margin-bottom:12px}.url-row{display:flex;gap:8px;align-items:center}.url-row input{flex:1;font:13px ui-monospace,monospace}.notice{background:var(--container);padding:16px 18px;border-left:3px solid var(--secondary);color:var(--muted);margin-bottom:24px;font-size:13px}.notice.error{border-left-color:var(--error);color:var(--error)}.sync-facts{display:grid;grid-template-columns:180px minmax(0,1fr);gap:0;font-size:14px}.sync-facts dt,.sync-facts dd{padding:14px 0;border-bottom:1px solid var(--high);margin:0;overflow-wrap:anywhere}.sync-facts dt{color:var(--muted)}dialog{border:0;border-radius:16px;background:var(--surface);color:var(--ink);width:min(560px,calc(100% - 32px));max-height:85vh;padding:28px;box-shadow:0 20px 70px #0003}dialog::backdrop{background:#001a1466}dialog h2{font-size:22px;margin:0}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}dialog .form-grid{gap:16px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#25372e;color:white;border-radius:4px;padding:14px 22px;box-shadow:0 3px 12px #0002;z-index:20;max-width:calc(100% - 32px);display:none}.loading{padding:64px;text-align:center;color:var(--muted)}.audit-detail{white-space:normal;overflow-wrap:anywhere;max-width:280px}.search{max-width:260px}.chart{display:flex;flex-direction:column;gap:20px}.chart-row{display:grid;grid-template-columns:125px 1fr 90px;gap:12px;align-items:center;font-size:13px}.chart-track{height:16px;background:var(--high);border-radius:3px;overflow:hidden;display:flex}.chart-up{background:var(--secondary)}.chart-down{background:var(--primary)}.legend{display:flex;gap:24px;color:var(--muted);font-size:12px;margin-bottom:20px}.legend b{display:inline-block;width:10px;height:10px;background:var(--primary);border-radius:2px;margin-right:6px}.legend b.up{background:var(--secondary)}
@media(max-width:1100px){.layout{grid-template-columns:188px minmax(0,1fr)}main{padding:24px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.split{grid-template-columns:1fr}.node-grid{grid-template-columns:1fr}}
@media(max-width:700px){.topbar{height:64px;padding:0 16px}.brand{font-size:18px;gap:8px}.account-name{display:none}.layout{display:block;min-height:calc(100vh - 64px)}nav{border-right:0;border-bottom:1px solid var(--high);display:flex;gap:4px;overflow:auto;padding:8px}nav button{width:auto;white-space:nowrap;min-width:70px;flex-direction:column;gap:5px;padding:10px 14px;margin:0;font-size:12px}nav .nav-divider{display:none}main{padding:22px 16px}h1{font-size:24px}.page-head{margin-bottom:22px}.metric{padding:16px}.metric-value{font-size:22px}.metrics{gap:10px;margin-bottom:24px}.form-grid{grid-template-columns:1fr}.login{margin:24px auto}.chart-row{grid-template-columns:92px 1fr 72px;gap:8px}.node{padding:16px}.sync-facts{grid-template-columns:110px 1fr}.search{max-width:100%}.table-scroll{margin:0 -4px}.top-actions{gap:0}.url-row input{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
