/* ============================================================================
   CrossMiniApp Console — Shared Design System
   统一三端（开发者门户 / 运营台 / 管理后台）+ 落地页的视觉规范
   品牌 token 取自 crossminiapp.com（globals.css），单一真源
   ========================================================================== */

/* ----------------------------- Design Tokens ----------------------------- */
:root {
  /* Brand */
  --primary: #0066FF;
  --primary-50: #EBF2FF;
  --primary-600: #0052CC;
  --primary-700: #003D99;
  --accent: #7C3AED;

  /* Surfaces (light default) */
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --surface-2: #F4F4F5;
  --border: #E4E4E7;
  --text: #0A0A0A;
  --text-muted: #71717A;

  /* Feedback */
  --green: #10B981;  --green-50: #D1FAE5;  --green-700: #047857;
  --red: #EF4444;    --red-50: #FEE2E2;    --red-700: #B91C1C;
  --amber: #F59E0B;  --amber-50: #FEF3C7;  --amber-700: #B45309;

  /* Shape & depth */
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.06), 0 2px 4px -2px rgba(0,0,0,.06);

  /* Typography */
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

/* Dark theme — toggled via <html class="dark"> */
.dark {
  --bg: #0A0A0A;
  --surface: #171717;
  --surface-2: #262626;
  --border: #27272A;
  --text: #FAFAFA;
  --text-muted: #A1A1AA;

  --primary: #3385FF;
  --primary-50: rgba(51,133,255,.15);
  --primary-600: #5C94FF;
  --primary-700: #85AFFF;

  --green-50: rgba(16,185,129,.15);  --green-700: #34D399;
  --red-50: rgba(239,68,68,.15);     --red-700: #F87171;
  --amber-50: rgba(245,158,11,.15);  --amber-700: #FBBF24;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.5);
}

/* ------------------------------- Base ------------------------------------ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
.hidden { display: none !important; }

/* ------------------------------- Top bar --------------------------------- */
.topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 26px; height: 26px; display: inline-block; }
.brand-logo-dark { display: none; }
html.dark .brand-logo-light { display: none; }
html.dark .brand-logo-dark { display: inline-block; }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.brand-role {
  font-size: 13px; color: var(--text-muted);
  padding-left: 10px; margin-left: 4px; border-left: 1px solid var(--border);
}
.topbar-user { display: flex; align-items: center; gap: 12px; }
.topbar-user .uname { font-size: 13px; color: var(--text-muted); }

.icon-btn {
  width: 34px; height: 34px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer; font-size: 15px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, border-color .15s ease;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--primary); }

/* --------------------------- Console layout ------------------------------ */
.console-body { display: flex; min-height: calc(100vh - 56px); }
.sidebar {
  width: 232px; flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  position: sticky; top: 56px; align-self: flex-start;
  height: calc(100vh - 56px);
  overflow-y: auto;
}
.sidebar-title {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted);
  padding: 8px 12px 6px;
}
.sidebar .tab {
  display: block; width: 100%; text-align: left;
  padding: 9px 12px; margin-bottom: 2px;
  border: none; background: none; cursor: pointer;
  font-size: 14px; color: var(--text-muted);
  border-radius: var(--radius); border-left: 3px solid transparent;
  font-family: var(--font); transition: all .15s ease;
}
.sidebar .tab:hover { background: var(--surface-2); color: var(--text); }
.sidebar .tab.active {
  background: var(--primary-50); color: var(--primary); font-weight: 600;
  border-left-color: var(--primary);
}
.content { flex: 1; padding: 24px; min-width: 0; }
.content-head { margin-bottom: 20px; }
.content-head h1 { font-size: 20px; }
.content-head p { margin: 4px 0 0; color: var(--text-muted); font-size: 13px; }

/* ------------------------------- Cards ----------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 15px; margin-bottom: 14px; }

/* ------------------------------- Stats ----------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.stat .label {
  font-size: 12px; color: var(--text-muted); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .04em;
}
.stat .value { font-size: 28px; font-weight: 700; color: var(--primary); }

/* ------------------------------- Tables ---------------------------------- */
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left; padding: 11px 12px;
  border-bottom: 1px solid var(--border); font-size: 13px; vertical-align: middle;
}
th {
  font-weight: 600; color: var(--text-muted); font-size: 12px;
  text-transform: uppercase; letter-spacing: .03em; background: var(--surface-2);
}
tbody tr:hover { background: var(--surface-2); }
td .mono { font-family: var(--font-mono); font-size: 12px; }

/* ------------------------------- Badges ---------------------------------- */
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; line-height: 1.6; white-space: nowrap;
}
.badge-draft, .badge-offline { background: var(--surface-2); color: var(--text-muted); }
.badge-pending, .badge-pending_review { background: var(--amber-50); color: var(--amber-700); }
.badge-published, .badge-approved { background: var(--green-50); color: var(--green-700); }
.badge-rejected { background: var(--red-50); color: var(--red-700); }
.badge-platform_approved { background: var(--primary-50); color: var(--primary-700); }

/* ------------------------------- Buttons --------------------------------- */
.btn {
  padding: 9px 16px; border: 1px solid transparent; border-radius: var(--radius);
  font-size: 13px; font-weight: 500; cursor: pointer; font-family: var(--font);
  transition: filter .15s ease, background .15s ease, border-color .15s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover { filter: brightness(.96); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-success { background: var(--green); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-warning { background: var(--amber); color: #1a1206; }
.btn-link { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-link:hover { background: var(--primary-50); filter: none; }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------- Forms ----------------------------------- */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 500;
  margin-bottom: 5px; color: var(--text);
}
.form-group label small { color: var(--text-muted); font-weight: 400; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 9px 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 14px;
  font-family: var(--font); transition: border-color .15s ease, box-shadow .15s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50);
}
.form-group textarea { resize: vertical; min-height: 80px; }
input[type=number] { width: 120px !important; }
.api-key-row { font-family: var(--font-mono); font-size: 12px; }

/* ------------------------------- Tabs (legacy top tabs) ------------------ */
.tabs { display: flex; gap: 2px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.tab {
  padding: 10px 18px; border: none; background: none; cursor: pointer;
  font-size: 14px; color: var(--text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  font-family: var(--font); transition: all .15s ease;
}
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* ------------------------------- Alerts ---------------------------------- */
.alert {
  padding: 11px 14px; border-radius: var(--radius); margin-bottom: 12px;
  font-size: 13px; border: 1px solid transparent;
}
.alert-error { background: var(--red-50); color: var(--red-700); border-color: color-mix(in srgb, var(--red) 25%, transparent); }
.alert-success { background: var(--green-50); color: var(--green-700); border-color: color-mix(in srgb, var(--green) 25%, transparent); }

/* ------------------------------- Modal ----------------------------------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  max-width: 640px; width: 100%; max-height: 85vh; overflow-y: auto;
  box-shadow: var(--shadow-md);
}
.modal h3 { font-size: 16px; margin-bottom: 16px; color: var(--primary); }
.modal .row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.modal .row .k { color: var(--text-muted); flex-shrink: 0; }
.modal .row .v { text-align: right; word-break: break-all; color: var(--text); }
.modal .preview-frame {
  width: 100%; height: 300px; border: 1px solid var(--border);
  border-radius: var(--radius); margin-top: 12px; background: var(--bg);
}
.modal .actions { display: flex; gap: 8px; margin-top: 16px; justify-content: flex-end; }

/* ================== Marketing chrome (shared: landing + login) ============= */
/* ---------- Header ---------- */
.lp-header {
  position: sticky; top: 0; z-index: 50;
  height: 64px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  transition: background .2s ease, backdrop-filter .2s ease;
}
.lp-header.scrolled {
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lp-header-inner {
  max-width: 1280px; margin: 0 auto; height: 100%;
  padding: 0 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.lp-logo { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.lp-logo img { height: 38px; width: auto; }
.lp-wordmark { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; color: var(--text); }

.lp-nav { display: none; align-items: center; gap: .25rem; }
.lp-nav a {
  padding: .5rem .75rem; border-radius: .375rem;
  font-size: .875rem; font-weight: 500; color: var(--text-muted);
  transition: color .15s ease, background .15s ease;
}
.lp-nav a:hover { color: var(--text); background: var(--surface-2); }

.lp-actions { display: flex; align-items: center; gap: .25rem; }
.lp-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: .5rem;
  border: 1px solid transparent; background: transparent; color: var(--text-muted);
  cursor: pointer; transition: all .15s ease;
}
.lp-icon-btn:hover { color: var(--text); background: var(--surface-2); }
.lp-icon-btn svg { width: 18px; height: 18px; }
.icon-sun { display: none; }
.dark .icon-sun { display: block; }
.dark .icon-moon { display: none; }

/* Language switcher */
.lp-lang { position: relative; }
.lp-lang > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .25rem;
  padding: .5rem .625rem; border-radius: .5rem; font-size: .875rem; font-weight: 500;
  color: var(--text-muted);
}
.lp-lang > summary::-webkit-details-marker { display: none; }
.lp-lang > summary:hover { color: var(--text); background: var(--surface-2); }
.lp-lang-menu {
  position: absolute; right: 0; top: calc(100% + .5rem); min-width: 160px;
  background: var(--surface); border: 1px solid var(--border); border-radius: .75rem;
  box-shadow: var(--shadow-md); padding: .5rem; z-index: 60;
}
.lp-lang-menu a, .lp-lang-menu button {
  display: block; width: 100%; text-align: left;
  padding: .5rem .75rem; border-radius: .5rem; border: 0; background: transparent;
  font-family: inherit; font-size: .875rem; color: var(--text-muted); transition: all .15s ease;
}
.lp-lang-menu a:hover, .lp-lang-menu button:hover { color: var(--text); background: var(--surface-2); }
.lp-lang-item.active { color: var(--primary); font-weight: 600; }

.lp-menu-btn { display: inline-flex; }
@media (min-width: 1024px) { .lp-nav { display: flex; } .lp-menu-btn { display: none; } }

/* Mobile drawer */
.lp-mobile-nav {
  display: none; position: fixed; inset: 64px 0 0 0; z-index: 49;
  background: var(--bg); padding: 1rem; overflow-y: auto;
  border-top: 1px solid var(--border);
}
.lp-mobile-nav.open { display: block; }
.lp-mobile-nav a {
  display: block; padding: .75rem .5rem; border-radius: .5rem;
  font-size: 1rem; font-weight: 500; color: var(--text-muted);
}
.lp-mobile-nav a:hover { color: var(--text); background: var(--surface-2); }

/* ---------- Footer ---------- */
.lp-footer { border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface-2) 25%, var(--bg)); }
.lp-footer-inner { max-width: 1280px; margin: 0 auto; padding: 3rem 1rem; }
@media (min-width: 1024px) { .lp-footer-inner { padding: 4rem 2rem; } }
.lp-footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (min-width: 640px) { .lp-footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .lp-footer-grid { grid-template-columns: repeat(4, 1fr); } }
.lp-footer-col h3 { font-size: .875rem; font-weight: 600; margin-bottom: .75rem; color: var(--text); }
.lp-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.lp-footer-col a { font-size: .875rem; color: var(--text-muted); transition: color .15s ease; }
.lp-footer-col a:hover { color: var(--text); }
.lp-footer-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.lp-footer-brand img { height: 48px; width: auto; }
.lp-footer-brand span { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.lp-footer-tagline { font-size: .875rem; color: var(--text-muted); line-height: 1.6; max-width: 18rem; }
.lp-footer-sep { height: 1px; background: var(--border); margin: 2rem 0; border: 0; }
.lp-footer-bottom { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; }
@media (min-width: 640px) { .lp-footer-bottom { flex-direction: row; } }
.lp-social { display: flex; align-items: center; gap: .5rem; }
.lp-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: .5rem; color: var(--text-muted);
  transition: all .15s ease;
}
.lp-social a:hover { color: var(--text); background: var(--surface-2); }
.lp-social svg { width: 18px; height: 18px; }
.lp-copyright { font-size: .875rem; color: var(--text-muted); }

/* ------------------------------- Login ----------------------------------- */
.login-wrap {
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg);
}
.login-main {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.login-submit { justify-content: center; font-weight: 700; }
.login-box {
  width: 100%; max-width: 400px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-md);
}
.login-brand {
  display: flex; align-items: center; gap: 9px; justify-content: center;
  margin-bottom: 20px;
}
.login-brand .brand-name { font-size: 17px; }
.login-box h2 { text-align: center; margin-bottom: 20px; font-size: 20px; }
.login-tabs { display: flex; margin-bottom: 22px; border-bottom: 1px solid var(--border); }
.login-tabs button {
  flex: 1; padding: 10px; border: none; background: none; cursor: pointer;
  font-size: 14px; color: var(--text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; font-family: var(--font);
}
.login-tabs button.active {
  background: var(--surface); border-bottom-color: var(--primary);
  color: var(--primary); font-weight: 600;
}
.login-box p.note {
  text-align: center; color: var(--text-muted); font-size: 12px; margin-top: 16px;
}

/* ------------------------------- Misc ------------------------------------ */
.empty { text-align: center; padding: 40px; color: var(--text-muted); }
.note { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.hint { font-size: 12px; color: var(--text-muted); margin-top: 10px; line-height: 1.6; }

/* --------------------------- Landing (index) ----------------------------- */
.landing {
  min-height: 100vh; background: var(--bg);
  background-image: radial-gradient(900px 400px at 50% -10%, var(--primary-50), transparent 70%);
}
.landing-nav {
  height: 60px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; border-bottom: 1px solid var(--border); background: var(--surface);
}
.landing-hero { max-width: 760px; margin: 0 auto; padding: 72px 24px 28px; text-align: center; }
.landing-hero h1 { font-size: 34px; letter-spacing: -0.02em; }
.landing-hero p { color: var(--text-muted); font-size: 15px; margin: 14px auto 0; max-width: 560px; }
.landing-grid {
  max-width: 920px; margin: 0 auto; padding: 16px 24px 64px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px;
}
.landing-card {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; color: var(--text);
  box-shadow: var(--shadow-sm); transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.landing-card:hover {
  transform: translateY(-2px); border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.landing-card .lc-icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--primary-50);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 20px; margin-bottom: 14px;
}
.landing-card h2 { font-size: 17px; margin-bottom: 8px; }
.landing-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ------------------------------- Responsive ------------------------------ */
@media (max-width: 768px) {
  .console-body { flex-direction: column; }
  .sidebar {
    width: 100%; height: auto; position: static;
    border-right: none; border-bottom: 1px solid var(--border);
    display: flex; gap: 4px; overflow-x: auto;
  }
  .sidebar-title { display: none; }
  .sidebar .tab { border-left: none; border-bottom: 3px solid transparent; white-space: nowrap; }
  .sidebar .tab.active { border-left: none; border-bottom-color: var(--primary); }
  .content { padding: 16px; }
}

/* --------------------------- UX-2 (2026-10-25) --------------------------- */
/* 表格横向滚动：7~9 列在移动端不再被裁切 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.table-scroll table { min-width: 720px; }

/* 列表加载态（替代白屏） */
.cma-loading {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 32px 16px; color: var(--text-muted); font-size: 13px;
}
.cma-spinner {
  width: 16px; height: 16px; flex-shrink: 0;
  border: 2px solid var(--border); border-top-color: var(--primary);
  border-radius: 50%; animation: cma-spin .7s linear infinite;
}
@keyframes cma-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cma-spinner { animation: none; } }

/* 表单内联校验（UX-2：显式报错，替代静默回落） */
.field-error { color: var(--red-700); font-size: 12px; margin-top: 4px; line-height: 1.5; }
.field-invalid { border-color: var(--red) !important; }
input.field-invalid:focus, textarea.field-invalid:focus { outline-color: var(--red); }

/* 能力多选下拉（2026-10-25 接线 required_permissions → runtime 能力清单） */
.multiselect { position: relative; }
.multiselect-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); font-size: 13px; font-family: var(--font);
  cursor: pointer; text-align: left;
}
.multiselect-toggle:hover { border-color: var(--primary); }
.multiselect-caret { color: var(--text-muted); font-size: 12px; }
.multiselect-panel {
  position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 4px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); max-height: 260px; overflow-y: auto; padding: 6px;
}
.multiselect-option {
  display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px;
  cursor: pointer; font-size: 13px;
}
.multiselect-option:hover { background: var(--surface-2); }
.multiselect-option input { margin: 0; }
.multiselect-option .ms-name { font-weight: 500; }
.multiselect-option .ms-value { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.multiselect-tag {
  margin-left: auto; font-size: 10px; padding: 1px 6px; border-radius: 999px;
  background: var(--green-50); color: var(--green-700); white-space: nowrap;
}
.multiselect-tag.warn { background: var(--amber-50); color: var(--amber-700); }
.multiselect-foot {
  border-top: 1px solid var(--border); margin-top: 6px; padding: 8px;
  font-size: 11px; color: var(--text-muted); line-height: 1.5;
}
@media (max-width: 768px) {
  .multiselect-panel { position: static; margin-top: 6px; max-height: 220px; }
}

/* --------------------------- UX-3 (2026-10-25) --------------------------- */
/* 列表工具栏：搜索 + 状态筛选 + 分页 */
.console-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.console-toolbar .search-input {
  flex: 1; min-width: 180px; max-width: 340px;
  padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); font-size: 13px; font-family: var(--font);
}
.console-toolbar .search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.console-toolbar select {
  padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); font-size: 13px; font-family: var(--font);
}
.pager { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--text-muted); }
.pager .btn { min-width: 64px; }
.pager .pager-info { margin-left: auto; }
@media (max-width: 768px) {
  .console-toolbar .search-input { max-width: none; }
}
