/* ==========================================================================
   DesignWatch 控制台样式
   设计取向：浅色、克制、信息密度高但不拥挤 —— 面向需要每天盯盘的 IP 从业者
   ========================================================================== */

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #fafbfd;
  --border: #e5e9f0;
  --border-strong: #d3dae5;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #6b7a90;
  --faint: #94a3b8;

  --brand: #1d4ed8;
  --brand-600: #1e40af;
  --brand-soft: #eef3ff;
  --brand-line: #c7d7fe;

  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --ok: #047857;
  --ok-soft: #ecfdf5;
  --info: #0369a1;
  --info-soft: #f0f9ff;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px -12px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 64px -24px rgba(15, 23, 42, 0.28);

  --sidebar: 232px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; font-size: inherit; }

/* ---------- 启动态 ---------- */
.app-loading { display: grid; place-items: center; min-height: 100vh; }
.boot { text-align: center; color: var(--muted); }
.boot-mark {
  width: 40px; height: 40px; margin: 0 auto 14px; border-radius: 11px;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1); } }
.boot-text { font-size: 13px; letter-spacing: .02em; }

/* ---------- 登录 ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-brand {
  position: relative; padding: 56px 60px; color: #fff; overflow: hidden;
  background: radial-gradient(1200px 500px at 10% 0%, #1e3a8a 0%, #172554 55%, #0b1220 100%);
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-brand::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px; pointer-events: none;
  mask-image: radial-gradient(700px 400px at 30% 30%, #000, transparent);
}
.auth-logo { display: flex; align-items: center; gap: 11px; font-weight: 650; letter-spacing: .01em; }
.auth-logo .mark {
  width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22); display: grid; place-items: center;
}
.auth-headline { position: relative; z-index: 1; margin: 48px 0 0; }
.auth-headline h1 { font-size: 34px; line-height: 1.28; margin: 0 0 16px; font-weight: 640; letter-spacing: -0.01em; }
.auth-headline p { color: #b9c7e4; font-size: 14.5px; max-width: 420px; margin: 0; }
.auth-points { position: relative; z-index: 1; display: grid; gap: 14px; margin-top: 40px; }
.auth-point { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: #cfdaf1; }
.auth-point .dot {
  width: 20px; height: 20px; border-radius: 6px; flex: none; margin-top: 1px;
  background: rgba(96,165,250,.18); border: 1px solid rgba(96,165,250,.42);
  display: grid; place-items: center; font-size: 11px; color: #93c5fd;
}
.auth-foot { font-size: 12px; color: #7d8dad; position: relative; z-index: 1; }

.auth-panel { display: grid; place-items: center; padding: 40px; background: var(--surface); }
.auth-card { width: 100%; max-width: 372px; }
.auth-card h2 { font-size: 21px; margin: 0 0 6px; font-weight: 620; }
.auth-card .sub { color: var(--muted); font-size: 13.5px; margin: 0 0 26px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 550; color: var(--text-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29,78,216,.11);
}
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
/* 号码示例按「国家：号码」成组折行，不要把一个国家拆到两行（如「澳」/「大利亚：202617007」） */
.hint .num-item { white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 15px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: #fff; color: var(--text-2); font-size: 13.5px; font-weight: 550;
  cursor: pointer; transition: .15s; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); border-color: var(--faint); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn-danger { color: var(--danger); border-color: #fecaca; }
.btn-danger:hover { background: var(--danger-soft); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn-lg { padding: 11px 18px; font-size: 14.5px; }

.demo-box {
  margin-top: 22px; padding: 12px 14px; border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm); background: var(--surface-2); font-size: 12.5px; color: var(--muted);
  line-height: 1.7;
}
.demo-box b { color: var(--text-2); font-weight: 600; }
.demo-box code { font-family: var(--mono); font-size: 12px; color: var(--brand-600); }

/* ---------- 主框架 ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }

.sidebar {
  background: #fff; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sb-logo {
  display: flex; align-items: center; gap: 10px; padding: 18px 18px 16px;
  font-weight: 650; font-size: 15px; letter-spacing: -.01em;
}
.sb-logo .mark {
  width: 28px; height: 28px; border-radius: 8px; flex: none; color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6); display: grid; place-items: center;
}
.sb-logo small { display: block; font-size: 10.5px; color: var(--faint); font-weight: 500; letter-spacing: .06em; }

.sb-nav { padding: 6px 10px; flex: 1; overflow-y: auto; }
.sb-group { font-size: 10.5px; letter-spacing: .09em; color: var(--faint); padding: 14px 8px 6px; font-weight: 600; }
.sb-item {
  display: flex; align-items: center; gap: 10px; padding: 8.5px 10px; border-radius: 8px;
  color: var(--text-2); font-size: 13.5px; font-weight: 500; cursor: pointer; margin-bottom: 2px;
  border: 1px solid transparent;
}
.sb-item:hover { background: var(--surface-2); text-decoration: none; }
.sb-item.active { background: var(--brand-soft); color: var(--brand-600); border-color: var(--brand-line); font-weight: 600; }
.sb-item .ico { width: 16px; height: 16px; flex: none; opacity: .85; }
.sb-item .count {
  margin-left: auto; font-size: 11px; padding: 1px 6px; border-radius: 20px;
  background: var(--danger-soft); color: var(--danger); font-weight: 600;
}

.sb-user { border-top: 1px solid var(--border); padding: 12px; }
.sb-user-row { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 8px; }
.sb-user-row:hover { background: var(--surface-2); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-600); font-weight: 650; font-size: 12.5px;
}
.sb-user-name { font-size: 13px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user-role { font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user-row > .grow { min-width: 0; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 60px; background: rgba(255,255,255,.86); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 14px;
  padding: 0 24px; position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 16px; font-weight: 620; margin: 0; letter-spacing: -.01em; }
.topbar .crumb { color: var(--faint); font-size: 12.5px; }
.topbar .spacer { flex: 1; }

.searchbox {
  display: flex; align-items: center; gap: 7px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 9px; padding: 6px 10px; min-width: 240px;
}
.searchbox input { border: 0; background: transparent; outline: none; font-size: 13px; width: 100%; color: var(--text); }
.searchbox svg { color: var(--faint); flex: none; }

.content { padding: 22px 24px 60px; max-width: 1440px; width: 100%; }

/* ---------- 卡片 / 网格 ---------- */
.grid { display: grid; gap: 14px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1180px) { .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 900px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.card-head h3 { font-size: 13.5px; font-weight: 620; margin: 0; }
.card-head .sub { font-size: 12px; color: var(--muted); }
.card-head .spacer { flex: 1; }
.card-body { padding: 16px; }
.card-body.tight { padding: 0; }

.kpi { padding: 16px; }
.kpi .label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 28px; font-weight: 640; letter-spacing: -.02em; margin-top: 6px; line-height: 1.1; }
.kpi .foot { font-size: 11.5px; color: var(--faint); margin-top: 6px; }
.kpi.is-danger .value { color: var(--danger); }
.kpi.is-warn .value { color: var(--warn); }
.kpi.is-ok .value { color: var(--ok); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.tb { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tb thead th {
  text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted);
  padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap;
  background: var(--surface-2);
}
table.tb tbody td { padding: 11px 14px; border-bottom: 1px solid #f1f4f9; vertical-align: middle; }
table.tb tbody tr:hover { background: #fbfcfe; }
table.tb tbody tr:last-child td { border-bottom: 0; }
table.tb .num { font-variant-numeric: tabular-nums; }
table.tb thead th.th-sortable { cursor: pointer; user-select: none; }
table.tb thead th.th-sortable:hover { color: var(--brand); }
.sort-ind { margin-left: 4px; font-size: 11px; color: var(--brand); }
.sort-ind.off { color: #c3ccda; }

/* 可调列宽：table-layout:fixed + 每列一个拖拽手柄 */
table.tb.resizable { table-layout: fixed; }
table.tb.resizable thead th,
table.tb.resizable tbody td { padding-left: 10px; padding-right: 10px; }
table.tb.resizable thead th { position: relative; overflow: hidden; text-overflow: ellipsis; }
table.tb.resizable tbody td { overflow: hidden; text-overflow: ellipsis; }
table.tb.resizable thead th:last-child .th-resizer { display: none; }
/* 勾选列 */
table.tb.resizable .col-sel { text-align: center; padding-left: 4px; padding-right: 4px; }
table.tb.resizable .col-sel input[type='checkbox'] { width: 15px; height: 15px; cursor: pointer; vertical-align: middle; accent-color: var(--brand); }
/* 末列（详情按钮）吸右，横向滚动时始终可见 */
table.tb.resizable thead th:last-child,
table.tb.resizable tbody td:last-child {
  position: sticky; right: 0; padding-left: 8px; padding-right: 8px;
  box-shadow: -8px 0 10px -8px rgba(15, 23, 42, 0.14);
}
table.tb.resizable thead th:last-child { z-index: 4; background: var(--surface-2); }
table.tb.resizable tbody td:last-child { z-index: 1; background: #fff; }
table.tb.resizable tbody tr:hover td:last-child { background: #fbfcfe; }
.th-resizer {
  position: absolute; top: 0; right: 0; width: 9px; height: 100%;
  cursor: col-resize; z-index: 3;
}
.th-resizer::after {
  content: ''; position: absolute; top: 22%; left: 4px; width: 1px; height: 56%;
  background: #dfe5ee; transition: background 0.15s, width 0.15s;
}
table.tb.resizable thead th:hover .th-resizer::after { background: var(--brand); width: 2px; }
body.col-resizing { cursor: col-resize; user-select: none; }
body.col-resizing table.tb.resizable tbody td { pointer-events: none; }
table.tb .mono { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.t-title { font-weight: 600; color: var(--text); }
.t-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.t-link { cursor: pointer; }
.t-link:hover .t-title { color: var(--brand); }

/* ---------- 徽标 ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 20px;
  font-size: 11.5px; font-weight: 550; line-height: 1.6; white-space: nowrap;
  border: 1px solid transparent;
}
.pill-ok { background: var(--ok-soft); color: var(--ok); border-color: #a7f3d0; }
.pill-warn { background: var(--warn-soft); color: var(--warn); border-color: #fde68a; }
.pill-danger { background: var(--danger-soft); color: var(--danger); border-color: #fecaca; }
.pill-muted { background: #f1f5f9; color: var(--muted); border-color: #e2e8f0; }
.pill-info { background: var(--info-soft); color: var(--info); border-color: #bae6fd; }
.pill-brand { background: var(--brand-soft); color: var(--brand-600); border-color: var(--brand-line); }
.pill .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.tag { font-size: 11px; color: var(--muted); background: #f1f5f9; padding: 1px 7px; border-radius: 5px; }

/* ---------- 时间轴 ---------- */
.timeline { position: relative; padding: 4px 0 4px 4px; }
.tl-item { position: relative; padding: 0 0 20px 26px; }
.tl-item::before {
  content: ""; position: absolute; left: 5px; top: 14px; bottom: -2px; width: 1px; background: var(--border);
}
.tl-item:last-child::before { display: none; }
.tl-node {
  position: absolute; left: 0; top: 5px; width: 11px; height: 11px; border-radius: 50%;
  background: #fff; border: 2px solid var(--border-strong);
}
.tl-item.is-change .tl-node { border-color: var(--warn); background: var(--warn-soft); }
.tl-item.is-current .tl-node { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 3px rgba(29,78,216,.14); }
.tl-date { font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.tl-title { font-size: 13.5px; font-weight: 560; margin-top: 1px; }
.tl-item.is-change .tl-title { color: var(--warn); }
.tl-detail { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tl-chip {
  display: inline-block; font-size: 10.5px; padding: 0 6px; border-radius: 4px;
  background: var(--warn-soft); color: var(--warn); border: 1px solid #fde68a; margin-left: 6px;
  vertical-align: 1px; font-weight: 600;
}

/* ---------- 详情布局 ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(370px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .detail-grid { grid-template-columns: 1fr; } }

/* 续展节点：右栏紧凑列表 */
.term-list { display: grid; }
.term { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); }
.term:first-child { border-top: 0; padding-top: 2px; }
.term-main { min-width: 0; }
.term-t { font-size: 13px; font-weight: 600; color: var(--text); }
.term-fee { margin-left: 8px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.term-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }

.kv { display: grid; grid-template-columns: 96px 1fr; gap: 9px 14px; font-size: 13px; }
.kv dt { color: var(--muted); font-size: 12.5px; }
.kv dd { margin: 0; font-weight: 500; color: var(--text); word-break: break-word; }

/* 申请人：详情页内联编辑（官方缺 (71) 时人工兜底） */
.kv-edit-view { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 24px; }
.kv-edit-view .btn { padding: 2px 8px; font-size: 12px; color: var(--muted); }
.kv-edit-view .btn:hover { color: var(--brand); border-color: var(--brand); }
.kv-edit-form { display: grid; gap: 6px; }
/* display:grid/flex 会盖掉 [hidden] 的 UA display:none，这里显式兜住 */
.kv-edit-form[hidden], .kv-edit-view[hidden] { display: none; }
.kv-edit-form input {
  width: 100%; padding: 6px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 12.5px; color: var(--text); background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.kv-edit-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 78, 216, .11); }
.kv-edit-foot { display: flex; align-items: center; gap: 8px; }
.kv-edit-foot .t-sub { margin: 0 auto 0 0; }

/* 备注：详情页内联编辑 */
.note-edit textarea {
  width: 100%; min-height: 56px; resize: vertical; padding: 8px 10px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 12.5px; line-height: 1.6; color: var(--text);
  background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.note-edit textarea::placeholder { color: var(--faint); }
.note-edit textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 78, 216, .11); }
.note-edit-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.note-edit-foot .t-sub { margin-top: 0; margin-right: auto; }

/* 备注列：单行省略，悬停看全文 */
.note-cell { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 无人填备注、但这件案子从没采到过：备注列改说「为什么没采到」。
   用告警色是为了让人一眼看出这不是一句普通备注，而是待办。 */
.note-cell-error { color: var(--danger); }

.hero {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.hero h2 { font-size: 18px; margin: 0 0 4px; font-weight: 640; letter-spacing: -.01em; }
.hero .meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hero .spacer { flex: 1; }

.banner {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--radius-sm);
  font-size: 13px; margin-bottom: 14px; border: 1px solid transparent;
}
.banner-danger { background: var(--danger-soft); color: #991b1b; border-color: #fecaca; }
.banner-warn { background: var(--warn-soft); color: #92400e; border-color: #fde68a; }
.banner-info { background: var(--info-soft); color: #075985; border-color: #bae6fd; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .38); backdrop-filter: blur(2px);
  display: grid; place-items: center; z-index: 100; padding: 24px;
}
.modal {
  width: 100%; max-width: 520px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  max-height: 90vh; display: flex; flex-direction: column; overflow: hidden;
  animation: pop .16s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.99); } }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; }
.modal-head h3 { margin: 0; font-size: 15px; font-weight: 620; }
.modal-head .spacer { flex: 1; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; background: var(--surface-2); }

/* ---------- 提示 ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast {
  background: #0f172a; color: #fff; padding: 10px 15px; border-radius: 9px; font-size: 13px;
  box-shadow: var(--shadow-lg); max-width: 380px; animation: slideIn .2s ease-out;
}
.toast.ok { background: #065f46; }
.toast.err { background: #991b1b; }
@keyframes slideIn { from { opacity: 0; transform: translateY(8px); } }

.empty { padding: 46px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.empty .big { font-size: 15px; color: var(--text-2); font-weight: 550; margin-bottom: 4px; }

.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e9eef5 37%, #f1f5f9 63%);
  background-size: 400% 100%; animation: shimmer 1.2s infinite; border-radius: 6px; height: 14px;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters select, .filters input {
  padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: 8px; font-size: 12.5px;
  background: #fff; color: var(--text); outline: none;
}
.pager { display: flex; align-items: center; gap: 8px; justify-content: flex-end; padding: 12px 16px; flex-wrap: wrap; }
.pager-info { display: flex; align-items: center; gap: 14px; margin-right: auto; padding-left: 4px; }
.pager-size { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.pager-size select {
  padding: 4px 6px; border: 1px solid var(--border-strong); border-radius: 7px;
  font-size: 12.5px; color: var(--text); background: #fff; outline: none; cursor: pointer;
}
.pager-size select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 78, 216, .11); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); padding: 0 16px; }
.tab {
  padding: 10px 12px; font-size: 13px; color: var(--muted); cursor: pointer; font-weight: 550;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab.active { color: var(--brand-600); border-bottom-color: var(--brand); }
.tab:hover { color: var(--text); }

.row-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* 新增监控后回列表页显示的采集进度条 */
.collect-bar { display: flex; align-items: center; gap: 10px; }
.spinner {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 2px solid var(--brand-line); border-top-color: var(--brand);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 14px; } .mt-4 { margin-top: 20px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 14px; }
.flex { display: flex; align-items: center; gap: 8px; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 8px; }
.grow { flex: 1; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -240px; z-index: 50; transition: left .2s; box-shadow: var(--shadow); }
  .sidebar.open { left: 0; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .content { padding: 16px; }
  .topbar { padding: 0 16px; }
  .searchbox { min-width: 0; flex: 1; }
}
