:root {
  --cypress: #1d5742;
  --cypress-dark: #133b2c;
  --cypress-light: #2b7a5d;
  --cypress-soft: #e6f4ee;
  --cypress-border: #b8dacb;
  --coral: #d95d39;
  --coral-soft: #fdf0eb;
  --amber: #d4891c;
  --amber-soft: #fef6e6;
  --indigo: #4b47a8;
  --indigo-soft: #efeffb;
  --teal: #0e7c86;
  --teal-soft: #e6f6f8;
  --stone: #f6f5f1;
  --stone-deep: #ece9e1;
  --surface: #ffffff;
  --ink: #18221d;
  --muted: #56655d;
  --border: #dfe4e1;
  --danger: #c03939;
  --danger-soft: #fdeeee;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 3px 16px rgba(19, 59, 44, 0.06);
  --shadow-hover: 0 12px 30px rgba(19, 59, 44, 0.12);
  --shadow-lg: 0 22px 54px rgba(13, 33, 24, 0.22);
  --font-sans: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Frank Ruhl Libre', Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cypress); text-decoration: none; }
a:hover { text-decoration: underline; }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(29, 87, 66, 0.1);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 70px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  background: #e6eae6;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(29, 87, 66, 0.12);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-title { font-family: var(--font-serif); font-weight: 700; font-size: 1.18rem; color: var(--cypress-dark); }
.brand-sub { font-size: 0.77rem; color: var(--muted); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.nav-link {
  background: transparent;
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s ease;
}
.nav-link:hover { background: var(--stone-deep); color: var(--ink); }
.nav-link.active {
  background: linear-gradient(135deg, var(--cypress) 0%, var(--teal) 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(29, 87, 66, 0.22);
}
.nav-link.nav-personal:not(.active) { color: var(--indigo); background: var(--indigo-soft); }
.nav-link.nav-board:not(.active) { color: var(--cypress); background: var(--cypress-soft); }
.nav-link.nav-admin:not(.active) { color: #9c5b08; background: var(--amber-soft); }

.auth-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  font-size: 0.87rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.role-guest { background: #eef2f0; color: #485850; }
.role-member { background: #e3f0fd; color: #19568d; }
.role-board { background: var(--cypress-soft); color: var(--cypress-dark); }
.role-superadmin { background: var(--amber-soft); color: #8c5206; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.16s ease;
  text-decoration: none !important;
}
.btn-sm { padding: 7px 14px; font-size: 0.86rem; }
.btn-xs { padding: 5px 10px; font-size: 0.8rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--cypress) 0%, var(--cypress-light) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(29, 87, 66, 0.2);
}
.btn-primary:hover { filter: brightness(0.95); transform: translateY(-1px); }
.btn-outline { background: var(--surface); color: var(--cypress-dark); border-color: var(--cypress-border); }
.btn-outline:hover { background: var(--cypress-soft); border-color: var(--cypress); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--stone-deep); color: var(--ink); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: #f4c6c6; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-hero-light { background: #fff; color: var(--cypress-dark); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16); }
.btn-hero-light:hover { background: #fef8ee; transform: translateY(-1px); }
.btn-hero-glass { background: rgba(255, 255, 255, 0.15); color: #fff; border-color: rgba(255, 255, 255, 0.34); }
.btn-hero-glass:hover { background: rgba(255, 255, 255, 0.25); }

.btn-google {
  width: 100%;
  background: #fff;
  color: #202124;
  border: 1px solid #dadce0;
  padding: 10px 16px;
  font-weight: 600;
}
.btn-google:hover { background: #f8f9fa; border-color: #c2c6ca; }

/* Vibrant Modern Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg, #13392c 0%, #1d5742 42%, #14636b 78%, #2a4770 100%);
  color: #fff;
  padding: 40px 0 36px;
  border-bottom: 4px solid var(--amber);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.32;
}
.hero-glow-1 { width: 360px; height: 360px; background: #f3a847; top: -140px; left: -60px; }
.hero-glow-2 { width: 320px; height: 320px; background: #e06d53; bottom: -140px; right: 12%; }

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 4px 13px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffe2ad;
  margin-bottom: 10px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin: 0 0 10px;
  line-height: 1.15;
}

.hero-lead {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.01rem;
  max-width: 610px;
}

.hero-cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.kpi-mini {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 4px solid #fff;
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}
.kpi-mini.kpi-teal { border-right-color: #5eead4; }
.kpi-mini.kpi-amber { border-right-color: #fbbf24; }
.kpi-mini.kpi-coral { border-right-color: #fb923c; }
.kpi-mini.kpi-violet { border-right-color: #c4b5fd; }
.kpi-num { font-size: 1.42rem; font-weight: 800; line-height: 1.2; }
.kpi-lbl { font-size: 0.8rem; color: rgba(255, 255, 255, 0.85); margin-top: 4px; }

/* Panels */
.tab-panel { display: none; padding: 28px 0 60px; }
.tab-panel.active { display: block; }

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.search-box {
  position: relative;
  flex: 1 1 320px;
  max-width: 520px;
}
.search-box input {
  width: 100%;
  padding: 11px 42px 11px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.search-box input:focus { outline: 2px solid var(--cypress-border); border-color: var(--cypress); }
.icon-search {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  color: var(--muted);
  pointer-events: none;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.select-input, .text-input, .textarea-input {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--ink);
}
.text-input, .textarea-input { width: 100%; }
.textarea-input { min-height: 92px; resize: vertical; }
.select-input:focus, .text-input:focus, .textarea-input:focus {
  outline: 2px solid var(--cypress-border);
  border-color: var(--cypress);
}

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}
.toggle-btn {
  border: none;
  background: transparent;
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
}
.toggle-btn.active { background: var(--cypress-soft); color: var(--cypress-dark); font-weight: 700; }

/* Colorful Category Pills with Icons */
.category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.86rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.16s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}
.pill svg { width: 15px; height: 15px; flex-shrink: 0; }
.pill:hover { transform: translateY(-1px); border-color: var(--cat-color, var(--cypress)); }
.pill.active {
  background: var(--cat-color, var(--cypress));
  border-color: var(--cat-color, var(--cypress));
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.pill-count { opacity: 0.78; font-size: 0.78rem; }

.results-meta {
  font-size: 0.89rem;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* Category Tag with Icon */
.cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  background: var(--cat-bg, var(--cypress-soft));
  color: var(--cat-color, var(--cypress-dark));
  border: 1px solid var(--cat-border, var(--cypress-border));
  white-space: nowrap;
}
.cat-tag svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Org Logo Avatar */
.org-logo-wrap {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
}
.org-logo-wrap.sm { width: 38px; height: 38px; border-radius: 10px; }
.org-logo-wrap.lg { width: 68px; height: 68px; border-radius: 16px; }
.org-logo-img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  display: block;
}
.org-logo-img.cover { width: 100%; height: 100%; object-fit: cover; }
.org-logo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--cat-color, var(--cypress)) 0%, var(--cat-dark, var(--cypress-dark)) 100%);
}
.org-logo-wrap.sm .org-logo-fallback { font-size: 0.78rem; }
.org-logo-wrap.lg .org-logo-fallback { font-size: 1.35rem; }

/* Organizations Grid */
.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 18px;
}

.org-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--cat-color, var(--cypress));
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 11px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.org-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--cat-border, var(--cypress-border));
}

.org-card-header {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.org-card-titles {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.org-name {
  margin: 0;
  font-size: 1.07rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.28;
}

.org-desc {
  margin: 0;
  font-size: 0.89rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.org-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--stone-deep);
}

.maps-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #1f5c45;
  font-weight: 500;
}
.maps-link:hover { color: var(--coral); text-decoration: underline; }
.maps-link svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--coral); }

/* Social Platform Pills */
.social-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--stone);
  color: var(--ink);
  transition: all 0.15s ease;
  text-decoration: none !important;
}
.social-chip svg { width: 14px; height: 14px; flex-shrink: 0; }
.social-chip:hover { transform: translateY(-1px); }
.social-chip.web { background: #e8f4ef; color: #19533e; border-color: #bfe0d2; }
.social-chip.fb { background: #e9f1fe; color: #1877f2; border-color: #c2dafc; }
.social-chip.ig { background: #fcebf3; color: #c13584; border-color: #f6c2db; }
.social-chip.tt { background: #eef1f3; color: #111827; border-color: #d1d5db; }
.social-chip.yt { background: #fdecec; color: #d92626; border-color: #f8c4c4; }
.social-chip.gs { background: #fef6e6; color: #9c5b08; border-color: #efd199; }

.org-board-strip {
  background: var(--cypress-soft);
  border: 1px solid var(--cypress-border);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  font-size: 0.82rem;
  color: var(--cypress-dark);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Data Tables */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  box-shadow: var(--shadow);
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.89rem;
}
table.data-table th, table.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: right;
  vertical-align: middle;
}
table.data-table th {
  background: var(--stone);
  font-weight: 700;
  color: var(--cypress-dark);
  white-space: nowrap;
}
table.data-table tbody tr:hover { background: #f9fbfa; }

/* Cards & Sections */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--cypress-dark);
  margin: 0;
}

/* About Page */
.about-hero {
  background: linear-gradient(135deg, #164433 0%, #1d5d4a 55%, #274f72 100%);
  color: #fff;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  box-shadow: var(--shadow-hover);
}
.about-hero-logo {
  width: 112px;
  height: 112px;
  border-radius: 18px;
  object-fit: contain;
  background: #e6eae6;
  padding: 6px;
  flex-shrink: 0;
}
.about-hero h2 { font-family: var(--font-serif); font-size: 2rem; margin: 0 0 8px; }
.about-hero p { margin: 0; color: rgba(255, 255, 255, 0.9); max-width: 720px; font-size: 1.02rem; }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--pillar-color, var(--cypress));
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.pillar-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: var(--pillar-bg, var(--cypress-soft));
  color: var(--pillar-color, var(--cypress));
}
.pillar-card h3 { margin: 0 0 6px; font-size: 1.06rem; color: var(--ink); }
.pillar-card p { margin: 0; font-size: 0.9rem; color: var(--muted); }

.board-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.member-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
}
.member-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.08rem;
  color: #fff;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--cypress) 0%, var(--teal) 100%);
}
.member-card.chair .member-avatar {
  background: linear-gradient(135deg, var(--amber) 0%, var(--coral) 100%);
}
.member-card h4 { margin: 0 0 2px; font-size: 1.03rem; color: var(--ink); }
.member-card .org-sub { font-size: 0.86rem; color: var(--muted); }

.advisor-banner {
  background: linear-gradient(135deg, var(--amber-soft) 0%, #fff 65%, var(--cypress-soft) 100%);
  border: 1px solid #ecd5ab;
  border-right: 5px solid var(--amber);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

/* Stats Grid & Custom Charts */
.stats-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--cypress);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.stat-card.accent { border-top-color: var(--amber); }
.stat-card.coral { border-top-color: var(--coral); }
.stat-card.indigo { border-top-color: var(--indigo); }
.stat-card .val { font-size: 1.85rem; font-weight: 800; color: var(--cypress-dark); line-height: 1.15; }
.stat-card .lbl { font-size: 0.92rem; font-weight: 600; margin-top: 5px; }
.stat-card .sub { font-size: 0.8rem; color: var(--muted); margin-top: 3px; }

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
}

.chart-card h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--cypress-dark); }
.chart-subtitle { font-size: 0.83rem; color: var(--muted); margin-bottom: 16px; }

.bar-list { display: flex; flex-direction: column; gap: 11px; }
.bar-row { display: flex; flex-direction: column; gap: 4px; }
.bar-row-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.87rem; gap: 8px; }
.bar-track { height: 11px; background: var(--stone-deep); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--bar-color, var(--cypress)); border-radius: 999px; transition: width 0.4s ease; }

.trend-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 16px;
  height: 205px;
  padding: 20px 10px 6px;
  border-bottom: 1px solid var(--border);
}
.trend-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 6px;
}
.trend-val { font-size: 0.86rem; font-weight: 700; color: var(--cypress-dark); text-align: center; }
.trend-pillar {
  width: 60px;
  max-width: 100%;
  background: linear-gradient(180deg, var(--cypress-light) 0%, var(--cypress-dark) 100%);
  border-radius: 10px 10px 0 0;
}
.trend-pillar.amber { background: linear-gradient(180deg, #f0ad4e 0%, var(--coral) 100%); }
.trend-lbl { font-size: 0.86rem; font-weight: 600; color: var(--muted); }

/* Personal Area & Surveys */
.personal-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 22px;
  align-items: start;
}

.survey-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-right: 4px solid var(--indigo);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.survey-q { margin: 14px 0; padding: 12px 14px; background: var(--stone); border-radius: var(--radius-sm); }
.survey-q-title { font-weight: 700; margin-bottom: 8px; font-size: 0.94rem; }
.survey-opt { display: flex; align-items: center; gap: 8px; padding: 5px 0; cursor: pointer; font-size: 0.91rem; }

.comment-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 10px;
}
.comment-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.84rem;
}

/* Board Workspace Subtabs */
.subtabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.subtab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.subtab-btn.active { color: var(--cypress-dark); border-bottom-color: var(--cypress); }

.doc-list { display: flex; flex-direction: column; gap: 12px; }
.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.doc-card-main { flex: 1 1 380px; }
.doc-card h4 { margin: 0 0 5px; font-size: 1.02rem; color: var(--cypress-dark); }
.doc-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.doc-reader {
  background: var(--stone);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  white-space: pre-wrap;
  max-height: 55vh;
  overflow-y: auto;
  font-size: 0.94rem;
  line-height: 1.72;
}

/* Private Board Detail Box */
.private-panel {
  background: var(--cypress-soft);
  border: 1px solid var(--cypress-border);
  border-radius: var(--radius);
  padding: 16px;
  margin: 14px 0;
}
.private-panel h4 { margin: 0 0 10px; color: var(--cypress-dark); font-size: 0.98rem; }
.kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px 16px;
  font-size: 0.89rem;
}
.kv-item .k { font-size: 0.78rem; color: var(--muted); display: block; }
.kv-item .v { font-weight: 600; word-break: break-word; }

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 14px;
}
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.86rem; font-weight: 600; color: var(--ink); }

.divider-or {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  margin: 16px 0;
}
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.notice-box {
  background: var(--amber-soft);
  border: 1px solid #eed2a2;
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-size: 0.89rem;
  color: #6c4308;
  margin-bottom: 14px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(13, 33, 24, 0.56);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-card {
  background: var(--surface);
  border-radius: 18px;
  width: 100%;
  max-width: 740px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-card.narrow { max-width: 460px; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--stone);
}
.modal-header h3 { margin: 0; font-size: 1.18rem; color: var(--cypress-dark); }
.modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.modal-body {
  padding: 20px 22px;
  overflow-y: auto;
}

/* Toast */
.toast-stack {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--cypress-dark);
  color: #fff;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
}
.toast.error { background: var(--danger); }

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; }

@media (max-width: 900px) {
  .hero-grid, .personal-grid { grid-template-columns: 1fr; }
  .charts-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
