/* system.css — 参考 Linear（浅色）的密度与层级，叠加在既有样式之上
   原则：1) 8pt 网格 2) 边框代替阴影 3) 单一强调色 4) 表格优先 5) 字号只用 4 档 */

:root {
  --r-sm: 5px;
  --r: 7px;
  --r-lg: 9px;
  --fs-xs: 11px;
  --fs-s: 12px;
  --fs-m: 13px;
  --fs-l: 15px;
  --fs-xl: 19px;
  --line-strong: #cfd6db;
}

/* ---------- 排版 ---------- */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.page-head h1 { font-size: var(--fs-xl); font-weight: 620; letter-spacing: -.022em; line-height: 1.25; }
.page-head .meta { font-size: var(--fs-s); color: var(--sub); }
.crumbline { font-size: var(--fs-s); color: var(--mute); margin-bottom: 4px; }
.crumbline a { color: var(--sub); text-decoration: none; }
.crumbline a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.crumbline b { color: var(--ink-2); font-weight: 550; }
.band-h h2 { font-size: var(--fs-m); font-weight: 600; letter-spacing: -.01em; }
.band-h .sub, .band-h .right { font-size: var(--fs-xs); color: var(--mute); }

/* ---------- 容器 ---------- */
.band { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); box-shadow: none; }
.band-h { min-height: 42px; padding: 0 14px; border-bottom: 1px solid var(--line-2); }
.page-head { margin-bottom: 12px; }
.toolbar { gap: 8px; margin-bottom: 10px; }

/* ---------- 按钮 ---------- */
.btn {
  height: 30px; padding: 0 11px; border-radius: var(--r-sm);
  font-size: var(--fs-s); font-weight: 500; box-shadow: none;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink-2);
  transition: background .12s ease, border-color .12s ease;
}
.btn:hover { background: var(--panel-2); border-color: var(--line-strong); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.ghost:hover { background: var(--panel-2); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- 输入 ---------- */
input[type="text"], input[type="number"], input[type="date"], input[type="search"],
input[type="password"], select, textarea, .fi, .f-search {
  height: 30px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--panel); color: var(--ink); font-size: var(--fs-s);
  padding: 0 9px; box-shadow: none;
}
textarea { height: auto; padding: 8px 9px; }
input:focus, select:focus, textarea:focus, .fi:focus, .f-search:focus {
  outline: 2px solid color-mix(in srgb, var(--brand) 28%, transparent); outline-offset: 0;
  border-color: var(--brand);
}

/* ---------- 表格 ---------- */
.tbl { font-size: var(--fs-s); border-collapse: separate; border-spacing: 0; }
.tbl th {
  height: 34px; padding: 0 12px; background: var(--panel-2);
  font-size: var(--fs-xs); font-weight: 600; color: var(--mute);
  letter-spacing: .02em; border-bottom: 1px solid var(--line);
}
.tbl td { height: 38px; padding: 0 12px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #f6f9f8; }
.tbl .code, .tbl .mono { font-family: var(--mono); font-size: var(--fs-xs); color: var(--sub); }
.dt-wrap { border-radius: var(--r-lg); }

/* ---------- 状态 ---------- */
.chip { height: 20px; padding: 0 7px; border-radius: var(--r-sm); font-size: var(--fs-xs); font-weight: 500; }
.chip .dot { width: 5px; height: 5px; }

/* ---------- 侧栏 ---------- */
.side { border-right: 1px solid var(--line); background: #fbfcfc; }
.snav { height: 30px; border-radius: var(--r-sm); font-size: var(--fs-s); color: var(--sub); }
.snav:hover { background: var(--panel-2); color: var(--ink); }
.snav.on { background: var(--brand-bg); color: var(--brand); font-weight: 550; }
.sgroup { font-size: 10.5px; letter-spacing: .06em; color: var(--mute); text-transform: uppercase; }

/* ---------- 弹层 ---------- */
.dlg { border-radius: var(--r-lg); box-shadow: 0 16px 48px rgba(16, 24, 32, .14); border: 1px solid var(--line); }
.drawer { box-shadow: -16px 0 48px rgba(16, 24, 32, .12); }

/* ---------- 分页 ---------- */
.pager { min-height: 46px; padding: 0 12px; font-size: var(--fs-xs); color: var(--mute); }
.pager .btn { height: 26px; padding: 0 9px; }

/* ---------- 空态 ---------- */
.empty { padding: 36px 16px; color: var(--mute); font-size: var(--fs-s); }

/* ---------- 登录 ---------- */
.auth2{display:grid;grid-template-columns:minmax(0,1fr) 460px;min-height:100vh;background:var(--bg)}
.auth2 *{box-sizing:border-box}
.auth-main{display:grid;place-items:center;padding:40px 24px}
.auth-inner{width:100%;max-width:360px}
.auth-brand{display:flex;align-items:center;gap:9px;margin-bottom:36px}
.auth-brand b{font-size:13.5px;font-weight:650;letter-spacing:-.01em}
.auth-brand .mark{width:26px;height:26px;border-radius:7px;display:grid;place-items:center;
  background:var(--brand);color:#fff;font-size:11px;font-weight:700}
.auth-env{font-size:10.5px;color:var(--mute);border:1px solid var(--line);border-radius:999px;padding:1px 7px;margin-left:2px}
.auth-inner h1{font-size:26px;line-height:1.2;font-weight:620;letter-spacing:-.03em;margin:0 0 6px}
.auth-sub{font-size:13px;color:var(--sub);margin:0 0 28px}
.auth-form{display:flex;flex-direction:column;gap:14px}
.auth-fld{display:flex;flex-direction:column;gap:6px}
.auth-fld > span{font-size:12px;color:var(--sub);font-weight:500}
.auth2 .auth-fld input,
.auth2 #u,
.auth2 #p{
  display:block;width:100%;height:40px;line-height:40px;padding:0 12px;
  border:1px solid var(--line);border-radius:7px;background:var(--panel);
  color:var(--ink);font-size:13.5px;font-family:inherit;box-shadow:none;
}
.auth2 .auth-fld input:focus{outline:2px solid color-mix(in srgb, var(--brand) 26%, transparent);
  outline-offset:0;border-color:var(--brand)}
.auth2 .auth-fld input::placeholder{color:#a9b3ba}
.auth-btn{width:100%;height:40px;font-size:13.5px;font-weight:550;margin-top:4px}
.auth-err{padding:9px 11px;border:1px solid #eccac6;background:#fdf3f2;color:var(--bad);
  border-radius:7px;font-size:12px;line-height:1.5}
.auth-hint{font-size:11.5px;color:var(--mute);line-height:1.7;margin:16px 0 0}
.auth-demo{margin-top:18px}
.auth-demo summary{font-size:11.5px;color:var(--mute);cursor:pointer;width:max-content}
.auth-demo-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.auth-demo-list button{height:26px;padding:0 9px;border:1px solid var(--line);border-radius:6px;
  background:var(--panel);color:var(--sub);font-size:11.5px;cursor:pointer}
.auth-demo-list button:hover{background:var(--panel-2);color:var(--ink)}
.auth-foot{margin-top:40px;padding-top:14px;border-top:1px solid var(--line);
  font-size:11px;color:var(--mute);line-height:1.6}
.auth-aside{background:#0c1e1b;color:#d7e2de;padding:56px 44px 40px;display:flex;flex-direction:column}
.auth-chain{flex:1;display:flex;flex-direction:column;gap:26px}
.ac-step{display:grid;grid-template-columns:34px 1fr;gap:12px;align-items:start}
.ac-step > span{font-family:var(--mono);font-size:11px;color:#6f8a83;padding-top:2px}
.ac-step b{display:block;font-size:13.5px;font-weight:600;color:#eef4f2;margin-bottom:3px}
.ac-step p{margin:0;font-size:12px;color:#8fa5a0;line-height:1.6}
.auth-note{font-size:11px;color:#6f8a83;border-top:1px solid #1e3531;padding-top:14px}
@media (max-width:980px){
  .auth2{grid-template-columns:1fr}
  .auth-aside{display:none}
}
