:root {
  color-scheme: light;
  --paper: #eef2f7;
  --cream: #fff;
  --ink: #202b39;
  --muted: #4e5b6b;
  --green: #365b4b;
  --green-dark: #284a6d;
  --red: #315b89;
  --red-dark: #233f64;
  --line: #cfd9e4;
  --serif: Georgia, 'Times New Roman', serif;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .62; cursor: wait; }
a { color: inherit; }
[hidden] { display: none !important; }
.connectivity { padding: .55rem 1rem; background: #fff2d3; color: #584314; text-align: center; font-size: .9rem; }
:focus-visible { outline: 3px solid #55784d; outline-offset: 4px; }
::selection { background: #e4d49f; color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: normal; margin: 0; letter-spacing: -.045em; line-height: 1.06; }
p { margin: 0; }
.skip-link { position: fixed; z-index: 10; top: 1rem; left: 1rem; padding: .5rem .75rem; background: var(--cream); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
#main { min-height: 65vh; }
.wrap { width: min(100% - 5rem, 77rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-layout { min-height: 4.7rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 1.25rem; }
.wordmark { display: inline-flex; align-items: center; gap: .45rem; justify-self: start; font: bold 2rem/1 var(--serif); letter-spacing: -.09em; text-decoration: none; }
.wordmark-icon { display: block; flex: 0 0 auto; width: 1.65rem; height: 1.65rem; object-fit: contain; }
.navigation { display: flex; align-items: center; gap: clamp(.65rem, 2vw, 1.65rem); height: 100%; }
.navigation a { position: relative; display: inline-flex; align-items: center; gap: .35rem; padding: .72rem 0; color: var(--muted); text-decoration: none; font-size: .94rem; font-weight: 650; }
.navigation a:hover, .navigation a[aria-current] { color: var(--red-dark); }
.navigation a[aria-current]::after { position: absolute; content: ''; height: 2px; left: 0; right: 0; bottom: .38rem; background: var(--red); }
.nav-letter { width: .9rem; height: .65rem; display: inline-block; border: 1px solid currentColor; border-radius: .13rem; position: relative; overflow: hidden; }
.nav-letter::after { content: ''; position: absolute; top: -.37rem; left: .03rem; width: .67rem; height: .67rem; border: 1px solid currentColor; transform: rotate(45deg); }
.unread-count { display: inline-grid; place-items: center; min-width: 1.15rem; height: 1.15rem; padding-inline: .2rem; border-radius: 1rem; background: var(--red); color: white; font-size: .7rem; }
#account { justify-self: end; }
.account-button { display: flex; align-items: center; gap: .55rem; border: 1px solid var(--line); background: var(--cream); padding: .34rem .65rem .34rem .34rem; border-radius: .5rem; font-weight: 650; }
.account-button > span:last-child { max-width: 8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-caption { display: grid; text-align: left; gap: .13rem; line-height: 1.1; }
.account-caption > span { overflow: hidden; text-overflow: ellipsis; }
.account-caption small { color: var(--muted); font-size: .68rem; font-weight: 550; }
.avatar { display: grid; place-items: center; width: 1.85rem; height: 1.85rem; border-radius: 50%; background: #e5eadc; color: var(--green-dark); font-family: var(--serif); font-size: 1.05rem; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; width: fit-content; padding: .55rem .93rem; border: 1px solid transparent; border-radius: .44rem; text-decoration: none; font-weight: 700; font-size: .94rem; line-height: 1.3; }
.primary { background: var(--red); color: white; }
.primary:hover { background: var(--red-dark); }
.secondary { background: var(--cream); border-color: #c9baa0; }
.secondary:hover { background: #f4ecdc; border-color: #9d8c70; }
.text-link, .text-button { color: var(--green-dark); font-weight: 700; text-decoration: underline; text-underline-offset: .24em; }
.text-button { background: transparent; border: 0; padding: .24rem 0; }
.text-link:hover, .text-button:hover { color: var(--red-dark); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }

.eyebrow { font-size: .9rem; font-weight: 700; color: var(--green-dark); }
.location-dot { display: inline-block; width: .45rem; height: .45rem; margin-right: .25rem; border-radius: 50%; background: #648354; vertical-align: .08em; }
.hero-description { margin-block: 1.3rem 1.5rem; max-width: 30rem; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.19rem); line-height: 1.6; }
.catalog { border-top: 1px solid var(--line); padding-top: 1.75rem; }
.section-heading h2, .page h1 { font-size: clamp(2.65rem, 4.05vw, 4.05rem); letter-spacing: -.06em; }
.section-heading p, .page-heading p, .postbox-banner p { margin-top: .55rem; color: var(--muted); }
.filter-row { margin-block: 1.1rem .95rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem; }
.filters { display: flex; flex-wrap: wrap; gap: .42rem; }
.filter { border: 1px solid #cfc3aa; background: transparent; border-radius: 2rem; padding: .42rem .8rem; min-height: 2.45rem; font-weight: 650; font-size: .91rem; }
.filter:hover { background: #f1e7d5; }
.filter[aria-pressed="true"] { background: var(--green-dark); color: white; border-color: var(--green-dark); }
.count { color: var(--muted); font-size: .9rem; font-weight: 600; }
.experience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.experience-card { overflow: hidden; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: .75rem; background: var(--cream); box-shadow: 0 2px 3px #49341609; }
.card-image { position: relative; }
.scene { aspect-ratio: 1.61; background: #dde5ed url('/images/photo-walk.webp') center / cover no-repeat; }
.scene-garden, .scene-flowers { background-image: url('/images/photo-garden.webp'); }
.scene-pottery, .scene-bread { background-image: url('/images/photo-pottery.webp'); }
.bookmark-button { position: absolute; top: .55rem; right: .55rem; width: 2.55rem; height: 2.55rem; display: grid; place-items: center; border: 1px solid #d9cdb3; border-radius: 50%; background: var(--cream); }
.bookmark-button:hover { background: #f3ebd8; }
.bookmark-shape { display: block; width: .82rem; height: 1.04rem; position: relative; background: var(--green-dark); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 73%, 0 100%); }
.bookmark-shape::after { position: absolute; content: ''; inset: 1.5px 1.5px 3px; background: var(--cream); clip-path: inherit; }
.bookmark-button[aria-pressed="true"] .bookmark-shape::after { display: none; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: .95rem 1rem .75rem; }
.category, .status { display: inline-flex; align-items: center; width: fit-content; min-height: 1.6rem; border-radius: .24rem; padding: .18rem .47rem; font-size: .83rem; font-weight: 700; line-height: 1.2; }
.category.help { color: #344730; background: #e4ebd8; }
.category.learn { color: #613c24; background: #f1dfc5; }
.category.outside { color: #36485a; background: #e0e9ec; }
.card-body h3 { margin-top: .55rem; font-size: clamp(1.55rem, 2.2vw, 2rem); }
.card-body p, .card-bottom { color: var(--muted); font-size: .91rem; }
.card-body p { margin-block: .42rem .75rem; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; gap: .45rem; border-top: 1px solid var(--line); padding-top: .48rem; margin-top: auto; font-weight: 650; }
.card-bottom .text-button { white-space: nowrap; }
.recognition-strip { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(1rem, 4vw, 3rem); margin-top: 3rem; padding: clamp(1.2rem, 3.2vw, 2.5rem); background: #ecebd8; border: 1px solid #dddac0; border-radius: .75rem; }
.recognition-strip h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); }
.recognition-strip p { color: var(--muted); margin-block: .45rem .52rem; }
.strip-medals { display: flex; gap: .4rem; align-items: center; }
.strip-medals .medal:nth-child(2) { transform: translateY(-.5rem); }
.site-footer { border-top: 1px solid var(--line); margin-top: 3.6rem; }
.footer-layout { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 5.1rem; color: var(--muted); }
.footer-layout .wordmark { font-size: 1.55rem; color: var(--ink); }

.page { padding-block: clamp(1.8rem, 4.2vw, 3.6rem) 1rem; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: .65rem 1rem; flex-wrap: wrap; margin-bottom: 1.35rem; }
.empty { display: grid; gap: .85rem; justify-items: start; padding: clamp(1rem, 3vw, 2.3rem); border: 1px dashed #cbb998; border-radius: .75rem; background: var(--cream); color: var(--muted); }
.empty h1 { color: var(--ink); }
.guest-gate .empty { min-height: 17rem; align-content: center; }
.loading { padding-block: 2rem; }
.visit-list { display: grid; gap: .75rem; }
.visit-card { display: grid; grid-template-columns: clamp(8rem, 15vw, 13rem) minmax(0, 1fr) auto; gap: 1rem; align-items: start; padding: .85rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--cream); }
.visit-card .scene { border-radius: .4rem; }
.visit-content h3 { font-size: 1.75rem; margin-top: .35rem; }
.visit-meta { margin-block: .35rem .5rem; color: var(--muted); font-size: .93rem; }
.info { background: #f0e9d9; color: #53462f; border-radius: .34rem; padding: .55rem .65rem; margin-bottom: .65rem; }
.status { background: #efe7d5; color: #5c4e38; }
.status-completed, .status-accepted { background: #e4ebd8; color: var(--green-dark); }
.status-disputed { background: #f2ddd7; color: var(--red-dark); }

.postbox-banner { display: flex; align-items: center; justify-content: space-between; gap: 1.45rem; padding: clamp(1.3rem, 3.8vw, 3.3rem); background: #f1e6cf; border: 1px solid #decbaa; border-radius: .75rem; overflow: hidden; }
.postbox-banner h1 { margin-block: .4rem; }
.postbox-banner .button { margin-top: 1rem; }
.postbox-banner > .envelope { width: clamp(3.4rem, 11vw, 7rem); height: auto; aspect-ratio: 1.48; margin-right: clamp(.2rem, 5vw, 3rem); }
.mail-toolbar { margin-block: 1.3rem .8rem; }
.mail-list { display: grid; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.mail-card { width: 100%; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; text-align: left; gap: .7rem 1rem; padding: .8rem .95rem; background: var(--cream); border: 1px solid var(--line); border-radius: .55rem; }
.mail-card:hover { border-color: #ab9570; }
.mail-card.is-unread { border-color: #c3a573; background: #fff9e9; }
.mail-copy, .mail-meta { display: grid; gap: .2rem; }
.mail-copy strong { font: 1.35rem/1.15 var(--serif); }
.mail-copy span, .mail-meta { color: var(--muted); font-size: .85rem; }
.mail-meta { text-align: right; justify-items: end; }
.new-indicator { color: white; background: var(--red); border-radius: .2rem; padding: .04rem .35rem; font-size: .78rem; font-weight: 700; }
.mail-empty { justify-items: center; }
.envelope { position: relative; flex: 0 0 auto; display: inline-block; width: 2.45rem; height: 1.68rem; border: 1px solid #ae976f; border-radius: .2rem; background: #f3e4bf; overflow: hidden; box-shadow: 0 2px 0 #85673d19; }
.envelope::before { content: ''; position: absolute; width: 83%; height: 125%; border-right: 1px solid #b7a17a; border-bottom: 1px solid #b7a17a; top: -85%; left: 8%; transform: rotate(45deg); background: #f9edca; }
.envelope i { position: absolute; left: 43%; top: 47%; width: .46rem; height: .46rem; background: #a44437; border: 1px solid #8d342a; border-radius: 50%; }
.letter-frame > .envelope { width: 3.1rem; height: 2.16rem; margin-bottom: .4rem; }
.letter-byline, .note-status { color: var(--muted); font-size: .9rem; }
.letter-paper { white-space: pre-wrap; overflow-wrap: anywhere; margin: .95rem 0; padding: 1.15rem; background: #fcf2d8; border: 1px solid #dac79d; border-radius: .4rem; font: 1.12rem/1.63 var(--serif); }

.tier-card { display: flex; justify-content: space-between; align-items: center; gap: .5rem 1.2rem; flex-wrap: wrap; border: 1px solid #d6d3b5; border-radius: .6rem; background: #e9ead6; padding: 1rem 1.15rem; }
.tier-card h2 { margin-top: .22rem; font-size: clamp(2rem, 3.1vw, 2.75rem); }
.tier-card p { color: var(--muted); margin-top: .32rem; font-size: .95rem; }
.tier-next { border-left: 1px solid #bdc2a2; padding-left: .85rem; }
.visibility-note { color: var(--muted); margin-block: -.55rem .75rem; font-size: .94rem; }
.profile-section { margin-top: 1.45rem; }
.profile-section > h2 { margin-bottom: .75rem; font-size: 2rem; }
.badge-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; }
.badge-card { display: grid; justify-items: center; text-align: center; align-content: start; padding: 1rem .65rem; min-width: 0; background: var(--cream); border: 1px solid var(--line); border-radius: .6rem; }
.badge-card h3 { font-size: 1.5rem; margin-block: .4rem .25rem; }
.badge-card p, .badge-state, .muted { color: var(--muted); }
.badge-card p, .badge-state { font-size: .88rem; }
.badge-state { font-weight: 650; margin-top: .5rem; }
.medal { position: relative; display: grid; justify-items: center; width: clamp(3rem, 7vw, 4.75rem); height: clamp(4rem, 8vw, 5.75rem); --coin: #eac169; --trim: #a77a29; --ink-medal: #704a16; --ribbon: #a84132; }
.medal-help { --coin: #c6d9a0; --trim: #748653; --ink-medal: #3b562c; --ribbon: #4d714c; }
.medal-learn { --coin: #e5c7a7; --trim: #9b6945; --ink-medal: #6c442b; --ribbon: #88532f; }
.medal-perspective { --coin: #c8dbe2; --trim: #698e9d; --ink-medal: #335365; --ribbon: #537785; }
.medal-ribbons { width: 54%; height: 53%; background: repeating-linear-gradient(90deg, var(--ribbon) 0 42%, #f0dab193 42% 51%, var(--ribbon) 51% 88%); clip-path: polygon(6% 0, 94% 0, 100% 75%, 62% 100%, 38% 100%, 0 75%); }
.medal-coin { position: absolute; bottom: 0; display: grid; place-items: center; width: 88%; aspect-ratio: 1; border: 2px solid var(--trim); border-radius: 50%; background: radial-gradient(circle at 37% 29%, #fff6d6, var(--coin) 67%); color: var(--ink-medal); font: bold clamp(1.4rem, 3vw, 2.2rem)/1 var(--serif); box-shadow: inset 0 0 0 3px var(--coin), inset 0 0 0 4px var(--trim), 0 2px 2px #4b301b2b; }
.medal-locked { filter: saturate(.18); opacity: .67; }
.note-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.paper-note { margin: 0; min-width: 0; padding: .95rem; border: 1px solid #dfd0ab; border-radius: .42rem; background: #fff6df; }
.paper-note blockquote { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--serif); font-size: 1.12rem; }
.paper-note figcaption { color: var(--muted); font-size: .87rem; margin-top: .55rem; }

body:has(dialog[open]) { overflow: hidden; }
dialog { width: min(35rem, calc(100% - 1.25rem)); max-height: calc(100% - 1.25rem); padding: 0; border: 1px solid #cabda5; border-radius: .75rem; color: var(--ink); background: var(--cream); box-shadow: 0 16px 45px #271b1535; }
dialog::backdrop { background: #221b1494; }
.panel { position: relative; padding: clamp(1rem, 4vw, 1.75rem); }
.close-form { position: absolute; z-index: 1; right: .6rem; top: .6rem; }
.close { display: grid; place-items: center; width: 2.55rem; height: 2.55rem; padding: 0; border: 1px solid #c7b99d; border-radius: 50%; background: var(--cream); font-size: 1.65rem; line-height: 1; }
.close:hover { background: #f6ead1; }
.panel h2 { max-width: calc(100% - 2.7rem); font-size: clamp(2rem, 4vw, 2.8rem); overflow-wrap: anywhere; margin-bottom: .55rem; }
.panel p { margin-bottom: .65rem; color: var(--muted); }
.panel .category { margin-bottom: .45rem; }
.panel-art { margin-bottom: .7rem; }
.panel-art .scene { border-radius: .4rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin: .8rem 0; padding: .65rem 0; border-block: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .85rem; }
.facts dd { margin: .16rem 0 0; font-weight: 650; }
.stack { display: grid; gap: .65rem; }
.stack label { display: grid; gap: .22rem; color: var(--ink); font-size: .94rem; font-weight: 650; }
.stack input, .stack select, .stack textarea { min-width: 0; width: 100%; background: white; color: var(--ink); border: 1px solid #b7a78a; border-radius: .3rem; padding: .52rem .56rem; font-weight: 400; }
.stack textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.stack .form-error { color: var(--red-dark); margin: 0; font-weight: 650; }
.demo-options { padding: .8rem; margin-block: .75rem; border: 1px solid #e1d1ac; border-radius: .4rem; background: #f9efd8; }
.auth-toggle { margin-top: .65rem; }
.toast { display: flex; align-items: center; gap: .58rem; position: fixed; z-index: 10; right: 1rem; bottom: 1rem; max-width: calc(100% - 2rem); padding: .72rem .9rem; color: white; background: var(--green-dark); border: 1px solid #43513c; border-radius: .48rem; font-weight: 650; box-shadow: 0 4px 16px #2c241a31; }

@media (max-width: 880px) {
  .wrap { width: calc(100% - 3rem); }
  .hero-break { display: none; }
  .experience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-layout { column-gap: .8rem; }
  .wordmark { font-size: 1.7rem; }
}
@media (max-width: 660px) {
  .wrap { width: calc(100% - 2rem); }
  .header-layout { grid-template-columns: minmax(0, 1fr) auto; gap: .15rem .7rem; padding-block: .62rem .15rem; }
  .navigation { grid-row: 2; grid-column: 1 / -1; gap: 1.2rem; }
  .navigation a { font-size: .9rem; }
  #account { grid-row: 1; grid-column: 2; }
  .hero-description { margin-block: .85rem 1rem; }
  .visit-card { grid-template-columns: minmax(0, 1fr) auto; gap: .55rem; }
  .visit-card > .scene { display: none; }
  .badge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-layout .wordmark { font-size: 1.2rem; }
  .footer-layout p { font-size: .85rem; }
}
@media (max-width: 465px) {
  .experience-grid, .note-grid, .recognition-strip { grid-template-columns: 1fr; }
  .mail-card { gap: .5rem; padding-inline: .6rem; }
  .mail-card .envelope { width: 1.85rem; height: 1.3rem; }
  .mail-copy strong { font-size: 1.17rem; }
  .mail-meta { font-size: .76rem; }
  .postbox-banner { gap: .5rem; }
}

.neighborhood {
  display: grid;
  grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr) minmax(13rem, 16.5rem);
  align-items: start;
  gap: clamp(.8rem, 1.8vw, 1.55rem);
  padding-block: 2rem 1rem;
}
.feed-left, .feed-right { display: grid; gap: .85rem; }
.feed-main { min-width: 0; }
.feed-heading { padding: .05rem 0 1rem; }
.feed-heading h1 { margin-top: .3rem; font-size: clamp(2.05rem, 3.45vw, 3.55rem); letter-spacing: -.06em; }
.feed-heading .eyebrow { font-size: .83rem; }
.side-card, .story-card, .feed-composer { border: 1px solid var(--line); border-radius: .65rem; background: var(--cream); }
.side-card { overflow: hidden; }
.side-content { padding: .95rem; }
.side-content h2 { font-size: 1.6rem; overflow-wrap: anywhere; }
.side-content p { color: var(--muted); margin-block: .38rem .65rem; font-size: .92rem; }
.side-content .text-link { font-size: .9rem; }
.welcome-cover { height: 6.15rem; background: #dce6ef; }
.profile-avatar { width: 3.15rem; height: 3.15rem; font-size: 1.75rem; border: 3px solid var(--cream); margin-top: -2.6rem; margin-bottom: .45rem; position: relative; }
.profile-pocket { display: flex; flex-wrap: wrap; gap: .4rem .8rem; padding: .55rem 0; margin: .65rem 0 .55rem; border-block: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.profile-pocket strong { color: var(--ink); }
.postbox-pocket { background: #f5ead3; border-color: #e3d5b9; }
.postbox-pocket .envelope { width: 2.1rem; height: 1.43rem; margin-bottom: .38rem; }
.medal-pocket { display: flex; align-items: flex-start; gap: .75rem; }
.medal-pocket .medal { flex: 0 0 3.1rem; height: 3.65rem; margin-top: .12rem; }
.medal-pocket .medal-coin { font-size: 1.3rem; }
.medal-pocket h2 { font-size: 1.45rem; }
.side-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .45rem; }
.side-heading > span { color: var(--muted); font-size: .84rem; }
.upcoming-list { display: grid; gap: .45rem; list-style: none; padding: 0; margin-block: .75rem; }
.upcoming-list li + li { border-top: 1px solid var(--line); padding-top: .42rem; }
.upcoming-list button { display: grid; width: 100%; grid-template-columns: 3.05rem minmax(0, 1fr); align-items: center; gap: .55rem; text-align: left; padding: .22rem; border: 0; border-radius: .28rem; background: transparent; }
.upcoming-list button:hover { background: #f4ebda; }
.upcoming-list .scene { width: 100%; border-radius: .3rem; }
.upcoming-list strong { font-size: .91rem; line-height: 1.28; display: block; }
.upcoming-list small { display: block; color: var(--muted); margin-top: .12rem; font-size: .79rem; }
.avatar-tone-0 { background: #ebd6b7; color: #623b22; }
.avatar-tone-1 { background: #dce8d1; color: #304c2c; }
.avatar-tone-2 { background: #eddbd0; color: #6c3327; }
.avatar-tone-3 { background: #d9e5ea; color: #355261; }
.feed-composer { width: 100%; min-width: 0; display: flex; gap: .7rem; align-items: center; padding: .75rem .85rem; text-align: left; color: var(--muted); }
.feed-composer:hover { background: #fbf0dd; border-color: #cdbb99; }
.feed-composer .avatar, .story-header .avatar { flex: 0 0 auto; width: 2.35rem; height: 2.35rem; font-size: 1.22rem; }
.composer-label { flex: 0 0 auto; margin-left: auto; padding: .38rem .56rem; border-radius: .32rem; background: #e6ebdb; color: var(--green-dark); font-size: .88rem; font-weight: 700; white-space: nowrap; }
.feed-label { margin-block: 1.15rem .55rem; color: var(--muted); font: 700 .88rem/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: 0; }
.story-list { display: grid; gap: .85rem; }
.story-card { min-width: 0; overflow: hidden; box-shadow: 0 1px 3px #4934160c; }
.story-header { display: flex; align-items: center; gap: .6rem; padding: .85rem .95rem 0; }
.story-identity { display: grid; min-width: 0; gap: .06rem; }
.story-author { border: 0; background: none; padding: 0; font-weight: 750; text-align: left; overflow-wrap: anywhere; }
button.story-author:hover { text-decoration: underline; text-underline-offset: .15em; }
.story-identity time { color: var(--muted); font-size: .82rem; }
.story-options { flex: 0 0 auto; margin-left: auto; padding: .12rem .55rem; min-height: 2.3rem; border: 1px solid transparent; border-radius: .33rem; font-weight: 750; color: var(--muted); background: transparent; }
.story-options:hover { background: #f0e7d5; border-color: var(--line); }
.story-body { margin: .7rem .95rem .85rem; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .98rem; line-height: 1.55; }
.story-picture { margin: 0; }
.story-picture figcaption { color: var(--muted); background: #f7efdb; padding: .36rem .95rem; font-size: .83rem; font-weight: 650; }
.story-actions { display: flex; gap: .4rem; padding: .36rem .6rem; border-top: 1px solid var(--line); }
.story-action { display: flex; align-items: center; gap: .34rem; min-height: 2.45rem; border: 1px solid transparent; border-radius: .35rem; padding: .25rem .58rem; background: transparent; color: var(--muted); font-size: .91rem; font-weight: 700; }
.story-action:hover { background: #f3ead9; }
.story-action[aria-pressed="true"] { color: var(--red-dark); }
.heart-icon { font-size: 1.28rem; line-height: 1; }
.comment-icon { position: relative; width: .9rem; height: .7rem; border: 1.4px solid currentColor; border-radius: .25rem; margin-right: .05rem; }
.comment-icon::after { content: ''; position: absolute; width: .24rem; height: .23rem; border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; left: .13rem; bottom: -.19rem; transform: skewY(-36deg); background: var(--cream); }
.story-count { font-weight: 650; font-size: .83rem; }
.comment-list { display: grid; gap: .65rem; list-style: none; padding: 0; margin: .75rem 0 1rem; }
.comment-list li { background: #f5eddc; border-radius: .38rem; padding: .65rem .7rem; overflow-wrap: anywhere; }
.comment-list time { margin-left: .3rem; color: var(--muted); font-size: .82rem; }
.comment-list li p { margin: .24rem 0 0; white-space: pre-wrap; }

@media (max-width: 1010px) {
  .neighborhood { grid-template-columns: minmax(0, 1fr) minmax(12rem, 15rem); }
  .feed-left { display: none; }
}
@media (max-width: 660px) {
  .neighborhood { display: block; padding-top: 1.4rem; }
  .feed-right { display: none; }
  .navigation { gap: clamp(.65rem, 3vw, 1.2rem); }
  .feed-heading h1 { font-size: clamp(2rem, 7.9vw, 3.25rem); }
}
@media (max-width: 360px) {
  .navigation a { font-size: .85rem; }
  .nav-letter { display: none; }
  .composer-label { font-size: .79rem; }
  .feed-composer { gap: .45rem; padding-inline: .55rem; }
}

.member {
  --paper: #f0f4fb;
  --cream: #fff;
  --ink: #18243b;
  --muted: #4e5e76;
  --green: #166f50;
  --green-dark: #25499a;
  --red: #2453db;
  --red-dark: #173fb8;
  --line: #dce5f2;
  --display: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(155deg, #e7efff 0, var(--paper) 26rem);
}
.member .site-header { background: #fff; }
.member .wordmark { font-family: var(--display); font-weight: 800; letter-spacing: -.075em; }
.member h1, .member h2, .member h3 { font-family: var(--display); font-weight: 740; letter-spacing: -.045em; }
.member .navigation a[aria-current] { color: #1e49cf; }
.member .primary:hover { background: #153ba8; }
.member .secondary, .member .filter { border-color: #c9d6e9; }
.member .secondary:hover, .member .filter:hover { background: #e9f0ff; border-color: #9cafe1; }
.member .filter[aria-pressed="true"] { color: #fff; background: #2453db; border-color: #2453db; }
.member .location-dot { background: #25865b; }
.member .eyebrow, .member .count { color: #3b5686; }
.member .side-card, .member .story-card { box-shadow: 0 2px 5px #1c36700a; }
.member .feed-heading h1 { font-size: clamp(2rem, 3.1vw, 3.2rem); }
.member .feed-label { color: #394e72; }
.member .story-header { padding-top: .95rem; }
.member .story-body { font-size: 1rem; }
.member .story-picture figcaption { background: #f4f7fd; }
.member .story-action:hover, .member .story-options:hover, .member .upcoming-list button:hover { background: #eaf1ff; }
.member .story-action[aria-pressed="true"] { color: #bd384b; }
.member .feed-composer:hover { background: #f5f8ff; border-color: #b6c7ec; }
.member .composer-label { color: white; background: #2453db; }
.member .postbox-pocket, .member .postbox-banner, .member .medal-pocket { background: #e7efff; border-color: #d2e0fb; }
.member .category.help { background: #dff4e7; color: #195b43; }
.member .category.learn { background: #fff0d3; color: #70471b; }
.member .category.outside { background: #e4edff; color: #234d99; }
.member .tier-card { background: #e7f4ed; border-color: #cde7d9; }
.member .tier-next { border-left-color: #b9daca; }
.member .comment-list li { background: #eef3fd; }
.member .stack input, .member .stack select, .member .stack textarea { border-color: #bbcce5; }
.member .letter-paper { background: #f6f9ff; border-color: #d8e4fa; font-family: var(--display); }
.member .mail-card.is-unread { border-color: #b9cdf2; background: #f7faff; }
.member .envelope { border-color: #a1b9ec; background: #dfe9fe; }
.member .envelope::before { border-color: #a1b9ec; background: #eff4ff; }
.member .envelope i { border-color: #234ac8; background: #3b69ea; }
.member dialog, .member .close { border-color: #bbcce5; }
.member .close:hover { background: #e8f0ff; }
.member .empty { border-color: #bccce7; }
.member .info { color: #314b78; background: #e6eefb; }
.member .toast { background: #163376; border-color: #1f469c; }
.member .avatar-tone-0 { background: #ffe6be; color: #70451d; }
.member .avatar-tone-1 { background: #dce8ff; color: #234bb0; }
.member .avatar-tone-2 { background: #ffe3e9; color: #9b304b; }
.member .avatar-tone-3 { background: #d9f1e8; color: #22664e; }
.feed-location { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; color: #4e5e76; font-size: .87rem; }
.location-link { font-size: .88rem; text-align: left; }
.location-card { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .65rem 1rem; padding: 1rem 1.15rem; margin-bottom: .85rem; background: var(--cream); border: 1px solid var(--line); border-radius: .6rem; }
.location-card h2 { font-size: 1.23rem; }
.location-card p { color: var(--muted); margin-top: .24rem; }
.search-form { max-width: 38rem; display: grid; gap: .35rem; margin-bottom: .9rem; color: var(--ink); font-weight: 700; }
.search-form input { min-height: 2.85rem; width: 100%; border: 1px solid #bbcce5; border-radius: .46rem; padding: .6rem .75rem; background: white; color: var(--ink); font-weight: 400; }
.profile-posts { display: grid; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.profile-posts li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: .45rem; background: var(--cream); }
.profile-posts p { white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-posts .button { flex: 0 0 auto; }
@media (max-width: 660px) {
  .member .feed-heading h1 { font-size: clamp(1.9rem, 7.2vw, 3.1rem); }
  .profile-posts li { flex-wrap: wrap; }
}

.nav-people { flex: 0 0 auto; display: inline-block; position: relative; width: 1.05rem; height: .95rem; }
.nav-people::before { content: ''; position: absolute; left: .2rem; top: .02rem; width: .33rem; height: .33rem; border: 1px solid currentColor; border-radius: 50%; box-shadow: .39rem .035rem 0 -.025rem currentColor; }
.nav-people::after { content: ''; position: absolute; left: .06rem; bottom: .025rem; width: .61rem; height: .38rem; border: 1px solid currentColor; border-radius: .28rem .28rem .09rem .09rem; box-shadow: .36rem 0 0 -.04rem currentColor; }
.profile-links { display: flex; align-items: baseline; gap: .35rem .75rem; flex-wrap: wrap; }
.connections-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1.15rem; }
.connections-layout > div { display: grid; align-content: start; gap: .9rem; }
.connections-directory { grid-area: 1 / 1; }
.connections-requests { grid-area: 1 / 2; }
.people-section { padding: 1rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--cream); }
.people-section h2 { display: flex; align-items: center; gap: .45rem; margin-bottom: .65rem; font-size: 1.3rem; }
.people-count { display: grid; place-items: center; min-width: 1.35rem; height: 1.35rem; border-radius: 1rem; background: #e6eeff; color: #254bb0; font-size: .79rem; font-weight: 750; }
.people-empty { color: var(--muted); font-size: .93rem; }
.people-list { display: grid; list-style: none; margin: 0; padding: 0; }
.person-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .5rem .65rem; padding-block: .63rem; }
.person-card + .person-card { border-top: 1px solid var(--line); }
.person-card > .avatar { width: 2.2rem; height: 2.2rem; }
.person-card .button { min-height: 2.2rem; padding: .32rem .58rem; font-size: .86rem; }
.person-card .text-button { padding: 0; }
.person-info { overflow-wrap: anywhere; }
.person-info p { color: var(--muted); font-size: .83rem; }
.profile-connect { margin-block: .3rem .85rem; }
@media (max-width: 880px) {
  .connections-label { display: none; }
}
@media (max-width: 700px) {
  .connections-layout { grid-template-columns: 1fr; }
  .connections-layout > div { grid-area: auto; }
}
@media (max-width: 660px) {
  .navigation { flex-wrap: wrap; gap: 0 clamp(.4rem, 2vw, .85rem); }
  #connection-unread { position: absolute; top: .43rem; right: -.41rem; min-width: .75rem; height: .75rem; font-size: .54rem; }
}
@media (max-width: 360px) {
  .person-card .actions { grid-column: 2 / -1; }
}

body:not(.member) .site-header { background: #273f62; border-color: #1f3555; }
body:not(.member) .site-header .wordmark { color: #fff; letter-spacing: -.055em; }
body:not(.member) .navigation a { color: #e5edf8; }
body:not(.member) .navigation a[aria-current]::after { background: #a9c5e9; }
body:not(.member) .site-header .public-sign-in { background: #344e73; border-color: #7086a3; color: white; }
body:not(.member) .site-header .public-sign-in:hover { background: #415d83; }
body:not(.member) .recognition-strip { background: #e4ebf4; border-color: #cfdaea; }
body:not(.member) .secondary, body:not(.member) .filter { border-color: #b9c6d5; }
body:not(.member) .secondary:hover, body:not(.member) .filter:hover { background: #e8eef5; }
body:not(.member) .filter[aria-pressed="true"] { background: #334f77; color: white; }
.landing { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(19rem, .8fr); gap: clamp(1.5rem, 6vw, 6rem); align-items: center; padding-block: clamp(2rem, 6vw, 5rem); }
.landing-intro h1 { font-size: clamp(2.7rem, 5.4vw, 5.1rem); letter-spacing: -.055em; line-height: 1; }
.landing-intro .hero-description { margin-block: .9rem 1.35rem; max-width: 31rem; }
.landing-photo { width: min(100%, 24rem); position: relative; border: 1px solid #b7c4d5; border-radius: .32rem; overflow: hidden; background: #dfe6ed; }
.landing-photo .scene { aspect-ratio: 2.2; background-position-y: 7.3%; }
.landing-photo span { position: absolute; bottom: 0; left: 0; padding: .3rem .52rem; color: white; background: #17283fda; font-size: .8rem; }
.landing-access { align-self: center; padding: clamp(1.1rem, 3vw, 2.05rem); background: #fff; border: 1px solid #bfcbd9; border-radius: .4rem; box-shadow: 0 2px 8px #23385718; scroll-margin-top: .8rem; }
.landing-access h2 { color: #233c5c; font-size: clamp(1.65rem, 2.8vw, 2.25rem); margin-bottom: 1.1rem; }
.landing-access .stack { gap: .85rem; }
.landing-access .stack input { min-height: 2.9rem; border: 1px solid #adbacb; border-radius: .23rem; background: #fefeff; }
.landing-access .stack > .button { width: 100%; min-height: 2.85rem; }
.landing-access-bottom { display: flex; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
.feed-heading > .button { margin-top: .75rem; }
.compose-toolbar { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: .58rem; }
.compose-toolbar .button { min-height: 2.4rem; }
.mobile-matches { display: none; margin-top: .65rem; font-size: .92rem; }
.story-coauthor { color: var(--muted); }
.story-coauthor strong { color: var(--ink); }
.story-collab-label { color: #375ab1; font-size: .78rem; font-weight: 700; }
.collab-list { display: grid; gap: .65rem; list-style: none; margin: .65rem 0 0; padding: 0; }
.collab-list li { border: 1px solid var(--line); border-radius: .44rem; padding: .75rem; }
.collab-list h3 { font-size: 1.1rem; }
.collab-list p { margin-top: .3rem; font-size: .85rem; }
.collab-list blockquote { white-space: pre-wrap; overflow-wrap: anywhere; margin: .55rem 0; padding: .65rem; background: #edf3ff; border-radius: .3rem; }
@media (max-width: 1024px) {
  .header-layout { column-gap: .8rem; }
  .member .navigation { gap: clamp(.65rem, 1.7vw, 1.3rem); }
  .landing { gap: clamp(1.35rem, 4vw, 3rem); }
  .stack input, .stack select, .stack textarea, .search-form input { font-size: 1rem; }
  .stack input, .stack select { min-height: 2.75rem; }
}
@media (max-width: 760px) {
  .landing { grid-template-columns: 1fr; padding-block: 1.7rem 2.2rem; gap: .9rem; }
  .landing-intro h1 { max-width: 14ch; font-size: clamp(2.55rem, 8.5vw, 4rem); }
  .landing-photo { display: none; }
  .landing-access { width: min(100%, 34rem); }
  body:not(.member) .header-layout { display: flex; min-height: 3.9rem; padding-block: .45rem; flex-wrap: wrap; gap: .5rem .7rem; }
  body:not(.member) .site-header .wordmark { font-size: clamp(1.2rem, 5.1vw, 1.6rem); }
  body:not(.member) .navigation a { padding-block: .48rem; }
  body:not(.member) .navigation a[aria-current]::after { bottom: .2rem; }
  body:not(.member) .header-layout #account { margin-left: auto; }
}
@media (max-width: 660px) {
  .mobile-matches { display: block; }
  .member .navigation { gap: 0 clamp(.43rem, 2.05vw, .86rem); }
  .panel .stack .button, .landing-access .button { min-height: 2.75rem; }
}

/* Neighborhood browsing and meeting details */
.listing-time { font-size: .85rem; }
.area-map { margin: 0 0 .9rem; }
.area-map-bar { display: flex; gap: .45rem; flex-wrap: wrap; }
.area-map-open {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  margin-top: .55rem;
  padding: .85rem;
  background: #f3f8ff;
  border: 1px solid #cbd8eb;
  border-radius: .5rem;
}
.sf-neighborhood-map {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: #e2edf9;
  border: 1px solid #c8d8eb;
  border-radius: .4rem;
}
.sf-neighborhood-map path { fill: #fbfcff; stroke: #a8b8d2; stroke-width: .8; fill-rule: evenodd; cursor: pointer; }
.sf-neighborhood-map path.map-occupied, .map-key { fill: #3d6dbb; background: #3d6dbb; }
.sf-neighborhood-map path:hover, .sf-neighborhood-map path.map-selected { fill: #e5ac32; stroke: #533d08; }
.area-map-options { display: grid; gap: .5rem; justify-items: start; }
.area-map-options select { width: 100%; max-width: 22rem; }
.area-map-options p { color: var(--muted); font-size: .89rem; }
.map-key { display: inline-block; width: .65em; height: .65em; border-radius: .15rem; margin-right: .2rem; }
.map-credit { font-size: .78rem; }
.host-venue { display: grid; gap: .6rem; min-width: 0; margin: 0; padding: .7rem; border: 1px solid var(--line); border-radius: .4rem; }
.host-venue legend { font-weight: 700; padding: 0 .25rem; }
.host-venue > p { color: var(--muted); font-size: .9rem; }
.visit-meeting { display: grid; gap: .22rem; margin: .6rem 0; }
.visit-meeting p { overflow-wrap: anywhere; }
.demo-options summary { margin-top: .7rem; cursor: pointer; }
.demo-options details .actions { margin-top: .55rem; }

@media (max-width: 36rem) {
  .area-map-open { grid-template-columns: 1fr; }
  .sf-neighborhood-map { max-width: 17rem; justify-self: center; }
}

.medal-outside { --coin: #acdfe1; --trim: #3b8994; --ink-medal: #205c65; --ribbon: #28788e; }
.medal-neighborhoods { --coin: #dbcbf7; --trim: #8968b2; --ink-medal: #5b3d84; --ribbon: #72549a; }
.medal-welcome { --coin: #f3c4b5; --trim: #b46751; --ink-medal: #813f32; --ribbon: #a34b40; }
.medal-door { --coin: #b8d7ff; --trim: #5d83c2; --ink-medal: #315696; --ribbon: #315c9f; }
.avatar > svg { display: block; width: 100%; height: 100%; }
.profile-identity { display: flex; align-items: center; gap: .9rem; }
.profile-identity > .avatar, .peer-avatar > .avatar { flex: 0 0 auto; width: 4.15rem; height: 4.15rem; font-size: 2rem; }
.peer-avatar { margin-block: .55rem; }
.avatar-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.avatar-option { position: relative; display: grid; gap: .3rem; justify-items: center; padding: .6rem .25rem; min-height: 4.5rem; border: 1px solid var(--line); border-radius: .47rem; cursor: pointer; text-align: center; }
.avatar-option:has(:checked) { background: #e9f2ff; border-color: #365eb9; box-shadow: inset 0 0 0 1px #365eb9; }
.avatar-option:has(:focus-visible) { outline: 2px solid #365eb9; outline-offset: 2px; }
.avatar-option input { position: absolute; appearance: none; width: 1px; height: 1px; padding: 0; border: 0; }
.avatar-option .avatar { width: 2.65rem; height: 2.65rem; font-size: 1.4rem; }
.venue-picker, .venue-preview { display: grid; gap: .45rem; }
.venue-results:empty, .venue-preview:empty { display: none; }
.address-choices { display: grid; gap: .3rem; list-style: none; padding: 0; margin: 0; }
.address-choices button { display: grid; justify-items: start; width: 100%; text-align: left; }
.address-choices small, .meeting-map figcaption { color: var(--muted); }
.meeting-map { margin: 0; }
.meeting-map svg { display: block; width: 100%; max-height: 14rem; border: 1px solid #cad6e7; border-radius: .45rem; background: #edf2fa; }
.meeting-map figcaption { margin-top: .25rem; font-size: .8rem; }
.pin-streets-border, .pin-streets { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.pin-streets-border { stroke: #aab8cd; stroke-width: 4; }
.pin-streets { stroke: #fff; stroke-width: 2.5; }
.venue-confirmed { color: #245d43; font-weight: 650; }

.booking-listings { margin-block: 1.35rem; }
.booking-heading, .booking-listings > h2 { margin: 0 0 .5rem; font-size: 1.3rem; }
.booking-list { display: grid; gap: .5rem; }
.booking-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  padding: .75rem .88rem;
  border: 1px solid var(--line);
  border-radius: .48rem;
  background: var(--cream);
}
.booking-row h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.booking-row p { color: var(--muted); font-size: .9rem; }
.booking-opening { border-color: #accbbe; background: #eff9f4; }
.moderation-page { max-width: 60rem; }
.moderation-section { margin: 1.6rem 0; }
.moderation-cases { display: grid; gap: .65rem; }
.moderation-case { align-items: start; overflow-wrap: anywhere; }
.moderation-case p { margin: .3rem 0; white-space: pre-wrap; }
.moderation-case .actions { align-items: start; }
.moderation-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(8rem,1fr)); gap: .55rem; margin: .65rem 0; }
.moderation-metrics > div { border: 1px solid var(--line); border-radius: .48rem; background: var(--cream); padding: .55rem .7rem; }
.moderation-metrics dt { color: var(--muted); font-size: .8rem; }
.moderation-metrics dd { margin: .15rem 0 0; font-size: 1.55rem; font-weight: 700; }
.moderation-metrics dd small { display: block; font-size: .8rem; font-weight: 400; }
.analytics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: .9rem; margin-block: .85rem; }
.analytics-table { width: 100%; border-collapse: collapse; margin-top: .4rem; font-size: .88rem; }
.analytics-table th, .analytics-table td { border-bottom: 1px solid var(--line); padding: .45rem .5rem; text-align: start; }
.analytics-table th:first-child { overflow-wrap: anywhere; }
.analytics-table :is(th, td):not(:first-child) { text-align: end; }

.signup-place { margin: 0; padding: 0; border: 0; min-width: 0; }
.signup-place legend { margin-bottom: .45rem; padding: 0; font-weight: 700; }
.signup-place-edit { margin: 1rem 0; }
.signup-place-edit summary { cursor: pointer; color: var(--red-dark); }

.founder-card {
  max-width: 32rem;
  padding: .85rem 1rem;
  border: 1px solid #bdcadc;
  border-left: 3px solid #365e92;
  border-radius: .35rem;
  background: #f8fbff;
}
.founder-card h2 { font-size: 1.28rem; margin: 0 0 .3rem; color: #1d3d68; }
.founder-card > p { font-size: .93rem; }
.founder-name { margin-top: .52rem; font-weight: 700; }
.founder-name span { color: var(--muted); font-weight: 400; }
.founder-contact { display: flex; align-items: center; gap: .65rem; margin-top: .6rem; padding: .64rem .72rem; background: #e8f0fb; border-radius: .25rem; }
.founder-contact > div { display: grid; gap: .12rem; }
.founder-contact .envelope { flex: 0 0 auto; width: 1.75rem; }
.founder-page { max-width: 50rem; }
.founder-page h1 { margin-block: .9rem 1.2rem; }
.founder-page .founder-card { max-width: 38rem; padding: 1.2rem; }
.founder-page .founder-card > p:first-child { font-size: 1.04rem; }
.stack .check-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start; }
.stack .check-row input { width: 1.1rem; height: 1.1rem; margin-top: .13rem; padding: 0; flex: 0 0 auto; }
.recovery-code, .recovery-codes { display: block; padding: .65rem; background: #edf3fb; border-radius: .35rem; overflow-wrap: anywhere; }
.recovery-codes { list-style: none; }
.recovery-codes li + li { margin-top: .32rem; }

.landing-side { display: grid; gap: .9rem; align-content: start; min-width: 0; }
.landing-photo { position: relative; margin: 0; border: 1px solid var(--line); border-radius: .5rem; overflow: hidden; background: var(--cream); }
.landing-photo img { display: block; width: 100%; height: clamp(8rem, 14vw, 12rem); object-fit: cover; object-position: center 51%; }
.landing-photo figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .3rem; padding: .4rem .7rem; color: var(--muted); font-size: .76rem; }
.preview-note { padding: 1.25rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--cream); }
.preview-note h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
.preview-note p { margin-block: .65rem; color: var(--muted); }
.footer-layout { padding-block: 1.15rem; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; }
.footer-brand { display: grid; gap: .4rem; }
.footer-links, #footer-policies { display: flex; flex-wrap: wrap; gap: .55rem 1rem; }
.footer-links a { color: var(--green-dark); font-size: .9rem; text-underline-offset: .22em; }
.avatar { overflow: hidden; }
.avatar > img, .welcome-cover img, .profile-cover img, .cover-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-cover { height: clamp(9rem, 24vw, 18rem); margin-bottom: 1.3rem; border: 1px solid var(--line); border-radius: .68rem; overflow: hidden; background: #dce6ef; }
.cover-preview { height: clamp(6rem, 26vw, 11rem); border-radius: .48rem; overflow: hidden; background: #dce6ef; }
.photo-current { display: flex; gap: .75rem; align-items: center; }
.photo-form, .photo-options { margin-top: 1rem; }
.photo-options summary { cursor: pointer; font-weight: 650; }
.photo-hint { color: var(--muted); font-size: .82rem; }
.photo-previews { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .55rem; }
.photo-previews:empty { display: none; }
.photo-previews img, .cover-choice img { width: 100%; aspect-ratio: 1.7; object-fit: cover; display: block; border-radius: .32rem; }
.photo-previews img { object-fit: contain; background: #e6edf5; }
.photo-previews label { font-size: .8rem; }
.cover-themes { min-width: 0; border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: .5rem; }
.cover-themes legend { padding: 0 0 .5rem; font-weight: 650; }
.cover-themes .cover-choice { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .25rem .45rem; padding: .42rem; border: 1px solid var(--line); border-radius: .45rem; font-size: .78rem; cursor: pointer; }
.cover-themes .cover-choice:has(input:checked) { border-color: var(--green-dark); background: #ecf3fc; }
.cover-themes .cover-choice img { grid-row: 1; grid-column: 1 / -1; }
.cover-themes .cover-choice input { width: 1rem; min-height: 1rem; margin: 0; }
.story-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; overflow: hidden; margin: .65rem 0; border-radius: .45rem; }
.story-gallery.gallery-1 { grid-template-columns: 1fr; }
.gallery-tile { display: grid; min-width: 0; padding: 0; border: 0; background: #e0e8ef; overflow: hidden; }
.gallery-tile img { width: 100%; height: 100%; aspect-ratio: 1.25; object-fit: cover; display: block; }
.gallery-3 .gallery-tile:first-child { grid-column: 1 / -1; }
.gallery-3 .gallery-tile:first-child img { aspect-ratio: 2; }
.gallery-1 .gallery-tile img { width: 100%; height: auto; max-height: 31rem; aspect-ratio: auto; object-fit: contain; }
.gallery-tile:focus-visible { outline-offset: -4px; }
.gallery-full { border-radius: .4rem; overflow: hidden; background: #e6edf5; }
.gallery-full img { width: 100%; height: auto; max-height: 66vh; display: block; object-fit: contain; }
.gallery-navigation { justify-content: space-between; margin-top: .65rem; }
.postbox-image { width: clamp(6rem, 23vw, 18rem); max-height: 11rem; aspect-ratio: 1.55; object-fit: cover; border-radius: .5rem; }
.feed-people ul { list-style: none; padding: 0; margin: .65rem 0; display: grid; gap: .55rem; }
.feed-people li { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .4rem; }
.feed-people li > div { min-width: 0; overflow-wrap: anywhere; }
.feed-people small { display: block; color: var(--muted); }
.feed-people .button { min-height: 2rem; padding: .25rem .45rem; font-size: .75rem; }
.feed-connect { margin-left: .55rem; font-size: .8rem; }
.mobile-people { display: none; }
.group-invites { border: 1px solid var(--line); border-radius: .45rem; margin: 0; padding: .6rem .8rem; }
.group-list { margin-top: .7rem; }
.group-messages { max-height: min(48vh, 24rem); overflow: auto; overscroll-behavior: contain; }
@media (max-width: 1050px) { .mobile-people { display: block; } .feed-right .feed-people { display: none; } }
