/* Additions only. The supplied prototype stylesheet is preserved in platform.css. */
.eyebrow { margin-top: 8px; }

a.nav-btn {
  text-decoration: none
}

.nav-btn {
  box-sizing: border-box
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 14px 0
}

.actions form {
  margin: 0
}

.notice {
  background: var(--teal-tint);
  border: 1px solid var(--sand-deep);
  padding: 14px 20px;
  margin: 12px 24px;
  border-radius: 12px;
  color: var(--charcoal)
}

.notice.error,
.errorlist {
  color: #942323
}

.errorlist {
  padding-left: 20px
}

.empty {
  grid-column: 1/-1;
  padding: 30px
}

.card p {
  line-height: 1.7
}

form p {
  margin: 16px 0
}

input:not([type=checkbox]):not([type=radio]),
select,
textarea {
  font: inherit;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid #77998e;
  border-radius: 9px;
  padding: 11px 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box
}

input[type=checkbox],
input[type=radio] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
  min-width: 0
}

legend {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px
}

fieldset>div {
  display: flex;
  gap: 9px;
  flex-wrap: wrap
}

fieldset>div>div label {
  display: flex;
  gap: 7px;
  align-items: center;
  border: 1px solid var(--sand-deep);
  border-radius: 999px;
  padding: 8px 13px;
  background: var(--cream)
}

fieldset label:has(input:checked) {
  background: var(--teal-tint);
  border-color: var(--primary)
}

fieldset label:has(input:focus-visible) {
  outline: 2px solid var(--primary)
}

.filter-bar {
  align-items: end;
  gap: 10px
}

.filter-bar>label {
  flex: 1 1 140px;
  max-width: 250px
}

.topbar-search input {
  border: 0;
  background: transparent;
  padding: 0
}

.topbar-search {
  display: flex;
  gap: 10px
}

.standalone-header {
  padding: 22px 5%;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--sand-deep)
}

.standalone {
  max-width: 850px;
  margin: 40px auto;
  padding: 0 20px
}

.standalone .card {
  margin: 20px 0
}

.standalone h1 {
  font-size: 32px;
  margin: 10px 0 18px
}

.standalone h2 {
  font-size: 22px;
  margin: 26px 0 12px
}

.auth-card {
  max-width: 520px;
  margin: 60px auto !important
}

.helptext {
  display: block;
  font-size: 12px;
  color: var(--charcoal-soft)
}

.session-slot {
  padding: 12px 0;
  border-bottom: 1px solid var(--sand-deep)
}

.session-slot form {
  display: inline-block
}

progress {
  width: 100%;
  height: 8px;
  accent-color: var(--primary)
}

details {
  margin-top: 14px
}

summary {
  cursor: pointer;
  font-weight: 600
}

dialog {
  border: 0;
  border-radius: 20px;
  padding: 0;
  max-height: 90vh;
  max-width: min(560px, 94vw);
  overflow: auto;
  background: var(--white)
}

dialog::backdrop {
  background: rgba(10, 40, 35, .6)
}

dialog .modal {
  position: relative;
  max-width: 100%;
  width: auto
}

dialog p label {
  display: block
}

dialog p:has(input[type=checkbox]) {
  display: flex;
  gap: 8px;
  align-items: start
}

.accessibility-tools {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 24px;
  font-size: 12px
}

.accessibility-tools button {
  border: 1px solid var(--sand-deep);
  background: var(--white);
  color: var(--charcoal);
  border-radius: 6px;
  padding: 7px;
  cursor: pointer
}

/* Match the simple High contrast button while retaining a native dropdown. */
.text-size-picker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px;
  border: 1px solid var(--sand-deep);
  border-radius: 6px;
  background: var(--white);
  color: var(--charcoal);
  white-space: nowrap;
}

.text-size-picker select {
  min-height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.text-size-picker:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 10px;
  z-index: 999;
  background: white;
  color: #073a34;
  padding: 12px
}

.skip-link:focus {
  top: 10px
}

.high-contrast {
  --primary: #004c42;
  --charcoal: #071a15;
  --charcoal-soft: #203b32;
  --cream: #fff;
  --sand-deep: #4c6c60;
  --teal-tint: #e3f7ef
}

.large-text {
  font-size: 18px
}

.large-text p,
.large-text label,
.large-text .opp-meta,
.large-text .dir-line,
.large-text .req-meta {
  font-size: 17px !important
}

/* Three accessible text levels preserve reflow on narrow screens. */
.text-level-2 .main { font-size: 1.12em; }
.text-level-3 .main { font-size: 1.25em; }
.text-level-2 .main :is(p, label, input, select, textarea, button, a, summary, small, .opp-meta, .dir-line, .req-meta) { font-size: max(1em, 15px) !important; }
.text-level-3 .main :is(p, label, input, select, textarea, button, a, summary, small, .opp-meta, .dir-line, .req-meta) { font-size: max(1.12em, 17px) !important; line-height: 1.5; }
.text-level-2 .main h1 { font-size: clamp(29px, 5vw, 39px); }
.text-level-3 .main h1 { font-size: clamp(32px, 6vw, 44px); }
.text-level-2 .sidebar .nav-btn { font-size: 16px; }
.text-level-3 .sidebar .nav-btn { font-size: 18px; line-height: 1.4; }
.text-level-2 .sidebar :is(.me-name, .me-role, .sidebar-signout) { font-size: 14px; }
.text-level-3 .sidebar :is(.me-name, .me-role, .sidebar-signout) { font-size: 16px; }

.stat-row {
  flex-wrap: wrap
}

.stat {
  min-width: 140px
}

.stat-row .stat {
  flex: 1 1 160px
}

.opp-card,
.circle-card,
.dir-card {
  min-width: 0;
  overflow-wrap: anywhere
}

/* Keep the directory action on its own row below availability and other details. */
.dir-card>.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  margin-top: 18px
}

/* Link-shaped buttons need their own box so padding never crowds nearby text. */
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  vertical-align: middle;
  text-align: center
}

.page-head>.btn,
.grid .card>.btn,
#event-list+.btn {
  margin-top: 16px
}

.circle-card>form {
  margin-top: 16px
}

.circle-card>form>.btn {
  min-height: 42px
}

.circle-card>.btn {
  display: flex;
  width: fit-content;
  min-height: 42px;
  margin-top: 12px
}

.opp-card>p {
  margin: 12px 0
}

/* Long postings stay readable without stretching every card in the grid row. */
#opp-grid {
  align-items: start;
}

#opp-grid .opp-card {
  height: auto;
}

.opp-card .opp-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  line-height: 1.55;
  overflow-wrap: anywhere;
  margin: 4px 0 0;
}

.opp-read-more {
  align-self: flex-start;
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: var(--primary-dark);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.opp-read-more:hover,
.opp-read-more:focus-visible {
  text-decoration: underline;
}

.app-modal.opportunity-modal {
  width: min(680px, calc(100vw - 24px));
}

.opportunity-modal h2 {
  margin: 10px 44px 16px 0;
  overflow-wrap: anywhere;
}

.opportunity-modal .opp-tags {
  margin-bottom: 16px;
}

.opportunity-modal-description {
  margin: 18px 0;
  padding-top: 18px;
  border-top: 1px solid var(--sand-deep);
  line-height: 1.7;
  white-space: normal;
  overflow-wrap: anywhere;
}

.opportunity-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--sand-deep);
}

.event-details {
  max-width: 65ch;
  margin-top: 8px;
}

.event-details summary {
  width: fit-content;
  color: var(--primary-dark);
  font-weight: 700;
  cursor: pointer;
}

.event-details p {
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.standalone a:not(.btn),
.card p a {
  text-decoration: underline
}

.btn,
.btn-tiny {
  min-height: 36px
}

body {
  overflow-wrap: break-word
}

@media(max-width:640px) {
  .accessibility-tools {
    justify-content: flex-start;
    padding: 10px 16px
  }

  .filter-bar>label {
    max-width: none
  }

  .topbar-search {
    min-width: 0;
    flex: 1
  }

  .topbar-search input {
    min-width: 0
  }

  .ask-btn {
    font-size: 12px !important;
    padding: 10px !important
  }

  .standalone {
    margin: 20px auto
  }

  .auth-card {
    margin: 20px auto !important
  }

  .opp-row,
  .admin-row {
    flex-wrap: wrap;
    gap: 12px
  }

  .rec-hero {
    flex-wrap: wrap
  }

  .stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr
  }

  .stat {
    min-width: 0
  }

  .grid {
    grid-template-columns: 1fr !important
  }
}

.conversation-message {
  padding: 16px 0;
  border-bottom: 1px solid var(--sand-deep)
}

.conversation-message time {
  font-size: 12px;
  color: var(--charcoal-soft)
}

/* Functional pages and feedback added around the supplied Pathloom designs. */
.toast-stack {
  position: fixed;
  top: 82px;
  right: 20px;
  z-index: 1000;
  width: min(390px, calc(100vw - 32px));
  display: grid;
  gap: 10px;
  pointer-events: none
}

.app-toast {
  pointer-events: auto;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  min-height: 64px;
  padding: 13px 14px;
  border: 1px solid rgba(15, 110, 100, .18);
  border-radius: 16px;
  color: #163a33;
  background: rgba(247, 255, 252, .96);
  box-shadow: 0 18px 48px rgba(9, 62, 54, .2);
  backdrop-filter: blur(18px);
  animation: toast-in .35s cubic-bezier(.2, .8, .2, 1) both
}

.app-toast::before {
  content: '✓';
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: #0f9b7e;
  font-weight: 900
}

.app-toast.warning::before {
  content: '!';
  background: #e09a21
}

.app-toast.error::before {
  content: '×';
  background: #cf4261
}

.app-toast.info::before {
  content: 'i';
  background: #4a74d9
}

.toast-close {
  border: 0;
  background: transparent;
  color: #58736c;
  width: 30px;
  height: 30px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 8px
}

.toast-close:hover {
  background: rgba(15, 110, 100, .08)
}

.toast-leave {
  animation: toast-out .24s ease forwards !important
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(26px) scale(.96)
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateX(30px) scale(.96)
  }
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px
}

.notice b {
  display: block;
  min-width: max-content
}

.notice span {
  line-height: 1.55
}

.local-notice {
  background: linear-gradient(110deg, #e5f8f3, #f2fcfa);
  border-color: #b9e7dc
}

.is-loading {
  position: relative;
  opacity: .72;
  pointer-events: none
}

.is-loading::after {
  content: '';
  width: 12px;
  height: 12px;
  margin-left: 8px;
  display: inline-block;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: button-spin .7s linear infinite
}

@keyframes button-spin {
  to {
    transform: rotate(360deg)
  }
}

.standalone-body {
  min-height: 100vh;
  background: radial-gradient(circle at 10% 15%, rgba(42, 198, 176, .08), transparent 28%), radial-gradient(circle at 90% 90%, rgba(102, 78, 190, .07), transparent 26%), var(--cream)
}

.standalone-header {
  position: relative;
  z-index: 5;
  background: rgba(244, 251, 250, .82);
  backdrop-filter: blur(14px)
}

.standalone-header .brand-name {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none !important
}

.standalone-header .pathloom-mark {
  flex: 0 0 auto
}

.standalone-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  font-weight: 700
}

.standalone-header nav a {
  color: var(--charcoal-soft);
  text-decoration: none
}

.standalone-header nav a:hover {
  color: var(--primary)
}

.standalone {
  max-width: 1120px
}

.standalone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 18px;
  color: var(--charcoal-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700
}

.back-link {
  color: var(--primary);
  text-decoration: none !important;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px
}

.back-link:hover {
  transform: translateX(-2px)
}

.auth-layout {
  min-height: calc(100vh - 165px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 500px);
  gap: 45px;
  align-items: center
}

.auth-intro {
  padding: 40px 0
}

.auth-intro h1 {
  font-size: clamp(45px, 7vw, 76px);
  line-height: .97;
  letter-spacing: -.045em;
  margin: 18px 0 24px
}

.auth-intro h1 span {
  color: var(--primary)
}

.auth-intro>p {
  max-width: 560px;
  font-size: 16px;
  color: var(--charcoal-soft);
  line-height: 1.7
}

.auth-proof {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px
}

.auth-proof span {
  padding: 8px 12px;
  border: 1px solid var(--sand-deep);
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary)
}

.auth-card {
  max-width: none;
  margin: 0 !important;
  padding: clamp(25px, 4vw, 40px) !important;
  border-radius: 24px !important;
  box-shadow: 0 24px 70px rgba(11, 74, 67, .13) !important
}

.auth-heading {
  display: flex;
  align-items: center;
  gap: 12px
}

.auth-logo {
  width: 158px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--sand-deep);
  border-radius: 13px;
  background: var(--cream)
}

.auth-logo .pathloom-wordmark { width: 142px; height: auto; }

/* The member sidebar uses the supplied wide wordmark on a readable surface. */
.sidebar .brand:has(.pathloom-wordmark) {
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
}

.sidebar .brand .pathloom-wordmark {
  width: 170px;
  height: auto;
}

@media (max-width: 480px) {
  .auth-heading { align-items: flex-start; flex-direction: column; }
}

.auth-heading small {
  font-size: 9px;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em
}

.auth-heading h2 {
  font-family: 'Fraunces', serif;
  font-size: 29px;
  margin: 2px 0 0
}

.auth-copy {
  color: var(--charcoal-soft);
  font-size: 13px;
  margin-top: 15px
}

.auth-card form p {
  position: relative
}

.auth-card form label {
  margin-bottom: 6px
}

.auth-card input:not([type=checkbox]) {
  min-height: 47px;
  border-radius: 12px
}

.auth-card ul:not(.errorlist) {
  padding-left: 18px;
  color: var(--charcoal-soft);
  font-size: 11px;
  line-height: 1.6
}

.auth-submit {
  width: 100%;
  justify-content: space-between;
  min-height: 50px;
  border-radius: 12px;
  margin-top: 8px
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 700
}

.auth-links a {
  color: var(--primary);
  text-decoration: none !important
}

.auth-privacy {
  text-align: center;
  margin-top: 20px !important
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start
}

.form-card {
  padding: clamp(24px, 4vw, 42px) !important;
  border-radius: 22px !important;
  box-shadow: 0 20px 55px rgba(11, 74, 67, .09) !important
}

.form-card h1 {
  margin-bottom: 8px
}

.form-intro {
  color: var(--charcoal-soft);
  font-size: 13px;
  margin-bottom: 25px
}

.form-card form>p {
  padding-bottom: 3px
}

.form-card form>p label {
  margin-bottom: 6px
}

.form-submit {
  min-height: 48px;
  padding-left: 20px;
  padding-right: 20px;
  justify-content: space-between
}

.form-aside {
  position: sticky;
  top: 25px;
  padding: 25px;
  border-radius: 20px;
  color: #d9eee8;
  background: linear-gradient(145deg, #0b4a43, #0f756a);
  box-shadow: 0 20px 45px rgba(11, 74, 67, .18)
}

.form-aside h2 {
  color: #fff !important;
  font-size: 18px !important;
  margin: 8px 0 !important
}

.form-aside p {
  color: #bddbd4;
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 24px
}

.aside-number {
  font: 700 10px 'IBM Plex Mono', monospace;
  color: #54d8c8
}

.roster-card,
.session-manage {
  margin-top: 20px !important;
  border-radius: 20px !important
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px
}

.roster-grid article {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 13px;
  background: var(--cream)
}

.roster-grid article p {
  font-size: 11px;
  color: var(--charcoal-soft);
  margin: 2px 0
}

.session-manage {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap
}

.session-manage>div:first-child {
  flex: 1
}

.session-manage h3 {
  margin: 10px 0 2px
}

.attendance-list {
  flex-basis: 100%;
  border-top: 1px solid var(--sand-deep);
  padding-top: 10px
}

.attendance-list p {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  margin: 0;
  border-bottom: 1px solid var(--sand)
}

.conversation-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  border-radius: 22px !important;
  padding: 28px !important
}

.conversation-head h1 {
  margin: 13px 0 5px
}

.privacy-chip {
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--teal-tint);
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap
}

.conversation-note {
  font-size: 11px;
  color: var(--charcoal-soft);
  text-align: center;
  margin: 14px
}

.conversation-card {
  border-radius: 22px !important;
  padding: 0 !important;
  overflow: hidden
}

.conversation-stream {
  padding: 18px 24px;
  min-height: 250px;
  max-height: 520px;
  overflow-y: auto
}

.conversation-message {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 0
}

.conversation-message>div {
  max-width: min(76%, 650px);
  padding: 12px 14px;
  border-radius: 5px 16px 16px 16px;
  background: var(--sand)
}

.conversation-message.mine {
  flex-direction: row-reverse
}

.conversation-message.mine>div {
  border-radius: 16px 5px 16px 16px;
  color: #fff;
  background: var(--primary)
}

.conversation-message header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center
}

.conversation-message header b {
  font-size: 11px
}

.conversation-message time {
  font-size: 9px
}

.conversation-message.mine time {
  color: #c8eae2
}

.conversation-message p {
  font-size: 13px;
  margin: 5px 0 0;
  line-height: 1.55
}

.conversation-empty {
  text-align: center;
  padding: 55px 20px;
  color: var(--charcoal-soft)
}

.conversation-empty>span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin: 0 auto 13px;
  border-radius: 15px;
  color: var(--primary);
  background: var(--teal-tint);
  font-size: 20px
}

.conversation-empty h2 {
  color: var(--charcoal);
  margin: 0 0 5px
}

.message-composer {
  padding: 18px 24px;
  border-top: 1px solid var(--sand-deep);
  background: #f9fdfc
}

.message-composer p {
  margin: 0 0 10px
}

.message-composer textarea {
  min-height: 95px;
  resize: vertical
}

.message-composer .btn {
  margin-left: auto
}

.standalone article.card>h1:first-of-type {
  font-size: clamp(30px, 5vw, 48px)
}

.standalone article.card {
  border-radius: 22px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 20px 55px rgba(11, 74, 67, .08)
}

.standalone article.card h2 {
  position: relative;
  padding-top: 4px
}

.standalone article.card h2::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 9px;
  width: 4px;
  height: 20px;
  border-radius: 5px;
  background: var(--teal)
}

dialog {
  box-shadow: 0 30px 90px rgba(7, 50, 44, .28)
}

dialog[open] {
  animation: dialog-in .22s ease both
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.98)
  }
}

dialog .modal h2 {
  font-family: 'Fraunces', serif;
  font-size: 27px !important
}

.modal-close {
  width: 35px;
  height: 35px;
  border-radius: 10px !important
}

.empty {
  border: 1px dashed var(--sand-deep);
  background: linear-gradient(145deg, #fff, var(--cream));
  text-align: center;
  color: var(--charcoal-soft)
}

@media(max-width:860px) {
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 5px
  }

  .auth-intro {
    padding-bottom: 10px
  }

  .auth-intro h1 {
    font-size: 50px
  }

  .auth-card {
    margin-bottom: 40px !important
  }

  .form-layout {
    grid-template-columns: 1fr
  }

  .form-aside {
    position: static;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px
  }

  .form-aside p {
    margin-bottom: 13px
  }

  .roster-grid {
    grid-template-columns: 1fr
  }

  .conversation-head {
    flex-direction: column
  }

  .privacy-chip {
    align-self: flex-start
  }
}

@media(max-width:640px) {
  .toast-stack {
    top: 12px;
    right: 12px;
    width: calc(100vw - 24px)
  }

  .standalone-header {
    padding: 16px 20px
  }

  .standalone-header nav {
    gap: 10px
  }

  .standalone-header nav a {
    font-size: 0
  }

  .standalone-header nav a::after {
    content: 'Community';
    font-size: 11px
  }

  .standalone-header nav a+a::after {
    content: 'Studio'
  }

  .auth-layout {
    min-height: auto
  }

  .auth-intro h1 {
    font-size: 42px
  }

  .auth-intro>p {
    font-size: 14px
  }

  .auth-card {
    padding: 23px !important
  }

  .standalone-top>span {
    display: none
  }

  .conversation-stream {
    padding: 12px
  }

  .conversation-message>div {
    max-width: 85%
  }

  .conversation-message .avatar {
    width: 28px;
    height: 28px;
    font-size: 10px
  }

  .message-composer {
    padding: 15px
  }

  .session-manage {
    padding: 20px !important
  }
}

@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important
  }
}

/* Device resilience: tablet, phone, landscape and safe-area behavior. */
html,
body {
  max-width: 100%;
  overflow-x: clip
}

.shell,
.main,
.view,
.card,
.filter-bar {
  min-width: 0
}

/* The original prototype caps each view at 1180px, leaving a large unused
   strip on wide displays. Let platform sections use the available main area. */
.main > .view {
  width: 100%;
  max-width: none;
}

/* Add columns as the canvas grows so directory and opportunity cards do not
   become unusually wide after the shared page limit is removed. */
@media (min-width: 1800px) {
  .main .grid-3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 2600px) {
  .main .grid-3 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  #view-dashboard .grid-2,
  #res-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.sidebar-backdrop {
  display: none;
  border: 0;
  padding: 0
}

@media(max-width:1024px) and (min-width:881px) {
  .sidebar {
    width: 220px
  }

  .view {
    padding: 26px
  }

  .topbar {
    padding: 14px 24px
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .page-head h1 {
    font-size: 28px
  }

  .filter-bar {
    gap: 8px
  }

  .filter-bar>label {
    min-width: 130px
  }
}

@media(max-width:880px) {
  body.nav-open {
    overflow: hidden
  }

  .sidebar {
    left: min(-100vw, -310px);
    width: min(82vw, 300px);
    height: 100dvh;
    z-index: 70;
    padding-top: max(24px, env(safe-area-inset-top));
    transition: left .24s cubic-bezier(.2, .8, .2, 1)
  }

  .sidebar.open {
    left: 0
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    width: 100%;
    height: 100%;
    background: rgba(5, 34, 30, .54);
    backdrop-filter: blur(3px);
    cursor: pointer
  }

  .sidebar-backdrop.open {
    display: block
  }

  .sidebar-foot {
    padding-bottom: max(14px, env(safe-area-inset-bottom))
  }

  .main {
    width: 100%
  }

  .topbar {
    z-index: 45;
    padding: 11px 16px;
    min-height: 62px
  }

  .hamburger {
    min-width: 42px;
    min-height: 42px
  }

  .ask-btn {
    min-height: 42px;
    padding: 10px 15px
  }

  .accessibility-tools {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 9px 16px;
    scrollbar-width: none
  }

  .accessibility-tools>* {
    flex: 0 0 auto
  }

  .view {
    width: 100%;
    max-width: none;
    padding: 22px 18px 38px
  }

  .page-head {
    margin-bottom: 22px
  }

  .page-head h1 {
    font-size: clamp(25px, 5vw, 30px)
  }

  .filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    padding: 14px
  }

  .filter-bar>label {
    max-width: none;
    min-width: 0
  }

  .filter-bar>.btn {
    justify-content: center
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .hero {
    padding: 26px
  }

  .hero-q {
    flex: 1 1 180px;
    max-width: none
  }

  .stat-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .stat {
    min-width: 0
  }

  .opp-card,
  .circle-card,
  .dir-card {
    height: 100%
  }

  .notice {
    margin: 10px 16px
  }

  .rec-hero {
    gap: 16px
  }

  .rec-stat {
    min-width: 90px
  }

  .admin-row {
    gap: 12px
  }
}

@media(max-width:640px) {
  body {
    font-size: 15px
  }

  .view {
    padding: 18px 14px 34px
  }

  .topbar {
    padding-left: 12px;
    padding-right: 12px
  }

  .ask-btn {
    font-size: 11px !important;
    padding: 10px 12px !important
  }

  .page-head {
    margin-bottom: 18px
  }

  .page-head h1 {
    font-size: 26px;
    line-height: 1.1
  }

  .page-sub {
    font-size: 13px
  }

  .page-head>.btn {
    width: 100%;
    justify-content: center;
    margin-top: 14px
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr
  }

  .card,
  .opp-card,
  .circle-card,
  .dir-card,
  .req-card {
    padding: 17px
  }

  .hero {
    padding: 23px 19px;
    border-radius: 15px
  }

  .hero h1 {
    font-size: 24px
  }

  .hero p {
    font-size: 13px
  }

  .hero-questions {
    display: grid;
    grid-template-columns: 1fr
  }

  .hero-q {
    width: 100%;
    max-width: none
  }

  .stat-row {
    gap: 9px
  }

  .stat {
    padding: 14px
  }

  .stat b {
    font-size: 23px
  }

  .stat span {
    font-size: 10.5px;
    line-height: 1.3;
    display: block
  }

  .filter-bar {
    grid-template-columns: 1fr;
    padding: 13px;
    margin-bottom: 17px
  }

  .filter-bar>label {
    width: 100%
  }

  .filter-bar>.btn {
    width: 100%;
    min-height: 44px
  }

  .opp-row,
  .req-top,
  .admin-row {
    align-items: flex-start
  }

  .opp-row>div,
  .req-top>div,
  .admin-row>div {
    min-width: 0
  }

  .opp-row>.btn,
  .opp-row>a.btn {
    width: 100%;
    justify-content: center
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%
  }

  .actions form,
  .actions .btn,
  .actions form .btn {
    width: 100%;
    justify-content: center
  }

  .opp-card>.btn,
  .circle-card>.btn,
  .circle-card>form,
  .circle-card>form>.btn,
  .dir-card>.btn,
  .grid .card>.btn,
  #event-list+.btn {
    width: 100%;
    justify-content: center
  }

  .session-slot {
    display: grid;
    gap: 8px
  }

  .session-slot form,
  .session-slot .btn-tiny {
    width: 100%
  }

  .session-slot .btn-tiny {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 42px
  }

  .facilitator {
    align-items: flex-start
  }

  .dir-top>div:last-child {
    min-width: 0
  }

  .dir-role,
  .dir-line {
    overflow-wrap: anywhere
  }

  .res-card {
    align-items: flex-start;
    padding: 17px
  }

  .rec-hero {
    padding: 20px
  }

  .rec-hero-avatar {
    width: 52px;
    height: 52px;
    font-size: 18px
  }

  .rec-stat {
    flex: 1 1 100px
  }

  .admin-row form,
  .admin-row .btn {
    width: 100%
  }

  .notice {
    display: grid;
    margin: 9px 12px;
    padding: 12px 14px
  }

  .notice b {
    min-width: 0
  }

  .btn,
  .btn-tiny,
  button,
  input[type=submit] {
    min-height: 44px
  }

  input:not([type=checkbox]):not([type=radio]),
  select,
  textarea {
    font-size: 16px
  }

  .ob-group {
    margin-bottom: 22px
  }

  .ob-group>div>div {
    width: 100%
  }

  .ob-group>div>div label {
    width: 100%;
    border-radius: 11px
  }

  .toast-stack {
    padding-top: env(safe-area-inset-top)
  }

  dialog {
    max-height: calc(100dvh - env(safe-area-inset-top));
    width: 100%;
    max-width: none;
    margin: auto 0 0;
    inset: auto 0 0;
    border-radius: 20px 20px 0 0
  }

  dialog .modal {
    padding: 24px 18px max(24px, env(safe-area-inset-bottom))
  }

  .modal-close {
    position: sticky;
    top: 0;
    float: right;
    background: var(--cream) !important;
    z-index: 1
  }

  .standalone {
    padding: 0 14px
  }

  .standalone-header {
    padding: 14px 16px
  }

  .auth-intro {
    padding: 22px 0 8px
  }

  .auth-intro h1 {
    font-size: 38px
  }

  .auth-proof {
    margin-top: 20px
  }

  .auth-card {
    padding: 21px !important;
    border-radius: 20px !important
  }

  .auth-heading h2 {
    font-size: 25px
  }

  .auth-links {
    align-items: flex-start;
    flex-direction: column
  }

  .form-card {
    padding: 21px !important
  }

  .form-aside {
    padding: 20px
  }

  .standalone article.card {
    padding: 22px
  }

  .conversation-head {
    padding: 20px !important
  }

  .conversation-head h1 {
    font-size: 26px !important
  }

  .conversation-message>div {
    max-width: calc(100% - 38px)
  }

  .conversation-message header {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px
  }

  .attendance-list p {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px
  }
}

@media(max-width:360px) {
  .topbar {
    gap: 8px
  }

  .ask-btn svg {
    display: none
  }

  .stat-row {
    grid-template-columns: 1fr
  }

  .hero h1 {
    font-size: 22px
  }

  .sidebar {
    width: 88vw
  }

  .standalone-header nav a::after {
    font-size: 10px
  }

  .standalone-header .brand-name span:last-child {
    font-size: 18px
  }

  .auth-intro h1 {
    font-size: 34px
  }

  .auth-proof span {
    font-size: 10px
  }

  .privacy-chip {
    white-space: normal
  }

  .toast-stack {
    right: 8px;
    width: calc(100vw - 16px)
  }
}

@media(max-height:500px) and (orientation:landscape) and (max-width:880px) {
  .sidebar {
    overflow-y: auto
  }

  .sidebar .brand {
    padding-bottom: 10px
  }

  .sidebar .nav-section-label {
    padding-top: 9px
  }

  .sidebar .nav-btn {
    padding-top: 8px;
    padding-bottom: 8px
  }

  dialog {
    max-height: 96dvh
  }

  .auth-intro {
    display: none
  }

  .auth-layout {
    display: block
  }

  .auth-card {
    max-width: 620px;
    margin: 15px auto !important
  }
}

/* Profile editor: additional platform workflow. */
.profile-editor {
  max-width: 1400px
}

.profile-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 20px;
  align-items: start
}

.profile-editor-main {
  display: grid;
  gap: 18px;
  min-width: 0
}

.profile-section {
  padding: clamp(20px, 2.6vw, 34px);
  border: 1px solid var(--sand-deep);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(20, 80, 62, .055)
}

.profile-section-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding-bottom: 18px;
  margin-bottom: 21px;
  border-bottom: 1px solid var(--sand-deep)
}

.profile-section-head>span {
  flex: 0 0 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--teal-tint);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800
}

.profile-section-head h2 {
  margin: 4px 0 5px;
  color: var(--charcoal);
  font-family: 'Fraunces', serif;
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.15
}

.profile-section-head p {
  margin: 0;
  color: var(--charcoal-soft);
  font-size: 12px
}

.profile-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: 24px
}

.profile-field {
  min-width: 0;
  margin: 0
}

.profile-field legend {
  margin-bottom: 10px;
  color: var(--charcoal);
  font-family: 'Public Sans', sans-serif;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45
}

.profile-field>div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.profile-field>div>div {
  min-width: 0
}

.profile-field>div>div label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid #dce9dd;
  border-radius: 11px;
  background: #f8fbf8;
  color: var(--charcoal);
  font-size: 11px;
  line-height: 1.35;
  cursor: pointer;
  transition: background .18s, border-color .18s
}

.profile-field label:has(input:checked) {
  border-color: var(--primary);
  background: var(--teal-tint)
}

.profile-field.profile-switch {
  grid-column: 1/-1;
  padding: 12px 14px;
  border: 1px solid #dce9dd;
  border-radius: 12px;
  background: #f8fbf8
}

.profile-switch legend {
  float: left;
  width: calc(100% - 42px);
  margin: 0;
  font-weight: 600
}

.profile-switch>input {
  float: right;
  margin: 2px 0 0
}

.profile-switch::after {
  content: '';
  display: block;
  clear: both
}

.profile-field .errorlist {
  margin: 0 0 9px;
  font-size: 11px
}

.profile-field.has-error {
  border-color: #d47678
}

.profile-editor-aside {
  position: sticky;
  top: 20px;
  padding: 26px;
  border-radius: 19px;
  color: #d9eee8;
  background: linear-gradient(145deg, #0b4a43, #117668);
  box-shadow: 0 20px 42px rgba(11, 74, 67, .14)
}

.profile-editor-aside .eyebrow {
  color: #78dfca
}

.profile-editor-aside h2 {
  margin: 10px 0;
  color: #fff;
  font-family: 'Fraunces', serif;
  font-size: 28px;
  line-height: 1.1
}

.profile-editor-aside p {
  color: #d0e8e0;
  font-size: 12px;
  line-height: 1.65
}

.profile-aside-points {
  display: grid;
  gap: 11px;
  margin-top: 24px;
  padding-top: 21px;
  border-top: 1px solid rgba(255, 255, 255, .2)
}

.profile-aside-points span {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #e5f5ee;
  font-size: 11px
}

.profile-aside-points b {
  color: #77e1cc
}

.profile-save {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 22px;
  border: 1px solid #cfe8d7;
  border-radius: 17px;
  background: #eaf8ef
}

.profile-save p {
  max-width: 610px;
  margin: 0;
  color: #426354;
  font-size: 11px;
  line-height: 1.55
}

.profile-save .btn {
  flex: 0 0 auto;
  min-height: 47px;
  white-space: nowrap
}

.profile-errors {
  padding: 14px;
  border: 1px solid #e8a6ae;
  border-radius: 12px;
  color: #962c42;
  background: #fff3f4
}

@media(max-width:1000px) {
  .profile-editor-grid {
    grid-template-columns: 1fr
  }

  .profile-editor-aside {
    position: static
  }
}

@media(max-width:640px) {
  .profile-section {
    padding: 19px 16px
  }

  .profile-fields {
    grid-template-columns: 1fr;
    gap: 22px
  }

  .profile-field>div>div {
    width: 100%
  }

  .profile-field>div>div label {
    width: 100%
  }

  .profile-field.profile-switch {
    grid-column: auto
  }

  .profile-save {
    align-items: stretch;
    flex-direction: column;
    padding: 17px
  }

  .profile-save .btn {
    width: 100%;
    justify-content: space-between
  }

  .profile-editor-aside {
    padding: 22px
  }
}

.profile-switch>label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  cursor: pointer
}

.profile-switch>label input {
  margin-top: 2px
}

.profile-switch>label span {
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5
}

.profile-switch>p {
  margin: 8px 0 0;
  color: var(--charcoal-soft);
  font-size: 11px
}

/* Account controls in the member navigation. */
.sidebar-foot {
  display: grid;
  gap: 14px;
  padding: 18px 15px max(17px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .17);
  margin: 12px 0 0
}

.sidebar-foot form {
  margin: 0
}

.sidebar-signout {
  width: 100%;
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  border: 1px solid rgba(225, 250, 241, .24);
  border-radius: 11px;
  background: rgba(255, 255, 255, .08);
  color: #f2fff9;
  font: 700 12px 'Public Sans', sans-serif;
  cursor: pointer;
  transition: background .2s, border-color .2s
}

.sidebar-signout:hover {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(225, 250, 241, .5)
}

.sidebar-signout:focus-visible,
.sidebar-foot .me:focus-visible {
  outline: 2px solid #9aefdc;
  outline-offset: 2px
}

.sidebar-signout span:last-child {
  font-size: 16px;
  transform: rotate(45deg)
}

.sidebar-foot .me {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(225, 250, 241, .13);
  border-radius: 13px;
  background: rgba(0, 30, 26, .16);
  text-decoration: none;
  transition: background .2s, transform .2s
}

.sidebar-foot .me:hover {
  background: rgba(255, 255, 255, .09);
  transform: translateY(-1px)
}

.sidebar-foot .me-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #d8f4e8;
  color: #0d624f;
  font-size: 12px
}

.me-details {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1
}

.me-caption {
  color: #a8d4c7;
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .09em
}

.sidebar-foot .me-name,
.sidebar-foot .me-role {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.sidebar-foot .me-name {
  color: #fff;
  font-size: 12px
}

.sidebar-foot .me-role {
  color: #bdded2;
  font-size: 10px
}

.me-arrow {
  color: #aee5d4;
  font-size: 15px
}
/* Revised member profile: compact choice panels and a safe photo preview. */
.profile-dropdown details {
  border: 1px solid var(--line, #dcebe7);
  border-radius: 12px;
  background: #fff;
}

.profile-dropdown summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 700;
}

.profile-dropdown summary span {
  color: #60746d;
  font-size: 12px;
  font-weight: 500;
}

.profile-dropdown-options {
  max-height: 260px;
  overflow-y: auto;
  padding: 8px 14px 14px;
  border-top: 1px solid #e3eee9;
}

.profile-dropdown-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 5px;
}

.profile-photo-field {
  display: grid;
  gap: 8px;
}

.profile-photo-field > img {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  object-fit: cover;
}

.dir-card .avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

/* Direct exchanges keep contact details readable without a chat interface. */
.inbox-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.inbox-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 5px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #d6e9e1;
  border-radius: 15px;
  background: #f2f8f5;
}

.inbox-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 10px;
  color: #3f6156;
  font-weight: 700;
  text-decoration: none;
}

.inbox-tabs a.active {
  color: #0d534a;
  background: #fff;
  box-shadow: 0 3px 12px #113b2b17;
}

.inbox-tabs a:hover { background: #e7f3ed; }
.inbox-tabs a.active:hover { background: #fff; }
.inbox-tabs a:focus-visible { outline: 3px solid #168d86; outline-offset: 2px; }
.inbox-tabs span { padding: 2px 7px; border-radius: 999px; background: #dff2e9; font-size: 11px; }

.inbox-panel {
  min-width: 0;
  width: 100%;
  padding: clamp(18px, 2vw, 28px);
  border-radius: 20px;
  box-shadow: 0 12px 36px #092d2510;
}

.inbox-panel h2 {
  margin: 0;
}

.inbox-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inbox-panel-head .eyebrow {
  margin-bottom: 4px;
}

.inbox-panel-count {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 34px;
  padding: 4px 8px;
  border-radius: 11px;
  color: #0f5c53;
  background: #e2f5ef;
  font-weight: 800;
}

.inbox-panel-intro {
  margin: 8px 0 18px;
  color: #60746d;
  font-size: 13px;
  line-height: 1.5;
}

.inbox-item,
.notification-item {
  padding: 16px 0;
  border-top: 1px solid #e2eee9;
}

.inbox-item-head,
.notification-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.inbox-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.inbox-person .avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.inbox-person > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.inbox-person strong,
.notification-copy strong {
  overflow-wrap: anywhere;
}

.inbox-message {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 11px;
  background: #f5faf8;
  overflow-wrap: anywhere;
}

.inbox-message summary {
  color: var(--charcoal-soft);
  line-height: 1.5;
  cursor: pointer;
}

.inbox-message p {
  padding-top: 9px;
  border-top: 1px solid #e2eee9;
  line-height: 1.6;
}

.notification-copy {
  min-width: 0;
}

.inbox-item p,
.notification-item p {
  margin: 8px 0;
  overflow-wrap: anywhere;
}

.inbox-item small,
.notification-item small,
.inbox-empty {
  color: #60746d;
}

.inbox-actions,
.contact-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 15px;
}

.inbox-updates {
  margin-top: 18px;
}

.notification-item.unread {
  padding-inline: 12px;
  border-radius: 12px;
  background: #edf8f4;
}

.notification-item.unread::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: #168d86;
}

.nav-count,
.inbox-shortcut-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  color: #0f5c53;
  background: #b9eee2;
  font-size: 11px;
  font-weight: 800;
}

.inbox-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid #d8e8e2;
  border-radius: 11px;
  color: #0f5c53;
  background: white;
  font: inherit;
  cursor: pointer;
}

.inbox-shortcut:hover,
.inbox-shortcut[aria-expanded="true"] {
  border-color: #9ed8cc;
  background: #f0faf6;
}

.topbar { position: relative; }

/* Header notifications are a compact preview, never a second full inbox. */
.inbox-preview {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: 12px;
  width: min(390px, calc(100vw - 24px));
  max-height: min(70dvh, 610px);
  overflow-y: auto;
  padding: 18px;
  border: 1px solid #cfe8df;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 60px #102c2540;
}

.inbox-preview[hidden] { display: none; }

.inbox-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.inbox-preview-head h2 { margin: 0; font-size: 20px; }

.inbox-preview-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: #eaf5f0;
  color: #145a4d;
  font-size: 23px;
  cursor: pointer;
}

.inbox-preview-list { display: grid; gap: 6px; }

.inbox-preview-item,
.inbox-preview-invite {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 11px;
  color: var(--charcoal);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.inbox-preview-item { border: 1px solid transparent; }
.inbox-preview-item.unread { border-color: #d4ece3; background: #f0faf6; }
.inbox-preview-item:hover,
.inbox-preview-invite:hover { background: #e9f6f0; }
.inbox-preview-item span,
.inbox-preview-invite span { color: #4f6e63; font-size: 12px; line-height: 1.45; }
.inbox-preview-item small { color: #688176; }
.inbox-preview-invite { margin-bottom: 9px; background: #e9f6f0; }
.inbox-preview-empty { padding: 16px 4px; color: #60746d; }
.inbox-preview-all { display: flex; justify-content: space-between; margin-top: 12px; padding: 12px 3px 2px; border-top: 1px solid #e2eee9; color: #0f5c53; font-weight: 700; text-decoration: none; }

.inbox-preview a:focus-visible,
.inbox-shortcut:focus-visible,
.inbox-preview-close:focus-visible { outline: 3px solid #168d86; outline-offset: 3px; }

/* Short overview lists lead to their full, paginated management screens. */
.admin-queue-more {
  display: inline-flex;
  margin-top: 14px;
  color: var(--primary-dark);
  font-weight: 700;
}

.spotlight-story {
  margin-top: 12px;
  overflow-wrap: anywhere;
}

.spotlight-story summary {
  color: var(--charcoal-soft);
  line-height: 1.55;
  cursor: pointer;
}

.spotlight-story p { padding-top: 10px; line-height: 1.65; }

/* A circle can have many dates and reviews without growing its whole card. */
.circle-card .avail {
  max-height: 340px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 5px;
}

.dir-card details[open] {
  max-height: 260px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Search stays visible on phones; detailed filters are optional. */
.compact-filter-bar {
  display: block;
  padding: 16px;
  border: 1px solid var(--sand-deep);
  border-radius: 15px;
  background: #fff;
}

.compact-search-row { max-width: 540px; }
.compact-search-row > label { display: block; margin-bottom: 6px; font-weight: 700; }
.compact-search-row > div { display: flex; gap: 8px; }
.compact-search-row input { flex: 1; min-width: 0; }
.compact-search-row .btn { flex: 0 0 auto; }

.compact-more-filters { margin-top: 12px; }
.compact-more-filters summary {
  width: fit-content;
  padding: 4px 0;
  color: var(--primary-dark);
  font-weight: 700;
  cursor: pointer;
}

.compact-filter-count {
  margin-left: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #dff2e9;
  font-size: 11px;
}

.compact-filter-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  margin-top: 12px;
}

.compact-filter-fields label { display: grid; gap: 6px; min-width: 0; }
.compact-filter-fields :is(input, select) { width: 100%; min-width: 0; }
.compact-filter-clear { display: inline-block; margin-top: 12px; color: var(--primary-dark); font-weight: 700; }

@media (min-width: 641px) {
  .compact-more-filters.desktop-ready summary { display: none; }
}

@media (max-width: 640px) {
  .compact-filter-bar { padding: 12px; margin-bottom: 15px; }
  .compact-search-row > label { font-size: 12px; }
  .compact-search-row > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .compact-search-row .btn { width: auto; min-height: 44px; padding-inline: 13px; }
  .compact-more-filters { margin-top: 8px; }
  .compact-more-filters summary { min-height: 38px; display: flex; align-items: center; }
  .compact-filter-fields { grid-template-columns: 1fr; gap: 10px; }
  .compact-filter-fields .btn { width: 100%; }
}

.contact-card {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  padding: 17px;
  border: 1px solid #bde5d9;
  border-radius: 13px;
  background: #effaf6;
  overflow-wrap: anywhere;
}

.contact-dialog {
  width: min(520px, calc(100vw - 28px));
  max-height: min(90dvh, 780px);
  padding: clamp(18px, 3vw, 28px);
  border: 0;
  border-radius: 20px;
  box-shadow: 0 28px 75px #082d2655;
  overflow-y: auto;
}

.contact-dialog::backdrop {
  background: #082d2699;
  backdrop-filter: blur(4px);
}

.contact-dialog h3 {
  margin: 0 0 8px;
  color: #102f2a;
  font-size: 24px;
}

.contact-fields {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.contact-fields label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.contact-fields input,
.contact-fields textarea,
.contact-dialog select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbded7;
  border-radius: 10px;
  font: inherit;
}

@media (max-width: 760px) {
  .inbox-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .inbox-tabs { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
  .inbox-tabs a { min-width: 0; flex-direction: column; padding: 9px 5px; gap: 3px; font-size: 12px; text-align: center; overflow-wrap: anywhere; }
  .inbox-preview { max-height: min(65dvh, 500px); overscroll-behavior: contain; }
}

@media (max-width: 480px) {
  .inbox-item-head,
  .notification-item {
    flex-wrap: wrap;
  }

  .inbox-actions > *,
  .contact-dialog-actions > * {
    flex: 1 1 100%;
  }
}

/* Photos use the same clipped frame as the initials they replace. */
.me-avatar,
.avatar,
.rec-hero-avatar {
  overflow: hidden;
  flex-shrink: 0;
}

.me-avatar img,
.avatar img,
.rec-hero-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.profile-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.profile-selected span {
  border-radius: 999px;
  padding: 5px 9px;
  background: #dff4ed;
  color: #145a4d;
  font-size: 12px;
  font-weight: 650;
}

.profile-selected small { color: #60746d; }

.dir-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.app-modal {
  width: min(560px, calc(100vw - 24px));
  max-height: min(90dvh, 800px);
  overflow-y: auto;
  border: 0;
  border-radius: 22px;
  padding: clamp(20px, 4vw, 32px);
  color: #17352e;
  background: #fff;
  box-shadow: 0 28px 80px #082d2655;
}

.app-modal::backdrop { background: #082d2699; backdrop-filter: blur(4px); }
.app-modal-close { position: absolute; top: 12px; right: 14px; border: 0; background: #eaf5f0; border-radius: 10px; width: 38px; height: 38px; font-size: 24px; }
.member-modal-hero { display: flex; align-items: center; gap: 18px; padding-right: 30px; }
.member-modal-hero h2 { margin: 4px 0; overflow-wrap: anywhere; }
.member-modal-photo { display: grid; place-items: center; flex: 0 0 auto; width: clamp(90px, 25vw, 130px); height: clamp(90px, 25vw, 130px); border-radius: 22px; background: #dff4ed; color: #145a4d; font-size: 30px; font-weight: 800; overflow: hidden; }
.member-modal-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-modal-details { display: grid; gap: 12px; margin-top: 24px; }
.member-modal-details > div { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid #e2eee9; overflow-wrap: anywhere; }
.member-modal-details small { color: #60746d; }
.notice-modal h2 { margin: 12px 0; }
.notice-modal p { line-height: 1.65; overflow-wrap: anywhere; }
.list-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 20px 0; color: #496d62; }
.route-error { max-width: 680px; margin: clamp(40px, 9vw, 100px) auto; padding: clamp(24px, 5vw, 48px); }
.route-error h1 { margin: 12px 0; }
.route-error p { line-height: 1.6; }
.list-pagination a { padding: 9px 13px; border: 1px solid #c9e4d9; border-radius: 10px; background: #fff; text-decoration: none; font-weight: 700; }

/* Narrow phones get a dedicated search row instead of competing controls. */
@media (max-width: 640px) {
  .topbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding: 10px 12px; }
  .topbar-search { display: flex; grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: none; min-width: 0; margin: 0; }
  .topbar-search input { flex: 1; min-width: 0; width: 0; }
  .hamburger { grid-column: 1; grid-row: 1; }
  .ask-btn { grid-column: 2; grid-row: 1; justify-self: end; min-width: 0; }
  .inbox-shortcut { grid-column: 3; grid-row: 1; flex-shrink: 0; }
  .accessibility-tools { gap: 8px; max-width: 100vw; }
  .accessibility-tools a { white-space: nowrap; }
  .dir-actions > * { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 380px) {
  .ask-btn span { font-size: 0; }
  .ask-btn span::after { content: 'Support'; font-size: 12px; }
  .member-modal-hero { align-items: flex-start; gap: 12px; }
  .member-modal-photo { width: 80px; height: 80px; }
}
