/* =====================================================================
   ELLE Network — feminine, elegant, professional
   Crimson + blush from ellefo.com, warm ivory paper, champagne gold accents.
   Cormorant Garamond (headings) · Jost (text) · Great Vibes (script accents)
   ===================================================================== */
:root {
  --crimson: #b0162d;
  --crimson-dark: #8a0f22;
  --wine: #4a0d19;
  --blush: #fddbe0;
  --blush-soft: #fff1f3;
  --gold: #b8925a;
  --gold-soft: #f6eee2;
  --ink: #2b1d21;
  --muted: #7b6a6e;
  --line: #eadfe0;
  --paper: #fbf7f5;
  --card: #ffffff;
  --ok: #2f7a55;
  --ok-soft: #e5f3eb;
  --warn: #a5631a;
  --warn-soft: #fbefdf;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(74, 13, 25, .04), 0 8px 24px rgba(74, 13, 25, .06);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --script: 'Great Vibes', cursive;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.6 var(--sans); color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: var(--crimson); text-decoration: none; }
a:hover { color: var(--crimson-dark); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--wine); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 .8em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout ---------- */
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.page { padding: 28px 0 64px; }
.narrow { width: min(760px, 100%); margin-inline: auto; }
.stack { display: grid; gap: 20px; align-content: start; }
.grid-main, .profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grow { flex: 1; min-width: 0; }
.right { margin-left: auto; }
.center { text-align: center; }
.btn-row.center { justify-content: center; }
.pad { padding: 16px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin-bottom: 0; }

/* ---------- Type helpers ---------- */
.eyebrow { display: inline-block; font: 500 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.script { font-family: var(--script); font-size: 1.9rem; color: var(--crimson); line-height: 1.1; margin: 0; }
.lede { font-size: 1.12rem; color: var(--muted); }
.muted { color: var(--muted); }
.small, small { font-size: .86rem; }
.fnum { font-family: var(--serif); font-weight: 600; font-variant-numeric: lining-nums; }
.prose { white-space: normal; }
.link { font-weight: 500; font-size: .92rem; }
.back { display: inline-block; margin-bottom: 12px; font-size: .92rem; }
.note { font-style: italic; color: var(--ink); background: var(--blush-soft); border-left: 3px solid var(--blush); padding: 6px 10px; border-radius: 6px; margin: 6px 0 0; }
.quote { font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--wine); }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card + .card { margin-top: 20px; }
.stack > .card + .card, .grid-main .card + .card { margin-top: 0; }
.card.accent { background: linear-gradient(160deg, var(--blush-soft), #fff 70%); border-color: var(--blush); }
.card.subtle, .subtle { background: #fdfafa; box-shadow: none; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.card.list { padding: 8px 24px; }
.empty { padding: 48px 24px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 999px;
  font: 500 .95rem/1.2 var(--sans); letter-spacing: .02em; border: 1.5px solid var(--crimson); background: var(--crimson); color: #fff;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .05s; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--crimson-dark); border-color: var(--crimson-dark); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.sm { padding: 7px 14px; font-size: .85rem; }
.btn.full { width: 100%; }
.btn-outline { background: transparent; color: var(--crimson); }
.btn-outline:hover { background: var(--blush-soft); color: var(--crimson-dark); }
.btn-outline.light { color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-outline.light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: #f5eeef; border-color: transparent; color: var(--ink); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.inline-actions, .inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; flex: 1; min-width: 140px; }

/* ---------- Pills, tags, badges ---------- */
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 500 .74rem/1.4 var(--sans); letter-spacing: .03em;
  background: #f3ecec; color: var(--muted); vertical-align: middle; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.gold { background: var(--gold-soft); color: #8a6a3a; border: 1px solid #ead9bd; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--blush-soft); color: var(--crimson-dark); font-size: .82rem; border: 1px solid #f7cfd6; }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--crimson); color: #fff; font: 600 .68rem/1 var(--sans); }

/* ---------- Avatars ---------- */
.avatar { border-radius: 50%; object-fit: cover; flex: none; background: var(--blush); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.avatar.initials { display: inline-grid; place-items: center; font-family: var(--serif); font-weight: 600; color: var(--crimson-dark);
  background: linear-gradient(135deg, var(--blush), #f9e7d8); }
.avatar.group { background: linear-gradient(135deg, var(--gold-soft), var(--blush)); }
.avatar.sm { width: 36px; height: 36px; font-size: .9rem; }
.avatar.md { width: 52px; height: 52px; font-size: 1.15rem; }
.avatar.lg { width: 88px; height: 88px; font-size: 1.8rem; }
.avatar.xl { width: 132px; height: 132px; font-size: 2.6rem; border-width: 4px; }

/* ---------- Top navigation ---------- */
.topnav { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topnav .wrap { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none !important; }
.brand-mark { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; letter-spacing: .28em; color: var(--crimson); text-decoration: none !important; }
.brand-mark.big { font-size: clamp(3.2rem, 9vw, 5.4rem); letter-spacing: .3em; color: #fff; display: block; margin-right: -.3em; }
.brand-sub { font: 500 .7rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.mainnav { display: flex; gap: 2px; flex: 1; }
.mainnav a { position: relative; display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: .92rem; text-decoration: none; }
.mainnav a:hover { color: var(--ink); background: #f8f1f2; }
.mainnav a.active { color: var(--crimson); background: var(--blush-soft); }
.mainnav .badge, .bell .badge { position: absolute; top: 0; left: 20px; }
.ico { width: 19px; height: 19px; fill: currentColor; flex: none; }
.navright { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.bell { position: relative; color: var(--muted); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; }
.bell:hover { background: #f8f1f2; color: var(--ink); }
.bell .badge { left: 20px; top: 2px; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; border-radius: 50%; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: grid; }
.menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: grid; }
.menu-head small { color: var(--gold); letter-spacing: .06em; }
.menu-panel a, .menu-panel button { display: block; text-align: left; padding: 9px 12px; border-radius: 8px; color: var(--ink); font: inherit; font-size: .93rem; background: none; border: 0; cursor: pointer; width: 100%; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--blush-soft); text-decoration: none; }

/* ---------- Flash ---------- */
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; border: 1px solid; font-size: .95rem; }
.flash-success { background: var(--ok-soft); border-color: #c9e6d5; color: #1e5a3d; }
.flash-error { background: #fdecee; border-color: #f5c6cd; color: #8a0f22; }
.flash-info { background: var(--gold-soft); border-color: #ead9bd; color: #6d5326; }
.upsell { padding: 14px 16px; background: var(--gold-soft); border: 1px dashed #d9c19a; border-radius: 10px; color: #6d5326; margin-top: 12px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form h2, .form h3 { margin-bottom: 0; }
label { display: grid; gap: 6px; font-weight: 500; font-size: .92rem; color: var(--ink); }
input, select, textarea { width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid #dccfd1; border-radius: 10px; padding: 11px 13px; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 44px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--crimson); box-shadow: 0 0 0 3px rgba(176, 22, 45, .12); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--crimson); flex: none; margin: 0; }
input[type=file] { padding: 9px; background: #fdfafa; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
label.check input { margin-top: 3px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 500; font-size: .92rem; margin-bottom: 8px; padding: 0; }
.prefix, .suffix { display: flex; align-items: center; gap: 6px; border: 1px solid #dccfd1; border-radius: 10px; padding-inline: 12px; background: #fff; color: var(--muted); }
.prefix input, .suffix input { border: 0; padding-inline: 0; box-shadow: none !important; }
.prefix:focus-within, .suffix:focus-within { border-color: var(--crimson); box-shadow: 0 0 0 3px rgba(176, 22, 45, .12); }
.help { font-size: .85rem; color: var(--muted); margin: -2px 0 2px; }
.req { color: var(--crimson); }

.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.choice-cards legend { grid-column: 1 / -1; }
.choice { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 400; transition: border-color .15s, background .15s; }
.choice:hover { border-color: #e5b7bf; }
.choice:has(input:checked) { border-color: var(--crimson); background: var(--blush-soft); }
.choice span { display: grid; gap: 2px; }
.choice small { color: var(--muted); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend { width: 100%; }
.seg label, .seg a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 400; cursor: pointer; color: var(--ink); text-decoration: none; }
.seg label:has(input:checked), .seg a.active { border-color: var(--crimson); background: var(--blush-soft); color: var(--crimson-dark); }
.seg a small { color: var(--gold); font-weight: 500; }
.pick-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-list legend { width: 100%; }
.pick { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 400; cursor: pointer; }
.pick:has(input:checked) { border-color: var(--crimson); background: var(--blush-soft); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; padding: 14px; }
.filters input, .filters select { width: auto; flex: 1 1 160px; }
.filters .search { flex: 2 1 280px; display: flex; align-items: center; gap: 8px; border: 1px solid #dccfd1; border-radius: 10px; padding-left: 12px; color: var(--muted); }
.filters .search input { border: 0; box-shadow: none; }

/* ---------- Tabs, pager, steps ---------- */
.tabs { display: flex; gap: 4px; box-shadow: inset 0 -1px 0 var(--line); margin-bottom: 20px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 10px 16px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; }
.tabs a span { font-size: .8rem; color: var(--gold); margin-left: 4px; }
.tabs a.active { color: var(--crimson); border-color: var(--crimson); }
.pager { display: flex; gap: 12px; justify-content: center; align-items: center; margin-top: 24px; }
.steps { display: flex; gap: 0; list-style: none; padding: 0; margin: 0 0 20px; counter-reset: s; overflow-x: auto; }
.steps li { flex: 1; min-width: 110px; position: relative; padding-top: 30px; text-align: center; font-size: .82rem; color: var(--muted); counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line); display: grid; place-items: center; font-weight: 600; font-size: .75rem; z-index: 1; }
.steps li::after { content: ''; position: absolute; top: 12px; left: -50%; width: 100%; height: 1.5px; background: var(--line); }
.steps li:first-child::after { display: none; }
.steps li.active { color: var(--crimson); font-weight: 500; }
.steps li.active::before { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.steps li.done::before { content: '✓'; background: var(--blush); border-color: var(--blush); color: var(--crimson-dark); }

/* ---------- Rows & lists ---------- */
.row-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.row-item:last-child { border-bottom: 0; }
.row-item.compact { padding: 10px 0; align-items: center; }
.row-item .name { font-weight: 500; color: var(--ink); }
.row-item p { margin: 0; }
.notif { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: .92rem; }
.notif small { display: block; color: var(--muted); }
.notif.unread, .notif-row.unread { font-weight: 500; }
.notif-row { color: var(--ink); text-decoration: none !important; padding-inline: 8px; border-radius: 10px; }
.notif-row.unread { background: var(--blush-soft); }
.notif-row:hover { background: #faf3f4; }
.checklist { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 28px; font-size: .94rem; }
.checklist li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #dccfd1; }
.checklist li.done { color: var(--muted); text-decoration: line-through; text-decoration-color: #d8c8cb; }
.checklist li.done::before, .plan .checklist li::before { background: var(--blush) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%238a0f22' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--blush); }
.progress { height: 8px; background: #f3e9ea; border-radius: 999px; overflow: hidden; margin: 8px 0; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--crimson), #d8475e); border-radius: inherit; }
.greeting { margin-bottom: 20px; }
.greeting h1 { margin: 0; }

/* ---------- Members ---------- */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.member-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.member-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(74, 13, 25, .1); }
.mc-link { display: grid; justify-items: center; gap: 4px; padding: 26px 18px 14px; color: inherit; text-decoration: none !important; flex: 1;
  background: linear-gradient(180deg, var(--blush-soft) 0 64px, #fff 64px); }
.mc-link h3 { margin: 10px 0 0; font-size: 1.25rem; }
.mc-link .headline { font-size: .88rem; color: var(--muted); margin: 0; }
.mc-actions { padding: 0 18px 18px; display: flex; justify-content: center; gap: 8px; }

/* ---------- Profile ---------- */
.profile-hero { padding: 0; overflow: hidden; }
.profile-hero .cover { height: 140px; background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .25), transparent 40%), linear-gradient(120deg, var(--wine), var(--crimson) 55%, #d65a6e); }
.ph-body { display: flex; gap: 24px; padding: 0 28px 28px; align-items: flex-start; flex-wrap: wrap; }
.ph-body .avatar.xl { margin-top: -66px; }
.ph-text { flex: 1; min-width: 240px; padding-top: 14px; }
.ph-text h1 { margin-bottom: 4px; }
.headline { font-size: 1.05rem; color: var(--ink); margin: 0 0 4px; }
.exp { padding: 12px 0; border-bottom: 1px solid var(--line); }
.exp:last-child { border: 0; }
.exp h3 { margin: 0 0 2px; font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--ink); }
.exp p { margin: 0; }
.rec { margin: 0 0 16px; padding: 18px 20px; background: #fdf8f8; border-radius: 12px; border-left: 3px solid var(--blush); }
.rec p { font-family: var(--serif); font-size: 1.15rem; font-style: italic; color: var(--ink); line-height: 1.5; }
.rec footer { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rec footer span { display: grid; }
.rec footer small { color: var(--muted); }
details.card summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
details.card[open] summary { margin-bottom: 12px; }

/* ---------- Dialog ---------- */
.dialog { border: 0; border-radius: 18px; padding: 28px; width: min(520px, 100% - 32px); box-shadow: 0 30px 80px rgba(74, 13, 25, .25); }
.dialog::backdrop { background: rgba(43, 29, 33, .45); backdrop-filter: blur(2px); }

/* ---------- Messages ---------- */
.chat-shell { display: grid; grid-template-columns: 320px 1fr; gap: 20px; height: calc(100vh - 66px - 56px - 80px); min-height: 520px; }
.chat-shell .card + .card { margin-top: 0; }
.chat-list { overflow-y: auto; padding: 18px 12px; }
.chat-list .card-head { padding: 0 8px; }
.conv { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; color: var(--ink); text-decoration: none !important; }
.conv:hover { background: #faf3f4; }
.conv.active { background: var(--blush-soft); }
.conv .grow { display: grid; }
.conv small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-thread { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.thread-head { display: flex; gap: 12px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.thread-head .grow { display: grid; }
.thread-head .back { display: none; margin: 0; font-size: 1.3rem; }
.thread { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, #fff, #fdf9f9); }
.msg { display: grid; justify-items: start; max-width: 74%; }
.msg.mine { align-self: flex-end; justify-items: end; }
.msg .who { font-size: .75rem; color: var(--gold); margin: 0 0 2px 12px; }
.bubble { padding: 10px 15px; border-radius: 18px 18px 18px 4px; background: #f5eeef; overflow-wrap: anywhere; }
.msg.mine .bubble { background: var(--crimson); color: #fff; border-radius: 18px 18px 4px 18px; }
.msg time { font-size: .7rem; color: var(--muted); margin: 3px 8px 0; }
.composer { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); align-items: flex-end; }
.composer textarea { border-radius: 22px; padding: 11px 16px; max-height: 160px; }

/* ---------- Meetings ---------- */
.meet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.meet-grid .card + .card { margin-top: 0; }
.meet-card { color: inherit; text-decoration: none !important; display: grid; gap: 8px; transition: transform .15s, box-shadow .15s; }
.meet-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(74, 13, 25, .1); }
.meet-card h3 { margin: 4px 0 0; }
.meet-top { display: flex; gap: 10px; align-items: center; }
.meet-top .datebox { margin-right: auto; }
.host { display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.datebox { width: 54px; flex: none; text-align: center; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.datebox span { display: block; background: var(--crimson); color: #fff; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; padding: 3px 0; }
.datebox strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--wine); line-height: 1.3; }
.meet-row { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none !important; }
.meet-row:last-child { border: 0; }
.meet-row h3 { margin: 0; font-size: 1.1rem; }
.meet-row p { margin: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.facts > div { display: grid; padding: 12px 14px; border-radius: 10px; background: #fdf8f8; border: 1px solid var(--line); }
.facts small { color: var(--muted); }
.rsvp { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -8px; }

/* ---------- Projects & funding brief ---------- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.project-grid .card + .card { margin-top: 0; }
.project-card { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.project-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(74, 13, 25, .1); }
.project-card h3 { margin: 4px 0 0; font-size: 1.4rem; }
.project-card .facts { margin: 6px 0; grid-template-columns: 1fr 1fr; }
.project-card .facts .fnum { font-size: 1.5rem; color: var(--crimson); }
.pc-top { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.who { display: flex; gap: 10px; align-items: center; margin-top: auto; color: var(--ink); text-decoration: none !important; font-size: .9rem; }
.who span { display: grid; }
.who small { color: var(--muted); }
.who .badge { margin-left: auto; }

.brief-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.brief-main { display: grid; gap: 20px; }
.brief-main .card + .card { margin-top: 0; }
.sticky { position: sticky; top: 86px; display: grid; gap: 10px; }
.score { font-size: 1.2rem; color: var(--muted); }
.score .fnum { font-size: 3.4rem; color: var(--crimson); line-height: 1; }
.section-nav { display: grid; gap: 2px; margin: 6px 0 10px; border-left: 2px solid var(--line); }
.section-nav a { padding: 4px 12px; font-size: .88rem; color: var(--muted); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.section-nav a:hover { color: var(--crimson); border-color: var(--crimson); }
.qfield { display: grid; gap: 6px; }
.qfield.missing input, .qfield.missing select, .qfield.missing textarea { border-color: var(--crimson); background: #fff8f9; }
.prep ol { padding-left: 20px; margin: 8px 0 0; display: grid; gap: 8px; }
.prep { background: linear-gradient(160deg, var(--gold-soft), #fff 70%); border-color: #ead9bd; }

.brief-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px 32px; border-top: 4px solid var(--crimson); }
.brief-head .btn-row { grid-column: 1 / -1; margin: 0; }
.bh-text h1 { margin-bottom: 6px; }
.snapshot { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; align-self: start; }
.snapshot > div { background: #fdfafa; padding: 10px 14px; }
.snapshot > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.snapshot dt { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.snapshot dd { margin: 2px 0 0; font-weight: 500; }
.snapshot dd.fnum { font-size: 1.6rem; color: var(--crimson); font-weight: 600; line-height: 1.1; }
.brief-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; margin-top: 20px; align-items: start; }
.brief-body, .brief-aside { display: grid; gap: 20px; }
.brief-body .card + .card, .brief-aside .card + .card { margin-top: 0; }
.brief-section h2 { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.qa { margin: 0; display: grid; gap: 16px; }
.qa dt { font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; margin-bottom: 3px; }
.qa dd { margin: 0; }
.locked { background: repeating-linear-gradient(135deg, #fff, #fff 12px, #fdf6f7 12px, #fdf6f7 24px); }
.interest { padding: 12px 0; border-bottom: 1px solid var(--line); }
.interest:last-child { border: 0; }
.interest .btn-row { margin-top: 6px; }
.disclaimer { margin-top: 24px; text-align: center; }

/* ---------- Plans ---------- */
.plans-head { margin-bottom: 28px; }
.plans-head .seg { justify-content: center; margin-top: 16px; }
.plan-grid { display: grid; gap: 20px; align-items: stretch; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 1040px; margin: 0 auto 20px; }
.plan-grid .card + .card { margin-top: 0; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; }
.plan .checklist { flex: 1; margin-bottom: 20px; }
.plan.featured { border: 2px solid var(--crimson); box-shadow: 0 18px 48px rgba(176, 22, 45, .14); }
.ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--crimson); color: #fff; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
.price { margin: 6px 0 12px; color: var(--muted); }
.price .fnum { font-size: 2.8rem; color: var(--wine); }

/* ---------- Admin ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-grid .card + .card { margin-top: 0; }
.stat { display: grid; padding: 18px; }
.stat .fnum { font-size: 2rem; color: var(--wine); }
.stat small { color: var(--muted); }
.review-item { padding: 8px 0 14px; border-bottom: 1px solid var(--line); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); padding: 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table .inline-form select, .table .inline-form input { padding: 6px 8px; min-width: 0; font-size: .85rem; }

/* ---------- Auth (bare) pages ---------- */
body.bare { background: radial-gradient(circle at 10% 0%, var(--blush-soft), transparent 50%), radial-gradient(circle at 100% 100%, var(--gold-soft), transparent 45%), var(--paper); }
.auth-card { width: min(520px, 100% - 32px); margin: 48px auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); }
.auth-card > .brand-mark { display: block; text-align: center; margin-bottom: 8px; }
.auth-card h1 { text-align: center; font-size: 2rem; }

/* ---------- Landing ---------- */
.landing { padding: 0; }
.land-hero { color: #fff; text-align: center; padding: clamp(72px, 12vw, 140px) 16px; position: relative; overflow: hidden;
  background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .14), transparent 35%), radial-gradient(circle at 85% 80%, rgba(253, 219, 224, .2), transparent 40%), linear-gradient(135deg, var(--wine), var(--crimson) 60%, #c9384f); }
.land-inner { max-width: 760px; margin: 0 auto; }
.land-hero .tagline { color: var(--blush); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 4px 0 18px; }
.land-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 500; }
.land-hero .lede { color: rgba(255, 255, 255, .85); }
.land-hero .btn { background: #fff; color: var(--crimson); border-color: #fff; }
.land-hero .btn:hover { background: var(--blush); }
.land-hero .btn-outline.light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.land-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; padding: 72px 0; }
.feature .fnum { font-size: 2.2rem; color: var(--blush); -webkit-text-stroke: 1px var(--crimson); display: block; }
.feature h3 { font-size: 1.5rem; margin: 6px 0; }
.feature p { color: var(--muted); }
.land-supporter { background: var(--wine); color: #fff; padding: 64px 0; }
.land-supporter h2 { color: #fff; font-size: 2rem; }
.land-supporter .lede { color: rgba(255, 255, 255, .8); }
.land-supporter .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .7); }
.land-supporter .btn-outline:hover { background: rgba(255, 255, 255, .1); }

/* ---------- Public card ---------- */
.public-card { padding: 32px 0 64px; }
.pc-wrap { width: min(760px, 100% - 32px); margin: 0 auto; display: grid; gap: 20px; }
.pc-wrap .card + .card { margin-top: 0; }
.pc-wrap > .brand-mark { text-align: center; }
.pc-note { border-top: 4px solid var(--crimson); }

/* ---------- Footer ---------- */
.appfoot { border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: .85rem; background: #fff; }
.appfoot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.appfoot .script { font-size: 1.5rem; }


/* ---------- Mentoring ---------- */
.mentor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.mentor-grid .card + .card { margin-top: 0; }
.mentor-card { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.mentor-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(74, 13, 25, .1); }
.mentor-card .who { margin: 0 0 6px; }
.mentor-card h3 { margin: 0; font-size: 1.35rem; }
.mentor-meta { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.price-tag { font-size: 1.4rem; color: var(--crimson); }
.stars { color: var(--gold); letter-spacing: 1px; }
.stars .off { color: #e6dccb; }
.slot-days { display: grid; gap: 16px; max-height: 460px; overflow-y: auto; padding-right: 4px; }
.slot-day h3 { font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.slot-list { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { position: relative; display: inline-flex; font-weight: 500; cursor: pointer; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot span { padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: .9rem; transition: all .12s; }
.slot:hover span { border-color: #e5b7bf; }
.slot input:checked + span { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.slot input:focus-visible + span { outline: 2px solid var(--crimson); outline-offset: 2px; }
.avail-day { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 8px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.avail-day strong { padding-top: 8px; font-size: .9rem; }
.avail-slots { display: grid; gap: 6px; }
.avail-row { display: flex; align-items: center; gap: 6px; }
.avail-row input { padding: 7px 6px; font-size: .88rem; flex: 1 1 0; min-width: 0; width: auto; }
.rating-pick { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating-pick input { position: absolute; opacity: 0; }
.rating-pick label { font-size: 2rem; color: #e6dccb; cursor: pointer; display: inline; }
.rating-pick label:hover, .rating-pick label:hover ~ label, .rating-pick input:checked ~ label { color: var(--gold); }
.big-num { font-size: 2.2rem; color: var(--crimson); margin: 0; }
.mt { margin-top: 12px; }
.left { text-align: left; }

/* ---------- Opportunities ---------- */
.opp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.opp-list .card + .card { margin-top: 0; }
.opp-card { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.opp-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(74, 13, 25, .1); }
.opp-card h3 { margin: 4px 0 0; font-size: 1.3rem; }
.opp-card p { margin: 0; }
.opp-card .who { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.opp-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.tag.tiny { font-size: .7rem; padding: 1px 8px; }
label.check.inline { display: inline-flex; align-items: center; white-space: nowrap; }
.digest-frame { width: 100%; max-width: 680px; height: 1600px; border: 1px solid var(--line); border-radius: 14px; background: #fbf7f5; display: block; }
.mobile-only { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .mainnav a span:not(.badge) { display: none; }
  .mainnav a { padding: 10px; }
  .brief-cols { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .grid-main, .profile-layout, .brief-layout { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .brief-head { grid-template-columns: 1fr; }
  .chat-shell { grid-template-columns: 1fr; height: calc(100vh - 66px - 40px); }
  .chat-shell.has-thread .chat-list { display: none; }
  .chat-shell:not(.has-thread) .chat-thread { display: none; }
  .thread-head .back { display: block; }
}
@media (max-width: 680px) {
  .topnav { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .topnav .wrap { gap: 10px; height: 58px; }
  .brand-sub { display: none; }
  .brand-mark { font-size: 1.35rem; letter-spacing: .2em; }
  .mainnav { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 30; }
  .mainnav a { flex-direction: column; gap: 2px; font-size: .66rem; padding: 6px 4px; }
  .mainnav a span:not(.badge) { display: block; }
  body.app { padding-bottom: 70px; }
  .mainnav a.nav-secondary { display: none; }
  .menu-panel a.mobile-only { display: block !important; }
  .opp-list, .mentor-grid { grid-template-columns: 1fr; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .ph-body { padding: 0 18px 20px; }
  .ph-body .avatar.xl { width: 108px; height: 108px; margin-top: -54px; }
  .msg { max-width: 88%; }
  .snapshot { grid-template-columns: 1fr 1fr; }
  .auth-card { padding: 26px 20px; margin: 24px auto; }
  .chat-shell { height: calc(100vh - 58px - 70px - 32px); }
}

/* ---------- Print (funding brief → PDF) ---------- */
@media print {
  .topnav, .appfoot, .no-print, .back, .flash, .mainnav { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .card { box-shadow: none; border-color: #ddd; break-inside: avoid; }
  .brief-cols { grid-template-columns: 1fr; }
  .page { padding: 0; }
  a { color: var(--ink); }
}
