/* ===========================================================================
   V2 visual system applied to the core account/organizer journey (Profile,
   My Fundraisers, Fundraiser Dashboard, and the Create/Edit Board modal on
   admin.html). See the Launch Blocker handoff, section 15: "bring these
   core journey surfaces into the current V2 visual system - this is NOT a
   complete site redesign."

   This file is loaded AFTER base.css/styles.css, and ONLY on profile.html,
   fundraisers.html, fundraiser.html, admin.html, (PF3) v2/manage-fundraiser.html,
   and (Fundraiser Access & Discovery Slice 1) v2/admin-fundraisers.html.
   It re-declares the same
   :root custom properties and re-skins the same utility class names those
   pages' existing JS already emits (.wrap/.panel/.btn/.btn2/.row/.sub/
   .stat-item/.admin-boards-grid/.admin-board-card/.modal.adminModal/
   .formGrid) - no new class system, no markup rewrite. Because it is scoped
   to these four pages only, admin.html's own out-of-scope dashboard
   sections and any other legacy page that loads base.css alone are
   unaffected in structure - they just inherit the lighter palette.
   =========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap");

:root{
  --bg:#ffffff; --card:#ffffff; --text:#0f1729; --muted:#5b6478; --border:#e6ebf5;
  --primary:#2554ea; --primary-dark:#173aad; --primary-tint:#e8edfd;
  --green:#0f9d58; --yellow:#d97706;
  --shadow:0 1px 2px rgba(16,23,42,.04), 0 10px 28px -16px rgba(16,23,42,.16);
}

body{ background:var(--bg); color:var(--text); font-family:'Inter',system-ui,-apple-system,sans-serif; }
h1,h2,h3{ font-family:'Sora',sans-serif; letter-spacing:-.01em; color:var(--text); }
a{ color:var(--primary); }

/* Canonical light-theme wordmark: blue 4U icon, dark/navy "Squares4U" text
   - blue is reserved for links/actions/accent. The blanket `a{color:
   var(--primary)}` above (this file loads after v2.css, same 0,0,1
   specificity as v2.css's own `a{color:inherit}`, so it wins by load
   order alone) was turning the header's brand link blue on every page
   that loads this file (profile, My Fundraisers, fundraiser dashboard,
   admin) while pages that only load v2.css (home, board) correctly
   inherited the dark body text color instead - the exact "wordmark
   varies by page" bug. Restated here, once, in the shared stylesheet
   rather than per-page, so every page that loads this file matches. */
.brand{ color:var(--text); }

.wrap{ max-width:1080px; }
.header{ padding:24px 0 8px; align-items:flex-start; }

.account-nav{
  display:flex; align-items:center; padding:14px 0; margin-bottom:6px;
  border-bottom:1px solid var(--border);
}
.account-nav .brand{
  display:flex; align-items:center; gap:10px;
  font-family:'Sora',sans-serif; font-weight:800; font-size:17px; color:var(--text);
}
.meBox{
  font-size:13px; font-weight:700; color:var(--text);
  background:var(--primary-tint); border:1px solid var(--border);
  border-radius:100px; padding:8px 14px; cursor:pointer;
}
.account-nav .brand-mark{
  width:30px; height:30px; border-radius:9px;
  background:linear-gradient(155deg,var(--primary),#5b8bff);
  display:grid; place-items:center; color:#fff; font-weight:800; font-size:12px; flex:none;
}

.panel{
  background:var(--card); border:1px solid var(--border); border-radius:16px;
  box-shadow:var(--shadow); padding:20px; margin-bottom:16px;
}

.sub{ color:var(--muted); font-size:13px; }

label{ color:var(--text); font-size:12.5px; font-weight:700; margin-bottom:5px; }

input, select, textarea{
  background:#fff; color:var(--text); border:1px solid var(--border);
  border-radius:10px; padding:10px 12px; font-size:14px; font-family:inherit;
}
input:focus, select:focus, textarea:focus{
  outline:2px solid var(--primary); outline-offset:1px; border-color:var(--primary);
}
select option{ background:#fff; color:var(--text); }
/* .formGrid's own input/select/textarea rule in styles.css (0,1,1
   specificity: near-transparent white background + white text, designed
   for that page's dark modal) beats the plain tag rule above on
   specificity alone, regardless of load order - match it here so the
   Create/Edit Board and Add User forms are actually readable instead of
   white-on-white. See openAdminModal()'s stray "notice-modal-body" class
   (removed in admin.js) for the other half of this bug. */
.formGrid input, .formGrid select, .formGrid textarea{
  background:#fff; color:var(--text); border:1px solid var(--border);
}
.formGrid label{ color:var(--text); opacity:1; }

.btn{
  background:#fff; color:var(--text); border:1px solid var(--border);
  border-radius:10px; padding:10px 16px; font-weight:700; font-size:14px; cursor:pointer;
}
.btn:hover{ filter:none; border-color:var(--primary); color:var(--primary); }
.btn2{ background:var(--primary); color:#fff; border-color:var(--primary); box-shadow:0 6px 16px -6px rgba(37,84,234,.5); }
.btn2:hover{ background:var(--primary-dark); color:#fff; border-color:var(--primary-dark); }
.btn.danger{ background:#fff; color:#b91c1c; border-color:#f3c6c6; }

/* v2.css's .btn-primary/.btn-ghost/.btn-sm modifiers (used by the shared
   global header - core/site_header.js) would otherwise lose to the plain
   .btn rule above on cascade order alone (both single-class selectors,
   this file loads after v2.css) - restated here so the header's buttons
   render correctly on every page that loads this file, not just the ones
   that load v2.css alone. */
.btn-primary{ background:var(--primary); color:#fff; border-color:var(--primary); box-shadow:0 6px 16px -6px rgba(37,84,234,.5); }
.btn-primary:hover{ background:var(--primary-dark); color:#fff; border-color:var(--primary-dark); filter:none; }
.btn-ghost{ background:#fff; color:var(--text); border-color:var(--border); }
.btn-sm{ padding:9px 15px; font-size:13.5px; border-radius:8px; }

.stat-item{ background:var(--primary-tint); border:none; border-radius:12px; padding:12px 14px; }
.stat-item .stat-label{ font-size:10.5px; text-transform:uppercase; letter-spacing:.03em; color:var(--primary-dark); font-weight:700; margin-bottom:2px; }
.stat-item .stat-value{ font-family:'Sora',sans-serif; font-size:19px; font-weight:700; color:var(--text); }
.stat-item .status-open{ color:var(--green); }
.stat-item .status-locked{ color:#b45309; }
.stat-item .available{ color:var(--muted); }
.stat-item .unpaid{ color:var(--yellow); }
.stat-item .paid{ color:var(--green); }

.admin-boards-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:12px; }
.admin-board-card{
  border:1px solid var(--border); border-radius:14px; padding:16px;
  background:var(--card); box-shadow:var(--shadow);
}

/* My Fundraisers cards - compact dashboard summaries, not the full
   fundraiser story (that's the individual fundraiser page's job). A wider
   min column than .admin-board-card so a handful of cards fill the page
   intentionally instead of leaving a big empty gap next to one narrow
   card - see the "huge empty area" complaint this replaces. */
.fundraiser-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:14px; }
.fundraiser-card{
  display:flex; flex-direction:column; gap:10px;
  border:1px solid var(--border); border-radius:14px; padding:18px;
  background:var(--card); box-shadow:var(--shadow);
}
.fc-top{ display:flex; align-items:center; gap:12px; min-width:0; }
.fc-mark{ width:44px; height:44px; border-radius:10px; object-fit:cover; flex:none; }
.fc-mark-fallback{
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-family:'Sora',sans-serif; font-weight:800; font-size:15px;
}
.fc-id{ min-width:0; }
.fc-name{
  font-family:'Sora',sans-serif; font-weight:700; font-size:15.5px; color:var(--text);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.fc-status{ font-size:12.5px; color:var(--muted); margin-top:2px; }
.fc-desc{
  font-size:13px; color:var(--muted); line-height:1.5;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.fc-action{ margin-top:auto; align-self:flex-start; }

/* Individual fundraiser page - boards are the primary section (see
   .fr-boards-panel, just a plain .panel above the story panel in markup
   order); the story/description gets a readable constrained width with
   paragraph spacing instead of one raw full-width block, and organizer
   payment/contact config renders as clean label/value chips instead of a
   comma-joined sentence of raw data. */
.fr-desc{ max-width:640px; color:var(--text); font-size:14.5px; line-height:1.65; }
.fr-desc p{ margin:0 0 10px; }
.fr-desc p:last-child{ margin-bottom:0; }
.fr-config-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:12px; }
.fr-config-grid:not(:empty){ margin-top:16px; padding-top:16px; border-top:1px solid var(--border); }
.fr-config-label{ color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.03em; font-weight:700; margin-bottom:2px; }
.fr-config-value{ color:var(--text); font-weight:600; font-size:13.5px; word-break:break-word; }
.fr-board-meta{ font-size:12px; color:var(--muted); margin-top:2px; }

/* PF1 Featured Board hero (public fundraiser page) - the primary call to
   action, distinct from the plain .fr-boards-panel cards below it. Mobile:
   the CTA stacks under the text instead of shrinking, so it's always a
   full, easy tap target - see D.4/§14 "don't make the hero harder to reach
   on mobile." */
.fr-featured-panel{ border:1px solid var(--border); background:linear-gradient(135deg, rgba(37,84,234,.08), rgba(37,84,234,.02)); }
.fr-featured-eyebrow{
  display:inline-block; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color:#2554ea; margin-bottom:10px;
}
.fr-featured-body{ display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
.fr-featured-name{ font-family:'Sora',sans-serif; font-size:20px; color:var(--text); display:block; }
.fr-featured-cta{ flex:none; white-space:nowrap; }
@media (max-width:520px){
  .fr-featured-body{ flex-direction:column; align-items:stretch; }
  .fr-featured-cta{ text-align:center; }
}

/* Shared modal shell (.modal.adminModal / .modalCard / .formGrid) used by
   the Create/Edit Board form, Create/Edit Fundraiser forms, etc. */
.modal.adminModal{ background:rgba(15,23,41,.45); }
.modalCard{ background:var(--card); border:1px solid var(--border); box-shadow:0 24px 60px -20px rgba(16,23,42,.35); color:var(--text); }
.modalHead{ border-bottom:1px solid var(--border); }
.modalHead h3{ color:var(--text); }
.modalHead .x{ color:var(--muted); }
.formGrid .hint{ color:var(--muted); }
.form-section{
  border:1px solid var(--border); border-radius:14px; padding:16px; margin-bottom:16px; background:var(--card);
}
.form-section > summary{
  font-family:'Sora',sans-serif; font-weight:700; font-size:14.5px; color:var(--text);
  cursor:pointer; list-style:none;
}
.form-section > summary::-webkit-details-marker{ display:none; }
.form-section > summary .form-section-sub{ display:block; font-family:'Inter',sans-serif; font-weight:500; font-size:12.5px; color:var(--muted); margin-top:2px; }
.form-section[open] > summary{ margin-bottom:14px; }

/* Create/Edit Board modal - section dividers (Launch Blocker section 16:
   "organize, do not rewrite" - these only label the EXISTING field order,
   they don't move any field). */
.form-section-title{
  font-family:'Sora',sans-serif; font-weight:800; font-size:12px;
  text-transform:uppercase; letter-spacing:.04em; color:var(--primary-dark);
  background:var(--primary-tint); border-radius:8px; padding:6px 10px;
  margin:14px 0 2px;
}
.formGrid > .form-section-title:first-child{ margin-top:0; }
/* Multi-game coverage lines on public fundraiser board cards (fundraiser_public.js) */
.fr-board-progress{ font-size:12px; color:var(--muted); margin-top:6px; line-height:1.5; }
.fr-board-progress div:last-child{ color:var(--navy, inherit); font-weight:600; }

/* ===========================================================================
   PF3: Fundraiser Management Shell (v2/manage-fundraiser.html). Extends the
   same tokens/utility classes above - no new design system, no rewrite of
   the interim fundraiser page's own styling.
   =========================================================================== */

/* Convergence audit: organizer tab navigation now reuses the real
   .chip-row/.chip pattern (public/v2/styles/v2.css) instead of a
   PF3-only component here - see manage_fundraiser.js's renderTabs(). */

.mf-section-head{
  justify-content:space-between; align-items:baseline;
  margin:24px 0 10px;
}
.mf-section-head:first-child{ margin-top:0; }

.mf-attn-list{ display:flex; flex-direction:column; gap:10px; }
.mf-attn-item{
  display:flex; align-items:center; gap:12px;
  padding:10px 0; border-bottom:1px solid var(--border);
}
.mf-attn-item:last-child{ border-bottom:none; padding-bottom:0; }
.mf-attn-ic{ font-size:20px; flex:none; }
.mf-attn-text{ flex:1; min-width:0; font-weight:600; font-size:14px; color:var(--text); }
.mf-attn-text small{ display:block; font-weight:500; color:var(--muted); font-size:12px; margin-top:2px; }

.mf-featured-badge{
  font-size:11px; font-weight:800; color:#fff; background:var(--primary);
  border-radius:100px; padding:3px 9px;
}

/* Slice 2: campaign-card hierarchy (identity/status -> progress ->
   sold/unpaid/price mini-stats -> next-game -> Primary Organizer ->
   one primary action) - see boardCardHtml() in manage_fundraiser.js. */
.mf-board-head{ display:flex; justify-content:space-between; align-items:baseline; gap:8px; }
.mf-board-head-badges{ display:flex; gap:6px; align-items:baseline; flex-wrap:wrap; justify-content:flex-end; }

.mf-board-progress{ height:7px; background:var(--border); border-radius:100px; overflow:hidden; margin-top:10px; }
.mf-board-progress i{ display:block; height:100%; background:var(--primary); border-radius:100px; }

.mf-board-mini-stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:10px; text-align:center; }
.mf-board-mini-stat b{ display:block; font-family:'Sora',sans-serif; font-weight:700; font-size:14.5px; color:var(--text); }
.mf-board-mini-stat span{ font-size:10px; text-transform:uppercase; letter-spacing:.03em; color:var(--muted); }
.mf-board-mini-stat.has-unpaid b{ color:var(--yellow); }

.mf-board-context{ margin-top:8px; }
.mf-board-organizer{ font-size:12px; color:var(--muted); margin-top:4px; }

.mf-board-actions{ display:flex; align-items:center; gap:8px; margin-top:14px; flex-wrap:wrap; }
.mf-board-primary-action{ flex:none; }
.mf-board-secondary-actions{ display:flex; gap:6px; flex-wrap:wrap; }

@media (max-width:480px){
  .mf-board-actions{ flex-direction:column; align-items:stretch; }
  .mf-board-primary-action{ width:100%; text-align:center; }
}

.mf-future-panel{ text-align:center; padding:40px 24px; }
.mf-future-tag{
  display:inline-block; font-size:10.5px; font-weight:800; text-transform:uppercase; letter-spacing:.04em;
  color:var(--primary-dark); background:var(--primary-tint); border-radius:100px; padding:4px 12px; margin-bottom:14px;
}
.mf-future-title{ margin:0 0 8px; }
.mf-future-panel .sub{ max-width:480px; margin:0 auto 18px; }

@media (max-width:600px){
  .mf-attn-item{ align-items:flex-start; }
  .mf-attn-item .btn{ flex:none; }
}

/* ---------------- PF4B: Supporters ---------------- */
.mf-filter-bar{
  display:flex; gap:10px; flex-wrap:wrap; margin-bottom:16px;
}
.mf-filter-bar input[type="search"]{ flex:2; min-width:200px; }
.mf-filter-bar select{ flex:1; min-width:140px; }

/* Slice 2: dense organizer ledger - one semantic row per Supporter
   (Supporter | Squares | Total | Payment | Boards), reflowed by CSS alone
   (not a duplicated desktop/mobile DOM) into a compact card below 600px.
   Fixed-width non-identity columns keep every row's grid tracks
   pixel-identical without a literal <table>; role="table"/row/cell/
   columnheader below carries the same header/value association a real
   <table> would give assistive tech at any width. */
.mf-supporter-ledger{
  border:1px solid var(--border); border-radius:14px;
  background:var(--card); box-shadow:var(--shadow); overflow:hidden;
}
.mf-supporter-ledger-head{
  display:grid; grid-template-columns:minmax(0,1fr) 72px 84px 190px 130px; gap:14px;
  padding:10px 16px; background:var(--primary-tint);
  font-size:10.5px; font-weight:800; text-transform:uppercase; letter-spacing:.03em; color:var(--primary-dark);
}
.mf-supporter-ledger-head span:nth-child(2), .mf-supporter-ledger-head span:nth-child(3){ text-align:right; }

.mf-supporter-row{
  display:grid; grid-template-columns:minmax(0,1fr) 72px 84px 190px 130px; gap:14px; align-items:center;
  padding:12px 16px; border-bottom:1px solid var(--border); cursor:pointer;
}
.mf-supporter-ledger-body .mf-supporter-row:last-child{ border-bottom:none; }
.mf-supporter-row:hover, .mf-supporter-row.expanded{ background:var(--primary-tint); }

.mf-cell-identity{ min-width:0; }
.mf-supporter-name{
  font-family:'Sora',sans-serif; font-weight:700; font-size:14.5px; color:var(--text);
  display:flex; align-items:center; gap:7px; flex-wrap:wrap;
}
.mf-supporter-name-text{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%; }
.mf-supporter-contact{ font-size:12px; color:var(--muted); margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mf-offline-badge{
  font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.03em;
  color:var(--muted); background:var(--surface, #f4f5f8); border:1px solid var(--border);
  border-radius:100px; padding:2px 8px; white-space:nowrap;
}
.mf-supporter-chevron{ display:inline-block; transition:transform .15s ease; color:var(--muted); flex:none; }
.mf-supporter-row.expanded .mf-supporter-chevron{ transform:rotate(90deg); }

.mf-cell-squares, .mf-cell-total{ text-align:right; font-weight:700; font-family:'Sora',sans-serif; font-size:14px; color:var(--text); }
.mf-cell-payment{ display:flex; flex-direction:column; gap:3px; align-items:flex-start; }
.mf-cell-boards{ font-size:12.5px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.mf-payment-pill{
  font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.03em;
  padding:2px 8px; border-radius:100px; display:inline-block;
}
.mf-pay-paid{ background:var(--green-tint); color:var(--green); }
.mf-pay-partial{ background:var(--amber-tint); color:var(--yellow); }
.mf-pay-unpaid{ background:var(--surface-2); color:var(--muted); }
.mf-payment-detail{ font-size:11.8px; color:var(--muted); }
.mf-payment-detail .paid{ color:var(--green); font-weight:700; }
.mf-payment-detail .due{ color:var(--yellow); font-weight:700; }

.mf-cell-label{ display:none; }

.mf-purchase-list{
  margin:0; padding:14px 16px; border-top:1px solid var(--border); background:var(--surface-2, #f8f9fc);
  display:flex; flex-direction:column; gap:14px;
}

/* PF5B: purchases grouped by Board (task 1) - Copy Board Link lives once
   per group here, never repeated per purchase row. */
.mf-purchase-board-group{ display:flex; flex-direction:column; gap:6px; }
.mf-purchase-board-group + .mf-purchase-board-group{ padding-top:14px; border-top:1px dashed var(--border); }
.mf-purchase-board-head{ display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; }
.mf-purchase-board-name{ font-family:'Sora',sans-serif; font-weight:700; font-size:13px; color:var(--text); }

.mf-purchase-row{
  display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap;
  font-size:12.8px; padding:6px 0;
}
.mf-purchase-where{ color:var(--text); }
.mf-purchase-where small{ display:block; color:var(--muted); font-size:11.5px; margin-top:1px; }
.mf-purchase-actions{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.mf-purchase-amount{ text-align:right; flex:none; color:var(--text); font-weight:600; }
.mf-purchase-mark{ flex:none; }

@media (max-width:600px){
  .mf-supporter-ledger{ border:none; box-shadow:none; background:transparent; overflow:visible; }
  .mf-supporter-ledger-head{ display:none; }
  .mf-supporter-ledger-body{ display:flex; flex-direction:column; gap:10px; }
  .mf-supporter-row{
    display:flex; flex-direction:column; align-items:stretch; gap:6px;
    border:1px solid var(--border); border-radius:12px; padding:14px;
    background:var(--card); box-shadow:var(--shadow);
  }
  .mf-cell-squares, .mf-cell-total, .mf-cell-boards{
    display:flex; justify-content:space-between; align-items:center; text-align:left; font-size:12.8px;
    color:var(--text); overflow:visible; white-space:normal;
  }
  .mf-cell-squares .mf-cell-value, .mf-cell-total .mf-cell-value{ font-family:'Sora',sans-serif; font-weight:700; }
  .mf-cell-payment{ flex-direction:row; align-items:center; gap:8px; flex-wrap:wrap; }
  .mf-cell-label{ display:inline; font-size:11.5px; color:var(--muted); font-weight:600; }
  .mf-supporter-name-text, .mf-supporter-contact, .mf-cell-boards{ white-space:normal; overflow:visible; text-overflow:clip; }
  .mf-purchase-list{ border-top:none; border-radius:12px; margin-top:-4px; }
}

/* Manage Board Convergence Slice 1: the Manage Board Workspace Audit
   flagged the global nav links (Find a Board / Multi-Game Campaigns / How
   it Works) as disappearing at narrow widths with no way back to them.
   Investigation found this is not unique to admin.html - v2.css's own
   `@media (max-width:600px){ .nav-links{display:none;} }` (loaded on
   every v2 page via core/site_header.js) has no hamburger/drawer
   replacement anywhere in the real product today - only the static
   prototype (prototype/organizer-experience-v1) has one. Building a new
   hamburger/drawer component is a materially larger change than this
   slice's scope, and would itself be "a third mobile-navigation
   implementation" alongside the prototype's - the opposite of the
   instruction. Smallest correct fix: keep the links visible and let them
   wrap onto their own line, scoped to this page family only (this
   stylesheet already covers profile/fundraisers/fundraiser/admin/
   manage-fundraiser - see this file's own header comment), rather than
   silently doing nothing or inventing new mobile chrome. */
@media (max-width:600px){
  .nav-links{ display:flex; flex-wrap:wrap; gap:8px 14px; font-size:12.5px; }
}

/* Fundraiser Access & Discovery Slice 1, Part E: Platform Admin's All
   Fundraisers directory. Deliberately the same grid-ledger pattern
   .mf-supporter-ledger* already established above (border/radius/shadow/
   primary-tint header, one row per record) rather than a new table
   component - just its own column widths for Fundraiser/Owner/Boards/
   Updated/Actions. */
.admin-fr-ledger{
  border:1px solid var(--border); border-radius:14px;
  background:var(--card); box-shadow:var(--shadow); overflow:hidden;
}
.admin-fr-ledger-head{
  display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) 100px 120px 240px; gap:14px;
  padding:10px 16px; background:var(--primary-tint);
  font-size:10.5px; font-weight:800; text-transform:uppercase; letter-spacing:.03em; color:var(--primary-dark);
}
.admin-fr-row{
  display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) 100px 120px 240px; gap:14px; align-items:center;
  padding:12px 16px; border-bottom:1px solid var(--border);
}
.admin-fr-ledger-body .admin-fr-row:last-child{ border-bottom:none; }
.admin-fr-row:hover{ background:var(--primary-tint); }
.admin-fr-name{ font-weight:700; }
.admin-fr-cell{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-fr-actions{ display:flex; gap:8px; flex-wrap:wrap; }

@media (max-width:760px){
  .admin-fr-ledger-head{ display:none; }
  .admin-fr-row{ grid-template-columns:1fr; gap:4px; }
  .admin-fr-cell{ white-space:normal; overflow:visible; text-overflow:clip; }
  .admin-fr-cell::before{ content: attr(data-label); display:block; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.03em; color:var(--primary-dark); }
}

/* ---------------- People & Access v1 ---------------- */
/* Owner card: visually distinct from an ordinary organizer card (no
   checkbox, no Remove) - a small eyebrow label + name + a badge that
   reads "Owner", same pill treatment as .mf-featured-badge so "this is
   the one non-removable, non-configurable row" reads at a glance. */
.mf-owner-card{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.mf-owner-eyebrow{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; color:var(--muted); margin-bottom:2px; }
.mf-owner-name{ font-family:'Sora',sans-serif; font-weight:700; font-size:16px; color:var(--text); }
.mf-owner-badge{
  font-size:11px; font-weight:800; color:#fff; background:var(--primary);
  border-radius:100px; padding:4px 12px; flex:none;
}

.mf-organizer-list{ display:flex; flex-direction:column; gap:10px; }
.mf-organizer-card{ display:flex; flex-direction:column; gap:10px; }
.mf-organizer-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.mf-organizer-name{ font-family:'Sora',sans-serif; font-weight:700; font-size:14.5px; color:var(--text); }
.mf-organizer-email{ font-size:12px; color:var(--muted); margin-top:1px; }
.mf-organizer-role{
  display:inline-block; margin-top:5px; font-size:10.5px; font-weight:800; text-transform:uppercase; letter-spacing:.03em;
  color:var(--primary-dark); background:var(--primary-tint); border-radius:100px; padding:3px 9px;
}
/* Remove is deliberately the quietest control on the card (plain-text
   link weight, muted until hover) - it must never visually compete with
   the Can-create-boards toggle, which is the card's normal, everyday
   action. */
.mf-organizer-remove{
  flex:none; background:none; border:none; padding:2px 0; cursor:pointer;
  font-size:12.5px; font-weight:600; color:var(--muted);
}
.mf-organizer-remove:hover{ color:var(--red); text-decoration:underline; }

.mf-cc-toggle-row{
  display:flex; align-items:flex-start; gap:9px; cursor:pointer;
  padding-top:8px; border-top:1px solid var(--border);
}
.mf-cc-toggle-row input[type="checkbox"]{ margin-top:3px; flex:none; width:16px; height:16px; }
.mf-cc-toggle-row span{ font-size:13.5px; font-weight:700; color:var(--text); }
.mf-cc-toggle-row small{ display:block; font-weight:500; color:var(--muted); font-size:12px; margin-top:2px; }
.mf-cc-toggle-row.saving{ opacity:.6; pointer-events:none; }

.mf-organizer-also{ font-size:12px; color:var(--muted); }
.mf-organizer-also div + div{ margin-top:2px; }

.mf-add-organizer-panel{ max-width:480px; }

@media (max-width:480px){
  .mf-owner-card{ flex-direction:column; align-items:flex-start; }
  .mf-organizer-head{ flex-direction:column; align-items:stretch; }
  .mf-organizer-remove{ align-self:flex-end; }
}

/* Fundraiser Access & Discovery - Discoverability Polish: when a user owns
   nothing but helps with at least one fundraiser, public/app/fundraisers.js
   moves #ownedSection after #helpingSection and adds this class - a
   smaller, quieter "Owned by me" empty state instead of a large empty
   section leading the page. Ownership functionality itself (Create
   Fundraiser) is unchanged/still present, just visually de-emphasized. */
.fr-section-compact strong{ font-size:13px; font-weight:700; color:var(--muted); }
.fr-section-compact #ownedEmpty{ margin-top: 8px; }
.mf-organizer-transfer{ padding-top:8px; border-top:1px solid var(--border); }

/* ---------------- Team Fundraising (M2): organizer home views, team page ----------------
   Same tokens and card language as .fundraiser-card / .mf-* above - no new
   design system. */
.chip-count:empty{ display:none; }
.chip-count{ margin-left:4px; font-size:11px; font-weight:800; opacity:.75; }
a.chip{ text-decoration:none; display:inline-block; }
.home-entity-list{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:14px; }
.home-empty{ margin-top:14px; padding:18px; border:1px dashed var(--border); border-radius:12px; }
.home-empty .sub{ margin-top:4px; max-width:560px; }
.entity-card{
  display:flex; flex-direction:column; gap:10px;
  border:1px solid var(--border); border-radius:14px; padding:16px;
  background:var(--card); box-shadow:var(--shadow); color:inherit;
}
a.entity-link{ text-decoration:none; }
a.entity-link:hover{ border-color:var(--primary); }
.entity-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.entity-name{ font-family:'Sora',sans-serif; font-weight:700; font-size:15.5px; color:var(--text); }
.entity-stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; text-align:center; }
.entity-stats b{ display:block; font-family:'Sora',sans-serif; font-weight:700; font-size:14.5px; color:var(--text); }
.entity-stats span{ font-size:10px; text-transform:uppercase; letter-spacing:.03em; color:var(--muted); }
.entity-stats .has-unpaid b{ color:var(--yellow); }
.entity-funds{ display:flex; flex-direction:column; gap:4px; }
.entity-fund{ display:flex; justify-content:space-between; gap:10px; padding:7px 0; border-top:1px solid var(--border); font-size:13px; font-weight:600; color:var(--text); text-decoration:none; }
.entity-fund:hover span:first-child{ color:var(--primary); }
.ctx-tags{ display:flex; gap:6px; flex-wrap:wrap; margin-top:5px; }
.ctx-tag{ font-size:10.5px; font-weight:800; letter-spacing:.02em; border-radius:100px; padding:2px 9px; white-space:nowrap; }
.ctx-child{ background:var(--green-tint); color:var(--green); }
.ctx-team{ background:var(--primary-tint); color:var(--primary-dark); }
.mf-context-line{ display:flex; gap:6px; flex-wrap:wrap; margin-top:6px; }

/* Team page */
.team-ledger{ border:1px solid var(--border); border-radius:14px; background:var(--card); box-shadow:var(--shadow); overflow:hidden; }
.team-ledger-head, .team-ledger-row{ display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) 90px 80px 80px; gap:12px; padding:10px 16px; align-items:center; }
.team-ledger-head{ background:var(--primary-tint); font-size:10.5px; font-weight:800; text-transform:uppercase; letter-spacing:.03em; color:var(--primary-dark); }
.team-ledger-row{ border-top:1px solid var(--border); font-size:13.5px; }
.team-ledger-row .num{ text-align:right; font-family:'Sora',sans-serif; font-weight:700; }
.team-ledger-head .num{ text-align:right; }
.team-ledger-row a{ font-weight:700; color:var(--text); text-decoration:none; }
.team-ledger-row a:hover{ color:var(--primary); }
.team-person{ display:flex; justify-content:space-between; align-items:center; gap:10px; padding:12px 0; border-top:1px solid var(--border); }
.team-person:first-child{ border-top:none; }
.team-activity-row{ display:flex; gap:12px; padding:9px 0; border-top:1px solid var(--border); font-size:13px; }
.team-activity-row:first-child{ border-top:none; }
.team-activity-row time{ flex:none; width:120px; color:var(--muted); font-size:12px; }
.team-denied{ text-align:center; padding:36px 20px; }
@media (max-width:640px){
  .team-ledger-head{ display:none; }
  .team-ledger-row{ grid-template-columns:1fr 1fr; }
  .team-ledger-row > :first-child{ grid-column:1 / -1; }
  .team-ledger-row .num{ text-align:left; }
  .team-ledger-row .num::before{ content:attr(data-label) " "; font-family:inherit; font-weight:600; color:var(--muted); font-size:11.5px; }
  .team-activity-row{ flex-direction:column; gap:2px; }
}
/* 4-tile KPI row (Manage Team): one even row, 2 x 2 on phones. */
.stats-grid[data-count="4"]{ grid-template-columns:repeat(4,1fr); }
@media (max-width:600px){ .stats-grid[data-count="4"]{ grid-template-columns:repeat(2,1fr); } }
