:root {
  color-scheme: light;
  font-family: "Space Grotesk", "Fira Sans", sans-serif;
  --ink: #141414;
  --ink-soft: #2f2f2f;
  --muted: #6f6f6f;
  --paper: #f1f1f1;
  --paper-strong: #fafafa;
  --accent: #bfc3c7;
  --accent-soft: #e2e5e8;
  --accent-2: #9aa0a6;
  --accent-2-soft: #d4d8dc;
  --accent-3: #c2c7cc;
  --presence-online: #2fbf6a;
  --presence-online-soft: rgba(47, 191, 106, 0.58);
  --presence-online-glow: rgba(47, 191, 106, 0.22);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --glass: rgba(255, 255, 255, 0.82);
  --glass-strong: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.45);
  --floating-panel-bg: rgba(253, 249, 243, 0.41);
  --floating-panel-border: rgba(12, 16, 15, 0.12);
  --floating-panel-shadow: 0 20px 40px rgba(7, 12, 11, 0.2);
  --floating-panel-blur: 6px;
  --floating-panel-width: min(280px, 82vw);
  --floating-panel-max-height: min(520px, calc(100vh - 240px));
  --floating-panel-scroll-track: rgba(12, 16, 15, 0.12);
  --floating-panel-scroll-thumb: rgba(255, 122, 61, 0.6);
  --dark-surface: rgba(14, 14, 14, 0.84);
  --btn-primary-bg: rgba(255, 255, 255, 0.18);
  --btn-primary-border: rgba(255, 255, 255, 0.35);
  --btn-primary-text: var(--ink);
  --btn-primary-shadow: 0 12px 24px rgba(7, 12, 11, 0.18);
  --btn-secondary-bg: rgba(255, 255, 255, 0.08);
  --btn-secondary-border: rgba(255, 255, 255, 0.25);
  --btn-secondary-text: var(--ink);
  --btn-secondary-shadow: 0 10px 20px rgba(7, 12, 11, 0.12);
  --cta-accent-start: #ffb36b;
  --cta-accent-end: #ff7f2e;
  --cta-accent-text: #f7f2ea;
  --cta-accent-border: rgba(255, 214, 192, 0.75);
  --cta-accent-shadow: 0 14px 28px rgba(255, 122, 61, 0.35);
  --cta-accent-shadow-strong: 0 16px 32px rgba(255, 122, 61, 0.45);
}

* {
  box-sizing: border-box;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) rgba(255, 255, 255, 0.08);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.04)
  );
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.18)
  );
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 0 6px rgba(255, 255, 255, 0.5),
    0 0 8px rgba(0, 0, 0, 0.2);
}

*::-webkit-scrollbar-corner {
  background: rgba(255, 255, 255, 0.08);
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  position: relative;
  overflow-x: hidden;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--accent-2);
}

:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.35);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: "Fraunces", "Georgia", serif;
}

.landing {
  background: #8f8f8f;
  min-height: 100vh;
}

.landing::before,
.logged-in-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.18), transparent 60%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.12), transparent 60%),
    radial-gradient(circle at 50% 85%, rgba(255, 255, 255, 0.1), transparent 65%);
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
}

.landing::before,
.logged-in-page::before {
  background-image: none;
  opacity: 0;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: grid;
  gap: 56px;
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.brand-logo-wrap {
  position: relative;
  width: 720px;
  height: 720px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cta-accent-start), var(--cta-accent-end));
  color: var(--cta-accent-text);
  font-weight: 600;
  font-size: 1.2rem;
  border: 1px solid var(--cta-accent-border);
  box-shadow: var(--cta-accent-shadow);
}

.brand-logo {
  width: 100%;
  height: 100%;
  border-radius: 80px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px;
  box-shadow:
    0 22px 46px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
}

.logo-glow {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 26px;
  border-radius: 999px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='32'%20viewBox='0%200%20160%2032'%3E%3Cpath%20d='M0%2016%20Q20%202%2040%2016%20T80%2016%20T120%2016%20T160%2016'%20fill='none'%20stroke='white'%20stroke-width='8'%20stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 160px 32px;
  background-position: 0 50%;
  filter: blur(4px) drop-shadow(0 0 60px rgba(255, 255, 255, 0.95));
  opacity: 1;
  box-shadow:
    0 0 32px rgba(255, 255, 255, 0.95),
    0 0 80px rgba(255, 255, 255, 0.75),
    0 0 140px rgba(255, 255, 255, 0.5);
  mix-blend-mode: screen;
  z-index: 1;
  transform: translateY(-50%);
  animation: waveFlow 8s linear infinite, glowPulse 7s ease-in-out infinite;
  transition: opacity 0.6s ease, filter 0.6s ease;
  will-change: transform, background-position;
}

.brand-actions {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
  max-width: min(90%, 520px);
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(9, 14, 13, 0.65);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  --btn-primary-text: #f7f2ea;
  --btn-secondary-text: #f7f2ea;
  --btn-primary-border: rgba(247, 242, 234, 0.35);
  --btn-secondary-border: rgba(247, 242, 234, 0.25);
}

.brand-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 8px 14px;
  font-size: 0.78rem;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(8, 12, 11, 0.35);
}

.brand-title {
  margin: 0;
  font-size: 2.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: "Playfair Display", "Fraunces", "Georgia", serif;
  color: #f7f2ea;
}

.brand-title-logo {
  display: block;
  height: 136px;
  width: auto;
  max-width: 880px;
}

.brand-subtitle {
  margin: 2px 0 0;
  color: rgba(247, 242, 234, 0.75);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: "Space Grotesk", "Fira Sans", sans-serif;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-weight: 500;
  color: rgba(247, 242, 234, 0.85);
}

.site-nav a:hover {
  color: var(--cta-accent-end);
}

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

.btn {
  border: 1px solid rgba(12, 16, 15, 0.12);
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  cursor: pointer;
  background: var(--paper-strong);
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(10, 14, 13, 0.1);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.btn.auth-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn.icon-only {
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
}

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

.btn.with-icon .ui-icon {
  width: 16px;
  height: 16px;
}

.notifications-button {
  position: relative;
}

.notification-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(247, 242, 234, 0.9);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.notifications-button.has-unread .notification-dot {
  opacity: 1;
  transform: scale(1);
}

.ui-icon {
  width: 18px;
  height: 18px;
  color: var(--cta-accent-end);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.icon-title .ui-icon {
  width: 22px;
  height: 22px;
}

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

.btn.primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 1px solid var(--btn-primary-border);
  box-shadow: var(--btn-primary-shadow);
  backdrop-filter: blur(10px);
}

.btn.primary.cta {
  background: linear-gradient(135deg, var(--cta-accent-start), var(--cta-accent-end));
  color: var(--cta-accent-text);
  border: 1px solid var(--cta-accent-border);
  box-shadow: var(--cta-accent-shadow);
}

.btn.primary.cta:hover {
  box-shadow: var(--cta-accent-shadow-strong);
}

.btn.ghost {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 1px solid var(--btn-secondary-border);
  box-shadow: var(--btn-secondary-shadow);
  backdrop-filter: blur(10px);
}

.btn.publish-circle {
  width: 60px;
  height: 60px;
  min-width: 60px;
  padding: 0;
  border-radius: 999px;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  border-width: 2px;
  border-color: var(--cta-accent-end);
  color: var(--cta-accent-end);
}

.btn.publish-circle .ui-icon {
  width: 26px;
  height: 26px;
}

.video-feed-actions .publish-circle {
  margin-top: 6px;
}

.logged-in-page #open-video-feed {
  background: var(--btn-secondary-bg);
  color: rgba(12, 16, 15, 0.6);
  border-width: 1px;
  border-color: var(--btn-secondary-border);
  box-shadow: var(--btn-secondary-shadow);
  backdrop-filter: blur(10px);
}

.logged-in-page #open-video-feed .ui-icon {
  width: 46px;
  height: 46px;
  color: rgba(12, 16, 15, 0.6);
  stroke-width: 1.2;
  position: relative;
  z-index: 1;
}

.btn.logout {
  background: #b35216;
  color: #fff2e5;
  border: 1px solid rgba(255, 209, 170, 0.6);
  box-shadow:
    0 12px 24px rgba(255, 179, 107, 0.35),
    0 0 22px rgba(255, 214, 192, 0.65),
    0 0 42px rgba(255, 214, 192, 0.45);
}

.btn.logout:hover {
  box-shadow:
    0 14px 28px rgba(255, 179, 107, 0.45),
    0 0 26px rgba(255, 214, 192, 0.75),
    0 0 50px rgba(255, 214, 192, 0.55);
}

.btn.danger {
  background: #b9403a;
  color: #fff;
  box-shadow: 0 12px 26px rgba(185, 64, 58, 0.3);
}

.btn.danger:hover {
  box-shadow: 0 14px 28px rgba(185, 64, 58, 0.36);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(10, 14, 13, 0.18);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.btn:disabled:hover,
.btn[aria-disabled="true"]:hover {
  transform: none;
  box-shadow: none;
}

.btn.logout:active {
  background: #8f3f10;
  color: #fff2e5;
  border: 1px solid rgba(255, 197, 155, 0.65);
  box-shadow:
    0 10px 20px rgba(255, 179, 107, 0.3),
    0 0 16px rgba(255, 214, 192, 0.6);
}

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

.hero-content {
  display: grid;
  gap: 20px;
  color: #f7f2ea;
  max-width: 760px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: rgba(247, 242, 234, 0.7);
  font-weight: 600;
}

.eyebrow.prominent {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  letter-spacing: 0.08em;
  color: rgba(247, 242, 234, 0.85);
}

.hero-content h1 {
  font-size: clamp(2.4rem, 3vw, 3.5rem);
  margin: 0;
}

.lead {
  font-size: 1.1rem;
  color: rgba(247, 242, 234, 0.8);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.stats-strip {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.stat-item {
  background: var(--paper-strong);
  padding: 8px 12px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  min-width: 140px;
}

.stat-value {
  display: block;
  font-weight: 600;
  font-size: 1.2rem;
}

.stat-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-panel {
  display: grid;
  gap: 20px;
}

.panel-card {
  background: var(--paper-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  animation: rise 0.6s ease;
}

.panel-card header h3 {
  margin: 0 0 6px;
}

.panel-card header p {
  margin: 0;
  color: var(--muted);
}

.panel-card.accent {
  background: linear-gradient(160deg, #f2f2f2 0%, #e5e5e5 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.feed-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.feed-list li {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 12px 22px rgba(13, 18, 17, 0.12);
  display: grid;
  gap: 6px;
}

.feed-title {
  font-weight: 600;
}

.feed-title.is-muted {
  color: var(--muted);
  font-weight: 500;
}

.feed-detail {
  color: var(--muted);
  font-size: 0.9rem;
}

.checklist {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  display: grid;
  gap: 8px;
}

.link {
  font-weight: 600;
  color: var(--accent-2);
}

.section {
  display: grid;
  gap: 32px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  color: #f7f2ea;
}

.section-title.prominent {
  font-size: clamp(2.4rem, 3.4vw, 3.6rem);
  letter-spacing: 0.01em;
}

.section-title.subdued {
  font-size: clamp(1.2rem, 1.7vw, 1.6rem);
  color: rgba(247, 242, 234, 0.75);
  font-weight: 500;
}

.section-copy {
  margin: 0;
  max-width: 420px;
  color: rgba(247, 242, 234, 0.7);
  line-height: 1.6;
}

.public-feed .feed-card {
  max-width: none;
  width: 100%;
}

.public-feed .feed-card .btn {
  justify-self: flex-start;
}

.public-feed-shell {
  display: grid;
  gap: 22px;
  align-items: start;
}

.public-feed-aside {
  display: grid;
  gap: 16px;
}

.public-feed-panel {
  border-radius: var(--radius-lg);
  padding: 20px;
  background: linear-gradient(165deg, rgba(11, 15, 14, 0.86), rgba(18, 25, 23, 0.62));
  color: #f7f2ea;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 30px rgba(7, 12, 11, 0.26);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 10px;
}

.public-feed-panel.is-accent {
  background: linear-gradient(135deg, rgba(24, 32, 29, 0.92), rgba(45, 56, 51, 0.7));
  border-color: rgba(255, 255, 255, 0.18);
}

.public-feed-panel h3 {
  margin: 0;
  font-size: 1.25rem;
}

.public-feed-panel .muted {
  color: rgba(247, 242, 234, 0.75);
}

.profile-gallery-shell {
  display: grid;
  gap: 18px;
}

.profile-gallery-status {
  margin: 0;
  color: rgba(247, 242, 234, 0.7);
}

.profile-gallery-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  justify-items: center;
}

.profile-tile {
  background: none;
  border: none;
  padding: 12px 6px;
  display: grid;
  gap: 12px;
  align-items: center;
  justify-items: center;
  color: #f7f2ea;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.profile-tile:hover {
  transform: translateY(-2px);
}

.profile-tile:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.profile-tile-header {
  display: grid;
  place-items: center;
  position: relative;
  width: clamp(150px, 26vw, 220px);
  height: clamp(150px, 26vw, 220px);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 18px 30px rgba(7, 12, 11, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-tile-header.is-online {
  animation: profile-online-pulse 2.6s ease-in-out infinite;
}

.profile-tile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--cta-accent-end);
  background-size: cover;
  background-position: center;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease;
}

.profile-tile-avatar.has-image {
  color: transparent;
}

.profile-tile-overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 14px;
  display: grid;
  gap: 2px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 16, 15, 0.45);
  box-shadow: 0 16px 22px rgba(7, 12, 11, 0.22);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, box-shadow 0.2s ease;
  z-index: 1;
}

.profile-tile-base {
  background: rgba(12, 16, 15, 0.78);
  border-radius: 16px;
  padding: 8px 12px;
  display: grid;
  gap: 4px;
  text-align: center;
  width: clamp(160px, 22vw, 220px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 22px rgba(7, 12, 11, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-tile:hover .profile-tile-header {
  transform: translateY(-2px) scale(1.02);
}

.profile-tile:hover .profile-tile-header:not(.is-online) {
  box-shadow: 0 24px 36px rgba(7, 12, 11, 0.32);
}

.profile-tile:hover .profile-tile-avatar {
  transform: scale(1.01);
}

.profile-tile:hover .profile-tile-overlay {
  background: rgba(12, 16, 15, 0.55);
  box-shadow: 0 20px 28px rgba(7, 12, 11, 0.3);
}

.profile-tile:hover .profile-tile-base {
  transform: translateY(-1px);
  box-shadow: 0 18px 26px rgba(7, 12, 11, 0.26);
}

.profile-tile-name-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
}

.profile-tile-name {
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.profile-tile-name.is-default {
  color: var(--cta-accent-end);
  text-shadow: 0 1px 6px rgba(255, 128, 46, 0.35);
}

.profile-tile-handle {
  font-size: 0.8rem;
  color: rgba(247, 242, 234, 0.72);
}

@keyframes profile-online-pulse {
  0%,
  100% {
    box-shadow:
      0 18px 30px rgba(7, 12, 11, 0.28),
      0 0 0 0 var(--presence-online-glow);
  }
  50% {
    box-shadow:
      0 18px 30px rgba(7, 12, 11, 0.28),
      0 0 26px 12px var(--presence-online-soft);
  }
}

@keyframes profile-online-pulse-mini {
  0%,
  100% {
    box-shadow:
      0 12px 20px rgba(7, 12, 11, 0.28),
      0 0 0 0 var(--presence-online-glow);
  }
  50% {
    box-shadow:
      0 12px 20px rgba(7, 12, 11, 0.28),
      0 0 18px 6px var(--presence-online-soft);
  }
}

.profile-tile-status {
  font-size: 0.75rem;
  color: rgba(247, 242, 234, 0.78);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 640px) {
  .profile-gallery-list {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .profile-gallery-list li {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

.public-feed-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.public-feed-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.public-feed-tag:hover {
  color: inherit;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 20px rgba(8, 12, 11, 0.18);
  transform: translateY(-1px);
}

.public-feed-tag.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  transform: none;
}

.public-feed-tag.is-disabled:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  transform: none;
}
.public-feed-notes {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.public-feed-notes li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: rgba(247, 242, 234, 0.82);
}

.public-feed-notes li::before {
  content: "•";
  color: rgba(247, 242, 234, 0.78);
  margin-top: 1px;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.community-card {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.75));
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 18px 34px rgba(10, 14, 13, 0.18);
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  animation: rise 0.6s ease;
}

.community-card h3 {
  margin: 0;
}

.community-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.community-meta {
  font-size: 0.85rem;
  color: var(--accent-2);
  font-weight: 600;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.flow-card {
  background: linear-gradient(150deg, #0f1d1b, #142622);
  color: #f4f5f2;
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: 0 20px 34px rgba(8, 12, 11, 0.28);
}

.flow-card h3 {
  margin: 12px 0 8px;
}

.flow-card p {
  margin: 0;
  color: rgba(244, 245, 242, 0.75);
}

.step {
  font-weight: 600;
  color: var(--accent-3);
}

.cta-strip {
  background: linear-gradient(135deg, #1a1a1a, #101010);
  color: #f7f2ea;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  --btn-primary-text: #f7f2ea;
  --btn-secondary-text: #f7f2ea;
  --btn-primary-border: rgba(255, 255, 255, 0.4);
  --btn-secondary-border: rgba(255, 255, 255, 0.3);
}

.cta-strip h2 {
  margin: 6px 0 0;
}

.footer {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.cta-letter {
  color: var(--cta-accent-end);
}

.footer-link {
  justify-self: end;
}

.auth-flyout {
  position: fixed;
  top: 18px;
  right: 18px;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 32px));
  background: linear-gradient(150deg, rgba(10, 14, 13, 0.96), rgba(22, 28, 26, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  box-shadow: 0 28px 50px rgba(7, 12, 11, 0.42);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  padding: 12px;
  z-index: 1000;
  backdrop-filter: blur(12px);
}

.auth-flyout[hidden] {
  display: none;
}

.auth-flyout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #f7f2ea;
}

.auth-flyout-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-flyout-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #f7f2ea;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.auth-flyout-close:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
}

.auth-flyout-frame {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 14px;
  background: #0d1413;
}

@media (max-width: 1023px) {
  .auth-flyout {
    display: none !important;
  }
}

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

@keyframes glowPulse {
  0% {
    filter: blur(4px) drop-shadow(0 0 60px rgba(255, 255, 255, 0.95));
  }
  50% {
    filter: blur(10px) drop-shadow(0 0 90px rgba(255, 255, 255, 0.95));
  }
  100% {
    filter: blur(4px) drop-shadow(0 0 60px rgba(255, 255, 255, 0.95));
  }
}

@keyframes waveFlow {
  0% {
    transform: translateY(calc(-50% - 14px)) translateX(0) scaleX(1);
    background-position: 0 50%;
  }
  50% {
    transform: translateY(calc(-50% + 18px)) translateX(0) scaleX(1.02);
    background-position: -80px 50%;
  }
  100% {
    transform: translateY(calc(-50% - 14px)) translateX(0) scaleX(1);
    background-position: -160px 50%;
  }
}

@keyframes refreshGlow {
  0% {
    box-shadow:
      0 12px 24px rgba(0, 0, 0, 0.35),
      0 0 12px rgba(255, 88, 88, 0.35);
  }
  50% {
    box-shadow:
      0 14px 28px rgba(0, 0, 0, 0.38),
      0 0 22px rgba(255, 88, 88, 0.75);
  }
  100% {
    box-shadow:
      0 12px 24px rgba(0, 0, 0, 0.35),
      0 0 12px rgba(255, 88, 88, 0.35);
  }
}

@keyframes statusDust {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.65;
  }
  50% {
    transform: translate3d(-1.5%, 1.5%, 0) scale(1.03);
    opacity: 0.85;
  }
  100% {
    transform: translate3d(1.5%, -1.5%, 0) scale(1.02);
    opacity: 0.7;
  }
}

@keyframes statusSweep {
  0% {
    transform: translate3d(-10%, 0, 0);
    opacity: 0.25;
  }
  50% {
    transform: translate3d(6%, 0, 0);
    opacity: 0.45;
  }
  100% {
    transform: translate3d(-8%, 0, 0);
    opacity: 0.28;
  }
}

@keyframes snowFall {
  0% {
    transform: translate3d(-4%, -18%, 0);
  }
  100% {
    transform: translate3d(4%, 118%, 0);
  }
}

@keyframes snowFallSlow {
  0% {
    transform: translate3d(5%, -22%, 0);
  }
  100% {
    transform: translate3d(-5%, 120%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1024px) {
  .brand-logo-wrap {
    width: clamp(300px, 55vw, 480px);
    height: clamp(300px, 55vw, 480px);
  }
}

@media (min-width: 1025px) {
  .brand-actions {
    gap: 8px;
    padding: 6px 10px;
  }

  .brand-actions .btn {
    padding: 6px 10px;
    font-size: 0.7rem;
  }

  .landing .public-feed {
    padding: 28px clamp(12px, 2vw, 28px) 36px;
    position: relative;
  }

  .landing .public-feed::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.08), transparent 45%),
      radial-gradient(circle at 85% 40%, rgba(255, 255, 255, 0.05), transparent 55%),
      linear-gradient(120deg, rgba(8, 12, 11, 0.65), rgba(23, 28, 26, 0.25));
    pointer-events: none;
    opacity: 0.85;
  }

  .landing .public-feed > * {
    position: relative;
    z-index: 1;
  }

  .landing .profile-gallery {
    padding: 28px clamp(12px, 2vw, 28px) 36px;
    position: relative;
  }

  .landing .profile-gallery::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 8% 30%, rgba(255, 255, 255, 0.07), transparent 50%),
      radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.05), transparent 55%),
      linear-gradient(120deg, rgba(10, 14, 13, 0.7), rgba(24, 30, 27, 0.35));
    pointer-events: none;
    opacity: 0.85;
  }

  .landing .profile-gallery > * {
    position: relative;
    z-index: 1;
  }

  .public-feed-shell {
    grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.8fr);
    gap: 26px;
  }
}

@media (max-width: 980px) {
  .public-feed-shell {
    grid-template-columns: 1fr;
  }

  .store-items {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 840px) {
  .site-nav {
    display: none;
  }

  .brand-logo-wrap {
    width: clamp(220px, 70vw, 360px);
    height: clamp(220px, 70vw, 360px);
  }

  .hero-panel {
    order: 2;
  }

  .brand-actions {
    bottom: 16px;
    gap: 8px;
    padding: 6px 10px;
    max-width: 92%;
  }
}

@media (max-width: 600px) {
  .page {
    padding: 24px 18px 64px;
  }

  .hero-content h1 {
    font-size: 2.1rem;
  }

  .brand-actions {
    flex-wrap: nowrap;
    gap: 5px;
    padding: 5px 6px;
    max-width: 95%;
    bottom: 12px;
  }

  .brand-actions .btn {
    padding: 5px 7px;
    font-size: 0.58rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .brand-actions {
    gap: 4px;
    padding: 4px 6px;
  }

  .brand-actions .btn {
    padding: 4px 6px;
    font-size: 0.52rem;
  }
}

.auth-page {
  background: #15181c;
  min-height: 100vh;
  height: auto;
  position: relative;
  overflow-x: hidden;
  color: #e6e6e6;
}

.auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/patterns/auth-stickers.svg?v=20260204-4");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
  opacity: 0.68;
  pointer-events: none;
  z-index: 0;
}

.auth-page::after {
  content: none;
}

.auth-layout {
  max-width: 880px;
  margin: 0 auto;
  padding: 52px 24px 90px;
  display: grid;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.auth-close-row {
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 2;
}

.auth-page-close {
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
}

.auth-layout > .auth-group {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.auth-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #ffffff;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  filter: drop-shadow(0 12px 26px rgba(255, 127, 46, 0.35));
}

.auth-logo-mark {
  width: clamp(56px, 14vw, 88px);
  height: auto;
  border-radius: 18px;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

.auth-logo-text {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.26em;
}

.auth-hero-tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.auth-group {
  background: rgba(20, 21, 24, 0.3);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.auth-switch-row {
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  gap: 8px;
}

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

.auth-switch-card {
  margin: 0;
  justify-content: center;
  padding: 12px 16px;
}

.auth-switch-card .auth-switch-actions {
  justify-content: center;
  width: 100%;
}

.auth-switch-row .login-toggle-note {
  margin: 0;
  text-align: center;
}

.login-group {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: none;
  overflow: visible;
}

.login-toggle {
  border: 1px solid rgba(255, 179, 107, 0.5);
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(20, 21, 24, 0.7);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  box-shadow: none;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 179, 107, 0.3),
    transparent 65%
  );
  opacity: 0;
  pointer-events: none;
}

.login-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(255, 127, 46, 0.35);
}

.login-toggle-hint {
  font-size: 0.9rem;
  opacity: 0.75;
}

.login-toggle.is-active {
  background: rgba(255, 179, 107, 0.18);
  box-shadow: 0 10px 24px rgba(255, 127, 46, 0.28);
}

.login-toggle.is-active::after {
  opacity: 0.28;
}

.login-toggle.has-link.is-active {
  box-shadow:
    0 0 0 1px rgba(255, 179, 107, 0.4),
    0 12px 26px rgba(255, 127, 46, 0.35);
}

.login-options {
  margin-top: 18px;
  display: grid;
  gap: 22px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(20, 21, 24, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

.login-options.is-collapsed {
  display: none;
}

.login-toggle-note {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.auth-group-header {
  margin-bottom: 16px;
}

.auth-group-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.auth-group-header-row > div {
  display: grid;
  gap: 6px;
}

.auth-group-header h2 {
  margin: 0 0 6px;
  font-size: 1.6rem;
  color: #ffffff;
}

.auth-group-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.auth-login-header {
  margin-bottom: 10px;
}

.auth-group-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

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

.terms-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.terms-card li + li {
  margin-top: 6px;
}

.terms-card .muted {
  color: var(--muted);
}

.terms-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-card {
  background: rgba(20, 21, 24, 0.38);
  border-radius: 16px;
  padding: 24px;
  box-shadow:
    0 0 30px rgba(0, 0, 0, 0.32),
    inset 0 0 0.5px rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: rise 0.5s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.auth-avatar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  justify-content: space-between;
}

.auth-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(255, 127, 46, 0.25);
}

.auth-avatar-actions {
  margin-left: auto;
}

.auth-avatar-title {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
}

.auth-avatar-note {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 160px;
  background: radial-gradient(
    220px 120px at 85% 20%,
    rgba(255, 179, 107, 0.24),
    transparent 70%
  );
  opacity: 0.6;
  pointer-events: none;
}

.passkey-card {
  position: relative;
}

.passkey-card .auth-watermark {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  gap: 8px;
  opacity: 0.12;
  transform: rotate(-12deg);
  pointer-events: none;
  z-index: 0;
}

.passkey-card .auth-watermark-icon {
  width: 34px;
  height: 34px;
  color: rgba(255, 255, 255, 0.65);
  stroke-width: 1.4;
}

.passkey-card > *:not(.auth-watermark) {
  position: relative;
  z-index: 1;
}

.auth-card h2,
.auth-card h3 {
  margin-top: 0;
  color: #ffffff;
}

.auth-card label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.auth-card input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  margin-top: 6px;
  font-size: 1rem;
  color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-card input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.auth-card input:focus {
  outline: none;
  border-color: rgba(255, 179, 107, 0.8);
  box-shadow: 0 0 0 2px rgba(255, 179, 107, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.auth-card .checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
}

.auth-card input[type="checkbox"] {
  width: auto;
  margin: 0;
  padding: 0;
  accent-color: #ffb36b;
}

.password-meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  margin-top: 8px;
  overflow: hidden;
}

.password-meter-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: rgba(255, 179, 107, 0.3);
  transition: width 0.2s ease, background 0.2s ease;
}

.password-meter-bar.level-0 {
  background: rgba(255, 214, 192, 0.3);
}

.password-meter-bar.level-1 {
  background: rgba(255, 199, 160, 0.45);
}

.password-meter-bar.level-2 {
  background: rgba(255, 180, 120, 0.55);
}

.password-meter-bar.level-3 {
  background: rgba(255, 160, 90, 0.7);
}

.password-meter-bar.level-4 {
  background: rgba(255, 127, 46, 0.9);
}

.password-level {
  margin-top: 8px;
}

.password-hint {
  margin-top: 4px;
}

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

.captcha-box {
  margin-top: 12px;
  display: grid;
  justify-items: center;
}

.auth-actions button {
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 179, 107, 0.9), rgba(255, 127, 46, 0.9));
  color: #ffffff;
  border: 1px solid rgba(255, 179, 107, 0.5);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255, 127, 46, 0.35);
  backdrop-filter: blur(14px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(255, 127, 46, 0.45);
}

.auth-actions button:active {
  transform: scale(0.98);
}

.auth-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.auth-actions button.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 214, 192, 0.9);
  border: 1px solid rgba(255, 214, 192, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 192, 0.08);
}

.auth-actions button.primary-alt {
  background: linear-gradient(135deg, rgba(255, 179, 107, 0.9), rgba(255, 127, 46, 0.9));
  color: #ffffff;
  border: 1px solid rgba(255, 179, 107, 0.5);
  box-shadow: 0 10px 30px rgba(255, 127, 46, 0.35);
}

.auth-page a {
  color: #ffb36b;
}

.auth-page a:hover {
  color: #ffd1a1;
}

.auth-page .muted {
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 640px) {
  .auth-layout {
    padding: 20px 12px 48px;
    gap: 12px;
  }

  .auth-hero {
    gap: 8px;
  }

  .auth-logo {
    gap: 8px;
    letter-spacing: 0.14em;
  }

  .auth-logo-mark {
    width: clamp(42px, 16vw, 60px);
    border-radius: 12px;
  }

  .auth-logo-text {
    font-size: clamp(1.05rem, 4.8vw, 1.45rem);
    letter-spacing: 0.16em;
  }

  .auth-group {
    padding: 16px;
    border-radius: 18px;
  }

  .auth-card {
    padding: 16px;
  }

  .auth-group-header h2 {
    font-size: 1.25rem;
  }
}

@media (max-width: 420px) {
  .auth-layout {
    padding-top: 14px;
  }

  .auth-logo-text {
    letter-spacing: 0.12em;
  }
}

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

.login-only #register-section {
  display: none;
}

.message {
  margin-top: 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.message.error {
  color: #ff8a7d;
}

.result {
  background: rgba(8, 12, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  font-size: 0.85rem;
  white-space: pre-wrap;
  color: #dbe6f7;
}

.badge {
  display: inline-block;
  background: rgba(255, 179, 107, 0.18);
  border: 1px solid rgba(255, 179, 107, 0.4);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.logged-in-page {
  background: #8f8f8f;
  min-height: 100vh;
  min-height: 100dvh;
  --panel-title-size: 1.15rem;
  --panel-title-offset: clamp(22px, 3vw, 40px);
  --profile-name-size: var(--panel-title-size);
}

.logged-in-layout {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.logged-in-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 16px 32px rgba(68, 54, 41, 0.12);
}

.logged-shell {
  max-width: 1820px;
  margin: 0 auto;
  padding: 36px 24px 80px;
  display: grid;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.logged-in-page.messages-page {
  background: linear-gradient(160deg, #9f9a93 0%, #b9b2a9 38%, #8c9297 100%);
  color: var(--ink);
  --messages-panel: rgba(255, 255, 255, 0.86);
  --messages-panel-strong: rgba(255, 255, 255, 0.96);
  --messages-border: rgba(255, 255, 255, 0.65);
  --messages-shadow: 0 24px 40px rgba(8, 12, 12, 0.22);
  --messages-shadow-soft: 0 18px 30px rgba(7, 12, 11, 0.14);
  --messages-ink-muted: rgba(20, 20, 20, 0.58);
}

.logged-in-page.messages-page::before {
  background-image:
    radial-gradient(circle at 14% 14%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(circle at 78% 20%, rgba(255, 179, 107, 0.35), transparent 60%),
    radial-gradient(circle at 82% 86%, rgba(255, 255, 255, 0.28), transparent 65%);
  opacity: 0.55;
}

.messages-page .logged-shell {
  min-height: 100dvh;
  grid-template-rows: auto 1fr;
}

.messages-embed {
  background: transparent;
}

.messages-embed::before {
  display: none;
}

.messages-embed .logged-shell {
  min-height: 100%;
  padding: 0;
  gap: 12px;
  grid-template-rows: auto minmax(0, 1fr);
}

.messages-embed .dashboard-header {
  padding: 0 4px;
}

.messages-embed .dashboard-brand,
.messages-embed .messages-public-link,
.messages-embed .messages-profile-close {
  display: none;
}

.messages-embed .dashboard-actions {
  justify-content: flex-start;
  gap: 8px;
}

.messages-embed .messages-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.messages-embed .messages-sidebar {
  display: none;
}

.messages-embed.is-threads-open .messages-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  position: absolute;
  top: 8px;
  right: 8px;
  left: auto;
  width: min(320px, calc(100% - 16px));
  max-height: calc(100% - 16px);
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--messages-shadow, 0 24px 38px rgba(7, 12, 11, 0.28));
  backdrop-filter: blur(14px);
  overflow: hidden;
  z-index: 2;
}

.messages-embed .messages-card {
  box-shadow: none;
  border-radius: 18px;
  padding: 12px;
}

.messages-embed .messages-thread {
  min-height: 340px;
}

.messages-embed .messages-view {
  padding: 10px;
  border-radius: 14px;
}

.messages-embed .messages-watermark {
  width: 110px;
  height: 110px;
  opacity: 0.16;
}

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

.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f7f2ea;
}

.panel-brand-logo {
  display: none;
  height: 96px;
  width: auto;
  max-width: 260px;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.35));
}

.logged-in-page .dashboard-brand {
  color: var(--ink);
}

.logged-in-page .logged-shell {
  padding-top: 10px;
  gap: 10px;
}

.logged-in-page .brand-subtitle {
  color: rgba(247, 242, 234, 0.92);
  margin: 0;
  line-height: 1;
  font-size: var(--panel-title-size);
  position: relative;
  top: calc(var(--panel-title-offset) + 2em);
  z-index: 3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.public-profile-page .brand-subtitle {
  position: relative;
  top: 2em;
  margin-top: 0;
}

.public-page .brand-subtitle {
  position: static;
  top: auto;
  margin-top: 6px;
}

.logged-in-page .dashboard-header {
  align-items: flex-start;
}

.public-profile-page .dashboard-header {
  align-items: center;
}

.brand-chip {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cta-accent-start), var(--cta-accent-end));
  color: var(--cta-accent-text);
  display: grid;
  place-items: center;
  font-weight: 700;
  border: 1px solid var(--cta-accent-border);
  box-shadow: var(--cta-accent-shadow);
}

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

.profile-actions-menu {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.profile-actions-dock {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.profile-actions-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  min-width: 0;
  width: 100%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  box-shadow: 0 16px 30px rgba(10, 14, 13, 0.18);
  display: grid;
  gap: 8px;
  z-index: 20;
}

.profile-actions-panel .btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.profile-actions-panel.profile-actions-panel-clean {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: max-content;
  min-width: 0;
  left: auto;
  right: 0;
  top: calc(100% + 6px);
  transform: none;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.profile-actions-panel.profile-actions-panel-clean .profile-action-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  align-self: center;
}

.profile-actions-panel.profile-actions-panel-clean .profile-action-item .ui-icon {
  width: 20px;
  height: 20px;
  color: var(--cta-accent-end);
  stroke-width: 2;
}


.status-bar {
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.96), rgba(10, 10, 10, 0.92));
  color: #f7f2ea;
  border-radius: var(--radius-lg);
  padding: 0 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.public-page .status-bar {
  padding: 12px 18px;
  justify-content: flex-end;
}

.public-page .status-tools .btn.panel-close {
  background: transparent;
  box-shadow: none;
}

.public-profile-status {
  --status-notch-height: 42px;
  --status-notch-width: clamp(200px, 34%, 320px);
  --status-notch-slope: 34px;
  --status-content-shift: 18px;
  --status-logo-height: 136px;
  --status-logo-ratio: 1;
  --status-logo-width: calc(var(--status-logo-height) * var(--status-logo-ratio));
  --status-padding-x: 18px;
  --status-gap: 20px;
  padding: var(--status-notch-height) var(--status-padding-x) 4px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--status-gap);
  justify-content: stretch;
}

.personal-status-shell {
  --status-notch-height: 42px;
  --status-notch-width: clamp(200px, 34%, 320px);
  --status-notch-slope: 34px;
  --status-content-shift: -6px;
  --status-logo-height: 136px;
  --status-logo-ratio: 1;
  --status-logo-width: calc(var(--status-logo-height) * var(--status-logo-ratio));
  --status-padding-x: 18px;
  --status-gap: 20px;
  position: relative;
}

.personal-status-bar {
  padding: var(--status-notch-height) var(--status-padding-x) 4px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--status-gap);
  justify-content: stretch;
}

@supports (clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%)) {
  .personal-status-bar {
    clip-path: polygon(
      0 var(--status-notch-height),
      var(--status-notch-width) var(--status-notch-height),
      calc(var(--status-notch-width) + var(--status-notch-slope)) 0,
      100% 0,
      100% 100%,
      0 100%
    );
  }

  .public-profile-status {
    clip-path: polygon(
      0 var(--status-notch-height),
      var(--status-notch-width) var(--status-notch-height),
      calc(var(--status-notch-width) + var(--status-notch-slope)) 0,
      100% 0,
      100% 100%,
      0 100%
    );
  }

  .messages-page .status-bar {
    clip-path: polygon(
      0 var(--status-notch-height),
      var(--status-notch-width) var(--status-notch-height),
      calc(var(--status-notch-width) + var(--status-notch-slope)) 0,
      100% 0,
      100% 100%,
      0 100%
    );
  }
}

.public-profile-status .eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  position: absolute;
  top: -2em;
  left: 72%;
  transform: translateX(-50%);
  margin: 0;
  text-align: center;
  max-width: min(90%, 320px);
  z-index: 2;
}

.public-profile-status h1 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
}

.public-profile-status .status-user {
  margin-top: 4px;
  font-size: 0.9rem;
}

.public-profile-status .status-summary {
  max-width: min(92%, 560px);
  transform: translateY(var(--status-content-shift));
}

.public-profile-status .status-tools {
  justify-self: end;
  align-items: center;
  justify-content: flex-end;
}

.public-profile-status .status-logo {
  height: var(--status-logo-height);
  width: auto;
  max-width: none;
}

.status-bar::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background-image:
    radial-gradient(180px 180px at 18% 25%, rgba(255, 255, 255, 0.18), transparent 62%),
    radial-gradient(220px 220px at 82% 18%, rgba(255, 255, 255, 0.12), transparent 62%),
    radial-gradient(260px 260px at 55% 88%, rgba(255, 255, 255, 0.1), transparent 66%),
    radial-gradient(2px 2px at 22% 30%, rgba(255, 255, 255, 0.3), transparent 60%),
    radial-gradient(2px 2px at 38% 42%, rgba(255, 255, 255, 0.22), transparent 60%),
    radial-gradient(2px 2px at 62% 28%, rgba(255, 255, 255, 0.24), transparent 60%),
    radial-gradient(1.5px 1.5px at 72% 58%, rgba(255, 255, 255, 0.18), transparent 60%),
    radial-gradient(1.5px 1.5px at 32% 70%, rgba(255, 255, 255, 0.16), transparent 60%),
    radial-gradient(1.5px 1.5px at 52% 52%, rgba(255, 255, 255, 0.14), transparent 60%);
  opacity: 0.75;
  animation: statusDust 18s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.status-bar::after {
  content: "";
  position: absolute;
  inset: -30% -10%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 60%);
  opacity: 0.5;
  animation: statusSweep 14s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.status-bar > *:not(.status-snow) {
  position: relative;
  z-index: 1;
}

.status-snow {
  position: absolute;
  inset: -40% 0 -20% 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
  overflow: hidden;
}

.status-snow::before,
.status-snow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
}

.status-snow::before {
  background-image:
    radial-gradient(2px 2px at 20px 20px, rgba(255, 255, 255, 0.85), transparent 60%),
    radial-gradient(1.5px 1.5px at 80px 60px, rgba(255, 255, 255, 0.65), transparent 60%),
    radial-gradient(1px 1px at 140px 30px, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(2.5px 2.5px at 200px 80px, rgba(255, 255, 255, 0.75), transparent 60%),
    radial-gradient(1.5px 1.5px at 40px 100px, rgba(255, 255, 255, 0.6), transparent 60%);
  background-size: 240px 140px;
  opacity: 0.7;
  animation: snowFall 16s linear infinite;
}

.status-snow::after {
  background-image:
    radial-gradient(1.5px 1.5px at 30px 40px, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1px 1px at 90px 90px, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(2px 2px at 160px 20px, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 210px 110px, rgba(255, 255, 255, 0.45), transparent 60%);
  background-size: 210px 120px;
  opacity: 0.5;
  animation: snowFallSlow 22s linear infinite;
}

.status-summary {
  display: grid;
  gap: 2px;
}

.personal-status-bar .status-summary {
  display: contents;
}

.personal-status-bar #logged-user {
  grid-column: 2;
  justify-self: center;
  align-self: start;
  margin: 0;
  padding-top: 0;
  position: relative;
  z-index: 2;
  max-width: min(90%, 560px);
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  transform: translateY(calc(var(--status-content-shift) - 1em)) translateX(2ch);
}

.personal-status-bar .status-slider {
  grid-column: 1;
  justify-self: start;
  min-width: 0;
  position: relative;
  z-index: 1;
  transform: translateY(var(--status-content-shift));
}

.personal-status-bar .status-tools {
  grid-column: 3;
  justify-self: end;
  width: var(--status-logo-width);
  min-width: var(--status-logo-width);
  flex: 0 0 var(--status-logo-width);
}

.personal-status-shell .status-logo-float {
  position: absolute;
  top: 50%;
  right: var(--status-padding-x);
  transform: translateY(-50%);
  z-index: 3;
  pointer-events: none;
}

.personal-status-shell .status-logo {
  height: var(--status-logo-height);
  width: auto;
  max-width: none;
}

.status-summary h1 {
  margin: 0;
}

.status-summary .status-user {
  margin: 0;
}

.status-summary .eyebrow {
  margin: 0;
  line-height: 1;
}

.status-user {
  margin: 8px 0 0;
  color: rgba(247, 242, 234, 0.8);
}

.status-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.video-page .status-bar {
  padding-right: 88px;
}

.video-page .status-bar > div:first-child {
  padding-right: 72px;
}

.video-page .status-bar .status-tools {
  position: absolute;
  top: 12px;
  right: 16px;
}

.status-brand {
  display: flex;
  align-items: center;
}

.messages-page .status-bar {
  --status-notch-height: 34px;
  --status-notch-width: clamp(160px, 38%, 260px);
  --status-notch-slope: 26px;
  --status-padding-x: 16px;
  --status-gap: 16px;
  padding: var(--status-notch-height) var(--status-padding-x) 6px;
  gap: var(--status-gap);
}

.messages-page .dashboard-brand .brand-title-logo {
  display: none;
}

.messages-page .dashboard-header {
  align-items: center;
}

.messages-page .dashboard-brand {
  align-items: center;
}

.messages-page .brand-subtitle {
  position: static;
  top: 0;
  margin-top: 0;
}

.messages-page .dashboard-actions {
  margin-left: auto;
  align-items: center;
  justify-content: flex-end;
}

.messages-page .messages-public-link {
  display: none;
}

.messages-page .status-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  min-width: 0;
}

.messages-page .status-summary .eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
}

.messages-page .status-user {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(247, 242, 234, 0.8);
}

.messages-page .status-tools {
  gap: 8px;
}

.messages-page .status-bar .status-chip {
  padding: 4px 10px;
  font-size: 0.7rem;
}

.status-logo {
  height: 132px;
  width: auto;
  max-width: 360px;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.35));
}

.store-page .muted {
  color: var(--muted);
}

.store-grid {
  display: grid;
  gap: 18px;
}

.store-panel {
  gap: 18px;
}

.store-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.store-controls {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.store-controls label {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

.store-items {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.store-item {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 30px rgba(7, 12, 11, 0.16);
  display: grid;
  gap: 12px;
}

.store-item-media {
  height: 150px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 179, 107, 0.28), rgba(255, 255, 255, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.7);
  display: grid;
  place-items: center;
  overflow: hidden;
}

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

.store-item-media span {
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(12, 16, 15, 0.6);
}

.store-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.store-item-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  background: rgba(255, 179, 107, 0.24);
  border: 1px solid rgba(255, 179, 107, 0.5);
  color: rgba(18, 18, 18, 0.85);
}

.store-badge.is-status {
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: rgba(18, 18, 18, 0.7);
}

.store-item-title {
  margin: 0;
  font-size: 1.05rem;
}

.store-item-summary {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.store-item-description {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-item-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.store-tag {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: rgba(18, 18, 18, 0.75);
}

.store-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.store-item-price {
  font-weight: 600;
}

.store-cta {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.store-cta:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.store-locked {
  text-align: center;
  justify-items: center;
}

.store-locked .btn {
  justify-self: center;
}

.logout-menu {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.logout-panel {
  position: fixed;
  margin-top: 0;
  width: min(320px, 90vw);
  padding: 14px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 18px 32px rgba(5, 8, 8, 0.35);
  display: grid;
  gap: 10px;
  z-index: 120;
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  --btn-secondary-bg: rgba(255, 255, 255, 0.08);
  --btn-secondary-border: rgba(247, 242, 234, 0.25);
  --btn-secondary-text: #2f2f2f;
  --btn-secondary-shadow: 0 12px 24px rgba(8, 12, 11, 0.35);
}

.logout-panel .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.logout-panel .btn.ghost {
  color: var(--btn-secondary-text);
}

.logout-title {
  margin: 0;
  font-weight: 600;
  color: #2f2f2f;
}

.logout-panel .btn.logout {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 1px solid var(--btn-secondary-border);
  box-shadow: var(--btn-secondary-shadow);
  backdrop-filter: blur(10px);
}

.logout-panel .btn:hover {
  color: #000000;
}

.logout-panel .btn.logout:active,
.logout-panel .btn.ghost:active {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border-color: var(--btn-secondary-border);
  box-shadow: var(--btn-secondary-shadow);
}

.status-slider {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 1px;
  border-radius: 999px;
  background: linear-gradient(180deg, #b8b8b8 0%, #7e7e7e 100%);
  overflow: hidden;
  width: var(--slider-width, max-content);
  cursor: pointer;
  user-select: none;
  touch-action: pan-y;
  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, 0.28),
    inset 0 -6px 8px rgba(40, 40, 40, 0.5),
    inset 2px 0 4px rgba(70, 70, 70, 0.35);
  border: 1px solid rgba(80, 80, 80, 0.35);
}

.status-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #d33b3b;
  color: #ffffff;
  border-radius: 999px;
  padding: 2px 5px;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.95;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  pointer-events: none;
  box-sizing: border-box;
}

.status-label-left {
  left: 0;
  top: 0;
  bottom: 0;
  transform: none;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 0.78rem;
  background: transparent;
  color: rgba(24, 24, 24, 0.85);
  box-shadow: none;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35),
    0 -1px 0 rgba(30, 30, 30, 0.35);
  border-radius: 0;
  opacity: 1;
}

.status-label-right {
  right: 4px;
  opacity: 0;
}

.status-slider .status-chip {
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
  transform: translateX(var(--slider-x, 0px));
}

.status-slider.dragging .status-chip {
  transition: none;
}

.status-slider.no-anim .status-chip {
  transition: none;
}

.status-slider.needs-refresh .status-label-right {
  opacity: 1;
  animation: refreshGlow 1.6s ease-in-out infinite;
}

.status-slider.needs-refresh .status-label-left {
  opacity: 0;
}

.status-chip-button {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.status-chip {
  background: rgba(255, 255, 255, 0.18);
  color: #f2f2f2;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.status-chip.is-offline {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(247, 242, 234, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
}

#session-status {
  background: #2ddc80;
  color: #04170d;
  border-color: rgba(20, 120, 86, 0.6);
  box-shadow:
    0 0 0 2px rgba(45, 220, 128, 0.35),
    0 0 16px rgba(45, 220, 128, 0.55),
    0 0 32px rgba(45, 220, 128, 0.35);
}

#session-status.is-offline {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(247, 242, 234, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

#session-status.is-offline::after {
  content: ">>>";
  display: inline-block;
  margin-left: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1px;
  color: rgba(247, 242, 234, 0.55);
}

.status-slider.needs-refresh #session-status {
  background: rgba(255, 255, 255, 0.16);
  color: #f2f2f2;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.status-bar .status-chip {
  padding: 4px 10px;
  font-size: 0.78rem;
  width: fit-content;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(0, 7fr);
  gap: 24px;
  align-items: start;
  position: relative;
}

.dashboard-grid.is-feed-wide {
  grid-template-columns: minmax(320px, 1.2fr) minmax(0, 7fr);
}

.profile-column {
  display: grid;
  gap: 22px;
}

.profile-column .composer-toggle {
  justify-content: center;
  width: 100%;
  gap: 8px;
}

.profile-column .composer-toggle .publish-group,
.profile-column .composer-toggle > .btn:not(.publish-circle) {
  flex: 0 1 140px;
  max-width: 140px;
}

.profile-column .composer-toggle .publish-group {
  width: 100%;
}

.profile-column .composer-toggle .publish-group.is-open {
  flex: 0 0 auto;
  max-width: none;
  width: auto;
}

.profile-column .composer-toggle .btn:not(.publish-circle) {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  font-size: 0.8rem;
}

.profile-column .composer-toggle .publish-main {
  width: 100%;
  justify-content: center;
}

.profile-column .composer-toggle .publish-circle {
  width: 60px;
  min-width: 60px;
  height: 60px;
  padding: 0;
  font-size: 2.2rem;
}

@media (min-width: 1101px) {
  .logged-in-page .profile-column .composer-toggle {
    position: relative;
    justify-content: space-between;
  }

  .logged-in-page .profile-column .composer-toggle .publish-group {
    flex: 0 0 auto;
    max-width: none;
    width: auto;
  }

  .logged-in-page .profile-column .composer-toggle > .btn:not(.publish-circle) {
    flex: 0 0 auto;
    max-width: none;
    width: auto;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

.logged-in-page .profile-column {
  position: relative;
}

.logged-in-page #friends-card {
  position: absolute;
  left: 0;
  top: var(--friends-card-top, 0);
  width: var(--floating-panel-width);
  z-index: 30;
  --friends-card-padding-x: 14px;
  background: var(--floating-panel-bg);
  border: 1px solid var(--floating-panel-border);
  box-shadow: var(--floating-panel-shadow);
  backdrop-filter: blur(var(--floating-panel-blur));
  max-height: var(--floating-panel-max-height);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px var(--friends-card-padding-x) 16px;
  padding-right: 8px;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: var(--floating-panel-scroll-thumb) var(--floating-panel-scroll-track);
  touch-action: pan-y;
  overscroll-behavior: auto;
}

.logged-in-page #notifications-card {
  position: absolute;
  left: 0;
  top: var(--notifications-card-top, 0);
  width: var(--floating-panel-width);
  z-index: 30;
  --notifications-card-padding-x: 14px;
  background: var(--floating-panel-bg);
  border: 1px solid var(--floating-panel-border);
  box-shadow: var(--floating-panel-shadow);
  backdrop-filter: blur(var(--floating-panel-blur));
  max-height: var(--floating-panel-max-height);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px var(--notifications-card-padding-x) 16px;
  padding-right: 8px;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: var(--floating-panel-scroll-thumb) var(--floating-panel-scroll-track);
  touch-action: pan-y;
  overscroll-behavior: auto;
}

.logged-in-page #messages-card {
  position: absolute;
  left: 0;
  top: var(--messages-card-top, 0);
  width: 100%;
  max-width: 100%;
  z-index: 32;
  --messages-card-padding-x: 14px;
  background: var(--floating-panel-bg);
  border: 1px solid var(--floating-panel-border);
  box-shadow: var(--floating-panel-shadow);
  backdrop-filter: blur(var(--floating-panel-blur));
  padding: 12px var(--messages-card-padding-x) 16px;
  padding-right: 12px;
  height: min(720px, calc(100vh - var(--messages-card-top, 0px) - 24px));
  max-height: calc(100vh - var(--messages-card-top, 0px) - 24px);
  overflow: hidden;
  display: grid;
  gap: 12px;
  grid-template-rows: auto minmax(0, 1fr);
}

.logged-in-page #reauth-panel {
  position: absolute;
  left: 0;
  top: var(--reauth-card-top, 0);
  width: 100%;
  max-width: 100%;
  z-index: 31;
  --reauth-card-padding-x: 14px;
  background: var(--floating-panel-bg);
  border: 1px solid var(--floating-panel-border);
  box-shadow: var(--floating-panel-shadow);
  backdrop-filter: blur(var(--floating-panel-blur));
  padding: 12px var(--reauth-card-padding-x) 16px;
  padding-right: 12px;
}

#messages-card .messages-float-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#messages-card .messages-float-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-left: max(
    0px,
    calc(var(--messages-icon-center, 0px) - var(--messages-card-padding-x) - 11px)
  );
}

#messages-card .messages-float-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#messages-card .messages-float-actions .btn {
  padding: 6px 10px;
  font-size: 0.72rem;
}

#messages-card .messages-float-actions .btn.icon-only {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#messages-card .messages-float-body {
  min-height: 0;
}

#messages-card .messages-embed-frame {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 18px;
  background: transparent;
}

.public-profile-grid {
  grid-template-columns: minmax(320px, 1.2fr) minmax(0, 7fr);
  grid-template-areas: "profile posts";
}

.public-profile-grid .feed-card {
  align-content: start;
}

.public-profile-grid .profile-card {
  align-content: start;
}

.public-profile-column {
  grid-area: profile;
}

#public-profile-posts-card {
  grid-area: posts;
}

.profile-card {
  background: linear-gradient(150deg, var(--glass-strong), rgba(255, 255, 255, 0.72));
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  gap: 18px;
  box-shadow: 0 24px 44px rgba(7, 12, 11, 0.28);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  animation: rise 0.55s ease;
}

.profile-card.has-cover-actions {
  position: relative;
}

.profile-card.has-cover-actions .profile-actions-dock {
  position: absolute;
  right: 24px;
  top: 24px;
  width: auto;
  z-index: 2;
}

.profile-card.has-cover-actions .profile-actions-menu {
  width: auto;
}

.profile-card.has-cover-actions .profile-actions-panel:not(.profile-actions-panel-icons):not(.profile-actions-panel-clean) {
  left: auto;
  right: 0;
  width: min(220px, 80vw);
  min-width: 160px;
}

.profile-card.has-cover-actions .profile-actions-panel.profile-actions-panel-clean {
  width: max-content;
  min-width: 0;
  left: auto;
  right: 0;
}

.profile-cover {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(140deg, #6a6a6a, #b8b8b8);
  min-height: 190px;
}

.logged-in-page #profile-cover {
  --profile-avatar-size: 128px;
  --profile-handle-offset: 46px;
}

.public-profile-grid #public-profile-cover {
  --profile-avatar-size: 128px;
  --profile-handle-offset: 46px;
}

.profile-cover-image {
  width: 100%;
  display: block;
  object-fit: cover;
}

.profile-cover .profile-cover-image {
  height: 190px;
}

.profile-cover.is-empty .profile-cover-image {
  display: none;
}

.profile-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 12, 11, 0.05) 0%,
    rgba(7, 12, 11, 0.65) 100%
  );
}

.profile-cover-chip {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 0.78rem;
  background: rgba(10, 10, 10, 0.55);
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.gen-rank-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--gen-rank-accent, var(--accent-2));
  color: var(--gen-rank-accent, var(--accent-2));
  background: rgba(255, 255, 255, 0.85);
}

.profile-header-cover {
  position: absolute;
  left: 16px;
  bottom: 46px;
  z-index: 1;
  color: #f7f2ea;
}

.profile-header-cover .muted {
  color: rgba(247, 242, 234, 0.82);
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--cta-accent-start), var(--cta-accent-end));
  color: var(--cta-accent-text);
  display: grid;
  place-items: center;
  font-weight: 600;
  border: 2px solid var(--cta-accent-border);
  box-shadow: var(--cta-accent-shadow);
}

.logged-in-page #profile-avatar,
.public-profile-grid #public-profile-avatar {
  width: var(--profile-avatar-size);
  height: var(--profile-avatar-size);
  position: relative;
  overflow: hidden;
}

.logged-in-page #profile-avatar .profile-avatar-initials,
.public-profile-grid #public-profile-avatar .profile-avatar-initials {
  position: relative;
  z-index: 0;
}

.logged-in-page #profile-avatar .profile-avatar-name,
.public-profile-grid #public-profile-avatar .profile-avatar-name {
  position: absolute;
  left: calc(var(--profile-avatar-size) * 0.09);
  right: calc(var(--profile-avatar-size) * 0.09);
  bottom: calc(var(--profile-avatar-size) * 0.08);
  z-index: 1;
  margin: 0;
  padding: calc(var(--profile-avatar-size) * 0.06)
    calc(var(--profile-avatar-size) * 0.1);
  border-radius: calc(var(--profile-avatar-size) * 0.16);
  font-size: var(--profile-name-size, calc(var(--profile-avatar-size) * 0.1));
  line-height: 1.05;
  text-align: center;
  font-weight: 600;
  color: #f7f2ea;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 16px rgba(7, 12, 11, 0.18);
  backdrop-filter: blur(6px);
  text-shadow: 0 1px 3px rgba(7, 12, 11, 0.6);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logged-in-page .profile-handle-block {
  display: flex;
  align-items: center;
}

.logged-in-page .profile-handle-cover {
  position: absolute;
  right: 16px;
  bottom: var(--profile-handle-offset);
  z-index: 1;
  text-align: right;
}

.logged-in-page #profile-handle {
  margin: 0;
  color: rgba(247, 242, 234, 0.82);
  text-shadow: 0 1px 3px rgba(7, 12, 11, 0.6);
  white-space: nowrap;
}

.profile-avatar.has-image {
  background-size: cover;
  background-position: center;
  color: transparent;
}

.profile-avatar.has-image,
.friend-avatar.has-image,
.feed-avatar.has-image,
.thread-avatar.has-image,
.message-avatar.has-image {
  border-color: var(--cta-accent-border);
  box-shadow: var(--cta-accent-shadow);
}

.logged-in-page #profile-avatar,
.logged-in-page #profile-avatar.has-image {
  border-color: rgba(255, 127, 46, 0.5);
}

.profile-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 12px;
  text-align: center;
}

.profile-cover .profile-meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  z-index: 1;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 4px;
  color: #f7f2ea;
}

.profile-cover .profile-meta > div {
  display: grid;
  gap: 2px;
}

.profile-cover .meta-value {
  font-size: 0.74rem;
  text-shadow: 0 1px 2px rgba(6, 10, 10, 0.45);
}

.profile-cover .meta-label {
  font-size: 0.5rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: rgba(247, 242, 234, 0.75);
  text-shadow: 0 1px 2px rgba(6, 10, 10, 0.45);
}

.meta-value {
  font-weight: 600;
  font-size: 1.1rem;
}

.meta-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.public-profile-actions {
  display: grid;
}

.public-profile-actions .btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.public-profile-actions .profile-actions-menu {
  width: 100%;
  justify-content: stretch;
}

.public-profile-actions .profile-actions-menu .btn {
  width: 100%;
  justify-content: center;
}

.public-profile-actions .profile-actions-panel {
  width: 100%;
}

.profile-action-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.profile-posts-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-status {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
}

.profile-status.is-alert {
  background: rgba(185, 64, 58, 0.14);
  border-color: rgba(185, 64, 58, 0.35);
}

.profile-status .link {
  display: inline-flex;
  margin-top: 8px;
}

.profile-gen {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  display: grid;
  gap: 8px;
  --gen-rank-accent: var(--cta-accent-end);
}

.profile-gen.rank-recluta,
.gen-rank-badge.rank-recluta {
  --gen-rank-accent: #9aa0a6;
}

.profile-gen.rank-operativo,
.gen-rank-badge.rank-operativo {
  --gen-rank-accent: #4ca2ff;
}

.profile-gen.rank-sargento,
.gen-rank-badge.rank-sargento {
  --gen-rank-accent: #4ccfa0;
}

.profile-gen.rank-teniente,
.gen-rank-badge.rank-teniente {
  --gen-rank-accent: #ffb44a;
}

.profile-gen.rank-comandante,
.gen-rank-badge.rank-comandante {
  --gen-rank-accent: #ff7f2e;
}

.profile-gen.rank-leyenda,
.gen-rank-badge.rank-leyenda {
  --gen-rank-accent: #ff5a5f;
}

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

.gen-rank-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--gen-rank-accent);
  color: var(--gen-rank-accent);
  background: rgba(255, 255, 255, 0.7);
}

.gen-rank-title {
  font-weight: 600;
  color: var(--gen-rank-accent);
}

.gen-medals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gen-medal {
  min-width: 44px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  font-size: 0.72rem;
  text-align: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
}

.gen-medal[data-tier="10"] {
  border-color: rgba(69, 230, 255, 0.6);
  color: #1b6b84;
}

.gen-medal[data-tier="50"] {
  border-color: rgba(255, 180, 74, 0.7);
  color: #9a5e1f;
}

.gen-medal[data-tier="100"] {
  border-color: rgba(76, 207, 160, 0.7);
  color: #1f6e53;
}

.gen-medal[data-tier="250"] {
  border-color: rgba(255, 90, 95, 0.7);
  color: #8d2a2e;
}

.gen-summary {
  margin: 0;
  font-size: 0.85rem;
}

.profile-bio {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  min-height: 96px;
  line-height: 1.5;
}

.profile-panel {
  background: #fdf9f3;
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 12px;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: var(--tools-panel-max-height, var(--floating-panel-max-height));
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.panel-scroll {
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.profile-panel .panel-scroll {
  scrollbar-width: auto;
  scrollbar-color: var(--floating-panel-scroll-thumb) var(--floating-panel-scroll-track);
}

#settings-panel {
  width: 100%;
  max-width: 100%;
  background: var(--floating-panel-bg);
  border: 1px solid var(--floating-panel-border);
  box-shadow: var(--floating-panel-shadow);
  backdrop-filter: blur(var(--floating-panel-blur));
  justify-self: stretch;
  max-height: var(--floating-panel-max-height);
  overflow: hidden;
  padding-right: 8px;
}

#settings-panel .tab-panel,
#settings-panel .panel-section,
#settings-panel .accordion-panel {
  width: 100%;
}

.profile-panel .panel-scroll::-webkit-scrollbar,
#settings-panel::-webkit-scrollbar,
.logged-in-page #friends-card::-webkit-scrollbar,
.logged-in-page #notifications-card::-webkit-scrollbar {
  width: 10px;
}

.profile-panel .panel-scroll::-webkit-scrollbar-track,
#settings-panel::-webkit-scrollbar-track,
.logged-in-page #friends-card::-webkit-scrollbar-track,
.logged-in-page #notifications-card::-webkit-scrollbar-track {
  background: var(--floating-panel-scroll-track);
  border-radius: 999px;
}

.profile-panel .panel-scroll::-webkit-scrollbar-thumb,
#settings-panel::-webkit-scrollbar-thumb,
.logged-in-page #friends-card::-webkit-scrollbar-thumb,
.logged-in-page #notifications-card::-webkit-scrollbar-thumb {
  background: var(--floating-panel-scroll-thumb);
  border-radius: 999px;
  border: 2px solid rgba(253, 249, 243, 0.5);
}

.settings-accordion {
  display: grid;
  gap: 16px;
}

.accordion-item {
  display: grid;
  gap: 10px;
}

.accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  cursor: pointer;
}

.accordion-toggle.is-active {
  border-color: rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.06);
}

.accordion-indicator {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: var(--accent-2);
  font-weight: 700;
}

.accordion-panel {
  border-top: none;
  padding-top: 0;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-title h3 {
  margin: 0;
}

.panel-sticky-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-sticky-row h3 {
  margin: 0;
}

.btn.panel-close {
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--cta-accent-border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--cta-accent-end);
  box-shadow: 0 8px 16px rgba(12, 16, 15, 0.12);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  margin-top: -2px;
}

.btn.profile-home-button {
  width: 44px;
  height: 44px;
  min-width: 44px;
}

.btn.profile-home-button .ui-icon {
  width: 36px;
  height: 36px;
}

.btn.panel-close:hover {
  box-shadow: 0 10px 18px rgba(12, 16, 15, 0.16);
}

.btn.panel-close:focus-visible {
  outline: 2px solid rgba(255, 122, 61, 0.45);
  outline-offset: 2px;
}

.profile-media-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-upload {
  display: grid;
  gap: 8px;
  margin: 6px 0 12px;
}

.profile-upload .muted {
  font-size: 0.85rem;
}

.profile-panel label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.profile-panel input,
.profile-panel textarea,
.profile-panel select {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: \"Space Grotesk\", sans-serif;
  font-size: 0.95rem;
}

.profile-panel textarea {
  resize: vertical;
}

.profile-cover-preview {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
  border: 1px dashed rgba(0, 0, 0, 0.22);
  min-height: 110px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12px;
}

.profile-cover-preview .profile-cover-image {
  height: 120px;
  display: none;
}

.profile-cover-preview.is-empty .profile-cover-image {
  display: none;
}

.profile-cover-preview.is-empty span {
  display: inline;
}

.profile-cover-preview:not(.is-empty) {
  padding: 0;
}

.profile-cover-preview:not(.is-empty) .profile-cover-image {
  display: block;
}

.profile-cover-preview:not(.is-empty) span {
  display: none;
}

.profile-cover-actions {
  display: flex;
  justify-content: flex-end;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.library-grid.is-cover {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.library-option {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  background: #ffffff;
  padding: 10px;
  display: grid;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.library-option img {
  width: 100%;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.library-option span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.library-option.is-selected {
  border-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.library-option.is-empty {
  border-style: dashed;
  background: rgba(0, 0, 0, 0.04);
}

.library-option-cover {
  min-height: 90px;
  background-size: cover;
  background-position: center;
  color: #f7f2ea;
  position: relative;
}

.library-option-cover span {
  background: rgba(9, 14, 13, 0.55);
  border-radius: 999px;
  padding: 4px 10px;
  width: fit-content;
}

.library-placeholder {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 8px 0;
}

.panel-section {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.panel-section:first-of-type {
  padding-top: 0;
  border-top: none;
}

.panel-section h4 {
  margin: 0;
  font-size: 0.95rem;
}

.profile-panel .toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-panel .toggle-row input {
  width: auto;
}

.feed-column {
  display: grid;
  gap: 22px;
}

.composer-toggle {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.publish-group {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 0;
}

.publish-cancel {
  display: none;
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 999px;
}

.publish-group .publish-main {
  border-radius: 999px;
  position: relative;
  overflow: visible;
}

.publish-main.has-progress {
  --upload-progress: 0%;
  color: rgba(255, 255, 255, 0.45);
}

.publish-main.has-progress::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    var(--cta-accent-end) 0% var(--upload-progress),
    rgba(255, 255, 255, 0.2) var(--upload-progress) 100%
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 5px),
    #000 calc(100% - 4px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 5px),
    #000 calc(100% - 4px)
  );
  pointer-events: none;
}

.publish-main.has-progress::after {
  content: attr(data-progress);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.publish-menu {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  z-index: 1;
  white-space: nowrap;
}

.publish-menu-item {
  text-decoration: none;
  color: #0d1413;
  border: none;
  padding: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}

.publish-menu-item .ui-icon {
  width: 20px;
  height: 20px;
}

.publish-menu[hidden] {
  display: none;
}

.publish-group.is-open::before {
  content: "";
  position: absolute;
  inset: -6px -8px -6px -6px;
  border-radius: 999px;
  background: var(--btn-secondary-bg);
  border: 1px solid var(--btn-secondary-border);
  box-shadow: var(--btn-secondary-shadow);
  z-index: -1;
}

.publish-menu-item:hover {
  background: rgba(0, 0, 0, 0.08);
}

.publish-menu-item[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

.publish-menu-item[aria-disabled="true"]:hover {
  background: rgba(255, 255, 255, 0.7);
}

.composer-card,
.feed-card,
.tool-card {
  background: linear-gradient(145deg, var(--glass-strong), rgba(255, 255, 255, 0.7));
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 24px 40px rgba(7, 12, 11, 0.26);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  display: grid;
  gap: 16px;
  animation: rise 0.5s ease;
}

.composer-card header {
  display: grid;
  gap: 6px;
}

.composer-card header h3 {
  margin: 0;
}

.public-feed-card {
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: none;
  box-shadow: 0 8px 16px rgba(7, 12, 11, 0.08);
}

.public-feed-card .feed-item {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: none;
  box-shadow: none;
}

#public-feed-card {
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: none;
  box-shadow: 0 8px 16px rgba(7, 12, 11, 0.08);
}

#public-feed-card .feed-item {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: none;
  box-shadow: none;
}

.public-feed-card .media-frame,
#public-feed-card .media-frame {
  background: transparent;
}

.public-feed-card .feed-recent,
#public-feed-card .feed-recent {
  background: transparent;
}

.composer-input textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  padding: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.85);
  resize: vertical;
}

.composer-fields {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.composer-text-input {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 8px 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  background: #ffffff;
}

.composer-text-input::placeholder {
  color: var(--muted);
}

.composer-media {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.composer-media-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.composer-media-hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.composer-media-preview {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
}

.composer-media-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.08);
  aspect-ratio: 1 / 1;
}

.composer-media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.composer-media-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 999px;
  background: rgba(12, 16, 15, 0.7);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.composer-media-remove:hover {
  background: rgba(12, 16, 15, 0.85);
}

.composer-media-remove:focus-visible {
  outline: 2px solid rgba(255, 122, 61, 0.55);
  outline-offset: 2px;
}

.composer-media-remove[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.6;
}

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

.composer-controls {
  display: flex;
  width: 100%;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
}

.composer-select-label {
  display: grid;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.composer-select {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 8px 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  background: #ffffff;
}

.tool-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-actions .btn {
  padding: 4px 8px;
  font-size: 0.65rem;
  border-radius: 999px;
}

.media-carousel {
  position: relative;
  display: grid;
  gap: 10px;
}

.media-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #efeae1;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
}

.media-play-stack {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  gap: 10px;
  justify-items: center;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.media-play {
  width: clamp(48px, 12vw, 68px);
  height: clamp(48px, 12vw, 68px);
  border-radius: 16px;
  border: 2px solid var(--cta-accent-end);
  background: rgba(12, 16, 15, 0.2);
  color: var(--cta-accent-end);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(12, 16, 15, 0.28);
  backdrop-filter: blur(4px);
}

.media-play::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 16px solid currentColor;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 3px;
}

.media-play:focus-visible {
  outline: 2px solid rgba(255, 122, 61, 0.55);
  outline-offset: 2px;
}

.media-play-stack .feed-cta {
  margin: 0;
  justify-content: center;
}

.media-play-stack .video-announce-cta {
  padding: 6px 12px;
  font-size: 0.72rem;
}

.feed-card .media-frame {
  background: transparent;
}

.dashboard-grid .media-frame {
  aspect-ratio: 2 / 3;
}

.media-item {
  margin: 0;
  display: none;
  position: relative;
}

.media-item.is-active {
  display: block;
}

.media-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(12, 16, 15, 0.68);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 2;
}

.media-nav.prev {
  left: 12px;
}

.media-nav.next {
  right: 12px;
}

.media-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(12, 16, 15, 0.7);
  color: #fff;
  font-size: 0.75rem;
  z-index: 2;
}

.media-overlay-summary {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(12, 16, 15, 0.7);
  color: #fff;
  font-size: 0.7rem;
  line-height: 1.2;
  gap: 8px;
  max-width: calc(100% - 24px);
  z-index: 2;
}

.media-overlay-summary .feed-summary-divider {
  color: rgba(255, 255, 255, 0.6);
}

.media-overlay-summary .feed-summary-btn {
  color: inherit;
}

.media-overlay-summary .feed-summary-btn:hover {
  color: #fff;
}

.media-action-stack {
  position: absolute;
  right: 12px;
  top: 12px;
  display: grid;
  gap: 8px;
  z-index: 3;
  align-items: center;
}

.media-action-stack.is-vertical .btn.media-action {
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
}

.media-action-stack.is-vertical .btn.media-action.has-count {
  padding: 8px 10px;
}

.media-action-stack.is-vertical .media-action-count {
  min-width: 0;
}

.media-action-stack .reaction-options {
  left: auto;
  right: 0;
}

.btn.media-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 999px;
  background: rgba(12, 16, 15, 0.68);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 18px rgba(4, 8, 8, 0.32);
}

.btn.media-action.has-count {
  padding: 6px 10px;
  min-width: 46px;
}

.btn.media-action.has-count .ui-icon {
  width: 16px;
  height: 16px;
}

.media-action-count {
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  color: inherit;
  font-variant-numeric: tabular-nums;
  min-width: 1.6ch;
  text-align: center;
}

.btn.media-action:hover {
  background: rgba(12, 16, 15, 0.85);
}

.btn.media-action.is-active {
  border-color: var(--cta-accent-border);
  color: var(--cta-accent-end);
}

.media-share-slot {
  position: absolute;
  inset: 0;
  display: none;
  padding: 16px;
  background: rgba(7, 12, 11, 0.45);
  backdrop-filter: blur(6px);
  z-index: 4;
  align-items: center;
  justify-items: center;
}

.media-share-slot.is-active {
  display: grid;
}

.media-share-slot .share-panel {
  margin: 0;
  width: min(460px, 100%);
  max-height: 100%;
  overflow: auto;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 18px 36px rgba(7, 12, 11, 0.28);
}

.media-warning {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #1f1f1f;
  font-size: 0.7rem;
  font-weight: 600;
}

.activity-feed,
.tools-list,
.friends-list,
.notifications-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  overscroll-behavior: auto;
}

.activity-feed {
  max-height: clamp(320px, 65dvh, 900px);
  overflow-y: auto;
  padding-right: 6px;
}

@media (max-width: 1023px) {
  .video-page .video-feed {
    scroll-snap-type: none;
    overscroll-behavior-y: contain;
    touch-action: none;
  }

  .video-page .video-feed > li {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .video-page .video-media .media-overlay-summary {
    bottom: 40px;
  }

  .video-page .video-profile-badge {
    top: 32px;
  }
}

@media (min-width: 1024px) {
  .video-feed {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(280px, 34vw, 420px);
    gap: 18px;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 0;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
  }

  .video-feed > li {
    scroll-snap-align: start;
  }
}

.activity-feed,
.video-rail,
.official-rail {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) rgba(255, 255, 255, 0.08);
  overscroll-behavior: auto;
}

.activity-feed::-webkit-scrollbar,
.video-rail::-webkit-scrollbar,
.official-rail::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.activity-feed::-webkit-scrollbar-track,
.video-rail::-webkit-scrollbar-track,
.official-rail::-webkit-scrollbar-track {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.04)
  );
  border-radius: 999px;
}

.activity-feed::-webkit-scrollbar-thumb,
.video-rail::-webkit-scrollbar-thumb,
.official-rail::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.18)
  );
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 0 6px rgba(255, 255, 255, 0.5),
    0 0 8px rgba(0, 0, 0, 0.2);
}

.dashboard-grid .activity-feed {
  min-height: 520px;
  max-height: clamp(600px, 82dvh, 1400px);
  padding-bottom: 240px;
}

.friends-list {
  max-height: clamp(240px, 45dvh, 620px);
  overflow-y: auto;
  padding-right: 6px;
}

.friends-empty {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 12px 8px;
}

.notifications-list {
  max-height: clamp(240px, 45dvh, 620px);
  overflow-y: auto;
  padding-right: 6px;
}

.friends-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.friends-header > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#friends-card .icon-title {
  margin: 0;
  margin-left: max(
    0px,
    calc(var(--friends-icon-center, 0px) - var(--friends-card-padding-x) - 11px)
  );
}

.friends-toggle {
  padding: 4px 10px;
  font-size: 0.65rem;
  border-radius: 999px;
}

#notifications-card header {
  display: grid;
  gap: 4px;
  --notifications-header-padding-x: 10px;
  padding: 8px var(--notifications-header-padding-x);
  background: rgba(12, 16, 15, 0.12);
  border-radius: 14px;
  justify-items: center;
  text-align: center;
}

#notifications-card .icon-title,
#notifications-card header p {
  margin: 0;
}

#notifications-card .icon-title {
  justify-self: start;
  margin-left: max(
    0px,
    calc(
      var(--notifications-icon-center, 0px) - var(--notifications-card-padding-x) -
        var(--notifications-header-padding-x) - 11px
    )
  );
}

#notifications-card header p {
  color: rgba(12, 16, 15, 0.72);
  max-width: 100%;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friends-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--muted);
}

.friends-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--presence-online);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12);
}

.friends-separator {
  color: var(--muted);
}

.friends-search {
  display: grid;
  gap: 6px;
}

.friends-panel {
  display: grid;
  gap: 12px;
}

.friends-discover {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 10px;
}

.friends-search input {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 8px 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  background: #ffffff;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tab-button {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tab-button.is-active {
  background: #1a1a1a;
  color: #f7f2ea;
  border-color: transparent;
}

.tab-badge {
  background: rgba(0, 0, 0, 0.12);
  color: #5a5a5a;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.75rem;
}

.tab-button.is-active .tab-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #f7f2ea;
}

.tab-panel {
  display: grid;
  gap: 12px;
}

.feed-item,
.tool-item,
.friend-item,
.notification-item {
  display: grid;
  gap: 4px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 18px rgba(7, 12, 11, 0.08);
  backdrop-filter: blur(6px);
}

.feed-item.is-clickable {
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.feed-item.is-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(7, 12, 11, 0.16);
}

.feed-item.is-clickable:focus-visible {
  outline: 2px solid var(--cta-accent-end);
  outline-offset: 3px;
}

.dashboard-grid .feed-item {
  min-height: 300px;
  padding-bottom: 80px;
}

.reaction-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.reaction-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.reaction-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 3;
}

.reaction-menu:hover .reaction-options,
.reaction-menu:focus-within .reaction-options {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.emoji-button {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.emoji-button img {
  width: 22px;
  height: 22px;
  display: block;
}

.emoji-button.is-active {
  border-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.feed-comments {
  display: grid;
  gap: 12px;
  padding-top: 10px;
}

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

.comment-item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 10px;
  background: rgba(248, 246, 241, 0.7);
  display: grid;
  gap: 6px;
}

.comment-item.depth-1 {
  margin-left: 14px;
  border-left: 2px solid rgba(0, 0, 0, 0.2);
}

.comment-item.depth-2 {
  margin-left: 28px;
  border-left: 2px solid rgba(0, 0, 0, 0.16);
}

.comment-meta {
  display: flex;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.comment-author {
  font-weight: 600;
  color: var(--ink);
}

.comment-body {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.comment-emoji {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.comment-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.comment-actions .btn {
  padding: 6px 12px;
  font-size: 0.75rem;
}

.comment-empty {
  font-size: 0.85rem;
  color: var(--muted);
}

.comment-composer {
  display: grid;
  gap: 10px;
  padding-top: 6px;
}

.comment-composer textarea {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  resize: vertical;
}

.comment-emoji-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.comment-actions-row {
  display: flex;
  gap: 10px;
}

.comment-reply {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.16);
  font-size: 0.8rem;
  color: var(--ink);
}

.comment-reply .btn {
  padding: 6px 10px;
  font-size: 0.75rem;
}

.friend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.friend-item.has-action {
  justify-content: space-between;
}

.friend-action {
  margin-left: auto;
}

.friend-body {
  display: grid;
  gap: 2px;
}

.friend-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cta-accent-start), var(--cta-accent-end));
  color: var(--cta-accent-text);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--cta-accent-border);
  box-shadow: var(--cta-accent-shadow);
  position: relative;
}

.friend-avatar.has-image {
  background-size: cover;
  background-position: center;
  color: transparent;
}

.friend-item.is-online .friend-avatar::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--presence-online);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.friend-handle {
  font-size: 0.75rem;
  color: var(--muted);
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.feed-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feed-author-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.feed-author-text {
  display: grid;
  gap: 2px;
}

.feed-avatar {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cta-accent-start), var(--cta-accent-end));
  color: var(--cta-accent-text);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--cta-accent-border);
  box-shadow: var(--cta-accent-shadow);
}

.feed-avatar.has-image {
  background-size: cover;
  background-position: center;
  color: transparent;
}

.feed-name {
  font-weight: 600;
}

.feed-handle {
  font-size: 0.75rem;
  color: var(--muted);
}

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

.feed-header-right {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.feed-header-action {
  padding: 6px;
  min-width: 32px;
  min-height: 32px;
}

.feed-header-action .ui-icon {
  color: currentColor;
}

.feed-visibility {
  background: rgba(0, 0, 0, 0.12);
  color: #5a5a5a;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.feed-category {
  background: rgba(46, 92, 58, 0.12);
  color: #2e5c3a;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.feed-category.is-muted {
  background: rgba(0, 0, 0, 0.08);
  color: var(--muted);
}

.feed-badge {
  background: rgba(255, 179, 107, 0.18);
  color: #a45822;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.feed-content {
  font-size: 0.95rem;
  color: var(--ink);
  white-space: pre-wrap;
  line-height: 1.5;
}

.feed-summary {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.feed-summary-icons {
  align-items: center;
}

.feed-summary-icons .feed-summary-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feed-summary-icons .feed-summary-count {
  font-variant-numeric: tabular-nums;
}

.feed-summary-icons .ui-icon {
  width: 16px;
  height: 16px;
}

.feed-summary-icons .feed-summary-btn {
  text-decoration: none;
}

.feed-summary-icons .feed-summary-btn:hover {
  text-decoration: none;
}

.public-profile-page .feed-summary-icons .feed-summary-icon {
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.public-profile-page .feed-summary-icons .feed-summary-count {
  font-size: 0.65rem;
  line-height: 1;
}

.public-profile-page .feed-summary-icons .ui-icon {
  width: 14px;
  height: 14px;
}

.public-profile-page .media-overlay-summary.feed-summary-icons {
  right: 10px;
  left: auto;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(12, 16, 15, 0.7);
  color: #fff;
  font-size: 0.7rem;
  line-height: 1.1;
  max-width: calc(100% - 20px);
  box-sizing: border-box;
}

.feed-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.video-announce-cta {
  text-decoration: none;
}

.feed-summary-divider {
  opacity: 0.6;
}

.feed-summary-btn {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.feed-summary-btn:hover {
  color: #5a5a5a;
  text-decoration: underline;
}

.feed-summary-btn:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.3);
  outline-offset: 2px;
  border-radius: 6px;
}

.feed-recent {
  display: grid;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.04);
  padding: 8px 10px;
  border-radius: 12px;
  line-height: 1.4;
}

.feed-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.feed-actions .btn {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.feed-actions .btn.media-action {
  padding: 8px;
  min-width: 38px;
  min-height: 38px;
}

.feed-actions .btn.media-action.has-count {
  padding: 6px 10px;
  min-width: 46px;
}

.share-slot {
  display: grid;
  gap: 8px;
}

.share-panel {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 18px rgba(7, 12, 11, 0.08);
  display: grid;
  gap: 10px;
}

.share-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.share-panel-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
}

.share-panel-hint {
  font-size: 0.75rem;
  color: var(--muted);
}

.share-search {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 6px 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  background: #ffffff;
}

.share-list {
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
  padding-right: 4px;
}

.share-empty {
  font-size: 0.8rem;
  color: var(--muted);
}

.share-friend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.share-friend:last-child {
  border-bottom: none;
}

.share-friend-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.share-friend-avatar {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cta-accent-start), var(--cta-accent-end));
  color: var(--cta-accent-text);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.8rem;
  border: 1px solid var(--cta-accent-border);
}

.share-friend-avatar.has-image {
  background-size: cover;
  background-position: center;
  color: transparent;
}

.share-friend-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.share-friend-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.share-friend-handle {
  font-size: 0.7rem;
  color: var(--muted);
}

.share-send,
.share-close {
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 999px;
}

.share-status {
  font-size: 0.75rem;
  color: var(--muted);
  min-height: 1em;
}

.dashboard-grid .feed-avatar {
  width: 46px;
  height: 46px;
  font-size: 1rem;
}

.dashboard-grid .feed-name {
  font-size: 1.05rem;
}

.dashboard-grid .feed-handle {
  font-size: 0.85rem;
}

.dashboard-grid .feed-visibility {
  font-size: 0.78rem;
  padding: 4px 12px;
}

.dashboard-grid .feed-content {
  font-size: 1.05rem;
}

.dashboard-grid .feed-summary {
  font-size: 0.9rem;
  gap: 12px;
}

.dashboard-grid .feed-time {
  font-size: 0.85rem;
}

.dashboard-grid .feed-recent {
  font-size: 0.9rem;
  padding: 10px 12px;
}

.dashboard-grid .feed-actions .btn {
  padding: 8px 14px;
  font-size: 0.9rem;
}

.public-video-preview {
  display: grid;
  gap: 12px;
  padding: 10px 0 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.public-video-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 6px;
}

.video-rail {
  list-style: none;
  padding: 2px 2px 6px;
  margin: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 220px);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.video-rail li {
  scroll-snap-align: start;
}

.video-preview {
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: 8px;
}

.video-preview.is-blocked {
  cursor: not-allowed;
}

.video-preview-cover {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: rgba(8, 14, 13, 0.6);
}

.video-profile-badge {
  position: absolute;
  top: 16px;
  right: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.video-profile-badge .profile-tile-header {
  width: clamp(64px, 12vw, 96px);
  height: clamp(64px, 12vw, 96px);
  box-shadow: 0 12px 20px rgba(7, 12, 11, 0.28);
}

.video-profile-badge .profile-tile-header.is-online {
  animation: profile-online-pulse-mini 2.4s ease-in-out infinite;
}

.video-profile-badge .profile-tile-avatar {
  font-size: 0.95rem;
  border-width: 1px;
}

.video-profile-badge .profile-tile-overlay {
  left: 6px;
  right: 6px;
  bottom: 6px;
  padding: 4px 6px;
  border-radius: 10px;
}

.video-profile-badge .profile-tile-name {
  font-size: 0.62rem;
}

.video-profile-badge.is-compact .profile-tile-header {
  width: clamp(56px, 18vw, 78px);
  height: clamp(56px, 18vw, 78px);
}

.video-profile-badge.is-compact .profile-tile-overlay {
  left: 5px;
  right: 5px;
  bottom: 5px;
  padding: 3px 5px;
}

.video-profile-badge.is-compact .profile-tile-name {
  font-size: 0.56rem;
}

.video-profile-badge:focus-visible .profile-tile-header {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.video-preview-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-preview-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(140deg, rgba(13, 20, 19, 0.7), rgba(20, 94, 80, 0.7));
}

.video-preview-cover .video-blocked-overlay {
  font-size: 0.7rem;
  padding: 10px;
}

.video-preview-summary {
  position: absolute;
  right: 10px;
  left: auto;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(12, 16, 15, 0.7);
  color: #fff;
  font-size: 0.7rem;
  line-height: 1.1;
  z-index: 2;
}

.video-preview-summary .ui-icon {
  width: 14px;
  height: 14px;
}

.video-preview-summary .feed-summary-icon {
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.video-preview-summary .feed-summary-count {
  font-size: 0.65rem;
  line-height: 1;
}

.video-preview-label {
  font-size: 0.82rem;
  color: var(--muted);
}

.video-preview-meta {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.feed-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.feed-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.feed-filter-label {
  display: grid;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--muted);
}

.feed-filter-label .composer-text-input,
.feed-filter-label .composer-select {
  min-width: 200px;
}

.feed-filters #activity-search {
  width: 220px;
  min-width: 160px;
  max-width: 240px;
}

.feed-filters #activity-category-filter {
  width: 200px;
  min-width: 180px;
  max-width: 220px;
}

#activity-feed-status {
  margin: 0;
}

.official-card {
  background: rgba(9, 14, 13, 0.92);
  color: #f7f2ea;
  border: 1px solid rgba(255, 255, 255, 0.1);
  --btn-secondary-text: #f7f2ea;
}

.official-card .muted {
  color: rgba(247, 242, 234, 0.7);
}

.official-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.official-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #f7f2ea;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.official-rail {
  list-style: none;
  padding: 0 2px 6px;
  margin: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.official-rail li {
  scroll-snap-align: start;
}

.official-item {
  position: relative;
  border-radius: 18px;
  padding: 18px;
  background: #0b1110;
  color: #f7f2ea;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  align-items: start;
}

.official-item.is-clickable {
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.official-item.is-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(4, 8, 6, 0.35);
}

.official-item.is-clickable:focus-visible {
  outline: 2px solid var(--cta-accent-end);
  outline-offset: 3px;
}

.dashboard-grid .official-item {
  min-height: 320px;
  padding-bottom: 72px;
}

.official-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--official-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  filter: saturate(1.1);
  transform: scale(1.04);
}

.official-item.has-media::before {
  opacity: 0.45;
}

.official-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(7, 11, 10, 0.88), rgba(9, 14, 13, 0.45));
  z-index: 1;
}

.official-watermark {
  position: absolute;
  right: -20px;
  bottom: -18px;
  width: 180px;
  height: 180px;
  background: var(--ecodi-logo-url, url("assets/logos/e-codi-logo.png"))
    center/contain no-repeat;
  opacity: 0.14;
  filter: blur(0.4px);
  z-index: 1;
}

.official-body {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
}

.dashboard-grid .official-item .official-body {
  max-height: clamp(160px, 22dvh, 220px);
  overflow-y: auto;
  padding-right: 6px;
}

.official-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.official-badge {
  background: rgba(255, 255, 255, 0.16);
  color: #e6e6e6;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.official-time {
  font-size: 0.75rem;
  color: rgba(247, 242, 234, 0.7);
}

.official-title {
  margin: 0;
  font-size: 1.05rem;
  font-family: "Fraunces", "Georgia", serif;
}

.official-content {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(247, 242, 234, 0.88);
  white-space: pre-wrap;
}

.official-summary {
  font-size: 0.8rem;
  color: rgba(247, 242, 234, 0.7);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.official-summary .feed-summary-btn {
  color: inherit;
}

.official-summary .feed-summary-btn:hover {
  color: rgba(247, 242, 234, 0.95);
}

.official-summary .feed-summary-btn:focus-visible {
  outline: 2px solid rgba(247, 242, 234, 0.45);
  outline-offset: 2px;
  border-radius: 6px;
}

.official-summary .feed-summary-divider {
  opacity: 0.6;
}

.official-recent {
  display: grid;
  gap: 4px;
  font-size: 0.75rem;
  color: rgba(247, 242, 234, 0.7);
}

.official-item.has-cta {
  padding-bottom: 72px;
}

.official-cta {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.official-cta .official-link-btn {
  text-decoration: none;
  border: 2px solid var(--cta-accent-end);
}

.feed-item.official-inline.has-cta {
  padding-bottom: 68px;
}

.official-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.official-actions .btn.ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f7f2ea;
  background: rgba(255, 255, 255, 0.08);
}

.official-actions .reaction-options {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(13, 18, 17, 0.94);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
}

.official-actions .reaction-options .emoji-button {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
}

.official-actions .reaction-options .emoji-button.is-active {
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.12);
}

#public-official .official-actions {
  display: none;
}

#public-official.show-actions .official-actions {
  display: flex;
}

.feed-item.official-inline {
  position: relative;
  overflow: hidden;
  background: rgba(9, 14, 13, 0.92);
  color: #f7f2ea;
  border-color: rgba(255, 255, 255, 0.12);
  isolation: isolate;
}

.dashboard-grid .feed-item.official-inline {
  min-height: 320px;
}

.feed-item.official-inline::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--official-bg, none);
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  filter: saturate(1.1);
  transform: scale(1.02);
  z-index: 0;
}

.feed-item.official-inline::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(7, 11, 10, 0.9), rgba(9, 14, 13, 0.5));
  z-index: 1;
}

.feed-item.official-inline > *:not(.official-inline-watermark) {
  position: relative;
  z-index: 2;
}

.feed-item.official-inline .official-inline-text {
  display: inline;
  color: var(--cta-accent-end);
}

.feed-item.official-inline .feed-title .official-inline-text {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--cta-accent-start), var(--cta-accent-end));
  color: #0b1110;
  padding: 6px 10px;
  border-radius: 10px;
  box-sizing: border-box;
}

.feed-item.official-inline .feed-content .official-inline-text {
  line-height: 1.55;
}

.official-inline-watermark {
  position: absolute;
  right: -16px;
  bottom: -20px;
  width: 140px;
  height: 140px;
  background: var(--ecodi-logo-url, url("assets/logos/e-codi-logo.png"))
    center/contain no-repeat;
  opacity: 0.18;
  z-index: 1;
}

.feed-item.official-inline .feed-visibility {
  background: rgba(255, 255, 255, 0.16);
  color: #e6e6e6;
}

.feed-item.official-inline .feed-handle,
.feed-item.official-inline .feed-time,
.feed-item.official-inline .feed-summary,
.feed-item.official-inline .feed-recent {
  color: rgba(247, 242, 234, 0.7);
}

.feed-item.official-inline .feed-recent {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.feed-item.official-inline .feed-actions .btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f7f2ea;
  background: rgba(255, 255, 255, 0.08);
}

.feed-item.official-inline .reaction-options {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(12, 16, 15, 0.94);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
}

.feed-item.official-inline .reaction-options .emoji-button {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
}

.feed-item.official-inline .reaction-options .emoji-button.is-active {
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.12);
}

.notification-item.is-read {
  opacity: 0.7;
}

.notification-item.notification-actionable {
  cursor: pointer;
}

.request-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.request-avatar {
  width: 40px;
  height: 40px;
  font-size: 0.85rem;
}

.request-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

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

.notification-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.notification-tools .btn {
  padding: 6px 12px;
  font-size: 0.8rem;
}

#notifications-clear {
  margin-left: auto;
}

.notification-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.notification-top .notification-title {
  flex: 1;
  min-width: 0;
}

.notification-title.is-dot {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: auto;
}

.notification-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--presence-online);
  box-shadow: 0 0 0 2px rgba(247, 242, 234, 0.85);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.notification-status-dot.is-muted {
  opacity: 0.35;
  filter: grayscale(0.6);
}

.notification-select {
  width: 16px;
  height: 16px;
  margin: 0;
}

.notification-delete {
  margin-left: auto;
}

.tab-panel.is-selecting .notification-select {
  display: inline-flex;
}

.tab-panel:not(.is-selecting) .notification-select {
  display: none;
}

.notification-actions .btn {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.notification-actions .btn.icon-only {
  padding: 6px;
  min-width: 32px;
}

.notification-delete .ui-icon {
  width: 16px;
  height: 16px;
}

.feed-title,
.tool-name,
.friend-name,
.notification-title {
  font-weight: 600;
}

.feed-detail,
.tool-detail,
.friend-detail,
.notification-detail {
  color: var(--muted);
  font-size: 0.85rem;
}

.feed-time {
  font-size: 0.75rem;
  color: var(--accent-2);
}

.tool-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
}

.notification-tag {
  align-self: flex-start;
  background: rgba(0, 0, 0, 0.12);
  color: #5a5a5a;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tools-column {
  position: absolute;
  top: 0;
  left: 0;
  width: min(420px, 94vw);
  max-height: calc(100vh - 180px);
  display: grid;
  gap: 22px;
  z-index: 45;
  overflow-y: auto;
  overscroll-behavior: auto;
  padding-right: 6px;
  transform: none;
}

.session-panel {
  background: linear-gradient(150deg, #1a1a1a, #111111);
  color: #f7f2ea;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

.session-panel .result {
  background: rgba(255, 255, 255, 0.08);
  color: #f7f2ea;
}

.messages-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  min-height: 0;
  --btn-primary-bg: linear-gradient(135deg, var(--cta-accent-start), var(--cta-accent-end));
  --btn-primary-text: var(--cta-accent-text);
  --btn-primary-border: var(--cta-accent-border);
  --btn-primary-shadow: var(--cta-accent-shadow);
  --btn-secondary-bg: rgba(255, 255, 255, 0.72);
  --btn-secondary-text: var(--ink);
  --btn-secondary-border: rgba(255, 255, 255, 0.75);
  --btn-secondary-shadow: 0 12px 22px rgba(7, 12, 11, 0.14);
}

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

.messages-sidebar {
  display: grid;
  gap: 18px;
  min-height: 0;
}

.messages-page .messages-sidebar {
  display: none;
}

.messages-page.is-threads-open .messages-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 64px);
  right: clamp(12px, 2.5vw, 26px);
  width: min(360px, 92vw);
  max-height: min(70vh, 640px);
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  box-shadow: var(--messages-shadow, 0 24px 38px rgba(7, 12, 11, 0.28));
  backdrop-filter: blur(16px);
  overflow: hidden;
  z-index: 120;
}

.messages-page.is-threads-open .threads-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
}

.messages-page.is-threads-open .threads-card .threads-list {
  max-height: none;
  overflow-y: auto;
  min-height: 0;
  padding-right: 6px;
  overscroll-behavior: contain;
}

.messages-panel {
  display: grid;
  min-height: 0;
}

.messages-card {
  background: linear-gradient(
    165deg,
    var(--messages-panel-strong, var(--glass-strong)),
    var(--messages-panel, rgba(255, 255, 255, 0.7))
  );
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--messages-shadow, 0 24px 38px rgba(7, 12, 11, 0.28));
  border: 1px solid var(--messages-border, var(--glass-border));
  backdrop-filter: blur(16px);
  display: grid;
  gap: 14px;
  animation: rise 0.55s ease;
  position: relative;
  overflow: hidden;
}

.messages-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.45), transparent 55%);
  opacity: 0.55;
  pointer-events: none;
}

.messages-card > * {
  position: relative;
  z-index: 1;
}

.messages-page .new-thread-card {
  padding: 6px 12px;
  gap: 8px;
}

.messages-page .new-thread-card h3 {
  margin: 0;
}

.messages-page .new-thread-card .messages-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 10px;
}

.messages-page .new-thread-card .messages-form label {
  gap: 0;
  grid-column: 1;
}

.messages-page #new-thread-nickname {
  padding: 10px 12px;
  font-size: 0.9rem;
}

.messages-page .new-thread-card .actions {
  margin-top: 0;
  grid-column: 2;
  align-self: stretch;
  display: flex;
  align-items: stretch;
}

.messages-page .new-thread-card .actions .btn {
  padding: 10px 14px;
  height: 100%;
}

.messages-page #new-thread-status {
  grid-column: 1 / -1;
}

.messages-form label,
.message-composer label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.messages-form input,
.messages-form textarea,
.message-composer textarea {
  width: 100%;
  border: 1px solid rgba(12, 16, 15, 0.14);
  border-radius: 14px;
  padding: 10px 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.95);
  resize: vertical;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.messages-form input:focus-visible,
.messages-form textarea:focus-visible,
.message-composer textarea:focus-visible {
  outline: none;
  border-color: rgba(255, 127, 46, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 179, 107, 0.2);
  background: #ffffff;
}

.messages-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.messages-list-actions {
  display: inline-flex;
  gap: 6px;
  flex-wrap: nowrap;
}

.messages-page .messages-list-actions .btn {
  padding: 6px 10px;
  font-size: 0.7rem;
  line-height: 1;
}

.threads-list,
.messages-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) rgba(255, 255, 255, 0.08);
  overscroll-behavior: auto;
}

.threads-list::-webkit-scrollbar,
.messages-list::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.threads-list::-webkit-scrollbar-track,
.messages-list::-webkit-scrollbar-track {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.04)
  );
  border-radius: 999px;
}

.threads-list::-webkit-scrollbar-thumb,
.messages-list::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.18)
  );
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 0 6px rgba(255, 255, 255, 0.5),
    0 0 8px rgba(0, 0, 0, 0.2);
}

.thread-item {
  width: 100%;
  border: 1px solid rgba(12, 16, 15, 0.12);
  border-left: 3px solid transparent;
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.96);
  display: grid;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.thread-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 179, 107, 0.2), transparent 55%);
  opacity: 0;
  pointer-events: none;
}

.thread-item > * {
  position: relative;
  z-index: 1;
}

.thread-item:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 127, 46, 0.45);
  border-left-color: rgba(255, 127, 46, 0.6);
  box-shadow: 0 14px 26px rgba(7, 12, 11, 0.16);
}

.thread-item:hover::before {
  opacity: 1;
}

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

.thread-delete-inline {
  border: 1px solid rgba(185, 64, 58, 0.35);
  color: #b9403a;
  background: rgba(185, 64, 58, 0.08);
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.thread-delete-inline:hover {
  background: rgba(185, 64, 58, 0.14);
  box-shadow: 0 10px 20px rgba(185, 64, 58, 0.2);
}

.thread-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.thread-text {
  display: grid;
  gap: 4px;
}

.thread-avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cta-accent-start), var(--cta-accent-end));
  color: var(--cta-accent-text);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid var(--cta-accent-border);
  box-shadow: var(--cta-accent-shadow);
  flex-shrink: 0;
}

.thread-avatar.has-image {
  background-size: cover;
  background-position: center;
  color: transparent;
}

.thread-item.is-active {
  border-color: rgba(255, 127, 46, 0.65);
  border-left-color: rgba(255, 127, 46, 0.85);
  box-shadow:
    0 0 0 2px rgba(255, 127, 46, 0.18),
    0 18px 32px rgba(7, 12, 11, 0.2);
}

.thread-item.is-active::before {
  opacity: 1;
}

.thread-title {
  font-weight: 600;
}

.thread-preview {
  font-size: 0.85rem;
  color: var(--messages-ink-muted, var(--muted));
}

.thread-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--messages-ink-muted, var(--muted));
  flex-wrap: wrap;
}

.thread-unread {
  background: linear-gradient(135deg, var(--cta-accent-start), var(--cta-accent-end));
  color: var(--cta-accent-text);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  box-shadow: 0 8px 16px rgba(255, 122, 61, 0.28);
}

.thread-empty,
.message-empty {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 16px 8px;
}

.messages-thread {
  min-height: 520px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.messages-view {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background-color: rgba(255, 255, 255, 0.65);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27160%27%20height%3D%27120%27%20viewBox%3D%270%200%20160%20120%27%20fill%3D%27none%27%3E%0A%20%20%3Cg%20stroke%3D%27%23939aa3%27%20stroke-width%3D%272%27%20opacity%3D%270.22%27%3E%0A%20%20%20%20%3Cpath%20d%3D%27M20%2022h70a10%2010%200%200%201%2010%2010v24a10%2010%200%200%201-10%2010H44l-16%2012%203-12H20a10%2010%200%200%201-10-10V32a10%2010%200%200%201%2010-10z%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M74%2054h66a10%2010%200%200%201%2010%2010v22a10%2010%200%200%201-10%2010h-30l-14%2010%203-10H74a10%2010%200%200%201-10-10V64a10%2010%200%200%201%2010-10z%27/%3E%0A%20%20%3C/g%3E%0A%3C/svg%3E");
  background-repeat: repeat;
  background-position: center;
  background-size: 220px 160px;
  background-blend-mode: soft-light;
}

.messages-view > :not(.messages-watermark) {
  position: relative;
  z-index: 1;
}

.messages-watermark {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 140px;
  height: 140px;
  background: var(--ecodi-logo-url, url("assets/logos/e-codi-logo.png"))
    center/contain no-repeat;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  filter: saturate(1.05);
}

.thread-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.messages-page .thread-header {
  align-items: center;
  gap: 8px;
}

.messages-page .thread-identity h3,
.messages-page .thread-identity p {
  margin: 0;
}

.messages-page .thread-identity h3:empty,
.messages-page .thread-identity p:empty {
  display: none;
}

.thread-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.thread-delete {
  color: #b9403a;
  border: 1px solid rgba(185, 64, 58, 0.35);
}

.thread-delete:hover {
  box-shadow: 0 10px 20px rgba(185, 64, 58, 0.2);
}

.messages-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
  overscroll-behavior: auto;
}

.message-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.message-row.is-own {
  justify-content: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cta-accent-start), var(--cta-accent-end));
  color: var(--cta-accent-text);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.7rem;
  border: 1px solid var(--cta-accent-border);
  box-shadow: var(--cta-accent-shadow);
  flex-shrink: 0;
}

.message-avatar.has-image {
  background-size: cover;
  background-position: center;
  color: transparent;
}

.message-bubble {
  max-width: 70%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(245, 245, 245, 0.9));
  border: 1px solid rgba(12, 16, 15, 0.12);
  border-radius: 18px;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
  box-shadow: 0 12px 22px rgba(7, 12, 11, 0.12);
  white-space: pre-wrap;
  position: relative;
  backdrop-filter: blur(6px);
}

.message-bubble.is-deleted {
  background: rgba(0, 0, 0, 0.08);
  color: var(--muted);
  font-style: italic;
}

.message-row.is-own .message-bubble {
  background: linear-gradient(135deg, #3f3f3f, #1f1f1f);
  color: #f7f2ea;
  border-color: rgba(255, 179, 107, 0.35);
  box-shadow: 0 14px 26px rgba(7, 12, 11, 0.24);
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--messages-ink-muted, var(--muted));
  flex-wrap: wrap;
}

.message-row.is-own .message-meta {
  justify-content: flex-end;
  color: rgba(247, 242, 234, 0.85);
}

.message-delete {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 0.7rem;
  cursor: pointer;
  opacity: 0.7;
  padding: 0;
  transition: opacity 0.2s ease;
}

.message-delete:hover {
  opacity: 1;
}

.message-composer {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--messages-shadow-soft, 0 18px 30px rgba(7, 12, 11, 0.14));
}

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

.image-publish-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 12, 11, 0.55);
  backdrop-filter: blur(6px);
  z-index: 210;
}

.image-publish-overlay.is-hidden,
.image-publish-overlay[hidden] {
  display: none;
}

.image-publish-active {
  overflow: hidden;
}

.image-publish-active .publish-group {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 320;
}

.image-publish-active .publish-cancel {
  display: inline-flex;
}

.image-publish-card {
  width: min(520px, 100%);
  max-width: 520px;
  display: grid;
  gap: 12px;
  justify-items: center;
  align-items: center;
  max-height: calc(100vh - 48px);
  max-height: calc(100svh - 48px);
}

.image-publish-preview {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
  width: min(420px, 92vw);
  max-width: 420px;
  height: min(64vh, 560px);
  height: min(64svh, 560px);
  max-height: 560px;
  display: grid;
  place-items: center;
}

.image-publish-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  display: block;
}

.image-publish-preview-only .image-publish-controls,
.image-publish-preview-only .image-publish-nav,
.image-publish-preview-only .image-publish-count {
  display: none;
}

.image-publish-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  flex-direction: column;
  align-items: flex-end;
}

.image-publish-control {
  padding: 6px 12px;
  font-size: 0.75rem;
  border-radius: 999px;
}

.image-publish-control.icon-only {
  padding: 8px;
  min-width: 38px;
  min-height: 38px;
}

.image-publish-status {
  min-height: 1.2em;
  font-size: 0.78rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  max-width: min(420px, 92vw);
}

.image-publish-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(12, 16, 15, 0.7);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.image-publish-nav.prev {
  left: 10px;
}

.image-publish-nav.next {
  right: 10px;
}

.image-publish-nav:disabled,
.image-publish-nav[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.45;
}

.image-publish-count {
  position: absolute;
  left: 12px;
  top: 12px;
  font-size: 0.72rem;
  color: #ffffff;
  background: rgba(12, 16, 15, 0.7);
  border-radius: 999px;
  padding: 4px 8px;
}

.image-category-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 12, 11, 0.2);
  backdrop-filter: blur(6px);
  z-index: 315;
}

.image-category-overlay.is-hidden,
.image-category-overlay[hidden] {
  display: none;
}

.image-category-card {
  width: min(420px, 92vw);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 12px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 20px 45px rgba(7, 12, 11, 0.3);
  color: #0d1413;
  backdrop-filter: blur(12px);
}

.image-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.image-category-header h4 {
  margin: 0;
  font-size: 0.95rem;
}

.image-category-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  max-height: 45vh;
  overflow: auto;
  padding-right: 4px;
}

.image-category-option {
  padding: 6px 10px;
  font-size: 0.8rem;
  border-radius: 999px;
}

.image-category-option.is-selected {
  border-color: var(--cta-accent-border);
  box-shadow: var(--cta-accent-shadow);
  color: var(--cta-accent-end);
}

.image-visibility-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 12, 11, 0.2);
  backdrop-filter: blur(6px);
  z-index: 318;
}

.image-visibility-overlay.is-hidden,
.image-visibility-overlay[hidden] {
  display: none;
}

.image-visibility-card {
  width: min(420px, 92vw);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 12px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 20px 45px rgba(7, 12, 11, 0.3);
  color: #0d1413;
  backdrop-filter: blur(12px);
}

.image-visibility-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.image-visibility-header h4 {
  margin: 0;
  font-size: 0.95rem;
}

.image-visibility-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.image-visibility-option {
  padding: 6px 10px;
  font-size: 0.8rem;
  border-radius: 999px;
}

.image-visibility-option.is-selected {
  border-color: var(--cta-accent-border);
  box-shadow: var(--cta-accent-shadow);
  color: var(--cta-accent-end);
}

.image-description-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 12, 11, 0.25);
  backdrop-filter: blur(6px);
  z-index: 310;
}

.image-description-overlay.is-hidden,
.image-description-overlay[hidden] {
  display: none;
}

.image-description-card {
  width: min(420px, 92vw);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 12px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 20px 45px rgba(7, 12, 11, 0.3);
  color: #0d1413;
  backdrop-filter: blur(12px);
}

.image-description-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.image-description-header h4 {
  margin: 0;
  font-size: 0.95rem;
}

.image-description-fields {
  display: grid;
  gap: 10px;
}

.image-description-field {
  display: grid;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.image-description-input,
.image-description-textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 8px 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.7);
  color: #0d1413;
}

.image-description-textarea {
  min-height: 120px;
  resize: vertical;
}

.image-description-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.video-publish-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 12, 11, 0.55);
  backdrop-filter: blur(6px);
  z-index: 220;
  --video-publish-left: 50%;
  --video-publish-top: 50%;
}

.video-publish-overlay.is-hidden,
.video-publish-overlay[hidden] {
  display: none;
}

.video-publish-card {
  width: min(520px, 100%);
  max-width: 520px;
  display: grid;
  gap: 12px;
  justify-items: center;
  align-items: center;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
}

.video-publish-preview {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(8, 14, 13, 0.65);
  width: min(420px, 92vw);
  max-width: 420px;
  height: min(64dvh, 64vh);
  max-height: 560px;
  display: grid;
}

.video-publish-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b0f0e;
}

.video-publish-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  padding: 8px;
  border-radius: 16px;
  background: rgba(9, 14, 13, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 18px rgba(4, 8, 8, 0.32);
  backdrop-filter: blur(10px);
}

.video-publish-status {
  min-height: 1.2em;
  font-size: 0.78rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  max-width: min(420px, 92vw);
}

.video-publish-control {
  padding: 6px 12px;
  font-size: 0.75rem;
  border-radius: 999px;
}

.video-publish-control.icon-only {
  padding: 8px;
  min-width: 38px;
  min-height: 38px;
}

.video-publish-control[data-tooltip],
.image-publish-control[data-tooltip],
.media-action[data-tooltip] {
  position: relative;
}

.video-publish-control[data-tooltip]::after,
.image-publish-control[data-tooltip]::after,
.media-action[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: rgba(8, 14, 13, 0.92);
  color: rgba(255, 255, 255, 0.88);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 18px rgba(4, 8, 8, 0.35);
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 2;
}

.image-publish-overlay.show-hints .image-publish-control[data-tooltip]::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.video-publish-overlay.show-hints .video-publish-control[data-tooltip]::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.video-publish-control[data-tooltip]:hover::after,
.video-publish-control[data-tooltip]:focus-visible::after,
.image-publish-control[data-tooltip]:hover::after,
.image-publish-control[data-tooltip]:focus-visible::after,
.media-action[data-tooltip]:hover::after,
.media-action[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.video-publish-control[aria-pressed="true"],
.video-publish-control.is-active {
  border-color: var(--cta-accent-border);
  box-shadow: var(--cta-accent-shadow);
  color: var(--cta-accent-end);
}

.video-category-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 12, 11, 0.2);
  backdrop-filter: blur(6px);
  z-index: 315;
}

.video-category-overlay.is-hidden,
.video-category-overlay[hidden] {
  display: none;
}

.video-category-card {
  width: min(420px, 92vw);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 12px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 20px 45px rgba(7, 12, 11, 0.3);
  color: #0d1413;
  backdrop-filter: blur(12px);
}

.video-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.video-category-header h4 {
  margin: 0;
  font-size: 0.95rem;
}

.video-category-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  max-height: 45vh;
  overflow: auto;
  padding-right: 4px;
}

.video-category-option {
  padding: 6px 10px;
  font-size: 0.8rem;
  border-radius: 999px;
}

.video-category-option.is-selected {
  border-color: var(--cta-accent-border);
  box-shadow: var(--cta-accent-shadow);
  color: var(--cta-accent-end);
}

.video-visibility-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 12, 11, 0.2);
  backdrop-filter: blur(6px);
  z-index: 318;
}

.video-visibility-overlay.is-hidden,
.video-visibility-overlay[hidden] {
  display: none;
}

.video-visibility-card {
  width: min(420px, 92vw);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 12px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 20px 45px rgba(7, 12, 11, 0.3);
  color: #0d1413;
  backdrop-filter: blur(12px);
}

.video-visibility-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.video-visibility-header h4 {
  margin: 0;
  font-size: 0.95rem;
}

.video-visibility-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.video-visibility-option {
  padding: 6px 10px;
  font-size: 0.8rem;
  border-radius: 999px;
}

.video-visibility-option.is-selected {
  border-color: var(--cta-accent-border);
  box-shadow: var(--cta-accent-shadow);
  color: var(--cta-accent-end);
}

.video-description-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 12, 11, 0.25);
  backdrop-filter: blur(6px);
  z-index: 310;
}

.video-description-overlay.is-hidden,
.video-description-overlay[hidden] {
  display: none;
}

.video-description-card {
  width: min(420px, 92vw);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 12px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 20px 45px rgba(7, 12, 11, 0.3);
  color: #0d1413;
  backdrop-filter: blur(12px);
}

.video-description-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.video-description-header h4 {
  margin: 0;
  font-size: 0.95rem;
}

.video-description-fields {
  display: grid;
  gap: 10px;
}

.video-description-field {
  display: grid;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.video-description-input,
.video-description-textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 8px 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.7);
  color: #0d1413;
}

.video-description-textarea {
  min-height: 120px;
  resize: vertical;
}

.video-description-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.video-publish-active {
  overflow: hidden;
}

.video-publish-active .publish-group {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 320;
}

.video-publish-active .publish-cancel {
  display: inline-flex;
}

@media (min-width: 1101px) {
  .video-publish-overlay {
    display: block;
  }

  .video-publish-card {
    position: absolute;
    left: var(--video-publish-left);
    top: var(--video-publish-top);
    transform: translate(-50%, -50%);
  }
}

.video-composer textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #0d1413;
  resize: vertical;
}

.video-composer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.video-upload {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-weight: 600;
  color: #0d1413;
}

.video-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.video-composer-row select {
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.7);
  color: #0d1413;
}

.video-rules-panel {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.75);
}

.video-rules-panel .btn {
  padding: 6px 10px;
  font-size: 0.7rem;
}

.video-rules-text {
  flex-basis: 100%;
  font-size: 0.75rem;
  color: var(--muted);
}

.video-rules-text ul {
  margin: 6px 0 0;
  padding-left: 16px;
}

.video-rules-text li {
  margin-bottom: 4px;
}

.upload-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.upload-progress-bar {
  position: relative;
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.upload-progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--cta-accent-start), var(--cta-accent-end));
  border-radius: inherit;
  transition: width 0.2s ease;
}

.upload-progress-text {
  min-width: 64px;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.video-rules-accept {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #0d1413;
}

.video-cover-preview {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

.video-cover-preview img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.video-item .feed-content {
  margin-bottom: 6px;
}

.video-feed-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0 8px;
  flex-wrap: wrap;
}

.video-feed-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.video-public-link-header {
  display: none;
}

.video-feed-header h3 {
  margin-bottom: 4px;
}

.video-media {
  display: grid;
  gap: 10px;
  position: relative;
}

.video-media .video-cover-action {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
}

.video-media .media-action-stack {
  top: 50%;
  transform: translateY(-50%);
}

.video-media .media-overlay-summary {
  top: auto;
  bottom: 12px;
}

.video-action-overlay {
  position: absolute;
  inset: 0;
  display: none;
  padding: 16px;
  background: rgba(7, 12, 11, 0.4);
  backdrop-filter: blur(6px);
  z-index: 4;
  align-items: center;
  justify-items: center;
}

.video-action-overlay.is-active {
  display: grid;
}

.video-action-overlay .share-panel,
.video-action-overlay .video-comments-panel {
  margin: 0;
  width: min(520px, 100%);
  max-height: 100%;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 45px rgba(7, 12, 11, 0.3);
}

.video-action-overlay .share-panel {
  padding: 14px 16px;
}

.video-action-overlay .video-comments-panel {
  max-height: 100%;
  padding: 16px;
}

.video-cover {
  position: relative;
  border: none;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  max-height: clamp(320px, 60vh, 680px);
  background: rgba(8, 14, 13, 0.6);
  cursor: pointer;
}

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

.video-cover .video-cover-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.video-cover-placeholder {
  background: linear-gradient(140deg, rgba(13, 20, 19, 0.7), rgba(20, 94, 80, 0.7));
}

.video-cover.is-blocked {
  cursor: not-allowed;
}

.video-blocked-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  color: #f7f2ea;
  background: rgba(8, 14, 13, 0.78);
  pointer-events: none;
}

.video-inline {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0d1413;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: clamp(320px, 60vh, 680px);
}

.video-inline-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #0d1413;
}

.video-inline-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 12px;
  background: rgba(10, 16, 15, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.video-inline-actions.is-compact {
  justify-content: flex-end;
}

.video-inline-actions .btn {
  padding: 6px 10px;
  font-size: 0.75rem;
}

.video-inline-close {
  position: static;
  box-shadow: none;
}

body.modal-open {
  overflow: hidden;
}

.video-comments-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 12, 11, 0.55);
  backdrop-filter: blur(6px);
  z-index: 50;
}

.video-comments-panel {
  width: min(640px, 100%);
  max-height: 80vh;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 50px rgba(7, 12, 11, 0.35);
  padding: 18px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
}

.video-comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.video-comments-title {
  margin: 0;
  font-size: 1rem;
}

.video-comments-status {
  margin: 0;
}

.video-comments-list {
  list-style: none;
  margin: 0;
  padding: 0 4px 0 0;
  display: grid;
  gap: 12px;
  overflow-y: auto;
}

.video-comment {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

.video-comment-header {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
}

.video-comment-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
}

.video-comment-handle {
  font-size: 0.75rem;
  color: var(--muted);
}

.video-comment-time {
  font-size: 0.7rem;
  color: var(--muted);
}

.video-comment-text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink);
  white-space: pre-wrap;
}

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

.video-comments-input {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  padding: 10px 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  resize: vertical;
  background: rgba(255, 255, 255, 0.9);
}

.video-comments-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (min-width: 1101px) {
  .logged-in-page {
    --status-bar-height: 0px;
  }

  .page,
  .auth-layout,
  .logged-in-layout,
  .logged-shell {
    max-width: none;
    width: 100%;
    padding-left: clamp(24px, 2.5vw, 48px);
    padding-right: clamp(24px, 2.5vw, 48px);
  }

  .logged-in-page .dashboard-grid:not(.public-profile-grid):not(.video-grid) {
    grid-template-columns: minmax(420px, 1.6fr) minmax(0, 5.4fr);
  }

  .logged-in-page .public-profile-grid {
    grid-template-columns: minmax(420px, 1.6fr) minmax(0, 5.4fr);
  }

  .logged-in-page .status-bar {
    position: sticky;
    top: 12px;
    z-index: 50;
  }

  .logged-in-page .profile-column {
    position: sticky;
    top: calc(var(--status-bar-height, 0px) + 24px);
    align-self: start;
  }

  .logged-in-page .feed-column .media-frame {
    aspect-ratio: auto;
  }

  .logged-in-page .feed-column .media-item {
    width: 100%;
    height: auto;
  }

  .logged-in-page .feed-column .media-image {
    width: 100%;
    height: auto;
  }

  .logged-in-page .feed-column .feed-item.has-media-content {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
    grid-template-areas:
      "header header"
      "title title"
      "media content"
      "summary summary"
      "recent recent"
      "actions actions"
      "comments comments";
    gap: 10px 18px;
  }

  .logged-in-page .feed-column .feed-item.has-media-content .feed-header {
    grid-area: header;
  }

  .logged-in-page .feed-column .feed-item.has-media-content .feed-title {
    grid-area: title;
  }

  .logged-in-page .feed-column .feed-item.has-media-content .media-carousel {
    grid-area: media;
    align-self: start;
  }

  .logged-in-page .feed-column .feed-item.has-media-content .feed-content {
    grid-area: content;
    align-self: start;
  }

  .logged-in-page .feed-column .feed-item.has-media-content .feed-summary {
    grid-area: summary;
  }

  .logged-in-page .feed-column .feed-item.has-media-content .feed-recent {
    grid-area: recent;
  }

  .logged-in-page .feed-column .feed-item.has-media-content .feed-actions {
    grid-area: actions;
  }

  .logged-in-page .feed-column .feed-item.has-media-content .feed-comments {
    grid-area: comments;
  }

  .logged-in-page #notifications-card {
    max-height: calc(100vh - var(--notifications-card-top, 0px) - 24px);
  }

  .logged-in-page #friends-card {
    max-height: calc(100vh - var(--friends-card-top, 0px) - 24px);
  }

  .logged-in-page #friends-card,
  .logged-in-page #notifications-card {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 1100px) {
  .personal-status-shell {
    --status-notch-height: 30px;
    --status-notch-width: clamp(170px, 56%, 260px);
    --status-notch-slope: 24px;
    --status-content-shift: -4px;
    --status-logo-height: 110px;
    --status-padding-x: 16px;
    --status-gap: 18px;
  }

  .personal-status-shell .status-logo-float {
    right: 14px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .public-profile-grid {
    grid-template-areas:
      "profile"
      "posts";
  }

  .profile-column {
    order: 1;
  }

  #messages-card {
    display: none;
  }

  #reauth-panel {
    position: static;
    height: auto;
    max-height: none;
    width: 100%;
    padding: 22px;
    overflow: visible;
  }

  .tools-column {
    --tools-panel-top: 0px;
    --tools-panel-max-height: calc(100vh - var(--tools-panel-top) - 24px);
    order: 2;
    left: 0;
    right: auto;
    width: var(--floating-panel-width);
    padding-right: 0;
    max-height: var(--tools-panel-max-height);
    height: var(--tools-panel-max-height);
    grid-auto-rows: minmax(0, 1fr);
    overflow: hidden;
    transform: none;
  }

  #session-status.is-offline {
    display: inline-grid;
    place-items: center;
    font-size: 0;
    line-height: 0;
    color: transparent;
    text-shadow: none;
  }

  #session-status.is-offline::before,
  #session-status.is-offline::after {
    grid-column: 1;
    grid-row: 1;
  }

  #session-status.is-offline::before {
    content: "En linea";
    visibility: hidden;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
  }

  #session-status.is-offline::after {
    content: ">>>";
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1px;
    color: rgba(247, 242, 234, 0.55);
  }

  @supports (height: 100svh) {
    .tools-column {
      --tools-panel-max-height: calc(100svh - var(--tools-panel-top) - 24px);
    }
  }


  .panel-sticky-head {
    position: relative;
    z-index: 2;
    background: inherit;
    padding: 6px 0 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  #settings-panel .panel-sticky-head {
    background: var(--floating-panel-bg);
    backdrop-filter: blur(var(--floating-panel-blur));
  }

  .profile-panel {
    height: min(var(--tools-panel-max-height), 420px);
    max-height: min(var(--tools-panel-max-height), 420px);
    min-height: 0;
    overflow: hidden;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .panel-scroll {
    overflow-y: auto;
    padding-right: 8px;
    min-height: 0;
    scrollbar-gutter: stable;
    scrollbar-width: auto;
    scrollbar-color: var(--floating-panel-scroll-thumb) var(--floating-panel-scroll-track);
    touch-action: pan-y;
    overscroll-behavior: auto;
  }

  #settings-panel {
    overflow: hidden;
    padding-right: 0;
  }

  .feed-column {
    order: 3;
  }

  .messages-grid {
    grid-template-columns: 1fr;
  }

  .messages-page.is-threads-open .messages-grid {
    grid-template-columns: 1fr;
  }

  .threads-list {
    max-height: clamp(220px, 35vh, 360px);
    overflow-y: auto;
    padding-right: 6px;
  }
}

@media (min-width: 1101px) {
  .panel-page .dashboard-header {
    align-items: center;
  }

  .panel-page .panel-brand-logo {
    display: block;
  }

  .panel-page .brand-subtitle {
    top: 0;
    margin-top: 6px;
  }
}

@media (max-width: 1400px) and (pointer: coarse) {
  .messages-page .new-thread-card {
    padding: 4px 12px;
    gap: 6px;
  }

  .messages-page .new-thread-card h3 {
    font-size: 0.88rem;
  }

  .messages-page .new-thread-card .messages-form {
    gap: 6px 8px;
  }

  .messages-page #new-thread-nickname {
    padding: 6px 10px;
    font-size: 0.85rem;
  }

  .messages-page .new-thread-card .actions .btn {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
}

@media (max-width: 1400px) and (pointer: coarse) and (orientation: landscape) {
  .logged-in-page .profile-column .composer-toggle .btn {
    padding: 6px 8px;
    font-size: 0.75rem;
  }

  .logged-in-page .profile-column .composer-toggle .publish-circle {
    width: 60px;
    min-width: 60px;
    height: 60px;
    padding: 0;
    font-size: 2.2rem;
  }
}

@media (max-width: 700px) {
  .personal-status-shell {
    --status-notch-height: clamp(22px, 6vw, 34px);
    --status-notch-width: clamp(90px, 32vw, 140px);
    --status-notch-slope: clamp(8px, 3vw, 14px);
    --status-content-shift: clamp(-6px, -1vw, -2px);
    --status-logo-height: clamp(70px, 20vw, 110px);
    --status-padding-x: clamp(12px, 4vw, 16px);
    --status-gap: clamp(10px, 3vw, 16px);
  }

  .public-profile-status {
    --status-notch-height: clamp(22px, 6vw, 34px);
    --status-notch-width: clamp(90px, 32vw, 140px);
    --status-notch-slope: clamp(8px, 3vw, 14px);
    --status-content-shift: clamp(2px, 1vw, 6px);
    --status-logo-height: clamp(70px, 20vw, 110px);
    --status-padding-x: clamp(12px, 4vw, 16px);
    --status-gap: clamp(10px, 3vw, 16px);
  }

  .personal-status-shell .status-logo-float {
    right: clamp(8px, 3vw, 14px);
  }

  .status-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 2px;
    gap: 12px;
  }

  .personal-status-bar {
    padding: var(--status-notch-height) var(--status-padding-x) 4px;
    gap: var(--status-gap);
    align-items: center;
  }

  .public-page .status-bar {
    padding: 10px 14px;
  }

  .public-page .status-tools {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .public-page .status-tools .btn {
    width: auto;
  }

  .public-page .status-tools .status-home-link {
    order: 1;
  }

  .public-page .status-tools .status-chip {
    order: 2;
    margin: 0 auto;
  }

  .public-page .status-tools #public-login {
    order: 3;
  }

  .video-page .status-bar .eyebrow,
  .video-page .status-bar h1 {
    display: none;
  }

  .video-page .status-bar {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding-right: 0;
  }

  .video-page .status-bar > div:first-child {
    display: flex;
    align-items: center;
    padding-right: 0;
  }

  .video-page .status-bar .status-user {
    display: flex;
    align-items: center;
    margin-top: 0;
  }

  .video-page .status-bar .status-tools {
    position: static;
    align-items: center;
    align-self: center;
  }

  .video-page .status-bar .status-detail {
    display: none;
  }

  .video-page .video-public-link-header {
    display: inline-flex;
  }

  .video-page .video-feed-actions .video-public-link {
    display: none;
  }

  .messages-page .dashboard-brand .brand-chip,
  .messages-page .dashboard-brand .brand-title-logo {
    display: none;
  }

  .messages-page .dashboard-brand {
    gap: 0;
  }

  .messages-page .status-bar {
    flex-direction: row;
    align-items: center;
    --status-notch-height: 26px;
    --status-notch-width: clamp(120px, 52%, 200px);
    --status-notch-slope: 20px;
    --status-padding-x: 12px;
    --status-gap: 10px;
    padding: var(--status-notch-height) var(--status-padding-x) 6px;
    gap: var(--status-gap);
  }

  .messages-page .status-summary {
    flex: 1 1 auto;
  }

  .messages-page .status-tools {
    width: auto;
    flex-direction: row;
    align-items: center;
  }

  .logged-in-page .feed-summary {
    font-size: 0.74rem;
    gap: 8px;
  }

  .logged-in-page .feed-recent {
    font-size: 0.72rem;
    padding: 6px 8px;
  }

  .logged-in-page .feed-actions .btn {
    padding: 5px 9px;
    font-size: 0.72rem;
  }

  .logged-in-page .media-overlay-summary {
    font-size: 0.62rem;
    padding: 4px 7px;
  }

  .logged-in-page {
    font-size: 0.95rem;
    --panel-title-size: 0.9rem;
    --panel-title-offset: clamp(12px, 2.8vw, 24px);
  }

  .logged-shell {
    padding: 20px 14px 60px;
    gap: 18px;
  }

  .logged-in-page .logged-shell {
    padding-top: 0;
    gap: 8px;
  }

  .store-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .store-controls {
    width: 100%;
  }

  .store-controls label {
    width: min(220px, 100%);
  }

  .store-items {
    grid-template-columns: 1fr;
  }

  .store-item-media {
    height: 180px;
  }

  .dashboard-header {
    gap: 12px;
  }

  .brand-chip {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 0.85rem;
  }

  .brand-title-logo {
    height: 96px;
    max-width: 240px;
  }

  .logged-in-page .brand-subtitle {
    letter-spacing: 0.1em;
  }

  .dashboard-actions {
    width: 100%;
  }

  .public-page .dashboard-actions {
    justify-content: flex-end;
  }

  .public-profile-page .dashboard-actions {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
  }

  .status-tools {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .status-brand {
    align-self: flex-end;
  }

  .status-logo {
    height: 96px;
  }

  .status-tools .btn {
    width: 100%;
    justify-content: center;
  }

  .feed-filters {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: flex-end;
  }

  .feed-filter-label {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
  }

  .feed-filter-label .composer-text-input,
  .feed-filter-label .composer-select {
    min-width: 0;
    width: 100%;
  }

  .feed-filters #activity-search,
  .feed-filters #activity-category-filter {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .feed-content {
    display: grid;
    gap: 4px;
    align-content: start;
    align-self: start;
    grid-auto-rows: min-content;
  }

  .feed-content-text {
    display: block;
  }

  .feed-content-text.is-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .feed-content-toggle {
    align-self: flex-start;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-2);
    cursor: pointer;
    white-space: nowrap;
  }

  .feed-content-toggle:hover {
    text-decoration: underline;
  }

  .feed-content-toggle:focus-visible {
    outline: 2px solid rgba(0, 0, 0, 0.3);
    outline-offset: 2px;
    border-radius: 6px;
  }

  .logout-menu {
    width: 100%;
    align-items: stretch;
  }

  .logout-panel {
    width: 100%;
  }

  .logged-in-page #settings-panel {
    max-height: min(var(--tools-panel-max-height), 420px);
  }

  .dashboard-grid {
    gap: 16px;
  }

  .profile-card {
    padding: 18px;
    gap: 14px;
  }

  .profile-card.has-cover-actions .profile-actions-dock {
    position: absolute;
    top: 12px;
    right: 12px;
    justify-content: flex-end;
  }

  .profile-card.has-cover-actions .profile-actions-panel:not(.profile-actions-panel-icons):not(.profile-actions-panel-clean) {
    width: min(240px, 90vw);
  }

  .profile-cover {
    min-height: 150px;
  }

  .profile-cover .profile-cover-image {
    height: 150px;
  }

  .profile-cover-chip {
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  .logged-in-page #profile-cover {
    --profile-avatar-size: 108px;
    --profile-handle-offset: 38px;
  }

  .profile-header {
    gap: 10px;
  }

  .profile-header-cover {
    left: 12px;
    bottom: 36px;
  }

  .public-profile-grid #public-profile-cover {
    --profile-avatar-size: 108px;
    --profile-handle-offset: 38px;
  }

  .profile-avatar {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }

  .profile-meta {
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 10px;
  }

  .profile-cover .profile-meta {
    left: 10px;
    right: 10px;
    bottom: 0;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 4px;
  }

  .profile-cover .meta-value {
    font-size: 0.68rem;
  }

  .profile-cover .meta-label {
    font-size: 0.46rem;
  }

  .meta-value {
    font-size: 1rem;
  }

  .meta-label {
    font-size: 0.72rem;
  }

  .profile-actions {
    gap: 8px;
    justify-content: space-between;
  }

  .logged-in-page .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .logged-in-page .btn.icon-only {
    min-width: 40px;
    padding: 8px 10px;
  }

  .logged-in-page .composer-toggle .publish-circle {
    width: 60px;
    min-width: 60px;
    height: 60px;
    padding: 0;
    font-size: 2.2rem;
  }

  .messages-card {
    padding: 18px;
  }

  .messages-list {
    max-height: none;
  }

  .messages-thread {
    min-height: clamp(560px, 75vh, 920px);
  }

  .thread-delete-inline {
    padding: 6px 8px;
    font-size: 0.65rem;
  }

  .messages-page .messages-list-actions .btn {
    padding: 5px 8px;
    font-size: 0.65rem;
  }

}

@media (max-width: 700px) and (orientation: portrait) {
  .public-profile-status {
    --status-content-shift: clamp(16px, 5vw, 26px);
  }

  .feed-filters {
    gap: 6px;
  }

  .feed-filter-label {
    gap: 4px;
    font-size: 0.7rem;
    min-width: 0;
  }

  .feed-filter-label .composer-text-input,
  .feed-filter-label .composer-select {
    padding: 6px 7px;
    font-size: 0.8rem;
  }

  .feed-filters .feed-filter-label:first-child {
    flex: 1 1 0;
  }

  .feed-filters .feed-filter-label:last-child {
    flex: 0 0 42%;
    max-width: 160px;
  }

  .public-profile-status .eyebrow {
    left: 84%;
    top: -2.4em;
    font-size: clamp(0.54rem, 2.1vw, 0.64rem);
    letter-spacing: 0.12em;
    white-space: nowrap;
  }

  .video-page .dashboard-brand .brand-chip {
    display: none;
  }

  .video-page .dashboard-actions {
    justify-content: flex-end;
  }

  .public-profile-page .public-profile-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 6px;
  }

  .public-profile-page .public-profile-actions .btn,
  .public-profile-page .public-profile-actions .profile-actions-menu {
    flex: 1 1 0;
    min-width: 0;
  }

  .public-profile-page .public-profile-actions .btn {
    width: auto;
    padding: 6px 4px;
    font-size: 0.62rem;
    line-height: 1.15;
    border-radius: 10px;
    min-height: 40px;
    white-space: normal;
  }

  .public-profile-page .public-profile-actions .profile-actions-menu .btn {
    width: 100%;
  }

  .messages-page .dashboard-header {
    position: relative;
    z-index: 2;
    margin-bottom: 22px;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }

  .messages-page .dashboard-brand {
    align-items: center;
  }

  .messages-page .brand-subtitle {
    white-space: nowrap;
    top: 0;
  }

  .messages-page .dashboard-actions {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    align-items: center;
  }

  .messages-page .dashboard-actions .btn {
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  .messages-page .messages-grid {
    margin-top: 10px;
  }

  .messages-page .messages-sidebar {
    scroll-margin-top: 120px;
  }

  .messages-page.is-threads-open .messages-sidebar {
    top: calc(env(safe-area-inset-top, 0px) + 104px);
    right: 12px;
    width: min(320px, 92vw);
    max-height: min(64vh, 560px);
  }


  .status-label {
    padding: 2px 5px;
    font-size: 0.44rem;
  }

  .status-label-left {
    font-size: 0.78rem;
  }

  .status-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .status-summary {
    flex: 1 1 auto;
    min-width: 0;
    gap: 6px;
  }

  .status-tools {
    width: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
    margin-left: auto;
  }

  .logout-menu {
    width: auto;
    align-items: flex-end;
  }

  .logout-panel {
    width: min(240px, 90vw);
  }

  .composer-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
  }

  .composer-toggle .publish-group {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
  }

  .composer-toggle > .btn:not(.publish-circle) {
    flex: 0 0 auto;
    width: auto;
    margin: 0 auto;
  }

  .composer-toggle > .publish-circle {
    flex: 0 0 auto;
  }

  .composer-toggle .publish-main {
    width: 60px;
    padding: 0;
  }

  .composer-toggle .publish-menu {
    padding: 0;
  }

  .composer-toggle .publish-menu-item {
    width: 36px;
    height: 36px;
  }

  .composer-toggle .publish-menu-item .ui-icon {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 900px) and (orientation: portrait) {
  .feed-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 140px);
    gap: 6px;
    align-items: flex-end;
  }

  .feed-filter-label {
    min-width: 0;
  }

  .feed-filter-label .composer-text-input,
  .feed-filter-label .composer-select {
    padding: 6px 7px;
    font-size: 0.8rem;
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .public-profile-page .public-profile-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 6px;
  }

  .public-profile-page .public-profile-actions .btn,
  .public-profile-page .public-profile-actions .profile-actions-menu {
    flex: 1 1 0;
    min-width: 0;
  }

  .public-profile-page .public-profile-actions .btn {
    width: auto;
    padding: 6px 4px;
    font-size: 0.62rem;
    line-height: 1.15;
    border-radius: 10px;
    min-height: 40px;
    white-space: normal;
  }

  .public-profile-page .public-profile-actions .profile-actions-menu .btn {
    width: 100%;
  }
}

@media (max-height: 520px) {
  .messages-page .dashboard-brand .brand-chip,
  .messages-page .dashboard-brand .brand-title-logo {
    display: none;
  }

  .messages-page .dashboard-brand {
    gap: 0;
  }

  .messages-page .status-bar {
    flex-direction: row;
    align-items: center;
    --status-notch-height: 24px;
    --status-notch-width: clamp(120px, 48%, 200px);
    --status-notch-slope: 18px;
    --status-padding-x: 12px;
    --status-gap: 10px;
    padding: var(--status-notch-height) var(--status-padding-x) 4px;
    gap: var(--status-gap);
  }

  .messages-page .status-summary {
    flex: 1 1 auto;
  }

  .messages-page .status-tools {
    width: auto;
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 1101px) {
  .landing .page {
    max-width: 1680px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .public-page .logged-shell {
    max-width: 1440px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}
