/* ══════════════════════════════════════
   docx-proofread — 全局样式 (Material Design 3)
   ══════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  --primary: #3525cd;
  --primary-container: #4f46e5;
  --primary-fixed-dim: #c3c0ff;
  --on-primary: #ffffff;
  --ai-accent: #eef2ff;
  --on-primary-fixed: #0f0069;

  --surface: #f7f9fb;
  --surface-dim: #d8dadc;
  --surface-bright: #f7f9fb;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f2f4f6;
  --surface-container: #eceef0;
  --surface-container-high: #e6e8ea;
  --surface-container-highest: #e0e3e5;
  --surface-variant: #e0e3e5;

  --on-surface: #191c1e;
  --on-surface-variant: #464555;
  --text-primary: #0f172a;
  --text-secondary: #475569;

  --border-subtle: #e2e8f0;
  --outline: #777587;
  --outline-variant: #c7c4d8;

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --error: #ba1a1a;
  --error-container: #ffdad6;
  --on-error: #ffffff;
  --on-error-container: #93000a;

  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;

  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --radius-xs: 0.25rem;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --transition: .2s ease;

  --sidebar-width: 260px;
  --navbar-height: 64px;
  --gutter: 24px;
  --container-max: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--surface);
  color: var(--on-surface);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Sidebar ── */

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--sidebar-width);
  background: var(--surface-container-lowest);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  z-index: 60;
}

.sidebar-brand {
  padding: 0 24px;
  margin-bottom: 32px;
}

.sidebar-brand h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
}

.sidebar-brand p {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.4;
}

.sidebar-nav {
  flex: 1;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
  transition: background var(--transition);
}

.sidebar-nav a:hover {
  background: var(--surface-container-low);
}

.sidebar-nav a .nav-icon {
  margin-right: 12px;
  font-size: 20px;
}

.sidebar-nav a.active {
  color: var(--primary);
  background: var(--ai-accent);
  font-weight: 700;
  border-left: 4px solid var(--primary);
  padding-left: 20px;
}

.sidebar-nav a.active .nav-icon {
  font-variation-settings: 'FILL' 1;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding: 6px 24px;
  border-top: none;
}

.sidebar-footer button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 4px 16px;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  transition: all var(--transition);
}

.sidebar-footer button:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.08);
}

.sidebar-footer button .nav-icon {
  margin-right: 12px;
  transition: color var(--transition);
}

.sidebar-footer button:hover .nav-icon {
  color: var(--danger);
}

/* ── Topbar ── */

.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  background: rgba(255,255,255,0.8);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.topbar-left .breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-secondary);
}

.topbar-left .breadcrumb .breadcrumb-sep {
  font-size: 18px;
  color: var(--text-secondary);
  opacity: .5;
  margin: 0 2px;
  line-height: 1;
}

.topbar-left .breadcrumb .current {
  color: var(--text-primary);
}

.topbar-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  padding: 0 4px 0 16px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ── Main Content ── */

.main-content {
  margin-left: var(--sidebar-width);
  margin-top: var(--navbar-height);
  height: calc(100vh - var(--navbar-height) - 43px);
  overflow-y: auto;
}

.content-wrapper {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px var(--gutter) var(--gutter);
}

/* ── Cards ── */

.card {
  background: var(--surface-container-lowest);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
}

.card-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 500;
  line-height: 1.4;
}

/* ── Page Header ── */

.page-header {
  margin-bottom: 28px;
}

.page-header h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.5px;
  line-height: 1.4;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 4px;
  line-height: 1.8;
}

/* ── Bento Grid ── */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-col-7 { grid-column: span 12; }
.bento-col-5 { grid-column: span 12; }
.bento-col-12 { grid-column: span 12; }

@media (min-width: 1024px) {
  .bento-col-7 { grid-column: span 7; }
  .bento-col-5 { grid-column: span 5; }
}

/* ── Stats Mini Cards ── */

.stats-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-mini {
  background: var(--surface-container-lowest);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 16px;
}

.stat-mini .stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  font-weight: 500;
  line-height: 1.4;
}

.stat-mini .stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
  font-family: inherit;
}

.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover:not(:disabled) {
  box-shadow: var(--shadow-lg);
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.95);
}

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover:not(:disabled) { background: #059669; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #dc2626; }

.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover:not(:disabled) { background: #d97706; }

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-subtle);
}

.btn-outline:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--ai-accent);
}

.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ── Forms ── */

.form-group { margin-bottom: 18px; }

.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-surface-variant);
  margin-bottom: 6px;
  line-height: 1.4;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--outline-variant);
  border-radius: 999px;
  font-size: 14px;
  color: var(--on-surface);
  background: var(--surface-container-low);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  font-family: inherit;
  line-height: 1.6;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(53, 37, 205, 0.08);
}

.form-input::placeholder { color: var(--outline); }

input.form-input {
  border-radius: 999px !important;
  font-size: 14px;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23777587' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  border-radius: 999px;
  font-size: 14px;
}

#uploadModelSelect { width: 200px; }


textarea.form-input { resize: vertical; min-height: 100px; border-radius: var(--radius); }

.form-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.form-error {
  font-size: 13px;
  color: var(--danger);
  margin-top: 4px;
}

/* ── Auth Pages ── */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  padding: 24px 24px 56px;
  position: relative;
  overflow: hidden;
}

#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.auth-card {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  animation: slideUp .5s ease;
  position: relative;
  z-index: 1;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-card .logo {
  text-align: center;
  margin-bottom: 28px;
}

.auth-card .logo h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
}

.auth-card .logo p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

.auth-card .form-submit { margin-top: 24px; }
.auth-card .form-submit .btn { width: 100%; }

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover { text-decoration: underline; }

/* ── Slider Captcha ── */

.captcha-container {
  margin: 16px 0;
}

.captcha-container .captcha-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--on-surface-variant);
  margin-bottom: 8px;
  display: block;
}

.captcha-slider {
  position: relative;
  height: 44px;
  background: var(--surface-container-low);
  border-radius: 22px;
  cursor: pointer;
  user-select: none;
  border: 1.5px solid var(--outline-variant);
  transition: border-color var(--transition);
}

.captcha-slider.active { border-color: var(--primary); }

.captcha-slider-track {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-container));
  border-radius: 22px;
  width: 0;
  opacity: .4;
}

.captcha-slider-thumb {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition);
  z-index: 2;
  color: var(--primary);
  font-size: 16px;
}

.captcha-slider-thumb:hover { box-shadow: var(--shadow-lg); }
.captcha-slider-thumb:active { cursor: grabbing; }

.captcha-status {
  font-size: 13px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.captcha-status.success { color: var(--success); }
.captcha-status.error { color: var(--danger); }

/* ── Tables ── */

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th {
  background: var(--surface-container-low);
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

table th.sortable {
  cursor: pointer;
  user-select: none;
}

table th.sortable:hover {
  color: var(--primary);
  background: var(--ai-accent);
}

table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--surface-variant);
  color: var(--on-surface-variant);
}

table tr:last-child td { border-bottom: none; }
table tr:hover td { background: var(--surface-container-low); }

/* ── Status Badges ── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-pending { background: #fef3c7; color: #92400e; }
.badge-queued { background: #e0e7ff; color: #3730a3; }
.badge-running { background: #dbeafe; color: #1e40af; }
.badge-done { background: #d1fae5; color: #065f46; }
.badge-error { background: #fee2e2; color: #991b1b; }
.badge-cancelled { background: #f3e8ff; color: #6b21a8; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-info { background: #e0f2fe; color: #075985; }

/* ── Status Dot (animated) ── */

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.status-dot.pending { background: var(--warning); }
.status-dot.queued { background: #6366f1; animation: pulse 1.5s infinite; }
.status-dot.running { background: #3b82f6; animation: pulse 1.2s infinite; }
.status-dot.done { background: var(--success); }
.status-dot.error { background: var(--danger); }
.status-dot.cancelled { background: #a855f7; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.85); }
}

/* ── Upload Zone ── */

.upload-zone {
  border: 2.5px dashed var(--outline-variant);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--surface-container-low);
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--primary);
  background: var(--ai-accent);
}

.upload-zone .icon {
  font-size: 48px;
  color: var(--outline);
  margin-bottom: 16px;
  display: block;
}

.upload-zone h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--on-surface-variant);
  margin-bottom: 6px;
}

.upload-zone p {
  color: var(--text-secondary);
  font-size: 14px;
}

.upload-zone .file-types {
  margin-top: 12px;
  display: inline-flex;
  gap: 6px;
}

.upload-zone .file-types span {
  background: var(--surface-variant);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.upload-progress {
  margin-top: 20px;
  display: none;
}

.upload-progress.active { display: block; }

.progress-bar {
  height: 6px;
  background: var(--surface-variant);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-container));
  border-radius: 3px;
  width: 0;
  transition: width .3s ease;
}

.upload-status {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Log Viewer ── */

.log-viewer {
  background: #1e293b;
  color: #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: "JetBrains Mono", "Fira Code", "Consolas", monospace;
  font-size: 13px;
  line-height: 1.7;
  max-height: 400px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.log-viewer .log-line { padding: 1px 0; }
.log-viewer .log-info { color: #93c5fd; }
.log-viewer .log-warn { color: #fcd34d; }
.log-viewer .log-error { color: #fca5a5; }
.log-viewer .log-success { color: #6ee7b7; }

.log-viewer::-webkit-scrollbar { width: 6px; }
.log-viewer::-webkit-scrollbar-track { background: #334155; border-radius: 3px; }
.log-viewer::-webkit-scrollbar-thumb { background: #475569; border-radius: 3px; }

/* ── Stats Cards ── */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface-container-lowest);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card.active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(79,70,229,0.3); }
.stat-card { cursor: default; }

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 20px;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ── Chart Container ── */

.chart-container {
  background: var(--surface-container-lowest);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 20px;
}

.chart-container canvas {
  max-height: 350px;
}

.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.chart-grid .chart-container {
  margin: 0;
}

/* ── Alert / Toast ── */

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success { background: #d1fae5; color: #065f46; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-info { background: #dbeafe; color: #1e40af; }
.alert-warning { background: #fef3c7; color: #92400e; }

/* ── Toast Notifications ── */

.toast-container {
  position: fixed;
  top: 76px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  animation: toastIn .3s ease;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-success { background: #065f46; color: #fff; }
.toast-error { background: #991b1b; color: #fff; }
.toast-info { background: #1e40af; color: #fff; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── Markdown Report ── */

.report-content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--on-surface-variant);
  overflow-x: auto;
  word-break: break-word;
  overflow-wrap: break-word;
}

.report-content h1, .report-content h2, .report-content h3 {
  color: var(--text-primary);
  margin: 20px 0 10px;
}

.report-content h1 { font-size: 20px; }
.report-content h2 { font-size: 18px; }
.report-content h3 { font-size: 16px; }

.report-content p { margin: 8px 0; }

.report-content table {
  border-collapse: collapse;
  font-size: 13px;
  min-width: 100%;
}

.report-content table th,
.report-content table td {
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  word-break: break-all;
  overflow-wrap: break-word;
}

.report-content table th {
  background: var(--surface-container-low);
  font-weight: 600;
}

.report-content code {
  background: var(--surface-variant);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: "JetBrains Mono", monospace;
}

.report-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 16px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 12px 0;
}

.report-content strong { color: var(--text-primary); }

/* ── Config Toggle ── */

.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 4px 16px;
}

.config-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}

.config-item:hover { border-color: var(--primary); }

.config-item .config-info { flex: 1; min-width: 0; }

.config-item .config-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.config-item .config-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 1px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Toggle Switch */
.toggle {
  position: relative;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--outline-variant);
  border-radius: 20px;
  transition: var(--transition);
}

.toggle .slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.toggle input:checked + .slider { background: var(--primary); }
.toggle input:checked + .slider::before { transform: translateX(16px); }

/* 全局禁用的规则：开关强制关闭且不可操作 */
.toggle input:disabled + .slider { opacity: 0.4; cursor: not-allowed; }
.config-item-disabled { opacity: 0.6; }

/* ── Filter Bar ── */

.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-bar .form-input { width: auto; min-width: 160px; }

/* ── Task Grid ── */

.task-grid {
  display: grid;
  gap: 14px;
}

.task-card {
  background: var(--surface-container-lowest);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.task-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.task-check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary);
}

.task-card .task-info { min-width: 0; }

.task-card .task-filename {
  font-size: 15px;
  font-weight: 600;
  color: var(--on-surface);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}


.task-card .task-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.task-card .task-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 12px;
}

/* ── Empty State ── */

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-state .icon {
  font-size: 56px;
  margin-bottom: 16px;
  display: block;
  opacity: .5;
}

.empty-state h3 {
  font-size: 18px;
  color: var(--on-surface-variant);
  margin-bottom: 8px;
}

.empty-state p { font-size: 14px; }

/* ── Loading ── */

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--text-secondary);
  gap: 10px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--surface-variant);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Timeline ── */

.timeline {
  position: relative;
  padding: 8px 0;
}

.timeline-item {
  position: relative;
  z-index: 10;
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.timeline-item:last-child { margin-bottom: 0; }

/* Vertical connector line — scrolls with content (unlike ::before on container) */
.timeline-item::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 36px;
  bottom: -32px;
  width: 2px;
  background: var(--surface-container-high);
  z-index: 0;
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
}

.timeline-dot.primary { background: var(--primary); }
.timeline-dot.success { background: var(--success); }
.timeline-dot.subtle { background: var(--outline-variant); }

.timeline-dot .dot-icon {
  color: #fff;
  font-size: 16px;
}

.timeline-content {
  flex: 1;
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.timeline-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.timeline-body {
  background: var(--surface-container-low);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: border-color var(--transition);
  font-size: 12px;
}

.timeline-body:hover {
  border-color: var(--outline-variant);
}

.timeline-body p { margin: 4px 0; }
.timeline-body ul { margin: 4px 0; padding-left: 20px; }
.timeline-body li { margin: 2px 0; }

/* ── Markdown Preview ── */

.markdown-preview h1 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.markdown-preview p {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.markdown-preview code {
  font-family: "JetBrains Mono", monospace;
  background: var(--surface-variant);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.markdown-preview ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ── Announcement Banner ── */

.announcement-banner {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  background: transparent;
  max-width: 420px;
  cursor: pointer;
  transition: background 0.15s;
}

.announcement-banner:hover {
  background: var(--surface-container-low);
}

.announcement-banner .icon { flex-shrink: 0; font-size: 15px; }

.scroll-wrap {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  height: 1.5em;
  line-height: 1.5em;
}

.scroll-track {
  transition: transform 0.5s ease;
}

.scroll-item {
  height: 1.5em;
  line-height: 1.5em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Tab Card ── */

.tab-card {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.tab-inner {
  display: inline-flex;
  background: var(--surface-container-lowest);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 5px;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
  font-family: inherit;
}

.tab-btn:hover {
  color: var(--on-surface-variant);
  background: var(--surface-container-low);
}

.tab-btn.active {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 2px 8px rgba(53, 37, 205, 0.3);
  font-weight: 600;
}

/* ── Modal ── */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.show { display: flex; }

.modal {
  background: var(--surface-container-lowest);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  width: 100%;
  max-width: 560px;
  animation: slideUp .25s ease;
  margin-top: 20px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--outline);
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color var(--transition);
}

.modal-close:hover { color: var(--text-secondary); }

.modal .modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ── Markdown Editor ── */

.md-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  min-height: 400px;
}

.md-editor textarea {
  font-family: "JetBrains Mono", "Fira Code", "Consolas", monospace;
  font-size: 14px;
  line-height: 1.7;
  padding: 16px;
  border: 1.5px solid var(--outline-variant);
  border-radius: var(--radius-sm);
  resize: vertical;
  outline: none;
  min-height: 400px;
}

.md-editor textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(53, 37, 205, 0.08); }

.md-preview {
  padding: 16px;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow-y: auto;
  min-height: 400px;
}

/* ── Pagination ── */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}

.pagination button {
  padding: 6px 12px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-container-lowest);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all var(--transition);
  font-family: inherit;
}

.pagination button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
.pagination button.active { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

.pagination select { border-radius: 999px; }

/* ── Ban Log ── */

.log-ban { color: #fca5a5; }
.log-unban { color: #86efac; }
.log-info { color: #94a3b8; }

/* ── Custom Scrollbar ── */

.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: var(--border-subtle); border-radius: 10px; }

/* ── Utility: Focus Ring ── */

.focus-ring-primary:focus-within {
  box-shadow: 0 0 0 4px rgba(53, 37, 205, 0.05);
}

/* ── Responsive ── */

/* 移动端侧边栏（始终隐藏，移动端可切换） */
.mobile-sidebar {
  display: none;
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface-container-lowest);
  z-index: 55;
  padding: 16px 0;
  overflow-y: auto;
}

.mobile-sidebar.open { display: block; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* ── Tablet & Small Desktop ── */
@media (max-width: 1024px) {
  :root { --gutter: 20px; }
  .content-wrapper { padding: 12px var(--gutter) var(--gutter); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-grid { grid-template-columns: 1fr; }
  .bento-col-7 { grid-column: span 12; }
  .bento-col-5 { grid-column: span 12; }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  :root {
    --gutter: 14px;
    --sidebar-width: 0px;
  }

  .sidebar { display: none; }
  .topbar { left: 0; padding: 0 12px; }
  .main-content { margin-left: 0; }
  .mobile-menu-btn { display: block !important; }

  .content-wrapper { padding: 10px var(--gutter) var(--gutter); }

  /* ── Typography ── */
  .page-header { margin-bottom: 20px; }
  .page-header h1 { font-size: 20px; letter-spacing: 0; }
  .page-header p { font-size: 13px; }
  .card-title { font-size: 17px; }
  .card { padding: 16px; }
  .card-header { margin-bottom: 14px; }

  /* ── Grid ── */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stats-mini-grid { grid-template-columns: 1fr; }
  .stat-mini { padding: 12px; }
  .stat-mini .stat-value { font-size: 18px; }
  .chart-grid { grid-template-columns: 1fr; gap: 12px; }
  .chart-container { padding: 16px; }
  .chart-container canvas { max-height: 220px; }

  /* ── Cards ── */
  .stat-card { padding: 14px; }
  .stat-card .stat-value { font-size: 22px; }

  /* ── Admin: Announcement Page ── */
  .bento-col-7 .card[style*="padding:32px"] { padding: 20px !important; }
  .bento-col-5 .card[style*="height:633px"] { height: auto !important; max-height: 400px; }
  .bento-col-5 .card[style*="height:633px"] .timeline { max-height: 300px; }

  /* ── Help Page ── */
  .help-tabs { width: 100% !important; }
  .help-tab { flex: 1; text-align: center; padding: 8px 12px; font-size: 13px; }
  .help-hero { padding: 28px 18px !important; }
  .help-hero h1 { font-size: 22px; }
  .help-hero p { font-size: 14px; }

  /* ── Config: AI Model Grid (4-col system model cards) ── */
  [id="systemModelCard"] [style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: repeat(2,1fr) !important; }
  [id="globalAiModelSection"] [style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: repeat(2,1fr) !important; }

  /* ── Admin Users: action column ── */
  table td[style*="display:flex"] { flex-wrap: wrap; gap: 4px; }

  /* ── Editor textarea ── */
  textarea.form-input[style*="height:320px"] { height: 200px !important; }

  /* ── Filter Bar ── */
  .filter-bar { gap: 8px; }
  .filter-bar .form-input { width: 100%; min-width: 0 !important; }

  /* ── Forms ── */
  .form-row { flex-direction: column; gap: 0; }
  .form-row .form-group { flex: none; }

  /* ── Auth ── */
  .auth-card { padding: 24px 20px; max-width: 360px; }

  /* ── Upload Zone ── */
  .upload-zone { padding: 32px 16px; }
  .upload-zone .icon { font-size: 36px; }
  .upload-zone h3 { font-size: 16px; }

  /* ── Tables ── */
  .table-wrapper { margin: 0 -8px; border-radius: 0; border-left: none; border-right: none; }

  /* ── Tab Card ── */
  .tab-card { margin-bottom: 20px; }
  .tab-inner { flex-wrap: wrap; justify-content: stretch; padding: 4px; }
  .tab-btn { flex: 1; padding: 10px 12px; font-size: 13px; justify-content: center; white-space: nowrap; }
  .tab-btn .tab-icon { display: none; }

  /* ── Task Grid / Cards ── */
  .task-card { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; }
  .task-card:has(.task-check-label) { padding-left: 40px !important; position: relative; }
  .task-check-label { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); padding: 0 !important; margin: 0; }
  .task-card .task-actions { margin-left: 0; align-self: flex-end; }
  .task-card .task-info { width: 100%; max-width: 100%; }
  .task-card .task-filename { font-size: 14px; }

  /* ── Config Grid ── */
  .config-grid { grid-template-columns: 1fr; }
  .config-item { padding: 8px 10px; }
  #globalSystemParams { flex-direction: column; gap: 8px; }
  #globalSystemParams .config-item input[type="number"] { width: 100px !important; text-align: center; }

  /* ── AI Model Config ── */
  #globalSystemParams { flex-direction: column; gap: 8px; }

  /* ── Pagination ── */
  .pagination { flex-wrap: wrap; gap: 4px; }
  .pagination button { padding: 4px 8px; font-size: 12px; }
  .pagination select { font-size: 12px; }

  /* ── Bento Grid ── */
  .bento-grid { gap: 14px; }

  /* ── Toast ── */
  .toast-container { right: 12px; top: 64px; max-width: calc(100vw - 24px); }
  .toast { max-width: 100%; font-size: 13px; padding: 12px 16px; }

  /* ── Modal ── */
  .modal-overlay { padding: 12px; align-items: flex-end; }
  .modal { margin-top: 0; max-width: 100%; padding: 20px; border-radius: var(--radius) var(--radius) 0 0; max-height: 85vh; overflow-y: auto; }
  #taskCompleteModal .modal-card { width: 100%; max-width: none; margin: 12px; padding: 24px 20px; border-radius: var(--radius); }

  /* ── Markdown Editor ── */
  .md-editor { grid-template-columns: 1fr; min-height: auto; }
  .md-editor textarea { min-height: 200px; }
  .md-preview { min-height: 200px; }

  /* ── Timeline ── */
  .timeline-item { gap: 12px; }
  .timeline-item::after { left: 13px; }
  .timeline-dot { width: 28px; height: 28px; }

  /* ── Topbar ── */
  .topbar-center { justify-content: flex-end; padding: 0; }
  .announcement-banner { max-width: 180px; }
  .topbar-left .breadcrumb { font-size: 13px; }
  .topbar-right .user-dropdown-btn span { display: none; }

  /* ── Index Page AI Settings ── */
  #aiSettings { flex-direction: column; align-items: flex-start !important; gap: 8px; }
  #uploadModelSelectWrap { margin-left: 0 !important; width: 100%; white-space: nowrap !important; gap: 6px; }
  #uploadModelSelectWrap select { flex: 1; min-width: 0; max-width: 70%; }
  #uploadModelSelectWrap span { white-space: nowrap; }

  /* ── Upload Queue Table ── */
  #queueList table th[style*="width:200px"],
  #queueList table th[style*="width:120px"],
  #queueList table th[style*="width:100px"] { width: auto !important; }
  #queueList table th:nth-child(3),
  #queueList table td:nth-child(3) { min-width: 80px; }
  #queueList table td[style*="max-width:300px"] { max-width: 100px !important; }
  #queueList table th,
  #queueList table td { padding: 8px 4px !important; font-size: 12px; }
  #queueList table td .progress-bar { min-width: 60px; }

  /* ── Task Detail ── */
  .page-header[style*="flex"] { flex-direction: column; align-items: flex-start !important; gap: 10px; }

  /* ── Log Viewer ── */
  .log-viewer { max-height: 300px; font-size: 12px; padding: 12px; }

  /* ── Stats Cards ── */
  .stats-grid .stat-card:nth-child(n+5) { grid-column: span 2; }

  /* ── Report Content ── */
  .report-content { font-size: 13px; line-height: 1.6; }
  .report-content table { font-size: 12px; }
  .report-content table th,
  .report-content table td { padding: 6px 8px; word-break: break-word; }
  #reportCard { overflow: visible; }
}

/* ── Small Mobile ── */
@media (max-width: 480px) {
  :root { --gutter: 10px; }

  .content-wrapper { padding: 8px var(--gutter) var(--gutter); }
  .card { padding: 12px; border-radius: var(--radius-sm); }
  .filter-bar .form-input { font-size: 13px; }
  .upload-zone { padding: 24px 12px; }
  .auth-card { padding: 20px 16px; }
  .auth-card .logo h1 { font-size: 20px; }
  .tab-btn { padding: 8px 8px; font-size: 12px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }

  .pagination { justify-content: center; }
  .pagination button { padding: 4px 6px; font-size: 11px; min-width: 28px; }
  .pagination select { font-size: 11px; }
  .pagination span { font-size: 11px !important; }

  .topbar { padding: 0 8px; }
  .topbar-left .breadcrumb { font-size: 12px; }
  .mobile-menu-btn { font-size: 20px; }
  .announcement-banner { max-width: 120px; }

  .stat-card { padding: 10px; }
  .stat-card .stat-value { font-size: 18px; }
  .stat-card .stat-label { font-size: 11px; }
  .stat-mini .stat-value { font-size: 16px; }

  .modal { padding: 16px; }
  .modal-header h3 { font-size: 16px; }

  .task-card { padding: 10px 12px; }
  .task-card .task-filename { font-size: 13px; }
  .task-card .task-meta { font-size: 11px; flex-wrap: wrap; }

  table th { padding: 8px 10px; font-size: 11px; }
  table td { padding: 8px 10px; font-size: 13px; }

  .page-header h1 { font-size: 18px; }
  .page-header p { font-size: 12px; }

  .btn { padding: 10px 16px; font-size: 13px; }
  .btn-sm { padding: 4px 8px; font-size: 12px; }

  /* ── Help page hero ── */
  .help-hero h1 { font-size: 18px; }
  .help-hero .hero-icon { font-size: 40px; }

  /* ── Step items ── */
  .step-item { flex-direction: column; gap: 12px; padding: 16px; }
  .step-num { width: 32px; height: 32px; font-size: 14px; min-width: 32px; }

  /* ── Feature items ── */
  .feature-item { padding: 16px; }
  .feature-item .fi-icon { font-size: 28px; margin-bottom: 8px; }

  /* ── FAQ ── */
  .faq-item p { margin-left: 0; }

  /* ── Auth card ── */
  .auth-card { padding: 16px 12px; }

  /* ── Ensure report card is fully visible ── */
  #reportCard { overflow: visible; width: 100%; }
  .report-content table { margin: 0; }

  /* ── Queue table on small mobile ── */
  #queueList table th,
  #queueList table td { padding: 6px 3px !important; font-size: 11px; }
  #queueList table td[style*="max-width:300px"] { max-width: 60px !important; }
  #queueList table td:nth-child(3) .progress-bar { min-width: 40px; }

  /* ── Model select ── */
  #uploadModelSelectWrap span[style*="font-size:13px"] { font-size: 12px; }
}

/* ── User Dropdown ── */

.user-dropdown-btn:hover {
  background: var(--surface-container-low);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  margin-top: 4px;
  background: var(--surface-container-lowest);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  z-index: 100;
  overflow: hidden;
}

.dropdown-content.show {
  display: block;
}

.dropdown-item:hover {
  background: var(--surface-container-low);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 0;
}

/* ── Ring helper (for textarea focus in announcement page) ── */

.ring-primary\05 { box-shadow: 0 0 0 4px rgba(53, 37, 205, 0.05); }

/* ── Task Complete Modal ── */

#taskCompleteModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: modalFadeIn .2s ease;
}

#taskCompleteModal .modal-card {
  background: var(--surface-container-lowest);
  border-radius: 16px;
  padding: 32px 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  animation: modalSlideUp .25s ease;
}

#taskCompleteModal .modal-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

#taskCompleteModal h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--on-surface);
}

#taskCompleteModal p {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--text-secondary);
  word-break: break-all;
}

#taskCompleteModal .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

#taskCompleteModal .modal-actions .btn {
  min-width: 100px;
  padding: 8px 24px;
  font-size: 14px;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Prevent fixed icp-footer from overlapping content */
.content-wrapper {
  padding-bottom: 56px;
}
