:root {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --line: #e2e8f0;
  --line-2: #eef2f7;
  --brand: #2563eb;
  --brand-d: #1d4ed8;
  --brand-l: #eff5ff;
  --red: #dc2626;
  --red-l: #fef2f2;
  --amber: #d97706;
  --amber-l: #fffbeb;
  --green: #059669;
  --green-l: #ecfdf5;
  --info: #0284c7;
  --info-l: #f0f9ff;
  --todo: #6b7280;
  --todo-l: #f3f4f6;
  --nav: #0f172a;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .05);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
button { font-family: inherit; }

/* ============ 布局 ============ */
.app { display: flex; min-height: 100vh; }

.nav {
  width: 216px;
  flex: 0 0 216px;
  background: var(--nav);
  color: #cbd5e1;
  padding: 20px 0 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.nav .brand { padding: 0 20px 18px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 8px; }
.nav .brand h1 { font-size: 15px; margin: 0; color: #fff; letter-spacing: .3px; font-weight: 600; }
.nav .brand p { margin: 4px 0 0; font-size: 11.5px; color: #64748b; letter-spacing: .2px; }
.nav .grp { padding: 14px 20px 6px; font-size: 10.5px; color: #475569; letter-spacing: 1.2px; text-transform: uppercase; }
.nav a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 20px; color: #cbd5e1; font-size: 13.5px;
  border-left: 2.5px solid transparent; cursor: pointer;
}
.nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav a.on { background: rgba(37,99,235,.16); border-left-color: var(--brand); color: #fff; font-weight: 500; }
.nav a .ico { width: 15px; text-align: center; opacity: .8; font-size: 13px; }
.nav a .pill { margin-left: auto; background: var(--red); color: #fff; font-size: 10.5px; padding: 1px 6px; border-radius: 20px; font-weight: 600; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 58px; flex: 0 0 58px;
  background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 24px; gap: 14px;
  position: sticky; top: 0; z-index: 20;
}
.topbar h2 { font-size: 16px; margin: 0; font-weight: 600; }
.topbar .sub { font-size: 12px; color: var(--ink-3); margin-left: 4px; }
.topbar .spacer { flex: 1; }

.whoami { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600;
}
.whoami .nm { font-weight: 500; }
.whoami .rl { color: var(--ink-3); font-size: 11px; }

.page { padding: 22px 24px 60px; max-width: 1440px; width: 100%; }

/* ============ 通用元件 ============ */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--line-2); }
.card-h h3 { margin: 0; font-size: 14px; font-weight: 600; }
.card-h .hint { font-size: 12px; color: var(--ink-3); }
.card-b { padding: 18px; }
.card-b.tight { padding: 0; }

.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 1180px) { .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 780px) { .g4, .g3, .g2 { grid-template-columns: 1fr; } }

.kpi { padding: 16px 18px; }
.kpi .lb { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.kpi .vl { font-size: 26px; font-weight: 600; letter-spacing: -.5px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .vl small { font-size: 13px; font-weight: 400; color: var(--ink-3); margin-left: 3px; }
.kpi .ft { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 7px 14px; border-radius: 7px; font-size: 13px; cursor: pointer;
  transition: .12s; white-space: nowrap;
}
.btn:hover { border-color: #cbd5e1; background: #fafbfc; }
.btn.pri { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 500; }
.btn.pri:hover { background: var(--brand-d); border-color: var(--brand-d); }
.btn.danger { color: var(--red); border-color: #fecaca; background: var(--red-l); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.sm { padding: 4px 9px; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 20px; font-size: 11.5px; font-weight: 500; white-space: nowrap;
}
.badge.red { background: var(--red-l); color: var(--red); }
.badge.amber { background: var(--amber-l); color: var(--amber); }
.badge.green { background: var(--green-l); color: var(--green); }
.badge.info { background: var(--info-l); color: var(--info); }
.badge.todo { background: var(--todo-l); color: var(--todo); }
.badge.gray { background: var(--todo-l); color: var(--ink-2); }
.badge.brand { background: var(--brand-l); color: var(--brand-d); }

.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.red { background: var(--red); } .dot.amber { background: var(--amber); }
.dot.green { background: var(--green); } .dot.info { background: var(--info); }
.dot.todo { background: var(--todo); }

/* ============ 表格 ============ */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left; padding: 10px 12px; font-weight: 500; color: var(--ink-2);
  background: #f8fafc; border-bottom: 1px solid var(--line); font-size: 12px; white-space: nowrap;
}
td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tbody tr:hover { background: #fbfcfe; }
tbody tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.mono { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.strong { font-weight: 600; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }

/* ============ 表单 ============ */
label.f { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 5px; }
input[type=text], input[type=number], select, textarea {
  width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px;
  font-size: 13px; font-family: inherit; color: var(--ink); background: #fff;
  font-variant-numeric: tabular-nums;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
input:disabled, select:disabled { background: #f8fafc; color: var(--ink-3); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fld { margin-bottom: 14px; }
.help { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }

/* ============ 价格链 ============ */
.chain { display: flex; flex-direction: column; gap: 0; }
.chain-item { display: grid; grid-template-columns: 156px 1fr 132px; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.chain-item:last-child { border-bottom: none; }
.chain-item .nm { font-size: 13px; font-weight: 500; }
.chain-item .nm .sub { display: block; font-weight: 400; font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.bar { height: 22px; background: var(--line-2); border-radius: 4px; overflow: hidden; position: relative; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, #93c5fd, #2563eb); border-radius: 4px; }
.bar.agent > i { background: linear-gradient(90deg, #6ee7b7, #059669); }
.bar.installer > i { background: linear-gradient(90deg, #fcd34d, #d97706); }
.bar.turnkey > i { background: linear-gradient(90deg, #fca5a5, #dc2626); }
.chain-item .pr { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.chain-item .pr small { display: block; font-weight: 400; color: var(--ink-3); font-size: 11px; }

.stack { display: flex; height: 30px; border-radius: 6px; overflow: hidden; margin: 4px 0 10px; }
.stack > div { display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; font-weight: 500; min-width: 0; overflow: hidden; white-space: nowrap; }

/* ============ 验证卡片 ============ */
.verify { border: 1px solid var(--line); border-radius: 9px; padding: 13px 15px; margin-bottom: 10px; background: #fff; }
.verify.red { border-left: 3px solid var(--red); background: var(--red-l); }
.verify.amber { border-left: 3px solid var(--amber); background: var(--amber-l); }
.verify.green { border-left: 3px solid var(--green); background: var(--green-l); }
.verify.info { border-left: 3px solid var(--info); background: var(--info-l); }
.verify.todo { border-left: 3px solid var(--todo); background: var(--todo-l); }
.verify .vt { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.verify .vf { font-size: 11.5px; color: var(--ink-2); margin-top: 5px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.verify .vm { font-size: 12.5px; margin-top: 6px; color: var(--ink); }
.verify .scn { font-size: 12px; margin-top: 6px; padding-left: 10px; border-left: 2px solid rgba(0,0,0,.06); }

/* ============ 抽屉 ============ */
.drawer-mask { position: fixed; inset: 0; background: rgba(15,23,42,.42); z-index: 100; display: none; }
.drawer-mask.on { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(880px, 94vw);
  background: #fff; z-index: 101; transform: translateX(100%); transition: transform .22s ease;
  display: flex; flex-direction: column; box-shadow: -8px 0 32px rgba(15,23,42,.16);
}
.drawer.on { transform: translateX(0); }
.drawer-h { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 12px; }
.drawer-h h3 { margin: 0; font-size: 16px; }
.drawer-h .sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.drawer-b { flex: 1; overflow-y: auto; padding: 20px 22px 40px; }
.drawer-close { margin-left: auto; border: none; background: none; font-size: 22px; color: var(--ink-3); cursor: pointer; line-height: 1; padding: 0 4px; }

.sec-t { font-size: 12px; font-weight: 600; color: var(--ink-2); letter-spacing: .5px; text-transform: uppercase; margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }
.sec-t:first-child { margin-top: 0; }
.sec-t::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }

/* ============ 登录 ============ */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(1200px 600px at 20% 0%, #e8f0ff 0%, #f5f7fa 55%); padding: 24px; }
.login { width: 100%; max-width: 760px; background: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(15,23,42,.1); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.login .lft { background: var(--nav); color: #fff; padding: 34px 30px; }
.login .lft h1 { font-size: 19px; margin: 0 0 6px; }
.login .lft p { font-size: 12.5px; color: #94a3b8; margin: 0 0 24px; line-height: 1.7; }
.login .lft ul { margin: 0; padding-left: 16px; font-size: 12.5px; color: #cbd5e1; line-height: 2; }
.login .rgt { padding: 30px; }
.login .rgt h2 { font-size: 15px; margin: 0 0 4px; }
.login .rgt .tip { font-size: 12px; color: var(--ink-3); margin-bottom: 16px; }
.u-item { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; cursor: pointer; transition: .12s; }
.u-item:hover { border-color: var(--brand); background: var(--brand-l); }
.u-item .meta { flex: 1; }
.u-item .meta b { font-size: 13px; font-weight: 500; display: block; }
.u-item .meta span { font-size: 11.5px; color: var(--ink-3); }

/* ============ 其他 ============ */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs button { border: none; background: none; padding: 9px 14px; font-size: 13px; color: var(--ink-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 500; }

.empty { padding: 44px 20px; text-align: center; color: var(--ink-3); font-size: 13px; }
.empty b { display: block; color: var(--ink-2); font-size: 14px; margin-bottom: 4px; font-weight: 500; }

.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 8px; font-size: 13px;
  opacity: 0; transition: .2s; z-index: 200; pointer-events: none; max-width: 80vw;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--red); }

.note { font-size: 12px; color: var(--ink-2); background: var(--brand-l); border: 1px solid #dbeafe; border-radius: 8px; padding: 10px 13px; line-height: 1.7; }
.note.warn { background: var(--amber-l); border-color: #fde68a; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters select, .filters input { width: auto; min-width: 130px; }

.legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--ink-3); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }

.lock { font-size: 11px; color: var(--ink-3); }

.kv { display: grid; grid-template-columns: 108px 1fr; gap: 6px 12px; font-size: 12.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; }

.hist { font-size: 12px; color: var(--ink-2); }
.hist li { margin-bottom: 7px; }

/* 形态选择卡片 */
.shape-pick {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px;
  cursor: pointer; transition: .12s; flex: 1; min-width: 148px; background: #fff;
}
.shape-pick:hover { border-color: #cbd5e1; background: #fafbfc; }
.shape-pick.on { border-color: var(--brand); background: var(--brand-l); box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.shape-pick input { margin: 0; width: auto; }
.shape-pick span { display: flex; flex-direction: column; line-height: 1.35; }
.shape-pick b { font-size: 13px; font-weight: 600; }
.shape-pick em { font-size: 11px; color: var(--ink-3); font-style: normal; }

/* 形态页签 */
.shape-tabs { display: flex; gap: 4px; padding: 0 18px; border-bottom: 1px solid var(--line); margin-top: 12px; }
.shape-tab {
  border: none; background: none; cursor: pointer; padding: 9px 16px 10px;
  font-size: 13px; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px;
  display: flex; align-items: center; gap: 7px; font-family: inherit;
}
.shape-tab:hover { color: var(--ink); background: #fafbfc; }
.shape-tab.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.shape-tab .st { font-size: 11px; color: var(--ink-3); font-weight: 400; font-variant-numeric: tabular-nums; }
.shape-tab.on .st { color: var(--brand-d); }

/* 产品资料卡片 */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; }
.doc-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; transition: .15s; background: #fff; }
.doc-card:hover { border-color: var(--brand); box-shadow: 0 6px 20px rgba(15,23,42,.1); transform: translateY(-2px); }
.doc-photo { height: 126px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; font-weight: 600; letter-spacing: 1px; position: relative; }
.doc-photo span { opacity: .92; }
.doc-flag { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.5); color: #fff; font-size: 10.5px; padding: 2px 7px; border-radius: 4px; font-style: normal; }
.doc-body { padding: 11px 13px 12px; }
.doc-title { font-size: 14px; font-weight: 600; }
.doc-tag { font-size: 12px; color: var(--ink-2); margin-top: 3px; line-height: 1.5; min-height: 34px; }
.doc-specs { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.doc-specs span { font-size: 10.5px; background: var(--brand-l); color: var(--brand-d); padding: 2px 6px; border-radius: 4px; }
.doc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line-2); font-size: 11px; }
.doc-pct { font-weight: 600; }
.doc-pct.ok { color: var(--green); }
.doc-pct.mid { color: var(--amber); }
.doc-pct.low { color: var(--ink-3); }
.doc-hero { height: 180px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; font-weight: 600; letter-spacing: 2px; }

/* 产品资料：品类导航与卡片 */
.pm-cat {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 11px; font-size: 12.5px; cursor: pointer; border-left: 2px solid transparent;
  color: var(--ink-2); line-height: 1.4;
}
.pm-cat:hover { background: #f6f8fb; color: var(--ink); }
.pm-cat.on { background: var(--brand-l); border-left-color: var(--brand); color: var(--brand-d); font-weight: 600; }
.pm-cat span { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.pm-chip {
  border: 1px solid var(--line); background: #fff; border-radius: 20px;
  padding: 4px 11px; font-size: 11.5px; color: var(--ink-2); cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 5px;
}
.pm-chip:hover { border-color: #cbd5e1; background: #fafbfc; }
.pm-chip.on { background: var(--brand-l); border-color: var(--brand); color: var(--brand-d); font-weight: 600; }
.pm-chip i { font-style: normal; font-size: 10px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pm-chip.on i { color: var(--brand-d); }

.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 11px; }
.pm-card { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; cursor: pointer; background: #fff; transition: .12s; }
.pm-card:hover { border-color: var(--brand); box-shadow: 0 5px 16px rgba(15,23,42,.09); transform: translateY(-2px); }
.pm-head { height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 11px; }
.pm-code { color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .3px; font-family: ui-monospace, Consolas, monospace; }
.pm-ex { background: rgba(255,255,255,.24); color: #fff; font-size: 9.5px; padding: 1px 6px; border-radius: 3px; font-style: normal; }
.pm-body { padding: 9px 11px 10px; }
.pm-name { font-size: 13px; font-weight: 600; line-height: 1.35; min-height: 35px; }
.pm-cat2 { font-size: 10.5px; color: var(--ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-nums { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 7px; min-height: 19px; }
.pm-nums span { font-size: 10px; background: #f1f5f9; color: var(--ink-2); padding: 1px 5px; border-radius: 3px; }
.pm-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--line-2); }
.g5 { grid-template-columns: repeat(5, 1fr); }

/* 右上角：使用说明入口与版本 */
.topbar-doc {
  font-size: 12px; color: var(--brand-d); text-decoration: none;
  border: 1px solid #bfdbfe; background: var(--brand-l); border-radius: 6px;
  padding: 5px 10px; white-space: nowrap; transition: .12s;
}
.topbar-doc:hover { background: #dbeafe; border-color: var(--brand); }
.topbar-ver {
  font-size: 10.5px; color: var(--ink-3); font-family: ui-monospace, Consolas, monospace;
  border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; margin-right: 2px;
}

/* 说明面板：步骤与版本列表 */
.kv-list { display: flex; flex-direction: column; gap: 8px; }
.kv-list > div { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }
.kv-list > div b {
  flex: none; min-width: 34px; text-align: center; font-size: 11px;
  background: var(--brand-l); color: var(--brand-d); border-radius: 4px; padding: 1px 0;
  font-family: ui-monospace, Consolas, monospace;
}
button.topbar-doc { cursor: pointer; font-family: inherit; }

/* ============ 自定义下拉（替代原生 datalist） ============ */
.combo-wrap { position: relative; display: block; width: 100%; }
.combo-wrap > input { width: 100%; padding-right: 28px; }
.combo-btn {
  position: absolute; right: 1px; top: 1px; bottom: 1px; width: 26px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); cursor: pointer; border-radius: 0 6px 6px 0;
  transition: background .12s, color .12s;
}
.combo-btn:hover { background: #f1f5f9; color: var(--brand); }
.combo-wrap.on .combo-btn { color: var(--brand); background: var(--brand-l); }
.combo-wrap.on > input { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

.combo-menu {
  position: fixed; z-index: 9999; padding: 4px; max-height: 268px; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
  box-shadow: 0 14px 36px rgba(15,23,42,.16), 0 2px 6px rgba(15,23,42,.06);
  animation: comboIn .12s ease-out;
}
@keyframes comboIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.combo-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 9px; border-radius: 6px; font-size: 12.8px; color: var(--ink); cursor: pointer;
}
.combo-item:hover { background: var(--brand-l); color: var(--brand-d); }
.combo-item.cur { background: var(--brand-l); color: var(--brand-d); font-weight: 600; }
.combo-item .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.combo-item .d { margin-left: auto; flex: none; font-size: 11px; color: var(--ink-3); font-weight: 400; }
.combo-item:hover .d { color: var(--brand); }
.combo-empty { padding: 10px; font-size: 12px; color: var(--ink-3); line-height: 1.6; text-align: center; }

.combo-display {
  display: flex; align-items: center; width: 100%; padding: 7px 28px 7px 10px;
  border: 1px solid var(--line); border-radius: 7px; font-size: 13px; color: var(--ink);
  background: #fff; cursor: pointer; user-select: none; box-sizing: border-box;
  min-height: 34px; font-variant-numeric: tabular-nums;
}
.combo-display:hover { border-color: #cbd5e1; }
.combo-display:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.combo-wrap.on .combo-display { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

/* 筛选栏里的下拉：不要撑满 */
.filters .combo-wrap { width: auto; min-width: 130px; }
.filters .combo-display { min-height: 0; padding: 7px 26px 7px 9px; }
/* 表格里的小号下拉 */
td .combo-display { min-height: 0; padding: 5px 26px 5px 8px; font-size: 12.5px; }

/* 详情抽屉里的空图片位：整块可点 */
.pm-photo-empty {
  height: 112px; margin-bottom: 12px; border: 1px dashed #cbd5e1; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: #fafbfc; color: var(--ink-3); font-size: 12.5px; cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
}
.pm-photo-empty:hover { border-color: var(--brand); background: var(--brand-l); color: var(--brand); }

/* Account and role management */
.brand-logo{width:128px;max-height:44px;object-fit:contain;object-position:left;margin-bottom:16px}
.login-brand{width:180px;max-height:70px;object-fit:contain;object-position:left;margin-bottom:32px}
.login-icon{width:52px;height:52px;border-radius:12px;margin-bottom:12px}
.admin-tabs,.admin-toolbar,.admin-actions,.admin-pager{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:18px}
.admin-toolbar input{flex:1;min-width:180px}.admin-pager{justify-content:flex-end;margin-top:18px}
.admin-editor{margin-top:24px;padding:24px;background:#f5f8fd;border:1px solid var(--line);border-radius:12px}
.admin-editor h3{margin-top:0}.admin-editor .fld,#dingForm .fld{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}
.choices{display:flex;gap:12px 24px;flex-wrap:wrap;margin:14px 0 20px}
.choice{display:flex;align-items:center;gap:8px;font-size:14px}.choice input{width:16px;height:16px}
.account-id{display:block;font-size:12px;color:var(--ink-2);overflow-wrap:anywhere}
.integration-status{display:flex;gap:16px;align-items:center;margin-bottom:24px}.integration-status img{width:64px;height:64px;border-radius:14px}
.integration-status h3{margin:0 0 6px}.audit-detail{max-width:400px;overflow-wrap:anywhere;font-size:12px}
.table-scroll{overflow-x:auto}.auth-error{padding:14px;background:#fef2f2;color:#b91c1c;border-radius:8px;margin-bottom:16px}
button.u-item{width:100%;text-align:left;background:white;font-family:inherit}.admin-tabs .btn{font-size:14px}
.admin-editor input,.admin-editor select,#dingForm input,.admin-toolbar input,.admin-toolbar select{padding:10px 12px;border:1px solid #cbd5e1;border-radius:7px;font:inherit;background:white;min-width:0}
.admin-editor input[type=checkbox]{padding:0}.admin-editor input[readonly],#dingForm input[readonly]{background:#f1f5f9}
@media(max-width:1100px){.topbar>.sub{display:none}.topbar h2{flex-shrink:0;white-space:nowrap}.topbar .whoami{min-width:0}.topbar .whoami .rl{font-size:12px}}
@media(max-width:700px){.admin-editor{padding:16px}.admin-editor .g2,#dingForm .g2{grid-template-columns:1fr}.admin-toolbar{align-items:stretch}.admin-toolbar input{width:100%;flex-basis:100%}.admin-tabs{gap:6px}.admin-tabs .btn{padding:8px}.choices{gap:12px}.table-scroll table{font-size:13px}}
