:root {
  --teal: #084D57;
  --yellow: #F1E208;
  --gold: #F2B707;
  --orange: #F28806;
  --coral: #F26430;
  --cream: #FFF8D6;
  --card: #FFFDF0;
  --surface: #FFFBEB;
  --ink: #17333A;
  --muted: #6B6B6B;
  --line: #E7D86D;
  --border: #D8C955;
  --success: #2F7D58;
  --danger: #CF4A32;
  --radius: 24px;
  --shadow: 0 20px 60px rgba(8, 77, 87, 0.12);
  --shadow-soft: 0 10px 30px rgba(8, 77, 87, 0.08);
  --max-width: 1220px;
  --accent-orange: #F57916;
  --accent-green: #049B5B;
  --accent-lime: #8DC132;
  --accent-cyan: #02B3D5;
  --accent-pink: #F34F90;
  --accent-blue: #066DC0;
  --accent-violet: #A171FB;
  --accent-purple: #9033FF;
  --mode-feed-start: #184864;
  --mode-feed-end: #0D6D82;
  --mode-feed-shadow: rgba(24, 72, 100, 0.22);
  --mode-gallery-start: #2B6746;
  --mode-gallery-end: #71923A;
  --mode-gallery-shadow: rgba(43, 103, 70, 0.22);
  --mode-action-surface-start: #FFFDF6;
  --mode-action-surface-end: #F3EED8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.28), transparent 30%),
    linear-gradient(180deg, #f6ea4d 0%, var(--yellow) 52%, #f8ee79 100%);
}

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

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

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

button {
  cursor: pointer;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(14px);
  background: rgba(241, 226, 8, 0.92);
  border-bottom: 1px solid rgba(8, 77, 87, 0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--teal);
  line-height: 0.92;
}

.logo-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}

.logo-wordmark__usvi,
.logo-wordmark__domain {
  color: var(--orange);
}

.logo-wordmark__news {
  color: var(--teal);
}

.logo-tagline {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
  color: #6c3ea1;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  color: rgba(23, 51, 58, 0.8);
}

.site-nav__button {
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  color: rgba(23, 51, 58, 0.8);
  border: 0;
  background: transparent;
}

.site-nav a.active,
.site-nav a:hover,
.site-nav__button:hover,
.site-nav__button:focus-visible {
  background: rgba(255, 255, 255, 0.45);
  color: var(--teal);
}

.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;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feed-mobile-post {
  display: none;
}

.feed-mobile-post .btn {
  width: auto;
  min-width: 0;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feed-mobile-post__button {
  min-height: 40px;
  padding: 0 16px;
  background: var(--teal);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 18px rgba(8, 77, 87, 0.14);
}

.mobile-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(8, 77, 87, 0.15);
  background: rgba(255, 255, 255, 0.55);
  color: var(--teal);
  font-size: 1.25rem;
}

.mobile-gear {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(8, 77, 87, 0.15);
  background: rgba(255, 255, 255, 0.55);
  color: var(--teal);
  font-size: 1.35rem;
  font-weight: 900;
  place-items: center;
  text-decoration: none;
}

.mobile-gear.is-active {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(108, 62, 161, 0.35);
  color: #6c3ea1;
}

.avatar {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  border: 3px solid rgba(242, 183, 7, 0.9);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(8, 77, 87, 0.12);
  background: #fff7d6;
}

.avatar.sm {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-width: 2px;
}

.avatar.lg {
  width: 88px;
  height: 88px;
  min-width: 88px;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 20px 52px;
}

.hero-card,
.card,
.stat-card,
.table-card,
.settings-card {
  background: rgba(255, 253, 240, 0.88);
  border: 1px solid rgba(242, 183, 7, 0.42);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.card,
.table-card,
.settings-card {
  padding: 24px;
}

.hero-card {
  padding: 34px;
}

.hero-card h1,
.hero-card h2,
.section-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-card p,
.lead {
  margin: 0;
  color: rgba(23, 51, 58, 0.78);
  font-size: 1.1rem;
  line-height: 1.6;
}

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

.public-layout {
  display: grid;
  gap: 24px;
}

.sidebar {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 96px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(8, 77, 87, 0.12);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--coral));
  color: white;
}

.btn-secondary {
  background: var(--teal);
  color: white;
}

.btn-light {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  border-color: rgba(8, 77, 87, 0.12);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: rgba(8, 77, 87, 0.2);
}

.btn-full {
  width: 100%;
}

.hero-actions,
.auth-stack,
.form-actions,
.inline-actions,
.quick-links,
.filter-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-stack {
  flex-direction: column;
  align-items: stretch;
}

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(23, 51, 58, 0.55);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(8, 77, 87, 0.14);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: stretch;
}

.composer {
  display: grid;
  gap: 18px;
}

.composer-head {
  display: flex;
  gap: 14px;
  align-items: start;
}

.composer-field,
.form-input,
.form-textarea,
.search-input,
.select-input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(8, 77, 87, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  outline: none;
}

.composer-field:focus,
.form-input:focus,
.form-textarea:focus,
.search-input:focus,
.select-input:focus {
  border-color: rgba(8, 77, 87, 0.28);
  box-shadow: 0 0 0 4px rgba(8, 77, 87, 0.08);
}

.composer-prompt {
  display: flex;
  align-items: center;
  min-height: 58px;
  text-align: left;
  appearance: none;
}

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

.composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.composer-toolbar--media {
  justify-content: flex-start;
}

.composer-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.icon-chip,
.pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  border: 1px solid rgba(8, 77, 87, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

.icon-chip--action {
  color: white;
  background: #6c3ea1;
  border-color: rgba(108, 62, 161, 0.38);
  box-shadow: 0 10px 20px rgba(108, 62, 161, 0.18);
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.icon-chip--action:hover,
.icon-chip--action:focus-visible {
  background: #5a3188;
  border-color: rgba(90, 49, 136, 0.52);
  color: white;
  box-shadow: 0 12px 24px rgba(90, 49, 136, 0.24);
  transform: translateY(-1px);
}

.tag {
  font-size: 0.9rem;
  color: rgba(23, 51, 58, 0.75);
}

.feed-filter-card {
  display: grid;
  gap: 14px;
}

.feed-filter-card__copy {
  display: grid;
  gap: 6px;
}

.feed-filter-card__copy h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--teal);
}

.feed-filter-card__copy p {
  margin: 0;
  color: rgba(23, 51, 58, 0.72);
  line-height: 1.5;
}

.feed-topic-filter-field {
  display: grid;
  gap: 6px;
}

.feed-filter-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.feed-search-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.search-highlight {
  background: rgba(246, 106, 27, 0.18);
  color: var(--teal);
  border-radius: 0.35em;
  padding: 0 0.14em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.search-result-note {
  margin: 0;
  color: rgba(23, 51, 58, 0.72);
  line-height: 1.45;
}

.filter-chip {
  border: 1px solid rgba(8, 77, 87, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(23, 51, 58, 0.8);
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 999px;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  background: rgba(242, 183, 7, 0.14);
  border-color: rgba(242, 183, 7, 0.42);
  color: var(--teal);
  transform: translateY(-1px);
}

.profile-search-form {
  margin: 18px 0 20px;
}

.filter-chip.is-active {
  background: linear-gradient(135deg, rgba(8, 77, 87, 0.96), rgba(35, 104, 112, 0.92));
  border-color: rgba(8, 77, 87, 0.72);
  color: white;
}

.feed-list {
  display: grid;
  gap: 18px;
}

.feed-history-toggle {
  position: sticky;
  top: 92px;
  z-index: 25;
  width: 100%;
  border: 1px solid rgba(108, 62, 161, 0.24);
  background: rgba(108, 62, 161, 0.14);
  color: #6c3ea1;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 900;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.feed-history-toggle:hover,
.feed-history-toggle:focus-visible {
  background: rgba(108, 62, 161, 0.2);
  border-color: rgba(108, 62, 161, 0.34);
}

.post-card--history-hidden {
  display: none;
}

.post-card {
  display: grid;
  gap: 16px;
}

.post-top {
  display: flex;
  align-items: start;
  gap: 14px;
}

.post-avatar-link,
.comment-avatar-link {
  display: block;
  line-height: 0;
  border-radius: 999px;
}

.post-avatar-link:focus-visible,
.comment-avatar-link:focus-visible {
  outline: 3px solid rgba(108, 62, 161, 0.45);
  outline-offset: 4px;
}

.post-top__main {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.post-top__content {
  display: grid;
  gap: 0;
  min-width: 0;
}

.post-meta {
  display: flex;
  gap: 6px 10px;
  flex-wrap: wrap;
  align-items: center;
}

.post-author-shortcuts {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 2px;
  color: rgba(23, 51, 58, 0.66);
  font-size: 0.84rem;
  font-weight: 800;
}

.post-author-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
}

.post-author-shortcut__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  border-radius: 999px;
  color: white;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.post-author-shortcut__icon svg {
  width: 11px;
  height: 11px;
  display: block;
}

.post-author-shortcut__icon--gallery {
  background: linear-gradient(135deg, var(--mode-gallery-start), var(--mode-gallery-end));
}

.post-author-shortcut__icon--feed {
  background: linear-gradient(135deg, var(--mode-feed-start), var(--mode-feed-end));
}

.post-author-shortcut:hover,
.post-author-shortcut:focus-visible {
  color: var(--teal);
  text-decoration: underline;
}

.post-author-shortcut__divider {
  color: rgba(23, 51, 58, 0.38);
}

.post-name {
  font-size: 1.2rem;
  font-weight: 800;
}

.post-name-link,
.comment-author-link {
  color: inherit;
  text-decoration: none;
}

.post-name-link:hover,
.comment-author-link:hover {
  text-decoration: underline;
}

.post-name-link:focus-visible,
.comment-author-link:focus-visible {
  outline: 3px solid rgba(108, 62, 161, 0.35);
  outline-offset: 3px;
  border-radius: 8px;
}

.post-time {
  color: rgba(23, 51, 58, 0.55);
}

.post-headline {
  margin: 10px 0 8px;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.post-headline a,
.post-copy a {
  color: inherit;
  text-decoration: none;
}

.post-headline a:hover,
.post-copy a:hover {
  text-decoration: underline;
}

.post-copy {
  margin: 0;
  color: rgba(23, 51, 58, 0.88);
  font-size: 1.06rem;
  line-height: 1.55;
}

.post-copy-wrap {
  display: grid;
  gap: 8px;
}

.post-copy-wrap--collapsible .post-copy--preview,
.post-copy-toggle {
  display: none;
}

.post-copy-wrap--collapsible .post-copy--full {
  display: block;
}

.post-copy-toggle {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--purple);
  font-weight: 800;
  padding: 0;
  cursor: pointer;
}

.post-copy-toggle:hover,
.post-copy-toggle:focus-visible {
  color: #5a3188;
  text-decoration: underline;
}

.post-location {
  margin: 10px 0 0;
  color: rgba(8, 77, 87, 0.78);
  font-weight: 700;
}

.media-grid {
  display: grid;
  gap: 12px;
}

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

.media {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(8, 77, 87, 0.08);
  min-height: 240px;
}

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

.media-link {
  display: block;
  width: 100%;
  height: 100%;
}

.media.video::after {
  display: none;
}

.media-gallery {
  display: grid;
  gap: 10px;
}

.media-gallery__toggle {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--purple);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 0;
  cursor: pointer;
}

.media-gallery__toggle:hover,
.media-gallery__toggle:focus-visible {
  color: #5a3188;
  text-decoration: underline;
}

.media-gallery__strip {
  display: grid;
  gap: 12px;
}

.media-gallery__slide {
  min-width: 0;
}

.media-gallery.is-expanded .media-gallery__summary {
  display: none;
}

@media (min-width: 721px) {
  .media-gallery__strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .media-gallery:not(.is-expanded) .media-gallery__strip {
    display: none;
  }
}

@media (max-width: 720px) {
  .media-gallery {
    gap: 0;
  }

  .media-gallery__summary,
  .media-gallery__toggle {
    display: none;
  }

  .media-gallery__strip {
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: min(86vw, 420px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .media-gallery__strip[hidden] {
    display: grid !important;
  }

  .media-gallery__slide {
    scroll-snap-align: center;
  }

  .media-gallery__slide .media {
    min-height: 280px;
  }
}

.video-meta {
  position: absolute;
  inset: auto 14px 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  font-weight: 700;
}

.story-page {
  max-width: 980px;
}

.story-card {
  display: grid;
  gap: 22px;
  padding: 32px;
}

.story-kicker {
  margin: 0;
  color: var(--teal);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.story-title {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: rgba(23, 51, 58, 0.7);
  font-weight: 700;
}

.story-body {
  display: grid;
  gap: 16px;
}

.story-body p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(23, 51, 58, 0.92);
}

.story-media-grid {
  display: grid;
  gap: 16px;
}

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

.story-media {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(8, 77, 87, 0.08);
  background: rgba(255,255,255,0.92);
}

.story-media img,
.story-media video {
  display: block;
  width: 100%;
  height: auto;
}

.story-media--video {
  aspect-ratio: 16 / 9;
  max-height: min(70vh, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.92);
}

.story-media--video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.story-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.video-time {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
}

.post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(8, 77, 87, 0.1);
  padding-top: 12px;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.action-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 999px;
}

.action-btn--metric {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.action-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.action-btn__count-badge {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(8, 77, 87, 0.1);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 900;
}

.action-btn:hover,
.action-btn.active {
  background: rgba(242, 183, 7, 0.14);
  color: var(--teal);
}

.action-btn--danger {
  color: var(--danger);
  background: rgba(207, 74, 50, 0.08);
}

.action-btn--danger:hover,
.action-btn--danger:focus-visible {
  background: rgba(207, 74, 50, 0.16);
  color: #8f2417;
}

.count-row {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(23, 51, 58, 0.65);
  font-weight: 700;
}

.comment-section {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.comment-section--collapsed .comment-list,
.comment-section--collapsed .comment-form,
.comment-list[hidden],
.comment-form[hidden],
.comment-empty-toggle[hidden] {
  display: none !important;
}

.comment-empty-toggle {
  width: 100%;
  border: 1px solid rgba(108, 62, 161, 0.28);
  background: rgba(108, 62, 161, 0.14);
  color: #5b328a;
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 14px;
  text-align: center;
}

.comment-empty-toggle:hover,
.comment-empty-toggle:focus-visible {
  background: rgba(108, 62, 161, 0.2);
  border-color: rgba(108, 62, 161, 0.36);
}

.comment-list {
  display: grid;
  gap: 12px;
}

.comment-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.comment-body {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(8, 77, 87, 0.08);
}

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

.comment-author {
  font-weight: 800;
  color: var(--teal);
}

.comment-time {
  color: rgba(23, 51, 58, 0.58);
  font-size: 0.92rem;
}

.comment-body p {
  margin: 0;
  white-space: pre-wrap;
  color: rgba(23, 51, 58, 0.84);
}

.comment-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 6px;
}

.comment-actions--public {
  margin-top: 4px;
}

.comment-counts {
  color: rgba(23, 51, 58, 0.64);
  font-size: 0.92rem;
  font-weight: 700;
}

.comment-replies {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding-left: 14px;
  border-left: 2px solid rgba(8, 77, 87, 0.09);
}

.comment-empty {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.45);
  color: rgba(23, 51, 58, 0.64);
  font-weight: 700;
}

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

.comment-form--reply {
  margin-top: 12px;
}

.comment-field {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(8, 77, 87, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  resize: vertical;
  min-height: 76px;
  outline: none;
}

.comment-field:focus {
  border-color: rgba(8, 77, 87, 0.28);
  box-shadow: 0 0 0 4px rgba(8, 77, 87, 0.08);
}

.comment-submit {
  align-self: end;
}

.action-btn--small {
  padding: 6px 10px;
  font-size: 0.92rem;
}

.muted {
  color: rgba(23, 51, 58, 0.65);
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(8, 77, 87, 0.08);
  color: var(--teal);
  font-weight: 800;
  font-size: 0.84rem;
}

.profile-cover {
  background: linear-gradient(135deg, rgba(8,77,87,0.95), rgba(242,183,7,0.84));
  color: white;
  padding: 34px;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.profile-cover::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -60px;
  top: -60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
}

.profile-stack {
  display: flex;
  align-items: end;
  gap: 20px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.profile-stack .avatar {
  width: 104px;
  height: 104px;
  min-width: 104px;
  border-color: rgba(255,255,255,0.8);
}

.profile-cover__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.profile-cover__mode-group {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.profile-cover__mode-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: 1000;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 6px 18px rgba(23, 51, 58, 0.16);
}

.profile-cover__mode-title--feed {
  color: #F2B707;
}

.profile-cover__mode-title--gallery {
  color: #D5FF7A;
}

.profile-cover__switch-group {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.profile-cover__switch-label {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.profile-cover-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 900;
  background: linear-gradient(180deg, rgba(255, 253, 246, 0.98), rgba(243, 238, 216, 0.96));
  color: #17333A;
  border: 1px solid rgba(23, 51, 58, 0.12);
  box-shadow: 0 14px 34px rgba(23, 51, 58, 0.14);
}

.profile-cover-switch__icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  border-radius: 999px;
  color: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.profile-cover-switch__icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.profile-cover-switch--gallery {
  border-color: rgba(43, 103, 70, 0.24);
}

.profile-cover-switch--gallery .profile-cover-switch__icon {
  background: linear-gradient(135deg, var(--mode-gallery-start), var(--mode-gallery-end));
}

.profile-cover-switch--feed {
  border-color: rgba(24, 72, 100, 0.28);
}

.profile-cover-switch--feed .profile-cover-switch__icon {
  background: linear-gradient(135deg, var(--mode-feed-start), var(--mode-feed-end));
}

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

.profile-intro-meta {
  display: grid;
  gap: 6px;
}

.profile-intro-meta__item {
  margin: 0;
  color: var(--purple);
  font-weight: 700;
  line-height: 1.45;
}

.profile-media-library {
  display: grid;
  gap: 18px;
}

.profile-media-library__title {
  margin: 10px 0 6px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.profile-media-library__copy {
  margin: 0;
  max-width: 760px;
  color: rgba(23, 51, 58, 0.74);
  line-height: 1.55;
}

.profile-media-uploader {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 26px;
  background: rgba(8, 77, 87, 0.05);
  border: 1px solid rgba(8, 77, 87, 0.12);
}

.profile-media-uploader__summary {
  display: grid;
  gap: 16px;
}

.profile-media-uploader__stack {
  display: grid;
  gap: 14px;
  width: min(100%, 640px);
}

.profile-media-sort-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.profile-media-refine__label {
  font-size: 0.78rem;
  white-space: nowrap;
}

.profile-media-sort-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-media-sort-group__label {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(23, 51, 58, 0.5);
  white-space: nowrap;
}

.profile-media-sort-group__options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-media-sort-divider {
  width: 1px;
  height: 18px;
  background: rgba(8, 77, 87, 0.12);
  flex: 0 0 1px;
}

.profile-media-sort-chip {
  min-height: 0;
  padding: 8px 12px;
  font-size: 0.86rem;
  white-space: nowrap;
}

.profile-mode-panel {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 24px;
  width: 100%;
  box-shadow: 0 14px 34px rgba(8, 77, 87, 0.18);
}

.profile-mode-panel .badge {
  width: fit-content;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-mode-panel__badge-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-mode-panel__icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
}

.profile-mode-panel__icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.profile-mode-panel p {
  margin: 0;
  max-width: none;
  line-height: 1.55;
}

.profile-mode-panel--feed {
  background: linear-gradient(135deg, var(--mode-feed-start), var(--mode-feed-end));
  color: white;
  box-shadow: 0 14px 34px var(--mode-feed-shadow);
}

.profile-mode-panel--feed [data-profile-feed-badge] {
  color: white;
  opacity: 0.82;
}

.profile-mode-panel--feed p {
  color: rgba(255, 255, 255, 0.9);
}

.profile-mode-panel--gallery {
  background: linear-gradient(135deg, var(--mode-gallery-start), var(--mode-gallery-end));
  color: white;
  box-shadow: 0 14px 34px var(--mode-gallery-shadow);
}

.profile-mode-panel--gallery [data-profile-media-library-badge] {
  color: white;
  opacity: 0.82;
}

.profile-mode-panel--gallery .profile-media-library__title {
  display: none;
}

.profile-mode-panel--gallery .profile-media-library__copy {
  color: rgba(255, 255, 255, 0.92);
}

.profile-media-dropzone {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  padding: 26px 22px;
  border-radius: 24px;
  border: 2px dashed rgba(8, 77, 87, 0.18);
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.profile-media-dropzone strong {
  font-size: 1.08rem;
  color: var(--teal);
}

.profile-media-dropzone span,
.profile-media-dropzone small {
  color: rgba(23, 51, 58, 0.72);
}

.profile-media-dropzone.is-dragover,
.profile-media-dropzone:focus-visible {
  border-color: rgba(108, 62, 161, 0.42);
  background: rgba(108, 62, 161, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.profile-media-queue {
  display: grid;
  gap: 12px;
}

.profile-media-queue__item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(8, 77, 87, 0.12);
}

.profile-media-queue__item img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 18px;
  background: rgba(8, 77, 87, 0.08);
}

.profile-media-queue__fields {
  display: grid;
  gap: 10px;
}

.profile-media-queue__meta {
  color: rgba(23, 51, 58, 0.68);
  font-size: 0.92rem;
  line-height: 1.45;
}

.profile-media-uploader__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.profile-media-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--mode-action-surface-start), var(--mode-action-surface-end));
  color: #23433b;
  border: 1px solid rgba(35, 67, 59, 0.14);
  box-shadow: 0 8px 18px rgba(23, 51, 58, 0.1);
  font-weight: 900;
  font-size: 0.87rem;
  white-space: nowrap;
  flex: 0 0 auto;
}

.profile-media-upload-button:hover,
.profile-media-upload-button:focus-visible {
  background: linear-gradient(180deg, #FFFFFF, #F7F1DE);
  color: #17333A;
  border-color: rgba(23, 51, 58, 0.18);
  box-shadow: 0 10px 22px rgba(23, 51, 58, 0.14);
}

.profile-media-upload-button__icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mode-gallery-start), var(--mode-feed-end));
  color: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.profile-media-upload-button__icon svg {
  width: 11px;
  height: 11px;
  display: block;
}

.profile-media-manage-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #17333A;
  border: 1px solid rgba(23, 51, 58, 0.12);
  box-shadow: 0 8px 18px rgba(23, 51, 58, 0.08);
  font-weight: 900;
  font-size: 0.87rem;
  white-space: nowrap;
  flex: 0 0 auto;
}

.profile-media-manage-button:hover,
.profile-media-manage-button:focus-visible {
  background: #FFFFFF;
  color: #0d2c31;
  border-color: rgba(13, 44, 49, 0.18);
}

.profile-media-manage-button__icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  border-radius: 999px;
  background: rgba(6, 109, 192, 0.12);
  color: #066DC0;
}

.profile-media-manage-button__icon svg {
  width: 11px;
  height: 11px;
  display: block;
}

.profile-media-manage-button--danger {
  background: linear-gradient(135deg, #8e2f4d, #c33e67);
  color: white;
  border-color: rgba(113, 25, 54, 0.3);
}

.profile-media-manage-button--danger .profile-media-manage-button__icon {
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.profile-media-manage-button--danger:hover,
.profile-media-manage-button--danger:focus-visible {
  background: linear-gradient(135deg, #7a2742, #b0355b);
  color: white;
}

.profile-media-manage-button--quiet .profile-media-manage-button__icon {
  background: rgba(23, 51, 58, 0.08);
  color: rgba(23, 51, 58, 0.88);
}

.page-profile-gallery .profile-media-uploader.is-owner .profile-media-uploader__summary {
  grid-template-columns: 1fr;
  align-items: start;
}

.page-profile-gallery .profile-media-uploader:not(.is-owner) .profile-media-uploader__actions,
.page-profile-gallery .profile-media-uploader:not(.is-owner) .profile-media-queue {
  display: none !important;
}

.page-profile-gallery .profile-media-uploader.is-owner .profile-media-uploader__actions .btn {
  min-width: 0;
}

.page-profile-gallery .profile-media-uploader:not(.is-owner) .profile-media-uploader__summary {
  grid-template-columns: 1fr;
  align-items: start;
}

@media (max-width: 1180px) {
  .page-profile-gallery .profile-media-uploader.is-owner .profile-media-uploader__summary,
  .page-profile-gallery .profile-media-uploader:not(.is-owner) .profile-media-uploader__summary {
    grid-template-columns: 1fr;
  }

  .profile-media-sort-controls {
    width: 100%;
  }
}

.profile-media-gallery {
  --profile-gallery-columns: 4;
  --profile-gallery-gap: 4px;
  --profile-gallery-row-unit: 8px;
  display: grid;
  grid-template-columns: repeat(var(--profile-gallery-columns), minmax(0, 1fr));
  gap: var(--profile-gallery-gap);
  grid-auto-rows: var(--profile-gallery-row-unit);
  align-items: start;
  width: 100%;
}

.profile-media-load-state {
  margin-top: 12px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(8, 77, 87, 0.05);
  border: 1px solid rgba(8, 77, 87, 0.12);
}

.profile-media-load-state[hidden],
.profile-media-gallery__sentinel[hidden] {
  display: none !important;
}

.profile-media-load-state__image,
.profile-media-load-state__video {
  width: min(320px, 100%);
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(8, 77, 87, 0.08);
  box-shadow: 0 10px 24px rgba(8, 77, 87, 0.12);
}

.profile-media-load-state__image img,
.profile-media-load-state__video iframe {
  width: 100%;
  display: block;
  border: 0;
}

.profile-media-load-state__video {
  position: relative;
  aspect-ratio: 1 / 1;
}

.profile-media-load-state__video iframe {
  position: absolute;
  inset: 0;
  height: 100%;
}

.profile-media-tile {
  display: block;
  width: 100%;
  margin-bottom: 0;
  content-visibility: auto;
  contain-intrinsic-size: 280px 360px;
}

.profile-media-tile.is-compact {
  margin-bottom: 0;
}

.profile-media-tile__button {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.profile-media-tile__button:focus-visible {
  outline: 3px solid rgba(108, 62, 161, 0.32);
  outline-offset: 4px;
}

.profile-media-tile__figure {
  position: relative;
  margin: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(8, 77, 87, 0.08);
  box-shadow: 0 4px 10px rgba(8, 77, 87, 0.06);
}

.profile-media-tile.is-selectable .profile-media-tile__figure {
  box-shadow: 0 6px 16px rgba(8, 77, 87, 0.12);
}

.profile-media-tile.is-selected .profile-media-tile__figure {
  box-shadow: 0 0 0 3px rgba(6, 109, 192, 0.82), 0 8px 20px rgba(6, 109, 192, 0.18);
}

.profile-media-tile__figure img,
.profile-media-tile__figure video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-media-tile__figure video {
  pointer-events: none;
}

.profile-media-tile__video-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  background:
    linear-gradient(180deg, rgba(6, 109, 126, 0.14), rgba(6, 109, 126, 0.24)),
    radial-gradient(circle at top right, rgba(255, 202, 87, 0.42), rgba(255, 202, 87, 0));
  color: rgba(7, 27, 31, 0.82);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-media-tile__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 8px;
  background: linear-gradient(180deg, rgba(7, 27, 31, 0), rgba(7, 27, 31, 0.18));
}

.profile-media-tile__select-indicator {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: transparent;
  border: 1px solid rgba(6, 109, 192, 0.18);
  box-shadow: 0 6px 16px rgba(7, 27, 31, 0.12);
  transition: background 120ms ease, color 120ms ease, transform 120ms ease;
}

.profile-media-tile.is-selected .profile-media-tile__select-indicator {
  background: #066DC0;
  color: white;
  transform: scale(1.04);
}

.profile-media-tile__select-indicator svg {
  width: 15px;
  height: 15px;
  display: block;
}

.profile-media-tile__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.profile-media-tile__pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}

.profile-media-gallery__sentinel {
  width: 100%;
  height: 1px;
}

.profile-media-modal {
  width: min(1440px, 100%);
  padding: 0;
  border-radius: 0;
  position: relative;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.profile-media-modal__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.profile-media-modal__viewer,
.profile-media-modal__details {
  min-width: 0;
}

.profile-media-modal__asset {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  min-height: 0;
}

.profile-media-modal__asset img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  max-height: min(84vh, 920px);
  object-fit: contain;
  background: transparent;
}

.profile-media-modal__asset video {
  width: 100%;
  height: auto;
  display: block;
  max-height: min(84vh, 920px);
  object-fit: contain;
  background: rgba(7, 27, 31, 0.94);
}

.profile-media-modal__asset.is-video {
  background: rgba(7, 27, 31, 0.96);
  min-height: min(84vh, 920px);
  box-shadow: 0 20px 48px rgba(7, 27, 31, 0.3);
}

.profile-media-modal__image[data-full-ready='false'] {
  filter: saturate(0.94);
}

.profile-media-modal__status {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(246, 243, 229, 0.18);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(7, 27, 31, 0.16);
}

.profile-media-modal__spinner {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(246, 243, 229, 0.28);
  border-top-color: rgba(246, 243, 229, 0.92);
  animation: profile-media-spin 0.9s linear infinite;
}

@keyframes profile-media-spin {
  to {
    transform: rotate(360deg);
  }
}

.profile-media-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px 8px;
}

.profile-media-detail__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(245, 247, 244, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(16px) saturate(1.08);
  box-shadow: 0 12px 28px rgba(7, 27, 31, 0.22);
}

.profile-media-detail__footer-btn {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-media-detail__footer-btn--back {
  background: rgba(255, 255, 255, 0.78);
  color: rgba(23, 51, 58, 0.96);
}

.profile-media-detail__footer-btn--share {
  background: linear-gradient(135deg, #0f8d88, #0a6c7a);
  border-color: rgba(9, 86, 89, 0.4);
  color: white;
}

.profile-media-detail__footer-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
}

.profile-media-detail__footer-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.share-page {
  max-width: 1140px;
}

.share-card {
  display: grid;
  gap: 20px;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(16, 130, 125, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(251, 249, 239, 0.98));
}

.share-card__intro {
  display: grid;
  gap: 10px;
}

.share-card__kicker {
  margin: 0;
  color: var(--teal);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.share-card__title {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.share-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: rgba(23, 51, 58, 0.68);
  font-weight: 700;
}

.share-card__figure {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(8, 77, 87, 0.08);
  background: rgba(241, 245, 242, 0.96);
  box-shadow: 0 20px 48px rgba(8, 77, 87, 0.12);
}

.share-card__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(78vh, 980px);
  object-fit: contain;
}

.share-card__body {
  gap: 12px;
}

.share-card__actions {
  justify-content: flex-start;
}

@media (max-width: 720px) {
  .profile-media-detail {
    padding: 0 0 6px;
  }

  .profile-media-detail__actions {
    width: calc(100vw - 32px);
    max-width: 260px;
    justify-content: center;
    gap: 10px;
    flex-direction: column;
  }

  .profile-media-detail__footer-btn {
    width: 100%;
    justify-content: center;
  }

  .share-card {
    padding: 18px;
    gap: 16px;
  }

  .share-card__figure {
    border-radius: 22px;
  }

  .share-card__title {
    font-size: clamp(1.7rem, 9vw, 2.5rem);
  }
}

.notice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.notice-card__body {
  display: grid;
  gap: 8px;
  max-width: 820px;
}

.notice-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.preview-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  font-weight: 800;
}

.preview-user__name-link {
  color: inherit;
  text-decoration: none;
}

.preview-user__name-link:hover,
.preview-user__name-link:focus-visible {
  text-decoration: underline;
}

.preview-user__avatar-link {
  display: inline-flex;
  border-radius: 999px;
  text-decoration: none;
}

.preview-user__avatar-link:focus-visible {
  outline: 3px solid rgba(128, 78, 163, 0.35);
  outline-offset: 3px;
}

.preview-user__avatar-link.is-active .avatar {
  box-shadow: 0 0 0 3px rgba(128, 78, 163, 0.22);
}

.card-stack {
  display: grid;
  gap: 20px;
}

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

.preview-list__item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(8, 77, 87, 0.08);
}

.preview-list__item strong {
  color: var(--teal);
}

.preview-list__item span {
  color: rgba(23, 51, 58, 0.72);
}

.preview-disabled {
  position: relative;
}

.preview-disabled::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.42));
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 20px;
}

.stat-value {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.stat-label {
  color: rgba(23, 51, 58, 0.62);
  font-weight: 700;
}

.settings-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 24px;
}

.settings-layout--wide {
  grid-template-columns: 240px minmax(0, 1fr);
}

.menu-list {
  display: grid;
  gap: 8px;
}

.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 800;
  color: rgba(23, 51, 58, 0.75);
}

.menu-link.active,
.menu-link:hover {
  background: rgba(242, 183, 7, 0.16);
  color: var(--teal);
}

.settings-group {
  display: grid;
  gap: 18px;
}

.settings-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.disabled-form .form-input:disabled,
.disabled-form .form-textarea:disabled,
.disabled-form .select-input:disabled {
  cursor: not-allowed;
  color: rgba(23, 51, 58, 0.76);
  background: rgba(255, 255, 255, 0.72);
}

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

.field-grid--composer {
  grid-template-columns: minmax(0, 1fr);
}

.field {
  display: grid;
  gap: 10px;
}

.composer-location-card {
  padding: 16px 18px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(8, 77, 87, 0.08);
}

.composer-topic-card {
  padding: 16px 18px 18px;
  border-radius: 22px;
  background: rgba(108, 62, 161, 0.08);
  border: 1px solid rgba(108, 62, 161, 0.16);
}

.composer-location-label {
  margin: 0;
  color: var(--teal);
  font-weight: 800;
}

.composer-location-help,
.composer-location-footnote,
.composer-topic-help {
  margin: 0;
  color: rgba(23, 51, 58, 0.7);
  line-height: 1.45;
}

.composer-location-help {
  font-size: 0.98rem;
}

.composer-topic-label {
  margin: 0;
  color: #6c3ea1;
  font-weight: 800;
}

.composer-topic-help {
  font-size: 0.98rem;
}

.composer-location-footnote {
  font-size: 0.9rem;
}

.composer-select-wrap {
  position: relative;
}

.composer-select-wrap::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(23, 51, 58, 0.66);
  border-bottom: 2px solid rgba(23, 51, 58, 0.66);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

.select-input--island {
  appearance: none;
  padding-right: 52px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,249,221,0.96));
  font-weight: 700;
}

.select-input--topic {
  appearance: none;
  padding-right: 52px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,240,255,0.98));
  border-color: rgba(108, 62, 161, 0.22);
  font-weight: 700;
}

.post-topic-row {
  margin: 10px 0 6px;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(108, 62, 161, 0.12);
  border: 1px solid rgba(108, 62, 161, 0.2);
  color: #5a3188;
  font-size: 0.92rem;
  font-weight: 800;
}

.field-span-2 {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 800;
}

.avatar-xl {
  width: 116px;
  height: 116px;
  min-width: 116px;
}

.avatar-settings-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.avatar-settings-copy {
  display: grid;
  gap: 12px;
  max-width: 560px;
}

.avatar-settings-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.banner-settings-row {
  display: grid;
  gap: 18px;
}

.banner-upload-preview {
  min-height: 220px;
  border-radius: 26px;
  border: 1px solid rgba(8, 77, 87, 0.12);
  background:
    linear-gradient(135deg, rgba(8,77,87,0.95), rgba(242,183,7,0.84));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 18px;
}

.banner-upload-preview.has-banner {
  box-shadow: var(--shadow-soft);
}

.banner-upload-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(8,77,87,0.12));
  pointer-events: none;
}

.banner-upload-preview .badge {
  position: relative;
  z-index: 1;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(8, 77, 87, 0.08);
}

.switch-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.switch-label {
  display: grid;
  gap: 4px;
}

.switch-label strong {
  font-size: 1rem;
}

.switch-label span {
  color: rgba(23, 51, 58, 0.66);
}

.switch-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

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

.switch-state-text {
  min-width: 2.3rem;
  text-align: right;
  font-size: 0.96rem;
  font-weight: 800;
  color: rgba(23, 51, 58, 0.64);
}

.switch {
  display: inline-block;
  position: relative;
  width: 72px;
  height: 40px;
  border-radius: 999px;
  background: rgba(8,77,87,0.18);
  border: 1px solid rgba(8, 77, 87, 0.12);
  box-shadow: inset 0 1px 2px rgba(8, 77, 87, 0.08);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  flex-shrink: 0;
}

.switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 5px 14px rgba(8,77,87,0.18);
  transition: transform 160ms ease;
}

.consent-checkbox {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--teal);
}

.toggle-row input[type="checkbox"] {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--teal);
}

.switch-input:checked + .switch-state-text {
  color: var(--teal);
}

.switch-input:checked + .switch-state-text + .switch {
  background: rgba(8, 77, 87, 0.88);
  border-color: rgba(8, 77, 87, 0.92);
}

.switch-input:checked + .switch-state-text + .switch::after {
  transform: translateX(32px);
}

.switch-input:focus-visible + .switch-state-text + .switch {
  box-shadow: 0 0 0 4px rgba(8, 77, 87, 0.12), inset 0 1px 2px rgba(8, 77, 87, 0.08);
}

.form-card {
  max-width: 780px;
  margin: 60px auto;
  padding: 34px;
  background: rgba(255, 253, 240, 0.95);
  border-radius: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(242, 183, 7, 0.42);
}

.form-card h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.field-note {
  color: rgba(23, 51, 58, 0.65);
  font-size: 0.95rem;
}

.password-rules {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(8, 77, 87, 0.08);
  color: var(--ink);
}

.password-rules strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.password-rules ul {
  margin: 0;
  padding-left: 18px;
}

.password-rules li + li {
  margin-top: 4px;
}

.public-banner {
  display: grid;
  gap: 22px;
}

.public-banner .hero-actions {
  margin-top: 8px;
}

.public-composer {
  position: relative;
  overflow: hidden;
}

.public-composer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.0), rgba(255,255,255,0.74));
  pointer-events: none;
}

#public-feed {
  scroll-margin-top: 120px;
}

.lock-note {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(242, 183, 7, 0.12);
  border: 1px solid rgba(242, 183, 7, 0.3);
  font-weight: 700;
}

.consent-box {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(8, 77, 87, 0.12);
}

.consent-box__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--teal);
}

.consent-box__body {
  margin: 0;
  color: rgba(23, 51, 58, 0.78);
  line-height: 1.55;
}

.consent-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-weight: 700;
  color: var(--ink);
}

.consent-check a {
  color: var(--teal);
  text-decoration: underline;
}

.recovery-status {
  margin-bottom: 14px;
  color: rgba(23, 51, 58, 0.8);
}

.recovery-actions {
  display: grid;
  gap: 10px;
}

.recovery-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(8, 77, 87, 0.08);
  border: 1px solid rgba(8, 77, 87, 0.14);
}

.recovery-panel__label {
  margin-bottom: 10px;
  color: rgba(23, 51, 58, 0.72);
}

.recovery-code {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  word-break: break-word;
  color: var(--teal);
}

.recovery-panel__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.metadata-note {
  color: rgba(23, 51, 58, 0.68);
  font-size: 0.92rem;
  line-height: 1.45;
}

.admin-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
}

.admin-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 96px;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 800;
  color: rgba(23, 51, 58, 0.76);
}

.admin-nav a.active,
.admin-nav a:hover {
  background: rgba(242, 183, 7, 0.18);
  color: var(--teal);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric-card {
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.96));
  border: 1px solid rgba(242, 183, 7, 0.35);
}

.metric-card.accent {
  background: linear-gradient(135deg, rgba(8,77,87,0.94), rgba(8,77,87,0.82));
  color: white;
}

.metric-card.warm {
  background: linear-gradient(135deg, rgba(242,183,7,0.28), rgba(242,100,48,0.28));
}

.metric-card strong {
  display: block;
  font-size: 2.25rem;
  line-height: 1;
  margin-top: 8px;
}

.chart-card {
  display: grid;
  gap: 18px;
}

.bars {
  display: flex;
  gap: 14px;
  align-items: end;
  height: 220px;
  padding-top: 16px;
}

.bar {
  flex: 1;
  min-width: 0;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(180deg, rgba(8,77,87,0.95), rgba(242,100,48,0.8));
  position: relative;
}

.bar span {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 700;
  color: rgba(23, 51, 58, 0.66);
}

.table-tools {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(8, 77, 87, 0.08);
  vertical-align: middle;
}

th {
  font-size: 0.93rem;
  color: rgba(23, 51, 58, 0.68);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
}

.status.success {
  background: rgba(47, 125, 88, 0.12);
  color: var(--success);
}

.status.warning {
  background: rgba(242, 183, 7, 0.18);
  color: #9a6f00;
}

.status.danger {
  background: rgba(207, 74, 50, 0.14);
  color: var(--danger);
}

.status.info {
  background: rgba(8, 77, 87, 0.12);
  color: var(--teal);
}

.list-card {
  display: grid;
  gap: 14px;
}

.report-item,
.user-mini {
  display: flex;
  align-items: start;
  gap: 12px;
}

.report-item {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(8,77,87,0.06);
}

.report-item.active {
  outline: 3px solid rgba(8, 77, 87, 0.1);
}

.action-btn--muted,
.comment-report {
  color: rgba(23, 51, 58, 0.72);
}

.comment-report {
  margin-left: auto;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.admin-summary-grid strong {
  font-size: 2.1rem;
}

.admin-table__excerpt {
  display: grid;
  gap: 8px;
}

.admin-table__excerpt p {
  margin: 0;
  color: rgba(23, 51, 58, 0.74);
}

.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.report-summary-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
}

.report-target-shell,
.report-target-preview {
  display: grid;
  gap: 10px;
}

.report-target-preview p {
  margin: 0;
  white-space: pre-wrap;
}

.report-filter-group,
.report-action-group {
  align-items: stretch;
}

.empty-state {
  padding: 28px;
  text-align: center;
  color: rgba(23, 51, 58, 0.66);
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(23, 51, 58, 0.94);
  color: white;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.like-burst-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 980;
}

.floating-heart {
  position: fixed;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #ff5a70, #d62839);
  border-radius: 4px;
  opacity: 0;
  transform: translate(var(--origin-x), var(--origin-y)) scale(var(--scale-start, 0.85)) rotate(var(--rotate, -45deg));
  animation: floating-heart-rise var(--duration, 1050ms) ease-out var(--delay, 0ms) forwards;
  box-shadow: 0 10px 20px rgba(214, 40, 57, 0.28);
}

.floating-heart::before,
.floating-heart::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: 50%;
}

.floating-heart::before {
  left: -50%;
  top: 0;
}

.floating-heart::after {
  top: -50%;
  left: 0;
}

@keyframes floating-heart-rise {
  0% {
    opacity: 0;
    transform: translate(var(--origin-x), var(--origin-y)) scale(var(--scale-start, 0.85)) rotate(var(--rotate, -45deg));
  }
  18% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translate(
      calc(var(--origin-x) + var(--drift-x, 0px)),
      calc(var(--origin-y) - var(--drift-y, 240px))
    ) scale(var(--scale-end, 1.2)) rotate(var(--rotate, -45deg));
  }
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(23, 51, 58, 0.48);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 999;
}

.modal.open {
  display: flex;
}

.modal-card {
  width: min(100%, 520px);
  padding: 28px;
  background: var(--card);
  border-radius: 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(242, 183, 7, 0.42);
}

.modal-card h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.modal-card p {
  color: rgba(23, 51, 58, 0.72);
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.footer-note {
  padding: 28px 0 8px;
  text-align: center;
  color: rgba(23, 51, 58, 0.62);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid rgba(8, 77, 87, 0.1);
  background: rgba(255, 248, 214, 0.86);
  backdrop-filter: blur(10px);
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  font-weight: 700;
  color: rgba(23, 51, 58, 0.82);
}

.site-footer__inner::-webkit-scrollbar {
  display: none;
}

.site-footer__links a,
.site-footer__copyright {
  white-space: nowrap;
}

.site-footer__links::after {
  content: "•";
  color: rgba(23, 51, 58, 0.3);
  font-weight: 900;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: var(--coral);
}

.site-footer__copyright {
  color: rgba(23, 51, 58, 0.7);
  font-weight: 700;
}

.scroll-top-button {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 88;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  color: var(--teal);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px rgba(8, 77, 87, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.scroll-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-button:hover,
.scroll-top-button:focus-visible {
  background: rgba(255, 255, 255, 0.44);
  border-color: rgba(8, 77, 87, 0.2);
}

@media (max-width: 1080px) {
  .profile-media-gallery {
    --profile-gallery-columns: 4;
  }

  .layout,
  .hero-grid,
  .settings-layout,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .admin-sidebar {
    position: static;
  }

  .notice-card {
    align-items: start;
  }

  .metric-grid,
  .stat-grid,
  .report-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .profile-media-gallery {
    --profile-gallery-columns: 3;
  }

  .page-feed .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 10px;
    align-items: start;
  }

  .page-feed.feed-guest .header-inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 10px;
  }

  .header-inner {
    grid-template-columns: auto auto;
    align-items: start;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 6px;
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .header-actions {
    justify-self: end;
  }

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .mobile-gear {
    display: inline-grid;
  }

  .page-feed .feed-mobile-post {
    display: flex;
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .page-feed .feed-mobile-post[hidden] {
    display: none !important;
  }

  .page-feed .site-nav {
    display: none !important;
  }

  .page-feed .mobile-toggle {
    display: none;
  }

  .site-nav[aria-label="Member navigation"] {
    display: flex;
    grid-column: 1;
    grid-row: 2;
    justify-self: stretch;
    justify-content: center;
    padding-top: 0;
    gap: 10px;
  }

  .site-nav[aria-label="Member navigation"] a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(8, 77, 87, 0.12);
    box-shadow: 0 8px 18px rgba(8, 77, 87, 0.08);
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal);
  }

  .site-nav[aria-label="Member navigation"] a.active,
  .site-nav[aria-label="Member navigation"] a:hover,
  .site-nav[aria-label="Member navigation"] a:focus-visible {
    background: var(--teal);
    border-color: var(--teal);
    color: white;
    text-decoration: none;
  }

  .site-nav[aria-label="Member navigation"] a[href="/settings"],
  .site-nav[aria-label="Member navigation"] .site-nav__button {
    display: none;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .page-feed .header-actions {
    align-self: start;
  }

  .page-feed.feed-guest .header-actions {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    align-self: start;
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
  }

  .field-grid,
  .metric-grid,
  .stat-grid,
  .report-summary-grid {
    grid-template-columns: 1fr;
  }

  .preview-user span,
  .preview-user .preview-user__name-link {
    display: none;
  }

  .media-grid.two {
    grid-template-columns: 1fr;
  }

  .story-media-grid.two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-footer__inner {
    gap: 10px;
    padding: 14px 14px 16px;
  }

  .site-footer__links {
    gap: 10px;
    font-size: 0.8rem;
  }

  .site-footer__copyright {
    font-size: 0.8rem;
  }

  .scroll-top-button {
    width: 42px;
    height: 42px;
    right: 12px;
    bottom: 14px;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 20px 14px 42px;
  }

  .header-inner {
    padding: 14px;
    gap: 10px;
  }

  .logo {
    font-size: 2.2rem;
  }

  .logo-tagline {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
  }

  .hero-card,
  .card,
  .table-card,
  .settings-card,
  .form-card {
    padding: 18px;
    border-radius: 24px;
  }

  .composer-head,
  .post-top,
  .profile-stack {
    align-items: start;
  }

  .profile-media-library__header {
    align-items: stretch;
  }

  .profile-cover__mode-title {
    font-size: 1.25rem;
  }

  .profile-media-uploader {
    padding: 16px;
  }

  .profile-media-dropzone {
    padding: 20px 16px;
  }

  .profile-media-queue__item {
    grid-template-columns: 1fr;
  }

  .profile-media-queue__item img {
    width: 100%;
    height: auto;
    max-width: 156px;
    aspect-ratio: 1 / 1;
  }

  .profile-media-modal {
    width: min(100%, 100%);
  }

  .profile-media-modal__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-media-modal__asset {
    min-height: 0;
  }

  .profile-media-modal__asset.is-video {
    min-height: min(62vh, 620px);
  }

  .post-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 10px;
  }

  .post-top__main {
    display: contents;
  }

  .post-meta {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .post-top__content {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-left: 0;
    margin-left: 0;
  }

  .post-top__content .post-headline,
  .post-top__content .post-copy,
  .post-top__content .post-copy-wrap,
  .post-top__content .post-topic-row {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    margin-left: 0;
  }

  .post-actions,
  .composer-toolbar,
  .table-tools {
    align-items: stretch;
  }

  .feed-history-toggle {
    top: 82px;
    padding: 10px 14px;
    font-size: 0.94rem;
  }

  .page-post .composer-head {
    gap: 0;
  }

  .page-post .composer-head .avatar {
    display: none;
  }

  .action-row {
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .action-row .action-btn--metric {
    gap: 6px;
    padding: 8px 10px;
  }

  .action-row .action-btn__label {
    display: none;
  }

  .action-row .action-btn__count-badge {
    display: inline-flex;
  }

  .count-row {
    display: none;
  }

  .action-row .action-btn--muted,
  .action-row .action-btn--danger {
    padding: 8px 10px;
    font-size: 0.84rem;
  }

  .comment-empty-toggle {
    padding: 9px 12px;
    font-size: 0.92rem;
  }

  .btn,
  .menu-link {
    width: 100%;
  }

  .comment-form {
    grid-template-columns: 1fr;
  }

  .feed-search-form,
  .profile-search-form {
    grid-template-columns: 1fr;
  }

  .feed-search-actions {
    justify-content: flex-start;
  }

  .feed-filter-card {
    gap: 10px;
    padding: 16px;
  }

  .feed-filter-card__copy {
    gap: 4px;
  }

  .feed-filter-card__copy h1,
  .feed-filter-card__copy h2 {
    font-size: 1.85rem;
    line-height: 1;
    margin: 8px 0 4px !important;
  }

  .feed-filter-card__copy p,
  .feed-topic-filter-field .composer-location-footnote {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .feed-filter-card .badge {
    width: fit-content;
    padding: 6px 10px;
  }

  .feed-filter-card .btn,
  .feed-filter-card .filter-chip {
    width: auto;
  }

  .feed-search-actions {
    gap: 8px;
  }

  .feed-search-actions .btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    padding: 10px 14px;
    font-size: 0.94rem;
  }

  .feed-topic-filter-field {
    gap: 4px;
  }

  .feed-filter-group {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-right: -2px;
    scrollbar-width: thin;
  }

  .feed-filter-group .filter-chip {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 0.92rem;
  }

  .post-copy-wrap--collapsible .post-copy--preview,
  .post-copy-wrap--collapsible .post-copy-toggle {
    display: block;
  }

  .post-copy-wrap--collapsible .post-copy--full {
    display: none;
  }

  .post-copy-wrap--collapsible.is-expanded .post-copy--preview {
    display: none;
  }

  .post-copy-wrap--collapsible.is-expanded .post-copy--full {
    display: block;
  }

  .header-actions .btn {
    display: none;
  }

  .page-feed .header-actions .btn {
    display: inline-flex;
    width: auto;
    min-width: 0;
    padding: 10px 14px;
  }

  .page-feed.feed-guest .header-actions .btn {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .page-feed .header-actions [data-feed-guest-only][hidden] {
    display: none !important;
  }

  .page-feed.feed-guest .preview-user,
  .page-feed.feed-guest .mobile-gear,
  .page-feed.feed-guest .mobile-toggle {
    display: none !important;
  }

  .action-row,
  .count-row,
  .hero-actions,
  .inline-actions,
  .form-actions {
    width: 100%;
  }

  .profile-media-uploader__actions,
  .profile-cover__actions {
    width: 100%;
  }

  .profile-media-sort-controls {
    width: 100%;
    padding: 8px 10px;
  }

  .profile-media-sort-group__options {
    display: flex;
  }

  .profile-media-sort-chip {
    width: auto;
    min-width: max-content;
  }

  .profile-media-uploader__actions .btn,
  .profile-cover__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .profile-media-gallery {
    --profile-gallery-columns: 2;
  }

  .post-author-shortcuts {
    width: 100%;
    gap: 6px;
    margin-left: 0;
    font-size: 0.76rem;
  }

  .post-author-shortcut {
    gap: 3px;
  }

  .post-author-shortcut__icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

  .post-author-shortcut__icon svg {
    width: 10px;
    height: 10px;
  }

  .switch-row {
    align-items: start;
  }
}

.is-hidden {
  display: none !important;
}

.preview-note {
  margin-top: 14px;
  color: rgba(23, 51, 58, 0.68);
  font-size: 0.95rem;
  line-height: 1.5;
}

.preview-note strong {
  color: var(--teal);
}

.public-banner {
  display: grid;
  gap: 20px;
}

.public-composer .composer {
  position: relative;
  z-index: 1;
}

.post-copy {
  white-space: pre-wrap;
}

.post-copy strong {
  color: var(--teal);
}

.media-grid video,
.media-grid img {
  width: 100%;
  height: 100%;
}

.media-grid img {
  object-fit: cover;
}

.media-grid video {
  min-height: 0;
  object-fit: contain;
  background: transparent;
}

.media.video {
  aspect-ratio: 16 / 9;
  min-height: 0;
  max-height: min(62vh, 480px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.action-btn {
  border: 0;
}

.action-btn.is-disabled {
  opacity: 0.8;
}

.admin-summary {
  display: grid;
  gap: 18px;
}

.admin-publish-form {
  display: grid;
  gap: 16px;
}

.admin-publish-form .field {
  display: grid;
  gap: 8px;
}

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

.file-field__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 800;
  color: var(--teal);
}

.file-field small {
  color: rgba(23, 51, 58, 0.68);
  line-height: 1.5;
}

.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--teal);
}

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

.composer-draft-label,
.composer-detail-label {
  color: var(--teal);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-card--draft {
  border: 1px dashed rgba(8, 77, 87, 0.18);
  background: rgba(255, 255, 255, 0.74);
}

.post-copy--placeholder {
  color: rgba(23, 51, 58, 0.56);
  font-style: italic;
}

.upload-preview {
  display: grid;
  gap: 12px;
}

.upload-preview--details {
  margin-top: -2px;
}

.upload-preview__item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(8, 77, 87, 0.1);
}

.upload-preview__thumb {
  width: 88px;
  height: 88px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(8, 77, 87, 0.08);
}

.upload-preview__thumb img,
.upload-preview__thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-preview__thumb video {
  object-fit: contain;
  background: #081318;
}

.upload-preview__body {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.upload-preview__meta {
  display: grid;
  gap: 4px;
}

.upload-preview__meta strong {
  color: var(--teal);
}

.upload-preview__meta p {
  margin: 0;
  color: rgba(23, 51, 58, 0.72);
}

.upload-preview__editor {
  display: grid;
  gap: 6px;
}

.upload-preview__poster {
  display: grid;
  gap: 8px;
}

.upload-preview__poster-frame {
  width: min(240px, 100%);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #081318;
  border: 1px solid rgba(8, 77, 87, 0.12);
  display: grid;
  place-items: center;
}

.upload-preview__poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.upload-preview__poster-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.upload-preview__poster-controls {
  display: grid;
  gap: 6px;
}

.upload-preview__poster-controls span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--teal);
}

.upload-preview__poster-range {
  width: min(320px, 100%);
  accent-color: var(--orange);
}

.upload-preview__editor span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--teal);
}

.upload-preview__helper {
  font-size: 0.88rem;
  color: rgba(23, 51, 58, 0.68);
}

.upload-preview__remove {
  align-self: start;
  min-height: 40px;
  padding-inline: 16px;
}

.recent-posts-table td strong {
  display: block;
  margin-bottom: 4px;
  color: var(--teal);
}

.recent-posts-table td p {
  margin: 0;
  color: rgba(23, 51, 58, 0.74);
}

.empty-state {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  color: rgba(23, 51, 58, 0.7);
  text-align: center;
}

.toast.is-visible,
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

#dashboardShell {
  width: 100%;
}

@media (max-width: 720px) {
  .upload-preview__item {
    grid-template-columns: 1fr;
  }

  .upload-preview__thumb {
    width: 100%;
    height: 180px;
  }

  .upload-preview__remove {
    width: 100%;
  }
}
