:root {
  font-family: -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  color: #23304a; background: #f5f7fb; font-size: 14px; line-height: 1.6;
  --blue: #315bd7; --soft: #edf2ff; --line: #e0e6ef; --muted: #65738c;
}
* { box-sizing: border-box; }
body { margin: 0; }
h1,h2,h3,p { margin:0; }
h1 { font-size: clamp(26px,3.3vw,35px); letter-spacing: -.04em; line-height: 1.3; }
h2 { font-size: 19px; letter-spacing: -.02em; }
h3 { font-size: 15px; }
a { color: inherit; text-decoration: none; }
button,input,select,textarea { font: inherit; }
button,a,input,select,textarea { outline-offset: 3px; }
:focus-visible { outline: 2px solid var(--blue); }
button,a.button { cursor: pointer; }
button { color: inherit; }
input,select,textarea { width:100%; min-width:0; padding: 9px 11px; border: 1px solid #cbd5e3; border-radius: 7px; background: #fff; color: #26354d; }
textarea { resize:vertical; min-height:85px; }
label { display:grid; gap:5px; font-weight: 550; }
.skip { position: fixed; top:-70px; left:8px; z-index:10; padding: 10px; background:white; }
.skip:focus {top:5px;}
.masthead { height:66px; display:flex; align-items:center; gap:18px; padding:0 30px; background:#fff; border-bottom:1px solid var(--line); }
.brand { display:inline-flex; align-items:center; gap:8px; font-size:21px; font-weight:760; letter-spacing:.03em; }
.head-divider { height:19px; border-left:1px solid #d5dce8; }
.product-name { color:#3857a5; letter-spacing:.06em; font-size:15px; }
.directory-link { margin-left:auto; padding:7px 12px; border:1px solid var(--line); border-radius:7px; font-size:13px; }
.directory-link:hover,.button:hover { border-color:#a3b5de; background:#f8faff; }
.workspace { display:grid; grid-template-columns:204px minmax(0,1fr); min-height:calc(100vh - 66px); }
.rail { padding:25px 14px 20px; border-right:1px solid var(--line); background:#fbfcff; display:flex; flex-direction:column; }
.rail-title { padding:0 11px 12px; font-weight:670; font-size:15px; }
.nav-group { margin:15px 0; }
.nav-caption { font-size:12px; color:var(--muted); padding:0 11px 5px; }
.nav-link { display:flex; align-items:center; gap:11px; padding:9px 12px; border-radius:7px; color:#485670; margin:2px 0; }
.nav-link:hover { background:#eff3fb; }
.nav-link[aria-current] { font-weight:650; color:var(--blue); background:#e6edff; }
.local-note { margin-top:auto; padding:32px 12px 0; color:#50607b; font-size:13px; }
.local-note span,small,.muted { color:var(--muted); font-weight:400; }
main { width:100%; max-width:1500px; min-width:0; padding:clamp(24px,3.2vw,52px); margin:0 auto; }
.breadcrumb { color:#61718d; display:flex; align-items:center; gap:8px; margin-bottom:16px; font-size:13px; }
.page-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:24px; }
.page-head p { color:var(--muted); margin-top:6px; }
.button,.link-button { display:inline-flex; align-items:center; justify-content:center; gap:6px; }
.button { padding:8px 14px; min-height:39px; border:1px solid #cdd6e5; background:white; border-radius:8px; font-weight:600; white-space:nowrap; }
.primary { color:#fff; background:var(--blue); border-color:var(--blue); }
.primary:hover { color:#fff; background:#264ab6; border-color:#264ab6; }
.link-button { color:#2c52bd; border:0; background:none; padding:5px 2px; font-weight:600; text-align:left; }
.link-button:hover { text-decoration:underline; }
.metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:22px; }
.metric { padding:16px 19px; border:1px solid var(--line); border-radius:11px; background:white; display:flex; align-items:center; gap:14px; }
.metric:first-child { background:#edf2ff; border-color:#d6e1fb; }
.metric-icon { display:grid; place-items:center; background:#edf2ff; color:#375fcc; width:42px; height:42px; border-radius:12px; }
.metric:first-child .metric-icon { background:#dbe6ff; }
.metric b { display:block; line-height:1.2; margin-top:3px; font-size:25px; font-variant-numeric:tabular-nums; }
.metric small { font-size:13px; }
.panel { background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.panel-head { padding:18px 21px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.panel-head p { color:var(--muted); }
.toolbar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:0 21px 17px; }
.search { position:relative; flex: 1 1 210px; max-width:380px; }
.search svg { position:absolute; left:10px; top:12px; color:#7585a0; }
.search input { padding-left:34px; }
.toolbar select { width:auto; max-width:100%; }
.table-scroll { overflow:auto; max-width:100%; }
table { width:100%; border-collapse:collapse; text-align:left; }
table th { color:var(--muted); font-weight:550; font-size:12px; background:#f6f8fc; }
table th,table td { white-space:nowrap; padding:12px 15px; border-top:1px solid #e7ecf3; }
table th:first-child,table td:first-child { padding-left:21px; }
table tr:hover td { background:#fafbff; }
.company { display:inline-flex; align-items:center; gap:10px; max-width:310px; }
.company span:last-child { white-space:normal; overflow-wrap:anywhere; }
.avatar { display:inline-grid; place-items:center; flex-shrink:0; height:34px; width:34px; background:#eaf1ff; color:#3159b5; font-size:15px; font-weight:650; border-radius:9px; }
td .company { color:#253958; }
td small { display:block; font-size:12px; }
.pill { display:inline-block; color:#54627d; border-radius:5px; background:#eef1f6; padding:2px 8px; font-size:12px; }
.pill.blue { color:#274ca9; background:#e8efff; }
.pill.green { color:#24614a; background:#e2f3ec; }
.pill.amber { color:#815d0a; background:#fff2d9; }
.table-foot,.empty { padding:20px; color:var(--muted); text-align:center; }
.table-foot { text-align:left; border-top:1px solid var(--line); font-size:13px; }
.panel + .panel { margin-top:18px; }
.detail-meta { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:16px 0 20px; }
.detail-meta div { min-width:0; overflow-wrap:anywhere; }
.detail-meta dt { color:var(--muted); font-size:12px; }
.detail-meta dd { margin:3px 0 0; font-weight:550; }
.action-row { display:flex; gap:9px; flex-wrap:wrap; align-items:center; }
dialog { border:1px solid var(--line); color:inherit; border-radius:14px; padding:0; width:min(540px,calc(100% - 24px)); max-height:88dvh; box-shadow:0 25px 75px #1c2d4930; overflow:auto; }
dialog::backdrop { background:#121e35a3; }
.dialog-body { padding:22px 25px; }
.dialog-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.dialog-heading h2 { overflow-wrap:anywhere; }
.close { padding:5px; height:32px; min-height:32px; width:32px; flex-shrink:0; }
form.form-stack { display:grid; gap:14px; margin-top:15px; }
.field-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.form-actions { display:flex; justify-content:flex-end; gap:9px; padding-top:8px; }
.section-rule { margin:22px 0 15px; border:0; border-top:1px solid var(--line); }
.note { padding:12px 0; border-bottom:1px solid var(--line); }
.note p,.wrap { white-space:pre-wrap; overflow-wrap:anywhere; }
.note small { display:block; margin-top:3px; }
.list-row { padding:15px 21px; display:flex; justify-content:space-between; align-items:center; gap:16px; border-top:1px solid var(--line); }
.list-row>div { min-width:0; overflow-wrap:anywhere; }
.list-row .button { flex-shrink:0; }
.bar-row { display:grid; grid-template-columns:85px minmax(30px,1fr) 45px; align-items:center; gap:10px; padding:12px 20px; }
.bar-track { border-radius:4px; overflow:hidden; background:#edf1f9; height:10px; }
.bar-track div { background:#6281db; height:100%; }
#status { visibility:hidden; position:fixed; bottom:18px; left:50%; transform:translateX(-50%); z-index:12; padding:9px 18px; border-radius:8px; color:#fff; background:#23344f; max-width:90%; }
#status.show { visibility:visible; }
.form-error { color:#9c1e28; }
@media(max-width:900px) {
  .workspace { grid-template-columns:166px minmax(0,1fr); }
  .masthead { padding:0 18px; }
  main { padding:24px 18px; }
  .metric { padding:12px; gap:8px; }
}
@media(max-width:680px) {
  .masthead { height:58px; gap:10px; }
  .brand { font-size:18px; } .brand img { width:25px; }
  .workspace { display:block; }
  .rail { padding:0; border:0; border-bottom:1px solid var(--line); }
  .rail-title,.local-note,.nav-caption { display:none; }
  #nav { display:flex; overflow-x:auto; padding:7px 10px; }
  .nav-group { display:contents; }
  .nav-link { padding:7px 10px; white-space:nowrap; flex-shrink:0; gap:5px; }
  .nav-link svg { width:16px; }
  main { padding:22px 14px; }
  .breadcrumb { margin-bottom:12px; }
  .page-head { flex-wrap:wrap; margin-bottom:18px; }
  .metrics { gap:7px; margin-bottom:14px; }
  .metric { display:block; padding:10px; }
  .metric-icon { display:none; }
  .metric small { font-size:12px; }
  .metric b { font-size:21px; }
  .toolbar,.panel-head { padding-left:13px; padding-right:13px; }
  .search { max-width:100%; flex-basis:100%; }
  .toolbar select { flex:1; }
  .dialog-body { padding:19px 16px; }
  .list-row { padding:14px; }
  .bar-row { padding:10px 14px; }
}
.workspace-foot { color:#68768d; font-size:12px; margin:18px 0 0; }
.sr-only { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
