/* Reset confirmation modal (see askResetConfirm in app-init.js)
   Dark theme is the default (uses the app's own theme colours); the original
   white card is kept as-is for html[data-theme="light"] at the bottom. */
.reset-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .18s ease, visibility 0s linear .18s;
}

.reset-modal.show {
  visibility: visible;
  opacity: 1;
  transition: opacity .18s ease;
}

.reset-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, .62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.reset-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 32px 32px 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0) 45%), var(--panel-2, #181C26);
  color: var(--text, #EEF1F6);
  box-shadow: 0 0 0 1px var(--line-2, rgba(255, 255, 255, .15)), 0 28px 64px -14px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .06);
  transform: translateY(10px) scale(.97);
  transition: transform .2s ease;
}

.reset-modal.show .reset-card {
  transform: none;
}

.reset-title {
  margin: 0 0 18px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text, #EEF1F6);
}

.reset-body {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dim, #9BA3B5);
}

.reset-actions {
  display: flex;
  gap: 14px;
}

.reset-btn {
  flex: 1 1 0;
  min-height: 52px;
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}

.reset-btn:active { transform: scale(.97); }

.reset-keep {
  background: var(--panel-3, #1E2330);
  color: var(--text, #EEF1F6);
  box-shadow: inset 0 0 0 1px var(--line-2, rgba(255, 255, 255, .15));
}

.reset-go {
  background: #e11d48;
  color: #fff;
  box-shadow: 0 8px 18px -6px rgba(225, 29, 72, .55);
}

.reset-keep:hover { filter: brightness(1.18); }
.reset-go:hover { filter: brightness(1.06); }

/* ---- light theme: the original white card, unchanged ---- */
html[data-theme="light"] .reset-backdrop {
  background: rgba(15, 20, 35, .45);
}

html[data-theme="light"] .reset-card {
  background: #fff;
  color: #1f2937;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .4);
}

html[data-theme="light"] .reset-title {
  color: #0f1b3d;
}

html[data-theme="light"] .reset-body {
  color: #4a5468;
}

html[data-theme="light"] .reset-keep {
  background: #f1f4f9;
  color: #0f1b3d;
  box-shadow: none;
}

html[data-theme="light"] .reset-keep:hover { filter: brightness(.97); }

@media (max-width: 480px) {
  .reset-card { padding: 26px 22px 22px; border-radius: 24px; }
  .reset-title { font-size: 22px; }
  .reset-actions { gap: 10px; }
}