:root {
  color-scheme: light;
  font: 15px/1.5 "DM Sans", "Microsoft YaHei", system-ui, sans-serif;
  color: #1d302f;
  background: #f3f6f5;
  --green: #175d52;
  --ink: #1d302f;
  --muted: #5d706d;
  --line: #d7e2de;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: wait; }
:focus-visible { outline: 3px solid #389b84; outline-offset: 2px; }
header { background: #133f3c; color: #fff; }
header .bar, main.workspace { max-width: 1200px; margin: 0 auto; }
.bar { padding: 16px 30px; display: flex; align-items: center; gap: 10px; }
.brand-icon { position:relative; display:inline-block; width:33px; height:33px; flex:0 0 auto; border-radius:50%; border:1px solid #7fd3bb; transform:rotate(-29deg); }
.brand-icon::before { content:""; position:absolute; inset:8px -5px; border:2px solid #a3e5d2; border-radius:50%; }
.brand-icon::after { content:""; position:absolute; width:6px; height:6px; border-radius:50%; background:#a3e5d2; right:-2px; top:8px; }
.wordmark { font-size:20px; font-weight:700; letter-spacing:-.035em; }
.bar .product { border-left:1px solid #71948f; margin-left:4px; padding-left:14px; font-size:14px; }
.bar .logout { margin-left:auto; background:transparent; border:1px solid #638783; color:white; }
.workspace { padding:36px 30px 64px; }
.topline, .toolbar, .dialog-head, .dialog-actions, .detail-head, .node-top, .node-tail { display:flex; align-items:center; justify-content:space-between; gap:12px; }
h1 { font-size:clamp(24px,3vw,34px); line-height:1.2; font-weight:700; }
h2 { font-size:19px; }
.summary { color:var(--muted); margin-top:8px; font-size:.93rem; }
.surface { background:white; border:1px solid var(--line); border-radius:14px; margin-top:22px; overflow:hidden; }
.toolbar { padding:16px 20px; }
.search { max-width:340px; }
.table-scroll { overflow:auto; }
table { width:100%; border-collapse:collapse; text-align:left; }
th, td { padding:13px 18px; vertical-align:middle; }
th { background:#eff4f2; font-size:12px; color:var(--muted); white-space:nowrap; }
tbody > tr { border-top:1px solid var(--line); }
.account-name { text-align:left; font-weight:650; color:var(--ink); background:transparent; border:0; padding:4px 0; overflow-wrap:anywhere; }
.caret { color:var(--green); display:inline-block; margin-right:6px; }
.detail { background:#f7faf9; }
.detail > td { padding:16px 20px 22px; }
.detail-head { margin-bottom:12px; }
.detail h3 { font-size:15px; }
.detail table { border:1px solid var(--line); background:white; font-size:13px; }
td.wrap { overflow-wrap:anywhere; }
.mono, code { font-family: "IBM Plex Mono", Consolas, monospace; font-size:.87em; }
.chip { display:inline-block; padding:2px 6px; margin:2px 3px 2px 0; border-radius:5px; background:#e8f3ee; color:#235e4f; }
.actions { white-space:nowrap; }
button { border-radius:8px; }
.primary, .secondary, .logout, .quiet { min-height:36px; border:1px solid transparent; padding:6px 13px; }
.primary { background:var(--green); color:white; font-weight:600; }
.primary:hover { background:#10483f; }
.secondary { background:#fff; color:var(--ink); border-color:var(--line); }
.quiet { background:none; color:var(--green); padding:5px 8px; }
.quiet:hover, .secondary:hover { background:#eff7f3; }
.danger { color:#a83e40; }
input, select, textarea { width:100%; padding:9px 10px; border:1px solid #aabeb7; border-radius:7px; background:#fff; color:var(--ink); }
input[type="checkbox"] { width:auto; }
label { display:grid; gap:4px; font-size:14px; font-weight:600; }
small, .muted, .empty { color:var(--muted); }
.empty { text-align:center; padding:32px 15px; }
.hint { margin-top:4px; color:var(--muted); font-size:12px; }
.error { color:#922f38; font-size:14px; overflow-wrap:anywhere; }
.error:empty { display:none; }
.login-wrap { min-height:calc(100vh - 65px); display:grid; place-content:center; padding:28px 18px 12vh; }
.login { background:white; border:1px solid var(--line); padding:32px; width:min(380px,90vw); border-radius:16px; box-shadow:0 16px 40px #2840380d; }
.login h1 { font-size:25px; }
form.stack, .form-body { display:grid; gap:16px; }
.login form { margin-top:22px; }
dialog { width:min(620px,calc(100% - 28px)); max-height:88vh; border:1px solid var(--line); border-radius:15px; box-shadow:0 20px 65px #14292333; padding:0; color:var(--ink); }
dialog::backdrop { background:#122c2a75; }
.dialog-head { padding:18px 22px; border-bottom:1px solid var(--line); }
.form-body { padding:18px 22px; }
.dialog-actions { justify-content:flex-end; border-top:1px solid var(--line); padding:14px 22px; }
.node-card { border:1px solid var(--line); padding:12px; border-radius:8px; display:grid; gap:9px; }
.node-list { display:grid; gap:10px; }
.node-top strong { font-size:14px; }
#notice:not(:empty) { position:fixed; bottom:22px; left:50%; transform:translateX(-50%); padding:10px 20px; background:#16483f; color:white; border-radius:9px; }
.loading { padding:12vh 6vw; text-align:center; }
@media(max-width:700px) {
  .bar { padding:13px 16px; }
  .workspace { padding:22px 13px 45px; }
  th,td { padding:10px 9px; }
  .table-scroll > table { min-width:575px; }
  .detail > td { padding:10px; }
  .toolbar { padding:12px; }
  .actions { white-space:normal; }
}
.view-nav { display:flex; flex-wrap:wrap; gap:4px; margin-bottom:25px; }
.view-nav button { padding:7px 15px; border:1px solid transparent; color:var(--muted); background:transparent; }
.view-nav button[aria-current="page"] { background:#dcece5; color:#164c40; font-weight:650; }
.view-nav button:hover { border-color:var(--line); }
.check { display:flex; align-items:center; gap:8px; font-weight:500; }
.devices-heading { margin:16px 0 8px; }
.chip.off { background:#f0f1ef; color:#58615c; }

.release-form { padding: 24px; max-width: 820px; }
.release-form p { overflow-wrap: anywhere; }
.release-form label { display: block; margin: 20px 0 8px; font-weight: 600; }
.release-form input { display: block; margin-top: 8px; }
