:root{font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#17241e;background:#f3f5f1;line-height:1.55;--border:#dce4dc;--green:#1a593e;--muted:#526358;--white:#fff}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
.wrap{width:min(1170px,calc(100% - 44px));margin:auto}
.top{background:#fff;border-bottom:1px solid var(--border)}
.bar,.workspace-head,.actions,.dialog-toolbar,.task-row{display:flex;align-items:center;gap:12px}
.bar,.workspace-head,.dialog-toolbar,.task-row{justify-content:space-between}
.bar{min-height:64px}
.brand{display:flex;align-items:center;gap:8px;color:var(--green);font-size:20px;font-weight:750;text-decoration:none}
.brand small{font-weight:500;font-size:13px;color:var(--muted)}
.mark{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:var(--green);color:white;font-size:16px}
main{padding:36px 0 56px}
h1,h2,h3,p{margin:0;overflow-wrap:anywhere}
h1{font-size:clamp(30px,5vw,46px);line-height:1.15;letter-spacing:-.045em}
h2{font-size:20px;line-height:1.3}
h3{font-size:16px}
.entry{max-width:800px;margin:32px auto}
.entry p{margin-top:14px;color:var(--muted)}
.entry-grid,.layout{display:grid;gap:20px;grid-template-columns:1fr 1fr;margin-top:28px;align-items:start}
.layout{grid-template-columns:minmax(0,2.4fr) minmax(0,1fr)}
.workspace-head{align-items:end;flex-wrap:wrap}
.workspace-head label{margin:16px 0 3px}
.stack{display:grid;gap:14px}
.surface{background:white;border:1px solid var(--border);border-radius:14px;padding:20px;min-width:0}
.compact,#project-form{margin-top:20px}
.compact{max-width:520px}
label{display:block;font-weight:600;font-size:14px}
input,select,textarea,button{font:inherit}
input,select,textarea{display:block;width:100%;border:1px solid #aebdb2;background:white;border-radius:8px;padding:8px 10px;color:inherit;margin-top:5px}
select[multiple]{min-height:82px}
textarea{resize:vertical}
button{padding:7px 13px;border:1px solid transparent;border-radius:8px;background:var(--green);color:white;cursor:pointer;font-weight:650;justify-self:start}
button.quiet{color:var(--green);background:white;border-color:#b9cabe}
button:hover{filter:brightness(.91)}
button:disabled{cursor:wait;opacity:.65}
.actions{flex-wrap:wrap}
.muted,#identity{color:var(--muted);font-size:14px}
.badge{display:inline-block;padding:2px 8px;border-radius:6px;background:#e7f1e9;color:#244f38;font-size:13px;white-space:nowrap}
.badge.alert{background:#fff0db;color:#794615}
.task-row{padding:11px 0;border-top:1px solid var(--border);align-items:flex-start}
.task-row .quiet{flex:none}
.task-title{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f2f5f1;padding:12px;border-radius:8px;margin:7px 0 0;font:inherit;font-size:14px}
dialog{width:min(770px,calc(100% - 28px));max-height:90vh;padding:0;border:1px solid var(--border);border-radius:14px;box-shadow:0 14px 70px #10271b42;color:inherit}
dialog::backdrop{background:#182b2280}
.dialog-toolbar{position:sticky;top:0;background:white;border-bottom:1px solid var(--border);padding:15px 20px;z-index:1}
#task-content{padding:20px}
#notice,.dialog-notice{padding:10px 14px;border-radius:8px;background:#e7f1e9;color:var(--green);margin-bottom:14px}
#notice.error,.dialog-notice.error{background:#fce8df;color:#862d1c}
.check{display:flex;align-items:center;gap:8px;font-weight:450}
.check input{width:auto;margin:0}
fieldset{border:1px solid var(--border);border-radius:8px}
summary{cursor:pointer}
@media(max-width:720px){.wrap{width:calc(100% - 26px)}.entry-grid,.layout{grid-template-columns:1fr}.surface{padding:15px}main{padding-top:25px}}

.buddy-overview{margin-top:24px}
.buddy-panel{padding:15px;border:1px solid var(--border);border-radius:10px;background:#f8faf7}
.buddy-report{gap:5px;border-left:3px solid #c9dfce;padding:8px 12px;background:#f0f6f0;border-radius:5px}
.buddy-report progress{width:100%;accent-color:var(--green)}
.buddy-report .report-text{white-space:pre-wrap}
button.stop{background:#fff2ed;border-color:#e2b5a7;color:#822d1d}

.node-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}
.badge.online {
  color: #166243;
  background: #dff4e9;
}
.badge.offline {
  color: #4c5862;
  background: #e8edf1;
}
