/* ── Reset & Base ─────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #f8f9fb;
  --color-surface: #ffffff;
  --color-primary: #4f46e5;
  --color-primary-hover: #4338ca;
  --color-text: #1e1e2f;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-success: #16a34a;
  --color-error: #dc2626;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  color-scheme: light;
}

html {
  font-size: 16px;
}

/* Make the `hidden` attribute win over component display rules (e.g. grid). */
[hidden] {
  display: none !important;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Theme Toggle Button ──────────────────────────── */
.theme-toggle-btn {
  position: fixed;
  top: 1.15rem;
  right: 1.5rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.theme-toggle-btn:hover {
  background: #f1f3f6;
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.theme-toggle-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.theme-icon {
  display: block;
  pointer-events: none;
}

/* Light mode (default): moon icon visible, sun icon hidden */
.theme-icon--sun {
  display: none;
}
.theme-icon--moon {
  display: block;
  color: #4b5563;
}

/* Dark mode: sun icon visible, moon icon hidden */
[data-theme="dark"] .theme-toggle-btn {
  background: rgba(22, 26, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  color: #f3f4f6;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .theme-toggle-btn:hover {
  background: rgba(30, 36, 52, 0.95);
  border-color: rgba(255, 255, 255, 0.25);
  border-top-color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .theme-icon--sun {
  display: block;
  color: #fbbf24;
}

[data-theme="dark"] .theme-icon--moon {
  display: none;
}

@media (max-width: 900px) {
  .theme-toggle-btn {
    top: 11px;
    right: 12px;
    width: 36px;
    height: 36px;
    z-index: 40;
  }
}

/* ── Layout helpers ──────────────────────────────── */
.page-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 420px;
  padding: 2.5rem 2rem;
}

/* ── Typography ──────────────────────────────────── */
h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.subtitle {
  color: var(--color-text-muted);
  font-size: 0.925rem;
  margin-bottom: 1.75rem;
}

/* ── Form elements ───────────────────────────────── */
label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

input[type="email"] {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
}

input[type="email"]:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.65rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn:hover {
  background: var(--color-primary-hover);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Feedback messages ───────────────────────────── */
.msg {
  margin-top: 1rem;
  padding: 0.625rem 0.875rem;
  border-radius: 8px;
  font-size: 0.875rem;
  display: none;            /* shown via JS */
}

.msg--success {
  background: #f0fdf4;
  color: var(--color-success);
  border: 1px solid #bbf7d0;
}

.msg--error {
  background: #fef2f2;
  color: var(--color-error);
  border: 1px solid #fecaca;
}

/* ── App Layout & Sidebar ────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
  background: var(--color-bg);
}

.mobile-topbar {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

.sidebar {
  width: 270px;
  flex-shrink: 0;
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 1.5rem 1rem 1.25rem;
  z-index: 40;
}

.sidebar-brand {
  padding: 0.35rem 0.6rem 1.35rem;
  display: flex;
  align-items: center;
}

.sidebar-brand__text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.sidebar-logo {
  height: 22px;
  max-height: 24px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}

.login-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.75rem;
  background: transparent;
}

.login-logo {
  height: 28px;
  max-height: 32px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
  background: transparent;
}

.mobile-logo {
  height: 20px;
  max-height: 22px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  background: transparent;
}

/* In dark mode, invert logo to show as white on dark background */
[data-theme="dark"] .sidebar-logo,
[data-theme="dark"] .mobile-logo,
[data-theme="dark"] .login-logo {
  filter: invert(1);
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: #f8f9fb;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  margin-bottom: 1.25rem;
}

.sidebar-profile__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1e1e2f;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.825rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-profile__info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-profile__name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-profile__revenue-pill {
  display: inline-block;
  align-self: flex-start;
  padding: 0.15rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #2E9E78;
  background: rgba(46, 158, 120, 0.1);
  border: 1px solid rgba(46, 158, 120, 0.25);
  border-radius: 9999px;
  margin: 0.2rem 0;
}

.sidebar-profile__subtitle {
  font-size: 0.725rem;
  color: var(--color-text-muted);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-group {
  display: flex;
  flex-direction: column;
}

.nav-group-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  padding: 0 0.75rem;
  margin-bottom: 0.35rem;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.nav-item:hover {
  background: #f1f5f9;
  color: var(--color-text);
}

.nav-item.is-active {
  background: #1e1e2f;
  color: #ffffff;
  font-weight: 600;
}

.nav-item.is-active .nav-icon {
  stroke: #ffffff;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
}

.nav-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
  opacity: 0.55;
  margin-left: auto;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-footer .btn-logout {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.sidebar-footer .btn-logout:hover {
  background: #fef2f2;
  color: var(--color-error);
}

/* ── Main Content Area ───────────────────────────── */
.main-content {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 2.5rem 3.5rem;
}

.view-header {
  margin-bottom: 1.5rem;
}

.view-title {
  font-size: 1.75rem;
  font-weight: 700;
}

.view-header h1 {
  font-size: 1.75rem;
}

/* ── Coming Soon Card ────────────────────────────── */
.coming-soon-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 520px;
  margin-top: 0.5rem;
}

.coming-soon-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.coming-soon-icon svg {
  width: 24px;
  height: 24px;
}

.coming-soon-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.coming-soon-card p {
  color: var(--color-text-muted);
  font-size: 0.925rem;
  line-height: 1.6;
}

/* ── Monthly Submission Banner ────────────────────── */
.submission-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.9rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.75rem;
  box-sizing: border-box;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.submission-banner__main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
  min-width: 0;
}

.submission-banner__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}

.submission-banner__icon-wrap svg {
  width: 20px;
  height: 20px;
}

.submission-banner__text {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}

.submission-banner__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.submission-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.95rem;
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  font-family: inherit;
  text-decoration: none;
}

/* Green Banner (Days 1–4) */
.submission-banner--green {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.submission-banner--green .submission-banner__icon-wrap {
  background: rgba(34, 197, 94, 0.16);
  color: #16a34a;
}

.submission-banner--green .submission-banner__text {
  color: #14532d;
}

.submission-banner--green .submission-banner__btn--pnl {
  background: #ffffff;
  border: 1px solid #86efac;
  color: #166534;
}

.submission-banner--green .submission-banner__btn--pnl:hover {
  background: #dcfce7;
  border-color: #4ade80;
}

.submission-banner--green .submission-banner__btn--kpi {
  background: #16a34a;
  border: 1px solid #16a34a;
  color: #ffffff;
}

.submission-banner--green .submission-banner__btn--kpi:hover {
  background: #15803d;
  border-color: #15803d;
}

/* Red Banner (Day 5 onwards: URGENT overdue) */
.submission-banner--red {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.submission-banner--red .submission-banner__icon-wrap {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

.submission-banner--red .submission-banner__text {
  color: #7f1d1d;
  font-weight: 700;
}

.submission-banner--red .submission-banner__btn--pnl {
  background: #ffffff;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.submission-banner--red .submission-banner__btn--pnl:hover {
  background: #fee2e2;
  border-color: #f87171;
}

.submission-banner--red .submission-banner__btn--kpi {
  background: #dc2626;
  border: 1px solid #dc2626;
  color: #ffffff;
}

.submission-banner--red .submission-banner__btn--kpi:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

/* Dark Mode Overrides for Banner */
[data-theme="dark"] .submission-banner--green {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .submission-banner--green .submission-banner__icon-wrap {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

[data-theme="dark"] .submission-banner--green .submission-banner__text {
  color: #d1fae5;
}

[data-theme="dark"] .submission-banner--green .submission-banner__btn--pnl {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(16, 185, 129, 0.4);
  color: #d1fae5;
}

[data-theme="dark"] .submission-banner--green .submission-banner__btn--pnl:hover {
  background: rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .submission-banner--green .submission-banner__btn--kpi {
  background: #10b981;
  border-color: #10b981;
  color: #062b1a;
  font-weight: 700;
}

[data-theme="dark"] .submission-banner--green .submission-banner__btn--kpi:hover {
  background: #34d399;
  border-color: #34d399;
}

[data-theme="dark"] .submission-banner--red {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
}

[data-theme="dark"] .submission-banner--red .submission-banner__icon-wrap {
  background: rgba(239, 68, 68, 0.22);
  color: #f87171;
}

[data-theme="dark"] .submission-banner--red .submission-banner__text {
  color: #fecaca;
}

[data-theme="dark"] .submission-banner--red .submission-banner__btn--pnl {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fecaca;
}

[data-theme="dark"] .submission-banner--red .submission-banner__btn--pnl:hover {
  background: rgba(239, 68, 68, 0.2);
}

[data-theme="dark"] .submission-banner--red .submission-banner__btn--kpi {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  font-weight: 700;
}

[data-theme="dark"] .submission-banner--red .submission-banner__btn--kpi:hover {
  background: #f87171;
  border-color: #f87171;
}

/* Admin Overdue Badge */
.admin-badge-overdue {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.28);
  padding: 0.1rem 0.5rem;
  border-radius: 9999px;
  line-height: 1.3;
  margin-left: 0.35rem;
  vertical-align: middle;
}

[data-theme="dark"] .admin-badge-overdue {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.38);
}

/* Responsive Banner */
@media (max-width: 680px) {
  .submission-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }
  .submission-banner__actions {
    width: 100%;
  }
  .submission-banner__btn {
    flex: 1;
    text-align: center;
  }
}

/* ── Overview Section ────────────────────────────── */
.overview-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: stretch;
}

.overview-hero__left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.overview-hero__right {
  display: flex;
  flex-direction: column;
}

.overview-welcome-block {
  margin-bottom: 0.25rem;
}

.overview-heading {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.overview-subhead {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.overview-subhead__dot {
  color: var(--color-border);
}

.revenue-pill {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  font-size: 0.725rem;
  font-weight: 600;
  color: #2E9E78;
  background: rgba(46, 158, 120, 0.1);
  border: 1px solid rgba(46, 158, 120, 0.25);
  border-radius: 9999px;
}

.overview-stacked-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.overview-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.4rem;
}

.overview-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
}

.overview-card__title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.overview-card__icon {
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.overview-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
}

.card-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2E9E78;
  text-decoration: none;
}

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

.badge-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  background: rgba(46, 158, 120, 0.12);
  color: #2E9E78;
  border-radius: 6px;
}

.announcement-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.announcement-text {
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.5;
}

.announcement-link {
  font-size: 0.825rem;
  font-weight: 600;
  color: #2E9E78;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

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

.overview-empty-state {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ── Overview: This Week Card ────────────────────────── */
.this-week-card {
  display: flex;
  flex-direction: column;
}

.this-week-card__body {
  display: flex;
  flex-direction: column;
}

.this-week-meta {
  margin-bottom: 0.5rem;
}

.this-week-phase-text {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  line-height: 1.35;
}

.this-week-task-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.this-week-task-list .task {
  padding: 0;
  border-top: none;
}

.this-week-complete-wrap {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.this-week-complete-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #15803d;
  margin: 0;
  line-height: 1.45;
}

.this-week-complete-btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: #2E9E78;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.15s, transform 0.15s;
}

.this-week-complete-btn:hover {
  background: #248262;
  transform: translateY(-1px);
}

a.quick-action-card {
  text-decoration: none;
  color: inherit;
}

/* Revenue & Profit Card */
.revenue-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.revenue-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.revenue-card__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rev-profit-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--color-text-muted);
  flex-wrap: wrap;
  margin-top: 0.65rem;
}

.rev-profit-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.rev-profit-legend__dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.rev-profit-legend__dot--rev {
  background: #2E9E78;
}

.rev-profit-legend__dot--profit {
  background: #3B82F6;
}

.rev-profit-legend__dot--before {
  background: #94a3b8;
}

.rev-profit-metrics {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 0.85rem;
}

.rev-profit-metric {
  flex: 1 1 0;
  min-width: 0;
}

.rev-profit-metric__label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  line-height: 1.2;
}

.rev-profit-metric__sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: none;
  line-height: 1.2;
  margin-top: 0.15rem;
  margin-bottom: 0.4rem;
  white-space: nowrap;
}

.rev-profit-metric .revenue-card__amount {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.rev-profit-metric__badge-wrap {
  display: flex;
  align-items: center;
}

.revenue-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #2E9E78;
  background: rgba(46, 158, 120, 0.1);
  border-radius: 9999px;
}

.revenue-chart-wrap {
  position: relative;
  width: 100%;
  margin-top: auto;
}

.rev-profit-chart-svg {
  width: 100%;
  height: 195px;
  display: block;
  overflow: visible;
}

.chart-grid-line {
  stroke: var(--color-border);
  stroke-dasharray: 4 4;
  stroke-width: 1;
}

.chart-grid-line--zero {
  stroke: #cbd5e1;
  stroke-dasharray: none;
  stroke-width: 1.5;
}

.chart-y-axis-label {
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  fill: var(--color-text-muted);
}

.chart-month-label {
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  fill: var(--color-text-muted);
}

.chart-empty-label {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  fill: var(--color-text-muted);
}

.chart-divider-line {
  stroke: #94a3b8;
  stroke-width: 1.25;
  stroke-dasharray: 3 3;
}

.chart-divider-badge-bg {
  fill: #ffffff;
  stroke: #cbd5e1;
  stroke-width: 1;
}

.chart-divider-label {
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  fill: #475569;
}

/* Light mode bar colors */
.chart-col--rev {
  fill: #2E9E78;
}

.chart-col--profit {
  fill: #3B82F6;
}

.chart-col--before-rev {
  fill: #94a3b8;
}

.chart-col--before-profit {
  fill: #cbd5e1;
}

.chart-col--rev,
.chart-col--profit,
.chart-col--before-rev,
.chart-col--before-profit {
  transition: opacity 0.15s ease;
  cursor: pointer;
}

.chart-col--rev:hover,
.chart-col--profit:hover,
.chart-col--before-rev:hover,
.chart-col--before-profit:hover {
  opacity: 0.82;
}

/* Sections & Titles */
.overview-section {
  margin-bottom: 2rem;
}

.overview-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

/* Quick Actions */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.quick-action-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  font: inherit;
}

.quick-action-card:hover {
  transform: translateY(-2px);
  border-color: #2E9E78;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.quick-action-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f8f9fb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-action-card__icon svg {
  width: 20px;
  height: 20px;
}

.quick-action-card__body {
  flex: 1;
  min-width: 0;
}

.quick-action-card__title {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.quick-action-card__desc {
  font-size: 0.775rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.quick-action-card__arrow {
  width: 18px;
  height: 18px;
  stroke: var(--color-text-muted);
  flex-shrink: 0;
  transition: transform 0.15s;
}

.quick-action-card:hover .quick-action-card__arrow {
  transform: translateX(3px);
  stroke: #2E9E78;
}

/* Stat grids */
.overview-stat-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.overview-stat-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
}

.stat-card__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.stat-card__val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.1;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.stat-card__sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.3;
}

/* Overview Toast */
.overview-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #1e1e2f;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 100;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.overview-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── Classroom ───────────────────────────────────── */
.classroom {
  margin-top: 0;
}

.section-heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.classroom-empty {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.course-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.course-card:hover,
.course-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  outline: none;
}

.course-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--color-border);
  display: block;
}

.course-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1.125rem 1.125rem;
}

.course-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.course-card__desc {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  flex: 1;
}

.course-card__meta {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-primary);
}

.btn-back {
  background: none;
  border: none;
  color: var(--color-primary);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1rem;
}

.btn-back:hover {
  text-decoration: underline;
}

.course-view__title {
  font-size: 1.375rem;
  font-weight: 700;
}

.course-view__desc {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.lesson-player {
  margin-bottom: 1.5rem;
  scroll-margin-top: 1rem;
}

.lesson-player__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}

.lesson-player__frame video,
.lesson-player__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Video Coming Soon Placeholder ── */
.video-coming-soon {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  text-align: center;
  padding: 1.5rem;
}

.video-coming-soon__icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(46, 158, 120, 0.16);
  border: 1px solid rgba(46, 158, 120, 0.35);
  color: #2E9E78;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.video-coming-soon__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.35rem;
}

.video-coming-soon__subtitle {
  font-size: 0.875rem;
  color: #94a3b8;
  max-width: 320px;
  margin: 0;
  line-height: 1.45;
}

.lesson-player__info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.875rem;
}

.lesson-player__title {
  font-weight: 600;
}

.lesson-player__desc {
  margin-top: 0.25rem;
  color: var(--color-text-muted);
  font-size: 0.925rem;
  line-height: 1.55;
}

.btn-complete {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-complete:hover {
  background: rgba(79, 70, 229, 0.08);
}

.btn-complete.is-done {
  color: #fff;
  background: var(--color-success);
  border-color: var(--color-success);
}

.btn-complete.is-done:hover {
  background: #15803d;
}

.btn-complete:disabled {
  opacity: 0.6;
  cursor: wait;
}

@media (max-width: 520px) {
  .lesson-player__info {
    flex-direction: column;
  }
}

.progress-error {
  margin-bottom: 1rem;
  padding: 0.625rem 0.875rem;
  border-radius: 8px;
  font-size: 0.875rem;
  background: #fef2f2;
  color: var(--color-error);
  border: 1px solid #fecaca;
}

.progress-bar {
  margin-top: 0.4rem;
  height: 6px;
  border-radius: 999px;
  background: var(--color-border);
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: inherit;
  transition: width 0.3s;
}

.course-card__meta.is-done {
  color: var(--color-success);
}

.course-card__meta.is-done + .progress-bar .progress-bar__fill {
  background: var(--color-success);
}

.lesson-item.is-complete .lesson-item__num {
  background: var(--color-success);
  border-color: var(--color-success);
  color: #fff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.lesson-list {
  list-style: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.lesson-list li + li {
  border-top: 1px solid var(--color-border);
}

.lesson-list > .classroom-empty {
  padding: 1rem 1.25rem;
}

.module + .module {
  border-top: 1px solid var(--color-border);
}

.module__heading {
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.module__lessons {
  list-style: none;
}

.lesson-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  padding: 0.875rem 1.25rem;
  font: inherit;
  color: inherit;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.lesson-item:hover,
.lesson-item:focus-visible {
  background: var(--color-bg);
  outline: none;
}

.lesson-item.is-active {
  background: rgba(79, 70, 229, 0.08);
}

.lesson-item__num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.lesson-item.is-active .lesson-item__num {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.lesson-item__title {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 500;
}

.lesson-item__duration {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ── Implementation programme ────────────────────── */
.implementation {
  margin-top: 0;
}

/* 1. White card container: 2 columns on desktop, stacked on mobile */
.impl-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2.25rem;
  margin-bottom: 1.25rem;
  display: grid;
  grid-template-columns: 45% 1fr;
  gap: 2.25rem;
  align-items: center;
}

/* Left column: 3 circles in a row with subtle arrows */
.impl-card__left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.phase-circles {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(0.5rem, 1.5vw, 1.25rem);
  width: 100%;
  margin: 0;
  flex-wrap: nowrap;
}

.phase-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
}

.phase-circle-wrapper {
  position: relative;
  width: clamp(74px, 11vw, 98px);
  height: clamp(74px, 11vw, 98px);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 18px color-mix(in srgb, var(--phase) 28%, transparent),
              0 0 10px color-mix(in srgb, var(--phase) 16%, transparent);
}

.phase-circle-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.phase-circle-bg {
  fill: #f3f4f6;
  fill: color-mix(in srgb, var(--phase) 14%, #ffffff);
}

.phase-circle-liquid-group {
  transform: translateY(110px);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.phase-circle-liquid-path {
  fill: var(--phase);
  opacity: 1;
  animation: wave-drift 6s linear infinite;
}

@keyframes wave-drift {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .phase-circle-liquid-path {
    animation: none;
  }
}

.phase-circle-ring {
  fill: none;
  stroke: var(--phase);
  stroke-width: 3.5;
  stroke-opacity: 0.95;
}

.phase-circle-name {
  margin-top: 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--phase);
  text-align: center;
  white-space: nowrap;
}

.phase-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(74px, 11vw, 98px);
  color: var(--color-text-muted);
  opacity: 0.45;
  flex: 0 0 auto;
}

.phase-arrow svg {
  width: clamp(14px, 2vw, 18px);
  height: clamp(14px, 2vw, 18px);
}

/* Right column: Meta, Heading, Desc, Stat boxes, Status line */
.impl-card__right {
  display: flex;
  flex-direction: column;
}

.impl-card__meta {
  margin-bottom: 0.5rem;
}

.pill-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #f3f4f6;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.impl-card__heading {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.impl-card__desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* 2. Phase stat boxes */
.phase-stat-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.phase-stat-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
}

.phase-stat-box__name {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--phase);
  margin-bottom: 0.25rem;
}

.phase-stat-box__pct {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.phase-stat-box__range {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* 3. Status line */
.impl-status-line {
  background: #f8f9fb;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-text);
  border-radius: 6px;
  padding: 0.625rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.4;
}

/* 5. Week selector: one long white rounded bar */
.week-selector {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  padding: 0.35rem 0.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}

.week-btn {
  position: relative;
  padding: 0.55rem 0;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--phase);
  background: transparent;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.week-btn:hover {
  background: color-mix(in srgb, var(--phase) 12%, transparent);
}

.week-btn.is-selected {
  color: #fff;
  background: var(--phase);
  font-weight: 700;
}

.week-btn.is-done::after {
  content: "✓";
  position: absolute;
  top: -4px;
  right: 2px;
  width: 15px;
  height: 15px;
  line-height: 15px;
  font-size: 9px;
  color: #fff;
  background: var(--color-success);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Small tick badge on fully completed weeks */
.week-btn.is-done::after {
  content: "✓";
  position: absolute;
  top: -6px;
  right: -4px;
  width: 16px;
  height: 16px;
  line-height: 16px;
  font-size: 10px;
  color: #fff;
  background: var(--color-success);
  border-radius: 50%;
}

/* 4. Selected week's tasks */
.week-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--phase, var(--color-border));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.25rem 1rem;
}

.week-panel__phase {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--phase);
}

.week-panel__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.task-list {
  list-style: none;
}

.task {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.85rem 0;
}

.task + .task {
  border-top: 1px solid var(--color-border);
}

.task__label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
  cursor: pointer;
  line-height: 1.5;
}

.task__check {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.2rem;
  accent-color: var(--phase);
  cursor: pointer;
}

.task__title {
  flex: 1;
  min-width: 0;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: break-word;
  transition: color 0.15s;
}

.task.is-done .task__title {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

.task__open {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--phase, var(--color-primary));
  text-decoration: none;
  margin-top: 0.15rem;
  white-space: nowrap;
}

.task__open:hover {
  text-decoration: underline;
}

/* 5. Week complete message */
.week-complete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.925rem;
  background: #f0fdf4;
  color: var(--color-success);
  border: 1px solid #bbf7d0;
}

.week-complete__btn {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-success);
  border: none;
  border-radius: 8px;
  padding: 0.4rem 0.875rem;
  cursor: pointer;
}

.week-complete__btn:hover {
  background: #15803d;
}

/* ── Growth: Section 1 Monthly P&L ────────────────── */
.growth-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.growth-header__sub {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2E9E78;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.growth-header__actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.growth-status {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.15s;
}

.growth-status.is-dirty {
  color: #d97706;
}

.growth-status.is-saved {
  color: var(--color-success);
}

.growth-status.is-saving {
  color: var(--color-text-muted);
}

.growth-status.is-error {
  color: var(--color-error);
}

.growth-status.is-info {
  color: var(--color-primary);
}

.growth-btn-save {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: auto;
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
}

.growth-btn-icon {
  width: 16px;
  height: 16px;
}

/* Info Panel (How to use this) */
.growth-info-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 0.15s;
}

.growth-info-panel__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  list-style: none;
  user-select: none;
}

.growth-info-panel__summary::-webkit-details-marker {
  display: none;
}

.growth-info-panel__title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.growth-info-icon {
  width: 18px;
  height: 18px;
  color: #2E9E78;
  flex-shrink: 0;
}

.growth-info-panel__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
}

.growth-info-panel__chevron svg {
  width: 18px;
  height: 18px;
}

.growth-info-panel[open] .growth-info-panel__chevron {
  transform: rotate(180deg);
}

.growth-info-panel__content {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-text);
}

.growth-info-panel__intro {
  margin: 1rem 0 1rem;
  color: var(--color-text-muted);
}

.growth-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.growth-info-box {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

.growth-info-box__title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.growth-info-box p {
  font-size: 0.825rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

.growth-info-list {
  margin: 0.45rem 0 0 1.15rem;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.growth-info-list li {
  margin-bottom: 0.25rem;
}

.growth-info-test {
  background: rgba(46, 158, 120, 0.06);
  border: 1px solid rgba(46, 158, 120, 0.25);
  border-left: 4px solid #2E9E78;
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

.growth-info-test__heading {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.growth-info-test__rules {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.growth-pill-rule {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.growth-pill-badge {
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.growth-pill-rule--yes .growth-pill-badge {
  background: #2E9E78;
  color: #ffffff;
}

.growth-pill-rule--no .growth-pill-badge {
  background: #64748b;
  color: #ffffff;
}

/* Toolbar */
.growth-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.growth-toolbar__left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.growth-toolbar__label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.growth-month-input {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.growth-month-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
}

.growth-toolbar__hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.growth-toolbar__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.growth-btn-month {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: auto;
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.growth-btn-month:hover {
  background: var(--color-bg);
  border-color: #cbd5e1;
}

.growth-btn-month svg {
  width: 14px;
  height: 14px;
}

/* P&L Table Container */
.growth-table-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.growth-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.growth-pnl-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}

/* Sticky first column (Line Items) */
.pnl-th-corner,
.pnl-label-cell,
.pnl-row-header-cell {
  position: sticky;
  left: 0;
  z-index: 4;
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
}

.pnl-th-corner {
  z-index: 8;
  background: var(--color-surface);
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: middle;
  min-width: 250px;
  width: 270px;
  border-bottom: 1px solid var(--color-border);
}

.pnl-corner-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Super-headers (Before Control to Scale vs Control to Scale) */
.pnl-th-group {
  padding: 0.55rem 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}

.pnl-th-group--before {
  background: #d8e0ea;
  color: #475569;
}

.pnl-th-group--programme {
  background: rgba(46, 158, 120, 0.1);
  color: #2E9E78;
}

.pnl-group-tag {
  display: inline-block;
}

/* Month Subheaders */
.pnl-th-col {
  padding: 0.55rem 0.65rem;
  text-align: right;
  min-width: 125px;
  width: 135px;
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  background: var(--color-surface);
  vertical-align: bottom;
}

.pnl-th-badge {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}

.pnl-th-col--programme .pnl-th-badge {
  color: #2E9E78;
}

/* ── Before Control to Scale month columns (light mode: light grey with muted grey numbers) ── */
.pnl-th-col--before {
  background: #e2e8f0;
}

.pnl-th-col--before .pnl-th-badge {
  color: #64748b;
}

.pnl-th-col--before .pnl-th-date {
  color: #64748b;
}

.pnl-cell--before {
  background: #e2e8f0;
  color: #64748b;
}

.pnl-cell--before.pnl-cell--entered {
  background: #e2e8f0;
}

.pnl-cell--before.pnl-cell--calc {
  background: #e2e8f0;
  color: #64748b;
}

.pnl-cell--before .pnl-input {
  color: #64748b;
  background: #ffffff;
  border-color: #c5ccd6;
}

.pnl-cell--before .pnl-input::placeholder {
  color: #94a3b8;
  opacity: 0.7;
}

.pnl-cell--before .pnl-input:hover {
  background: #ffffff;
  border-color: #94a3b8;
}

.pnl-cell--before .pnl-input:focus {
  background: #ffffff;
  color: var(--color-text);
  border-color: var(--color-primary);
}

.pnl-cell--before .fortress-total-amt {
  color: #64748b;
}

.pnl-cell--before .fortress-cell-pct {
  color: #94a3b8;
}

.pnl-th-date {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
}

/* Row Headers */
.pnl-row-header-cell {
  padding: 0.65rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(79, 70, 229, 0.05);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.pnl-row-header-spacer {
  background: rgba(79, 70, 229, 0.05);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}

.pnl-row-header-spacer--before {
  background: #e2e8f0;
}

/* Label cell */
.pnl-label-cell {
  padding: 0.45rem 1rem;
  text-align: left;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  min-width: 250px;
  max-width: 320px;
}

.pnl-label-cell--bold {
  font-weight: 700;
  color: var(--color-text);
}

.pnl-sublabel-text {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.35;
  margin-top: 0.15rem;
}

.pnl-label-cell--expense {
  padding: 0.25rem 0.5rem 0.25rem 1rem;
}

.pnl-label-cell--expense .pnl-sublabel-text {
  padding-left: 0.35rem;
}

/* Expense line rename */
.pnl-expense-edit-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pnl-expense-rename-input {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--color-text);
  font: inherit;
  font-size: 0.85rem;
  padding: 0.2rem 0.35rem;
  transition: border-color 0.15s, background 0.15s;
}

.pnl-expense-rename-input:hover {
  background: var(--color-bg);
  border-color: var(--color-border);
}

.pnl-expense-rename-input:focus {
  background: var(--color-surface);
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
}

.pnl-rename-hint {
  display: inline-flex;
  opacity: 0.3;
  color: var(--color-text-muted);
}

.pnl-rename-hint svg {
  width: 12px;
  height: 12px;
}

.pnl-expense-edit-wrap:hover .pnl-rename-hint {
  opacity: 0.7;
}

/* Cells */
.pnl-cell {
  padding: 0.3rem 0.5rem;
  text-align: right;
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  vertical-align: middle;
}

/* Entered cells: column background stays white in Control to Scale months */
.pnl-cell--entered {
  background: #ffffff;
}

/* Calculated cells: crisp bold styling, no box at all, just the number */
.pnl-cell--calc {
  background: transparent;
  padding: 0.55rem 0.75rem;
  font-weight: 700;
  color: var(--color-text);
}

.pnl-cell.is-negative {
  color: #dc2626;
}

/* ── Total Column (pinned to right, light tint in light mode) ── */
.pnl-th-group--total {
  position: sticky;
  right: 0;
  z-index: 8;
  border-left: 2px solid #86efac;
  box-shadow: -3px 0 6px rgba(0, 0, 0, 0.04);
}

.pnl-th-col--total {
  position: sticky;
  right: 0;
  z-index: 8;
  background: #f0fdf4;
  border-left: 2px solid #86efac;
  border-bottom: 1px solid var(--color-border);
  min-width: 130px;
  width: 140px;
  text-align: right;
  vertical-align: bottom;
  padding: 0.55rem 0.85rem;
  box-shadow: -3px 0 6px rgba(0, 0, 0, 0.04);
}

.pnl-th-col--total .pnl-th-badge {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #16a34a;
  margin-bottom: 0.15rem;
}

.pnl-th-col--total .pnl-th-date {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

.pnl-cell--total {
  position: sticky;
  right: 0;
  z-index: 3;
  background: #f4fbf7;
  border-left: 2px solid #bbf7d0;
  border-bottom: 1px solid var(--color-border);
  font-weight: 700;
  color: var(--color-text);
  box-shadow: -3px 0 6px rgba(0, 0, 0, 0.04);
}

.pnl-row-header-total {
  background: #eaf6ef;
  border-left: 2px solid #bbf7d0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.pnl-cell--total .fortress-total-amt {
  color: var(--color-text);
}

.pnl-cell--total .fortress-cell-pct {
  color: #047857;
}

/* Box in calculated rows across the full width of the table */
/* 1. Line above Gross Profit & line below Gross Profit Margin % */
.pnl-row--cost_of_sales th,
.pnl-row--cost_of_sales td {
  border-bottom: none;
}
.pnl-row--gross_profit th,
.pnl-row--gross_profit td {
  border-top: 1px solid #94a3b8;
}
.pnl-row--gross_profit_margin th,
.pnl-row--gross_profit_margin td {
  border-bottom: 1px solid #94a3b8;
}

/* 2. Line above and below Total Operating Expenses */
.pnl-row--expense_9 th,
.pnl-row--expense_9 td {
  border-bottom: none;
}
.pnl-row--total_operating_expenses th,
.pnl-row--total_operating_expenses td {
  border-top: 1px solid #94a3b8;
  border-bottom: 1px solid #94a3b8;
}

/* 3. Line above Profit Before Tax & line below Profit Margin % */
.pnl-row--interest th,
.pnl-row--interest td {
  border-bottom: none;
}
.pnl-row--profit_before_tax th,
.pnl-row--profit_before_tax td {
  border-top: 1px solid #94a3b8;
}
.pnl-row--profit_margin th,
.pnl-row--profit_margin td {
  border-bottom: 1px solid #94a3b8;
}

/* Thin divider line between Target Profit and Owner's Pay */
.pnl-row--target_profit th,
.pnl-row--target_profit td {
  border-bottom: 1px solid #94a3b8;
}

/* Accounting double line under Left in the Business */
.pnl-row--left_in_business th,
.pnl-row--left_in_business td {
  border-bottom: 3px double #94a3b8;
}

/* Entered input field: Control to Scale months have very light grey fill (#F4F6F9) & mid-grey border (#C5CCD6) */
.pnl-input {
  width: 100%;
  border: 1px solid #c5ccd6;
  background: #f4f6f9;
  color: var(--color-text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: right;
  padding: 0.35rem 0.45rem;
  border-radius: 4px;
  outline: none;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.pnl-input::placeholder {
  color: #94a3b8;
  opacity: 0.6;
}

.pnl-input:hover {
  border-color: #94a3b8;
}

.pnl-input:focus {
  background: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
}

/* ── Section 2: Cashflow Fortress™ ────────────────── */
.growth-fortress-wrap {
  margin-top: 2.25rem;
}

.growth-fortress-header {
  margin-bottom: 1.25rem;
}

.growth-fortress-pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2E9E78;
  background: rgba(46, 158, 120, 0.12);
  border-radius: 9999px;
  margin-bottom: 0.35rem;
}

.growth-fortress-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.growth-fortress-intro {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-top: 0.45rem;
  max-width: 820px;
}

.fortress-row--left {
  background: var(--color-surface);
}

.fortress-bucket-td {
  vertical-align: middle;
}

.fortress-cell-pct {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-align: right;
  margin-top: 0.15rem;
  line-height: 1.25;
}

.fortress-cell-pct.is-negative {
  color: #dc2626;
}

.fortress-row--total {
  background: var(--color-surface);
}

.fortress-row--unallocated {
  background: var(--color-surface);
}

/* Cashflow Fortress section lines */
/* Line above and below Left in the Business */
.fortress-row--left th,
.fortress-row--left td {
  border-top: 1px solid #94a3b8;
  border-bottom: 1px solid #94a3b8;
}

/* Line above and below Total Allocated */
.fortress-row--bonuses th,
.fortress-row--bonuses td,
.fortress-row--bucket:last-of-type th,
.fortress-row--bucket:last-of-type td {
  border-bottom: none;
}

.fortress-row--total th,
.fortress-row--total td {
  border-top: 1px solid #94a3b8;
  border-bottom: 1px solid #94a3b8;
}

/* No line under Unallocated */
.fortress-row--unallocated th,
.fortress-row--unallocated td {
  border-bottom: none;
}

.fortress-total-td,
.fortress-unalloc-td {
  vertical-align: middle;
}

.fortress-total-amt {
  font-weight: 700;
  font-size: 0.875rem;
  color: inherit;
}

.fortress-unalloc-td.is-negative .fortress-total-amt {
  color: #dc2626;
}

/* Pot Balances & Taken Out in Cashflow Fortress */
.fortress-heading-note {
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--color-text-muted);
  margin-top: 0.2rem;
  line-height: 1.35;
}

.fortress-header-row .pnl-row-header-cell {
  vertical-align: middle;
}

.fortress-header-row--balances .pnl-row-header-cell {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.fortress-row--balances-total th,
.fortress-row--balances-total td {
  border-top: 2px solid #94a3b8;
  font-weight: 700;
}

.fortress-row--taken-out-total th,
.fortress-row--taken-out-total td {
  border-top: 1px solid #94a3b8;
  border-bottom: 1px solid #94a3b8;
}

.fortress-current-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-top: 0.1rem;
}

.fortress-balance-td {
  vertical-align: middle;
}

.fortress-balance-td.is-negative .fortress-total-amt {
  color: #dc2626;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .growth-info-grid {
    grid-template-columns: 1fr;
  }

  .growth-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1100px) {
  .overview-stat-grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .app-layout {
    flex-direction: column;
  }

  .mobile-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 60px;
    padding: 0 1.25rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 30;
  }

  .mobile-menu-btn {
    background: none;
    border: none;
    padding: 0.4rem;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
  }

  .mobile-menu-btn:hover {
    background: var(--color-bg);
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 45;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .sidebar-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .main-content {
    padding: 1.5rem 1.25rem;
  }

  /* Overview responsive */
  .overview-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .quick-actions-grid {
    grid-template-columns: 1fr;
  }

  .overview-stat-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .impl-card {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 1.5rem;
  }

  .phase-circle-wrapper {
    width: clamp(70px, 20vw, 88px);
    height: clamp(70px, 20vw, 88px);
  }

  .phase-arrow {
    height: clamp(70px, 20vw, 88px);
  }
}

@media (max-width: 600px) {
  .overview-stat-grid-4 {
    grid-template-columns: 1fr;
  }

  .overview-stat-grid-6 {
    grid-template-columns: 1fr;
  }

  .revenue-card__amount {
    font-size: 2rem;
  }

  .phase-stat-boxes {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .week-selector {
    grid-template-columns: repeat(6, 1fr);
    border-radius: 16px;
    gap: 0.25rem;
  }
}

/* ── Dark Mode ───────────────────────────────────── */
:root[data-theme="dark"] {
  --color-bg: #090b10;
  --color-surface: #121520;
  --color-border: #1f2432;
  --color-text: #f3f4f6;
  --color-text-muted: #94a3b8;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  background-color: #090b10;
  color-scheme: dark;
}

[data-theme="dark"] {
  body {
    background: var(--color-bg);
    color: var(--color-text);
  }

  /* ── Ambient "lamp" glows (soft, blurred pools of light behind content) ── */

  /* 1. Faint glow in the top corner of the page behind the header */
  .page-center::before {
    content: "";
    position: fixed;
    top: -120px;
    right: -60px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.12) 0%, rgba(46, 158, 120, 0.05) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(50px);
  }

  .main-content {
    position: relative;
  }

  .main-content::before {
    content: "";
    position: fixed;
    top: -120px;
    right: 5%;
    width: 620px;
    height: 520px;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.09) 0%, rgba(46, 158, 120, 0.05) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(60px);
  }

  .view-header,
  .overview-welcome-block {
    position: relative;
  }

  .view-header::before,
  .overview-welcome-block::before {
    content: "";
    position: absolute;
    top: -30px;
    left: -20px;
    width: 280px;
    height: 120px;
    background: radial-gradient(ellipse at center, rgba(46, 158, 120, 0.07) 0%, rgba(99, 102, 241, 0.04) 50%, transparent 75%);
    pointer-events: none;
    z-index: -1;
    border-radius: 50%;
    filter: blur(35px);
  }

  /* 2. Soft glow behind each Implementation phase circle in that phase's colour */
  .phase-circle-item {
    position: relative;
  }

  .phase-circle-item::before {
    content: "";
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(80px, 12vw, 110px);
    height: clamp(80px, 12vw, 110px);
    border-radius: 50%;
    background: radial-gradient(circle, var(--phase) 0%, transparent 70%);
    opacity: 0.35;
    filter: blur(14px);
    pointer-events: none;
    z-index: 0;
  }

  .phase-circle-wrapper {
    position: relative;
    z-index: 1;
    box-shadow: 0 0 28px -3px var(--phase);
  }

  /* 3. Gentle glow behind the main chart cards and the Wins Wall */
  .overview-card.revenue-card,
  .deals-panel.wins-wall-panel,
  .revenue-card,
  .wins-wall-panel {
    position: relative;
    box-shadow: 0 0 45px -8px rgba(46, 158, 120, 0.16), 0 10px 30px -5px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .revenue-card::before,
  .wins-wall-panel::before {
    content: "";
    position: absolute;
    inset: -10px;
    background: radial-gradient(ellipse at center, rgba(46, 158, 120, 0.10) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 75%);
    border-radius: calc(var(--radius) + 6px);
    filter: blur(18px);
    pointer-events: none;
    z-index: -1;
  }

  .sidebar {
    background: #11141c;
    border-right-color: var(--color-border);
  }

  .sidebar-profile {
    background: #171b26;
    border-color: var(--color-border);
  }

  .sidebar-profile__avatar {
    background: #2E9E78;
    color: #ffffff;
  }

  .nav-item {
    color: #94a3b8;
  }

  .nav-item:hover {
    background: #1c212d;
    color: #ffffff;
  }

  .nav-item.is-active {
    background: #232836;
    color: #ffffff;
  }

  .sidebar-footer {
    border-top-color: var(--color-border);
  }

  .sidebar-footer .btn-logout:hover {
    background: rgba(220, 38, 38, 0.15);
  }

  .mobile-topbar {
    background: #11141c;
    border-bottom-color: var(--color-border);
  }

  .mobile-menu-btn:hover {
    background: #1c212d;
  }

  /* 4. Cards slightly glassy, with a faint lit edge on the top border */
  .card,
  .overview-card,
  .stat-card,
  .quick-action-card,
  .coming-soon-card,
  .impl-card,
  .phase-stat-box,
  .week-selector,
  .task-item,
  .deals-panel,
  .growth-info-panel,
  .growth-table-card,
  .mk-q-stat,
  .mk-group,
  .admin-stat-card,
  .admin-table-container,
  .admin-section-box,
  .course-card,
  .module-group,
  .lesson-player,
  .modal-dialog,
  .game-plan-card,
  .game-plan-empty,
  .admin-gp-form-card,
  .admin-gp-entry-card {
    background: rgba(18, 22, 32, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .quick-action-card:hover {
    border-color: #2E9E78;
    background: #1a1e2a;
  }

  .quick-action-card__icon {
    background: #1c212d;
  }

  .chart-grid-line {
    stroke: #262a36;
  }

  .chart-point-core {
    stroke: #161922;
  }

  .impl-status-line {
    background: #171b26;
    border-color: var(--color-border);
    border-left-color: #2E9E78;
  }

  .pill-badge {
    background: #1c212d;
    color: var(--color-text);
    border-color: var(--color-border);
  }

  .week-btn:hover {
    background: color-mix(in srgb, var(--phase) 20%, transparent);
  }

  .overview-toast {
    background: #ffffff;
    color: #11141c;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  }

  .task-item:hover {
    background: #1a1e2a;
  }

  /* This week card in dark mode */
  .this-week-complete-wrap {
    background: rgba(46, 158, 120, 0.12);
    border-color: rgba(46, 158, 120, 0.28);
  }

  .this-week-complete-text {
    color: #34d399;
  }

  /* Growth & Monthly P&L in dark mode */
  .growth-header__sub {
    color: #2E9E78;
  }

  .growth-info-panel,
  .growth-table-card {
    background: var(--color-surface);
    border-color: var(--color-border);
  }

  .growth-info-panel__content {
    border-top-color: var(--color-border);
  }

  .growth-info-box {
    background: #11141c;
    border-color: var(--color-border);
  }

  .growth-info-test {
    background: rgba(46, 158, 120, 0.1);
    border-color: rgba(46, 158, 120, 0.3);
  }

  .growth-btn-month {
    background: #171b26;
    border-color: var(--color-border);
    color: var(--color-text);
  }

  .growth-btn-month:hover {
    background: #1c212d;
  }

  .growth-month-input {
    background: #171b26;
    border-color: var(--color-border);
    color: var(--color-text);
  }

  .pnl-th-corner,
  .pnl-label-cell {
    background: #161922;
  }

  .pnl-th-col {
    background: #161922;
  }

  /* ── Before Control to Scale month columns in dark mode ── */
  /* Visibly lighter grey background than programme month cells, with muted grey numbers */
  .pnl-th-group--before {
    background: #2a3144;
    color: #94a3b8;
  }

  .pnl-th-col--before {
    background: #2a3144;
  }

  .pnl-th-col--before .pnl-th-badge {
    color: #94a3b8;
  }

  .pnl-th-col--before .pnl-th-date {
    color: #94a3b8;
  }

  .pnl-cell--before {
    background: #2a3144;
    color: #94a3b8;
  }

  .pnl-cell--before.pnl-cell--entered {
    background: #2a3144;
    color: #94a3b8;
  }

  .pnl-cell--before.pnl-cell--calc {
    background: #252c3e;
    color: #94a3b8;
  }

  .pnl-cell--before .pnl-input {
    color: #94a3b8;
    background: #11141c;
    border-color: #262a36;
  }

  .pnl-cell--before .pnl-input::placeholder {
    color: #64748b;
    opacity: 0.6;
  }

  .pnl-cell--before .pnl-input:hover {
    background: #323a50;
    border-color: #475569;
  }

  .pnl-cell--before .pnl-input:focus {
    background: #1e2433;
    color: #f1f5f9;
    border-color: var(--color-primary);
  }

  .pnl-cell--before .fortress-total-amt {
    color: #94a3b8;
  }

  .pnl-cell--before .fortress-cell-pct {
    color: #64748b;
  }

  .fortress-row--left .pnl-cell--before {
    background: #252c3e;
    color: #94a3b8;
  }

  .fortress-row--total .pnl-cell--before {
    background: #232a3b;
    color: #94a3b8;
  }

  .fortress-row--unallocated .pnl-cell--before {
    background: #2a3144;
    color: #94a3b8;
  }

  .pnl-th-group--programme {
    background: rgba(46, 158, 120, 0.15);
    color: #2E9E78;
  }

  .pnl-row-header-cell,
  .pnl-row-header-spacer {
    background: rgba(79, 70, 229, 0.12);
  }

  /* Shaded entered cells in dark mode */
  .pnl-cell--entered {
    background: #1a1e2c;
  }

  .pnl-cell--calc {
    background: #161922;
  }

  .pnl-input {
    background: #11141c;
    border-color: #262a36;
    color: #f3f4f6;
  }

  .pnl-input:hover {
    border-color: #3b4256;
  }

  .pnl-input:focus {
    background: #11141c;
    border-color: var(--color-primary);
  }

  .pnl-expense-rename-input:hover {
    background: #1c212d;
    border-color: var(--color-border);
  }

  .pnl-expense-rename-input:focus {
    background: #11141c;
    border-color: var(--color-primary);
  }

  .pnl-cell.is-negative {
    color: #f87171;
  }

  /* Cashflow Fortress in dark mode */
  .fortress-row--left {
    background: rgba(255, 255, 255, 0.02);
  }

  .fortress-row--total {
    background: rgba(46, 158, 120, 0.08);
  }

  .fortress-row--unallocated {
    background: var(--color-surface);
  }

  .fortress-row--left th,
  .fortress-row--left td,
  .fortress-row--total th,
  .fortress-row--total td {
    border-top-color: rgba(255, 255, 255, 0.25);
    border-bottom-color: rgba(255, 255, 255, 0.25);
  }

  .fortress-row--unallocated th,
  .fortress-row--unallocated td {
    border-bottom: none;
  }

  .fortress-unalloc-td.is-negative .fortress-total-amt,
  .fortress-cell-pct.is-negative {
    color: #f87171;
  }

  .fortress-row--balances-total th,
  .fortress-row--balances-total td {
    border-top-color: rgba(255, 255, 255, 0.3);
  }

  .fortress-row--taken-out-total th,
  .fortress-row--taken-out-total td {
    border-top-color: rgba(255, 255, 255, 0.25);
    border-bottom-color: rgba(255, 255, 255, 0.25);
  }

  .fortress-balance-td.is-negative .fortress-total-amt {
    color: #f87171;
  }

  /* ── Total Column in dark mode: dark background with bright readable text ── */
  .pnl-th-col--total {
    background: #142820;
    border-left: 2px solid #2E9E78;
    color: #ffffff;
    box-shadow: -3px 0 6px rgba(0, 0, 0, 0.4);
  }

  .pnl-th-col--total .pnl-th-badge {
    color: #34d399;
  }

  .pnl-th-col--total .pnl-th-date {
    color: #ffffff;
  }

  .pnl-cell--total {
    background: #13221c;
    border-left: 2px solid rgba(46, 158, 120, 0.45);
    border-bottom: 1px solid var(--color-border);
    color: #ffffff;
    box-shadow: -3px 0 6px rgba(0, 0, 0, 0.4);
  }

  .pnl-row-header-total {
    background: #1a2332;
    border-left: 2px solid rgba(46, 158, 120, 0.45);
  }

  /* Box in calculated rows in dark mode */
  .pnl-row--gross_profit th,
  .pnl-row--gross_profit td,
  .pnl-row--total_operating_expenses th,
  .pnl-row--total_operating_expenses td,
  .pnl-row--profit_before_tax th,
  .pnl-row--profit_before_tax td {
    border-top-color: rgba(255, 255, 255, 0.25);
  }

  .pnl-row--gross_profit_margin th,
  .pnl-row--gross_profit_margin td,
  .pnl-row--total_operating_expenses th,
  .pnl-row--total_operating_expenses td,
  .pnl-row--profit_margin th,
  .pnl-row--profit_margin td {
    border-bottom-color: rgba(255, 255, 255, 0.25);
  }

  /* Total column super-header in dark mode */
  .pnl-th-group--total {
    border-left: 2px solid rgba(46, 158, 120, 0.45);
    box-shadow: -3px 0 6px rgba(0, 0, 0, 0.4);
  }

  /* Section heading spacer for Before columns in dark mode */
  .pnl-row-header-spacer--before {
    background: rgba(79, 70, 229, 0.12);
  }

  /* Thin divider line between Target Profit and Owner's Pay */
  .pnl-row--target_profit th,
  .pnl-row--target_profit td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  /* Accounting double line under Left in the Business */
  .pnl-row--left_in_business th,
  .pnl-row--left_in_business td {
    border-bottom: 3px double rgba(255, 255, 255, 0.4);
  }

  .pnl-cell--total .fortress-total-amt {
    color: #ffffff;
  }

  .pnl-cell--total .fortress-cell-pct {
    color: #a7f3d0;
  }

  .pnl-cell--total.is-negative,
  .pnl-cell--total.is-negative .fortress-total-amt,
  .pnl-cell--total .fortress-cell-pct.is-negative {
    color: #f87171;
  }

  /* Banked deals & Wins wall in dark mode */
  .deals-panel {
    background: #161922;
    border-color: #262a36;
  }

  .deals-panel__header {
    border-bottom-color: #262a36;
  }

  .wins-wall-card,
  .my-deal-item {
    background: #11141c;
    border-color: #262a36;
  }

  .wins-wall-card:hover,
  .my-deal-item:hover {
    border-color: #2E9E78;
  }

  .wins-wall-card--mine {
    background: rgba(46, 158, 120, 0.08);
  }

  .wins-wall-card__amounts {
    background: #161922;
    border-color: #262a36;
  }

  .wins-wall-card__actions {
    border-top-color: #262a36;
  }

  .btn-deal-action {
    border-color: #262a36;
    color: #94a3b8;
  }

  .btn-deal-action:hover {
    background: #1c212d;
    color: #ffffff;
  }

  .modal-dialog {
    background: #161922;
    border-color: #262a36;
  }

  .modal-header,
  .modal-actions {
    border-color: #262a36;
  }

  input[type="email"],
  input[type="text"],
  input[type="number"],
  .form-input,
  .form-select {
    background: #11141c;
    border-color: #262a36;
    color: #f3f4f6;
  }

  .msg--success {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.3);
  }

  .msg--error {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
  }

  .btn-cancel {
    border-color: #262a36;
    color: #f3f4f6;
  }

  .btn-cancel:hover {
    background: #1c212d;
  }

  .revenue-badge--down {
    color: #f87171;
    background: rgba(239, 68, 68, 0.15);
  }

  .stat-diff--up {
    color: #34D399 !important;
  }

  .stat-diff--down {
    color: #f87171 !important;
  }

  .pnl-empty-link {
    color: #34D399;
    background: rgba(46, 158, 120, 0.12);
    border-color: rgba(46, 158, 120, 0.4);
  }

  .pnl-empty-link:hover {
    color: #6ee7b7;
    background: rgba(46, 158, 120, 0.2);
  }

  .overview-heading-badge {
    background: #262a36;
    color: #94a3b8;
  }

  .chart-line--before {
    stroke: #64748b;
  }

  .legend-item--before {
    color: #94a3b8;
  }

  .legend-item--before .legend-dot {
    background: #94a3b8;
  }

  .legend-item--programme {
    color: #34D399;
  }

  .legend-item--programme .legend-dot {
    background: #34D399;
  }

  .chart-grid-line--zero {
    stroke: #374151;
  }

  .rev-profit-legend__dot--rev,
  .chart-col--rev {
    fill: #34D399;
    background: #34D399;
  }

  .rev-profit-legend__dot--profit,
  .chart-col--profit {
    fill: #60A5FA;
    background: #60A5FA;
  }

  .rev-profit-legend__dot--before,
  .chart-col--before-rev {
    fill: #64748b;
    background: #64748b;
  }

  .chart-col--before-profit {
    fill: #475569;
  }

  .chart-divider-line {
    stroke: #64748b;
  }

  .chart-divider-badge-bg {
    fill: #161922;
    stroke: #2e3547;
  }

  .chart-divider-label {
    fill: #cbd5e1;
  }

  .kpi-top-bar {
    background: #11141c;
    border-color: #262a36;
  }

  .kpi-form-section {
    border-bottom-color: #262a36;
  }

  .kpi-pnl-reminder-link {
    color: #34D399;
  }

  .kpi-customer-num {
    background: #262a36;
    color: #94a3b8;
  }
}

/* ── Loading spinner ─────────────────────────────── */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Banked Deals & Wins Wall ──────────────────────── */
.overview-deals-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (max-width: 960px) {
  .overview-deals-grid {
    grid-template-columns: 1fr;
  }
}

.deals-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.deals-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.deals-panel__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.deals-panel__subtitle {
  font-size: 0.825rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}

.btn-bank-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #2E9E78 0%, #1f7d5d 100%);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 2px 6px rgba(46, 158, 120, 0.25);
  flex-shrink: 0;
}

.btn-bank-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(46, 158, 120, 0.35);
}

/* Wins Wall Feed */
.wins-wall-feed {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.wins-wall-feed::-webkit-scrollbar {
  width: 6px;
}

.wins-wall-feed::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

.wins-wall-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.wins-wall-card:hover {
  border-color: #2E9E78;
  box-shadow: 0 2px 8px rgba(46, 158, 120, 0.12);
}

.wins-wall-card--mine {
  border-left: 3px solid #2E9E78;
  background: rgba(46, 158, 120, 0.04);
}

.wins-wall-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.wins-wall-client {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wins-wall-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2E9E78, #3B78D8);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.wins-wall-client__info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.wins-wall-client__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.wins-wall-time {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Source badge */
.deal-source-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(59, 120, 216, 0.1);
  color: #2563eb;
  border: 1px solid rgba(59, 120, 216, 0.2);
}

.deal-source-badge--referral {
  background: rgba(46, 158, 120, 0.1);
  color: #059669;
  border-color: rgba(46, 158, 120, 0.2);
}

.deal-source-badge--google {
  background: rgba(234, 179, 8, 0.12);
  color: #b45309;
  border-color: rgba(234, 179, 8, 0.25);
}

.deal-source-badge--ads {
  background: rgba(122, 104, 181, 0.12);
  color: #7A68B5;
  border-color: rgba(122, 104, 181, 0.25);
}

.deal-source-badge--repeatcustomer {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.25);
}

.deal-source-badge--socialmedia {
  background: rgba(236, 72, 153, 0.1);
  color: #db2777;
  border-color: rgba(236, 72, 153, 0.2);
}

.deal-source-badge--sm {
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
}

/* Amounts */
.wins-wall-card__amounts {
  display: flex;
  gap: 1.5rem;
  background: var(--color-surface);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.wins-wall-stat {
  display: flex;
  flex-direction: column;
}

.wins-wall-stat__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  font-weight: 600;
}

.wins-wall-stat__val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
}

.wins-wall-stat__val--profit {
  color: #2E9E78;
}

.wins-wall-card__note {
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.4;
  margin: 0;
  font-style: italic;
}

.wins-wall-card__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding-top: 0.4rem;
  border-top: 1px dashed var(--color-border);
}

.btn-deal-action {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s ease;
}

.btn-deal-action:hover {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: #2E9E78;
}

.btn-deal-action--delete:hover {
  color: #dc2626;
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.06);
}

.wins-wall-empty,
.my-deals-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--color-text-muted);
}

.wins-wall-empty__icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.wins-wall-empty h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.wins-wall-empty p,
.my-deals-empty p {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.btn-bank-deal-inline {
  background: var(--color-surface);
  border: 1px solid #2E9E78;
  color: #2E9E78;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-bank-deal-inline:hover {
  background: #2E9E78;
  color: #ffffff;
}

/* My Banked Deals Feed */
.my-deals-feed {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.my-deal-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: border-color 0.15s;
}

.my-deal-item:hover {
  border-color: #2E9E78;
}

.my-deal-item__left {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  flex: 1;
}

.my-deal-item__values {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.my-deal-item__value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
}

.my-deal-item__profit {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2E9E78;
}

.my-deal-item__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.my-deal-item__time {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.my-deal-item__shared-pill {
  font-size: 0.68rem;
  font-weight: 600;
  color: #2E9E78;
  background: rgba(46, 158, 120, 0.12);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.my-deal-item__private-pill {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: rgba(148, 163, 184, 0.12);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.my-deal-item__note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.my-deal-item__right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.my-deal-item__right .btn-deal-action {
  padding: 0.35rem;
  border-radius: 6px;
  line-height: 1;
}

.my-deal-item__right .btn-deal-action svg {
  width: 14px;
  height: 14px;
}

/* ── Modal: Bank a new deal ────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.15s ease-out;
}

.modal-backdrop.is-open {
  opacity: 1;
}

.modal-dialog {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  transform: scale(0.96) translateY(10px);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.is-open .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.modal-close:hover {
  color: var(--color-text);
  background: var(--color-bg);
}

.modal-form {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .form-row--two {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-label .required {
  color: #dc2626;
}

.input-money-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-prefix {
  position: absolute;
  left: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  pointer-events: none;
}

.input-money-wrap .form-input {
  padding-left: 1.85rem;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #2E9E78;
  box-shadow: 0 0 0 3px rgba(46, 158, 120, 0.18);
}

/* Checkbox */
.form-group--checkbox {
  margin-top: 0.25rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-bg);
  margin-top: 2px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.15s ease;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom {
  background: #2E9E78;
  border-color: #2E9E78;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-text {
  display: flex;
  flex-direction: column;
}

.checkbox-text strong {
  font-size: 0.9rem;
  color: var(--color-text);
}

.checkbox-text small {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.btn-cancel {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-cancel:hover {
  background: var(--color-bg);
}

.btn-bank-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #2E9E78 0%, #10B981 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(46, 158, 120, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-bank-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(46, 158, 120, 0.45);
}

.btn-bank-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── Celebration Overlay (Stamp + Confetti) ────────── */
.banked-celebration-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  transition: opacity 0.35s ease-out;
}

.banked-celebration-overlay.is-fading {
  opacity: 0;
}

.banked-confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10000;
}

.banked-stamp-wrap {
  position: relative;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banked-stamp {
  background: rgba(15, 23, 42, 0.92);
  border: 5px solid #2E9E78;
  border-radius: 18px;
  padding: 1.75rem 2.75rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(46, 158, 120, 0.4);
  transform: rotate(-6deg);
  animation: stampSlam 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes stampSlam {
  0% {
    opacity: 0;
    transform: scale(3.5) rotate(-22deg);
  }
  70% {
    opacity: 1;
    transform: scale(0.92) rotate(-5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(-6deg);
  }
}

.banked-shake {
  animation: screenShake 0.4s ease-out;
}

@keyframes screenShake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4px, 3px); }
  40% { transform: translate(4px, -3px); }
  60% { transform: translate(-3px, 1px); }
  80% { transform: translate(2px, -1px); }
}

.banked-stamp-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
}

.banked-stamp-title {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: #2E9E78;
  text-shadow: 0 2px 10px rgba(46, 158, 120, 0.6);
  line-height: 1;
}

.banked-stamp-flame {
  font-size: 2.6rem;
  line-height: 1;
}

.banked-stamp-val {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0.35rem 0;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.banked-stamp-sub {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #94a3b8;
  text-transform: uppercase;
}

.banked-celebration-video {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

/* ── Overview Monthly P&L Metrics & Diff Indicators ── */
.revenue-badge--down {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
}

.stat-diff--up {
  color: #10B981 !important;
  font-weight: 600;
}

.stat-diff--down {
  color: #EF4444 !important;
  font-weight: 600;
}

.pnl-empty-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2E9E78;
  text-decoration: none;
  background: rgba(46, 158, 120, 0.08);
  border: 1px dashed rgba(46, 158, 120, 0.35);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  line-height: 1.3;
  transition: all 0.15s ease;
}

.pnl-empty-link:hover {
  background: rgba(46, 158, 120, 0.16);
  border-color: #2E9E78;
  transform: translateX(2px);
  color: #1f7d5d;
}

.overview-heading-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-border);
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Revenue chart Before vs Programme styling */
.chart-line--before {
  fill: none;
  stroke: #94a3b8;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line--transition {
  fill: none;
  stroke: #94a3b8;
  stroke-width: 2.5;
  stroke-dasharray: 4 4;
}

.chart-legend-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.legend-item--before {
  color: #94a3b8;
}

.legend-item--before .legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
  display: inline-block;
}

.legend-item--programme {
  color: #2E9E78;
}

.legend-item--programme .legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2E9E78;
  display: inline-block;
}

/* ── Monthly KPIs Modal ────────────────────────────── */
.modal-kpis {
  max-width: 620px;
}

.modal-form--scrollable {
  max-height: 82vh;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.modal-form--scrollable::-webkit-scrollbar {
  width: 6px;
}

.modal-form--scrollable::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

/* Top bar: Month selector + Reminder */
.kpi-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem 1.15rem;
}

@media (max-width: 580px) {
  .kpi-top-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

.kpi-month-group {
  min-width: 170px;
}

.kpi-pnl-reminder-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  text-align: right;
}

@media (max-width: 580px) {
  .kpi-pnl-reminder-box {
    align-items: flex-start;
    text-align: left;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--color-border);
  }
}

.kpi-reminder-text {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.kpi-pnl-reminder-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2E9E78;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.15s;
}

.kpi-pnl-reminder-link:hover {
  text-decoration: underline;
  transform: translateX(2px);
}

/* Form sections */
.kpi-form-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.kpi-form-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.kpi-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin: 0;
}

.kpi-section-subtitle {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: -0.5rem;
  margin-bottom: 0.25rem;
}

/* Top 3 Customers rows */
.kpi-customer-row {
  display: grid;
  grid-template-columns: 28px 1.4fr 1fr;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .kpi-customer-row {
    grid-template-columns: 24px 1fr;
  }
  .kpi-customer-row .kpi-customer-rev-group {
    grid-column: 2 / -1;
  }
}

.kpi-customer-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-border);
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}


/* ── Monthly KPIs Page ─────────────────────────────── */
.mk-quarter {
  margin-bottom: 2rem;
}

.mk-quarter-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.5rem 1.5rem;
  border-top: 4px solid #2E9E78;
}

.mk-quarter-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}

.mk-quarter-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2E9E78;
  background: rgba(46, 158, 120, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

.mk-quarter-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0.45rem 0 0.15rem;
  letter-spacing: -0.01em;
}

.mk-quarter-sub {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.mk-quarter-note {
  font-size: 0.75rem;
  font-weight: 600;
  color: #d97706;
  background: rgba(217, 119, 6, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.mk-q-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

@media (max-width: 1100px) {
  .mk-q-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .mk-q-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mk-q-stat {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.mk-q-stat__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.mk-q-stat__val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.mk-q-stat__before {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.mk-empty-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.mk-empty-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Change indicators */
.mk-change {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-muted);
}

.mk-change--up {
  color: #10B981;
}

.mk-change--down {
  color: #EF4444;
}

.mk-change--first,
.mk-change--flat {
  font-weight: 500;
  font-style: italic;
}

/* Month cards */
.mk-months-title {
  margin-top: 0.5rem;
}

.mk-months {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mk-month-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.4rem 1.4rem;
}

.mk-month-card--before {
  border-left: 4px solid #94a3b8;
}

.mk-month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.mk-month-head__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.mk-month-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin: 0;
}

.mk-month-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #2E9E78;
  background: rgba(46, 158, 120, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

.mk-month-pill--before {
  color: #64748b;
  background: rgba(148, 163, 184, 0.16);
}

.mk-first-badge {
  font-size: 0.72rem;
  font-weight: 500;
  font-style: italic;
  color: var(--color-text-muted);
  border: 1px dashed var(--color-border);
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
}

.mk-kpi-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #2E9E78;
}

.mk-kpi-status svg {
  width: 14px;
  height: 14px;
}

.mk-add-kpis-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: #3B78D8;
  background: rgba(59, 120, 216, 0.08);
  border: 1px dashed rgba(59, 120, 216, 0.45);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mk-add-kpis-btn svg {
  width: 14px;
  height: 14px;
}

.mk-add-kpis-btn:hover {
  background: rgba(59, 120, 216, 0.16);
  border-color: #3B78D8;
  transform: translateY(-1px);
}

/* Figure groups */
.mk-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.9rem;
}

.mk-group {
  --mk-tone: #2E9E78;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.85rem 1rem 0.6rem;
  min-width: 0;
}

.mk-group--green { --mk-tone: #2E9E78; }
.mk-group--blue { --mk-tone: #3B78D8; }
.mk-group--purple { --mk-tone: #8B5CF6; }
.mk-group--amber { --mk-tone: #d97706; }
.mk-group--slate { --mk-tone: #64748b; }

.mk-group__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mk-tone);
  margin: 0 0 0.4rem;
}

.mk-group__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mk-tone);
}

.mk-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--color-border);
}

.mk-row:last-child {
  border-bottom: none;
}

.mk-row__label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.35;
  padding-top: 0.05rem;
}

.mk-row__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  flex-shrink: 0;
  max-width: 60%;
}

.mk-row__val {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

.mk-row__val.is-empty {
  color: var(--color-text-muted);
  font-weight: 500;
}

.mk-row__val.is-negative {
  color: #EF4444;
}

/* Top customers */
.mk-customers {
  padding: 0.55rem 0 0.25rem;
}

.mk-customers__title {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.mk-customers__empty {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.mk-customer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mk-customer {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.mk-customer__num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-border);
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
}

.mk-customer__name {
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mk-customer__rev {
  font-weight: 700;
  color: var(--color-text);
}

@media (max-width: 640px) {
  .mk-month-card,
  .mk-quarter-card {
    padding: 1rem;
  }
}

/* Monthly KPIs page — dark mode */
[data-theme="dark"] {
  .mk-q-stat,
  .mk-group {
    background: #11141c;
  }

  .mk-quarter-pill,
  .mk-month-pill,
  .mk-kpi-status {
    color: #34D399;
  }

  .mk-quarter-pill,
  .mk-month-pill {
    background: rgba(52, 211, 153, 0.12);
  }

  .mk-month-pill--before {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.14);
  }

  .mk-add-kpis-btn {
    color: #7FA9EC;
    background: rgba(59, 120, 216, 0.14);
  }

  .mk-group--green { --mk-tone: #34D399; }
  .mk-group--blue { --mk-tone: #7FA9EC; }
  .mk-group--purple { --mk-tone: #A78BFA; }
  .mk-group--amber { --mk-tone: #FBBF24; }
  .mk-group--slate { --mk-tone: #94a3b8; }

  .mk-change--up { color: #34D399; }
  .mk-change--down,
  .mk-row__val.is-negative { color: #F87171; }

  .mk-quarter-note {
    color: #FBBF24;
    background: rgba(251, 191, 36, 0.12);
  }
}

/* ── Admin Section & Clients Page ─────────────────── */
.admin-pill-wrap {
  margin-bottom: 0.35rem;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8B5CF6;
  background: rgba(139, 92, 246, 0.12);
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.admin-search-wrap {
  position: relative;
  flex: 1;
  max-width: 420px;
}

.admin-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  stroke: var(--color-text-muted);
  pointer-events: none;
}

.admin-search-input {
  width: 100%;
  padding: 0.65rem 0.85rem 0.65rem 2.4rem;
  font-size: 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.admin-search-input:focus {
  border-color: #8B5CF6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.admin-count-pill {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
}

.admin-table-card {
  margin-top: 0.5rem;
  border: 1px solid var(--color-border);
}

.admin-clients-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.admin-clients-table th {
  padding: 0.85rem 1.15rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.admin-clients-table td {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.admin-clients-table tr:last-child td {
  border-bottom: none;
}

.admin-clients-table tr:hover td {
  background: rgba(139, 92, 246, 0.02);
}

.admin-client-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.admin-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #8B5CF6;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.admin-client-name {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.admin-name-bold {
  font-weight: 700;
  color: var(--color-text);
}

.admin-email-text {
  font-size: 0.85rem;
  color: var(--color-text);
}

.admin-client-id-sub {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-family: monospace;
  margin-top: 0.15rem;
}

.admin-badge-mini {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8B5CF6;
  background: rgba(139, 92, 246, 0.12);
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
}

.admin-date-text {
  font-size: 0.825rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.admin-td-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.admin-td-strong {
  font-weight: 700;
  color: var(--color-text);
  font-size: 0.88rem;
}

.admin-td-sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.admin-dim {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.btn-admin-details {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: #8B5CF6;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-admin-details:hover {
  background: #8B5CF6;
  color: #ffffff;
  border-color: #8B5CF6;
  transform: translateY(-1px);
}

/* ── Admin Client Details Modal ────────────────────── */
.modal-admin-detail {
  max-width: 900px;
  width: 95vw;
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.admin-modal-user {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.admin-modal-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #8B5CF6;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
}

.admin-modal-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-modal-title-row .modal-title {
  font-size: 1.2rem;
  margin: 0;
}

.admin-user-pill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2E9E78;
  background: rgba(46, 158, 120, 0.12);
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
}

.admin-user-pill--admin {
  color: #8B5CF6;
  background: rgba(139, 92, 246, 0.12);
}

.admin-modal-meta {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.15rem;
}

.admin-dot-sep {
  opacity: 0.5;
}

.admin-modal-body {
  max-height: 80vh;
  overflow-y: auto;
  padding: 1.5rem;
}

.admin-detail-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.admin-detail-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

@media (max-width: 768px) {
  .admin-detail-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.admin-stat-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-stat-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.admin-stat-card__val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.admin-stat-card__sub {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.admin-section-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.admin-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

.admin-empty-sub {
  font-size: 0.825rem;
  color: var(--color-text-muted);
  margin: 0.5rem 0 0;
}

.admin-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.825rem;
  text-align: left;
}

.admin-mini-table th {
  padding: 0.6rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.admin-mini-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.admin-mini-table tr:last-child td {
  border-bottom: none;
}

.admin-badge-source {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}

.admin-badge-win {
  font-size: 0.72rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}

.admin-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(139, 92, 246, 0.2);
  border-top-color: #8B5CF6;
  border-radius: 50%;
  animation: adminSpin 0.7s linear infinite;
  display: inline-block;
}

@keyframes adminSpin {
  to { transform: rotate(360deg); }
}

.admin-loading-cell {
  text-align: center;
  padding: 3rem 1rem !important;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

/* Admin dark mode overrides */
[data-theme="dark"] {
  .admin-pill {
    color: #A78BFA;
    background: rgba(167, 139, 250, 0.15);
  }

  .admin-search-input {
    background: #11141c;
    border-color: #262a36;
    color: #f3f4f6;
  }

  .admin-search-input:focus {
    border-color: #A78BFA;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
  }

  .admin-clients-table th,
  .admin-mini-table th,
  .admin-stat-card {
    background: #11141c;
    border-color: #262a36;
  }

  .admin-clients-table td,
  .admin-mini-table td,
  .admin-modal-header,
  .admin-section-box {
    border-color: #262a36;
  }

  .btn-admin-details {
    color: #A78BFA;
    background: rgba(167, 139, 250, 0.12);
    border-color: rgba(167, 139, 250, 0.3);
  }

  .btn-admin-details:hover {
    background: #8B5CF6;
    color: #ffffff;
  }

  .admin-badge-mini,
  .admin-user-pill--admin {
    color: #A78BFA;
    background: rgba(167, 139, 250, 0.15);
  }

  .admin-count-pill,
  .admin-tag,
  .admin-badge-source {
    background: #11141c;
    border-color: #262a36;
  }
}

/* ── Your Game Plan ────────────────────────────────── */
.game-plan-container {
  max-width: 920px;
  margin: 0 auto;
}

.game-plan-header {
  margin-bottom: 2rem;
}

.game-plan-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4F46E5;
  display: block;
  margin-bottom: 0.35rem;
}

.game-plan-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.game-plan-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 650px;
  line-height: 1.55;
}

.game-plan-loading {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.game-plan-empty {
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 3.5rem 2rem;
  text-align: center;
  max-width: 580px;
  margin: 2rem auto;
  box-shadow: var(--shadow);
}

.game-plan-empty__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(79, 70, 229, 0.08);
  color: #4F46E5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.game-plan-empty h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.game-plan-empty p {
  font-size: 0.925rem;
  color: var(--color-text-muted);
  max-width: 440px;
  margin: 0 auto;
}

.game-plan-entries-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.game-plan-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.game-plan-card--latest {
  border-color: rgba(79, 70, 229, 0.35);
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.07), var(--shadow);
}

.game-plan-card--older {
  opacity: 0.97;
}

.game-plan-card__header {
  padding: 1.15rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: background 0.15s ease;
  cursor: pointer;
  user-select: none;
}

.game-plan-card__header:hover {
  background: rgba(0, 0, 0, 0.02);
}

.game-plan-card--collapsed .game-plan-card__header {
  border-bottom: none;
}

.game-plan-card__header-left {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  flex: 1;
  min-width: 0;
}

.game-plan-date-row {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.game-plan-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  width: auto;
  height: auto;
  border-radius: 9999px;
  background: #f1f4f9;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

.game-plan-date-badge svg {
  flex-shrink: 0;
  color: #4F46E5;
}

.game-plan-tag-latest {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  background: rgba(79, 70, 229, 0.1);
  color: #4F46E5;
  border: 1px solid rgba(79, 70, 229, 0.22);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}

.game-plan-collapsed-preview {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 420px;
  margin: 0;
}

@media (max-width: 768px) {
  .game-plan-collapsed-preview {
    display: none;
  }
}

/* ── Game Plan Bullet Points (Wins & What's getting in the way) ── */
.game-plan-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.game-plan-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.925rem;
  line-height: 1.5;
  color: var(--color-text);
}

.game-plan-bullet-dot {
  flex-shrink: 0;
  font-size: 1.15rem;
  line-height: 1.1;
  margin-top: -0.05rem;
}

.game-plan-bullet-list--wins .game-plan-bullet-dot,
.game-plan-section--wins .game-plan-bullet-dot,
.game-plan-insight-card--wins .game-plan-bullet-dot,
.admin-gp-field--wins .game-plan-bullet-dot {
  color: #10B981;
}

.game-plan-bullet-list--blockers .game-plan-bullet-dot,
.game-plan-section--blockers .game-plan-bullet-dot,
.game-plan-insight-card--blockers .game-plan-bullet-dot,
.admin-gp-field--blockers .game-plan-bullet-dot {
  color: #F59E0B;
}

.game-plan-bullet-text {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.game-plan-card__header-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.game-plan-progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #f1f3f6;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.game-plan-progress-pill--all-done {
  background: rgba(22, 163, 74, 0.1);
  color: #16A34A;
  border-color: rgba(22, 163, 74, 0.25);
}

.btn-gp-toggle {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-gp-toggle:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-text);
}

.btn-gp-toggle__chevron {
  transition: transform 0.2s ease;
}

.game-plan-card--collapsed .btn-gp-toggle__chevron {
  transform: rotate(-90deg);
}

.game-plan-recording-banner {
  margin-bottom: 0.15rem;
}

.btn-game-plan-recording {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  width: fit-content;
}

.btn-game-plan-recording:hover {
  background: #dbeafe;
  color: #1e40af;
  border-color: #93c5fd;
  transform: translateY(-1px);
}

.btn-game-plan-recording__icon {
  font-size: 0.72rem;
  line-height: 1;
}

@media (max-width: 640px) {
  .btn-game-plan-recording {
    width: 100%;
    justify-content: center;
  }
}

.game-plan-card__body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.game-plan-section__label {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.game-plan-section--summary .game-plan-section__content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
  white-space: pre-line;
}

.game-plan-insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 680px) {
  .game-plan-insights-grid {
    grid-template-columns: 1fr;
  }
}

.game-plan-insight-card {
  border-radius: 10px;
  padding: 1rem 1.15rem;
  border: 1px solid transparent;
}

.game-plan-insight-card--wins {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.2);
}

.game-plan-insight-card--wins .game-plan-insight-card__title {
  color: #059669;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.game-plan-insight-card--blockers {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.2);
}

.game-plan-insight-card--blockers .game-plan-insight-card__title {
  color: #D97706;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.game-plan-insight-card__body {
  color: var(--color-text);
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-line;
}

.game-plan-actions-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.game-plan-action-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 9px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.game-plan-action-item:hover {
  background: #f0f2f6;
  border-color: #cbd5e1;
}

.game-plan-action-item--completed {
  opacity: 0.78;
  background: rgba(22, 163, 74, 0.04);
  border-color: rgba(22, 163, 74, 0.25);
}

.game-plan-action-checkbox {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  z-index: 1;
}

.game-plan-custom-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #94a3b8;
  background: var(--color-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  color: transparent;
  flex-shrink: 0;
  margin-top: 2px;
  pointer-events: none;
}

.game-plan-action-checkbox:checked + .game-plan-custom-check {
  background: #16A34A;
  border-color: #16A34A;
  color: #ffffff;
}

.game-plan-action-text {
  font-size: 0.93rem;
  line-height: 1.45;
  color: var(--color-text);
  flex: 1;
  word-break: break-word;
  transition: color 0.15s ease, text-decoration 0.15s ease;
  pointer-events: none;
}

.game-plan-action-item--completed .game-plan-action-text {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

.game-plan-action-feedback {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  pointer-events: none;
  position: relative;
  z-index: 2;
  min-height: 20px;
}

.game-plan-save-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  line-height: 1.2;
  white-space: nowrap;
  animation: gpSaveFadeIn 0.18s ease-out;
}

@keyframes gpSaveFadeIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.game-plan-save-pill--success {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.game-plan-save-pill--error {
  background: rgba(220, 38, 38, 0.12);
  color: #DC2626;
  border: 1px solid rgba(220, 38, 38, 0.25);
}

/* ── Admin Game Plan Styles ────────────────────────── */
.admin-gp-section {
  margin-top: 2rem;
}

.admin-gp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.btn-admin-add-gp {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  background: #8B5CF6;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-admin-add-gp:hover {
  background: #7C3AED;
}

.admin-gp-form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.admin-gp-form-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.admin-form-group {
  margin-bottom: 1rem;
}

.admin-form-group label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.admin-input,
.admin-textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--color-surface);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.admin-input:focus,
.admin-textarea:focus {
  border-color: #8B5CF6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.admin-textarea {
  resize: vertical;
  min-height: 80px;
}

.admin-gp-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.admin-gp-entries-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-gp-entry-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.15rem 1.3rem;
  margin-bottom: 1rem;
}

.admin-gp-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--color-border);
}

.admin-gp-entry-date {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-gp-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: #f1f3f6;
  color: var(--color-text-muted);
}

.admin-gp-actions-btns {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-gp-action-edit,
.btn-gp-action-delete {
  padding: 0.32rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  transition: all 0.15s ease;
}

.btn-gp-action-delete:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.btn-gp-action-edit:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
  color: #8B5CF6;
}

.admin-gp-entry-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.admin-gp-summary-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text);
  white-space: pre-line;
}

.admin-gp-insights-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 600px) {
  .admin-gp-insights-row {
    grid-template-columns: 1fr;
  }
}

.admin-gp-subcard {
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.admin-gp-subcard--wins {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.2);
}

.admin-gp-subcard--blockers {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.2);
}

.admin-gp-action-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.admin-gp-action-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.875rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.02);
}

.admin-gp-check-indicator {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  border: 1.5px solid #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 11px;
}

.admin-gp-check-indicator--done {
  background: #16A34A;
  border-color: #16A34A;
  color: #ffffff;
}

.admin-gp-check-text--done {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

.admin-badge-gp-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.1);
  color: #7C3AED;
}

.admin-badge-gp-actions--done {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

/* ── My Profile View & Integration ─────────────────── */
.profile-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 0 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-header__text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.profile-header__subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6366F1;
}

.profile-header__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.profile-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 820px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

.profile-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
}

.profile-card--summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-avatar-container {
  position: relative;
  margin-bottom: 0.5rem;
}

.profile-summary__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28);
}

.profile-summary__avatar.has-photo {
  background: transparent;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.sidebar-profile__avatar,
.wins-wall-avatar,
.admin-avatar,
.admin-modal-avatar {
  overflow: hidden;
}

.sidebar-profile__avatar.has-photo,
.wins-wall-avatar.has-photo,
.admin-avatar.has-photo,
.admin-modal-avatar.has-photo {
  background: transparent !important;
  padding: 0 !important;
}

/* Photo controls */
.profile-photo-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.profile-photo-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-profile-photo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  transition: all 0.15s ease;
}

.btn-profile-photo:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: #6366F1;
  color: #6366F1;
}

.btn-profile-photo--remove {
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.04);
}

.btn-profile-photo--remove:hover {
  background: #EF4444;
  color: #ffffff;
  border-color: #EF4444;
}

.profile-photo-hint {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.profile-photo-status {
  font-size: 0.78rem;
  font-weight: 600;
  min-height: 1.1rem;
}

.profile-photo-status.is-saving {
  color: var(--color-text-muted);
}

.profile-photo-status.is-success {
  color: #10B981;
}

.profile-photo-status.is-error {
  color: #EF4444;
}

.profile-summary__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.profile-summary__business {
  font-size: 0.92rem;
  font-weight: 600;
  color: #6366F1;
  margin-bottom: 0.25rem;
}

.profile-summary__email {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  word-break: break-all;
  margin-bottom: 1.4rem;
}

.profile-summary__badges {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
}

.profile-badge-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.profile-badge-item__label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.profile-badge-item__val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
}

.profile-badge-item__val.revenue-pill {
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.8rem;
}

.profile-card__header {
  margin-bottom: 1.5rem;
}

.profile-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.profile-card__sub {
  font-size: 0.84rem;
  color: var(--color-text-muted);
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.profile-form__row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 580px) {
  .profile-form__row--2 {
    grid-template-columns: 1fr;
  }
}

.profile-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.profile-form__label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.required-star {
  color: #EF4444;
  margin-left: 2px;
}

.profile-form__input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.92rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.profile-form__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.profile-form__input--readonly {
  background: rgba(0, 0, 0, 0.03);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

.profile-form__hint {
  font-size: 0.76rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.profile-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.profile-form__status {
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 1.2rem;
}

.profile-form__status.is-saving {
  color: var(--color-text-muted);
}

.profile-form__status.is-success {
  color: #10B981;
}

.profile-form__status.is-error {
  color: #EF4444;
}

.btn-profile-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  background: #4F46E5;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-profile-save:hover {
  background: #4338CA;
  transform: translateY(-1px);
}

.btn-profile-save:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ── First-Time Profile Setup Modal ─────────────────── */
.profile-setup-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.profile-setup-modal[hidden] {
  display: none !important;
}

.profile-setup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.profile-setup-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 500px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.25);
  padding: 2.25rem 2rem;
  animation: profileModalPop 0.25s ease-out;
}

@keyframes profileModalPop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.profile-setup-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.12);
  color: #6366F1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.profile-setup-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.profile-setup-sub {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.profile-setup-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.profile-setup-actions {
  margin-top: 0.6rem;
}

.btn-profile-setup-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  background: #4F46E5;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-profile-setup-submit:hover {
  background: #4338CA;
  transform: translateY(-1px);
}

/* ── Profile Global Integrations ───────────────────── */
/* Sidebar */
.sidebar-profile__business {
  display: block;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  margin-top: 1px;
}

.sidebar-rev-bracket-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
  width: fit-content;
}

/* Overview header badges */
.client-milestones {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.overview-prog-day-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.1);
  color: #6366F1;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.overview-rev-bracket-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Wins Wall */
.wins-wall-client__biz {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-top: 1px;
}

/* Admin Clients List & Modal */
.admin-badge-biz {
  display: inline-block;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  padding: 0.12rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.08);
  color: #6366F1;
  border: 1px solid rgba(99, 102, 241, 0.18);
  margin-right: 0.35rem;
}

.admin-badge-prog-day {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.1);
  color: #6366F1;
  border: 1px solid rgba(99, 102, 241, 0.22);
}

.admin-profile-section {
  border-left: 3px solid #6366F1;
}

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

.admin-profile-form-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
}

.admin-profile-save-status {
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 1.2rem;
}

.admin-profile-save-status.is-saving {
  color: var(--color-text-muted);
}

.admin-profile-save-status.is-success {
  color: #10B981;
}

.admin-profile-save-status.is-error {
  color: #EF4444;
}

/* ── Dark Mode Overrides for Game Plan ─────────────── */
[data-theme="dark"] {
  .game-plan-subtitle {
    color: #818CF8;
  }

  .game-plan-card--latest {
    box-shadow: 0 0 32px -8px rgba(99, 102, 241, 0.25), 0 4px 20px rgba(0, 0, 0, 0.45);
    border-color: rgba(99, 102, 241, 0.4);
  }

  .game-plan-card__header {
    background: rgba(18, 22, 32, 0.95);
    border-color: #1f2432;
  }

  .game-plan-card__header:hover {
    background: rgba(255, 255, 255, 0.03);
  }

  .btn-game-plan-recording {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.3);
  }

  .btn-game-plan-recording:hover {
    background: rgba(99, 102, 241, 0.25);
    color: #c7d2fe;
    border-color: rgba(99, 102, 241, 0.5);
  }

  .game-plan-date-badge {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #f3f4f6;
  }

  .game-plan-date-badge svg {
    color: #A5B4FC;
  }

  .game-plan-tag-latest {
    background: rgba(129, 140, 248, 0.18);
    color: #A5B4FC;
    border-color: rgba(129, 140, 248, 0.32);
  }

  .game-plan-bullet-list--wins .game-plan-bullet-dot,
  .game-plan-section--wins .game-plan-bullet-dot,
  .game-plan-insight-card--wins .game-plan-bullet-dot,
  .admin-gp-field--wins .game-plan-bullet-dot {
    color: #34D399;
  }

  .game-plan-bullet-list--blockers .game-plan-bullet-dot,
  .game-plan-section--blockers .game-plan-bullet-dot,
  .game-plan-insight-card--blockers .game-plan-bullet-dot,
  .admin-gp-field--blockers .game-plan-bullet-dot {
    color: #FBBF24;
  }

  .game-plan-progress-pill {
    background: #171b26;
    border-color: #262b3a;
    color: #94a3b8;
  }

  .game-plan-progress-pill--all-done {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border-color: rgba(16, 185, 129, 0.3);
  }

  .btn-gp-toggle {
    border-color: #262b3a;
    color: #94a3b8;
  }

  .btn-gp-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f3f4f6;
  }

  .game-plan-empty {
    border-color: #262b3a;
  }

  .game-plan-empty__icon {
    background: rgba(129, 140, 248, 0.15);
    color: #A5B4FC;
  }

  .game-plan-action-item {
    background: #141722;
    border-color: #222736;
  }

  .game-plan-action-item:hover {
    background: #1a1e2c;
    border-color: #333a4d;
  }

  .game-plan-action-item--completed {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
  }

  .game-plan-custom-check {
    background: #1a1e2c;
    border-color: #475569;
  }

  .game-plan-action-checkbox:checked + .game-plan-custom-check {
    background: #10B981;
    border-color: #10B981;
    color: #ffffff;
  }

  .game-plan-insight-card--wins {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
  }

  .game-plan-insight-card--wins .game-plan-insight-card__title {
    color: #34D399;
  }

  .game-plan-insight-card--blockers {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
  }

  .game-plan-insight-card--blockers .game-plan-insight-card__title {
    color: #FBBF24;
  }

  .admin-gp-entry-header {
    border-color: #262a36;
  }

  .admin-gp-pill {
    background: #171b26;
    color: #94a3b8;
  }

  .btn-gp-action-edit,
  .btn-gp-action-delete {
    background: #171b26;
    border-color: #262a36;
    color: #cbd5e1;
  }

  .btn-gp-action-delete:hover {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.4);
    color: #fca5a5;
  }

  .btn-gp-action-edit:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    color: #c4b5fd;
  }

  .admin-gp-subcard--wins {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
  }

  .admin-gp-subcard--blockers {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
  }

  .admin-gp-action-row {
    background: #141722;
  }

  .admin-badge-gp-actions {
    background: rgba(167, 139, 250, 0.15);
    color: #C4B5FD;
  }

  .admin-badge-gp-actions--done {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
  }

  .admin-input,
  .admin-textarea {
    background: #11141c;
    border-color: #262a36;
    color: #f3f4f6;
  }

  .admin-input:focus,
  .admin-textarea:focus {
    border-color: #A78BFA;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
  }

  .game-plan-save-pill--success {
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
    border-color: rgba(16, 185, 129, 0.35);
  }

  .game-plan-save-pill--error {
    background: rgba(239, 68, 68, 0.2);
    color: #F87171;
    border-color: rgba(239, 68, 68, 0.35);
  }

  /* Profile Dark Mode Overrides */
  .profile-header__subtitle {
    color: #A5B4FC;
  }

  .profile-card {
    background: #161a26;
    border-color: #262a36;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  }

  .profile-summary__business {
    color: #A5B4FC;
  }

  .profile-summary__badges,
  .profile-form__footer {
    border-color: #262a36;
  }

  .profile-badge-item {
    background: #11141c;
    border-color: #262a36;
  }

  .profile-badge-item__val.revenue-pill {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border-color: rgba(16, 185, 129, 0.3);
  }

  .profile-form__input {
    background: #11141c;
    border-color: #262a36;
    color: #f3f4f6;
  }

  .profile-form__input:focus {
    border-color: #A5B4FC;
    box-shadow: 0 0 0 3px rgba(165, 180, 252, 0.2);
  }

  .profile-form__input--readonly {
    background: rgba(255, 255, 255, 0.04);
    border-color: #262a36;
    color: #94a3b8;
  }

  .profile-setup-backdrop {
    background: rgba(5, 8, 16, 0.8);
  }

  .profile-setup-dialog {
    background: #161a26;
    border-color: #262a36;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
  }

  .profile-setup-icon {
    background: rgba(129, 140, 248, 0.15);
    color: #A5B4FC;
  }

  .sidebar-profile__business {
    color: #94a3b8;
  }

  .sidebar-rev-bracket-pill {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border-color: rgba(16, 185, 129, 0.3);
  }

  .overview-prog-day-pill {
    background: rgba(129, 140, 248, 0.15);
    color: #A5B4FC;
    border-color: rgba(129, 140, 248, 0.3);
  }

  .overview-rev-bracket-pill {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border-color: rgba(16, 185, 129, 0.3);
  }

  .wins-wall-client__biz {
    color: #94a3b8;
  }

  .admin-badge-biz {
    background: rgba(129, 140, 248, 0.12);
    color: #C7D2FE;
    border-color: rgba(129, 140, 248, 0.25);
  }

  .admin-badge-prog-day {
    background: rgba(129, 140, 248, 0.15);
    color: #C7D2FE;
    border-color: rgba(129, 140, 248, 0.3);
  }

  .btn-profile-photo {
    background: #161a26;
    border-color: #262a36;
    color: #cbd5e1;
  }

  .btn-profile-photo:hover {
    background: rgba(129, 140, 248, 0.15);
    border-color: #818CF8;
    color: #A5B4FC;
  }

  .btn-profile-photo--remove {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #F87171;
  }

  .btn-profile-photo--remove:hover {
    background: #EF4444;
    color: #ffffff;
  }
}

/* ══════════════════════════════════════════════════════════════
   BUSINESS NOTEPAD
   ══════════════════════════════════════════════════════════════ */
.notepad-container {
  max-width: 1060px;
  margin: 0 auto;
}

.notepad-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.notepad-header__subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #10B981;
  margin-bottom: 0.35rem;
  display: block;
}

.notepad-header__title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 0.35rem;
  color: var(--color-text);
}

.notepad-header__desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 600px;
}

.notepad-save-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  transition: all 0.25s ease;
}

.notepad-save-badge__icon {
  width: 14px;
  height: 14px;
}

.notepad-save-badge--saving {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

.notepad-save-badge--saved {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.25);
}

.notepad-save-badge--error {
  background: rgba(245, 158, 11, 0.1);
  color: #F59E0B;
  border-color: rgba(245, 158, 11, 0.25);
}

/* Grid: Left Calendar / Right Day Workspace (Same Height) */
.notepad-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  align-items: stretch;
}

@media (max-width: 960px) {
  .notepad-grid {
    grid-template-columns: 1fr;
  }
}

/* Calendar Card */
.notepad-calendar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.35rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.notepad-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.15rem;
}

.notepad-cal-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text);
}

.notepad-cal-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.notepad-cal-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.15s;
}

.notepad-cal-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: #000000;
}

.notepad-cal-btn svg {
  width: 16px;
  height: 16px;
}

.notepad-cal-today-btn {
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.15s;
}

.notepad-cal-today-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: #000000;
}

.notepad-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.45rem;
}

.notepad-cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.notepad-cal-day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  padding: 2px;
}

.notepad-cal-day:hover {
  background: rgba(0, 0, 0, 0.04);
}

.notepad-cal-day--muted {
  opacity: 0.35;
}

.notepad-cal-day--today {
  font-weight: 800;
  border-color: #10B981;
}

.notepad-cal-day--selected {
  background: #000000 !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.notepad-cal-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10B981;
  margin-top: 2px;
}

.notepad-cal-day--selected .notepad-cal-dot {
  background: #34D399;
}

.notepad-cal-legend {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.notepad-cal-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.notepad-cal-dot--legend {
  display: inline-block;
  margin: 0;
}

.notepad-cal-today-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  border: 1.5px solid #10B981;
}

/* Day Workspace Card */
.notepad-day-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.notepad-day-banner {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
  margin-bottom: 1.15rem;
}

.notepad-day-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  margin-bottom: 0.35rem;
}

.notepad-day-pill--today {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
}

.notepad-day-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--color-text);
}

.notepad-day-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Section Header */
.notepad-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.notepad-section-header__left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notepad-section-icon {
  width: 18px;
  height: 18px;
  color: #000000;
}

.notepad-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text);
}

.notepad-counter-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: #f1f5f9;
  color: var(--color-text-muted);
}

.notepad-counter-pill--complete {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
}

/* Tasks: Full Width Input + Small Add Button */
.notepad-task-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 0.75rem;
}

.notepad-task-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.notepad-task-input:focus {
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.notepad-task-add-btn {
  flex: 0 0 auto;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  font-size: 0.825rem;
  font-weight: 700;
  border-radius: 8px;
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.notepad-task-add-btn:hover {
  background: #1f2430;
  border-color: #1f2430;
  transform: translateY(-1px);
}

.notepad-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 40px;
}

.notepad-tasks-empty {
  padding: 1.25rem 1rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  border: 1px dashed var(--color-border);
  border-radius: 8px;
}

.notepad-tasks-empty p {
  margin: 0;
}

.notepad-task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  transition: all 0.15s;
}

.notepad-task-item:hover {
  border-color: #10B981;
  background: rgba(0, 0, 0, 0.015);
}

.notepad-task-item.is-completed {
  opacity: 0.7;
}

.notepad-task-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 1;
  cursor: pointer;
  user-select: none;
  min-width: 0;
}

.notepad-task-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.notepad-task-custom-check {
  width: 19px;
  height: 19px;
  border-radius: 5px;
  border: 1.5px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}

.notepad-task-custom-check svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.15s;
}

.notepad-task-checkbox:checked + .notepad-task-custom-check {
  background: #10B981;
  border-color: #10B981;
  color: #ffffff;
}

.notepad-task-checkbox:checked + .notepad-task-custom-check svg {
  opacity: 1;
  transform: scale(1);
}

.notepad-task-text {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--color-text);
  word-break: break-word;
  transition: all 0.15s;
}

.notepad-task-item.is-completed .notepad-task-text {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

.notepad-task-del-btn {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  opacity: 0.45;
  transition: all 0.15s;
  flex-shrink: 0;
}

.notepad-task-del-btn svg {
  width: 14px;
  height: 14px;
}

.notepad-task-del-btn:hover {
  opacity: 1;
  color: #EF4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Notes & Ideas: Flex to fill Day Card */
.notepad-notes-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.notepad-notes-textarea {
  flex: 1;
  width: 100%;
  min-height: 110px;
  padding: 0.75rem 0.95rem;
  font-size: 0.9rem;
  line-height: 1.55;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.notepad-notes-textarea:focus {
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Daily Reflection Card */
.notepad-reflection-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow);
}

.notepad-reflection-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.notepad-reflection-header__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notepad-reflection-header__icon svg {
  width: 20px;
  height: 20px;
}

.notepad-reflection-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.2rem;
  color: var(--color-text);
}

.notepad-reflection-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Mood Selector */
.notepad-reflection-question {
  margin-bottom: 1.25rem;
}

.notepad-reflection-label {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  display: block;
  color: var(--color-text);
}

.notepad-reflection-label strong {
  font-weight: 700;
}

.notepad-mood-selector {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.notepad-mood-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.05rem;
  border-radius: 9999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.notepad-mood-btn:hover {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.05);
  transform: translateY(-1px);
}

.notepad-mood-btn.is-active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.notepad-mood-emoji {
  font-size: 1.1rem;
}

/* Reflection Grid */
.notepad-reflection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

@media (max-width: 800px) {
  .notepad-reflection-grid {
    grid-template-columns: 1fr;
  }
}

.notepad-reflection-input {
  width: 100%;
  min-height: 54px;
  height: 54px;
  padding: 0.55rem 0.8rem;
  font-size: 0.875rem;
  line-height: 1.45;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.notepad-reflection-input:focus {
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* ══════════════════════════════════════════════════════════════
   BUSINESS NOTEPAD — DARK MODE OVERRIDES
   ══════════════════════════════════════════════════════════════ */
[data-theme="dark"] .notepad-calendar-card,
[data-theme="dark"] .notepad-day-card,
[data-theme="dark"] .notepad-reflection-card {
  background: #161a26;
  border-color: #262a36;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .notepad-section-icon {
  color: #ffffff;
}

[data-theme="dark"] .notepad-cal-btn,
[data-theme="dark"] .notepad-cal-today-btn {
  background: #11141c;
  border-color: #262a36;
  color: #f3f4f6;
}

[data-theme="dark"] .notepad-cal-btn:hover,
[data-theme="dark"] .notepad-cal-today-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
  color: #ffffff;
}

[data-theme="dark"] .notepad-cal-day:hover {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .notepad-cal-day--selected {
  background: #ffffff !important;
  color: #000000 !important;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .notepad-cal-day--selected .notepad-cal-dot {
  background: #10B981 !important;
}

[data-theme="dark"] .notepad-cal-day--today {
  border-color: #34D399;
}

[data-theme="dark"] .notepad-counter-pill {
  background: #202534;
  color: #94a3b8;
}

[data-theme="dark"] .notepad-counter-pill--complete {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
}

[data-theme="dark"] .notepad-task-input,
[data-theme="dark"] .notepad-notes-textarea,
[data-theme="dark"] .notepad-reflection-input {
  background: #11141c;
  border-color: #262a36;
  color: #f3f4f6;
}

[data-theme="dark"] .notepad-task-input:focus,
[data-theme="dark"] .notepad-notes-textarea:focus,
[data-theme="dark"] .notepad-reflection-input:focus {
  border-color: #34D399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}

[data-theme="dark"] .notepad-task-add-btn {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

[data-theme="dark"] .notepad-task-add-btn:hover {
  background: #e2e8f0;
  border-color: #e2e8f0;
}

[data-theme="dark"] .notepad-task-item {
  background: #11141c;
  border-color: #262a36;
}

[data-theme="dark"] .notepad-task-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: #34D399;
}

[data-theme="dark"] .notepad-task-custom-check {
  border-color: #3f465c;
  background: #161a26;
}

[data-theme="dark"] .notepad-task-checkbox:checked + .notepad-task-custom-check {
  background: #10B981;
  border-color: #10B981;
}

[data-theme="dark"] .notepad-mood-btn {
  background: #11141c;
  border-color: #262a36;
  color: #f3f4f6;
}

[data-theme="dark"] .notepad-mood-btn:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: #34D399;
}

[data-theme="dark"] .notepad-mood-btn.is-active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .notepad-save-badge--saved {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.35);
}

[data-theme="dark"] .notepad-save-badge--saving {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border-color: #262a36;
}

/* ── Crop Profile Photo Modal ──────────────────────── */
.modal-crop {
  max-width: 380px;
  width: 100%;
}

.crop-modal-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.crop-viewport-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0f172a;
  border-radius: 12px;
  padding: 0.5rem;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.crop-canvas {
  width: 300px;
  height: 300px;
  max-width: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  border-radius: 8px;
}

.crop-canvas.is-dragging {
  cursor: grabbing;
}

.crop-controls {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.crop-zoom-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.25rem;
}

.crop-zoom-icon {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.crop-zoom-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 9999px;
  background: var(--color-border);
  outline: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.crop-zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.crop-zoom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.crop-zoom-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.crop-hint-text {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

.crop-modal-actions {
  margin-top: 1.25rem;
  padding-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.btn-crop-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 8px;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn-crop-save:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-crop-save:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Dark mode overrides */
[data-theme="dark"] .crop-viewport-wrapper {
  background: #030712;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .crop-zoom-slider {
  background: #1f2937;
}

[data-theme="dark"] .crop-zoom-slider::-webkit-slider-thumb {
  background: #10b981;
  border-color: #111827;
}

[data-theme="dark"] .crop-zoom-slider::-moz-range-thumb {
  background: #10b981;
  border-color: #111827;
}

[data-theme="dark"] .btn-crop-save {
  background: #10b981;
  color: #062b1a;
}

[data-theme="dark"] .btn-crop-save:hover {
  background: #34d399;
}

/* ════════════════════════════════════════════════════════════
   TOOLKIT & DAILY PROFIT NUMBER™
   ════════════════════════════════════════════════════════════ */

.toolkit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.toolkit-header__title-block {
  flex: 1;
  min-width: 240px;
}

.toolkit-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.toolkit-save-status {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.toolkit-save-status.is-dirty {
  color: #f59e0b;
}

.toolkit-save-status.is-saving {
  color: #3b82f6;
}

.toolkit-save-status.is-saved {
  color: #10b981;
}

.toolkit-save-status.is-error {
  color: #ef4444;
}

.toolkit-save-status.is-info {
  color: #8b5cf6;
}

.toolkit-btn-save {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  background: #2E9E78;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.toolkit-btn-save:hover {
  background: #248262;
  transform: translateY(-1px);
}

/* Admin preview bar */
.toolkit-admin-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(124, 58, 237, 0.08);
  border: 1px dashed rgba(124, 58, 237, 0.4);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}

.toolkit-admin-bar__label {
  font-weight: 700;
  color: #7c3aed;
}

.toolkit-admin-bar__hint {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.toolkit-version-toggle {
  display: inline-flex;
  background: var(--color-border);
  padding: 2px;
  border-radius: 8px;
  gap: 2px;
}

.toolkit-version-pill {
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.toolkit-version-pill:hover {
  color: var(--color-text);
}

.toolkit-version-pill.is-active {
  background: var(--color-surface);
  color: #2E9E78;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Tabs bar */
.toolkit-tabs-bar {
  display: flex;
  gap: 1.5rem;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.toolkit-tab-btn {
  padding: 0.65rem 0.25rem 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.15s;
}

.toolkit-tab-btn:hover {
  color: var(--color-text);
}

.toolkit-tab-btn.is-active {
  color: #2E9E78;
  border-bottom-color: #2E9E78;
}

.toolkit-tab-content {
  display: none;
}

.toolkit-tab-content.is-active {
  display: block;
}

/* Tax Note Alert */
.toolkit-tax-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  background: rgba(46, 158, 120, 0.08);
  border: 1px solid rgba(46, 158, 120, 0.25);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  color: var(--color-text);
  font-size: 0.9rem;
  line-height: 1.45;
}

.toolkit-tax-note__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2E9E78;
  flex-shrink: 0;
}

/* Guidance Bar */
.toolkit-guidance-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.15rem;
  background: rgba(46, 158, 120, 0.08);
  border: 1.5px solid rgba(46, 158, 120, 0.35);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--color-text);
}

.toolkit-guidance-pencil {
  color: #2E9E78;
  flex-shrink: 0;
}

/* Tax Note Alert */
.toolkit-tax-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.15rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.toolkit-tax-note__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2E9E78;
  flex-shrink: 0;
}

/* ── Top Summary Grid ──────────────────────────────── */
.toolkit-top-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: stretch;
}

@media (max-width: 1200px) {
  .toolkit-top-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .toolkit-top-summary-grid {
    grid-template-columns: 1fr;
  }
}

.toolkit-summary-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.4rem;
  position: relative;
  transition: transform 0.15s, border-color 0.15s;
}

.toolkit-summary-card--hero {
  grid-column: span 1;
  background: linear-gradient(135deg, rgba(46, 158, 120, 0.12), rgba(46, 158, 120, 0.04));
  border: 2px solid #2E9E78;
  box-shadow: 0 4px 20px rgba(46, 158, 120, 0.12);
}

.toolkit-summary-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.toolkit-badge-pill {
  display: inline-block;
  font-size: 0.725rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2E9E78;
  background: rgba(46, 158, 120, 0.15);
  border: 1px solid rgba(46, 158, 120, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

.toolkit-summary-version-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.toolkit-summary-hero-amount-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0.4rem 0 0.2rem;
}

.toolkit-summary-hero-amount {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #2E9E78;
}

.toolkit-summary-hero-unit {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.toolkit-summary-hero-sub {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.4;
}

.toolkit-summary-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.toolkit-summary-card__val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
}

.toolkit-summary-card__hint {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.toolkit-rate-diff-pill {
  display: inline-block;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--color-bg);
  color: var(--color-text-muted);
  width: fit-content;
}

.toolkit-rate-diff-pill--green {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.toolkit-rate-diff-pill--red {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

/* Steps Grid */
.toolkit-steps-grid {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.toolkit-step-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.75rem;
}

.toolkit-step-card__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.toolkit-step-badge {
  background: #2E9E78;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  flex-shrink: 0;
}

.toolkit-step-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 0.2rem;
}

.toolkit-step-sub {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Inputs grid & clear borders with pencil icons */
.toolkit-inputs-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem 1.5rem;
}

.toolkit-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.toolkit-form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.toolkit-hint {
  font-weight: 400;
  font-size: 0.775rem;
  color: var(--color-text-muted);
}

.toolkit-input-affix-wrap {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.toolkit-input {
  width: 100%;
  padding: 0.65rem 2.4rem 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 1.5px solid #94a3b8; /* CLEAR VISIBLE BORDER */
  background: #f8fafc;
  color: var(--color-text);
  outline: none;
  transition: all 0.15s ease;
}

.toolkit-input::placeholder {
  color: #94a3b8;
  font-style: italic;
}

.toolkit-input--grey {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.toolkit-input--grey:focus {
  background: #ffffff;
  border-color: #2E9E78;
  box-shadow: 0 0 0 3px rgba(46, 158, 120, 0.2);
}

.toolkit-pencil-icon {
  position: absolute;
  right: 0.85rem;
  color: #64748b;
  pointer-events: none;
  opacity: 0.8;
  transition: color 0.15s, opacity 0.15s;
}

.toolkit-input-affix-wrap:focus-within .toolkit-pencil-icon,
.toolkit-input-affix-wrap:hover .toolkit-pencil-icon {
  color: #2E9E78;
  opacity: 1;
}

.toolkit-input-affix {
  position: absolute;
  left: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  pointer-events: none;
}

.toolkit-input-suffix {
  position: absolute;
  right: 2.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  pointer-events: none;
}

.toolkit-input-affix-wrap .toolkit-input--money {
  padding-left: 1.85rem;
  padding-right: 4.2rem;
}

/* ── Step 1: Boxed Cards in a Row ──────────────────── */
.toolkit-boxed-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.toolkit-boxed-card {
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: border-color 0.15s;
}

.toolkit-boxed-card__label {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.toolkit-boxed-card__val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
}

.toolkit-boxed-card__sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.toolkit-boxed-card--highlight {
  background: rgba(46, 158, 120, 0.09);
  border: 1.5px solid #2E9E78;
}

.toolkit-boxed-card--highlight .toolkit-boxed-card__label {
  color: #2E9E78;
}

.toolkit-boxed-card--highlight .toolkit-boxed-card__val {
  color: #2E9E78;
}

/* ── Step 2: Expenses List & Renaming ──────────────── */
.toolkit-expenses-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.85rem 1.5rem;
}

.toolkit-expense-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.toolkit-expense-name-wrap {
  display: flex;
  align-items: center;
  position: relative;
  flex: 1;
  min-width: 140px;
}

.toolkit-expense-rename-input {
  width: 100%;
  padding: 0.45rem 1.8rem 0.45rem 0.6rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  outline: none;
  transition: all 0.15s;
}

.toolkit-expense-rename-input:hover {
  background: var(--color-bg);
  border-color: var(--color-border);
}

.toolkit-expense-rename-input:focus {
  background: var(--color-surface);
  border-color: #2E9E78;
  box-shadow: 0 0 0 2px rgba(46, 158, 120, 0.2);
}

.toolkit-expense-name-wrap .toolkit-pencil-icon {
  right: 0.5rem;
}

.toolkit-expense-row .toolkit-input-affix-wrap {
  max-width: 190px;
}

.toolkit-results-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-top: 1.5rem;
  padding: 1.1rem 1.4rem;
  background: rgba(0, 0, 0, 0.025);
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.toolkit-result-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.toolkit-result-item__label {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.toolkit-result-item__val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text);
}

.toolkit-result-item__val--lg {
  font-size: 1.4rem;
}

.toolkit-result-item--highlight .toolkit-result-item__label {
  color: #2E9E78;
}

.toolkit-result-item--highlight .toolkit-result-item__val {
  color: #2E9E78;
  font-size: 1.35rem;
}

/* ── Step 3: Rates & Before & After ────────────────── */
.toolkit-rates-header-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  align-items: end;
}

.toolkit-stat-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 1.15rem;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
}

.toolkit-stat-block__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.toolkit-stat-block__val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text);
}

.toolkit-stat-block__hint {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.toolkit-before-after-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.toolkit-comparison-card {
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toolkit-comparison-card--new {
  background: linear-gradient(135deg, rgba(46, 158, 120, 0.08), rgba(59, 130, 246, 0.05));
  border: 1.5px solid rgba(46, 158, 120, 0.4);
}

.toolkit-comparison-card__head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.toolkit-comparison-pill {
  display: inline-block;
  font-size: 0.725rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  width: fit-content;
}

.toolkit-comparison-pill--new {
  color: #2E9E78;
  background: rgba(46, 158, 120, 0.15);
  border-color: rgba(46, 158, 120, 0.35);
}

.toolkit-comparison-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 0;
}

.toolkit-comparison-metrics {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toolkit-comp-metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.toolkit-comp-metric:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.toolkit-comp-metric__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.toolkit-comp-metric__val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text);
}

.toolkit-comp-metric__val--hero {
  font-size: 1.85rem;
  color: #2E9E78;
}

.toolkit-comp-metric__sub {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.toolkit-comp-metric__hint {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Now vs New Table */
.toolkit-now-vs-new-table {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--color-surface);
  border: 1px solid rgba(46, 158, 120, 0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.toolkit-now-vs-new-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  font-size: 0.85rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--color-border);
}

.toolkit-now-vs-new-row:last-child {
  border-bottom: none;
}

.toolkit-now-vs-new-row--head {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.725rem;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.toolkit-now-vs-new-row strong:last-child {
  color: #2E9E78;
}

/* Extra in pocket: LARGE AND GREEN */
.toolkit-extra-pocket-banner {
  background: #f0fdf4;
  border: 2px solid #22c55e;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.toolkit-extra-pocket-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #15803d;
}

.toolkit-extra-pocket-amount-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.toolkit-extra-pocket-amount {
  font-size: 2.25rem;
  font-weight: 900;
  color: #16a34a;
  line-height: 1.05;
}

.toolkit-extra-pocket-sub {
  font-size: 1.05rem;
  font-weight: 700;
  color: #15803d;
}

.toolkit-callout-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  background: var(--color-surface);
  border: 1.5px solid rgba(46, 158, 120, 0.4);
  border-radius: 8px;
  font-size: 0.925rem;
  color: var(--color-text);
}

.toolkit-callout-banner svg {
  color: #2E9E78;
  flex-shrink: 0;
}

/* Step 4 Grid */
.toolkit-step4-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.toolkit-tax-pill-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.toolkit-tax-pill {
  padding: 0.45rem 0.85rem;
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.15s;
}

.toolkit-tax-pill:hover {
  border-color: #2E9E78;
}

.toolkit-tax-pill.is-active {
  background: #2E9E78;
  color: #ffffff;
  border-color: #2E9E78;
}

.toolkit-final-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.toolkit-final-result-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.15rem 1.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.toolkit-final-result-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.toolkit-final-result-card__val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text);
}

.toolkit-final-result-card__sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.toolkit-final-result-card--dpn {
  background: rgba(46, 158, 120, 0.1);
  border: 1.5px solid rgba(46, 158, 120, 0.4);
}

.toolkit-final-result-card--dpn .toolkit-final-result-card__label {
  color: #2E9E78;
}

.toolkit-final-result-card__val--hero {
  font-size: 1.85rem;
  color: #2E9E78;
}

/* Admin modal toolkit styling */
.admin-toolkit-section {
  border-left: 3px solid #2E9E78;
}

.admin-toolkit-ver-switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-toolkit-ver-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.admin-toolkit-hero-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.85rem 1.25rem;
  background: rgba(46, 158, 120, 0.08);
  border: 1px solid rgba(46, 158, 120, 0.25);
  border-radius: 10px;
  flex-wrap: wrap;
}

.admin-tk-hero-val {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.admin-tk-hero-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #2E9E78;
}

.admin-tk-hero-val strong {
  font-size: 1.35rem;
  font-weight: 800;
  color: #2E9E78;
}

.admin-tk-hero-badges {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.admin-tk-hero-badges strong {
  color: var(--color-text);
}

.admin-form-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.85rem 1rem;
}

.admin-toolkit-expenses-accordion {
  margin-top: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  background: var(--color-bg);
}

.admin-toolkit-expenses-summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  outline: none;
}

.admin-toolkit-expenses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.65rem 1rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-border);
}

/* ════════════════════════════════════════════════════════════
   DARK MODE OVERRIDES FOR TOOLKIT
   ════════════════════════════════════════════════════════════ */

[data-theme="dark"] .toolkit-guidance-bar {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.35);
  color: #d1fae5;
}

[data-theme="dark"] .toolkit-input {
  border-color: #475569;
}

[data-theme="dark"] .toolkit-input--grey {
  background: #191e2b;
  border-color: #475569;
  color: #f1f5f9;
}

[data-theme="dark"] .toolkit-input--grey:focus {
  background: #121520;
  border-color: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}

[data-theme="dark"] .toolkit-input::placeholder {
  color: #64748b;
}

[data-theme="dark"] .toolkit-pencil-icon {
  color: #94a3b8;
}

[data-theme="dark"] .toolkit-summary-card {
  background: #121520;
  border-color: #232838;
}

[data-theme="dark"] .toolkit-summary-card--hero {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(52, 211, 153, 0.05));
  border-color: #34d399;
}

[data-theme="dark"] .toolkit-rate-diff-pill--green {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.4);
}

[data-theme="dark"] .toolkit-rate-diff-pill--red {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

[data-theme="dark"] .toolkit-hero-card {
  background: #121520;
  border-color: #232838;
}

[data-theme="dark"] .toolkit-step-card {
  background: #121520;
  border-color: #232838;
}

[data-theme="dark"] .toolkit-boxed-card {
  background: #181d2a;
  border-color: #232838;
}

[data-theme="dark"] .toolkit-boxed-card--highlight {
  background: rgba(52, 211, 153, 0.12);
  border-color: #34d399;
}

[data-theme="dark"] .toolkit-results-bar {
  background: #181d2a;
  border-color: #232838;
}

[data-theme="dark"] .toolkit-stat-block {
  background: #181d2a;
  border-color: #232838;
}

[data-theme="dark"] .toolkit-comparison-card {
  background: #181d2a;
  border-color: #232838;
}

[data-theme="dark"] .toolkit-comparison-card--new {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.1), rgba(59, 130, 246, 0.08));
  border-color: rgba(52, 211, 153, 0.35);
}

[data-theme="dark"] .toolkit-now-vs-new-table {
  background: #121520;
  border-color: rgba(52, 211, 153, 0.3);
}

[data-theme="dark"] .toolkit-extra-pocket-banner {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
}

[data-theme="dark"] .toolkit-extra-pocket-amount {
  color: #4ade80;
}

[data-theme="dark"] .toolkit-extra-pocket-sub {
  color: #86efac;
}

[data-theme="dark"] .toolkit-final-result-card {
  background: #181d2a;
  border-color: #232838;
}

[data-theme="dark"] .toolkit-final-result-card--dpn {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.35);
}

[data-theme="dark"] .toolkit-callout-banner {
  background: #121520;
  border-color: rgba(52, 211, 153, 0.35);
}

[data-theme="dark"] .toolkit-admin-bar {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
}

[data-theme="dark"] .toolkit-tax-note {
  background: #161a26;
  border-color: #262a36;
}

[data-theme="dark"] .admin-toolkit-expenses-accordion {
  background: #151822;
  border-color: #232838;
}

/* ── Profile Setup: Business Type Question ── */
.profile-setup-dialog {
  max-width: 560px;
}

.profile-biz-type-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.profile-biz-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1.15rem;
  border-radius: 12px;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}

.profile-biz-card:hover {
  border-color: #818cf8;
}

.profile-biz-card:has(input:checked) {
  border-color: #4F46E5;
  background: rgba(99, 102, 241, 0.05);
  box-shadow: 0 0 0 1px #4F46E5;
}

.profile-biz-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.profile-biz-card__indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.profile-biz-card__indicator::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4F46E5;
  transform: scale(0);
  transition: transform 0.15s ease;
}

.profile-biz-card input:checked + .profile-biz-card__indicator {
  border-color: #4F46E5;
}

.profile-biz-card input:checked + .profile-biz-card__indicator::after {
  transform: scale(1);
}

.profile-biz-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.profile-biz-card__title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
}

.profile-biz-card__desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Dark mode overrides for profile business type */
[data-theme="dark"] .profile-biz-card {
  background: #181d2a;
  border-color: #2b3345;
}

[data-theme="dark"] .profile-biz-card:hover {
  border-color: #6366f1;
}

[data-theme="dark"] .profile-biz-card:has(input:checked) {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.12);
  box-shadow: 0 0 0 1px #6366f1;
}

[data-theme="dark"] .profile-biz-card__indicator {
  border-color: #475569;
}

[data-theme="dark"] .profile-biz-card input:checked + .profile-biz-card__indicator {
  border-color: #818cf8;
}

[data-theme="dark"] .profile-biz-card input:checked + .profile-biz-card__indicator::after {
  background: #818cf8;
}

[data-theme="dark"] .profile-biz-card__title {
  color: #f1f5f9;
}

[data-theme="dark"] .profile-biz-card__desc {
  color: #94a3b8;
}

/* ── Hero Daily Rate Indicator ── */
.toolkit-hero-current-daily {
  margin-top: 0.35rem;
  padding: 0;
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text-muted);
  background: none;
  border: none;
  display: block;
}

/* ── Red / Danger Card for Unpaid Hours (Requirements 6 & 7) ── */
.toolkit-boxed-card--danger,
.toolkit-summary-card--danger {
  background: #fef2f2 !important;
  border: 1.5px solid #ef4444 !important;
}

.toolkit-boxed-card__val--danger,
.toolkit-summary-card__val--danger {
  color: #dc2626 !important;
}

.toolkit-boxed-card__label--danger,
.toolkit-summary-card__label--danger {
  color: #991b1b !important;
}

.toolkit-boxed-card__sub--danger,
.toolkit-summary-card__hint--danger {
  color: #b91c1c !important;
}

[data-theme="dark"] .toolkit-boxed-card--danger,
[data-theme="dark"] .toolkit-summary-card--danger {
  background: rgba(239, 68, 68, 0.14) !important;
  border: 1.5px solid rgba(239, 68, 68, 0.45) !important;
}

[data-theme="dark"] .toolkit-boxed-card__val--danger,
[data-theme="dark"] .toolkit-summary-card__val--danger {
  color: #f87171 !important;
}

[data-theme="dark"] .toolkit-boxed-card__label--danger,
[data-theme="dark"] .toolkit-summary-card__label--danger {
  color: #fca5a5 !important;
}

[data-theme="dark"] .toolkit-boxed-card__sub--danger,
[data-theme="dark"] .toolkit-summary-card__hint--danger {
  color: #fca5a5 !important;
  opacity: 0.9;
}

/* ── After Tax Subtitles (Requirement 4) ── */
.toolkit-comp-after-tax {
  display: block;
  font-size: 0.74rem;
  color: var(--color-text-muted);
  font-weight: 400;
  margin-top: 0.15rem;
}

.toolkit-extra-pocket-after {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #15803d;
  margin-top: 0.45rem;
}

[data-theme="dark"] .toolkit-extra-pocket-after {
  color: #86efac;
}

.toolkit-now-vs-new-cell {
  display: flex;
  flex-direction: column;
}

/* ═══════════════════════════════════════════════════════════════ */
/*  Toolkit Tab 2: Profit Sweet Spot™                            */
/* ═══════════════════════════════════════════════════════════════ */

.sweet-spot-summary-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .sweet-spot-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .sweet-spot-summary-grid {
    grid-template-columns: 1fr;
  }
}

.sweet-spot-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.sweet-spot-btn-add {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  background: rgba(46, 158, 120, 0.12);
  color: #2E9E78;
  border: 1px solid rgba(46, 158, 120, 0.35);
  cursor: pointer;
  transition: all 0.15s ease;
}

.sweet-spot-btn-add:hover {
  background: #2E9E78;
  color: #ffffff;
}

[data-theme="dark"] .sweet-spot-btn-add {
  background: rgba(52, 211, 153, 0.14);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.4);
}

[data-theme="dark"] .sweet-spot-btn-add:hover {
  background: #34d399;
  color: #0d1117;
}

.sweet-spot-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 0.5rem;
}

.sweet-spot-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.sweet-spot-table th {
  text-align: left;
  padding: 0.75rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  border-bottom: 2px solid var(--color-border);
  line-height: 1.3;
  vertical-align: top;
}

.sweet-spot-th-hint {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: var(--color-text-muted);
  opacity: 0.85;
  margin-top: 2px;
}

.sweet-spot-table td {
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.sweet-spot-table tbody tr:hover td {
  background: rgba(46, 158, 120, 0.02);
}

[data-theme="dark"] .sweet-spot-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.sweet-spot-profit-cell {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.sweet-spot-toggle-pills {
  display: inline-flex;
  border-radius: 6px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 2px;
  flex-shrink: 0;
}

.sweet-spot-toggle-pill {
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.sweet-spot-toggle-pill.is-active {
  background: #2E9E78;
  color: #ffffff;
}

.sweet-spot-table .toolkit-input-affix-wrap {
  width: 100%;
}

.sweet-spot-input--num {
  text-align: center;
}

.sweet-spot-score-badge {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  width: 100%;
  gap: 2px;
}

.sweet-spot-score-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-text);
}

.sweet-spot-score-denom {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.sweet-spot-decision-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.sweet-spot-decision-select {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  padding-right: 1.8rem;
  -webkit-appearance: none;
  appearance: none;
}

.sweet-spot-decision--grow {
  background-color: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

.sweet-spot-decision--keep {
  background-color: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
}

.sweet-spot-decision--reprice {
  background-color: #fef3c7;
  color: #b45309;
  border-color: #fcd34d;
}

.sweet-spot-decision--phase-out {
  background-color: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.sweet-spot-decision--none {
  background-color: var(--color-bg);
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

[data-theme="dark"] .sweet-spot-decision--grow {
  background-color: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.4);
}

[data-theme="dark"] .sweet-spot-decision--keep {
  background-color: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .sweet-spot-decision--reprice {
  background-color: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}

[data-theme="dark"] .sweet-spot-decision--phase-out {
  background-color: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

.sweet-spot-changed-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.12);
  border-radius: 4px;
  padding: 1px 5px;
}

[data-theme="dark"] .sweet-spot-changed-tag {
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.22);
}

.sweet-spot-btn-del {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}

.sweet-spot-btn-del:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.sweet-spot-table-footer {
  padding-top: 0.75rem;
}

.sweet-spot-btn-add-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1.5px dashed var(--color-border);
  color: var(--color-text-muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sweet-spot-btn-add-inline:hover {
  border-color: #2E9E78;
  color: #2E9E78;
  background: rgba(46, 158, 120, 0.06);
}

/* Scatter chart */
.sweet-spot-chart-card {
  margin-top: 1.5rem;
}

.sweet-spot-chart-container {
  width: 100%;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

.sweet-spot-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.sweet-spot-quad-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.sweet-spot-quad-label--green {
  fill: #15803d;
}

[data-theme="dark"] .sweet-spot-quad-label--green {
  fill: #4ade80;
}

.sweet-spot-quad-label--red {
  fill: #b91c1c;
}

[data-theme="dark"] .sweet-spot-quad-label--red {
  fill: #f87171;
}

.sweet-spot-quad-sub {
  font-size: 11px;
  font-weight: 500;
  fill: var(--color-text-muted);
  opacity: 0.85;
}

.sweet-spot-axis-title {
  font-size: 12px;
  font-weight: 700;
  fill: var(--color-text);
}

.sweet-spot-axis-label {
  font-size: 10.5px;
  font-weight: 600;
  fill: var(--color-text-muted);
}

.sweet-spot-grid-line {
  stroke: var(--color-border);
  stroke-dasharray: 4 4;
  stroke-width: 1;
}

.sweet-spot-center-line {
  stroke: var(--color-border);
  stroke-width: 1.5;
}

.sweet-spot-dot-label {
  font-size: 11.5px;
  font-weight: 700;
  fill: var(--color-text);
  pointer-events: none;
}

.sweet-spot-empty-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.5rem;
  color: var(--color-text-muted);
  text-align: center;
  font-size: 0.95rem;
}

/* ── Recommended Tools Section (Toolkit) ── */
.toolkit-recommended-section {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
}

.toolkit-recommended-header {
  margin-bottom: 1.15rem;
}

.toolkit-recommended-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  letter-spacing: -0.01em;
}

.toolkit-recommended-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.toolkit-tool-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.toolkit-tool-card:hover {
  border-color: rgba(46, 158, 120, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.toolkit-tool-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toolkit-tool-card__header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.toolkit-tool-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toolkit-tool-card__icon--monzo {
  background: rgba(235, 100, 83, 0.12);
  color: #eb6453;
}

.toolkit-tool-card__icon--fergus {
  background: rgba(46, 158, 120, 0.12);
  color: #2E9E78;
}

.toolkit-tool-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  line-height: 1.3;
}

.toolkit-tool-card__desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
}

.toolkit-tool-card__footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.toolkit-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 8px;
  background: #2E9E78;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(46, 158, 120, 0.2);
}

.toolkit-tool-btn:hover {
  background: #248262;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(46, 158, 120, 0.3);
}

/* Dark mode styling */
[data-theme="dark"] .toolkit-recommended-section {
  border-top-color: #232838;
}

[data-theme="dark"] .toolkit-tool-card {
  background: #121520;
  border-color: #232838;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .toolkit-tool-card:hover {
  border-color: rgba(52, 211, 153, 0.4);
}

[data-theme="dark"] .toolkit-tool-card__footer {
  border-top-color: #232838;
}

[data-theme="dark"] .toolkit-tool-card__icon--monzo {
  background: rgba(235, 100, 83, 0.18);
  color: #f87171;
}

[data-theme="dark"] .toolkit-tool-card__icon--fergus {
  background: rgba(46, 158, 120, 0.18);
  color: #4ade80;
}

[data-theme="dark"] .toolkit-tool-btn {
  background: #2E9E78;
  color: #ffffff;
}

[data-theme="dark"] .toolkit-tool-btn:hover {
  background: #268565;
}

/* Mobile responsive (stacked on mobile) */
@media (max-width: 768px) {
  .toolkit-recommended-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ── Toolkit Directory & Card Styles ── */
.toolkit-directory-view {
  animation: fadeIn 0.15s ease-out;
}

.toolkit-detail-view {
  animation: fadeIn 0.15s ease-out;
}

.toolkit-category-group {
  margin-bottom: 2.75rem;
}

.toolkit-category-heading {
  font-size: 0.825rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2E9E78;
  margin: 0 0 1.25rem 0;
}

[data-theme="dark"] .toolkit-category-heading {
  color: #34d399;
}

.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.toolkit-card-launch {
  display: flex;
  flex-direction: column;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.65rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
  width: 100%;
}

.toolkit-card-launch:hover,
.toolkit-card-launch:focus-visible {
  transform: translateY(-2px);
  border-color: #2E9E78;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  outline: none;
}

.toolkit-card-launch__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.toolkit-card-launch__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.toolkit-card-launch__icon--dpn {
  background: rgba(46, 158, 120, 0.12);
  color: #2E9E78;
}

.toolkit-card-launch__icon--sweet-spot {
  background: rgba(99, 102, 241, 0.12);
  color: #6366F1;
}

.toolkit-card-launch__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.toolkit-card-launch__desc {
  font-size: 0.925rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0 0 1.5rem 0;
  flex: 1;
}

.toolkit-card-launch__action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2E9E78;
  transition: gap 0.15s ease;
  margin-top: auto;
}

.toolkit-card-launch:hover .toolkit-card-launch__action {
  gap: 0.65rem;
}

/* Dark mode for toolkit launch cards */
[data-theme="dark"] .toolkit-card-launch {
  background: #121520;
  border-color: #232838;
}

[data-theme="dark"] .toolkit-card-launch:hover,
[data-theme="dark"] .toolkit-card-launch:focus-visible {
  border-color: #34d399;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .toolkit-card-launch__icon--dpn {
  background: rgba(46, 158, 120, 0.2);
  color: #34d399;
}

[data-theme="dark"] .toolkit-card-launch__icon--sweet-spot {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
}

[data-theme="dark"] .toolkit-card-launch__action {
  color: #34d399;
}

.toolkit-tool-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.toolkit-tool-header .view-title {
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
}

.toolkit-tool-header .view-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* ── Admin Badge: Not Logged In Yet ── */
.admin-badge-not-logged-in {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.12);
  color: #D97706;
  border: 1px solid rgba(245, 158, 11, 0.35);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

body.dark-theme .admin-badge-not-logged-in,
[data-theme="dark"] .admin-badge-not-logged-in {
  background: rgba(245, 158, 11, 0.18);
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.45);
}

/* ── Modal width override for admin detail ── */
.modal-admin-detail {
  max-width: 1140px;
  width: 96vw;
}

/* ── Photo upload in First-Time Profile Setup ── */
.profile-setup-photo-wrap {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 0.85rem 1rem;
  background: var(--color-bg-subtle, rgba(0, 0, 0, 0.02));
  border: 1px dashed var(--color-border);
  border-radius: 12px;
}

.profile-setup-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-primary-light, #e0e7ff);
  color: var(--color-primary, #4f46e5);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--color-border);
}

.profile-setup-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-setup-photo-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* ── Admin Badge: Demo ── */
.admin-badge-demo {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.48rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(2, 132, 199, 0.32);
  white-space: nowrap;
}

body.dark-theme .admin-badge-demo,
[data-theme="dark"] .admin-badge-demo {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.4);
}

/* ── Admin Toggle Switch ── */
.admin-toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
}

.admin-toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}

.admin-toggle-track {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  background-color: #cbd5e1;
  border-radius: 9999px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

.admin-toggle-track::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-toggle-switch:hover .admin-toggle-track {
  background-color: #94a3b8;
}

.admin-toggle-switch input:checked + .admin-toggle-track {
  background-color: #0284c7;
}

.admin-toggle-switch input:checked + .admin-toggle-track::before {
  transform: translateX(16px);
}

.admin-toggle-switch input:focus-visible + .admin-toggle-track {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}

body.dark-theme .admin-toggle-track,
[data-theme="dark"] .admin-toggle-track {
  background-color: #334155;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

body.dark-theme .admin-toggle-switch:hover .admin-toggle-track,
[data-theme="dark"] .admin-toggle-switch:hover .admin-toggle-track {
  background-color: #475569;
}

body.dark-theme .admin-toggle-switch input:checked + .admin-toggle-track,
[data-theme="dark"] .admin-toggle-switch input:checked + .admin-toggle-track {
  background-color: #0284c7;
}

/* ── Admin Demo Switch Box (Modal & Cards) ── */
.admin-demo-switch-box {
  margin-top: 1rem;
  padding: 0.85rem 1.1rem;
  background: var(--color-bg-subtle, rgba(0, 0, 0, 0.02));
  border: 1px solid var(--color-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body.dark-theme .admin-demo-switch-box,
[data-theme="dark"] .admin-demo-switch-box {
  background: rgba(255, 255, 255, 0.02);
  border-color: #262a36;
}






