/* ELM.social guest surfaces: header, front page, directory panels, sign-in sheet.
   Palette is the app's: warm paper, ink, ELM green; the logo stripe is the one accent. */
:root {
  --ef-paper: #f5f3ef;
  --ef-card: #fffefb;
  --ef-ink: #242b28;
  --ef-text: #3d4641;
  --ef-soft: #68726b;
  --ef-faint: #8d968f;
  --ef-line: #ddded7;
  --ef-line-soft: #e8e8e2;
  --ef-green: #325e47;
  --ef-green-deep: #285d42;
  --ef-sage: #edf3ec;
  --ef-sage-line: #c9d7c8;
  --ef-stripe: linear-gradient(90deg, #4d63ff, #9a6bff 55%, #d77cff);
  --ef-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --ef-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ef-radius: 16px;
  --ef-lift: 0 1px 2px rgba(36, 43, 40, .05), 0 10px 28px -14px rgba(36, 43, 40, .28);
  --ef-ease: cubic-bezier(.2, .7, .2, 1);
  --ef-gutter: clamp(16px, 3vw, 32px);
}
html, body, body.guest-body { background: var(--ef-paper); color: var(--ef-text); }
body.guest-body { font-family: var(--ef-sans); -webkit-font-smoothing: antialiased; }
.guest-body :focus-visible { outline: 2px solid var(--ef-green); outline-offset: 2px; border-radius: 6px; }

/* ---------- Header (all guest pages) ---------- */
.guest-public__topbar {
  position: sticky; top: 0; z-index: 50; isolation: isolate;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px;
  margin: 0; padding: 12px 0;
}
/* Full-bleed glass behind the header, whatever the shell width. */
.guest-public__topbar::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: color-mix(in srgb, var(--ef-paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.guest-public__topbar.is-scrolled::before { border-bottom-color: var(--ef-line); box-shadow: 0 6px 20px -18px rgba(36, 43, 40, .5); }
.guest-public__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ef-ink) !important; text-decoration: none; }
.guest-public__brand .elm-brand-logo { width: 36px; height: 32px; }
.guest-public__brand-copy { display: grid; gap: 1px; line-height: 1.1; }
.guest-public__brand-copy > span { font-weight: 750; font-size: 16px; letter-spacing: -.01em; }
.guest-public__brand-copy small { font-size: 11px; font-weight: 450; color: var(--ef-soft); }
.guest-public__nav { display: flex; justify-content: center; align-items: center; gap: 2px; min-width: 0; flex-wrap: nowrap; }
.guest-public__nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px;
  color: var(--ef-soft) !important; background: transparent; border-radius: 999px;
  font-size: 14px; font-weight: 560; text-decoration: none; white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}
.guest-public__nav a:hover { color: var(--ef-ink) !important; background: rgba(36, 43, 40, .05); }
.guest-public__nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--ef-stripe); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ef-ease);
}
.guest-public__nav a.is-active { color: var(--ef-ink) !important; background: transparent; }
.guest-public__nav a.is-active::after { transform: scaleX(1); }
.guest-public__top-actions { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.guest-public__top-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 14px;
  color: var(--ef-text) !important; background: transparent; border: 0; border-radius: 999px;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; box-shadow: none;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.guest-public__top-btn:hover { background: rgba(36, 43, 40, .06); }
.guest-public__top-btn--icon { width: 38px; padding: 0; }
.guest-public__top-btn--icon svg { width: 19px; height: 19px; }
.guest-public__top-btn.is-primary { color: #fff !important; background: var(--ef-green); }
.guest-public__top-btn.is-primary:hover { background: var(--ef-green-deep); }
.guest-public__top-btn:active, .ef-btn:active { transform: scale(.97); }
.guest-public__top-actions .elm-language-picker summary { min-height: 38px; border-radius: 999px; background: transparent; border-color: transparent; }
@media (max-width: 1180px) { .guest-public__brand-copy small { display: none; } .guest-public__nav a { padding: 0 9px; } }
@media (max-width: 960px) {
  .guest-public__topbar { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; padding-bottom: 6px; }
  .guest-public__nav {
    grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(var(--ef-gutter) * -1); padding: 0 var(--ef-gutter);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--ef-gutter), #000 calc(100% - 28px), transparent);
            mask-image: linear-gradient(90deg, transparent 0, #000 var(--ef-gutter), #000 calc(100% - 28px), transparent);
  }
  .guest-public__nav::-webkit-scrollbar { display: none; }
  .guest-public__nav a:first-child { margin-left: -12px; }
}
@media (max-width: 560px) {
  .guest-public__top-btn--icon[href^="/report-issue/"], .guest-public__top-actions .elm-language-picker { display: none; }
  .guest-public__top-btn { padding: 0 11px; font-size: 13px; }
  .guest-public__brand-copy > span { font-size: 15px; }
}
@media (max-width: 420px) { .guest-public__topbar:not(.is-member) .guest-public__top-btn--icon { display: none; } }

/* ---------- Shell ---------- */
.public-home { min-height: 100vh; background: var(--ef-paper); color: var(--ef-text); overflow-x: clip; }
.public-home__shell { width: min(1240px, 100%); margin: 0 auto; padding: 0 var(--ef-gutter); box-sizing: border-box; }
.public-home__grid { display: block; }
.public-home__stage { min-width: 0; }
.public-home__view { display: none; }
.public-home__view.is-active { display: block; animation: ef-view-in .32s var(--ef-ease) both; }
@keyframes ef-view-in { from { opacity: 0; transform: translateY(6px); } }
.public-home :is(h1, h2, h3) { color: var(--ef-ink); }
.public-home p, .public-home small { color: var(--ef-soft); }
.public-home img { max-width: 100%; }

/* ---------- Shared pieces ---------- */
.ef-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px;
  color: var(--ef-green) !important; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.ef-kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--ef-stripe); }
.ef-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px;
  color: var(--ef-ink); background: var(--ef-card); border: 1px solid var(--ef-line); border-radius: 999px;
  font: 600 15px/1 var(--ef-sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.ef-btn:hover { border-color: #c8cbc2; box-shadow: var(--ef-lift); }
.ef-btn--primary { color: #fff; background: var(--ef-green); border-color: var(--ef-green); }
.ef-btn--primary:hover { background: var(--ef-green-deep); border-color: var(--ef-green-deep); }
.ef-btn--light { color: var(--ef-ink); background: #fff; border-color: #fff; }
.ef-textlink { display: inline-flex; align-items: center; gap: 6px; color: var(--ef-green); font-weight: 650; font-size: 14px; text-decoration: none; white-space: nowrap; }
.ef-textlink span { transition: transform .2s var(--ef-ease); }
.ef-textlink:hover span { transform: translateX(3px); }
.ef-textlink--light { color: #fff; }
.ef-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.ef-round {
  display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0;
  color: var(--ef-ink); background: var(--ef-card); border: 1px solid var(--ef-line); border-radius: 50%;
  font-size: 15px; cursor: pointer; transition: background-color .15s ease, transform .15s ease;
}
.ef-round:hover { background: var(--ef-sage); }
.ef-avatar {
  display: inline-grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; overflow: hidden;
  border-radius: 50%; background: var(--ef-sage); color: var(--ef-green); font-size: 13px; font-weight: 700;
}
.ef-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ef-avatar--square { border-radius: 10px; width: 38px; height: 38px; }
.ef-avatar--lg { width: 64px; height: 64px; font-size: 22px; }
.ef-byline { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ef-byline > span:last-child { display: grid; min-width: 0; }
.ef-byline strong { color: var(--ef-ink); font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ef-byline small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ef-play-glyph { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(20, 24, 22, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ef-play-glyph::after { content: ""; position: absolute; left: 21px; top: 16px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; }

/* ---------- Hero ---------- */
.ef-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(28px, 6vw, 72px) 0 clamp(28px, 5vw, 56px); }
.ef-hero__title { margin: 0 0 18px; font: 500 clamp(42px, 5.6vw, 76px)/1.02 var(--ef-serif); letter-spacing: -.025em; color: var(--ef-ink); text-wrap: balance; }
.ef-hero__title em { font-style: italic; color: var(--ef-green); }
.ef-hero__lede { max-width: 34em; margin: 0 0 26px; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; color: var(--ef-text) !important; }
.ef-promises { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 28px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--ef-line); font-size: 13px; color: var(--ef-soft); }
.ef-promises strong { color: var(--ef-ink); font-weight: 650; }

.ef-deck { position: relative; }
.ef-deck__label { display: flex; align-items: center; gap: 8px; margin: 0 0 30px; font-size: 13px; font-weight: 650; color: var(--ef-text) !important; }
.ef-pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ef-green); }
.ef-pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ef-green); opacity: 0; animation: ef-pulse 2.4s ease-out infinite; }
@keyframes ef-pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.ef-deck__stack { position: relative; height: clamp(380px, 38vw, 470px); }
.ef-deck__card {
  --depth: 0;
  position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden;
  color: var(--ef-text); background: var(--ef-card); border: 1px solid var(--ef-line); border-radius: 22px; box-shadow: var(--ef-lift);
  text-decoration: none; z-index: calc(10 - var(--depth));
  transform: translate3d(0, calc(var(--depth) * -14px), 0) scale(calc(1 - var(--depth) * .045));
  transform-origin: 50% 0; opacity: calc(1 - var(--depth) * .18);
  transition: transform .7s var(--ef-ease), opacity .5s ease;
}
.ef-deck__card.is-hidden { opacity: 0; pointer-events: none; }
.ef-deck__card:not(.is-front) { pointer-events: none; }
.ef-deck__card:not(.is-front) > * { opacity: .0; transition: opacity .3s ease; }
.ef-deck__card.is-front > * { opacity: 1; transition: opacity .45s ease .12s; }
.ef-deck__media { position: relative; flex: 1 1 auto; min-height: 0; background: var(--ef-sage); }
.ef-deck__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ef-deck__media--live { display: grid; place-items: center; background: radial-gradient(120% 90% at 30% 20%, #3b4b44, var(--ef-ink)); }
.ef-live-badge { padding: 6px 12px; border-radius: 999px; background: #d64545; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ef-deck__body { display: grid; gap: 10px; padding: 16px 18px 18px; }
.ef-deck__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.5; color: var(--ef-text); }
.ef-deck__card.is-text { justify-content: center; background: var(--ef-sage); }
.ef-deck__card.is-text::before { content: "\201C"; position: absolute; top: 18px; left: 22px; color: var(--ef-green); opacity: .25; font: 400 120px/1 var(--ef-serif); }
.ef-deck__card.is-text .ef-deck__body { gap: 18px; padding: 26px; }
.ef-deck__card.is-text .ef-deck__text { order: -1; -webkit-line-clamp: 7; font: 400 clamp(20px, 2vw, 25px)/1.4 var(--ef-serif); color: var(--ef-ink); }
.ef-deck__dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.ef-deck__dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 6px; background: #c9ccc4; cursor: pointer; transition: width .3s var(--ef-ease), background-color .3s ease; }
.ef-deck__dots button[aria-current="true"] { width: 22px; background: var(--ef-green); }
.ef-deck__dots button::before { content: ""; position: absolute; inset: -10px -4px; }
.ef-deck__dots button { position: relative; }

/* ---------- Eliza bridge ---------- */
.ef-eliza {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px 28px;
  margin: 8px 0 0; padding: 22px 28px; border: 1px solid var(--ef-sage-line); border-radius: 24px;
  background: linear-gradient(120deg, var(--ef-sage), var(--ef-card) 70%);
}
.ef-eliza__portrait { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; padding: 3px; background: var(--ef-stripe); }
.ef-eliza h2 { margin: 0 0 4px; font: 500 clamp(22px, 2.2vw, 28px)/1.2 var(--ef-serif); }
.ef-eliza p { margin: 0; max-width: 46em; font-size: 15px; line-height: 1.55; color: var(--ef-text) !important; }

/* ---------- Sections ---------- */
.ef-section { margin: clamp(44px, 7vw, 80px) 0 0; }
.ef-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.ef-section__head h2 { margin: 0; font: 500 clamp(28px, 3vw, 38px)/1.1 var(--ef-serif); letter-spacing: -.015em; }
.ef-shelf-nav { display: flex; align-items: center; gap: 8px; }
.ef-shelf-nav .ef-textlink { margin-left: 8px; }

.ef-shelf {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 340px); gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(var(--ef-gutter) * -1); padding: 4px var(--ef-gutter) 14px; scroll-padding-inline: var(--ef-gutter);
}
.ef-shelf::-webkit-scrollbar { display: none; }
.ef-place {
  scroll-snap-align: start; display: grid; overflow: hidden; color: var(--ef-text); text-decoration: none;
  background: var(--ef-card); border: 1px solid var(--ef-line); border-radius: var(--ef-radius);
  transition: transform .25s var(--ef-ease), box-shadow .25s ease, border-color .2s ease;
}
.ef-place:hover { transform: translateY(-3px); box-shadow: var(--ef-lift); border-color: #cfd2c9; }
.ef-place__art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ef-ink); }
.ef-place__art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ef-ease); }
.ef-place:hover .ef-place__art img { transform: scale(1.04); }
.ef-place__meta { display: flex; align-items: center; gap: 12px; padding: 12px 14px 14px; min-width: 0; }
.ef-place__meta > span:last-child { display: grid; min-width: 0; }
.ef-place__meta strong { color: var(--ef-ink); font-size: 15px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ef-place__meta small { font-size: 12px; }

.ef-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.ef-tile {
  display: flex; flex-direction: column; overflow: hidden; color: var(--ef-text); text-decoration: none;
  background: var(--ef-card); border: 1px solid var(--ef-line); border-radius: var(--ef-radius);
  transition: transform .25s var(--ef-ease), box-shadow .25s ease;
}
.ef-tile:hover { transform: translateY(-2px); box-shadow: var(--ef-lift); }
.ef-tile__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ef-sage); }
.ef-tile__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ef-ease); }
.ef-tile:hover .ef-tile__media img { transform: scale(1.03); }
.ef-tile__lock { display: grid; place-items: center; min-height: 140px; background: repeating-linear-gradient(135deg, var(--ef-sage) 0 10px, #e5ece3 10px 20px); color: var(--ef-green); font-size: 13px; font-weight: 700; }
.ef-tile__body { display: flex; flex: 1; flex-direction: column; justify-content: space-between; gap: 14px; padding: 16px 18px 18px; }
.ef-tile__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.55; color: var(--ef-text); overflow-wrap: anywhere; }
.ef-tile.is-text .ef-tile__body { padding: 22px 22px 18px; }
.ef-tile.is-text { background: var(--ef-sage); border-color: var(--ef-sage-line); }
.ef-tile.is-text .ef-tile__text { font: 400 clamp(19px, 1.7vw, 23px)/1.45 var(--ef-serif); color: var(--ef-ink); -webkit-line-clamp: 9; }

/* ---------- Play ---------- */
.ef-play {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px;
  margin: clamp(44px, 7vw, 80px) 0 0; padding: 16px; border-radius: 28px; background: var(--ef-ink); color: #e8ebe7;
  scroll-margin-top: 120px;
}
.ef-play__feature { position: relative; display: grid; align-content: end; min-height: 360px; overflow: hidden; border-radius: 18px; background: #1a201d; }
.ef-play__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ef-ease); }
.ef-play__feature:hover .ef-play__art { transform: scale(1.03); }
.ef-play__feature::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 32, 29, 0) 20%, rgba(26, 32, 29, .82) 62%, #1a201d); }
.ef-play__copy { position: relative; padding: 28px; }
.ef-play__copy .ef-kicker { color: #b9c9bd !important; }
.ef-play__copy h2 { margin: 0 0 8px; color: #fff; font: 700 clamp(30px, 3.4vw, 44px)/1 var(--ef-sans); letter-spacing: .04em; }
.ef-play__copy p { max-width: 36em; margin: 0 0 20px; color: #c9d0ca !important; font-size: 15px; line-height: 1.55; }
.ef-play__soon { display: grid; gap: 16px; }
.ef-game { display: grid; grid-template-rows: 1fr auto; overflow: hidden; border-radius: 18px; background: #1a201d; color: #fff; text-decoration: none; transition: transform .25s var(--ef-ease); }
.ef-game:hover { transform: translateY(-2px); }
.ef-game img { width: 100%; height: 100%; min-height: 110px; object-fit: cover; display: block; }
.ef-game > span { display: grid; gap: 2px; padding: 12px 16px 14px; }
.ef-game strong { color: #fff; font-size: 15px; }
.ef-game small { color: #a9b3ab !important; font-size: 12px; }

/* ---------- People + around ---------- */
.ef-duo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); }
.ef-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 18px 12px; margin: 0; padding: 0; list-style: none; }
.ef-people a { display: grid; justify-items: center; gap: 8px; color: var(--ef-text); text-decoration: none; font-size: 13px; font-weight: 600; text-align: center; }
.ef-people a > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ef-people .ef-avatar { transition: transform .25s var(--ef-ease), box-shadow .25s ease; box-shadow: 0 0 0 1px var(--ef-line); }
.ef-people a:hover .ef-avatar { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--ef-card), 0 0 0 4px var(--ef-green); }
.ef-around { display: grid; gap: 10px; }
.ef-around__item { display: flex; gap: 14px; align-items: flex-start; padding: 16px; color: var(--ef-text); text-decoration: none; background: var(--ef-card); border: 1px solid var(--ef-line); border-radius: var(--ef-radius); transition: border-color .2s ease, background-color .2s ease; }
.ef-around__item:hover { border-color: var(--ef-sage-line); background: #fbfcf9; }
.ef-around__item strong { display: block; margin-bottom: 2px; color: var(--ef-ink); font-size: 15px; }
.ef-around__item small { font-size: 13px; line-height: 1.5; }
.ef-around__icon { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 12px; background: var(--ef-sage); color: var(--ef-green); }
.ef-around__icon svg { width: 20px; height: 20px; }
.ef-around__icon.is-on { background: #fbe9e7; color: #c43c3c; }

/* ---------- Footer ---------- */
.ef-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; margin: clamp(56px, 8vw, 96px) 0 0; padding: 28px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ef-line); }
.ef-footer__brand strong { color: var(--ef-ink); font-size: 15px; }
.ef-footer__brand p { margin: 4px 0 0; font-size: 13px; color: var(--ef-soft); }
.ef-footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; align-content: flex-start; max-width: 640px; }
.ef-footer__links a { color: var(--ef-soft); font-size: 13px; text-decoration: none; }
.ef-footer__links a:hover { color: var(--ef-ink); text-decoration: underline; text-underline-offset: 3px; }
.ef-footer__brand .elm-language-picker { margin-top: 14px; width: max-content; max-width: 100%; }

/* ---------- Directory panels ---------- */
.public-home__stage-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: clamp(28px, 4vw, 44px) 0 20px; }
.public-home__stage-copy :is(h1, h2) { margin: 0 0 6px; font: 500 clamp(30px, 3.4vw, 42px)/1.08 var(--ef-serif); letter-spacing: -.015em; }
.public-home__stage-copy p { margin: 0; max-width: 46em; font-size: 15px; line-height: 1.55; }
.public-home__stage-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.public-home__directory-count { font-size: 13px; color: var(--ef-soft); }
.public-home__chip, .public-home__action-btn, .public-home__secondary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 15px;
  color: var(--ef-text); background: var(--ef-card); border: 1px solid var(--ef-line); border-radius: 999px;
  font: 600 13px/1 var(--ef-sans); text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease;
}
.public-home__chip:hover, .public-home__secondary:hover { background: var(--ef-sage); border-color: var(--ef-sage-line); color: var(--ef-green); }
.public-home__action-btn.is-primary { color: #fff; background: var(--ef-green); border-color: var(--ef-green); }
.public-home__chip svg { width: 16px; height: 16px; }
.public-home__subsection-title { margin: 44px 0 16px; font: 500 26px/1.2 var(--ef-serif); }

.public-home__grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.public-home__grid-creators { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.public-home__card {
  position: relative; display: grid; align-content: end; gap: 4px; min-height: 230px; padding: 18px; overflow: hidden;
  color: #fff; background: var(--ef-ink); border-radius: var(--ef-radius); text-decoration: none; isolation: isolate;
  transition: transform .25s var(--ef-ease), box-shadow .25s ease;
}
a.public-home__card:hover { transform: translateY(-3px); box-shadow: var(--ef-lift); }
.public-home__card-cover, .public-home__card > .elm-media-guard-wrap { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.public-home__card-cover { object-fit: cover; transition: transform .8s var(--ef-ease); }
a.public-home__card:hover .public-home__card-cover { transform: scale(1.04); }
.public-home__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 24, 22, 0) 35%, rgba(20, 24, 22, .78)); }
.public-home__card strong { position: relative; color: #fff !important; font-size: 18px; font-weight: 700; }
.public-home__card small, .public-home__card p { position: relative; color: rgba(255, 255, 255, .82) !important; font-size: 13px; }
.public-home__kind { justify-self: start; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.public-home__card-avatar { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 42px; height: 42px; overflow: hidden; border: 2px solid var(--ef-card); border-radius: 50%; background: var(--ef-sage); color: var(--ef-green); font-weight: 700; }
.public-home__card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.public-home__card.is-missing-media { background: var(--ef-sage); }
.public-home__card.is-missing-media .public-home__shade { display: none; }
.public-home__card.is-missing-media :is(strong, small) { color: var(--ef-ink) !important; }
.public-home__card.is-missing-media .public-home__kind { color: var(--ef-green); background: var(--ef-card); }
.public-home__card img[hidden] { display: none; }
.public-home__creator-card { min-height: 250px; }

.public-home [data-home-panel="people"] .elm-public-feed, .public-home [data-home-panel="discover"] .elm-public-feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.public-home [data-home-panel="people"] .elm-public-post { margin: 0; }

.public-home__live-preview { overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--ef-radius); background: var(--ef-ink); }
.public-home__live-preview iframe { width: 100%; height: 100%; border: 0; display: block; }
.public-home__live-hero { min-height: 200px; margin-top: 16px; background: radial-gradient(120% 120% at 20% 0%, #3b4b44, var(--ef-ink)); }
.public-home__live-actions { position: relative; margin-top: 12px; }
.public-home__grid-info, .public-home__support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.public-home__info-card, .public-home__support-card, .public-home__info-card-panel, .public-home__places-guide article, .public-home__place-card {
  display: block; padding: 20px; color: var(--ef-text); background: var(--ef-card); border: 1px solid var(--ef-line); border-radius: var(--ef-radius); text-decoration: none;
}
.public-home__info-card strong, .public-home__support-card strong, .public-home__place-card strong { display: block; margin-bottom: 6px; color: var(--ef-ink); font-size: 16px; font-weight: 650; }
.public-home__info-card p, .public-home__support-card p, .public-home__place-card p { margin: 0; font-size: 14px; line-height: 1.6; }
.public-home__support-actions, .public-home__utility-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.public-home__utility-links { margin-top: 24px; }
.public-home__notice { margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; background: var(--ef-sage); color: var(--ef-text); font-size: 14px; line-height: 1.55; }
.public-home__empty { display: grid; gap: 6px; padding: 24px; color: var(--ef-soft); background: transparent; border: 1px dashed #cfd2c9; border-radius: var(--ef-radius); font-size: 14px; }
.public-home__empty strong { color: var(--ef-ink); }
.public-home__empty a { color: var(--ef-green); font-weight: 600; }

.public-home__places-guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; margin: 0 0 24px; }
.public-home__places-guide h3 { margin: 12px 0 6px; font-size: 18px; }
.public-home__places-guide p { margin: 0; font-size: 14px; line-height: 1.6; }
.public-home__places-guide a { display: inline-block; margin-top: 10px; color: var(--ef-green); font-size: 14px; font-weight: 650; }
.public-home__places-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--ef-green); background: var(--ef-sage); }
.public-home__places-icon svg { width: 20px; height: 20px; }
.public-home__grid-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.public-home__place-card { transition: border-color .2s ease, transform .2s var(--ef-ease); }
.public-home__place-card:hover { border-color: var(--ef-sage-line); transform: translateY(-2px); }
.public-home__place-card small { display: block; margin-top: 10px; font-size: 12px; color: var(--ef-faint); }
.public-home__story-card { min-height: 260px; }
.public-home__story-media { position: absolute; inset: 0; z-index: -2; }
.public-home__story-media img { width: 100%; height: 100%; object-fit: cover; }
.public-home__story-body { position: relative; display: grid; gap: 4px; }
.public-home__story-meta { display: flex; gap: 10px; font-size: 12px; color: rgba(255, 255, 255, .8); }

.public-home__info-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.public-home__info-tab { min-height: 38px; padding: 0 15px; color: var(--ef-text); background: var(--ef-card); border: 1px solid var(--ef-line); border-radius: 999px; font: 600 13px/1 var(--ef-sans); cursor: pointer; }
.public-home__info-tab:is(.is-active, :hover, :focus-visible) { color: var(--ef-green); background: var(--ef-sage); border-color: var(--ef-sage-line); }
.public-home__info-pane { display: none; }
.public-home__info-pane.is-active { display: block; }
.public-home__info-card-panel { padding: clamp(20px, 3vw, 36px); }
.public-home__info-card-panel > strong { display: block; color: var(--ef-ink); font: 500 26px/1.2 var(--ef-serif); }
.public-home__legal-copy { max-width: 70ch; margin-top: 18px; color: var(--ef-text); font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.public-home__legal-copy :is(p, li) { color: inherit; font-size: inherit; line-height: inherit; }
.public-home__legal-copy :is(h1, h2, h3, h4) { color: var(--ef-ink); font-weight: 700; }
.public-home__legal-copy a { color: var(--ef-green-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Sign-in sheet ---------- */
.ef-sheet {
  width: min(440px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0;
  color: var(--ef-text); background: var(--ef-card); border: 0; box-shadow: -24px 0 60px -30px rgba(36, 43, 40, .45); overflow-y: auto; overscroll-behavior: contain;
}
.ef-sheet::backdrop { background: rgba(36, 43, 40, .34); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.ef-sheet[open] { animation: ef-sheet-in .32s var(--ef-ease); }
.ef-sheet[open]::backdrop { animation: ef-fade-in .32s ease; }
.ef-sheet.is-closing { animation: ef-sheet-out .18s ease-in forwards; }
.ef-sheet.is-closing::backdrop { animation: ef-fade-in .18s ease reverse forwards; }
@keyframes ef-sheet-in { from { transform: translateX(32px); opacity: 0; } }
@keyframes ef-sheet-out { to { transform: translateX(32px); opacity: 0; } }
@keyframes ef-fade-in { from { opacity: 0; } }
.ef-sheet .public-home__rail-card { padding: 20px 24px 32px; }
.ef-sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ef-sheet__head h2 { margin: 0; font-size: 16px; font-weight: 750; color: var(--ef-ink); }
.public-home__rail-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 22px; border-radius: 999px; background: #efeee8; }
.public-home__rail-tab { min-height: 38px; color: var(--ef-soft); background: transparent; border: 0; border-radius: 999px; font: 650 14px/1 var(--ef-sans); cursor: pointer; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.public-home__rail-tab.is-active { color: var(--ef-ink); background: var(--ef-card); box-shadow: 0 1px 3px rgba(36, 43, 40, .14); }
.public-home__auth-panel { display: none; }
.public-home__auth-panel.is-active { display: block; animation: ef-view-in .25s var(--ef-ease); }
.public-home__auth-panel h3 { margin: 0 0 4px; font: 500 28px/1.15 var(--ef-serif); }
.public-home__auth-copy { margin: 0 0 20px; font-size: 14px; }
.public-home__form { display: grid; gap: 8px; }
.public-home__form label { margin-top: 6px; color: var(--ef-ink); font-size: 13px; font-weight: 650; }
.public-home__input { width: 100%; min-height: 46px; box-sizing: border-box; padding: 0 14px; color: var(--ef-ink); background: #fff; border: 1px solid var(--ef-line); border-radius: 12px; font: 400 15px var(--ef-sans); transition: border-color .15s ease, box-shadow .15s ease; }
.public-home__input:focus { outline: none; border-color: var(--ef-green); box-shadow: 0 0 0 3px rgba(50, 94, 71, .16); }
.public-home__submit { min-height: 48px; margin-top: 12px; color: #fff; background: var(--ef-green); border: 0; border-radius: 999px; font: 650 15px/1 var(--ef-sans); cursor: pointer; transition: background-color .15s ease, transform .15s ease; }
.public-home__submit:hover { background: var(--ef-green-deep); }
.public-home__submit:active { transform: scale(.98); }
.public-home__form .public-home__secondary { justify-content: center; border: 0; background: transparent; color: var(--ef-green); }
.public-home__divider { display: flex; align-items: center; gap: 12px; margin: 10px 0 4px; color: var(--ef-faint); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.public-home__divider::before, .public-home__divider::after { content: ""; flex: 1; height: 1px; background: var(--ef-line); }
.public-home__check { display: flex; gap: 10px; align-items: flex-start; font-weight: 450 !important; color: var(--ef-text) !important; }
.public-home__check input { margin-top: 3px; accent-color: var(--ef-green); }
.public-home__alert.is-error { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #fbe9e7; color: #8a2b22; font-size: 14px; }
.public-home__approval { display: grid; gap: 6px; margin: 0 0 16px; padding: 16px; border-radius: 14px; background: var(--ef-sage); }
.public-home__approval-code { color: var(--ef-green); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.public-home__approval-status { font-size: 13px; color: var(--ef-soft); }
.public-home__form.is-waiting-approval { opacity: .5; pointer-events: none; }

/* ---------- Narrow screens ---------- */
@media (max-width: 960px) {
  .ef-hero { grid-template-columns: minmax(0, 1fr); padding-top: 28px; }
  .ef-deck__stack { height: 400px; }
  .ef-play { grid-template-columns: minmax(0, 1fr); }
  .ef-play__soon { grid-template-columns: 1fr 1fr; }
  .ef-duo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ef-hero__title { font-size: clamp(38px, 11vw, 48px); }
  .ef-deck__stack { height: 360px; }
  .ef-eliza { grid-template-columns: auto minmax(0, 1fr); padding: 20px; }
  .ef-eliza__portrait { width: 64px; height: 64px; }
  .ef-eliza__actions { grid-column: 1 / -1; }
  .ef-section__head { flex-wrap: wrap; align-items: flex-end; }
  .ef-shelf-nav .ef-round { display: none; }
  .ef-shelf { grid-auto-columns: 78%; }
  .ef-play { padding: 10px; border-radius: 22px; }
  .ef-play__feature { min-height: 420px; }
  .ef-play__copy { padding: 22px; }
  .ef-play__soon { grid-template-columns: minmax(0, 1fr); }
  .public-home [data-home-panel="people"] .elm-public-feed, .public-home [data-home-panel="discover"] .elm-public-feed { grid-template-columns: minmax(0, 1fr); }
  .ef-sheet { width: 100vw; height: auto; max-height: 92dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; box-shadow: 0 -20px 50px -30px rgba(36, 43, 40, .5); }
  .ef-sheet[open] { animation-name: ef-sheet-up; }
  .ef-sheet.is-closing { animation-name: ef-sheet-down; }
  .ef-sheet .public-home__rail-card { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  @keyframes ef-sheet-up { from { transform: translateY(40px); opacity: 0; } }
  @keyframes ef-sheet-down { to { transform: translateY(40px); opacity: 0; } }
}

@media (prefers-reduced-motion: reduce) {
  .guest-body *, .guest-body *::before, .guest-body *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Get the app ---------- */
.ef-get { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 6vw, 80px); align-items: center; padding: clamp(32px, 7vw, 88px) 0 0; }
.ef-get__stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.ef-store { display: flex; align-items: center; gap: 14px; min-width: 240px; padding: 14px 20px; color: #fff; background: var(--ef-ink); border-radius: 18px; text-decoration: none; transition: transform .2s var(--ef-ease), box-shadow .2s ease; }
.ef-store:hover { transform: translateY(-2px); box-shadow: var(--ef-lift); }
.ef-store__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .1); }
.ef-store > span:last-child { display: grid; line-height: 1.2; }
.ef-store small { color: rgba(255, 255, 255, .7) !important; font-size: 11px; }
.ef-store strong { font-size: 18px; }
.ef-store em { color: rgba(255, 255, 255, .7); font-size: 12px; font-style: normal; }
.ef-get__web { margin: 22px 0 0; font-size: 14px; }
.ef-get__points { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ef-line); }
.ef-get__points li { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--ef-line); }
.ef-get__points strong { color: var(--ef-ink); font-size: 15px; }
.ef-get__points span { color: var(--ef-soft); font-size: 14px; line-height: 1.5; }
@media (max-width: 860px) { .ef-get { grid-template-columns: minmax(0, 1fr); } .ef-store { flex: 1 1 100%; } }

/* =====================================================================
   Signed-in shell: same language as the guest pages.
   ===================================================================== */
.site-body { background: var(--ef-paper); color: var(--ef-text); font-family: var(--ef-sans); }
.site-body .hub-panel { border: 1px solid var(--ef-line); border-radius: var(--ef-radius); background: var(--ef-card); box-shadow: none; }
.site-body .hub-rail__link { position: relative; border-radius: 12px; color: var(--ef-text); font-weight: 600; transition: background-color .15s ease, color .15s ease; }
.site-body .hub-rail__link:hover { background: rgba(36, 43, 40, .045); color: var(--ef-ink); }
.site-body .hub-rail__link.is-active { background: var(--ef-sage); color: var(--ef-ink); }
.site-body .hub-rail__link.is-active::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--ef-stripe); }
.site-body .hub-rail__link.is-active .hub-rail__icon { color: var(--ef-green); }
.site-body .hub-panel__summary strong { color: var(--ef-ink); font-weight: 700; }
.site-body .hub-panel__summary small { color: var(--ef-soft); text-transform: none; letter-spacing: 0; font-weight: 450; }

/* Page titles read like the public site. */
.site-body :is(.feature-head h1, .hub-main-column > header h1, .discover-hero h1, .account-head h1, .messages-list-head h1, .live-workspace-heading h1) {
  font-family: var(--ef-serif); font-weight: 500; letter-spacing: -.02em; color: var(--ef-ink);
}
.site-body .feature-head p { color: var(--ef-soft); }

.site-body .hub-composer { border-radius: var(--ef-radius); border-color: var(--ef-line); background: var(--ef-card); box-shadow: none; }
.site-body .hub-composer__input { border-radius: 12px; border-color: var(--ef-line); transition: border-color .15s ease, box-shadow .15s ease; }
.site-body .hub-composer__input:focus { outline: none; border-color: var(--ef-green); box-shadow: 0 0 0 3px rgba(50, 94, 71, .14); }
.site-body .hub-composer__submit { border-radius: 999px; background: var(--ef-green); border-color: var(--ef-green); color: #fff; }
.site-body .hub-composer__submit:hover { background: var(--ef-green-deep); }
.site-body .elm-public-post, .site-body .hub-feed-card { border-radius: var(--ef-radius); border-color: var(--ef-line); box-shadow: none; }
.site-body .elm-post-action { border-radius: 999px; transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
.site-body .elm-post-action:active { transform: scale(.97); }

/* Play card in the right rail */
.ef-rail-play { position: relative; display: grid; align-content: end; min-height: 150px; overflow: hidden; margin: 0 0 14px; border-radius: var(--ef-radius); background: #1a201d; color: #fff; text-decoration: none; isolation: isolate; }
.ef-rail-play img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ef-ease); }
.ef-rail-play::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(26, 32, 29, 0) 20%, rgba(26, 32, 29, .9)); }
.ef-rail-play:hover img { transform: scale(1.04); }
.ef-rail-play > span { display: grid; gap: 1px; padding: 14px 16px; }
.ef-rail-play small { color: #b9c9bd !important; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ef-rail-play strong { color: #fff; font-size: 18px; letter-spacing: .04em; }
.ef-rail-play em { color: #c9d0ca; font-size: 12px; font-style: normal; }

/* Guests on app-shell pages (live) get the public header. */
.site-body .site-shell > .wrap > .guest-public__topbar { margin-bottom: 8px; }
/* Guest live: the header is the navigation, so the stage takes the left column too. */
body.site-body.guest-body.page-live-workspace .live-workspace { grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); }
body.site-body.guest-body.page-live-workspace [data-live-network-left]:empty { display: none; }
/* A video waiting for its poster reads as a video, not an empty white box. */
.site-body .hub-feed-card video, .site-body .elm-public-post video { background: #1d2320; }
/* Approval card on the stand-alone sign-in page: readable on the light card. */
.guest-body .guest-approval-card { display: grid; gap: 6px; margin: 0 0 16px; padding: 16px 18px; border: 1px solid var(--ef-sage-line); border-radius: 14px; background: var(--ef-sage); color: var(--ef-text); box-shadow: none; }
.guest-body .guest-approval-card .guest-signed-in-label { color: var(--ef-green); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.guest-body .guest-approval-card .guest-signed-in-pin { color: var(--ef-ink); font-size: 20px; font-weight: 700; }
.guest-body .guest-approval-card p { margin: 0; color: var(--ef-text); font-size: 14px; line-height: 1.55; }
.guest-body .guest-approval-card .guest-approval-status { margin-top: 6px; padding: 8px 12px; border-radius: 999px; background: var(--ef-card); color: var(--ef-soft); font-size: 13px; }
.guest-body .guest-approval-pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--ef-green); animation: ef-pulse-dot 1.6s ease-in-out infinite; }
@keyframes ef-pulse-dot { 50% { opacity: .35; transform: scale(.8); } }
.guest-body form[aria-busy="true"] [type="submit"] { opacity: .7; cursor: progress; }

/* ---------- Members: same header, personal controls ---------- */
.site-topbar-wrap { position: sticky; top: 0; z-index: 60; }
.guest-public__topbar.is-member .site-header-search { position: relative; width: clamp(150px, 16vw, 230px); transition: width .25s var(--ef-ease); }
.guest-public__topbar.is-member .site-header-search:focus-within { width: clamp(200px, 24vw, 340px); }
.guest-public__topbar.is-member .site-search-form { position: relative; margin: 0; }
.guest-public__topbar.is-member .site-search-icon { position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--ef-soft); pointer-events: none; }
.guest-public__topbar.is-member .site-search-icon svg { width: 17px; height: 17px; }
.guest-public__topbar.is-member .site-search-input { width: 100%; min-height: 38px; box-sizing: border-box; padding: 0 14px 0 36px; color: var(--ef-ink); background: var(--ef-card); border: 1px solid var(--ef-line); border-radius: 999px; font: 400 14px var(--ef-sans); transition: border-color .15s ease, box-shadow .15s ease; }
.guest-public__topbar.is-member .site-search-input:focus { outline: none; border-color: var(--ef-green); box-shadow: 0 0 0 3px rgba(50, 94, 71, .14); }
.guest-public__topbar.is-member .site-search-results { left: auto; right: 0; width: min(420px, 90vw); }
.guest-public__topbar.is-member .guest-public__top-btn--icon { position: relative; }
.guest-public__topbar.is-member .site-notifications { position: relative; }
.guest-public__topbar.is-member .site-notifications-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 80; }
.guest-public__topbar.is-member .site-user { position: relative; margin-left: 4px; }
.guest-public__topbar.is-member .site-user-trigger { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: var(--ef-sage); cursor: pointer; list-style: none; transition: box-shadow .15s ease; }
.guest-public__topbar.is-member .site-user-trigger::-webkit-details-marker { display: none; }
.guest-public__topbar.is-member .site-user[open] .site-user-trigger, .guest-public__topbar.is-member .site-user-trigger:hover { box-shadow: 0 0 0 2px var(--ef-card), 0 0 0 4px var(--ef-green); }
.guest-public__topbar.is-member .site-user-avatar { display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; border-radius: 50%; color: var(--ef-green); font-weight: 700; }
.guest-public__topbar.is-member .site-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.guest-public__topbar.is-member .site-user-dropdown { position: absolute; right: 0; top: calc(100% + 10px); z-index: 80; min-width: 220px; padding: 6px; border: 1px solid var(--ef-line); border-radius: 14px; background: var(--ef-card); box-shadow: var(--ef-lift); animation: ef-view-in .18s var(--ef-ease); }
.guest-public__topbar.is-member .site-user-dropdown > a, .guest-public__topbar.is-member .site-user-dropdown > button { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--ef-text); font: 500 14px var(--ef-sans); text-align: left; text-decoration: none; cursor: pointer; }
.guest-public__topbar.is-member .site-user-dropdown > a:hover, .guest-public__topbar.is-member .site-user-dropdown > button:hover { background: var(--ef-sage); color: var(--ef-ink); }
.guest-public__topbar.is-member .site-user-dropdown .is-logout { margin-top: 4px; border-top: 1px solid var(--ef-line-soft); border-radius: 0 0 9px 9px; color: #9b3a33; }
.guest-public__topbar.is-member .site-user-dropdown .elm-language-picker { margin: 4px 6px; }
.guest-public__nav .nav-activity-badge { display: inline-grid; place-items: center; min-width: 16px; height: 16px; margin-left: 6px; padding: 0 4px; box-sizing: border-box; border-radius: 8px; background: var(--ef-green); color: #fff; font-size: 10px; font-weight: 700; line-height: 1; }
.guest-public__nav .nav-activity-badge[hidden] { display: none; }
@media (max-width: 1180px) { .guest-public__topbar.is-member .guest-public__brand-copy { display: none; } }
/* Phones: members navigate with the bottom tab bar, so the header stays one row. */
@media (max-width: 760px) {
  .guest-public__topbar.is-member .guest-public__nav { display: none; }
  .guest-public__topbar.is-member .site-header-search { display: none; }
  .guest-public__topbar.is-member .guest-public__brand-copy { display: grid; }
}
.ef-playpage { padding-bottom: 8px; }
.site-body .ef-playpage { max-width: 1380px; margin: 0 auto; }
.guest-public__topbar.is-member .guest-public__top-btn--icon .nav-activity-badge { position: absolute; top: 1px; right: -2px; margin: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--ef-green); color: #fff; font-size: 10px; font-weight: 700; display: inline-grid; place-items: center; box-shadow: 0 0 0 2px var(--ef-paper); }
.guest-public__topbar.is-member .guest-public__top-btn--icon .nav-activity-badge[hidden] { display: none; }
.guest-public__topbar.is-member .site-chat-unread-dot { display: none; }
.guest-public__topbar.is-member .site-notification-badge { top: 1px; right: -2px; box-shadow: 0 0 0 2px var(--ef-paper); }
.site-body .ef-playpage { padding-inline: 0; }

/* ---------- Welcome (first-run community picker) ---------- */
.ef-welcome { max-width: 1380px; margin: 0 auto; padding: clamp(20px, 4vw, 40px) 0 120px; }
.ef-welcome__head { max-width: 62ch; margin-bottom: 28px; }
.ef-welcome__head h1 { margin: 0 0 10px; color: var(--ef-ink); font: 500 clamp(30px, 4vw, 46px)/1.08 var(--ef-serif); letter-spacing: -.02em; text-wrap: balance; }
.ef-welcome__head p { margin: 0; color: var(--ef-soft); font-size: 16px; line-height: 1.6; }
.ef-welcome__group { margin-top: 32px; }
.ef-welcome__group h2 { margin: 0 0 14px; color: var(--ef-ink); font: 500 24px/1.2 var(--ef-serif); }
.ef-welcome__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ef-pick { display: grid; overflow: hidden; background: var(--ef-card); border: 1px solid var(--ef-line); border-radius: var(--ef-radius); transition: border-color .2s ease, box-shadow .2s ease, transform .2s var(--ef-ease); }
.ef-pick.is-joined { border-color: var(--ef-green); box-shadow: 0 0 0 1px var(--ef-green); }
.ef-pick__body { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.ef-pick__body > span { display: grid; min-width: 0; }
.ef-pick__body strong { color: var(--ef-ink); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ef-pick__body small { color: var(--ef-soft); font-size: 12px; }
.ef-pick__btn { min-height: 36px; padding: 0 14px; font-size: 13px; flex: 0 0 auto; }
.ef-pick__joined { display: none; }
.ef-pick__btn[aria-pressed="true"] { color: #fff; background: var(--ef-green); border-color: var(--ef-green); }
.ef-pick__btn[aria-pressed="true"] .ef-pick__join { display: none; }
.ef-pick__btn[aria-pressed="true"] .ef-pick__joined { display: inline; }
.ef-welcome__people { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.ef-pick--person { justify-items: center; gap: 8px; padding: 16px 12px; text-align: center; }
.ef-pick--person strong { max-width: 100%; overflow: hidden; color: var(--ef-ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.ef-welcome__bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  padding: 12px max(16px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--ef-paper) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--ef-line);
}
.ef-welcome__status { margin: 0; color: var(--ef-text); font-size: 14px; font-weight: 600; }
.page-welcome .site-mobile-tabbar { display: none; }
.site-body .ef-rail-cta { display: flex; width: 100%; margin-top: 12px; min-height: 40px; font-size: 14px; }
.elm-post-share-out { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ef-line-soft); }
.elm-post-share-out .elm-post-action { text-decoration: none; }
.community-context__share { display: flex; justify-content: center; margin-top: 8px; }
.community-context__share .elm-post-action { width: 100%; justify-content: center; }
/* Who can see a post, from the API's explicit audience. */
.elm-post-audience { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--ef-sage); color: var(--ef-green); font-size: 11px; font-weight: 650; vertical-align: middle; }
.elm-post-audience svg { width: 12px; height: 12px; }
.elm-post-audience.is-only_me { background: #f1efe9; color: var(--ef-soft); }
/* Exact ELM ID found in search: a personal card with a friend request. */
.ef-elmid-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 18px; padding: 18px 20px; border: 1px solid var(--ef-sage-line); border-radius: var(--ef-radius); background: var(--ef-sage); }
.ef-elmid-card__copy { display: grid; gap: 2px; flex: 1 1 220px; min-width: 0; }
.ef-elmid-card__copy small { color: var(--ef-green); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.ef-elmid-card__copy strong { color: var(--ef-ink); font-size: 18px; }
.ef-elmid-card__copy > span { color: var(--ef-soft); font-size: 13px; }
/* Friend profile: the one-way link from a personal profile to the public channel. */
.profile-public-channel { display: flex; align-items: center; gap: 12px; margin: 14px 20px 4px; padding: 12px 16px; border: 1px solid var(--ef-sage-line); border-radius: var(--ef-radius); background: var(--ef-sage); color: var(--ef-ink); text-decoration: none; }
.profile-public-channel:hover { border-color: var(--ef-green); }
.profile-public-channel > span:last-child { display: grid; gap: 2px; min-width: 0; color: var(--ef-soft); font-size: 13px; }
.profile-public-channel strong { color: var(--ef-ink); font-size: 16px; }
.profile-public-channel small { color: var(--ef-green); font-size: 12px; font-weight: 650; }
.ef-friend-status { margin: 0; color: var(--ef-green); font-size: 14px; font-weight: 650; }
/* People: one box filters friends or adds by ELM ID; the invite line sits under it. */
.people-add-id { display: flex; align-items: center; gap: 10px; margin: -6px 0 14px; padding: 12px 16px; border: 1px solid var(--ef-sage-line); border-radius: var(--ef-radius); background: var(--ef-sage); color: var(--ef-ink); text-decoration: none; font-size: 15px; }
.people-add-id[hidden] { display: none; }
.people-add-id svg { width: 18px; height: 18px; color: var(--ef-green); fill: none; stroke: currentColor; stroke-width: 1.8; }
.people-add-id > span:last-child { margin-left: auto; color: var(--ef-green); font-weight: 700; }
.people-add-id strong { letter-spacing: .06em; }
.people-invite { margin: -6px 0 18px; color: var(--ef-soft); font-size: 13px; }
.people-invite strong { color: var(--ef-ink); letter-spacing: .06em; }
.people-invite button { padding: 0; border: 0; background: none; color: var(--ef-green); font: inherit; font-weight: 650; cursor: pointer; }
.people-invite button:hover { text-decoration: underline; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; display: block !important; }
.site-body .community-shortcuts { display: none; }

/* ---------- Invite (friend or chat) ---------- */
.ef-invite { display: grid; place-items: start center; padding: clamp(28px, 6vw, 72px) 0 0; }
.ef-invite__card { display: grid; justify-items: center; gap: 10px; width: min(560px, 100%); box-sizing: border-box; padding: clamp(24px, 4vw, 40px); text-align: center; background: var(--ef-card); border: 1px solid var(--ef-line); border-radius: 24px; box-shadow: var(--ef-lift); }
.ef-invite__card .ef-kicker { margin-bottom: 4px; }
.ef-invite__avatar { display: grid; place-items: center; width: 104px; height: 104px; overflow: hidden; padding: 3px; border-radius: 50%; background: var(--ef-stripe); color: var(--ef-green); font: 600 38px var(--ef-serif); }
.ef-invite__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid var(--ef-card); box-sizing: border-box; }
.ef-invite__avatar:not(:has(img)) { background: var(--ef-sage); box-shadow: inset 0 0 0 3px var(--ef-card), 0 0 0 3px #9a6bff55; }
.ef-invite h1 { margin: 6px 0 0; color: var(--ef-ink); font: 500 clamp(30px, 4vw, 40px)/1.1 var(--ef-serif); letter-spacing: -.015em; text-wrap: balance; }
.ef-invite__meta { margin: 0; color: var(--ef-soft); font-size: 14px; }
.ef-invite__meta strong { color: var(--ef-ink); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.ef-invite__bio { max-width: 42ch; margin: 4px 0 0; color: var(--ef-text); font-size: 15px; line-height: 1.6; }
.ef-invite__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 14px; }
.ef-invite__actions form { margin: 0; }
.ef-invite__actions .ef-textlink { border: 0; background: none; cursor: pointer; font-family: var(--ef-sans); }
.ef-invite__note { width: 100%; margin: 0; color: var(--ef-text); font-size: 14px; }
.ef-invite__privacy { display: flex; align-items: flex-start; gap: 8px; max-width: 46ch; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--ef-line-soft); color: var(--ef-soft); font-size: 13px; line-height: 1.5; text-align: left; }
.ef-invite__privacy svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; color: var(--ef-green); }

/* Section tabs: Home (Feed, Friends) and Explore (For you, Communities, Live, Places). */
.ef-tabs { display: flex; gap: 4px; margin: 12px 0 18px; padding: 4px; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--ef-line); border-radius: 999px; background: var(--ef-card); width: max-content; max-width: 100%; }
.ef-tabs::-webkit-scrollbar { display: none; }
.ef-tabs a { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 0 16px; border-radius: 999px; color: var(--ef-soft); font-size: 14px; font-weight: 620; text-decoration: none; white-space: nowrap; transition: color .15s ease, background-color .15s ease; }
.ef-tabs a:hover { color: var(--ef-ink); background: rgba(36, 43, 40, .05); }
.ef-tabs a.is-active { color: #fff; background: var(--ef-green); }
.ef-tabs a.is-active .nav-activity-badge { background: #fff; color: var(--ef-green); }
/* Order toggle inside a section header (Mix / Newest). */
.ef-sort { display: inline-flex; gap: 2px; margin-top: 8px; padding: 3px; border-radius: 999px; background: var(--ef-line-soft); }
.ef-sort a { padding: 4px 12px; border-radius: 999px; color: var(--ef-soft); font-size: 12.5px; font-weight: 650; text-decoration: none; }
.ef-sort a[aria-current] { background: var(--ef-card); color: var(--ef-ink); box-shadow: 0 1px 2px rgba(36, 43, 40, .1); }

/* Directory pages (Communities): one header row, then sections. */
.ef-dir-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 22px; }
.ef-dir-head h1 { margin: 0 0 4px; color: var(--ef-ink); font: 500 clamp(28px, 3vw, 36px)/1.1 var(--ef-serif); letter-spacing: -.01em; }
.ef-dir-head p { margin: 0; color: var(--ef-soft); font-size: 14px; }
.ef-dir-head__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ef-dir-pin { display: flex; gap: 6px; }
.ef-dir-pin input { width: 130px; min-height: 40px; padding: 0 12px; border: 1px solid var(--ef-line); border-radius: 999px; background: var(--ef-card); color: var(--ef-ink); font: inherit; font-size: 14px; text-transform: uppercase; }
.ef-dir-pin input::placeholder { text-transform: none; color: var(--ef-faint); }
.ef-dir-error { display: grid; gap: 10px; justify-items: start; padding: 22px; border: 1px solid var(--ef-line); border-radius: var(--ef-radius); background: var(--ef-card); }
.ef-dir-error h2 { margin: 0; color: var(--ef-ink); font-size: 18px; }
.ef-dir-error p { margin: 0; color: var(--ef-soft); }

/* Page changes keep the header and side rails still and only fade the middle. */
@view-transition { navigation: auto; }
.guest-public__topbar { view-transition-name: ef-top; }
.hub-left-column { view-transition-name: ef-left; }
.hub-right-column { view-transition-name: ef-right; }
.site-mobile-tabbar { view-transition-name: ef-tabbar; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .16s; }
::view-transition-group(ef-top), ::view-transition-group(ef-left), ::view-transition-group(ef-right), ::view-transition-group(ef-tabbar) { animation-duration: 0s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Account: section menu on the left, one wide column of cards. */
.site-body .hub-shell.ef-account { grid-template-columns: 220px minmax(0, 1fr); max-width: 1380px; margin-inline: auto; }
.ef-acc-nav { position: sticky; top: 88px; align-self: start; display: grid; gap: 14px; }
.ef-acc-nav nav { display: grid; gap: 2px; padding: 8px; border: 1px solid var(--ef-line); border-radius: var(--ef-radius); background: var(--ef-card); }
.ef-acc-nav nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--ef-soft); font-size: 14.5px; font-weight: 620; text-decoration: none; }
.ef-acc-nav nav a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.ef-acc-nav nav a:hover { background: rgba(36, 43, 40, .05); color: var(--ef-ink); }
.ef-acc-nav nav a[aria-current] { background: var(--ef-sage); color: var(--ef-green); }
.ef-acc-nav__feedback { padding: 0 12px; color: var(--ef-soft); font-size: 13px; text-decoration: none; }
.ef-acc-nav__feedback:hover { color: var(--ef-ink); text-decoration: underline; }
.ef-acc-main { display: grid; gap: 18px; align-content: start; min-width: 0; }
.ef-acc-head { margin: 4px 0 2px; }
.ef-acc-head h1 { margin: 0 0 4px; color: var(--ef-ink); font: 500 clamp(28px, 3vw, 36px)/1.1 var(--ef-serif); }
.ef-acc-head p { margin: 0; color: var(--ef-soft); font-size: 14.5px; max-width: 60ch; }
.ef-acc-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ef-acc-card { padding: 20px 22px; border: 1px solid var(--ef-line); border-radius: var(--ef-radius); background: var(--ef-card); }
.ef-acc-card > h2, .ef-chart header h2 { margin: 0 0 12px; color: var(--ef-ink); font-size: 17px; }
.ef-acc-note { margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--ef-sage); color: var(--ef-green); font-size: 14px; }
.ef-acc-note.is-error { background: #fbeeea; color: #8a3b2a; }
.ef-acc-empty { margin: 0; color: var(--ef-soft); font-size: 14px; line-height: 1.55; }
/* Overview */
.ef-acc-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px 22px; padding: 24px; border-radius: var(--ef-radius); background: var(--ef-green); color: #fff; position: relative; overflow: hidden; }
.ef-acc-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--ef-stripe); }
.ef-acc-score small, .ef-acc-rank small { display: block; opacity: .8; font-size: 13px; font-weight: 650; letter-spacing: .02em; }
.ef-acc-score strong { display: block; font: 600 64px/1 var(--ef-serif); letter-spacing: -.02em; margin: 6px 0 8px; }
.ef-acc-score p { margin: 10px 0 0; opacity: .82; font-size: 13.5px; line-height: 1.5; max-width: 44ch; }
.ef-acc-rank { align-self: start; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .12); }
.ef-acc-rank strong { display: block; font-size: 24px; margin-top: 4px; }
.ef-acc-rank span { opacity: .8; font-size: 13px; }
.ef-acc-signals { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ef-acc-signals li { display: inline-flex; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 13px; font-weight: 600; }
.ef-acc-signals li span { opacity: .75; font-weight: 500; }
.ef-acc-hero .ef-acc-trend { color: #fff; background: rgba(255, 255, 255, .16); }
.ef-acc-trend { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--ef-line-soft); color: var(--ef-soft); font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.ef-acc-trend.is-up { background: #e3f1e6; color: #24683f; }
.ef-acc-trend.is-down { background: #fbeeea; color: #8a3b2a; }
.ef-acc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0; }
.ef-acc-tiles > div { padding: 16px 18px; border: 1px solid var(--ef-line); border-radius: var(--ef-radius); background: var(--ef-card); }
.ef-acc-tiles dt { color: var(--ef-soft); font-size: 13px; font-weight: 600; }
.ef-acc-tiles dd { margin: 6px 0 0; color: var(--ef-ink); font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.ef-acc-tiles small { color: var(--ef-green); font-size: 12.5px; font-weight: 650; }
.ef-acc-tiles--soft > div { background: transparent; }
.ef-acc-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.ef-chart header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ef-chart header h2 { margin: 0; }
.ef-chart__sub { margin: 4px 0 14px; color: var(--ef-soft); font-size: 13px; }
.ef-chart__bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; margin: 0; padding: 0 0 2px; list-style: none; border-bottom: 1px solid var(--ef-line); }
.ef-chart__bars li { flex: 1 1 0; min-width: 2px; height: calc(var(--h) * 1%); min-height: 2px; border-radius: 4px 4px 1px 1px; background: var(--ef-sage-line); transition: background-color .15s ease; }
.ef-chart__bars li:nth-last-child(-n+7) { background: var(--ef-green); }
.ef-chart__bars li:hover { background: #9a6bff; }
/* Your spaces */
.ef-acc-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ef-acc-list li, .ef-acc-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--ef-line-soft); }
.ef-acc-list li:first-child { border-top: 0; }
.ef-acc-list li > span, .ef-acc-row > span { display: grid; gap: 2px; margin-right: auto; min-width: 0; }
.ef-acc-list strong, .ef-acc-row strong { color: var(--ef-ink); font-size: 15px; }
.ef-acc-list small, .ef-acc-row small { color: var(--ef-soft); font-size: 13px; }
.ef-acc-list .ef-btn, .ef-acc-row .ef-btn { min-height: 36px; font-size: 13.5px; }
.ef-acc-row form { margin: 0; }
.ef-acc-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 6px; }
.ef-acc-figures dt { color: var(--ef-soft); font-size: 13px; font-weight: 600; }
.ef-acc-figures dd { margin: 4px 0 0; color: var(--ef-ink); font-size: 24px; font-weight: 700; }
.ef-acc-figures small { color: var(--ef-soft); font-size: 12.5px; }
/* Security */
.ef-acc-id { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ef-acc-id small { display: block; color: var(--ef-soft); font-size: 13px; }
.ef-acc-id strong { color: var(--ef-ink); font-size: 22px; letter-spacing: .08em; }
.ef-acc-stack { display: grid; gap: 10px; }
.ef-acc-stack > details { padding: 4px 22px; border: 1px solid var(--ef-line); border-radius: var(--ef-radius); background: var(--ef-card); }
.ef-acc-stack > details > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; cursor: pointer; list-style: none; }
.ef-acc-stack > details > summary::-webkit-details-marker { display: none; }
.ef-acc-stack > details > summary span { display: grid; gap: 2px; }
.ef-acc-stack > details > summary b { color: var(--ef-ink); font-size: 15.5px; }
.ef-acc-stack > details > summary small { color: var(--ef-soft); font-size: 13px; }
.ef-acc-stack > details > summary em { color: var(--ef-green); font-style: normal; font-size: 13px; font-weight: 650; }
.ef-acc-stack > details[open] > summary em { visibility: hidden; }
.ef-acc-stack > details > :not(summary) { margin-bottom: 14px; }
/* Profile: identities, tap-to-change preview, save bar */
.profile-identities { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile-identities a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--ef-line); border-radius: var(--ef-radius); background: var(--ef-card); color: var(--ef-ink); text-decoration: none; }
.profile-identities a[aria-current] { border-color: var(--ef-green); box-shadow: 0 0 0 3px var(--ef-sage); }
.profile-identities a > span:last-child { display: grid; min-width: 0; }
.profile-identities small { color: var(--ef-soft); font-size: 12.5px; font-weight: 650; }
.profile-identities strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15.5px; }
.ef-account .profile-editor-cover { position: relative; margin: 6px 0 58px; padding: 0; }
.ef-account .profile-editor-banner { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 1; overflow: hidden; border-radius: var(--ef-radius); background: var(--ef-sage); color: var(--ef-soft); font-size: 14px; }
.ef-account .profile-editor-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-media-change { position: absolute; right: 12px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: rgba(20, 24, 22, .7); color: #fff; font-size: 13px; font-weight: 650; cursor: pointer; }
.ef-account .profile-media-change, .ef-account .profile-media-change span { color: #fff; }
.ef-account .profile-media-change { display: inline-flex !important; flex-direction: row; }
.ef-account .profile-editor-avatar { border: 4px solid var(--ef-card) !important; }
.ef-account .profile-editor-avatar > span:first-child { position: static; font-size: inherit; }
.profile-media-change svg, .profile-avatar-badge svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.profile-media-change small { display: none; }
.ef-account .profile-editor-banner .profile-banner-hint { position: absolute; left: 12px; bottom: 12px; z-index: 1; padding: 8px 12px; border: 0; border-radius: 999px; background: rgba(20, 24, 22, .55); color: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.ef-account .profile-editor-avatar { --elm-avatar-size: 104px; position: absolute; left: 24px; bottom: -48px; display: grid; place-items: center; width: 104px; height: 104px; overflow: hidden; border: 4px solid var(--ef-card); border-radius: 50%; background: var(--ef-sage); color: var(--ef-green); font-size: 38px; font-weight: 700; cursor: pointer; box-shadow: var(--ef-lift); }
.ef-account .profile-editor-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-badge { position: absolute; right: 6px; bottom: 6px; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ef-green); color: #fff; }
.ef-account .profile-editor-avatar:hover, .profile-media-change:hover { filter: brightness(1.06); }
.ef-savebar { position: sticky; bottom: 12px; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--ef-line); border-radius: 16px; background: rgba(255, 254, 251, .96); box-shadow: var(--ef-lift); }
[data-profile-workspace]:not(.is-dirty) .ef-savebar { position: static; box-shadow: none; background: transparent; border-color: transparent; padding-inline: 0; }
@media (max-width: 760px) {
  .site-body .hub-shell.ef-account { grid-template-columns: minmax(0, 1fr); }
  /* Phones hide the side rails; the Account menu stays, as a scrolling row. */
  .site-body .hub-shell.ef-account > .ef-acc-nav { display: block !important; padding: 0 !important; margin: 0 !important; position: static !important; height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important; }
  .ef-acc-nav nav { display: flex; overflow-x: auto; scrollbar-width: none; padding: 4px; }
  .ef-acc-nav nav a { flex: none; padding: 8px 12px; }
  .ef-acc-nav__feedback { display: none; }
  .ef-acc-hero { grid-template-columns: 1fr; padding: 20px; }
  .ef-acc-score strong { font-size: 52px; }
  .profile-identities { grid-template-columns: 1fr; }
  .ef-account .profile-editor-avatar { --elm-avatar-size: 84px; width: 84px; height: 84px; bottom: -40px; left: 16px; }
}

.ef-acc-stack .account-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--ef-line-soft); }
.ef-acc-stack .account-row > div { flex: 1; min-width: 0; }
.ef-acc-stack .account-row strong { color: var(--ef-ink); }
.ef-acc-stack .account-row span, .ef-acc-stack .account-event span { display: block; color: var(--ef-soft); font-size: 13px; }
.ef-acc-stack .account-event { padding: 10px 0; border-top: 1px solid var(--ef-line-soft); }
.ef-acc-stack .account-empty, .ef-acc-stack p { color: var(--ef-soft); font-size: 14px; }
.ef-acc-stack .account-oauth-actions, .ef-acc-stack .account-inline-form { display: flex; flex-wrap: wrap; gap: 8px; }
.ef-acc-stack .account-inline-form input { flex: 1 1 160px; min-height: 40px; padding: 0 12px; border: 1px solid var(--ef-line); border-radius: 10px; font: inherit; }
.ef-acc-stack .account-ghost-btn, .ef-acc-stack .account-primary-btn, .ef-acc-stack .account-danger-btn { min-height: 36px; padding: 0 14px; border: 1px solid var(--ef-line); border-radius: 999px; background: var(--ef-card); color: var(--ef-ink); font: inherit; font-size: 13.5px; font-weight: 650; text-decoration: none; display: inline-flex; align-items: center; cursor: pointer; }
.ef-acc-stack .account-primary-btn { background: var(--ef-green); border-color: var(--ef-green); color: #fff; }
.ef-acc-stack .account-danger-btn { color: #8a3b2a; }
.ef-acc-stack .account-recovery-card { display: flex; gap: 14px; align-items: center; }
.ef-acc-stack .account-recovery-qr { width: 140px; height: 140px; border-radius: 10px; }
.ef-account .profile-workspace { max-width: none; display: grid; gap: 16px; }
.ef-account .profile-visibility-note h2 { margin: 6px 0 2px; }
.ef-account .profile-visibility-note p { margin: 0; }

/* Report an issue: pick an area, quick checks, then the form. */
.ef-issue-back { display: inline-flex; margin-bottom: 10px; }
.ef-issue-areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.ef-issue-areas a { display: grid; gap: 4px; height: 100%; padding: 16px 18px; border: 1px solid var(--ef-line); border-radius: var(--ef-radius); background: var(--ef-card); color: var(--ef-ink); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.ef-issue-areas a:hover { border-color: var(--ef-green); box-shadow: 0 0 0 3px var(--ef-sage); }
.ef-issue-areas strong { font-size: 15.5px; }
.ef-issue-areas span { color: var(--ef-soft); font-size: 13.5px; line-height: 1.45; }
.ef-issue-checks { margin: 16px 0; padding: 16px 18px; border-radius: var(--ef-radius); background: var(--ef-sage); color: var(--ef-ink); }
.ef-issue-checks h2 { margin: 0 0 8px; font-size: 15.5px; }
.ef-issue-checks ul { margin: 0 0 10px; padding-left: 20px; line-height: 1.6; }
.ef-issue-checks a { color: var(--ef-green); font-weight: 650; }
.ef-issue-checks p { margin: 10px 0 0; color: var(--ef-soft); font-size: 13.5px; }

/* Communities home: a posts feed with a woven-in suggestion strip. */
.ef-cfeed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.ef-cfeed > * { min-width: 0; }
.ef-timeline:empty { display: none; }
.ef-cfeed__status { margin: 0; color: var(--ef-soft); font-size: 14px; }
.ef-cfeed__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ef-suggest { padding: 18px 20px; border: 1px solid var(--ef-sage-line); border-radius: var(--ef-radius); background: var(--ef-sage); }
.ef-suggest header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ef-suggest h2 { margin: 0; color: var(--ef-ink); font-size: 17px; }
.ef-suggest header a { color: var(--ef-green); font-size: 13.5px; font-weight: 650; text-decoration: none; }
.ef-suggest__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 230px); gap: 12px; margin: 0; padding: 0 0 4px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.ef-suggest__row > li { scroll-snap-align: start; }
.ef-suggest .ef-pick__body > a { display: grid; min-width: 0; color: inherit; text-decoration: none; }
.ef-suggest .ef-pick__body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Channel / community settings: readable fields and real switches. */
.space-admin-panel { padding: 22px !important; border-radius: var(--ef-radius) !important; }
.space-admin-panel h3 { font-size: 20px; }
.space-manage-form, .space-tab-form { display: grid; gap: 16px; }
.space-manage-form > label, .space-manage-grid > label, .space-tab-form > label, .space-manage-media > label { display: grid; gap: 6px; }
.space-manage-form label > span, .space-tab-form label > span { color: var(--ef-ink); font-size: 13.5px; font-weight: 650; }
.space-admin-panel input:not([type=checkbox]):not([type=hidden]):not([type=file]), .space-admin-panel select, .space-admin-panel textarea { width: 100%; min-height: 42px; box-sizing: border-box; padding: 9px 12px; border: 1px solid var(--ef-line); border-radius: 10px; background: #fff; color: var(--ef-ink); font: inherit; font-size: 14.5px; }
.space-admin-panel textarea { min-height: 84px; resize: vertical; }
.space-admin-panel input:focus, .space-admin-panel select:focus, .space-admin-panel textarea:focus { outline: none; border-color: var(--ef-green); box-shadow: 0 0 0 3px var(--ef-sage); }
.space-manage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.space-manage-checks { display: grid; gap: 2px; padding: 4px 16px; border: 1px solid var(--ef-line); border-radius: var(--ef-radius); background: var(--ef-card); }
.ef-switch { display: flex !important; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--ef-line-soft); cursor: pointer; }
.space-manage-checks .ef-switch:first-of-type { border-top: 0; }
.ef-switch > span { display: grid; gap: 2px; order: -1; }
.ef-switch strong { color: var(--ef-ink); font-size: 14.5px; }
.ef-switch small { color: var(--ef-soft); font-size: 13px; }
.site-body .space-admin-panel .space-manage-checks .ef-switch input, .ef-switch input { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 44px !important; height: 26px !important; min-height: 0 !important; margin: 0; padding: 0 !important; border: 0 !important; border-radius: 999px !important; background: var(--ef-line) !important; cursor: pointer; transition: background-color .15s ease; }
.ef-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .18s var(--ef-ease); }
.site-body .space-admin-panel .space-manage-checks .ef-switch input:checked, .ef-switch input:checked { background: var(--ef-green) !important; }
.ef-switch input:checked::after { transform: translateX(18px); }
.ef-switch input:focus-visible { outline: 2px solid var(--ef-green); outline-offset: 2px; }
.space-tab-admin { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ef-line); }
.space-tab-form.is-existing { padding: 14px 0; border-top: 1px solid var(--ef-line-soft); }
.site-body .space-admin-panel .space-manage-title-actions > span, .site-body .space-admin-panel .space-tab-admin .space-side-card-title > span { padding: 3px 10px; border-radius: 999px; background: var(--ef-sage) !important; color: var(--ef-green) !important; font-size: 12.5px; font-weight: 650; }
.ef-settings-identity { margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--ef-sage); color: var(--ef-ink); font-size: 14px; }
.ef-settings-identity a { color: var(--ef-green); font-weight: 650; }
.ef-invite__cover { display: block; margin: -8px -8px 6px; aspect-ratio: 3 / 1; overflow: hidden; border-radius: 12px; }
.ef-invite__cover img { width: 100%; height: 100%; object-fit: cover; }
.ef-invite-result { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ef-invite-result input { flex: 1 1 220px; }
.ef-feed-reason { margin: 0; padding: 6px 14px 0; color: var(--ef-soft); font-size: 12.5px; font-weight: 600; }
.ef-feed-reason::before { content: "· "; color: var(--ef-green); }
/* Explore: explicit interests */
.ef-interests { margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--ef-sage-line); border-radius: var(--ef-radius); background: var(--ef-sage); }
.ef-interests summary { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; cursor: pointer; list-style: none; color: var(--ef-ink); }
.ef-interests summary::-webkit-details-marker { display: none; }
.ef-interests summary span { color: var(--ef-soft); font-size: 13.5px; }
.ef-interests summary::after { content: "▾"; margin-left: auto; color: var(--ef-green); }
.ef-interests[open] summary::after { content: "▴"; }
.ef-interests__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; }
.ef-chip { min-height: 34px; padding: 0 14px; border: 1px solid var(--ef-line); border-radius: 999px; background: var(--ef-card); color: var(--ef-ink); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.ef-chip[aria-pressed="true"] { border-color: var(--ef-green); background: var(--ef-green); color: #fff; }
.ef-interests__note { margin: 6px 0 0; color: var(--ef-soft); font-size: 12.5px; }
/* Polls */
.ef-poll { margin: 10px 14px; padding: 12px 14px; border: 1px solid var(--ef-line); border-radius: 14px; background: var(--ef-card); }
.ef-poll__q { margin: 0 0 10px; color: var(--ef-ink); font-weight: 650; }
.ef-poll ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ef-poll__opt { display: block; width: 100%; min-height: 40px; padding: 8px 14px; border: 1px solid var(--ef-sage-line); border-radius: 999px; background: var(--ef-card); color: var(--ef-ink); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.ef-poll__opt:hover:not(.is-static) { border-color: var(--ef-green); background: var(--ef-sage); }
.ef-poll__opt.is-static { cursor: default; }
.ef-poll__bar { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; overflow: hidden; border-radius: 10px; background: var(--ef-line-soft); color: var(--ef-ink); font-size: 14px; }
.ef-poll__bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--pct); background: var(--ef-sage-line); }
.ef-poll__bar.is-mine::before { background: color-mix(in srgb, var(--ef-green) 28%, transparent); }
.ef-poll__bar > * { position: relative; }
.ef-poll__meta { margin: 8px 0 0; color: var(--ef-soft); font-size: 12.5px; }
.ef-poll__status { margin: 4px 0 0; color: #8a3b2a; font-size: 12.5px; }
.ef-poll__status:empty { display: none; }
.ef-poll-editor__options { display: grid; gap: 6px; }
.ef-poll-editor__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ef-poll-editor__days { display: flex !important; align-items: center; gap: 8px !important; }
.ef-poll-editor [data-ef-poll-add] { padding: 0; border: 0; background: none; color: var(--ef-green); font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; }
/* Community events */
.ef-events-box { margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--ef-line); border-radius: var(--ef-radius); background: var(--ef-card); }
.ef-events-box h3 { margin: 0 0 10px; font-size: 16px; color: var(--ef-ink); }
.ef-events { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ef-event { display: flex; gap: 14px; }
.ef-event__date { display: grid; place-items: center; flex: none; width: 54px; height: 58px; border-radius: 12px; background: var(--ef-sage); color: var(--ef-green); line-height: 1.05; }
.ef-event__date b { font-size: 22px; }
.ef-event__date span { font-size: 12px; font-weight: 700; text-transform: uppercase; }
.ef-event__body { display: grid; gap: 3px; min-width: 0; }
.ef-event__body strong { color: var(--ef-ink); }
.ef-event__body small, .ef-event__body p { margin: 0; color: var(--ef-soft); font-size: 13px; }
.ef-event__body a { color: var(--ef-green); font-size: 13px; font-weight: 650; }
.ef-event__rsvp { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ef-event-form { display: grid; gap: 10px; }
.ef-event-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 650; }
.ef-event-form input, .ef-event-form textarea { min-height: 38px; padding: 7px 10px; border: 1px solid var(--ef-line); border-radius: 10px; font: inherit; font-size: 14px; }
/* Play: MINDTRAP stats */
.ef-mt-box { margin: 22px 0 0; }
.ef-mt { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.ef-mt__me, .ef-mt__board { padding: 18px 20px; border: 1px solid var(--ef-line); border-radius: var(--ef-radius); background: var(--ef-card); }
.ef-mt h3 { margin: 0 0 12px; color: var(--ef-ink); font-size: 17px; }
.ef-mt__board header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ef-mt__privacy { margin-top: 14px; }
.ef-mt__rows { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ef-mt__rows li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--ef-line-soft); }
.ef-mt__rows li:first-child { border-top: 0; }
.ef-mt__rows b { width: 28px; color: var(--ef-soft); }
.ef-mt__rows span { flex: 1; color: var(--ef-ink); font-weight: 600; }
.ef-mt__rows em { font-style: normal; font-weight: 700; color: var(--ef-green); }
.ef-mt__rows li.is-me { background: var(--ef-sage); border-radius: 8px; padding-inline: 8px; }
.ef-game-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: #121614; color: #fff !important; font-size: 12.5px; font-weight: 700; text-decoration: none; }
.ef-game-badge[hidden] { display: none; }
/* Ask Eliza: the dialog is a plain block; a grid inside lays it out (Safari-safe). */
.ef-eliza-btn img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #9a6bff; }
.ef-eliza { display: none; width: min(440px, calc(100vw - 24px)); max-width: none; height: min(600px, calc(100dvh - 40px)); max-height: none; margin: auto 16px 16px auto; padding: 0; overflow: hidden; border: 1px solid var(--ef-line); border-radius: 20px; background: var(--ef-card); color: var(--ef-ink); box-shadow: 0 24px 60px -20px rgba(20, 24, 22, .45); }
.ef-eliza[open] { display: block; }
.ef-eliza::backdrop { background: rgba(20, 24, 22, .25); }
.ef-eliza__box { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; width: 100%; height: 100%; }
.ef-eliza__head { display: grid; grid-template-columns: 36px minmax(0, 1fr) 32px 32px; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--ef-line-soft); }
.ef-eliza__head img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.ef-eliza__head > div { display: grid; min-width: 0; }
.ef-eliza__head strong { font-size: 15.5px; }
.ef-eliza__head small { color: var(--ef-soft); font-size: 12px; line-height: 1.35; }
.ef-eliza__close { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: var(--ef-line-soft); color: var(--ef-ink); font-size: 20px; line-height: 1; cursor: pointer; }
.ef-eliza__context { margin: 0; padding: 8px 16px; background: var(--ef-sage); color: var(--ef-green); font-size: 13px; font-weight: 650; }
.ef-eliza__context[hidden] { display: none; }
.ef-eliza__log { display: grid; align-content: start; gap: 8px; margin: 0; padding: 14px 16px; overflow-y: auto; list-style: none; }
.ef-eliza__msg { max-width: 85%; padding: 9px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; }
.ef-eliza__msg.is-me { justify-self: end; background: var(--ef-green); color: #fff; border-bottom-right-radius: 4px; }
.ef-eliza__msg.is-eliza { justify-self: start; background: var(--ef-line-soft); border-bottom-left-radius: 4px; }
.ef-eliza__msg.is-waiting { color: var(--ef-soft); font-style: italic; }
.ef-eliza__msg.is-error { background: #fbeeea; color: #8a3b2a; }
.ef-eliza__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--ef-line-soft); }
.ef-eliza__form textarea { width: 100%; box-sizing: border-box; height: 38px; min-height: 38px; max-height: 120px; padding: 8px 14px; border: 1px solid var(--ef-line); border-radius: 19px; font: inherit; font-size: 14.5px; line-height: 20px; resize: none; overflow-y: auto; }
.ef-eliza__form textarea:focus { outline: none; border-color: var(--ef-green); box-shadow: 0 0 0 3px var(--ef-sage); }
.ef-eliza__form .ef-btn { min-height: 38px; padding: 0 16px; font-size: 14px; }
@media (max-width: 760px) { .ef-eliza { margin: auto 12px 84px; height: min(560px, calc(100dvh - 120px)); } }
.ef-theme-picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ef-push .ef-chip { display: inline-flex; align-items: center; gap: 6px; }
.ef-push .ef-chip input { accent-color: var(--ef-green); }
.ef-btn[hidden], .ef-chip[hidden] { display: none !important; }
.ef-eliza__box { position: relative; }
.ef-eliza__grip { position: absolute; top: 0; left: 0; z-index: 2; width: 22px; height: 22px; cursor: nwse-resize; touch-action: none; background: linear-gradient(135deg, var(--ef-sage-line) 0 3px, transparent 3px 6px, var(--ef-sage-line) 6px 8px, transparent 8px) top left / 12px 12px no-repeat; border-top-left-radius: 20px; }
.ef-eliza.is-large { width: min(760px, calc(100vw - 32px)); height: min(860px, calc(100dvh - 32px)); }
@media (max-width: 760px) { .ef-eliza__grip, .ef-eliza__size { display: none; } .ef-eliza__head { grid-template-columns: 36px minmax(0, 1fr) 32px; } }
/* Eliza messages slide in; "thinking" is three soft dots. */
@keyframes ef-msg-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ef-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ef-eliza__msg { animation: ef-msg-in .22s var(--ef-ease) both; transform-origin: bottom left; }
.ef-eliza__msg.is-me { transform-origin: bottom right; }
.ef-eliza__dots { display: inline-flex; gap: 4px; padding: 2px 0; }
.ef-eliza__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ef-soft); animation: ef-dot 1.1s infinite ease-in-out; }
.ef-eliza__dots i:nth-child(2) { animation-delay: .15s; }
.ef-eliza__dots i:nth-child(3) { animation-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .ef-eliza__msg, .ef-eliza__dots i { animation: none; } }
/* Fixed rows, so a hidden context line never shifts the messages out of the stretching row. */
.ef-eliza__head { grid-row: 1; }
.ef-eliza__context { grid-row: 2; }
.ef-eliza__log { grid-row: 3; }
.ef-eliza__form { grid-row: 4; }
/* Ask Eliza pop-up (right-click on a post, or next to selected text) */
.ef-ask-pop { position: fixed; z-index: 2000; padding: 4px; border: 1px solid var(--ef-line); border-radius: 999px; background: var(--ef-card); box-shadow: var(--ef-lift); animation: ef-msg-in .14s var(--ef-ease) both; }
.ef-ask-pop[hidden] { display: none; }
.ef-ask-pop button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: 0; border-radius: 999px; background: none; color: var(--ef-ink); font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; }
.ef-ask-pop button:hover { background: var(--ef-sage); }
.ef-ask-pop img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.ef-ask-pop { display: grid; gap: 2px; border-radius: 16px; min-width: 210px; }
.ef-ask-pop[data-kind="text"] { min-width: 0; border-radius: 999px; }
.ef-ask-pop button { justify-content: flex-start; border-radius: 12px; padding: 8px 12px; }
.ef-ask-pop button:first-child { padding-left: 6px; }
.ef-ask-pop[data-kind="text"] button { border-radius: 999px; }

/* Composer: who it goes to, the words, then one toolbar. Poll, event and options open only when asked for. */
.site-body .ef-composer { padding: 16px 18px 12px; border: 1px solid var(--ef-line); border-radius: var(--ef-radius); background: var(--ef-card); box-shadow: var(--ef-lift); }
.site-body .ef-composer.is-open { animation: ef-composer-in .18s var(--ef-ease); }
@keyframes ef-composer-in { from { opacity: 0; transform: translateY(-6px); } }
.ef-composer__head { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; }
.ef-composer__avatar { flex: 0 0 40px; display: grid; place-items: center; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; background: var(--ef-sage); color: var(--ef-green); font-weight: 700; text-transform: uppercase; }
.ef-composer__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ef-composer__who { min-width: 0; flex: 1; }
.site-body .ef-composer__who h3 { margin: 0; color: var(--ef-ink); font-size: 15px; font-weight: 700; line-height: 1.3; }
.ef-composer__audience { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 2px 0 0; color: var(--ef-soft); font-size: 12.5px; }
.ef-composer__audience svg { width: 14px; height: 14px; color: var(--ef-green); }
.ef-composer__audience a { color: var(--ef-green); font-weight: 650; }
.ef-composer__close { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ef-soft); cursor: pointer; transition: background .12s; }
.ef-composer__close:hover { background: var(--ef-paper); color: var(--ef-ink); }
.ef-composer__close svg { width: 18px; height: 18px; }
.ef-composer__form { display: grid; gap: 10px; margin: 0; }
.site-body .ef-composer textarea.ef-composer__text.space-view-textarea, .site-body .ef-composer textarea.ef-composer__text.space-view-textarea:focus { display: block; width: 100%; min-height: 84px; margin: 0; padding: 8px 2px; border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important; color: var(--ef-ink); font: inherit; font-size: 17px; line-height: 1.5; resize: none; outline: none; }
.site-body .ef-composer .ef-composer__text::placeholder { color: var(--ef-faint); }
.ef-composer .space-view-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ef-composer .space-compose-previews { margin: 0; gap: 8px; }
.ef-composer .space-compose-preview { width: 132px; padding: 0; border: 0; background: none; }
.ef-composer .space-compose-preview img, .ef-composer .space-compose-preview video { height: 132px; object-fit: cover; border-radius: 12px; background: var(--ef-paper); }
.ef-composer .space-compose-preview figcaption { color: var(--ef-soft); }
.ef-composer .space-compose-preview-remove { position: absolute; top: 6px; right: 6px; min-height: 26px; padding: 0 9px; border: 0; border-radius: 999px; background: rgba(36, 43, 40, .72); color: #fff; font-size: 12px; cursor: pointer; }
.ef-composer__panel { min-width: 0; margin: 0; padding: 12px 14px; border: 1px solid var(--ef-line-soft); border-radius: 12px; background: var(--ef-paper); animation: ef-composer-in .14s var(--ef-ease); }
.ef-composer__panel[hidden] { display: none !important; }
.ef-composer__panel-title { margin: 0 0 8px; padding: 0; color: var(--ef-ink); font-size: 13.5px; font-weight: 700; }
.ef-composer__panel-title small { color: var(--ef-soft); font-weight: 400; }
.ef-composer > .ef-event-maker { margin-top: 10px; }
.ef-poll-editor { display: grid; gap: 8px; }
.ef-poll-editor input, .ef-poll-editor select { width: 100%; min-height: 38px; padding: 6px 10px; border: 1px solid var(--ef-line); border-radius: 10px; background: var(--ef-card); font: inherit; font-size: 14px; }
.ef-poll-editor__days select { width: auto; }
.site-body .ef-composer__panel .social-post-pricing { margin: 0; padding: 0; border: 0; background: none; }
.ef-composer__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--ef-line-soft); }
.ef-composer__tools { display: flex; flex-wrap: nowrap; gap: 2px; min-width: 0; }
.site-body .ef-composer__tool { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--ef-text); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .12s, color .12s; }
.site-body .ef-composer__tool svg { width: 18px; height: 18px; color: var(--ef-green); }
.site-body .ef-composer__tool:hover { background: var(--ef-sage); }
.site-body .ef-composer__tool[aria-pressed="true"] { background: var(--ef-sage); color: var(--ef-green); }
.site-body .ef-composer .ef-composer__send.space-view-btn-primary { flex: none; width: auto; min-height: 38px; padding: 0 22px; border: 0 !important; border-radius: 999px; background: var(--ef-green) !important; color: #fff !important; font-weight: 650; transition: background .12s; }
.site-body .ef-composer .ef-composer__send.space-view-btn-primary:hover { background: var(--ef-green-deep) !important; }
.site-body .ef-composer .ef-composer__send.space-view-btn-primary:disabled { opacity: .6; }
.ef-composer .space-inline-error { padding: 10px 12px; border-radius: 10px; background: #fbeeea; color: #8a2f1d; font-size: 13.5px; }
@media (max-width: 560px) {
  .site-body .ef-composer__tool span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .site-body .ef-composer__tool { width: 40px; justify-content: center; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { .site-body .ef-composer.is-open, .ef-composer__panel { animation: none; } }

/* Timeline: one column of posts in a single panel, read and answered in place. */
/* Each post is its own rounded card, like the app; a small gap marks where one ends. */
.ef-timeline { display: grid; gap: 12px; min-width: 0; }
.ef-timeline > .hub-feed-skeleton { margin: 0; }
.ef-post { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; padding: 16px 18px 8px; border: 1px solid var(--ef-line); border-radius: var(--ef-radius); background: var(--ef-card); cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.ef-post:hover { border-color: var(--ef-sage-line); box-shadow: 0 1px 2px rgba(36, 43, 40, .05); }
.ef-post.is-new { box-shadow: inset 3px 0 0 var(--ef-green); }
.ef-post > * { grid-column: 2; min-width: 0; }
.ef-post > .ef-post__avatar { grid-column: 1; grid-row: 1; }
.ef-post > .ef-post__main { grid-row: 1; }
.ef-post__reason ~ .ef-post__avatar, .ef-post__reason ~ .ef-post__main { grid-row: 2; }
.ef-post__reason { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; color: var(--ef-soft); font-size: 12.5px; font-weight: 600; }
.ef-post__reason svg { width: 14px; height: 14px; color: var(--ef-green); }
.ef-post__avatar { --elm-avatar-size: 44px; display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden; border-radius: 50%; background: var(--ef-sage); color: var(--ef-green); font-weight: 700; text-decoration: none; text-transform: uppercase; }
.ef-post__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ef-post__head { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 6px; row-gap: 0; font-size: 14.5px; line-height: 1.35; }
.ef-post__name { color: var(--ef-ink); font-weight: 700; text-decoration: none; }
.ef-post__name:hover, .ef-post__where a:hover, .ef-post__time:hover { text-decoration: underline; }
.ef-post__where, .ef-post__time { color: var(--ef-soft); font-size: 13.5px; }
.ef-post__where a { color: inherit; font-weight: 600; text-decoration: none; }
.ef-post__time { text-decoration: none; }
.ef-post__time::before { content: "·"; margin-right: 6px; }
.ef-post__new { align-self: center; padding: 1px 8px; border-radius: 999px; background: var(--ef-green); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.ef-post__new[hidden] { display: none; }
.ef-post__text { margin-top: 3px; color: var(--ef-ink); font-size: 15.5px; line-height: 1.5; overflow-wrap: anywhere; }
.ef-post__text p { margin: 0 0 .5em; }
.ef-post__text p:last-child { margin-bottom: 0; }
.ef-post .ef-poll { margin-top: 10px; }
.ef-post__media { position: relative; display: block; max-width: 100%; margin-top: 10px; overflow: hidden; border: 1px solid var(--ef-line-soft); border-radius: 14px; background: var(--ef-paper); }
.ef-post__media a { display: block; }
/* Media fills the card; very tall photos are cropped to a sensible height (the post shows them whole). */
.ef-post__media { max-height: min(640px, 70vh); }
.ef-post__media img, .ef-post__media video { display: block; width: 100%; height: auto; max-height: min(640px, 70vh); object-fit: contain; }
.ef-post__media[style] img { position: relative; z-index: 1; }
.ef-post__pinned { display: inline-flex; align-items: center; gap: 4px; color: var(--ef-green); font-size: 12px; font-weight: 700; }
.ef-post__pinned svg { width: 13px; height: 13px; }
.ef-post__tools { margin-left: auto; display: inline-flex; }
.elm-post-options__menu .space-post-tab-form { display: grid; gap: 6px; padding: 6px 10px; }
.ef-post__media video { object-fit: contain; }
.ef-post__media.is-video { background: #111; }
.ef-post__media video { width: 100%; }
.ef-post__media-fallback { display: block; padding: 40px 24px; color: var(--ef-green); font-weight: 650; text-align: center; }
.ef-post__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; margin: 6px -8px 0; }
/* One even row: every action sits together from the left, sticker tallies on
   their own line underneath (owner, 6 Nov 2026). */
.ef-post__actions > .post-reactions:not(.is-own) { display: contents; }
.ef-post__actions .post-sticker-reactions { order: 99; flex-basis: 100%; padding: 2px 8px 0; }
.site-body .ef-post__actions > .social-post-gift { margin: 0; }
.site-body .ef-post__act, .site-body .ef-post__actions .post-reaction-button, .site-body .ef-post__actions .social-post-gift > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 9px; border: 0 !important; border-radius: 999px; background: transparent !important; box-shadow: none !important; color: var(--ef-soft); font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; list-style: none; transition: background-color .12s, color .12s; }
.site-body .ef-post__act svg, .site-body .ef-post__actions .post-reaction-button svg, .site-body .ef-post__actions .social-post-gift > summary svg { width: 18px; height: 18px; }
.site-body .ef-post__act:hover, .site-body .ef-post__actions .post-reaction-button:hover, .site-body .ef-post__actions .social-post-gift > summary:hover, .site-body .ef-post__act[aria-expanded="true"] { background: var(--ef-sage) !important; color: var(--ef-green); }
.site-body .ef-post__actions .post-reaction-button[aria-pressed="true"] { color: var(--ef-green); }
.ef-post__actions [data-main-reaction-label], .ef-post__actions .social-post-gift > summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ef-post__actions .post-reaction-expand { padding: 0 4px; }
.site-body .ef-post__actions .post-reaction-controls { background: transparent; box-shadow: none; }
.site-body .ef-post__actions .social-post-gift > summary::after { content: none; }
.ef-post__actions .post-reaction-count:empty { display: none; }
.ef-post__actions summary::-webkit-details-marker { display: none; }
.ef-post__actions .elm-post-share-status:empty { display: none; }
.ef-post__reply { display: grid; gap: 8px; margin: 6px 0 4px; }
.ef-post__reply[hidden] { display: none; }
.ef-post__reply textarea { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--ef-line); border-radius: 12px; background: var(--ef-card); font: inherit; font-size: 15px; resize: none; }
.ef-post__reply-actions { display: flex; justify-content: flex-end; gap: 8px; }
.ef-post .elm-inline-replies { margin: 4px 0 8px; }
/* Header beside the avatar; text, media, actions and replies use the card's full width. */
.ef-post > .ef-post__main { display: contents; }
.ef-post__main > * { grid-column: 1 / -1; min-width: 0; }
.ef-post__main > .ef-post__head { grid-column: 2; grid-row: 1; align-self: center; }
.ef-post__reason ~ .ef-post__main > .ef-post__head { grid-row: 2; }
.ef-post__main > .ef-post__text { margin-top: 10px; }
/* Unread markers inside a community, and the jump to them. */
.space-view-post-card.is-new { box-shadow: inset 3px 0 0 var(--ef-green); }
.space-view-post-name-row .ef-post__new { margin-left: 4px; }
.ef-newjump { display: block; margin: 0 auto 12px; padding: 7px 16px; border: 0; border-radius: 999px; background: var(--ef-green); color: #fff; font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; box-shadow: var(--ef-lift); animation: ef-composer-in .18s var(--ef-ease); }
.ef-newin { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--ef-sage-line); border-radius: var(--ef-radius); background: var(--ef-sage); }
.ef-newin[hidden] { display: none; }
.ef-newin > strong { color: var(--ef-ink); font-size: 14px; }
.ef-newin__row { display: flex; flex-wrap: wrap; gap: 8px; }
.ef-newin__item { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border: 1px solid var(--ef-sage-line); border-radius: 999px; background: var(--ef-card); color: var(--ef-ink); font-size: 13.5px; font-weight: 600; text-decoration: none; transition: border-color .12s; }
.ef-newin__item:hover { border-color: var(--ef-green); }
.ef-newin__item b { padding: 1px 8px; border-radius: 999px; background: var(--ef-green); color: #fff; font-size: 12px; }
@media (max-width: 560px) {
  .ef-timeline { gap: 10px; }
  .ef-post { grid-template-columns: 38px minmax(0, 1fr); padding: 12px 14px 6px; }
  .ef-post__avatar { --elm-avatar-size: 38px; width: 38px; height: 38px; }
}
/* Post ⋯ menu: one panel under the button. */
.ef-count { display: block; min-height: 16px; margin-top: 2px; color: var(--ef-soft); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.ef-count.is-near { color: #b45309; }
.post-reactions.is-own { display: inline-flex; align-items: center; gap: 10px; color: var(--ef-soft); font-size: 13px; }
.post-reaction-tally { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.post-reaction-tally svg { width: 16px; height: 16px; }
.post-reaction-tally.is-empty { opacity: .6; }
.elm-post-options { position: relative; }
/* An open post menu sits above the next card (its media is its own layer). */
:is([data-post-card], .space-view-post-card):has(details.elm-post-options[open]) { position: relative; z-index: 40; }
.elm-post-options__menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; display: grid; min-width: 210px; padding: 6px; border: 1px solid var(--ef-line); border-radius: 12px; background: var(--ef-card); box-shadow: var(--ef-lift); animation: ef-composer-in .12s var(--ef-ease); }
.site-body .elm-post-options__menu > .elm-post-action { justify-content: flex-start; width: 100%; min-height: 36px; padding: 0 10px; border: 0 !important; border-radius: 8px; background: transparent !important; color: var(--ef-ink); font-size: 14px; font-weight: 500; text-align: left; text-decoration: none; }
.site-body .elm-post-options__menu > .elm-post-action:hover { background: var(--ef-paper) !important; }
.site-body .ef-tl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; padding: 0; }
.ef-tl-head .ef-sort { margin: 0; }
/* A wide child (tab row, long link) must scroll inside the column, never widen the page. */
.site-body .hub-main-column { grid-template-columns: minmax(0, 1fr); }
.site-body .hub-main-column > *, .discover-surface, .discover-surface-body, .discover-page, .discover-layout, .discover-main, .discover-section { min-width: 0; }
/* Home's feed already sits in a panel: no second frame. */
/* Home's feed panel only frames the heading; the post cards stand on the page. */
.site-body .hub-panel--feed { border: 0 !important; background: transparent !important; box-shadow: none !important; }
.site-body .hub-panel--feed > .hub-panel__body { padding: 0 !important; background: transparent !important; }
.site-body .ef-post__actions .post-reaction-count { min-width: 0; padding: 0; background: none; color: inherit; }
.ef-post__actions { min-width: 0; }
.ef-post__actions > * { flex: 0 1 auto; min-width: 0; }
@media (max-width: 560px) {
  .ef-post__actions { margin-left: -6px; gap: 0; }
  .site-body .ef-post__act, .site-body .ef-post__actions .post-reaction-button, .site-body .ef-post__actions .social-post-gift > summary { padding: 0 7px; }
}
/* Arriving posts fade up, a few at a time. */
.ef-post.is-arriving { animation: ef-post-in .3s var(--ef-ease) both; animation-delay: var(--arrive-delay, 0ms); }
@keyframes ef-post-in { from { opacity: 0; transform: translateY(10px); } }
/* "New posts" floats under the header while you read; tapping it adds them on top. */
.site-body .discover-new-posts:not([hidden]), .site-body .ef-newposts:not([hidden]) { position: fixed; top: 80px; left: 50%; z-index: 60; display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--ef-green); color: #fff; font: inherit; font-size: 13.5px; font-weight: 650; box-shadow: var(--ef-lift); cursor: pointer; transform: translateX(-50%); animation: ef-pill-in .2s var(--ef-ease); }
.site-body .discover-new-posts::before, .site-body .ef-newposts::before { content: "↑"; font-weight: 700; }
.ef-newposts[hidden] { display: none !important; }
@keyframes ef-pill-in { from { opacity: 0; transform: translate(-50%, -8px); } }
/* While posts load by themselves the button stays out of sight; it returns after a failed load. */
.discover-section.is-auto .discover-more a, .ef-cfeed.is-auto [data-ef-cfeed-next] { visibility: hidden; }
@media (max-width: 760px) { .site-body .discover-new-posts:not([hidden]), .site-body .ef-newposts:not([hidden]) { top: 70px; } }
@media (prefers-reduced-motion: reduce) { .ef-post.is-arriving, .site-body .discover-new-posts, .site-body .ef-newposts { animation: none; } }
/* Hide Eliza's features (Account → Preferences): no Ask Eliza anywhere. Hiding her posts is a separate switch, done on the server. */
body[data-hide-eliza-tools] [data-ef-ask-eliza], body[data-hide-eliza-tools] .ef-eliza { display: none !important; }
/* Hide post / Block: a quiet stand-in row with Undo, and a small confirm. */
.ef-hidden-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px dashed var(--ef-line); border-radius: var(--ef-radius); color: var(--ef-soft); font-size: 14px; animation: ef-post-in .2s var(--ef-ease); }
.ef-confirm { width: min(420px, calc(100vw - 32px)); padding: 20px 22px; border: 1px solid var(--ef-line); border-radius: var(--ef-radius); background: var(--ef-card); color: var(--ef-ink); box-shadow: var(--ef-lift); }
.ef-confirm::backdrop { background: rgba(36, 43, 40, .35); }
.ef-confirm h2 { margin: 0 0 8px; font-size: 18px; }
.ef-confirm p { margin: 0 0 16px; color: var(--ef-text); font-size: 14.5px; line-height: 1.5; }
.ef-confirm__actions { display: flex; justify-content: flex-end; gap: 8px; }
.site-body .ef-btn--danger { border-color: #9b3b2a !important; background: #9b3b2a !important; color: #fff !important; }
.ef-pref-list { display: grid; gap: 0; margin: 8px 0 0; padding: 0; list-style: none; }
.ef-pref-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ef-line-soft); }
[data-post-card][hidden] { display: none !important; }
.site-body .ef-hidden-note .ef-textlink { padding: 4px 8px; border: 0 !important; background: none !important; color: var(--ef-green); font: inherit; font-weight: 650; cursor: pointer; }
/* Header credits pill: quiet, opens a small menu. */
.ef-credits { position: relative; }
.ef-credits[hidden] { display: none !important; }
.ef-credits__pill { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 1px solid var(--ef-line); border-radius: 999px; background: var(--ef-card); color: var(--ef-ink); font-size: 13.5px; font-weight: 650; cursor: pointer; list-style: none; transition: border-color .12s; }
.ef-credits__pill::-webkit-details-marker { display: none; }
.ef-credits__pill:hover, .ef-credits[open] .ef-credits__pill { border-color: var(--ef-sage-line); }
.ef-credits__pill svg { width: 17px; height: 17px; color: #b07d1a; }
.ef-credits__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; display: grid; gap: 8px; width: 260px; padding: 16px; border: 1px solid var(--ef-line); border-radius: var(--ef-radius); background: var(--ef-card); box-shadow: var(--ef-lift); animation: ef-composer-in .14s var(--ef-ease); }
.ef-credits__menu small { color: var(--ef-soft); font-size: 12.5px; }
.ef-credits__menu strong { color: var(--ef-ink); font-size: 28px; line-height: 1; }
.ef-credits__menu p { margin: 0; color: var(--ef-text); font-size: 13.5px; line-height: 1.45; }
.ef-credits__menu .ef-btn { justify-content: center; }
.ef-credits__menu .ef-textlink { justify-self: center; font-size: 13.5px; }
@media (max-width: 760px) { .ef-credits { display: none !important; } }
/* Feed pages on wide screens: a reading-width centre, roomier side columns, the rest is page background. */
@media (min-width: 1281px) {
  .site-body:is(.page-home-feed, .page-discover-site, .page-community-detail, .page-profile-card) .hub-shell {
    grid-template-columns: minmax(260px, 310px) minmax(0, 680px) minmax(260px, 310px);
    justify-content: center; gap: 28px; max-width: 1380px; margin-inline: auto;
  }
}
@media (min-width: 1281px) {
  /* The header sits in the same place on every page, lined up with the shared 1380px content width; its background still spans the window. */
  .site-body .guest-public__topbar { padding-inline: max(24px, calc((100% - 1380px) / 2 + 12px)); }
}
/* Thin, quiet scrollbars (page and side columns) in the house colours. */
html { scrollbar-width: thin; scrollbar-color: rgba(36, 43, 40, .28) transparent; }
.site-body * { scrollbar-width: thin; scrollbar-color: rgba(36, 43, 40, .22) transparent; }
.site-body ::-webkit-scrollbar, html::-webkit-scrollbar { width: 8px; height: 8px; }
.site-body ::-webkit-scrollbar-track, html::-webkit-scrollbar-track { background: transparent; }
.site-body ::-webkit-scrollbar-thumb, html::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: rgba(36, 43, 40, .22); background-clip: padding-box; }
.site-body ::-webkit-scrollbar-thumb:hover, html::-webkit-scrollbar-thumb:hover { background-color: rgba(50, 94, 71, .55); }
.site-body ::-webkit-scrollbar-corner { background: transparent; }
/* Report an issue / feedback: one centred column. */
.site-body .hub-shell.ef-report-shell { grid-template-columns: minmax(0, 880px); justify-content: center; }
/* Report form: the area dropdown matches the text fields. */
.site-body .website-issue-form select, .page-report-issue select { width: 100%; min-height: 42px; padding: 8px 36px 8px 12px; border: 1px solid #d8ded7; border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23325e47' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center; color: #242b28; font: inherit; font-size: 15px; -webkit-appearance: none; appearance: none; }
/* Error pages (404/403): one calm card in the page's own layout. */
.ef-error-card { display: grid; justify-items: center; gap: 10px; max-width: 560px; margin: 32px auto; padding: 40px 32px; border: 1px solid var(--ef-line); border-radius: var(--ef-radius); background: var(--ef-card); text-align: center; }
.ef-error-card__code { margin: 0; color: var(--ef-soft); font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.site-body .ef-error-card h1 { margin: 0; color: var(--ef-ink); font-family: var(--ef-serif); font-size: clamp(26px, 4vw, 34px); font-weight: 400; line-height: 1.2; }
.ef-error-card > p { margin: 0 0 8px; color: var(--ef-text); }
.ef-error-card__actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.ef-error-card__search { width: 100%; margin-top: 8px; }
.ef-error-card__search input { width: 100%; min-height: 44px; padding: 0 16px; border: 1px solid var(--ef-line); border-radius: 999px; background: var(--ef-paper); font: inherit; }
.ef-error-card__report { margin-top: 6px; color: var(--ef-soft); font-size: 13.5px; }
.site-body.page-error .guest-public__grid { grid-template-columns: minmax(0, 1fr) !important; }
/* Appearance picker: small previews of each theme. */
.ef-theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; margin-top: 12px; }
.ef-theme-tile { display: grid; gap: 6px; padding: 8px; border: 2px solid transparent; border-radius: 14px; background: none; color: var(--ef-ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .12s; }
.ef-theme-tile:hover { border-color: var(--ef-line); }
.ef-theme-tile[aria-checked="true"] { border-color: var(--ef-green); }
.ef-theme-tile__preview { position: relative; display: block; height: 76px; overflow: hidden; border: 1px solid var(--ef-line); border-radius: 10px; background: var(--p); }
.ef-theme-tile__preview::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--b); }
.ef-theme-tile__preview i:first-child { position: absolute; left: 10px; right: 10px; top: 16px; height: 34px; border-radius: 6px; background: var(--c); }
.ef-theme-tile__preview i:last-child { position: absolute; left: 10px; bottom: 9px; width: 40%; height: 9px; border-radius: 999px; background: var(--a); }
.ef-theme-tile__preview.is-split { background: linear-gradient(90deg, var(--p) 50%, var(--p2) 50%); }
.ef-theme-tile__preview.is-split i:first-child { background: linear-gradient(90deg, var(--c) 50%, var(--c2) 50%); }
.ef-theme-tile__preview.is-split i:last-child { width: auto; right: 10px; background: linear-gradient(90deg, var(--a) 50%, var(--a2) 50%); }
.ef-theme-tile__name { font-size: 13.5px; font-weight: 650; }
.ef-theme-tile small { display: inline-flex; align-items: center; gap: 4px; margin-top: -4px; color: var(--ef-soft); font-size: 12px; }
.ef-theme-tile small svg { width: 12px; height: 12px; }
.ef-theme-tile.is-locked { opacity: .75; text-decoration: none; }
.ef-theme-tile.is-locked:hover { opacity: 1; }
.ef-theme-more { margin-top: 14px; }
.ef-theme-more > summary { color: var(--ef-green); font-weight: 650; cursor: pointer; }
.ef-appearance[aria-busy="true"] { opacity: .7; }
.ef-issue-sent-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.site-body .ef-acc-nav__feedback[aria-current] { background: none !important; color: var(--ef-ink) !important; font-weight: 700; }
/* Sticker picker in reply boxes */
.reply-photos { position: relative; }
.ef-sticker-pop { position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 40; width: min(360px, 92vw); padding: 10px; border: 1px solid var(--ef-line); border-radius: 14px; background: var(--ef-card); box-shadow: var(--ef-lift); animation: ef-composer-in .14s var(--ef-ease); }
.ef-sticker-pop[aria-busy="true"] { opacity: .6; pointer-events: none; }
.ef-sticker-pop p { margin: 4px; color: var(--ef-soft); font-size: 13.5px; }
.ef-sticker-pop__tabs { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.ef-sticker-pop__tabs button { flex: none; padding: 5px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--ef-soft); font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.ef-sticker-pop__tabs button[aria-pressed="true"] { background: var(--ef-sage); color: var(--ef-green); }
.ef-sticker-pop__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 4px; max-height: 240px; overflow-y: auto; }
.ef-sticker-pop__grid button { display: grid; place-items: center; aspect-ratio: 1; padding: 4px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; transition: background .12s, transform .12s; }
.ef-sticker-pop__grid button:hover { background: var(--ef-sage); transform: scale(1.06); }
.ef-sticker-pop__grid img { width: 100%; height: 100%; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .ef-sticker-pop__grid button:hover { transform: none; } }
/* Vault sticker packs: compact rows instead of tall columns. */
.ef-packs-panel { grid-column: 1 / -1; }
.ef-packs { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.ef-pack { display: grid; grid-template-columns: minmax(140px, 200px) minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--ef-line-soft); }
.ef-pack:first-child { border-top: 0; }
.ef-pack__head { display: grid; gap: 2px; }
.ef-pack__head small { color: var(--ef-soft); font-size: 12.5px; }
.ef-pack__strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ef-pack__strip img, .ef-pack__grid img { flex: none; width: 56px; height: 56px; object-fit: contain; }
.ef-pack__all { grid-column: 1 / -1; }
.ef-pack__all > summary { color: var(--ef-green); font-size: 13px; font-weight: 650; cursor: pointer; }
.ef-pack__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; margin-top: 8px; }
.ef-pack > .ef-pack__all { grid-row: 2; }
@media (max-width: 640px) { .ef-pack { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
/* Code in posts: a calm panel, tabs kept, colours that follow light and dark themes. */
.site-body .elm-code-panel { margin: 10px 0; overflow: hidden; border: 1px solid var(--ef-line); border-radius: 12px; background: color-mix(in srgb, var(--ef-paper) 70%, var(--ef-card)); color: var(--ef-ink); }
.site-body .elm-code-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--ef-line-soft); color: var(--ef-soft); font: 600 12px/1.2 var(--ef-sans); letter-spacing: .02em; }
.site-body .elm-code-header button { padding: 4px 10px; border: 1px solid var(--ef-line); border-radius: 999px; background: var(--ef-card); color: var(--ef-ink); font: inherit; cursor: pointer; }
.site-body .elm-code-panel pre { max-height: 26rem; margin: 0; padding: 12px 14px; overflow: auto; white-space: pre; tab-size: 4; -moz-tab-size: 4; }
.site-body .elm-code-panel code { font: 13.5px/1.6 ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace; }
.elm-code-panel .tok-k { color: #8a3ffc; font-weight: 600; }
.elm-code-panel .tok-s { color: #1d7a3a; }
.elm-code-panel .tok-c { color: #7b847d; font-style: italic; }
.elm-code-panel .tok-n { color: #b45309; }
.elm-code-panel .tok-f { color: #1d5fb8; }
.elm-code-panel .tok-t { color: #1d5fb8; }
.elm-code-panel .tok-a { color: #9d4d00; }
:is(.ef-dark body, body[data-theme-dark]) .elm-code-panel .tok-k { color: #c4a5ff; }
:is(.ef-dark body, body[data-theme-dark]) .elm-code-panel .tok-s { color: #8fe3a8; }
:is(.ef-dark body, body[data-theme-dark]) .elm-code-panel .tok-c { color: #8b949e; }
:is(.ef-dark body, body[data-theme-dark]) .elm-code-panel .tok-n { color: #ffb86b; }
:is(.ef-dark body, body[data-theme-dark]) .elm-code-panel :is(.tok-f, .tok-t) { color: #7cc4ff; }
:is(.ef-dark body, body[data-theme-dark]) .elm-code-panel .tok-a { color: #ffd38a; }
/* Manage community: a profile-style cover you tap to change, section chips, icon cards and choice tiles. Theme-aware. */
.site-body .spaces-panel-card.space-admin-panel { display: grid; gap: 14px; padding: 20px; border: 1px solid var(--ef-line) !important; border-radius: var(--ef-radius) !important; background: var(--ef-card) !important; color: var(--ef-text) !important; }
.ef-manage-head { display: flex; align-items: center; gap: 10px; }
.site-body .ef-manage-head h3 { flex: 1; margin: 0; color: var(--ef-ink); font-size: 19px; font-weight: 700; }
.ef-manage-chip { padding: 4px 10px; border-radius: 999px; background: var(--ef-accent, var(--ef-green)); color: var(--ef-on-accent, #fff) !important; font-size: 12.5px; font-weight: 700; text-decoration: none; }
.ef-manage-form { display: grid; gap: 14px; margin: 0; }
.ef-manage-cover { position: relative; }
.ef-manage-banner { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 5; overflow: hidden; border-radius: 16px; background: linear-gradient(135deg, var(--ef-accent, var(--ef-green)), color-mix(in srgb, var(--ef-accent, var(--ef-green)) 45%, var(--ef-card))); color: #fff; font-size: 14px; font-weight: 650; cursor: pointer; isolation: isolate; }
.ef-manage-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .35)); }
.ef-manage-banner > span:first-child { z-index: 1; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .28); }
.ef-manage-banner img { z-index: -2; }
.ef-manage-banner img, .ef-manage-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ef-manage-banner img { transition: transform .35s ease; }
.ef-manage-banner:not(.is-static .ef-manage-banner):hover img { transform: scale(1.02); }
.ef-manage-change { position: absolute; right: 12px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: rgba(15, 18, 16, .62); color: #fff; font-size: 13px; font-weight: 650; backdrop-filter: blur(6px); transition: background .15s; }
.ef-manage-banner:hover .ef-manage-change { background: rgba(15, 18, 16, .8); }
.ef-manage-change svg, .ef-manage-avatar i svg { width: 15px; height: 15px; }
.ef-manage-avatar { position: absolute; left: 20px; bottom: -42px; display: grid; place-items: center; width: 92px; height: 92px; overflow: hidden; border: 4px solid var(--ef-card); border-radius: 26px; background: var(--ef-sage); color: var(--ef-green); font-size: 32px; font-weight: 700; text-transform: uppercase; cursor: pointer; box-shadow: var(--ef-lift); }
.ef-manage-avatar i { position: absolute; right: 5px; bottom: 5px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ef-accent, var(--ef-green)); color: var(--ef-on-accent, #fff); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.ef-manage-cover.is-static :is(.ef-manage-banner, .ef-manage-avatar) { cursor: default; }
.ef-manage-banner:focus-within, .ef-manage-avatar:focus-within { outline: 2px solid var(--ef-green); outline-offset: 2px; }
.ef-manage-ident { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 42px; padding-left: 128px; }
.ef-manage-ident__name { display: grid; gap: 4px; min-width: 0; }
.site-body .ef-manage-ident strong { overflow: hidden; color: var(--ef-ink); font-size: 19px; font-weight: 750; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.ef-manage-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; }
.ef-manage-stats > div { display: flex; align-items: baseline; gap: 4px; }
.ef-manage-stats dt { order: 2; color: var(--ef-soft); font-size: 13px; font-weight: 500; }
.ef-manage-stats dd { order: 1; margin: 0; color: var(--ef-ink); font-size: 14px; font-weight: 750; }
.ef-manage-ident__edit { display: inline-flex; flex: none; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--ef-line); border-radius: 999px; color: var(--ef-ink) !important; font-size: 13.5px; font-weight: 650; text-decoration: none; transition: border-color .15s, background .15s; }
.ef-manage-ident__edit:hover { border-color: var(--ef-sage-line); background: var(--ef-sage); }
.ef-manage-ident__edit svg { width: 15px; height: 15px; }
.ef-manage-nav { position: sticky; top: calc(var(--site-header-h, 64px) + 6px); z-index: 6; display: flex; gap: 6px; margin: 2px -4px 0; padding: 4px; overflow-x: auto; border-radius: 999px; background: color-mix(in srgb, var(--ef-card) 88%, transparent); backdrop-filter: blur(8px); scrollbar-width: none; }
.ef-manage-nav::-webkit-scrollbar { display: none; }
.ef-manage-nav a { flex: none; padding: 7px 14px; border: 1px solid var(--ef-line-soft); border-radius: 999px; color: var(--ef-soft) !important; font-size: 13.5px; font-weight: 650; text-decoration: none; transition: color .15s, border-color .15s, background .15s; }
.ef-manage-nav a:hover, .ef-manage-nav a.is-current { border-color: var(--ef-sage-line); background: var(--ef-sage); color: var(--ef-ink) !important; }
.site-body .space-admin-panel .ef-manage-card { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--ef-line-soft) !important; border-radius: 16px; background: var(--ef-card) !important; color: var(--ef-text) !important; scroll-margin-top: calc(var(--site-header-h, 64px) + 64px); }
.ef-manage-card__head { display: flex; align-items: center; gap: 10px; }
.ef-manage-card__head > i, .ef-manage-danger summary > i { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--ef-sage); color: var(--ef-green); }
.ef-manage-card__head svg, .ef-manage-danger summary svg { width: 18px; height: 18px; }
.site-body .space-admin-panel :is(.ef-manage-card__head, .ef-manage-danger summary) h4 { flex: 1; margin: 0; color: var(--ef-ink) !important; font-size: 15.5px; font-weight: 700; }
.ef-manage-count { padding: 3px 10px; border-radius: 999px; background: var(--ef-sage); color: var(--ef-green); font-size: 12.5px; font-weight: 700; }
.ef-manage-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ef-manage-field { display: grid; gap: 5px; }
.site-body .ef-manage-field > span { color: var(--ef-soft) !important; font-size: 12.5px; font-weight: 650; }
.site-body .ef-manage-field :is(input, textarea) { width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid var(--ef-line) !important; border-radius: 12px !important; background-color: var(--ef-paper) !important; color: var(--ef-ink) !important; font: inherit; font-size: 15px; font-weight: 500; transition: border-color .15s, box-shadow .15s; }
.site-body .ef-manage-field :is(input, textarea):focus { border-color: var(--ef-accent, var(--ef-green)) !important; outline: 0; box-shadow: 0 0 0 3px var(--ef-sage); }
.site-body .ef-manage-field textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.ef-manage-hint { margin: 0; color: var(--ef-soft); font-size: 13.5px; }
/* Choice tiles: radios that look like the app's pickers. */
.ef-choice { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.site-body .ef-choice legend { margin-bottom: 8px; padding: 0; color: var(--ef-soft); font-size: 12.5px; font-weight: 650; }
.ef-choice__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ef-choice__opts.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ef-choice label { position: relative; display: block; cursor: pointer; }
.ef-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ef-choice label > span { display: grid; align-content: start; gap: 3px; height: 100%; padding: 12px 13px; border: 1.5px solid var(--ef-line); border-radius: 13px; background: var(--ef-paper); transition: border-color .15s, background .15s, transform .12s; }
.ef-choice label:hover > span { border-color: var(--ef-sage-line); }
.ef-choice label:active > span { transform: scale(.98); }
.ef-choice svg { width: 20px; height: 20px; margin-bottom: 4px; color: var(--ef-soft); transition: color .15s; }
.site-body .ef-choice b { color: var(--ef-ink); font-size: 14px; font-weight: 700; }
.site-body .ef-choice small { color: var(--ef-soft); font-size: 12.5px; line-height: 1.35; }
.ef-choice input:checked + span { border-color: var(--ef-accent, var(--ef-green)); background: var(--ef-sage); }
.ef-choice input:checked + span svg { color: var(--ef-green); }
.ef-choice input:checked + span::after { content: ""; position: absolute; top: 11px; right: 11px; width: 16px; height: 16px; border-radius: 50%; background: var(--ef-accent, var(--ef-green)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; animation: ef-pop .18s ease-out; }
.ef-choice input:focus-visible + span { outline: 2px solid var(--ef-green); outline-offset: 2px; }
@keyframes ef-pop { from { transform: scale(.4); opacity: 0; } }
/* Rules: icon, label, switch. */
.site-body .ef-manage-card .ef-switch { display: flex !important; gap: 12px; padding: 11px 0; border-top: 1px solid var(--ef-line-soft); }
.site-body .ef-manage-card .ef-manage-card__head + .ef-switch, .site-body .ef-manage-card .ef-manage-card__head + input + .ef-switch { border-top: 0; padding-top: 0; }
.ef-manage-card .ef-switch > svg { order: -2; flex: none; width: 18px; height: 18px; color: var(--ef-soft); }
.ef-manage-card .ef-switch > span { flex: 1; }
.site-body .ef-manage-card .ef-switch strong { color: var(--ef-ink) !important; font-size: 14.5px; font-weight: 600; }
.site-body .ef-manage-card .ef-switch small { color: var(--ef-soft) !important; }
.ef-manage-card .ef-switch:has(input:checked) > svg { color: var(--ef-green); }
/* Save bar: always reachable; says so when something changed. */
.ef-manage-save { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.ef-manage-save__note { display: none; align-items: center; gap: 8px; color: var(--ef-ink); font-size: 13.5px; font-weight: 650; }
.ef-manage-save__note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ef-accent, var(--ef-green)); }
.ef-manage-form.is-dirty .ef-manage-save { justify-content: space-between; padding: 8px 8px 8px 18px; border: 1px solid var(--ef-line); border-radius: 999px; background: var(--ef-card); box-shadow: var(--ef-lift); animation: ef-rise .2s ease-out; }
.ef-manage-form.is-dirty .ef-manage-save__note { display: inline-flex; }
.site-body .ef-manage-save .space-view-btn-primary { min-height: 44px; padding: 0 26px; border-radius: 999px !important; }
@keyframes ef-rise { from { transform: translateY(8px); opacity: .4; } }
/* Invite link, tabs, requests, delete. */
.site-body .space-admin-panel .space-tab-admin { margin: 0; }
.site-body .space-admin-panel .space-tab-admin label > span { color: var(--ef-soft) !important; font-size: 12.5px; font-weight: 650; }
.site-body .space-admin-panel :is(.space-tab-admin, .ef-manage-field) ::placeholder { color: var(--ef-faint) !important; opacity: 1; }
.site-body .space-admin-panel .space-tab-admin :is(input, select), .site-body .space-admin-panel .space-delete-form input { min-height: 42px; padding: 8px 12px; border: 1px solid var(--ef-line) !important; border-radius: 12px !important; background-color: var(--ef-paper) !important; color: var(--ef-ink) !important; font: inherit; }
.ef-manage-requests .space-request-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--ef-line-soft); }
.ef-manage-requests .space-request-row > div { display: flex; gap: 6px; }
.site-body .ef-manage-requests .space-request-row button { min-height: 36px; padding: 0 14px; border: 1px solid var(--ef-line) !important; border-radius: 999px !important; background: var(--ef-card) !important; color: var(--ef-ink) !important; font-weight: 650; }
.site-body .ef-manage-requests .space-request-row form:first-child button { border-color: transparent !important; background: var(--ef-accent, var(--ef-green)) !important; color: var(--ef-on-accent, #fff) !important; }
.site-body .space-admin-panel .ef-manage-danger { display: block; padding: 0; border: 1px solid color-mix(in srgb, #ef4444 30%, var(--ef-line)) !important; border-radius: 16px; background: var(--ef-card) !important; color: var(--ef-text) !important; scroll-margin-top: calc(var(--site-header-h, 64px) + 64px); }
.ef-manage-danger summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; list-style: none; }
.ef-manage-danger summary::-webkit-details-marker { display: none; }
.ef-manage-danger summary > i { background: color-mix(in srgb, #ef4444 14%, var(--ef-card)); color: #dc2626; }
.ef-manage-danger summary > svg { color: var(--ef-soft); transition: transform .2s; }
.ef-manage-danger[open] summary > svg { transform: rotate(180deg); }
.ef-manage-danger > :not(summary) { margin: 0 18px 16px; }
.site-body .space-admin-panel .ef-manage-danger p { color: var(--ef-soft) !important; font-size: 13.5px; }
.ef-manage-danger .space-delete-form { display: grid; gap: 10px; }
@media (max-width: 640px) {
  .ef-manage-row, .ef-choice__opts, .ef-choice__opts.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ef-manage-row { grid-template-columns: minmax(0, 1fr); }
  .ef-manage-avatar { left: 14px; bottom: -34px; width: 76px; height: 76px; border-radius: 22px; }
  .ef-manage-ident { flex-wrap: wrap; padding-left: 100px; }
  .site-body .spaces-panel-card.space-admin-panel { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .ef-choice input:checked + span::after, .ef-manage-form.is-dirty .ef-manage-save { animation: none; } }
/* The panel's id outranks the older class-based !important rules in every theme. */
body.site-body #space-manage { background: var(--ef-card) !important; border-color: var(--ef-line) !important; color: var(--ef-text) !important; }
body.site-body #space-manage :is(h3, h4, .ef-switch strong) { color: var(--ef-ink) !important; }
body.site-body #space-manage :is(.ef-manage-field > span, .space-tab-admin label > span, .ef-manage-stats dt) { color: var(--ef-soft) !important; }
body.site-body #space-manage :is(.space-tab-form, .space-tab-edit-list, .space-tab-form.is-existing) { background: transparent !important; border-color: var(--ef-line-soft) !important; box-shadow: none !important; }
body.site-body #space-manage .space-tab-admin .space-view-btn:not(.space-view-btn-primary) { background: var(--ef-card) !important; border: 1px solid var(--ef-line) !important; color: var(--ef-ink) !important; border-radius: 999px !important; }
body.site-body #space-manage .ef-switch input { background: var(--ef-line) !important; border: 0 !important; }
body.site-body #space-manage .ef-switch input:checked, .site-body .ef-switch input:checked { background: var(--ef-accent, var(--ef-green)) !important; }
.ef-choice label.is-locked { cursor: not-allowed; }
.ef-choice label.is-locked > span { border-style: dashed; opacity: .6; }
.site-body .ef-choice label.is-locked small { color: var(--ef-green); font-weight: 700; }
.ef-invite-result[hidden] { display: none !important; }
body.site-body #space-manage :is(.ef-manage-change, .ef-manage-banner > span:first-child) { color: #fff !important; }
body.site-body #space-manage .space-request-row a { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ef-ink) !important; font-weight: 650; text-decoration: none; }
body.site-body #space-manage .ef-manage-avatar > span { color: var(--ef-green) !important; font-size: 32px; font-weight: 700; }
body.site-body #space-manage .space-request-row { border-color: var(--ef-line-soft) !important; }
.ef-choice input:disabled + span { opacity: .5; cursor: not-allowed; }
/* Community and creator posts: the feed's post look (name, soft time, text under the name, quiet actions). */
body.site-body .space-view-post-card { --sv-indent: 56px; padding: 16px 18px 8px !important; border: 1px solid var(--ef-line) !important; border-radius: var(--ef-radius, 16px) !important; background: var(--ef-card) !important; color: var(--ef-text) !important; box-shadow: none !important; transition: border-color .15s; }
body.site-body .space-view-post-card:hover { border-color: var(--ef-sage-line) !important; }
body.site-body .space-view-post-card .space-view-post-head { align-items: flex-start; gap: 12px; }
/* Pin toggle: an icon at the top right of the post, filled when pinned. */
.space-post-pin-toggle { margin: 0 0 0 auto; flex: none; }
/* Pin and post options share the top-right corner; the footer keeps reactions, reply, share and gift. */
.space-post-head-tools { margin: 0 0 0 auto; flex: none; display: flex; align-items: center; gap: 2px; }
.space-post-head-tools .space-post-pin-toggle { margin: 0; }
.space-post-head-tools .elm-post-options > summary { min-height: 32px; padding: 0 8px; list-style: none; }
.space-post-head-tools .elm-post-options > summary::-webkit-details-marker { display: none; }
.site-body .space-post-pin { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--ef-soft); cursor: pointer; }
.site-body .space-post-pin:hover { background: var(--ef-paper); color: var(--ef-ink); }
.site-body .space-post-pin.is-pinned { color: var(--ef-green); }
.site-body .space-post-pin.is-pinned svg { fill: currentColor; }
.site-body .space-post-pin svg { width: 18px; height: 18px; }
body.site-body .space-view-post-card :is(.space-view-post-avatar, .space-view-post-avatar-wrap) { width: 44px; height: 44px; flex: none; }
body.site-body .space-view-post-card .space-view-post-name { margin: 0; color: var(--ef-ink) !important; font-size: 15px; font-weight: 700; }
body.site-body .space-view-post-card .space-view-post-meta-row { gap: 8px; color: var(--ef-soft) !important; font-size: 13px; }
body.site-body .space-view-post-card .space-view-post-meta-row a { color: var(--ef-soft) !important; text-decoration: none !important; }
body.site-body .space-view-post-card .space-view-post-meta-row a:hover { text-decoration: underline !important; }
body.site-body .space-view-post-card > :is(.space-view-post-text, .space-view-post-media-wrap, .post-kind-badge, .elm-post-gifters-slot, .space-view-post-footer, .elm-inline-replies, .space-post-inline-reply, .hub-post-card__sent-replies, .paid-post-lock, .ef-poll) { margin-left: var(--sv-indent) !important; }
body.site-body .space-view-post-card .space-view-post-text, body.site-body .space-view-post-card .space-view-post-text :is(p, li, span, div) { color: var(--ef-ink) !important; font-size: 15.5px; line-height: 1.5; }
body.site-body .space-view-post-card .space-view-post-text { margin-top: 2px; }
body.site-body .space-view-post-card .space-view-post-text a { color: var(--ef-green) !important; }
body.site-body .space-view-post-card .space-view-post-media-wrap { margin-top: 10px; border: 1px solid var(--ef-line-soft); border-radius: 14px; overflow: hidden; }
body.site-body .space-view-post-card .space-view-post-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-top: 6px; margin-right: -8px; padding: 0 !important; border: 0 !important; background: transparent !important; }
body.site-body .space-view-post-card .space-view-post-footer :is(.elm-post-action, .post-reaction-button, .social-post-gift > summary, .space-view-btn) { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; border: 0 !important; border-radius: 999px !important; background: transparent !important; box-shadow: none !important; color: var(--ef-soft) !important; font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
body.site-body .space-view-post-card .space-view-post-footer :is(.elm-post-action, .post-reaction-button, .social-post-gift > summary, .space-view-btn):hover { background: var(--ef-sage) !important; color: var(--ef-green) !important; }
body.site-body .space-view-post-card .space-view-post-footer .post-reaction-button[aria-pressed="true"] { color: var(--ef-green) !important; }
body.site-body .space-view-post-card .space-view-post-footer svg { width: 18px; height: 18px; }
body.site-body .space-view-post-card .space-view-post-footer :is(.post-reaction-controls, .post-reactions, form, .post-reaction-picker) { border: 0 !important; background: transparent !important; box-shadow: none !important; }
body.site-body .space-view-post-card .space-view-post-footer .post-reaction-expand { padding: 0 6px; }
body.site-body .space-view-post-card .space-view-post-footer > span { color: var(--ef-faint); font-size: 12.5px; }
body.site-body .space-view-post-card .space-view-post-footer .post-reaction-count:empty, body.site-body .space-view-post-card .space-view-post-footer .elm-post-share-status:empty { display: none; }
body.site-body .ef-composer textarea.ef-composer__text:not(#ef-x) { background: transparent !important; border: 0 !important; box-shadow: none !important; }
@media (max-width: 640px) { body.site-body .space-view-post-card { --sv-indent: 0px; padding: 14px 14px 6px !important; } }
/* Community rail: Leave is a quiet secondary action; "Your communities" is a proper card. */
body.site-body .community-context__join { border-radius: 999px !important; font-size: 14.5px !important; font-weight: 700; padding: 10px 14px !important; transition: background-color .15s, border-color .15s, color .15s; }
body.site-body .community-context__join.is-secondary:not(#ef-x) { border: 1px solid color-mix(in srgb, var(--ef-soft) 45%, transparent) !important; background: transparent !important; color: var(--ef-soft) !important; font-size: 13.5px !important; font-weight: 650; }
body.site-body .community-context__join.is-secondary:not(#ef-x):hover { border-color: color-mix(in srgb, #ef4444 45%, var(--ef-line)) !important; color: #ef4444 !important; }
body.site-body .community-switcher { margin-top: 12px; padding: 0 !important; border: 1px solid var(--ef-line) !important; border-radius: var(--ef-radius, 16px) !important; background: var(--ef-card) !important; overflow: hidden; }
body.site-body .community-switcher > summary { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; color: var(--ef-ink) !important; font-size: 14px; font-weight: 650; list-style: none; background: transparent !important; }
body.site-body .community-switcher > summary::-webkit-details-marker { display: none; }
body.site-body .community-switcher > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ef-soft); border-bottom: 2px solid var(--ef-soft); transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
body.site-body .community-switcher[open] > summary::after { transform: rotate(225deg) translateY(-2px); }
body.site-body .community-switcher > nav { padding: 0 8px 8px; }
/* Owner's audience badge doubles as the visibility switch. */
.elm-post-audience-switch { position: relative; display: inline-block; }
.elm-post-audience-switch > summary { cursor: pointer; list-style: none; }
.elm-post-audience-switch > summary::-webkit-details-marker { display: none; }
.elm-post-audience-switch > .elm-post-options__menu { left: 0; right: auto; }
.elm-post-audience-switch .elm-post-options__menu form { margin: 0; }
.site-body .elm-post-audience-switch .elm-post-options__menu .elm-post-action { justify-content: flex-start; width: 100%; min-height: 36px; padding: 0 10px; border: 0 !important; border-radius: 8px; background: none; }
.site-body .elm-post-audience-switch .elm-post-options__menu .elm-post-action:hover:not([disabled]) { background: var(--ef-paper) !important; }
/* Settings kept in the form but not shown (e.g. community-only options on a personal public profile). */
.site-body .space-admin-panel .ef-switch[hidden], .site-body .space-admin-panel .ef-manage-card[hidden] { display: none !important; }
/* Menu options that submit a form (move to tab / audience) look like the other options. */
.site-body .elm-post-options__menu form { margin: 0; }
.site-body .elm-post-options__menu form > .elm-post-action { justify-content: flex-start; width: 100%; min-height: 36px; padding: 0 10px; border: 0 !important; border-radius: 8px; background: none; }
.site-body .elm-post-options__menu form > .elm-post-action:hover:not([disabled]) { background: var(--ef-paper) !important; }
.site-body .elm-post-options__menu form > .elm-post-action[disabled] { opacity: .7; cursor: default; }
/* Header search: the rounded input is the only box (the form's own border drew a second, square one around it). */
.guest-public__topbar.is-member .site-search-form, .guest-public__topbar.is-member .site-search-form:focus-within { height: auto; border: 0; background: none; box-shadow: none; }
/* Post count next to a tab name. */
.space-tab-count { display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--ef-paper); color: var(--ef-soft); font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
/* Tab settings: readable fields and an inline "+ New tab" step. */
body.site-body #space-manage .space-tab-admin :is(input, select) { background-color: var(--ef-card) !important; color: var(--ef-ink) !important; font-size: 15px; }
body.site-body #space-manage .space-tab-admin ::placeholder { color: var(--ef-soft) !important; }
body.site-body #space-manage .space-tab-admin label > span { color: var(--ef-text) !important; font-size: 13px; }
.space-tab-create > summary { display: inline-flex; list-style: none; cursor: pointer; }
.space-tab-create > summary::-webkit-details-marker { display: none; }
.space-tab-create[open] > summary { display: none; }
.space-tab-create .space-tab-form { display: grid; gap: 12px; padding: 14px; border: 1px dashed var(--ef-line); border-radius: 14px; animation: ef-rise .18s ease-out; }
.space-tab-limit { color: var(--ef-soft); font-size: 13.5px; margin: 0; }
/* Page/profile/community sidebars list "Your communities" as the same cards as Home. */
body.site-body .community-switcher > nav.hub-panel__body--spaces { display: grid; gap: 10px; padding: 4px 12px 12px; }
body.site-body .community-switcher .hub-space-card { padding: 0; font-size: inherit; }
body.site-body .community-switcher .hub-space-card[aria-current] { border-color: var(--ef-green); box-shadow: 0 0 0 1px var(--ef-green); background: var(--ef-card); }
body.site-body .community-switcher .hub-space-card[aria-current] .hub-space-card__body { background: var(--ef-sage); }
body.site-body .community-switcher .hub-space-card:hover { background: var(--ef-card); }
