:root {
  color-scheme: dark;
  --bg: #06080b;
  --bg-2: #0b0e13;
  --panel: #11141b;
  --panel-2: #161b24;
  --panel-3: #1a212c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f7f8fb;
  --muted: #8d96a4;
  --muted-strong: #b8c0cc;
  --acid: #d4ff48;
  --ice: #7dd8ff;
  --red: #ff8e92;
  --shadow-lg: 0 26px 80px rgba(0, 0, 0, 0.38);
  --shadow-xl: 0 40px 120px rgba(0, 0, 0, 0.52);
  --radius-xs: 12px;
  --radius-sm: 18px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-xl: 42px;
  --max-width: 1560px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(212, 255, 72, 0.09), transparent 24%),
    radial-gradient(circle at top right, rgba(125, 216, 255, 0.08), transparent 22%),
    linear-gradient(180deg, #07090d 0%, #0b0f14 36%, #06080b 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 86%);
  opacity: 0.3;
  pointer-events: none;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
a {
  font: inherit;
}

button {
  border: 0;
  padding: 0;
  color: inherit;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

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

.shell {
  width: min(calc(100% - 24px), var(--max-width));
  margin: 0 auto;
  padding: 14px 0 110px;
}

.chrome {
  position: sticky;
  top: 10px;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(320px, auto);
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 12, 16, 0.82);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-lg);
}

.brand,
.chrome-nav,
.chrome-actions,
.toggle-cluster,
.inline-controls,
.panel-head,
.chip-row,
.story-meta,
.hero-stat-row,
.hero-action-row,
.modal-actions-row,
.modal-foot,
.modal-foot-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: 0;
}

.brand-mark,
.loading-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(212, 255, 72, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(212, 255, 72, 0.08);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.brand-word,
.scene-title h1,
.city-hero-copy h1,
.profile-hero-copy h1,
.board-head h1,
.story-card h2,
.tile-copy h3,
.city-tile-copy h3 {
  margin: 0;
  font-family: "Archivo", "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.brand-word {
  font-size: 1.1rem;
}

.chrome-nav {
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.chrome-actions {
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  flex-wrap: nowrap;
}

.searchbar {
  display: flex;
  align-items: center;
  flex: 1 1 220px;
  min-width: 160px;
  max-width: 360px;
}

.searchbar input,
.inline-controls input,
.toggle-select,
.comment-form input,
.feed-composer textarea,
.feed-composer input,
.feed-comment-form input,
.modal-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.searchbar input::placeholder,
.inline-controls input::placeholder,
.comment-form input::placeholder,
.feed-composer textarea::placeholder,
.feed-composer input::placeholder,
.feed-comment-form input::placeholder,
.modal-form input::placeholder {
  color: var(--muted);
}

.searchbar input:focus,
.inline-controls input:focus,
.comment-form input:focus,
.feed-composer textarea:focus,
.feed-composer input:focus,
.feed-comment-form input:focus,
.modal-form input:focus {
  border-color: rgba(212, 255, 72, 0.34);
  background: rgba(255, 255, 255, 0.05);
}

.chrome-link,
.dock-link,
.ghost-button,
.action-button,
.toggle-button,
.vote-button,
.link-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.chrome-link,
.dock-link,
.ghost-button,
.toggle-button,
.vote-button,
.link-button {
  background: rgba(255, 255, 255, 0.028);
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(212, 255, 72, 0.36), rgba(125, 216, 255, 0.18));
  border-color: rgba(212, 255, 72, 0.26);
  color: #0b0e13;
  font-weight: 700;
}

.chrome-link:hover,
.dock-link:hover,
.ghost-button:hover,
.action-button:hover,
.toggle-button:hover,
.vote-button:hover,
.link-button:hover,
.tile:hover,
.city-tile:hover,
.story-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.chrome-link.is-active,
.dock-link.is-active,
.toggle-button.is-active,
.vote-button.is-active {
  border-color: rgba(212, 255, 72, 0.34);
  background: linear-gradient(180deg, rgba(212, 255, 72, 0.12), rgba(255, 255, 255, 0.02));
}

.vote-button.is-positive {
  color: var(--acid);
}

.vote-button.is-negative {
  color: var(--red);
}

.app-view {
  margin-top: 18px;
}

.loading-view,
.panel,
.story-card,
.modal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    var(--panel);
  box-shadow: var(--shadow-lg);
}

.loading-view {
  min-height: 70vh;
  display: grid;
  place-content: center;
  gap: 18px;
  justify-items: center;
}

.loading-view p {
  margin: 0;
  color: var(--muted-strong);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.map-layout,
.board-layout,
.profiles-layout,
.city-layout,
.profile-layout,
.two-column,
.city-columns {
  display: grid;
  gap: 18px;
}

.map-layout,
.board-layout,
.city-columns {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.scene {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  padding: 18px;
}

.scene-head,
.board-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.scene-title,
.city-hero-copy,
.board-head > div:first-child {
  display: grid;
  gap: 10px;
}

.scene-title h1,
.city-hero-copy h1,
.profile-hero-copy h1,
.board-head h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.9;
}

.scene-title p,
.city-hero-copy p,
.tile-copy p,
.profile-hero-copy p,
.city-tile-copy p {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  color: var(--muted-strong);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scene-actions,
.board-controls {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.inline-controls,
.toggle-cluster,
.hero-stat-row,
.hero-action-row,
.modal-actions-row,
.panel-head,
.story-meta,
.chip-row {
  gap: 8px;
  flex-wrap: wrap;
}

.scene-map,
.city-map {
  min-height: 560px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0c1016;
}

.leaflet-tile-pane {
  filter: grayscale(1) contrast(1.08) brightness(0.58);
}

.leaflet-control-container {
  display: none;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: rgba(17, 20, 27, 0.96);
  color: var(--text);
  border: 1px solid var(--line);
}

.popup-card {
  display: grid;
  gap: 6px;
  min-width: 136px;
}

.popup-card span {
  color: var(--muted);
  font-size: 0.84rem;
}

.scene-focus {
  position: absolute;
  right: 18px;
  bottom: 20px;
  z-index: 2;
  width: min(420px, calc(100% - 36px));
}

.focus-card,
.profile-hero,
.hero-stat-grid,
.metric-grid,
.grid-cards {
  display: grid;
  gap: 14px;
}

.focus-card {
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(8, 10, 14, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.focus-media,
.tile-media,
.profile-hero-media {
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
}

.focus-media img,
.tile-media img,
.profile-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.focus-media.is-avatar,
.tile-media.is-avatar,
.profile-hero-media.is-avatar {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top, rgba(212, 255, 72, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.04);
}

.focus-media.is-avatar img,
.tile-media.is-avatar img,
.profile-hero-media.is-avatar img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.focus-media {
  width: 60px;
  height: 60px;
}

.focus-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.focus-copy h2 {
  margin: 0;
  font-family: "Archivo", "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
  font-size: 1.18rem;
}

.focus-copy p {
  margin: 0;
  color: var(--muted);
}

.focus-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
}

.focus-actions .vote-cluster {
  justify-content: stretch;
}

.rail,
.stack,
.panel-list,
.story-grid {
  display: grid;
  gap: 10px;
}

.panel {
  padding: 14px;
}

.panel-empty {
  min-height: 180px;
  place-content: center;
}

.panel-empty h3 {
  margin: 0;
  font-family: "Archivo", "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

.inset-empty {
  background: rgba(255, 255, 255, 0.015);
}

.panel-head {
  justify-content: space-between;
}

.tile,
.city-tile,
.search-result {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.024);
}

.tile,
.city-tile,
.search-result {
  border-radius: var(--radius-sm);
}

.tile {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
}

.tile-compact {
  grid-template-columns: 56px minmax(0, 1fr) auto;
}

.tile-media {
  aspect-ratio: 1;
}

.tile-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.tile-topline,
.tile-edge {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.tile-copy h3 {
  font-size: 0.95rem;
}

.tile-copy h3,
.tile-copy p,
.focus-copy h2,
.focus-copy p,
.city-tile-copy h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile-edge strong {
  font-size: 0.96rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.71rem;
}

.chip-rank {
  border-color: rgba(212, 255, 72, 0.34);
  color: var(--acid);
}

.chip-vote.is-positive,
.up {
  color: var(--acid);
}

.chip-vote.is-negative,
.down {
  color: var(--red);
}

.city-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.city-tile-copy {
  display: grid;
  gap: 6px;
}

.city-tile-copy h3 {
  font-size: 1.02rem;
}

.city-tile-edge {
  color: var(--muted-strong);
  font-size: 0.92rem;
  font-weight: 700;
}

.profile-layout,
.city-layout {
  gap: 16px;
}

.profile-hero {
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
}

.profile-hero.compact {
  grid-template-columns: 88px minmax(0, 1fr);
}

.profile-hero-media {
  min-height: 0;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
}

.profile-hero.compact .profile-hero-media {
  aspect-ratio: 1;
  border-radius: 22px;
}

.profile-hero-copy {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}

.profile-summary {
  margin: -4px 0 0;
  color: var(--muted-strong);
}

.link-button {
  justify-content: center;
}

.hero-stat-grid,
.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-stat,
.metric-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
}

.hero-stat {
  display: grid;
  gap: 8px;
}

.hero-stat span,
.metric-card .eyebrow {
  color: var(--muted);
}

.hero-stat strong,
.metric-card strong {
  font-size: clamp(1.3rem, 3vw, 2.4rem);
  font-family: "Archivo", "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.profile-side-stack,
.inset {
  display: grid;
  gap: 12px;
}

.profile-actions {
  flex-wrap: wrap;
}

.metric-grid {
  gap: 12px;
}

.metric-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-top: 12px;
}

.metric-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--acid), var(--ice));
}

.board-main .board-stack {
  margin-top: 18px;
}

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

.story-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.modal-grid label,
.modal-slider-grid label {
  display: grid;
  gap: 8px;
}

.modal-grid label span,
.modal-slider-grid label span {
  color: var(--muted-strong);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-card h2 {
  font-size: clamp(1.3rem, 2.2vw, 2.5rem);
  line-height: 0.96;
}

.story-card a {
  color: var(--acid);
  font-weight: 700;
}

.story-featured {
  min-height: 320px;
  align-content: end;
  background:
    radial-gradient(circle at top right, rgba(212, 255, 72, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    var(--panel-2);
}

.search-layer {
  position: sticky;
  top: 88px;
  z-index: 45;
  margin-top: 10px;
}

.search-results-card {
  width: min(520px, 100%);
  margin-left: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(10, 12, 16, 0.94);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-lg);
}

.search-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
}

.search-result-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
}

.search-result-copy {
  display: grid;
  gap: 4px;
}

.search-result-copy span {
  color: var(--muted);
  font-size: 0.88rem;
}

.moderation-card {
  gap: 12px;
}

.moderation-card h3,
.moderation-card p {
  margin: 0;
}

.moderation-actions {
  flex-wrap: wrap;
}

.modal-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 71;
  width: min(960px, calc(100% - 20px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  transform: translate(-50%, -50%);
  padding: 18px;
}

.modal-form,
.modal-grid,
.modal-slider-grid,
.modal-analysis {
  display: grid;
  gap: 14px;
}

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

.modal-grid .wide {
  grid-column: 1 / -1;
}

.file-label input[type="file"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 22px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.025);
}

.modal-actions-row,
.modal-foot {
  justify-content: space-between;
}

.modal-foot-actions {
  gap: 8px;
}

.ghost-danger {
  border-color: rgba(255, 142, 146, 0.24);
  color: var(--red);
}

.ghost-danger:hover {
  border-color: rgba(255, 142, 146, 0.4);
}

.modal-slider-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.modal-slider-grid label {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
}

.modal-slider-grid input[type="range"] {
  width: 100%;
  accent-color: var(--acid);
}

.modal-foot p {
  margin: 0;
  color: var(--muted);
}

.modal-foot p.is-error {
  color: var(--red);
}

.mobile-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  display: none;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 12, 16, 0.9);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-xl);
}

.dock-link {
  flex: 1;
  min-height: 42px;
  padding: 0 10px;
  font-size: 0.8rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel,
.story-card,
.tile,
.city-tile,
.focus-card {
  animation: rise 280ms ease both;
}

@media (max-width: 1320px) {
  .map-layout,
  .board-layout,
  .feed-layout,
  .city-columns,
  .profile-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-side-stack {
    order: 3;
  }
}

@media (max-width: 1120px) {
  .chrome {
    grid-template-columns: 1fr auto;
    gap: 12px;
    border-radius: 28px;
  }

  .chrome-nav {
    display: none;
  }

  .chrome-actions {
    grid-column: 1 / -1;
  }

  .mobile-dock {
    display: flex;
  }

  .searchbar {
    min-width: 0;
    width: 100%;
  }

  .chrome-actions {
    justify-content: flex-end;
  }

  .scene {
    min-height: 620px;
  }

  .scene-head,
  .board-head,
  .modal-actions-row,
  .modal-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .scene-actions,
  .board-controls {
    justify-items: stretch;
  }

  .story-grid,
  .grid-cards,
  .hero-stat-grid,
  .metric-grid,
  .modal-slider-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-card,
  .modal-grid,
  .two-column,
  .city-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 16px), var(--max-width));
    padding-bottom: 100px;
  }

  .brand-word {
    font-size: 1rem;
  }

  .chrome,
  .panel,
  .story-card,
  .modal-card {
    border-radius: 24px;
  }

  .chrome {
    gap: 10px;
    padding: 12px;
  }

  .brand-mark,
  .loading-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .chrome-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  .auth-slot {
    display: flex;
  }

  .auth-chip {
    min-height: 42px;
    max-width: 108px;
    padding: 0 12px;
  }

  .auth-chip img {
    display: none;
  }

  .chrome-actions .action-button {
    display: none;
  }

  .scene {
    min-height: 480px;
    padding: 14px;
  }

  .scene-map,
  .city-map {
    min-height: 390px;
  }

  .scene-focus {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
  }

  .focus-card,
  .tile,
  .tile-compact {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .tile-edge,
  .focus-actions {
    grid-column: 1 / -1;
    justify-items: stretch;
  }

  .focus-actions .vote-cluster {
    justify-content: stretch;
  }

  .vote-cluster {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .story-grid,
  .grid-cards,
  .hero-stat-grid,
  .metric-grid,
  .modal-slider-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero-media {
    min-height: 300px;
  }

  .search-results-card {
    width: 100%;
  }
}

.auth-slot {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  max-width: 156px;
}

.auth-chip-guest {
  justify-content: center;
  padding: 0 14px;
}

.auth-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-chip img,
.comment-card img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
}

.auth-line,
.tile-meta,
.comment-top span {
  color: var(--muted);
  font-size: 0.84rem;
}

.promoted-card {
  display: grid;
  gap: 12px;
}

.promoted-card h3,
.comment-copy p {
  margin: 0;
}

.comments-panel,
.comment-stack,
.comment-form,
.comment-card,
.comment-top,
.feed-layout,
.feed-stack,
.feed-card,
.feed-header,
.feed-author,
.feed-actions,
.feed-comment-stack,
.feed-comment-form,
.profile-post-stack,
.profile-rail {
  display: grid;
  gap: 12px;
}

.comment-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

.feed-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.feed-stack,
.profile-post-stack {
  gap: 14px;
}

.feed-composer {
  display: grid;
  gap: 10px;
}

.feed-composer textarea {
  min-height: 104px;
  padding: 14px;
  resize: vertical;
  border-radius: 24px;
}

.feed-composer-row,
.feed-actions,
.feed-header,
.feed-author,
.feed-comment-top,
.profile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feed-composer-row,
.feed-actions {
  justify-content: space-between;
}

.feed-composer-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
}

.feed-card {
  overflow: hidden;
}

.feed-header {
  justify-content: space-between;
}

.feed-author {
  min-width: 0;
}

.feed-author img,
.feed-comment-card img {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
}

.feed-author-copy,
.feed-comment-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.feed-author-copy strong,
.feed-comment-copy strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-author-copy span,
.feed-meta,
.feed-comment-copy span {
  color: var(--muted);
  font-size: 0.84rem;
}

.feed-body,
.feed-comment-copy p {
  margin: 0;
  line-height: 1.5;
}

.feed-media {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  background:
    radial-gradient(circle at top, rgba(212, 255, 72, 0.12), transparent 55%),
    rgba(255, 255, 255, 0.03);
}

.feed-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-media.is-avatar {
  display: grid;
  place-items: center;
}

.feed-media.is-avatar img {
  width: 68%;
  height: 68%;
  object-fit: contain;
  border-radius: 999px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.32);
}

.feed-comment-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

.feed-comment-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.feed-comment-card:first-child {
  border-top: 0;
  padding-top: 0;
}

.comment-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.comment-card:first-child {
  border-top: 0;
  padding-top: 0;
}

.comment-top {
  grid-auto-flow: column;
  justify-content: start;
  gap: 8px;
}

@media (max-width: 760px) {
  .auth-slot {
    display: none;
  }

  .comment-form,
  .comment-card,
  .feed-comment-form,
  .feed-composer-inline {
    grid-template-columns: 1fr;
  }

  .feed-header,
  .feed-actions,
  .feed-composer-row,
  .profile-actions {
    flex-wrap: wrap;
  }

  .searchbar {
    max-width: none;
  }
}
