:root {
  color-scheme: light;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: #203a30;
  background: #f8f7f1;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(ellipse at top, #fffefa 0%, #f8f7f1 66%);
}

button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid #ad7640;
  outline-offset: 3px;
}

.page {
  width: min(100% - 40px, 1200px);
  margin: 0 auto;
  padding: 32px 0 28px;
}

.public-shell { width: 100%; margin-inline: auto; }

.brand, .brand-name {
  display: flex;
  align-items: center;
}

.brand { justify-content: space-between; gap: 16px; }
.brand-name { gap: 9px; font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 700; letter-spacing: .02em; }
.brand-wordmark { align-items: baseline; }
.brand-wordmark small { color: #6c7453; font-family: Tahoma, Arial, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0; }

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #b27f43;
  border-radius: 50%;
  color: #7c5830;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 18px;
}

.language-toggle, .text-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 8px 10px;
  background: transparent;
  color: #654d2d;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.message { margin: 46px 0 24px; }

.public-header {
  min-height: 78px;
  border-bottom: 1px solid #dfe3d3;
  padding-block: 12px;
}

.public-header-actions { display: flex; align-items: center; gap: 12px; }
.staff-access-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid #cbd4c3;
  border-radius: 12px;
  padding: 8px 14px;
  color: #2c483b;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.staff-access-link:hover { background: #f0f3e9; }

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
  min-height: min(720px, calc(100vh - 110px));
  padding: clamp(54px, 8vw, 92px) 10px 70px;
}

.landing-copy { min-width: 0; }
.landing-eyebrow {
  display: inline-flex;
  border: 1px solid #d5ddca;
  border-radius: 999px;
  padding: 8px 13px;
  background: #f1f4e9;
  color: #5d704e;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: none;
}

.landing-hero h1 { max-width: 680px; font-size: clamp(44px, 6vw, 76px); line-height: 1.08; }
.landing-hero .intro { max-width: 640px; color: #40564b; font-size: clamp(17px, 2vw, 20px); }
.landing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.landing-actions .primary-button, .landing-actions .secondary-button { min-width: 154px; min-height: 54px; border-radius: 12px; }
.landing-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin: 24px 0 0;
  padding: 0;
  color: #60705c;
  font-size: 14px;
  list-style: none;
}

.landing-trust-list li { border-inline-start: 2px solid #b9c5ac; padding-inline-start: 9px; }
.landing-service-note { margin: 24px 0 0; color: #727766; font-size: 13px; }
.landing-art { min-width: 0; margin: 0; }
.landing-art img {
  display: block;
  width: 100%;
  max-height: 560px;
  border: 1px solid #cad4bb;
  border-radius: 240px 240px 28px 28px;
  padding: 9px;
  background: #eef1e5;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 26px 60px rgba(47, 67, 53, .10);
}

.landing-privacy-card {
  display: grid;
  gap: 4px;
  margin: 16px 10px 0;
  border: 1px solid #dce2d2;
  border-radius: 14px;
  padding: 15px 17px;
  background: rgba(255, 255, 251, .94);
  color: #556457;
  font-size: 13px;
  line-height: 1.55;
}

.landing-privacy-card strong { color: #294639; font-size: 15px; }
.public-account-flow { width: min(100%, 760px); margin: 12px auto 72px; scroll-margin-top: 24px; }

.eyebrow {
  margin: 0 0 10px;
  color: #776e5b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2 {
  max-width: 620px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 7vw, 48px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.025em;
}

h2 { font-size: clamp(26px, 5vw, 36px); }
h3 { margin: 0; font-size: 19px; font-weight: 650; line-height: 1.4; }

html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] p, html[dir="rtl"] label, html[dir="rtl"] legend { letter-spacing: 0; }

.intro, .form-detail {
  max-width: 600px;
  margin: 16px 0 0;
  color: #58645d;
  font-size: 16px;
  line-height: 1.75;
}

.load-status { min-height: 24px; color: #59655e; font-size: 14px; }

.status {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 22px 0;
  padding: 14px 16px;
  border: 1px solid #e6d8bc;
  border-radius: 8px;
  background: #fffaf0;
  color: #654d2d;
  font-size: 14px;
  line-height: 1.6;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 7px;
  border-radius: 50%;
  background: #bd8748;
}

.closed-copy { flex: 1; }
.closed-copy p { max-width: 620px; margin: 5px 0 0; color: #685f50; }
.closed-copy-ar { width: 100%; }
.status-open { border-color: #bfd0c2; background: #f1f6ef; color: #315442; }
.status-unavailable { border-color: #e3c9ba; background: #fff7f2; color: #8a4b2f; }
.status-unavailable .secondary-button { margin-top: 10px; }

.before-you-start, .completion-panel {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  border: 1px solid #d9cfb9;
  border-radius: 10px;
  padding: clamp(18px, 4vw, 26px);
  background: #fffaf0;
}
.before-you-start h2, .completion-panel h3, .before-you-start p, .completion-panel p { margin: 0; }
.before-you-start ol { display: grid; gap: 8px; margin: 0; padding-inline-start: 24px; color: #3d5145; line-height: 1.6; }

.card {
  margin: 22px 0;
  padding: clamp(20px, 5vw, 30px);
  border: 1px solid #e2ded3;
  border-radius: 10px;
  background: rgba(255, 254, 250, .94);
  box-shadow: 0 12px 30px rgba(46, 51, 42, .045);
}

.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card-heading .eyebrow { margin-bottom: 7px; }
.auth-switch { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 8px; }
.auth-switch .text-button { font-size: 13px; }
.auth-switch .primary-button { min-height: 44px; }

.form-stack {
  display: grid;
  gap: 17px;
  margin-top: 24px;
}

label { display: grid; gap: 7px; color: #35463d; font-size: 14px; font-weight: 650; }

input:not([type="checkbox"]), select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #c9c8bd;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: #24352e;
  font-size: 16px;
}

input::placeholder, textarea::placeholder { color: #787d75; }
input:disabled, select:disabled { cursor: not-allowed; opacity: .68; }
.field-hint { margin: -8px 0 0; color: #626c64; font-size: 12px; line-height: 1.55; }
.form-detail { margin: 8px 0 0; font-size: 14px; }
.password-toggle { justify-self: start; margin: -8px 0 0; font-size: 13px; }
.journey-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 0; list-style: none; color: #657167; font-size: 12px; line-height: 1.4; }
.journey-progress li { min-width: 0; border-top: 3px solid #d9d7cf; padding-top: 6px; }
.journey-progress .current { border-color: #315442; color: #263e32; font-weight: 700; }
.verification-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-error { min-height: 20px; margin: -10px 0 0; color: #8a2f25; font-size: 13px; line-height: 1.5; }
.error-summary { border: 1px solid #b85a4d; border-inline-start-width: 5px; border-radius: 8px; padding: 14px 16px; background: #fff5f3; color: #76281f; }
.error-summary h3 { margin: 0; font-size: 17px; }
.error-summary ul { display: grid; gap: 6px; margin: 10px 0 0; padding-inline-start: 22px; }
[aria-invalid="true"] { border-color: #a43b30 !important; }

.primary-button, .secondary-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid #315442;
  border-radius: 6px;
  padding: 10px 16px;
  background: #315442;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.secondary-button { border-color: #879389; background: transparent; color: #2d4538; }
.primary-button:disabled, .secondary-button:disabled { cursor: wait; opacity: .65; }
.google-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid #a8afa9;
  border-radius: 7px;
  padding: 10px 16px;
  background: #fff;
  color: #24352e;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.google-button:hover { border-color: #526159; background: #fbfcfa; }
.google-button:focus-visible { outline: 3px solid rgba(176, 122, 53, .28); outline-offset: 2px; }
.google-button:disabled { cursor: wait; opacity: .65; }
.google-mark { display: inline-grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: #315442; font-family: Arial, sans-serif; font-size: 18px; font-weight: 700; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 0; color: #68736b; font-size: 12px; text-align: center; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; background: #deddd5; content: ''; }
.auth-divider span { flex: 0 1 auto; }

.notice-panel { padding-top: 6px; }
.email-note { margin: 0; color: #4e5d53; font-size: 14px; }
.email-note strong { overflow-wrap: anywhere; }
.secret-box { display: grid; gap: 8px; border: 1px solid #d9cfb9; border-radius: 7px; padding: 14px; background: #fffaf0; color: #4f4738; font-size: 13px; font-weight: 650; }
.secret-code { display: block; overflow-wrap: anywhere; border: 1px solid #e0d8c7; border-radius: 5px; padding: 12px; background: #fff; color: #24352e; font-size: 16px; font-weight: 700; letter-spacing: .12em; user-select: text; }

.consent-group {
  display: grid;
  gap: 13px;
  min-width: 0;
  margin: 0;
  border: 1px solid #ddd9ce;
  border-radius: 7px;
  padding: 15px;
}

.consent-group legend { padding: 0 7px; color: #35463d; font-size: 14px; font-weight: 700; }
.consent-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 3px 10px; }
.consent-row a { display: inline-flex; min-height: 44px; align-items: center; }
.check-row { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; font-weight: 400; line-height: 1.6; }
.check-row input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #315442; }
.consent-row a, .legal-links a { color: #654d2d; text-decoration: underline; text-underline-offset: 3px; }

.member-summary { margin: 18px 0 0; color: #3d5145; font-size: 15px; line-height: 1.7; }
.verification-status { margin: 12px 0 0; color: #654d2d; font-size: 14px; line-height: 1.6; }
.profile-editor { margin-top: 28px; border-top: 1px solid #e4e0d6; padding-top: 22px; }
.profile-editor .form-stack { margin-top: 18px; }
.account-rights { display: grid; gap: 14px; margin-top: 28px; border-top: 1px solid #e4e0d6; padding-top: 22px; }
.account-rights h3, .close-account-dialog h4 { margin: 0; color: #263e32; }
.account-rights > p, .close-account-dialog > p { margin: 0; color: #526159; font-size: 14px; line-height: 1.65; }
.account-rights-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.account-rights-actions .secondary-button, .account-rights-actions .danger-button { margin: 0; }
.danger-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid #8a2f25;
  border-radius: 6px;
  padding: 10px 16px;
  background: #8a2f25;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.danger-button:disabled { cursor: wait; opacity: .65; }
.close-account-dialog { width: min(calc(100% - 32px), 620px); max-height: calc(100vh - 32px); overflow: auto; overscroll-behavior: contain; gap: 12px; margin: auto; border: 1px solid #caa59f; border-radius: 12px; padding: clamp(20px, 4vw, 28px); background: #fff8f6; color: #24352e; box-shadow: 0 24px 80px rgba(29, 39, 33, .24); }
.close-account-dialog[open] { display: grid; }
.close-account-dialog:not([open]) { display: none; }
.close-account-dialog::backdrop { background: rgba(24, 34, 29, .58); }
.close-account-dialog .form-stack { margin-top: 4px; }
.closure-result { border-color: #b9cbbb; background: #f8fcf7; }
.closure-result h2 { margin: 4px 0 10px; }
.closure-result p:last-child { margin-bottom: 0; overflow-wrap: anywhere; color: #315442; line-height: 1.7; }
.app-status { min-height: 24px; margin: 14px 0; color: #43584a; font-size: 14px; line-height: 1.6; }
.app-status[data-kind="error"] { color: #8a2f25; }

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 38px;
  border-top: 1px solid #dfddd4;
  padding-top: 16px;
  color: #6d7169;
  font-size: 12px;
  letter-spacing: .04em;
}

.legal-links { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.legal-links a, .operator-area a { display: inline-flex; min-height: 44px; align-items: center; }
.operator-area { margin-top: 12px; font-size: 12px; }
.noscript-note { max-width: 760px; margin: 12px auto; padding: 0 20px; color: #654d2d; line-height: 1.7; }
.noscript-note span { display: block; margin-top: 6px; text-align: right; }

.member-app { margin-top: 30px; border-top: 1px solid #e4e0d6; padding-top: 24px; }
.member-app-heading h3, .discovery-section h3 { font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 500; }
.member-app-heading .form-detail { margin-top: 8px; }
.choice-group { display: grid; gap: 12px; min-width: 0; margin: 0; border: 1px solid #ddd9ce; border-radius: 7px; padding: 15px; }
.choice-group legend { padding: 0 7px; color: #35463d; font-size: 14px; font-weight: 700; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); gap: 10px 16px; }
.nested-group { align-content: start; padding: 12px; background: #fffefa; }
.age-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hard-preferences { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px 16px; }
.preference-choices { align-items: start; }
.member-profile-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 15px; margin: 18px 0; }
.member-profile-card { min-width: 0; contain-intrinsic-size: auto 19rem; content-visibility: auto; border: 1px solid #dedacc; border-radius: 8px; padding: 18px; background: #fffefa; }
.member-profile-card h4, .member-profile-detail h4 { margin: 0; color: #263e32; font-size: 19px; font-weight: 650; }
.member-profile-card p, .member-profile-detail p { margin: 9px 0 0; color: #526159; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.reviewed-badge { display: inline-flex; align-items: center; margin-top: 12px; border: 1px solid #d7c5a2; border-radius: 999px; padding: 4px 10px; background: #fff8e9; color: #674d26; font-size: 12px; font-weight: 700; }
.id-review-panel { display: grid; gap: 14px; margin: 20px 0; padding: 20px; border: 1px solid #d8d0bd; border-radius: 18px; background: #fffdf8; }
.id-review-panel h3 { margin: 0; }
.id-review-guide { margin: 0; border-inline-start: 3px solid #c9b48a; padding: 9px 12px; color: #526159; font-size: 14px; line-height: 1.6; background: #fbf8ef; }
.id-review-steps { display: grid; gap: 6px; margin: 0; padding-inline-start: 24px; color: #34473c; font-size: 14px; font-weight: 650; line-height: 1.6; }
.id-upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.id-upload-side { display: grid; gap: 8px; min-width: 0; border: 1px solid #dedacc; border-radius: 8px; padding: 14px; background: #fffefa; }
.id-upload-side label { display: grid; gap: 6px; min-width: 0; }
.id-upload-side input[type="file"] { width: 100%; max-width: 100%; }
.id-upload-state { margin: 0; color: #526159; font-size: 13px; line-height: 1.6; }
.id-upload-state[data-kind="selected"] { color: #674d26; }
.id-upload-state[data-kind="received"] { color: #315442; font-weight: 650; }
.id-upload-action { grid-column: 1 / -1; width: 100%; margin: 0; }
.id-upload-action:disabled { cursor: not-allowed; }
.id-review-panel[aria-busy="true"] .id-upload-action:disabled { cursor: wait; }
@media (max-width: 620px) { .id-upload-grid { grid-template-columns: 1fr; } }
.id-review-staff { display: grid; gap: 18px; border-top: 1px solid #d8d0bd; padding-top: 18px; }
.id-review-staff h3, .id-review-staff h4, .id-review-staff h5 { margin: 0; color: #263e32; }
.id-review-staff h4 { font-size: 17px; }
.id-review-staff h5 { font-size: 15px; }
.id-review-staff label { display: grid; gap: 6px; }
.id-review-staff .id-check-label { display: flex; align-items: start; gap: 9px; }
.id-check-label input { flex: 0 0 auto; margin-top: 4px; }
.id-review-setup { border: 1px solid #dedacc; border-radius: 8px; padding: 14px; background: #fffefa; }
.id-review-setup > summary { color: #263e32; cursor: pointer; font-weight: 700; }
.id-review-setup > summary:focus-visible, .id-review-staff button:focus-visible, .id-review-staff input:focus-visible, .id-review-staff select:focus-visible { outline: 3px solid #ad7640; outline-offset: 3px; }
.id-review-setup[open] > summary { margin-bottom: 14px; }
.id-review-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.id-review-queue { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.id-review-queue li { min-width: 0; }
.id-review-queue button { width: 100%; overflow-wrap: anywhere; text-align: start; }
.id-review-case { display: grid; gap: 15px; border: 1px solid #d8d0bd; border-radius: 10px; padding: 16px; background: #fffdf8; }
.id-review-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.id-review-side { display: grid; align-content: start; gap: 10px; min-width: 0; }
.id-review-image-viewport { min-width: 0; width: 100%; height: min(70vh, 620px); overflow: auto; overscroll-behavior: contain; border: 1px solid #bdb8aa; border-radius: 6px; background: #eeeae0; }
.id-review-image { display: block; width: 100%; height: auto; max-width: none; aspect-ratio: auto 3 / 2; object-fit: contain; object-position: top left; }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.id-review-staff input[type="range"] { width: 100%; }
@media (max-width: 760px) { .id-review-images { grid-template-columns: 1fr; } .id-review-image-viewport { height: min(60vh, 460px); } }
.member-profile-card .secondary-button { margin-top: 15px; }
.empty-state { margin: 14px 0; border: 1px dashed #c7c1b2; border-radius: 8px; padding: 16px; color: #526159; font-size: 14px; line-height: 1.7; }
.member-profile-detail { margin: 22px 0; border: 1px solid #dedacc; border-radius: 8px; padding: 20px; background: #fffefa; }
.member-social-panel { margin: 22px 0; border: 1px solid #dedacc; border-radius: 8px; padding: 16px; background: #fffefa; }
.member-social-panel > summary { color: #263e32; cursor: pointer; font-size: 18px; font-weight: 700; }
.member-social-panel > summary:focus-visible { outline: 3px solid #ad7640; outline-offset: 4px; }
.member-safety-panel { display: grid; gap: 12px; min-width: 0; margin: 22px 0; border: 1px solid #dedacc; border-radius: 8px; padding: 16px; background: #fffefa; }
.member-safety-panel > summary { color: #263e32; cursor: pointer; font-size: 18px; font-weight: 700; }
.member-safety-panel > summary:focus-visible { outline: 3px solid #ad7640; outline-offset: 4px; }
.member-safety-panel > .field-hint, .member-safety-form > .field-hint, .member-safety-notice { margin: 0; }
.member-safety-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.member-safety-toolbar h4, .member-safety-form h4 { margin: 0; color: #34473c; font-size: 16px; }
.member-safety-toolbar .secondary-button, .member-safety-form .primary-button, .member-safety-form .secondary-button { margin: 0; }
.member-safety-list { display: grid; gap: 10px; min-width: 0; }
.member-safety-card { display: grid; gap: 8px; min-width: 0; border: 1px solid #e2ded3; border-radius: 7px; padding: 14px; background: #fff; }
.member-safety-card h5, .member-safety-card p { margin: 0; overflow-wrap: anywhere; }
.member-safety-card h5 { color: #263e32; font-size: 15px; }
.member-safety-card p, .member-safety-card time { color: #526159; font-size: 13px; line-height: 1.6; }
.member-safety-form { min-width: 0; margin-top: 8px; border-top: 1px solid #e4e0d6; padding-top: 18px; }
.member-safety-form textarea { width: 100%; min-width: 0; resize: vertical; border: 1px solid #c9c8bd; border-radius: 6px; padding: 10px 11px; background: #fff; color: #26352d; font: inherit; line-height: 1.6; }
.member-safety-form label { min-width: 0; }
.member-safety-notice { border-inline-start: 3px solid #c9b48a; padding: 9px 12px; color: #526159; font-size: 13px; line-height: 1.6; background: #fbf8ef; }
.member-safety-panel [hidden] { display: none !important; }
.member-social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; margin-top: 16px; }
.member-social-section { min-width: 0; }
.member-social-section h4 { margin: 0 0 10px; color: #34473c; font-size: 16px; }
.member-relationship-list { display: grid; gap: 10px; }
.member-chat-panel { display: grid; gap: 22px; margin-top: 30px; border-top: 1px solid #e4e0d6; padding-top: 24px; }
.member-chat-heading { display: grid; gap: 8px; }
.member-chat-heading h3 { font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 500; }
.member-chat-heading p, .member-chat-key-area > .field-hint { margin: 0; }
.member-chat-key-area, .member-chat-connections, .member-chat-conversation { display: grid; gap: 14px; min-width: 0; border: 1px solid #dedacc; border-radius: 9px; padding: clamp(14px, 4vw, 20px); background: #fffefa; }
.member-chat-key-area h4, .member-chat-connections h4 { margin: 0; color: #34473c; font-size: 17px; }
.member-chat-key-area h5 { margin: 0; color: #34473c; font-size: 15px; }
.member-chat-key-area .form-stack { margin-top: 0; }
.member-chat-backup-pending, .member-chat-unlocked { display: grid; gap: 12px; min-width: 0; border: 1px solid #d9cfb9; border-radius: 7px; padding: 14px; background: #fffaf0; }
.member-chat-backup-pending > .field-hint, .member-chat-unlocked > .field-hint { margin: 0; }
.member-chat-conversations { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.member-chat-connection { display: grid; align-content: start; gap: 9px; min-width: 0; border: 1px solid #e2ded3; border-radius: 7px; padding: 14px; background: #fff; }
.member-chat-connection h5 { margin: 0; color: #263e32; font-size: 16px; overflow-wrap: anywhere; }
.member-chat-connection p { margin: 0; color: #526159; font-size: 13px; line-height: 1.6; }
.member-chat-connection .secondary-button { justify-self: start; margin-top: 3px; }
.member-chat-conversation { background: #fffefa; }
.member-chat-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.member-chat-toolbar .secondary-button, .member-chat-toolbar .text-button { margin: 0; }
.member-chat-messages { display: flex; flex-direction: column; gap: 10px; min-width: 0; max-height: min(58vh, 520px); overflow: auto; overscroll-behavior: contain; margin: 0; border: 1px solid #e2ded3; border-radius: 8px; padding: 12px; background: #f8f7f2; list-style: none; }
.member-chat-message { display: grid; gap: 5px; align-self: flex-start; width: fit-content; max-width: min(88%, 560px); min-width: 110px; border: 1px solid #e0ded5; border-radius: 8px 8px 8px 2px; padding: 9px 12px; background: #fff; overflow-wrap: anywhere; }
.member-chat-message-own { align-self: flex-end; border-color: #c9d6cb; border-radius: 8px 8px 2px 8px; background: #eef4ed; }
.member-chat-message > span { color: #59655e; font-size: 11px; font-weight: 700; }
.member-chat-message > p { margin: 0; color: #26352d; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.member-chat-message > time { color: #74796f; font-size: 10px; }
.member-chat-send-form { margin-top: 0; }
.member-chat-send-form textarea { width: 100%; min-height: 88px; resize: vertical; border: 1px solid #c9c8bd; border-radius: 6px; padding: 11px 12px; background: #fff; color: #26352d; line-height: 1.6; }
.member-chat-send-form .primary-button { justify-self: start; }
.member-social-card { min-width: 0; border: 1px solid #e2ded3; border-radius: 7px; padding: 13px; background: #fff; }
.member-social-card h5 { margin: 0; color: #263e32; font-size: 15px; }
.member-social-card p { margin: 7px 0 0; color: #526159; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.member-action-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.member-action-row .secondary-button, .member-action-row .text-button { margin: 0; }
.member-profile-actions { margin-top: 16px; border-top: 1px solid #e4e0d6; padding-top: 16px; }
.member-profile-actions .form-stack { margin: 0; }
.member-profile-actions textarea { width: 100%; border: 1px solid #c9c8bd; border-radius: 6px; padding: 10px 11px; background: #fff; color: #26352d; font: inherit; }
.member-profile-actions .field-hint { margin: 0; }
.member-profile-actions .primary-button { justify-self: start; }
.member-profile-actions .app-status { margin-bottom: 0; }
.detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.detail-heading h4 { margin: 0; font-size: 20px; }
.detail-row { margin: 10px 0 0; color: #526159; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.detail-row strong { color: #34473c; }
.detail-reasons { margin: 8px 0 0; padding-inline-start: 24px; color: #526159; line-height: 1.7; }
.app-status[data-kind="success"] { color: #315442; }
.app-status[data-kind="error"] { color: #8a2f25; }
.app-status[data-kind="info"] { color: #59655e; }

.skip-link {
  position: fixed;
  z-index: 100;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  transform: translateY(-180%);
  border-radius: 6px;
  padding: 10px 14px;
  background: #24352e;
  color: #fff;
  font-weight: 700;
}

.skip-link:focus { transform: translateY(0); }

.member-workspace-shell {
  margin: 24px 0 0;
  color: #24352e;
  font-size: 16px;
}

.member-workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  border: 1px solid #e2ded3;
  border-radius: 14px;
  padding: 20px clamp(18px, 3vw, 30px);
  background: rgba(255, 254, 250, .96);
  box-shadow: 0 10px 28px rgba(46, 51, 42, .045);
}

.member-workspace-header h1 {
  max-width: none;
  font-size: clamp(28px, 4vw, 40px);
}

.member-workspace-identity .eyebrow { margin-bottom: 5px; }
.member-workspace-actions { display: flex; align-items: center; gap: 16px; }
.member-header-profile { margin: 0; color: #526159; font-size: 14px; }
.member-header-profile strong { color: #263e32; overflow-wrap: anywhere; }

.member-app.member-workspace-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 26px;
  margin: 0;
  border: 0;
  padding: 0;
}

.member-workspace-sidebar {
  position: sticky;
  top: 20px;
  min-width: 0;
  border: 1px solid #e2ded3;
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 254, 250, .96);
}

.member-workspace-nav { display: grid; gap: 4px; }
.member-nav-group { display: grid; gap: 3px; padding: 5px 0 11px; }
.member-nav-group + .member-nav-group { border-top: 1px solid #e5e5da; padding-top: 15px; }
.member-nav-group-label { margin: 0 10px 4px; color: #7a7b6b; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.member-nav-secondary-link { padding-inline-start: 24px; font-size: 14px; }
.member-nav-link {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 7px;
  padding: 10px 12px;
  color: #34473c;
  font-weight: 650;
  text-decoration: none;
}

.member-nav-link:hover { background: #f5f1e7; }
.member-nav-link[aria-current="page"] { background: #eaf1e8; color: #243d31; }
.member-workspace-main { min-width: 0; }
.member-route-picker { display: none; }
.member-active-content { min-width: 0; }
.member-view {
  min-width: 0;
  border: 1px solid #e2ded3;
  border-radius: 14px;
  padding: clamp(20px, 4vw, 34px);
  background: rgba(255, 254, 250, .96);
  box-shadow: 0 12px 30px rgba(46, 51, 42, .045);
}

.member-view-title {
  margin: 0 0 22px;
  color: #163329;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 500;
}

.member-view-intro { margin-bottom: 20px; }
.member-view-intro h3 { font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 500; }
.member-view .profile-editor:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.member-workspace-shell label { font-size: 16px; }
.member-workspace-shell .field-hint,
.member-workspace-shell .form-detail,
.member-workspace-shell .app-status,
.member-workspace-shell .empty-state,
.member-workspace-shell .verification-status { font-size: 14px; }
.member-workspace-shell button,
.member-workspace-shell select,
.member-workspace-shell input:not([type="checkbox"]),
.member-workspace-shell textarea,
.member-workspace-shell .primary-button,
.member-workspace-shell .secondary-button,
.member-workspace-shell .text-button { min-height: 44px; }

.member-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px;
  margin: 18px 0 28px;
}

.dashboard-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  border: 1px solid #dedacc;
  border-radius: 10px;
  padding: 18px;
  background: #fffefa;
}

.dashboard-card h3, .dashboard-card p { margin: 0; }
.dashboard-card h3 { color: #263e32; font-size: 17px; }
.dashboard-card .app-status { margin: 0; }
.dashboard-card .primary-button, .dashboard-card .secondary-button, .dashboard-card .text-button { justify-self: start; margin-top: auto; }
.dashboard-card-next { border-color: #bfd0c2; background: #f1f6ef; }
.dashboard-count { color: #315442; font-family: Georgia, "Times New Roman", serif; font-size: 34px; line-height: 1; }
.dashboard-group-status { grid-column: 1 / -1; }

.count-badge {
  display: inline-flex;
  min-width: 24px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 7px;
  background: #e3ece1;
  color: #2d493a;
  font-size: 12px;
  font-weight: 750;
}

.member-mobile-nav { display: none; }
.member-mobile-more-menu { display: none; }

.connections-subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.connection-tab {
  min-height: 44px;
  border: 1px solid #aeb8af;
  border-radius: 999px;
  padding: 8px 13px;
  background: #fff;
  color: #30483b;
  font-weight: 700;
  cursor: pointer;
}

.connection-tab[aria-current="true"] { border-color: #315442; background: #eaf1e8; }
.connection-view { min-width: 0; }
.connection-view > .app-status { margin-bottom: 4px; }
.compact-button { width: fit-content; }

.matching-age-options { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 18px; }
.matching-age-options > .check-row { align-self: end; min-height: 46px; align-items: center; }
.matching-requirements { display: grid; gap: 12px; }
.matching-requirement { display: grid; gap: 10px; min-width: 0; border-top: 1px solid #e4e0d6; padding-top: 14px; }
.matching-no-requirement { margin: 0; }
.conditional-fields { min-width: 0; }

.error-summary {
  border: 1px solid #b85a4d;
  border-inline-start-width: 5px;
  border-radius: 8px;
  padding: 14px 16px;
  background: #fff5f3;
  color: #76281f;
}

.error-summary h3 { margin: 0; font-size: 17px; }
.error-summary ul { display: grid; gap: 6px; margin: 10px 0 0; padding-inline-start: 22px; }
.error-summary a { color: inherit; font-weight: 700; }
.inline-error { margin: 4px 0 0; color: #8a2f25; font-size: 14px; line-height: 1.5; }
[aria-invalid="true"] { border-color: #a43b30 !important; }

.account-session-actions,
.danger-zone { display: grid; gap: 12px; margin-top: 24px; border: 1px solid #e0c9c4; border-radius: 10px; padding: 18px; background: #fffaf8; }
.account-session-actions { border-color: #dedacc; background: #fffefa; }
.account-session-actions h3, .account-session-actions p { margin: 0; }
.account-session-actions .secondary-button { justify-self: start; }
.danger-zone { border-top: 1px solid #e0c9c4; }

html[dir="rtl"] .member-profile-card,
html[dir="rtl"] .member-profile-detail,
html[dir="rtl"] .member-social-panel,
html[dir="rtl"] .member-safety-panel { text-align: right; }

@media (max-width: 899px) {
  .landing-hero { grid-template-columns: minmax(0, 1fr); gap: 38px; min-height: 0; padding: 52px 0 60px; }
  .landing-copy { max-width: 680px; }
  .landing-art { width: min(100%, 520px); margin-inline: auto; }
  .member-workspace-header { align-items: flex-start; }
  .member-workspace-actions { align-items: flex-end; flex-direction: column; }
  .member-app.member-workspace-layout { display: block; }
  .member-workspace-sidebar { display: none; }
  .member-route-picker { display: none; }
  .member-view { padding: clamp(18px, 4vw, 28px); }
  .member-workspace-shell { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .member-mobile-nav {
    position: fixed;
    z-index: 70;
    inset-inline: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, .85fr);
    gap: 2px;
    border-top: 1px solid #d8ddcf;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 251, .97);
    box-shadow: 0 -10px 28px rgba(35, 55, 43, .09);
    backdrop-filter: blur(14px);
  }

  .member-mobile-nav > a,
  .member-mobile-nav > button {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    padding: 7px 4px;
    background: transparent;
    color: #526159;
    font: inherit;
    font-size: clamp(10px, 2.8vw, 13px);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
  }

  .member-mobile-nav > [aria-current="page"] { background: #eaf0e2; color: #214235; }
  .member-mobile-nav .count-badge { position: absolute; inset-block-start: 2px; inset-inline-end: 3px; min-width: 20px; min-height: 20px; padding: 1px 5px; }
  .member-mobile-nav .count-badge[data-count-kind="messages"] { inset-inline-end: 24px; background: #f0dfbd; color: #694921; }
  .member-mobile-more-menu {
    position: fixed;
    z-index: 80;
    inset-inline: 12px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    display: grid;
    gap: 6px;
    max-height: min(520px, calc(100vh - 120px));
    overflow: auto;
    border: 1px solid #d8ddcf;
    border-radius: 18px;
    padding: 16px;
    background: #fffefa;
    box-shadow: 0 20px 50px rgba(31, 52, 40, .19);
  }

  .member-mobile-more-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .member-mobile-more-heading h2 { font-size: 25px; }
  .member-mobile-more-menu > a,
  .member-mobile-more-menu > button:not(.text-button) {
    display: flex;
    min-height: 48px;
    align-items: center;
    border: 0;
    border-radius: 10px;
    padding: 11px 13px;
    background: #f5f3ea;
    color: #294639;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
  }

  .member-mobile-more-menu > [aria-current="page"] { background: #e4ecdd; }
}

@media (max-width: 520px) {
  .page { width: min(100% - 32px, 760px); padding-top: 22px; }
  .message { margin-top: 36px; }
  .public-header { align-items: flex-start; }
  .public-header-actions { align-items: flex-end; flex-direction: column-reverse; gap: 4px; }
  .staff-access-link { padding-inline: 10px; font-size: 12px; }
  .landing-hero { padding-top: 40px; }
  .landing-hero h1 { font-size: clamp(40px, 13vw, 58px); }
  .landing-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .landing-actions .primary-button, .landing-actions .secondary-button { width: 100%; }
  .landing-trust-list { display: grid; }
  .landing-art img { border-radius: 180px 180px 24px 24px; }
  .card-heading { display: block; }
  .auth-switch { justify-content: flex-start; margin-top: 12px; }
  .footer { align-items: flex-start; flex-direction: column; }
  .age-range { grid-template-columns: 1fr; }
  .detail-heading { align-items: flex-start; }
  .member-workspace-header { display: grid; }
  .member-workspace-actions { align-items: stretch; }
  .member-header-profile { font-size: 14px; }
  .member-workspace-actions .secondary-button { width: 100%; }
  .member-workspace-actions > .secondary-button { display: none; }
  .matching-age-options { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .member-chat-toolbar { align-items: stretch; }
  .member-safety-toolbar { align-items: stretch; }
  .member-safety-toolbar .secondary-button, .member-safety-form .primary-button, .member-safety-form .secondary-button { width: 100%; }
  .member-chat-toolbar .secondary-button { flex: 1 1 150px; }
  .member-chat-message { max-width: 96%; }
  .member-chat-messages { max-height: 56vh; padding: 8px; }
  .member-chat-send-form .primary-button { width: 100%; }
}

.staff-safety {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #dedacc;
}

.staff-safety [hidden] { display: none !important; }
.staff-safety-queues { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.staff-safety-section { min-width: 0; padding: 1rem; border: 1px solid #dedacc; border-radius: 9px; background: #fffefa; }
.staff-safety-section > summary { cursor: pointer; font-weight: 650; }
.staff-safety-queue { display: grid; gap: 0.75rem; margin: 0.75rem 0; padding: 0; list-style: none; }
.staff-safety-queue > li { display: grid; gap: 0.5rem; min-width: 0; padding: 0.75rem; border: 1px solid #dedacc; border-radius: 7px; }
.staff-safety-queue p, .staff-safety-evidence-content p { margin: 0; overflow-wrap: anywhere; }
.staff-safety-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block: 0.75rem; }
.staff-safety-evidence-content { display: grid; gap: 0.75rem; margin-block: 0.75rem 1rem; }
.staff-safety-evidence-content p[data-safety-content] { white-space: pre-wrap; overflow-wrap: anywhere; padding: 0.75rem; border-inline-start: 3px solid #6a806a; background: #f7f5ef; }
.staff-safety .app-status { overflow-wrap: anywhere; }
.staff-safety :focus-visible { outline: 3px solid #356a76; outline-offset: 3px; }

@media (max-width: 760px) {
  .staff-safety-queues { grid-template-columns: minmax(0, 1fr); }
  .staff-safety-section { padding: 0.8rem; }
  .staff-safety-actions > button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
