/* === Confusion Section (方案B in study mode) === */
.confuse-section {
  margin-top: 16px;
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}

.confuse-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  touch-action: manipulation;
}

.confuse-toggle:hover {
  border-color: var(--accent);
  background: var(--bg-tertiary);
}

.confuse-toggle:active {
  transform: scale(0.99);
}

.confuse-icon {
  font-size: 15px;
  flex-shrink: 0;
}

.confuse-arrow {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-tertiary);
}

.confuse-body {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeIn 0.2s ease;
}

.confuse-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border-left: 3px solid var(--accent-light);
  font-size: 13px;
  line-height: 1.5;
}

.confuse-tag {
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
  min-width: 36px;
}

.confuse-stem {
  flex: 1;
  color: var(--text-secondary);
  word-break: break-all;
}

.confuse-answer {
  flex-shrink: 0;
  color: var(--success);
  font-weight: 600;
  max-width: 40%;
  text-align: right;
}

/* === Login Screen === */
.login-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.login-card {
  width: 100%;
  max-width: 360px;
  padding: clamp(28px, 6vw, 40px);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 4px 24px var(--shadow);
  text-align: center;
}

.login-card h2 {
  font-size: clamp(22px, 5vw, 26px);
  color: var(--accent);
  letter-spacing: 1px;
}

.login-card .login-sub {
  color: var(--text-tertiary);
  font-size: 13px;
  margin: 6px 0 24px;
  letter-spacing: 2px;
}

.login-card form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-card input[type="text"],
.login-card input[type="password"] {
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.login-card input:focus {
  border-color: var(--accent);
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.login-remember input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

.login-btn {
  margin-top: 6px;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
}

.login-btn:hover { background: var(--accent-dark); }
.login-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.login-error {
  margin-top: 4px;
  padding: 10px 12px;
  background: var(--error-bg);
  color: var(--error);
  border-radius: 8px;
  font-size: 13px;
}

.login-hint {
  margin-top: 20px;
  color: var(--text-tertiary);
  font-size: 12px;
}

/* === User Bar (top right) === */
.user-bar {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  flex-shrink: 0;
}

.user-bar .user-name {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.user-bar .user-admin {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.user-bar .user-admin:hover {
  background: var(--accent-light);
}

.user-bar .user-logout {
  font-size: 12px;
  color: var(--text-tertiary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.user-bar .user-logout:hover {
  color: var(--error);
  border-color: var(--error);
}

/* === Quiz Progress Bar === */
.quiz-progress-bar {
  padding: 4px 0 12px;
  flex-shrink: 0;
}

.qpb-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.qpb-remaining strong {
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
}

.qpb-mastered {
  color: var(--success);
  font-weight: 500;
}

.qpb-track {
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
}

.qpb-fill {
  height: 100%;
  background: var(--success);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* === Quiz Footer (reset button) === */
.quiz-footer {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}

.quiz-reset-btn {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  touch-action: manipulation;
}

.quiz-reset-btn:hover {
  border-color: var(--error);
  color: var(--error);
}

/* === Confirm Dialog === */
.confirm-dialog {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 12px;
  text-align: center;
  padding: 40px 24px;
}

.confirm-dialog h3 {
  font-size: clamp(17px, 4vw, 20px);
  color: var(--text-primary);
}

.confirm-dialog p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.confirm-dialog p strong {
  color: var(--accent);
  font-weight: 700;
}

.confirm-dialog .confirm-hint {
  color: var(--text-tertiary);
  font-size: 13px;
}

.confirm-buttons {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.confirm-buttons button {
  padding: 10px 28px;
  border-radius: var(--radius-button);
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  touch-action: manipulation;
}

.confirm-buttons .cb-cancel {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.confirm-buttons .cb-cancel:hover {
  background: var(--bg-tertiary);
}

.confirm-buttons .cb-confirm {
  background: var(--error);
  color: white;
}

.confirm-buttons .cb-confirm:hover {
  background: #C2503A;
}

/* === Top Bar === */
.top-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 clamp(12px, 3vw, 24px);
  padding-top: max(8px, env(safe-area-inset-top));
  padding-bottom: 8px;
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 20;
  min-height: 52px;
}

.brand {
  font-size: clamp(14px, 3vw, 16px);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.mode-tabs {
  margin-left: auto;
  display: flex;
  gap: 4px;
  background: var(--bg-secondary);
  padding: 4px;
  border-radius: var(--radius-button);
}

.mode-tabs button {
  padding: 7px 18px;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  font-size: clamp(13px, 3vw, 14px);
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  letter-spacing: 0.5px;
  touch-action: manipulation;
}

.mode-tabs button.active {
  background: var(--bg-primary);
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 1px 3px var(--shadow);
}

/* Hamburger toggle (mobile only by default) */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* === Sidebar (category list) === */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  max-width: 82vw;
  background: var(--bg-primary);
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 30;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.sidebar.open { transform: translateX(0); }
.sidebar.hidden { display: none; }

.sidebar-header {
  padding: 8px 20px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 10px;
}

.category-list .cat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: clamp(14px, 3vw, 15px);
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  text-align: left;
  width: 100%;
  touch-action: manipulation;
}

.category-list .cat-item:hover { background: var(--bg-secondary); }
.category-list .cat-item:active { background: var(--bg-tertiary); }

.category-list .cat-item.active {
  color: var(--accent);
  background: var(--accent-light);
  font-weight: 600;
}

.category-list .cat-item .cat-count {
  font-size: 12px;
  color: var(--text-tertiary);
  background: var(--bg-secondary);
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 32px;
  text-align: center;
}

.category-list .cat-item.active .cat-count {
  background: var(--accent);
  color: white;
}

/* Overlay (mobile drawer mask) */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  z-index: 25;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

/* === Question Card === */
.question-card {
  padding: clamp(16px, 3vw, 28px) 0;
}

.stem {
  font-size: clamp(16px, 4vw, 19px);
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: clamp(20px, 4vw, 28px);
  font-weight: 500;
}

.stem mark {
  background: transparent;
  color: var(--keyword-stem);
  font-weight: 700;
  border-bottom: 2px solid var(--accent-light);
}

/* === Options === */
.options { display: flex; flex-direction: column; gap: 10px; }

.option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 2px solid transparent;
  border-radius: var(--radius-option);
  font-size: clamp(15px, 3.5vw, 17px);
  line-height: 1.6;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
  min-height: 52px;
  text-align: left;
  width: 100%;
  font-family: inherit;
}

.option:hover { background: var(--bg-tertiary); }

.option .opt-label {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--text-secondary);
  width: 24px;
}

.option .opt-text { flex: 1; }

.option .opt-text mark {
  background: transparent;
  color: var(--keyword-answer);
  font-weight: 700;
}

/* Answer states */
.option.correct {
  background: var(--success-bg);
  border-color: var(--success);
}
.option.correct .opt-label { color: var(--success); }
.option.correct .opt-text { color: var(--success); font-weight: 600; }

.option.wrong {
  background: var(--error-bg);
  border-color: var(--error);
}
.option.wrong .opt-label { color: var(--error); }

.option.disabled { pointer-events: none; }

.option .opt-icon {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.option.correct .opt-icon { opacity: 1; color: var(--success); }
.option.wrong .opt-icon { opacity: 1; color: var(--error); }

/* === Study Navigation === */
.study-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  gap: 16px;
}
.study-nav button {
  padding: 10px 24px;
  border-radius: var(--radius-button);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: clamp(14px, 3vw, 15px);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  touch-action: manipulation;
}
.study-nav button:hover:not(:disabled) {
  background: var(--bg-tertiary);
  border-color: var(--accent);
  color: var(--accent);
}
.study-nav button:disabled { opacity: 0.4; cursor: not-allowed; }

/* Jump-to-position input */
.study-jump {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.study-jump input[type="number"] {
  width: 56px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  text-align: center;
  outline: none;
  transition: border-color 0.2s ease;
  -moz-appearance: textfield;
  appearance: textfield;
}

.study-jump input[type="number"]::-webkit-outer-spin-button,
.study-jump input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.study-jump input[type="number"]:focus {
  border-color: var(--accent);
}

.study-jump .jump-total {
  font-weight: 500;
}

.study-jump button {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  touch-action: manipulation;
}

.study-jump button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* === Completion Screen === */
.complete-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 16px;
  text-align: center;
  padding: 40px 20px;
}
.complete-screen .emoji { font-size: 48px; }
.complete-screen h2 { font-size: clamp(18px, 4vw, 22px); color: var(--text-primary); }
.complete-screen p { color: var(--text-secondary); font-size: 15px; }
.complete-screen button {
  margin-top: 8px;
  padding: 12px 32px;
  border-radius: var(--radius-button);
  border: none;
  background: var(--accent);
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.complete-screen button:hover { background: var(--accent-dark); }

/* === Loading === */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: var(--text-tertiary);
  font-size: 15px;
}

/* === Listen Mode === */
.listen-screen {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(16px, 3vw, 28px) 0;
  flex: 1;
}

/* Jump-to-position (same visual pattern as study-jump) */
.listen-jump {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 2px 0;
  font-size: 13px;
  color: var(--text-tertiary);
}

.listen-jump input[type="number"] {
  width: 56px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  text-align: center;
  outline: none;
  transition: border-color 0.2s ease;
  -moz-appearance: textfield;
  appearance: textfield;
}

.listen-jump input[type="number"]::-webkit-outer-spin-button,
.listen-jump input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.listen-jump input[type="number"]:focus {
  border-color: var(--accent);
}

.listen-jump .jump-total {
  font-weight: 500;
}

.listen-jump button {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  touch-action: manipulation;
}

.listen-jump button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.listen-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-tertiary);
  font-size: 13px;
}

.listen-meta .listen-cat {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

.listen-stem {
  font-size: clamp(17px, 4vw, 21px);
  line-height: 1.8;
  color: var(--text-primary);
  font-weight: 500;
  padding: 18px 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-card);
  border-left: 4px solid var(--border);
  transition: border-color 0.3s ease;
}

.listen-stem.speaking {
  border-left-color: var(--accent);
}

.listen-answer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--success-bg);
  border-radius: var(--radius-card);
  border-left: 4px solid var(--success);
  transition: transform 0.3s ease;
}

.listen-answer.speaking {
  transform: scale(1.01);
}

.listen-answer .la-label {
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 1px;
  flex-shrink: 0;
}

.listen-answer .la-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--success);
  color: white;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.listen-answer .la-text {
  font-size: clamp(16px, 3.5vw, 18px);
  color: var(--success);
  font-weight: 600;
}

.listen-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 12px 0;
}

.listen-controls .lc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  touch-action: manipulation;
}

.listen-controls .lc-prev,
.listen-controls .lc-next {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 18px;
}

.listen-controls .lc-prev:hover,
.listen-controls .lc-next:hover {
  background: var(--bg-tertiary);
  color: var(--accent);
}

.listen-controls .lc-play {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 24px;
  box-shadow: 0 2px 12px rgba(217, 119, 87, 0.3);
}

.listen-controls .lc-play:hover {
  background: var(--accent-dark);
}

.listen-controls .lc-prev:active,
.listen-controls .lc-next:active,
.listen-controls .lc-play:active {
  transform: scale(0.94);
}

.listen-rate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--text-tertiary);
  font-size: 13px;
}

.listen-rate input[type="range"] {
  width: 140px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.listen-rate input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

.listen-rate input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}

.listen-rate .rate-val {
  min-width: 32px;
  color: var(--accent);
  font-weight: 600;
}

/* Voice + Rate settings row */
.listen-settings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  padding: 4px 0;
  font-size: 13px;
  color: var(--text-tertiary);
}

.listen-settings label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.listen-settings select {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}

.listen-settings select:focus { border-color: var(--accent); }

.ls-rate input[type="range"] {
  width: 120px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.ls-rate input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

.ls-rate input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}

/* Loading state: soft pulsing glow instead of spinning text */
.lc-play.loading {
  animation: lc-pulse 1.4s ease-in-out infinite;
}

.lc-play.loading::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: lc-ring 1.4s ease-out infinite;
  pointer-events: none;
}

@keyframes lc-pulse {
  0%, 100% { box-shadow: 0 2px 12px rgba(217, 119, 87, 0.3); transform: scale(1); }
  50% { box-shadow: 0 2px 24px rgba(217, 119, 87, 0.55); transform: scale(1.06); }
}

@keyframes lc-ring {
  0% { opacity: 0.6; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(1.3); }
}

.tts-error-area {
  min-height: 0;
}

.tts-err {
  color: var(--error);
  font-size: 13px;
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--error-bg);
  border-radius: 8px;
}

/* === Loading === */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: var(--text-tertiary);
  font-size: 15px;
}
