:root { color-scheme: light; }
* { box-sizing: border-box; }
body {
  margin: 0; font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  background: #f7f7f5; color: #23231f; font-size: 14px; line-height: 1.6;
}
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px; background: #fff; border-bottom: 1px solid #e3e2dc;
}
.brand { font-weight: 500; font-size: 15px; }
.tag { font-size: 12px; color: #5f5e5a; background: #f1efe8; padding: 2px 6px; border-radius: 6px; margin-left: 6px; }
.who { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #5f5e5a; }
.who select { font-size: 13px; padding: 4px 6px; border: 1px solid #d3d1c7; border-radius: 6px; background: #fff; }
.who label.inline { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; }
.who label.inline select { width: auto; min-width: 190px; }
.who button.ghost { margin-right: 0; padding: 5px 10px; font-size: 12px; }
.userchip { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 10px; border-radius: 999px; background: #f1efe8; }
.userchip b { font-weight: 600; color: #23231f; }
.userchip .muted { font-size: 11px; }
.roles { font-size: 12px; color: #185fa5; }
.notice {
  padding: 8px 20px; background: #faeeda; color: #854f0b; font-size: 12px;
  border-bottom: 1px solid #f0dcc0;
}
.tabs { display: flex; gap: 4px; padding: 10px 16px 0; flex-wrap: wrap; }
.tabs button {
  border: 1px solid #e3e2dc; background: #fff; color: #444441; padding: 6px 12px;
  border-radius: 8px 8px 0 0; font-size: 13px; cursor: pointer;
}
.tabs button.active { background: #e6f1fb; border-color: #b5d4f4; color: #0c447c; }
main { padding: 16px 20px 60px; max-width: 1180px; }
h2 { font-size: 15px; font-weight: 500; margin: 4px 0 12px; }
h3 { font-size: 14px; font-weight: 500; margin: 20px 0 8px; }
.card { background: #fff; border: 1px solid #e3e2dc; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.muted { color: #5f5e5a; font-size: 12px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 220px; }
label { display: block; font-size: 12px; color: #5f5e5a; margin-bottom: 4px; }
/* 行内勾选项：复选框 + 说明文字排在一行，文字用正常字号而不是 label 的小字 */
label.inline { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #23231f; margin: 0; }
label.inline input[type="checkbox"] { width: auto; margin: 0; }
input[type="checkbox"] { width: auto; }
button[disabled] { opacity: .45; cursor: not-allowed; }
input, select, textarea {
  width: 100%; padding: 6px 8px; font-size: 13px; font-family: inherit;
  border: 1px solid #d3d1c7; border-radius: 6px; background: #fff; color: #23231f;
}
textarea { min-height: 70px; }
button.primary {
  background: #185fa5; color: #fff; border: none; padding: 7px 14px;
  border-radius: 8px; font-size: 13px; cursor: pointer;
}
button.ghost {
  background: #fff; color: #444441; border: 1px solid #d3d1c7; padding: 6px 12px;
  border-radius: 8px; font-size: 13px; cursor: pointer; margin-right: 6px;
}
button:disabled { opacity: .5; cursor: not-allowed; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #efeee9; vertical-align: top; }
th { color: #5f5e5a; font-weight: 400; font-size: 12px; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; }
.pass { background: #eaf3de; color: #3b6d11; }
.fail { background: #fcebeb; color: #a32d2d; }
.warn { background: #faeeda; color: #854f0b; }
.wait { background: #e6f1fb; color: #185fa5; }
.adopt { background: #e8eef8; color: #284f83; }
.step { display: flex; gap: 8px; margin-bottom: 10px; }
.step span { padding: 3px 10px; border-radius: 999px; background: #f1efe8; color: #5f5e5a; font-size: 12px; }
.step span.now { background: #185fa5; color: #fff; }
.stepnav { display: flex; gap: 6px; margin: 0 0 12px; flex-wrap: wrap; }
.stepnav .stepbtn {
  border: 1px solid #d3d1c7; background: #fff; color: #444441; padding: 6px 14px;
  border-radius: 8px; font-size: 13px; cursor: pointer;
}
.stepnav .stepbtn.active { background: #185fa5; color: #fff; border-color: #185fa5; }
.toast {
  position: fixed; right: 20px; bottom: 20px; max-width: 460px; padding: 10px 14px;
  border-radius: 10px; background: #2c2c2a; color: #fff; font-size: 13px; opacity: 0;
  transition: opacity .2s; pointer-events: none;
}
.toast.show { opacity: 1; }
.toast.error { background: #a32d2d; }
.kv { display: grid; grid-template-columns: 168px 1fr; gap: 4px 10px; font-size: 13px; }
.kv div:nth-child(odd) { color: #5f5e5a; }
code { background: #f1efe8; padding: 1px 5px; border-radius: 4px; font-size: 12px; }
/* 对话框：改口令、登录设备 */
dialog.dialog {
  border: 1px solid #e3e2dc; border-radius: 14px; padding: 20px 22px;
  width: min(420px, calc(100vw - 40px)); box-shadow: 0 18px 48px rgba(30, 32, 36, .18);
  background: #fff; color: #23231f;
}
dialog.dialog.wide { width: min(760px, calc(100vw - 40px)); }
dialog.dialog::backdrop { background: rgba(28, 28, 25, .28); }
dialog.dialog h3 { margin: 0 0 6px; }
dialog.dialog label { margin-top: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dialog-head h3 { margin: 0; }
dialog.dialog table { margin-top: 4px; }

/* Workbench v1: one task, clear hierarchy, consistent controls. */
body{background:#f2f5f9;font-size:15px;color:#213047}main{max-width:1440px;margin:0 auto;padding:24px 32px 64px}h2{font-size:22px;font-weight:600}h3{font-size:17px;font-weight:600}.topbar{background:#fff;padding:14px 24px}.card{border-color:#dce3ec;border-radius:10px;padding:20px;margin-bottom:18px}.stepnav{position:sticky;top:0;z-index:5;background:#f2f5f9;padding:12px 0}.stepnav .stepbtn{min-height:40px}button{font:inherit;border:1px solid #cbd5e1;background:#fff;color:#233b59;border-radius:6px;padding:7px 12px;min-height:36px;cursor:pointer}button.primary{background:#2463ad;padding:9px 16px}input,select,textarea{font-size:14px;min-height:38px}summary{cursor:pointer;font-weight:500;padding:8px 0}.tool-workbench details{background:#f6f8fb;padding:8px 14px;border-radius:8px}.kv{grid-template-columns:140px 1fr}.toast{z-index:1000}#stepBody>.card{box-shadow:none}#stepBody table{line-height:1.7}@media(max-width:900px){main{padding:16px}.topbar{flex-wrap:wrap;gap:12px}.who{flex-wrap:wrap}.kv{grid-template-columns:100px 1fr}}

input[type=radio],input[type=checkbox]{width:auto;min-height:0;height:auto}.card>h3:first-child{margin-top:0}.engineer-tabs{display:flex;gap:8px;margin:12px 0 18px}section[hidden]{display:none}

.home-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.home-heading p{margin:6px 0}.home-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.home-metrics .card{display:flex;align-items:center;justify-content:space-between}.home-metrics strong{font-size:28px}.home-task-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.home-task-grid .card{display:flex;flex-direction:column;gap:8px}.home-task-grid button{align-self:flex-start;margin-top:8px}.home-task-grid h3{margin:0}@media(max-width:1050px){.home-task-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.home-heading{align-items:flex-start;flex-direction:column}.home-metrics,.home-task-grid{grid-template-columns:1fr}}
