:root {
  --maroon: #790d10;
  --maroon-2: #5b0709;
  --maroon-3: #3a0305;
  --rose: #c8575b;
  --gold: #d89513;
  --gold-2: #f6c24a;
  --cream: #fff8ee;
  --cream-2: #f7eddf;
  --paper: #ffffff;
  --ink: #1f1715;
  --muted: #7f716a;
  --line: #eadcc9;
  --shadow: 0 22px 70px rgba(72, 14, 8, .14);
  --shadow-soft: 0 12px 36px rgba(72, 14, 8, .10);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(246, 194, 74, .15), transparent 32rem),
    linear-gradient(180deg, #fffaf2 0%, #ffffff 42%, #fff8ee 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .78rem;
  text-decoration: none;
  color: white;
  min-width: 0;
}
.brand img {
  width: 138px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.2));
}
.brand.small img { width: 118px; height: 46px; }
.brand.footer-logo img { width: 120px; height: 48px; }
.brand-text {
  display: none;
  font-family: Georgia, serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.brand-text span { color: var(--gold-2); }

.site-nav {
  height: 84px;
  background: linear-gradient(135deg, var(--maroon-3), var(--maroon), var(--maroon-2));
  color: white;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 14px 32px rgba(53, 0, 0, .22);
}
.nav-inner {
  width: min(1420px, calc(100% - 64px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-weight: 780;
  font-size: .98rem;
}
.nav-links a {
  text-decoration: none;
  opacity: .96;
  position: relative;
}
.nav-links a.active,
.nav-links a:hover { color: var(--gold-2); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 2px;
  background: var(--gold-2);
  border-radius: 999px;
}
.outline-action {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.3rem;
  border: 2px solid var(--gold);
  border-radius: .55rem;
  color: white !important;
  background: rgba(255,255,255,.02);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.outline-action:hover { background: rgba(216, 149, 19, .12); }

main { width: 100%; }
.section-pad { padding: 72px 24px; }
.compact-pad { padding-top: 32px; }
.kicker {
  margin: 0 0 .85rem;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .84rem;
}
.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.section-heading.centered {
  max-width: 840px;
  text-align: center;
  margin: 0 auto 1.8rem;
}
.section-heading.split {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 1.8rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}
.section-heading.split h2 { max-width: 520px; }

.hero-landing {
  position: relative;
  min-height: 630px;
  color: white;
  overflow: hidden;
  background-image: radial-gradient(circle at 18% 18%, rgba(255,199,44,.20), transparent 28%), linear-gradient(135deg, #5b0508 0%, #7c0b10 48%, #2b0204 100%);
  background-size: cover;
  background-position: center 38%;
  isolation: isolate;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(58,3,5,.94) 0%, rgba(91,7,9,.73) 35%, rgba(91,7,9,.25) 67%, rgba(58,3,5,.48) 100%),
    linear-gradient(0deg, rgba(58,3,5,.6), rgba(58,3,5,.1));
  z-index: -1;
}
.hero-content {
  width: min(1420px, calc(100% - 64px));
  margin: 0 auto;
  padding-top: 86px;
}
.hero-content h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.3rem, 7vw, 5.9rem);
  line-height: .94;
  letter-spacing: -.06em;
  max-width: 780px;
  text-shadow: 0 18px 50px rgba(0,0,0,.3);
}
.hero-content h1 span {
  color: var(--gold-2);
}
.hero-content p {
  max-width: 540px;
  margin: 1.6rem 0 0;
  font-size: 1.22rem;
  line-height: 1.55;
  color: rgba(255,255,255,.92);
}
.hero-actions {
  display: flex;
  gap: 1.15rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 46px;
  padding: .92rem 1.35rem;
  border: 0;
  border-radius: .62rem;
  cursor: pointer;
  text-decoration: none;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  color: white;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-2));
  box-shadow: 0 14px 26px rgba(91,7,9,.25), inset 0 1px 0 rgba(255,255,255,.12);
}
.btn.light {
  color: var(--maroon);
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(216,149,19,.45);
  box-shadow: 0 14px 26px rgba(91,7,9,.12);
}
.btn.secondary {
  color: var(--maroon);
  background: #fff3df;
  border: 1px solid rgba(216,149,19,.35);
}
.small-btn { min-height: 38px; padding: .65rem 1rem; font-size: .88rem; }

.value-strip {
  position: absolute;
  left: 50%;
  bottom: -54px;
  transform: translateX(-50%);
  width: min(980px, calc(100% - 48px));
  min-height: 116px;
  border-radius: 20px;
  background: rgba(255, 250, 242, .96);
  color: var(--ink);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.8);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  backdrop-filter: blur(18px);
}
.value-strip > div {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.6rem;
}
.value-strip > div:not(:last-child) { border-right: 1px solid var(--line); }
.value-strip .icon {
  width: 58px;
  height: 58px;
  padding: 15px;
  color: var(--gold);
  background: linear-gradient(135deg, var(--maroon), var(--maroon-2));
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(91,7,9,.18);
}
.value-strip strong { display: block; margin-bottom: .26rem; }
.value-strip span { display: block; color: var(--muted); font-size: .92rem; line-height: 1.35; }

.mission-section { padding-top: 130px; }
.mission-card {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  background: linear-gradient(180deg, #fff, #fff9f0);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-soft);
  font-size: 1.05rem;
  line-height: 1.75;
  color: #3c302d;
}
.mission-card p { margin: 0; }
.mission-card p + p { margin-top: 1rem; }

.three-pillars {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.three-pillars article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.pillar-icon {
  width: 86px;
  height: 86px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, var(--rose), var(--maroon));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 18px 30px rgba(121,13,16,.18);
}
.pillar-icon .icon { width: 42px; height: 42px; }
.three-pillars h3 {
  margin: .35rem 0 .8rem;
  font-family: Georgia, serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--maroon);
}
.three-pillars p { color: var(--muted); line-height: 1.6; }
.mini-link {
  display: inline-block;
  color: white;
  background: var(--maroon);
  padding: .65rem 1rem;
  border-radius: .48rem;
  text-decoration: none;
  font-weight: 800;
  margin-top: .5rem;
}

.event-preview-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.event-preview {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.event-image {
  min-height: 118px;
  background:
    linear-gradient(135deg, rgba(91,7,9,.82), rgba(216,149,19,.12)),
    linear-gradient(45deg, #4b0809, #bc6765);
  position: relative;
}
.type-education .event-image { background: linear-gradient(135deg, rgba(91,7,9,.82), rgba(92, 155, 94, .42)), linear-gradient(45deg, #4b0809, #7cab82); }
.type-blood_drive .event-image { background: linear-gradient(135deg, rgba(91,7,9,.86), rgba(210, 76, 85, .44)), linear-gradient(45deg, #4b0809, #d76870); }
.type-water_drop .event-image { background: linear-gradient(135deg, rgba(91,7,9,.86), rgba(99, 121, 219, .44)), linear-gradient(45deg, #4b0809, #8e99dc); }
.date-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 62px;
  height: 72px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--maroon), var(--maroon-2));
  border: 1px solid rgba(255,255,255,.3);
  color: white;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(0,0,0,.22);
}
.date-badge span {
  display: block;
  color: var(--gold-2);
  font-family: Inter, system-ui, sans-serif;
  font-size: .72rem;
  letter-spacing: .1em;
}
.event-preview-body { padding: 1rem 1.15rem 1.15rem; }
.event-preview h3 { margin: 0 0 .55rem; font-family: Georgia, serif; font-size: 1.25rem; }
.event-preview p {
  margin: 0 0 1rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .92rem;
}
.event-preview p span { display: inline-flex; align-items: center; gap: .35rem; }
.event-preview p .icon { color: var(--rose); }
.event-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: .28rem .62rem;
  border-radius: .45rem;
  color: var(--maroon);
  background: #fff0f0;
  font-weight: 800;
  font-size: .78rem;
}
.event-preview-footer a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--maroon);
  text-decoration: none;
  font-weight: 850;
}
.testimonial {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto 48px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.testimonial blockquote {
  margin: 0 auto 1.4rem;
  font-family: Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.28;
}
.member-name { font-weight: 900; }
.member-name span { display: block; margin-top: .3rem; color: var(--muted); font-weight: 500; }
.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr .8fr .8fr;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem max(32px, calc((100% - 1180px) / 2));
  color: white;
  background: radial-gradient(circle at top, rgba(216,149,19,.16), transparent 40%), linear-gradient(135deg, var(--maroon-3), var(--maroon));
}
.site-footer strong { display: block; margin-bottom: .65rem; }
.site-footer a { display: block; text-decoration: none; color: rgba(255,255,255,.78); margin: .35rem 0; }

.auth-wrap {
  min-height: calc(100vh - 84px);
  padding: 4.5rem 2rem;
  display: grid;
  grid-template-columns: minmax(300px, 540px) minmax(320px, 520px);
  gap: 1.5rem;
  align-items: stretch;
  justify-content: center;
}
.auth-wrap.single { grid-template-columns: minmax(320px, 540px); }
.auth-visual,
.auth-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.3);
}
.auth-visual {
  color: white;
  padding: 2.5rem;
  background:
    linear-gradient(135deg, rgba(58,3,5,.92), rgba(121,13,16,.68)),
    linear-gradient(135deg, #5b0508 0%, #7c0b10 55%, #2b0204 100%) center/cover;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 520px;
}
.auth-visual h1 {
  font-family: Georgia, serif;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: .94;
  margin: 2rem 0 .85rem;
  letter-spacing: -.05em;
}
.auth-visual p { color: rgba(255,255,255,.88); line-height: 1.6; max-width: 430px; }
.auth-card {
  background: rgba(255,255,255,.94);
  padding: 2.5rem;
  align-self: center;
}
.auth-card h1,
.auth-card h2 {
  margin: 0 0 1rem;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}
.auth-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem;
  padding: .35rem;
  margin-top: 1rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
}
.auth-switch a {
  padding: .68rem 1.1rem;
  border-radius: 999px;
  color: white;
  text-decoration: none;
  font-weight: 900;
}
.auth-switch a.active { background: white; color: var(--maroon); }
.code-help {
  display: grid;
  gap: .5rem;
  margin-top: 1rem;
  font-size: .88rem;
  color: rgba(255,255,255,.86);
}
.nice-form {
  display: grid;
  gap: 1rem;
}
.nice-form label {
  display: grid;
  gap: .45rem;
  color: #4f3a35;
  font-weight: 820;
  font-size: .92rem;
}
.nice-form label span { color: var(--rose); }
input, select, textarea {
  width: 100%;
  border: 1px solid #e6d9cc;
  border-radius: .72rem;
  background: white;
  color: var(--ink);
  padding: .9rem .95rem;
  outline: none;
  transition: border .18s ease, box-shadow .18s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(246,194,74,.2);
}
textarea { resize: vertical; min-height: 120px; }
.fine-print { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.fine-print a { color: var(--maroon); font-weight: 900; }

.app-page {
  background: #fbf6ee;
  min-height: 100vh;
}
.app-topbar {
  height: 82px;
  background: linear-gradient(135deg, var(--maroon-3), var(--maroon), var(--maroon-2));
  color: white;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 14px 36px rgba(47,3,4,.2);
}
.app-topbar-inner {
  height: 100%;
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.app-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}
.app-nav a {
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  color: white;
  opacity: .88;
  text-decoration: none;
  font-weight: 850;
  border-radius: .85rem;
  padding: .78rem 1rem;
  position: relative;
}
.app-nav a.active {
  opacity: 1;
  color: var(--gold-2);
  background: rgba(255,255,255,.06);
}
.app-nav a.active::after {
  content: "";
  height: 2px;
  left: 1rem;
  right: 1rem;
  bottom: .35rem;
  position: absolute;
  background: var(--gold-2);
  border-radius: 999px;
}
.profile-pill {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: white;
  font-weight: 900;
}
.profile-pill a { color: rgba(255,255,255,.78); display: inline-flex; }
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f6c24a, #c8575b);
  color: white;
  display: inline-grid;
  place-items: center;
  font-weight: 950;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35);
}
.big-avatar { width: 92px; height: 92px; font-size: 2.2rem; }
.app-layout {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 82px);
  background: rgba(255,255,255,.72);
  border-left: 1px solid rgba(234,220,201,.72);
  border-right: 1px solid rgba(234,220,201,.72);
}
.sidebar {
  padding: 2rem 1rem;
  background: linear-gradient(180deg, #fff8ef, #fffdf9);
  border-right: 1px solid var(--line);
}
.side-nav {
  display: grid;
  gap: .6rem;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1rem;
  border-radius: .72rem;
  text-decoration: none;
  color: #594741;
  font-weight: 850;
}
.side-nav a.active {
  color: var(--maroon);
  background: linear-gradient(135deg, #fff3df, #fff8ef);
  box-shadow: 0 10px 22px rgba(121,13,16,.08);
}
.side-card {
  margin-bottom: 1.5rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff8ef, #fff3df);
  color: var(--maroon);
}
.impact-mini .icon { width: 28px; height: 28px; margin-bottom: .6rem; color: var(--gold); }
.impact-mini strong { display: block; margin-bottom: .35rem; }
.impact-mini span { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.workspace {
  padding: 2.4rem;
  background: linear-gradient(180deg, #fff, #fffdf9);
}
.workspace-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.workspace-head h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.subtle { color: var(--muted); }
.toolbar {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.round-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: white;
  color: var(--maroon);
  box-shadow: var(--shadow-soft);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.segmented {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  background: #f8f2eb;
  border-radius: .85rem;
  padding: .35rem;
  border: 1px solid var(--line);
}
.segmented button {
  border: 0;
  background: transparent;
  padding: .7rem 1.1rem;
  border-radius: .6rem;
  font-weight: 900;
  color: #4d3e38;
}
.segmented button.active {
  background: var(--maroon);
  color: white;
  box-shadow: 0 10px 22px rgba(121,13,16,.16);
}
.segmented button:disabled { opacity: .55; cursor: not-allowed; }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.day-name {
  padding: .9rem .5rem;
  text-align: center;
  background: #fffaf2;
  color: #6c5952;
  border-bottom: 1px solid var(--line);
  font-size: .75rem;
  letter-spacing: .08em;
  font-weight: 950;
}
.day {
  min-height: 132px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: .85rem;
  background: white;
}
.day:nth-child(7n + 7) { border-right: 0; }
.day.muted-day { background: #fcfaf7; color: #b2a59d; }
.date-num {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .5rem;
  color: #4e403b;
  font-weight: 900;
}
.date-num.today span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: white;
  background: var(--maroon);
  box-shadow: 0 8px 16px rgba(121,13,16,.2);
}
.today-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.event-chip {
  width: 100%;
  border: 0;
  text-align: left;
  padding: .62rem .65rem;
  border-radius: .56rem;
  margin-bottom: .45rem;
  cursor: pointer;
  background: #ffe9c0;
  color: #57360a;
  font-weight: 900;
  font-size: .78rem;
  line-height: 1.25;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.04);
}
.event-chip small {
  display: block;
  margin-top: .25rem;
  opacity: .72;
  font-weight: 850;
}
.event-chip.type-blood_drive { background: #ffd9dd; color: #74151d; }
.event-chip.type-education { background: #d9f1d6; color: #235f25; }
.event-chip.type-water_drop, .event-chip.type-community_outreach { background: #dddfff; color: #373e88; }
.event-chip.type-health { background: #ffe6b8; color: #724700; }
.event-chip.signed { outline: 2px solid rgba(121,13,16,.18); }

.event-dialog {
  width: min(760px, calc(100% - 32px));
  border: 0;
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 34px 100px rgba(0,0,0,.32);
}
.event-dialog::backdrop {
  background: rgba(26,21,20,.58);
  backdrop-filter: blur(3px);
}
.event-modal {
  display: grid;
  grid-template-columns: 310px 1fr;
  min-height: 420px;
  background: white;
}
.event-modal-visual {
  color: white;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(135deg, rgba(91,7,9,.92), rgba(121,13,16,.7)),
    linear-gradient(135deg, #5b0508 0%, #7c0b10 55%, #2b0204 100%) center/cover;
}
.event-modal-visual .circle-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.55);
  margin-bottom: 1rem;
}
.event-modal-visual h2 {
  font-family: Georgia, serif;
  font-size: 2rem;
  margin: 0 0 .8rem;
}
.event-modal-meta { display: grid; gap: .65rem; color: rgba(255,255,255,.9); font-size: .93rem; }
.event-modal-meta div { display: flex; align-items: center; gap: .55rem; }
.event-modal-body { padding: 2rem; position: relative; }
.close-x {
  position: absolute;
  right: 1.4rem;
  top: 1.2rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff3f3;
  color: var(--maroon);
  cursor: pointer;
  font-size: 1.5rem;
}
.event-modal-body h3 { margin: 0 0 1rem; font-family: Georgia, serif; font-size: 1.6rem; }
.info-list { display: grid; gap: 1rem; margin: 1.2rem 0; }
.info-list div { display: grid; grid-template-columns: 26px 1fr; gap: .75rem; color: #55443e; }
.info-list .icon { color: var(--rose); }
.info-list strong { display: block; color: var(--ink); margin-bottom: .18rem; }
.progress-wrap { margin: 1.2rem 0; }
.progress-label { display: flex; justify-content: space-between; color: #5c4943; font-weight: 850; font-size: .9rem; margin-bottom: .45rem; }
.progress-bar { height: 10px; background: #f0e6dc; border-radius: 999px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--maroon), var(--rose)); border-radius: inherit; }
.modal-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.modal-note { color: var(--muted); font-size: .86rem; margin-top: .8rem; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.stat-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
}
.stat-card .icon { width: 34px; height: 34px; padding: 8px; border-radius: 50%; margin-bottom: .8rem; }
.stat-card span { display: block; color: var(--muted); font-weight: 800; font-size: .9rem; }
.stat-card strong { display: block; margin-top: .25rem; font-family: Georgia, serif; font-size: 2.25rem; }
.stat-card.warm .icon { background: #fff0d2; color: #a36500; }
.stat-card.rose .icon { background: #ffe1e6; color: #b21f33; }
.stat-card.green .icon { background: #dff6df; color: #27822b; }
.stat-card.violet .icon { background: #e8e4ff; color: #6354c3; }
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr .9fr;
  gap: 1rem;
}
.panel,
.list-panel,
.profile-panel,
.event-form-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}
.panel { padding: 1.2rem; }
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: .9rem;
}
.panel h2 { margin: 0; font-family: Georgia, serif; }
.panel-head a,
.panel-head span { color: var(--maroon); font-weight: 900; text-decoration: none; font-size: .86rem; }
.compact-event,
.signup-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}
.compact-event:last-child,
.signup-row:last-child { border-bottom: 0; }
.compact-event h3,
.signup-row h3 { margin: 0 0 .28rem; font-size: 1rem; }
.compact-event p,
.signup-row p { margin: 0; color: var(--muted); font-size: .88rem; }
.date-card {
  width: 64px;
  height: 70px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 10px;
  color: white;
  background: linear-gradient(180deg, var(--maroon), var(--maroon-2));
  box-shadow: 0 12px 22px rgba(121,13,16,.16);
}
.date-card span { color: var(--gold-2); font-weight: 900; font-size: .72rem; letter-spacing: .08em; }
.date-card strong { font-family: Georgia, serif; font-size: 1.55rem; }
.date-card.mini { width: 50px; height: 56px; }
.date-card.mini strong { font-size: 1.15rem; }
.template-row,
.summary-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}
.template-row:last-child,
.summary-row:last-child { border-bottom: 0; }
.template-row .icon { color: var(--rose); }
.template-row span,
.summary-row span { margin-left: auto; color: var(--muted); }
.summary-row strong { font-size: 1.1rem; }
.event-form-card {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 1.5rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid .wide { grid-column: 1 / -1; }
.time-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.form-preview {
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.4rem;
  background: #fffdf9;
}
.preview-icon {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff0d2;
  color: var(--gold);
  margin-bottom: .8rem;
}
.preview-icon .icon { width: 46px; height: 46px; }
.form-preview h3 { margin: .5rem 0; font-family: Georgia, serif; }
.form-preview p { color: var(--muted); line-height: 1.55; }
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: .5rem;
}
.list-panel { padding: 1.2rem; }
.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state h2 { font-family: Georgia, serif; font-size: 2rem; margin: 0 0 .4rem; }
.profile-panel {
  max-width: 620px;
  margin: 2rem auto;
  padding: 3rem;
  text-align: center;
}
.profile-panel h1 { margin: .7rem 0 .3rem; font-family: Georgia, serif; font-size: 3rem; }
.profile-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 1.5rem; }

@media (max-width: 1100px) {
  .nav-links { gap: 1rem; }
  .value-strip { position: relative; transform: none; left: auto; bottom: auto; margin: 2rem auto -2rem; grid-template-columns: 1fr; }
  .value-strip > div:not(:last-child) { border-right: 0; border-bottom: 1px solid var(--line); }
  .mission-section { padding-top: 72px; }
  .three-pillars, .event-preview-grid, .dashboard-grid, .stat-grid { grid-template-columns: 1fr 1fr; }
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .event-form-card { grid-template-columns: 1fr; }
  .form-preview { display: none; }
}

@media (max-width: 760px) {
  .nav-inner, .hero-content { width: min(100% - 32px, 100%); }
  .site-nav { height: auto; padding: .8rem 0; }
  .nav-inner { flex-direction: column; align-items: start; }
  .nav-links { flex-wrap: wrap; font-size: .88rem; }
  .hero-landing { min-height: 620px; }
  .hero-content { padding-top: 54px; }
  .hero-actions { flex-direction: column; align-items: start; }
  .three-pillars, .event-preview-grid, .site-footer, .auth-wrap, .stat-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .section-heading.split { align-items: start; flex-direction: column; }
  .app-topbar { height: auto; padding: .7rem 0; }
  .app-topbar-inner { flex-wrap: wrap; }
  .app-nav { order: 3; overflow-x: auto; width: 100%; padding-bottom: .2rem; }
  .profile-pill span:not(.avatar) { display: none; }
  .workspace { padding: 1.2rem; }
  .workspace-head { flex-direction: column; }
  .toolbar { flex-wrap: wrap; }
  .calendar-grid { overflow-x: auto; display: grid; grid-template-columns: repeat(7, minmax(130px, 1fr)); }
  .event-modal { grid-template-columns: 1fr; }
  .event-modal-visual { min-height: 240px; }
  .form-grid, .time-grid, .compact-event, .signup-row { grid-template-columns: 1fr; }
}

/* --- v2.1 polish + requested fixes --- */
.brand {
  gap: .72rem;
}
.brand img {
  width: 64px;
  height: 52px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.22));
}
.brand.small img { width: 54px; height: 44px; }
.brand.footer-logo img { width: 58px; height: 48px; }
.brand-text {
  display: inline-block;
  color: #fff;
  font-size: 1.28rem;
  line-height: 1;
  white-space: nowrap;
}
.footer-logo .brand-text { color: #fff; }

.hero-landing {
  overflow: visible;
  min-height: 560px;
  margin-bottom: 86px;
}
.hero-landing.blank-hero {
  background-image:
    radial-gradient(circle at 78% 22%, rgba(246,194,74,.22), transparent 26rem),
    linear-gradient(110deg, rgba(58,3,5,.98), rgba(121,13,16,.82) 45%, rgba(58,3,5,.52)),
    linear-gradient(135deg, #5b0508 0%, #7c0b10 55%, #2b0204 100%);
}
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(58,3,5,.96) 0%, rgba(91,7,9,.78) 38%, rgba(91,7,9,.36) 74%, rgba(58,3,5,.56) 100%),
    radial-gradient(circle at 80% 30%, rgba(246,194,74,.18), transparent 32rem);
}
.value-strip {
  bottom: -68px;
  z-index: 5;
}
.mission-section { padding-top: 52px; }
.home-empty { grid-column: 1 / -1; }

.projects-hero {
  padding: 5rem 1rem 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(246,194,74,.18), transparent 28rem),
    linear-gradient(180deg, #fff8ee, #fffdf8);
}
.projects-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: .98;
  letter-spacing: -.05em;
}
.projects-page-grid article p { min-height: 0; }

.btn.danger {
  color: white;
  background: linear-gradient(135deg, #a51a1f, #6e070a);
  box-shadow: 0 14px 24px rgba(121,13,16,.16);
}
.toolbar form { margin: 0; }

.segmented button:not(:disabled) { cursor: pointer; }
.segmented button:disabled { opacity: 1; cursor: pointer; }
.week-view {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.week-column {
  min-height: 470px;
  border-right: 1px solid var(--line);
  background: white;
}
.week-column:last-child { border-right: 0; }
.week-head {
  padding: .95rem;
  border-bottom: 1px solid var(--line);
  background: #fffaf2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #6c5952;
}
.week-head strong { font-size: .78rem; letter-spacing: .08em; }
.week-head span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--maroon);
  font-weight: 900;
}
.week-body { padding: .8rem; }
.no-events { font-size: .88rem; }
.list-view-panel {
  display: block;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.calendar-list-row,
.management-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.calendar-list-row:last-child,
.management-row:last-child { border-bottom: 0; }
.calendar-list-row h3,
.management-row h3 { margin: 0 0 .32rem; font-size: 1.05rem; }
.calendar-list-row p,
.management-row p { margin: 0 0 .35rem; color: var(--muted); }
.management-panel { padding: 0; overflow: hidden; }
.clickable-row { text-decoration: none; color: inherit; }

.template-workspace {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.template-list-panel,
.template-editor { padding: 1.2rem; }
.template-list-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .7rem;
  border: 1px solid transparent;
  border-radius: 14px;
  margin-bottom: .55rem;
  background: #fffaf4;
}
.template-list-row.active {
  border-color: rgba(216,149,19,.45);
  background: #fff2da;
}
.template-list-row a {
  display: flex;
  gap: .75rem;
  align-items: center;
  padding: .85rem;
  color: inherit;
  text-decoration: none;
}
.template-list-row small {
  display: block;
  color: var(--muted);
  margin-top: .15rem;
}
.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--maroon);
  cursor: pointer;
  margin-right: .55rem;
}
.placeholder-help {
  margin-top: 1rem;
  padding: .95rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff8ed;
  color: var(--muted);
  line-height: 1.55;
}
.template-editor h2 { margin: 0 0 1rem; font-family: Georgia, serif; }

.profile-form {
  max-width: 860px;
  text-align: left;
  padding: 2rem;
}
.profile-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.profile-top h2 { margin: .25rem 0 0; font-family: Georgia, serif; font-size: 2rem; }
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.avatar.big-avatar {
  width: 78px;
  height: 78px;
  font-size: 1.7rem;
}
.two-field { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

@media (max-width: 1100px) {
  .template-workspace { grid-template-columns: 1fr; }
  .week-view { overflow-x: auto; grid-template-columns: repeat(7, minmax(180px, 1fr)); }
  .hero-landing { overflow: hidden; margin-bottom: 0; padding-bottom: 20px; }
}
@media (max-width: 720px) {
  .calendar-list-row, .management-row { grid-template-columns: 1fr; }
  .two-field { grid-template-columns: 1fr; }
  .brand-text { display: none; }
}

/* --- v4 public pages, project manager, contact page, and mobile polish --- */
:target { scroll-margin-top: 112px; }
#about { scroll-margin-top: 110px; }
.three-pillars-section { padding-top: 28px; }

.projects-public-page {
  background: linear-gradient(180deg, #ffffff 0%, #fffaf2 52%, #ffffff 100%);
}
.projects-index {
  background: white;
  border-bottom: 1px solid var(--line);
}
.projects-index h1,
.contact-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--maroon-2);
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  letter-spacing: -.04em;
}
.project-index-grid {
  width: min(980px, calc(100% - 32px));
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 5rem;
  position: relative;
}
.project-index-grid::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--line);
}
.project-index-grid a {
  min-height: 178px;
  display: grid;
  place-items: center;
  gap: 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--maroon);
  border-radius: 20px;
  transition: background .18s ease, transform .18s ease;
}
.project-index-grid a:hover {
  background: #fff7ea;
  transform: translateY(-2px);
}
.project-thumb {
  width: 116px;
  height: 86px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fff7ea, #fff);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}
.project-thumb .icon { width: 40px; height: 40px; color: var(--maroon); }
.project-copy { max-width: 720px; }
.centered-copy { margin: 0 auto 2rem; text-align: center; }
.project-copy h2,
.local-row h3,
.project-band h2,
.community-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--maroon-2);
  margin: 0 0 .8rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -.04em;
}
.local-row h3 { font-size: 1.25rem; text-decoration: underline; }
.project-copy p,
.local-row p,
.project-band p,
.community-section p {
  line-height: 1.75;
  color: #4c403b;
}
.project-feature,
.local-projects,
.community-section { background: #fff; }
.local-projects { background: #f8f8f8; }
.local-row {
  width: min(1060px, calc(100% - 40px));
  margin: 2.6rem auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
}
.local-row.right-image { grid-template-columns: .95fr 1.05fr; }
.local-row > div:not(.project-carousel):not(.project-placeholder) { text-align: center; }
.compact-local { max-width: 840px; }
.project-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: white;
  border-top: 5px solid var(--maroon);
  border-bottom: 1px solid var(--line);
}
.project-band > * { max-width: 640px; }
.project-band .project-carousel,
.project-band .project-placeholder { justify-self: end; }

.project-carousel,
.project-placeholder {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff7ea;
  box-shadow: var(--shadow-soft);
}
.project-carousel.mosaic,
.project-placeholder.mosaic {
  width: min(980px, calc(100% - 40px));
  height: min(520px, 58vw);
  margin: 0 auto;
}
.project-carousel.wide,
.project-placeholder.wide,
.project-carousel.band,
.project-placeholder.band {
  width: 100%;
  min-height: 260px;
  height: 300px;
}
.project-carousel.portrait,
.project-placeholder.portrait {
  width: min(360px, 100%);
  height: 360px;
}
.project-carousel.community-grid,
.project-placeholder.community-grid {
  width: min(780px, calc(100% - 40px));
  height: min(520px, 78vw);
  margin: 0 auto;
}
.project-slide {
  display: none;
  margin: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.project-slide.active { display: block; }
.project-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-slide figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  max-width: calc(100% - 2rem);
  color: white;
  background: rgba(58,3,5,.75);
  padding: .45rem .7rem;
  border-radius: 999px;
  font-size: .86rem;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--maroon);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
  font-size: 1.6rem;
  cursor: pointer;
}
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: .45rem;
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.65);
  cursor: pointer;
}
.carousel-dots button.active { background: var(--gold-2); width: 22px; border-radius: 999px; }
.project-placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  color: var(--maroon);
  background:
    radial-gradient(circle at top left, rgba(246,194,74,.25), transparent 18rem),
    linear-gradient(145deg, #fff, #fff1d9);
}
.project-placeholder span {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, var(--maroon), var(--rose));
  margin-bottom: .7rem;
}
.project-placeholder small { display: block; color: var(--muted); }

.contact-page {
  min-height: calc(100vh - 84px);
  background:
    radial-gradient(circle at 85% 10%, rgba(246,194,74,.18), transparent 22rem),
    linear-gradient(180deg, #fffaf2, #fff);
}
.contact-hero {
  width: min(850px, calc(100% - 32px));
  margin: 0 auto 1.6rem;
  text-align: center;
}
.contact-hero p:last-child { color: var(--muted); line-height: 1.7; }
.contact-card {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: var(--shadow-soft);
}
.project-manager-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.project-admin-card { padding: 1.2rem; scroll-margin-top: 120px; }
.upload-strip {
  margin: 1rem 0;
  padding: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: .7rem;
  align-items: center;
  background: #fff8ed;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.admin-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: .75rem;
}
.admin-photo-grid figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}
.admin-photo-grid img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}
.admin-photo-grid figcaption {
  padding: .55rem;
  font-size: .8rem;
  color: var(--muted);
}
.admin-photo-grid .icon-button {
  position: absolute;
  top: .4rem;
  right: .4rem;
  margin: 0;
  background: rgba(255,255,255,.92);
}

@media (max-width: 1100px) {
  .project-manager-grid,
  .project-band,
  .local-row,
  .local-row.right-image { grid-template-columns: 1fr; }
  .project-band .project-carousel,
  .project-band .project-placeholder { justify-self: stretch; }
  .project-index-grid { gap: 1rem 2rem; }
}

@media (max-width: 760px) {
  :target, #about { scroll-margin-top: 155px; }
  .brand img { width: 52px; height: 42px; }
  .nav-inner { gap: .65rem; }
  .nav-links { gap: .7rem; width: 100%; }
  .nav-links a { font-size: .86rem; }
  .outline-action { padding: .65rem .85rem; }
  .hero-landing { min-height: auto; margin-bottom: 0; padding-bottom: 1.2rem; }
  .hero-content h1 { font-size: clamp(2.4rem, 12vw, 4.2rem); }
  .value-strip { width: calc(100% - 28px); margin-top: 1.4rem; }
  .value-strip > div { padding: 1rem; }
  .section-pad { padding: 48px 16px; }
  .project-index-grid { grid-template-columns: 1fr; width: min(560px, calc(100% - 24px)); }
  .project-index-grid::after { display: none; }
  .project-index-grid a { min-height: 130px; }
  .project-carousel.mosaic,
  .project-placeholder.mosaic,
  .project-carousel.community-grid,
  .project-placeholder.community-grid { height: 330px; width: 100%; }
  .project-carousel.wide,
  .project-placeholder.wide,
  .project-carousel.band,
  .project-placeholder.band { height: 240px; }
  .project-carousel.portrait,
  .project-placeholder.portrait { width: 100%; height: 290px; }
  .local-row { width: 100%; gap: 1.4rem; margin: 2rem auto; }
  .project-band { gap: 1.4rem; }
  .upload-strip { grid-template-columns: 1fr; }
  .project-manager-grid { grid-template-columns: 1fr; }
  .contact-card .form-grid { grid-template-columns: 1fr; }
}

/* logo sizing final override */
.brand img { width: 150px; height: 62px; object-fit: contain; object-position: center; }
.brand.small img { width: 118px; height: 50px; }
.brand.footer-logo img { width: 128px; height: 54px; }
@media (max-width: 760px) {
  .brand img { width: 124px; height: 52px; }
  .brand.small img { width: 104px; height: 44px; }
}

/* --- v4 final overrides: cropped icon logo + mobile polish --- */
.brand {
  gap: .82rem;
  flex-shrink: 0;
}
.brand img {
  width: 54px !important;
  height: 54px !important;
  object-fit: contain;
  object-position: center;
}
.brand.small img {
  width: 44px !important;
  height: 44px !important;
}
.brand.footer-logo img {
  width: 46px !important;
  height: 46px !important;
}
.brand-text {
  display: inline-block;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.48rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
  text-shadow: 0 10px 22px rgba(0,0,0,.22);
}
.brand-text span { color: #fff; }
.site-footer .brand { color: #fff; }

.hero-landing.blank-hero {
  background-image:
    radial-gradient(circle at 82% 18%, rgba(246,194,74,.22), transparent 22rem),
    radial-gradient(circle at 22% 18%, rgba(200,87,91,.22), transparent 25rem),
    linear-gradient(135deg, #5b0508 0%, #7c0b10 55%, #2b0204 100%);
}
.project-placeholder,
.project-thumb {
  background:
    radial-gradient(circle at top, rgba(246,194,74,.18), transparent 5rem),
    linear-gradient(135deg, #fff8ee, #ffffff);
}

@media (max-width: 760px) {
  .site-nav {
    padding: .65rem 0;
  }
  .nav-inner {
    width: min(100% - 22px, 100%);
    align-items: center;
    gap: .75rem;
  }
  .brand img {
    width: 42px !important;
    height: 42px !important;
  }
  .brand-text {
    font-size: 1.06rem;
    letter-spacing: .06em;
  }
  .nav-links {
    justify-content: center;
    row-gap: .65rem;
  }
  .nav-links a:not(.outline-action) {
    padding: .15rem .2rem;
  }
  .outline-action {
    padding: .62rem .82rem;
    font-size: .86rem;
  }
  .hero-content {
    text-align: left;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .value-strip {
    border-radius: 16px;
  }
  .mission-card,
  .three-pillars article,
  .contact-card,
  .panel,
  .event-form-card,
  .profile-panel {
    border-radius: 18px;
  }
  .profile-panel {
    padding: 1.2rem;
  }
  .project-copy.centered-copy p {
    font-size: 1rem;
  }
  .project-index-grid a {
    padding: 1.2rem;
  }
  .app-nav a {
    white-space: nowrap;
  }
  .calendar-grid {
    -webkit-overflow-scrolling: touch;
  }
}

/* v5 privacy-safe update: no people photos are bundled. The hero uses a professional MEDLIFE gradient until board members upload their own approved images. */
.hero, .auth-hero, .portal-hero {
  background-image: radial-gradient(circle at 18% 20%, rgba(255,199,44,.18), transparent 26%),
                    radial-gradient(circle at 82% 5%, rgba(255,255,255,.10), transparent 24%),
                    linear-gradient(135deg, #4f0306 0%, #7f080e 50%, #2d0204 100%) !important;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.20), transparent 48%, rgba(0,0,0,.12));
  pointer-events: none;
}
.hero .container, .hero > * { position: relative; z-index: 1; }
.photo-placeholder, .project-empty {
  background: linear-gradient(135deg, rgba(127,8,14,.06), rgba(255,199,44,.08));
  border: 1px dashed rgba(127,8,14,.25);
}

/* --- v6 fixes: project subpages, public empty galleries, cleaner uploads, contact inbox --- */
.page-link-grid a { min-height: 190px; }
.project-detail-page h1,
.project-band h1,
.community-section h1 {
  margin: 0 0 .8rem;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--maroon-2);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  letter-spacing: -.045em;
  line-height: 1;
}
.project-detail-page .project-copy p { font-size: 1.05rem; }
.project-detail-page .local-row.no-gallery {
  grid-template-columns: minmax(0, 780px);
  justify-content: center;
  text-align: center;
  padding: 1.4rem 0;
}
.project-band.no-gallery {
  grid-template-columns: minmax(0, 780px);
  justify-content: center;
  text-align: center;
}
.project-band.no-gallery > div { max-width: 780px; }
.public-empty-space {
  min-height: 24px;
}
.centered-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.local-row h2 {
  margin: 0 0 .7rem;
  color: var(--maroon-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  letter-spacing: -.02em;
}
.upload-strip {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr) auto;
}
.file-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .72rem .9rem;
  border: 1px solid rgba(216,149,19,.45);
  border-radius: .62rem;
  background: white;
  color: var(--maroon);
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-pill input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.upload-strip input[name="caption"] {
  min-width: 0;
}
.contact-message-row {
  padding: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.contact-message-row:last-child { border-bottom: 0; }
.contact-message-row h3 {
  margin: .55rem 0 .3rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  color: var(--maroon-2);
}
.contact-message-row p {
  line-height: 1.65;
  color: #4c403b;
}
@media (max-width: 900px) {
  .upload-strip { grid-template-columns: 1fr; }
  .file-pill { width: 100%; }
}
@media (max-width: 760px) {
  .page-link-grid a { min-height: 136px; }
  .project-detail-page .local-row.no-gallery,
  .project-band.no-gallery { grid-template-columns: 1fr; }
}


/* v7 footer/title cleanup */
.hero-content h1 {
  line-height: 1.08;
}
.site-footer .brand.logo-only {
  gap: 0;
}
.site-footer .brand.logo-only img,
.brand.logo-only.footer-logo img {
  width: 132px !important;
  height: auto !important;
  max-height: 70px;
  object-fit: contain;
}
.site-footer .brand.logo-only .brand-text,
.site-footer .footer-logo .brand-text {
  display: none !important;
}
@media (max-width: 760px) {
  .hero-content h1 { line-height: 1.12; }
  .site-footer .brand.logo-only img,
  .brand.logo-only.footer-logo img {
    width: 112px !important;
    height: auto !important;
  }
}

/* v8 board project upload fit fix */
.project-admin-card .upload-strip {
  grid-template-columns: 130px minmax(110px, 1fr) 155px;
  gap: .5rem;
  padding: .75rem;
  align-items: center;
}
.project-admin-card .file-pill {
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  padding: .5rem .55rem;
  font-size: .78rem;
  line-height: 1;
  border-radius: 12px;
}
.project-admin-card .file-pill span {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
.project-admin-card .upload-strip input[name="caption"] {
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  padding: .5rem .65rem;
  font-size: .82rem;
}
.project-admin-card .upload-strip .small-btn {
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  padding: .5rem .65rem;
  font-size: .78rem;
  gap: .35rem;
  white-space: nowrap;
}
.project-admin-card .upload-strip .small-btn svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}
@media (max-width: 1050px) {
  .project-admin-card .upload-strip {
    grid-template-columns: 1fr;
  }
}

/* v9 coffee chat tracker */
.coffee-member-grid {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.2fr);
  gap: 1.3rem;
  align-items: start;
  margin-bottom: 1.4rem;
}
.coffee-progress-panel,
.coffee-log-form,
.coffee-history-panel,
.coffee-board-panel {
  overflow: hidden;
}
.coffee-progress {
  display: grid;
  gap: .65rem;
  width: 100%;
}
.coffee-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: var(--maroon-2);
}
.coffee-progress-meta strong {
  font-size: 1.35rem;
  font-family: Georgia, "Times New Roman", serif;
}
.coffee-progress-meta span {
  color: #856a5f;
  font-weight: 800;
}
.coffee-bar {
  height: 14px;
  border-radius: 999px;
  background: #f2e2d0;
  overflow: hidden;
  box-shadow: inset 0 1px 4px rgba(64, 0, 6, .14);
}
.coffee-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--maroon), #b92832, var(--gold));
  width: 0;
  transition: width .35s ease;
}
.coffee-progress.complete .coffee-bar span {
  background: linear-gradient(90deg, #6d8f39, #a6ba48, var(--gold));
}
.coffee-progress.compact .coffee-progress-meta strong { font-size: 1.05rem; }
.coffee-progress.compact .coffee-bar { height: 10px; }
.coffee-chat-row,
.coffee-member-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.coffee-chat-row:last-child,
.coffee-member-row:last-child { border-bottom: 0; }
.coffee-date {
  min-width: 80px;
  border-radius: 16px;
  padding: .75rem .7rem;
  text-align: center;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-2));
  color: white;
  box-shadow: var(--shadow-soft);
}
.coffee-date strong { display: block; font-size: .85rem; letter-spacing: .06em; }
.coffee-date span { display: block; font-size: .7rem; opacity: .76; margin-top: .2rem; }
.coffee-chat-row h3 {
  margin: 0 0 .25rem;
  color: var(--maroon-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}
.coffee-chat-row p { margin: 0; color: #6f5f58; line-height: 1.5; }
.coffee-stats-row {
  margin-bottom: 1.25rem;
}
.coffee-requirement-form {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto;
  gap: .7rem;
  align-items: end;
}
.coffee-requirement-form label {
  display: grid;
  gap: .35rem;
  color: #856a5f;
  font-weight: 900;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.coffee-requirement-form input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .45rem .65rem;
  font: inherit;
  color: var(--ink);
  background: white;
}
.coffee-member-row {
  grid-template-columns: minmax(220px, .8fr) minmax(240px, 1fr) minmax(160px, .55fr);
}
.member-identity {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 0;
}
.member-identity strong,
.member-identity span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-identity span { color: #7b6a63; font-size: .88rem; margin-top: .15rem; }
.coffee-details summary {
  cursor: pointer;
  color: var(--maroon);
  font-weight: 900;
}
.coffee-mini-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
  padding: .55rem 0;
  border-top: 1px solid rgba(125, 0, 11, .08);
}
.coffee-mini-row span { color: #8c766a; font-size: .82rem; font-weight: 800; }
.coffee-mini-row strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-button.mini { width: 34px; height: 34px; }
@media (max-width: 1100px) {
  .coffee-member-grid,
  .coffee-member-row {
    grid-template-columns: 1fr;
  }
  .coffee-member-row { align-items: stretch; }
  .coffee-details { width: 100%; }
}
@media (max-width: 700px) {
  .coffee-chat-row {
    grid-template-columns: 1fr auto;
  }
  .coffee-chat-row .coffee-date {
    grid-column: 1 / -1;
    width: fit-content;
  }
  .coffee-requirement-form { grid-template-columns: 1fr; }
}

/* v10 coffee chats: big/little tracker in current MEDLIFE theme */
.coffee-workspace { max-width: 1320px; }
.coffee-hero-head h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.5rem, 4vw, 4.5rem); color: var(--maroon); letter-spacing: -.04em; }
.coffee-overview-card {
  display: grid;
  grid-template-columns: 1.7fr .55fr .65fr .55fr;
  gap: 0;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}
.coffee-main-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem;
  border-right: 1px solid rgba(120, 11, 16, .12);
}
.coffee-main-progress h2 { margin: .2rem 0 .7rem; color: var(--maroon); font-size: clamp(1.7rem, 3vw, 2.45rem); }
.coffee-main-progress h2 small { color: #2f2523; font-family: Inter, system-ui, sans-serif; font-size: 1rem; }
.coffee-percent { color: var(--maroon); font-size: 1.1rem; }
.circle-icon.small { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); background: #fff0dc; box-shadow: 0 12px 28px rgba(120,11,16,.08); }
.circle-icon.small .icon { width: 26px; height: 26px; }
.shield-icon { color: var(--maroon); background: #fff0dc; }
.coffee-overview-stat {
  display: grid;
  place-content: center;
  text-align: center;
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(120, 11, 16, .12);
}
.coffee-overview-stat:last-child { border-right: 0; }
.coffee-overview-stat span { color: #6f5f58; font-weight: 800; font-size: .85rem; }
.coffee-overview-stat strong { font-family: Georgia, 'Times New Roman', serif; color: var(--maroon); font-size: 2.5rem; line-height: 1; margin: .35rem 0; }
.coffee-overview-stat small { color: #8d7a70; font-weight: 800; }
.coffee-bar.wide { height: 15px; max-width: 560px; }
.coffee-member-grid.refined { grid-template-columns: minmax(0, 2.1fr) minmax(280px, .9fr); align-items: stretch; }
.coffee-log-form.refined { padding: 1.45rem; }
.coffee-search-label input, .coffee-search { width: 100%; border: 1px solid rgba(120,11,16,.18); border-radius: 14px; padding: .85rem 1rem; font: inherit; background: #fff; outline: none; }
.coffee-search-label input:focus, .coffee-search:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(218,151,18,.16); }
.coffee-big-list { display: grid; gap: .55rem; max-height: 290px; overflow: auto; padding-right: .25rem; margin: .75rem 0; }
.coffee-select-row {
  border: 1px solid rgba(120,11,16,.1);
  background: linear-gradient(135deg, #fff, #fff9f1);
  border-radius: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .75rem;
  padding: .7rem;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.coffee-select-row:hover, .coffee-select-row.selected { border-color: var(--gold); box-shadow: 0 10px 25px rgba(120,11,16,.08); }
.coffee-select-row b { background: var(--maroon); color: #fff; border-radius: 10px; padding: .45rem .7rem; font-size: .8rem; }
.coffee-select-row small, .coffee-pick-row small { display: block; color: #8b766a; font-weight: 700; margin-top: .15rem; }
.selected-big-box { border: 1px dashed rgba(120,11,16,.22); background: #fff8ef; color: var(--maroon); padding: .75rem 1rem; border-radius: 14px; font-weight: 900; margin: .6rem 0 1rem; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.coffee-rules-card { padding: 1.6rem; background: linear-gradient(145deg, #fff, #fff6e8); }
.coffee-rules-card h2 { color: var(--maroon); font-family: Georgia, 'Times New Roman', serif; }
.coffee-rules-card ul { list-style: none; padding: 1rem 0 0; margin: 1rem 0 0; border-top: 1px solid rgba(218,151,18,.28); display: grid; gap: .8rem; }
.coffee-rules-card li { color: #6f5f58; font-weight: 800; line-height: 1.45; position: relative; padding-left: 1.5rem; }
.coffee-rules-card li::before { content: '✓'; color: var(--gold); position: absolute; left: 0; top: 0; font-weight: 1000; }
.coffee-chat-row.refined { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.status-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: .42rem .7rem; font-size: .78rem; font-weight: 950; white-space: nowrap; }
.status-pill.verified { background: #e9f7e9; color: #2d782e; }
.status-pill.submitted { background: #fff4de; color: #9b5a00; }
.tiny-avatar { width: 34px; height: 34px; font-size: .75rem; }
.coffee-stats-row.refined { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.coffee-requirement-form.refined { display: grid; grid-template-columns: 1fr auto; gap: .8rem; align-items: end; }
.coffee-board-grid.refined { display: grid; grid-template-columns: minmax(330px, .78fr) minmax(0, 1.35fr); gap: 1rem; }
.board-only-tag { display: inline-flex; vertical-align: middle; margin-left: .35rem; background: #fff0c6; color: #a06200; border: 1px solid rgba(218,151,18,.35); border-radius: 8px; padding: .2rem .45rem; font-family: Inter, system-ui, sans-serif; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }
.coffee-bigs-panel, .coffee-board-panel.refined { padding: 1.35rem; }
.coffee-pick-list { display: grid; gap: .45rem; max-height: 505px; overflow: auto; margin: .85rem 0; padding-right: .2rem; }
.coffee-pick-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .7rem;
  border: 1px solid rgba(120,11,16,.1);
  border-radius: 13px;
  padding: .65rem;
  background: #fff;
}
.coffee-pick-row input { width: 18px; height: 18px; accent-color: var(--maroon); }
.coffee-role-pill { border-radius: 999px; padding: .35rem .55rem; font-size: .72rem; font-weight: 950; white-space: nowrap; }
.coffee-role-pill.big { color: #fff; background: var(--maroon); }
.coffee-role-pill.board { color: #9a5a00; background: #fff1ce; }
.coffee-role-pill.member { color: #6f5f58; background: #f5ede7; }
.form-actions.split { justify-content: space-between; align-items: center; }
.coffee-filter-row { display: grid; grid-template-columns: 1fr 190px; gap: .7rem; margin: .9rem 0 1rem; }
.coffee-filter-row select { border: 1px solid rgba(120,11,16,.18); border-radius: 14px; padding: .85rem 1rem; background: #fff; font: inherit; }
.coffee-table { border: 1px solid rgba(120,11,16,.1); border-radius: 16px; overflow: hidden; }
.coffee-table-head, .coffee-table-row summary {
  display: grid;
  grid-template-columns: minmax(170px, 1.1fr) minmax(130px, .9fr) minmax(170px, 1fr) 92px;
  gap: .75rem;
  align-items: center;
}
.coffee-table-head { background: #fbf4ec; color: #6f5f58; font-size: .78rem; font-weight: 950; text-transform: uppercase; padding: .75rem 1rem; }
.coffee-table-row { border-top: 1px solid rgba(120,11,16,.08); }
.coffee-table-row summary { list-style: none; cursor: pointer; padding: .75rem 1rem; }
.coffee-table-row summary::-webkit-details-marker { display: none; }
.coffee-table-row:hover summary { background: #fffaf3; }
.member-identity { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.member-identity b, .member-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-progress { display: grid; grid-template-columns: 1fr auto; gap: .65rem; align-items: center; }
.mini-progress i { height: 10px; background: #f0e5dd; border-radius: 999px; overflow: hidden; display: block; }
.mini-progress em { display: block; height: 100%; background: linear-gradient(90deg, var(--maroon), #b91d31); border-radius: inherit; }
.mini-progress b { color: var(--maroon); font-size: .85rem; }
.coffee-details-list { background: #fffaf4; padding: .75rem 1rem 1rem; display: grid; gap: .4rem; }
.coffee-details-list .coffee-mini-row { grid-template-columns: 90px minmax(0, 1fr) 90px auto; }
.empty-state.compact { padding: 1rem; }
.empty-state.compact h3 { margin: 0 0 .25rem; color: var(--maroon); }

@media (max-width: 1100px) {
  .coffee-overview-card, .coffee-board-grid.refined, .coffee-member-grid.refined, .coffee-stats-row.refined { grid-template-columns: 1fr; }
  .coffee-main-progress, .coffee-overview-stat { border-right: 0; border-bottom: 1px solid rgba(120,11,16,.1); }
  .coffee-table-head { display: none; }
  .coffee-table-row summary { grid-template-columns: 1fr; align-items: start; }
  .coffee-filter-row { grid-template-columns: 1fr; }
  .coffee-chat-row.refined { grid-template-columns: auto 1fr; }
  .coffee-chat-row.refined form, .coffee-chat-row.refined .status-pill { grid-column: 2; justify-self: start; }
}

@media (max-width: 700px) {
  .form-grid.two { grid-template-columns: 1fr; }
  .coffee-main-progress { grid-template-columns: 1fr; }
  .coffee-pick-row { grid-template-columns: auto 1fr; }
  .coffee-role-pill { grid-column: 2; justify-self: start; }
  .coffee-select-row { grid-template-columns: auto 1fr; }
  .coffee-select-row b { grid-column: 2; justify-self: start; }
}


/* v11 polish: coffee chat updates + less crowded portal header */
.app-topbar .brand.logo-only.small {
  flex: 0 0 auto;
  width: 76px;
  min-width: 76px;
}
.app-topbar .brand.logo-only.small img {
  width: 76px;
  height: 58px;
  object-fit: contain;
}
.app-nav {
  flex-wrap: nowrap;
  min-width: 0;
}
.app-nav a {
  white-space: nowrap;
  font-size: .9rem;
  padding: .68rem .78rem;
  gap: .38rem;
}
.app-nav a .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.profile-pill {
  flex: 0 0 auto;
}
.coffee-log-fields {
  max-width: 680px;
}
.coffee-bigs-panel .tiny-note {
  margin: .5rem 0 -.15rem;
  font-size: .86rem;
}
.coffee-pick-list {
  max-height: 460px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: .35rem;
}
.coffee-pick-list::-webkit-scrollbar,
.coffee-big-list::-webkit-scrollbar {
  width: 8px;
}
.coffee-pick-list::-webkit-scrollbar-thumb,
.coffee-big-list::-webkit-scrollbar-thumb {
  background: rgba(120, 11, 16, .28);
  border-radius: 999px;
}
.coffee-pick-list::-webkit-scrollbar-track,
.coffee-big-list::-webkit-scrollbar-track {
  background: rgba(120, 11, 16, .06);
  border-radius: 999px;
}
@media (max-width: 1260px) {
  .app-topbar-inner {
    width: min(100% - 20px, 1500px);
    gap: .55rem;
  }
  .app-nav a {
    font-size: .82rem;
    padding: .62rem .55rem;
  }
  .profile-pill span {
    display: none;
  }
}
@media (max-width: 980px) {
  .app-topbar {
    height: auto;
  }
  .app-topbar-inner {
    flex-wrap: wrap;
    padding: .65rem 0;
  }
  .app-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: .15rem;
  }
  .app-nav a {
    flex: 0 0 auto;
  }
}

/* v13 coffee chat fixes: topbar, horizontal stats, roles, avatars, duplicate big selection */
.app-topbar .brand.app-brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-width: 172px;
  color: #fff;
  text-decoration: none;
  flex: 0 0 auto;
}
.app-topbar .brand.app-brand img {
  width: 78px;
  height: 58px;
  object-fit: contain;
}
.app-topbar .brand.app-brand .brand-text {
  display: inline-block;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.45rem;
  letter-spacing: .08em;
  font-weight: 900;
  line-height: 1;
}
.app-topbar .brand.app-brand .brand-text span { color: #fff; }
.app-topbar-inner { gap: .75rem; }
.app-nav { overflow-x: auto; scrollbar-width: none; }
.app-nav::-webkit-scrollbar { display: none; }
.profile-pill > span:not(.avatar) { color: #fff; }

.stats-row.coffee-stats-row.refined {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(190px, 1fr)) !important;
  gap: 1rem;
  align-items: stretch;
  overflow-x: auto;
  padding-bottom: .2rem;
  scrollbar-width: thin;
}
.stats-row.coffee-stats-row.refined .stat-card {
  min-width: 190px;
  padding: 1rem;
}
.stats-row.coffee-stats-row.refined .stat-card strong { font-size: 2rem; }
@media (max-width: 1100px) {
  .stats-row.coffee-stats-row.refined {
    grid-template-columns: repeat(4, minmax(190px, 1fr)) !important;
  }
}

.avatar.tiny-avatar,
.member-identity .avatar.tiny-avatar,
.coffee-table .avatar.tiny-avatar,
.coffee-pick-row .avatar.tiny-avatar,
.coffee-select-row .avatar.tiny-avatar,
.coffee-chat-row .avatar.tiny-avatar {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  flex: 0 0 34px !important;
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;
  display: inline-grid !important;
  place-items: center !important;
  overflow: hidden !important;
  color: #fff !important;
  font-size: .75rem !important;
  line-height: 1 !important;
  text-overflow: clip !important;
  white-space: normal !important;
}
.avatar.tiny-avatar img,
.member-identity .avatar.tiny-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}
.member-identity > .avatar.tiny-avatar + b,
.member-identity > .avatar.tiny-avatar + strong {
  min-width: 0;
}

.coffee-pick-row.role-picker {
  grid-template-columns: auto minmax(0, 1fr) minmax(270px, auto);
}
.coffee-role-options {
  display: flex;
  justify-content: flex-end;
  gap: .4rem;
  flex-wrap: wrap;
}
.coffee-role-options label { display: inline-flex; cursor: pointer; }
.coffee-role-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.coffee-role-options span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 999px;
  padding: .38rem .62rem;
  border: 1px solid rgba(120,11,16,.16);
  background: #fffaf4;
  color: #6f5f58;
  font-size: .72rem;
  font-weight: 950;
  white-space: nowrap;
}
.coffee-role-options input:checked + span {
  background: var(--maroon);
  color: #fff;
  border-color: var(--maroon);
  box-shadow: 0 8px 18px rgba(120,11,16,.14);
}
.coffee-role-options label:first-child input:checked + span {
  background: #f3e9e1;
  border-color: #e3d3c6;
  color: #6f5f58;
}
.coffee-role-pill.none { color: #6f5f58; background: #f4ede6; }

.coffee-select-row.logged {
  opacity: .58;
  cursor: not-allowed;
}
.coffee-select-row.logged b {
  background: #f0e5dd;
  color: #7c6a62;
}
#submitCoffeeChat:disabled {
  opacity: .55;
  cursor: not-allowed;
}

@media (max-width: 1250px) {
  .app-topbar .brand.app-brand { min-width: 118px; gap: .35rem; }
  .app-topbar .brand.app-brand .brand-text { display: none; }
  .app-topbar .brand.app-brand img { width: 82px; }
}
@media (max-width: 760px) {
  .coffee-pick-row.role-picker {
    grid-template-columns: auto 1fr;
  }
  .coffee-role-options {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .stats-row.coffee-stats-row.refined {
    grid-template-columns: repeat(4, minmax(170px, 1fr)) !important;
  }
  .stats-row.coffee-stats-row.refined .stat-card { min-width: 170px; }
}

/* v14 coffee chat role picker redesign */
.board-only-tag {
  display: none !important;
}

.coffee-pick-row.role-picker {
  grid-template-columns: 42px minmax(0, 1fr) 78px !important;
  align-items: center !important;
  gap: .65rem !important;
  padding: .75rem !important;
}

.coffee-pick-row.role-picker > span {
  min-width: 0 !important;
  display: block !important;
  overflow: hidden !important;
}

.coffee-pick-row.role-picker > span strong,
.coffee-pick-row.role-picker > span small {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.coffee-role-options {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: .28rem !important;
  justify-content: stretch !important;
  align-items: stretch !important;
  width: 78px !important;
}

.coffee-role-options label {
  display: block !important;
  width: 100% !important;
}

.coffee-role-options span {
  width: 100% !important;
  min-height: 28px !important;
  padding: .25rem .35rem !important;
  border-radius: 999px !important;
  font-size: .7rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.coffee-role-options input:checked + span,
.coffee-role-options label:first-child input:checked + span {
  background: var(--maroon) !important;
  color: #fff !important;
  border-color: var(--maroon) !important;
  box-shadow: 0 8px 18px rgba(120,11,16,.14) !important;
}

.coffee-pick-list {
  max-height: 560px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.coffee-select-row.selected b {
  background: #e8dfd8 !important;
  color: #6f5f58 !important;
  border: 1px solid #d8c8bd !important;
}

@media (max-width: 760px) {
  .coffee-pick-row.role-picker {
    grid-template-columns: 42px minmax(0, 1fr) 78px !important;
  }
  .coffee-role-options {
    grid-column: auto !important;
  }
}

/* v16 event details modal polish */
.event-dialog {
  width: min(940px, calc(100% - 28px));
  max-height: calc(100vh - 36px);
  overflow: hidden;
}

.event-modal {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  max-height: calc(100vh - 36px);
}

.event-modal-visual {
  justify-content: flex-start;
  padding: 2.15rem 2rem;
  overflow-y: auto;
}

.event-modal-visual h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
  word-break: normal;
  margin-top: 0;
}

.event-modal-meta {
  gap: .72rem;
}

.event-modal-meta div {
  align-items: flex-start;
  min-width: 0;
  line-height: 1.35;
}

.event-modal-meta .icon {
  width: 19px;
  height: 19px;
  margin-top: .08rem;
}

.event-modal-meta .tag {
  width: fit-content;
  max-width: 100%;
  white-space: normal;
}

.event-modal-body {
  max-height: calc(100vh - 36px);
  overflow-y: auto;
}

.info-list {
  gap: 1.15rem;
}

.info-list div {
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: flex-start;
  gap: .9rem;
}

.info-list .icon {
  width: 21px;
  height: 21px;
  margin-top: .18rem;
  justify-self: center;
}

.info-list p {
  margin: 0;
  line-height: 1.45;
  min-width: 0;
  overflow-wrap: anywhere;
}

.info-list strong {
  line-height: 1.25;
}

.modal-actions .btn {
  align-items: center;
}

@media (max-width: 760px) {
  .event-dialog {
    width: min(96vw, 560px);
  }

  .event-modal {
    grid-template-columns: 1fr;
  }

  .event-modal-visual,
  .event-modal-body {
    max-height: none;
  }

  .event-modal-visual {
    padding: 1.6rem;
  }
}

/* v18 project manager refresh, contact anonymity, and heading polish */
.template-row span {
  margin-left: auto;
  text-align: right;
  min-width: 115px;
  max-width: 140px;
  display: block;
  line-height: 1.2;
}

.workspace-head.project-editor-head {
  align-items: flex-start;
  gap: 1rem;
}
.workspace-head.project-editor-head > div {
  min-width: 0;
  max-width: 980px;
}
.workspace-head.project-editor-head h1 {
  line-height: 1.03;
  margin-bottom: .45rem;
  overflow-wrap: anywhere;
}
.workspace-head.project-editor-head .subtle {
  display: block;
  line-height: 1.45;
  max-width: 760px;
}
.project-workspace {
  max-width: 1280px;
  overflow-x: hidden;
}
.project-editor-shell {
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.project-page-picker {
  padding: 1.25rem;
  overflow: hidden;
}
.project-page-grid.compact {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
}
.project-page-card {
  display: grid;
  gap: .45rem;
  align-content: start;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #fff8ed);
  color: var(--maroon);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(120, 11, 16, .05);
}
.project-page-card:hover,
.project-page-card.active {
  border-color: var(--gold);
  box-shadow: 0 16px 38px rgba(120, 11, 16, .10);
  transform: translateY(-1px);
}
.project-page-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--maroon);
  background: #fff2da;
}
.project-page-icon .icon { width: 27px; height: 27px; }
.project-page-card strong {
  font-size: 1rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.project-page-card small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}
.project-selected-editor {
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.project-add-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr);
  gap: 1rem;
  align-items: end;
  padding: 1.25rem;
  overflow: hidden;
}
.project-add-card h2 {
  margin: .25rem 0 .35rem;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--maroon);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.05;
}
.add-section-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: end;
}
.project-section-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  min-width: 0;
}
.project-admin-card {
  min-width: 0;
  overflow: hidden;
}
.project-admin-card .panel-head {
  align-items: flex-start;
  gap: 1rem;
}
.project-admin-card .panel-head h2 {
  overflow-wrap: anywhere;
  line-height: 1.08;
}
.project-admin-card .nice-form label,
.project-admin-card .nice-form input,
.project-admin-card .nice-form textarea {
  min-width: 0;
}
.project-admin-card .upload-strip {
  grid-template-columns: 126px minmax(0, 1fr) 150px;
  gap: .5rem;
  padding: .75rem;
}
.project-admin-card .file-pill,
.project-admin-card .upload-strip input[name="caption"],
.project-admin-card .upload-strip .small-btn {
  min-width: 0;
  max-width: 100%;
}
.project-admin-card .upload-strip .small-btn {
  white-space: nowrap;
  justify-content: center;
}
.btn.danger {
  color: #9a111b;
  border-color: rgba(154,17,27,.18);
}
.project-editor-empty {
  padding: 2rem;
  text-align: center;
}
.public-section-stack {
  display: grid;
  gap: 1.4rem;
  width: min(1100px, calc(100% - 24px));
  margin: 2rem auto 0;
}
.public-project-section {
  display: grid;
  grid-template-columns: minmax(260px, .95fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff, #fffaf4);
  box-shadow: 0 16px 44px rgba(120, 11, 16, .08);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  overflow: hidden;
}
.public-project-section.no-gallery {
  grid-template-columns: 1fr;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.public-project-text h2 {
  margin: 0 0 .65rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--maroon);
  line-height: 1.05;
}
.public-project-text p {
  color: var(--muted);
  line-height: 1.75;
}
.small-kicker {
  font-size: .72rem;
  margin-bottom: .4rem;
}
.contact-anon-note {
  margin: .8rem 0 0;
  padding: .85rem 1rem;
  border: 1px solid rgba(218,151,18,.25);
  border-radius: 14px;
  color: var(--maroon);
  background: #fff7e7;
  font-weight: 850;
}
.coffee-hero-head h1 {
  line-height: 1.02;
}

@media (max-width: 1180px) {
  .project-page-grid.compact,
  .project-section-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-add-card,
  .add-section-form {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .workspace-head.project-editor-head {
    align-items: stretch;
  }
  .project-page-grid.compact,
  .project-section-list,
  .public-project-section {
    grid-template-columns: 1fr;
  }
  .project-admin-card .upload-strip {
    grid-template-columns: 1fr;
  }
  .public-project-section {
    text-align: left;
  }
}

/* v19: keep board project delete buttons readable */
.project-workspace .project-admin-card .btn.danger,
.project-workspace .project-admin-card .btn.light.danger,
.project-workspace .project-admin-card button.btn.danger,
.project-workspace .project-admin-card form[action*="delete"] button {
  color: #ffffff !important;
}

.project-workspace .project-admin-card .btn.light.danger:hover,
.project-workspace .project-admin-card button.btn.danger:hover {
  color: #ffffff !important;
}

/* v20 board account manager + coffee tracker reset */
.account-workspace { max-width: 1320px; }
.account-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.account-manager-panel { padding: 1.25rem; }
.account-manager-panel .panel-head {
  align-items: end;
  gap: 1rem;
}
.account-manager-panel .panel-head p { margin: .25rem 0 0; color: #7e6b61; font-weight: 700; }
.account-search {
  width: min(360px, 100%);
  border: 1px solid rgba(120,11,16,.18);
  border-radius: 14px;
  padding: .85rem 1rem;
  font: inherit;
  background: #fff;
  outline: none;
}
.account-search:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(218,151,18,.16); }
.account-table {
  border: 1px solid rgba(120,11,16,.1);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.account-table-head,
.account-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) 110px 120px minmax(190px, .8fr) 120px;
  gap: .85rem;
  align-items: center;
}
.account-table-head {
  background: #fbf4ec;
  color: #6f5f58;
  font-size: .76rem;
  font-weight: 950;
  text-transform: uppercase;
  padding: .8rem 1rem;
}
.account-row {
  padding: .9rem 1rem;
  border-top: 1px solid rgba(120,11,16,.08);
}
.account-row:hover { background: #fffaf4; }
.account-identity {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: .7rem;
  align-items: center;
  min-width: 0;
}
.account-identity span,
.account-identity strong,
.account-identity small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-identity strong { color: #2f2523; }
.account-identity small { color: #8b766a; font-weight: 750; font-size: .78rem; }
.account-pill {
  justify-self: start;
  border-radius: 999px;
  padding: .38rem .65rem;
  font-size: .74rem;
  font-weight: 950;
  white-space: nowrap;
}
.account-pill.board { background: var(--maroon); color: #fff; }
.account-pill.member { background: #fff1ce; color: #8b5607; }
.account-activity { display: grid; gap: .18rem; color: #6f5f58; font-size: .78rem; font-weight: 800; }
.account-row form { justify-self: end; }
.account-row .btn.danger,
.danger-zone-panel .btn.danger,
.coffee-reset-strip .btn.danger { color: #fff !important; }
.danger-zone-panel {
  margin-top: 1rem;
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-color: rgba(120,11,16,.18) !important;
  background: linear-gradient(135deg, #fffaf4, #fff);
}
.danger-zone-panel h2 { margin: .15rem 0 .25rem; color: var(--maroon); }
.coffee-reset-strip {
  margin: -.25rem 0 1rem;
  padding: .85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(120,11,16,.1);
  border-radius: 16px;
  background: #fffaf4;
  color: #6f5f58;
  font-weight: 850;
}
.coffee-reset-strip form { margin: 0; }
@media (max-width: 1100px) {
  .account-stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-table-head { display: none; }
  .account-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
  .account-identity { grid-column: 1 / -1; }
  .account-activity { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .account-row form { justify-self: start; }
}
@media (max-width: 720px) {
  .account-stat-row { grid-template-columns: 1fr; }
  .account-manager-panel .panel-head,
  .danger-zone-panel,
  .coffee-reset-strip { display: grid; align-items: stretch; }
  .account-search { width: 100%; }
  .account-row { grid-template-columns: 1fr; }
  .account-activity { grid-template-columns: 1fr; }
}

/* v21 account manager layout fix: keep actions inside table and shrink coffee role pills */
.account-table {
  overflow-x: hidden !important;
}

.account-table-head,
.account-row {
  grid-template-columns: minmax(230px, 1.35fr) 86px max-content minmax(145px, .78fr) 108px !important;
  gap: .6rem !important;
}

.account-table-head span:nth-child(3),
.account-row > .coffee-role-pill {
  justify-self: start !important;
}

.account-row > .coffee-role-pill {
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: max-content !important;
  padding: .34rem .68rem !important;
}

.account-row > form,
.account-row > .status-pill.submitted {
  justify-self: end !important;
  align-self: center !important;
  max-width: 100% !important;
}

.account-row .btn.danger.small-btn {
  min-height: 38px !important;
  width: auto !important;
  max-width: 108px !important;
  padding: .55rem .75rem !important;
  font-size: .78rem !important;
  color: #fff !important;
  gap: .35rem !important;
}

.account-row .btn.danger.small-btn .icon {
  width: 15px !important;
  height: 15px !important;
  flex: 0 0 auto !important;
}

.account-row > .status-pill.submitted {
  width: auto !important;
  min-width: 0 !important;
  padding: .38rem .72rem !important;
}

@media (max-width: 1180px) {
  .account-table-head,
  .account-row {
    grid-template-columns: minmax(210px, 1.2fr) 78px max-content minmax(130px, .75fr) 96px !important;
    gap: .5rem !important;
  }

  .account-row .btn.danger.small-btn {
    max-width: 96px !important;
    padding: .5rem .62rem !important;
  }
}

@media (max-width: 1100px) {
  .account-row > form,
  .account-row > .status-pill.submitted,
  .account-row > .coffee-role-pill {
    justify-self: start !important;
  }
}

/* v22 account table column alignment fix */
.account-manager-panel {
  overflow: hidden;
}

.account-table {
  width: 100%;
  overflow: hidden !important;
}

.account-table-head,
.account-row {
  grid-template-columns: minmax(280px, 34%) minmax(90px, 12%) minmax(105px, 14%) minmax(150px, 24%) minmax(92px, 1fr) !important;
  column-gap: 1rem !important;
  align-items: center !important;
}

.account-table-head span,
.account-row > .account-pill,
.account-row > .coffee-role-pill,
.account-row > .account-activity {
  justify-self: start !important;
  align-self: center !important;
}

.account-row > .account-pill,
.account-row > .coffee-role-pill {
  width: fit-content !important;
  max-width: fit-content !important;
  min-width: 0 !important;
  padding: .38rem .72rem !important;
}

.account-row > form,
.account-row > .status-pill.submitted {
  justify-self: end !important;
  align-self: center !important;
}

.account-row .btn.danger.small-btn {
  max-width: none !important;
  width: fit-content !important;
  padding: .55rem .9rem !important;
}

.account-row > .status-pill.submitted {
  width: fit-content !important;
  max-width: fit-content !important;
  padding: .42rem .85rem !important;
}

.account-activity {
  min-width: 0;
}

.account-activity span {
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .account-table-head,
  .account-row {
    grid-template-columns: minmax(245px, 32%) minmax(82px, 12%) minmax(96px, 14%) minmax(135px, 24%) minmax(82px, 1fr) !important;
    column-gap: .7rem !important;
  }
}

@media (max-width: 1100px) {
  .account-table-head {
    display: none !important;
  }

  .account-row {
    grid-template-columns: minmax(0, 1fr) !important;
    row-gap: .75rem !important;
    align-items: start !important;
  }

  .account-row > .account-pill,
  .account-row > .coffee-role-pill,
  .account-row > .account-activity,
  .account-row > form,
  .account-row > .status-pill.submitted {
    justify-self: start !important;
  }

  .account-activity span {
    white-space: normal;
  }
}


/* v23: remove unnecessary impact card and move sidebar navigation higher */
.sidebar {
  padding-top: 1.15rem;
}
.side-card.impact-mini {
  display: none !important;
}

/* v24: add group photo to public cover page */
.hero-landing.blank-hero {
  background-image:
    radial-gradient(circle at 80% 24%, rgba(246, 194, 74, .16), transparent 28rem),
    linear-gradient(90deg, rgba(58, 3, 5, .94) 0%, rgba(91, 7, 9, .78) 34%, rgba(91, 7, 9, .34) 68%, rgba(58, 3, 5, .58) 100%),
    url('/groupphoto.jpg') !important;
  background-size: cover;
  background-position: center 34%;
  background-repeat: no-repeat;
}

/* v24: add more breathing room between member progress and log-chat card */
.coffee-overview-card {
  margin-bottom: 2rem;
}

.coffee-member-grid.refined {
  margin-top: 0;
}

@media (max-width: 760px) {
  .hero-landing.blank-hero {
    background-position: center top;
  }
  .coffee-overview-card {
    margin-bottom: 1.35rem;
  }
}

/* v25: portal typography and form polish */
/* Keep all portal page titles consistent with the black/ink title style. */
.workspace-head h1,
.coffee-hero-head h1,
.workspace-head.project-editor-head h1,
.project-workspace .workspace-head h1,
.event-form-card h1 {
  color: var(--ink) !important;
}

/* Give the gray subtitle more breathing room below large titles. */
.workspace-head h1 + .subtle,
.coffee-hero-head h1 + .subtle,
.workspace-head.project-editor-head h1 + .subtle {
  display: block;
  margin-top: .7rem;
  line-height: 1.5;
}

/* Make card shadows softer and less sharp/protruding. */
.stat-card,
.panel,
.list-panel,
.profile-panel,
.event-form-card,
.project-admin-card,
.project-page-card,
.project-add-card,
.project-page-picker,
.coffee-overview-card,
.coffee-progress-panel,
.coffee-log-form,
.coffee-history-panel,
.coffee-board-panel,
.coffee-bigs-panel,
.coffee-board-panel.refined,
.coffee-rules-card,
.accounts-panel,
.management-panel,
.contact-card,
.auth-card {
  box-shadow: 0 18px 48px rgba(72, 14, 8, .065) !important;
}

.project-page-card:hover,
.project-page-card.active,
.coffee-select-row:hover,
.coffee-select-row.selected {
  box-shadow: 0 16px 34px rgba(72, 14, 8, .085) !important;
}

/* Keep required stars on the same line as form labels. */
.nice-form label {
  display: block !important;
  gap: 0 !important;
}

.nice-form label span {
  display: inline !important;
  margin-left: .18rem;
  color: var(--rose);
}

.nice-form label input,
.nice-form label select,
.nice-form label textarea {
  display: block;
  margin-top: .5rem;
}

/* Editable / fillable fields should feel lighter and not overly bold. */
input,
select,
textarea,
.nice-form input,
.nice-form select,
.nice-form textarea,
.contact-card input,
.contact-card select,
.contact-card textarea,
.event-form-card input,
.event-form-card select,
.event-form-card textarea,
.project-admin-card input,
.project-admin-card textarea,
.profile-panel input,
.profile-panel select,
.profile-panel textarea {
  font-weight: 500 !important;
}

input::placeholder,
textarea::placeholder {
  font-weight: 500 !important;
  color: #87776f;
}

/* On long selects, keep the selected text readable but not heavy. */
select option {
  font-weight: 500;
}

/* v26 coffee chat board spacing consistency */
.coffee-board-grid.refined {
  margin-bottom: 1.25rem !important;
}

.coffee-history-panel {
  margin-top: 0 !important;
}

@media (max-width: 900px) {
  .coffee-board-grid.refined {
    margin-bottom: 1rem !important;
  }
}

/* v27: project page photo cards and visible board photo delete icons */
.projects-index .project-index-grid a.project-photo-card {
  align-items: center;
  justify-items: center;
  gap: 1rem;
  padding: 1.15rem 1rem;
}

.projects-index .project-thumb.image-thumb {
  width: min(280px, 92%);
  height: 150px;
  padding: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #f7eddf;
  box-shadow: 0 12px 32px rgba(72, 14, 8, .08);
}

.projects-index .project-thumb.image-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.projects-index .project-photo-card strong {
  color: var(--maroon);
  font-weight: 800;
}

.admin-photo-grid figure {
  overflow: visible;
}

.admin-photo-grid .icon-button {
  position: absolute;
  top: .45rem;
  right: .45rem;
  width: 36px;
  height: 36px;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--maroon) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.75) !important;
  box-shadow: 0 10px 24px rgba(72, 14, 8, .22);
  z-index: 3;
}

.admin-photo-grid .icon-button .icon {
  width: 18px;
  height: 18px;
  color: #fff !important;
  stroke: currentColor;
}

.admin-photo-grid .icon-button:hover {
  background: #5b0709 !important;
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .projects-index .project-thumb.image-thumb {
    width: 100%;
    height: 165px;
  }
}


/* v28: match Coffee Chats cards to the softer Dashboard shadow and N/A role copy */
.coffee-overview-card,
.coffee-progress-panel,
.coffee-log-form,
.coffee-history-panel,
.coffee-board-panel,
.coffee-bigs-panel,
.coffee-board-panel.refined,
.coffee-rules-card,
.coffee-member-grid.refined > .panel,
.coffee-board-grid.refined > .panel,
.stats-row.coffee-stats-row.refined .stat-card {
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow-soft) !important;
}

.coffee-overview-card:hover,
.coffee-progress-panel:hover,
.coffee-log-form:hover,
.coffee-history-panel:hover,
.coffee-board-panel:hover,
.coffee-bigs-panel:hover,
.stats-row.coffee-stats-row.refined .stat-card:hover {
  box-shadow: var(--shadow-soft) !important;
  transform: none !important;
}

/* v29: remove the shadow/glow behind Coffee Chats cards and panels */
body .coffee-overview-card,
body .coffee-progress-panel,
body .coffee-log-form,
body .coffee-history-panel,
body .coffee-board-panel,
body .coffee-bigs-panel,
body .coffee-board-panel.refined,
body .coffee-rules-card,
body .coffee-member-grid.refined > .panel,
body .coffee-board-grid.refined > .panel,
body .stats-row.coffee-stats-row.refined .stat-card,
body .coffee-page .panel,
body .coffee-page .stat-card,
body .coffee-page .card {
  box-shadow: none !important;
}

body .coffee-overview-card:hover,
body .coffee-progress-panel:hover,
body .coffee-log-form:hover,
body .coffee-history-panel:hover,
body .coffee-board-panel:hover,
body .coffee-bigs-panel:hover,
body .coffee-board-panel.refined:hover,
body .coffee-rules-card:hover,
body .coffee-member-grid.refined > .panel:hover,
body .coffee-board-grid.refined > .panel:hover,
body .stats-row.coffee-stats-row.refined .stat-card:hover,
body .coffee-page .panel:hover,
body .coffee-page .stat-card:hover,
body .coffee-page .card:hover {
  box-shadow: none !important;
  transform: none !important;
}

/* Participation tracker */
.participation-page .workspace-head h1 { color: var(--ink) !important; }
.participation-member-grid,
.participation-board-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  gap: 1.45rem;
  align-items: start;
  margin-top: 1.25rem;
}
.participation-page .panel,
.participation-page .list-panel,
.participation-page .stat-card {
  box-shadow: 0 10px 28px rgba(42, 24, 24, 0.055) !important;
}
.attendance-code-card h2,
.participation-page .panel h2 { font-size: 1.55rem; }
.attendance-session-mini,
.attendance-session-row,
.attendance-row,
.attendance-review-row,
.participation-summary-row {
  display: grid;
  gap: 1rem;
  align-items: center;
  border: 1px solid #f0ded2;
  border-radius: 20px;
  padding: 1rem;
  background: rgba(255,255,255,.76);
  margin-bottom: .75rem;
}
.attendance-session-mini,
.attendance-session-row { grid-template-columns: minmax(0, 1fr) auto; }
.attendance-row { grid-template-columns: 42px minmax(0, 1fr) auto; }
.attendance-row > .icon,
.attendance-row > div:first-child .icon {
  width: 24px;
  height: 24px;
  color: var(--maroon);
}
.attendance-review-row {
  grid-template-columns: minmax(180px, .8fr) minmax(0, 1.3fr) auto auto;
}
.attendance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: flex-end;
}
.attendance-actions form { margin: 0; }
.attendance-actions .small-btn {
  border: 1px solid #ead4c4;
  background: #fff8ef;
  color: var(--maroon);
  border-radius: 12px;
  font-weight: 950;
  padding: .55rem .75rem;
}
.attendance-actions .small-btn.approve {
  background: #e9f7e9;
  color: #2d782e;
  border-color: #c6e8c6;
}
.attendance-actions .small-btn.decline {
  background: #fff0f2;
  color: #9b0b13;
  border-color: #edc2c8;
}
.status-pill.declined { background: #fff0f2; color: #9b0b13; }
.attendance-session-list {
  max-height: 430px;
  overflow: auto;
  padding-right: .2rem;
}
.participation-review-panel { margin-top: 1.45rem; }
.participation-summary-panel { margin-top: 1.45rem; }
.participation-summary-list {
  display: grid;
  gap: .75rem;
}
.participation-summary-row {
  grid-template-columns: minmax(230px, 1fr) repeat(3, 120px);
  margin: 0;
}
.participation-summary-row .member-identity {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.participation-summary-row small,
.participation-summary-row span { color: var(--muted); font-weight: 800; }
.participation-summary-row > div:not(.member-identity) {
  display: grid;
  gap: .15rem;
  justify-items: center;
}
.participation-summary-row > div:not(.member-identity) strong {
  color: var(--maroon);
  font-family: Georgia, serif;
  font-size: 1.5rem;
}
.participation-stats.stat-grid { margin-top: 1.25rem; }
@media (max-width: 1050px) {
  .participation-member-grid,
  .participation-board-grid { grid-template-columns: 1fr; }
  .attendance-review-row { grid-template-columns: 1fr; }
  .attendance-actions { justify-content: flex-start; }
  .participation-summary-row { grid-template-columns: 1fr; justify-items: start; }
  .participation-summary-row > div:not(.member-identity) { justify-items: start; }
}


/* Final polish: participation / top nav fixes */
.clear-records-btn,
button.clear-records-btn,
.participation-review-panel .btn.danger,
.participation-review-panel button.btn.danger {
  color: #fff !important;
}

.app-nav {
  gap: clamp(0.75rem, 1.25vw, 1.25rem);
}

.app-nav a {
  white-space: nowrap;
}

.participation-summary-row .member-identity small {
  display: none !important;
}


/* Final footer credit */
.footer-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .55rem;
}
.site-credit {
  margin: .15rem 0 0;
  color: rgba(255,255,255,.72);
  font-size: .78rem;
  line-height: 1.35;
  letter-spacing: .01em;
}

/* Final mobile homepage spacing fix */
@media (max-width: 760px) {
  .hero-landing {
    overflow: visible !important;
    min-height: 980px !important;
    height: auto !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .value-strip {
    position: absolute !important;
    left: 50% !important;
    bottom: -150px !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 28px) !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    z-index: 10 !important;
  }

  .value-strip > div {
    min-height: 116px !important;
    height: auto !important;
    padding: 1rem !important;
  }

  .value-strip > div:not(:last-child) {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }

  .mission-section {
    padding-top: 210px !important;
  }
}