/* ============================================================================
   泛微 E9 数据管理台 · 样式
   零外部依赖：系统字体栈 + 纯 CSS 图形，无 CDN、无 webfont。
   ========================================================================== */

/* ------------------------------------------------------------ 设计令牌 */
:root {
  --bg: #f3f5f9;
  --panel: #ffffff;
  --panel-2: #fafbfd;
  --ink: #1a2333;
  --ink-2: #3c485c;
  --muted: #6b7789;
  --muted-2: #94a0b3;
  --line: #e4e9f1;
  --line-strong: #d4dbe7;

  --side: #0e1626;
  --side-2: #131e31;
  --side-line: rgba(255, 255, 255, .07);
  --side-ink: #dbe3f0;
  --side-muted: #8b9ab1;

  --brand: #2f6fed;
  --brand-2: #1b57c9;
  --brand-soft: #eaf0ff;
  --teal: #12a594;
  --teal-soft: #e3f6f3;

  --ok: #0f8f63;
  --ok-soft: #e4f6ee;
  --warn: #a86200;
  --warn-soft: #fdf1de;
  --err: #c22a4a;
  --err-soft: #fde9ee;
  --info: #2f6fed;
  --info-soft: #eaf0ff;

  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(20, 34, 61, .05);
  --shadow: 0 4px 18px rgba(20, 34, 61, .07);
  --shadow-lg: 0 18px 50px rgba(9, 18, 36, .22);
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
          "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { display: block; }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.center { text-align: center; }
.grow { flex: 1 1 auto; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; }
.row-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 18px; }

/* ------------------------------------------------------------ 启动占位 */
.boot-screen {
  position: fixed; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  background: var(--side); color: var(--side-ink); z-index: 90;
}
.boot-mark {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  font-weight: 800; letter-spacing: .5px; font-size: 18px; color: #fff;
  animation: boot-pulse 1.6s ease-in-out infinite;
}
.boot-text { font-size: 13px; color: var(--side-muted); }

@keyframes boot-pulse {
  0%, 100% { transform: scale(1); opacity: .92; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* ------------------------------------------------------------ 品牌 */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px;
  display: grid; place-items: center; color: #fff; font-weight: 800;
  font-size: 14px; letter-spacing: .3px;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong { font-size: 15px; letter-spacing: .2px; }
.brand-text span { font-size: 11px; color: var(--side-muted); letter-spacing: .4px; }
.brand-lg .brand-mark { width: 46px; height: 46px; flex-basis: 46px; font-size: 16px; }
.brand-lg .brand-text strong { font-size: 18px; color: #fff; }
.brand-lg .brand-text span { color: rgba(219, 227, 240, .55); }

/* ------------------------------------------------------------ 登录页 */
.login-view { display: flex; min-height: 100vh; background: var(--bg); }

.login-aside {
  flex: 1 1 52%; min-width: 0; position: relative; overflow: hidden;
  background:
    radial-gradient(900px 460px at 82% 8%, rgba(47, 111, 237, .34), transparent 62%),
    radial-gradient(700px 520px at 8% 96%, rgba(18, 165, 148, .24), transparent 60%),
    linear-gradient(155deg, #0b1322 0%, #101d33 58%, #0c1626 100%);
  color: #eaf0fa;
}
.login-aside::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 30% 30%, #000 0%, transparent 78%);
  pointer-events: none;
}
.login-aside-inner {
  position: relative; z-index: 2; max-width: 620px; height: 100%;
  padding: 56px 64px; display: flex; flex-direction: column;
}
.login-aside h1 {
  margin-top: auto; font-size: 40px; line-height: 1.28; font-weight: 700;
  letter-spacing: .5px;
}
.login-lede {
  margin-top: 18px; max-width: 470px; font-size: 14.5px; line-height: 1.85;
  color: rgba(219, 227, 240, .72);
}
.login-points { list-style: none; margin: 30px 0 auto; padding: 0; display: grid; gap: 12px; }
.login-points li {
  display: flex; align-items: center; gap: 10px; font-size: 13.5px;
  color: rgba(219, 227, 240, .82);
}
.login-points .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 4px rgba(18, 165, 148, .16);
}
.login-grid-deco {
  position: absolute; right: -90px; bottom: -110px; width: 420px; height: 420px;
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255, 255, 255, .018),
              0 0 0 130px rgba(255, 255, 255, .012);
  pointer-events: none;
}

.login-main {
  flex: 0 0 48%; min-width: 420px; display: flex; align-items: center;
  justify-content: center; padding: 40px 32px; background: var(--bg);
}
.login-card {
  width: 100%; max-width: 396px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 30px 30px 22px; box-shadow: var(--shadow);
}
.login-card-head .brand { margin-bottom: 26px; }
.login-card-head .brand-mark { box-shadow: none; }
.login-card-head h2 { font-size: 25px; letter-spacing: .4px; }
.login-card-head p { margin-top: 6px; font-size: 13px; }

.field { margin-top: 16px; }
.field label {
  display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600;
  color: var(--ink-2); letter-spacing: .2px;
}
.field input, .field select, .field textarea {
  width: 100%; height: 42px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 9px;
  background: #fff; color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: auto; min-height: 74px; padding: 9px 12px; resize: vertical; }
.field input::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 111, 237, .13);
}
.field .hint { margin-top: 6px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 58px; }
.pw-toggle {
  position: absolute; right: 6px; top: 6px; height: 30px; padding: 0 9px;
  border: 0; border-radius: 7px; background: transparent; color: var(--muted);
  font-size: 12px; cursor: pointer;
}
.pw-toggle:hover { background: var(--bg); color: var(--ink); }

.server-box { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.server-box summary {
  cursor: pointer; font-size: 12.5px; color: var(--muted); list-style: none;
  display: flex; align-items: center; gap: 6px; user-select: none;
}
.server-box summary::-webkit-details-marker { display: none; }
.server-box summary::before { content: "▸"; font-size: 10px; transition: transform .15s; }
.server-box[open] summary::before { transform: rotate(90deg); }
.server-box .field { margin-top: 10px; }

.form-error {
  margin-top: 14px; padding: 10px 12px; border-radius: 8px;
  background: var(--err-soft); border: 1px solid #f6c9d4; color: #9d1f3c;
  font-size: 12.5px; line-height: 1.55;
}
.form-error::before { content: "⚠ "; font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border: 1px solid var(--line-strong);
  border-radius: 8px; background: #fff; color: var(--ink-2);
  font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .06s;
}
.btn:hover { background: #f7f9fc; border-color: #c3ccdb; color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary {
  border-color: transparent; color: #fff;
  background: linear-gradient(135deg, var(--brand), #245fd6);
  box-shadow: 0 2px 8px rgba(47, 111, 237, .28);
}
.btn-primary:hover { background: linear-gradient(135deg, #3b7bf5, var(--brand-2)); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: rgba(26, 35, 51, .06); color: var(--ink); border-color: transparent; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn-block { width: 100%; height: 44px; margin-top: 20px; font-size: 14px; font-weight: 600; }
.btn-danger { color: var(--err); border-color: #ecc4cd; background: #fff; }
.btn-danger:hover { background: var(--err-soft); border-color: #e2a8b6; color: #a21f3b; }
.btn-teal { color: #fff; background: linear-gradient(135deg, #16b3a0, #0d8b7d); border-color: transparent; }
.btn-teal:hover { color: #fff; background: linear-gradient(135deg, #1cc4b0, #0e9a8a); }

.spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.login-demo {
  margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 11.5px; color: var(--muted);
}
.login-demo code {
  font-family: var(--mono); font-size: 11px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; color: var(--ink-2);
}
.login-foot { margin-top: 12px; font-size: 11px; color: var(--muted-2); line-height: 1.5; }

/* ------------------------------------------------------------ 应用外壳 */
.app-view { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
  width: 232px; flex: 0 0 232px; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--side) 0%, #0b1422 100%);
  color: var(--side-ink); border-right: 1px solid #0a1220;
  z-index: 20;
}
.brand-side {
  height: 64px; padding: 0 18px; border-bottom: 1px solid var(--side-line);
  flex: 0 0 64px;
}
.brand-side .brand-text strong { color: #eef3fb; }
.brand-side .brand-text span { color: var(--side-muted); }

.nav { flex: 1 1 auto; overflow-y: auto; padding: 12px 10px 16px; }
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 3px; }
.nav-group { margin-bottom: 12px; }
.nav-group-title {
  padding: 8px 10px 6px; font-size: 10.5px; font-weight: 600;
  letter-spacing: 1.4px; color: #667489; text-transform: uppercase;
}
.nav-item {
  display: flex; align-items: center; gap: 10px; height: 38px;
  padding: 0 10px; margin: 2px 0; border-radius: 8px;
  color: #b9c5d8; font-size: 13.5px; text-decoration: none;
  border: 1px solid transparent; position: relative;
  transition: background .15s, color .15s;
}
.nav-item svg {
  width: 18px; height: 18px; flex: 0 0 18px; fill: none;
  stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  opacity: .82;
}
.nav-item:hover { background: rgba(255, 255, 255, .055); color: #fff; text-decoration: none; }
.nav-item.active {
  background: linear-gradient(90deg, rgba(47, 111, 237, .26), rgba(47, 111, 237, .08));
  color: #fff; border-color: rgba(87, 141, 244, .28);
}
.nav-item.active::before {
  content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0; background: #5b91f7;
}
.nav-item.active svg { opacity: 1; color: #8fb4ff; }

.side-foot {
  flex: 0 0 44px; display: flex; align-items: center; gap: 8px;
  padding: 0 18px; border-top: 1px solid var(--side-line);
  font-size: 11px; color: var(--side-muted);
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #2fce9b;
  box-shadow: 0 0 0 3px rgba(47, 206, 155, .16);
}

.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 64px; flex: 0 0 64px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  padding: 0 24px; background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); z-index: 10;
}
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.crumb { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.crumb-title { font-size: 17px; font-weight: 650; letter-spacing: .2px; }
.crumb-sub {
  font-size: 12px; color: var(--muted); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 460px;
}
.topbar-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.chip {
  display: inline-flex; align-items: center; height: 26px; padding: 0 9px;
  border-radius: 999px; background: var(--bg); border: 1px solid var(--line);
  font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.chip.warn { color: var(--warn); background: var(--warn-soft); border-color: #f0dab5; }
.chip.danger { color: var(--err); background: var(--err-soft); border-color: #f3c3ce; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 22px;
  padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 600;
  letter-spacing: .2px; white-space: nowrap; border: 1px solid transparent;
  background: var(--bg); color: var(--muted);
}
.badge-ok { background: var(--ok-soft); color: var(--ok); border-color: #c4ebdb; }
.badge-warn { background: var(--warn-soft); color: var(--warn); border-color: #f0dab5; }
.badge-err { background: var(--err-soft); color: var(--err); border-color: #f3c3ce; }
.badge-info { background: var(--info-soft); color: var(--info); border-color: #cddcff; }
.badge-teal { background: var(--teal-soft); color: #0a7d70; border-color: #bfe9e2; }
.badge-plain { background: #f0f3f8; color: #5b687c; border-color: var(--line); }
.badge-dot::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; display: inline-block;
}

.userbox {
  display: flex; align-items: center; gap: 9px; padding-left: 12px;
  border-left: 1px solid var(--line); min-width: 0;
}
.avatar {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, #2f6fed, #12a594);
  text-transform: uppercase;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.user-meta strong { font-size: 12.5px; font-weight: 650; }
.user-meta span {
  font-size: 10.5px; color: var(--muted); max-width: 220px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.icon-btn {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid transparent; border-radius: 8px; background: transparent;
  color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer;
}
.icon-btn:hover { background: var(--bg); color: var(--ink); }

.only-narrow { display: none; }

.restrict-banner {
  margin: 14px 24px -2px; padding: 9px 13px; border-radius: 9px;
  background: var(--warn-soft); border: 1px solid #f0dab5; color: #7d4a00;
  font-size: 12.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.restrict-banner strong { font-weight: 650; }

.view { flex: 1 1 auto; overflow-y: auto; padding: 22px 24px 42px; outline: none; }
.view::-webkit-scrollbar { width: 10px; height: 10px; }
.view::-webkit-scrollbar-thumb { background: #cfd7e4; border-radius: 6px; border: 2px solid var(--bg); }
.view::-webkit-scrollbar-track { background: transparent; }

/* ------------------------------------------------------------ 通用版式 */
.page-intro {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 18px; margin-bottom: 18px; flex-wrap: wrap;
}
.page-intro h1 { font-size: 19px; font-weight: 650; letter-spacing: .2px; }
.page-intro p { margin-top: 4px; font-size: 12.5px; color: var(--muted); max-width: 820px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); min-width: 0;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.card-head h2 { font-size: 14px; font-weight: 650; letter-spacing: .2px; }
.card-head .sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.card-body { padding: 16px 18px; }
.card-body.flush { padding: 0; }
.card-foot {
  padding: 10px 18px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; font-size: 12px; color: var(--muted);
}

.grid { display: grid; gap: 16px; }
.grid-kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.kpi {
  position: relative; padding: 16px 18px 15px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.kpi::after {
  content: ""; position: absolute; right: -26px; top: -30px; width: 96px; height: 96px;
  border-radius: 50%; background: var(--brand-soft); opacity: .65;
}
.kpi.teal::after { background: var(--teal-soft); }
.kpi.warn::after { background: var(--warn-soft); }
.kpi.purple::after { background: #f0ebff; }
.kpi-label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi-value {
  margin-top: 8px; font-size: 26px; line-height: 1.15; font-weight: 700;
  letter-spacing: .3px; font-variant-numeric: tabular-nums;
}
.kpi-value small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.kpi-foot { margin-top: 7px; font-size: 11.5px; color: var(--muted); position: relative; z-index: 1; }
.kpi-ico {
  position: absolute; right: 14px; bottom: 12px; font-size: 20px; opacity: .3; z-index: 1;
}

/* ------------------------------------------------------------ 表格 */
.table-wrap { width: 100%; overflow-x: auto; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.tbl thead th {
  position: sticky; top: 0; z-index: 1;
  background: #f7f9fc; color: #5d6a7e; font-weight: 600; font-size: 11.5px;
  letter-spacing: .3px; text-align: left; white-space: nowrap;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.tbl tbody td {
  padding: 10px 14px; border-bottom: 1px solid #eef2f7;
  color: var(--ink-2); vertical-align: middle;
}
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl.zebra tbody tr:nth-child(even) { background: #fbfcfe; }
.tbl tbody tr:hover { background: #f4f7fe; }
.tbl tbody tr.clickable { cursor: pointer; }
.tbl tbody tr.selected { background: var(--brand-soft); }
.tbl .cell-strong { color: var(--ink); font-weight: 600; }
.tbl .cell-title { color: var(--brand); font-weight: 550; }
.tbl .cell-mono { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tbl .cell-actions { white-space: nowrap; text-align: right; }
.tbl .cell-empty { color: var(--muted-2); }
.tbl.compact tbody td { padding: 8px 12px; }
.tbl.compact thead th { padding: 8px 12px; }

.cell-sub { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.file-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.file-ico {
  width: 28px; height: 28px; flex: 0 0 28px; border-radius: 7px;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: var(--info-soft); color: var(--brand);
}
.file-ico.pdf { background: var(--err-soft); color: var(--err); }
.file-ico.img { background: #eef7e8; color: #4b8a2f; }
.file-ico.zip { background: var(--warn-soft); color: var(--warn); }
.file-ico.txt { background: #eef1f6; color: #5b687c; }
.file-ico.xls { background: #e7f5ec; color: #157347; }

/* ------------------------------------------------------------ 分页 / 工具条 */
.pager { display: flex; align-items: center; gap: 6px; }
.pager .btn { height: 28px; padding: 0 9px; font-size: 12px; }
.pager-info { font-size: 11.5px; color: var(--muted); margin-right: 6px; font-variant-numeric: tabular-nums; }

.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.toolbar .grow { flex: 1 1 180px; }
.searchbox { position: relative; min-width: 190px; }
.searchbox input {
  width: 100%; height: 34px; padding: 0 30px 0 10px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: #fff;
  font-size: 12.5px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.searchbox input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 111, 237, .1); }
.searchbox::before {
  content: "⌕"; position: absolute; left: 10px; top: 50%; transform: translateY(-52%);
  color: var(--muted-2); font-size: 16px; pointer-events: none;
}
.searchbox input { padding-left: 28px; }

select.mini, input.mini {
  height: 34px; padding: 0 9px; border: 1px solid var(--line-strong);
  border-radius: 8px; background: #fff; font-size: 12.5px; outline: none;
  min-width: 0; color: var(--ink-2);
}
select.mini:focus, input.mini:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 111, 237, .1); }
input.mini[type="date"] { font-size: 12px; }
.toolbar-label { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ------------------------------------------------------------ 筛选条 */
.filterbar { border-bottom: 1px dashed var(--line); background: #fbfcfe; }
.filterbar-main {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 16px;
}
.filterbar-main .filter-title { font-size: 12px; color: var(--muted); margin-right: 2px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px;
  padding: 0 6px 0 9px; border-radius: 7px; background: #fff;
  border: 1px solid #cddcff; color: #24509e; font-size: 11.5px;
}
.filter-chip b { font-weight: 600; }
.filter-chip .x {
  width: 18px; height: 18px; display: grid; place-items: center; border: 0;
  border-radius: 4px; background: transparent; color: #6c86b5; cursor: pointer;
  font-size: 12px; line-height: 1;
}
.filter-chip .x:hover { background: #e4ecfd; color: #1d3f7d; }
.filter-add {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 0 16px 10px;
}
.filter-add select, .filter-add input { height: 30px; font-size: 12px; min-width: 94px; }
.filter-add input { width: 150px; }
.filter-empty { font-size: 11.5px; color: var(--muted-2); }

/* ------------------------------------------------------------ 标签页 */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 4px; }
.tab {
  position: relative; height: 42px; padding: 0 16px; border: 0; background: transparent;
  color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer;
  border-radius: 8px 8px 0 0;
}
.tab:hover { color: var(--ink); background: #f7f9fc; }
.tab.active { color: var(--brand); font-weight: 650; }
.tab.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px;
  height: 2px; border-radius: 2px; background: var(--brand);
}
.tab .count { font-size: 10.5px; color: var(--muted-2); margin-left: 4px; }

/* ------------------------------------------------------------ 骨架屏 / 空态 / 错误 */
.skeleton { position: relative; overflow: hidden; background: #eef2f8; border-radius: 6px; }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
  transform: translateX(-100%); animation: shimmer 1.35s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-line { height: 12px; margin: 10px 0; }
.sk-line.w40 { width: 40%; }
.sk-line.w60 { width: 60%; }
.sk-line.w25 { width: 25%; }
.sk-card { height: 92px; border-radius: var(--radius-lg); }
.sk-table { padding: 14px 16px; display: grid; gap: 10px; }
.sk-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr .8fr; gap: 14px; }

.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px; padding: 46px 20px; text-align: center; color: var(--muted);
}
.empty-ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: #f1f4fa; font-size: 20px; color: var(--muted-2); margin-bottom: 3px;
}
.empty strong { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.empty span { font-size: 12px; max-width: 420px; }

.state {
  display: flex; align-items: flex-start; gap: 12px; padding: 18px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel-2);
}
.state-ico { font-size: 18px; line-height: 1.2; }
.state h3 { font-size: 13.5px; margin-bottom: 3px; }
.state p { font-size: 12.5px; color: var(--muted); }
.state .code { font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.state-error { background: var(--err-soft); border-color: #f3c3ce; }
.state-error h3 { color: #9d1f3c; }
.state-lock { background: var(--warn-soft); border-color: #f0dab5; }
.state-lock h3 { color: #7d4a00; }

/* ------------------------------------------------------------ 仪表盘 */
.dash-hero {
  position: relative; overflow: hidden; margin-bottom: 18px;
  border-radius: var(--radius-lg); border: 1px solid #16233a;
  background:
    radial-gradient(700px 260px at 92% 8%, rgba(47, 111, 237, .35), transparent 62%),
    linear-gradient(120deg, #121e33, #0e1728 60%, #0c1524);
  color: #eaf1fc; padding: 20px 22px;
}
.dash-hero::after {
  content: ""; position: absolute; right: -60px; bottom: -120px; width: 300px; height: 300px;
  border: 1px solid rgba(255, 255, 255, .07); border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(255, 255, 255, .015);
}
.dash-hero h1 { font-size: 20px; font-weight: 650; letter-spacing: .3px; }
.dash-hero p { margin-top: 6px; font-size: 12.5px; color: rgba(219, 227, 240, .66); max-width: 640px; }
.dash-hero-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; position: relative; z-index: 1; }
.hero-meta { display: flex; flex-direction: column; gap: 2px; }
.hero-meta span { font-size: 10.5px; color: rgba(219, 227, 240, .5); letter-spacing: .3px; }
.hero-meta strong { font-size: 13px; font-weight: 600; color: #eaf1fc; }

.bar-list { display: flex; flex-direction: column; gap: 13px; }
.bar-row { display: grid; grid-template-columns: 128px 1fr 54px; align-items: center; gap: 10px; }
.bar-label { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.bar-track { height: 8px; border-radius: 999px; background: #eef2f8; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #4b84f4, #2f6fed); min-width: 3px; }
.bar-fill.ok { background: linear-gradient(90deg, #2bc79b, #0f8f63); }
.bar-fill.warn { background: linear-gradient(90deg, #f0b45b, #d18a1c); }
.bar-fill.err { background: linear-gradient(90deg, #ee7f97, #c22a4a); }
.bar-fill.teal { background: linear-gradient(90deg, #37c7b5, #12a594); }
.bar-val { font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.quick {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); cursor: pointer; text-align: left;
  transition: border-color .15s, box-shadow .15s, transform .08s;
  text-decoration: none; color: inherit;
}
.quick:hover {
  border-color: #bfd0f5; box-shadow: var(--shadow); transform: translateY(-1px);
  text-decoration: none;
}
.quick-ico {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px;
  display: grid; place-items: center; font-size: 17px;
  background: var(--brand-soft); color: var(--brand);
}
.quick.teal .quick-ico { background: var(--teal-soft); color: #0a7d70; }
.quick.warn .quick-ico { background: var(--warn-soft); color: var(--warn); }
.quick.purple .quick-ico { background: #f0ebff; color: #6a4bd0; }
.quick strong { display: block; font-size: 13px; font-weight: 600; }
.quick span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }

.mini-list { display: flex; flex-direction: column; }
.mini-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.mini-item:last-child { border-bottom: 0; }
.mini-item strong { font-size: 12.5px; font-weight: 550; }
.mini-item .sub { font-size: 11px; color: var(--muted); margin-top: 1px; }

/* ------------------------------------------------------------ 知识文档 */
.docs-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.tree-card { position: sticky; top: 0; }
.tree { padding: 8px; max-height: calc(100vh - 300px); overflow-y: auto; }
.tree-node {
  display: flex; align-items: center; gap: 7px; width: 100%;
  padding: 7px 9px; border: 0; border-radius: 7px; background: transparent;
  color: var(--ink-2); font-size: 12.5px; text-align: left; cursor: pointer;
  line-height: 1.35;
}
.tree-node:hover { background: #f3f6fc; }
.tree-node.active { background: var(--brand-soft); color: #1d4fb8; font-weight: 600; }
.tree-node .tree-ico { font-size: 13px; opacity: .55; width: 15px; flex: 0 0 15px; text-align: center; }
.tree-node .tree-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-node .tree-count { font-size: 10.5px; color: var(--muted-2); }
.tree-children { margin-left: 13px; border-left: 1px dashed var(--line); padding-left: 3px; }

.doc-title-btn {
  border: 0; background: transparent; padding: 0; color: var(--brand);
  font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; line-height: 1.45;
}
.doc-title-btn:hover { text-decoration: underline; }

.doc-detail-head { padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.doc-detail-head h3 { font-size: 17px; line-height: 1.45; font-weight: 650; padding-right: 8px; }
.doc-detail-head .meta { margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; }
.doc-meta-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px; margin-bottom: 20px;
}
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-item span { font-size: 10.5px; color: var(--muted); letter-spacing: .3px; }
.meta-item strong { font-size: 12.5px; font-weight: 550; color: var(--ink-2); word-break: break-all; }
.section-title {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 20px 0 10px; font-size: 12px; font-weight: 650; color: var(--ink-2);
  letter-spacing: .4px; text-transform: uppercase;
}
.doc-body {
  padding: 14px 15px; border-radius: 10px; background: #fafbfd;
  border: 1px solid var(--line); font-size: 13px; line-height: 1.9;
  color: var(--ink-2); white-space: pre-wrap; word-break: break-word;
}
.attach-list { display: flex; flex-direction: column; gap: 8px; }
.attach-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff;
}
.attach-item .grow { min-width: 0; }
.attach-item .name { font-size: 12.5px; font-weight: 550; word-break: break-all; }
.attach-item .sub { font-size: 11px; color: var(--muted); margin-top: 1px; }

/* ------------------------------------------------------------ 统计条 */
.stat-strip {
  display: flex; gap: 0; flex-wrap: wrap; border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}
.stat-cell {
  flex: 1 1 120px; padding: 10px 16px; border-right: 1px dashed var(--line); min-width: 110px;
}
.stat-cell:last-child { border-right: 0; }
.stat-cell span { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: .3px; }
.stat-cell strong { display: block; margin-top: 2px; font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ 建模 / 数据资源 */
.split-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.side-list { padding: 8px; max-height: calc(100vh - 260px); overflow-y: auto; }
.side-item {
  display: block; width: 100%; text-align: left; padding: 9px 10px;
  border: 1px solid transparent; border-radius: 8px; background: transparent;
  cursor: pointer; margin-bottom: 3px; color: inherit;
}
.side-item:hover { background: #f5f8fd; }
.side-item.active { background: var(--brand-soft); border-color: #cddcff; }
.side-item strong { display: block; font-size: 12.5px; font-weight: 600; }
.side-item span { display: block; font-size: 10.5px; color: var(--muted); font-family: var(--mono); margin-top: 2px; }

.detail-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.detail-head h2 { font-size: 15.5px; font-weight: 650; }
.detail-head .sub { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.meta-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.meta-chip {
  font-size: 10.5px; color: var(--muted); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px;
}
.meta-chip b { color: var(--ink-2); font-weight: 600; }

.col-picker { position: relative; }
.col-picker summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 11px; border: 1px solid var(--line-strong);
  border-radius: 8px; background: #fff; font-size: 12.5px; color: var(--ink-2);
  user-select: none;
}
.col-picker summary::-webkit-details-marker { display: none; }
.col-picker summary::after { content: "▾"; font-size: 10px; color: var(--muted); }
.col-picker[open] summary { border-color: var(--brand); color: var(--brand); }
.col-panel {
  position: absolute; z-index: 30; top: 40px; right: 0; width: 300px;
  max-height: 340px; overflow-y: auto; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-lg);
}
.col-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 2px 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px;
  font-size: 11.5px; color: var(--muted);
}
.col-check {
  display: flex; align-items: center; gap: 8px; padding: 5px 6px;
  border-radius: 6px; font-size: 12px; cursor: pointer;
}
.col-check:hover { background: #f6f9fe; }
.col-check input { width: 14px; height: 14px; accent-color: var(--brand); }
.col-check .code { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); }

.export-note {
  font-size: 11.5px; color: var(--muted); padding: 8px 16px;
  background: #fbfcfe; border-top: 1px dashed var(--line);
}

/* ------------------------------------------------------------ 导出中心 / 系统 */
.form-grid { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 12px; align-items: end; }
.form-grid .field { margin-top: 0; }
.form-grid .field label { margin-bottom: 5px; }
.form-actions { display: flex; gap: 8px; align-items: center; }

.sys-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kv-list { display: flex; flex-direction: column; }
.kv-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px;
}
.kv-row:last-child { border-bottom: 0; }
.kv-row .k { color: var(--muted); white-space: nowrap; }
.kv-row .v { color: var(--ink-2); text-align: right; word-break: break-all; font-weight: 550; }
.kv-row .v.mono { font-weight: 400; }

.code-table { font-size: 12px; }
.code-table td:first-child { font-family: var(--mono); font-size: 11.5px; color: #24509e; white-space: nowrap; }

.token-box {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-radius: 10px; background: #0f1a2c; color: #dbe7fb;
  font-family: var(--mono); font-size: 12px; word-break: break-all;
}
.token-box .tok-label { color: #7f93b5; font-family: var(--sans); font-size: 11px; flex: 0 0 auto; }

.warn-note {
  display: flex; gap: 8px; padding: 9px 11px; border-radius: 8px;
  background: var(--warn-soft); border: 1px solid #f0dab5; color: #7d4a00;
  font-size: 11.5px; line-height: 1.6;
}
.info-note {
  display: flex; gap: 8px; padding: 9px 11px; border-radius: 8px;
  background: var(--info-soft); border: 1px solid #cddcff; color: #24509e;
  font-size: 11.5px; line-height: 1.6;
}

/* ------------------------------------------------------------ 抽屉 */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(10, 19, 34, .38);
  backdrop-filter: blur(1.5px); z-index: 50;
  animation: fade-in .18s ease-out;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 580px; max-width: 94vw;
  background: var(--panel); z-index: 51; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); animation: slide-in .22s cubic-bezier(.22, .8, .3, 1);
}
.drawer-head {
  flex: 0 0 auto; display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-size: 15.5px; font-weight: 650; line-height: 1.45; }
.drawer-head p { margin-top: 3px; font-size: 11.5px; }
.drawer-body { flex: 1 1 auto; overflow-y: auto; padding: 18px; }

@keyframes fade-in { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(26px); opacity: .4; } }

/* ------------------------------------------------------------ Toast */
.toasts {
  position: fixed; right: 20px; bottom: 22px; z-index: 80;
  display: flex; flex-direction: column; gap: 8px; max-width: 380px;
  pointer-events: none;
}
.toast {
  pointer-events: auto; display: flex; align-items: flex-start; gap: 9px;
  padding: 10px 13px; border-radius: 9px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 12.5px; line-height: 1.55; color: var(--ink-2);
  animation: toast-in .2s ease-out;
}
.toast .t-ico { flex: 0 0 auto; font-size: 13px; margin-top: 1px; }
.toast.ok { border-left: 3px solid var(--ok); }
.toast.ok .t-ico { color: var(--ok); }
.toast.err { border-left: 3px solid var(--err); }
.toast.err .t-ico { color: var(--err); }
.toast.warn { border-left: 3px solid #d18a1c; }
.toast.warn .t-ico { color: #d18a1c; }
.toast.info { border-left: 3px solid var(--brand); }
.toast.info .t-ico { color: var(--brand); }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

/* ------------------------------------------------------------ 响应式 */
@media (max-width: 1280px) {
  .grid-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1120px) {
  .sidebar { width: 68px; flex-basis: 68px; }
  .brand-side { padding: 0; justify-content: center; }
  .brand-side .brand-text { display: none; }
  .nav-group-title { height: 8px; overflow: hidden; padding: 0; color: transparent; }
  .nav-item { justify-content: center; padding: 0; }
  .nav-label { display: none; }
  .nav-item.active::before { left: -10px; }
  .side-foot { justify-content: center; padding: 0; }
  .side-foot-text { display: none; }
  .docs-layout { grid-template-columns: 216px minmax(0, 1fr); }
  .split-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .crumb-sub { display: none; }
  .grid-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .only-narrow { display: grid; }
  .topbar { padding: 0 14px; }
  .view { padding: 16px 14px 36px; }
  .restrict-banner { margin: 10px 14px -2px; }
  .user-meta, #session-chip { display: none; }
  .login-aside { display: none; }
  .login-main { flex: 1 1 100%; min-width: 0; padding: 24px 18px; }
  .grid-2, .grid-3, .sys-grid { grid-template-columns: minmax(0, 1fr); }
  .docs-layout, .split-layout { grid-template-columns: minmax(0, 1fr); }
  .tree-card { position: static; }
  .tree { max-height: 220px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .drawer { width: 100%; }
  .quick-grid { grid-template-columns: minmax(0, 1fr); }
  .bar-row { grid-template-columns: 104px 1fr 46px; }
}

/* ------------------------------------------------------------ 数据资源 / 建模 / 通用浏览器 */
.list-card { overflow: hidden; }
.ds-list { max-height: calc(100vh - 300px); overflow-y: auto; padding: 0 8px 8px; }
.ds-item {
  display: flex; gap: 10px; width: 100%; text-align: left; padding: 9px 10px;
  border: 1px solid transparent; border-radius: 9px; background: transparent;
  cursor: pointer; margin-bottom: 3px; color: inherit; line-height: 1.4;
}
.ds-item:hover { background: #f5f8fd; }
.ds-item.active { background: var(--brand-soft); border-color: #cddcff; }
.ds-name { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ds-name > span:first-child {
  font-size: 12.5px; font-weight: 600; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.ds-meta {
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
  font-size: 10.5px; color: var(--muted); margin-top: 3px;
}

.browser-card { overflow: hidden; }
.browser { padding: 16px 18px 0; }
.browser-head {
  display: flex; gap: 12px; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; margin-bottom: 12px;
}
.browser-head h2 { font-size: 15px; font-weight: 650; letter-spacing: .2px; }
.browser-meta { padding: 12px 18px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.browser-meta .kv-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 18px; }
.browser .card-body.flush { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.browser .table-wrap { max-height: calc(100vh - 330px); overflow: auto; }
.browser .card-foot { border-top: 0; padding: 10px 0; margin-top: 4px; }

.filter-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: #fbfcfe; margin-bottom: 12px;
}
.filter-bar .chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.filter-bar .chips .muted { font-size: 11.5px; }

.trunc {
  display: inline-block; max-width: 340px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; vertical-align: bottom;
}
.text-danger { color: var(--err) !important; }

.col-picker { position: relative; }
.col-picker summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  height: 30px; padding: 0 10px; border: 1px solid var(--line-strong);
  border-radius: 8px; background: #fff; font-size: 12px; white-space: nowrap;
}
.col-picker summary::-webkit-details-marker { display: none; }
.col-picker summary::after { content: "▾"; margin-left: 6px; font-size: 10px; color: var(--muted); }
.col-picker[open] summary { border-color: var(--brand); }
.col-picker-body {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px;
  min-width: 280px; max-height: 340px; overflow: auto; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow);
}
.col-check { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 2px; cursor: pointer; }
.col-check input { accent-color: var(--brand); }

.cred-ak {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px; margin-bottom: 8px; border-radius: 9px;
  background: var(--brand-soft); border: 1px solid #cddcff;
}
.cred-ak code { font-size: 12.5px; letter-spacing: .5px; color: #1d4fb8; }

@media (max-width: 1120px) {
  .ds-list { max-height: 320px; }
  .browser .table-wrap { max-height: none; }
}
