/* First-iteration product polish and components. */
body { font-size: 16px; line-height: 1.55; }
.page { max-width: 1540px; }
:root {
  --navy: #17375e;
  --navy-2: #224c78;
  --blue: #1d6fa5;
  --teal: #1484ad;
  --gold: #d2a25e;
  --cream: #f5f7fa;
  --ink: #17375e;
  --muted: #667589;
  --line: #dce4ec;
  --shadow: 0 14px 40px rgba(23, 55, 94, .1);
}

.page-intro h2 { font-size: clamp(2.2rem, 4vw, 3.25rem); margin: .35rem 0 .7rem; }
.page-intro p:last-child { font-size: 1rem; }
.shell { grid-template-columns: 276px minmax(0, 1fr); }
.shell aside { padding: 1.5rem 1.1rem; overflow-y: auto; }
.shell nav { gap: .35rem; }
.shell nav a { font-size: .91rem; padding: .76rem .85rem; }
.nav-parent { border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); margin: .5rem 0; padding: .65rem 0; }
.nav-parent > strong { display: flex; align-items: center; gap: .65rem; padding: .45rem .85rem; color: #b9cbd0; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.nav-parent > strong span { width: 18px; text-align: center; }
.shell nav .sub-nav { padding-left: 2.65rem; font-size: .82rem; }
.shell aside > .legal-links { border-top: 1px solid rgba(255,255,255,.12); padding: .8rem .35rem 0; margin-top: .8rem; }
.shell aside > .legal-links a { color: #9db2b8; font-size: .66rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: .45rem .8rem; margin-top: 1.25rem; }
.legal-links a { color: var(--blue); font-size: .73rem; }
.auth-card .legal-links { border-top: 1px solid var(--line); padding-top: 1rem; }
.form fieldset { border: 1px solid #ccd6d7; padding: .9rem; margin: 0; }
.form legend { font-size: .82rem; font-weight: 600; padding: 0 .35rem; }
.form legend small { color: var(--muted); font-weight: 400; margin-left: .3rem; }
.check-grid { display: flex; flex-wrap: wrap; gap: .45rem; }
.check-tag { display: inline-flex !important; }
.check-tag input { position: absolute; width: 1px !important; height: 1px; opacity: 0; pointer-events: none; }
.check-tag span { border: 1px solid #cad5d7; background: white; color: #4c656b; border-radius: 99px; padding: .42rem .68rem; font-size: .74rem; cursor: pointer; }
.check-tag input:checked + span { border-color: #7654aa; background: #f0eafb; color: #513182; }
.legal-consent { display: grid !important; grid-template-columns: auto 1fr; align-items: start; gap: .65rem !important; line-height: 1.45; }
.legal-consent input { width: 18px; height: 18px; margin-top: .1rem; }
.legal-consent a { color: var(--blue); text-decoration: underline; }
.member-grid { grid-template-columns: repeat(3, minmax(280px, 1fr)); gap: 1.25rem; }
.member-card { padding: 1.55rem; display: flex; flex-direction: column; }
.member-head h3 { font-size: 1.16rem; }
.member-head p { font-size: .89rem; line-height: 1.45; }
.org { font-size: .94rem; }
.bio { font-size: .9rem; line-height: 1.65; min-height: 70px; }
.tag { border-radius: 99px; padding: .34rem .58rem; font-size: .69rem; font-weight: 600; }
.tag.vertical { background: #e8f2ff; color: #245a91; border: 1px solid #c9dff7; }
.tag.member-type { background: #f1eafa; color: #654092; border: 1px solid #ddcff0; }
.pending-tag { background: #fff5dd; color: #805a16; }
.contact-row { margin-top: auto; padding-top: 1rem; font-size: .78rem; gap: 1rem; }
.button.intro-cta { padding: .64rem .78rem; font-size: .75rem; background: #175d67; }
.shared-contact { display: block; margin-top: .75rem; color: var(--muted); }
.resource-tabs { display: flex; gap: .6rem; border-bottom: 1px solid var(--line); margin: -1rem 0 1.5rem; }
.resource-tabs a { padding: .85rem 1rem; font-weight: 600; color: var(--muted); }
.resource-tabs a.active { color: var(--navy); border-bottom: 3px solid var(--teal); }
.committee-summary { background: #edf6f5; border: 1px solid #d4e7e5; padding: .8rem 1rem; margin-bottom: 1rem; color: #46666b; }
.committee-summary span { margin: 0 .5rem; }
.committee-members { min-width: 210px; }
.committee-members .status, .committee-members .button { margin-top: .9rem; }
.profile-committees { border-top: 1px solid var(--line); margin-top: 1.2rem; padding-top: 1.4rem; display: grid; grid-template-columns: 1fr auto; gap: .75rem; }
.profile-committees h3, .profile-committees p { margin: 0; }
.profile-committees p { color: var(--muted); font-size: .8rem; }
.profile-committees .tags { grid-column: 1 / -1; }
.lifecycle { display: grid; grid-template-columns: repeat(9, 1fr); margin-bottom: 1.25rem; overflow-x: auto; background: white; border: 1px solid var(--line); }
.lifecycle span { min-width: 112px; padding: .7rem .45rem; border-right: 1px solid var(--line); text-align: center; font-size: .64rem; color: var(--muted); }
.intro-reason p { margin: .3rem 0; font-size: .84rem; }
.intro-reason details { margin-top: .65rem; font-size: .74rem; color: var(--blue); }
.intro-reason pre { white-space: pre-wrap; background: #f6f8f8; color: var(--ink); padding: .75rem; font-family: inherit; }
.status-select { max-width: 180px; border: 1px solid var(--line); padding: .4rem; font-size: .72rem; }
.status.submitted, .status.under_review, .status.awaiting_target_approval, .status.pending { background: #fff5dd; color: #805a16; }
.status.intro_sent, .status.meeting_scheduled, .status.approved, .status.completed { background: #e7f5ed; color: var(--green); }
.status.suspended, .status.declined, .status.rejected, .status.no_fit { background: #f9e9e9; color: var(--red); }
.admin-tabs { display: flex; flex-wrap: wrap; gap: .35rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; }
.admin-tabs button { border: 0; background: transparent; padding: .85rem 1rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.admin-tabs button.active { color: var(--navy); border-bottom: 3px solid var(--teal); }
.admin-tabs span { background: #e8eef0; border-radius: 99px; padding: .15rem .4rem; margin-left: .3rem; font-size: .65rem; }
[hidden] { display: none !important; }
.admin-user { background: white; border: 1px solid var(--line); padding: 1.2rem; display: grid; gap: 1rem; min-width: 0; }
.admin-user-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; min-width: 0; }
.admin-user .member-head, .admin-user .member-head > div { min-width: 0; }
.admin-user .member-head p, .admin-user .member-head small { display: block; overflow-wrap: anywhere; }
.admin-user-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; align-items: start; min-width: 0; }
.admin-user-controls > label { min-width: 0; display: grid; align-content: start; gap: .35rem; font-size: .78rem; }
.admin-user-controls select { border: 1px solid var(--line); padding: .5rem; min-width: 0; width: 100%; }
.admin-user-controls select[multiple] { height: 116px; }
.admin-user-note { margin: 0; padding: .7rem .8rem; background: #f5f8fb; border-left: 3px solid var(--teal); color: var(--muted); font-size: .76rem; line-height: 1.5; }
.admin-user small { color: var(--muted); }
.admin-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .3rem; }
.mini-button.danger { color: var(--red); border-color: #e8bbbb; }
.content-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: start; }
.content-columns > section { background: white; border: 1px solid var(--line); padding: 1.2rem; }
.content-columns > section > h3 { margin-top: 0; font-family: "Newsreader"; font-size: 1.5rem; }
.content-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .35rem; border-top: 1px solid var(--line); padding: .8rem 0; margin-top: .8rem; }
.content-row strong, .content-row small { display: block; }
.content-row small { color: var(--muted); }
.standalone-legal { min-height: 100vh; background: var(--paper); padding: clamp(1.5rem, 5vw, 4rem); }
.legal-logo { color: var(--navy); max-width: 840px; margin: 0 auto 2rem; align-items: flex-end; }
.legal-wordmark { width: 190px; }
.legal-page { max-width: 840px; margin: 0 auto 2rem; background: white; border: 1px solid var(--line); padding: clamp(1.5rem, 5vw, 4rem); }
.legal-page h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: .4rem 0; }
.legal-page > p:not(.eyebrow):not(.policy-date) { font-size: 1rem; line-height: 1.8; color: #40575d; }
.policy-date { color: var(--muted); font-size: .8rem; margin-bottom: 2rem; }
@media (max-width: 1250px) { .admin-user-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); } .content-columns { grid-template-columns: 1fr; } }
@media (max-width: 1050px) { .member-grid { grid-template-columns: repeat(2, 1fr); } .lifecycle { grid-template-columns: repeat(9, 112px); } }
@media (max-width: 760px) { .member-grid { grid-template-columns: 1fr; } .admin-user-summary { display: grid; } .admin-user-controls { grid-template-columns: 1fr; } .admin-actions { justify-content: flex-start; } .profile-committees { grid-template-columns: 1fr; } .profile-committees .tags { grid-column: auto; } }

.auth { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); overflow: hidden; }
.auth-story { position: relative; min-width: 0; overflow: hidden; isolation: isolate; }
.auth-panel { min-width: 0; position: relative; z-index: 1; }
.auth-story { background: linear-gradient(145deg, rgba(23, 55, 94, .94), rgba(23, 55, 94, .82)), url('/public/marketing/palm-beach-israel-panorama.png') center / cover no-repeat; }
.brand-logo { display: block; object-fit: contain; }
.auth-logo { width: min(420px, 82%); margin: 0 0 clamp(2.5rem, 7vh, 5rem); mix-blend-mode: normal; }
.logo { align-items: flex-end; }
.shell aside .logo { display: grid; gap: .55rem; align-items: start; }
.side-logo { width: 190px; max-width: 100%; }
.portal-label { border-left: 1px solid rgba(255, 255, 255, .3); padding-left: .65rem; }
.shell aside .portal-label { border-left: 0; padding-left: 0; }
.shell aside .portal-label strong { font-size: 1.05rem; }
.portal-label strong { color: white; }
.legal-logo .portal-label { border-color: var(--line); }
.legal-logo .portal-label strong { color: var(--navy); }
.side-user { grid-template-columns: auto 1fr auto; }
.avatar { overflow: hidden; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-photo-control { display: grid; justify-items: center; gap: .55rem; margin-bottom: .8rem; }
.profile-photo-control .mini-button { margin-left: 0; }
.profile-photo-control > small { text-align: center; margin: 0; max-width: 220px; }
.photo-button { position: relative; cursor: pointer; }
.photo-button input { position: absolute; width: 1px !important; height: 1px; opacity: 0; pointer-events: none; }
.side-user button { display: inline-flex; align-items: center; gap: .35rem; color: #dce7e9; font-size: .72rem; white-space: nowrap; }
.dashboard-brand { background-image: linear-gradient(135deg, rgba(23,55,94,.94), rgba(23,55,94,.68)), url('/public/marketing/palm-beach-israel-panorama.png'); background-size: cover; background-position: center; }
.notification-panel { margin-top: 1rem; background: white; border: 1px solid var(--line); padding: 1.25rem; }
.notification-panel > header { display: flex; justify-content: space-between; align-items: center; }
.notification-panel h3 { margin: .2rem 0 .8rem; font-family: "Newsreader"; font-size: 1.5rem; }
.notification-list { display: grid; }
.notification-item { display: grid; gap: .18rem; padding: .8rem; border-top: 1px solid var(--line); color: var(--ink); }
.notification-item.unread { border-left: 3px solid var(--teal); background: #f0f8f7; }
.notification-item span, .notification-item small { color: var(--muted); font-size: .76rem; }
.committee-checks { display: grid; gap: .6rem; }
.committee-checks label { display: grid !important; grid-template-columns: auto 1fr; align-items: start; gap: .7rem !important; border-bottom: 1px solid var(--line); padding: .6rem; }
.committee-checks input { width: 18px; height: 18px; }
.committee-checks strong, .committee-checks small { display: block; }
.committee-checks small { color: var(--muted); font-weight: 400; }
.field-help { margin: 0 0 .55rem; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.access-committee-checks { max-height: 240px; overflow-y: auto; border: 1px solid var(--line); background: #fff; }
.access-committee-checks label:last-child { border-bottom: 0; }
.committee-card.expanded { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.roster { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .8rem; }
.roster summary { cursor: pointer; color: var(--blue); font-size: .8rem; font-weight: 600; }
.roster-row { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .65rem 0; border-bottom: 1px solid #edf1f1; font-size: .8rem; }
.roster-row small { display: inline; }
.decision-note { background: #f7f3fb; color: #654092 !important; padding: .5rem; font-size: .75rem; }
.status-history > div { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .5rem; margin-top: .55rem; }
.status-history p { grid-column: 1 / -1; margin: 0 !important; }
.event-register { width: max-content; margin-top: .5rem; }
.settings-section, .danger-zone { border-top: 1px solid var(--line); margin-top: 1.4rem; padding-top: 1.4rem; }
.settings-section h3, .danger-zone h3 { margin: 0 0 .6rem; }
.danger-zone { background: #fff8f8; border: 1px solid #edcccc; padding: 1.1rem; }
.danger-zone p, .policy-note { color: var(--muted); font-size: .76rem; }
.danger-button { background: var(--red); }
.analytics-metrics { display: grid; grid-template-columns: repeat(6, 1fr); gap: .7rem; margin-bottom: 1rem; }
.analytics-metrics article { background: white; border: 1px solid var(--line); padding: 1rem; }
.analytics-metrics span, .analytics-metrics strong { display: block; }
.analytics-metrics span { color: var(--muted); font-size: .7rem; }
.analytics-metrics strong { font-family: "Newsreader"; font-size: 2rem; margin-top: .4rem; }
.analytics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.analytics-grid > section, .stuck-list, .legal-admin { background: white; border: 1px solid var(--line); padding: 1.2rem; }
.analytics-grid h3, .stuck-list h3, .legal-admin h3 { font-family: "Newsreader"; margin-top: 0; }
.analytics-bar { display: grid; grid-template-columns: minmax(110px, 1fr) 2fr auto; gap: .55rem; align-items: center; margin: .65rem 0; font-size: .72rem; }
.analytics-bar i { height: 8px; background: #e8eeee; border-radius: 99px; overflow: hidden; }
.analytics-bar b { display: block; height: 100%; background: var(--teal); }
.stuck-list { margin-top: 1rem; }
.stuck-list a { display: flex; justify-content: space-between; padding: .7rem 0; border-top: 1px solid var(--line); }
.legal-admin { margin-top: 1rem; }
.legal-admin h4 { font-family: "Newsreader"; font-size: 1.25rem; margin: 0; }
.status.deletion_requested { background: #fff0d4; color: #805a16; }
.status.deactivated { background: #e8eaeb; color: #5b6265; }
.status.rejected, .status.cancelled, .status.no_response, .status.closed_no_fit { background: #f9e9e9; color: var(--red); }
.status.meeting_completed { background: #e2f3e8; color: var(--green); }
@media (max-width: 1250px) { .page-intro { display: grid; justify-items: start; } .page-intro .button { margin-top: -1rem; } .analytics-metrics { grid-template-columns: repeat(3, 1fr); } .analytics-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .auth { grid-template-columns: 1fr; overflow: visible; } .auth-logo { width: min(330px, 88%); margin-bottom: 2rem; } .admin-tabs { flex-wrap: nowrap; overflow-x: auto; } .analytics-metrics { grid-template-columns: repeat(2, 1fr); } .committee-card.expanded { grid-template-columns: 1fr; } .roster { grid-column: auto; } .side-user { grid-template-columns: auto 1fr; } .side-user button { grid-column: 1 / -1; } }
