:root {
  --bg: #ffffff;
  --fg: #000000;
  --nav-offset: 42px;
  --post-scroll-offset: 39px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  background: var(--bg);
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;
}

.view-toggle {
  position: fixed;
  top: var(--site-viewport-top, 0px);
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  pointer-events: none;
}

.view-toggle-left,
.view-toggle-right,
.show-menu {
  pointer-events: auto;
}

.view-toggle-left {
  display: flex;
  gap: 0;
}

.primary-space-head {
  padding: 70px 16px 18px;
  border-bottom: 1px solid #000;
}

.primary-space-head h1,
.primary-space-head p {
  margin: 0;
}

.primary-space-head h1 {
  font-size: clamp(28px, 5vw, 54px);
  line-height: 0.95;
  text-transform: lowercase;
}

.primary-space-head p {
  max-width: 760px;
  margin-top: 10px;
  font-size: 14px;
}

.primary-space-head #primary-space-counts {
  font-size: 12px;
}

body[data-primary-space="true"] .story-feed {
  padding-top: 0;
}

.view-toggle-right {
  display: flex;
  gap: 0;
  align-items: flex-start;
}

.toggle-button.live-room-launch {
  width: 39px;
  min-width: 39px;
  height: 39px;
  min-height: 39px;
  align-self: flex-start;
  padding: 0;
  margin-right: 0;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}

.toggle-button.personal-activity-launch {
  width: 39px;
  min-width: 39px;
  height: 39px;
  min-height: 39px;
  align-self: flex-start;
  margin-left: -1px;
  margin-right: 0;
  padding: 0;
  display: grid;
  place-items: center;
}

.live-room-radio-mark {
  display: none;
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: .9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.live-room-launch[data-access="public"] .live-room-radio-mark { display: block; }
.live-room-launch[data-access="public"] :is(.live-room-eye, .live-room-count) { display: none; }

.personal-activity-drop,
.personal-activity-drop svg {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
}

.personal-activity-drop svg {
  overflow: visible;
}

.personal-activity-drop path {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.9;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.toggle-button.personal-activity-launch.has-personal-update,
.toggle-button.personal-activity-launch.has-personal-update:not(.is-active):hover,
.toggle-button.personal-activity-launch.has-personal-update:focus-visible {
  background: #000;
  color: #fff;
}

.personal-activity-launch.has-personal-update .personal-activity-drop path {
  fill: currentColor;
  stroke: none;
}

.live-room-eye {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
}

.live-room-eye svg {
  width: 27px;
  height: 27px;
  overflow: visible;
}

.live-room-eye-quiet path,
.live-room-eye-quiet circle:not(.live-room-eye-pupil) {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.9;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.live-room-eye-pupil,
.live-room-eye-unread path,
.live-room-eye-unread circle:not(.live-room-eye-knockout) {
  fill: currentColor;
  stroke: none;
}

.live-room-eye-unread,
.live-room-launch.has-ghost-update .live-room-eye-quiet {
  display: none;
}

.live-room-launch.has-ghost-update .live-room-eye-unread {
  display: grid;
}

.live-room-count,
.live-room-launch.has-people .live-room-eye {
  display: none;
}

.live-room-launch.has-people .live-room-count {
  display: inline;
}

.live-room-eye-knockout {
  fill: #000;
  stroke: none;
}

.toggle-button.live-room-launch.has-ghost-update,
.toggle-button.live-room-launch.has-ghost-update:not(.is-active):hover,
.toggle-button.live-room-launch.has-ghost-update:focus-visible {
  background: #000;
  color: #fff;
}

.live-room-launch[hidden],
.personal-activity-launch[hidden],
.live-room-backdrop[hidden],
.live-room-drawer[hidden] {
  display: none !important;
}

.live-room-backdrop {
  position: fixed;
  inset: 0;
  z-index: 68;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.18);
  cursor: default;
}

.live-room-drawer {
  position: fixed;
  top: var(--site-viewport-top, 0px);
  right: 0;
  z-index: 69;
  width: min(480px, 100vw);
  height: var(--site-viewport-height, 100dvh);
  border-left: 1px solid #e1e1e1;
  background: #fff;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  transform: translateX(100%);
  transition: transform 220ms ease;
  overflow: hidden;
}

.live-room-drawer.is-open {
  transform: translateX(0);
}

/* One persistent transport, using the same type, controls and spacing as radio. */
.site-radio-dock[hidden] { display: none; }
.site-radio-dock { position: fixed; z-index: 81; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #dedede; background: #fff; color: #000; box-shadow: 0 -6px 24px rgb(0 0 0 / .035); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
/* Give the fixed bar its own composited layer during iOS momentum scrolling. */
.site-radio-dock { transform: translateZ(0); }
.site-radio-dock button { appearance: none; border: 0; border-radius: 0; padding: 0; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; background: transparent; color: inherit; cursor: pointer; font: inherit; }
.site-radio-dock button:focus-visible, .site-radio-dock a:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
.site-radio-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
#site-radio-open { display: block; width: 100%; min-height: 22px; text-align: left; font-size: 13px; }
#site-radio-title, #site-radio-artist { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#site-radio-artist { min-height: 14px; font-size: 11px; color: #666; }
#site-radio-artist a { color: inherit; text-underline-offset: 3px; }
.site-radio-dock svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.site-radio-dock .play-symbol { fill: currentColor; stroke: none; }
.site-radio-dock .pause-symbol, .site-radio-dock .pod-skip-symbol, .site-radio-dock .is-playing .play-symbol, .site-radio-dock .is-podcast .next-symbol { display: none; }
.site-radio-dock .is-playing .pause-symbol, .site-radio-dock .is-podcast .pod-skip-symbol { display: block; }
.site-radio-dock .pod-skip-symbol text { fill: currentColor; stroke: none; font: 10px Arial, sans-serif; }
.site-radio-dock button[hidden] { display: none; }
body.has-radio-dock { padding-bottom: var(--radio-dock-height, 65px); }
.live-room-drawer.has-radio-dock, body.has-radio-dock .personal-activity-drawer { padding-bottom: var(--radio-dock-height, 65px); }

.live-room-drawer-header {
  min-height: 58px;
  border-bottom: 1px solid #e1e1e1;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background: #fff;
}

.live-room-drawer-header > div {
  min-width: 0;
  padding: 9px 12px;
  display: grid;
  align-content: center;
  gap: 2px;
}

.live-room-drawer-header strong {
  font-size: 18px;
  line-height: 1;
  text-transform: lowercase;
}

.live-room-drawer-header span {
  font-size: 11px;
  line-height: 1.1;
  text-transform: lowercase;
}

.live-room-drawer-header > .live-room-header-mark {
  width: 58px;
  min-width: 58px;
  padding: 0;
  display: grid;
  place-items: center;
}

.live-room-close {
  position: relative;
  width: 58px;
  min-width: 58px;
  min-height: 58px;
  margin: -1px -1px -1px 0;
  padding: 0;
}

.toggle-button.live-room-close,
.toggle-button.live-room-close:focus-visible {
  border-color: transparent;
  background: transparent;
  color: #000;
}

.live-room-close::before,
.live-room-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 19px;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.live-room-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.live-room-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #fff;
}

.live-room-app-tabs {
  display: flex;
  min-width: 0;
  align-items: stretch;
  gap: 3px;
  padding: 0 7px;
}

.live-room-drawer-header > .live-room-navigation {
  display: flex;
  align-items: stretch;
  padding: 0;
  gap: 3px;
}

.live-room-navigation .live-room-app-tabs { padding-right: 0; }
.live-room-basement-link { text-decoration: none; }
.live-room-basement-link[hidden] { display: none; }

.live-room-app-tab {
  appearance: none;
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  flex: 0 1 48px;
  min-width: 44px;
  min-height: 58px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: .5;
}

.live-room-app-tab[aria-selected="true"],
.live-room-app-tab:hover,
.live-room-app-tab:focus-visible { opacity: 1; }

.live-room-app-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  height: 1px;
  width: 24px;
  bottom: 5px;
  background: currentColor;
}

.live-room-app-tab:focus-visible { outline: 1px solid currentColor; outline-offset: -6px; }
.live-room-app-tab > svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: .9; stroke-linecap: round; stroke-linejoin: round; }
.live-room-app-tab.is-playing > svg { stroke-width: 1.3; }
.live-room-app-tab[hidden], .live-room-join[hidden] { display: none; }

.live-room-join {
  appearance: none;
  align-self: center;
  flex: 0 0 auto;
  margin: 0 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #777;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.live-room-join:is(:hover, :focus-visible, [aria-pressed="true"]) { color: #000; }
.live-room-join[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 5px; }
.live-room-join:focus-visible { outline: 1px solid #000; outline-offset: -6px; }

@media (max-width: 380px) {
  .live-room-drawer-header > .live-room-navigation { gap: 0; }
  .live-room-navigation .live-room-app-tabs { gap: 0; padding: 0; }
  .live-room-navigation .live-room-app-tab { width: 44px; flex: 0 0 44px; }
  .live-room-drawer-header > .live-room-close { width: 44px; min-width: 44px; margin: 0; }
}

.live-room-app-panels { position: relative; min-height: 0; overflow: hidden; }
.live-room-app-panel {
  position: absolute;
  inset: 0;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 220ms ease, visibility 220ms;
  pointer-events: none;
}
.live-room-app-panel.is-before { transform: translateX(-100%); }
.live-room-app-panel.is-active { transform: translateX(0); visibility: visible; pointer-events: auto; }

.live-room-go {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 36px 22px max(36px, env(safe-area-inset-bottom));
  background: #fff;
  color: #000;
}
.live-room-go h2 { margin: 0 0 12px; font-size: 30px; font-weight: 400; line-height: 1.08; letter-spacing: -.04em; }
.live-room-go-intro { margin: 0 0 38px; font-size: 14px; line-height: 1.5; color: #777; }
.live-room-go label { display: block; margin-bottom: 10px; font-size: 11px; color: #777; }
.live-room-go-address { display: flex; min-width: 0; border: 1px solid #e1e1e1; }
.live-room-go-address:focus-within { border-color: #777; }
.live-room-go-address input { appearance: none; flex: 1; width: 0; min-width: 0; padding: 14px; border: 0; border-radius: 0; background: #fff; color: #000; font: inherit; font-size: 16px; line-height: 1.4; }
.live-room-go-address input:focus { outline: none; }
.live-room-go-address button { appearance: none; flex: 0 0 54px; padding: 12px; border: 0; border-left: 1px solid #e1e1e1; border-radius: 0; background: #fff; color: #000; font: inherit; font-size: 14px; cursor: pointer; }
.live-room-go-address button:hover, .live-room-go-address button:focus-visible { background: #000; color: #fff; }
.live-room-go-examples, #live-room-go-status { margin: 18px 0 0; font-size: 12px; line-height: 1.5; color: #777; }
.live-room-go-examples a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
#live-room-go-status { color: #c40000; }
.go-suggestions { margin-top: 14px; max-height: min(340px, 42dvh); overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid #e1e1e1; }
.go-suggestion { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; width: 100%; min-height: 44px; padding: 13px 10px; border: 0; border-bottom: 1px solid #e9e9e9; background: #fff; color: #000; text-align: left; font: inherit; font-size: 14px; line-height: 1.4; cursor: pointer; overflow-wrap: anywhere; }
.go-suggestion:hover, .go-suggestion[aria-selected="true"] { background: #f3f3f3; }
.go-suggestion-person .go-suggestion-name { text-decoration: underline; text-underline-offset: 3px; }
.go-suggestion-handle { color: #777; font-size: 11px; }
.go-search-status { margin: 14px 0 0; color: #777; font-size: 12px; line-height: 1.5; }
.go-search-status-quiet { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (max-width: 420px) {
  .live-room-go { padding-left: 20px; padding-right: 20px; }
}

.personal-activity-drawer {
  border-left: 1px solid #e1e1e1;
  background: #fff;
  color: #000;
}

.personal-activity-drawer-header {
  min-height: 58px;
  border-bottom: 1px solid #e1e1e1;
  background: #fff;
  color: #000;
}

.personal-activity-drawer .toggle-button.live-room-close,
.personal-activity-drawer .toggle-button.live-room-close:focus-visible {
  border: 0;
  background: transparent;
  color: #000;
}

.personal-activity-drawer-header > .personal-activity-header-mark {
  width: 58px;
  min-width: 58px;
  padding: 0;
  display: grid;
  place-items: center;
}

.personal-activity-header-mark svg {
  width: 27px;
  height: 27px;
  overflow: visible;
}

.personal-activity-header-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.9;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.personal-activity-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.personal-activity-day {
  padding-bottom: 0;
}

.personal-activity-day > h2 {
  margin: 0;
  padding: 34px 22px 7px;
  font-size: clamp(26px, 2.6vw, 30px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-transform: lowercase;
}

.personal-activity-day-count {
  margin: 0;
  padding: 0 22px 28px;
  color: #777;
  font-size: 11px;
  line-height: 1.2;
}

.personal-activity-events {
  border-top: 1px solid #e1e1e1;
}

.personal-activity-event {
  padding: 21px 22px 19px;
  border-bottom: 1px solid #e1e1e1;
}

.personal-activity-event p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.personal-activity-event a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.personal-activity-event q::before,
.personal-activity-event q::after {
  content: none;
}

.personal-activity-event q {
  font-style: italic;
}

.personal-activity-event .personal-activity-reply-context {
  margin-top: 9px;
  color: #777;
  font-size: 11px;
  line-height: 1.35;
}

.personal-activity-event time {
  display: block;
  margin-top: 7px;
  color: #777;
  font-size: 10px;
  line-height: 1;
}

.personal-activity-event time.personal-activity-inline-time {
  display: inline;
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.personal-activity-more {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 0;
  padding: 20px 22px;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.personal-activity-more:disabled {
  color: #999;
  cursor: default;
}

.personal-activity-status {
  margin: 0;
  padding: 18px;
  color: #777;
  font-size: 11px;
  line-height: 1.25;
  text-transform: lowercase;
}

.personal-activity-status[data-kind="error"] {
  color: #d60000;
}

.personal-activity-announcement-label { margin-bottom: 12px; color: #777; font-size: 11px; line-height: 1.4; }
.personal-activity-announcement-label a { color: inherit; text-underline-offset: 2px; }
.personal-activity-announcement p { white-space: pre-wrap; }
.personal-activity-announcement strong { font-weight: 700; }

.live-room-drawer.is-dark-mode,
.live-room-drawer.is-dark-mode .live-room-drawer-header {
  border-color: #333;
  background: #000;
  color: #fff;
}

.live-room-drawer.is-dark-mode .live-room-close {
  border-color: transparent;
  color: #fff;
}

.live-room-drawer.is-dark-mode .live-room-frame {
  background: #000;
}

body.live-room-open {
  overflow: hidden;
}

@media (min-width: 701px) {
  .live-room-backdrop {
    display: none;
  }
}

@media (max-width: 700px) {
  .live-room-backdrop {
    display: none;
  }

  .live-room-drawer {
    width: 100vw;
    border-left: 0;
  }

  .live-room-drawer-header {
    padding-top: env(safe-area-inset-top);
  }

  .personal-activity-day > h2 {
    padding-top: 31px;
    font-size: 30px;
  }

  .personal-activity-event p {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-room-drawer,
  .live-room-app-panel {
    transition: none;
  }
}

.toggle-button {
  appearance: none;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 13px;
  padding: 10px 14px;
  min-height: 39px;
  border-radius: 0;
  cursor: pointer;
  margin-right: -1px;
}

.toggle-button.is-active {
  background: #000;
  color: #fff;
}

.refresh-toggle {
  min-width: 39px;
  padding-left: 12px;
  padding-right: 12px;
  font-size: 16px;
  line-height: 1;
}

.toggle-button.post-toggle {
  position: relative;
  width: 39px;
  min-width: 39px;
  height: 39px;
  min-height: 39px;
  padding: 0;
}

.post-toggle::before,
.post-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.post-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.refresh-toggle-icon {
  display: inline-block;
  transform-origin: 50% 50%;
}

.refresh-toggle.is-refreshing .refresh-toggle-icon {
  animation: refresh-spin 560ms cubic-bezier(0.22, 0.61, 0.36, 1) 1;
}

@keyframes refresh-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .refresh-toggle.is-refreshing .refresh-toggle-icon {
    animation: none;
  }
}

.show-menu-trigger {
  background: #fff;
  color: #000;
}

@media (hover: hover) and (pointer: fine) {
  .toggle-button:not(.is-active):hover {
    background: #d9d9d9;
  }

  .toggle-button.live-room-close:not(.is-active):hover {
    background: #f3f3f3;
    color: #000;
  }

  .live-room-drawer.is-dark-mode .toggle-button.live-room-close:not(.is-active):hover {
    background: #171717;
    color: #fff;
  }

  body[data-view="post"] .toggle-button[data-feed].is-active:hover {
    background: #d9d9d9;
    color: #000;
  }

  .show-menu-option:hover,
  .post-action:hover {
    background: #000;
    color: #fff;
  }

}

.show-menu {
  position: relative;
}

.profile-sort-menu {
  position: relative;
  pointer-events: auto;
}

.presence-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 0;
  padding: 8px 12px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-size: 13px;
  line-height: normal;
  white-space: nowrap;
  user-select: none;
  appearance: none;
  font: inherit;
}

.presence-live-dot {
  width: 8px;
  height: 8px;
  background: #cf0018;
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.08);
  animation: presence-pulse 1.95s ease-in-out infinite;
}

.presence-count {
  min-width: 2ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@keyframes presence-pulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.78;
  }

  45% {
    transform: scale(1);
    opacity: 0.94;
  }

  55% {
    transform: scale(1.18);
    opacity: 1;
  }

  70% {
    transform: scale(0.98);
    opacity: 0.9;
  }
}

.show-menu summary,
.profile-sort-menu summary,
.basement-sort-menu summary {
  list-style: none;
}

.show-menu summary::-webkit-details-marker,
.profile-sort-menu summary::-webkit-details-marker,
.basement-sort-menu summary::-webkit-details-marker {
  display: none;
}

.show-menu-panel {
  position: absolute;
  top: calc(100% - 1px);
  right: 0;
  display: grid;
  min-width: 192px;
}

.show-menu-option {
  appearance: none;
  border: 1px solid #000;
  border-top: 0;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 13px;
  padding: 10px 14px;
  text-align: left;
  border-radius: 0;
  cursor: pointer;
}

.show-menu-option.is-active {
  background: #000;
  color: #fff;
}

.basement-audience-option + .basement-sort-option {
  border-top: 1px solid #000;
}

.selection-share {
  position: fixed;
  z-index: 30;
  appearance: none;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font: inherit;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.story-feed {
  width: 100%;
  overflow-x: hidden;
  padding-top: var(--nav-offset);
}

.feed-standby {
  min-height: calc(100svh - var(--nav-offset));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  text-transform: lowercase;
}

.room-list-view {
  max-width: 1200px;
  padding: calc(var(--nav-offset) + 28px) 28px 48px;
}

.room-list-title {
  margin: 0 0 24px;
  font-size: clamp(4rem, 15vw, 14rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.06em;
}

.room-list-dek {
  margin: 0 0 24px;
  font-size: clamp(1.1rem, 2vw, 2rem);
  line-height: 1;
}

.room-list {
  margin: 0;
  padding: 0;
  list-style-position: inside;
  font-size: clamp(2.5rem, 8vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.room-list li {
  margin: 0 0 0.18em;
}

.room-list a {
  color: inherit;
  text-decoration: underline;
}

.room-list span {
  display: block;
  margin: 0.2em 0 0.6em;
  color: #666;
  font-size: clamp(1rem, 1.8vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.story {
  min-height: 100svh;
  width: 100%;
  background: var(--bg);
  color: var(--fg);
  scroll-margin-top: var(--post-scroll-offset);
  position: relative;
}

.story-inner {
  min-height: 100svh;
  width: 100%;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  transition: none;
  will-change: auto;
}

.story-content {
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: hidden;
}

.story.is-dim .story-inner {
  opacity: 1;
  transform: none;
  filter: none;
}

.story.story-audio {
  min-height: auto;
}

.story.story-audio .story-inner {
  min-height: auto;
}

.story.is-active .story-inner {
  opacity: 1;
  transform: none;
  filter: none;
}

.panel {
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.panel.text {
  padding: 1.1vw 1.4vw 1.5vw 1.2vw;
  background: #fff;
  color: #000;
  display: block;
}

.panel.text p {
  margin: 0;
  width: 100%;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(70px, 10.7vw, 212px);
  line-height: 0.94;
  letter-spacing: 0.01em;
  font-weight: 400;
  text-wrap: balance;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.story-text-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.055em;
  text-underline-offset: 0.09em;
  cursor: pointer;
}

.panel.text.fourth-of-july-panel {
  background: #000;
  color: #fff;
}

.fourth-of-july-letter {
  animation: fourth-of-july-letter-color 1.8s steps(1, end) infinite;
  animation-delay: calc(var(--letter-index, 0) * -0.13s);
}

@keyframes fourth-of-july-letter-color {
  0%,
  100% {
    color: #ff1f1f;
  }

  33% {
    color: #ffffff;
  }

  66% {
    color: #245cff;
  }
}

body[data-view="post"] .story.story-short-text,
body[data-view="post"] .story.story-short-text .story-inner,
body[data-view="post"] .story.story-short-text .panel.text {
  min-height: auto;
}

body[data-view="post"] .story.story-short-text .panel.text {
  padding-top: clamp(88px, 12.8vw, 192px);
  padding-bottom: clamp(104px, 15.2vw, 224px);
}

body[data-view="post"] .story.story-short-text .panel.text p {
  font-size: clamp(88px, 13.4vw, 265px);
}

body[data-view="post"] .story.story-short-text .panel.text.panel-text-size-small p {
  font-size: clamp(76px, 11.8vw, 220px);
}

body[data-view="post"] .story.story-short-text .panel.text.panel-text-size-large p {
  font-size: clamp(108px, 15.4vw, 310px);
}

.read-more {
  appearance: none;
  border: 1px solid #000;
  background: rgba(255, 255, 255, 0.94);
  color: #000;
  font: inherit;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 14px;
}

.panel.image {
  padding: 0;
  background: #000;
  justify-content: center;
}

.panel.image img {
  width: 100%;
  min-height: 100svh;
  object-fit: cover;
  display: block;
}

.panel.audio {
  background: #fff;
  color: #000;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.audio-shell {
  width: min(100%, 1040px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 36px;
  padding: 40px 30px;
}

.audio-artwork {
  min-width: 0;
  margin: 0;
}

.audio-cover {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  color: #777;
  background: #f5f5f3;
  text-decoration: none;
}

.audio-cover-placeholder {
  font-size: clamp(18px, 3vw, 40px);
  letter-spacing: -0.055em;
}

.audio-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  opacity: 0;
}

.audio-cover.has-artwork img { opacity: 1; }
.audio-cover.has-artwork .audio-cover-placeholder { visibility: hidden; }

.audio-artwork-credit {
  min-height: 24px;
  padding-top: 7px;
  font-size: 11px;
  line-height: 1.4;
  color: #666;
  overflow-wrap: anywhere;
}

.audio-info { min-width: 0; }

.audio-label {
  display: block;
  color: #000;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.audio-byline {
  margin-top: 10px;
  color: #666;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.audio-byline a, .audio-artwork-credit a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.story.story-audio .post-footer { margin-top: 0; }

.audio-ui {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "track" "time" "toggle";
  align-items: center;
  gap: 0;
  padding: 14px 0 0;
  border: 0;
  background: #fff;
}

.audio-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 14px;
  border-top: 1px solid #dedede;
  margin-top: 10px;
}

.audio-radio-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #000;
  font-size: 13px;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.audio-radio-link:hover { text-decoration: none; }
.audio-cover:focus-visible, .audio-label:focus-visible, .audio-toggle:focus-visible { outline: 2px solid #000; outline-offset: -2px; }

.post-action.audio-radio-skip-button {
  min-height: 44px;
  width: auto;
  margin: 0;
  padding: 0;
}

.audio-media {
  display: none;
}

.audio-toggle {
  grid-area: toggle;
  appearance: none;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  display: grid;
  place-items: center;
  justify-self: center;
  min-height: 48px;
  width: 48px;
  cursor: pointer;
}

.audio-toggle svg { width: 30px; height: 30px; fill: none; stroke: currentColor; }
.audio-toggle .audio-play-symbol { fill: currentColor; stroke: none; }
.audio-toggle .audio-pause-symbol { display: none; stroke-width: 3; }
.audio-toggle.is-playing .audio-play-symbol { display: none; }
.audio-toggle.is-playing .audio-pause-symbol { display: block; }
.audio-toggle:hover { background: #f1f1f1; }

.audio-timeline {
  grid-area: track;
  min-width: 0;
  display: flex;
  align-items: center;
  min-height: 32px;
}

.audio-seek {
  --audio-progress: 0%;
  height: 44px;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background: transparent;
  margin: 0;
}

.audio-seek::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(to right, #000 var(--audio-progress), #ddd var(--audio-progress));
}

.audio-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #000;
  margin-top: -7px;
  border-radius: 0;
}

.audio-seek::-moz-range-track {
  height: 2px;
  background: #ddd;
  border: 0;
}

.audio-seek::-moz-range-progress {
  height: 2px;
  background: #000;
}

.audio-seek::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #000;
  border: 0;
  border-radius: 0;
}

.audio-time {
  grid-area: time;
  display: flex;
  justify-content: space-between;
  min-width: 0;
  color: #666;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.post-footer {
  border-bottom: 1px solid #000;
  padding: 16px 1.2vw 22px;
  display: grid;
  gap: 18px;
}

/* A raw URL in a comment must never become the post footer's minimum width.
   Keep the complete post-view footer inside the viewport and let its existing
   flex groups wrap normally on narrow screens. */
body[data-view="post"] .post-footer,
body[data-view="post"] .post-footer > *,
body[data-view="post"] .comments,
body[data-view="post"] .comments-list,
body[data-view="post"] .comment,
body[data-view="post"] .comment-form {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

body[data-view="post"] .post-actions,
body[data-view="post"] .post-actions-group {
  min-width: 0;
  max-width: 100%;
}

body[data-view="post"] .post-meta,
body[data-view="post"] .comment-body,
body[data-view="post"] .comment-body-link {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.post-meta {
  font-size: clamp(14px, 1.55vw, 22px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.post-meta-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 4px;
  align-items: center;
}

.post-actions-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
}

.post-actions-group:empty {
  display: none;
}

.post-room-tag { position: relative; }
.post-actions-primary { align-items: flex-start; }
.post-room-tag > summary { list-style: none; }
.post-room-tag > summary::-webkit-details-marker { display: none; }
.post-room-tag[open] > summary { background: #000; color: #fff; }
.post-room-choices {
  position: absolute;
  z-index: 12;
  top: calc(100% - 1px);
  right: 0;
  display: flex;
  flex-direction: column;
  min-width: 170px;
  max-width: min(280px, calc(100vw - 32px));
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #000;
}
.post-room-tag:not([open]) > .post-room-choices { display: none; }
.post-room-choices > .post-action {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(0,0,0,.18);
  text-align: left;
  margin: 0;
  min-height: 40px;
}
.post-room-choices > .post-action:last-child { border-bottom: 0; }
.poke-confirmation {
  box-sizing: border-box;
  width: min(440px, calc(100vw - 36px));
  padding: 24px;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  font: 20px/1.35 "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.poke-confirmation::backdrop { background: rgba(0,0,0,.28); }
.poke-confirmation p { margin: 0 0 24px; }
.poke-confirmation .post-actions-group { gap: 10px; }
.poke-confirmation .post-action {
  min-width: 84px;
  min-height: 44px;
  margin: 0;
  font-size: 16px;
  background: #fff;
  color: #000;
}
.poke-confirmation .post-action:last-child { background: #000; color: #fff; }
.poke-confirmation .post-action:focus { outline: none; }
.poke-confirmation .post-action:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.poke-result { display: block; font-size: 12px; color: #777; margin: 6px; }
.personal-activity-event > .post-action-poke { display: block; margin-top: 10px; }
.personal-activity-requested-poke { margin-bottom: 20px; }

.post-actions-danger {
  align-items: stretch;
}

.post-action {
  appearance: none;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 12px;
  padding: 8px 11px;
  border-radius: 0;
  cursor: pointer;
  margin-right: -1px;
}

.post-actions-danger .post-action {
  color: #550000;
}

@media (hover: hover) and (pointer: fine) {
  .post-actions-danger .post-action:hover,
  .post-actions-danger .post-action:focus-visible {
    background: #000;
    color: #fff;
    outline: none;
  }
}

.post-actions-god {
  position: relative;
  margin-left: auto;
}

.post-actions-god summary {
  list-style: none;
}

.post-actions-god summary::-webkit-details-marker {
  display: none;
}

.post-actions-god .post-actions-danger {
  position: absolute;
  top: auto;
  bottom: calc(100% - 1px);
  right: 0;
  z-index: 5;
  background: #fff;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: max-content;
}

.post-actions-god:not([open]) .post-actions-danger {
  display: none;
}

.post-actions-safety {
  display: none !important;
  position: relative;
}

.post-actions-safety > summary {
  list-style: none;
}

.post-actions-safety > summary::-webkit-details-marker {
  display: none;
}

.post-actions-safety[open] > .post-action-911 {
  background: #000;
  color: #fff;
}

.post-actions-safety-panel {
  display: flex;
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  z-index: 6;
  min-width: max-content;
  background: #fff;
}

.post-actions-safety:not([open]) .post-actions-safety-panel {
  display: none;
}

.post-actions-safety-panel .post-action {
  margin-right: -1px;
}

.post-action.is-active {
  background: #000;
  color: #fff;
}

.feed-blocked-message {
  grid-column: 1 / -1;
  padding: max(90px, 18vh) 18px 40px;
  font-size: clamp(42px, 8vw, 120px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  max-width: 14ch;
}

.feed-blocked-message.basement-member-gate {
  padding: max(90px, 18vh) 16px 48px;
  max-width: 24ch;
  color: #000;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(56px, 4.9vw, 88px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0.01em;
  text-transform: lowercase;
}

.basement-member-gate a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.055em;
  text-underline-offset: 0.09em;
}

.basement-member-gate a:hover,
.basement-member-gate a:focus-visible {
  background: #000;
  color: #fff;
  outline: none;
  text-decoration: none;
}

@media (max-width: 760px) {
  .feed-blocked-message.basement-member-gate {
    padding: 118px 8px 40px;
    font-size: clamp(52px, 14vw, 74px);
  }
}

.post-actions-danger .post-action.is-active {
  color: #fff;
}

.post-action.post-action-radio-skip,
.post-action.post-action-radio-skip:hover,
.post-action.post-action-radio-skip:active {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #bdbdbd;
  font-size: 11px;
  min-height: 44px;
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.post-action.post-action-radio-skip:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.comments {
  display: none;
  border-top: 1px solid #000;
  padding-top: 10px;
  gap: 10px;
}

.comments.is-open {
  display: grid;
}

.comments-list {
  display: grid;
  gap: 10px;
}

.comment {
  border-bottom: 1px solid #000;
  padding-bottom: 8px;
}

.comment.is-reply {
  margin-left: 18px;
}

.comment-name,
.comment-time {
  font-size: 12px;
  line-height: 1.05;
}

.comment-name {
  color: #000;
}

.comment-name-link {
  display: inline-block;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.comment-body,
.comment-empty {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.2;
}

.comment-body-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.08em;
}

.comment-reply-context {
  margin-top: 5px;
  color: #777;
  font-size: 11px;
  line-height: 1.25;
}

.comment-reply-parent-name {
  color: #000;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 8px;
}

.comment-actions .post-action {
  margin-right: -1px;
}

.comment-replying-to {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  border: 1px solid #d8d8d8;
  background: #f7f7f7;
  color: #555;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.25;
}

.comment-replying-to strong,
.comment-replying-to span {
  display: block;
}

.comment-replying-to strong {
  margin-bottom: 3px;
  color: #000;
  font-weight: 400;
}

.comment-reply-cancel {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #777;
  padding: 0;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 760px) {
  .comment.is-reply {
    margin-left: 10px;
  }
}

.comment-form {
  display: grid;
  gap: 8px;
  width: min(720px, 100%);
  margin: 6px auto 0;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  padding: 10px;
  font: inherit;
  font-size: 12px;
}

.comment-form textarea {
  min-height: 84px;
  resize: vertical;
}

.mention-suggestions {
  position: relative;
  z-index: 8;
  width: 100%;
  max-height: min(260px, 42vh);
  margin-top: -1px;
  overflow-y: auto;
  border: 1px solid #b8b8b8;
  background: #fff;
  box-shadow: 0 7px 16px rgb(0 0 0 / 9%);
}

.mention-suggestions[hidden] {
  display: none !important;
}

.mention-suggestion {
  appearance: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 38px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #d8d8d8;
  border-radius: 0;
  background: #fff;
  color: #000;
  padding: 9px 11px;
  font: inherit;
  font-size: 13px;
  line-height: 1.15;
  text-align: left;
  cursor: pointer;
}

.mention-suggestion:last-child {
  border-bottom: 0;
}

.mention-suggestion-name {
  min-width: 0;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mention-suggestion-handle {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #777;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mention-suggestion:hover,
.mention-suggestion:focus-visible,
.mention-suggestion.is-active {
  outline: none;
  background: #f0f0f0;
}

.mention-link {
  text-decoration: underline;
  text-underline-offset: 0.08em;
}

.comment-link-tools {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.comment-link-button {
  background: #000;
  color: #fff;
  flex: 0 0 auto;
}

.comment-link-hint {
  color: #888;
  font-size: 12px;
  font-style: italic;
  line-height: 1.2;
}

.comment-form-actions {
  display: flex;
  justify-content: center;
  gap: 0;
}

.comment-form-actions .post-action {
  margin-right: -1px;
}

.panel.inverse {
  background: #000000;
  color: #ffffff;
}

.panel.grey {
  background: #e1e1e1;
  color: #ffffff;
}

.panel.rain {
  background: #ffffff;
  color: #9168c6;
}

.panel.cloud {
  background: #ffffff;
  color: #e1e1e1;
}

.panel.love {
  background: #ffffff;
  color: #a81510;
}

.panel.sky {
  background: #ffffff;
  color: #96cbf5;
}

.panel.bubble {
  background: #ffffff;
  color: #f48fb1;
}

.panel.pepto {
  background: #e0218a;
  color: #ffffff;
}

.panel.dirt-baby {
  background: #ffffff;
  color: #6b4a2d;
}

.panel.cumbalt,
body[data-view="grid"] .story.story-tone-cumbalt {
  background: #0047ff;
  color: #ffffff;
}

.panel.hyperlink {
  background: #ffffff;
  color: #0a2feb;
}

/* One color change per second; the black background stays still. */
.panel.flasher {
  background: #000000;
  color: #ff7a00;
  animation: flasher-text-color 2s step-end infinite;
}

.panel.vamp {
  background: #000000;
  color: #ff3030;
}

body[data-view="grid"] .story.story-tone-flasher,
body[data-view="grid"] .story.story-tone-vamp {
  background: #000000;
}

body[data-view="grid"] .story.story-tone-flood,
body[data-view="grid"] .story.story-tone-cum {
  background: #ffffff;
}

/* Rainbow changes text once per second on a fixed white background. */
.panel.rainbow {
  background: #ffffff;
  color: #d91c27;
  animation: rainbow-text-color 7s step-end infinite;
}

@keyframes rainbow-text-color {
  0%, 100% { color: #d91c27; }
  14.285714% { color: #d85a00; }
  28.571429% { color: #b88600; }
  42.857143% { color: #07823d; }
  57.142857% { color: #0057d9; }
  71.428571% { color: #5c39cc; }
  85.714286% { color: #ae21a4; }
}

@media (prefers-reduced-motion: reduce) {
  .panel.rainbow { animation: none; color: #d91c27; }
}

body[data-view="grid"] .story.story-tone-rainbow { background: #ffffff; }

@keyframes flasher-text-color {
  0%, 100% { color: #ff7a00; }
  50% { color: #ffffff; }
}

@media (prefers-reduced-motion: reduce) {
  .panel.flasher {
    animation: none;
    color: #ff7a00;
  }
}

@keyframes green-dog-drift {
  0% { color: #0a7569; }
  13% { color: #0b806f; }
  32% { color: #078a7a; }
  51% { color: #0b7166; }
  73% { color: #118777; }
  89% { color: #08796d; }
  100% { color: #0a7569; }
}

.panel.green-dog,
body[data-view="grid"] .story.story-tone-green-dog {
  background: #ffffff;
  color: #0a7569;
  animation: green-dog-drift 20s ease-in-out infinite;
  will-change: color;
}

@keyframes green-girl-drift {
  0% {
    background-color: #0a7569;
  }
  13% {
    background-color: #0b806f;
  }
  32% {
    background-color: #078a7a;
  }
  51% {
    background-color: #0b7166;
  }
  73% {
    background-color: #118777;
  }
  89% {
    background-color: #08796d;
  }
  100% {
    background-color: #0a7569;
  }
}

.panel.green-girl,
body[data-view="grid"] .story.story-tone-green-girl {
  background-color: #0a7569;
  background-image: none;
  color: #ffffff;
  animation: green-girl-drift 20s ease-in-out infinite;
  will-change: background-color;
}

@keyframes warm-tone-pulse {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.panel.warm,
body[data-view="grid"] .story.story-tone-warm {
  background-color: #f6eacc;
  background-image: linear-gradient(120deg, #fbf3df 0%, #f6eacc 50%, #ead19a 100%);
  background-size: 200% 200%;
  color: #ffffff;
  animation: warm-tone-pulse 10s ease-in-out infinite;
}

body[data-view="grid"] {
  overflow-y: auto;
}

body[data-view="grid"] .story-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 39px;
}

body[data-view="grid"] .story {
  min-height: auto;
}

/* Grid rows match the height of their tallest tile. Keep any remaining area
   on a shorter colored text tile in that post's chosen color. */
body[data-view="grid"] .story.story-tone-black {
  background: #000000;
  color: #ffffff;
}

body[data-view="grid"] .story.story-tone-grey {
  background: #e1e1e1;
  color: #ffffff;
}

body[data-view="grid"] .story.story-tone-rain {
  background: #ffffff;
  color: #9168c6;
}

body[data-view="grid"] .story.story-tone-cloud {
  background: #ffffff;
  color: #e1e1e1;
}

body[data-view="grid"] .story.story-tone-love {
  background: #ffffff;
  color: #a81510;
}

body[data-view="grid"] .story.story-tone-sky {
  background: #ffffff;
  color: #96cbf5;
}

body[data-view="grid"] .story.story-tone-bubble {
  background: #ffffff;
  color: #f48fb1;
}

body[data-view="grid"] .story.story-tone-pepto {
  background: #e0218a;
  color: #ffffff;
}

body[data-view="grid"] .story.story-tone-dirt-baby {
  background: #ffffff;
  color: #6b4a2d;
}

body[data-view="grid"] .story.story-tone-hyperlink {
  background: #ffffff;
  color: #0a2feb;
}

body[data-view="grid"] .story.story-tone-green-girl .panel.green-girl {
  background: transparent;
  animation: none;
}

body[data-view="grid"] .story.story-tone-warm .panel.warm {
  background: transparent;
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .panel.warm,
  body[data-view="grid"] .story.story-tone-warm,
  .panel.green-girl,
  body[data-view="grid"] .story.story-tone-green-girl {
    background: #f6eacc;
    animation: none;
  }

  .panel.green-girl,
  body[data-view="grid"] .story.story-tone-green-girl {
    background: #0a7569;
  }

  .panel.green-dog,
  body[data-view="grid"] .story.story-tone-green-dog {
    color: #0a7569;
    animation: none;
  }
}

body[data-view="grid"] .story-inner {
  min-height: auto;
  opacity: 1;
  transform: none;
  filter: none;
}

body[data-view="grid"] .panel.text {
  padding: 14px;
}

body[data-view="grid"] .panel.text p {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(19px, 2vw, 39px);
  line-height: 0.985;
  letter-spacing: 0.01em;
  font-weight: 400;
}

body[data-view="grid"] .panel.text.panel-text-size-small p {
  font-size: clamp(16px, 1.65vw, 32px);
}

body[data-view="grid"] .panel.text.panel-text-size-large p {
  font-size: clamp(24px, 2.45vw, 48px);
}

body[data-view="grid"] .read-more {
  margin-top: 12px;
}

body[data-view="grid"] .panel {
  min-height: 33vw;
}

body[data-view="grid"] .panel.text.panel-text-short {
  min-height: 22vw;
}

body[data-view="grid"] .panel.text.panel-text-short.panel-text-size-small p {
  font-size: clamp(22px, 2.6vw, 44px);
}

body[data-view="grid"] .panel.text.panel-text-short.panel-text-size-large p {
  font-size: clamp(32px, 4vw, 76px);
}

body[data-view="grid"] .panel.image img {
  min-height: 33vw;
}

/* Keep main-feed photographs at their original grid proportions. If a grid
   row is taller than its photo, the remaining tile space stays white and sits
   beneath the image, like an organic photo grid. */
body[data-view="grid"] .story-content[data-kind="image"] .panel.image {
  background: #fff;
  justify-content: flex-start;
}

body[data-view="grid"] .story-inner:has(.story-content[data-kind="image"]),
body[data-view="grid"] .story-content[data-kind="image"],
body[data-view="grid"] .story-content[data-kind="image"] .panel.image {
  height: 100%;
}

/* Unholyheifer prefers a flush profile grid. Keep the site's organic image
   spacing everywhere else, and keep this crop out of post view. */
body[data-view="grid"].profile-grid-flush .story-content[data-kind="image"] .panel.image img {
  height: 100%;
}

body[data-view="grid"] .panel.audio {
  min-height: 0;
  padding: 0;
  align-items: stretch;
  justify-content: flex-start;
}

body[data-view="grid"] .audio-shell {
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  padding: 0;
  gap: 0;
  background: #fff;
}

/* The grid shows artwork and transport only. Full post credits stay intact. */
body[data-view="grid"] .audio-cover img {
  object-fit: cover;
}

body[data-view="grid"] .audio-label,
body[data-view="grid"] .audio-byline,
body[data-view="grid"] .audio-artwork-credit,
body[data-view="grid"] .audio-card-actions {
  display: none;
}

body[data-view="grid"] .audio-info { padding: 0 10px 8px; }
body[data-view="grid"] .audio-ui { padding-top: 12px; }
body[data-view="grid"] .audio-toggle { font-size: 18px; }
body[data-view="grid"] .audio-time { font-size: 12px; }

body[data-view="grid"] .story {
  min-width: 0;
  cursor: pointer;
  position: relative;
}

body[data-view="grid"] .grid-story-permalink {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  color: inherit;
  text-decoration: none;
}

body[data-view="grid"] .story-text-link {
  position: relative;
  z-index: 4;
}

body[data-view="grid"] .story-content,
body[data-view="grid"] .panel.audio,
body[data-view="grid"] .audio-shell,
body[data-view="grid"] .audio-ui {
  min-width: 0;
}


body[data-view="grid"] .post-footer {
  display: none;
}

.editor-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 40;
  width: min(520px, 100vw);
  background: rgba(255, 255, 255, 0.94);
  border-left: 1px solid #000;
  backdrop-filter: blur(14px);
}

.auth-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 45;
  width: min(420px, 100vw);
  background: rgba(255, 255, 255, 0.96);
  border-left: 1px solid #000;
  backdrop-filter: blur(14px);
}

.editor-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.editor-header,
.editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #000;
}

.poster-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #000;
  padding: 0 14px;
}

.poster-tab {
  appearance: none;
  border: 1px solid #000;
  border-bottom: 0;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 13px;
  padding: 10px 14px;
  min-height: 39px;
  border-radius: 0;
  cursor: pointer;
  margin-right: -1px;
}

.poster-tab.is-active {
  background: #000;
  color: #fff;
}

.editor-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
}

.editor-layout.is-edit-mode {
  grid-template-columns: 160px minmax(0, 1fr);
}

.editor-list {
  min-height: 0;
  overflow: auto;
  border-right: 1px solid #000;
}

.editor-item {
  width: 100%;
  appearance: none;
  border: 0;
  border-bottom: 1px solid #000;
  background: #fff;
  color: #000;
  text-align: left;
  padding: 12px;
  font: inherit;
  cursor: pointer;
}

.editor-item.is-active {
  background: #000;
  color: #fff;
}

.editor-form {
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.auth-form {
  min-height: 0;
  overflow: auto;
  padding: 14px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.auth-form.is-submitted {
  min-height: 340px;
  background: #000;
  color: #fff;
  align-content: center;
  justify-items: center;
  padding: 18px 14px;
}

.auth-form.is-submitted .join-copy,
.auth-form.is-submitted .editor-label,
.auth-form.is-submitted #join-login-link,
.auth-form.is-submitted #join-submit {
  display: none;
}

.auth-form.is-submitted .auth-status {
  color: #fff;
  font-size: 15px;
  line-height: 1.3;
  max-width: 22ch;
  text-align: left;
}

.auth-form.is-submitted .editor-actions {
  width: auto;
  justify-content: center;
}

.auth-form.is-submitted #join-ok {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.join-copy {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  text-transform: lowercase;
}

.editor-label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  text-transform: lowercase;
}

#post-destination-field[hidden],
#post-audience-field[hidden] {
  display: none !important;
}

.editor-label-title {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: lowercase;
}

.editor-label input,
.editor-label textarea,
.editor-label select {
  width: 100%;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  padding: 10px;
  font: inherit;
  font-size: 14px;
}

#post-label {
  max-width: 220px;
  padding: 8px 10px;
  font-size: 13px;
}

.editor-label textarea {
  resize: vertical;
  min-height: 140px;
}

.editor-inline-action {
  justify-self: start;
  appearance: none;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 12px;
  padding: 7px 10px;
  cursor: pointer;
  text-transform: lowercase;
}

@media (hover: hover) and (pointer: fine) {
  .editor-inline-action:hover {
    background: #000;
    color: #fff;
  }
}

.editor-helper-note {
  margin: -2px 0 0;
  color: #8a8a8a;
  font-size: 12px;
  font-style: italic;
  line-height: 1.3;
  text-transform: none;
}

.editor-soundtrack {
  min-width: 0;
  display: grid;
  gap: 8px;
  font-size: 12px;
  text-transform: lowercase;
}

.editor-soundtrack[hidden] {
  display: none;
}

.editor-soundtrack-heading,
.editor-soundtrack-selected-row,
.editor-soundtrack-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.editor-soundtrack-heading {
  font-size: 13px;
}

.editor-soundtrack-open {
  width: 100%;
  min-height: 38px;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  padding: 10px;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  text-transform: lowercase;
}

.editor-soundtrack-open::after {
  content: "+";
  float: right;
}

.editor-soundtrack-open[aria-expanded="true"]::after {
  content: "−";
}

.editor-soundtrack-selected-row {
  width: 100%;
  min-width: 0;
  border: 1px solid #000;
  padding: 8px 10px;
}

.editor-soundtrack-selected-copy,
.editor-soundtrack-option-copy {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-soundtrack-picker {
  display: grid;
  gap: 8px;
}

.editor-soundtrack-picker[hidden] {
  display: none;
}

.editor-soundtrack-upload-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
}

.editor-soundtrack-upload {
  flex: 0 0 auto;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  padding: 8px 10px;
  cursor: pointer;
}

.editor-soundtrack-selected-name {
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  border-bottom: 1px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  padding: 3px 0;
  font: inherit;
}

.editor-soundtrack-picker input {
  width: 100%;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  padding: 9px 10px;
  font: inherit;
  font-size: 13px;
}

.editor-soundtrack-list {
  max-height: 260px;
  overflow: auto;
  border: 1px solid #000;
  background: #fff;
  color: #000;
}

.editor-soundtrack-option {
  padding: 7px 8px;
  border-bottom: 1px solid #000;
}

.editor-soundtrack-option:last-child {
  border-bottom: 0;
}

.editor-soundtrack-option button,
.editor-soundtrack-selected-row button {
  flex: 0 0 auto;
}

.editor-soundtrack-option .editor-soundtrack-title {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .editor-soundtrack-option:hover {
    background: #000;
    color: #fff;
  }
}

/* Sound picker: calm metadata, real touch targets, one shared public library. */
.editor-soundtrack-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, .6fr);
  gap: 12px;
  min-width: 0;
}
.editor-soundtrack-filters input,
.editor-soundtrack-filters select {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid #ddd;
  border-radius: 0;
  padding: 8px 0;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 16px;
}
.editor-soundtrack-hint {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #777;
  padding: 3px 0;
}
.editor-soundtrack-list { max-height: min(360px, 45dvh); border-color: #ddd; overscroll-behavior: contain; }
.editor-soundtrack-option { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; gap: 8px; border-color: #e1e1e1; padding: 8px; }
.editor-soundtrack-art { width: 42px; height: 42px; display: grid; place-items: center; background: #f3f3f3; color: #777; }
.editor-soundtrack-art img { width: 100%; height: 100%; object-fit: cover; }
.editor-soundtrack-option .editor-soundtrack-title { white-space: normal; text-transform: none; min-height: 44px; line-height: 1.35; }
.editor-soundtrack-title > span,
.editor-soundtrack-title > small { display: block; overflow-wrap: anywhere; }
.editor-soundtrack-title > span { font-size: 13px; }
.editor-soundtrack-title > small { font-size: 11px; color: #777; margin-top: 3px; }
.editor-soundtrack-option .editor-inline-action { min-height: 44px; padding: 4px; background: transparent; color: inherit; border: 0; font-size: 12px; white-space: nowrap; }
.editor-soundtrack-more { width: 100%; min-height: 44px; }
.editor-soundtrack-selected-copy { text-transform: none; }
.editor-soundtrack-option:focus-within { outline: 1px solid #777; outline-offset: -1px; }
@media (hover: hover) and (pointer: fine) {
  .editor-soundtrack-option:hover .editor-soundtrack-title > small { color: #bbb; }
}
@media (max-width: 420px) {
  .editor-soundtrack-option { grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 5px; padding: 7px 5px; }
  .editor-soundtrack-art { width: 34px; height: 34px; }
}

.post-soundtrack {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid #000;
  background: #000;
  color: #fff;
  font-size: 13px;
  line-height: 1.15;
}

.post-soundtrack-credit {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.post-soundtrack-track,
.post-soundtrack-author {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.post-soundtrack-track {
  min-width: 0;
  display: inline-flex;
  align-items: center;
}

.post-soundtrack-wave {
  height: 12px;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  margin-right: 6px;
}

.post-soundtrack-wave span {
  width: 2px;
  height: 6px;
  color: #cfcfcf;
  background: currentColor;
  transform-origin: center;
  animation: post-soundtrack-wave 1.6s ease-in-out infinite;
  animation-play-state: paused;
}

.post-soundtrack-wave span:nth-child(2) {
  height: 9px;
  animation-delay: -0.45s;
}

.post-soundtrack-wave span:nth-child(3) {
  height: 7px;
  animation-delay: -0.9s;
}

.post-soundtrack-wave span:nth-child(4) {
  height: 4px;
  animation-delay: -1.2s;
}

.post-soundtrack-credit.is-playing .post-soundtrack-wave span {
  animation-play-state: running;
}

@keyframes post-soundtrack-wave {
  0%, 100% { transform: scaleY(0.72); }
  50% { transform: scaleY(1.18); }
}

@media (prefers-reduced-motion: reduce) {
  .post-soundtrack-wave span {
    animation: none;
  }
}

.post-soundtrack-credit strong {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.post-soundtrack-author {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #cfcfcf;
}

.post-soundtrack-toggle {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
  cursor: pointer;
}

.post-soundtrack audio {
  display: none;
}

.editor-close,
.editor-action {
  appearance: none;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 0;
  cursor: pointer;
}

a.editor-action {
  text-decoration: none;
}

.editor-close-strong {
  background: #000;
  color: #fff;
}

.editor-action-secondary {
  background: #efefef;
  color: #000;
}

.auth-status {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.auth-status.is-error {
  color: #a40000;
}

.is-hidden {
  display: none;
}

.editor-notification-setting {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  flex-wrap: wrap;
}

.editor-notification-setting[hidden] {
  display: none;
}

.editor-experience {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.editor-experience[hidden] {
  display: none;
}

.editor-experience-heading {
  display: block;
  margin: 0 0 2px;
  padding: 7px 9px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.2;
  text-transform: lowercase;
}

.editor-support-link {
  justify-self: center;
  color: #929292;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  text-transform: lowercase;
  text-underline-offset: 0.16em;
}

.gif-disabled-placeholder {
  width: 100%;
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: #e1e1e1;
  color: #000;
  font-size: 13px;
  text-transform: lowercase;
}

body[data-view="grid"] .gif-disabled-placeholder {
  min-height: 33vw;
}

.editor-notification-label {
  font-size: 12px;
  line-height: 1.2;
  text-transform: lowercase;
  margin-right: auto;
}

.editor-notification-buttons {
  display: flex;
  align-items: center;
  gap: 0;
}

.editor-notification-toggle {
  min-width: 48px;
  margin-left: -1px;
}

.editor-notification-toggle.is-active {
  background: #000;
  color: #fff;
}

.editor-notification-status {
  flex: 1 0 100%;
}

.editor-gif-token-status {
  display: block;
  margin-top: 6px;
}

.editor-savebar {
  position: sticky;
  bottom: -14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 0 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 18px);
}

.editor-save-status {
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
  text-transform: lowercase;
  grid-column: 1 / -1;
}

.editor-save-status.is-error {
  color: #a40000;
}

.editor-save-status.is-success {
  color: #0a5c1a;
}

.editor-save-button {
  min-width: 132px;
  background: #000;
  color: #fff;
  padding: 12px 18px;
  font-size: 15px;
}

.share-modal {
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  max-height: calc(100svh - 24px);
  border: 1px solid #000;
  padding: 0;
  background: #fff;
}

.share-modal::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.share-shell {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - 28px);
  max-height: calc(100svh - 28px);
}

.share-shell .editor-header, .share-actions { flex-shrink: 0; }

.share-shell img {
  width: 100%;
  display: block;
  min-height: 100px;
  flex-shrink: 1;
  max-height: calc(100vh - 320px);
  max-height: calc(100svh - 320px);
  object-fit: contain;
  border-bottom: 1px solid #000;
}

.share-actions { padding: 14px 18px; }
.share-actions [hidden] { display: none !important; }
.share-post-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-bottom: 10px; }
.share-post-controls label { display: grid; gap: 5px; min-width: 0; font-size: 13px; }
.share-post-controls select { width: 100%; min-width: 0; border: 1px solid #000; border-radius: 0; color: #000; background: #fff; padding: 10px; font: inherit; font-size: 16px; min-height: 44px; }
#share-audience-field { grid-column: 1 / -1; }
.share-post-button { background: #000; color: #fff; min-height: 44px; }
.share-save-button { width: 100%; min-height: 44px; }
.share-actions button:disabled { opacity: .5; cursor: default; }
#share-status { margin: 10px 0 0; font-size: 13px; line-height: 1.35; color: #555; }
#share-status.is-error { color: #a00000; }
#share-post-link { display: inline-block; margin-top: 8px; color: #000; font-size: 14px; text-decoration: underline; }

.room-lock-notice {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.22);
}

.room-lock-notice[hidden] {
  display: none;
}

.room-lock-notice__panel {
  width: min(560px, calc(100vw - 32px));
  background: #000;
  color: #fff;
  border: 1px solid #000;
  padding: 22px;
  font-size: 20px;
  line-height: 1.18;
}

.room-lock-notice__text {
  margin: 0 0 18px;
}

.room-lock-notice__close {
  border: 1px solid #fff;
  background: #000;
  color: #fff;
  padding: 10px 16px;
  font: inherit;
  cursor: pointer;
}

.room-lock-notice__close:hover {
  background: #fff;
  color: #000;
}

@media (max-width: 900px) {
  .gif-disabled-placeholder {
    min-height: 50svh;
  }

  body[data-view="grid"] .gif-disabled-placeholder {
    min-height: 50vw;
  }

  body[data-view="post"] .story,
  body[data-view="post"] .story-inner,
  body[data-view="post"] .story-content {
    max-width: 100vw;
    overflow-x: hidden;
  }

  body[data-view="post"] .story,
  body[data-view="post"] .story-inner,
  body[data-view="post"] .story-content,
  body[data-view="post"] .panel,
  body[data-view="post"] .panel.text,
  body[data-view="post"] .panel.image {
    min-height: auto;
  }

  .editor-label input,
  .editor-label textarea,
  .editor-label select,
  #post-label,
  .editor-soundtrack-open,
  .comment-form input,
  .comment-form textarea {
    font-size: 16px;
  }

  /* Keep both audio actions inside the mobile editor. The track title may
     truncate, but play and remove must always remain reachable. */
  .editor-soundtrack-selected {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .editor-soundtrack-selected-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    max-width: 100%;
    overflow: hidden;
  }

  .story-inner {
    padding: 0;
  }

  body[data-view="post"] .story.story-image,
  body[data-view="post"] .story.story-image .story-inner,
  body[data-view="post"] .story.story-image .panel.image {
    min-height: auto;
  }

  .panel.text {
    padding: 12px 10px 14px;
  }

  .panel.text p {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: clamp(54px, 13.2vw, 114px);
    line-height: 0.94;
    letter-spacing: 0.01em;
    font-weight: 400;
  }

  body[data-view="post"] .story.story-short-text .panel.text p {
    font-size: clamp(68px, 16.5vw, 142px);
  }

  body[data-view="post"] .story.story-short-text .panel.text.panel-text-size-small p {
    font-size: clamp(58px, 14.2vw, 118px);
  }

  body[data-view="post"] .story.story-short-text .panel.text.panel-text-size-large p {
    font-size: clamp(82px, 19.2vw, 164px);
  }

  body[data-view="post"] .panel.image img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    object-fit: contain;
    object-position: top center;
  }

  .panel.audio { padding: 0; }

  .audio-shell {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
    padding: 22px 20px;
    gap: 6px;
  }

  .audio-label { font-size: 26px; }

  .post-footer {
    padding: 16px 10px 22px;
  }

  .post-meta {
    font-size: clamp(12px, 3.4vw, 19px);
    line-height: 1.05;
  }

  body[data-view="grid"] .story-feed {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  body[data-view="grid"] .panel,
  body[data-view="grid"] .panel.image img {
    min-height: 50vw;
  }

  body[data-view="grid"] .panel.text.panel-text-short {
    min-height: 32vw;
  }

  body[data-view="grid"] .panel.audio { min-height: 0; }
  body[data-view="grid"] .audio-time { font-size: 11px; }

  body[data-view="grid"] .panel.text p {
    font-size: clamp(18px, 4.4vw, 34px);
    line-height: 0.985;
  }

  body[data-view="grid"] .panel.text.panel-text-size-small p {
    font-size: clamp(16px, 3.8vw, 28px);
  }

  body[data-view="grid"] .panel.text.panel-text-size-large p {
    font-size: clamp(24px, 5.6vw, 42px);
  }

  body[data-view="grid"] .panel.text.panel-text-short.panel-text-size-small p {
    font-size: clamp(22px, 5vw, 36px);
  }

  body[data-view="grid"] .panel.text.panel-text-short.panel-text-size-large p {
    font-size: clamp(34px, 8.2vw, 56px);
  }

  .editor-layout {
    grid-template-columns: 1fr;
  }

  .editor-layout.is-edit-mode {
    grid-template-columns: 1fr;
  }

  .editor-list {
    max-height: 180px;
    border-right: 0;
    border-bottom: 1px solid #000;
  }
}

body[data-view="post"] .story .panel.text.panel-text-size-small p,
body[data-view="post"] .story.story-short-text .panel.text.panel-text-size-small p {
  font-size: clamp(30px, 5.35vw, 106px);
  line-height: 1.08;
}

.onboard-body {
  min-height: 100svh;
  overflow-x: hidden;
  background: #fff var(--onboard-bg-image, url("/assets/onboardbg.jpg")) center center / cover no-repeat fixed;
}

.onboard-body.onboard-phase-rules,
.onboard-body.onboard-phase-terms {
  background: #fff var(--onboard-rules-bg-image, var(--onboard-bg-image, url("/assets/onboardbg.jpg"))) center center / cover no-repeat fixed;
}

.onboard-stage {
  position: relative;
  min-height: calc(100svh - var(--nav-offset));
  padding: calc(var(--nav-offset) * 0.4) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboard-panel {
  position: relative;
  z-index: 10;
  display: block;
  width: min(560px, calc(100vw - 32px));
  margin: 0 auto;
  background: transparent;
  border-left: 0;
  inset: auto;
  backdrop-filter: none;
}

.onboard-body.onboard-phase-rules .onboard-panel,
.onboard-body.onboard-phase-terms .onboard-panel {
  width: min(420px, calc(100vw - 32px));
}

.onboard-shell {
  border: 1px solid #000;
  background: #fff;
  grid-template-rows: auto 1fr;
}

.onboard-body.onboard-phase-rules .onboard-shell,
.onboard-body.onboard-phase-terms .onboard-shell {
  border: 0;
  background: transparent;
  display: block;
}

.onboard-shell .editor-header,
.onboard-shell .editor-actions {
  border-bottom: 0;
}

.onboard-shell .auth-form {
  padding: 16px 16px 14px;
  gap: 12px;
}

.onboard-rules {
  display: grid;
  gap: 16px;
  min-height: 0;
  padding: 20px 18px 18px;
  background: #000;
  color: #fff;
  align-content: start;
  border: 1px solid #000;
  aspect-ratio: 1 / 1;
  justify-content: stretch;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.onboard-terms {
  display: grid;
  gap: 12px;
  min-height: 0;
  padding: 18px;
  background: #000;
  color: #fff;
  align-content: start;
  border: 1px solid #000;
}

.onboard-rules[hidden],
.onboard-terms[hidden] {
  display: none;
}

.onboard-rules-title,
.onboard-terms-title {
  margin: 0;
  font-size: 12px;
  line-height: 1.15;
  text-transform: lowercase;
}

.onboard-rules-copy,
.onboard-terms-copy {
  display: grid;
  gap: 8px;
  font-size: 12px;
  line-height: 1.2;
  align-content: start;
}

.onboard-rules-copy p,
.onboard-terms-copy p {
  margin: 0;
}

.onboard-terms-scroll {
  width: 100%;
  max-height: min(42svh, 320px);
  margin: 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 11px;
  font-style: italic;
  line-height: 1.32;
  white-space: normal;
  letter-spacing: 0;
  text-transform: none;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.onboard-terms-scroll p {
  margin: 0 0 0.9em;
}

.onboard-terms-scroll p:last-child {
  margin-bottom: 0;
}

.onboard-terms-scroll .onboard-terms-heading {
  margin: 1.2em 0 0.35em;
  font-style: italic;
  font-weight: 600;
}

.onboard-terms-scroll .onboard-terms-heading:first-child {
  margin-top: 0;
}

.onboard-field-shell {
  gap: 0;
  font-size: 0;
}

.onboard-field-shell input::placeholder {
  color: #7a7a7a;
  opacity: 1;
}

.onboard-shell .editor-header {
  padding: 16px;
}

.onboard-shell .editor-actions {
  padding: 4px 0 0;
}

.onboard-rules-actions,
.onboard-terms-actions {
  padding: 0;
  margin-top: auto;
  justify-content: center;
}

.onboard-rules-actions .editor-action {
  border-color: #fff;
}

.onboard-terms-actions .editor-action {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.onboard-body.onboard-phase-rules .editor-header,
.onboard-body.onboard-phase-rules .auth-form,
.onboard-body.onboard-phase-terms .editor-header,
.onboard-body.onboard-phase-terms .auth-form {
  display: none;
}

.onboard-shell .editor-close {
  align-self: flex-start;
}

.onboard-home-link {
  text-decoration: none;
}

.submission-body {
  background: #fff var(--onboard-bg-image, url("/assets/onboardbg.jpg")) center center / cover no-repeat fixed;
}

.submission-body.submission-phase-confirm {
  background: #000;
}

.submission-panel {
  position: relative;
  inset: auto;
  height: auto;
  display: block;
  width: min(560px, calc(100vw - 32px));
  border-left: 0;
  background: transparent;
  backdrop-filter: none;
  margin: 0 auto;
  z-index: 10;
}

.submission-shell {
  border: 1px solid #000;
  background: #fff;
}

.submission-body.submission-phase-confirm .submission-shell {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.submission-form {
  padding: 16px 16px 14px;
  gap: 12px;
}

.submission-form.is-submitted {
  min-height: calc(100svh - var(--nav-offset));
  background: transparent;
  color: #fff;
  align-content: center;
  justify-items: center;
  padding: 18px 14px;
}

.submission-form.is-submitted .join-copy,
.submission-form.is-submitted .editor-label,
.submission-form.is-submitted #submission-submit,
.submission-form.is-submitted #nomination-submit,
.submission-body.submission-phase-confirm .submission-shell > .editor-header {
  display: none;
}

.submission-form.is-submitted .auth-status {
  color: #fff;
  font-size: 13px;
  line-height: 1;
  max-width: 22ch;
  text-align: center;
  text-transform: lowercase;
}

.submission-form.is-submitted .submission-actions {
  width: auto;
  justify-content: center;
  padding: 0;
  margin-top: 28px;
}

.submission-form.is-submitted #submission-ok,
.submission-form.is-submitted #nomination-ok {
  background: #fff;
  color: #000;
  border-color: #fff;
  font-size: 13px;
  padding: 8px 14px;
}

.submission-field-shell {
  gap: 0;
  font-size: 0;
}

.submission-field-shell input::placeholder,
.submission-field-shell textarea::placeholder {
  color: #7a7a7a;
  opacity: 1;
}

.submission-form textarea {
  min-height: 220px;
}

.independence-body {
  background: #000;
  color: #fff;
}

.independence-stage {
  align-items: flex-start;
  min-height: calc(100svh - var(--nav-offset, 0px));
  padding: calc(var(--nav-offset, 0px) + 34px) 20px 34px;
}

.independence-panel {
  width: min(620px, calc(100vw - 40px));
  margin: 0;
}

.independence-shell {
  background: transparent;
  border: 0;
  color: #fff;
}

.independence-form {
  gap: 16px;
  padding: 0;
}

.independence-copy {
  color: #fff;
  font-size: clamp(22px, 3.15vw, 42px);
  line-height: 1.03;
  max-width: 14.3em;
}

.independence-copy-small {
  color: #fff;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.08;
  max-width: 20em;
}

.independence-form .submission-field-shell input {
  background: #000;
  border-color: #fff;
  color: #fff;
  font-size: clamp(18px, 2.2vw, 24px);
  min-height: 52px;
}

.independence-form .submission-field-shell input::placeholder {
  color: #fff;
  opacity: 0.65;
}

.independence-actions {
  align-items: center;
  gap: 10px;
}

.independence-form #independence-submit {
  animation: independence-button-usa 1.8s steps(1, end) infinite;
  border-color: #fff;
  font-size: clamp(17px, 2vw, 24px);
  min-height: 50px;
  padding: 10px 18px;
}

.independence-form #independence-ok {
  background: #fff;
  border-color: #fff;
  color: #000;
}

.independence-form.is-submitted .independence-copy,
.independence-form.is-submitted .editor-label,
.independence-form.is-submitted #independence-submit,
.independence-body.submission-phase-confirm .independence-shell > .editor-header {
  display: none;
}

.independence-form.is-submitted {
  min-height: calc(100svh - var(--nav-offset));
  background: transparent;
  color: #fff;
  align-content: center;
  justify-items: center;
  padding: 18px 14px;
}

.independence-form.is-submitted .auth-status {
  color: #fff;
  font-size: clamp(32px, 7vw, 84px);
  line-height: 1.05;
  max-width: 10ch;
  text-align: center;
}

.independence-form.is-submitted .independence-actions {
  width: auto;
  justify-content: center;
  padding: 0;
  margin-top: 18px;
}

.independence-form.is-submitted #independence-ok {
  display: inline-flex;
  background: #fff;
  border-color: #fff;
  color: #000;
}

.independence-closed {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
}

.independence-closed[hidden] {
  display: none;
}

.independence-closed-box {
  width: min(520px, calc(100vw - 36px));
  border: 1px solid #fff;
  background: #000;
  color: #fff;
  padding: 18px;
}

.independence-closed-box p {
  margin: 0;
  font-size: clamp(22px, 4vw, 42px);
  line-height: 1.02;
}

.independence-closed-box a {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 0.055em;
  text-underline-offset: 0.09em;
}

@keyframes independence-button-usa {
  0%,
  100% {
    background: #ff1f1f;
    color: #fff;
  }

  33% {
    background: #fff;
    color: #000;
  }

  66% {
    background: #245cff;
    color: #fff;
  }
}

@media (max-width: 640px) {
  .independence-stage {
    padding: calc(var(--nav-offset, 0px) + 22px) 12px 26px;
  }

  .independence-panel {
    width: calc(100vw - 24px);
  }

  .independence-copy {
    font-size: clamp(24px, 7.5vw, 38px);
    max-width: 12.5em;
  }

  .independence-copy-small {
    max-width: 17em;
  }
}

.nomination-form textarea {
  min-height: 96px;
}

.nomination-form #nomination-notes {
  min-height: 72px;
}

.nomination-body {
  min-height: 100dvh;
  background-color: #000;
}

.nomination-body .topbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: flex-start;
  overflow: visible;
}

.nomination-body .toggle-group {
  display: flex;
  align-items: flex-start;
  overflow: visible;
}

.nomination-body .toggle-button {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
}

.nomination-body.submission-phase-confirm .onboard-stage {
  align-items: center;
  padding-top: 0;
}

.nomination-body.submission-phase-confirm .nomination-panel {
  width: min(320px, calc(100vw - 32px));
}

.nomination-body.submission-phase-confirm .nomination-shell {
  background: #000;
  border: 1px solid #000;
  color: #fff;
}

.nomination-body.submission-phase-confirm .nomination-shell > .editor-header,
.nomination-form.is-submitted .join-copy,
.nomination-form.is-submitted .editor-label,
.nomination-form.is-submitted #nomination-submit,
.nomination-form.is-submitted #nomination-login-open,
.nomination-form.is-submitted .submission-actions {
  display: none;
}

.nomination-form.is-submitted {
  min-height: 0;
  background: #000;
  color: #fff;
  padding: 18px;
  justify-items: start;
}

.nomination-form.is-submitted .auth-status {
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
  max-width: none;
  text-align: left;
  text-transform: none;
}

.nomination-form.is-submitted #nomination-ok {
  background: #000;
  border-color: #fff;
  color: #fff;
  display: block;
  margin-top: 16px;
}

.nomination-login-form {
  border-top: 1px solid #000;
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
}

.nomination-login-form[hidden] {
  display: none;
}

.prayerbox-body {
  background: #000 url("https://pub-98afe0c9b0494cb48a8d3f4f9dbecbab.r2.dev/55314190-82c1-47fe-abe5-1344afff7b29/1781389224173-image.webp") center center / cover no-repeat fixed;
}

.prayerbox-stage {
  align-items: center;
  justify-content: center;
  padding: 22px 16px 32px;
}

.prayerbox-panel {
  margin: 0 auto;
  width: min(640px, calc(100vw - 32px));
}

.prayerbox-header {
  display: none;
}

.prayerbox-title {
  margin: 0;
  font-size: clamp(32px, 6vw, 58px);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.prayerbox-copy {
  font-size: 16px;
  line-height: 1.25;
}

.prayerbox-copy a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.08em;
}

.prayerbox-form textarea {
  min-height: 260px;
  resize: vertical;
}

.prayerbox-audio-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.prayerbox-audio-row input[type="file"] {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.prayerbox-audio-button {
  cursor: pointer;
  display: inline-flex;
  margin: 0;
}

.prayerbox-audio-name {
  color: #666;
  font-size: 14px;
  line-height: 1.2;
  text-transform: none;
}

.prayerbox-form.is-submitted .prayerbox-title,
.prayerbox-form.is-submitted .prayerbox-copy,
.prayerbox-form.is-submitted .editor-label,
.prayerbox-form.is-submitted .prayerbox-audio-row,
.prayerbox-form.is-submitted #prayerbox-submit,
.prayerbox-body.submission-phase-confirm .prayerbox-shell > .editor-header {
  display: none;
}

.prayerbox-body.submission-phase-confirm .prayerbox-panel {
  width: auto;
}

.prayerbox-body.submission-phase-confirm .prayerbox-shell {
  background: transparent;
  border: 0;
}

.prayerbox-form.is-submitted {
  min-height: 0;
  background: transparent;
  color: #000;
  padding: 0;
  justify-items: center;
}

.prayerbox-form.is-submitted .prayerbox-actions {
  display: flex;
  border-bottom: 0;
  padding: 0;
  justify-content: center;
}

.prayerbox-form.is-submitted .auth-status {
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
  max-width: none;
  text-align: left;
  text-transform: none;
}

.prayerbox-form.is-submitted #prayerbox-ok {
  background: #fff;
  border-color: #000;
  color: #000;
  display: block;
  font-size: 22px;
  line-height: 1;
  margin-top: 0;
  min-height: 58px;
  min-width: min(320px, calc(100vw - 48px));
  padding: 16px 22px;
  text-align: center;
  white-space: nowrap;
}

.submission-actions {
  padding: 4px 0 0;
  justify-content: flex-start;
}

.onboard-body .join-copy,
.onboard-body .editor-label,
.onboard-body .editor-label-title {
  text-transform: none;
}

.onboard-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.25;
}

.onboard-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  padding: 0;
  flex: 0 0 auto;
}

.onboard-consent span {
  display: block;
}

.editor-label.is-hidden {
  display: none;
}

@media (max-width: 720px) {
  .onboard-stage {
    display: block;
  }

  .onboard-panel {
    width: calc(100vw - 20px);
    margin-top: 24px;
  }

  .submission-panel {
    width: calc(100vw - 20px);
    margin-top: 24px;
  }

  .prayerbox-stage {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100dvh;
    padding: 72px 10px 24px;
  }

  .prayerbox-panel {
    margin-top: 0;
    width: min(640px, calc(100vw - 20px));
  }

  .prayerbox-body.submission-phase-confirm .prayerbox-stage {
    align-items: center;
    justify-content: center;
    padding: 72px 16px 32px;
  }

  .prayerbox-body.submission-phase-confirm .prayerbox-panel {
    width: min(360px, calc(100vw - 32px));
  }

  .prayerbox-body.submission-phase-confirm .prayerbox-form.is-submitted {
    display: grid;
    justify-items: center;
    width: 100%;
  }

  .prayerbox-form.is-submitted .prayerbox-actions {
    justify-content: center;
    width: 100%;
  }

  .nomination-body {
    min-height: 100dvh;
    background-attachment: scroll;
    background-position: center center;
    background-size: cover;
  }

  .nomination-stage {
    min-height: 100dvh;
  }

  .onboard-body.onboard-phase-rules .onboard-panel,
  .onboard-body.onboard-phase-terms .onboard-panel {
    width: min(420px, calc(100vw - 20px));
  }

  .onboard-rules {
    aspect-ratio: auto;
    min-height: 360px;
  }
}

.chat-page {
  min-height: 100svh;
  margin: 0;
  background: #fff;
}

html.chat-dark-mode-root {
  background: #000;
}

html.chat-dark-mode-root .chat-page {
  background: #000;
  color: #fff;
}

.chat-stage {
  min-height: 100svh;
  display: block;
  padding: 0;
}

.chat-shell {
  width: 100vw;
  height: 100svh;
  background: #fff;
  border: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
  overflow: hidden;
}

html.chat-embedded-root,
.chat-page.chat-embedded,
.chat-page.chat-embedded .chat-stage,
.chat-page.chat-embedded .chat-shell {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.chat-page.chat-embedded .chat-header,
.chat-page.chat-embedded .chat-sidebar,
.chat-page.chat-embedded #chat-refresh {
  display: none;
}

.chat-page.chat-embedded .chat-shell {
  grid-template-rows: minmax(0, 1fr) auto auto;
}

.chat-page.chat-embedded .chat-room {
  grid-template-columns: minmax(0, 1fr);
}

.chat-page.chat-embedded .chat-log {
  padding: 12px;
  gap: 10px;
}

.chat-page.chat-embedded .chat-message {
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 8px;
}

.chat-page.chat-embedded .chat-message-name {
  font-size: 12px;
}

.chat-page.chat-embedded .chat-message-body {
  font-size: 14px;
}

.chat-page.chat-embedded .chat-announcement {
  padding-left: 120px;
  font-size: 12px;
}

.chat-page.chat-embedded .chat-system-comment .chat-message-name,
.chat-page.chat-embedded .chat-system-comment .chat-message-body {
  font-size: 12px;
}

.chat-page.chat-embedded .chat-form {
  padding: 10px 12px max(10px, env(safe-area-inset-bottom));
  gap: 8px;
}

.chat-page.chat-embedded .chat-identity {
  font-size: 11px;
}

.chat-page.chat-embedded .chat-customize {
  justify-content: space-between;
}

@media (max-width: 700px) {
  .chat-page.chat-embedded .chat-message {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .chat-page.chat-embedded .chat-announcement {
    padding-left: 100px;
  }
}

.chat-room {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
}

.chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #000;
}

.chat-header-copy {
  display: grid;
  gap: 3px;
}

.chat-subtitle {
  margin: 0;
  font-size: 12px;
  line-height: 1;
  text-transform: lowercase;
}

.chat-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chat-log {
  min-height: 0;
  overflow: auto;
  overflow-anchor: none;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  background: rgba(255, 255, 255, 0.94);
}

.chat-sidebar {
  min-height: 0;
  border-left: 1px solid #000;
  padding: 14px 12px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  overflow: hidden;
}

.chat-sidebar-title {
  font-size: 12px;
  line-height: 1;
  text-transform: lowercase;
  font-weight: 700;
}

.chat-members {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 6px;
  align-content: start;
  font-size: 13px;
  line-height: 1.1;
  text-transform: lowercase;
}

.chat-member,
.chat-members-empty {
  word-break: break-word;
}

.chat-member-link {
  text-decoration: underline;
}

.chat-empty {
  font-size: 14px;
  line-height: 1.2;
  text-transform: lowercase;
}

.chat-history {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  text-align: center;
  opacity: 0.6;
  cursor: pointer;
}

.chat-history:disabled {
  cursor: default;
}

.chat-message {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.chat-message-name {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  text-transform: lowercase;
  word-break: break-word;
}

.chat-profile-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
  cursor: pointer;
}

.chat-message-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.chat-message-time {
  font-size: 11px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.6);
  text-transform: lowercase;
}

.chat-message-body {
  font-size: 15px;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-official .chat-message-body, #chat-input.is-announcement { font-weight: 700; }
.chat-official-label { margin-bottom: 5px; font-size: 11px; font-weight: 400; color: #777; line-height: 1.4; }
#chat-announcement-hint, #chat-announcement-delivery { margin: 0; font-size: 11px; font-weight: 400; line-height: 1.4; color: #777; }
#chat-announcement-delivery button { padding: 4px 0; border: 0; color: inherit; background: none; font: inherit; text-decoration: underline; cursor: pointer; }

.chat-system-comment,
.chat-announcement,
.chat-announcement-comment,
.chat-announcement-presence,
.chat-announcement-post {
  color: #777;
}

.chat-system-comment .chat-message-name,
.chat-system-comment .chat-message-body,
.chat-system-comment .chat-message-time,
.chat-system-comment .chat-message-link,
.chat-announcement .chat-message-link {
  color: inherit;
}

.chat-system-comment .chat-message-body {
  font-style: italic;
}

.chat-message-link {
  color: inherit;
  text-decoration: underline;
}

.chat-announcement {
  font-size: 15px;
  font-style: italic;
  line-height: 1.32;
  text-transform: lowercase;
  padding-left: 170px;
}

.chat-announcement-linkable {
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-status {
  padding: 10px 14px;
  border-top: 1px solid #e1e1e1;
  font-size: 12px;
  line-height: 1.2;
  text-transform: lowercase;
  background: #fff;
}

.chat-status.is-error {
  color: #9f0012;
}

.chat-form {
  border-top: 1px solid #e1e1e1;
  padding: 14px;
  display: grid;
  gap: 10px;
  background: #fff;
}

.chat-identity {
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
  text-transform: lowercase;
}

.chat-customize {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.chat-color-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1;
  text-transform: lowercase;
}

.chat-color-picker input[type="color"] {
  width: 34px;
  min-width: 34px;
  height: 24px;
  padding: 0;
  border: 1px solid #e1e1e1;
  border-radius: 0;
  background: #fff;
  cursor: pointer;
}

.chat-ghost-toggle,
.chat-dark-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1;
  text-transform: lowercase;
}

.chat-settings-toggles {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex-wrap: wrap;
}

.chat-toggle-buttons {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.chat-toggle-button {
  position: relative;
  min-width: 34px;
  height: 28px;
  border: 1px solid #d8d8d8;
  border-radius: 0;
  background: #fff;
  color: #777;
  padding: 0 8px;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  text-transform: lowercase;
  cursor: pointer;
}

.chat-toggle-button + .chat-toggle-button {
  margin-left: -1px;
}

.chat-toggle-button.is-active {
  z-index: 1;
  border-color: #bdbdbd;
  background: #f3f3f3;
  color: #000;
}

.chat-form input {
  width: 100%;
  border: 1px solid #e1e1e1;
  border-radius: 0;
  background: #fff;
  color: #000;
  padding: 10px;
  font: inherit;
  font-size: 14px;
}

.chat-link-tools {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-link-button {
  background: #fff;
  color: #000;
  flex: 0 0 auto;
  border-color: #e1e1e1;
}

.chat-link-hint {
  color: #888;
  font-size: 12px;
  font-style: italic;
  line-height: 1.2;
}

.chat-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* The embedded document is narrow on desktop too: only touch layouts move
   Send beside the input. Keep it above the tools and phone's bottom edge. */
@media (max-width: 700px) and (pointer: coarse) {
  .chat-page.chat-embedded .chat-form {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .chat-page.chat-embedded .chat-form > * { grid-column: 1 / -1; }

  .chat-page.chat-embedded #chat-input {
    grid-column: 1;
    grid-row: 3;
    min-width: 0;
    min-height: 44px;
  }

  .chat-page.chat-embedded .chat-form-actions {
    grid-column: 2;
    grid-row: 3;
    align-items: stretch;
  }

  .chat-page.chat-embedded #chat-send {
    min-width: 56px;
    min-height: 44px;
  }
}

.chat-page.chat-dark-mode,
.chat-page.chat-dark-mode .chat-shell,
.chat-page.chat-dark-mode .chat-header,
.chat-page.chat-dark-mode .chat-log,
.chat-page.chat-dark-mode .chat-sidebar,
.chat-page.chat-dark-mode .chat-status,
.chat-page.chat-dark-mode .chat-form {
  background: #000;
  color: #fff;
}

.chat-page.chat-dark-mode .chat-header,
.chat-page.chat-dark-mode .chat-sidebar,
.chat-page.chat-dark-mode .chat-status,
.chat-page.chat-dark-mode .chat-form,
.chat-page.chat-dark-mode .chat-color-picker input[type="color"],
.chat-page.chat-dark-mode .chat-toggle-button,
.chat-page.chat-dark-mode .chat-form input,
.chat-page.chat-dark-mode .editor-action {
  border-color: #333;
}

.chat-page.chat-dark-mode .chat-message:not(.chat-system-comment) .chat-message-time {
  color: rgba(255, 255, 255, 0.62);
}

.chat-page.chat-dark-mode .chat-system-comment,
.chat-page.chat-dark-mode .chat-announcement {
  color: #aaa;
}

.chat-page.chat-dark-mode .chat-toggle-button,
.chat-page.chat-dark-mode .chat-form input,
.chat-page.chat-dark-mode .editor-action {
  background: #000;
  color: #fff;
}

.chat-page.chat-dark-mode .chat-toggle-button.is-active {
  border-color: #555;
  background: #171717;
  color: #fff;
}

.chat-page.chat-dark-mode .chat-toggle-button:not(.is-active) {
  border-color: #333;
  background: #000;
  color: #888;
}

.chat-page.chat-dark-mode .editor-close-strong,
.chat-page.chat-dark-mode .chat-link-button {
  background: #fff;
  color: #000;
}

.chat-page.chat-dark-mode .chat-form input::placeholder {
  color: #aaa;
}

.chat-page.chat-dark-mode .chat-link-hint {
  color: #aaa;
}

.chat-page.chat-dark-mode .mention-suggestions,
.chat-page.chat-dark-mode .mention-suggestion {
  border-color: #333;
  background: #000;
  color: #fff;
}

.chat-page.chat-dark-mode .mention-suggestion-handle {
  color: #aaa;
}

.chat-page.chat-dark-mode .mention-suggestion:hover,
.chat-page.chat-dark-mode .mention-suggestion:focus-visible,
.chat-page.chat-dark-mode .mention-suggestion.is-active {
  background: #171717;
}

.chat-page.chat-dark-mode {
  color-scheme: dark;
}

@media (max-width: 900px) {
  .room-list-view {
    padding: calc(var(--nav-offset) + 20px) 18px 36px;
  }

  .chat-stage {
    padding: 0;
  }

  .chat-shell {
    width: 100vw;
    height: 100svh;
    border: 0;
  }

  .chat-room {
    grid-template-columns: 1fr;
  }

  .chat-sidebar {
    display: none;
  }

  .chat-message {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 8px;
  }

  .chat-message-name {
    font-size: 12px;
    line-height: 1.15;
  }

  .chat-announcement {
    padding-left: 118px;
  }

  .chat-header {
    padding-top: max(12px, env(safe-area-inset-top));
  }

  .chat-form,
  .chat-log,
  .chat-status {
    padding-left: 12px;
    padding-right: 12px;
  }

  .chat-form input,
  .chat-color-picker input[type="color"],
  .chat-auth-panel .editor-label input {
    font-size: 16px;
  }
}
#post-audio-artwork-preview {
  width: 112px;
  height: 112px;
  object-fit: contain;
  object-position: left center;
}

/* Keep content search and the older address lookup in the same retained panel. */
#live-room-go-panel{display:flex;flex-direction:column;padding:0;overflow:hidden}
#live-room-find-frame{flex:1;min-height:0;width:100%;height:0}
.find-address{flex:none;padding:12px 24px;border-top:1px solid #ddd;font-size:14px;max-height:45%;overflow:auto}
.find-address summary{cursor:pointer;color:#777}
.find-address .live-room-go-intro{margin:12px 0}

/* Search controls use site styling, never the browser's colored clear glyph. */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration { -webkit-appearance: none; display: none; }
input[type="search"]::-ms-clear { display: none; width: 0; height: 0; }
