/* Free Model Router Admin Styles */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary: #64748b;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg: #f8fafc;
  --sidebar-bg: #1e293b;
  --sidebar-text: #cbd5e1;
  --card-bg: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* Layout */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h2 {
  font-size: 1.25rem;
  color: #fff;
}

.sidebar-header p {
  font-size: 0.875rem;
  color: var(--sidebar-text);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}

.sidebar-brand h2 {
  font-size: 1rem;
  color: #fff;
  white-space: nowrap;
}

.version-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255,255,255,0.08);
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--sidebar-text);
  text-decoration: none;
  transition: background 0.15s;
}

.nav-item:hover, .nav-item.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.nav-icon { font-size: 1.25rem; }

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
}

.top-bar h1 { font-size: 1.5rem; }

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  background: var(--success);
  color: #fff;
}

.content-wrapper {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

/* Pages */
.page { display: none; }
.page.active { display: block; }

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.stat-info h3 {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.stat-breakdown {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.4;
}

.apikey-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.apikey-value {
  font-size: 0.75rem;
  font-weight: 500;
  font-family: 'SF Mono', Monaco, monospace;
  word-break: break-all;
  line-height: 1.4;
  flex: 1;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

/* Section Title */
.section-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem 0;
  color: var(--text);
}

.section-title:first-of-type {
  margin-top: 0;
}

/* Text muted */
.text-muted {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* Table */
.table-wrapper {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th, .data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: var(--bg);
  font-weight: 600;
  font-size: 0.875rem;
}

.data-table td { font-size: 0.875rem; }

.text-center { text-align: center !important; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s;
  text-decoration: none;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }

.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { opacity: 0.9; }

.btn-link { background: transparent; color: var(--primary); text-decoration: underline; }
.btn-link:hover { opacity: 0.8; }

.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.75rem; }

/* 三段式档位切换（超时档位设置） */
.segmented-control {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}
.segmented-item {
  padding: 0.5rem 1.25rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.segmented-item + .segmented-item { border-left: 1px solid var(--border); }
.segmented-item:hover { color: var(--text); }
.segmented-item.active { background: var(--primary); color: #fff; }
.segmented-item:disabled { cursor: not-allowed; opacity: 0.6; }

.btn-block { width: 100%; }

.btn-danger { background: var(--danger); color: #fff; }

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37,99,235,0.1);
}

/* Page Actions */
.page-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* Settings */
.settings-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.settings-section h3 {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.settings-form { max-width: 400px; }

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.show { display: flex; }

.modal-content {
  background: var(--card-bg);
  border-radius: var(--radius);
  width: 100%;
  max-width: 500px;
  padding: 1.5rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

#eventDetailModal .modal-content {
  max-height: 90vh;
}

#eventDetailBody {
  max-height: 70vh;
  overflow-y: auto;
}

/* Login Page */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg);
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 1rem;
}

.login-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
}

.login-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-header h1 { font-size: 1.5rem; }
.login-header p { color: var(--text-muted); }

.login-form .form-group { margin-bottom: 1rem; }

.error-message {
  color: var(--danger);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  min-height: 1.25rem;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-muted { background: #f1f5f9; color: #475569; }

/* Navigation Badge */
.nav-badge {
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.125rem 0.375rem;
  border-radius: 999px;
  margin-left: auto;
}

.event-detail-section {
  margin-bottom: 1rem;
}

.event-detail-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.event-detail-content {
  background: var(--bg);
  padding: 0.75rem;
  border-radius: var(--radius);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
}

.event-detail-table td:first-child {
  color: var(--text-muted);
  width: 100px;
}

.event-detail-table td:last-child {
  font-family: monospace;
  background: var(--bg);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  word-break: break-all;
}

/* Health Check */
.health-check-controls {
  margin-bottom: 1.5rem;
}

.health-check-controls p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.health-check-actions {
  display: flex;
  gap: 0.75rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
}

.progress-bar-fill.indeterminate {
  width: 40%;
  animation: progress-indeterminate 1.5s ease-in-out infinite;
}

@keyframes progress-indeterminate {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}

#healthCheckStatusText {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

#healthCheckResultsList {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.health-check-provider-result {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1rem;
}

.health-check-provider-result h5 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.health-check-summary {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.health-check-models-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.health-check-model-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  padding: 0.25rem 0;
}

.model-status-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: bold;
}

.model-status-icon.healthy {
  background: #dcfce7;
  color: #166534;
}

.model-status-icon.unhealthy {
  background: #fee2e2;
  color: #991b1b;
}

/* Referral Page */
.referral-container {
  max-width: 900px;
}

.referral-header {
  margin-bottom: 2rem;
}

.referral-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.referral-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.referral-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-detail {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.referral-actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.referral-code-section,
.refresh-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.referral-code-section h3,
.refresh-section h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.code-display {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.code-display input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1.125rem;
  font-family: monospace;
  background: var(--bg);
}

.hint {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.refresh-section p {
  color: var(--text);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.last-sync-hint {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-top: 0.75rem;
  margin-bottom: 0 !important;
}

.btn-loading {
  display: none;
}

/* Pro Credits Section */
.pro-credits-section,
.redeem-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  margin-top: 1.5rem;
}

.pro-credits-section h3,
.redeem-section h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem 0;
}

/* Credits Summary */
.pro-credits-summary {
  display: flex;
  gap: 2rem;
  margin: 1rem 0 1.5rem 0;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius);
}

.credit-summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.summary-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.summary-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

/* Credits List */
.credits-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.credit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border-radius: var(--radius);
  font-size: 0.875rem;
  border-left: 3px solid transparent;
}

.credit-item.available {
  border-left-color: var(--success);
}

.credit-item.redeemed {
  border-left-color: var(--text-muted);
  opacity: 0.7;
}

.credit-item.expiring-soon {
  border-left-color: var(--warning) !important;
}

.credit-icon {
  font-size: 1.25rem;
  width: 28px;
  text-align: center;
}

.credit-name {
  flex: 1;
  font-weight: 500;
}

.credit-expires {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.credit-status-badge {
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-info {
  background: #dbeafe;
  color: #1e40af;
}

/* Redeem Form */
.redeem-form {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.redeem-form .form-group {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
}

.redeem-form input[type="number"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
}

.redeem-result {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  display: none;
}

.redeem-result.success {
  background: #dcfce7;
  color: #166534;
  display: block;
}

.redeem-result.error {
  background: #fee2e2;
  color: #991b1b;
  display: block;
}

/* Announcement Banner */
.announcement-banner-container {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

/* 更新告警条（设计 §12：暂停/回滚失败置顶提示） */
.update-alert-bar {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}
.update-alert-bar.warn {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}
.update-alert-bar.danger {
  background: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}

.announcement-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.announcement-nav {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  flex-shrink: 0;
}

.announcement-nav:hover:not(:disabled) {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.announcement-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.announcement-content {
  flex: 1;
  min-width: 0;
}

.announcement-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.announcement-priority {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.priority-critical {
  background: #fee2e2;
  color: #991b1b;
}

.priority-high {
  background: #fef3c7;
  color: #92400e;
}

.priority-normal {
  background: #dbeafe;
  color: #1e40af;
}

.announcement-time {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-left: auto;
}

.announcement-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.announcement-title:hover {
  color: var(--primary);
}

.announcement-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.announcement-indicator {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Mobile responsive for announcement banner */
@media (max-width: 640px) {
  .announcement-banner-container {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
  }

  .announcement-title {
    font-size: 0.9375rem;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .announcement-nav {
    width: 28px;
    height: 28px;
    font-size: 0.875rem;
  }
}

/* Guide Page */
.guide-container {
  max-width: 900px;
}

.guide-header {
  margin-bottom: 2rem;
}

.guide-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.guide-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.guide-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.guide-section h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.guide-section h4 {
  font-size: 1rem;
  margin: 1.25rem 0 0.75rem 0;
  color: var(--text);
}

.guide-section p {
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.guide-section p:last-child {
  margin-bottom: 0;
}

.guide-list {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
}

.guide-list li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  font-size: 0.9375rem;
}

.guide-hint {
  background: #eff6ff;
  border-left: 4px solid var(--primary);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #1e3a5f;
  font-size: 0.875rem;
  margin-top: 1rem;
}

.guide-alert {
  background: #fef3c7;
  border-left: 4px solid var(--warning);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #78350f;
  font-size: 0.875rem;
  margin: 1rem 0;
}

.guide-alert strong {
  color: #92400e;
}

.code-block {
  background: #f1f5f9;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 0.75rem 0;
  overflow-x: auto;
  border: 1px solid var(--border);
}

.code-block code,
.code-block pre {
  color: #1e293b;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.code-block pre {
  margin: 0;
}

.guide-section code {
  background: #f1f5f9;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 0.875rem;
  color: #c2410c;
}

.guide-table-wrapper {
  overflow-x: auto;
  margin: 0.75rem 0;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.guide-table th,
.guide-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.guide-table th {
  background: var(--bg);
  font-weight: 600;
  color: var(--text-muted);
}

.guide-table td {
  color: var(--text);
  vertical-align: top;
}

.guide-table a {
  color: var(--primary);
  text-decoration: none;
}

.guide-table a:hover {
  text-decoration: underline;
}

/* Community Section */
.community-section {
  margin-top: 1.5rem;
}

.community-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.community-body {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.community-qrcode {
  flex-shrink: 0;
}

.community-qrcode img {
  width: 140px;
  height: 140px;
  border-radius: var(--radius);
  display: block;
}

.community-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
}

.community-info {
  flex: 1;
  min-width: 0;
}

.community-text {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Mobile responsive for community card */
@media (max-width: 768px) {
  .community-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .community-divider {
    width: 100%;
    height: 1px;
  }

  .community-qrcode img {
    width: 120px;
    height: 120px;
  }
}

/* Community Card Visual Upgrade */
.community-card {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 50%, #ffffff 100%);
  border: 1px solid #dbeafe;
}

.community-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.community-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.community-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  flex: 1;
  line-height: 1.4;
}

.community-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.community-close:hover {
  color: var(--danger);
  background: #fee2e2;
}

.community-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.375rem;
  line-height: 1.5;
}

.community-text {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.community-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.community-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.6;
}

.benefit-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.community-footer-tag {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem;
  background: rgba(37, 99, 235, 0.05);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
  line-height: 1.5;
}

.btn-pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
}

/* Sidebar Community Entry */
.sidebar-community {
  margin: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-community::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #7c3aed, #2563eb);
  background-size: 200% 100%;
  animation: gradient-slide 3s linear infinite;
}

@keyframes gradient-slide {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.sidebar-community-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.sidebar-community-icon {
  font-size: 1.125rem;
}

.sidebar-community-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}

.sidebar-community-desc {
  font-size: 0.8125rem;
  color: var(--sidebar-text);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* Community Modal */
.community-modal-body {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 0;
}

.community-modal-qrcode {
  flex-shrink: 0;
  text-align: center;
}

.community-modal-qrcode img {
  width: 160px;
  height: 160px;
  border-radius: var(--radius);
  display: block;
  border: 1px solid var(--border);
}

.community-modal-info {
  flex: 1;
  min-width: 0;
}

.community-modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.community-modal-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.community-modal-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.community-modal-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.6;
}

.community-modal-tag {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  background: rgba(37, 99, 235, 0.05);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
  line-height: 1.5;
}

/* Mobile responsive for community modal */
@media (max-width: 640px) {
  .community-modal-body {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .community-modal-qrcode img {
    width: 140px;
    height: 140px;
  }
}

/* Feedback Form */
.feedback-form textarea {
  resize: vertical;
}

.feedback-form .char-count {
  display: block;
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.feedback-form .feedback-result {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.feedback-form .feedback-result.success {
  background: #dcfce7;
  color: #166534;
}

.feedback-form .feedback-result.error {
  background: #fee2e2;
  color: #991b1b;
}

/* Mobile responsive sidebar */
@media (max-width: 768px) {
  .admin-layout {
    position: relative;
    overflow-x: hidden;
    width: 100vw;
  }

  .sidebar {
    width: 100vw;
    position: absolute;
    left: 0;
    top: 0;
    height: 100vh;
    transition: transform 0.3s ease;
    z-index: 10;
  }

  .main-content {
    width: 100vw;
    position: absolute;
    left: 0;
    top: 0;
    height: 100vh;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 5;
  }

  .admin-layout.content-active .sidebar {
    transform: translateX(-100%);
  }

  .admin-layout.content-active .main-content {
    transform: translateX(0);
  }

  .menu-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg);
    border-radius: var(--radius);
    font-size: 1.25rem;
    cursor: pointer;
    margin-right: 0.75rem;
    color: var(--text);
  }
}

@media (min-width: 769px) {
  .menu-back-btn {
    display: none;
  }
}

/* ============================================================
   权益中心 (P3)
   ============================================================ */
.entitlements-container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.entitlements-header { margin-bottom: 24px; }
.entitlements-header h2 { margin: 0 0 8px 0; }
.entitlements-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.ent-section-wide { grid-column: 1 / -1; }
.ent-section {
  background: var(--bg-card, #fff);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.ent-section h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.ent-section h4 {
  margin: 24px 0 8px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.balance-card { display: flex; gap: 24px; align-items: flex-start; }
.balance-main { flex: 0 0 180px; }
.balance-ledger { flex: 1; min-width: 0; }
.balance-ledger h4 { margin: 0 0 10px 0; font-size: 14px; color: var(--text-muted); font-weight: 500; }
.balance-card .balance-value { font-size: 32px; font-weight: 600; color: var(--primary); margin: 8px 0; }
.tx-summary { list-style: none; padding: 0; margin: 0; }
.tx-summary .tx-item { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; border-bottom: 1px solid var(--border, #eee); }
.tx-summary .tx-amount { font-weight: 600; min-width: 56px; }
.tx-amount { color: var(--success); }
.tx-summary .tx-desc { flex: 1; margin: 0 12px; color: var(--text-muted, #666); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-summary .tx-time { color: var(--text-muted, #999); font-size: 12px; white-space: nowrap; }

.ent-referral-banner { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.referral-banner-main h3 { margin: 0 0 4px 0; }
.referral-banner-main .hint { margin: 0; }
.referral-banner-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.referral-banner-actions .code-display,
.referral-banner-actions .apply-referral-form { display: flex; gap: 8px; margin: 0; }
.referral-banner-actions .code-display input,
.referral-banner-actions .apply-referral-form input { width: 180px; }

.milestone-list ul { list-style: none; padding: 0; margin: 0; }
.milestone-item { margin-bottom: 12px; }
.milestone-header { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.milestone-bar { height: 8px; background: var(--bg-muted, #f0f0f0); border-radius: 4px; overflow: hidden; }
.milestone-fill { height: 100%; background: var(--primary); transition: width 0.3s; }
.milestone-complete .milestone-fill { background: var(--success); }
.milestone-complete .milestone-name::after { content: ' ✓'; color: var(--success); }

.pool-lock-guide { display: flex; gap: 16px; align-items: flex-start; padding: 24px; background: var(--bg); border: 1px dashed var(--border); border-radius: var(--radius); }
.pool-lock-icon { font-size: 32px; flex-shrink: 0; }
.pool-lock-body { flex: 1; min-width: 0; }
.pool-lock-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.pool-lock-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 12px; }
.pool-lock-progress { margin-bottom: 12px; }
.pool-lock-progress-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.pool-lock-progress-value { text-align: right; font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.catalog-card { border: 1px solid var(--border, #eee); border-radius: 6px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.catalog-card.disabled { opacity: 0.5; }
.catalog-card h4 { margin: 0; font-size: 14px; }
.catalog-desc { font-size: 12px; color: var(--text-muted, #666); min-height: 18px; }
.catalog-cost { font-size: 13px; font-weight: 600; color: var(--primary); }
.catalog-card .redeem-btn { margin-top: auto; }

.entitlement-list .entitlement-group { margin-bottom: 24px; }
.entitlement-list .entitlement-group:not(:last-child) {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}
.entitlement-list ul { list-style: none; padding: 0; margin: 0; }
.entitlement-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border, #eee);
}
.entitlement-row:last-child { border-bottom: none; }
.entitlement-row.near-expiry .ent-target { color: var(--warning, #e67e22); }
.ent-target { font-weight: 400; color: var(--text); }
.ent-expiry {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}
.expiry-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #fef3c7;
  color: #92400e;
}

.transaction-list ul { list-style: none; padding: 0; margin: 0; }
.tx-row { display: grid; grid-template-columns: 60px 100px 1fr 120px; gap: 8px; padding: 6px 0; font-size: 13px; border-bottom: 1px solid var(--border, #eee); }
.tx-row .tx-source { color: var(--text-muted, #666); font-size: 12px; }

.empty-state { color: var(--text-muted, #999); font-style: italic; padding: 12px 0; }

.code-display { display: flex; gap: 8px; margin: 8px 0; }
.code-display input { flex: 1; padding: 6px 8px; border: 1px solid var(--border, #ccc); border-radius: 4px; }
.apply-referral-result { margin-top: 8px; padding: 8px; border-radius: 4px; font-size: 13px; }

@media (max-width: 768px) {
  .entitlements-grid { grid-template-columns: 1fr; }
  .balance-card { flex-direction: column; }
  .balance-main { flex: none; }
  .ent-referral-banner { flex-direction: column; align-items: flex-start; }
  .referral-banner-actions { width: 100%; }
  .referral-banner-actions .code-display,
  .referral-banner-actions .apply-referral-form { width: 100%; }
  .referral-banner-actions .code-display input,
  .referral-banner-actions .apply-referral-form input { flex: 1; width: auto; }
}

/* === admin 升级新增（hotpool 三池 + modal + toast） === */
:root {
  --fault: #f43f5e;
  --muted-dot: #94a3b8;
}
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted-dot); vertical-align: middle; }
.dot-healthy { background: var(--success); }
.dot-fault { background: var(--fault); box-shadow: 0 0 0 3px rgba(244,63,94,.18); }
.dot-muted { background: var(--muted-dot); }
.cap-tag { display: inline-block; padding: 1px 5px; border-radius: 4px; font-size: 10px; background: #f1f5f9; color: #475569; font-family: ui-monospace, monospace; white-space: nowrap; }
.pool-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.pool-tabs button { padding: 5px 10px; background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; color: var(--secondary); font-size: 12px; }
.pool-tabs button.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.model-row { display: grid; grid-template-columns: 1fr 28px 54px 76px; gap: 6px; align-items: center; padding: 6px 8px; border-bottom: 1px solid #f1f5f9; font-size: 12px; min-width: 0; }
.model-row.primary { background: #f8fafc; }
.model-row.disabled { opacity: .55; }
.model-row > div:nth-child(1) { display: flex; align-items: center; gap: 6px; min-width: 0; }
.model-row > div:nth-child(1) .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.model-row > div:nth-child(1) .badge-info { flex-shrink: 0; }
.model-row .role-inline { font-size: 10px; font-weight: 600; padding: 1px 5px; border-radius: 4px; flex-shrink: 0; line-height: 1.4; }
.model-row .role-primary { color: var(--primary); background: #dbeafe; }
.model-row .role-fallback { color: var(--secondary); background: #f1f5f9; }
.model-row .status-cell { display: flex; align-items: center; justify-content: center; }
.model-row .actions-cell { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: wrap; }
.empty-guide { border: 1px dashed var(--border); border-radius: var(--radius); padding: 16px; text-align: center; color: var(--secondary); background: #f8fafc; font-size: 13px; }
.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.5); display: none; align-items: center; justify-content: center; z-index: 100; }
.modal-mask.open { display: flex; }
.modal-mask .modal { display: block; position: relative; top: auto; left: auto; inset: auto; transform: none; background: var(--card-bg); border-radius: var(--radius); width: 420px; max-width: 92vw; padding: 20px; }
.modal-mask .modal h3 { font-size: 16px; margin-bottom: 14px; }
.modal-mask .modal .form-group { margin-bottom: 12px; }
.modal-mask .modal .form-group label { display: block; font-size: 12px; color: var(--secondary); margin-bottom: 4px; }
.modal-mask .modal .form-group input, .modal-mask .modal .form-group select { width: 100%; padding: 7px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; }
.modal-mask .modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #1e293b; color: #fff; padding: 10px 18px; border-radius: 6px; font-size: 13px; opacity: 0; transition: opacity .2s; z-index: 200; pointer-events: none; display: flex; align-items: center; gap: 12px; max-width: 90vw; }
.toast.show { opacity: 1; }
.toast-action { pointer-events: auto; padding: 2px 10px; background: transparent; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 4px; color: #fff; font-size: 12px; cursor: pointer; }
.toast-action:hover { background: rgba(255, 255, 255, 0.1); }

/* quick-start.js 使用的样式类 */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}
.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.sub { color: var(--text-muted); margin-bottom: 1rem; }
.mono { font-family: 'SF Mono', Monaco, monospace; font-size: 0.8125rem; }
.muted { color: var(--text-muted); }
.row-gap { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* 上下文窗口提醒行 */
.context-window-row {
  position: relative;
  padding-left: 0.75rem;
  margin-left: -0.75rem;
}

.context-window-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 3px;
  background: var(--warning);
  border-radius: 2px;
}

.context-window-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-right: 0.375rem;
  font-size: 10px;
  font-weight: 700;
  color: var(--warning);
  border: 1.5px solid var(--warning);
  border-radius: 50%;
  flex-shrink: 0;
  line-height: 1;
}

/* Providers 页响应式网格 */
#providersList {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  #providersList { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1500px) {
  #providersList { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Provider 卡片头部更多操作下拉菜单 */
.provider-actions-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 120px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  z-index: 10;
  display: none;
  padding: 4px 0;
}

.provider-actions-menu.show { display: block; }

.provider-actions-menu .menu-item {
  display: block;
  width: 100%;
  padding: 6px 12px;
  text-align: left;
  background: none;
  border: none;
  font-size: 0.8125rem;
  color: var(--text);
  cursor: pointer;
}

.provider-actions-menu .menu-item:hover { background: #f1f5f9; }

.provider-actions-menu .menu-divider {
  height: 1px;
  margin: 4px 8px;
  background: var(--border);
}

/* 全部模型弹窗列表 */
.all-models-summary {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.all-models-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.all-models-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.all-models-row:last-child { border-bottom: none; }

.all-models-row .mono {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.capability-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.capability-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 500;
  background: #f1f5f9;
  color: var(--secondary);
}

.role-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
}

.role-badge-primary { background: #dbeafe; color: var(--primary); }
.role-badge-fallback { background: #f1f5f9; color: var(--secondary); }
.role-badge-candidate { background: #fef3c7; color: #92400e; }

.status-enabled { color: var(--success); }
.status-disabled { color: var(--danger); }

.all-models-empty {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ============================================================
   多 Provider API Key 管理（设计 §3.9）
   ============================================================ */
.multikey-banner {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8125rem;
  margin: 8px 0;
}

.key-mask-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 180px;
  overflow-y: auto;
}

.key-mask-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8125rem;
}

.key-mask-row .mono {
  flex: 0 0 auto;
}

.key-mask-row .badge {
  flex-shrink: 0;
  white-space: nowrap;
}

.key-remove-btn {
  padding: 0 4px;
  flex-shrink: 0;
}

.multikey-hints {
  margin-top: 8px;
}

.multikey-hints .hint {
  margin: 2px 0;
}

.multikey-details {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.multikey-details summary {
  cursor: pointer;
  font-weight: 500;
  outline: none;
}

.multikey-details .hint {
  margin: 4px 0 0 16px;
}

.multikey-hints .hint-warning {
  color: #92400e;
  font-weight: 500;
  margin-top: 6px;
}

.multikey-lock-guide {
  margin-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}

.multikey-lock-guide .hint {
  margin: 0;
}

.multikey-lock-guide .multikey-lock-cta {
  margin-top: 6px;
  padding: 0;
  font-size: 0.8125rem;
}

.key-add-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.key-add-row input {
  flex: 1 1 auto;
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.key-add-row input:disabled {
  background: #f1f5f9;
  color: var(--text-muted);
  cursor: not-allowed;
}

.key-add-row button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 明文 key 文本：单行展示，超出省略，title 携带完整内容 */
.key-mask-row .key-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
}

.key-copy-btn {
  padding: 0 4px;
  flex-shrink: 0;
}

/* 加宽弹窗：用于 API Key 管理等需要单行展示长文本的场景 */
.modal-mask .modal.modal-wide {
  width: 640px;
}
