:root{font-family:'Segoe UI',Arial,sans-serif;color:#475569;background:#f4f6f9;font-size:13px;font-weight:400;--line:#e3e8ef;--ink:#334155;--accent:#475569}*{box-sizing:border-box}body{margin:0;height:100dvh;display:flex;flex-direction:column;gap:10px;padding:18px 24px;min-width:0}header{display:flex;align-items:center;gap:12px;min-height:48px}h1{font-size:23px;letter-spacing:-.65px;font-weight:400;margin:0;color:#334155}.brand{display:flex;align-items:center;gap:12px;margin-right:auto}.brand-icon{width:38px;height:38px;background:#475569;border-radius:10px;display:grid;place-items:center;color:white}.brand small{display:block;color:#8491a3;font-size:11px;margin-top:2px;letter-spacing:.4px}#count,#selected{font-size:12px;color:#64748b;white-space:nowrap;font-variant-numeric:tabular-nums}#count{background:#e9edf3;border-radius:6px;padding:7px 12px}button,input,select{font:inherit;color:inherit}button{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:white;border:1px solid #dce3eb;border-radius:6px;padding:7px 11px;white-space:nowrap;cursor:pointer;transition:background .12s,border-color .12s;min-height:32px}button:hover:not(:disabled){background:#f1f5f9;border-color:#aab9ca}button.primary{background:#475569;border-color:#475569;color:white}button.primary:hover:not(:disabled){background:#334155}button:disabled{opacity:.42;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #94a3b8;outline-offset:2px}button svg{width:15px;height:15px;flex:none}nav,#tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:10px 12px;background:#fff}nav{border:1px solid var(--line);border-radius:10px 10px 0 0;border-bottom:0}#tools{border:1px solid var(--line);border-radius:0 0 10px 10px;margin-top:-10px;border-top:1px solid #edf0f4}.group{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.group+.group{border-left:1px solid var(--line);padding-left:10px;margin-left:3px}.push{margin-left:auto}#tools input,#tools select{border:1px solid #dce3eb;border-radius:6px;padding:7px 9px;background:#f8fafc;min-width:0;height:32px}#search{width:215px}#assignName{width:175px}#filterKH{max-width:175px}#dirty{font-size:11px;color:#a16207}#saveKH{background:#eef2f6;color:#334155}#msg,#pending{padding:9px 12px;background:#fff;border:1px solid var(--line);border-radius:7px;white-space:pre-wrap;font-size:12px}#pending button{margin-left:8px}#pending:empty,#msg:empty{display:none}#progress{width:100%;height:5px;accent-color:#64748b;flex-shrink:0}main{overflow:auto;flex:1;min-height:0;background:white;border:1px solid #dce3eb;border-radius:10px;scrollbar-color:#c5ceda #f8fafc}table{border-collapse:separate;border-spacing:0;min-width:1100px;width:100%;font-size:13px;font-variant-numeric:tabular-nums}th,td{border-right:1px solid #e9edf2;border-bottom:1px solid #e9edf2;padding:3px 9px;height:29px;white-space:nowrap;font-weight:400;text-align:left}th{position:sticky;top:0;background:#f1f4f8;z-index:3;color:#475569;font-size:12px;height:36px;box-shadow:0 1px 0 #dce3eb}th:nth-child(3){color:#334155;letter-spacing:.5px}th:nth-last-child(-n+2){text-align:center}td:first-child,th:first-child{width:38px;min-width:38px;max-width:38px;text-align:center;padding:0;position:sticky;left:0;background:#fff;z-index:2}th:first-child{background:#f1f4f8;z-index:5}.num,th:nth-child(2){width:46px;min-width:46px;text-align:center;position:sticky;left:38px;background:#f8fafc;z-index:2;color:#8491a3}th:nth-child(2){z-index:5;background:#f1f4f8;color:#475569}.blank{width:12px;min-width:12px;padding:0;background:#f8fafc}.port{text-align:center;min-width:56px}.ip,.kh{text-align:center;min-width:136px;color:#334155}.ip{font-weight:500}.kh{padding:0 5px}input[type=checkbox]{margin:0;vertical-align:middle;accent-color:#64748b;cursor:pointer;width:15px;height:15px}tbody tr:nth-child(even) td:not(.ip):not(.kh):not(.num):not(:first-child):not(.blank){background:#fbfcfe}tbody tr:hover td{box-shadow:inset 0 1px #cbd5e1,inset 0 -1px #cbd5e1}tbody tr.selected td{box-shadow:inset 0 1px #a5b7cc,inset 0 -1px #a5b7cc}tbody tr.selected td:first-child{background:#e4edf7}tr[data-kh="KENT"] .ip,tr[data-kh="KENT"] .kh{background:#e2efdf}tr[data-kh="SHEVA"] td:not(.num):not(:first-child){background:#fcf3dc}tr[data-kh]:not([data-kh=""]):not([data-kh="KENT"]):not([data-kh="SHEVA"]) .kh{background:#e8edf4}td.ip.changed{background:#b5ebd2!important;color:#166534}td.ip[data-status="error"],td.ip[data-status="unexpected"]{background:#fee2e2!important;color:#991b1b}td.ip.pending{background:#fef0c8!important;color:#854d0e}td.ip.checking{background:#e0edff!important;color:#1d4ed8}td.ip.checking:after{content:' · …'}.khInput{font:inherit;color:#334155;background:transparent;border:1px solid transparent;border-radius:4px;text-align:center;width:100%;min-width:110px;padding:4px 6px;outline:none}.khInput:hover{border-color:#cbd5e1}.khInput:focus{background:white;border-color:#8297b0;text-align:left;outline:none;box-shadow:0 0 0 2px #dce7f3}.khInput:disabled{opacity:1}footer{display:flex;align-items:center;gap:13px;color:#8491a3;font-size:11px;flex-wrap:wrap}.dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:4px}dialog{max-width:90vw;border:1px solid #dce3eb;border-radius:12px;padding:20px;color:#475569;box-shadow:0 16px 50px #0f172a22}dialog::backdrop{background:#0f172a44}pre{white-space:pre-wrap;max-height:65vh;overflow:auto}.login{justify-content:center;align-items:center}.login form{width:min(360px,100%);padding:32px;background:white;border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 35px #3341550b}.login h1{margin:16px 0 6px}.login p{color:#8491a3;margin:0 0 24px}.login label{display:block;margin-bottom:6px}.login input{width:100%;border:1px solid #dce3eb;border-radius:6px;padding:10px;margin-bottom:14px}.login button{width:100%}@media(max-width:800px){body{padding:10px;gap:8px}#tools{margin-top:-8px}.group+.group{border-left:0;padding-left:0;margin-left:0}h1{font-size:19px}#search{width:180px}}

#overview{flex:none;background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 14px;min-width:0}.ov-top{display:flex;align-items:center;gap:10px;font-size:11px;color:#64748b;margin-bottom:8px}.ov-top>span:first-child{letter-spacing:.65px}.ov-top #ovSync{margin-left:auto}.ov-top button{font-size:11px;min-height:24px;padding:3px 8px}.ov-grid{display:grid;grid-template-columns:.85fr 1.05fr .8fr 1.45fr 1.2fr;gap:14px}.ov-item{min-width:0;border-left:1px solid #edf0f4;padding-left:14px}.ov-item:first-child{border:0;padding:0}.ov-item label,.ov-item small{font-size:11px;color:#64748b;display:block}.ov-value{font-size:21px;font-weight:400;letter-spacing:-.4px;line-height:1.45;font-variant-numeric:tabular-nums;white-space:nowrap}.ov-track{height:5px;background:#edf1f5;border-radius:10px;overflow:hidden;margin:4px 0}.ov-track>div{width:0;height:100%;background:#94a3b8;transition:width .25s}.ov-track>div[data-tone=ok]{background:#81aa92}.ov-track>div[data-tone=warn]{background:#d4a34e}.ov-track>div[data-tone=danger]{background:#d98282}#overview [data-tone=warn]:not(.ov-track>div){color:#a16207}#overview [data-tone=danger]:not(.ov-track>div){color:#b91c1c}#ovError{font-size:11px;color:#b45309;margin-top:6px}@media(max-width:1000px){.ov-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.ov-value{font-size:17px}}@media(max-width:600px){.ov-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ov-top{flex-wrap:wrap}.ov-top #ovSync{margin-left:0}}

/* v1.4 Compact workspace — keep login and existing behavior intact. */
body:not(.login){padding:8px 12px;gap:5px}
body:not(.login) header{min-height:32px;gap:8px;flex-shrink:0}
body:not(.login) h1{font-size:19px;letter-spacing:-.35px}
body:not(.login) .brand{gap:8px}
body:not(.login) .brand-icon{width:28px;height:28px;border-radius:7px}
body:not(.login) .brand-icon svg{width:18px;height:18px}
body:not(.login) .brand small{font-size:10px;margin-top:0;line-height:12px}
body:not(.login) #count{padding:4px 8px}
body:not(.login) button{min-height:27px;padding:3px 8px;gap:4px;border-radius:5px}
body:not(.login) nav,body:not(.login) #tools{padding:4px 7px;gap:5px;flex-shrink:0}
body:not(.login) #tools{margin-top:-5px}
body:not(.login) .group{gap:4px}
body:not(.login) .group+.group{padding-left:7px;margin-left:1px}
body:not(.login) #tools input,body:not(.login) #tools select{height:27px;padding:3px 6px}
body:not(.login) #overview{padding:5px 9px;border-radius:7px}
body:not(.login) .ov-top{margin-bottom:3px;gap:6px;line-height:15px}
body:not(.login) .ov-top button{min-height:20px;padding:1px 6px}
body:not(.login) .ov-grid{gap:8px}
body:not(.login) .ov-item{padding-left:8px}
body:not(.login) .ov-item:first-child{padding-left:0}
body:not(.login) .ov-value{font-size:17px;line-height:1.2;white-space:normal}
body:not(.login) .ov-item label,body:not(.login) .ov-item small{font-size:11px;line-height:14px}
body:not(.login) .ov-track{height:4px;margin:2px 0}
body:not(.login) #ovError{margin-top:3px}
body:not(.login) #msg,body:not(.login) #pending{padding:4px 8px;line-height:16px;flex-shrink:0}
body:not(.login) main{border-radius:6px;min-height:80px}
body:not(.login) table{font-size:13px;line-height:18px}
body:not(.login) th,body:not(.login) td{height:23px;padding:1px 7px}
body:not(.login) th{height:28px}
body:not(.login) td:first-child,body:not(.login) th:first-child{padding:0;width:30px;min-width:30px;max-width:30px}
body:not(.login) .num,body:not(.login) th:nth-child(2){left:30px;width:38px;min-width:38px}
body:not(.login) .blank{padding:0}
body:not(.login) .kh{padding:0 4px}
body:not(.login) .khInput{height:21px;line-height:17px;padding:1px 4px}
body:not(.login) input[type=checkbox]{width:14px;height:14px}
body:not(.login) footer{gap:9px;line-height:14px;flex-shrink:0}
body:not(.login) .dot{width:7px;height:7px}
@media(max-width:800px){body:not(.login){padding:5px;overflow-y:auto}body:not(.login) .group+.group{padding-left:0;margin-left:0}}
