/*
 * rein-admin styles, following the AchieveGo design language (rein-iam/.claude/skills/achievego-frontend-design).
 * The :root block is that skill's tokens.css, verbatim, plus the few project tokens marked "项目扩展" at its end.
 * Component rules reference semantic tokens only: no raw hex, no --ag-*, no one-off rgba. No dark mode (see DESIGN.md §5).
 * Class names are the design system's contract: .button, .badge, .panel, .list-rows / .list-row, .field, .invite-modal,
 * .confirm-modal, .empty, .loading, .toast, .metrics, .tabs. Page-specific additions are grouped at the end.
 */
:root {
  color-scheme: light;

  /* ---- 原始值：不要在组件规则里直接引用 ---- */
  --ag-white: #ffffff;
  --ag-gray-50: #fafafa;
  --ag-gray-100: #f5f5f5;
  --ag-gray-200: #ededed;
  --ag-gray-300: #eaeaea;
  --ag-gray-400: #d4d4d4;
  --ag-gray-500: #a3a3a3;
  --ag-gray-600: #666666;
  --ag-gray-900: #111111;
  --ag-gray-950: #0a0a0a;
  --ag-black: #000000;
  --ag-blue-600: #0070f3;
  --ag-blue-700: #0060df;
  --ag-green-600: #16a34a;
  --ag-green-700: #15803d;
  --ag-amber-500: #f59e0b;
  --ag-amber-700: #b45309;
  --ag-orange-600: #ea580c;
  --ag-orange-700: #c2410c;
  --ag-violet-500: #7c5cff;
  --ag-violet-700: #5b3fd6;
  --ag-font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ag-font-mono: "Geist Mono", "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;

  /* ---- 语义令牌：组件规则只引用这一层 ---- */

  /* 表面 */
  --bg: var(--ag-white);
  --surface: var(--ag-white);
  --surface-subtle: var(--ag-gray-50);
  --surface-2: var(--ag-gray-100);
  --surface-3: var(--ag-gray-200);

  /* 线条 */
  --border: var(--ag-gray-300);
  --border-strong: var(--ag-gray-400);

  /* 文字（灰阶只有三档 + 反色） */
  --text: var(--ag-black);
  --muted: var(--ag-gray-600);
  --subtle: var(--ag-gray-500);
  --text-inverse: var(--ag-white);

  /* 强调色：全站唯一的品牌/交互色 */
  --accent: var(--ag-blue-600);
  --accent-strong: var(--ag-blue-700);
  --accent-wash: color-mix(in srgb, var(--accent) 4%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 10%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 28%, transparent);

  /* 状态色：只表达真实状态，不做装饰、不做分类色 */
  --success: var(--ag-green-600);
  --success-strong: var(--ag-green-700);
  --success-wash: color-mix(in srgb, var(--success) 4%, transparent);
  --success-soft: color-mix(in srgb, var(--success) 10%, transparent);
  --success-line: color-mix(in srgb, var(--success) 28%, transparent);
  --warning: var(--ag-amber-500);
  --warning-strong: var(--ag-amber-700);
  --warning-wash: color-mix(in srgb, var(--warning) 4%, transparent);
  --warning-soft: color-mix(in srgb, var(--warning) 10%, transparent);
  --warning-line: color-mix(in srgb, var(--warning) 28%, transparent);
  --danger: var(--ag-orange-600);
  --danger-strong: var(--ag-orange-700);
  --danger-wash: color-mix(in srgb, var(--danger) 4%, transparent);
  --danger-soft: color-mix(in srgb, var(--danger) 10%, transparent);
  --danger-line: color-mix(in srgb, var(--danger) 28%, transparent);

  /* AI 信号色 */
  --ai: var(--ag-violet-500);
  --ai-strong: var(--ag-violet-700);
  --ai-wash: color-mix(in srgb, var(--ai) 4%, transparent);
  --ai-soft: color-mix(in srgb, var(--ai) 10%, transparent);
  --ai-line: color-mix(in srgb, var(--ai) 28%, transparent);

  /* 固定反色表面：只给 toast、tooltip、登录页用。这不是深色主题。 */
  --invert-bg: var(--ag-gray-900);
  --invert-bg-2: var(--ag-gray-950);
  --invert-line: rgba(255, 255, 255, 0.15);
  --invert-grid: rgba(255, 255, 255, 0.06);
  --invert-muted: rgba(255, 255, 255, 0.64);

  /* 遮罩 */
  --overlay-scrim: rgba(0, 0, 0, 0.48);

  /* 字体 */
  --font: var(--ag-font-sans);
  --mono: var(--ag-font-mono);

  /* 字号阶梯 */
  --fs-2xs: 10px;
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-base: 13px;
  --fs-md: 14px;
  --fs-lg: 16px;
  --fs-xl: 18px;
  --fs-2xl: 20px;
  --fs-3xl: 24px;
  --fs-4xl: 28px;
  --fs-5xl: 32px;

  /* 间距（4px 基准） */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;

  /* 圆角 */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-popover: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-drawer: -12px 0 32px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.26);

  /* 层级 */
  --z-sticky: 100;
  --z-popover: 300;
  --z-drawer-backdrop: 1040;
  --z-drawer: 1050;
  --z-modal: 1100;
  --z-modal-top: 1200;
  --z-screen: 1300;
  --z-floating: 1500;
  --z-tooltip: 2000;

  /* ---- 项目扩展（rein-admin） ---- */
  /* chart series (lib/chart.js): a ramp of the one accent plus grey for "other"; status colours never serve as categories.
     Checked with the dataviz validate_palette.js --ordinal on --surface (#fff): one hue, monotone, adjacent ΔL >= 0.06,
     light end #73b0f8 at 2.26:1; "other" (--subtle) at 2.5:1. Steps this close need the legend and each chart's table view. */
  --series-1: var(--accent);
  --series-2: color-mix(in srgb, var(--accent) 78%, var(--surface));
  --series-3: color-mix(in srgb, var(--accent) 55%, var(--surface));
  --series-other: var(--subtle);
}

/* ---- 全局基线 ---- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { white-space: nowrap; }
h1, h2, h3, p { margin: 0; }

h1 { font-size: var(--fs-5xl); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-md); line-height: 1.25; font-weight: 600; }
h3 { font-size: var(--fs-base); line-height: 1.35; font-weight: 600; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
code { font-family: var(--mono); font-size: 0.92em; }
:is(button, a, summary, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- 小工具类 ---- */
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.mono { font-family: var(--mono); }
.mono-muted { font-family: var(--mono); font-size: var(--fs-sm); color: var(--muted); }
.dot-sep { color: var(--subtle); }
.warning-text { color: var(--warning-strong); }
.danger-text { color: var(--danger); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- 登录屏：在 app-shell 之外，固定反色表面 ---- */
.auth-screen {
  position: fixed; inset: 0; z-index: var(--z-screen);
  display: grid; place-items: center; padding: var(--space-6);
  background-color: var(--invert-bg-2);
  background-image: linear-gradient(var(--invert-grid) 1px, transparent 1px), linear-gradient(90deg, var(--invert-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--text-inverse);
}
.auth-form {
  width: min(380px, 100%); display: grid; gap: var(--space-4);
  padding: 28px; border: 1px solid var(--invert-line); border-radius: var(--radius-md);
  background: var(--invert-bg); box-shadow: var(--shadow-popover);
}
.auth-brand { display: flex; align-items: center; gap: 10px; font-size: var(--fs-base); font-weight: 600; }
.auth-brand .brand-mark { background: var(--text-inverse); color: var(--text); }
.auth-form h1 { font-size: var(--fs-3xl); margin-top: var(--space-2); }
.auth-hint { color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; }
.auth-form .auth-hint { color: var(--invert-muted); margin-top: calc(-1 * var(--space-2)); }
.auth-field { display: grid; gap: 6px; }
.auth-field label { color: var(--invert-muted); }
.auth-field input { background: var(--invert-bg-2); border-color: var(--invert-line); color: var(--text-inverse); }
.auth-field input:focus { border-color: var(--accent); }
.auth-error { color: var(--danger); font-size: var(--fs-sm); line-height: 1.45; }

/* ---- 顶栏 ---- */
.topnav {
  position: sticky; top: 0; z-index: var(--z-sticky);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  height: 56px; padding: 0 20px; border-bottom: 1px solid var(--border); background: var(--surface);
}
.topnav-left, .topnav-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topnav-logo { display: inline-flex; }
.brand-mark {
  display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px;
  border-radius: var(--radius-xs); background: var(--text); color: var(--text-inverse);
  font-size: var(--fs-sm); font-weight: 700; line-height: 1;
}
.topnav-slash { color: var(--border-strong); font-size: var(--fs-2xl); font-weight: 400; }
.topnav-crumb { display: flex; align-items: center; gap: var(--space-2); min-width: 0; font-size: var(--fs-base); font-weight: 500; white-space: nowrap; }
.topnav-user { display: flex; align-items: center; gap: var(--space-2); min-width: 0; font-size: var(--fs-base); }
.topnav-user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topnav-avatar {
  display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px;
  border: 1px solid var(--border); border-radius: 50%; background: var(--surface-2);
  color: var(--muted); font-size: var(--fs-sm); font-weight: 600;
}
.topnav-btn {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--muted); font-size: var(--fs-base); font-weight: 500; cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.topnav-btn:hover { border-color: var(--border-strong); background: var(--surface-2); color: var(--text); }

/* ---- 应用外壳：232px 侧栏 + 主区 ---- */
.app-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: calc(100vh - 56px); }
.sidebar {
  position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto;
  display: flex; flex-direction: column; gap: var(--space-4);
  padding: 18px 14px; border-right: 1px solid var(--border);
}
.nav-list { flex: 1; display: grid; align-content: start; gap: 2px; }
.nav-group {
  padding: var(--space-4) 10px 6px; color: var(--subtle);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.nav-list > .nav-group:first-child { padding-top: 0; }
.nav-item {
  display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px;
  border-radius: var(--radius-sm); color: var(--muted); font-size: var(--fs-base); text-decoration: none;
}
.nav-item svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover, .nav-item.active { background: var(--surface-2); color: var(--text); }
.nav-item.active { font-weight: 600; }
.nav-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-footer { display: grid; gap: 2px; padding: var(--space-3) 10px 0; border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--muted); }
.sidebar-footer strong { color: var(--text); font-weight: 500; }

.main { min-width: 0; padding: 0 28px 34px; }
.topbar { display: flex; flex-direction: column; gap: 6px; margin: 22px 0 20px; }
.topbar-top { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.topbar-heading { display: grid; gap: var(--space-1); min-width: 0; }
.topbar-heading h1 { overflow-wrap: anywhere; }
.topbar-actions { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.topbar-actions input[type="search"] { width: 220px; }
.topbar-actions select { width: auto; min-width: 120px; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.page-subtitle { max-width: 860px; color: var(--muted); font-size: var(--fs-base); line-height: 1.55; }

/* 每个页面一个 section；页内区块之间统一 16px */
.page { display: grid; gap: var(--space-4); align-content: start; }
.page section { display: grid; gap: var(--space-4); align-content: start; min-width: 0; }
/* grid items default to min-width: auto; a single-line meta row would otherwise widen the page past the screen */
:is(.page, .page section) > * { min-width: 0; }

/* ---- 面板 ---- */
.panel { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-body { padding: 14px; }
.panel-header {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  min-height: 58px; padding: var(--space-4) 18px; border-bottom: 1px solid var(--border);
  background: var(--surface); flex-wrap: wrap;
}
/* a heading block (h2, optional back button above and description below) stacks; other header content stays inline */
.panel-header > div:first-child:not(.panel-title):has(> h2, > .panel-title) { display: grid; gap: var(--space-1); min-width: 0; }
/* it takes the room left of the actions, so a long description wraps inside it instead of pushing the actions below */
.panel-header > div:first-child:not(.panel-title):has(> h2, > .panel-title):not(:only-child) { flex: 1 1 320px; }
.panel-header > div:first-child > .button { justify-self: start; margin-bottom: var(--space-1); }
.panel-header p, .section-subtitle { color: var(--muted); font-size: var(--fs-sm); line-height: 1.45; }
.panel-actions { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.panel-actions select { width: auto; min-width: 120px; }
.panel-actions input[type="search"] { width: 200px; }
.panel-title { display: flex; align-items: center; gap: var(--space-2); }
.danger-zone { border-color: var(--danger-line); background: var(--danger-wash); }
/* a state block (loading / empty / error) inside a panel fills it, without a second frame */
.panel :is(.loading, .empty) { border: 0; border-radius: 0; }

/* ---- 分隔线列表：全站唯一的列表形态 ---- */
.list-rows { display: flex; flex-direction: column; }
.list-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: 12px 20px; min-height: 60px; border-bottom: 1px solid var(--border);
}
.list-rows > .list-row:last-child { border-bottom: none; }
.list-row[role="button"] { cursor: pointer; }
.list-row[role="button"]:hover { background: var(--surface-subtle); }
.list-row-main { flex: 1; min-width: 0; }
.list-row-title {
  display: flex; align-items: center; gap: var(--space-2); min-width: 0;
  font-size: var(--fs-md); font-weight: 400; margin-bottom: var(--space-1);
}
.list-row-title > strong { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; }
.list-row-title > :is(.badge, .mono-muted) { flex-shrink: 0; }
.list-row-meta {
  display: flex; align-items: center; gap: 6px; min-width: 0;
  flex-wrap: nowrap; overflow: hidden; white-space: nowrap;
  font-size: var(--fs-sm); color: var(--muted);
}
.list-row-meta > span { flex-shrink: 0; }
.list-row-meta > span:last-child { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.list-row-actions { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
.list-row-actions .button.ghost { color: var(--muted); font-weight: 500; border-color: transparent; padding: 4px 10px; }
.list-row-actions .button.ghost:hover { color: var(--text); background: var(--surface-2); }

/* 分组 */
.account-group { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.account-group > .account-group-head { padding: 10px 14px; }
.account-group > .list-rows { border-top: 1px solid var(--border); }
.account-group + .account-group { margin-top: var(--space-3); }
.account-group-head { display: flex; align-items: center; gap: var(--space-2); cursor: pointer; list-style: none; user-select: none; padding: 4px 0; }
.account-group-head::-webkit-details-marker { display: none; }
.account-group-head::before { content: "▸"; font-size: var(--fs-xs); color: var(--muted); transition: transform .15s ease; }
.account-group[open] > .account-group-head::before { transform: rotate(90deg); }
.account-group-head h3 { font-size: var(--fs-base); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* 分页 */
.list-pagination {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: 12px 20px; border-top: 1px solid var(--border); font-size: var(--fs-base); color: var(--muted);
}
.list-pagination-info { font-variant-numeric: tabular-nums; }
.list-pagination-buttons { display: flex; gap: var(--space-2); }

/* ---- 表格：只给真正多列的数据 ---- */
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); overflow: auto; }
.panel .table-wrap { border: 0; border-radius: 0; }
.data-table { width: 100%; border-collapse: collapse; min-width: 880px; font-size: var(--fs-base); }
.data-table th, .data-table td { border-bottom: 1px solid var(--border); padding: 10px; text-align: left; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table th { color: var(--muted); background: var(--bg); font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; }
.data-table th:first-child, .data-table td:first-child { padding-left: 20px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 20px; }
.data-table tr.selected td { background: var(--surface-2); }
.data-table tbody tr:hover td { background: var(--surface-subtle); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table .nowrap { white-space: nowrap; }
.data-table th button { all: unset; display: inline-flex; align-items: center; gap: var(--space-1); cursor: pointer; }
.data-table th button:hover, .data-table th[aria-sort] button { color: var(--text); }
.data-table th button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-xs); }

/* ---- 按钮：只有 .button + 修饰符 ---- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  flex: 0 0 auto; max-width: 100%; min-height: 32px; padding: 0 var(--space-4);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font-size: var(--fs-base); font-weight: 500; cursor: pointer; text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.button:hover { border-color: var(--border-strong); background: var(--surface-2); color: var(--text); }
.button.primary { border-color: var(--accent); background: var(--accent); color: var(--text-inverse); }
.button.primary:hover { border-color: var(--accent-strong); background: var(--accent-strong); }
.button.secondary { background: var(--surface); }
.button.success { border-color: var(--success-line); background: var(--success-soft); color: var(--success); }
.button.warning { border-color: var(--warning-line); background: var(--warning-soft); color: var(--warning-strong); }
.button.danger { border-color: var(--danger-line); background: var(--danger-soft); color: var(--danger); }
.button.ghost { background: transparent; border-color: var(--border); color: var(--muted); }
.button.ghost:hover { color: var(--text); }
.button.subtle { background: transparent; border-color: transparent; color: var(--muted); }
.button.small { min-height: 0; padding: 4px 10px; font-size: var(--fs-sm); }
.button.full { width: 100%; }
.button:disabled { cursor: not-allowed; opacity: .48; color: var(--subtle); border-color: var(--border); background: var(--surface-2); }
.button.is-loading::before {
  content: ""; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: spin .8s linear infinite;
}
.icon-button {
  display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent;
  color: var(--muted); font-size: var(--fs-md); cursor: pointer;
}
.icon-button:hover { background: var(--surface-2); color: var(--text); }

/* ---- 徽章 ---- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--muted); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.badge.success { border-color: var(--success-line); background: var(--success-soft); color: var(--success); }
.badge.warning { border-color: var(--warning-line); background: var(--warning-soft); color: var(--warning-strong); }
.badge.danger { border-color: var(--danger-line); background: var(--danger-soft); color: var(--danger); }
.badge.ai { border-color: var(--ai-line); background: var(--ai-soft); color: var(--ai-strong); }

/* ---- 表单 ---- */
input, select, textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); outline: none;
}
input, select { height: 32px; padding: 0 12px; font-size: var(--fs-base); }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; padding: 0; accent-color: var(--accent); }
select {
  appearance: none; padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
textarea { min-height: 82px; padding: 10px; line-height: 1.45; resize: vertical; font-size: var(--fs-base); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: none; }
input::placeholder, textarea::placeholder { color: var(--subtle); }
label { color: var(--muted); font-size: var(--fs-sm); }
/* align-content: start keeps side-by-side fields' inputs level when one hint runs to two lines */
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field.inline { grid-template-columns: auto minmax(160px, 220px); align-items: center; gap: 10px; }
.field-hint { color: var(--subtle); font-size: var(--fs-xs); line-height: 1.45; }
.field-hint strong { color: var(--muted); font-weight: 600; }
.form-grid { display: grid; gap: 10px; }
.form-grid > h3 { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--border); }
.form-narrow { max-width: 640px; }
.form-stack { display: grid; gap: var(--space-3); align-content: start; }
.form-row { display: grid; gap: var(--space-3); }
.form-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-row.compact { gap: var(--space-2); }
.form-actions { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-2); }
.check-field { display: flex; align-items: center; gap: var(--space-2); min-height: 36px; color: var(--text); font-size: var(--fs-base); cursor: pointer; }

/* ---- 标签页（与 .button 共用基础样式） ---- */
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.tab {
  display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 12px;
  border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent;
  color: var(--muted); font-size: var(--fs-base); font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.tab:hover { background: var(--surface-2); color: var(--text); }
.tab.active { border-color: var(--border); background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.tabs.small .tab { min-height: 0; padding: 4px 10px; font-size: var(--fs-sm); }

/* ---- 指标、键值对、进度条 ---- */
.metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-3); }
.metric {
  min-height: 80px; min-width: 0; display: flex; flex-direction: column; gap: 6px;
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); padding: var(--space-4) var(--space-5);
}
.metric:hover { border-color: var(--border-strong); }
.metric span { font-size: var(--fs-sm); font-weight: 500; color: var(--muted); }
.metric strong { font-size: var(--fs-4xl); font-weight: 600; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric-foot { display: flex; flex-wrap: wrap; gap: 2px var(--space-2); color: var(--muted); font-size: var(--fs-sm); line-height: 1.45; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--space-4) 10px; }
.kv { display: grid; gap: var(--space-1); align-content: start; min-width: 0; }
.kv span { font-size: var(--fs-sm); color: var(--muted); }
.kv strong { font-size: var(--fs-base); font-weight: 500; overflow-wrap: anywhere; }
.progress-track { height: 8px; border-radius: var(--radius-pill); background: var(--surface-3); overflow: hidden; }
.progress-fill { display: block; height: 100%; border-radius: var(--radius-pill); background: var(--accent); }
.progress-fill.success { background: var(--success); }
.progress-fill.auto { background: var(--ai); }

/* ---- 状态反馈 ---- */
.empty {
  min-height: 96px; display: grid; place-items: center; align-content: center; gap: var(--space-2);
  border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
  color: var(--subtle); font-size: var(--fs-base); text-align: center; padding: 12px;
}
.loading {
  min-height: 96px; display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-2);
  color: var(--muted); font-size: var(--fs-base); padding: 12px;
}
.loading-spinner { width: 16px; height: 16px; border: 2px solid var(--border-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* refetching: what is on screen stays, dimmed, until its replacement arrives */
.busy { opacity: .48; transition: opacity 140ms ease; }

.toast {
  position: fixed; right: 18px; bottom: 18px; z-index: var(--z-floating); max-width: min(420px, calc(100vw - 36px));
  padding: 11px 13px; border: 1px solid var(--invert-line); border-radius: var(--radius-md);
  background: var(--invert-bg); color: var(--text-inverse); box-shadow: var(--shadow-md); font-size: var(--fs-base);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.toast.visible { opacity: 1; transform: translateY(0); }

/* ---- 居中弹窗 ---- */
.invite-modal {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-6); background: var(--overlay-scrim);
}
.invite-modal-card {
  width: 100%; max-width: 460px; max-height: calc(100vh - 48px); overflow: auto;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface); box-shadow: var(--shadow-md);
  padding: var(--space-6); display: grid; gap: var(--space-3);
}
.invite-modal-card h2 { margin: 0; }
.invite-modal-card form { display: grid; gap: var(--space-3); }
.invite-field { display: grid; gap: var(--space-1); }
.invite-field label { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.rubric-modal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: 2px; }
.rubric-modal-head h2 { margin: 0; font-size: var(--fs-xl); }
.wide-modal-card { max-width: min(1120px, calc(100vw - 48px)); }

/* ---- 确认对话框 ---- */
.confirm-modal {
  position: fixed; inset: 0; z-index: var(--z-modal-top);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-6); background: var(--overlay-scrim);
}
.confirm-card {
  width: min(560px, calc(100vw - 32px));
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--space-4);
  border: 1px solid var(--border); border-top: 4px solid var(--warning);
  border-radius: var(--radius-lg); background: var(--surface);
  box-shadow: var(--shadow-lg); padding: 22px;
}
.confirm-modal.danger .confirm-card { border-top-color: var(--danger); }
.confirm-icon {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border: 1px solid var(--warning-line); border-radius: var(--radius-lg);
  background: var(--warning-soft); color: var(--warning); font-weight: 700; font-size: var(--fs-3xl);
}
.confirm-modal.danger .confirm-icon { border-color: var(--danger-line); background: var(--danger-soft); color: var(--danger); }
.confirm-content { display: grid; gap: 10px; min-width: 0; }
.confirm-eyebrow { color: var(--muted); font-family: var(--mono); font-size: var(--fs-sm); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.confirm-card h2 { font-size: var(--fs-3xl); line-height: 1.2; }
.confirm-content #confirmDescription { display: grid; gap: 6px; color: var(--muted); font-size: var(--fs-base); line-height: 1.55; }
.confirm-check { display: grid; gap: 6px; border: 1px solid var(--danger-line); border-radius: var(--radius-lg); background: var(--danger-wash); padding: 12px; }
.confirm-check input { border-color: var(--danger-line); font-family: var(--mono); }
.confirm-hint { color: var(--subtle); font-size: var(--fs-xs); }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: var(--space-1); }
.confirm-actions .button { min-width: 112px; }

/* ================= 页面专用（rein-admin） ================= */

/* 脚手架页：规划功能与接口 */
.plan-list { display: grid; gap: 6px; margin: 0; padding-left: 20px; font-size: var(--fs-base); line-height: 1.55; }
.plan-list li::marker { color: var(--subtle); }
.endpoint-path { font-family: var(--mono); font-weight: 500; }
.endpoint-path .base { color: var(--muted); font-weight: 400; }

/* 权限检查器 */
.checker-result { display: flex; align-items: center; min-height: 32px; }

/* Token 消耗：时间窗、指标卡与图表 */
.usage-window { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin-bottom: var(--space-2); font-size: var(--fs-base); }
.usage-window strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.usage-window + div + .field-hint { margin-top: var(--space-2); }
/* money with up to 4 decimals at --fs-4xl needs wider tiles than the default 160px */
[data-kpis] .metrics { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.delta, .metric .delta { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table strong { font-weight: 600; }
.share { display: inline-flex; align-items: center; justify-content: flex-end; gap: var(--space-2); }
.share .progress-track { flex: none; width: 48px; height: 6px; }
.data-table td.rid .mono-muted { display: inline-block; max-width: 10em; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.chart { position: relative; }
.chart-plot { min-height: 232px; }
.chart svg, .timeline svg { display: block; overflow: visible; }
.chart .grid { stroke: var(--border); shape-rendering: crispEdges; }
:is(.chart, .timeline) .axis-line { stroke: var(--border-strong); shape-rendering: crispEdges; }
:is(.chart, .timeline) .tick { fill: var(--muted); font-family: var(--font); font-size: var(--fs-2xs); font-variant-numeric: tabular-nums; }
.chart .bar { stroke: var(--surface); stroke-width: 2px; paint-order: stroke; }
.chart .cols.hovering .col:not(.on) { opacity: .45; }
.chart .hit { fill: transparent; }
.chart .empty-note { fill: var(--subtle); font-size: var(--fs-base); }
.chart-tip {
  position: absolute; z-index: 2; min-width: 150px; padding: var(--space-2) 10px;
  border: 1px solid var(--invert-line); border-radius: var(--radius-sm); background: var(--invert-bg);
  box-shadow: var(--shadow-popover); color: var(--text-inverse); font-size: var(--fs-sm); line-height: 1.6;
  white-space: nowrap; pointer-events: none;
}
.chart-tip .tip-title { color: var(--invert-muted); font-size: var(--fs-xs); }
.chart-tip .tip-row { display: flex; align-items: center; gap: 6px; }
.chart-tip .tip-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-tip .tip-row span { color: var(--invert-muted); }
.chart-tip .tip-foot { margin-top: 2px; padding-top: 2px; border-top: 1px solid var(--invert-line); color: var(--invert-muted); }
.chart-tip .key, .legend .sw { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); margin-top: var(--space-2); color: var(--muted); font-size: var(--fs-sm); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.timeline svg { cursor: crosshair; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.tl-area { fill: var(--accent-soft); }
.tl-line { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; }
.tl-mask { fill: var(--surface); fill-opacity: .72; pointer-events: none; }
.tl-win { fill: var(--accent-wash); stroke: var(--accent); stroke-width: 1; cursor: grab; }
.tl-win:focus-visible { outline: none; stroke-width: 2; }
.tl-handle { fill: var(--surface); stroke: var(--accent); stroke-width: 1.5; pointer-events: none; }
.tl-grip { fill: transparent; cursor: ew-resize; }

/* 插件管理、租户插件（列表、租户详情与发布）、Skill / MCP 版本（lib/versioning-ui.js、pages/tenant-plugins/、pages/{plugins,skills,mcp}.js） */
/* 可展开行（components.md「可展开行」） */
.list-row-expandable { border-bottom: 1px solid var(--border); }
.list-row-expandable:last-child { border-bottom: none; }
.list-row-expandable > summary { list-style: none; cursor: pointer; }
.list-row-expandable > summary::-webkit-details-marker { display: none; }
.list-row-expandable > summary.list-row { border-bottom: none; }
.list-row-expandable[open] > summary.list-row { background: var(--surface-2); }
.list-row-chevron { flex-shrink: 0; color: var(--muted); font-size: var(--fs-xs); transition: transform .15s ease; }
.list-row-expandable[open] .list-row-chevron { transform: rotate(90deg); }
.list-row-detail { display: grid; gap: var(--space-3); padding: var(--space-1) 20px var(--space-4); min-width: 0; }
.list-row-detail h3 { font-size: var(--fs-base); font-weight: 600; }
/* 提示条：出错、警告、结果 */
.notice {
  display: grid; gap: 6px; padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-subtle);
  color: var(--text); font-size: var(--fs-base); line-height: 1.5; min-width: 0; overflow-wrap: anywhere;
}
.notice.success { border-color: var(--success-line); background: var(--success-wash); }
.notice.warning { border-color: var(--warning-line); background: var(--warning-wash); }
.notice.danger { border-color: var(--danger-line); background: var(--danger-wash); }
.notice.danger > p:first-of-type, .notice.danger > strong { color: var(--danger-strong); }
.notice ul { margin: 0; padding-left: 18px; }
.panel-body > .notice + .notice, .panel-body > .notice + *, .panel-body > * + .notice { margin-top: var(--space-2); }
.issue-list { display: grid; gap: 6px; margin: 0; padding-left: 18px; font-size: var(--fs-sm); line-height: 1.5; }
.issue-list li { overflow-wrap: anywhere; }
.issue-list .badge { min-height: 20px; padding: 0 var(--space-2); font-size: var(--fs-xs); }
.issue-target { font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); }
.issue-group { display: grid; gap: var(--space-2); }
.issue-group + .issue-group { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--border); }
.issue-group h3 { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-base); font-weight: 500; }
/* 表格里的操作列、长文本、表格内控件 */
.data-table .row-actions { display: flex; justify-content: flex-end; gap: var(--space-1); flex-wrap: wrap; }
.data-table td.wrap { white-space: normal; overflow-wrap: anywhere; min-width: 160px; }
.data-table.compact { min-width: 0; }
.data-table select { width: auto; min-width: 200px; max-width: 360px; }
.data-table td .field-hint { margin-top: 2px; }
.panel .table-wrap + .panel-body { border-top: 1px solid var(--border); }
/* 代码块、JSON 编辑器、目录上传 */
.code-block {
  margin: 0; padding: var(--space-3) var(--space-4); overflow: auto; max-height: 420px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-subtle);
  font-family: var(--mono); font-size: var(--fs-sm); line-height: 1.55; white-space: pre; color: var(--text);
}
textarea.code-editor { min-height: 240px; font-family: var(--mono); font-size: var(--fs-sm); line-height: 1.55; white-space: pre; tab-size: 2; }
.live-problems:empty { display: none; }
.file-pick input[type="file"] { height: auto; padding: 6px; }
.file-list { max-height: 240px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.file-list .data-table { min-width: 0; }
.file-list .data-table th { position: sticky; top: 0; z-index: 1; }
/* 统一 diff 视图 */
.diff-view { overflow: auto; max-height: 560px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.diff-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: var(--fs-sm); line-height: 1.5; }
.diff-table td { padding: 0 var(--space-2); vertical-align: top; }
.diff-no { width: 1%; min-width: 40px; color: var(--subtle); text-align: right; user-select: none; -webkit-user-select: none; border-right: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.diff-code { white-space: pre-wrap; overflow-wrap: anywhere; }
.diff-sign { display: inline-block; width: 1.2em; color: var(--subtle); user-select: none; -webkit-user-select: none; }
.diff-add td { background: var(--success-wash); }
.diff-add .diff-code, .diff-add .diff-sign { color: var(--success-strong); }
.diff-del td { background: var(--danger-wash); }
.diff-del .diff-code, .diff-del .diff-sign { color: var(--danger-strong); }
.diff-hunk td { background: var(--accent-wash); color: var(--muted); }
.diff-note td { color: var(--subtle); }
.diff-stat { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.diff-stat-add { color: var(--success-strong); }
.diff-stat-del { color: var(--danger-strong); }
/* 对比条：两个版本 + 按钮 */
.compare-bar { display: flex; align-items: flex-end; gap: var(--space-3); flex-wrap: wrap; }
.compare-bar .field { min-width: 160px; }
.compare-bar select { width: auto; min-width: 160px; }
/* a metaHtml() line outside list rows: same separators, wrapping */
.meta-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: var(--fs-sm); color: var(--muted); }
fieldset.plain-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-actions .spacer { flex: 1; }
/* 同步命令 */
.cmd-box { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.cmd-box code { flex: 1 1 320px; min-width: 0; padding: 6px var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-subtle); font-family: var(--mono); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.step-list { display: grid; gap: 6px; margin: 0; padding-left: 20px; font-size: var(--fs-base); line-height: 1.55; }
.step-list code, .notice code, .panel-header p code { font-family: var(--mono); font-size: var(--fs-sm); }

/* 插槽覆盖（插件管理、WebUI、租户插件）：每个插槽一个小标签 */
.slot-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
.slot-chips .badge { min-height: 20px; padding: 0 var(--space-2); font-size: var(--fs-xs); }
.kv .slot-chips { font-weight: 400; }

/* ---- 响应式：820px 多栏塌单栏，640px 顶栏收窄 ---- */
@media (max-width: 820px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .sidebar {
    position: sticky; top: 56px; z-index: var(--z-sticky); height: auto; overflow-x: auto;
    flex-direction: row; padding: var(--space-2) var(--space-3); border-right: 0; border-bottom: 1px solid var(--border); background: var(--surface);
  }
  .nav-list { display: flex; gap: var(--space-1); }
  .nav-group, .sidebar-footer { display: none; }
  .nav-item { flex: none; min-height: 32px; }
  .main { padding: 0 var(--space-4) var(--space-6); }
  .list-row { flex-direction: column; align-items: stretch; gap: var(--space-2); }
  .list-row-actions { justify-content: flex-end; flex-wrap: wrap; }
  .form-row.two, .form-row.three { grid-template-columns: minmax(0, 1fr); }
  .topbar-actions { width: 100%; }
  .topbar-actions input[type="search"] { flex: 1 1 100%; width: 100%; }
  .confirm-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .topnav { padding: 0 var(--space-3); }
  .topnav-crumb, .topnav-slash, .topnav-user-name { display: none; }
  h1 { font-size: var(--fs-3xl); }
  .topbar-actions > :is(select, .button) { flex: 1 1 auto; }
  .form-actions .button, .invite-modal-card .button.primary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .toast, .button, .tab, .loading-spinner, .button.is-loading::before { transition: none; animation-duration: 2.4s; }
  .list-row-chevron { transition: none; }
}

/* 总览：数量卡片是链接；总览、审计的页面间距 */
a.metric { color: inherit; text-decoration: none; }
a.metric:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#page-dashboard > [data-body] { display: grid; gap: var(--space-4); min-width: 0; }

/* ==== 租户插件列表与租户下拉（web/pages/tenant-plugins/list.js、web/lib/tenant-select.js）：开始 ==== */
/* 顶部标签：租户插件 · 租户插件发布（web/pages/tenant-plugins.js） */
.tp-tabs { margin-bottom: var(--space-4); border-bottom: 1px solid var(--border); padding-bottom: var(--space-2); }
/* 筛选条：三个同样式的下拉，右侧是「+ 添加插件」 */
.tp-filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); }
.tp-filter-bar .field { flex: 0 1 240px; }
.tp-filter-bar .spacer { flex: 1; }
.data-table tr.tp-row { cursor: pointer; }
.tp-name { display: grid; gap: 2px; min-width: 0; }
.tp-name strong { font-weight: 500; overflow-wrap: anywhere; }
.tp-name .mono-muted { font-size: var(--fs-xs); }
.tp-name-line { display: flex; align-items: center; gap: var(--space-2); }
/* 租户下拉：按钮外观与 select 相同（高度、边框、字号、箭头），弹层可过滤 */
.tenant-select { position: relative; min-width: 0; }
.tenant-select-trigger {
  display: block; width: 100%; height: 32px; padding: 0 34px 0 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left;
  border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: var(--fs-base); cursor: pointer; outline: none;
  background-color: var(--surface);
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.tenant-select-trigger:focus-visible, .tenant-select-trigger[aria-expanded="true"] { outline: none; border-color: var(--accent); }
.tenant-select-trigger.is-placeholder { color: var(--subtle); }
.tenant-select-trigger.is-invalid { border-color: var(--danger); }
.tenant-select-pop {
  position: fixed; z-index: var(--z-floating); display: grid; gap: var(--space-1); max-width: min(420px, calc(100vw - 16px));
  padding: var(--space-1); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-popover);
}
.tenant-select-pop[hidden] { display: none; }
.tenant-select-search { height: 30px; }
.tenant-select-list { position: relative; max-height: 280px; overflow: auto; margin: 0; padding: 0; list-style: none; outline: none; }
.tenant-select-option {
  padding: 6px 10px; border-radius: var(--radius-xs); font-size: var(--fs-base); line-height: 1.35; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tenant-select-option.active { background: var(--surface-2); }
.tenant-select-option[aria-selected="true"] { color: var(--accent-strong); font-weight: 500; }
.tenant-select-note { padding: 6px 10px; color: var(--subtle); font-size: var(--fs-sm); }
@media (max-width: 820px) {
  .tp-filter-bar .field { flex: 1 1 100%; }
  .tp-filter-bar .spacer { display: none; }
}
/* ==== 租户插件列表与租户下拉：结束 ==== */
