/* ═══════════════════════════════════════════════════════════════
   HeyPeepz — Design System  ·  "Your people. Your way."
   Brand: indigo #5366F1 · navy #0F172A · burst teal / yellow / coral
   Logos & icons: public/brand/ (see docs/BRAND.md)
   ═══════════════════════════════════════════════════════════════ */

/* Poppins (SIL OFL) — headlines only; body text uses the device's system font */
@font-face { font-family: "Poppins"; src: url(/fonts/poppins-medium.woff) format("woff"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(/fonts/poppins-bold.woff) format("woff"); font-weight: 700 800; font-display: swap; }

:root {
  /* HeyPeepz Brand Color Specification (docs/BRAND.md). Use the semantic tokens,
     not raw hex. Coral is a brand accent — never an error colour. */

  /* ── Core brand palette ─────────────────────────────────── */
  --hp-indigo:      #5366F1;
  --hp-navy:        #0F172A;
  --hp-teal:        #10B981;
  --hp-coral:       #FF7A59;
  --hp-yellow:      #F8BF24;
  --hp-light:       #F5F7FF;

  /* ── Indigo scale ───────────────────────────────────────── */
  --indigo-50:  #F0F2FF;  --indigo-100: #E1E5FF;  --indigo-200: #C8CEFF;  --indigo-300: #A5AEFF;
  --indigo-400: #7C89F8;  --indigo-500: #5366F1;  --indigo-600: #4658DC;  --indigo-700: #3949C5;
  --indigo-800: #303EA0;  --indigo-900: #29357F;

  /* ── Neutral scale ──────────────────────────────────────── */
  --white:    #FFFFFF;
  --gray-50:  #F8FAFC;  --gray-100: #F1F5F9;  --gray-200: #E2E8F0;  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;  --gray-500: #64748B;  --gray-600: #475569;  --gray-700: #334155;
  --gray-800: #1E293B;  --navy:     #0F172A;  --black:    #020617;

  /* ── Semantic: primary (brand actions) ──────────────────── */
  --brand:          var(--indigo-500);   /* primary action, links, focus ring */
  --brand-dark:     var(--indigo-600);   /* hover */
  --brand-darker:   var(--indigo-700);   /* active / pressed */
  --brand-deeper:   #3F4FC7;             /* primary dark/text — indigo text on tinted backgrounds */
  --brand-strong:   var(--indigo-500);   /* indigo carrying text on white (4.6:1) */
  --brand-light:    #EEF0FF;             /* primary light background */
  --brand-border:   var(--indigo-200);
  --selection:      var(--indigo-100);
  --grad-from:      var(--indigo-400);
  --grad-to:        var(--indigo-600);
  --font-display:   "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* ── Semantic: status ───────────────────────────────────── */
  --success:        #10B981;  --success-bg: #ECFDF5;  --success-text: #047857;  --success-border: #A7F3D0;
  --warning:        #F8BF24;  --warning-bg: #FFFBEB;  --warning-text: #A16207;  --warning-border: #FDE68A;
  --accent:         #FF7A59;  --accent-bg:  #FFF1ED;  --accent-text:  #D94F2E;  --accent-border:  #FFD2C4;
  --error:          #EF4444;  --error-bg:   #FEF2F2;  --error-text:   #B91C1C;  --error-border:   #FECACA;
  --info:           #3B82F6;  --info-bg:    #EFF6FF;  --info-text:    #1D4ED8;  --info-border:    #BFDBFE;
  /* older names, now pointing at the spec */
  --danger:         var(--error-text);   /* red used for text and destructive buttons (6.5:1) */
  --danger-light:   var(--error-bg);
  --danger-border:  var(--error-border);
  --green-light:    var(--success-border);
  --green-dark:     var(--success-text);
  --amber-bg:       var(--warning-bg);   /* "Needs you" */
  --amber-border:   var(--warning-border);
  --amber-text:     var(--warning-text);

  /* ── Surfaces ───────────────────────────────────────────── */
  --bg:             var(--hp-light);     /* page background */
  --card:           var(--white);        /* cards, dialogs, elevated surfaces */
  --surface:        var(--gray-50);      /* subtle backgrounds */
  --surface-alt:    var(--gray-100);     /* inputs, subtle surfaces */
  --card-bg:        var(--card);
  --bg-soft:        var(--surface);
  --text-muted:     var(--muted);
  --brand-soft:     var(--brand-light);

  /* ── Text ───────────────────────────────────────────────── */
  --text:           var(--navy);         /* primary text */
  --text-sec:       var(--gray-600);     /* secondary text */
  --muted:          var(--gray-500);     /* tertiary text (4.8:1 on white) */
  --placeholder:    var(--gray-400);     /* placeholder and disabled text */

  /* ── Borders ────────────────────────────────────────────── */
  --border:         var(--gray-200);
  --border-strong:  var(--gray-300);

  /* ── Radius ─────────────────────────────────────────────── */
  --radius-sm:      10px;
  --radius:         14px;
  --radius-lg:      20px;

  /* ── Shadows (soft, diffuse) ────────────────────────────── */
  --shadow-xs:      0 1px 2px rgba(0,0,0,.04);
  --shadow-sm:      0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.03);
  --shadow:         0 2px 8px rgba(0,0,0,.05), 0 8px 28px rgba(0,0,0,.06);
  --shadow-md:      0 6px 16px rgba(0,0,0,.06), 0 20px 48px rgba(0,0,0,.10);
}

/* ── Reset & Base ───────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

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

h1 { font-size: 1.6rem;  margin: 0 0 8px;  font-weight: 700; line-height: 1.25; }
h2 { font-size: 1.15rem; margin: 0 0 6px;  font-weight: 600; }
h3 { font-size: 1rem;    margin: 0 0 6px;  font-weight: 600; }
p  { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }

/* ── Navbar ─────────────────────────────────────────────── */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 60px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand-icon { width: 36px; height: 36px; flex-shrink: 0; }

.brand-wordmark {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-me { color: var(--brand); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  color: var(--text-sec);
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background .14s, color .14s;
  text-decoration: none;
}
.nav-links a:hover {
  background: var(--brand-light);
  color: var(--brand-dark);
  text-decoration: none;
}
.nav-links .nav-dim {
  font-size: 0.78rem;
  color: var(--muted);
}
.nav-links .nav-dim:hover { color: var(--brand); }

/* Primary section links + active state */
.nav-links .nav-primary.active {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 700;
}
/* "Managing" is the organizer door — a separate mode, styled distinctly */
.nav-links .nav-managing {
  color: #A16207;
}
.nav-links .nav-managing:hover {
  background: #fff7ed;
  color: #A16207;
}
.nav-links .nav-managing.active {
  background: #fff7ed;
  color: #A16207;
  font-weight: 700;
}

/* Sub-navigation (tabs within a section, e.g. Contacts) */
.sub-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.sub-nav a {
  padding: 9px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
}
.sub-nav a:hover { color: var(--brand); text-decoration: none; }
.sub-nav a.active { color: var(--brand); border-bottom-color: var(--brand); }

/* Managing-mode banner shown atop a community console */
.managing-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #A16207;
  border-radius: 10px;
  padding: 9px 14px;
  margin-bottom: 16px;
  font-size: 0.88rem;
}
.managing-bar a { color: #A16207; font-weight: 600; }

/* ── Container ──────────────────────────────────────────── */

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

/* ── Page nav (sub-nav tabs between the 3 main pages) ───── */

.page-nav {
  display: flex;
  gap: 2px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
}
.page-nav-link {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-sec);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: 6px 6px 0 0;
  transition: color .14s, border-color .14s, background .14s;
}
.page-nav-link:hover {
  color: var(--brand);
  background: var(--brand-light);
  text-decoration: none;
}
.page-nav-link.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  background: transparent;
}

/* ── Toggle group (filter pills) ────────────────────────── */

.toggle-group {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.toggle-btn {
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  background: var(--surface);
  color: var(--text-sec);
  cursor: pointer;
  transition: background .12s, color .12s;
  white-space: nowrap;
  line-height: 1.4;
}
.toggle-btn + .toggle-btn { border-left: 1px solid var(--border); }
.toggle-btn.active        { background: var(--brand); color: #fff; }
.toggle-btn:hover:not(.active) { background: var(--brand-light); color: var(--brand); }

/* ── Cards ──────────────────────────────────────────────── */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

/* ── Hero (home page) ───────────────────────────────────── */

.hero {
  text-align: center;
  padding: 60px 20px 44px;
}
.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 36px;
}

.hero-headline {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.008em;
  line-height: 1.2;
  margin: 0 0 16px;
}
.hero-headline .highlight { color: var(--brand); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-sec);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 22px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero-logo { flex-direction: column; gap: 12px; }
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
  display: block;
}
.feature-card h3 { color: var(--text); margin-bottom: 6px; }
.feature-card p  { color: var(--muted); font-size: 0.88rem; line-height: 1.55; margin: 0; }

/* ── Auth pages (login / signup) ────────────────────────── */

.auth-wrap {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}
.auth-card h1 { margin-bottom: 4px; }
.auth-divider {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-block;
  background: var(--brand-strong);
  color: #fff;
  border: 1px solid transparent;
  padding: 9px 18px;
  border-radius: 980px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 14px;
  transition: transform .12s ease, opacity .15s, background .15s;
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.5;
  box-shadow: none;
}
.btn:hover  { background: var(--brand-dark); color: #fff; text-decoration: none; }
.btn:active { background: var(--brand-darker); }
.btn:active { transform: scale(0.975); }
.btn-secondary { background: var(--white); color: var(--brand); border-color: var(--brand); }
.btn-secondary:hover { background: var(--indigo-50); color: var(--brand-dark); border-color: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--brand-strong); border-color: var(--brand-strong); }
.btn-ghost:hover { background: var(--brand-light); color: var(--brand-deeper); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #991B1B; color: #fff; }
/* Small buttons: comfortable to tap on a phone. Small danger buttons are red text on a pale red tint. */
.btn-small  { padding: 6px 13px; font-size: 0.8rem; margin-top: 0; min-height: 32px; }
.btn-small.btn-danger { background: var(--error-bg); color: var(--error-text); border-color: var(--error-border); }
.btn-small.btn-danger:hover { background: #FEE2E2; color: #991B1B; }
.btn-lg     { padding: 12px 28px; font-size: 1rem; }
@media (max-width: 640px) { .btn-small { min-height: 40px; padding: 9px 14px; } }

/* ── Forms ──────────────────────────────────────────────── */

label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 5px;
  margin-top: 16px;
}

input[type=text],
input[type=email],
input[type=password],
input[type=date],
input[type=url],
input[type=tel],
input[type=number],
input[type=time],
textarea,
select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.93rem;
  font-family: inherit;
  color: var(--text);
  background: white;
  transition: border-color .14s, box-shadow .14s;
  -webkit-appearance: none;
}
input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus,
input[type=date]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(83,102,241,.14);
}
textarea { resize: vertical; min-height: 72px; }

/* ── Alerts & messages ──────────────────────────────────── */

.alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 14px;
  border: 1px solid transparent;
}
.alert-success {
  background: var(--success-bg);
  color: var(--success-text);
  border-color: var(--success-border);
}
.alert-error { background: var(--danger-light); color: var(--danger); border-color: var(--danger-border); }

.error {
  color: var(--danger);
  font-size: 0.875rem;
  margin-top: 6px;
  padding: 8px 12px;
  background: var(--danger-light);
  border: 1px solid var(--danger-border);
  border-radius: 7px;
}

/* ── Badges ─────────────────────────────────────────────── */

.badge {
  display: inline-block;
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--brand-light);
  color: var(--brand-deeper);
  border: 1px solid var(--brand-border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.badge.private     { background: var(--danger-light); color: var(--danger); border-color: var(--danger-border); }
.badge.connections { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.badge.neutral     { background: #f3f4f6; color: var(--muted); border-color: var(--border); }

/* ── List items ─────────────────────────────────────────── */

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.list-item:last-child { border-bottom: none; }

/* ── Helpers ─────────────────────────────────────────────── */

.muted { color: var(--muted); font-size: 0.875rem; }

.empty-state {
  color: var(--muted);
  padding: 28px 0;
  text-align: center;
  font-size: 0.9rem;
}

.public-link {
  font-family: "SF Mono","Fira Code","Consolas",monospace;
  background: #f3f4f6;
  padding: 5px 10px;
  border-radius: 6px;
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-sec);
  border: 1px solid var(--border);
}

/* ── Checkboxes ─────────────────────────────────────────── */

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.checkbox-row:last-child { border-bottom: none; }
.checkbox-row input[type=checkbox] {
  width: 16px; height: 16px;
  flex-shrink: 0; cursor: pointer;
  accent-color: var(--brand);
}
.checkbox-row select { flex-shrink: 0; width: auto; }

/* ── QR code ─────────────────────────────────────────────── */

.qr-box { text-align: center; margin: 12px 0; }
.qr-box img {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  background: white;
  box-shadow: var(--shadow-sm);
}

/* ── Member rows ─────────────────────────────────────────── */

.member-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.member-row:last-child { border-bottom: none; }
.member-info { flex: 1; }

/* ── Subscribe strip ─────────────────────────────────────── */

.subscribe-strip {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ── Profile blocks (dashboard) ──────────────────────────── */

.profile-block {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.profile-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 8px;
}
.profile-block-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Contact list ────────────────────────────────────────── */

.contact-entry { border-bottom: 1px solid var(--border); }
.contact-entry:last-child { border-bottom: none; }

.contact-entry summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background .12s;
}
.contact-entry summary::-webkit-details-marker { display: none; }
.contact-entry summary::before {
  content: '›';
  font-size: 1.1rem;
  line-height: 1;
  color: var(--muted);
  flex-shrink: 0;
  width: 12px;
  transition: transform .15s;
  display: inline-block;
}
.contact-entry[open] > summary::before { transform: rotate(90deg); }
.contact-entry summary:hover { background: var(--brand-light); }

.contact-name  { font-weight: 600; min-width: 160px; font-size: 0.92rem; }
.contact-email { color: var(--muted); font-size: 0.84rem; }
.contact-meta  { color: var(--muted); font-size: 0.8rem; margin-left: auto; }

.contact-detail {
  padding: 12px 16px 16px 40px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}
.contact-detail-grid {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 5px 12px;
  align-items: baseline;
}
.cd-label { color: var(--muted); font-size: 0.81rem; }

/* ── Subscribed-To rows ──────────────────────────────────── */

.contact-link-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;            /* let action buttons drop to their own line instead of overflowing */
  row-gap: 4px;
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  transition: background .12s;
}
.contact-link-row:last-child { border-bottom: none; }
.contact-link-row:hover { background: var(--brand-light); }

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  flex: 1;
  text-decoration: none;
  color: var(--text);
}
.contact-link:hover { text-decoration: none; color: var(--text); }
.contact-arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 300;
}

/* ── Viral banner (share landing) ────────────────────────── */

.viral-banner {
  background: linear-gradient(135deg, var(--grad-from), var(--grad-to));
  color: white;
  padding: 22px 28px;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(83,102,241,.22);
}
.viral-banner p  { color: rgba(255,255,255,.9); margin-bottom: 0; }
.viral-banner .viral-actions {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; margin-top: 14px;
}
.btn-on-dark {
  background: white;
  color: var(--brand-deeper);
  font-weight: 700;
  margin-top: 0;
}
.btn-on-dark:hover {
  background: #f0fdf4;
  color: var(--brand-deeper);
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.link-on-dark {
  color: rgba(255,255,255,.85);
  align-self: center;
  font-size: 0.88rem;
}
.link-on-dark:hover { color: white; text-decoration: underline; }

/* ── Field row ───────────────────────────────────────────── */

.field-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  margin-top: 10px;
  background: var(--surface);
}
.field-row > div { flex: 1; }
.field-row label { margin-top: 0; }

/* ── Profile nav card (My Info page) ────────────────────── */

.profile-nav-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 9px;
  margin-bottom: 8px;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  transition: background .12s, border-color .12s;
}
.profile-nav-card:hover {
  background: var(--brand-light);
  border-color: var(--brand-border);
  text-decoration: none;
  color: var(--text);
}
.profile-nav-card:last-of-type { margin-bottom: 0; }

/* ── Footer ──────────────────────────────────────────────── */

.site-footer {
  margin-top: 48px;
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── Profile type picker ──────────────────────────────────── */

.type-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 6px;
}

.type-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  position: relative;
  transition: border-color .14s, box-shadow .14s, background .12s;
  cursor: pointer;
}
.type-card:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(83,102,241,.12);
  background: var(--brand-light);
  text-decoration: none;
  color: var(--text);
}
.type-card.premium { border-style: dashed; }
.type-card.premium:hover { border-style: solid; }

.type-card-icon { font-size: 1.6rem; line-height: 1; flex-shrink: 0; margin-top: 2px; }

.type-card-body { flex: 1; min-width: 0; }
.type-card-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.type-card-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }

.type-card-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  flex-shrink: 0;
  align-self: flex-start;
  white-space: nowrap;
}
.type-card-badge.free { background: var(--brand-light); color: var(--brand-deeper); }
.type-card-badge.paid { background: #fef3c7; color: #A16207; }

/* ── Premium banner (profile creation form) ──────────────── */

.premium-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #FFFBEB;
  border: 1px solid #fde68a;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #A16207;
  margin-top: 16px;
  line-height: 1.5;
}
.premium-banner-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }

.subtype-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 12px;
}
.subtype-badge.premium { background: #fef3c7; color: #A16207; }
.subtype-badge.free-badge { background: var(--brand-light); color: var(--brand-deeper); }

/* ── Profile premium info card (profile edit page) ───────── */

.profile-subtype-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.profile-subtype-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #FFFBEB;
  border-bottom: 1px solid #fde68a;
}
.profile-subtype-card-body { padding: 14px 16px; }
.profile-subtype-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 6px 12px;
  font-size: 0.87rem;
  align-items: baseline;
}
.profile-subtype-row + .profile-subtype-row { margin-top: 6px; }
.profile-subtype-label { color: var(--muted); font-size: 0.82rem; }
.profile-subtype-val { font-family: monospace; font-size: 0.87rem; color: var(--text); }

/* ── Feature preview box (profile_new paid form) ─────────── */

.feature-preview-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 14px 16px;
  margin-top: 16px;
}
.feature-preview-label {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
  color: var(--text-sec);
}
.feature-preview-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 4px 12px;
  font-size: 0.85rem;
  margin-top: 4px;
}
.feature-preview-key { color: var(--muted); }
.feature-preview-val { font-family: monospace; color: var(--text); }

/* ── Custom fields locked card (free tier) ───────────────────────────────── */

.custom-fields-locked {
  cursor: pointer;
  user-select: none;
  transition: background .12s;
  border-radius: 4px;
  padding: 2px;
  margin: -2px;
}
.custom-fields-locked:hover {
  background: #FFFBEB;
}

/* ── Public list — spreadsheet table ─────────────────────────────────────── */

.list-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  white-space: nowrap;
}

.list-table thead th {
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 9px 14px;
  border-bottom: 2px solid var(--border);
  text-align: left;
  position: sticky;
  top: 0;
}

.list-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}
.list-table tbody tr:last-child { border-bottom: none; }
.list-table tbody tr:hover { background: var(--brand-light); }

.list-table tbody td {
  padding: 9px 14px;
  color: var(--text);
  vertical-align: top;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-table-name-col {
  min-width: 160px;
  max-width: 220px !important;
  position: sticky;
  left: 0;
  background: var(--card);
  z-index: 1;
  border-right: 1px solid var(--border);
}
.list-table thead .list-table-name-col {
  background: var(--surface-alt);
  z-index: 2;
}
tbody tr:hover .list-table-name-col { background: var(--brand-light); }

.list-table-bio {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  margin-top: 2px;
}

.list-table-link-col {
  width: 36px;
  text-align: center;
  border-left: 1px solid var(--border);
}
.list-table-link-col a {
  color: var(--muted);
  font-size: 1rem;
  text-decoration: none;
}
.list-table-link-col a:hover { color: var(--brand); }

/* ── Dev / Prototype banner ──────────────────────────────────────────────── */

.dev-banner {
  background: #1e1b4b;
  color: #a5b4fc;
  font-size: .78rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .35rem 1.5rem;
  font-family: 'Courier New', monospace;
}
.dev-banner span:first-child {
  background: #6366f1;
  color: #fff;
  font-weight: 700;
  font-size: .7rem;
  padding: .1rem .45rem;
  border-radius: 4px;
  letter-spacing: .04em;
}
.dev-banner a {
  color: #a5b4fc;
  text-decoration: underline;
  margin-left: auto;
}
.dev-banner a:hover { color: #fff; }

/* ── Switch User page ────────────────────────────────────────────────────── */

.su-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .65rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}
.su-row:last-child { border-bottom: none; }
.su-row:hover { background: var(--brand-light); }
.su-row-current { background: var(--surface-alt); }
.su-row-info { display: flex; align-items: center; gap: .75rem; }

.su-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.su-row-current .su-avatar { background: var(--muted); }

.su-name { font-size: .9rem; font-weight: 600; color: var(--text); }
.su-email { font-size: .8rem; color: var(--muted); }

.su-current-badge {
  font-size: .72rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-light);
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: .15rem .55rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* ── Communities ─────────────────────────────────────────────── */

/* Community summary card (dashboard) */
.community-summary-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.community-summary-card:last-child { border-bottom: none; }
.community-avatar {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.community-summary-body { flex: 1; min-width: 0; }
.community-summary-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.community-summary-meta { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

/* Role badge */
.role-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .1rem .5rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}
.role-badge.role-owner   { background: #fef9c3; border-color: #fde047; color: #713f12; }
.role-badge.role-admin   { background: var(--brand-light); border-color: var(--brand-border); color: var(--brand-deeper); }
.role-badge.role-moderator { background: #ede9fe; border-color: #c4b5fd; color: #4c1d95; }

/* Member card grid (card layout) */
.member-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}
.member-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  transition: box-shadow .15s;
}
.member-card:hover { box-shadow: var(--shadow-md); }
.member-card-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-from), var(--grad-to));
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-bottom: 4px;
}
.member-card-name  { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.member-card-title { font-size: 0.78rem; color: var(--muted); }
.member-card-detail { font-size: 0.78rem; color: var(--text-sec); }
.member-card-link  {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}
.member-card-link:hover { color: var(--brand-dark); text-decoration: underline; }

/* Community detail tabs */
.community-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.community-tab {
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: 6px 6px 0 0;
  transition: color .15s, border-color .15s;
}
.community-tab:hover { color: var(--text); }
.community-tab.active { color: var(--brand); border-color: var(--brand); font-weight: 600; }

/* Pending notice badge */
.pending-notice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Invite token box */
.invite-token-box {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: monospace;
  font-size: 0.82rem;
  word-break: break-all;
  color: var(--text-sec);
  margin-top: 6px;
}

/* Danger zone */
.danger-zone {
  border: 1px solid var(--danger-border);
  border-radius: 10px;
  padding: 16px;
  margin-top: 24px;
  background: #fff8f8;
}
.danger-zone h3 { color: var(--danger); margin: 0 0 8px; font-size: 0.9rem; }

/* Alert styles */
.alert-error {
  background: var(--danger-light);
  border: 1px solid var(--danger-border);
  color: var(--danger);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
}
.alert-success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success-text);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
}

/* ═══════════════════════════════════════════════════════════════
   Apple-style refresh (2026)
   Calmer, more typographic, more whitespace, soft materials.
   Appended last so it refines the core components via the cascade.
   ═══════════════════════════════════════════════════════════════ */

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
               "Helvetica Neue", "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

h1 { font-size: 2rem;    font-weight: 700; letter-spacing: -0.008em; line-height: 1.18; margin: 0 0 12px; font-family: var(--font-display); }
h2 { font-size: 1.3rem;  font-weight: 600; letter-spacing: -0.01em; line-height: 1.28; margin: 0 0 8px; font-family: var(--font-display); }
.hero-headline, .brand-font { font-family: var(--font-display); }
h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -0.01em;  margin: 0 0 6px; }

a { transition: opacity .15s, color .15s; }
a:hover { text-decoration: none; opacity: .82; }

.container { max-width: 840px; margin: 44px auto; padding: 0 22px; }

/* Cards — roomy, hairline border, soft diffuse shadow, large radius */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

/* Navbar — translucent material with hairline underline */
.navbar {
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}
.nav-links a { border-radius: 980px; font-weight: 500; }


/* Inputs — rounded, hairline, gentle focus ring */
input, select, textarea, .input {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus, .input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(83,102,241,0.20);
}

/* Brand logo artwork */
.brand-logo { height: 40px; width: auto; display: block; }
.hero-logo-img { height: 150px; max-width: 100%; width: auto; display: block; margin: 0 auto; }
@media (max-width: 600px) { .hero-logo-img { height: 112px; } .brand-logo { height: 34px; } }

/* Badges & pills */
.badge { border-radius: 980px; font-weight: 600; letter-spacing: 0; }

/* Section tabs */
.sub-nav a, .community-tab, .page-nav-link { letter-spacing: -0.01em; }

/* List rows — hairline separators, comfortable rhythm */
.list-item { border-color: var(--border); }

/* Footer */
.site-footer { color: var(--muted); }

/* ── Privacy nutrition label ─────────────────────────────── */
.nutrition-label { background: var(--surface); }
.nl-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.nl-lock { font-size: 1.25rem; line-height: 1; margin-top: 2px; }
.nl-title { margin: 0; font-size: 1.05rem; letter-spacing: -0.01em; }
.nl-sub { margin: 2px 0 0; font-size: 0.85rem; color: var(--muted); }
.nl-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  align-items: baseline;
}
.nl-key { color: var(--muted); font-weight: 600; }
.nl-val { color: var(--text); }
.nl-fieldlist { color: var(--text-sec); }
@media (max-width: 520px) {
  .nl-row { grid-template-columns: 1fr; gap: 2px; }
}
.community-stat-alert { color: #A16207; font-weight: 600; }

/* ── List selection toolbar (copy emails / phones) ───────── */
.list-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--brand-light);
  border: 1px solid var(--brand-border);
  border-radius: 12px;
}
.list-toolbar .select-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--brand-deeper);
}
.list-toolbar .select-all input { width: 16px; height: 16px; accent-color: var(--brand); }
.list-toolbar .select-count { font-size: 0.85rem; }
.list-toolbar .toolbar-spacer { flex: 1 1 auto; }

/* Per-row checkboxes */
.member-select { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.list-table-check-col { width: 34px; text-align: center; }
.member-card { position: relative; }
.member-card-check {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  cursor: pointer;
  z-index: 1;
}

/* ── Billing / subscription tiers ────────────────────────── */
.alert-warning {
  background: #FFFBEB;
  color: #A16207;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.9rem;
}
.usage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}
.usage-row:first-of-type { border-top: 0; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.plan-card {
  position: relative;
  background: var(--surface-2, #fff);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
}
.plan-card.plan-popular { border: 2px solid var(--brand); }
.plan-card.plan-current { border: 2px solid var(--brand-deeper); background: var(--brand-light); }
.plan-tag {
  position: absolute;
  top: -11px;
  left: 16px;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.plan-name { font-size: 1.05rem; font-weight: 600; }
.plan-price { font-size: 1.7rem; font-weight: 600; margin: 2px 0; }
.plan-price .muted { font-size: 0.9rem; font-weight: 400; }
.plan-tagline { font-size: 0.82rem; margin-bottom: 12px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 16px; }
.plan-features li { font-size: 0.85rem; padding: 4px 0; color: var(--text-sec); }
.plan-features li.off { color: var(--muted); }
.plan-features li.on { color: var(--text); }
.plan-btn { width: 100%; margin-top: auto; text-align: center; }

/* Downgrade chooser */
.chooser-count { font-size: 0.85rem; margin-bottom: 8px; }
.chooser-list { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.chooser-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-top: 1px solid var(--border);
  cursor: pointer;
  margin: 0;
  font-weight: normal;
}
.chooser-row:first-child { border-top: 0; }
.chooser-row input { width: 16px; height: 16px; accent-color: var(--brand); }
.chooser-name { flex: 1; }
.chooser-lock { font-size: 0.78rem; }
.chooser-row input:checked ~ .chooser-lock { visibility: hidden; }

/* ── Settings gear + hub ─────────────────────────────────── */
.nav-gear {
  font-size: 1.1rem;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 8px;
  text-decoration: none;
  opacity: 0.75;
}
.nav-gear:hover { opacity: 1; background: var(--brand-light); }
.nav-gear.active { opacity: 1; background: var(--brand-light); }

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.settings-tile {
  display: block;
  background: var(--surface-2, #fff);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.12s ease;
}
.settings-tile:hover { border-color: var(--brand); }
.settings-tile-icon { font-size: 1.5rem; margin-bottom: 8px; }
.settings-tile-name { font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
.settings-tile-desc { font-size: 0.85rem; line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE PHONE EXPERIENCE
   A bottom tab bar replaces the crowded top nav on small screens. All rules
   below are additive and scoped to the mobile breakpoint (or to new classes),
   so the desktop experience is unchanged.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hidden on desktop; shown under the mobile breakpoint. */
.mobile-tabbar { display: none; }

@media (max-width: 768px) {
  /* Swap the eight-link top nav for the bottom tab bar. */
  .navbar .nav-links { display: none; }

  .mobile-tabbar {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    background: var(--card, #ffffff);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mtab {
    flex: 1 1 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 8px 2px 6px; min-height: 56px;
    text-decoration: none; color: var(--muted);
    position: relative;
  }
  .mtab.active { color: var(--brand); }
  .mtab-ico { font-size: 1.3rem; line-height: 1; position: relative; display: inline-block; }
  .mtab-lbl { font-size: 0.64rem; letter-spacing: 0.01em; white-space: nowrap; }
  .mtab-badge {
    position: absolute; top: -7px; left: 13px;
    background: var(--danger, #B91C1C); color: #fff;
    font-size: 0.58rem; font-weight: 700;
    min-width: 15px; height: 15px; line-height: 15px; text-align: center;
    border-radius: 8px; padding: 0 3px;
  }

  /* Keep page content (and the little site footer) clear of the fixed bar. */
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }

  /* Thumb-friendlier controls on touch screens. */
  .btn { padding: 11px 18px; }
  .btn-small { padding: 8px 13px; }

  /* Two-up tile grids collapse to a single column on phones. */
  .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .two-col-grid { grid-template-columns: 1fr !important; }
}

/* ── Admin dashboard (operator-only pages) ─────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--card, #fff); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.stat-num { font-size: 1.6rem; font-weight: 700; color: var(--text); line-height: 1.1; }
.stat-lbl { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.stat-sub { font-size: 0.72rem; color: var(--muted); margin-top: 6px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; }
.bar-col { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; height: 100%; }
.bar { width: 62%; max-width: 34px; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 3px; }
.bar-val { font-size: 0.72rem; color: var(--muted); }
.bar-lbl { font-size: 0.66rem; color: var(--muted); white-space: nowrap; }

/* ── Contacts, iPhone-style (list + A–Z rail + detail) ─────────────────────── */
.icon-btn { display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:var(--brand-light);color:var(--brand);border:1px solid var(--brand-border);font-size:1.05rem;text-decoration:none }
.icon-btn:hover { background:var(--brand);color:#fff }

.contact-search { width:100%;padding:9px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface-alt,#F1F5F9);margin-bottom:6px;font-size:0.95rem;box-sizing:border-box }

.contacts-scroller { position:relative; display:flex; align-items:flex-start; gap:6px }
.contacts-index { flex:1; min-width:0; }
.contacts-sect-head {
  position:sticky; top:0; z-index:1;
  background:var(--surface-alt,#F1F5F9); color:var(--muted);
  font-weight:700; font-size:0.75rem; letter-spacing:0.03em;
  padding:3px 8px; border-radius:5px; margin:8px 0 0;
}
.contact-row {
  display:flex; align-items:center; gap:12px;
  padding:8px 4px; min-height:52px;
  border-bottom:1px solid var(--border);
  text-decoration:none; color:var(--text);
}
.contact-row:hover { background:var(--surface-alt,#F8FAFC) }
.contact-row-name { flex:1; min-width:0; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }

/* Static (typed-in) contacts and their On/Not-on-HeyPeepz status. */
.contact-static .contact-row-name { color: var(--muted); font-weight: 500; white-space: normal; }
.status-badge {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
  vertical-align: middle;
}
.status-badge.status-on  { background: var(--brand-light); color: var(--brand-deeper); border: 1px solid var(--brand-border); }
.status-badge.status-off { background: #f2f2f4; color: var(--muted); border: 1px solid var(--border); }
.status-badge.status-pending { background: #FFFBEB; color: #9a5b00; border: 1px solid #FDE68A; }
.contact-row-arrow { color:var(--muted); font-size:1.3rem; flex-shrink:0 }

/* A–Z rail down the right edge (like iOS) */
.az-rail {
  position:sticky; top:12px; align-self:flex-start; flex-shrink:0;
  display:flex; flex-direction:column; align-items:center;
  z-index:5; padding:6px 4px; user-select:none;
  background:var(--card,#fff); border:1px solid var(--border);
  border-radius:12px; box-shadow:var(--shadow-sm,0 1px 4px rgba(0,0,0,0.08));
}
.az-letter { font-size:0.68rem; line-height:1.15; color:var(--brand); text-decoration:none; padding:1px 4px; font-weight:700 }
.az-letter.az-off { color:var(--muted); opacity:0.35; pointer-events:none; font-weight:600 }
.az-letter:hover { color:#fff; background:var(--brand); border-radius:4px }

/* Contact detail screen */
.contact-back { color:var(--brand); text-decoration:none; font-size:0.95rem; font-weight:500 }
.cd-row { display:flex; justify-content:space-between; gap:16px; padding:11px 4px; border-bottom:1px solid var(--border) }
.cd-row:last-child { border-bottom:none }
.cd-row-label { color:var(--muted); font-size:0.85rem; flex-shrink:0 }
.cd-row-value { text-align:right; word-break:break-word }

@media (max-width: 768px) {
  .az-rail { top:8px }
}

/* Linked/connected cards nested under a person in Contacts */
.contact-count { color:var(--muted); font-weight:400; font-size:0.82rem }
.contact-subrow {
  display:flex; align-items:center; gap:8px;
  padding:6px 4px 6px 46px; border-bottom:1px solid var(--border);
  text-decoration:none; color:var(--muted); font-size:0.9rem;
}
.contact-subrow:hover { background:var(--surface-alt,#F8FAFC) }
.contact-subrow-tick { color:var(--muted); font-size:0.95rem }
.contact-subrow-name { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--text) }

.contact-related-label { font-size:0.66rem; text-transform:uppercase; letter-spacing:0.05em; color:var(--muted); padding:6px 4px 2px 46px }
.contact-related { gap:8px }

/* ── Community Console: clean row list (replaces the dense card grid) ───────── */
.console-pending-bar {
  background:#FFFBEB; border:1px solid #fde68a; color:#A16207;
  border-radius:10px; padding:10px 14px; margin-bottom:12px; font-size:0.9rem;
}
.console-list { display:flex; flex-direction:column; gap:10px; }
.console-row {
  display:flex; align-items:center; gap:14px; padding:13px 15px;
  border:1px solid var(--border); border-radius:12px; background:var(--card,#fff);
  text-decoration:none; color:var(--text);
}
.console-row:hover { border-color:var(--brand-border); background:var(--surface-alt,#F8FAFC); }
.console-ico {
  font-size:1.4rem; width:42px; height:42px; flex-shrink:0;
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--brand-light); border:1px solid var(--brand-border); border-radius:11px;
}
.console-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.console-name { font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.console-sub { font-size:0.8rem; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.console-meta { display:flex; flex-direction:column; align-items:flex-end; gap:4px; flex-shrink:0; text-align:right; }
.console-count { font-size:0.8rem; color:var(--muted); white-space:nowrap; }
.console-pending { font-size:0.7rem; font-weight:700; color:#A16207; background:#fef3c7; border:1px solid #fde68a; border-radius:999px; padding:1px 9px; white-space:nowrap; }
.console-arrow { color:var(--muted); font-size:1.4rem; flex-shrink:0; }
@media (max-width: 520px) { .console-count { display:none; } }


/* Phones: profile row action buttons wrap to their own line cleanly */
@media (max-width: 600px) {
  .contact-name { min-width: 0; }
  .contact-link-row > div:last-child { margin-left: 52px; padding-bottom: 10px; }
}

/* Display-preferences: name-format radio options */
.name-format-option {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px;
  cursor: pointer; transition: border-color .12s, background .12s;
}
.name-format-option:hover { border-color: var(--brand-border); background: var(--brand-light); }
.name-format-option.selected { border-color: var(--brand); background: var(--brand-light); }
.name-format-option input { margin-top: 3px; flex-shrink: 0; }
.nfo-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nfo-title { font-weight: 600; }
.nfo-sample { font-size: 0.85rem; color: var(--muted); }

/* "Share my profile" — persistent, up-front nav action */
.nav-share {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--brand); color: #fff !important; font-weight: 600;
  white-space: nowrap; transition: background .12s;
}
.nav-share:hover, .nav-share.active { background: var(--brand-dark); color: #fff !important; }

/* Profile-edit tabbed layout */
.pe-tabs {
  position: sticky; top: 0; z-index: 20;
  display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 8px 0; margin-bottom: 12px;
  background: var(--surface, #fff); border-bottom: 1px solid var(--border);
}
.pe-tab {
  flex: 0 0 auto; padding: 8px 15px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--surface, #fff); color: var(--text, #0F172A);
  font-weight: 600; font-size: 0.88rem; cursor: pointer; white-space: nowrap;
  transition: background .12s, color .12s, border-color .12s;
}
.pe-tab:hover { border-color: var(--brand-border); }
.pe-tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.pe-fieldgrid { display: grid; grid-template-columns: 1fr; gap: 2px 22px; }
@media (min-width: 680px) { .pe-fieldgrid { grid-template-columns: 1fr 1fr; } }

/* ═══════════════════════════════════════════════════════════════════════════
   SIMPLIFICATION PASS (Sep 2026)
   Four-place nav + avatar menu, one banner at a time, community hero/stats,
   scrollable tabs, ⋯ menus, grouped settings list, collapsible Help.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Nav count bubble ── */
.nav-count {
  display:inline-block; min-width:18px; height:18px; line-height:18px; padding:0 5px;
  border-radius:9px; background:var(--danger); color:#fff; font-size:0.7rem; font-weight:700;
  text-align:center; margin-left:3px; vertical-align:1px;
}

/* ── Avatar menu ── */
.nav-menu { position:relative; margin-left:6px; }
.nav-menu > summary {
  list-style:none; cursor:pointer; display:flex; align-items:center; gap:4px;
  padding:3px 6px 3px 3px; border-radius:999px;
}
.nav-menu > summary::-webkit-details-marker { display:none; }
.nav-menu > summary:hover, .nav-menu[open] > summary { background:var(--brand-light); }
.nav-caret { color:var(--muted); font-size:0.7rem; }
.nav-menu-panel {
  position:absolute; right:0; top:calc(100% + 6px); min-width:230px; z-index:200;
  background:#fff; border:1px solid var(--border); border-radius:14px; box-shadow:var(--shadow-md);
  padding:6px; display:flex; flex-direction:column;
}
.nav-menu-who { display:flex; flex-direction:column; padding:8px 10px 10px; border-bottom:1px solid var(--border); margin-bottom:4px; font-size:0.88rem; }
.nav-menu-who .muted { font-size:0.78rem; overflow:hidden; text-overflow:ellipsis; }
.nav-links .nav-menu-panel a, .nav-menu-panel button {
  display:block; text-align:left; width:100%; padding:8px 10px; border-radius:9px;
  font-size:0.9rem; color:var(--text); background:none; border:0; font-family:inherit; cursor:pointer;
}
.nav-menu-panel button:hover { background:var(--brand-light); color:var(--brand-dark); }
.nav-menu-panel form { margin:0; border-top:1px solid var(--border); margin-top:4px; padding-top:4px; }

/* ── Prototype strip: compact ── */
.dev-banner { padding:.25rem 1.5rem; gap:.75rem; }
.dev-who { background:none !important; color:#a5b4fc !important; font-weight:400 !important; padding:0 !important; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ── One top banner ──
   Green = just done (with Undo). Amber = needs you. Neutral = a tip. One line, slim,
   the same width as the page content below it. */
.top-banner {
  display:flex; align-items:center; gap:10px;
  max-width:796px; margin:12px auto -30px; padding:7px 8px 7px 14px;
  border-radius:12px; border:1px solid var(--border); background:var(--card); font-size:0.88rem; line-height:1.35;
}
.top-banner.tone-ok     { background:var(--success-bg); border-color:var(--success-border); color:var(--success-text); }
.top-banner.tone-action,
.top-banner.tone-warn   { background:var(--amber-bg); border-color:var(--amber-border); color:var(--amber-text); }
.top-banner.tone-info,
.top-banner.tone-pink   { background:var(--card); border-color:var(--border); color:var(--text-sec); }
.tb-ico { font-size:1rem; line-height:1; flex-shrink:0; }
.tb-text { flex:1; min-width:0; }
.tb-more { font-size:0.8rem; margin-left:6px; color:inherit; text-decoration:underline; opacity:.85; white-space:nowrap; }
.tb-actions { display:flex; align-items:center; gap:6px; flex-shrink:0; }
.top-banner .btn-small { background:var(--card); color:var(--amber-text); border-color:var(--amber-border); }
.top-banner.tone-ok .btn-small { color:var(--success-text); border-color:var(--success-border); }
.top-banner.tone-info .btn-small, .top-banner.tone-pink .btn-small { color:var(--brand-strong); border-color:var(--border); }
.tb-dismiss { color:inherit; opacity:.55; font-size:0.9rem; padding:6px 8px; border-radius:6px; text-decoration:none; }
.tb-dismiss:hover { opacity:1; text-decoration:none; background:rgba(0,0,0,.05); }
@media (max-width: 880px) { .top-banner { margin-left:16px; margin-right:16px; } }
@media (max-width: 640px) {
  .top-banner { margin-top:8px; padding:6px 6px 6px 12px; font-size:0.84rem; }
  .top-banner .tb-ico { display:none; }
  .top-banner .tb-text { overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
  .top-banner .btn-small { min-height:36px; padding:6px 12px; }
}

/* ── Inbox "Needs your attention" ── */
.attn-row { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid var(--border); flex-wrap:wrap; }
.attn-row:last-child { border-bottom:0; }
.attn-row .tb-text { color:var(--text); }

/* ── Community hero + stats ── */
.community-hero { display:flex; align-items:flex-start; gap:14px; flex-wrap:wrap; margin-bottom:10px; }
.community-hero-icon {
  font-size:1.9rem; width:58px; height:58px; flex-shrink:0; display:inline-flex; align-items:center; justify-content:center;
  background:var(--brand-light); border:1px solid var(--brand-border); border-radius:16px;
}
.community-hero-body { flex:1; min-width:200px; }
.community-hero-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; flex-shrink:0; }
.community-stats-bar { display:flex; gap:8px; flex-wrap:wrap; margin:8px 0 14px; }
.community-stat {
  display:flex; align-items:baseline; gap:6px; padding:6px 12px;
  background:#fff; border:1px solid var(--border); border-radius:999px; font-size:0.85rem;
}
.community-stat-value { font-weight:700; color:var(--text); }
.community-stat-label { color:var(--muted); }

/* Tabs scroll sideways instead of wrapping into a pile on phones */
.community-tabs { flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.community-tabs::-webkit-scrollbar { display:none; }
.community-tab { white-space:nowrap; flex-shrink:0; }
.community-tab.tab-manage { margin-left:auto; color:#A16207; }
.community-tab.tab-manage.active { color:#A16207; border-color:#d97706; }
.manage-subtabs { display:flex; gap:6px; overflow-x:auto; margin:-10px 0 16px; padding-bottom:2px; }
.manage-subtabs a {
  flex-shrink:0; white-space:nowrap; padding:6px 13px; border-radius:999px; font-size:0.84rem; font-weight:500;
  border:1px solid var(--border); background:#fff; color:var(--text-sec); text-decoration:none;
}
.manage-subtabs a.active { background:#fff7ed; border-color:#fdba74; color:#A16207; font-weight:600; }

/* ── ⋯ overflow menu (generic) ── */
.more-menu { position:relative; display:inline-block; }
.more-menu > summary {
  list-style:none; cursor:pointer; display:inline-flex; align-items:center; justify-content:center;
  min-width:38px; height:34px; padding:0 12px; border-radius:999px; background:var(--surface-alt);
  font-weight:700; font-size:1rem; color:var(--text); user-select:none;
}
.more-menu > summary::-webkit-details-marker { display:none; }
.more-menu[open] > summary { background:#E2E8F0; }
.more-menu-panel {
  position:absolute; right:0; top:calc(100% + 6px); z-index:150; min-width:240px;
  background:#fff; border:1px solid var(--border); border-radius:14px; box-shadow:var(--shadow-md); padding:6px;
}
.more-menu-panel a, .more-menu-panel button {
  display:block; width:100%; text-align:left; padding:9px 10px; border-radius:9px; border:0; background:none;
  font:inherit; font-size:0.9rem; color:var(--text); cursor:pointer; text-decoration:none;
}
.more-menu-panel a:hover, .more-menu-panel button:hover { background:var(--brand-light); color:var(--brand-dark); text-decoration:none; }
.more-menu-panel form { margin:0; }
.more-menu-panel hr { border:0; border-top:1px solid var(--border); margin:4px 0; }
@media (max-width: 520px) { .more-menu-panel { left:auto; right:0; min-width:220px; } }

/* ── Grouped settings list (Settings / More) ── */
.settings-group { margin-bottom:18px; }
.settings-group-title { font-size:0.74rem; text-transform:uppercase; letter-spacing:0.06em; color:var(--muted); margin:0 6px 6px; font-weight:600; }
.settings-list { background:#fff; border:1px solid var(--border); border-radius:14px; overflow:hidden; }
.settings-item { display:flex; align-items:center; gap:12px; padding:13px 16px; border-bottom:1px solid var(--border); color:var(--text); text-decoration:none; }
.settings-item:last-child { border-bottom:0; }
.settings-item:hover { background:var(--surface-alt); text-decoration:none; color:var(--text); }
.settings-ico { font-size:1.15rem; width:26px; text-align:center; flex-shrink:0; }
.settings-main { flex:1; min-width:0; display:flex; flex-direction:column; }
.settings-name { font-weight:600; font-size:0.95rem; }
.settings-sub { font-size:0.8rem; color:var(--muted); }
.settings-arrow { color:var(--muted); font-size:1.2rem; }
.settings-badge { font-size:0.7rem; font-weight:700; color:#A16207; background:#fef3c7; border-radius:999px; padding:1px 8px; }
.settings-item button { font:inherit; }

/* ── Help: collapsible answers ── */
.help-q { border-bottom:1px solid var(--border); }
.help-q:last-child { border-bottom:0; }
.help-q > summary { list-style:none; cursor:pointer; padding:12px 26px 12px 2px; font-weight:600; position:relative; }
.help-q > summary::-webkit-details-marker { display:none; }
.help-q > summary::after { content:'+'; position:absolute; right:4px; top:10px; color:var(--muted); font-size:1.1rem; font-weight:400; }
.help-q[open] > summary::after { content:'–'; }
.help-a { padding:0 2px 14px; color:var(--text-sec); font-size:0.92rem; }
.help-a .btn { margin-top:8px; }

/* ── Friendly pills ── */
.pill { display:inline-block; font-size:0.72rem; font-weight:600; border-radius:999px; padding:1px 9px; background:var(--surface-alt); color:var(--text-sec); white-space:nowrap; }
.pill-green { background:var(--brand-light); color:var(--brand-deeper); }
.pill-amber { background:#fef3c7; color:#A16207; }

/* ── Generic stacked row that never squeezes text on phones ── */
.row-stack { display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--border); flex-wrap:wrap; }
.row-stack:last-child { border-bottom:0; }
.row-stack-main { flex:1 1 220px; min-width:0; }
.row-stack-actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
@media (max-width: 600px) {
  .row-stack-actions { flex-basis:100%; }
}
@media (max-width: 600px) {
  .card { padding: 18px; border-radius: 16px; }
  .container { margin-top: 24px; padding: 0 14px; }
  .row-stack-actions form:first-child { flex: 1 1 auto; }
  .row-stack-actions select { flex: 1 1 auto; min-width: 0; }
  h1 { font-size: 1.4rem; }
}
.console-flags { display:flex; gap:4px; flex-wrap:wrap; margin-top:3px; }
.page-header { margin-bottom: 16px; }
/* Softer destructive buttons: red text, not a red slab, for everyday row actions */
@media (max-width: 600px) {
  .top-banner { margin-bottom: -8px; }
  .community-hero-icon { width:46px; height:46px; font-size:1.5rem; border-radius:13px; }
  .community-hero-actions { flex-basis:100%; }
}
/* Badges read as words, not shouting codes */
.badge { text-transform: none; letter-spacing: 0; font-size: 0.72rem; }
.badge.private { background: #fef3c7; color: #A16207; border-color: #fde68a; }
/* My info form */
.fields-h { margin-top:22px; padding-bottom:6px; border-bottom:1px solid var(--border); font-size:0.75rem; font-weight:700; text-transform:uppercase; letter-spacing:0.07em; color:var(--muted); }
.more-fields { margin-top:18px; border:1px dashed var(--border-strong); border-radius:12px; padding:10px 14px; }
.more-fields > summary { cursor:pointer; font-weight:600; color:var(--brand-deeper); font-size:0.92rem; }
.verify-line { flex-basis:100%; display:flex; gap:8px; align-items:center; flex-wrap:wrap; font-size:0.8rem; margin:-2px 0 4px 128px; }
.verify-ok { color:var(--brand-deeper); font-weight:600; }
.verify-link { background:none; border:0; padding:0; color:var(--brand); font-weight:600; cursor:pointer; font:inherit; font-size:0.82rem; }
.save-bar { position:sticky; bottom:0; background:linear-gradient(transparent, #fff 30%); padding:18px 0 6px; margin-top:10px; }
@media (max-width: 768px) { .save-bar { bottom: calc(62px + env(safe-area-inset-bottom, 0px)); } .verify-line { margin-left:0; } }
.start-steps { display:flex; gap:6px; justify-content:center; margin:0 0 14px; flex-wrap:wrap; }
.start-steps span { font-size:0.8rem; padding:4px 11px; border-radius:999px; background:var(--surface-alt); color:var(--muted); font-weight:600; }
.start-steps span.on { background:var(--brand); color:#fff; }
.start-steps span.done { background:var(--brand-light); color:var(--brand-deeper); }
.pick-row { display:flex; align-items:center; gap:10px; padding:8px 4px; border-bottom:1px solid var(--border); cursor:pointer; font-weight:500; margin:0; }
.pick-row:hover { background:var(--surface-alt); }
.pick-row input { width:18px; height:18px; margin:0; accent-color:var(--brand); }
@media (max-width: 560px) {
  .field-row { flex-direction: column; align-items: stretch; }
  .field-row > div, .field-row .field-group { width: 100%; }
}
input[type=search] { width:100%; padding:10px 14px; font-size:0.95rem; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface-alt); font-family:inherit; }
/* Email/phone rows in My info */
.repeat-row input.input { padding:10px 12px; font-size:0.95rem; margin:0; }
@media (max-width: 600px) {
  .repeat-row input[name$="_label[]"] { flex:0 0 92px !important; }
  .repeat-row input[name$="_value[]"] { min-width:0 !important; flex:1 1 150px !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CALLING CARD — a card looks and behaves like a business card
   ═══════════════════════════════════════════════════════════════════════════ */
.bizcard {
  position:relative; max-width:440px; margin:0 auto; aspect-ratio:7 / 4;
  display:flex; flex-direction:column; background:#fff; border-radius:18px;
  border:1px solid var(--border);
  box-shadow:0 18px 40px rgba(20,27,77,.14), 0 3px 8px rgba(0,0,0,.06);
}
.bizcard-band { height:12px; flex-shrink:0; border-radius:17px 17px 0 0; background:linear-gradient(90deg, var(--grad-from), var(--grad-to)); }
.bizcard-body { flex:1; display:flex; flex-direction:column; justify-content:space-between; gap:14px; padding:18px 24px 16px; min-width:0; }
.bizcard-top { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; min-width:0; }
.bizcard-photo { flex-shrink:0; }
.bizcard-text { min-width:0; }
.bizcard-name { font-size:1.45rem; font-weight:800; letter-spacing:-0.02em; line-height:1.15; color:var(--text); overflow-wrap:anywhere; }
.bizcard-title { margin-top:4px; color:var(--text-sec); font-size:0.92rem; line-height:1.3; }
.bizcard-org { margin-top:2px; font-weight:700; color:var(--brand-deeper); font-size:0.92rem; line-height:1.3; letter-spacing:0.01em; }
.bizcard-contact { display:flex; flex-direction:column; gap:4px; padding-top:10px; border-top:1px solid var(--border); min-width:0; }
.bizcard-line { display:flex; align-items:center; gap:9px; color:var(--text-sec); font-size:0.88rem; line-height:1.3; text-decoration:none; min-width:0; }
.bizcard-line:hover { color:var(--brand-deeper); text-decoration:none; }
.bizcard-line span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bizcard-line svg { width:14px; height:14px; flex-shrink:0; fill:var(--brand); }
.bizcard-foot {
  display:flex; justify-content:space-between; align-items:center; gap:8px; flex-shrink:0;
  padding:9px 24px; border-top:1px dashed var(--border); font-size:0.74rem; color:var(--muted); background:var(--surface); border-radius:0 0 17px 17px;
}
.bizcard-live { display:inline-flex; align-items:center; gap:6px; }
.bizcard-dot { width:7px; height:7px; border-radius:50%; background:var(--brand); box-shadow:0 0 0 3px rgba(83,102,241,.18); }
.bizcard-kind { font-weight:700; text-transform:uppercase; letter-spacing:0.08em; font-size:0.66rem; color:var(--brand-deeper); }
.bizcard-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:6px 4px; max-width:540px; margin:16px auto 0; }
.bizcard-action {
  display:flex; flex-direction:column; align-items:center; gap:5px; width:72px;
  text-decoration:none; color:var(--brand-deeper); font-size:0.74rem; font-weight:600; text-align:center;
}
.bizcard-action:hover { text-decoration:none; color:var(--brand-dark); }
.bizcard-action .ico {
  width:48px; height:48px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:1.25rem; background:var(--brand-light); border:1px solid var(--brand-border); transition:transform .12s, background .12s;
}
.bizcard-action:hover .ico { background:#E1E5FF; transform:translateY(-1px); }
.bizcard-big { max-width:520px; }
.bizcard-big .bizcard-name { font-size:1.8rem; }
.bizcard-big .bizcard-title, .bizcard-big .bizcard-org { font-size:1rem; }
.bizcard-big .bizcard-line { font-size:0.98rem; }
@media (max-width: 420px) {
  .bizcard-body { gap:14px; padding:14px 18px; }
  .bizcard-name { font-size:1.3rem; }
  .bizcard-title, .bizcard-org { font-size:0.86rem; }
  .bizcard-line { font-size:0.82rem; }
  .bizcard-foot { padding:8px 18px; }
  .bizcard-action { width:64px; }
}

/* Receiving a card */
.handover { max-width:520px; margin:0 auto; }
.handover-head { text-align:center; margin:4px 0 18px; }
.handover-head h1 { font-size:1.35rem; margin:0; }
.handover-note {
  position:relative; max-width:440px; margin:14px auto 0; background:#fffdf5; border:1px solid #f1e3b5;
  border-radius:14px; padding:12px 16px; font-size:0.95rem; color:#4a3b12; font-style:italic;
}
.handover-note .who { display:block; font-style:normal; font-size:0.78rem; color:#8a6d1d; margin-top:4px; }
.handover-keep { max-width:440px; margin:18px auto 0; text-align:center; }
.handover-keep .btn { width:100%; font-size:1.02rem; padding:13px 18px; }
.handover-details { max-width:520px; margin:18px auto 0; }
.kept-badge { display:inline-flex; align-items:center; gap:6px; color:var(--brand-deeper); font-weight:700; }

/* Show my card (full screen) */
.show-screen { min-height:100vh; margin:0; background:radial-gradient(circle at 30% 0%, #5366F1 0%, #3F4FC7 55%, #0F172A 100%); color:#fff; display:flex; flex-direction:column; align-items:center; padding:18px 16px 28px; box-sizing:border-box; }
.show-top { width:100%; max-width:520px; display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.show-top a { color:#F0F2FF; font-weight:600; text-decoration:none; font-size:0.95rem; }
.show-qr { background:#fff; border-radius:18px; padding:14px; margin:18px auto 8px; line-height:0; box-shadow:0 12px 30px rgba(0,0,0,.25); }
.show-hint { color:#E1E5FF; font-size:0.9rem; text-align:center; margin:4px 0 14px; }
.show-switch { display:flex; gap:8px; flex-wrap:wrap; justify-content:center; max-width:520px; }
.show-switch a { color:#fff; border:1px solid rgba(255,255,255,.35); border-radius:999px; padding:6px 14px; font-size:0.86rem; text-decoration:none; }
.show-switch a.on { background:#fff; color:#3F4FC7; font-weight:700; }
.show-actions { display:flex; gap:10px; margin-top:16px; flex-wrap:wrap; justify-content:center; }
.show-actions a { background:rgba(255,255,255,.14); color:#fff; border-radius:999px; padding:9px 16px; font-weight:600; text-decoration:none; font-size:0.9rem; }
/* Date pickers & field hints (My info) */
.date-picker { display:flex; gap:6px; }
.date-picker select { flex:1.4; min-width:0; }
.date-picker select + select { flex:0.8; }
.date-picker input { flex:0.9; min-width:0; }
.field-hint { font-size:0.78rem; color:var(--muted); margin-top:4px; }
.field-warn { font-size:0.8rem; color:#A16207; background:#FFFBEB; border:1px solid #fde68a; border-radius:8px; padding:5px 9px; margin-top:6px; }

/* Contacts: "Group by" */
.group-by-bar { display:flex; align-items:center; gap:8px; margin:8px 0 2px; }
.group-by-bar label { margin:0; font-size:0.84rem; color:var(--muted); white-space:nowrap; }
.group-by-bar select { width:auto; margin:0; padding:5px 10px; font-size:0.88rem; }
.contacts-grp-head { text-transform:none; letter-spacing:0; }
.contacts-grp-head .grp-count { color:var(--muted); font-weight:400; }

/* Community list: actions for the whole list */
.list-actions { padding:14px 16px; }
.list-actions-row { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; }
.list-act { display:flex; flex-direction:column; align-items:center; gap:5px; width:78px; padding:0; background:none; border:0; cursor:pointer;
  font:inherit; font-size:0.78rem; font-weight:600; color:var(--brand-deeper); text-decoration:none; }
.list-act:hover { text-decoration:none; color:var(--brand-dark); }
.list-act .ico { width:48px; height:48px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1.25rem;
  background:var(--brand-light); border:1px solid var(--brand-border); }
.list-act[disabled] { opacity:0.45; cursor:default; }

/* List board — running conversation kept with a list */
.list-tabs { display:flex; gap:4px; border-bottom:1px solid var(--border); margin:0 0 14px; }
.list-tab { padding:8px 14px; font-weight:600; font-size:0.92rem; color:var(--text-sec); text-decoration:none; border-bottom:2px solid transparent; margin-bottom:-1px; }
.list-tab:hover { text-decoration:none; color:var(--text); }
.list-tab.on { color:var(--brand-deeper); border-bottom-color:var(--brand); }
.list-tab-new { display:inline-block; font-size:0.72rem; font-weight:700; padding:1px 7px; border-radius:980px; background:var(--brand); color:#fff; margin-left:4px; vertical-align:1px; }
.board { max-width:680px; margin:0 auto; }
.board-composer textarea { width:100%; margin:0; resize:vertical; font:inherit; }
.board-composer-foot { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:8px; flex-wrap:wrap; }
.board-composer-note { font-size:0.78rem; margin:8px 0 0; }
.board-add-photo { position:relative; display:inline-flex; align-items:center; gap:6px; margin:0; padding:7px 12px; border:1px solid var(--border); border-radius:999px; font-size:0.86rem; font-weight:600; color:var(--brand-strong); background:#fff; cursor:pointer; }
.board-add-photo:hover { background:var(--brand-light); }
.board-add-photo:focus-within { outline:2px solid var(--brand-strong); outline-offset:2px; }
.board-add-photo input { position:absolute; inset:0; opacity:0; width:100%; cursor:pointer; }
.board-add-photo.is-full { color:var(--muted); cursor:default; background:var(--surface-alt); }
.board-add-photo.is-full input { cursor:default; }
.board-thumbs { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.board-thumb { position:relative; width:84px; height:84px; border-radius:10px; overflow:hidden; border:1px solid var(--border); background:var(--surface-alt); }
.board-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.board-thumb button { position:absolute; top:4px; right:4px; width:26px; height:26px; border-radius:50%; border:0; background:rgba(0,0,0,.62); color:#fff; font-size:18px; line-height:26px; padding:0; cursor:pointer; margin:0; }
.board-photos { display:grid; gap:4px; margin:10px 0 2px; border-radius:12px; overflow:hidden; max-width:560px; }
.board-photos.n2 { grid-template-columns:1fr 1fr; }
.board-photos.n3 { grid-template-columns:2fr 1fr; grid-template-rows:1fr 1fr; }
.board-photos.n3 .board-photo:first-child { grid-row:1 / span 2; }
.board-photo { display:block; padding:0; margin:0; border:0; background:var(--surface-alt); cursor:zoom-in; min-width:0; }
.board-photo img { display:block; width:100%; height:100%; object-fit:cover; }
.board-photos.n1 .board-photo img { height:auto; max-height:460px; object-fit:contain; background:var(--surface-alt); }
.board-photos.n2 .board-photo { aspect-ratio:1 / 1; }
.board-photos.n3 { aspect-ratio:3 / 2; }
.board-lightbox { position:fixed; inset:0; z-index:2000; background:rgba(10,12,16,.96); display:flex; align-items:center; justify-content:center; padding:48px 12px; }
.board-lightbox[hidden] { display:none; }
.board-lightbox img { max-width:100%; max-height:100%; object-fit:contain; border-radius:6px; }
.board-lb-close { position:absolute; top:10px; right:12px; width:44px; height:44px; border-radius:50%; border:0; background:rgba(255,255,255,.14); color:#fff; font-size:30px; line-height:44px; padding:0; margin:0; cursor:pointer; }
.board-lb-nav { position:absolute; top:50%; transform:translateY(-50%); width:44px; height:64px; border:0; border-radius:10px; background:rgba(255,255,255,.12); color:#fff; font-size:34px; padding:0; margin:0; cursor:pointer; }
.board-lb-nav.prev { left:8px; } .board-lb-nav.next { right:8px; }
.board-lb-nav[hidden] { display:none; }
.board-note { font-size:0.9rem; color:var(--text-sec); }
.board-section-title { font-size:0.74rem; font-weight:700; text-transform:uppercase; letter-spacing:0.07em; color:var(--muted); margin:16px 4px 6px; }
.board-post { padding:14px 16px; }
.board-post.is-pinned { border-color:var(--brand-border); background:var(--brand-light); }
.board-post.is-new { box-shadow:inset 3px 0 0 var(--brand); }
.board-head { display:flex; align-items:center; gap:10px; }
.board-who { display:flex; flex-direction:column; line-height:1.25; font-size:0.92rem; }
.board-who .muted { font-size:0.78rem; }
.board-new { color:var(--brand-deeper); font-weight:700; }
.board-body { white-space:pre-wrap; overflow-wrap:anywhere; margin:8px 0 4px; font-size:0.96rem; line-height:1.45; }
.board-removed { margin:0; font-style:italic; }
.board-actions { display:flex; gap:12px; flex-wrap:wrap; }
.board-actions form { margin:0; }
.board-actions button { background:none; border:0; padding:0; cursor:pointer; font:inherit; font-size:0.78rem; color:var(--muted); }
.board-actions button:hover { color:var(--brand-deeper); }
.board-replies { margin:10px 0 0; padding:8px 0 0 12px; border-left:2px solid var(--border); display:flex; flex-direction:column; gap:10px; }
.board-reply { display:flex; gap:8px; font-size:0.92rem; }
.board-reply .board-body { margin:2px 0; font-size:0.92rem; }
.board-reply.is-new { background:rgba(83,102,241,.05); border-radius:8px; }
.board-reply-form { display:flex; gap:6px; margin-top:10px; }
.board-reply-form input { flex:1; margin:0; min-width:0; }
.board-settings-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:0; }
.board-settings-row label { margin:0; font-size:0.88rem; }
.board-settings-row select { width:auto; margin:0; }

/* Import review: First / Last / Phone / Email table */
.import-table td, .import-table th { vertical-align:middle; }
.import-table .import-row-muted td { color:var(--text-sec); }
.import-table input[type=checkbox] { width:16px; height:16px; accent-color:var(--brand); }

/* Invite people */
.invite-page { max-width:680px; margin:0 auto; padding-bottom:70px; }
.invite-alert { border-color:#f1e3b5; background:#fffdf5; }
.invite-funnel-title { font-size:0.74rem; font-weight:700; text-transform:uppercase; letter-spacing:0.07em; color:var(--muted); }
.invite-funnel-row { display:grid; grid-template-columns:repeat(5, 1fr); gap:6px; margin-top:8px; text-align:center; }
.invite-stat strong { display:block; font-size:1.35rem; }
.invite-stat span { font-size:0.72rem; color:var(--muted); line-height:1.2; display:block; }
.invite-nudge-row { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:8px 0; border-top:1px solid var(--border); flex-wrap:wrap; }
.invite-nudge-row:first-of-type { border-top:0; }
.invite-tools { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:6px; }
.invite-tools input { flex:1; min-width:160px; }
.invite-section { font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:0.07em; color:var(--muted); margin:14px 2px 4px; }
.invite-row { display:flex; align-items:center; gap:10px; padding:9px 4px; border-top:1px solid var(--border); cursor:pointer; margin:0; font-weight:400; }
.invite-row input[type=checkbox] { width:18px; height:18px; accent-color:var(--brand); flex-shrink:0; margin:0; }
.invite-row.is-off { opacity:0.5; cursor:default; }
.invite-who { flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.3; }
.invite-who .muted { font-size:0.8rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.invite-status { font-size:0.72rem; font-weight:600; padding:2px 8px; border-radius:980px; background:var(--surface-alt); color:var(--text-sec); white-space:nowrap; }
.invite-status.s-on { background:var(--brand-light); color:var(--brand-deeper); }
.invite-status.s-kept { background:var(--brand); color:#fff; }
.invite-status.s-opened { background:#e0f2fe; color:#075985; }
.invite-bar { position:fixed; left:0; right:0; bottom:0; z-index:40; display:flex; justify-content:space-between; align-items:center; gap:12px;
  padding:12px max(16px, calc((100vw - 680px) / 2)); background:#fff; border-top:1px solid var(--border); box-shadow:0 -6px 20px rgba(0,0,0,.06); }
@media (max-width: 768px) { .invite-bar { bottom:calc(58px + env(safe-area-inset-bottom, 0px)); } .invite-funnel-row { grid-template-columns:repeat(3, 1fr); } }
.invite-send.is-next { border-color:var(--brand); box-shadow:0 0 0 3px rgba(83,102,241,.15); }
.invite-send.is-sent { opacity:0.7; }
.invite-send-head { display:flex; align-items:center; gap:10px; }
.invite-preview { margin:8px 0; font-size:0.86rem; }
.invite-preview summary { cursor:pointer; color:var(--brand-deeper); font-size:0.82rem; }
.invite-preview p { margin:6px 0 0; padding:8px 10px; background:var(--surface-alt); border-radius:10px; }
.invite-send-actions { display:flex; gap:8px; flex-wrap:wrap; }

.handover-hi { margin:0 0 2px; font-size:1.05rem; color:var(--text-sec); }
.handover-why { max-width:440px; margin:14px auto 0; text-align:center; font-size:0.9rem; color:var(--text-sec); }
.handover-proof { max-width:440px; margin:10px auto 0; text-align:center; font-size:0.9rem; font-weight:600; color:var(--brand-deeper); }

.ready-bar { height:8px; border-radius:980px; background:var(--surface-alt); overflow:hidden; max-width:360px; margin:10px auto 8px; }
.ready-bar span { display:block; height:100%; background:var(--brand); border-radius:980px; }
.ready-list { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; }
.ready-item { font-size:0.8rem; padding:3px 10px; border-radius:980px; border:1px solid var(--brand-border); color:var(--brand-deeper); text-decoration:none; }
.ready-item.done { border-color:transparent; background:var(--surface-alt); color:var(--muted); }

.funnel-row { display:grid; grid-template-columns:190px 1fr 90px; align-items:center; gap:10px; padding:5px 0; font-size:0.9rem; }
.funnel-bar { height:10px; background:var(--surface-alt); border-radius:980px; overflow:hidden; }
.funnel-bar span { display:block; height:100%; background:var(--brand); border-radius:980px; }
.funnel-num { text-align:right; }
@media (max-width: 520px) { .funnel-row { grid-template-columns:1fr 70px; } .funnel-bar { grid-column:1 / -1; order:3; } }

/* How you know them + history (private) */
.rp-private { text-transform:none; letter-spacing:0; font-weight:500; font-size:0.72rem; color:var(--muted); margin-left:6px; }
.rp-box { padding:0 0 10px; }
.rp-summary { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:12px 16px 4px; }
.rp-chip { display:inline-flex; align-items:center; gap:4px; font-size:0.84rem; font-weight:600; padding:4px 11px; border-radius:980px; background:var(--brand-light); color:var(--brand-deeper); border:1px solid var(--brand-border); }
.rp-chip-btn { cursor:pointer; font-family:inherit; }
.rp-chip-btn:hover { background:#E1E5FF; }
.rp-text { font-size:0.92rem; color:var(--text-sec); }
.rp-ok { font-size:0.78rem; font-weight:600; color:var(--brand-deeper); }
.rp-due { font-size:0.78rem; font-weight:700; color:#A16207; background:#fef3c7; padding:2px 9px; border-radius:980px; }
.rp-hint { font-size:0.84rem; color:var(--text-sec); margin:12px 16px 8px; }
.rp-quick { display:flex; flex-wrap:wrap; gap:6px; padding:0 16px 6px; }
.rp-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:4px 16px; margin:0; }
.rp-link { background:none; border:0; padding:0; color:var(--brand-deeper); font:inherit; font-size:0.88rem; font-weight:600; cursor:pointer; }
.rp-edit { padding:4px 16px 0; }
.rp-edit summary { cursor:pointer; font-size:0.8rem; color:var(--muted); padding:6px 0; }
.rp-form label { font-size:0.84rem; margin-top:8px; }
.rp-form input, .rp-form select { margin-top:4px; }
.rp-years { display:flex; gap:10px; }
.rp-log { padding:8px 16px 0; margin:0; }
.rp-kinds { display:flex; flex-wrap:wrap; gap:6px; }
.rp-kind { margin:0; font-weight:400; cursor:pointer; }
.rp-kind input { position:absolute; opacity:0; pointer-events:none; }
.rp-kind span { display:inline-block; font-size:0.8rem; padding:4px 10px; border-radius:980px; border:1px solid var(--border); background:#fff; }
.rp-kind input:checked + span { background:var(--brand); color:#fff; border-color:var(--brand); }
.rp-log-row { display:flex; gap:6px; margin-top:8px; flex-wrap:wrap; }
.rp-log-row input[type=date] { width:auto; margin:0; }
.rp-log-row input[type=text] { flex:1; min-width:140px; margin:0; }
.rp-history { list-style:none; margin:10px 0 0; padding:0 16px; }
.rp-history li { display:flex; gap:10px; align-items:flex-start; padding:8px 0; border-top:1px solid var(--border); font-size:0.9rem; }
.rp-h-ico { width:22px; text-align:center; }
.rp-h-main { flex:1; min-width:0; }
.rp-h-main .muted { font-size:0.78rem; }
.rp-h-note { color:var(--text-sec); white-space:pre-wrap; }
.rp-x { background:none; border:0; color:var(--muted); cursor:pointer; font-size:1.1rem; line-height:1; padding:0 4px; }
.rp-x:hover { color:var(--danger); }

.ic-rel { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; margin-top:8px; font-size:0.86rem; }
.ic-rel a { text-decoration:none; color:var(--brand-deeper); }
.ic-rel a.muted { color:var(--muted); }

/* Shared with the contact pages (contact_detail.ejs defines the same inline) */
.ic-group { background:var(--surface-alt); border-radius:14px; margin:0 0 12px; overflow:hidden; }
.ic-group-title { font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:0.07em; color:var(--muted); margin:18px 4px 6px; }

.invite-rel { flex-wrap:wrap; gap:6px; align-items:center; padding:0 4px 10px 50px; font-size:0.8rem; }
.invite-rel .rp-kind span { font-size:0.76rem; padding:3px 9px; }

/* My info — guided interview / form, quick / normal / detailed */
.info-page { max-width:640px; margin:0 auto; }
.info-modes { display:flex; gap:8px; flex-wrap:wrap; margin:6px 0 4px; }
.info-seg { display:inline-flex; background:var(--surface-alt); border-radius:980px; padding:3px; margin:0; }
.info-seg button { border:0; background:none; padding:6px 12px; border-radius:980px; font:inherit; font-size:0.84rem; font-weight:600; color:var(--text-sec); cursor:pointer; }
.info-seg button.on { background:#fff; color:var(--brand-deeper); box-shadow:0 1px 3px rgba(0,0,0,.12); }
.info-depth-note { font-size:0.84rem; margin:6px 0 12px; }
.info-start { display:block; text-align:center; margin:0 0 14px; }
.info-row { display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--text); }
.info-row:hover { text-decoration:none; }
.info-ico { font-size:1.4rem; width:32px; text-align:center; }
.info-main { flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.3; }
.info-main .muted { font-size:0.84rem; }
.info-go { font-size:0.86rem; font-weight:600; color:var(--brand-deeper); white-space:nowrap; }
.info-peek { margin:10px 0 0 44px; font-size:0.86rem; display:flex; flex-direction:column; gap:3px; }
.info-list { padding:6px 16px; }
.info-item { display:flex; align-items:center; gap:10px; padding:10px 0; border-top:1px solid var(--border); }
.info-item:first-child { border-top:0; }
.info-item.just-added { background:rgba(83,102,241,.06); border-radius:8px; }
.info-x { background:none; border:0; color:var(--muted); font-size:1.2rem; cursor:pointer; padding:0 4px; }
.info-x:hover { color:var(--danger); }
.info-gate { text-align:center; }
.info-gate h2 { font-size:1.15rem; margin:0 0 14px; }
.info-saved { color:var(--brand-deeper); font-weight:600; margin:0 0 6px; }
.info-gate-btns { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.info-progress { height:6px; background:var(--surface-alt); border-radius:980px; overflow:hidden; margin:6px 0 6px; }
.info-progress span { display:block; height:100%; background:var(--brand); }
.info-stepno { font-size:0.8rem; margin:0 0 10px; }
.info-step { padding:22px 20px; }
.info-q { font-size:1.35rem; margin:0 0 6px; letter-spacing:-0.01em; }
.info-help { margin:0 0 10px; font-size:0.9rem; }
.info-inputs { display:flex; flex-wrap:wrap; gap:0 12px; margin-top:8px; }
.info-field { flex:1 1 100%; margin:0 0 10px; font-weight:400; }
.info-field.half { flex:1 1 calc(50% - 12px); min-width:130px; }
.info-field span { display:block; font-size:0.82rem; color:var(--text-sec); margin-bottom:4px; }
.info-field input, .info-field select { width:100%; margin:0; }
.info-choice { display:flex; flex-direction:column; gap:8px; flex:1 1 100%; margin-bottom:10px; }
.info-radio { display:flex; gap:10px; align-items:center; padding:12px 14px; border:1px solid var(--border); border-radius:12px; cursor:pointer; margin:0; font-weight:500; }
.info-radio input { width:18px; height:18px; accent-color:var(--brand); margin:0; }
.info-radio:has(input:checked) { border-color:var(--brand); background:var(--brand-light); }
.info-check { flex:1 1 100%; display:flex; gap:8px; align-items:center; font-weight:400; margin:0 0 8px; }
.info-check input { width:16px; height:16px; accent-color:var(--brand); }
.info-nav { display:flex; align-items:center; gap:10px; margin-top:16px; }
.info-skip { background:none; border:0; color:var(--muted); font:inherit; font-size:0.9rem; cursor:pointer; padding:8px 10px; }
.info-skip:hover { color:var(--text); }
.info-cards { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.info-cardpick { margin:0; font-weight:400; cursor:pointer; }
.info-cardpick input { position:absolute; opacity:0; pointer-events:none; }
.info-cardpick span { display:inline-block; padding:8px 14px; border-radius:980px; border:1px solid var(--border); background:#fff; font-size:0.9rem; }
.info-cardpick input:checked + span { background:var(--brand); border-color:var(--brand); color:#fff; }
.info-cardpick input:checked + span::before { content:'✓ '; }
.info-formcard summary { cursor:pointer; }
.info-group { padding:12px 0; border-top:1px solid var(--border); }
.info-group:first-of-type { border-top:0; }
.info-group-q { font-weight:600; font-size:0.92rem; margin-bottom:2px; }
.info-form-foot { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:8px; }
.info-x-text { background:none; border:0; color:var(--danger); font:inherit; font-size:0.86rem; cursor:pointer; }

.fields-links { display:flex; flex-direction:column; gap:8px; margin:6px 0 14px; }
.fields-link { display:block; padding:12px 14px; border:1px solid var(--border); border-radius:12px; text-decoration:none; color:var(--text); background:#fff; }
.fields-link:hover { text-decoration:none; border-color:var(--brand-border); }
.fields-link .muted { font-size:0.84rem; }

/* ── Delete a community (multi-step) ──────────────────────────────────────── */
.cdel { max-width: 640px; margin: 0 auto; }
.cdel-steps { display: flex; gap: 8px; margin: 0 0 12px; }
.cdel-steps span { padding: 4px 12px; border-radius: 999px; background: var(--bg-soft, #f0f1f3); color: var(--text-muted, #666); font-size: 0.85rem; font-weight: 600; }
.cdel-steps span.on { background: var(--danger); color: #fff; }
.cdel-steps span.done { background: var(--danger-light); color: var(--danger); }
.cdel-danger { border-color: var(--danger-border); background: var(--danger-light); }
.cdel-icon { font-size: 2rem; line-height: 1; }
.cdel-title { font-size: 1.35rem; margin: 6px 0 8px; }
.cdel-h { font-size: 0.95rem; margin: 18px 0 8px; }
.cdel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.cdel-grid div { background: #fff; border: 1px solid var(--danger-border); border-radius: 12px; padding: 10px 12px; }
.cdel-grid b { display: block; font-size: 1.35rem; color: var(--danger); }
.cdel-grid span { display: block; font-size: 0.82rem; line-height: 1.3; color: var(--text-muted, #666); }
.cdel-list { margin: 12px 0 0; padding-left: 18px; font-size: 0.9rem; line-height: 1.55; }
.cdel-alt { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--border, #E2E8F0); }
.cdel-alt:first-of-type { border-top: 0; }
.cdel-alt p { margin: 2px 0 0; font-size: 0.85rem; }
.cdel-alt .btn { white-space: nowrap; flex-shrink: 0; }
.cdel-check { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--danger-border); border-radius: 10px; padding: 10px 12px; margin: 0 0 8px; cursor: pointer; font-size: 0.92rem; }
.cdel-check span { font-weight: 400; line-height: 1.45; }
.cdel-check input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--danger); }
.cdel-actions { display: flex; gap: 10px; justify-content: flex-end; margin: 16px 0 24px; flex-wrap: wrap; }
.cdel-actions .btn { margin-top: 0; }
.manage-subtabs a.danger-link { color: var(--danger); }
.console-close { margin-top: 12px; border-top: 1px solid var(--border, #E2E8F0); padding-top: 10px; }
.console-close summary { cursor: pointer; font-size: 0.88rem; color: var(--danger); font-weight: 600; }
.console-close .row-stack { margin-top: 8px; }

/* ── Edit a community list ────────────────────────────────────────────────── */
.ledit { max-width: 640px; margin: 0 auto; }
.ledit-h { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted, #888); margin: 20px 0 10px; }
.ledit-hint { font-size: 0.78rem; margin-top: 4px; }
.ledit-check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border, #E2E8F0); border-radius: 10px; margin: 0 0 8px; cursor: pointer; font-weight: 400; }
.ledit-check input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }
.ledit-check .muted { font-size: 0.82rem; }
.ledit-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.ledit-actions .btn, .ledit-links .btn { margin-top: 0; }
.ledit-links { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── List invite links (/j/:token) and list share page ───────────────────── */
.jinv { max-width: 560px; margin: 0 auto; }
.jinv-hero { background: linear-gradient(135deg, var(--brand-light, #EEF0FF), #fff); border-color: var(--brand-border, #C8CEFF); }
.jinv-badge { display: inline-block; background: var(--brand, #5366F1); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 0.75rem; font-weight: 700; letter-spacing: .02em; }
.jinv-title { font-size: 1.6rem; margin: 8px 0 4px; }
.jinv-path { display: flex; flex-wrap: wrap; gap: 4px; font-size: 0.88rem; color: var(--text-muted, #666); }
.jinv-sep { color: var(--brand, #5366F1); font-weight: 700; }
.jinv-why { font-size: 0.9rem; margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--brand-border, #C8CEFF); }
.jinv-card { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--border, #E2E8F0); border-radius: 10px; margin: 0 0 8px; cursor: pointer; font-weight: 400; }
.jinv-card input { width: 18px; height: 18px; }
.jinv-go { width: 100%; margin-top: 14px; text-align: center; display: block; }
.lshare-tree { font-size: 0.9rem; }
.lshare-tree .row-stack { padding: 8px 0; }
.jinv-names { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jinv-names .input, .jinv form .input { width: 100%; box-sizing: border-box; }
.lpick { margin: 0 0 6px; }
.lpick-h { font-size: 1rem; margin: 14px 0 2px; }
.lpick-sub { font-size: 0.85rem; margin: 0 0 10px; }
.lpick-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border: 1px solid var(--border, #E2E8F0); border-radius: 10px; margin-bottom: 6px; cursor: pointer; font-weight: 400; }
.lpick-row input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--brand, #5366F1); }
.lpick-row.is-member { background: var(--brand-light, #EEF0FF); cursor: default; }

/* ── List rows (tap to open) and the list page action bar ─────────────────── */
.lrow-list { display: flex; flex-direction: column; }
.lrow { display: flex; align-items: center; gap: 10px; padding: 11px 4px; border-bottom: 1px solid var(--border, #E2E8F0); color: inherit; text-decoration: none; }
.lrow:hover { background: var(--surface, #F8FAFC); }
.lrow:last-child { border-bottom: 0; }
.lrow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lrow-main strong { color: var(--text, #0F172A); }
.lrow-meta { font-size: 0.8rem; color: var(--muted, #888); margin-top: 1px; }
.lrow-pill { font-size: 0.74rem; white-space: nowrap; background: var(--brand-light, #EEF0FF); color: var(--brand-deeper, #3F4FC7); }
.lrow-new { background: var(--brand, #5366F1); color: #fff; }
.lrow-arrow { color: var(--muted, #aaa); font-size: 1.3rem; line-height: 1; }
.lhub-crumb { font-size: 0.82rem; color: var(--muted, #888); margin-bottom: 2px; }
.lhub-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.lhub-on { font-size: 0.85rem; font-weight: 600; color: var(--brand-deeper, #3F4FC7); background: var(--brand-light, #EEF0FF); border-radius: 999px; padding: 5px 12px; }
.lhub-wait { color: #8a6d00; background: #FFFBEB; }
.lhub-subs { padding-top: 12px; padding-bottom: 6px; }

/* ── Staff banners: super admin inside a community, and View as ─────────── */
.staff-banner { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; background: #1E293B; color: #fff; font-size: 0.85rem; padding: 8px 14px; text-align: center; }
.staff-banner strong { color: #fff; }
.staff-viewas { background: #A16207; }
.staff-banner button { background: #fff; color: #1E293B; border: 0; border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: 0.8rem; cursor: pointer; }
.staff-pill { display: inline-block; font-size: 0.72rem; font-weight: 700; border-radius: 999px; padding: 2px 8px; background: #1E293B; color: #fff; }
.staff-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--border, #E2E8F0); margin: 0; }
.staff-row:last-child { border-bottom: 0; }
.audit-row { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border, #E2E8F0); font-size: 0.9rem; }
.audit-row:last-child { border-bottom: 0; }
.audit-when { width: 110px; flex-shrink: 0; font-size: 0.8rem; }

/* ── Simulated checkout ───────────────────────────────────────────────────── */
.co { max-width: 940px; margin: 0 auto; }
.co-testbar { background: #fff4d6; color: #7a5a00; border: 1px solid #f0d58a; border-radius: 10px; padding: 8px 12px; font-size: 0.82rem; font-weight: 600; text-align: center; }
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 760px) { .co-grid { grid-template-columns: 1fr; } }
.co-for { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted, #888); font-weight: 700; }
.co-plan { font-size: 1.5rem; margin: 4px 0 2px; }
.co-price { font-size: 1.9rem; font-weight: 800; }
.co-price .muted { font-size: 0.9rem; font-weight: 400; }
.co-toggle { display: inline-flex; background: var(--surface, #f2f3f5); border-radius: 999px; padding: 3px; margin-top: 10px; }
.co-toggle a { padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; color: inherit; text-decoration: none; font-weight: 600; }
.co-toggle a.on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.co-save { font-size: 0.7rem; color: var(--brand, #5366F1); font-weight: 700; margin-left: 4px; }
.co-lines { border-top: 1px solid var(--border, #E2E8F0); margin-top: 8px; }
.co-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 0.88rem; border-bottom: 1px solid var(--border, #eee); }
.co-line span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.co-total { font-weight: 800; font-size: 1rem; border-bottom: 0; }
.co-fine { font-size: 0.78rem; margin: 10px 0 0; }
.co-methods { display: flex; gap: 8px; margin: 14px 0 10px; }
.co-methods span { flex: 1; text-align: center; padding: 9px; border: 1px solid var(--border, #ddd); border-radius: 10px; font-size: 0.85rem; font-weight: 600; }
.co-methods .on { border-color: var(--brand, #5366F1); box-shadow: 0 0 0 1px var(--brand, #5366F1) inset; }
.co-methods .off { opacity: .45; }
.co-card { background: var(--surface, #F8FAFC); border-radius: 12px; padding: 12px; }
.co-lock { font-size: 0.78rem; color: var(--muted, #777); margin-bottom: 8px; }
.co-fake { width: 100%; margin-top: 0; background: #fff; color: #333; cursor: not-allowed; }
.co-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 8px; }
.co-go { width: 100%; margin-top: 14px; font-size: 1rem; }
.co-sim { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border, #ddd); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.co-sim-h { width: 100%; font-size: 0.78rem; font-weight: 700; color: var(--muted, #888); text-transform: uppercase; letter-spacing: .05em; }
.co-sim .btn { margin-top: 0; }
.co-bank { margin-top: 12px; }
.co-bank-logo { font-weight: 800; color: #1E293B; }
.co-done { text-align: center; }
.co-status { font-size: 0.78rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; align-self: flex-start; }
.co-status.paid { background: var(--brand-light, #EEF0FF); color: var(--brand-deeper, #3F4FC7); }
.co-status.failed { background: #FEF2F2; color: #B91C1C; }
.co-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 6px; font-size: 0.85rem; }
@media (max-width: 520px) { .co-meta { grid-template-columns: 1fr; } }
.bill-hist .co-line a { color: inherit; }

/* ── Live card preview while choosing fields (card editor) ────────────────── */
.cprev-wrap { position: sticky; top: 64px; z-index: 15; padding: 6px 0 12px; background: linear-gradient(var(--bg, #F1F5F9) 85%, rgba(244,245,247,0)); }
@media (max-width: 700px) { .cprev-wrap { top: 60px; } }
.cprev { aspect-ratio: auto; min-height: 190px; max-width: 420px; }
.cprev .bizcard-contact { max-height: 128px; overflow-y: auto; }
.cprev .bizcard-line small { color: var(--muted, #999); font-size: 0.72rem; margin-right: 2px; }
.cprev-empty { color: var(--muted, #aaa); font-weight: 600; }
.cprev-initials { display: inline-flex; width: 60px; height: 60px; border-radius: 50%; align-items: center; justify-content: center; background: var(--brand-light, #EEF0FF); color: var(--brand, #5366F1); font-weight: 800; font-size: 1.3rem; border: 1px solid var(--brand-border, #C8CEFF); }
.cprev-img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.cprev-hint { font-size: 0.8rem; color: var(--muted, #999); font-style: italic; }
.cprev-new { animation: cprevIn .6s ease; }
@keyframes cprevIn { from { background: var(--brand-light, #EEF0FF); transform: translateX(-4px); } to { background: transparent; transform: none; } }

/* ── Unsaved-changes prompt (card editor) ─────────────────────────────────── */
.unsaved-modal { position: fixed; inset: 0; z-index: 400; background: rgba(15, 23, 42, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.unsaved-modal[hidden] { display: none; }
.unsaved-box { background: #fff; border-radius: 16px; max-width: 400px; width: 100%; padding: 20px 20px 16px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.unsaved-box h2 { margin: 0 0 6px; font-size: 1.15rem; }
.unsaved-box p { margin: 0 0 14px; font-size: 0.9rem; }
.unsaved-actions { display: flex; flex-direction: column; gap: 8px; }
.unsaved-actions .btn { margin-top: 0; width: 100%; }
.unsaved-err { color: var(--danger, #B91C1C); font-size: 0.82rem; margin: 10px 0 0 !important; }

/* ── Card page: communities & lists this card is in (tree) ────────────────── */
.ctree { border: 1px solid var(--border, #E2E8F0); border-radius: 12px; margin-top: 10px; overflow: hidden; }
.ctree-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface, #F8FAFC); }
.ctree-main { flex: 1; min-width: 0; }
.ctree-name { font-weight: 700; color: var(--text, #0F172A); text-decoration: none; }
.ctree-meta { font-size: 0.8rem; color: var(--muted, #888); margin-top: 1px; }
.ctree-leave { margin-top: 0; color: var(--danger, #B91C1C); }
.ctree-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--border, #eee); font-size: 0.92rem; }
.ctree-row a { color: var(--text, #0F172A); font-weight: 600; text-decoration: none; }
.ctree-branch { color: var(--muted, #bbb); margin-right: 4px; }
.ctree-note { font-size: 0.76rem; color: var(--muted, #999); margin-left: 6px; }
.ctree-left { color: #8a6d00; }
.ctree-left.ctree-note, .ctree-meta .ctree-left { background: #FFFBEB; border-radius: 999px; padding: 1px 8px; }
.ctree-left a, .ctree-row.ctree-left a { color: var(--muted, #888); }
.ctree-empty { font-size: 0.8rem; color: var(--muted, #999); padding: 8px 12px; border-top: 1px solid var(--border, #eee); }
.ctree-btn { background: none; border: 1px solid var(--border, #ddd); border-radius: 999px; padding: 3px 12px; font-size: 0.8rem; color: var(--danger, #B91C1C); cursor: pointer; }
.ctree-rejoin { color: var(--brand-deeper, #3F4FC7); border-color: var(--brand-border, #C8CEFF); background: var(--brand-light, #EEF0FF); }

/* ── Plan badges, paused cards, downgrade preview ─────────────────────────── */
.dg-h { font-size: 0.95rem; margin: 16px 0 6px; }
.dg-row { padding: 8px 12px; border: 1px solid var(--border, #E2E8F0); border-radius: 10px; margin-bottom: 6px; font-size: 0.92rem; }
.dg-note { font-size: 0.84rem; margin: 2px 0 6px; }
.dg-list { margin: 0; padding-left: 20px; font-size: 0.9rem; line-height: 1.6; }
.dg-explain { margin-top: 16px; background: var(--surface, #F8FAFC); border-radius: 12px; padding: 12px 14px; font-size: 0.86rem; }
.dg-explain ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.55; }
.plan-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; background: var(--surface, #F8FAFC); border: 1px solid var(--border, #E2E8F0); margin-bottom: 14px; font-size: 0.9rem; }
.plan-line strong { color: var(--brand-deeper, #3F4FC7); }
.plan-line a { margin-left: auto; font-weight: 600; }
.pill-plan { background: #efe9ff; color: #5b3fc4; font-weight: 700; }
.ghost-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.ghost-tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1.5px dashed var(--border, #d8d8de); border-radius: 12px; color: inherit; text-decoration: none; background: #fff; }
.ghost-tile:hover { border-color: #b9a8f0; background: #faf8ff; text-decoration: none; }
.ghost-tile .gt-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 0.9rem; }
.ghost-tile .gt-desc { font-size: 0.78rem; color: var(--muted, #888); line-height: 1.35; }
.paused-banner { background: #FFFBEB; border: 1px solid #f0d58a; color: #6b5200; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; font-size: 0.9rem; }
.paused-banner ul { margin: 6px 0 8px; padding-left: 18px; }

/* Who can see me (list reach) */
.ctree-reach { font-size: 0.78rem; color: var(--muted, #888); margin-top: 2px; }
.reach-pick .reach-opt { align-items: flex-start; }
/* What someone sees of me */
.seesme-card { border: 1px solid var(--border, #E2E8F0); border-radius: 12px; padding: 6px 14px; background: var(--bg-soft, transparent); }
.seesme-row { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border, #E2E8F0); font-size: 0.92rem; }
.seesme-row:last-child { border-bottom: 0; }
.seesme-label { color: var(--muted, #888); min-width: 120px; flex-shrink: 0; }
.seesme-val { min-width: 0; overflow-wrap: anywhere; }
/* Card audience summary */
.aud-sum { background: var(--brand-light, #eef4ff); border: 1px solid var(--brand-border, #cfe0ff); border-radius: 10px; padding: 10px 14px; font-size: 0.9rem; margin: 0 0 12px; }
.aud-people { display: flex; flex-wrap: wrap; gap: 6px; }
.aud-person { display: inline-block; padding: 5px 10px; border: 1px solid var(--border, #E2E8F0); border-radius: 999px; font-size: 0.85rem; text-decoration: none; }
.aud-more { color: var(--muted, #888); }

/* Card home (UX-06) */
.chome { max-width: 560px; margin: 0 auto; }
.chome-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.chome-head h1 { margin: 0; }
.chome-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 14px 0 16px; }
.chome-actions .btn { margin-top: 0; }
.chome-aud h2 { font-size: 1rem; margin: 0 0 4px; }
.chome-rows { margin-bottom: 24px; }
/* Tappable card rows on My Cards (UX-05) */
a.card-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
a.card-row:last-of-type { border-bottom: 0; }
a.card-row:hover { background: var(--surface-alt); text-decoration: none; color: var(--text); }
a.card-row .row-stack-main { flex: 1; min-width: 0; }

.pe-delete { text-align: center; margin: 8px 0 24px; font-size: 0.9rem; }
/* Fields tab: who it reaches, saved as you tick */
.fields-reach { font-size: 0.86rem; color: var(--text-sec, #475569); background: var(--surface-alt, #F1F5F9); border-radius: 10px; padding: 8px 12px; margin: 0 0 10px; }
.fields-reach.ok { background: var(--success-bg); color: var(--success-text); }
.fields-reach.err { background: var(--danger-light, #FEF2F2); color: #b42318; }

/* Recipient page: grouped details, collapsed (UX-10) */
.cd-all > summary { cursor: pointer; color: var(--brand-deeper, #3F4FC7); font-weight: 600; font-size: 0.92rem; list-style: none; }
.cd-all > summary::-webkit-details-marker { display: none; }
.cd-all > summary::after { content: ' ›'; }
.cd-all[open] > summary::after { content: ' ⌄'; }
.cd-sec { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin: 14px 0 2px; }

.handover-vcf { text-align: center; font-size: 0.84rem; margin: 10px 0 0; }

.req-card { font-size: 0.85rem; }
.req-change { display: inline-block; font-size: 0.8rem; }
.req-change > summary { cursor: pointer; color: var(--brand-deeper, #3F4FC7); list-style: none; }
.req-change > summary::-webkit-details-marker { display: none; }

.seesme-pick > summary { cursor: pointer; font-size: 0.82rem; color: var(--brand-deeper, #3F4FC7); margin: 4px 0; }
.seesme-grid { display: grid; grid-template-columns: 1fr; gap: 4px; font-size: 0.86rem; }
.seesme-grid label { font-weight: normal; display: flex; gap: 6px; align-items: baseline; margin: 0; }
@media (min-width: 640px) { .seesme-grid { grid-template-columns: 1fr 1fr; } }

/* Onboarding: starter cards side by side (UX-18) */
.start-cards { display: grid; grid-template-columns: 1fr; gap: 12px; text-align: left; }
@media (min-width: 640px) { .start-cards { grid-template-columns: 1fr 1fr; } }
a.start-card { color: inherit; text-decoration: none; display: block; }

/* ── Accessibility pass (UX-20) ────────────────────────────────────────────
   Text and button colours that meet WCAG AA (4.5:1), and a visible keyboard
   focus ring. The logo green (--brand) stays for decoration; anything that
   carries text uses --brand-strong. */
a { color: var(--brand-strong); }
:where(a, button, summary, [role="button"], input[type="checkbox"], input[type="radio"], select):focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}
input:focus-visible, textarea:focus-visible, .input:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
/* Compare cards (UX-26) */
.cmp-wrap { overflow-x: auto; padding: 0; }
.cmp { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.cmp th, .cmp td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: center; vertical-align: top; }
.cmp thead th { position: sticky; top: 0; background: var(--card, #fff); font-size: 0.85rem; }
.cmp th[scope="row"], .cmp thead th:first-child { text-align: left; min-width: 160px; }
.cmp .cmp-label { display: block; font-weight: 600; }
.cmp .cmp-val { display: block; color: var(--muted); font-weight: 400; font-size: 0.8rem; overflow-wrap: anywhere; }
.cmp .cmp-n { display: block; color: var(--muted); font-weight: 400; font-size: 0.75rem; }
.cmp td.yes { color: var(--brand-strong, #5366F1); font-weight: 700; }
.cmp td.no { color: var(--border-strong, #CBD5E1); }
.cmp .cmp-cat th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--surface-alt, #F1F5F9); }

/* Community plan: tools this plan doesn't include */
.plan-lock { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin: 8px 0; border: 1px dashed var(--border-strong, #CBD5E1); border-radius: 10px; font-size: 0.86rem; color: var(--text-sec, #475569); background: var(--surface, #F8FAFC); }
.plan-lock-ico { flex-shrink: 0; }

/* Community members: tappable rows (CX-05) */
.mem-list { border-top: 1px solid var(--border); }
a.mem-row { display: flex; align-items: center; gap: 10px; padding: 11px 4px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
a.mem-row:hover { background: var(--surface-alt); text-decoration: none; color: var(--text); }
.mem-name { flex: 1; min-width: 0; font-weight: 600; }
.mem-meta { font-size: 0.78rem; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Community plan tab: honest meters (CX-12) */
.meter-row { padding: 8px 0; border-top: 1px solid var(--border); }
.meter-row:first-of-type { border-top: 0; }
.meter-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 0.92rem; }
.meter { height: 8px; background: var(--surface, #f1f3f5); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.meter span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.meter span.m-near { background: #d97706; }
.meter span.m-full { background: #991B1B; }
.plan-waiting { margin: 10px 0 0; padding: 10px 12px; background: #FFFBEB; border: 1px solid #fde68a; border-radius: 8px; font-size: 0.86rem; color: #A16207; }
.plan-locked-banner { border-color: var(--brand-border); background: var(--brand-light); font-size: 0.92rem; }
.plan-alt { display: block; text-align: center; font-size: 0.8rem; margin-top: 6px; }
/* Pricing page */
.pricing-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .pricing-cols { grid-template-columns: 1fr; } }
.pricing-col h2 { margin: 0 0 4px; }
.price-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); }
.price-row:first-of-type { border-top: 0; }
.price-row .pr-name { font-weight: 600; }
.price-row .pr-price { white-space: nowrap; font-weight: 600; }
.price-row .pr-what { font-size: 0.82rem; }
.pricing-free { text-align: center; font-size: 1.02rem; padding: 14px; }
.lrow-everyone { font-size: 0.68rem; padding: 1px 7px; margin-left: 4px; vertical-align: middle; background: var(--brand-light); color: var(--brand); border: 1px solid var(--brand-border); }
.gs-card { border-color: var(--brand-border); }
.gs-list { margin-top: 8px; }
.gs-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 2px; border-top: 1px solid var(--border); color: inherit; text-decoration: none; font-size: 0.92rem; min-height: 44px; }
.gs-row:first-child { border-top: 0; }
.gs-done { color: var(--muted, #6b7280); text-decoration: line-through; }
.set-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; max-width: 640px; }
.set-nav a { padding: 6px 12px; border: 1px solid var(--border); border-radius: 99px; font-size: 0.84rem; text-decoration: none; color: inherit; background: var(--card-bg, #fff); }
.set-h { margin: 18px 0 10px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 1.05rem; }
[id="about"], [id="joining"], [id="list-privacy"], [id="organizing"], [id="ownership-protection"], [id="join-questions"] { scroll-margin-top: 70px; }
/* Start a group or community (chooser) */
.start-page { max-width: 760px; margin: 0 auto; }
.start-h1 { margin: 0 0 4px; }
.start-sub { margin: 0 0 16px; }
.start-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
@media (max-width: 640px) { .start-choices { grid-template-columns: 1fr; } }
.start-choice { display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--card-bg, #fff); color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.start-choice:hover, .start-choice:focus-visible { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); color: inherit; text-decoration: none; }
.start-choice:hover .start-go { filter: brightness(1.08); }
.start-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.start-ico { font-size: 2rem; line-height: 1; }
.start-title { font-weight: 700; font-size: 1.15rem; }
.start-price { font-size: 0.8rem; color: var(--brand-strong, #5366F1); font-weight: 600; }
.start-lede { margin: 0 0 2px; font-size: 0.95rem; font-weight: 500; }
.start-for { margin: 0 0 10px; font-size: 0.85rem; color: var(--muted); }
.start-points { margin: 0 0 14px; padding: 0; list-style: none; font-size: 0.86rem; }
.start-points li { padding: 5px 0 5px 22px; position: relative; border-top: 1px solid var(--border); }
.start-points li::before { content: '✓'; position: absolute; left: 2px; color: var(--brand-strong, #5366F1); font-weight: 700; }
.start-go { margin-top: auto; text-align: center; padding: 10px; border-radius: 10px; background: var(--brand-strong, #5366F1); color: #fff; font-weight: 600; }
.start-note { font-size: 0.84rem; color: var(--muted); margin: 14px 2px 0; }
.start-join { margin: 18px 2px 0; font-size: 0.9rem; }
.console-plan { font-size: 0.68rem; margin-left: 6px; }
/* Invite people (one page: share a link, or invite specific people) */
.inv-page { max-width: 720px; margin: 0 auto; }
.inv-step-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.inv-step-head h2 { margin: 0 0 2px; font-size: 1.1rem; }
.inv-step-head p { margin: 0; font-size: 0.86rem; }
.inv-num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-light); color: var(--brand-strong, #5366F1); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.inv-file { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0 0; font-size: 0.82rem; }
.inv-tips { margin-top: 10px; font-size: 0.86rem; }
.inv-tips summary { cursor: pointer; color: var(--brand-strong, #5366F1); font-weight: 600; }
.inv-tips ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.6; }
.inv-list { border-top: 1px solid var(--border); }
.inv-row { border-bottom: 1px solid var(--border); }
.inv-row summary, .rev-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 2px; min-height: 44px; cursor: pointer; list-style: none; }
.rev-row { cursor: default; border-bottom: 1px solid var(--border); }
.inv-row summary::-webkit-details-marker { display: none; }
.inv-who { display: flex; flex-direction: column; min-width: 0; font-size: 0.92rem; }
.inv-who .muted { font-size: 0.8rem; overflow-wrap: anywhere; }
.inv-state { flex-shrink: 0; font-size: 0.74rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
.inv-wait { background: #FFFBEB; color: #A16207; }
.inv-ok { background: var(--brand-light); color: var(--brand-strong, #5366F1); }
.inv-off { background: var(--surface, #f1f3f5); color: var(--muted); }
.inv-actions { padding: 0 2px 12px; }
.linklike { background: none; border: 0; padding: 0; color: var(--brand-strong, #5366F1); font: inherit; cursor: pointer; text-decoration: underline; }
.linklike.inv-cancel { color: var(--danger, #B91C1C); }
/* Family: children's profiles kept by parents */
.fam-page { max-width: 720px; margin: 0 auto; }
.fam-h2 { margin: 0 0 6px; font-size: 1.05rem; }
.fam-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; min-height: 48px; border-top: 1px solid var(--border); color: inherit; text-decoration: none; }
.card > .fam-row:first-of-type, .fam-h2 + .fam-row { border-top: 0; }
a.fam-row:hover { background: var(--surface, #F8FAFC); }
.fam-main { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 0.93rem; }
.fam-main .muted { font-size: 0.82rem; }
.fam-ico { font-size: 1.3rem; width: 34px; text-align: center; flex-shrink: 0; }
.fam-attn { border-color: #fde68a; background: #FFFBEB; }
.fam-group { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 12px 2px 2px; }
.fam-hero { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.fam-sub { font-size: 0.88rem; font-weight: 600; margin: 4px 0 4px; }
.fam-sub .muted { font-weight: 400; }
.fam-comm { font-size: 0.78rem; color: var(--muted); margin: 8px 0 0; font-weight: 600; }
.fam-check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 2px; font-size: 0.9rem; margin: 0; cursor: pointer; }
.fam-check input { width: auto; margin: 3px 0 0; flex-shrink: 0; }
.fam-ro { cursor: default; color: var(--muted); }
.fam-link { cursor: pointer; color: var(--brand-strong, #5366F1); font-weight: 600; font-size: 0.9rem; }
.fam-act { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--border); font-size: 0.86rem; }
.fam-fact { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 0.95rem; }
.cf-bday { display: grid; grid-template-columns: 1.4fr 0.8fr 1.2fr; gap: 8px; }
.cf-bday .input { margin: 0; }
.cf-help { font-size: 0.78rem; margin: 4px 0 0; }
.cf-photo { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cf-photo img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.cf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 520px) { .cf-two { grid-template-columns: 1fr; } }
.notif-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 6px 2px 8px; }
.notif-preview { white-space: pre-wrap; font-family: inherit; font-size: 0.86rem; background: var(--surface, #F8FAFC); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin: 8px 0 0; }
.share-kids { border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; margin-top: 12px; }
/* Prototype bar: switch user */
.dev-banner .dev-links { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.dev-banner .dev-links a { margin-left: 0; }
.dev-banner.dev-switched { background: #A16207; color: #ffe8cc; }
.dev-banner.dev-switched .dev-who { color: #ffe8cc !important; }
.dev-back { background: #fff; color: #A16207; border: 0; border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: 0.75rem; cursor: pointer; }
.su-item { margin: 0; border-top: 1px solid var(--border); }
.su-item:first-child { border-top: 0; }
.su-btn { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; padding: 10px 2px; text-align: left; cursor: pointer; font: inherit; color: inherit; min-height: 48px; }
.su-btn:hover { background: var(--surface, #F8FAFC); }
.su-btn:disabled { opacity: 0.6; cursor: default; }
/* Households on list pages: parents together, kids under them */
.hh { border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: 10px; padding: 4px 10px 10px; margin: 8px 0; background: var(--card-bg, #fff); }
.hh-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 6px 2px 2px; }
.hh .contact-row { border-bottom: 0; }
.hh-kids { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px 2px 2px; }
.hh-kid { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border: 1px solid var(--border); border-radius: 99px; font-size: 0.85rem; color: inherit; text-decoration: none; background: var(--surface, #F8FAFC); }
.hh-kid:hover { border-color: var(--brand); }
.hh-bdays { font-size: 0.8rem; color: var(--muted); padding: 6px 2px 0; }
.hh-bday strong { font-weight: 600; color: var(--text, inherit); }
tr.hh-title-row td { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding-top: 12px; border-left: 4px solid var(--brand); }
tr.hh-kids-row td { border-left: 4px solid var(--brand); padding-bottom: 12px; }
.dev-banner .dev-links a { white-space: nowrap; }

/* Spouse / Children linked to the Family page */
.ff-note { display: inline-block; margin-top: 2px; font-size: 0.78rem; color: var(--muted); }
.ff-note a, .ff-note .linklike { font-size: inherit; }
.ff-linked .ff-val { padding: 8px 10px; border: 1px dashed var(--border, #d6d6d6); border-radius: 8px; background: var(--surface-2, #f7f7f7); }
.ff-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; margin: 0 0 12px; border-radius: 10px; background: var(--brand-soft, #e8f6ef); }
.ff-offer > div { flex: 1 1 260px; }

/* ── My info: one page of open boxes that save as you go (views/my_info.ejs) ── */
.mi-page { max-width: 780px; margin: 0 auto; }
.mi-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin: 4px 0 10px; }
.mi-history { font-size: 0.86rem; white-space: nowrap; }
.mi-depth { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; margin: 0 0 4px; background: var(--card); }
.mi-depth button { font: inherit; font-size: 0.88rem; border: 0; background: none; padding: 7px 16px; cursor: pointer; color: var(--text); margin: 0; }
.mi-depth button + button { border-left: 1px solid var(--border); }
.mi-depth button[aria-pressed="true"] { background: var(--brand); color: #fff; font-weight: 600; }
.mi-depthhelp { font-size: 0.8rem; color: var(--muted); margin: 2px 0 8px; }
.mi-nav { position: sticky; top: 60px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; margin: 0 0 10px; background: var(--bg); scrollbar-width: none; }
.mi-nav::-webkit-scrollbar { display: none; }
.mi-navchip { flex: 0 0 auto; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-size: 0.86rem; }
.mi-navchip:hover { text-decoration: none; border-color: var(--brand-border); background: var(--brand-light); }
.mi-count { color: var(--muted); font-size: 0.78rem; }
.mi-sec { scroll-margin-top: 116px; padding-top: 14px; }
.mi-h { font-size: 1.05rem; margin: 0 0 8px; }
.mi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.mi-grid .wide { grid-column: 1 / -1; }
.mi-f { min-width: 0; scroll-margin-top: 120px; }
.mi-f form { margin: 0; }
.mi-f label, .mi-lab { display: block; font-size: 0.8rem; color: var(--muted); margin: 6px 0 3px; font-weight: 500; }
.mi-page input[type=text], .mi-page input[type=tel], .mi-page input[type=email], .mi-page textarea, .mi-page select { width: 100%; margin: 0; }
.mi-st { display: block; min-height: 0.9em; font-size: 0.76rem; color: var(--success-text); margin: 1px 0 0; }
.mi-st.err { color: var(--danger); }
.mi-st .linklike { font-size: inherit; margin-left: 6px; }
.mi-date { display: flex; gap: 6px; }
.mi-date select { flex: 1 1 auto; min-width: 0; }
.mi-date input { flex: 0 0 78px; width: 78px !important; }
.mi-linked { padding: 8px 10px; border: 1px dashed var(--border); border-radius: 8px; background: var(--surface-alt, #f7f7f7); }
.mi-note { font-size: 0.78rem; color: var(--muted); margin-top: 3px; }
.mi-more { margin: 8px 0 2px; }
.mi-more > summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: 0.9rem; padding: 6px 0; list-style: none; }
.mi-more > summary::-webkit-details-marker { display: none; }
.mi-more > summary::before { content: '▸ '; }
.mi-more[open] > summary::before { content: '▾ '; }
.mi-more > summary .muted { font-weight: 400; font-size: 0.82rem; }
.mi-item { display: flex; gap: 8px; align-items: center; margin: 0; padding: 4px 0 0; flex-wrap: wrap; scroll-margin-top: 120px; }
.mi-item select { flex: 0 0 132px; width: 132px !important; }
.mi-item input { flex: 1 1 200px; }
.mi-itemwrap .mi-st, .mi-itemwrap .verify-line { margin-left: 140px; }
.mi-star, .mi-x { font: inherit; background: none; border: 1px solid transparent; border-radius: 8px; cursor: pointer; padding: 6px 8px; margin: 0; color: var(--muted); line-height: 1; }
.mi-star { font-size: 0.8rem; white-space: nowrap; }
.mi-star.on { color: var(--brand-deeper); background: var(--brand-light); border-color: var(--brand-border); font-weight: 600; }
.mi-x { font-size: 1.2rem; }
.mi-x:hover { color: var(--danger); background: var(--surface-alt, #F1F5F9); }
.mi-itemwrap .verify-line { font-size: 0.78rem; margin-top: -2px; }
.mi-gone { font-size: 0.86rem; color: var(--muted); padding: 8px 0; }
.mi-entry { border: 1px solid var(--border); border-radius: 12px; padding: 4px 12px 8px; margin: 8px 0; scroll-margin-top: 120px; }
.mi-entryhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 6px 0 0; }
.mi-entryhead strong { font-size: 0.92rem; }
.mi-group { grid-column: 1 / -1; font-size: 0.74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 10px 0 0; }
.mi-choice { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.9rem; padding: 6px 0; }
.mi-choice label { display: flex; gap: 6px; align-items: center; margin: 0; color: var(--text); font-size: 0.9rem; }
.mi-choice input { width: auto; margin: 0; }
.mi-addmore { font: inherit; background: none; border: 1px dashed var(--brand-border); border-radius: 10px; color: var(--brand); cursor: pointer; padding: 8px 12px; font-weight: 600; margin: 10px 0 2px; width: 100%; text-align: left; }
.mi-addmore:hover { background: var(--brand-light); }
.mi-remove { font: inherit; background: none; border: 0; color: var(--danger); cursor: pointer; font-size: 0.82rem; padding: 4px 0; }
@media (max-width: 560px) {
  .mi-grid { grid-template-columns: 1fr; }
  .mi-item { flex-wrap: nowrap; gap: 6px; }
  .mi-item select { flex: 0 0 92px; width: 92px !important; }
  .mi-item input { flex: 1 1 0; min-width: 0; }
  .mi-star, .mi-x { padding: 6px 5px; }
  .mi-itemwrap .mi-st, .mi-itemwrap .verify-line { margin-left: 0; }
}

/* Family: grown-ups on a child's profile (tap a row to change it) */
.fam-person > summary { list-style: none; cursor: pointer; }
.fam-person > summary::-webkit-details-marker { display: none; }
.fam-person[open] > summary .lrow-arrow { transform: rotate(90deg); }
.fam-person > :not(summary) { margin-left: 46px; }
.card > .fam-person:first-of-type > summary.fam-row, .fam-h2 + p + .fam-person > summary.fam-row { border-top: 0; }
.fam-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0 6px; font-size: 0.9rem; }
.fam-kid-q { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 2px; border-top: 1px solid var(--border); }
.fam-kid-q:first-of-type { border-top: 0; }
.fam-kid-q .fam-main { min-width: 160px; }
.fam-kid-q select { margin: 0; max-width: 220px; }
.fam-note { display: flex; gap: 10px; align-items: center; padding: 10px 12px; margin: 8px 0 4px; border-radius: 10px; background: var(--surface-alt, #F1F5F9); font-size: 0.88rem; color: inherit; text-decoration: none; }
.fam-note .fam-main { font-size: 0.88rem; }

/* Favorites star beside each row on the Communities page */
.fav-item { display: flex; align-items: center; gap: 6px; }
.fav-item > .console-row { flex: 1; min-width: 0; }
.fav-form { margin: 0; flex-shrink: 0; }
.fav-star { width: 40px; height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 1.35rem; line-height: 1; cursor: pointer; border-radius: 10px; padding: 0; }
.fav-star:hover { background: var(--surface-alt, #F1F5F9); color: #d49b00; }
.fav-star.on { color: #e0a800; }

/* ── Brand communities (views/brand_*.ejs, brands_*.ejs, offers.ejs) ── */
.br-page { max-width: 720px; margin: 0 auto; }
.br-hero { display: flex; gap: 14px; align-items: center; }
.br-logo { width: 64px; height: 64px; flex-shrink: 0; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; background: var(--brand-light); border: 1px solid var(--brand-border); }
.br-logo.sm { width: 42px; height: 42px; font-size: 1.35rem; border-radius: 11px; }
.br-name { margin: 0; font-size: 1.5rem; line-height: 1.2; }
.br-verified { display: inline-block; font-size: 0.72rem; font-weight: 700; color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 999px; padding: 1px 8px; vertical-align: middle; margin-left: 4px; }
.br-unverified { font-size: 0.84rem; background: #FFFBEB; border: 1px solid #fde68a; color: #A16207; border-radius: 10px; padding: 8px 12px; margin: 10px 0 0; }
.br-promise { display: grid; gap: 4px; margin: 8px 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--brand-light); border: 1px solid var(--brand-border); font-size: 0.88rem; }
.br-ask { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--border); }
.br-ask:first-of-type { border-top: 0; }
.br-ask input[type=checkbox] { width: auto; margin: 3px 0 0; }
.br-ask .br-ask-main { flex: 1; min-width: 0; font-size: 0.92rem; }
.br-ask .muted { font-size: 0.8rem; display: block; }
.br-sees { font-size: 0.8rem; color: var(--brand-deeper); display: block; margin-top: 1px; }
.br-req { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.br-inline { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.br-inline input, .br-inline select { width: auto; margin: 0; max-width: 160px; }
.br-topics { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.br-topic { display: inline-flex; gap: 6px; align-items: center; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); font-size: 0.86rem; background: var(--card); cursor: pointer; margin: 0; }
.br-topic input { width: auto; margin: 0; }
.br-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.35rem; font-weight: 700; letter-spacing: 0.08em; background: var(--surface-alt, #F1F5F9); border: 1px dashed var(--border); border-radius: 10px; padding: 8px 14px; display: inline-block; }
.br-kv { display: grid; grid-template-columns: 140px 1fr; gap: 4px 12px; font-size: 0.9rem; margin: 6px 0; }
.br-kv dt { color: var(--muted); font-size: 0.82rem; }
.br-kv dd { margin: 0; overflow-wrap: anywhere; }
.br-tabs { display: flex; gap: 4px; overflow-x: auto; margin: 10px 0 12px; border-bottom: 1px solid var(--border); scrollbar-width: none; }
.br-tabs a { padding: 8px 12px; font-size: 0.9rem; color: var(--text-sec); border-bottom: 2px solid transparent; white-space: nowrap; }
.br-tabs a.on { color: var(--brand-deeper); border-bottom-color: var(--brand); font-weight: 600; }
.br-tabs a:hover { text-decoration: none; color: var(--brand-deeper); }
.br-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 10px; }
.br-stat { background: var(--surface-alt, #F1F5F9); border-radius: 12px; padding: 10px 12px; }
.br-stat b { display: block; font-size: 1.4rem; }
.br-stat span { font-size: 0.78rem; color: var(--muted); }
.br-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.br-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: .03em; padding: 6px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.br-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.br-scroll { overflow-x: auto; }
.br-fieldrow { display: grid; grid-template-columns: 180px 130px 1fr; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--border); font-size: 0.9rem; }
.br-fieldrow select, .br-fieldrow input { margin: 0; }
.br-offer { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin: 0 0 10px; background: var(--card); scroll-margin-top: 80px; }
.br-offer.is-new { border-color: var(--brand-border); box-shadow: 0 0 0 2px var(--brand-light); }
.br-offer.done { opacity: 0.6; }
.br-offer h3 { margin: 4px 0; font-size: 1.05rem; }
.br-log { font-size: 0.8rem; color: var(--text-sec); margin: 2px 0; }
.br-pre { background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: 10px 12px; font-size: 0.78rem; overflow-x: auto; white-space: pre; margin: 6px 0 10px; }
@media (max-width: 600px) {
  .br-stats { grid-template-columns: 1fr 1fr; }
  .br-fieldrow { grid-template-columns: 1fr 1fr; }
  .br-fieldrow input { grid-column: 1 / -1; }
  .br-kv { grid-template-columns: 110px 1fr; }
}

/* PROTOTYPE sample data */
.sample-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; padding: 8px 12px; margin: 0 0 10px; border-radius: 10px; background: #f5f3ff; border: 1px solid #ddd6fe; font-size: 0.86rem; }
.sample-bar > span { flex: 1; min-width: 220px; }
.sample-offer { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 14px; margin: 10px 0 0; border-radius: 12px; background: #f5f3ff; border: 1px solid #ddd6fe; font-size: 0.9rem; }
.sample-offer > div { flex: 1; min-width: 220px; }
.sample-pill { display: inline-block; vertical-align: middle; font-size: 0.7rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #6d28d9; background: #f5f3ff; border: 1px solid #ddd6fe; border-radius: 999px; padding: 1px 8px; }

/* Community front page = its people (views/partials/community_frame.ejs, community_nav.ejs) */
.cf-head { display: flex; flex-direction: column; gap: 2px; margin: 0 0 6px; }
.cf-name { margin: 2px 0 0; font-size: 1.6rem; line-height: 1.15; }
.cnav { margin-bottom: 10px; }
.pledge { border:1px solid var(--brand-border); background:var(--brand-light); border-radius:12px; padding:10px 14px 12px; margin:6px 0 14px; }
.pledge legend { font-weight:600; font-size:0.92rem; padding:0 6px; }
.pledge .fam-check { padding:5px 2px; font-weight:400; }
.pledge .fam-check span { font-weight:400; }
.ch-me { position:relative; display:inline-flex; text-decoration:none; border-radius:50%; }
.ch-me:hover { text-decoration:none; }
.ch-me-gear { position:absolute; right:-4px; bottom:-3px; width:18px; height:18px; border-radius:50%; background:var(--card); border:1px solid var(--border); font-size:11px; line-height:16px; text-align:center; color:var(--text-sec); }
.me-page { max-width:640px; }
.me-h1 { font-size:1.5rem; margin:0 0 2px; }
.me-h2 { font-size:1.02rem; margin:0 0 8px; }
.me-groups { display:flex; gap:6px; flex-wrap:wrap; margin:0 0 8px; }
.me-row { display:flex; gap:10px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.me-row-t { display:flex; flex-direction:column; min-width:180px; flex:1; font-weight:400; margin:0; }
.me-row-t .muted { font-size:0.84rem; }
.info-crumb { display:flex; align-items:center; gap:10px; margin:0 0 12px; }
.info-crumb .contact-back { margin:0; }
.ch-name-link { color: inherit; text-decoration: none; }
.ch-name-link:hover { text-decoration: none; }
.ch-name-link:hover .ch-info, .ch-name-link:focus-visible .ch-info { opacity: 1; }
.ch-info { font-size: 0.6em; vertical-align: 0.25em; opacity: 0.5; font-weight: 400; }
a.ch-icon { text-decoration: none; }
.cf-leaders { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); }
.cf-leaders-t { font-size: 0.7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cf-leaders-list { display: flex; gap: 6px 18px; flex-wrap: wrap; flex: 1; min-width: 0; }
.cf-leader { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; min-width: 0; }
a.cf-leader:hover { text-decoration: none; }
a.cf-leader:hover strong { color: var(--brand-strong); }
.cf-leader-txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.cf-leader-txt strong { font-size: 0.88rem; font-weight: 600; }
.cf-leader-txt span { font-size: 0.76rem; color: var(--muted); }
.cf-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 10px; padding: 1px; }
.cf-strip::-webkit-scrollbar { display: none; }
.cf-item { flex: 0 0 auto; display: flex; gap: 8px; align-items: center; max-width: 320px; padding: 7px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); color: var(--text); font-size: 0.85rem; text-decoration: none; }
a.cf-item:hover { text-decoration: none; border-color: var(--brand-border); background: var(--brand-light); }
.cf-ico { font-size: 1.1rem; }
.cf-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-chips { margin: 0 0 8px; }
.cf-row { display: flex; gap: 6px; align-items: center; overflow-x: auto; scrollbar-width: none; padding: 2px 1px 4px; }
.cf-row::-webkit-scrollbar { display: none; }
.cf-row.sub { padding-left: 6px; border-left: 2px solid var(--brand-border); margin-left: 4px; }
.cf-in { flex: 0 0 auto; font-size: 0.78rem; color: var(--muted); }
.cf-chip { flex: 0 0 auto; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-size: 0.9rem; white-space: nowrap; text-decoration: none; }
.cf-chip:hover { text-decoration: none; border-color: var(--brand-border); }
.cf-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.cf-chip .cf-n { font-size: 0.78rem; opacity: 0.75; margin-left: 2px; }
.cf-all { flex: 0 0 auto; font-size: 0.84rem; margin-left: 4px; white-space: nowrap; }
.cf-listbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; margin: 4px 0 12px; }
.cf-listname { font-size: 1.05rem; flex: 1; min-width: 180px; }
.cf-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.about-subtabs { margin-top: -4px; }

/* My info: changed-but-not-saved boxes and the Save bar */
.mi-page input.mi-dirty, .mi-page select.mi-dirty, .mi-page textarea.mi-dirty { background: #FFFBEB !important; border-color: #F8BF24 !important; box-shadow: inset 3px 0 0 #F8BF24; }
.mi-choice.mi-dirty { background: #FFFBEB; border-radius: 8px; box-shadow: inset 3px 0 0 #F8BF24; padding-left: 6px; }
.mi-was { font-size: 0.74rem; color: var(--muted); margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi-itemwrap > .mi-was { margin-left: 140px; }
.mi-entry.mi-changed { box-shadow: inset 3px 0 0 #F8BF24; }
.mi-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 14px;
  background: #3a2c05; color: #fff; padding: 10px 12px 10px 18px; border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,.25); max-width: calc(100% - 24px); }
.mi-bar[hidden] { display: none; }
.mi-bar-t { font-size: 0.9rem; font-weight: 500; }
.mi-bar .mi-bar-discard { color: #ffe3a3; font-size: 0.88rem; }
.mi-bar .btn.mi-bar-save { margin: 0; background: #f0b429 !important; color: #2b2003 !important; border-color: #f0b429 !important; font-weight: 700; padding: 8px 22px; }
.mi-bar.mi-bar-ok { background: var(--success-text, #1d6b3a); }
.mi-page { padding-bottom: 70px; }
@media (max-width: 640px) { .mi-itemwrap > .mi-was { margin-left: 0; } .mi-bar { left: 12px; right: 12px; transform: none; } .mi-bar-t { flex: 1; } }

/* Child page: "Who can see" folds shut; "+ Add others" multi-pick panel */
.fam-who > summary .fam-h2 { font-weight: 700; }
.fam-who > summary.fam-who-sum { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.fam-who > summary.fam-who-sum::-webkit-details-marker { display: none; }
.fam-who[open] > summary .lrow-arrow { transform: rotate(90deg); }
.fam-who > summary .lrow-arrow { transition: transform .15s; }
.fam-add { border: 1px solid var(--brand-border); background: var(--brand-light); border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.fam-add[hidden] { display: none; }
.fam-add-list { max-height: 360px; overflow: auto; background: var(--card-bg, #fff); border: 1px solid var(--border); border-radius: 10px; padding: 2px 10px; margin: 6px 0 8px; }
.fam-add-foot { display: flex; gap: 14px; align-items: center; }

/* People who have my cards — same look as My contacts */
.lp-tag { display:inline-block; font-size:0.72rem; padding:2px 9px; border-radius:980px; background:#f1f5f9; color:#334155; border:1px solid #e2e8f0; text-decoration:none; font-weight:500; line-height:1.5; }
.lp-row-tags { display:inline-flex; gap:4px; margin-left:6px; flex-wrap:wrap; vertical-align:middle; }
.lp-row-tags .lp-tag { font-size:0.66rem; padding:0 7px; }
.holder-aside { font-size:0.76rem; white-space:nowrap; margin-left:6px; }
@media (max-width: 560px) { .holder-aside { display:none; } }
.holders-attn { display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:space-between; padding:8px 12px; margin:4px 0 8px; border-radius:10px; background:#FFFBEB; border:1px solid #FDE68A; color:#A16207; font-size:0.86rem; }
details.holders-more > summary, a.holders-link { list-style:none; display:flex; align-items:center; gap:10px; justify-content:space-between; cursor:pointer; color:inherit; text-decoration:none; }
details.holders-more > summary::-webkit-details-marker { display:none; }
details.holders-more[open] > summary .contact-row-arrow { transform:rotate(90deg); }
a.holders-link { display:flex; }
a.holders-link:hover { text-decoration:none; }

/* ── Full-page states: not found, something went wrong ── */
.state-page { max-width:520px; margin:48px auto; text-align:center; padding:0 16px; }
.state-page h1 { font-size:1.5rem; margin:10px 0 6px; letter-spacing:-0.02em; }
.state-page p { line-height:1.5; }
.state-ico { font-size:2.4rem; }
.state-actions { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top:8px; }
/* A message's action link ("Review Sam ›") */
a.msg-action { display:inline-block; font-weight:600; white-space:nowrap; }

/* ── Inbox: things that need you, as tappable rows ── */
.attn-card { padding-top:14px; padding-bottom:6px; }
.attn-h { font-size:1.05rem; margin:0 0 4px; display:flex; align-items:center; gap:8px; }
.attn-n { font-size:0.75rem; font-weight:700; background:var(--amber-bg); color:var(--amber-text); border:1px solid var(--amber-border); border-radius:980px; padding:1px 8px; }
.attn-item { display:flex; align-items:center; border-top:1px solid var(--border); }
.attn-item:first-of-type { border-top:0; }
.attn-link { flex:1; min-width:0; display:flex; align-items:center; gap:12px; padding:11px 2px; color:var(--text); text-decoration:none; min-height:44px; }
.attn-link:hover { text-decoration:none; background:rgba(0,0,0,.02); }
.attn-ico { font-size:1.1rem; width:24px; text-align:center; flex-shrink:0; }
.attn-text { flex:1; min-width:0; font-size:0.92rem; line-height:1.4; }
.attn-item.is-dismissed .attn-text { color:var(--muted); }
.attn-tips .attn-text { color:var(--text-sec); }
/* A two-step destructive action: "Decline…" opens, explains, then confirms. */
details.confirm-fold { margin-top:14px; text-align:left; }
details.confirm-fold > summary { cursor:pointer; color:var(--danger); font-weight:600; font-size:0.9rem; list-style:none; }
details.confirm-fold > summary::-webkit-details-marker { display:none; }
.confirm-body { margin-top:8px; padding:12px 14px; border-radius:10px; background:var(--danger-light); border:1px solid var(--danger-border); font-size:0.86rem; color:var(--text-sec); line-height:1.45; }
.confirm-body .btn { margin-top:10px; }
.kid-confirm { background:var(--brand-light); border-color:var(--brand-border); color:var(--text); }

/* ── Community header (shared by every community page) ── */
.ch-head { margin:0 0 6px; }
.ch-row { display:flex; align-items:center; gap:12px; margin-top:6px; }
.ch-icon { font-size:1.8rem; line-height:1; width:48px; height:48px; border-radius:14px; background:var(--card); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.ch-body { flex:1; min-width:0; }
.ch-name { margin:0; font-size:1.5rem; letter-spacing:-0.02em; line-height:1.2; overflow-wrap:anywhere; }
.ch-meta { color:var(--muted); font-size:0.84rem; margin-top:2px; }
.ch-actions { display:flex; align-items:center; gap:8px; flex-shrink:0; }
@media (max-width: 640px) { .ch-icon { width:40px; height:40px; font-size:1.4rem; } .ch-name { font-size:1.25rem; } .ch-primary { display:none; } }
/* Community tabs: always all visible — they wrap instead of scrolling off the screen. */
.community-tabs { flex-wrap:wrap !important; overflow:visible !important; gap:2px 4px; }
.community-tab { padding:8px 12px; }
.community-tab.tab-manage { margin-left:auto; color:var(--muted); }
.community-tab.tab-manage.active, .community-tab.active { color:var(--brand-strong); border-color:var(--brand-strong); }
@media (max-width: 640px) { .community-tab { padding:8px 9px; font-size:0.84rem; } .community-tab.tab-manage { margin-left:0; } }
/* Second-level choices (About · All lists · Leadership · Documents): quiet, green when chosen. */
.manage-subtabs a.active { background:var(--brand-light) !important; color:var(--brand-deeper) !important; border-color:var(--brand-border) !important; }
/* Manage: one page of tappable rows */
.mg-group-title { font-size:0.68rem; font-weight:700; text-transform:uppercase; letter-spacing:0.07em; color:var(--muted); margin:16px 4px 6px; }
.mg-list { background:var(--card); border:1px solid var(--border); border-radius:14px; overflow:hidden; }
.mg-row { display:flex; align-items:center; gap:12px; padding:12px 16px; border-top:1px solid var(--border); color:var(--text); text-decoration:none; min-height:48px; }
.mg-row:first-child { border-top:0; }
.mg-row:hover { text-decoration:none; background:rgba(0,0,0,.02); }
.mg-ico { width:24px; text-align:center; font-size:1.1rem; flex-shrink:0; }
.mg-main { flex:1; min-width:0; }
.mg-main strong { display:block; font-weight:600; font-size:0.95rem; }
.mg-main span { display:block; color:var(--muted); font-size:0.82rem; margin-top:1px; }
.mg-badge { background:var(--amber-bg); color:var(--amber-text); border:1px solid var(--amber-border); border-radius:980px; font-size:0.75rem; font-weight:700; padding:1px 8px; }
.mg-back { display:inline-block; margin:0 0 10px; }
.board-settings-quiet { margin:14px 2px 6px; font-size:0.86rem; }
.board-settings-quiet .board-settings-row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.board-settings-quiet select { width:auto; margin:0; padding:5px 8px; font-size:0.84rem; }
.board-settings-quiet label { margin:0; font-weight:500; }
/* Communities list: names wrap instead of being cut off; the star sits quietly beside the row. */
.console-name { white-space:normal; overflow-wrap:anywhere; }
@media (max-width: 640px) { .community-tab .tab-ico { display:none; } }
.lrow-everyone { align-self:flex-start; display:inline-block; }

/* Card editor: details grouped like My info */
.pe-group { margin-top:16px; }
.pe-group-title { font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:0.06em; color:var(--muted); margin-bottom:6px; }
.pe-lab { display:inline-block; min-width:120px; color:var(--text-sec); margin-right:8px; }
.pe-val { color:var(--text); overflow-wrap:anywhere; }
@media (max-width: 520px) { .pe-lab { display:block; min-width:0; font-size:0.8rem; color:var(--muted); } }
/* Show my card: QR first, everything within the screen, big tap targets */
.show-screen { overflow-x:hidden; }
.show-card { width:100%; max-width:440px; margin:6px auto 16px; }
.show-card .bizcard { width:100%; max-width:100%; box-sizing:border-box; }
.show-qr { margin-top:6px; }
.show-qr-failed { line-height:1.4; color:var(--text); font-size:0.9rem; padding:24px 18px; max-width:260px; text-align:center; }
.show-switch a { min-height:44px; display:inline-flex; align-items:center; padding:0 16px !important; }
.show-actions a { min-height:44px; display:inline-flex; align-items:center; }

/* My info: comfortable tap targets; "Main" always says what it means */
.mi-star, .mi-x { min-height:44px; min-width:44px; display:inline-flex; align-items:center; justify-content:center; }
.mi-addmore { min-height:44px; }
/* Shown only on phones (the desktop top bar already has it) */
.phone-only { display:none !important; }
@media (max-width: 760px) { .phone-only { display:inline-block !important; } }
/* Plan badges use the palette (no purple) */
.pill-plan { background:var(--surface-alt) !important; color:var(--text-sec) !important; font-weight:600; }
.pe-tabs[hidden] { display:none !important; }

/* Signed out: readable button, and on a phone the top bar keeps Log in / Sign up */
.nav-links a.nav-signup, .nav-links a.nav-signup:hover { color:#fff !important; }
.pw-toggle { position:absolute; right:6px; top:50%; transform:translateY(-50%); background:none; border:0; color:var(--brand-strong); font-weight:600; cursor:pointer; padding:8px; font:inherit; font-size:0.86rem; }
@media (max-width: 768px) {
  body:not(.signed-in) .navbar .nav-links { display:flex !important; gap:6px; align-items:center; }
  body:not(.signed-in) .navbar .nav-links a { padding:6px 10px; font-size:0.88rem; }
}
.feature-icon svg { width:28px; height:28px; fill:none; stroke:var(--brand-strong); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.pick-search-q { flex:1 1 100%; margin:0 0 6px !important; }
/* Help: one fold style everywhere — a chevron that turns when open */
.help-q > summary::after { content:'›' !important; transition:transform .15s; font-size:1.2rem; top:9px; }
.help-q[open] > summary::after { content:'›' !important; transform:rotate(90deg); }
details.help-section > summary { list-style:none; position:relative; padding-right:24px; }
details.help-section > summary::-webkit-details-marker { display:none; }
details.help-section > summary::after { content:'›'; position:absolute; right:2px; top:-2px; color:var(--muted); font-size:1.3rem; transition:transform .15s; }
details.help-section[open] > summary::after { transform:rotate(90deg); }
.dates-card .dates-month:first-child { margin-top:0; }
/* An error sits right under the box it's about */
.field-error { color:var(--danger); font-size:0.84rem; margin:4px 0 8px; }
input[aria-invalid="true"] { border-color:var(--danger) !important; }
.hd-status { margin-bottom:12px; }

/* ── Photo choice (partials/photo_choice.ejs) and the photo library ── */
.pc { display: flex; flex-wrap: wrap; gap: 10px; }
.pc-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 76px; margin: 0; padding: 8px 4px 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); cursor: pointer; font-weight: 400; position: relative; }
.pc-tile input[type=radio], .pc-tile input[type=file] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pc-tile:has(input:checked), .pc-tile.on { border-color: var(--brand-strong); background: var(--brand-light); box-shadow: 0 0 0 1px var(--brand-strong); }
.pc-tile:has(input:focus-visible) { outline: 2px solid var(--brand-strong); outline-offset: 2px; }
.pc-img { display: inline-flex; width: 56px; height: 56px; }
.pc-plus { align-items: center; justify-content: center; border-radius: 50%; border: 1px dashed var(--muted); color: var(--muted); font-size: 26px; }
.pc-cap { font-size: 0.72rem; color: var(--text-sec); text-align: center; line-height: 1.2; }
.pc-hint { font-size: 0.8rem; margin: 8px 0 0; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ph-item { border: 1px solid var(--border); border-radius: 14px; background: var(--card); padding: 14px 12px 10px; text-align: center; }
.ph-item.is-default { border-color: var(--brand-strong); }
.ph-item .ph-img { display: inline-flex; }
.ph-item .ph-used { font-size: 0.76rem; color: var(--muted); margin: 6px 0 0; min-height: 1.2em; }
.ph-item form { margin: 6px 0 0; }
.ph-item .btn { margin: 0; }
.ph-item details { margin-top: 6px; }
.ph-item summary { font-size: 0.82rem; color: var(--danger); cursor: pointer; list-style: none; }
.ph-item summary::-webkit-details-marker { display: none; }
.ph-badge { display: inline-block; font-size: 0.72rem; font-weight: 600; color: var(--brand-strong); background: var(--brand-light); border: 1px solid var(--brand-border); border-radius: 999px; padding: 1px 8px; margin-top: 6px; }
.mi-photo { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mi-photo-main { flex: 1; min-width: 200px; }
.mi-photo-main .btn { margin: 6px 8px 0 0; }

/* ── "New list — want to be on it?" (utils/list_offers.js) ── */
.lo-offer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--amber-bg); border: 1px solid var(--amber-border); color: var(--amber-text); border-radius: var(--radius, 14px); padding: 12px 16px; margin: 0 0 14px; scroll-margin-top: 90px; }
.lo-offer.lo-soft { background: var(--surface-alt); border-color: var(--border); color: var(--text); }
.lo-offer .lo-text { flex: 1; min-width: 220px; font-size: 0.92rem; }
.lo-offer .lo-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Your family on Contacts ── */
.fam-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; margin: 12px 0; border-radius: var(--radius, 14px);
  background: var(--brand-light); border: 1px solid var(--brand-border); color: var(--text); text-decoration: none; }
.fam-cta:hover { text-decoration: none; border-color: var(--brand-strong); }
.fam-cta-ico { font-size: 2rem; line-height: 1; }
.fam-cta-main { flex: 1; min-width: 220px; }
.fam-cta-main strong { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.fam-cta-main span { display: block; font-size: 0.88rem; color: var(--text-sec); }
.fam-cta-btn { margin: 0 !important; }
@media (max-width: 520px) { .fam-cta-btn { width: 100%; text-align: center; } }
.fam-row-card { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin: 12px 0; border-radius: var(--radius, 14px); background: var(--card);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none; min-height: 56px; }
.fam-row-card:hover { text-decoration: none; background: #fafafa; }
.fam-faces { display: inline-flex; }
.fam-face { display: inline-flex; margin-left: -10px; border-radius: 50%; box-shadow: 0 0 0 2px var(--card); position: relative; }
.fam-face:first-child { margin-left: 0; }
.fam-row-main { flex: 1; min-width: 0; }
.fam-row-main strong { display: block; }
.fam-row-main .muted { display: block; font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fam-group-note { font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ── "Your info — last updated …" on Contacts ── */
.mi-strip { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin: 12px 0 0; border-radius: var(--radius, 14px);
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none; }
.mi-strip:hover { text-decoration: none; border-color: var(--brand-strong); }
.mi-strip.stale { background: var(--amber-bg); border-color: var(--amber-border); }
.mi-strip-main { flex: 1; min-width: 0; }
.mi-strip-main strong { display: block; }
.mi-strip-main span { display: block; font-size: 0.86rem; color: var(--text-sec); }
.mi-strip-btn { margin: 0 !important; }

/* ── Community sponsor line (partials/sponsor_line.ejs) ── */
.sp-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 12px; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--card); font-size: 0.86rem; }
.sp-label { display: inline-block; vertical-align: 1px; margin-right: 4px; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.sp-logo { height: 32px; max-width: 110px; object-fit: contain; border-radius: 6px; }
.sp-mono { width: 32px; height: 32px; border-radius: 8px; background: #eef2f7; color: #334155; font-weight: 700; font-size: 0.78rem; display: inline-flex; align-items: center; justify-content: center; }
.sp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.sp-name { color: var(--text); }
.sp-tag { color: var(--muted); font-size: 0.8rem; }
.sp-offer { color: var(--brand-strong); font-size: 0.8rem; font-weight: 600; }
.sp-visit { font-weight: 600; white-space: nowrap; align-self: flex-start; padding-top: 1px; }
.sp-line { flex-wrap: nowrap; align-items: flex-start; }
.sp-line .sp-disc { flex-basis: 100%; }
.sp-line:has(.sp-disc) { flex-wrap: wrap; }
.sp-disc { width: 100%; font-size: 0.72rem; color: var(--muted); }
.sp-disc summary { cursor: pointer; list-style: none; display: inline; }
.sp-disc summary::-webkit-details-marker { display: none; }
.sp-disc p { margin: 4px 0 0; }
.sp-line { flex-wrap: wrap; }
.sp-hit { display: flex; align-items: flex-start; gap: 10px; flex: 1 1 100%; min-width: 0; color: inherit; text-decoration: none; border-radius: 8px; }
a.sp-hit:hover { text-decoration: none; }
a.sp-hit:hover .sp-visit { text-decoration: underline; }
a.sp-hit:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 3px; }
.sp-hit .sp-visit { color: var(--brand-strong); }
.sp-logo { background: #fff; }
.sp-stack { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 12px; }
.sp-stack .sp-line { margin: 0; }

/* Joining a list with a sign-up form: "Next: what you share" instead of "which card?" */
.form-next { display:flex; flex-direction:column; gap:3px; padding:12px 14px; margin:12px 0; border-radius:12px; background:var(--brand-light); border:1px solid var(--brand-border, #bfe8d2); font-size:0.88rem; text-align:left; }
.form-next span { color:var(--text-sec); }

/* One way to save, everywhere: a changed field is highlighted until saved (same look as My info). */
input.sb-dirty, select.sb-dirty, textarea.sb-dirty { background: #FFFBEB !important; border-color: #F8BF24 !important; box-shadow: inset 3px 0 0 #F8BF24; }
label.sb-dirty, .checkbox-row.sb-dirty, .sb-dirty:not(input):not(select):not(textarea) { background: #FFFBEB; border-radius: 8px; box-shadow: inset 3px 0 0 #F8BF24; }
.sb-was { white-space: normal; }
form.sb-form:not(.has-changes) [data-when-changed] { display: none !important; }
/* On phones the Save bar sits just above the bottom tab bar, not under it. */
@media (max-width: 768px) { .mi-bar { bottom: calc(74px + env(safe-area-inset-bottom)); } }
.lfe-req + button[data-when-changed] { white-space: nowrap; }

/* Managing, not visiting (views/partials/manage_band.ejs). */
.mband { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; background:#1f2937; color:#f9fafb; border-radius:12px; padding:9px 14px; margin:4px 0 8px; font-size:0.86rem; }
.mband strong { color:#fff; }
.mband-sub { color:#cbd5e1; }
.mband-view { color:#fde68a; font-weight:600; text-decoration:none; white-space:nowrap; }
.mband-view:hover { text-decoration:underline; }
.mcrumbs { display:flex; flex-wrap:wrap; align-items:center; gap:6px; font-size:0.84rem; margin:0 0 12px; color:var(--text-sec); }
.mcrumbs a { color:var(--text-sec); text-decoration:none; }
.mcrumbs a:hover { color:var(--brand-strong); }
.mcrumb-home { display:inline-flex; align-items:center; gap:6px; font-weight:600; color:var(--text) !important; }
.mcrumb-logo { width:22px; height:22px; border-radius:6px; object-fit:contain; background:#fff; border:1px solid var(--border); }
.mcrumbs [aria-current] { color:var(--text); }
@media (max-width:560px) { .mband-sub { display:none; } }

/* Brand kit on the community header (views/partials/community_head.ejs). */
.ch-cover { height:170px; border-radius:16px; background:var(--surface-alt) center/cover no-repeat; margin:8px 0 0; }
.ch-head.has-cover .ch-row { margin-top:-34px; padding:0 14px; align-items:flex-end; }
.ch-head.has-cover .ch-body { padding-top:38px; }
.ch-head.has-cover .ch-actions { padding-bottom:4px; }
.ch-icon.ch-logo { background:#fff; overflow:hidden; padding:0; }
.ch-icon.ch-logo img { width:100%; height:100%; object-fit:contain; }
.ch-head.has-cover .ch-icon { width:72px; height:72px; border:3px solid #fff; box-shadow:0 1px 6px rgba(0,0,0,.18); }
.ch-tag { font-size:0.92rem; color:var(--text-sec); margin-top:1px; }
.ch-head.has-color { box-shadow: inset 0 -3px 0 var(--cb); padding-bottom:10px; }
.ch-head.has-color .btn.ch-primary { background:var(--cb); border-color:var(--cb); }
@media (max-width: 640px) {
  .ch-cover { height:110px; border-radius:12px; }
  .ch-head.has-cover .ch-row { margin-top:-26px; padding:0 8px; }
  .ch-head.has-cover .ch-body { padding-top:30px; }
  .ch-head.has-cover .ch-icon { width:56px; height:56px; }
}

/* Starting points when a community is made (views/community_new.ejs). */
.start-pick { border:0; padding:0; margin:0 0 16px; min-width:0; }
.start-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.start-tile { display:flex; gap:10px; align-items:flex-start; border:1px solid var(--border); border-radius:12px; padding:12px; margin:0; cursor:pointer; background:#fff; font-weight:400; }
.start-tile:has(input:checked) { border-color:var(--brand-strong); background:var(--brand-light); box-shadow:0 0 0 1px var(--brand-strong) inset; }
.start-tile input { position:absolute; opacity:0; width:1px; height:1px; }
.start-tile:focus-within { outline:2px solid var(--brand-strong); outline-offset:2px; }
.start-ico { font-size:1.5rem; line-height:1; flex:none; }
.start-body strong { display:block; font-size:0.95rem; }
.start-body span { display:block; font-size:0.8rem; color:var(--text-sec); line-height:1.35; margin-top:2px; }
@media (max-width:560px) { .start-grid { grid-template-columns:1fr; } }

.mg-row.mg-tree { padding-left: calc(14px + var(--d, 0) * 18px); }
.mg-row.mg-tree .mg-ico { color: var(--text-sec); font-size: 0.9rem; }

/* About: brand facts and photos. */
.about-facts { display:flex; flex-wrap:wrap; gap:8px 18px; font-size:0.9rem; border-top:1px solid var(--border); margin-top:12px; padding-top:12px; }
.about-facts a { color:var(--text); text-decoration:none; }
.about-facts a:hover { color:var(--brand-strong); }
.about-gallery { display:grid; grid-template-columns:repeat(auto-fill, minmax(160px, 1fr)); gap:10px; }
.about-gallery figure { margin:0; }
.about-gallery img { width:100%; height:130px; object-fit:cover; border-radius:10px; display:block; }
.about-gallery figcaption { font-size:0.8rem; color:var(--text-sec); margin-top:4px; }
@media (max-width:560px) { .about-gallery { grid-template-columns:1fr 1fr; } .about-gallery img { height:110px; } }

.brand-mark { display:block; width:72px; height:72px; object-fit:contain; border-radius:16px; background:#fff; border:1px solid var(--border); margin:0 0 12px; }
.console-ico.console-logo { background:#fff; overflow:hidden; padding:0; }
.console-ico.console-logo img { width:100%; height:100%; object-fit:contain; }

.start-pick legend { padding:0; font-weight:600; }
@media (max-width: 640px) {
  .ch-head.has-cover .ch-row { flex-wrap:wrap; align-items:flex-end; }
  .ch-head.has-cover .ch-body { order:3; flex-basis:100%; padding:6px 0 0; }
  .ch-head.has-cover .ch-actions { margin-left:auto; padding-bottom:0; }
}
.about-facts.about-facts-only { border-top:0; margin-top:0; padding-top:0; }

/* Copy-and-send window (views/partials/copy_send.ejs). */
dialog.cs { width:min(620px, calc(100vw - 24px)); max-height:calc(100vh - 32px); border:0; border-radius:16px; padding:18px 20px; box-shadow:0 20px 60px rgba(0,0,0,.25); color:var(--text); }
dialog.cs::backdrop { background:rgba(15,23,42,.45); }
.cs-top { display:flex; justify-content:space-between; align-items:center; margin:0 0 2px; }
.cs-top h2 { margin:0; font-size:1.15rem; }
.cs-x { background:none; border:0; font-size:1.1rem; color:var(--text-sec); cursor:pointer; padding:4px 8px; }
.cs-intro { font-size:0.86rem; margin:0 0 12px; }
.cs-part { margin:0 0 12px; }
.cs-head { display:flex; align-items:center; gap:8px; margin:0 0 4px; }
.cs-head label { font-weight:600; font-size:0.9rem; margin:0; }
.cs-n { font-size:0.8rem; flex:1; }
.cs-head .cs-copy { margin:0 0 0 auto; }
dialog.cs .input { width:100%; box-sizing:border-box; margin:0; font:inherit; font-size:0.9rem; }
dialog.cs textarea#cs-to { resize:vertical; color:var(--text-sec); background:var(--surface-alt); }
.cs-tip { font-size:0.78rem; margin-top:3px; }
.cs-foot { display:flex; flex-wrap:wrap; gap:10px; align-items:center; border-top:1px solid var(--border); padding-top:12px; }
.cs-foot .btn { margin:0; }
.cs-done { font-size:0.84rem; }
@media (max-width:560px) { dialog.cs { padding:14px; } }
.cs-btns { display:inline-flex; gap:8px; flex-wrap:wrap; margin:8px 0 0; vertical-align:middle; }
.cs-btns .btn { margin:0; }

/* Support a community (views/support_page.ejs). --cb = the community's brand color. */
.sup { max-width:620px; margin:0 auto; --sup: var(--cb, var(--brand-strong)); }
.sup-hero { margin:4px 0 12px; }
.sup-cover { height:150px; border-radius:16px; background:var(--surface-alt) center/cover no-repeat; }
.sup-id { display:flex; gap:12px; align-items:center; }
.sup-hero.has-cover .sup-id { margin-top:-30px; padding:0 14px; align-items:flex-end; }
.sup-logo { width:64px; height:64px; border-radius:16px; background:#fff; border:3px solid #fff; box-shadow:0 1px 6px rgba(0,0,0,.15); display:flex; align-items:center; justify-content:center; font-size:1.8rem; overflow:hidden; flex:none; }
.sup-logo img { width:100%; height:100%; object-fit:contain; }
.sup-kicker { font-size:0.74rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--sup); }
.sup h1 { margin:0; font-size:1.5rem; letter-spacing:-0.02em; line-height:1.2; }
.sup-tag { color:var(--text-sec); font-size:0.92rem; }
.sup-lede { font-size:1rem; line-height:1.55; margin:0 0 14px; }
.sup-goal .sup-goal-top { margin:0 0 8px; } .sup-goal strong { font-size:1.3rem; }
.sup-goal .meter span { background:var(--sup); }
.sup-seg { display:grid; grid-template-columns:1fr 1fr; background:var(--surface-alt); border-radius:12px; padding:4px; margin:0 0 12px; }
.sup-seg button { border:0; background:none; font:inherit; font-weight:600; padding:10px; border-radius:9px; cursor:pointer; color:var(--text-sec); }
.sup-seg button[aria-selected=true] { background:#fff; color:var(--text); box-shadow:0 1px 3px rgba(0,0,0,.12); }
.sup-form h2 { font-size:1rem; margin:0 0 8px; }
.sup-form .input { width:100%; box-sizing:border-box; margin:0 0 6px; }
.sup-levels { display:grid; gap:8px; }
.sup-level { display:grid; grid-template-columns:auto 1fr auto; grid-template-areas:"r n a" "r x x"; gap:0 10px; align-items:center; border:1px solid var(--border); border-radius:12px; padding:12px 14px; margin:0; cursor:pointer; font-weight:400; background:#fff; }
.sup-level input { grid-area:r; width:18px; height:18px; margin:0; accent-color:var(--sup); }
.sup-level-name { grid-area:n; font-weight:700; } .sup-level-amt { grid-area:a; font-weight:700; font-size:1.05rem; }
.sup-level-net { grid-area:x; font-size:0.8rem; color:var(--text-sec); }
.sup-level:has(input:checked), .sup-amt:has(input:checked) { border-color:var(--sup); box-shadow:0 0 0 1px var(--sup) inset; }
.sup-choice { display:flex; gap:8px; flex-wrap:wrap; margin:0 0 10px; }
.sup-choice > label { display:flex; gap:8px; align-items:flex-start; border:1px solid var(--border); border-radius:10px; padding:9px 12px; margin:0; cursor:pointer; font-weight:500; flex:1; min-width:150px; background:#fff; }
.sup-choice > label:has(input:checked) { border-color:var(--sup); background:color-mix(in srgb, var(--sup) 7%, #fff); }
.sup-choice input { width:auto; margin:3px 0 0; accent-color:var(--sup); }
.sup-show > label span span { display:block; font-weight:400; font-size:0.8rem; color:var(--text-sec); margin-top:2px; }
.sup-amts { display:grid; grid-template-columns:repeat(5, 1fr); gap:8px; margin:0 0 10px; }
.sup-amt { border:1px solid var(--border); border-radius:10px; margin:0; cursor:pointer; text-align:center; background:#fff; }
.sup-amt input { position:absolute; opacity:0; width:1px; height:1px; }
.sup-amt span { display:block; padding:10px 0; font-weight:700; }
.sup-amt:focus-within { outline:2px solid var(--sup); outline-offset:2px; }
.sup-split { background:var(--surface-alt); border-radius:12px; padding:10px 14px; margin:12px 0 0; font-size:0.9rem; }
.sup-split-row { display:flex; justify-content:space-between; padding:3px 0; color:var(--text-sec); }
.sup-split-top { color:var(--text); }
.sup-split-net { border-top:1px solid var(--border); margin-top:4px; padding-top:7px; color:var(--text); }
.sup-split-net strong { color:var(--sup); font-size:1.05rem; }
.sup .btn.sup-pay { width:100%; margin-top:12px; background:var(--sup); border-color:var(--sup); }
.sup-thanks h2 { font-size:1rem; margin:0 0 8px; }
.sup-fine { font-size:0.78rem; color:var(--text-sec); line-height:1.5; margin:14px 0 24px; }
.sup-done { text-align:center; }
.sup-done-ico { width:72px; height:72px; margin:0 auto 10px; border-radius:18px; overflow:hidden; font-size:2.4rem; display:flex; align-items:center; justify-content:center; background:#fff; }
.sup-done-ico img { width:100%; height:100%; object-fit:contain; }
.sup-done h1 { font-size:1.5rem; margin:0 0 6px; }
@media (max-width:560px) { .sup-amts { grid-template-columns:repeat(3, 1fr); } .sup-cover { height:110px; } .sup h1 { font-size:1.3rem; } }

.sps { --sup: var(--brand-strong); }

/* Sponsors & support: gifts list and level rows. */
.gift-list { display:flex; flex-direction:column; }
.gift-row { display:flex; justify-content:space-between; gap:12px; padding:10px 0; border-top:1px solid var(--border); }
.gift-row:first-child { border-top:0; padding-top:2px; }
.gift-main { min-width:0; } .gift-main > span.muted { display:block; font-size:0.8rem; overflow-wrap:anywhere; }
.gift-note { display:block; font-size:0.84rem; color:var(--text-sec); font-style:italic; margin-top:2px; }
.gift-anon { font-size:0.7rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:#A16207; background:var(--amber-bg); border:1px solid var(--amber-border); border-radius:6px; padding:1px 6px; }
.gift-amt { text-align:right; flex:none; } .gift-amt span { display:block; font-size:0.78rem; }
.lvl-row { display:flex; gap:8px; margin:0 0 6px; } .lvl-row input:first-child { flex:1; }
.spo .lvl-row input, .spo #support-settings input[name=goal], .spo #support-settings input[name=goal_for] { display:block; margin:0; }

.gift-only { display:block; font-size:0.76rem; color:#A16207; margin-top:1px; }
.sup-hero.has-cover .sup-id > div { padding-top:36px; }
@media (max-width:560px) { .sup-hero.has-cover .sup-id { padding:0 8px; } }

/* Support bar on community pages (views/partials/support_bar.ejs). */
.sbar { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; border:1px solid var(--border); border-radius:14px; background:#fff; padding:12px 14px; margin:10px 0; }
.sbar-main { display:flex; flex-direction:column; gap:3px; min-width:0; flex:1; }
.sbar-main strong { font-size:0.95rem; }
.sbar-goal { font-size:0.82rem; color:var(--text-sec); }
.sbar-meter { display:block; height:6px; border-radius:6px; background:var(--surface-alt); overflow:hidden; max-width:320px; }
.sbar-meter span { display:block; height:100%; background:var(--cb, var(--brand-strong)); border-radius:6px; }
.sbar-actions { display:flex; gap:8px; flex:none; }
.sbar-actions .btn { margin:0; }
@media (max-width:480px) { .sbar-actions { width:100%; } .sbar-actions .btn { flex:1; text-align:center; } }
.ledit-sub { font-weight:600; font-size:0.9rem; margin:12px 0 6px; } .ledit-sub .muted { font-weight:400; font-size:0.8rem; }


/* ── Brand Color Specification: accessibility & UI roles ─────────────────── */
::selection { background: var(--selection); color: var(--text); }
::placeholder { color: var(--placeholder); opacity: 1; }
:disabled, .is-disabled { color: var(--placeholder); }
/* Links inside running text get an underline too — colour is never the only cue */
p a:not(.btn):not([class*="btn"]), li > a:only-child:not([class]), .muted a:not(.btn), .help-a a:not(.btn), .notice a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-dark); }

/* My Cards: your default photo + My info, the source every card draws from */
.me-source { display:flex; align-items:stretch; padding:0; border-radius:var(--radius-lg); margin-bottom:20px; overflow:hidden; }
.me-source-photo { display:flex; flex-direction:column; align-items:center; gap:6px; padding:16px 10px 12px 20px; text-decoration:none; color:var(--brand); flex-shrink:0; }
.me-source-photo:hover { text-decoration:none; opacity:1; }
.me-source-photo:hover .me-source-edit { text-decoration:underline; }
.me-source-edit { font-size:0.8rem; font-weight:600; color:var(--brand); white-space:nowrap; }
.me-source-info { flex:1; min-width:0; display:flex; align-items:center; gap:12px; padding:16px 20px 16px 10px; color:var(--text); text-decoration:none; }
.me-source-info:hover { background:var(--gray-50); text-decoration:none; color:var(--text); opacity:1; }
.me-source-info .settings-name { font-size:1.05rem; }
.me-source-note { font-size:0.8rem; color:var(--text-sec); margin-top:4px; }
