.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 46px; border-radius: var(--radius-md); background: var(--gradient-brand); color: var(--color-surface); font-size: 32px; box-shadow: var(--shadow-card); }
.brand-name { display: block; color: var(--color-navy); font-size: 25px; font-weight: 800; line-height: 1.2; letter-spacing: -1px; }
.brand-name > span { color: var(--color-primary); }
.brand-tagline { display: block; color: var(--color-text-muted); font-size: 12px; letter-spacing: .2px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: var(--space-3); min-height: 52px; padding: var(--space-3) var(--space-6); border: 1px solid transparent; border-radius: var(--radius-md); text-decoration: none; font-size: 15px; font-weight: 700; transition: background-color .18s ease, box-shadow .18s ease; }
.button-primary { color: var(--color-surface); background: var(--color-primary); box-shadow: 0 6px 18px rgb(11 107 255 / 18%); }
.button-primary:hover { background: var(--color-primary-dark); }
.button-secondary { background: var(--color-surface); color: var(--color-primary-dark); border-color: var(--color-border); }
.button-secondary:hover { background: var(--color-primary-light); }
.card { padding: var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-card); }
.eyebrow { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--color-primary-dark); background: var(--color-primary-light); border-radius: 100px; padding: var(--space-2) var(--space-3); font-size: 12px; font-weight: 600; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); }
.app-header { padding: var(--space-6) var(--space-5); border-radius: 0 0 var(--radius-xl) var(--radius-xl); background: var(--gradient-brand); color: var(--color-surface); }
.app-header h1, .app-header h2 { color: inherit; }
.field { display: grid; gap: var(--space-2); }
.field-label { font-weight: 600; font-size: 14px; }
.input { width: 100%; min-height: 54px; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); background: var(--color-surface); color: var(--color-text); }
.input[aria-invalid="true"] { border-color: var(--color-danger); }
.field-error { min-height: 20px; color: #B42318; font-size: 13px; }
.metric-value { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--color-heading); }
.phase-dialog { width: min(420px, calc(100% - 40px)); color: var(--color-text); }
.phase-dialog::backdrop { background: rgb(7 27 74 / 35%); }
.phase-dialog h2, .phase-dialog p, .phase-dialog form { margin-top: var(--space-5); }
.phase-dialog .button { width: 100%; }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }

/* TrainAI Browser Push Notification Permission Prompt */
.ta-push-prompt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  background: rgba(7, 24, 66, 0.52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.ta-push-prompt-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.ta-push-prompt-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(7, 34, 88, 0.25), 0 0 0 1px rgba(7, 94, 235, 0.08);
  width: 100%;
  max-width: 440px;
  padding: 32px 28px 24px;
  text-align: center;
  position: relative;
  margin: auto;
  transform: translateY(14px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}
.ta-push-prompt-overlay.is-visible .ta-push-prompt-card {
  transform: translateY(0) scale(1);
}
.ta-push-prompt-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}
.ta-push-prompt-close:hover {
  background: #e2e8f0;
  color: #0b1947;
}
.ta-push-prompt-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, #e0f0ff 0%, #f0f7ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(8, 104, 249, 0.12);
  margin: 0 auto 18px;
}
.ta-push-prompt-title {
  font-size: 21px;
  font-weight: 800;
  color: #0b1d4b;
  line-height: 1.25;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.ta-push-prompt-message {
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
  margin: 0 0 22px;
}
.ta-push-prompt-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ta-push-prompt-btn-enable {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  background: #0868f9;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(8, 104, 249, 0.25);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}
.ta-push-prompt-btn-enable:hover {
  background: #0654cc;
  transform: translateY(-1px);
}
.ta-push-prompt-btn-later {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  background: transparent;
  color: #64748b;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease;
}
.ta-push-prompt-btn-later:hover {
  color: #0b1d4b;
}
.notif-blocked-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (max-width: 440px) {
  .ta-push-prompt-card {
    padding: 24px 18px 20px;
    border-radius: 20px;
  }
}
