:root{--green:#1f6b3d;--green-d:#195a33;--ink:#0f1f1a;--muted:#5f6b66;--line:#e3e8e5;--soft:#f3f5f4;
  font:14px/1.45 "Segoe UI",system-ui,-apple-system,Arial,sans-serif;color:var(--ink);background:#fff}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;display:flex;flex-direction:column;height:100vh;overflow:hidden}
i[data-icon]{display:inline-flex;width:20px;height:20px;flex:none}
i[data-icon] svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
header{background:#f6f8f7;border-bottom:1px solid var(--line)}
.brandbar{display:flex;align-items:center;justify-content:space-between;padding:12px 16px 8px}
.brand{display:flex;align-items:center;gap:10px;color:var(--green);font-weight:600;font-size:15px}
.brand i{width:26px;height:26px}
.dot{width:9px;height:9px;border-radius:50%;background:#b3bcb7}
.dot.on{background:#21a04f}
.nav{display:flex}
.nav button{flex:1;padding:10px 4px 9px;border:0;border-bottom:2px solid transparent;background:transparent;color:#444f4a;font:inherit;cursor:pointer}
.nav .active{color:var(--green);font-weight:600;border-bottom-color:var(--green)}
main{flex:1;min-height:0;padding:18px 16px 12px;overflow-y:auto}
h1{font-size:21px;line-height:1.2;margin:0 0 4px;font-weight:700}
h2{font-size:15px;margin:0 0 8px;font-weight:700}
p{margin:0 0 8px}
.sub{color:var(--muted);margin-bottom:12px}
.hint{color:var(--muted);font-size:12.5px;margin:8px 0}
.soft{color:var(--muted)}
.body{color:#3d4843;margin-bottom:12px}
.mail{overflow-wrap:anywhere;margin:4px 0 0}
label{display:block;font-weight:600;margin:14px 0 6px}
.selectwrap{position:relative}
.selectwrap i{position:absolute;right:11px;top:50%;transform:translateY(-50%);pointer-events:none;width:18px;height:18px;color:#3d4843}
select,input{width:100%;height:40px;padding:0 12px;border:1px solid #c9d3ce;border-radius:6px;background:#fff;color:var(--ink);font:inherit}
select{appearance:none;-webkit-appearance:none;padding-right:34px}
select:focus,input:focus,button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--green);outline-offset:1px}
.row{display:flex;gap:12px}
.row>div{flex:1;min-width:0}
.row label{min-height:0}
.btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:40px;padding:0 14px;border-radius:6px;border:1px solid #c9d3ce;background:#fff;color:var(--green);font:inherit;font-weight:600;cursor:pointer;text-decoration:none}
.btn.primary{background:var(--green);border-color:var(--green);color:#fff}
.btn.primary:hover{background:var(--green-d)}
.btn.outline:hover{background:#f3f8f5}
.btn+.btn,.btn+.textlink{margin-top:8px}
.btn i{width:18px;height:18px}
button:disabled{opacity:.55;cursor:wait}
.buttons .btn{margin:0;padding:0 8px}
.textlink{display:flex;align-items:center;justify-content:center;gap:5px;margin:12px auto 0;background:none;border:0;color:var(--green);font:inherit;text-decoration:underline;cursor:pointer;padding:4px}
.textlink i{width:15px;height:15px}
#refreshSelection{margin-bottom:2px}
.summary{background:var(--soft);border-radius:8px;padding:14px 16px;margin:12px 0 8px}
.summary h2{margin-bottom:6px}
dl{margin:0}
dl>div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #e1e6e3}
dl>div:last-child{border-bottom:0}
dt{color:#3d4843}
dd{margin:0;text-align:right}
.summary .hint{font-size:12px;margin:2px 0 0}
.info{display:flex;gap:10px;background:#e8f0fb;color:#1c4f8f;border-radius:8px;padding:12px 14px;margin-top:16px}
.info p{margin:0}
.info .soft{color:#3d5f8e}
hr{border:0;border-top:1px solid var(--line);margin:16px 0}
.status{display:flex;align-items:center;gap:10px;margin:8px 0 6px}
.badge{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;color:#fff;flex:none}
.badge svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.badge.ok{background:var(--green)}
.badge.wait{background:#e0a21a}
.badge.off,.badge.cancel{background:#7d8782}
.badge.bad{background:#b6402a}
.bigline{display:flex;align-items:baseline;gap:12px}
.big{font-size:36px;font-weight:700;line-height:1.1}
.steps{list-style:none;margin:16px 0;padding:0;display:grid;gap:18px}
.steps li{display:flex;gap:14px;align-items:flex-start}
.num{flex:none;width:36px;height:36px;border-radius:50%;background:#e4efe8;color:var(--green);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:16px}
.steps strong{display:block;font-size:15px}
.steps span{color:var(--muted)}
.sync{display:flex;gap:12px}
.sync>i{width:28px;height:28px}
.sync strong{font-size:15px;display:block;margin-bottom:4px}
.sync p{color:#3d4843}
details{border:1px solid var(--line);border-radius:6px;margin:0 0 10px}
summary{display:flex;align-items:center;gap:12px;padding:13px 12px;cursor:pointer;font-weight:600;list-style:none}
summary::-webkit-details-marker{display:none}
summary span{flex:1}
.chev{transition:transform .15s;width:18px;height:18px}
details[open] .chev{transform:rotate(180deg)}
details p{padding:0 14px;color:#3d4843}
.job{border-top:1px solid var(--line);padding:16px 0}
.job:first-child{border-top:0}
.jobhead{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.jobhead strong{font-size:15px;overflow-wrap:anywhere}
.jobhead .soft{white-space:nowrap;font-size:13px}
.jobstatus{display:flex;align-items:center;gap:10px;margin:10px 0 6px}
.job .btn,.job .textlink{margin-top:10px}
.job .textlink{justify-content:flex-start;margin-left:0;padding-left:0}
progress{width:100%;height:8px;accent-color:var(--green);margin:4px 0}
code{font-size:11px;overflow-wrap:anywhere;display:block;margin:4px 0}
.error{color:#8d331e;background:#fff0e9;padding:10px 12px;border-radius:6px;white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:12px}
.notice{background:#e8f2eb;padding:10px 12px;border-radius:6px;margin-bottom:12px}
#message:empty{display:none}
#connectTop{margin-bottom:14px}
footer{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-top:1px solid var(--line);background:#fff}
footer a,.footbtn{display:inline-flex;align-items:center;gap:5px;color:var(--green);font:inherit;font-weight:600;text-decoration:none;background:none;border:0;cursor:pointer;padding:0}
footer i{width:15px;height:15px}
.menu{position:fixed;right:12px;bottom:52px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 6px 20px rgba(0,0,0,.15);padding:6px;min-width:190px;z-index:5}
.menu a{display:flex;justify-content:space-between;align-items:center;padding:10px;color:var(--ink);text-decoration:none;border-radius:6px}
.menu a:hover{background:var(--soft)}
.menu i{width:15px;height:15px;color:var(--green)}
.hide{display:none!important}
.overlay{position:fixed;inset:0;background:rgba(15,31,26,.45);display:flex;align-items:center;justify-content:center;padding:16px;z-index:10;overflow-y:auto}
.card{background:#fff;border-radius:10px;padding:18px;width:100%}
.card h3{margin:0 0 6px;font-size:18px}
.card table{width:100%;border-collapse:collapse;margin:8px 0}
.card td{padding:8px 0;border-bottom:1px solid var(--line)}
.card .row{margin-top:14px}
.card .row button{flex:1;min-height:40px;border-radius:6px;border:1px solid #c9d3ce;background:#fff;color:var(--green);font:inherit;font-weight:600;cursor:pointer}
.card .row .primary{background:var(--green);border-color:var(--green);color:#fff}
.muted{color:var(--muted);font-size:12.5px}
