/* ============================================================
   CAS Program Funding System - Unified Design System
   Single source of truth for all views
   ============================================================ */

/* ===== DESIGN TOKENS ===== */
:root {
  /* Brand Colors */
  --blue: #003e73; --blue-600: #0a4f8a; --blue-500: #1a6aaa; --blue-400: #2d8ad4;
  --blue-light: #e8f1fa; --blue-50: #f0f7ff;
  --orange: #f58426; --orange-light: #fef3e7; --orange-600: #d96f14;
  --green: #16a34a; --green-light: #dcfce7; --green-600: #15803d;
  --red: #dc2626; --red-light: #fef2f2;
  --purple: #7c3aed; --purple-light: #f3e8ff; --purple-600: #6d28d9;
  --teal: #0d9488; --teal-light: #e0faf8; --teal-600: #0f766e;

  /* Surfaces */
  --bg: #f1f5f9; --bg-card: #ffffff; --bg-card-hover: #ffffff;
  --bg-subtle: #f8fafc; --bg-input: #f8fafc; --bg-input-focus: #ffffff;
  --bg-glass: rgba(255,255,255,.72);
  --bg-header: linear-gradient(135deg, #0f172a 0%, #003e73 50%, #0a4f8a 100%);

  /* Borders */
  --border: #e2e8f0; --border-hover: #cbd5e1; --border-focus: #003e73;

  /* Text */
  --text: #0f172a; --text-secondary: #475569; --text-muted: #94a3b8; --text-faint: #a1b0c4;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.03);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.06), 0 2px 4px -2px rgba(0,0,0,.03);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.06), 0 4px 6px -4px rgba(0,0,0,.03);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.06), 0 8px 10px -6px rgba(0,0,0,.03);

  /* Radii */
  --radius: 14px; --radius-sm: 10px; --radius-xs: 6px;

  /* Focus */
  --focus-ring: 0 0 0 3px rgba(0,62,115,.15);

  /* Misc */
  --transition: all .25s cubic-bezier(.4,0,.2,1);
  --table-stripe: rgba(0,62,115,.02);
}

/* ===== DARK THEME ===== */
[data-theme="dark"] {
  --bg: #0f172a; --bg-card: #1e293b; --bg-card-hover: #253347;
  --bg-subtle: #1a2332; --bg-input: #1e293b; --bg-input-focus: #253347;
  --bg-glass: rgba(22,30,46,.78);
  --bg-header: linear-gradient(135deg, #020617 0%, #0c2444 50%, #0f3060 100%);
  --border: #334155; --border-hover: #475569; --border-focus: #60a5fa;
  --text: #f1f5f9; --text-secondary: #cbd5e1; --text-muted: #64748b; --text-faint: #475569;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.2);
  --shadow: 0 1px 3px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.2);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.3), 0 2px 4px -2px rgba(0,0,0,.2);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.3), 0 4px 6px -4px rgba(0,0,0,.2);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.4), 0 8px 10px -6px rgba(0,0,0,.3);
  --focus-ring: 0 0 0 3px rgba(96,165,250,.25);
  --table-stripe: rgba(255,255,255,.02);
  --blue-light: #0c2444; --green-light: #052e16; --orange-light: #431407;
  --purple-light: #2e1065; --teal-light: #042f2e; --red-light: #450a0a; --blue-50: #0c2444;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.65; font-size: 16px;
  transition: background .3s ease, color .3s ease;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-xs); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* Links */
a { color: var(--blue-500); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-600); text-decoration: underline; }
[data-theme="dark"] a { color: var(--blue-400); }

/* Board view uses teal links */
.board-view a { color: var(--teal); }
.board-view a:hover { color: var(--teal-600); }
[data-theme="dark"] .board-view a { color: #5eead4; }

/* ===== SVG ICONS ===== */
.icon { display: inline-block; width: 20px; height: 20px; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 28px; height: 28px; }

/* ===== ICON SYSTEM ===== */
.ico { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; font-size: 16px; flex-shrink: 0; }
.ico-blue { background: var(--blue-light); color: var(--blue); }
.ico-orange { background: var(--orange-light); color: var(--orange); }
.ico-green { background: var(--green-light); color: var(--green); }
.ico-purple { background: var(--purple-light); color: var(--purple); }
.ico-teal { background: var(--teal-light); color: var(--teal); }

/* ===== HEADER ===== */
.header {
  background: var(--bg-header); color: white; position: sticky; top: 0; z-index: 50;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 14px 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.header-brand { display: flex; align-items: center; gap: 16px; }
.header-logo img { height: 36px; width: auto; }
.header-divider { width: 1px; height: 32px; background: rgba(255,255,255,.2); }
.header-titles h1 { font-size: 17px; font-weight: 700; letter-spacing: -.3px; line-height: 1.2; }
.header-titles h1 span { color: var(--orange); }
.header-sub { font-size: 12px; opacity: .7; font-weight: 400; letter-spacing: .2px; }
.header-right { display: flex; align-items: center; gap: 8px; }
.header-badge {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
}
.header-btn {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: white; padding: 6px 12px; border-radius: 20px; font-size: 13px;
  cursor: pointer; font-family: inherit; font-weight: 600; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 5px;
}
.header-btn:hover { background: rgba(255,255,255,.16); }
.header-user { padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.header-org {
  background: linear-gradient(135deg, var(--purple-600), var(--purple));
  padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; letter-spacing: .3px;
}
.cycle-pill {
  background: rgba(22,163,74,.15); color: #4ade80; padding: 4px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; gap: 5px;
}
.cycle-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; animation: pulse 2s infinite; }

/* ===== DARK MODE TOGGLE ===== */
.theme-toggle {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: white; width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.theme-toggle:hover { background: rgba(255,255,255,.16); transform: scale(1.05); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { position: absolute; transition: all .3s ease; }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0deg); }
.theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg); }
[data-theme="dark"] .theme-toggle .icon-sun { opacity: 1; transform: rotate(0deg); }

/* ===== CONTAINERS ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 28px 24px 80px; }
.container-narrow { max-width: 920px; }
.container-form { max-width: 860px; }

/* ===== GLASS CARDS ===== */
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); margin-bottom: 20px; transition: var(--transition); overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 24px; }
.card-header {
  padding: 18px 24px; border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 10px;
}
.card h2 {
  font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.card-accent { border-top: 3px solid; }
.card-accent.blue { border-top-color: var(--blue); }
.card-accent.orange { border-top-color: var(--orange); }
.card-accent.purple { border-top-color: var(--purple); }
.card-accent.teal { border-top-color: var(--teal); }
.card-accent.green { border-top-color: var(--green); }

/* Glass variant for applicant form */
.card-glass {
  background: var(--bg-glass); backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}

/* ===== AVATARS ===== */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 800; text-transform: uppercase; flex-shrink: 0; letter-spacing: -.5px; }
.avatar-xs { width: 28px; height: 28px; font-size: 11px; }
.avatar-sm { width: 36px; height: 36px; font-size: 14px; }
.avatar-md { width: 44px; height: 44px; font-size: 17px; }
.avatar-lg { width: 56px; height: 56px; font-size: 17px; }
.avatar-blue { background: linear-gradient(135deg,#dbeafe,#bfdbfe); color: #1e40af; border: 2px solid #93c5fd; }
.avatar-orange { background: linear-gradient(135deg,#ffedd5,#fed7aa); color: #9a3412; border: 2px solid #fdba74; }
.avatar-purple { background: linear-gradient(135deg,#ede9fe,#ddd6fe); color: #5b21b6; border: 2px solid #c4b5fd; }
.avatar-green { background: linear-gradient(135deg,#dcfce7,#bbf7d0); color: #166534; border: 2px solid #86efac; }
.avatar-teal { background: linear-gradient(135deg,#ccfbf1,#99f6e4); color: #115e59; border: 2px solid #5eead4; }
[data-theme="dark"] .avatar-blue { background: linear-gradient(135deg,#1e3a5f,#1e40af); color: #93c5fd; border-color: #3b82f6; }
[data-theme="dark"] .avatar-orange { background: linear-gradient(135deg,#431407,#7c2d12); color: #fdba74; border-color: #f97316; }
[data-theme="dark"] .avatar-purple { background: linear-gradient(135deg,#2e1065,#4c1d95); color: #c4b5fd; border-color: #8b5cf6; }
[data-theme="dark"] .avatar-green { background: linear-gradient(135deg,#052e16,#166534); color: #86efac; border-color: #22c55e; }
[data-theme="dark"] .avatar-teal { background: linear-gradient(135deg,#042f2e,#115e59); color: #5eead4; border-color: #14b8a6; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; font-size: 14px; font-weight: 700; font-family: inherit;
  border-radius: var(--radius-xs); border: none; cursor: pointer;
  text-decoration: none; transition: var(--transition); white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; }
/* Ensure button text color overrides link color in all themes */
a.btn-blue, a.btn-orange, a.btn-green, a.btn-purple, a.btn-teal, a.btn-red, a.btn-primary,
a.btn-blue:hover, a.btn-orange:hover, a.btn-green:hover, a.btn-purple:hover, a.btn-teal:hover, a.btn-red:hover, a.btn-primary:hover,
[data-theme="dark"] a.btn-blue, [data-theme="dark"] a.btn-orange, [data-theme="dark"] a.btn-green,
[data-theme="dark"] a.btn-purple, [data-theme="dark"] a.btn-teal, [data-theme="dark"] a.btn-red,
[data-theme="dark"] a.btn-primary { color: white !important; text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-md { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: var(--radius-sm); }
.btn-blue { background: var(--blue); color: white; }
.btn-blue:hover { background: var(--blue-600); }
.btn-orange { background: var(--orange); color: white; }
.btn-orange:hover { background: var(--orange-600); }
.btn-green { background: var(--green); color: white; }
.btn-green:hover { background: var(--green-600); }
.btn-purple { background: var(--purple); color: white; }
.btn-purple:hover { background: var(--purple-600); }
.btn-teal { background: var(--teal); color: white; }
.btn-teal:hover { background: var(--teal-600); }
.btn-red { background: var(--red); color: white; }
.btn-red:hover { background: #b91c1c; }
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: var(--blue-600); }
.btn-outline { background: var(--bg-card); color: var(--text-secondary); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-50); }
.btn-danger-ghost {
  background: none; color: var(--text-muted); border: 1px solid var(--border);
  padding: 5px 10px; font-size: 12px; border-radius: var(--radius-xs);
  cursor: pointer; font-family: inherit; font-weight: 600; transition: var(--transition);
}
.btn-danger-ghost:hover { color: var(--red); border-color: var(--red); background: var(--red-light); }

/* Gradient button variants (for applicant form wizard) */
.btn-gradient-orange { background: linear-gradient(135deg, var(--orange), var(--orange-600)); color: white; box-shadow: 0 2px 8px rgba(245,132,38,.25); }
.btn-gradient-orange:hover { box-shadow: 0 4px 16px rgba(245,132,38,.35); }
.btn-gradient-green { background: linear-gradient(135deg, var(--green), var(--green-600)); color: white; box-shadow: 0 2px 8px rgba(22,163,74,.2); }
.btn-gradient-green:hover { box-shadow: 0 4px 16px rgba(22,163,74,.3); }
.btn-gradient-blue { background: linear-gradient(135deg, var(--blue), var(--blue-600)); color: white; box-shadow: 0 2px 8px rgba(0,62,115,.2); }
.btn-gradient-blue:hover { box-shadow: 0 4px 16px rgba(0,62,115,.3); }

/* ===== FORM ELEMENTS ===== */
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.form-label-upper { text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); font-size: 12px; }
.req { color: var(--red); font-weight: 700; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px; font-size: 15px; font-family: inherit;
  border: 1.5px solid var(--border); border-radius: var(--radius-xs);
  background: var(--bg-input); color: var(--text); transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--border-focus); background: var(--bg-input-focus); box-shadow: var(--focus-ring);
}
.form-textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.form-select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-hint { font-size: 13px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-faint); }
[data-theme="dark"] .form-input, [data-theme="dark"] .form-select, [data-theme="dark"] .form-textarea { background: rgba(30,41,59,.6); }

/* Error state for form fields */
.form-input.field-error, .form-select.field-error, .form-textarea.field-error {
  border-color: var(--red); box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}
.field-error-msg { font-size: 12px; color: var(--red); margin-top: 4px; font-weight: 600; }

/* ===== SECTION HEADERS ===== */
.section-header { display: flex; align-items: center; gap: 10px; margin: 32px 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.section-icon { width: 38px; height: 38px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.section-header h2 { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -.2px; }
.section-count { margin-left: auto; font-size: 13px; color: var(--text-muted); font-weight: 600; }

/* Applicant form section headers (numbered circles) */
.section-header-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.section-number {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-600));
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; flex-shrink: 0; box-shadow: 0 2px 10px rgba(245,132,38,.3);
}
.section-header-bar h2 { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -.3px; }
.section-desc { color: var(--text-secondary); font-size: 15px; margin-bottom: 20px; line-height: 1.7; }
.form-section { margin-bottom: 28px; }
.form-section.wiz-hidden { display: none; }

/* Coordinator step headers */
.step-header { display: flex; align-items: center; gap: 14px; margin: 32px 0 16px; }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--purple); color: white; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; flex-shrink: 0; }
.step-header h2 { font-size: 17px; font-weight: 700; color: var(--text); margin: 0; }
.step-header .step-hint { font-size: 12px; color: var(--text-muted); margin-left: auto; font-weight: 500; }

/* ===== STATUS BADGES ===== */
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.status-draft { background: var(--orange-light); color: #92400e; } .status-draft .status-dot { background: #d97706; }
.status-submitted { background: var(--green-light); color: var(--green-600); } .status-submitted .status-dot { background: var(--green); }
.status-revision_requested { background: var(--red-light); color: var(--red); } .status-revision_requested .status-dot { background: var(--red); }
.status-not-requesting { background: #e0f2fe; color: #0369a1; } .status-not-requesting .status-dot { background: #0ea5e9; }
.status-reviewed { background: #dbeafe; color: #1e40af; } .status-reviewed .status-dot { background: #3b82f6; }
[data-theme="dark"] .status-draft { background: #431407; color: #fbbf24; }
[data-theme="dark"] .status-submitted { background: #052e16; color: #4ade80; }
[data-theme="dark"] .status-revision_requested { background: #450a0a; color: #f87171; }
[data-theme="dark"] .status-not-requesting { background: #0c2744; color: #7dd3fc; }

/* ===== PILLS ===== */
.pill { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.pill-blue { background: var(--blue-light); color: var(--blue); }
.pill-teal { background: var(--teal-light); color: var(--teal); }
.pill-purple { background: var(--purple-light); color: var(--purple); }
.pill-green { background: var(--green-light); color: var(--green); }
.pill-orange { background: var(--orange-light); color: var(--orange); }
[data-theme="dark"] .pill-blue { color: var(--blue-400); }

/* ===== ALERTS ===== */
.alert {
  padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 20px;
  font-size: 14px; line-height: 1.6; background: var(--bg-card); border: 1px solid var(--border);
  animation: slideDown .3s ease-out;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.alert-success { border-left: 4px solid var(--green); background: var(--green-light); }
.alert-error { border-left: 4px solid var(--red); }
.alert-warning { border-left: 4px solid var(--orange); background: var(--orange-light); }
.alert-info { border-left: 4px solid var(--blue); background: var(--blue-light); }
[data-theme="dark"] .alert-success { background: #052e16; }
[data-theme="dark"] .alert-warning { background: #431407; }
[data-theme="dark"] .alert-info { background: #0c2444; }

/* Revision banner with clear next steps */
.alert-revision {
  border-left: 4px solid var(--red); background: var(--red-light);
  padding: 20px 24px;
}
.alert-revision strong { display: block; font-size: 16px; margin-bottom: 6px; color: var(--red); }
.alert-revision p { margin: 0; font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.alert-revision .btn { margin-top: 12px; }
[data-theme="dark"] .alert-revision { background: #450a0a; }

/* ===== STATS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 22px 20px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: var(--transition); position: relative; overflow: hidden;
  cursor: pointer; text-decoration: none; display: block; color: var(--text);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--border-hover); }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.stat-card.blue::before { background: linear-gradient(90deg, var(--blue), var(--blue-500)); }
.stat-card.green::before { background: linear-gradient(90deg, var(--green), #22c55e); }
.stat-card.orange::before { background: linear-gradient(90deg, var(--orange), #fbbf24); }
.stat-card.teal::before { background: linear-gradient(90deg, var(--teal), #2dd4bf); }
.stat-card.purple::before { background: linear-gradient(90deg, var(--purple), #a78bfa); }
.stat-icon { margin-bottom: 8px; color: var(--text-muted); }
.stat-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 4px; }
.stat-num { font-size: 32px; font-weight: 900; letter-spacing: -1px; line-height: 1.1; }
.stat-card.blue .stat-num { color: var(--blue); }
.stat-card.green .stat-num { color: var(--green); }
.stat-card.orange .stat-num { color: var(--orange); }
.stat-card.teal .stat-num { color: var(--teal); }
.stat-card.purple .stat-num { color: var(--purple); }
[data-theme="dark"] .stat-card.blue .stat-num { color: var(--blue-400); }
[data-theme="dark"] .stat-card.green .stat-num { color: #4ade80; }
.stat-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; opacity: 0; transition: opacity .2s; }
.stat-card:hover .stat-hint { opacity: 1; }

/* Compact stats (coordinator) */
.sc { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); position: relative; overflow: hidden; }
.sc:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.sc::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.sc.bl::before { background: var(--blue); } .sc.gr::before { background: var(--green); }
.sc.or::before { background: var(--orange); } .sc.rd::before { background: var(--red); }
.sc-v { font-size: 28px; font-weight: 900; line-height: 1; }
.sc.bl .sc-v { color: var(--blue); } .sc.gr .sc-v { color: var(--green); }
.sc.or .sc-v { color: var(--orange); } .sc.rd .sc-v { color: var(--red); }
[data-theme="dark"] .sc.bl .sc-v { color: var(--blue-400); }
[data-theme="dark"] .sc.gr .sc-v { color: #4ade80; }
.sc-l { font-size: 12px; color: var(--text-muted); margin-top: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }

/* Board stats bar */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.sb { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); position: relative; overflow: hidden; }
.sb:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.sb::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.sb:nth-child(1)::before { background: var(--teal); } .sb:nth-child(2)::before { background: var(--green); }
.sb:nth-child(3)::before { background: var(--orange); } .sb:nth-child(4)::before { background: var(--blue); }
.sb-v { font-size: 32px; font-weight: 900; line-height: 1; }
.sb:nth-child(1) .sb-v { color: var(--teal); } .sb:nth-child(2) .sb-v { color: var(--green); }
.sb:nth-child(3) .sb-v { color: var(--orange); } .sb:nth-child(4) .sb-v { color: var(--blue); }
[data-theme="dark"] .sb:nth-child(1) .sb-v { color: #5eead4; }
[data-theme="dark"] .sb:nth-child(2) .sb-v { color: #4ade80; }
.sb-l { font-size: 12px; color: var(--text-muted); margin-top: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }

/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  padding: 12px 14px; text-align: left; font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted);
  border-bottom: 2px solid var(--border); background: var(--bg-subtle);
}
td { padding: 14px 16px; border-bottom: 1px solid var(--border); transition: background .15s; }
tbody tr { transition: var(--transition); }
tbody tr:nth-child(even) { background: var(--table-stripe); }
tbody tr:hover { background: var(--blue-light); }

/* Dark header table variant (board YOY) */
.table-dark-header th { background: #1e293b; color: white; font-weight: 600; letter-spacing: .3px; }
[data-theme="dark"] .table-dark-header th { background: #0c2444; }
.total-row td { font-weight: 700; border-top: 2px solid var(--border); background: var(--bg-subtle); }

/* ===== DETAIL SECTIONS (review views) ===== */
.detail-section { margin-bottom: 20px; padding: 20px; background: var(--bg-subtle); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.detail-section h3 { color: var(--blue); font-size: 14px; margin-bottom: 14px; border-bottom: 2px solid var(--blue-light); padding-bottom: 8px; font-weight: 700; }
[data-theme="dark"] .detail-section h3 { color: var(--blue-400); }
.board-view .detail-section h3 { color: var(--teal); border-bottom-color: var(--teal-light); }
[data-theme="dark"] .board-view .detail-section h3 { color: #5eead4; }
.detail-row { display: grid; grid-template-columns: 180px 1fr; gap: 8px; padding: 7px 0; font-size: 14px; }
.detail-label { font-weight: 600; color: var(--text-muted); }
.narrative { white-space: pre-wrap; line-height: 1.65; font-size: 14px; background: var(--bg-card); padding: 14px; border-radius: var(--radius-xs); border: 1px solid var(--border); }

/* Program cards in review */
.program-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; margin-bottom: 12px; border-left: 4px solid var(--orange); transition: var(--transition); }
.program-card:hover { box-shadow: var(--shadow-md); }
.program-card h4 { color: var(--blue); margin-bottom: 8px; font-size: 14px; }
[data-theme="dark"] .program-card h4 { color: var(--blue-400); }
.board-view .program-card h4 { color: var(--teal); }
[data-theme="dark"] .board-view .program-card h4 { color: #5eead4; }
.program-amount { font-size: 17px; font-weight: 900; color: var(--green); }
[data-theme="dark"] .program-amount { color: #4ade80; }

/* Budget grid in review */
.budget-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.budget-item { background: var(--bg-card); padding: 14px; border-radius: var(--radius-xs); border: 1px solid var(--border); transition: var(--transition); }
.budget-item:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.budget-item .label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .3px; font-weight: 600; }
.budget-item .amount { font-size: 15px; font-weight: 800; color: var(--text); margin-top: 4px; }

/* ===== COMMENTS ===== */
.cmt-tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--border); margin-bottom: 16px; }
.cmt-tab {
  padding: 10px 18px; font-size: 13px; font-weight: 600; color: var(--text-muted);
  background: none; border: none; cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all .15s; font-family: inherit; display: flex; align-items: center; gap: 6px;
}
.cmt-tab:hover { color: var(--text); }
.cmt-tab.active { border-bottom-color: var(--blue); }
.cmt-tab.t-notes.active { color: var(--text); border-bottom-color: var(--text-muted); }
.cmt-tab.t-revision.active { color: var(--orange); border-bottom-color: var(--orange); }
.cmt-tab.t-board.active { color: var(--teal); border-bottom-color: var(--teal); }
.cmt-tab.t-blockgrant.active { color: var(--purple); border-bottom-color: var(--purple); }
.cmt-tab .count { font-size: 11px; background: var(--border); padding: 2px 7px; border-radius: 8px; font-weight: 700; }
.cmt-tab.active .count { background: var(--blue-light); color: var(--blue); }
.cmt-tab.t-blockgrant.active .count { background: var(--purple-light); color: var(--purple); }
.cmt-panel { display: none; } .cmt-panel.active { display: block; }

.comment { padding: 14px 16px; margin-bottom: 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); transition: var(--transition); }
.comment:hover { box-shadow: var(--shadow); }
.comment-admin { background: var(--orange-light); border-color: #fed7aa; }
.comment-coordinator { background: var(--purple-light); border-color: #d8b4fe; }
.comment-board { background: var(--teal-light); border-color: #99f6e4; }
.comment-private { background: var(--bg-subtle); border-color: var(--border); }
[data-theme="dark"] .comment-admin { background: #431407; border-color: #9a3412; }
[data-theme="dark"] .comment-coordinator { background: #2e1065; border-color: #581c87; }
[data-theme="dark"] .comment-board { background: #042f2e; border-color: #134e4a; }
[data-theme="dark"] .comment-private { background: #1a2332; border-color: #334155; }
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; flex-wrap: wrap; gap: 8px; font-size: 12px; }
.comment-author { font-weight: 700; color: var(--text); font-size: 14px; }
.comment-role { text-transform: uppercase; font-size: 11px; padding: 2px 8px; border-radius: 8px; background: rgba(0,0,0,.06); font-weight: 700; letter-spacing: .3px; }
[data-theme="dark"] .comment-role { background: rgba(255,255,255,.08); }
.comment-time { font-size: 12px; color: var(--text-muted); }
.comment-text { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }

/* Channel badges */
.channel-badge { display: inline-flex; padding: 2px 8px; border-radius: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.ch-private { background: var(--bg-subtle); color: var(--text-muted); }
.ch-revision { background: var(--orange-light); color: var(--orange-600); }
.ch-purple { background: var(--purple-light); color: var(--purple); }
.ch-board { background: var(--teal-light); color: var(--teal); }
[data-theme="dark"] .ch-private { background: #1a2332; color: #64748b; }
[data-theme="dark"] .ch-revision { background: #431407; color: #fb923c; }
[data-theme="dark"] .ch-board { background: #042f2e; color: #5eead4; }

/* Comment forms */
.comment-form textarea {
  width: 100%; padding: 12px 16px; font-size: 14px; font-family: inherit;
  border: 1.5px solid var(--border); border-radius: var(--radius-xs);
  resize: vertical; min-height: 80px; outline: none;
  background: var(--bg-card); color: var(--text); transition: border-color .15s;
}
.comment-form textarea:focus { border-color: var(--blue); box-shadow: var(--focus-ring); }
.comment-form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; flex-wrap: wrap; gap: 8px; }
.comment-note { font-size: 12px; color: var(--text-muted); }
.comment-pulse { display: inline-flex; align-items: center; gap: 5px; padding: 3px 14px; border-radius: 14px; font-size: 13px; font-weight: 700; background: var(--teal-light); color: var(--teal); animation: cpulse 2s ease-in-out infinite; }
@keyframes cpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(13,148,136,.25); } 50% { box-shadow: 0 0 0 8px rgba(13,148,136,0); } }
[data-theme="dark"] .comment-pulse { background: #042f2e; color: #5eead4; }

.visibility-note { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 10px 14px; font-size: 12px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }

/* ===== BREADCRUMB ===== */
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--blue-500); text-decoration: none; } .breadcrumb a:hover { text-decoration: underline; }
.board-view .breadcrumb a { color: var(--teal); }
.coordinator-view .breadcrumb a { color: var(--purple); }

/* ===== ACTION BAR ===== */
.action-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; padding: 16px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); align-items: center; }
.action-bar-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-right: auto; }

/* ===== UPLOAD ===== */
.upload-zone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 40px; text-align: center; cursor: pointer; transition: var(--transition); background: var(--bg-subtle); }
.upload-zone:hover, .upload-zone.active, .upload-zone.dragover { border-color: var(--orange); background: var(--orange-light); transform: scale(1.01); }
.upload-icon { font-size: 44px; margin-bottom: 12px; }
.upload-title { font-size: 17px; font-weight: 700; color: var(--text); }
.upload-hint { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* ===== RADIO ===== */
.radio-group { display: flex; gap: 14px; flex-wrap: wrap; }
.radio-option {
  display: flex; align-items: center; gap: 8px; padding: 12px 22px;
  border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer;
  transition: var(--transition); font-size: 15px; font-weight: 600; background: var(--bg-card);
}
.radio-option:hover { border-color: var(--border-hover); box-shadow: var(--shadow); }
.radio-option input { accent-color: var(--orange); width: 18px; height: 18px; }

/* ===== PROGRESS BAR ===== */
.progress-bar { height: 8px; background: var(--bg-subtle); border-radius: 4px; overflow: hidden; margin: 12px 0; border: 1px solid var(--border); }
.progress-fill { height: 100%; border-radius: 4px; transition: width .6s cubic-bezier(.4,0,.2,1); }

/* ===== SAVE BAR ===== */
.save-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 24px; box-shadow: var(--shadow); position: sticky; top: 60px; z-index: 40; }

/* ===== COLLAPSIBLE SECTIONS (full-view mode only, not submit section) ===== */
.section-header-bar.collapsible { cursor: pointer; user-select: none; }
.section-header-bar.collapsible::after { content: ''; display: inline-block; width: 10px; height: 10px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); margin-left: auto; transition: transform .2s; flex-shrink: 0; }
.section-header-bar.collapsible.collapsed::after { transform: rotate(-135deg); }
.section-header-bar.collapsible.collapsed + .card { display: none; }
.save-status { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); }
.save-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(22,163,74,.5); }
.save-actions { display: flex; gap: 10px; }

/* ===== WIZARD ===== */
.wizard-bar { display: flex; gap: 4px; margin-bottom: 28px; padding: 0 4px; }
.wizard-step { flex: 1; text-align: center; cursor: pointer; position: relative; transition: var(--transition); }
.wizard-step:hover { transform: translateY(-1px); }
.wizard-dot {
  width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--border);
  background: var(--bg-card); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px; font-size: 18px; font-weight: 900; transition: var(--transition);
  color: var(--text-muted);
}
.wizard-step.active .wizard-dot { border-color: var(--orange); background: var(--orange); color: white; box-shadow: 0 0 0 6px rgba(245,132,38,.12); }
.wizard-step.done .wizard-dot { border-color: var(--green); background: #dcfce7; color: var(--green); }
.wizard-step.upcoming .wizard-dot { border-color: var(--border); background: var(--bg-subtle); color: var(--text-faint); }
.wizard-step-label { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.wizard-step.active .wizard-step-label { color: var(--orange); font-weight: 800; }
.wizard-step.done .wizard-step-label { color: var(--green); }
.wizard-line { position: absolute; top: 24px; left: 50%; width: 100%; height: 3px; background: var(--border); z-index: -1; }
.wizard-step.done .wizard-line { background: var(--green); }
.wizard-step:last-child .wizard-line { display: none; }
[data-theme="dark"] .wizard-step.active .wizard-dot { box-shadow: 0 0 0 6px rgba(245,132,38,.1); }

/* Wizard nav buttons */
.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.wiz-btn { padding: 14px 32px; border-radius: 12px; border: none; font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit; transition: var(--transition); display: inline-flex; align-items: center; gap: 10px; }
.wiz-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.wiz-btn:active { transform: translateY(0); }
.wiz-btn-back { background: var(--bg-subtle); color: var(--text-secondary); border: 1.5px solid var(--border); }
.wiz-btn-next { background: linear-gradient(135deg, var(--orange), #ea580c); color: white; box-shadow: 0 4px 14px rgba(245,132,38,.2); }
.wiz-btn-next:hover { box-shadow: 0 6px 20px rgba(245,132,38,.35); }
.wiz-btn-submit { background: linear-gradient(135deg, var(--green), #15803d); color: white; font-size: 17px; padding: 16px 40px; }
.wiz-btn-submit:hover { box-shadow: 0 6px 20px rgba(22,163,74,.3); }

/* Next info box */
.next-info { padding: 16px 20px; background: linear-gradient(135deg,#f0fdfa,#ccfbf1); border-radius: var(--radius-sm); border-left: 4px solid var(--teal); margin-top: 18px; font-size: 15px; color: #134e4a; line-height: 1.65; }
.next-info strong { color: #0f766e; }
[data-theme="dark"] .next-info { background: linear-gradient(135deg,#042f2e,#064e45); color: #99f6e4; }
[data-theme="dark"] .next-info strong { color: #5eead4; }

/* ===== PASTE BUTTON ===== */
.paste-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border: 1.5px solid var(--orange); background: var(--orange-light); color: var(--orange); border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; transition: var(--transition); }
.paste-btn:hover { background: var(--orange); color: white; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(245,132,38,.25); }

/* ===== GATE ===== */
.gate { padding: 20px; border-radius: var(--radius-sm); border: 2px dashed var(--border); text-align: center; color: var(--text-muted); font-size: 14px; }
.gate.ready { border-color: var(--green); border-style: solid; background: var(--green-light); color: var(--green-600); }
.gate.submitted { border-color: var(--green); border-style: solid; background: var(--green-light); color: var(--green-600); }
[data-theme="dark"] .gate.ready, [data-theme="dark"] .gate.submitted { background: #052e16; color: #4ade80; }

/* ===== TIMELINE (admin panel) ===== */
.timeline-card { background: var(--bg-card); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition); }
.timeline-card:hover { box-shadow: var(--shadow-lg); }
.timeline-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.timeline-header h2 { font-size: 17px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 10px; }
.timeline-year { font-size: 13px; color: var(--blue); background: var(--blue-light); padding: 5px 14px; border-radius: 20px; font-weight: 700; }
[data-theme="dark"] .timeline-year { color: var(--blue-400); }
.timeline { display: flex; align-items: flex-start; position: relative; padding: 0 10px; }
.timeline-phase { flex: 1; text-align: center; position: relative; z-index: 1; }
.timeline-dot {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--border); background: var(--bg-card);
  transition: var(--transition); position: relative; z-index: 2; color: var(--text-muted);
}
.timeline-phase.completed .timeline-dot { border-color: var(--green); background: var(--green-light); color: var(--green); }
.timeline-phase.active .timeline-dot { border-color: var(--blue); background: var(--blue-light); color: var(--blue); box-shadow: 0 0 0 6px rgba(0,62,115,.1); animation: pulse 2s infinite; }
[data-theme="dark"] .timeline-phase.active .timeline-dot { color: var(--blue-400); box-shadow: 0 0 0 6px rgba(96,165,250,.15); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 6px rgba(0,62,115,.1); } 50% { box-shadow: 0 0 0 10px rgba(0,62,115,.04); } }
.timeline-phase.upcoming .timeline-dot { border-color: var(--border); background: var(--bg-subtle); color: var(--text-faint); }
.timeline-label { font-size: 13px; font-weight: 700; color: var(--text-secondary); }
.timeline-date { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.timeline-bar { position: absolute; top: 22px; left: 10%; right: 10%; height: 3px; background: var(--border); z-index: 0; border-radius: 2px; }
.timeline-bar-fill { height: 100%; background: linear-gradient(90deg, var(--green), var(--blue)); border-radius: 2px; transition: width .5s ease; }

/* Timeline (compact, for form/applicant) */
.tl-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; margin-bottom: 24px; }
.tl-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.tl-head h2 { font-size: 17px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 10px; }
.tl-year { background: var(--bg-subtle); border: 1px solid var(--border); padding: 4px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; color: var(--blue); }
[data-theme="dark"] .tl-year { color: #93c5fd; }
.tl-row { display: flex; align-items: flex-start; position: relative; padding: 0 10px; }
.tl-phase { flex: 1; text-align: center; position: relative; z-index: 1; }
.tl-dot { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--border); background: var(--bg-card); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: 14px; transition: var(--transition); }
.tl-phase.completed .tl-dot { border-color: var(--green); background: #dcfce7; color: var(--green); }
.tl-phase.active .tl-dot { border-color: var(--blue); background: var(--blue-50); color: var(--blue); box-shadow: 0 0 0 5px rgba(0,62,115,.1); }
[data-theme="dark"] .tl-phase.active .tl-dot { box-shadow: 0 0 0 5px rgba(96,165,250,.12); }
.tl-phase.upcoming .tl-dot { border-color: var(--border); background: var(--bg-subtle); color: var(--text-faint); }
.tl-lbl { font-size: 13px; font-weight: 700; color: var(--text-secondary); }
.tl-dt { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.tl-line { position: absolute; top: 20px; left: 10%; right: 10%; height: 3px; background: var(--border); z-index: 0; }
.tl-line-fill { height: 100%; background: var(--green); border-radius: 2px; transition: width .5s; }

/* ===== ADMIN PANEL SPECIFICS ===== */
.gen-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.gen-grid .card-body h3 { font-size: 14px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.link-output {
  margin: 10px 0 0; padding: 12px 16px; background: var(--bg-subtle); border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--border);
}
.link-output a { color: var(--blue); font-size: 14px; word-break: break-all; flex: 1; text-decoration: none; font-family: 'SF Mono', 'Fira Code', monospace; }
[data-theme="dark"] .link-output a { color: var(--blue-400); }
.link-output a:hover { text-decoration: underline; }
.link-output.coordinator { border-color: var(--purple); } .link-output.coordinator a { color: var(--purple); }
.link-output.board { border-color: var(--teal); } .link-output.board a { color: var(--teal); }
.copy-pill { background: var(--blue); color: white; border: none; padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap; transition: var(--transition); }
.copy-pill:hover { background: var(--blue-600); transform: scale(1.02); }
.links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.link-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--bg-subtle); border-radius: var(--radius-sm); border: 1px solid var(--border); transition: var(--transition); }
.link-item:hover { background: var(--bg-card-hover); box-shadow: var(--shadow); border-color: var(--border-hover); }
.link-avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; color: white; flex-shrink: 0; }
.link-avatar.purple { background: linear-gradient(135deg, var(--purple), #a78bfa); }
.link-avatar.teal { background: linear-gradient(135deg, var(--teal), #2dd4bf); }
.link-avatar.green { background: linear-gradient(135deg, var(--green), #4ade80); }
.link-info { flex: 1; min-width: 0; }
.link-name { font-size: 14px; font-weight: 700; color: var(--text); }
.link-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.link-revoke { background: none; border: none; color: var(--text-faint); cursor: pointer; font-size: 14px; padding: 6px; border-radius: 6px; transition: var(--transition); line-height: 1; }
.link-revoke:hover { color: var(--red); background: var(--red-light); }
.link-actions { display: flex; align-items: center; gap: 6px; }
.link-actions a { color: var(--blue); font-size: 13px; font-weight: 600; text-decoration: none; padding: 5px 12px; border-radius: var(--radius-xs); transition: all .15s; }
[data-theme="dark"] .link-actions a { color: var(--blue-400); }
.link-actions a:hover { background: var(--blue-light); }
.copy-btn { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 4px 12px; font-size: 12px; cursor: pointer; color: var(--text-muted); font-family: inherit; font-weight: 600; transition: var(--transition); }
.copy-btn:hover { background: var(--blue-light); color: var(--blue); border-color: var(--blue); }

/* Org summary (admin) */
.org-bar-row { display: grid; grid-template-columns: 1fr 80px 120px; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.org-bar-label { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.org-bar-count { font-size: 13px; color: var(--text-muted); text-align: center; }
.org-bar-amount { font-size: 14px; font-weight: 800; color: var(--green); text-align: right; }
.org-total-row { display: grid; grid-template-columns: 1fr 80px 120px; align-items: center; gap: 12px; padding: 14px 0 0; margin-top: 4px; border-top: 2px solid var(--text-faint); }
.org-total-row .org-bar-label { font-size: 14px; font-weight: 900; color: var(--text); }
.allocation-note { font-size: 13px; color: var(--text-muted); margin-top: 12px; }

/* ===== BOARD SPECIFICS ===== */
.org-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; transition: var(--transition); overflow: hidden; }
.org-card:hover { box-shadow: var(--shadow-lg); }
.org-card-header { padding: 20px 24px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.org-card-title { font-size: 14px; font-weight: 700; color: var(--text); }
.org-card-meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.org-card-amount { text-align: right; }
.org-card-total { font-size: 28px; font-weight: 900; color: var(--green); line-height: 1; }
[data-theme="dark"] .org-card-total { color: #4ade80; }
.org-card-yoy { font-size: 12px; margin-top: 4px; font-weight: 600; }
.yoy-down { color: var(--green); } .yoy-up { color: var(--red); } .yoy-flat { color: var(--text-muted); }
.org-card-programs { padding: 0 24px 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.prog-pill { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 6px 12px; font-size: 12px; display: flex; justify-content: space-between; gap: 12px; flex: 1; min-width: 200px; }
.prog-pill-name { color: var(--text); font-weight: 500; }
.prog-pill-amt { color: var(--green); font-weight: 700; }
[data-theme="dark"] .prog-pill-amt { color: #4ade80; }
.prog-more { font-size: 12px; color: var(--text-muted); font-style: italic; padding: 0 12px; }
.org-card-narrative { padding: 0 24px 16px; }
.org-card-narrative blockquote { background: var(--bg-subtle); border-left: 3px solid var(--teal); border-radius: 0 var(--radius-xs) var(--radius-xs) 0; padding: 12px 16px; font-size: 13px; line-height: 1.6; color: var(--text-secondary); font-style: italic; }
.org-card-actions { padding: 12px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; align-items: center; }
.file-count { font-size: 12px; color: var(--text-muted); margin-left: auto; display: flex; align-items: center; gap: 4px; }

/* Board feedback form */
.feedback-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 24px; }
.feedback-card h2 { font-size: 14px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.feedback-card .hint { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }
.feedback-card select, .feedback-card textarea { width: 100%; padding: 10px 14px; font-size: 14px; font-family: inherit; border: 1.5px solid var(--border); border-radius: var(--radius-xs); background: var(--bg-card); color: var(--text); outline: none; transition: border-color .15s; }
.feedback-card select:focus, .feedback-card textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,148,136,.1); }
.feedback-card textarea { resize: vertical; min-height: 100px; margin-top: 12px; line-height: 1.6; }
.feedback-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.feedback-note { font-size: 12px; color: var(--text-muted); }

/* ===== COORDINATOR SPECIFICS ===== */
.explainer { background: var(--bg-subtle); border: 1px solid var(--border); border-left: 3px solid var(--purple); border-radius: 0 var(--radius-xs) var(--radius-xs) 0; padding: 14px 18px; margin-bottom: 18px; font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.explainer strong { color: var(--text); font-weight: 700; }
.explainer-title { font-size: 11px; font-weight: 700; color: var(--purple); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
[data-theme="dark"] .explainer { background: #1a2332; border-left-color: var(--purple); }
.share-box { background: var(--bg-subtle); border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 20px; text-align: center; transition: var(--transition); }
.share-box:hover { border-color: var(--purple); box-shadow: var(--shadow-md); }
.share-link { display: flex; align-items: center; gap: 10px; background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius-xs); padding: 10px 16px; margin: 12px 0; }
.share-link input { flex: 1; border: none; background: none; font-family: 'SF Mono', 'Fira Code', monospace; font-size: 13px; color: var(--text); outline: none; }
.share-link .copy-btn { background: var(--purple); color: white; border: none; padding: 6px 16px; border-radius: var(--radius-xs); font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; transition: var(--transition); white-space: nowrap; }
.share-link .copy-btn:hover { background: var(--purple-600); }
.narrative-area textarea { width: 100%; padding: 16px; font-size: 14px; font-family: inherit; border: 1.5px solid var(--border); border-radius: var(--radius-xs); resize: vertical; min-height: 140px; outline: none; background: var(--bg-card); color: var(--text); line-height: 1.65; transition: border-color .15s; }
.narrative-area textarea:focus { border-color: var(--purple); box-shadow: var(--focus-ring); }
.narrative-area textarea:disabled { opacity: .7; cursor: not-allowed; }
[title] { cursor: help; border-bottom: 1px dotted var(--text-muted); }

/* ===== LANDING PAGE ===== */
.hero { text-align: center; padding: 48px 24px 32px; }
.hero h2 { font-size: 32px; font-weight: 900; color: var(--text); margin-bottom: 8px; }
.hero p { font-size: 17px; color: var(--text-secondary); max-width: 640px; margin: 0 auto; line-height: 1.7; }
.welcome-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 36px 40px; max-width: 700px; margin: 0 auto 36px; position: relative; border-left: 4px solid var(--blue); }
[data-theme="dark"] .welcome-card { box-shadow: 0 4px 20px rgba(0,0,0,.25); }
.welcome-card blockquote { font-size: 17px; line-height: 1.8; color: var(--text-secondary); margin: 0 0 20px; font-style: italic; }
.welcome-card .sig { display: flex; align-items: center; gap: 14px; }
.welcome-card .sig-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg,var(--blue),var(--blue-400)); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.welcome-card .sig-name { font-size: 14px; font-weight: 700; color: var(--text); }
.welcome-card .sig-title { font-size: 13px; color: var(--text-muted); }
.access-card { background: var(--bg-card); border: 2px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 28px 32px; max-width: 560px; margin: 0 auto 36px; text-align: center; transition: var(--transition); }
.access-card:hover { box-shadow: var(--shadow-lg); border-color: var(--teal); }
.access-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.access-card .hint { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }
.access-input { display: flex; gap: 8px; }
.access-input input { flex: 1; padding: 14px 16px; font-size: 14px; font-family: inherit; border: 2px solid var(--border); border-radius: var(--radius-xs); background: var(--bg-card); color: var(--text); outline: none; transition: border-color .15s; }
.access-input input:focus { border-color: var(--teal); }
.access-btn { padding: 14px 28px; border-radius: var(--radius-xs); border: none; background: var(--teal); color: white; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap; transition: var(--transition); }
.access-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(13,148,136,.3); }
.access-error { color: var(--red); font-size: 14px; margin-top: 10px; display: none; }
.access-detect { margin-top: 12px; font-size: 14px; color: var(--teal); font-weight: 600; display: none; }
.how-it-works { max-width: 700px; margin: 0 auto 40px; }
.how-it-works h3 { font-size: 14px; font-weight: 800; text-align: center; color: var(--text); margin-bottom: 20px; }
.hiw-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hiw-step { text-align: center; padding: 20px 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: var(--transition); }
.hiw-step:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hiw-num { width: 36px; height: 36px; border-radius: 50%; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; color: white; }
.hiw-step:nth-child(1) .hiw-num { background: var(--orange); }
.hiw-step:nth-child(2) .hiw-num { background: var(--purple); }
.hiw-step:nth-child(3) .hiw-num { background: var(--blue); }
.hiw-step:nth-child(4) .hiw-num { background: var(--green); }
.hiw-label { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.hiw-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.contact-bar { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 32px; max-width: 600px; margin: 0 auto 40px; text-align: center; }
.contact-bar h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.contact-bar p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ===== MODAL ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(15,23,42,.6);
  z-index: 100; align-items: center; justify-content: center; backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg-card); border-radius: 16px; padding: 32px; max-width: 440px; width: 90%;
  box-shadow: var(--shadow-xl); animation: modalIn .2s ease-out; border: 1px solid var(--border);
}
@keyframes modalIn { from { opacity: 0; transform: scale(.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal h3 { font-size: 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.modal p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 22px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* Styled confirm modal (replaces native confirm()) */
.confirm-modal .modal h3 { color: var(--red); }
.confirm-modal .modal-cancel { background: var(--bg-subtle); color: var(--text-secondary); border: 1.5px solid var(--border); }
.confirm-modal .modal-confirm { background: var(--red); color: white; }

/* ===== EMPTY STATES ===== */
.empty { text-align: center; padding: 48px 20px; }
.empty-icon { font-size: 48px; margin-bottom: 12px; opacity: .5; }
.empty p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.empty .btn { margin-top: 16px; }

/* ===== FOOTER ===== */
.footer { text-align: center; padding: 24px; color: var(--text-muted); font-size: 13px; border-top: 1px solid var(--border); margin-top: 20px; }
.footer a { color: var(--blue); text-decoration: none; }
[data-theme="dark"] .footer a { color: var(--blue-400); }

/* ===== TOOLTIPS ===== */
[data-tip] { position: relative; cursor: help; display: inline-block; vertical-align: middle; margin-left: 4px; }
[data-tip]::before { content: '?'; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 800; background: var(--bg-subtle); color: var(--text-muted); border: 1px solid var(--border); }
[data-tip]::after { content: attr(data-tip); position: absolute; left: 0; top: calc(100% + 8px); background: #1e293b; color: #f1f5f9; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; white-space: normal; width: 300px; z-index: 100; box-shadow: 0 8px 32px rgba(0,0,0,.3); line-height: 1.55; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; transform: translateY(-4px); }
[data-tip]:hover::after { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .gen-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .detail-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gen-grid { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 12px 16px; }
  .header-divider { display: none; }
  .container { padding: 20px 16px 60px; }
  .timeline-card { padding: 20px; }
  .timeline { flex-direction: column; gap: 14px; padding: 0; }
  .timeline-bar { display: none; }
  .timeline-phase { text-align: left; display: flex; align-items: center; gap: 14px; }
  .timeline-dot { margin: 0; width: 40px; height: 40px; flex-shrink: 0; }
  table { font-size: 14px; }
  th, td { padding: 12px 10px; }
  .org-bar-row, .org-total-row { grid-template-columns: 1fr 60px 100px; }
  .budget-grid { grid-template-columns: 1fr 1fr; }
  .cmt-tabs { overflow-x: auto; }
  .action-bar { flex-direction: column; align-items: stretch; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .card-body { padding: 18px 16px; }
  .wizard-step-label { font-size: 10px; }
  .wizard-dot { width: 40px; height: 40px; font-size: 15px; }
  .tl-lbl { font-size: 10px; }
  .tl-dot { width: 32px; height: 32px; font-size: 13px; }
  .tl-dt { font-size: 9px; }
  .access-input { flex-direction: column; }
  .hero h2 { font-size: 26px; }
  .hiw-steps { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 28px; }
  .header-badge { display: none; }
  .header-titles h1 { font-size: 14px; }
}

/* ===== ACTION BUTTONS (WCAG 44px touch targets) ===== */
.btn-action {
  min-height: 44px; padding: 12px 24px; font-size: 15px; font-weight: 700;
  border-radius: var(--radius-xs); display: inline-flex; align-items: center; gap: 8px;
}
.btn-action-hint { display: block; font-size: 12px; color: var(--text-muted); margin-top: 4px; font-weight: 400; }

/* ===== CHANNEL AUDIENCE LABELS ===== */
.channel-audience {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 16px; border-radius: var(--radius-xs); margin-bottom: 14px;
  background: var(--bg-subtle); border: 1px solid var(--border); font-size: 13px;
}
.aud-label { font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 4px; }
.aud-pill {
  display: inline-flex; padding: 2px 10px; border-radius: 10px; font-size: 11px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .3px;
}
.aud-you { background: var(--green-light); color: var(--green); }
.aud-cas { background: var(--blue-light); color: var(--blue); }
.aud-coord { background: var(--purple-light); color: var(--purple); }
.aud-board { background: var(--teal-light); color: var(--teal); }
.aud-applicant { background: var(--orange-light); color: var(--orange); }
.aud-note { color: var(--text-muted); font-style: italic; margin-left: auto; }
[data-theme="dark"] .aud-you { color: #4ade80; }
[data-theme="dark"] .aud-cas { color: var(--blue-400); }

/* ===== LOADING SPINNER ===== */
.spinner {
  display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.3);
  border-top-color: white; border-radius: 50%; animation: spin .6s linear infinite;
}
.spinner-dark { border-color: rgba(0,0,0,.15); border-top-color: var(--text-muted); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== UNREAD BADGE ===== */
.si-badge.unread { position: relative; }
.si-badge.unread::after {
  content: ''; position: absolute; top: -2px; right: -2px; width: 8px; height: 8px;
  background: var(--red); border-radius: 50%; box-shadow: 0 0 0 2px var(--bg-card);
  animation: unreadPulse 2s ease-in-out infinite;
}
@keyframes unreadPulse { 0%,100% { box-shadow: 0 0 0 2px var(--bg-card); } 50% { box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 6px rgba(220,38,38,.15); } }

/* ===== SIDEBAR NOTIFICATION BANNER ===== */
.sidebar-notification {
  margin: 0 16px 16px; padding: 10px 14px; border-radius: var(--radius-xs);
  background: var(--red-light); border: 1px solid rgba(220,38,38,.2);
  color: var(--red); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 8px; animation: slideDown .3s ease-out;
}
[data-theme="dark"] .sidebar-notification { background: #450a0a; color: #f87171; }

/* ===== STATUS BADGES WITH ICONS ===== */
.status-draft::before { content: '\270F '; }
.status-submitted::before { content: '\2713 '; }
.status-revision_requested::before { content: '\26A0 '; }
.status-not-requesting::before { content: '\2139 '; }

/* ===== ENHANCED EMPTY STATES ===== */
.empty-state { text-align: center; padding: 40px 24px; }
.empty-state-icon { font-size: 40px; margin-bottom: 12px; opacity: .4; }
.empty-state p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }

/* ===== TEXTAREA TOOLS (paste, expand, word count) ===== */
.ta-tools { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.ta-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 14px;
  border: 1.5px solid var(--border); background: var(--bg-card); color: var(--text-muted);
  border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: var(--transition); white-space: nowrap;
}
.ta-btn:hover { border-color: var(--border-hover); color: var(--text); background: var(--bg-subtle); }
.ta-btn-paste:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-light); }
.ta-wordcount { font-size: 12px; color: var(--text-muted); margin-left: auto; }

/* ===== FILE LIST ===== */
.file-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-xs);
  margin-bottom: 8px; transition: var(--transition);
}
.file-item:hover { box-shadow: var(--shadow); }
.file-icon { font-size: 18px; flex-shrink: 0; }
.file-name { font-size: 14px; font-weight: 600; color: var(--text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.file-remove {
  background: none; border: 1px solid var(--border); color: var(--text-muted);
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
  flex-shrink: 0; line-height: 1;
}
.file-remove:hover { color: var(--red); border-color: var(--red); background: var(--red-light); }

/* ===== PROGRAM BLOCKS ===== */
.program-block {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; margin-bottom: 16px; border-left: 4px solid var(--orange);
}
.program-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.program-header h3 { font-size: 16px; font-weight: 700; color: var(--text); }
.btn-remove {
  background: none; border: 1px solid var(--border); color: var(--text-muted);
  padding: 4px 12px; border-radius: var(--radius-xs); font-size: 13px;
  cursor: pointer; font-family: inherit; font-weight: 600; transition: var(--transition);
}
.btn-remove:hover { color: var(--red); border-color: var(--red); background: var(--red-light); }

/* ===== CHECKBOX ===== */
.checkbox-option {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  font-size: 15px; line-height: 1.6; color: var(--text-secondary);
}
.checkbox-option input[type="checkbox"] { accent-color: var(--orange); width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; }

/* ===== VALIDATION ERRORS ===== */
.validation-errors {
  background: var(--red-light); border: 1px solid var(--red); border-radius: var(--radius-sm);
  padding: 16px 20px; color: var(--red); font-size: 14px; line-height: 1.6;
}
.validation-errors strong { display: block; margin-bottom: 8px; font-size: 15px; }
.validation-errors ul { margin: 0; padding-left: 20px; }
.validation-errors li { margin-bottom: 4px; }
[data-theme="dark"] .validation-errors { background: #450a0a; }

/* ===== SUBMIT INFO ===== */
.submit-info { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 14px 18px; margin-bottom: 16px; }
.submit-info p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ===== PRINT ===== */
@media print {
  body { font-size: 11pt; background: white; color: #111; }
  .header, .save-bar, .wizard-bar, .wizard-nav, .wiz-btn, .next-info, .theme-toggle,
  .sidebar, .sidebar-toggle, .sidebar-overlay, .intro-banner, .bookmark-bar,
  .btn, .comment-form, .paste-btn, .upload-zone, .ta-tools, .footer { display: none !important; }
  .card, .detail-section, .program-card, .budget-item { box-shadow: none; border: 1px solid #ccc; page-break-inside: avoid; background: white; }
  .card-body { padding: 16px; }
  .form-section { page-break-inside: avoid; margin-bottom: 16px; }
  .section-header-bar::after { display: none; }
  .section-header-bar.collapsed + .card { display: block !important; }
  .form-input, .form-select, .form-textarea { border: 1px solid #ccc; background: white; }
  .status { border: 1px solid #ccc; }
  a { color: #111; text-decoration: none; }
  .main-content { padding: 0; max-width: 100%; }
  .app-layout { display: block; }
  h1, h2, h3 { color: #111; }
  @page { margin: 0.75in; }
}
