/* ========================================
   Pandisha — Global Styles
   ======================================== */

:root {
  color-scheme: light;
  --primary: #5E3B76;
  --primary-dark: #4A2D5E;
  --primary-light: #8B6BA3;
  --primary-bg: #F3EDF7;
  --accent: #A6702E;
  --accent-dark: #8A5B22;
  --accent-light: #E9DCC8;
  --accent-warm: #A6702E;
  --bg: #FAF7F1;
  --bg-white: #FFFFFF;
  --bg-cream: #FAF7F1;
  --bg-lavender: #F5F1F7;
  --text: #23192D;
  --text-secondary: #5C5165;
  --text-muted: #8A7F93;
  --border: #E8E1D8;
  --border-light: #F1ECE4;
  --shadow-sm: 0 1px 2px rgba(35, 25, 45, 0.05);
  --shadow: 0 1px 3px rgba(35, 25, 45, 0.06), 0 1px 2px rgba(35, 25, 45, 0.04);
  --shadow-md: 0 6px 20px rgba(35, 25, 45, 0.07), 0 2px 6px rgba(35, 25, 45, 0.04);
  --shadow-lg: 0 16px 40px rgba(35, 25, 45, 0.09), 0 4px 12px rgba(35, 25, 45, 0.05);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --transition: 0.2s ease;
  --danger: #A83A3A;
  --danger-bg: #F9EFEC;
  --warning: #A8722C;
  --warning-bg: #F9F3E8;
  --success: #4E7A56;
  --success-bg: #EFF4EE;
  --info: #3A5D8F;
  --info-bg: #EEF2F7;
  --mint: #4E7A56;
  --mint-bg: #EFF4EE;
  --sage: #B9CCB9;
  --glass: rgba(255, 255, 255, 0.85);
}


/* ========================================
   Dark mode — deep plum-ink night palette.
   Follows the system setting by default; html[data-theme] overrides
   (set from localStorage 'pandisha-theme' by the inline head script).
   ======================================== */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --primary: #9C79B8;
  --primary-dark: #B18FCB;
  --primary-light: #6E4E87;
  --primary-bg: #322639;
  --accent: #C89158;
  --accent-dark: #D6A56E;
  --accent-light: #4A3A28;
  --accent-warm: #C89158;
  --bg: #1B141F;
  --bg-white: #262030;
  --bg-cream: #1B141F;
  --bg-lavender: #221B29;
  --text: #F0EAE2;
  --text-secondary: #B3A9BD;
  --text-muted: #7E7488;
  --border: #3A3243;
  --border-light: #2E2737;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.35);
  --danger: #CC8377;
  --danger-bg: #3A2523;
  --warning: #C9975C;
  --warning-bg: #38301C;
  --success: #85AE8C;
  --success-bg: #243024;
  --info: #86A5CC;
  --info-bg: #202A38;
  --mint: #85AE8C;
  --mint-bg: #243024;
  --sage: #4A5A4A;
  --glass: rgba(27, 20, 31, 0.85);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --primary: #9C79B8;
  --primary-dark: #B18FCB;
  --primary-light: #6E4E87;
  --primary-bg: #322639;
  --accent: #C89158;
  --accent-dark: #D6A56E;
  --accent-light: #4A3A28;
  --accent-warm: #C89158;
  --bg: #1B141F;
  --bg-white: #262030;
  --bg-cream: #1B141F;
  --bg-lavender: #221B29;
  --text: #F0EAE2;
  --text-secondary: #B3A9BD;
  --text-muted: #7E7488;
  --border: #3A3243;
  --border-light: #2E2737;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.35);
  --danger: #CC8377;
  --danger-bg: #3A2523;
  --warning: #C9975C;
  --warning-bg: #38301C;
  --success: #85AE8C;
  --success-bg: #243024;
  --info: #86A5CC;
  --info-bg: #202A38;
  --mint: #85AE8C;
  --mint-bg: #243024;
  --sage: #4A5A4A;
  --glass: rgba(27, 20, 31, 0.85);
  color-scheme: dark;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  padding-bottom: env(safe-area-inset-bottom);
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-delay-3 { animation-delay: 0.3s; opacity: 0; }
.fade-in-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ========================================
   Loading & Spinner
   ======================================== */

.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 16px;
  color: var(--text-secondary);
  background: var(--bg);
}

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

.spinner-sm {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

.page-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  gap: 16px;
  color: var(--text-secondary);
}

/* ========================================
   Landing Page
   ======================================== */

.landing {
  min-height: 100vh;
  background: var(--bg);
}

.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.landing-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.3px;
}

.landing-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.landing-nav-demo-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 22px;
  border: 1px solid var(--primary);
  border-radius: 10px;
  transition: all 0.25s ease;
  font-size: 15px;
}

.landing-nav-demo-link:hover {
  background: var(--primary);
  color: white;
}

.landing-tagline {
  text-align: center;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin-top: 8px;
  font-weight: 500;
}

/* Hero */
.hero {
  text-align: center;
  padding: 48px 24px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: transparent;
  color: var(--text-secondary);
  padding: 0;
  border-radius: 0;
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
  font-family: var(--font-display);
  margin-bottom: 24px;
  border: none;
  letter-spacing: 0.2px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.hero h1 span {
  color: var(--primary);
  font-style: italic;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-email-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  width: 100%;
  background: var(--bg-white);
  padding: 6px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.hero-email-input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-family: var(--font);
  outline: none;
  transition: var(--transition);
  background: transparent;
  color: var(--text);
}

.hero-email-input::placeholder {
  color: var(--text-muted);
}

.hero-email-input:focus {
  border-color: transparent;
}

.hero-cta {
  padding: 14px 28px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  font-family: var(--font);
}

.hero-cta:hover {
  background: var(--primary-dark);
}

.hero-demo-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
  font-family: var(--font);
  transition: all 0.25s ease;
}

.hero-demo-btn:hover {
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.hero-submitted {
  color: var(--primary);
  font-weight: 600;
  font-size: 16px;
  background: var(--primary-bg);
  padding: 14px 28px;
  border-radius: 100px;
}

/* Video Section */
.video-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 8px 24px 40px;
  text-align: center;
}

.video-player {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--bg-white);
  display: block;
}

.video-caption {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 14px;
}

/* Tools Section */
.tools-section {
  padding: 40px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.tools-section-header {
  text-align: center;
  margin-bottom: 56px;
}

.tools-section-header h2 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.tools-section-header p {
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 400;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tool-category { max-width: 1120px; margin: 0 auto 44px; }
.tool-category:last-child { margin-bottom: 0; }
.tool-category-head { display: flex; align-items: baseline; gap: 14px; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); flex-wrap: wrap; }
.tool-category-head h3 { font-family: var(--font-display); font-size: 24px; font-weight: 500; color: var(--text); margin: 0; letter-spacing: -0.01em; }
.tool-category-head p { color: var(--text-muted); font-size: 15px; margin: 0; }

.tool-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tool-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: var(--primary-bg);
  color: var(--primary);
  border: 1px solid var(--border-light);
}

.tool-card-icon-compliance,
.tool-card-icon-milestones,
.tool-card-icon-activities,
.tool-card-icon-planner,
.tool-card-icon-logger,
.tool-card-icon-resources,
.tool-card-icon-reports,
.tool-card-icon-assistant { background: var(--primary-bg); color: var(--primary); }

.tool-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.tool-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.tool-card-features {
  list-style: none;
  padding: 0;
}

.tool-card-features li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 0;
  padding-left: 22px;
  position: relative;
}

.tool-card-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 7px;
  border-left: 1.75px solid var(--accent);
  border-bottom: 1.75px solid var(--accent);
  transform: rotate(-45deg);
}

/* Credibility Section */
.credibility-section {
  padding: 60px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.credibility-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.credibility-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
}

.credibility-card blockquote {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.65;
  color: var(--text);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 24px;
  padding-left: 16px;
}

.credibility-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 16px;
}

.credibility-avatar {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.credibility-author strong {
  display: block;
  font-size: 16px;
  color: var(--text);
}

.credibility-author span {
  color: var(--text-muted);
  font-size: 14px;
}

/* Pricing Section */
.pricing-section {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-header {
  text-align: center;
  margin-bottom: 52px;
}

.pricing-header h2 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.pricing-header p {
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 300;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 2px solid var(--border-light);
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card-featured {
  background: var(--bg-white);
  border: 1.5px solid var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.pricing-card-featured:hover {
  transform: scale(1.03) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 5px 18px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.pricing-tier {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 28px;
}

.pricing-features li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 12px;
  height: 7px;
  border-left: 1.75px solid var(--accent);
  border-bottom: 1.75px solid var(--accent);
  transform: rotate(-45deg);
}

.pricing-btn {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font);
  border: none;
}

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

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

.pricing-btn-secondary {
  background: var(--bg-white);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.pricing-btn-secondary:hover {
  background: var(--primary-bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.pricing-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-email-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  transition: var(--transition);
}

.pricing-email-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(94, 59, 118, 0.12);
}

.pricing-submitted {
  color: var(--primary);
  font-weight: 600;
  text-align: center;
  padding: 14px;
  background: var(--primary-bg);
  border-radius: 10px;
}

/* Footer */
.landing-footer {
  background: #23192D;
  color: #B9AEC3;
  padding: 60px 24px 0;
}

.landing-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 40px;
}

.landing-footer-brand {
  max-width: 300px;
}

.landing-footer-brand .landing-logo {
  color: white;
  margin-bottom: 12px;
}

.landing-footer-brand .landing-logo-icon {
  background: var(--primary);
}

.landing-footer-brand p {
  font-size: 14px;
  line-height: 1.7;
}

.landing-footer-links {
  display: flex;
  gap: 64px;
}

.landing-footer-links h4 {
  color: white;
  margin-bottom: 16px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.landing-footer-links a {
  display: block;
  color: #C4B5D9;
  text-decoration: none;
  font-size: 14px;
  padding: 5px 0;
  transition: all 0.2s ease;
}

.landing-footer-links a:hover {
  color: white;
  transform: translateX(2px);
}

.landing-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px;
  text-align: center;
  font-size: 13px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ========================================
   App Layout
   ======================================== */

.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: var(--bg-white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-overlay {
  display: none;
}

.sidebar-close {
  display: none;
}

.sidebar-header {
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--primary);
  letter-spacing: -0.3px;
}

.sidebar-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(94, 59, 118, 0.25);
}

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  overflow-y: auto;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border: none;
  background: none;
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-weight: 500;
}

.sidebar-link:hover {
  background: rgba(94, 59, 118, 0.06);
  color: var(--primary);
}

.sidebar-link-active {
  background: rgba(94, 59, 118, 0.1);
  color: var(--primary);
  font-weight: 600;
}

.sidebar-link-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.sidebar-exit {
  padding: 8px 12px;
  border-top: 1px solid var(--border-light);
}

.sidebar-exit-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  border-radius: 100px;
  transition: all 0.2s ease;
}

.sidebar-exit-btn:hover {
  background: var(--danger-bg, #fef2f2);
  color: var(--danger, #dc2626);
}

.sidebar-family {
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
  background: rgba(94, 59, 118, 0.03);
}

.sidebar-family-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.sidebar-family-detail {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.sidebar-child-badge {
  display: inline-block;
  background: var(--primary-bg);
  color: var(--primary);
  padding: 2px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
}

.main-content {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
}

.topbar {
  padding: 16px 32px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.page-content {
  padding: 32px;
  max-width: 1200px;
}

/* ========================================
   Common Components
   ======================================== */

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text);
  letter-spacing: -0.3px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 400;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* Buttons */
.btn {
  padding: 11px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(94, 59, 118, 0.25);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(94, 59, 118, 0.35);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--primary-bg);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover:not(:disabled) {
  background: #b91c1c;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 16px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-family: var(--font);
  transition: var(--transition);
}

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

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-white);
  outline: none;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(94, 59, 118, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.input-lg {
  font-size: 18px !important;
  padding: 16px 20px !important;
}

.input-sm {
  width: 80px !important;
  display: inline-block;
}

.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.form-row > .form-group {
  flex: 1;
  min-width: 150px;
}

.form-group-inline {
  display: inline-flex;
  flex-direction: column;
  margin-bottom: 0;
}

.form-group-grow {
  flex: 2 !important;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding-top: 20px;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  accent-color: var(--primary);
}

/* Tags & Badges */
.subject-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  background: var(--primary-bg);
  color: var(--primary);
  margin: 2px;
}

.subject-tag-sm {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  background: var(--primary-bg);
  color: var(--primary);
  margin: 1px;
}

.type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

.type-lesson { background: var(--primary-bg); color: var(--primary); }
.type-field_trip { background: var(--success-bg); color: var(--success); }
.type-reading { background: var(--warning-bg); color: var(--warning); }
.type-project { background: var(--danger-bg); color: var(--danger); }
.type-free_play { background: var(--info-bg); color: var(--info); }

.hours-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-lavender);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.location-badge {
  display: inline-block;
  font-size: 12px;
  color: var(--text-muted);
}

.age-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 11px;
  background: var(--bg-lavender);
  color: var(--text-secondary);
}

.category-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  background: var(--primary-bg);
  color: var(--primary);
}

/* Status */
.status-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.status-green { background: var(--success-bg); color: var(--success); }
.status-yellow { background: var(--warning-bg); color: var(--warning); }
.status-red { background: #FEF2F2; color: #dc2626; }
.status-gray { background: var(--bg-lavender); color: var(--text-secondary); }

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}

.status-dot.status-green { background: var(--success); }
.status-dot.status-yellow { background: var(--warning); }
.status-dot.status-red { background: #dc2626; }
.status-dot.status-gray { background: #9ca3af; }

.empty-state {
  color: var(--text-muted);
  text-align: center;
  padding: 28px;
  font-size: 14px;
}

.empty-state-card {
  text-align: center;
  padding: 52px 32px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
}

.empty-state-card h3 {
  margin-bottom: 8px;
}

.empty-state-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

/* Tabs */
.tab-bar {
  display: flex;
  gap: 4px;
  background: rgba(94, 59, 118, 0.04);
  padding: 4px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.tab {
  padding: 10px 22px;
  border: none;
  background: none;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}

.tab-active {
  background: var(--bg-white);
  color: var(--primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.tab:hover:not(.tab-active) {
  color: var(--text);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 18, 53, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}

.modal {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.modal h2 {
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

/* ========================================
   Dashboard
   ======================================== */

.dashboard-welcome {
  margin-bottom: 32px;
}

.dashboard-welcome h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.dashboard-welcome p {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 400;
}
.dashboard-welcome .dashboard-family-line {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-card:nth-child(1) .stat-number { color: var(--primary); }
.stat-card:nth-child(2) .stat-number { color: var(--accent); }
.stat-card:nth-child(3) .stat-number { color: var(--success); }
.stat-card:nth-child(4) .stat-number { color: var(--accent-warm); }

.stat-number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.dashboard-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.25s ease;
}

.dashboard-card:hover {
  box-shadow: var(--shadow);
}

.dashboard-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.dashboard-card-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

/* Plan Preview */
.plan-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-lavender);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.plan-item:hover {
  background: rgba(94, 59, 118, 0.08);
}

.plan-time {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 70px;
}

.plan-title {
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  color: var(--text);
}

.plan-subject {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-bg);
  padding: 2px 10px;
  border-radius: 100px;
}

/* Activity List Compact */
.activity-list-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-item-compact {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.activity-item-compact:hover {
  background: var(--bg-lavender);
}

.activity-item-date {
  font-size: 12px;
  color: var(--text-muted);
  min-width: 80px;
  font-weight: 500;
}

.activity-item-info {
  flex: 1;
}

.activity-item-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text);
}

.activity-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

/* Events Compact */
.events-list-compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-item-compact {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.event-item-compact:hover {
  background: var(--bg-lavender);
}

.event-date-badge {
  text-align: center;
  background: var(--primary-bg);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  min-width: 52px;
}

.event-month {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-day {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-dark);
}

.event-info {
  flex: 1;
}

.event-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.event-location {
  font-size: 12px;
  color: var(--text-muted);
}

/* Milestone Summary (Dashboard) */
.milestone-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.milestone-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.milestone-bar-label {
  font-size: 13px;
  font-weight: 500;
  min-width: 80px;
  color: var(--text-secondary);
}

.milestone-bar {
  flex: 1;
  height: 10px;
  background: var(--bg-lavender);
  border-radius: 100px;
  overflow: hidden;
}

.milestone-bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.5s ease;
}

.milestone-bar-mastered { background: var(--primary); }
.milestone-bar-progress { background: var(--warning); }
.milestone-bar-notstarted { background: var(--border); }

.milestone-bar-count {
  font-size: 14px;
  font-weight: 700;
  min-width: 20px;
  text-align: right;
  color: var(--text);
}

/* Quick Actions */
.quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font);
}

.quick-action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.quick-action-icon {
  font-size: 18px;
}

/* ========================================
   Compliance
   ======================================== */

.compliance-controls {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.compliance-info h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.compliance-requirements {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.requirement-card {
  background: var(--bg-white);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.25s ease;
}

.requirement-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.requirement-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.requirement-card h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.requirement-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

.compliance-status-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.compliance-status-banner.status-green { background: var(--success-bg); }
.compliance-status-banner.status-yellow { background: var(--warning-bg); }
.compliance-status-banner.status-red { background: var(--danger-bg); }

.compliance-section {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.compliance-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.requirements-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.requirement-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.requirement-row:hover {
  background: var(--bg-lavender);
}

.requirement-content {
  flex: 1;
}

.requirement-content strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--text);
}

.requirement-content p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.action-needed {
  color: var(--warning) !important;
  font-weight: 500;
  font-size: 13px;
}

.subject-coverage-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subject-coverage-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.subject-name {
  font-size: 13px;
  font-weight: 500;
  min-width: 100px;
  color: var(--text);
}

.subject-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-lavender);
  border-radius: 100px;
  overflow: hidden;
}

.subject-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 100px;
}

.subject-hours {
  font-size: 13px;
  font-weight: 600;
  min-width: 40px;
  text-align: right;
  color: var(--text);
}

.deadlines-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deadline-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.deadline-filing {
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
}

.deadline-date {
  font-size: 13px;
  color: var(--text-secondary);
}

.recommendations-list {
  list-style: none;
  padding: 0;
}

.recommendations-list li {
  padding: 10px 0;
  padding-left: 24px;
  position: relative;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.recommendations-list li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.compliance-disclaimer {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  padding: 14px;
  background: var(--bg-lavender);
  border-radius: var(--radius-sm);
}

.compliance-history {
  margin-top: 32px;
}

.compliance-history h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.history-item:hover {
  border-color: var(--primary);
}

.history-date {
  font-size: 13px;
  color: var(--text-muted);
}

.history-type {
  font-size: 13px;
  font-weight: 500;
}

/* ========================================
   Milestones
   ======================================== */

.child-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.child-btn {
  padding: 9px 22px;
  border: 2px solid var(--border);
  border-radius: 100px;
  background: var(--bg-white);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font);
  color: var(--text-secondary);
}

.child-btn-active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}

.progress-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.progress-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.25s ease;
}

.progress-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.progress-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.progress-subject {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.progress-pct {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}

.progress-bar-lg {
  height: 8px;
  background: var(--bg-lavender);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 100px;
  transition: width 0.5s ease;
}

.progress-detail {
  font-size: 11px;
  color: var(--text-muted);
}

.subject-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.subject-tab {
  padding: 9px 18px;
  border: none;
  background: none;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.subject-tab-active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(94, 59, 118, 0.25);
}

.tab-count {
  font-size: 11px;
  background: rgba(255,255,255,0.2);
  padding: 1px 6px;
  border-radius: 100px;
}

.subject-tab-active .tab-count {
  background: rgba(255,255,255,0.3);
}

.milestones-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.milestone-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid transparent;
  transition: all 0.25s ease;
}

.milestone-card:hover {
  box-shadow: var(--shadow);
}

.milestone-mastered { border-left-color: var(--primary); }
.milestone-in_progress { border-left-color: var(--accent-warm); }
.milestone-not_started { border-left-color: var(--border); }

.milestone-info {
  flex: 1;
}

.milestone-header-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.standard-code {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 2px 10px;
  border-radius: 100px;
}

.milestone-subject-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.milestone-description {
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--text);
}

.milestone-evidence {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.milestone-actions {
  flex-shrink: 0;
}

.status-select {
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  background: var(--bg-white);
  outline: none;
  transition: var(--transition);
}

.status-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(94, 59, 118, 0.1);
}

.status-select-mastered { border-color: var(--primary); color: var(--primary); }
.status-select-in_progress { border-color: var(--accent-warm); color: var(--accent-warm); }

/* Assessment */
.assessment-result {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 26px;
  margin-top: 24px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--primary-bg);
}

.assessment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.assessment-section {
  margin-bottom: 20px;
}

.assessment-section h4 {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--primary);
}

.assessment-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.celebration-list {
  list-style: none;
  padding: 0;
}

.celebration-list li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 14px;
}

.celebration-list li::before {
  content: "\2B50";
  position: absolute;
  left: 0;
}

/* ========================================
   Activities Page
   ======================================== */

.filter-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  align-items: flex-end;
  background: var(--bg-white);
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.filter-bar .form-group {
  margin-bottom: 0;
}

.hours-summary {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.hours-summary h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.hours-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hours-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hours-bar-label {
  font-size: 13px;
  font-weight: 500;
  min-width: 100px;
  color: var(--text);
}

.hours-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-lavender);
  border-radius: 100px;
  overflow: hidden;
}

.hours-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 100px;
  transition: width 0.3s ease;
}

.hours-bar-value {
  font-size: 13px;
  font-weight: 600;
  min-width: 40px;
  text-align: right;
  color: var(--text);
}

.activities-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-card {
  display: flex;
  gap: 16px;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.25s ease;
}

.activity-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.activity-date-side {
  text-align: center;
  min-width: 50px;
  padding-top: 2px;
}

.activity-date-month {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.activity-date-day {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.activity-date-weekday {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.activity-card-body {
  flex: 1;
}

.activity-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
  gap: 8px;
}

.activity-card-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.activity-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.6;
}

.activity-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.activity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.activity-details {
  display: flex;
  gap: 8px;
  align-items: center;
}

.activity-notes {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}

/* ========================================
   Logger
   ======================================== */

.logger-form {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  max-width: 700px;
}

.type-buttons, .subject-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.type-btn, .subject-btn {
  padding: 9px 18px;
  border: 2px solid var(--border);
  border-radius: 100px;
  background: var(--bg-white);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font);
  color: var(--text-secondary);
}

.type-btn:hover, .subject-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.type-btn-active {
  border-color: var(--primary);
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 600;
}

.subject-btn-active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(94, 59, 118, 0.25);
}

.hours-input {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hours-btn {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--bg-white);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.hours-value {
  font-size: 22px;
  font-weight: 700;
  min-width: 40px;
  text-align: center;
  color: var(--text);
}

.logger-actions {
  margin-top: 24px;
}

.saved-confirmation {
  text-align: center;
  padding: 80px 32px;
}

.saved-icon {
  width: 80px;
  height: 80px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(94, 59, 118, 0.3);
}

.saved-confirmation h2 {
  margin-bottom: 8px;
  color: var(--text);
}

.saved-confirmation p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.saved-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ========================================
   Planner
   ======================================== */

.generating-overlay {
  text-align: center;
  padding: 60px 32px;
}

.generating-card {
  max-width: 400px;
  margin: 0 auto;
}

.generating-card h3 {
  margin: 20px 0 8px;
  color: var(--text);
}

.generating-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

.plan-theme {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary);
}

.plan-theme h2 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--text);
}

.plan-goals {
  font-size: 14px;
}

.plan-goals strong {
  display: block;
  margin-bottom: 6px;
}

.plan-goals ul {
  padding-left: 20px;
}

.plan-goals li {
  padding: 3px 0;
  color: var(--text-secondary);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.plan-day-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all 0.25s ease;
}

.plan-day-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.plan-day-header {
  background: var(--primary);
  color: white;
  padding: 14px 16px;
}

.plan-day-header h3 {
  font-size: 15px;
  font-weight: 700;
}

.plan-day-theme {
  font-size: 11px;
  opacity: 0.85;
}

.plan-day-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan-activity {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.plan-activity:last-child {
  border-bottom: none;
}

.plan-activity-time {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.plan-activity h4 {
  font-size: 14px;
  margin: 4px 0;
  color: var(--text);
}

.plan-activity-subject {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}

.plan-activity p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.5;
}

.plan-duration {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.plan-materials {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}

.plan-event-suggestion {
  background: var(--warning-bg);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #FED7AA;
}

.plan-event-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-warm);
}

.plan-event-suggestion p {
  font-size: 12px;
  margin-top: 4px;
}

.plan-reading {
  background: var(--bg-lavender);
  padding: 12px;
  border-radius: var(--radius-sm);
}

.plan-reading-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.plan-reading p {
  font-size: 12px;
  margin-top: 4px;
  font-style: italic;
}

.plan-notes {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.plan-notes h3 {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--text);
}

.plan-notes p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.empty-plan {
  display: flex;
  justify-content: center;
}

.empty-plan-card {
  text-align: center;
  padding: 60px 40px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
  max-width: 500px;
}

.empty-plan-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-plan-card h3 {
  margin-bottom: 8px;
}

.empty-plan-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

/* ========================================
   Resources
   ======================================== */

.finder-controls {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
  background: var(--bg-white);
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.finder-controls .form-group {
  margin-bottom: 0;
  flex: 1;
  min-width: 150px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.resource-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.25s ease;
}

.resource-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.resource-type-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.resource-info {
  flex: 1;
}

.resource-info h4 {
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--text);
}

.resource-info p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}

.resource-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.resource-type-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
  background: var(--bg-lavender);
  color: var(--text-secondary);
}

.free-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}

.free-yes { background: var(--success-bg); color: var(--success); }
.free-no { background: var(--warning-bg); color: var(--warning); }

.quality-note {
  font-size: 12px !important;
  color: var(--primary) !important;
  font-style: italic;
}

.resource-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

/* Worksheet */
.worksheet-content {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  max-width: 700px;
}

.worksheet-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--primary);
}

.worksheet-header h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.worksheet-instructions {
  font-size: 14px;
  color: var(--text-secondary);
}

.worksheet-section {
  margin-bottom: 24px;
}

.worksheet-section h3 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 12px;
}

.worksheet-question {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.worksheet-question p {
  font-size: 15px;
  margin-bottom: 8px;
}

.worksheet-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 24px;
}

.worksheet-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.worksheet-blank {
  border-bottom: 2px solid var(--text);
  width: 200px;
  margin: 8px 0;
}

.worksheet-lines {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 8px 0;
}

.worksheet-line {
  border-bottom: 1px solid var(--border);
  height: 1px;
}

.worksheet-bonus {
  background: var(--warning-bg);
  padding: 18px;
  border-radius: var(--radius-sm);
  margin-top: 20px;
  border: 1px solid #FED7AA;
}

.worksheet-bonus h3 {
  color: var(--accent-warm);
  margin-bottom: 6px;
}

/* ========================================
   Reports
   ======================================== */

.generator-controls {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
  background: var(--bg-white);
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.generator-controls .form-group {
  margin-bottom: 0;
  min-width: 150px;
}

.report-viewer {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.report-content {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  color: var(--text-secondary);
}

.report-structured h2 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--text);
}

.report-period {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.report-section {
  margin-bottom: 24px;
}

.report-section h3 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 8px;
}

.report-section p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.report-subject-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.progress-level {
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}

.progress-beginning { background: #FEF2F2; color: #dc2626; }
.progress-developing { background: var(--warning-bg); color: var(--warning); }
.progress-proficient { background: var(--success-bg); color: var(--success); }
.progress-advanced { background: var(--primary-bg); color: var(--primary); }

.report-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 2px solid var(--primary);
}

.report-footer p {
  font-size: 14px;
  font-weight: 600;
}

.report-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

.history-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: 8px;
}

.history-card:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.history-card-info {
  display: flex;
  gap: 12px;
  align-items: center;
}

.history-type-badge {
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  background: var(--primary-bg);
  color: var(--primary);
  text-transform: capitalize;
}

.history-period {
  font-size: 14px;
  font-weight: 500;
}

/* Expenses */
.expense-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.expense-form {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.expense-form h3 {
  margin-bottom: 12px;
}

.expense-list h3 {
  margin-bottom: 12px;
}

.expense-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.expense-table th {
  background: var(--bg-lavender);
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.expense-table td {
  padding: 14px 16px;
  font-size: 14px;
  border-top: 1px solid var(--border-light);
}

.expense-table .amount {
  font-weight: 600;
}

/* ========================================
   Assistant
   ======================================== */

.assistant-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.assistant-nav-btn {
  padding: 10px 20px;
  border: none;
  background: none;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font);
  white-space: nowrap;
}

.assistant-nav-btn:hover {
  background: var(--bg-lavender);
}

.assistant-nav-btn.active {
  background: var(--primary);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(94, 59, 118, 0.25);
}

.reminders-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reminder-card {
  display: flex;
  gap: 14px;
  padding: 18px 22px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  border-left: 4px solid transparent;
  transition: all 0.25s ease;
}

.reminder-card:hover {
  box-shadow: var(--shadow);
}

.reminder-high { border-left-color: var(--danger); }
.reminder-medium { border-left-color: var(--accent-warm); }
.reminder-low { border-left-color: var(--info); }

.reminder-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.reminder-content {
  flex: 1;
}

.reminder-content p {
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1.6;
}

.reminder-meta {
  display: flex;
  gap: 8px;
}

.reminder-category {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: capitalize;
}

.reminder-priority {
  font-size: 11px;
  padding: 1px 10px;
  border-radius: 100px;
  font-weight: 600;
  text-transform: capitalize;
}

.priority-high { background: #FEF2F2; color: #dc2626; }
.priority-medium { background: var(--warning-bg); color: var(--warning); }
.priority-low { background: var(--primary-bg); color: var(--primary); }

.summary-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.summary-content {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  color: var(--text-secondary);
}

.briefing-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.briefing-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.25s ease;
}

.briefing-card:hover {
  box-shadow: var(--shadow);
}

.briefing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.briefing-type-badge {
  padding: 3px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.briefing-daily { background: var(--primary-bg); color: var(--primary); }
.briefing-weekly { background: var(--danger-bg); color: var(--danger); }

.briefing-date {
  font-size: 12px;
  color: var(--text-muted);
}

.briefing-content {
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  color: var(--text-secondary);
}

/* Preferences */
.prefs-form {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--border-light);
  max-width: 500px;
  box-shadow: var(--shadow-sm);
}

.pref-toggle {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
}

.pref-toggle:last-of-type {
  border-bottom: none;
}

.pref-toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.pref-label {
  display: flex;
  flex-direction: column;
}

.pref-label strong {
  font-size: 14px;
  color: var(--text);
}

.pref-label span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========================================
   Settings
   ======================================== */

.settings-section {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.settings-section h2 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--text);
}

.settings-form {
  max-width: 600px;
}

.children-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.child-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px;
  background: var(--bg-lavender);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.child-card:hover {
  background: rgba(94, 59, 118, 0.06);
}

.child-card-info h3 {
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--text);
}

.child-card-info p {
  font-size: 13px;
  color: var(--text-secondary);
}

.child-interests, .child-style {
  font-size: 12px !important;
  color: var(--text-muted) !important;
}

.child-card-actions {
  display: flex;
  gap: 8px;
}

/* ========================================
   Family Setup Wizard
   ======================================== */

.setup-overlay {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.setup-modal {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 44px;
  max-width: 560px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.setup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.setup-steps {
  display: flex;
  align-items: center;
  gap: 8px;
}

.setup-step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.setup-step-active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(94, 59, 118, 0.25);
}

.setup-step-line {
  width: 20px;
  height: 2px;
  background: var(--border);
}

.setup-content h2 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--text);
}

.setup-content > p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.setup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}

.setup-summary {
  background: var(--bg-lavender);
  border-radius: var(--radius-sm);
  padding: 22px;
}

.setup-summary-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

.setup-summary-item:last-child {
  border-bottom: none;
}

/* ========================================
   Responsive
   ======================================== */

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-card-featured {
    transform: none;
  }

  .pricing-card-featured:hover {
    transform: translateY(-4px);
  }

  .plan-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .compliance-requirements {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

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

  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(31, 18, 53, 0.4);
    backdrop-filter: blur(4px);
    z-index: 90;
  }

  .sidebar-close {
    display: block;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
  }

  .main-content {
    margin-left: 0;
  }

  .hamburger {
    display: flex;
  }

  .page-content {
    padding: 20px 16px;
  }

  .topbar {
    padding: 14px 16px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-email-form {
    flex-direction: column;
    border-radius: var(--radius);
    padding: 8px;
  }

  .hero-cta {
    width: 100%;
  }

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

  .landing-nav {
    padding: 16px 20px;
  }

  .landing-footer-content {
    flex-direction: column;
    gap: 32px;
  }

  .landing-footer-links {
    gap: 32px;
  }

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

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .form-row {
    flex-direction: column;
  }

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

  .expense-stats {
    grid-template-columns: 1fr;
  }

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

  .compliance-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .finder-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .generator-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .assistant-nav {
    flex-wrap: nowrap;
  }

  .page-header {
    flex-direction: column;
  }

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

  .subject-tabs {
    flex-wrap: nowrap;
  }
}

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

  .hero h1 {
    font-size: 28px;
  }

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

/* ========================================
   Learning Journal
   ======================================== */

.journal-page .page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.page-header-actions {
  display: flex;
  gap: 10px;
}

.journal-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.journal-filters select,
.journal-filters input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  background: var(--bg-white);
  color: var(--text);
  outline: none;
  transition: var(--transition);
}

.journal-filters select:focus,
.journal-filters input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(94, 59, 118, 0.1);
}

.journal-empty {
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.journal-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.journal-empty h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text);
}

.journal-empty p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 15px;
}

.journal-entries-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.journal-entry-card {
  background: #FFFDF7;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid #F0E8D8;
  transition: all 0.2s ease;
  overflow: hidden;
}

.journal-entry-card:hover {
  box-shadow: var(--shadow);
}

.journal-entry-expanded {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.journal-entry-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
}

.journal-entry-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
  background: var(--primary-bg);
  border-radius: 10px;
  padding: 6px 10px;
}

.journal-date-month {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.journal-date-day {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.journal-entry-summary {
  flex: 1;
  min-width: 0;
}

.journal-entry-summary h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.journal-entry-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 4px;
}

.journal-child-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 2px 10px;
  border-radius: 100px;
}

.journal-entry-snippet {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 4px;
}

.journal-entry-expand {
  color: var(--text-muted);
  font-size: 12px;
  padding: 4px;
  flex-shrink: 0;
}

.journal-entry-body {
  padding: 0 20px 20px;
  border-top: 1px solid #F0E8D8;
  margin-top: 0;
  padding-top: 16px;
}

.journal-section {
  margin-bottom: 18px;
}

.journal-section:last-child {
  margin-bottom: 0;
}

.journal-section h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.journal-section p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Journal Form */
.journal-form-container {
  max-width: 720px;
}

.journal-form-card {
  background: #FFFDF7;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid #F0E8D8;
}

.journal-form-card h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--text);
}

.journal-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.label-optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 12px;
}

/* Work Samples */
.work-samples-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work-sample-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.work-samples-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.work-sample-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  position: relative;
}

.work-sample-thumb {
  font-size: 20px;
  flex-shrink: 0;
}

.work-sample-name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.work-sample-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}

.work-sample-remove:hover {
  color: var(--danger);
}

/* Milestone Tags */
.milestone-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.milestone-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-warm);
  background: var(--warning-bg);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid #FED7AA;
}

/* Google Drive Button */
.btn-google-drive {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-white);
  border: 1px solid #dadce0;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: #3c4043;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.btn-google-drive:hover {
  background: #f8f9fa;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.google-drive-icon {
  font-weight: 800;
  font-size: 16px;
  background: #4285F4;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mock File Picker */
.mock-file-picker {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.mock-file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
  font-size: 14px;
  color: var(--text);
}

.mock-file-item:hover {
  background: var(--primary-bg);
}

.mock-file-icon {
  font-size: 20px;
}

/* Compiled Report */
.compiled-report {
  max-height: 60vh;
  overflow-y: auto;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.compiled-report-content h1,
.compiled-report-content h2,
.compiled-report-content h3 {
  color: var(--text);
  margin-top: 16px;
  margin-bottom: 8px;
}

.modal-wide {
  max-width: 800px !important;
  width: 90vw;
}

.modal-description {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* Tool card icon for journal */
.tool-card-icon-journal { background: #FFFBEB; color: #D97706; }

/* ========================================
   Connected Services (Settings)
   ======================================== */

.settings-section-desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 18px;
  margin-top: -8px;
}

.connected-service-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: var(--bg-lavender);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  gap: 16px;
  flex-wrap: wrap;
}

.connected-service-info {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.connected-service-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.connected-service-icon-drive {
  background: #E8F0FE;
}

.connected-service-icon-calendar {
  background: #E8F5E9;
}

.google-g {
  font-weight: 800;
  font-size: 18px;
  background: #4285F4;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.connected-service-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.connected-service-info p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.connected-service-action {
  flex-shrink: 0;
}

.connected-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.connected-check {
  color: var(--success);
  font-weight: 800;
  font-size: 16px;
}

.btn-link-sm {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  font-family: var(--font);
  padding: 0;
}

.btn-link-sm:hover {
  color: var(--danger);
}

.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--bg-white);
  border: 1px solid #dadce0;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: #3c4043;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  white-space: nowrap;
}

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

.google-g-btn {
  font-weight: 800;
  font-size: 18px;
  background: #4285F4;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Theme picker (Settings > Appearance) */
.theme-picker {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-white);
}

.theme-picker-option {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.theme-picker-option + .theme-picker-option {
  border-left: 1px solid var(--border);
}

.theme-picker-option:hover {
  color: var(--text);
}

.theme-picker-active {
  background: var(--primary);
  color: #fff;
}

.theme-picker-active:hover {
  color: #fff;
}

/* Auth screen */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
  text-align: center;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 26px;
}

.auth-brand-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--text);
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: var(--text);
}

.auth-sub {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 26px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.auth-form input {
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: var(--transition);
}

.auth-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(94, 59, 118, 0.12);
}

.auth-error {
  color: var(--danger);
  font-size: 14px;
  margin: 0;
}

.auth-submit {
  padding: 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
}

.auth-submit:hover { background: var(--primary-dark); }
.auth-submit:disabled { opacity: 0.6; cursor: default; }

.auth-alt {
  margin-top: 22px;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-forgot {
  display: block;
  margin: 12px auto 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  text-decoration: underline;
}
.auth-alt button, .auth-demo button {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font);
  padding: 0;
}

.auth-demo {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

/* AI provider settings */
.ai-settings-status {
  font-size: 14px;
  color: var(--text-secondary);
  background: var(--primary-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
  display: inline-block;
}

.ai-settings-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ai-settings-row select,
.ai-settings-row input {
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font);
  background: var(--bg-white);
  color: var(--text);
}

.ai-settings-row input { flex: 1; min-width: 220px; }

.ai-settings-save {
  padding: 11px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
}

.ai-settings-save:disabled { opacity: 0.5; cursor: default; }

.ai-settings-clear {
  margin-top: 10px;
  background: none;
  border: none;
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  padding: 0;
}

.ai-settings-ok { color: var(--success); font-size: 14px; margin-top: 10px; }
.ai-settings-note { font-size: 13px; color: var(--text-muted); margin-top: 12px; line-height: 1.6; }

/* Household */
.household-member {
  font-size: 14px;
  color: var(--text);
  padding: 8px 14px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: inline-block;
  margin: 0 8px 8px 0;
}

.household-pending { color: var(--text-muted); }

/* Hero CTA row (post-beta-launch) */
.hero-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta-row .hero-cta { text-decoration: none; display: inline-block; }

.hero-cta-secondary {
  background: var(--bg-white);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.hero-cta-secondary:hover { background: var(--primary-bg); }

.hero-beta-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Onboarding */
.onboarding-card { max-width: 460px; }

.onboarding-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: var(--primary-bg);
  color: var(--primary);
}

.onboarding-body { min-height: 96px; }

.onboarding-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 18px 0 20px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
}

.dot-active { background: var(--primary); width: 22px; border-radius: 100px; }

/* Onboarding quiz */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.quiz-option {
  text-align: left;
  padding: 15px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1.4;
}

.quiz-option:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
  transform: translateY(-1px);
}

/* Coach portal */
.coach-page { min-height: 100vh; background: var(--bg); }
.coach-main { max-width: 1100px; margin: 0 auto; padding: 12px 24px 60px; }
.coach-page .content-nav { max-width: 1100px; }
.coach-badge {
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  background: var(--brass, var(--accent)); color: #fff; padding: 2px 8px; border-radius: 6px; margin-left: 8px;
}
.coach-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.coach-header h1 { font-family: var(--font-display); font-size: 34px; font-weight: 500; color: var(--text); }
.coach-sub { color: var(--text-secondary); font-size: 15px; }
.coach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.coach-card {
  text-align: left; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; cursor: pointer; transition: all 0.2s ease; font-family: var(--font);
}
.coach-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.coach-card-attention { border-color: var(--warning); }
.coach-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.coach-card-head h3 { font-size: 18px; font-weight: 600; color: var(--text); }
.coach-flag { font-size: 11px; font-weight: 600; color: var(--warning); background: var(--warning-bg); padding: 2px 8px; border-radius: 100px; }
.coach-card-kids { color: var(--text-secondary); font-size: 14px; margin-bottom: 14px; }
.coach-card-stats { display: flex; gap: 14px; font-size: 13px; color: var(--text-secondary); flex-wrap: wrap; }
.coach-card-stats strong { color: var(--primary); font-size: 16px; }
.coach-card-last { font-size: 12px; color: var(--text-muted); margin-top: 10px; }
.coach-empty { text-align: center; padding: 60px 20px; color: var(--text-secondary); }
.coach-empty h2 { font-family: var(--font-display); font-size: 24px; font-weight: 500; margin: 12px 0 8px; color: var(--text); }
.coach-empty p { max-width: 440px; margin: 0 auto; font-size: 15px; line-height: 1.6; }
.coach-announce-box { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.coach-announce-box textarea { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 12px; font-family: var(--font); font-size: 15px; resize: vertical; background: var(--bg); color: var(--text); }
.coach-announce-actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.coach-announce-msg { color: var(--success); font-size: 14px; }
.coach-section { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--text); margin: 28px 0 12px; }
.coach-samples { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.coach-sample img { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
.coach-sample-meta { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.coach-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-light); font-size: 14px; color: var(--text); }
.coach-row-date { color: var(--text-muted); font-size: 13px; }
.coach-journal { padding: 10px 0; border-bottom: 1px solid var(--border-light); font-size: 14px; color: var(--text-secondary); }
.coach-journal p { margin-top: 4px; }
.auth-coach-toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); cursor: pointer; }
.auth-coach-toggle input { width: auto; }

.coach-note {
  background: var(--warning-bg); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px;
}
.coach-note-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--warning); margin-bottom: 4px; }
.coach-note p { color: var(--text); font-size: 15px; margin: 0; }

/* For-schools landing section */
.schools-section { background: var(--primary-bg); padding: 72px 24px; }
.schools-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.schools-eyebrow { color: var(--accent); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; font-weight: 500; margin-bottom: 14px; }
.schools-section h2 { font-family: var(--font-display); font-size: 36px; font-weight: 500; letter-spacing: -0.01em; color: var(--text); margin-bottom: 16px; }
.schools-lead { max-width: 680px; margin: 0 auto 40px; font-size: 18px; line-height: 1.7; color: var(--text-secondary); }
.schools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 36px; text-align: left; }
.schools-item { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 24px; color: var(--primary); }
.schools-item h3 { font-size: 17px; font-weight: 600; color: var(--text); margin: 12px 0 6px; }
.schools-item p { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
@media (max-width: 720px) { .schools-grid { grid-template-columns: 1fr; } .schools-section h2 { font-size: 28px; } }

/* Pods */
.pod-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.pod-action-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.pod-action-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.pod-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.pod-card { text-align: left; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; cursor: pointer; transition: all 0.2s ease; font-family: var(--font); }
.pod-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pod-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.pod-card p { font-size: 13px; color: var(--text-secondary); }
.pod-code { color: var(--primary); cursor: pointer; letter-spacing: 1px; }
.pod-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 12px 0 18px; }
.pod-tab { background: none; border: none; padding: 10px 16px; font-size: 15px; font-weight: 500; color: var(--text-secondary); cursor: pointer; border-bottom: 2px solid transparent; font-family: var(--font); }
.pod-tab-on { color: var(--primary); border-bottom-color: var(--primary); }
.pod-share-form { display: flex; flex-direction: column; gap: 10px; padding: 16px; margin-bottom: 16px; }
.pod-share-form select, .pod-share-form input, .pod-share-form textarea { padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; font-family: var(--font); font-size: 15px; background: var(--bg); color: var(--text); }
.pod-items { display: flex; flex-direction: column; gap: 12px; }
.pod-item { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.pod-item-head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.pod-type-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--primary); background: var(--primary-bg); padding: 3px 8px; border-radius: 6px; }
.pod-item-subject { font-size: 12px; color: var(--text-muted); }
.pod-item h3 { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.pod-item-body { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 8px; }
.pod-item-link { font-size: 13px; font-weight: 600; color: var(--primary); }
.pod-item-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; flex-wrap: wrap; gap: 8px; }
.pod-item-author { font-size: 13px; color: var(--text-muted); }
.pod-item-actions { display: flex; gap: 8px; }
.pod-helpful, .pod-use, .pod-comment-toggle { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text-secondary); cursor: pointer; font-family: var(--font); }
.pod-use { background: var(--primary); color: #fff; border-color: var(--primary); }
.pod-helpful-on { color: var(--success); border-color: var(--success); }
.pod-item-comments { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-light); }
.pod-item-comment { font-size: 14px; color: var(--text-secondary); padding: 5px 0; }
.pod-discussion { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.pod-thread { max-height: 420px; overflow-y: auto; margin-bottom: 12px; }
.pod-thread-empty { color: var(--text-muted); text-align: center; padding: 30px; font-size: 14px; }
.pod-msg { padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.pod-msg-author { font-size: 12px; font-weight: 700; color: var(--primary); }
.pod-msg p { font-size: 15px; color: var(--text); margin-top: 2px; }
.pod-composer { display: flex; gap: 8px; }
.pod-composer input { flex: 1; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; font-family: var(--font); background: var(--bg); color: var(--text); }
.coach-msg-mine { text-align: right; }
.coach-msg-mine .pod-msg-author { color: var(--brass, var(--accent)); }

/* Community (pods) landing section */
.community-section { padding: 72px 24px; max-width: 1100px; margin: 0 auto; }
.community-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.community-copy h2 { font-family: var(--font-display); font-size: 36px; font-weight: 500; letter-spacing: -0.01em; color: var(--text); margin-bottom: 14px; }
.community-copy > p { font-size: 18px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 22px; }
.community-list { list-style: none; padding: 0; margin: 0 0 26px; }
.community-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--text); padding: 7px 0; line-height: 1.5; }
.community-list li svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.community-visual { display: flex; flex-direction: column; gap: 14px; }
.community-card-demo { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-md); }
.cdemo-2 { margin-left: 32px; }
.cdemo-tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--primary); background: var(--primary-bg); padding: 3px 8px; border-radius: 6px; margin-bottom: 8px; }
.cdemo-title { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.cdemo-body { font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 12px; }
.cdemo-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-muted); }
.cdemo-use { font-weight: 600; color: var(--primary); }
@media (max-width: 820px) { .community-inner { grid-template-columns: 1fr; gap: 32px; } .cdemo-2 { margin-left: 0; } .community-copy h2 { font-size: 28px; } }

/* On-Track / Today command center */
/* Learning-goal pace cards */
.goals-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-bottom: 18px; }
.goal-card { background: var(--bg-white); border: 1px solid var(--border); border-left: 3px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.goal-card.goal-good { border-left-color: var(--success); }
.goal-card.goal-behind { border-left-color: var(--danger); }
.goal-card.goal-watch { border-left-color: var(--warning); }
.goal-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.goal-card-subject { font-size: 15px; font-weight: 600; color: var(--text); }
.goal-card-count { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--text); white-space: nowrap; }
.goal-card-target { font-family: var(--font); font-size: 13px; font-weight: 400; color: var(--text-muted); }
.goal-bar { position: relative; height: 8px; background: var(--bg); border-radius: 999px; overflow: visible; margin-bottom: 10px; }
.goal-bar-fill { position: absolute; top: 0; left: 0; height: 100%; background: var(--primary); border-radius: 999px; transition: width .4s ease; }
.goal-bar-pace { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--text-muted); border-radius: 2px; }
.goal-card-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.goal-verdict { font-size: 13px; font-weight: 500; }
.goal-verdict-good { color: var(--success); }
.goal-verdict-behind { color: var(--danger); }
.goal-verdict-watch { color: var(--warning); }
.goal-weeks { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.today-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-bottom: 20px; }
.today-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.today-card h3 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.today-empty { font-size: 14px; color: var(--text-muted); }
.today-list { list-style: none; padding: 0; margin: 0; }
.today-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 15px; color: var(--text); }
.today-list li.done span { text-decoration: line-through; color: var(--text-muted); }
.check-box { width: 26px; height: 26px; flex-shrink: 0; border: 1.5px solid var(--border); border-radius: 6px; background: var(--bg); cursor: pointer; color: var(--primary); font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.today-list li.done .check-box { background: var(--primary); border-color: var(--primary); color: #fff; }
.today-x { margin-left: auto; background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; }
.today-due { color: var(--text-muted); font-style: normal; font-size: 13px; }
.today-add { display: flex; gap: 8px; margin-top: 12px; }
.today-add input { flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: var(--font); background: var(--bg); color: var(--text); }
.today-add button { padding: 9px 16px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; font-family: var(--font); }
@media (max-width: 720px) { .today-grid { grid-template-columns: 1fr; } }
.today-kid-select { padding: 9px 8px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-family: var(--font); background: var(--bg); color: var(--text); }
.today-error { background: var(--danger-bg); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); color: var(--text); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; font-size: 14px; }
.link-btn { background: none; border: none; color: var(--primary); font-weight: 600; cursor: pointer; font-family: var(--font); font-size: inherit; padding: 0; text-decoration: underline; }
.today-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.today-card-head h3 { margin-bottom: 0; }
.today-week-toggle { background: none; border: none; color: var(--primary); font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font); padding: 0; }
.week-view { display: flex; flex-direction: column; gap: 4px; }
.week-day { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-light); }
.week-day-today { border-color: color-mix(in srgb, var(--primary) 35%, transparent); background: color-mix(in srgb, var(--primary) 5%, transparent); }
.week-day-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.week-today-tag { font-size: 10px; font-weight: 700; text-transform: none; letter-spacing: 0; color: #fff; background: var(--primary); padding: 1px 7px; border-radius: 999px; }
.week-day-empty { font-size: 13px; color: var(--text-muted); }
.week-day-blocks { list-style: none; padding: 0; margin: 0; }
.week-day-blocks li { font-size: 14px; color: var(--text); padding: 2px 0; }
.kid-chip { display: inline-block; margin-left: 8px; padding: 1px 8px; font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: 0.2px; color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); border-radius: 999px; vertical-align: middle; }

/* Goal management (Settings) */
.goal-list { list-style: none; padding: 0; margin: 0 0 14px; }
.goal-list-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.goal-list-title { display: block; font-size: 15px; font-weight: 600; color: var(--text); }
.goal-list-sub { display: block; font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.goal-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.goal-add input, .goal-add select { padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: var(--font); background: var(--bg); color: var(--text); }
.goal-add input:first-child { flex: 1; min-width: 160px; }
.settings-hint { font-size: 13px; color: var(--text-muted); margin: 10px 0 4px; }
.settings-hint input { padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; background: var(--bg); color: var(--text); }
.goal-lp-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; font-size: 14px; color: var(--text-secondary); }
.goal-lp-row input { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: var(--font); background: var(--bg); color: var(--text); }

/* LP submission matrix */
.lp-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px; }
.lp-head { margin-bottom: 14px; }
.lp-head h3 { font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--text); }
.lp-sub { font-size: 13px; color: var(--text-muted); }
.lp-scroll { overflow-x: auto; }
.lp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lp-table th, .lp-table td { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--border-light); white-space: nowrap; }
.lp-table thead th { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.lp-corner, .lp-name { text-align: left; }
.lp-name { font-weight: 600; color: var(--text); }
.lp-total { font-weight: 600; color: var(--text-secondary); }
.lp-cell .lp-mark { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 999px; }
.lp-cell.lp-filed .lp-mark { background: var(--success); color: #fff; }
.lp-cell.lp-sub-only .lp-mark { background: color-mix(in srgb, var(--success) 20%, transparent); color: var(--success); }
.lp-dash { color: color-mix(in srgb, var(--text-muted) 60%, transparent); }
.lp-legend { margin-top: 12px; font-size: 12px; color: var(--text-muted); display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.lp-key { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 999px; margin: 0 2px; vertical-align: middle; }
.lp-key.lp-filed { background: var(--success); color: #fff; }
.lp-key.lp-sub-only { background: color-mix(in srgb, var(--success) 20%, transparent); color: var(--success); }

.goal-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.goal-row label { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.goal-days { display: flex; gap: 8px; }
.goal-day { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-white); color: var(--text); font-size: 16px; font-weight: 600; cursor: pointer; font-family: var(--font); }
.goal-day-on { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---- Global search + Approved Vendors ---- */
.search-box { display: flex; align-items: center; gap: 10px; background: var(--bg-white); border: 1px solid var(--border); border-radius: 12px; padding: 4px 14px; box-shadow: var(--shadow); }
.search-box:focus-within { border-color: var(--primary); }
.search-box-icon { color: var(--text-muted); display: flex; }
.search-box input { flex: 1; border: none; outline: none; background: none; font-size: 16px; font-family: var(--font); color: var(--text); padding: 12px 0; }
.search-clear { background: none; border: none; color: var(--text-muted); font-size: 22px; cursor: pointer; line-height: 1; padding: 0 4px; }
.search-hint { color: var(--text-muted); font-size: 15px; margin: 18px 2px; }
.search-results { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.search-result { display: flex; align-items: flex-start; gap: 12px; text-align: left; width: 100%; background: var(--bg-white); border: 1px solid var(--border-light); border-radius: 12px; padding: 14px 16px; cursor: pointer; font-family: var(--font); transition: border-color .15s, box-shadow .15s; }
.search-result:hover { border-color: var(--border); box-shadow: var(--shadow); }
.search-result-icon { color: var(--primary); background: var(--primary-bg); border-radius: 8px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.search-result-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.search-result-title { font-size: 15px; font-weight: 600; color: var(--text); }
.search-result-snippet { font-size: 14px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.search-result-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.search-result-type { font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: var(--primary); }

.vendor-upload { background: var(--bg-white); border: 1px dashed var(--border); border-radius: 14px; padding: 18px; margin-bottom: 20px; }
.vendor-upload-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.vendor-upload-icon { color: var(--primary); background: var(--primary-bg); border-radius: 10px; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vendor-upload-copy { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 220px; }
.vendor-upload-copy strong { color: var(--text); font-size: 15px; }
.vendor-upload-copy span { color: var(--text-muted); font-size: 13px; }
.vendor-msg { font-size: 14px; margin: 12px 2px 0; }
.vendor-msg.ok { color: var(--success); }
.vendor-msg.err { color: var(--danger); }
.vendor-list { display: flex; flex-direction: column; gap: 8px; }
.vendor-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; background: var(--bg-white); border: 1px solid var(--border-light); border-radius: 12px; padding: 14px 16px; }
.vendor-card-body { min-width: 0; }
.vendor-card-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.vendor-name { font-size: 15px; font-weight: 600; color: var(--text); }
.vendor-cat { font-size: 11px; font-weight: 600; color: var(--primary); background: var(--primary-bg); padding: 2px 9px; border-radius: 999px; }
.vendor-desc { font-size: 14px; color: var(--text-secondary); margin: 6px 0 0; line-height: 1.5; }
.vendor-meta { display: flex; gap: 14px; align-items: center; margin-top: 6px; font-size: 13px; color: var(--text-muted); }
.vendor-meta a { color: var(--primary); font-weight: 600; }
.vendor-clear-all { margin-top: 16px; background: none; border: none; color: var(--text-muted); font-size: 13px; cursor: pointer; text-decoration: underline; font-family: var(--font); }
.vendor-empty { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.vendor-empty h3 { font-family: var(--font-display); font-size: 20px; color: var(--text); margin: 12px 0 6px; font-weight: 500; }
.vendor-empty p { font-size: 15px; max-width: 380px; margin: 0 auto; }

/* ---- Flier -> calendar import ---- */
.flier-import { margin-bottom: 20px; }
.flier-toggle { display: inline-flex; align-items: center; gap: 10px; background: var(--bg-white); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; cursor: pointer; font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--text); }
.flier-toggle:hover { border-color: var(--primary); }
.flier-toggle svg { color: var(--primary); }
.flier-toggle-hint { color: var(--text-muted); font-weight: 500; font-size: 12px; }
.flier-panel { margin-top: 12px; background: var(--bg-white); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.flier-copy { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin: 0 0 14px; }
.flier-events { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.flier-event { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border-light); border-radius: 10px; cursor: pointer; }
.flier-event input { margin-top: 3px; }
.flier-event-body { display: flex; flex-direction: column; gap: 2px; }
.flier-event-title { font-size: 15px; font-weight: 600; color: var(--text); }
.flier-event-meta { font-size: 13px; color: var(--primary); font-weight: 500; }
.flier-event-desc { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.flier-actions { display: flex; align-items: center; gap: 16px; }

/* ---- Calendar sync (flier import) ---- */
.flier-gcal { font-size: 12px; color: var(--primary); font-weight: 600; text-decoration: none; margin-top: 4px; }
.flier-gcal:hover { text-decoration: underline; }
.cal-sync { margin-top: 16px; padding: 16px; background: var(--primary-bg); border: 1px solid var(--border-light); border-radius: 12px; }
.cal-sync strong { color: var(--text); font-size: 15px; }
.cal-sync p { font-size: 13px; color: var(--text-secondary); margin: 6px 0 12px; line-height: 1.5; }
.cal-sync-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cal-sync-url { margin-top: 12px !important; word-break: break-all; }
.cal-sync-url code { font-size: 12px; background: var(--bg-white); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; color: var(--text-secondary); }

/* ---- Dashboard "Your brief" card ---- */
.brief-card { background: var(--bg-white); border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 18px; }
.brief-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.brief-card-head h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); }
.brief-refresh { background: none; border: none; color: var(--primary); font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font); }
.brief-body { font-size: 15px; line-height: 1.65; color: var(--text); white-space: pre-wrap; margin: 0; }
.brief-empty { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ========================================
   Report a problem (beta feedback)
   ======================================== */

.sidebar-report-btn:hover {
  background: var(--bg-subtle, #F3EEE6);
  color: var(--text-primary, #23192D);
}

.report-modal .form-group textarea {
  min-height: 120px;
}

.report-file-name {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.report-error {
  margin-top: 4px;
  font-size: 14px;
  color: var(--danger, #dc2626);
}
