:root{
  --bg: #eef3fb;
  --bg-soft: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #f1f5fb;
  --surface-3: #e6edf7;
  --border: #d8e3f0;

  --text: #1b2433;
  --text-soft: #55657d;
  --text-muted: #7f8ca3;

  --primary: #1877f2;
  --secondary: #4f8cff;
  --accent: #ff5c8a;
  --info: #38bdf8;

  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;

  --brand-gradient: linear-gradient(135deg, #1877f2 0%, #44b0ff 48%, #ff5c8a 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(24, 119, 242, 0.14) 0%, rgba(68, 176, 255, 0.12) 55%, rgba(255, 92, 138, 0.12) 100%);
  --shadow-soft: 0 16px 42px rgba(55, 84, 130, 0.12);
  --shadow-strong: 0 24px 70px rgba(55, 84, 130, 0.18);
  --glow-primary: 0 0 0 4px rgba(24, 119, 242, 0.16);
  --glow-secondary: 0 0 0 4px rgba(124, 77, 255, 0.18);
  --radius-xs: 12px;
  --radius-sm: 16px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --container: 980px;
}

* { box-sizing: border-box; }
*::before,
*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; width: 100%; overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(24,119,242,0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(124,77,255,0.13), transparent 24%),
    radial-gradient(circle at bottom center, rgba(255,79,163,0.12), transparent 28%),
    linear-gradient(180deg, #0b0d12 0%, var(--bg) 28%, #11151d 100%);
  background-attachment: fixed;
  overflow-x: clip;
  overscroll-behavior-x: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.has-overlay-open {
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
img, video, svg, canvas { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select, label { -webkit-tap-highlight-color: transparent; }

.app-shell,
.admin-shell {
  min-height: 100vh;
  padding: 20px;
  width: 100%;
  overflow-x: clip;
}

.container {
  width: min(100%, var(--container));
  margin: 0 auto;
}

.stack-md > * + * { margin-top: 14px; }
.stack-lg > * + * { margin-top: 22px; }
.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.page-center,
.auth-page {
  min-height: calc(100vh - 40px);
  display: grid;
  place-items: center;
}

.hero-card,
.auth-card,
.countdown-card,
.composer-card,
.post-card,
.event-card,
.stat-card,
.gallery-item,
.table-wrap,
.feed-stage,
.feed-intro-card,
.legal-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.01)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero-card,
.auth-card,
.countdown-card,
.composer-card,
.table-wrap,
.feed-stage,
.legal-card {
  padding: 24px;
}

.brand-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(53, 201, 255, 0.08);
  color: var(--info);
  border: 1px solid rgba(53, 201, 255, 0.12);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-lockup {
  display: grid;
  gap: 6px;
}
.brand-lockup strong {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.brand-lockup small,
.lead,
.notice,
.auth-linkline {
  color: var(--text-soft);
  line-height: 1.7;
}
.brand-lockup-center { justify-items: center; text-align: center; }
.auth-highlight {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.auth-highlight strong {
  color: var(--text);
  font-size: 1rem;
}
.auth-highlight p,
.auth-linkline {
  color: var(--text-soft);
  line-height: 1.65;
}
.auth-highlight-selfie {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
}

h1, h2, h3 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 4.8vw, 3.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.3vw, 1.35rem); }
p { margin: 0; }

.field { display: grid; gap: 8px; }
.field span {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
}
.field input,
.field textarea,
.field select,
.comment-form input,
.composer-textarea {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  padding: 14px 16px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.field textarea,
.composer-textarea {
  min-height: 170px;
  resize: vertical;
  line-height: 1.7;
}
.field input::placeholder,
.field textarea::placeholder,
.field select::placeholder,
.comment-form input::placeholder,
.composer-textarea::placeholder {
  color: var(--text-muted);
}
.field input:focus,
.field textarea:focus,
.field select:focus,
.comment-form input:focus,
.composer-textarea:focus {
  outline: none;
  border-color: rgba(124, 77, 255, 0.55);
  box-shadow: var(--glow-secondary);
}

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  color: var(--text-soft);
  line-height: 1.65;
}
.checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--primary);
}
.checkbox a {
  color: var(--info);
  font-weight: 600;
  text-decoration: underline;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 18px;
  min-height: 50px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, opacity 180ms ease;
}
.btn:hover,
.btn:focus-visible,
.upload-chip:hover,
.reaction-btn:hover,
.event-card:hover {
  transform: translateY(-1px);
}
.btn:focus-visible {
  outline: none;
  box-shadow: var(--glow-primary);
}
.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 16px 36px rgba(124, 77, 255, 0.28);
}
.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
.btn-mini {
  min-height: 38px;
  border-radius: 14px;
  padding-inline: 12px;
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text-soft);
}
.btn-wide { width: 100%; }
.btn-lg { min-height: 58px; padding-inline: 26px; }
.btn-glow { box-shadow: 0 20px 44px rgba(24, 119, 242, 0.2); }
.btn-pulse {
  animation: ctaPulse 2.1s ease-in-out infinite;
}
.danger,
.btn.danger {
  background: rgba(239, 68, 68, 0.1);
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.2);
}

.auth-card {
  width: min(100%, 540px);
  overflow: hidden;
}
.auth-card-lg { width: min(100%, 760px); }
.auth-card-brand {
  background:
    radial-gradient(circle at top right, rgba(124,77,255,0.16), transparent 28%),
    radial-gradient(circle at bottom left, rgba(24,119,242,0.12), transparent 24%),
    var(--surface);
}
.auth-card-compact { width: min(100%, 460px); }
.auth-page-split {
  width: 100%;
  padding: 24px 0 max(32px, env(safe-area-inset-bottom));
}
.countdown-page-split {
  width: 100%;
  padding: 24px 0 max(32px, env(safe-area-inset-bottom));
}
.countdown-shell {
  width: min(100%, 1180px);
}
.countdown-card-modern {
  display: grid;
  gap: 20px;
  align-content: center;
  min-height: 100%;
}
.auth-shell {
  width: min(100%, 1180px);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 560px);
  gap: 22px;
  align-items: stretch;
}
.auth-shell-register {
  grid-template-columns: minmax(300px, 1fr) minmax(320px, 620px);
}
.auth-story {
  padding: 28px 26px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  display: grid;
  gap: 18px;
  align-content: start;
  box-shadow: 0 24px 64px rgba(8, 10, 16, 0.34);
}
.auth-story-lead {
  color: var(--text);
  font-size: 1.06rem;
  line-height: 1.75;
}
.auth-story-cards {
  display: grid;
  gap: 12px;
}
.auth-story-card {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  display: grid;
  gap: 6px;
}
.auth-story-card strong {
  color: var(--text);
}
.auth-story-card p {
  color: var(--text-soft);
  line-height: 1.65;
}
.auth-form-modern {
  display: grid;
  gap: 16px;
}
.btn-auth-main {
  min-height: 56px;
  font-size: 1rem;
}
.register-stepper {
  display: grid;
  gap: 10px;
}
.register-stepper-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}
.register-stepper-fill {
  display: block;
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  transition: width .28s ease;
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,255,255,0.55));
}
.register-stepper-head {
  display: grid;
  gap: 4px;
}
.register-stepper-head strong {
  color: var(--text);
  font-size: 1rem;
}
.register-stepper-head small {
  color: var(--text-soft);
}
.register-step {
  display: grid;
  gap: 16px;
}
.register-step[hidden] {
  display: none !important;
}
.register-step-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.register-step-actions [hidden] {
  display: none !important;
}
.register-step-actions .btn {
  flex: 1 1 180px;
}

.countdown-scene {
  width: min(100%, 1080px);
  margin: 0 auto;
}
.countdown-premium {
  width: min(100%, 820px);
  text-align: center;
  background:
    radial-gradient(circle at top center, rgba(124,77,255,0.18), transparent 34%),
    radial-gradient(circle at bottom center, rgba(24,119,242,0.16), transparent 38%),
    var(--surface);
}
.countdown-grid {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) auto minmax(92px, 1fr) auto minmax(92px, 1fr);
  gap: 12px;
  align-items: center;
  margin: 30px 0;
}
.countdown-box {
  padding: 22px 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.countdown-grid strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 7vw, 3.4rem);
}
.countdown-grid span {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.countdown-separator {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--accent);
  transform: translateY(-10px);
}
.cta-block {
  display: flex;
  justify-content: center;
}

.feed-shell {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding-top: 96px;
  padding-bottom: 120px;
  max-width: 100%;
  overflow-x: clip;
}
.feed-topbar-banner {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
}
.feed-topbar-actions,
.post-head,
.post-author,
.comment-form,
.composer-tools,
.composer-foot,
.feed-stage,
.post-card,
.comments-block {
  min-width: 0;
}
.feed-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.btn-notification {
  position: relative;
  min-height: 50px;
  min-width: 132px;
  padding-inline: 16px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-notification-icon {
  font-size: 1rem;
  line-height: 1;
}
.btn-notification-text {
  font-weight: 700;
}
.btn-notification-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(239, 68, 68, 0.96);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.24);
}
.btn-notification-count[hidden] {
  display: none !important;
}
.btn-notification.has-alert {
  transform: translateY(-1px);
}
.btn-notification.has-alert .btn-notification-icon {
  animation: bellRing 1.8s ease-in-out infinite;
}
.btn-topbar {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  color: var(--text);
}
.btn-icon {
  width: 50px;
  min-width: 50px;
  padding: 0;
  border-radius: 16px;
}
.btn-icon span {
  font-size: 1.45rem;
  line-height: 1;
}

.feed-create-trigger {
  position: relative;
  top: 0;
  z-index: 20;
  width: 100%;
  margin-bottom: 16px;
  justify-content: center;
}

.feed-top-hint {
  display: none !important;
}
.notification-panel {
  position: fixed;
  top: 78px;
  right: max(12px, calc((100vw - min(100%, var(--container))) / 2 + 12px));
  z-index: 121;
  width: min(100vw - 24px, 380px);
  max-height: min(72vh, 560px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    rgba(28, 20, 31, 0.96);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 54px rgba(10, 6, 12, 0.34);
  backdrop-filter: blur(22px);
}
.notification-panel[hidden] {
  display: none !important;
}
.notification-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.notification-panel-head strong {
  color: var(--text);
  font-size: 1rem;
}
.notification-panel-close {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}
.notification-panel-list {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  gap: 8px;
  padding: 12px;
}
.notification-item {
  width: 100%;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.notification-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.06);
  font-size: 1rem;
}
.notification-item-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.notification-item-copy strong {
  color: var(--text);
  font-size: 0.93rem;
  line-height: 1.35;
}
.notification-item-copy small {
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notification-item time {
  color: var(--text-muted);
  font-size: 0.76rem;
  white-space: nowrap;
}
.notification-empty {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
  color: var(--text-soft);
}
.notification-permission-modal[hidden] {
  display: none !important;
}
.notification-permission-modal {
  position: fixed;
  inset: 0;
  z-index: 1350;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.notification-permission-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(10, 12, 18, 0.52);
  backdrop-filter: blur(12px);
}
.notification-permission-card {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  width: min(100%, 420px);
  padding: 20px;
  border-radius: 24px;
  display: grid;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    rgba(32, 23, 38, 0.96);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-strong);
}
.notification-permission-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.notification-permission-copy {
  display: grid;
  gap: 8px;
}
.notification-permission-copy strong {
  color: var(--text);
  font-size: 1.05rem;
}
.notification-permission-copy p {
  color: var(--text-soft);
  line-height: 1.65;
}
.notification-permission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn-notification-enable {
  min-width: 154px;
}

.composer-premium {
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255,79,163,0.1), transparent 28%),
    radial-gradient(circle at bottom left, rgba(24,119,242,0.08), transparent 26%),
    var(--surface);
}
.composer-premium.is-collapsed { display: none; }
.composer-premium.is-busy {
  opacity: 0.92;
  pointer-events: none;
}
.composer-titlebar {
  margin: -24px -24px 0;
  padding: 14px 20px;
  background: linear-gradient(90deg, rgba(24,119,242,0.16), rgba(124,77,255,0.18), rgba(255,79,163,0.16));
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.composer-textarea {
  min-height: 132px;
}
.composer-tools {
  display: flex;
  gap: 10px;
  width: 100%;
}
.upload-chip {
  min-height: 54px;
  flex: 1;
  border-radius: 16px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-soft);
  cursor: pointer;
  font-weight: 600;
}
.upload-chip-photo:hover,
.upload-chip-photo:focus-within { border-color: rgba(24,119,242,0.35); color: var(--info); }
.upload-chip-video:hover,
.upload-chip-video:focus-within { border-color: rgba(255,79,163,0.35); color: #ffb1d2; }

.upload-preview {
  width: 100%;
  min-height: 126px;
  border-radius: 18px;
  background: var(--bg-soft);
  border: 1px dashed rgba(184,192,212,0.18);
  overflow: hidden;
}
.upload-preview[hidden] { display: none; }
.upload-preview-rich {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: stretch;
}
.preview-media {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #0b0d12;
  border: 1px solid rgba(255,255,255,0.06);
}
.preview-media img,
.preview-media video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.preview-media-video video { aspect-ratio: 9 / 16; max-height: 360px; }
.preview-status {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(15, 17, 21, 0.78);
  color: var(--text);
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
}
.composer-foot {
  display: flex;
  justify-content: flex-end;
}
.btn-publish {
  min-width: 160px;
}
.composer-progress {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(24,119,242,0.12), rgba(124,77,255,0.08)),
    rgba(24,119,242,0.08);
  border: 1px solid rgba(24,119,242,0.22);
  box-shadow: 0 18px 36px rgba(24, 119, 242, 0.12);
}
.composer-progress[hidden] { display: none !important; }
.composer-progress strong {
  font-size: 1rem;
  color: var(--text);
}
.composer-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.composer-progress-head em {
  font-style: normal;
  font-weight: 800;
  color: #ffffff;
  font-size: 0.95rem;
}
.composer-progress small {
  color: var(--text-soft);
  line-height: 1.5;
  font-size: 0.92rem;
}
.composer-progress-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.28);
}
.composer-progress-bar span {
  display: block;
  width: 18%;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-gradient);
  transition: width 220ms ease;
  box-shadow: 0 0 24px rgba(124, 77, 255, 0.24);
}

.feed-tip {
  margin: 18px 0 28px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(53,201,255,0.08);
  border: 1px solid rgba(53,201,255,0.1);
  color: var(--text-soft);
  line-height: 1.6;
}
.feed-tip-bottom {
  margin-top: 18px;
  margin-bottom: 0;
}
.feed-stage {
  padding: 22px 14px 18px;
  background:
    radial-gradient(circle at top left, rgba(24,119,242,0.08), transparent 24%),
    radial-gradient(circle at bottom right, rgba(124,77,255,0.08), transparent 26%),
    var(--surface);
  overflow: hidden;
}
.feed-stage-copy {
  margin: 0 8px 18px;
  color: var(--text-soft);
  line-height: 1.6;
}
.feed-list-spacious { padding-top: 8px; }
.feed-sentinel { width: 100%; height: 2px; }

.floating-badge {
  position: sticky;
  top: 16px;
  z-index: 35;
  margin: 0 auto 18px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  background: var(--brand-gradient);
  color: #fff;
  text-align: center;
  box-shadow: 0 22px 50px rgba(124,77,255,0.28);
  animation: badgePulse 2.8s ease-in-out infinite;
}

.post-card {
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.008)),
    var(--surface);
  content-visibility: auto;
  contain-intrinsic-size: 620px;
}
.post-card-enter {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  animation: postEnter 420ms cubic-bezier(.2,.8,.2,1) forwards;
}
.post-card-highlight {
  box-shadow: 0 0 0 2px rgba(255, 214, 126, 0.32), 0 24px 54px rgba(255, 214, 126, 0.14);
}
.post-card-verified {
  background:
    radial-gradient(circle at top right, rgba(255, 214, 126, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.008)),
    var(--surface);
  border-color: rgba(255, 214, 126, 0.2);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 214, 126, 0.12);
}
.post-head,
.post-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.post-author-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.post-author-meta {
  display: grid;
  gap: 4px;
}
.post-author-meta strong {
  font-size: 1.08rem;
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0,0,0,0.28);
  letter-spacing: -0.02em;
}
.post-author-meta span { color: var(--text-muted); font-size: 0.87rem; }

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-3);
  border: 1px solid rgba(255,255,255,0.06);
}
.avatar-verified {
  border-color: rgba(255, 214, 126, 0.48);
  box-shadow: 0 0 0 2px rgba(255, 214, 126, 0.18);
}
.avatar-sm {
  width: 32px;
  height: 32px;
}
.avatar-fallback {
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--text);
}

.post-text {
  margin: 18px 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.82;
  overflow-wrap: anywhere;
}
.post-text-wrap.is-collapsed {
  position: relative;
  max-height: 132px;
  overflow: hidden;
}
.post-text-wrap.is-collapsed::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 52px;
  background: linear-gradient(180deg, rgba(15,17,21,0), rgba(15,17,21,0.96));
}
.post-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-weight: 700;
  margin: -2px 0 14px;
}
.media-frame {
  position: relative;
  isolation: isolate;
  margin-bottom: 16px;
  border-radius: 20px;
  overflow: hidden;
  background: #0a0d12;
  border: 1px solid rgba(255,255,255,0.06);
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
}
.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame.is-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,8,12,0.08), rgba(6,8,12,0.24));
  pointer-events: none;
}
.media-frame.is-video::after {
  content: "▶";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(8, 12, 18, 0.56);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.2rem;
  pointer-events: none;
  backdrop-filter: blur(6px);
}

.reaction-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.reaction-row-compact {
  margin-bottom: 14px;
}
.reaction-btn {
  position: relative;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}
.reaction-btn-emoji {
  min-width: 0;
  justify-content: center;
  font-size: 0.83rem;
}
.reaction-btn small {
  min-width: 18px;
  min-height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(255,255,255,0.05);
  color: var(--text-soft);
  font-size: 0.68rem;
}
.reaction-btn.is-active {
  background: var(--brand-gradient-soft);
  color: var(--text);
  border-color: rgba(124,77,255,0.4);
  box-shadow: 0 12px 28px rgba(124,77,255,0.14);
}
.reaction-btn.is-active small {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.reaction-float {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15,17,21,0.92);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.76rem;
  white-space: nowrap;
  animation: fadeUp 1s ease forwards;
}
.has-reaction-burst {
  overflow: hidden;
}
.reaction-burst-emoji {
  position: absolute;
  bottom: 18px;
  z-index: 4;
  font-size: 1.5rem;
  line-height: 1;
  pointer-events: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.22));
  animation: burstRise 1.05s ease forwards;
}

.comments-block {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.comments-list {
  display: grid;
  gap: 8px;
  max-height: 168px;
  overflow-y: auto;
  padding-right: 4px;
}
.comment-item {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(24,119,242,0.04);
  border: 1px solid rgba(24,119,242,0.08);
}
.comments-list::-webkit-scrollbar {
  width: 6px;
}
.comments-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.14);
  border-radius: 999px;
}
.comment-item .avatar-sm {
  flex: 0 0 32px;
}
.comment-body strong { color: var(--text); font-size: 0.84rem; }
.comment-body p {
  margin-top: 2px;
  color: var(--text-soft);
  line-height: 1.4;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,214,126,0.22), rgba(255,255,255,0.08));
  border: 1px solid rgba(255, 214, 126, 0.26);
  color: #fff2ca;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}
.verified-badge::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 214, 126, 0.22);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}
.verified-badge-inline {
  margin-left: 0;
}
.admin-user-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.comment-form {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
  width: 100%;
}
.comment-form input {
  flex: 1;
  min-height: 38px;
  min-width: 0;
  padding: 10px 12px;
  font-size: 0.92rem;
}
.btn-comment,
.btn-share {
  min-height: 38px;
  font-size: 0.84rem;
}
.btn-share {
  background: rgba(255,79,163,0.08);
  border-color: rgba(255,79,163,0.16);
  color: #f9b8da;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--text-muted);
}
.form-message.is-success {
  color: #86efac;
}
.form-message.is-error {
  color: #fca5a5;
}
.form-message.is-status {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(24,119,242,0.1);
  border: 1px solid rgba(24,119,242,0.16);
  color: #bfdbfe;
  font-weight: 600;
}

.selfie-preview {
  min-height: 120px;
  border-radius: 18px;
  border: 1px dashed rgba(184,192,212,0.24);
  background: var(--bg-soft);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.selfie-preview img {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  margin: 10px;
}
.notice-inline {
  margin-top: -2px;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.submit-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15,17,21,0.72);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
}
.submit-overlay[hidden] { display: none !important; }
.submit-overlay-card {
  min-width: 240px;
  padding: 24px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-strong);
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}
.loader-ring {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.08);
  border-top-color: var(--primary);
  animation: spin 900ms linear infinite;
}

.gallery-page {
  padding-top: 10px;
}
.gallery-hero {
  background:
    radial-gradient(circle at top right, rgba(124,77,255,0.16), transparent 26%),
    radial-gradient(circle at bottom left, rgba(24,119,242,0.12), transparent 24%),
    var(--surface);
}
.gallery-grid {
  display: grid;
  gap: 16px;
}
.gallery-grid-rich {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.gallery-item {
  padding: 10px;
}
.gallery-item-rich img,
.gallery-item-rich video {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
  border-radius: 18px;
  cursor: zoom-in;
}

.grid-cards,
.stats-grid {
  display: grid;
  gap: 16px;
}
.grid-cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.event-card,
.stat-card {
  padding: 18px;
}
.event-card strong,
.stat-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.12rem;
}
.event-card span,
.event-card small,
.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  line-height: 1.6;
}
.event-card small { color: var(--text-muted); }

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.admin-header p { color: var(--text-soft); line-height: 1.6; margin-top: 8px; }
.inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-form {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.table-wrap {
  overflow: hidden;
  padding: 0;
}
.table-wrap + .table-wrap { margin-top: 18px; }
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
.table th,
.table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-align: left;
  vertical-align: top;
}
.table th {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.02);
}
.table td {
  color: var(--text-soft);
}

.legal-card {
  width: min(100%, 760px);
}
.legal-list {
  display: grid;
  gap: 12px;
}
.legal-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
}
.legal-item p {
  color: var(--text-soft);
  line-height: 1.7;
}
.legal-dot {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: var(--brand-gradient);
}
.legal-actions {
  padding-top: 10px;
}
.legal-intro-card,
.legal-highlight {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.legal-highlight {
  display: grid;
  gap: 8px;
}
.legal-highlight strong {
  color: var(--text);
}
.legal-highlight p {
  color: var(--text-soft);
  line-height: 1.7;
}

.media-frame.is-video::after {
  content: "";
  width: 62px;
  height: 62px;
  display: block;
  background:
    rgba(8, 12, 18, 0.56)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E")
    center / 20px 20px no-repeat;
  color: transparent;
  font-size: 0;
}

.skeleton-list {
  display: grid;
  gap: 16px;
}
.skeleton-card {
  min-height: 220px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.04);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.02) 25%, rgba(255,255,255,0.08) 38%, rgba(255,255,255,0.02) 64%),
    var(--surface);
  background-size: 360% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
}

.toast-viewport {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  display: grid;
  gap: 10px;
  width: min(100%, 360px);
}
.toast {
  padding: 14px 16px;
  border-radius: 18px;
  color: #fff;
  box-shadow: var(--shadow-strong);
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255,255,255,0.06);
  animation: toastIn 260ms ease forwards;
}
.toast strong { font-size: 0.95rem; }
.toast span { font-size: 0.88rem; opacity: 0.92; }
.toast-success { background: linear-gradient(135deg, rgba(34,197,94,0.94), rgba(21,128,61,0.94)); }
.toast-error { background: linear-gradient(135deg, rgba(239,68,68,0.95), rgba(153,27,27,0.95)); }
.toast-info { background: var(--brand-gradient); }

.media-modal[hidden] { display: none; }
.media-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  overflow: hidden;
}
.media-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9,11,15,0.86);
  backdrop-filter: blur(10px);
}
.media-modal-dialog {
  position: relative;
  width: min(100%, 900px);
  max-width: 100%;
  height: min(calc(100dvh - 20px), 900px);
  max-height: calc(100dvh - 20px);
  padding: 16px;
  border-radius: 24px;
  background: rgba(19, 23, 31, 0.98);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr;
}
.media-modal-content {
  display: grid;
  place-items: center;
  min-height: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
}
.media-modal-meta[hidden] { display: none; }
.media-modal-meta {
  padding: 10px 12px 2px;
  color: var(--text);
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
}
.media-modal-content img,
.media-modal-content video {
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 96px);
  object-fit: contain;
  border-radius: 18px;
}
.media-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 171, 171, 0.18);
  background: linear-gradient(135deg, #D93636 0%, #F16A6A 100%);
  color: #fff;
  font-size: 1.45rem;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(217, 54, 54, 0.22);
}

.network-banner,
.install-banner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1300;
  width: min(calc(100% - 20px), 560px);
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-strong);
}
.network-banner {
  top: max(10px, env(safe-area-inset-top));
  display: grid;
  gap: 4px;
  background: rgba(147, 51, 51, 0.94);
  color: #fff;
}
.install-banner {
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 86px));
  display: grid;
  gap: 12px;
  background: rgba(27, 22, 32, 0.94);
}
.network-banner[hidden],
.install-banner[hidden] {
  display: none !important;
}
.install-banner-copy {
  display: grid;
  gap: 6px;
  color: var(--text);
}
.install-banner-copy span {
  color: var(--text-soft);
  line-height: 1.55;
}
.install-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.gallery-filter-chip {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text-soft);
  font-weight: 700;
}
.gallery-filter-chip.is-active {
  background: var(--brand-gradient);
  color: #fff;
}
[data-gallery-item][hidden] {
  display: none !important;
}

.error-screen {
  min-height: calc(100vh - 40px);
  display: grid;
  place-items: center;
  text-align: center;
  gap: 14px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes fadeUp {
  0% { opacity: 0; transform: translateX(-50%) translateY(6px); }
  20% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-8px); }
}
@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes postEnter {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes badgePulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 22px 50px rgba(124,77,255,0.28); }
  50% { transform: translateY(-2px); box-shadow: 0 26px 56px rgba(124,77,255,0.34); }
}
@keyframes bellRing {
  0%, 100% { transform: rotate(0); }
  10% { transform: rotate(16deg); }
  20% { transform: rotate(-12deg); }
  30% { transform: rotate(8deg); }
  40% { transform: rotate(-5deg); }
  50% { transform: rotate(0); }
}
@keyframes burstRise {
  0% { opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.7); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translateX(calc(-50% + var(--burst-drift, 0px))) translateY(-120px) scale(1.18); }
}
@keyframes ctaPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 18px 38px rgba(244, 127, 148, 0.22), inset 0 1px 0 rgba(255,255,255,0.2); }
  50% { transform: scale(1.02); box-shadow: 0 24px 48px rgba(244, 127, 148, 0.3), 0 0 0 8px rgba(244, 127, 148, 0.08), inset 0 1px 0 rgba(255,255,255,0.22); }
}

@media (max-width: 820px) {
  .app-shell,
  .admin-shell {
    padding: 14px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .countdown-grid {
    grid-template-columns: minmax(74px, 1fr) auto minmax(74px, 1fr) auto minmax(74px, 1fr);
    gap: 8px;
  }
  .feed-create-trigger {
    top: 0;
  }
  .feed-top-hint {
    top: 62px;
  }
  .notification-panel {
    top: 72px;
    right: 12px;
    left: 12px;
    width: auto;
  }
  .notification-permission-card {
    width: min(100%, 380px);
  }
  .toast-viewport {
    left: 12px;
    right: 12px;
    width: auto;
  }
}

@media (max-width: 720px) {
  .auth-shell,
  .auth-shell-register {
    grid-template-columns: 1fr;
  }
  .auth-story {
    order: 2;
    padding: 22px 18px;
    border-radius: 24px;
  }
  .auth-card-login-modern,
  .auth-card-register-modern {
    order: 1;
  }
  .auth-card,
  .auth-card-lg,
  .auth-card-compact,
  .countdown-premium {
    width: 100%;
  }
  .hero-card,
  .auth-card,
  .countdown-card,
  .composer-card,
  .feed-stage,
  .table-wrap,
  .legal-card {
    padding: 18px;
  }
  .composer-titlebar {
    margin-inline: -18px;
    margin-top: -18px;
  }
  .composer-tools {
    width: 100%;
  }
  .gallery-grid-rich {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .network-banner,
  .install-banner {
    width: calc(100% - 16px);
  }
  .notification-permission-modal {
    padding-inline: 12px;
  }
  .notification-permission-card {
    padding: 18px;
    border-radius: 22px;
  }
  .notification-permission-actions .btn {
    flex: 1 1 100%;
  }
  .comment-form {
    flex-wrap: wrap;
  }
  .comment-form input {
    flex-basis: 100%;
  }
  .btn-comment,
  .btn-share {
    flex: 1;
  }
  .table-wrap {
    overflow: visible;
  }
  .table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 12px;
  }
  .table thead {
    display: none;
  }
  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
  }
  .table tr {
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
  }
  .table td {
    border-bottom: 0;
    padding: 8px 0;
  }
  .table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .reaction-row-compact {
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .reaction-btn-emoji {
    min-width: 0;
    flex: 1;
  }
  .media-modal {
    padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }
  .media-modal-dialog {
    width: 100%;
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
    padding: 10px;
    border-radius: 22px;
  }
  .media-modal-content img,
  .media-modal-content video {
    max-height: calc(100dvh - 72px);
    border-radius: 16px;
  }
  .feed-shell {
    padding-top: 96px;
  }
  .feed-top-hint {
    top: 60px;
    max-width: calc(100% - 12px);
    font-size: 0.9rem;
  }
  .feed-topbar-actions {
    justify-content: flex-start;
  }
  .btn-topbar,
  .btn-icon {
    flex: 0 0 auto;
  }
  .btn-notification {
    min-width: 0;
    padding-inline: 14px;
  }
  .btn-notification-text {
    display: none;
  }
  .reaction-row-compact {
    gap: 6px;
  }
  .feed-topbar-inner {
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
