/* ============================================
   AEGIS APP - Post-Login Dark Theme Styles
   ============================================ */

/* ── App Shell ─────────────────────────────── */

.app-body {
  background-color: #0d1b2a;
  color: #fff;
  /* Lock to viewport — no page scroll */
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Watermark */
.app-watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70vmin;
  height: 70vmin;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}

.app-body > *:not(.app-watermark) {
  position: relative;
  z-index: 1;
}

/* ── Top Bar ───────────────────────────────── */

.app-topbar {
  background-color: #1b2838;
  border-bottom: 1px solid rgba(79, 195, 247, 0.15);
  padding: 0.6rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  /* iOS notch safe area */
  padding-top: max(0.6rem, env(safe-area-inset-top));
}

.app-topbar-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #4fc3f7;
  letter-spacing: 0;
}

.app-topbar-greeting {
  font-size: 0.85rem;
  color: #b0bec5;
}

/* ── Main content area ─────────────────────── */

.app-main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* ── Footer Promo ──────────────────────────── */

.app-footer-promo {
  padding: 0.65rem 1rem 0.8rem;
  color: #b0bec5;
  line-height: 1.5;
  background: rgba(27, 40, 56, 0.96);
  border-top: 1px solid rgba(79, 195, 247, 0.15);
}

.app-footer-promo p {
  margin: 0;
  font-size: 0.95rem;
}

.app-footer-promo__header,
.app-footer-promo__collapsed-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.app-footer-promo__header {
  margin-bottom: 0.45rem;
}

.app-footer-promo__title,
.app-footer-promo__collapsed-label {
  color: #e3f2fd;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.app-footer-promo__message {
  font-weight: 600;
}

.app-footer-feedback-link {
  margin-top: 0.35rem !important;
}

.app-footer-promo a {
  color: #4fc3f7;
  text-decoration: none;
}

.app-footer-feedback-link a {
  font-size: 0.92rem;
  font-weight: 700;
}

.app-footer-promo__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  background: rgba(79, 195, 247, 0.12);
  border: 1px solid rgba(79, 195, 247, 0.5);
  border-radius: 999px;
  color: #d7f1ff;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.55rem 1rem;
}

.app-footer-promo__toggle--compact {
  padding: 0.35rem 0.8rem;
}

.app-footer-promo__toggle:hover {
  background: rgba(79, 195, 247, 0.1);
}

.app-footer-promo--collapsed {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.app-footer-promo [hidden] {
  display: none !important;
}

.app-footer-promo a:hover {
  text-decoration: underline;
}

/* ── Bottom Tab Bar ────────────────────────── */

.app-tabs {
  display: flex;
  background-color: #1b2838;
  border-top: 1px solid rgba(79, 195, 247, 0.15);
  flex-shrink: 0;
  /* iOS home indicator */
  padding-bottom: env(safe-area-inset-bottom);
}

.app-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.6rem 0.25rem;
  color: #607d8b;
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0;
  transition: color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.app-tab svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  flex-shrink: 0;
}

.app-tab:hover,
.app-tab--active {
  color: #4fc3f7;
}

.app-tab--logout {
  color: #546e7a;
}

.app-tab--logout:hover {
  color: #ef9a9a;
}

/* Keep old .app-container for non-dashboard pages that still use it */
.app-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 20px;
}

/* Public marketing pages */
.main-navigation {
  background: #ffffff;
  border-bottom: 1px solid #e6edf2;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo a,
.nav-menu a {
  color: #263238;
  text-decoration: none;
}

.nav-logo a {
  font-weight: 800;
  font-size: 1.1rem;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-cta a {
  border: 1px solid #b0bec5;
  border-radius: 6px;
  padding: 0.45rem 0.85rem;
  font-weight: 700;
}

.nav-cta--primary a {
  background: #f28c28;
  border-color: #f28c28;
  color: #ffffff;
}

.nav-hamburger {
  display: none;
}

.landing-hero {
  min-height: 74vh;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 4rem 1.25rem;
}

.landing-hero__content {
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
}

.landing-kicker {
  color: #ffcc80;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.landing-hero h1 {
  font-size: 4rem;
  line-height: 1.02;
  margin: 0 0 1rem;
}

.landing-hero__promise {
  font-size: 1.25rem;
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto 1.75rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn-primary,
.hero-actions .btn-primary,
.hero-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border-radius: 6px;
  padding: 0.8rem 1.4rem;
  font-weight: 800;
  text-decoration: none;
}

.btn-primary,
.hero-actions .btn-primary {
  background: #f28c28;
  color: #ffffff;
}

.hero-actions .btn-secondary {
  background: #2f8f46;
  color: #ffffff;
}

.landing-section {
  padding: 4rem 0;
  background: #ffffff;
  color: #263238;
}

.landing-section--intro,
.landing-section--steps {
  background: #f5f8fa;
}

.landing-intro-grid,
.landing-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.landing-section h2 {
  font-size: 2.3rem;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.landing-section p {
  color: #546e7a;
  font-size: 1.05rem;
  line-height: 1.75;
}

.landing-definition,
.landing-preview,
.landing-steps > div {
  background: #ffffff;
  border: 1px solid #dce7ec;
  border-radius: 8px;
  padding: 1.25rem;
}

.landing-definition {
  display: grid;
  gap: 1rem;
}

.landing-definition div {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.75rem;
}

.landing-definition strong {
  color: #0d6b4f;
  font-size: 1.1rem;
}

.landing-definition span {
  color: #455a64;
}

.landing-preview {
  min-height: 250px;
}

.landing-preview__label {
  color: #0d6b4f !important;
  font-size: 0.8rem !important;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.landing-preview h3 {
  color: #263238;
  font-size: 1.45rem;
  line-height: 1.35;
  margin-bottom: 1rem;
}

.landing-preview__buttons,
.landing-score-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.landing-preview__buttons span,
.landing-score-row span {
  flex: 1;
  min-width: 90px;
  border-radius: 6px;
  padding: 0.75rem;
  text-align: center;
  font-weight: 800;
}

.landing-preview__buttons span:first-child {
  background: #f9d5d1;
  color: #9f2a20;
}

.landing-preview__buttons span:last-child {
  background: #cfebd7;
  color: #166734;
}

.landing-score-row span {
  background: #edf4f7;
  color: #263238;
}

.landing-mini-bars {
  display: grid;
  gap: 0.55rem;
  margin: 1.25rem 0;
}

.landing-mini-bars span {
  display: block;
  height: 0.75rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f8f46, #f2c94c);
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.landing-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: #0d6b4f;
  color: #ffffff;
  border-radius: 50%;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.landing-steps h3 {
  margin-bottom: 0.4rem;
}

.landing-final-cta {
  text-align: center;
  margin-top: 1.75rem;
}

.coaching-section {
  padding: 3rem 0;
  text-align: center;
  background: #ffffff;
  color: #263238;
}

.coaching-section h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.coaching-section p {
  max-width: 760px;
  margin: 0 auto;
  color: #546e7a;
}

.app-container h1 {
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  color: #fff;
}

/* Cards */
.card {
  background-color: #1b2838;
  border: 1px solid rgba(79, 195, 247, 0.15);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.card h2 {
  color: #4fc3f7;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.card h3 {
  color: #b0bec5;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: #cfd8dc;
  line-height: 1.6;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #4fc3f7;
  margin-top: 0.5rem;
}

.alert-card {
  border-color: rgba(255, 152, 0, 0.4);
  background-color: rgba(255, 152, 0, 0.1);
}

.info-card {
  border-color: rgba(79, 195, 247, 0.3);
  background-color: rgba(79, 195, 247, 0.08);
}

/* ── Dashboard ─────────────────────────────── */

.dash {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  height: 100%;
  padding: 1.5rem 1.25rem;
  gap: 1.5rem;
  max-width: 480px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Fresh-start / alert banner */
.dash-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #ffe082;
  background: rgba(255, 152, 0, 0.12);
  border: 1px solid rgba(255, 152, 0, 0.3);
}

.dash-banner-btn {
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ff8c00;
  text-decoration: none;
  border: 1px solid #ff8c00;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
}

/* Stats row */
.dash-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #1b2838;
  border: 1px solid rgba(79, 195, 247, 0.15);
  border-radius: 14px;
  padding: 1.25rem 1rem;
}

.dash-stat {
  text-align: center;
  flex: 1;
}

.dash-stat-divider {
  width: 1px;
  height: 3rem;
  background: rgba(79, 195, 247, 0.15);
}

.dash-stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: #4fc3f7;
  line-height: 1;
}

.dash-stat-value--sm {
  font-size: 1.6rem;
}

.dash-stat-value--muted {
  color: rgba(79, 195, 247, 0.3);
}

.dash-stat-label {
  font-size: 0.72rem;
  color: #607d8b;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-top: 0.3rem;
}

.dash-streak-value--active {
  color: #ffb74d;
}

.dash-streak-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.dash-streak-count {
  display: inline-block;
}

.dash-streak-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.34em;
  height: 1.18em;
  line-height: 1;
  isolation: isolate;
}

.dash-streak-badge::after {
  content: "";
  position: absolute;
  inset: 18% 24% 44% 22%;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0));
  pointer-events: none;
  opacity: 0.75;
  transform: rotate(-18deg);
}

.dash-streak-badge__shield {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.35));
}

.dash-streak-badge--bronze .dash-streak-badge__shield {
  fill: #cd7f32;
}

.dash-streak-badge--bronze {
  color: #cd7f32;
}

.dash-streak-badge--silver .dash-streak-badge__shield {
  fill: #c0c0c0;
}

.dash-streak-badge--silver {
  color: #c0c0c0;
}

.dash-streak-badge--gold .dash-streak-badge__shield {
  fill: #d4af37;
}

.dash-streak-badge--gold {
  color: #d4af37;
}

.dash-streak-badge__sparkle {
  position: absolute;
  top: 0.02em;
  left: 0.1em;
  font-size: 0.31em;
  line-height: 1;
  color: rgba(255, 248, 210, 0.92);
  text-shadow: 0 0 3px rgba(255, 248, 181, 0.55);
}

/* Report page streak banner */
.report-streak {
  text-align: center;
  padding: 0.75rem 1rem;
  background: rgba(255, 183, 77, 0.1);
  border: 1px solid rgba(255, 183, 77, 0.3);
  border-radius: 10px;
  color: #ffb74d;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.report-streak--milestone {
  background: rgba(255, 183, 77, 0.18);
  border-color: rgba(255, 183, 77, 0.6);
  font-size: 1.05rem;
}

.dash-streak-milestone {
  font-size: 0.7rem;
  margin-top: 0.25rem;
  font-weight: 700;
  letter-spacing: 0;
}

.dash-streak-milestone--bronze {
  color: #d7a06a;
}

.dash-streak-milestone--silver {
  color: #d6d9df;
}

.dash-streak-milestone--gold {
  color: #f3d46b;
}

/* Primary action area */
.dash-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Big CTA button */
.dash-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.1rem 2rem;
  background: #4fc3f7;
  color: #0d1b2a;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 14px;
  text-decoration: none;
  letter-spacing: 0;
  box-shadow: 0 4px 20px rgba(79, 195, 247, 0.3);
  transition: background 0.15s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

.dash-cta:active {
  transform: scale(0.97);
  background: #29b6f6;
}

.dash-cta-icon {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Completed state */
.dash-done {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(46, 125, 50, 0.15);
  border: 1px solid rgba(46, 125, 50, 0.35);
  border-radius: 14px;
  width: 100%;
}

.dash-done-icon {
  width: 2rem;
  height: 2rem;
  background: #2e7d32;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.dash-done-text {
  font-size: 1rem;
  font-weight: 600;
  color: #a5d6a7;
}

.dash-link {
  font-size: 0.9rem;
  color: #4fc3f7;
  text-decoration: none;
  font-weight: 500;
}

.dash-link:hover {
  text-decoration: underline;
}

.dash-onboarding {
  background: rgba(79, 195, 247, 0.09);
  border: 1px solid rgba(79, 195, 247, 0.22);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  display: grid;
  gap: 0.35rem;
}

.dash-onboarding strong {
  color: #e3f2fd;
  font-size: 1rem;
}

.dash-onboarding span {
  color: #b0bec5;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Setup / onboarding state */
.dash-setup {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
}

.dash-setup-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.dash-setup-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.dash-setup-sub {
  font-size: 0.95rem;
  color: #b0bec5;
  max-width: 280px;
  margin: 0 0 0.5rem;
}

.setup-header--starter {
  text-align: center;
  margin-bottom: 1rem;
}

.setup-hint--lead {
  max-width: 520px;
  margin: 0.35rem auto 0;
  color: #b0bec5;
}

.setup-starter-goal {
  text-align: center;
  margin-top: 1rem;
  color: #90a4ae;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Keep old dashboard-grid for non-dashboard pages */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

/* Ratio Colors */
.ratio-green { color: #00e676 !important; }
.ratio-yellow { color: #ffd740 !important; }
.ratio-red { color: #ff5252 !important; }

/* Buttons */
.btn-accent {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #4fc3f7;
  color: #0d1b2a;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-accent:hover {
  background-color: #81d4fa;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-secondary {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: transparent;
  color: #4fc3f7;
  text-decoration: none;
  border: 1px solid #4fc3f7;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-secondary:hover {
  background-color: rgba(79, 195, 247, 0.1);
}

.btn-danger {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #ff5252;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-danger:hover {
  background-color: #ff1744;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.btn-remove {
  background: none;
  border: 1px solid #ff5252;
  color: #ff5252;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.btn-remove:hover {
  background-color: rgba(255, 82, 82, 0.1);
}

/* Forms */
.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  color: #b0bec5;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="time"],
.form-field textarea,
.form-field select,
.setup-form input[type="text"],
.setup-form input[type="email"],
.setup-form input[type="time"],
.setup-form select {
  width: 100%;
  padding: 0.7rem;
  background-color: #0d1b2a;
  border: 1px solid rgba(79, 195, 247, 0.3);
  border-radius: 6px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus,
.setup-form input:focus,
.setup-form select:focus {
  border-color: #4fc3f7;
}

.form-field textarea {
  min-height: 10rem;
  resize: vertical;
}

.feedback-page {
  max-width: 720px;
}

.feedback-page__intro {
  color: #cfd8dc;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.feedback-card {
  margin-top: 1rem;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Flash Messages (App) */
.flash-notice-app {
  background-color: rgba(0, 230, 118, 0.15);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: #00e676;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.flash-alert-app {
  background-color: rgba(255, 82, 82, 0.15);
  border: 1px solid rgba(255, 82, 82, 0.3);
  color: #ff5252;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

/* Progress Bar */
.setup-header {
  margin-bottom: 2rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #1b2838;
  border-radius: 4px;
  overflow: hidden;
  margin: 1rem 0 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4fc3f7, #00e676);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  color: #607d8b;
  font-size: 0.85rem;
}

/* Aegis Model Banner */
.aegis-model-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background-color: rgba(79, 195, 247, 0.08);
  border: 1px solid rgba(79, 195, 247, 0.25);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.aegis-model-banner .aegis-model-icon {
  color: #4fc3f7;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.aegis-model-banner p {
  color: #cfd8dc;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.aegis-model-banner a {
  color: #4fc3f7;
  text-decoration: underline;
  font-weight: 500;
}

.aegis-model-banner a:hover {
  color: #81d4fa;
}

/* Rank Toggle Group */
.rank-toggle-group {
  display: inline-flex;
  gap: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(79, 195, 247, 0.3);
}

.rank-toggle {
  cursor: pointer;
  margin: 0;
}

.rank-toggle input[type="radio"] {
  display: none;
}

.rank-toggle span {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background-color: #0d1b2a;
  color: #b0bec5;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border-right: 1px solid rgba(79, 195, 247, 0.2);
}

.rank-toggle:last-child span {
  border-right: none;
}

.rank-toggle input[type="radio"]:checked + span {
  background-color: rgba(79, 195, 247, 0.2);
  color: #4fc3f7;
}

.rank-toggle:hover span {
  background-color: rgba(79, 195, 247, 0.1);
}

/* Setup Wizard */
.setup-form {
  margin-top: 1rem;
}

.setup-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(79, 195, 247, 0.1);
}

.setup-hint {
  color: #607d8b;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.action-entry {
  background-color: rgba(79, 195, 247, 0.05);
  border: 1px solid rgba(79, 195, 247, 0.1);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

/* Dimension Headers */
.dimension-header {
  color: #4fc3f7;
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(79, 195, 247, 0.2);
}

.sub-dimension-header {
  color: #b0bec5;
  font-size: 1rem;
  margin: 1rem 0 0.75rem;
  font-weight: 500;
}

.sub-dimension-section {
  margin-bottom: 0.5rem;
}

/* Review Cards */
.review-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.review-action-info {
  flex: 1;
}

.review-action-name {
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
}

.review-action-desc {
  display: block;
  color: #607d8b;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.review-buttons {
  display: flex;
  gap: 0.75rem;
}

.review-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.review-btn input[type="radio"] {
  display: none;
}

.review-btn span {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.review-yes span {
  background-color: rgba(0, 230, 118, 0.15);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.review-yes input:checked + span {
  background-color: #00e676;
  color: #0d1b2a;
}

.review-no span {
  background-color: rgba(255, 82, 82, 0.15);
  color: #ff5252;
  border: 1px solid rgba(255, 82, 82, 0.3);
}

.review-no input:checked + span {
  background-color: #ff5252;
  color: #fff;
}

/* Review Summary */
.review-dimension {
  margin-bottom: 1.5rem;
}

.review-sub-dimension {
  margin-left: 1rem;
  margin-bottom: 1rem;
}

.review-sub-dimension h4 {
  color: #607d8b;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.review-action {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(79, 195, 247, 0.05);
}

.review-action-rank {
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.rank-a { background-color: rgba(0, 230, 118, 0.2); color: #00e676; }
.rank-b { background-color: rgba(255, 215, 64, 0.2); color: #ffd740; }
.rank-c { background-color: rgba(176, 190, 197, 0.2); color: #b0bec5; }

/* Alert Items */
.alert-item {
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.alert-warning { color: #ffd740; }
.alert-danger { color: #ff5252; }

/* Actions Management */
.action-manage-card {
  padding: 1rem;
}

.action-edit-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.action-fields {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  gap: 0.75rem;
  align-items: end;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.add-action-form {
  margin-bottom: 1rem;
}

.add-action-form summary {
  cursor: pointer;
  margin-bottom: 0.75rem;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  padding: 1rem;
  background-color: rgba(79, 195, 247, 0.05);
  border-radius: 8px;
}

.inline-form .form-field {
  margin-bottom: 0;
  flex: 1;
  min-width: 150px;
}

/* Auth Pages */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 2rem;
}

.auth-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 2.5rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.auth-card h1 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 0.25rem;
  text-align: center;
}

.auth-subtitle {
  text-align: center;
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Google SSO button */
.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  color: #333;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 1rem;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.auth-google-btn:hover {
  background: #f8f8f8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0;
  color: #bbb;
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e5e5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-field label {
  display: block;
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.auth-field input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.auth-field input:focus {
  border-color: #4fc3f7;
}

.auth-submit {
  padding: 0.85rem;
  background-color: #4fc3f7;
  color: #0d1b2a;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background-color 0.3s ease;
}

.auth-submit:hover {
  background-color: #81d4fa;
}

.auth-alert {
  background-color: #f8d7da;
  color: #721c24;
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.auth-link {
  text-align: center;
  margin-top: 1rem;
  color: #666;
  font-size: 0.9rem;
}

.auth-link a {
  color: #4fc3f7;
  text-decoration: none;
  font-weight: 500;
}

.auth-link a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .app-nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .app-nav-menu {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .app-container h1 {
    font-size: 1.4rem;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .review-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .action-fields {
    grid-template-columns: 1fr;
  }

  .stat-value {
    font-size: 2rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Step Review UI (single-question-at-a-time flow)
   ═══════════════════════════════════════════════════════════════ */

.review-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  /* Full viewport height — prevent page scroll during review */
  min-height: 100dvh;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  touch-action: pan-y; /* JS overrides this for horizontal swipes */
}

.review-intro-card {
  width: min(560px, 100%);
  margin: auto;
  background: #1a2f45;
  border: 1px solid rgba(79, 195, 247, 0.24);
  border-radius: 8px;
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.review-intro-card__eyebrow {
  color: #4fc3f7;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0;
}

.review-intro-card h1 {
  color: #ffffff;
  font-size: 1.75rem;
  line-height: 1.2;
  margin: 0;
}

.review-intro-card p {
  color: #cfd8dc;
  line-height: 1.65;
  margin: 0;
}

.review-intro-card__note {
  color: #90a4ae !important;
  font-size: 0.95rem;
}

.review-intro-card__button {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}

.review-flow {
  display: contents;
}

.review-flow.review-flow--hidden {
  display: none;
}

.review-progress-wrap {
  text-align: center;
}

.review-covering-note {
  color: #4fc3f7;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.review-progress-track {
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
}

.review-progress-fill {
  height: 100%;
  background: #4fc3f7;
  border-radius: 99px;
  transition: width 0.3s ease;
}

.review-progress-label {
  font-size: 0.85rem;
  color: #b0bec5;
  margin-top: 0.4rem;
}

.review-question-card {
  background: #1a2f45;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  /* Swipe animation base */
  will-change: transform, opacity;
  user-select: none;
  -webkit-user-select: none;
}

.review-question--hidden {
  display: none;
}

.review-question--active {
  display: flex;
}

/* Swipe hint overlay */
.swipe-hint {
  position: fixed;
  bottom: 7rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.swipe-hint--visible {
  opacity: 1;
  transform: translateY(0);
}

.swipe-hint-inner {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 99px;
  padding: 0.6rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0;
  border: 1px solid rgba(255,255,255,0.12);
}

.swipe-hint-arrow {
  font-size: 1.1rem;
}

.swipe-hint-arrow--left { color: #ef9a9a; }
.swipe-hint-arrow--right { color: #a5d6a7; }

.review-swipe-label {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0;
  margin: 0;
  padding-bottom: 0.5rem;
}

.review-dimension-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0;
  color: #4fc3f7;
  font-weight: 600;
}

.review-question-text {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  margin: 0;
}

.review-question-desc {
  font-size: 0.9rem;
  color: #b0bec5;
  margin: 0;
}

.review-question-number {
  position: absolute;
  bottom: 1rem;
  right: 1.25rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

.review-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.review-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1.25rem 2.5rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  min-width: 120px;
}

.review-btn:active {
  transform: scale(0.96);
}

.review-btn-icon {
  font-size: 1.5rem;
}

.review-btn--yes {
  background: #2e7d32;
  color: #fff;
  box-shadow: 0 4px 16px rgba(46,125,50,0.4);
}

.review-btn--yes:hover {
  background: #388e3c;
  box-shadow: 0 6px 20px rgba(46,125,50,0.5);
}

.review-btn--no {
  background: #c62828;
  color: #fff;
  box-shadow: 0 4px 16px rgba(198,40,40,0.4);
}

.review-btn--no:hover {
  background: #d32f2f;
  box-shadow: 0 6px 20px rgba(198,40,40,0.5);
}

.review-btn--back {
  background: #455a64;
  color: #fff;
  box-shadow: 0 4px 16px rgba(69,90,100,0.35);
}

.review-btn--back:hover {
  background: #546e7a;
  box-shadow: 0 6px 20px rgba(69,90,100,0.45);
}

.review-btn--disabled,
.review-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.review-btn:disabled:active {
  transform: none;
}

@media (max-width: 480px) {
  .review-btn {
    padding: 1rem 1.75rem;
    min-width: 100px;
  }
  .review-question-text {
    font-size: 1.1rem;
  }
}

.preset-preview {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: rgba(79,195,247,0.05);
  border: 1px solid rgba(79,195,247,0.15);
  border-radius: 6px;
  color: #b0bec5;
  font-size: 0.85rem;
  line-height: 1.5;
  resize: none;
  cursor: default;
}

/* ── Footer back-link to aegis-program.com ─── */
.app-footer-link {
  text-align: center;
  padding: 0.4rem 0;
  flex-shrink: 0;
  background-color: #1b2838;
  border-top: 1px solid rgba(79, 195, 247, 0.08);
}

.app-footer-link a {
  font-size: 0.72rem;
  color: #546e7a;
  text-decoration: none;
  letter-spacing: 0;
  transition: color 0.15s ease;
}

.app-footer-link a:hover {
  color: #4fc3f7;
}

/* ===== REPORT PAGE ===== */
.report-section { margin: 1.5rem 0; }
.report-coach-note {
  background: rgba(79, 195, 247, 0.09);
  border: 1px solid rgba(79, 195, 247, 0.22);
  border-radius: 8px;
  padding: 1.1rem;
}

.report-coach-note__eyebrow {
  color: #4fc3f7 !important;
  font-size: 0.78rem !important;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.report-coach-note h2 {
  color: #ffffff;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.report-coach-note p {
  color: #cfd8dc;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.report-coach-note strong {
  color: #a5d6a7;
  line-height: 1.5;
}

.report-aegis-model {
  margin: 2.25rem 0 1rem;
  padding-top: 1rem;
}
.report-aegis-model__frame {
  max-width: 980px;
  margin: 0 auto;
}
.report-aegis-model__svg {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.report-aegis-model__label {
  font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
  font-weight: 700;
  fill: #4E3D2C;
}
.report-aegis-model__core-name {
  font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
  font-size: 72px;
  font-weight: 700;
  fill: #433324;
  letter-spacing: 0;
}
.report-aegis-model__core-title {
  font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
  font-size: 28px;
  font-weight: 600;
  fill: #7D6956;
  letter-spacing: 0;
}
.report-section-title { font-size: 1.1rem; font-weight: 700; color: #374151; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0; }
.report-section-title--contrast { color: #f8fafc; }
.report-hint { font-size: 0.82rem; color: #6b7280; margin-bottom: 0.75rem; }

/* Score pills (today's summary) */
.report-scores { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.score-pill { display: flex; flex-direction: column; align-items: center; padding: 0.75rem 1.25rem; border-radius: 12px; min-width: 70px; }
.score-pill__label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0; opacity: 0.75; }
.score-pill__value { font-size: 1.6rem; font-weight: 800; }
.score-pill--pf { background: #dcfce7; color: #166534; }
.score-pill--pci { background: #fef9c3; color: #854d0e; }
.score-pill--ratio { background: #f1f5f9; color: #1e293b; }
.score-pill--green { background: #dcfce7 !important; color: #166534 !important; }
.score-pill--yellow { background: #fef9c3 !important; color: #854d0e !important; }
.score-pill--red { background: #fee2e2 !important; color: #991b1b !important; }

.report-ratio-guide {
  margin: -0.25rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.report-ratio-guide__item {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 600;
}

.report-ratio-guide__item--green { color: #86efac; }
.report-ratio-guide__item--yellow { color: #fde68a; }
.report-ratio-guide__item--red { color: #fca5a5; }

/* 14-day heat map */
.heat-map { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.heat-map__header { display: grid; grid-template-columns: 1fr 80px 80px; background: #f9fafb; padding: 0.55rem 1rem; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0; color: #6b7280; }
.heat-map__col-label { text-align: center; }
.heat-map__col-label--pf { color: #166534; }
.heat-map__col-label--pci { color: #854d0e; }
.heat-map__dim-label--contrast { color: #e5e7eb; }
.heat-map__row { display: grid; grid-template-columns: 1fr 80px 80px; padding: 0.5rem 1rem; border-top: 1px solid #f3f4f6; align-items: center; }
.heat-map__row:hover { background: #fafafa; }
.heat-map__dim-name { font-size: 0.9rem; font-weight: 500; color: #374151; }
.heat-map__dim-name--contrast { color: #e5e7eb; font-weight: 600; }
.heat-map__cell { text-align: center; font-size: 1rem; font-weight: 700; padding: 0.25rem 0.5rem; border-radius: 6px; }
.heat-map__cell--green { background: #dcfce7; color: #166534; }
.heat-map__cell--yellow { background: #fef9c3; color: #854d0e; }
.heat-map__cell--red { background: #fee2e2; color: #991b1b; }

/* Heat map legend */
.heat-map-legend { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 0.75rem; font-size: 0.78rem; color: #6b7280; }
.legend-item--green { color: #166534; }
.legend-item--yellow { color: #854d0e; }
.legend-item--red { color: #991b1b; }

/* ===== REVIEW EXTRAS (stress score + red zone) ===== */

/* PCI yes button — amber/yellow (concerning) */
.btn-yes--pci { background: #f59e0b; color: #fff; }
.btn-yes--pci.active, .btn-yes--pci:hover { background: #d97706; }

/* PF yes button — green (positive) */
.btn-yes--pf { background: #16a34a; color: #fff; }
.btn-yes--pf.active, .btn-yes--pf:hover { background: #15803d; }

/* Likert scale */
.likert-scale { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.likert-option { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; cursor: pointer; padding: 0.5rem 0.75rem; border: 2px solid #e5e7eb; border-radius: 8px; min-width: 60px; }
.likert-option input[type=radio] { display: none; }
.likert-option.selected, .likert-option:has(input:checked) { border-color: #6366f1; background: #eef2ff; }
.likert-label { font-size: 1.25rem; font-weight: 700; }
.likert-desc { font-size: 0.65rem; color: #6b7280; text-align: center; }

/* Red zone extra question */
.review-extra {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.review-question--extra {
  color: #0f172a;
  font-weight: 600;
}

.review-question--extra a {
  color: #1d4ed8;
}

.review-extra--redzone .btn-yes { background: #ef4444; color: #fff; }
.review-extra--redzone .btn-yes.active { background: #dc2626; }

/* Extras section wrapper */
.review-extras-section { padding: 1rem 1.25rem; overflow-y: auto; max-height: calc(100dvh - 80px); }

/* Submit button for extras */
.review-btn--submit { background: #6366f1; color: #fff; border: none; border-radius: 12px; padding: 0.9rem 2.5rem; font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.review-btn--submit:hover { background: #4f46e5; }

/* yes/no buttons in extras (red zone) */
.yesno-buttons { display: flex; gap: 0.75rem; margin-top: 0.75rem; }
.yesno-buttons .btn-yes, .yesno-buttons .btn-no { padding: 0.6rem 1.5rem; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; }
.yesno-buttons .btn-no { background: #e5e7eb; color: #374151; }
.yesno-buttons .btn-no.active { background: #9ca3af; color: #fff; }

/* ===== 14-DAY DAILY TIMELINE ===== */
.timeline-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.timeline-table { min-width: 420px; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.timeline-header { display: grid; grid-template-columns: 70px 60px 60px 60px 80px; background: #f9fafb; padding: 0.5rem 1rem; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0; color: #6b7280; gap: 0.5rem; }
.timeline-header__date--contrast { color: #e5e7eb; }
.timeline-row { display: grid; grid-template-columns: 70px 60px 60px 60px 80px; padding: 0.45rem 1rem; border-top: 1px solid #f3f4f6; align-items: center; gap: 0.5rem; }
.timeline-row:first-of-type { background: #f0f9ff; font-weight: 600; }
.timeline-row:hover { background: #fafafa; }
.timeline-date { font-size: 0.82rem; color: #374151; }
.timeline-date--contrast { color: #e5e7eb; font-weight: 600; }
.timeline-cell { font-size: 0.9rem; font-weight: 600; text-align: center; padding: 0.2rem 0.4rem; border-radius: 5px; }
.timeline-cell--green  { background: #dcfce7; color: #166534; }
.timeline-cell--yellow { background: #fef9c3; color: #854d0e; }
.timeline-cell--red    { background: #fee2e2; color: #991b1b; }
.timeline-cell--muted  { color: #9ca3af; font-weight: 400; }
.timeline-cell--stress { background: none !important; }

/* Stress dots: 0 = cool grey, 3 = amber, 5 = red */
.stress-dot { display: inline-block; width: 28px; height: 28px; line-height: 28px; border-radius: 50%; font-size: 0.8rem; font-weight: 700; text-align: center; color: #fff; }
.stress-dot--0 { background: #d1d5db; color: #374151; }
.stress-dot--1 { background: #a3e635; color: #365314; }
.stress-dot--2 { background: #86efac; color: #166534; }
.stress-dot--3 { background: #fbbf24; color: #78350f; }
.stress-dot--4 { background: #f97316; color: #fff; }
.stress-dot--5 { background: #ef4444; color: #fff; }

/* Red zone badges */
.redzone-badge { font-size: 0.75rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 4px; }
.redzone-badge--yes { background: #fee2e2; color: #991b1b; }
.redzone-badge--no  { background: #dcfce7; color: #166534; }

@media (max-width: 760px) {
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: 0;
    padding: 0;
  }

  .nav-hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #263238;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e6edf2;
    padding: 0.75rem 1rem 1rem;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu--open {
    display: flex;
  }

  .nav-container {
    position: relative;
  }

  .landing-hero {
    min-height: 68vh;
    align-items: flex-end;
  }

  .landing-hero h1 {
    font-size: 2.5rem;
  }

  .landing-section h2 {
    font-size: 1.8rem;
  }

  .landing-intro-grid,
  .landing-preview-grid,
  .landing-steps {
    grid-template-columns: 1fr;
  }

  .landing-section {
    padding: 2.75rem 0;
  }

  .landing-definition div {
    grid-template-columns: 1fr;
  }

  .review-buttons {
    gap: 0.5rem;
  }

  .review-btn {
    min-width: 0;
    flex: 1;
  }
}
