:root {
  --ink: #102635;
  --ink-2: #173748;
  --muted: #5f7078;
  --line: #d7e2df;
  --paper: #f3f7f4;
  --panel: #ffffff;
  --accent: #4c9f20;
  --accent-dark: #21710f;
  --accent-light: #a7d51d;
  --warm: #4c9f20;
  --gold: #a7d51d;
  --soft: #eaf5e4;
  --danger: #b42318;
  --header-offset: 62px;
  --subheader-offset: 2.7rem;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  width: 100%;
}

[hidden] {
  display: none !important;
}

body {
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: var(--header-offset);
  width: 100%;
}

body:has(.category-subheader) {
  padding-top: calc(var(--header-offset) + var(--subheader-offset));
}

body > main {
  flex: 1 0 auto;
  min-width: 0;
  width: 100%;
}

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

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

button,
.button-link {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0.78rem 1rem;
}

.button-link:hover {
  background: linear-gradient(135deg, var(--accent), var(--ink));
}

.button-link.secondary {
  background: var(--ink);
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(16, 38, 53, 0.08);
  display: grid;
  gap: 1rem;
  grid-template-columns: auto minmax(360px, 860px) auto;
  justify-content: space-between;
  left: 0;
  padding: 0.42rem clamp(1rem, 4vw, 3rem);
  position: fixed;
  right: 0;
  top: 0;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  width: 100%;
  z-index: 20;
}

body.mobile-header-hidden .site-header {
  box-shadow: none;
  transform: translateY(-100%);
}

.brand {
  align-items: center;
  display: flex;
  font-size: 0.98rem;
  font-weight: 900;
  gap: 0.55rem;
  white-space: nowrap;
}

.brand-logo {
  height: 44px;
  object-fit: contain;
  width: 132px;
}

.brand-logo-english {
  width: 154px;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  letter-spacing: 0;
  width: 2rem;
}

.header-search {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.35rem;
  grid-template-columns: minmax(150px, 1fr) minmax(120px, 0.7fr) auto auto auto;
  padding: 0.25rem;
  width: 100%;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  justify-content: flex-end;
}

.header-login,
.header-cart {
  background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
  border-radius: 8px;
  color: #fff;
  font-weight: 850;
  padding: 0.62rem 0.9rem;
  white-space: nowrap;
}

.language-switch {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  height: 2.35rem;
  justify-content: center;
  min-width: 3.5rem;
  overflow: hidden;
}

.language-switch select {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--accent-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  height: 100%;
  outline: 0;
  padding: 0 0.55rem;
  text-align: center;
  width: 100%;
}

.header-cart {
  align-items: center;
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  height: 2.65rem;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 2.65rem;
}

.header-cart svg {
  fill: currentColor;
  height: 1.25rem;
  width: 1.25rem;
}

.cart-count {
  align-items: center;
  background: var(--accent-light);
  border: 2px solid #fff;
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 900;
  height: 1.18rem;
  justify-content: center;
  line-height: 1;
  min-width: 1.18rem;
  padding: 0 0.22rem;
  position: absolute;
  right: -0.35rem;
  top: -0.35rem;
}

.header-login:hover {
  background: linear-gradient(135deg, var(--accent), var(--ink));
}

.header-cart:hover {
  background: transparent;
  color: var(--accent-dark);
}

.header-member-nav {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.28rem;
  justify-content: flex-end;
  white-space: nowrap;
}

.header-member-nav a {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-dark);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 0.32rem;
  min-height: 2.2rem;
  padding: 0.42rem 0.5rem;
}

.header-member-nav svg,
.search-submit svg {
  fill: currentColor;
  flex: 0 0 auto;
  height: 1rem;
  width: 1rem;
}

.icon-only-member-nav a {
  height: 2.35rem;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0;
  position: relative;
  width: 2.35rem;
}

.icon-only-member-nav svg {
  height: 1.22rem;
  width: 1.22rem;
}

.icon-only-member-nav .header-unread-badge {
  position: absolute;
  right: -0.35rem;
  top: -0.35rem;
}

.header-inbox-link {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
}

.header-unread-badge,
.chat-unread-badge {
  align-items: center;
  background: var(--danger);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  height: 1.22rem;
  justify-content: center;
  line-height: 1;
  min-width: 1.22rem;
  padding: 0 0.34rem;
}

.header-member-nav a:hover {
  background: #e8f8dd;
  border-color: var(--accent);
}

.header-search input {
  border: 0;
  min-height: 2rem;
  padding: 0.45rem 0.65rem;
  width: 100%;
}

.header-search input[name="cityText"] {
  border-left: 1px solid var(--line);
}

.header-search button {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
  justify-content: center;
  padding: 0.45rem 0.75rem;
}

.timeline-header-compact .site-header {
  background: transparent;
  backdrop-filter: blur(16px);
  border-bottom-color: transparent;
  box-shadow: none;
  grid-template-columns: 1fr minmax(0, 1480px) 1fr;
}

.timeline-header-compact .header-cart,
.timeline-header-compact .header-login {
  display: none;
}

.timeline-header-grid {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 780px) minmax(240px, 1fr);
  justify-self: center;
  max-width: 1480px;
  width: 100%;
}

.timeline-header-tabs {
  align-items: center;
  display: grid;
  gap: 0.35rem;
  grid-column: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-self: stretch;
}

.timeline-header-tabs a {
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0.55rem 0.35rem 0.48rem;
  text-align: center;
}

.timeline-header-tabs a.active {
  border-bottom-color: var(--accent);
  color: var(--ink);
  font-weight: 800;
}

.timeline-admin-only {
  justify-content: flex-end;
}

.timeline-header-search {
  align-items: center;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  gap: 0.25rem;
  grid-column: 3;
  grid-template-columns: minmax(0, 1fr) 32px;
  max-width: 320px;
  padding: 0.18rem 0.2rem 0.18rem 0.65rem;
  width: min(100%, 320px);
}

.timeline-header-search input {
  background: transparent;
  border: 0;
  font-size: 0.9rem;
  min-width: 0;
  outline: 0;
  padding: 0.42rem 0.15rem;
}

.timeline-header-search button {
  align-items: center;
  aspect-ratio: 1;
  background: transparent;
  border: 0;
  color: var(--accent-dark);
  display: inline-flex;
  justify-content: center;
  padding: 0;
}

.timeline-header-search svg {
  height: 18px;
  width: 18px;
}

.header-filter {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-dark);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 750;
  justify-content: center;
  padding: 0.45rem 0.75rem;
}

.header-filter:hover {
  background: #e8f8dd;
  border-color: var(--accent);
}

.header-category-browser {
  align-self: stretch;
  position: static;
}

.header-category-browser summary {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 750;
  height: 100%;
  min-height: 2rem;
  padding: 0.45rem 0.75rem;
}

.header-category-browser summary:hover {
  background: #e8f8dd;
  border-color: var(--accent);
}

.header-category-browser .category-browser-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 18px 46px rgba(16, 38, 53, 0.18);
  left: 50%;
  max-width: min(620px, calc(100vw - 2rem));
  min-width: min(420px, calc(100vw - 2rem));
  position: fixed;
  top: var(--header-offset);
  transform: translateX(-50%);
  width: max-content;
  z-index: 110;
}

.check-row {
  align-items: center !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 0.55rem !important;
}

.check-row input {
  width: auto;
}

.translation-language-grid {
  display: grid;
  gap: 0.45rem 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.main-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: flex-end;
  position: relative;
}

.main-nav a,
.mega-menu summary {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.main-nav a:hover,
.mega-menu summary:hover {
  color: var(--ink);
}

.mega-menu {
  position: relative;
}

.mega-menu summary {
  cursor: pointer;
  list-style: none;
}

.mega-menu summary::-webkit-details-marker {
  display: none;
}

.mega-menu summary::after {
  content: "▾";
  font-size: 0.75rem;
  margin-left: 0.35rem;
}

.mega-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(22, 32, 28, 0.16);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  max-height: min(74vh, 720px);
  overflow-y: auto;
  padding: 1rem;
  position: absolute;
  right: 0;
  top: 2rem;
  width: min(920px, calc(100vw - 2rem));
  z-index: 50;
}

.mega-all {
  background: var(--ink);
  border-radius: 8px;
  color: #fff !important;
  grid-column: 1 / -1;
  padding: 0.8rem 1rem;
}

.mega-column {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem;
}

.mega-column a {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.25;
}

.mega-column .mega-parent {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 900;
}

.hero {
  align-items: end;
  background:
    linear-gradient(90deg, rgba(22, 32, 28, 0.86), rgba(22, 32, 28, 0.3)),
    url("https://images.unsplash.com/photo-1555041469-a586c61ea9bc?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fff;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  min-height: 520px;
  padding: clamp(2rem, 6vw, 5rem);
}

.premium-banner {
  align-items: center;
  background: linear-gradient(135deg, var(--ink), var(--ink-2));
  border-bottom: 1px solid var(--accent);
  color: #fff;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
}

.premium-copy span {
  color: var(--accent-light);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.premium-copy strong {
  display: block;
  font-size: 1.1rem;
}

.premium-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.premium-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  min-width: 0;
  padding: 0.45rem;
}

.premium-card img {
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
  width: 58px;
}

.premium-card span {
  display: grid;
  font-size: 0.88rem;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
}

.premium-card small {
  align-items: center;
  color: rgba(255, 255, 255, 0.74);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 500;
  gap: 0.25rem;
  margin-top: 0.18rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-card strong {
  color: var(--accent-light);
  font-size: 0.92rem;
  white-space: nowrap;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  color: var(--warm);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 0.7rem;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd27b;
}

h1,
h2 {
  letter-spacing: 0;
  line-height: 1.03;
  margin: 0;
}

.hero h1 {
  font-size: 2rem;
  max-width: 780px;
}

.hero p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.15rem;
  line-height: 1.65;
  max-width: 620px;
}

.search-bar {
  background: #fff;
  border-radius: 8px;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr auto;
  max-width: 720px;
  padding: 0.5rem;
}

.search-bar input,
input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-width: 0;
  padding: 0.85rem 0.95rem;
  width: 100%;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.search-bar input {
  border: 0;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  color: var(--ink);
  padding: 1.5rem;
}

.hero-panel span,
.hero-panel small {
  color: var(--muted);
  display: block;
}

.hero-panel strong {
  display: block;
  font-size: 4rem;
  line-height: 1;
}

.category-strip,
.catalog,
.narrow,
.detail-layout,
.admin-shell {
  margin: 0 auto;
  max-width: 1260px;
  padding: 1.4rem clamp(1rem, 4vw, 3rem);
  width: 100%;
}

.landing-page {
  min-height: calc(100vh - 190px);
}

.landing-hero {
  align-items: center;
  display: grid;
  gap: clamp(1.4rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  margin: 0 auto;
  max-width: 1260px;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1rem, 4vw, 3rem);
}

.landing-logo {
  display: block;
  height: auto;
  margin-bottom: 1rem;
  max-width: min(260px, 72vw);
}

.landing-copy h1 {
  font-size: clamp(1.9rem, 4vw, 3.6rem);
  line-height: 1.05;
  margin: 0.35rem 0 1rem;
  max-width: 760px;
}

.landing-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 680px;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.landing-preview {
  display: grid;
  gap: 0.8rem;
}

.landing-preview article {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(16, 38, 53, 0.1);
  padding: 1rem;
}

.landing-preview span,
.landing-preview small {
  color: var(--muted);
  display: block;
}

.landing-preview strong {
  display: block;
  font-size: 1.15rem;
  margin: 0.2rem 0;
}

.landing-band,
.landing-handshake,
.landing-benefits {
  margin: 0 auto;
  max-width: 1260px;
  padding: 1.4rem clamp(1rem, 4vw, 3rem);
}

.landing-band {
  align-items: center;
  display: grid;
  gap: 1.4rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
}

.landing-band h2,
.landing-handshake h2,
.landing-benefits h2 {
  font-size: 1.35rem;
}

.landing-band p,
.landing-handshake p,
.landing-benefits p {
  color: var(--muted);
  line-height: 1.7;
}

.landing-band img,
.landing-benefits img {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(16, 38, 53, 0.12);
  object-fit: cover;
  width: 100%;
}

.handshake-steps,
.landing-screens,
.landing-benefits {
  display: grid;
  gap: 0.9rem;
}

.handshake-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1rem;
}

.handshake-steps article,
.landing-benefits article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.handshake-steps strong,
.handshake-steps span {
  display: block;
}

.handshake-steps span {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.35rem;
}

.landing-screens {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.landing-screens figure {
  margin: 0;
}

.landing-screens figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.45rem;
}

.mock-screen {
  background: #f8fbf6;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(16, 38, 53, 0.1);
  min-height: 230px;
  padding: 1rem;
}

.mock-bar {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-light));
  border-radius: 999px;
  height: 0.55rem;
  margin-bottom: 1rem;
  width: 42%;
}

.mock-card,
.mock-row,
.mock-chat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 0.65rem;
  padding: 0.8rem;
}

.mock-card strong,
.mock-card small,
.mock-card em,
.mock-chat b,
.mock-chat span,
.mock-row span,
.mock-row b {
  display: block;
}

.mock-card small,
.mock-row span,
.mock-chat span {
  color: var(--muted);
}

.mock-badge {
  background: var(--accent);
  border-radius: 999px;
  display: inline-block;
  height: 0.75rem;
  margin-bottom: 0.4rem;
  width: 0.75rem;
}

.mock-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.mock-row.success b {
  color: var(--accent-dark);
}

.mock-chat {
  max-width: 78%;
}

.mock-chat.buyer {
  margin-left: auto;
}

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

.landing-benefits article {
  padding: 0;
  overflow: hidden;
}

.landing-benefits h2,
.landing-benefits p {
  padding-left: 1rem;
  padding-right: 1rem;
}

.landing-benefits p {
  padding-bottom: 1rem;
}

.category-subheader {
  background: transparent;
  display: flex;
  gap: 0;
  left: 0;
  justify-content: center;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: var(--header-offset);
  transition: transform 0.22s ease;
  z-index: 19;
}

body.mobile-header-hidden .category-subheader {
  transform: translateY(calc(-100% - var(--header-offset)));
}

.category-subheader .category-browser,
.subheader-home-link {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 0;
  box-shadow: 0 14px 30px rgba(16, 38, 53, 0.12);
  pointer-events: auto;
  transform: translateY(0);
}

.category-subheader .category-browser {
  border-left: 0;
  border-radius: 0 0 14px 0;
  margin: 0;
  max-width: min(520px, calc(100vw - 2rem));
  min-width: min(260px, calc(100vw - 2rem));
  width: max-content;
}

.subheader-home-link {
  align-items: center;
  border-radius: 0 0 0 14px;
  color: var(--accent-dark);
  display: inline-flex;
  height: calc(2.1rem + 0.56rem);
  justify-content: center;
  width: 2.8rem;
}

.subheader-timeline-link {
  border-radius: 0 0 0 14px;
}

.subheader-timeline-link + .subheader-home-link {
  border-left: 0;
  border-radius: 0;
}

.subheader-home-link svg {
  fill: currentColor;
  height: 1.25rem;
  width: 1.25rem;
}

body.telegram-inline-app .header-member-nav a[href="/logout"] {
  display: none;
}

.category-browser {
  background: transparent;
  border: 0;
  border-radius: 0;
}

.category-browser summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-weight: 800;
  gap: 0.42rem;
  justify-content: center;
  list-style: none;
  min-height: 2.1rem;
  padding: 0.28rem 0.8rem;
  text-align: center;
}

.category-browser summary::after {
  color: var(--accent-dark);
  content: "";
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
}

.category-browser[open] summary::after {
  content: "";
}

.category-browser summary::-webkit-details-marker {
  display: none;
}

.category-browser summary .category-count {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 400;
  opacity: 0.82;
}

.category-browser summary::after {
  content: "";
}

.category-browser[open] summary::after {
  content: "";
}

.category-summary-text {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
}

.category-summary-icon {
  display: grid;
  flex: 0 0 auto;
  gap: 0.12rem;
  grid-template-columns: repeat(2, 0.42rem);
  grid-template-rows: repeat(2, 0.42rem);
}

.category-summary-icon span {
  background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
  border-radius: 0.12rem;
  box-shadow: inset 0 0 0 1px rgba(16, 38, 53, 0.1);
}

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

.category-browser-panel {
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  margin: 0 auto;
  max-height: min(70vh, 720px);
  max-width: 520px;
  overflow-y: auto;
  padding: 0.7rem 1.15rem 1rem;
}

.header-category-browser summary {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 750;
  height: 100%;
  min-height: 2rem;
  padding: 0.45rem 0.75rem;
}

.header-category-browser .category-browser-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 18px 46px rgba(16, 38, 53, 0.18);
  left: 50%;
  max-width: min(620px, calc(100vw - 2rem));
  min-width: min(420px, calc(100vw - 2rem));
  position: fixed;
  top: var(--header-offset);
  transform: translateX(-50%);
  width: max-content;
  z-index: 110;
}

.category-reset {
  color: var(--accent-dark);
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 750;
  margin-bottom: 0.6rem;
  padding: 0.15rem 0;
  text-align: left;
}

.category-group {
  border: 0;
  border-radius: 0;
  padding: 0;
}

.category-group summary {
  align-items: center;
  display: flex;
  gap: 0.35rem;
  justify-content: flex-start;
  list-style: none;
  padding: 0.35rem 0;
}

.category-group summary::before {
  color: var(--ink);
  content: "+";
  flex: 0 0 auto;
  font-weight: 850;
}

.category-group[open] summary::before {
  content: "-";
}

.category-group summary::-webkit-details-marker {
  display: none;
}

.category-parent {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 800;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.category-children {
  display: grid;
  gap: 0.08rem;
  margin: 0.05rem 0 0.55rem 1.35rem;
  padding-left: 0.75rem;
  border-left: 0;
}

.category-children a {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.86rem;
  font-weight: 650;
  gap: 0.45rem;
  justify-content: space-between;
  padding: 0.18rem 0;
  position: relative;
}

.category-item-count {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  min-width: 1.35rem;
  padding: 0.18rem 0.42rem;
}

.category-children a::before {
  color: var(--muted);
  content: "-";
  left: -0.75rem;
  position: absolute;
}

.category-reset.active,
.category-parent.active,
.category-children a.active,
.category-children a:hover,
.category-group summary:hover .category-parent {
  color: var(--accent-dark);
  text-decoration: underline;
}

.section-head {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 1.4rem 0;
}

.section-head h1,
.section-head h2 {
  font-size: 1.35rem;
}

.section-head span {
  color: var(--muted);
  font-weight: 800;
}

.product-section-head {
  align-items: center;
  justify-content: flex-start;
  margin: 1rem 0 0.8rem;
}

.product-section-head h2 {
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.25;
  margin: 0;
}

.section-more {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.section-more a {
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
  font-weight: 850;
  padding: 0.68rem 0.9rem;
}

.auth-text-links {
  align-items: center;
  gap: 0.45rem;
  justify-content: center;
}

.auth-text-links a {
  background: transparent;
  border-radius: 0;
  color: var(--accent-dark);
  font-weight: 650;
  padding: 0;
}

.social-login {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 1rem;
  text-align: center;
}

.social-login span {
  color: var(--muted);
  font-size: 0.9rem;
}

.social-login-actions {
  align-items: center;
  display: grid;
  gap: 0.55rem;
  justify-content: center;
}

.social-auth {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-width: 120px;
  text-align: center;
}

.google-auth {
  background: #fff;
  border: 1px solid #dadce0;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  color: #3c4043;
  gap: 0.65rem;
  min-height: 42px;
  min-width: 220px;
  padding: 0.62rem 0.9rem;
}

.telegram-auth {
  background: #229ed9;
  border: 1px solid #1b90c8;
  box-shadow: 0 1px 2px rgba(34, 158, 217, 0.18);
  color: #fff;
  gap: 0.65rem;
  min-height: 42px;
  min-width: 220px;
  padding: 0.62rem 0.9rem;
}

.google-auth:hover {
  background: #f8fafd;
  color: #202124;
  transform: none;
}

.google-auth svg,
.telegram-auth svg {
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.google-auth span,
.telegram-auth span {
  color: inherit;
  font-size: 0.92rem;
  font-weight: 700;
}

.telegram-auth:hover {
  background: #168ac1;
  color: #fff;
  transform: none;
}

.profile-name-field {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.5rem;
  gap: 0.45rem;
}

.profile-name-state {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 1.15rem;
  font-weight: 900;
  height: 1.35rem;
  justify-content: center;
  line-height: 1;
  width: 1.35rem;
}

.profile-name-state.ok {
  background: rgba(40, 132, 65, 0.13);
  color: #288441;
}

.profile-name-state.bad {
  background: rgba(143, 31, 22, 0.12);
  color: #8f1f16;
}

.profile-name-state svg {
  fill: currentColor;
  height: 0.9rem;
  width: 0.9rem;
}

input.name-ok {
  border-color: #288441;
}

input.name-bad {
  border-color: #8f1f16;
}

.admin-inline-review {
  border-left: 3px solid var(--accent);
  display: grid;
  gap: 0.45rem;
  margin-top: 0.55rem;
  padding-left: 0.65rem;
}

.admin-inline-review .inline-actions {
  justify-content: flex-start;
}

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

.saved-card {
  display: grid;
  gap: 0.55rem;
}

.saved-card .product-card {
  height: 100%;
}

.saved-remove-form {
  margin: 0;
}

.saved-remove-form button {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  width: 100%;
}

.saved-remove-form button:hover {
  border-color: #d92d20;
  color: #d92d20;
}

.mixed-section .product-grid {
  grid-template-columns: 1fr;
}

.mixed-section .product-card {
  align-items: start;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 180px;
}

.mixed-section .product-image {
  aspect-ratio: 1;
}

.mixed-section .product-info {
  height: 180px;
  min-height: 180px;
  overflow: hidden;
}

.mixed-section .product-title {
  min-height: 0;
}

.mixed-section .product-preview {
  min-height: 0;
}

.catalog-page {
  margin: 0 auto;
  max-width: 1320px;
  padding: 1.4rem clamp(1rem, 4vw, 3rem);
  width: 100%;
}

.filter-page {
  margin: 0 auto;
  max-width: 980px;
  min-height: 58vh;
  padding: 1.4rem clamp(1rem, 4vw, 3rem);
  width: 100%;
}

.premium-page {
  display: grid;
  gap: 1.3rem;
  margin: 0 auto;
  max-width: 1180px;
  padding: 1.4rem clamp(1rem, 4vw, 3rem);
  width: 100%;
}

.ad-slot {
  display: flex;
  justify-content: center;
  margin: 1rem auto;
  max-width: 1180px;
  min-height: 0;
  overflow: hidden;
  padding: 0 clamp(1rem, 4vw, 3rem);
  width: 100%;
}

.ad-slot ins,
.ad-slot iframe {
  max-width: 100%;
}

.ad-slot-bottom {
  margin-top: 1.5rem;
}

.partner-ad-slot {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.partner-ad {
  align-items: center;
  color: var(--ink);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(140px, 260px) minmax(0, 1fr);
  min-height: 92px;
  padding: 0.75rem;
  text-align: left;
  width: 100%;
}

.partner-ad img {
  aspect-ratio: 16 / 5;
  border-radius: 6px;
  object-fit: cover;
  width: 100%;
}

.partner-ad strong {
  display: block;
  font-size: 1rem;
}

.partner-ad small {
  color: var(--muted);
  display: block;
  margin-top: 0.2rem;
}

.wallet-box {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
}

.admin-ad-thumb {
  border-radius: 6px;
  height: 46px;
  object-fit: cover;
  width: 96px;
}

.ad-popup[hidden] {
  display: none;
}

.ad-popup {
  align-items: center;
  background: rgba(15, 23, 32, 0.44);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 1rem;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 400;
}

.ad-popup-card {
  background-color: #fff;
  background-position: center;
  background-size: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(16, 38, 53, 0.22);
  display: grid;
  gap: 0.7rem;
  max-width: min(560px, 94vw);
  padding: 1rem;
  position: relative;
  width: 100%;
}

.ad-popup-close {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 1.25rem;
  height: 2rem;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 0.65rem;
  top: 0.65rem;
  width: 2rem;
}

.ad-popup-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ad-popup-media img,
.ad-popup-media video {
  border-radius: 6px;
  display: block;
  max-height: 320px;
  object-fit: contain;
  width: 100%;
}

.premium-hero,
.plan-info {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.premium-hero h1 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  margin: 0.25rem 0 0.5rem;
}

.premium-hero p,
.plan-info p {
  color: var(--muted);
  line-height: 1.55;
}

.plan-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.featured-plan {
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(63, 155, 25, 0.12);
}

.power-plan {
  border-color: #243946;
}

.plan-badge {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 850;
  justify-self: start;
  padding: 0.3rem 0.6rem;
}

.plan-card h2,
.plan-card p {
  margin: 0;
}

.plan-price {
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 900;
}

.plan-price small {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
}

.plan-card ul {
  color: var(--muted);
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.1rem;
}

.member-plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.member-plan-actions form {
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  max-width: 20rem;
  padding: 0.65rem;
}

.member-plan-actions strong {
  align-items: center;
  display: inline-flex;
  font-size: 0.95rem;
  gap: 0.25rem;
  width: 100%;
}

.member-plan-actions small {
  color: var(--muted);
  flex-basis: 100%;
  line-height: 1.35;
}

.premium-plan-admin-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.premium-plan-admin-card .section-head h2,
.plan-badge {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
}

.plan-check {
  margin-left: 0;
}

.plan-discount {
  color: #15803d;
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.filter-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 1.25rem;
  padding: clamp(1rem, 3vw, 1.75rem);
}

.filter-hero {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.35rem;
  padding-bottom: 1rem;
}

.filter-hero h1 {
  font-size: 1.35rem;
  margin: 0;
}

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

.filter-controls {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin: 0;
  max-width: none;
}

.filter-section {
  background: #f8fbf6;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
}

.filter-section-title {
  display: grid;
  gap: 0.25rem;
}

.filter-section-title h2 {
  color: var(--ink);
  font-size: 1rem;
  margin: 0;
}

.filter-section-title p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
  margin: 0;
}

.filter-field {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem;
}

.filter-field > span {
  color: var(--ink);
  font-weight: 850;
}

.filter-field small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.filter-field input,
.filter-field select {
  margin-top: 0.15rem;
}

.filter-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}

.filter-actions button {
  min-width: 180px;
}

.filter-actions a {
  color: var(--muted);
  font-size: 0.9rem;
}

.popular-regions {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.region-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.region-overview-block {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.region-overview-block h3 {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
  margin: 0;
}

.region-chip-list a {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.25;
  padding: 0.58rem 0.72rem;
}

.region-chip-list a:hover {
  background: #e8f8dd;
  border-color: var(--accent);
}

.shop-toolbar {
  align-items: end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  padding: clamp(1rem, 3vw, 1.5rem);
}

.shop-toolbar h1 {
  font-size: 1.55rem;
}

.shop-toolbar span {
  color: var(--muted);
  display: block;
  font-weight: 800;
  margin-top: 0.5rem;
}

.catalog-controls {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.range-filter {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  font-size: 0.78rem;
  font-weight: 750;
  gap: 0.15rem;
  padding: 0.35rem 0.55rem;
}

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

.range-filter output {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
}

.sort-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.sort-tabs a,
.pagination a,
.pagination span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 850;
  padding: 0.62rem 0.82rem;
}

.sort-tabs a.active,
.sort-tabs a:hover,
.pagination a.active,
.pagination a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 1.3rem;
}

.pagination span {
  opacity: 0.5;
}

.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.product-image {
  aspect-ratio: 4 / 3;
  background: var(--soft);
  display: block;
  position: relative;
}

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

.badge {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  left: 0.8rem;
  padding: 0.4rem 0.65rem;
  position: absolute;
  top: 0.8rem;
}

.product-image .badge + .badge {
  top: 3.25rem;
}

.product-image .badge + .badge + .badge {
  top: 5.7rem;
}

.handshake-badge {
  align-items: center;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  padding: 0;
  width: 2rem;
}

.handshake-badge span,
.handshake-badge span::before {
  background: #fff;
  border-radius: 999px;
  content: "";
  display: block;
  height: 0.42rem;
  width: 1rem;
}

.handshake-badge span {
  transform: rotate(35deg);
}

.handshake-badge span::before {
  transform: rotate(-70deg) translate(-0.12rem, -0.12rem);
}

.partner-badge {
  background: var(--ink);
  color: #fff;
}

.shop-badge {
  background: linear-gradient(135deg, #f6c544, var(--accent-light));
  color: var(--ink);
}

.auction-badge {
  background: linear-gradient(135deg, #102b3a, #4c9f20);
  color: #fff;
}

.auction-box,
.comments-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.9rem;
  padding: clamp(1rem, 3vw, 1.3rem);
}

.auction-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.auction-grid div,
.profile-social-stats > span {
  background: var(--soft);
  border-radius: 8px;
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem;
}

.auction-grid span,
.profile-social-stats > span {
  color: var(--muted);
  font-size: 0.82rem;
}

.listing-social {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.listing-social form {
  margin: 0;
}

.listing-social button,
.listing-social a {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.9rem;
  gap: 0.35rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
}

.listing-social span {
  color: var(--accent-dark);
  font-weight: 900;
}

.listing-social svg,
.story-social svg {
  fill: currentColor;
  height: 1.05rem;
  width: 1.05rem;
}

.listing-social button.active,
.story-social button.active {
  background: rgba(76, 159, 32, 0.12);
  border-color: var(--accent);
  color: var(--accent-dark);
}

.comment-form {
  display: grid;
  gap: 0.7rem;
}

.comment-form textarea {
  min-height: 5rem;
}

.comment-list,
.profile-story-admin-list {
  display: grid;
  gap: 0.7rem;
}

.link-preview-list {
  display: grid;
  gap: 0.7rem;
}

.link-preview {
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(92px, 0.36fr) minmax(0, 1fr);
  overflow: hidden;
  padding: 0.6rem;
  max-width: 100%;
  min-width: 0;
}

.link-preview img {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.link-preview iframe,
.link-preview video {
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px 8px 0 0;
  max-width: 100%;
  width: 100%;
}

.link-preview iframe.soundcloud-embed {
  aspect-ratio: auto;
  height: 166px;
}

.link-preview div {
  display: grid;
  gap: 0.25rem;
}

.link-preview p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.link-preview small {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.youtube-preview {
  grid-template-columns: 1fr;
}

.youtube-preview iframe {
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 6px;
  width: 100%;
}

.comment-item,
.profile-story-admin {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.35rem;
  padding-top: 0.7rem;
}

.profile-story-admin {
  align-items: center;
  grid-template-columns: 72px minmax(0, 1fr) auto;
}

.profile-story-admin img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  width: 72px;
}

.story-form {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: 1rem;
}

.story-slot-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.story-slot {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0.75rem;
}

.story-slot legend {
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0 0.25rem;
}

.premium-story-slot {
  border-color: rgba(253, 176, 34, 0.5);
}

.story-slot-preview {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  max-height: 180px;
  object-fit: cover;
  width: 100%;
}

.story-admin-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.story-admin-actions form {
  margin: 0;
}

.icon-action {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  height: 2rem;
  justify-content: center;
  line-height: 1;
  padding: 0.45rem 0.55rem;
  text-decoration: none;
  width: 2rem;
}

.icon-action svg {
  height: 1rem;
  width: 1rem;
}

.icon-action.danger {
  color: #b42318;
}

@media (max-width: 720px) {
  .auction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .link-preview {
    grid-template-columns: 1fr;
  }

  .profile-image-edit,
  .profile-story-admin {
    grid-template-columns: 1fr;
  }

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

.site-footer {
  align-items: center;
  background: linear-gradient(135deg, var(--ink), #071923);
  border-top: 1px solid var(--accent);
  color: #fff;
  display: grid;
  gap: 0.45rem;
  justify-content: center;
  margin-top: auto;
  max-width: 100%;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  width: 100%;
}

.footer-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 500;
}

.footer-telegram-link {
  align-items: center;
  display: inline-flex;
  gap: 0.32rem;
}

.footer-telegram-icon {
  background: #2aabee;
  border-radius: 50%;
  display: inline-block;
  height: 0.82rem;
  position: relative;
  width: 0.82rem;
}

.footer-telegram-icon::before {
  border-bottom: 0.18rem solid transparent;
  border-left: 0.42rem solid #fff;
  border-top: 0.18rem solid transparent;
  content: "";
  left: 0.24rem;
  position: absolute;
  top: 0.23rem;
  transform: rotate(-22deg);
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-version {
  color: rgba(255, 255, 255, 0.58);
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  text-align: center;
}

.sidebar-footer-links {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.3rem 0.44rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  line-height: 1.25;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
}

.sidebar-footer-links a,
.sidebar-footer-links span,
.sidebar-footer-links small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 400;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.sidebar-footer-links a {
  align-items: center;
  display: inline-flex;
  gap: 0.22rem;
  min-width: 0;
  padding-right: 0.36rem;
  position: relative;
}

.sidebar-footer-links a:not(:nth-of-type(3n))::after {
  color: var(--muted);
  content: "·";
  position: absolute;
  right: 0;
}

.sidebar-footer-links span,
.sidebar-footer-links small {
  grid-column: 1 / -1;
}

.sidebar-footer-links a:hover {
  color: var(--accent-dark);
}

.sidebar-footer-links .footer-telegram-icon {
  aspect-ratio: 1 / 1;
  flex: 0 0 0.62rem;
  height: 0.62rem;
  min-width: 0.62rem;
  width: 0.62rem;
}

.sidebar-footer-links .footer-telegram-icon::before {
  border-bottom-width: 0.13rem;
  border-left-width: 0.32rem;
  border-top-width: 0.13rem;
  left: 0.18rem;
  top: 0.18rem;
}

.telegram-info-page {
  display: grid;
  gap: clamp(1rem, 3vw, 2rem);
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(1rem, 3vw, 2rem);
  width: 100%;
}

.telegram-hero {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: clamp(1.25rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  overflow: hidden;
  padding: clamp(1.2rem, 4vw, 3rem);
  position: relative;
}

.telegram-hero::before {
  background: linear-gradient(135deg, rgba(76, 159, 32, 0.14), rgba(42, 171, 238, 0.16));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.telegram-hero > * {
  position: relative;
  z-index: 1;
}

.telegram-hero-copy {
  display: grid;
  gap: 1rem;
}

.telegram-pill {
  align-self: start;
  background: #e8f8ff;
  border: 1px solid #b8e5fa;
  border-radius: 999px;
  color: #1686c2;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 850;
  padding: 0.35rem 0.7rem;
  width: max-content;
}

.telegram-hero h1 {
  font-size: clamp(1.7rem, 4vw, 3.15rem);
  line-height: 1.05;
  margin: 0;
  max-width: 780px;
}

.telegram-hero p,
.telegram-showcase p,
.telegram-member-cta p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
}

.telegram-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.telegram-direct-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.telegram-direct-links a {
  align-items: center;
  background: #e8f8ff;
  border: 1px solid #b8e5fa;
  border-radius: 999px;
  color: #1686c2;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 850;
  gap: 0.35rem;
  padding: 0.46rem 0.72rem;
}

.telegram-direct-links a::before {
  background: #2aabee;
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 0.55rem;
  width: 0.55rem;
}

.telegram-direct-links a:hover {
  background: #d9f3ff;
  border-color: #2aabee;
}

.telegram-direct-links.compact {
  margin-top: 0.35rem;
}

.telegram-primary {
  background: #2aabee;
}

.telegram-primary:hover {
  background: var(--ink);
}

.telegram-phone {
  background: #0d1d28;
  border: 8px solid #132a38;
  border-radius: 34px;
  box-shadow: 0 26px 60px rgba(16, 38, 53, 0.28);
  margin: 0 auto;
  max-width: 360px;
  min-height: 560px;
  padding: 1rem;
  width: 100%;
}

.telegram-phone-top {
  background: #1f3c4d;
  border-radius: 99px;
  height: 0.42rem;
  margin: 0 auto 1rem;
  width: 76px;
}

.telegram-chat-preview {
  background: #e8f4fb;
  border-radius: 24px;
  display: grid;
  gap: 0.85rem;
  min-height: 510px;
  padding: 0.9rem;
}

.telegram-channel-head {
  align-items: center;
  background: #fff;
  border-radius: 16px;
  display: flex;
  gap: 0.7rem;
  padding: 0.75rem;
}

.telegram-avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.telegram-channel-head small {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
}

.telegram-message {
  align-self: start;
  background: #fff;
  border-radius: 18px;
  display: grid;
  gap: 0.55rem;
  padding: 0.8rem;
}

.telegram-message img {
  aspect-ratio: 16 / 9;
  background: #fff;
  border-radius: 12px;
  object-fit: contain;
  width: 100%;
}

.telegram-message h2 {
  font-size: 1.05rem;
  margin: 0;
}

.telegram-message p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
  margin: 0;
}

.telegram-message span {
  color: var(--ink);
  font-weight: 850;
}

.telegram-message button {
  background: #2aabee;
  border-radius: 10px;
  padding: 0.65rem;
}

.telegram-feature-grid,
.telegram-screens {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.telegram-feature-grid article,
.telegram-screen-card,
.telegram-showcase,
.telegram-member-cta {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.telegram-feature-grid article {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
}

.telegram-feature-grid span {
  color: #2aabee;
  font-size: 0.85rem;
  font-weight: 900;
}

.telegram-feature-grid h2,
.telegram-showcase h2,
.telegram-screen-card h2,
.telegram-member-cta h2 {
  font-size: 1.05rem;
  margin: 0;
}

.telegram-feature-grid p,
.telegram-screen-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

.telegram-showcase {
  align-items: start;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  padding: clamp(1rem, 3vw, 1.5rem);
}

.telegram-showcase > div {
  display: grid;
  gap: 0.75rem;
}

.telegram-steps {
  counter-reset: telegram-step;
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.telegram-steps li {
  background: var(--soft);
  border: 1px solid #d2e9c7;
  border-radius: 8px;
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0.9rem 0.8rem 3rem;
  position: relative;
}

.telegram-steps li::before {
  align-items: center;
  background: var(--accent-dark);
  border-radius: 50%;
  color: #fff;
  content: counter(telegram-step);
  counter-increment: telegram-step;
  display: flex;
  font-size: 0.8rem;
  font-weight: 900;
  height: 1.7rem;
  justify-content: center;
  left: 0.8rem;
  position: absolute;
  top: 0.85rem;
  width: 1.7rem;
}

.telegram-steps span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

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

.telegram-screen-card {
  display: grid;
  gap: 0.75rem;
  overflow: hidden;
  padding: 1rem;
}

.telegram-screen-bar {
  background: #edf5f7;
  border-radius: 8px;
  display: flex;
  gap: 0.35rem;
  padding: 0.5rem;
}

.telegram-screen-bar span {
  background: #2aabee;
  border-radius: 50%;
  height: 0.55rem;
  opacity: 0.75;
  width: 0.55rem;
}

.telegram-post-mock,
.telegram-mini-mock,
.telegram-pin-mock {
  background: #f7fbfd;
  border: 1px solid #d7ecf7;
  border-radius: 8px;
  display: grid;
  gap: 0.45rem;
  min-height: 180px;
  padding: 0.85rem;
}

.telegram-post-mock span,
.telegram-post-mock b,
.telegram-pin-mock span {
  color: var(--accent-dark);
}

.telegram-post-mock small {
  color: var(--muted);
}

.telegram-mini-mock img {
  aspect-ratio: 16 / 9;
  background: #fff;
  border-radius: 8px;
  object-fit: contain;
}

.telegram-mini-mock div {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.telegram-mini-mock button {
  flex: 1;
  padding: 0.55rem;
}

.telegram-pin-mock span {
  background: #fff7cf;
  border: 1px solid #f1d46a;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 850;
  padding: 0.25rem 0.55rem;
  width: max-content;
}

.telegram-member-cta {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: clamp(1rem, 3vw, 1.4rem);
}

.telegram-member-cta div {
  display: grid;
  gap: 0.5rem;
}

.impressum-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.impressum-head h1 {
  margin: 0;
}

.impressum-head img {
  height: auto;
  max-width: 170px;
  width: 38vw;
}

.legal-lead {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

.modern-legal {
  display: grid;
  gap: 1rem;
  margin: 0 auto;
  max-width: 1180px;
  padding: 1rem;
}

.legal-hero {
  align-items: center;
  background: linear-gradient(135deg, rgba(234, 245, 228, 0.98), rgba(255, 255, 255, 0.98));
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 240px);
  overflow: hidden;
  padding: clamp(1.1rem, 3vw, 2rem);
}

.legal-hero h1 {
  font-size: 1.45rem;
  margin: 0.25rem 0 0.45rem;
}

.legal-hero p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  max-width: 760px;
}

.legal-hero img {
  justify-self: end;
  max-height: 110px;
  object-fit: contain;
  width: min(240px, 38vw);
}

.legal-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.legal-nav a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  padding: 0.48rem 0.75rem;
}

.legal-nav a.active,
.legal-nav a:hover {
  background: var(--soft);
  color: var(--accent-dark);
}

.legal-grid {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: 240px minmax(0, 1fr);
}

.legal-side {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  position: sticky;
  top: calc(var(--header-offset) + 1rem);
}

.legal-side strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.legal-side span {
  color: var(--muted);
  font-size: 0.82rem;
}

.legal-side a {
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 750;
  margin-top: 0.3rem;
}

.legal-copy {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  padding: clamp(1rem, 2.6vw, 1.55rem);
}

.legal-copy h1 {
  font-size: 1.35rem;
  margin: 0;
}

.legal-copy h2 {
  background: var(--soft);
  border: 1px solid rgba(76, 159, 32, 0.16);
  border-radius: 8px;
  color: var(--ink);
  font-size: 1rem;
  margin: 0.35rem 0 0;
  padding: 0.58rem 0.75rem;
}

.legal-copy p {
  color: var(--ink);
  line-height: 1.64;
  margin: 0;
}

.legal-copy a {
  color: var(--accent-dark);
  font-weight: 750;
}

.region-reset {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 650;
  padding: 0.62rem 0.8rem;
}

.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0;
  padding: 1rem;
}

.product-meta,
.product-bottom {
  align-items: center;
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
}

.product-meta {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.product-title {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.28;
  min-height: 0;
  overflow: hidden;
}

.seller-link {
  margin-top: 0.18rem;
}

.partner-source {
  color: var(--muted);
  font-size: 0.78rem;
}

.product-preview {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--muted);
  display: -webkit-box;
  line-height: 1.45;
  margin: 0.7rem 0 0;
  min-height: 2.9rem;
  overflow: hidden;
}

.product-bottom {
  align-self: end;
  margin-top: 0.55rem;
  min-height: 2.45rem;
  width: 100%;
}

.product-bottom strong {
  font-size: 1.25rem;
}

.icon-button {
  background: var(--soft);
  border-radius: 8px;
  color: var(--accent-dark);
  font-weight: 850;
  padding: 0.55rem 0.75rem;
}

.detail-layout {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  padding-top: 2rem;
}

.detail-gallery {
  display: grid;
  gap: 0.9rem;
}

.lightbox-trigger {
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: zoom-in;
  display: block;
  padding: 0;
  text-align: inherit;
  width: 100%;
}

.detail-gallery img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.detail-info {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.detail-info h1 {
  font-size: 1.55rem;
}

.detail-price {
  color: var(--accent-dark);
  font-size: 2.2rem;
  font-weight: 900;
  margin: 1rem 0;
}

.listing-stats,
.listing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}

.listing-stats span {
  background: var(--soft);
  border-radius: 8px;
  color: var(--accent-dark);
  font-weight: 850;
  padding: 0.55rem 0.75rem;
}

.interest-counter {
  align-items: center;
  background: rgba(45, 138, 34, 0.1);
  border: 1px solid rgba(45, 138, 34, 0.24);
  border-radius: 8px;
  color: var(--accent-dark);
  display: inline-flex;
  gap: 0.5rem;
  margin: 0.25rem 0 1rem;
  padding: 0.65rem 0.8rem;
}

.interest-counter strong {
  font-size: 1.25rem;
}

.contact-ad-fields,
.contact-ad-summary {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.contact-ad-fields[hidden] {
  display: none !important;
}

.erotic-contact-fields {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.erotic-contact-fields[hidden] {
  display: none !important;
}

.contact-general-fields {
  display: grid;
  gap: 0.8rem;
}

.contact-general-fields[hidden] {
  display: none !important;
}

.check-grid {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 0.45rem;
}

.contact-ad-summary {
  background: #fff;
  margin: 1rem 0;
}

.contact-ad-summary h2 {
  font-size: 1rem;
  margin: 0;
}

.contact-ad-summary div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contact-ad-summary span {
  background: var(--soft);
  border-radius: 8px;
  color: var(--muted);
  display: inline-grid;
  gap: 0.1rem;
  padding: 0.45rem 0.65rem;
}

.contact-ad-summary strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.listing-actions form {
  margin: 0;
}

.mobile-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.9rem 0;
}

.contact-button {
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  padding: 0.72rem 0.9rem;
}

.contact-button.whatsapp {
  background: #128c7e;
}

.contact-button.telegram {
  background: #229ed9;
}

.verified,
.power-badge {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 900;
  margin-left: 0.35rem;
  padding: 0.28rem 0.52rem;
}

.verified {
  background: #dcfae6;
  color: #067647;
}

.verified-check {
  align-items: center;
  background: #12b76a;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(18, 183, 106, 0.32);
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 900;
  height: 1rem;
  justify-content: center;
  line-height: 1;
  margin-left: 0.25rem;
  vertical-align: middle;
  width: 1rem;
}

.verified-check::before {
  content: "\2713";
}

.power-badge {
  background: #fef0c7;
  color: #b54708;
}

.profile-card-link,
.seller-link {
  color: var(--accent-dark);
  font-weight: 500;
}

.seller-link {
  align-items: center;
  display: inline-flex;
  font-size: 0.75rem;
  gap: 0.25rem;
  line-height: 1.2;
}

.premium-check-badge {
  align-items: center;
  background: var(--premium-check-color, #1d9bf0);
  clip-path: polygon(50% 0, 61% 14%, 78% 7%, 84% 24%, 100% 25%, 93% 42%, 100% 56%, 83% 63%, 85% 80%, 67% 80%, 56% 100%, 43% 82%, 25% 92%, 22% 73%, 5% 70%, 13% 53%, 0 42%, 16% 32%, 12% 14%, 31% 17%);
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  height: 1rem;
  justify-content: center;
  margin-left: 0.28rem;
  position: relative;
  vertical-align: middle;
  width: 1rem;
}

.premium-check-badge::before {
  border-bottom: 0.16rem solid currentColor;
  border-right: 0.16rem solid currentColor;
  content: "";
  height: 0.42rem;
  transform: rotate(45deg) translate(-0.03rem, -0.05rem);
  width: 0.23rem;
}

.premium-check-institution {
  color: #111827;
}

.seller-shop-icon {
  color: transparent;
  display: inline-block;
  font-size: 0;
  height: 0.72rem;
  position: relative;
  width: 0.86rem;
}

.seller-shop-icon::before {
  background: var(--accent-dark);
  border-radius: 2px;
  bottom: 0;
  content: "";
  display: block;
  height: 0.52rem;
  left: 0;
  position: absolute;
  width: 100%;
}

.seller-shop-icon::after {
  border: 2px solid var(--accent-dark);
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  content: "";
  height: 0.3rem;
  left: 0.23rem;
  position: absolute;
  top: 0;
  width: 0.4rem;
}

.profile-shop-icon {
  margin-left: 0.35rem;
  vertical-align: middle;
}

.profile-premium-icon {
  margin-left: 0.35rem;
  vertical-align: middle;
}

.online-dot {
  animation: onlinePulse 1.8s ease-in-out infinite;
  background: #17b26a;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(23, 178, 106, 0.35);
  color: transparent;
  display: inline-block;
  flex: 0 0 auto;
  font-size: 0;
  height: 0.72rem;
  margin-left: 0.32rem;
  vertical-align: middle;
  width: 0.72rem;
}

@keyframes onlinePulse {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(23, 178, 106, 0.35), 0 0 0 0 rgba(23, 178, 106, 0.36);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(23, 178, 106, 0.35), 0 0 0 6px rgba(23, 178, 106, 0);
  }
}

.member-alert-badge {
  align-items: center;
  border: 2px solid #d92d20;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px rgba(217, 45, 32, 0.18);
  color: #d92d20;
  display: inline-flex;
  height: 0.92rem;
  justify-content: center;
  margin-left: 0.25rem;
  width: 0.92rem;
}

.member-alert-badge::before {
  content: "!";
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
}

.member-star-badge {
  align-items: center;
  display: inline-flex;
  height: 1rem;
  justify-content: center;
  margin-left: 0.25rem;
  vertical-align: middle;
  width: 1rem;
}

.member-star-badge::before {
  content: "★";
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.member-star-badge.black {
  color: #101828;
}

.member-star-badge.gray {
  color: #667085;
}

.member-star-badge.yellow {
  color: #fdb022;
}

.member-star-badge.green {
  color: #079455;
}

.member-star-badge {
  font-size: 1.12rem;
  font-weight: 900;
  height: 1.05rem;
  line-height: 1;
  width: 1.05rem;
}

.member-star-badge::before {
  content: none;
}

.profile-name,
.profile-status-text {
  display: inline;
}

.profile-avatar,
.profile-image-edit img {
  aspect-ratio: 1 / 1;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(16, 43, 58, 0.14);
  object-fit: cover;
  object-position: var(--media-x, 50%) var(--media-y, 50%);
  transform: scale(var(--media-zoom, 1));
  transform-origin: var(--media-x, 50%) var(--media-y, 50%);
}

.profile-avatar {
  background: var(--soft);
  height: clamp(82px, 12vw, 124px);
  width: clamp(82px, 12vw, 124px);
}

.profile-banner-edit,
.profile-image-edit {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.profile-banner-edit-preview,
.profile-image-edit-preview {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.profile-banner-edit-preview img,
.x-profile-banner img {
  height: 100%;
  object-fit: cover;
  object-position: var(--media-x, 50%) var(--media-y, 50%);
  transform: scale(var(--media-zoom, 1));
  transform-origin: var(--media-x, 50%) var(--media-y, 50%);
  width: 100%;
}

.profile-banner-edit-preview {
  aspect-ratio: 4 / 1;
}

.profile-image-edit {
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr);
}

.profile-image-edit-preview {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  height: 96px;
  width: 96px;
}

.profile-image-edit img {
  border: 0;
  box-shadow: none;
  height: 88px;
  width: 88px;
}

.profile-image-edit-preview img {
  height: 100%;
  width: 100%;
}

.media-adjust-grid {
  display: grid;
  gap: 0.7rem;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
}

.media-adjust-grid label {
  min-width: 0;
}

.media-adjust-grid input[type="range"] {
  width: 100%;
}

.profile-social-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.profile-social-stats > span,
.profile-follow-popover > summary {
  align-items: center;
  background: var(--soft);
  border: 1px solid rgba(76, 159, 32, 0.24);
  border-radius: 999px;
  color: var(--accent-dark);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 850;
  gap: 0.3rem;
  height: 2rem;
  list-style: none;
  line-height: 1;
  min-height: 0;
  padding: 0.35rem 0.68rem;
}

.profile-rating-popover > summary .review-stars {
  align-items: center;
  display: inline-flex;
  font-size: 0.78rem;
  line-height: 1;
}

.profile-follow-popover {
  position: relative;
}

.profile-follow-popover > summary::-webkit-details-marker {
  display: none;
}

.profile-follow-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(16, 38, 53, 0.18);
  display: grid;
  gap: 0.25rem;
  left: 0;
  min-width: 220px;
  padding: 0.55rem;
  position: absolute;
  top: calc(100% + 0.45rem);
  z-index: 15;
}

.profile-follow-popover:not([open]) .profile-follow-list {
  display: none;
}

.profile-follow-list a,
.profile-follow-list .empty {
  align-items: center;
  border-radius: 6px;
  color: var(--ink);
  display: flex;
  gap: 0.35rem;
  justify-content: space-between;
  padding: 0.45rem 0.5rem;
}

.profile-follow-list a:hover {
  background: var(--soft);
}

.profile-follow-list small {
  color: var(--muted);
  font-size: 0.76rem;
}

.profile-story-strip {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.profile-story-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.45rem;
  overflow: hidden;
  padding: 0.75rem;
}

.profile-story-card img {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
  width: 100%;
}

.profile-story-gallery {
  display: grid;
  gap: 0.5rem;
}

.profile-story-gallery figure {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.profile-story-gallery button {
  background: transparent;
  border: 0;
  cursor: zoom-in;
  padding: 0;
  text-align: left;
}

.profile-story-gallery figcaption {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.profile-story-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.story-social {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.story-social form {
  margin: 0;
}

.story-social button,
.story-social a {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.78rem;
  gap: 0.25rem;
  min-height: 2rem;
  padding: 0.32rem 0.55rem;
}

.story-social span {
  color: var(--accent-dark);
  font-weight: 900;
}

.profile-status-text {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.read-status {
  align-items: center;
  display: inline-flex;
  font-size: 0.82rem;
  gap: 0.25rem;
}

.read-status::before {
  content: "";
  display: inline-block;
  height: 0.45rem;
  transform: rotate(45deg);
  width: 0.24rem;
}

.read-status.unread {
  color: var(--muted);
}

.read-status.unread::before {
  border-bottom: 2px solid #98a2b3;
  border-right: 2px solid #98a2b3;
}

.read-status.read {
  color: #079455;
}

.read-status.read::before {
  border-bottom: 2px solid #079455;
  border-right: 2px solid #079455;
  box-shadow: 0.24rem -0.24rem 0 -0.08rem #079455;
}

.profile-actions {
  display: grid;
  gap: 0.8rem;
}

.premium-card .seller-shop-icon::before {
  background: var(--accent-light);
}

.premium-card .seller-shop-icon::after {
  border-color: var(--accent-light);
}

.condition {
  background: var(--soft);
  border-radius: 8px;
  display: inline-block;
  font-weight: 800;
  padding: 0.55rem 0.75rem;
}

.contact-box,
.form-card,
.admin-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.admin-listing-preview {
  align-items: start;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 96px minmax(0, 1fr);
  min-width: min(520px, 70vw);
}

.admin-listing-preview img {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  width: 96px;
}

.admin-listing-preview p {
  color: var(--muted);
  margin: 0.35rem 0;
}

.admin-preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.45rem 0;
}

.admin-preview-chips span {
  background: var(--soft);
  border-radius: 8px;
  color: var(--muted);
  display: inline-grid;
  font-size: 0.78rem;
  gap: 0.05rem;
  padding: 0.35rem 0.5rem;
}

.admin-preview-chips strong {
  color: var(--ink);
}

.admin-review-layout {
  align-items: start;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.2fr);
}

.admin-review-gallery {
  display: grid;
  gap: 0.8rem;
}

.admin-review-gallery img {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.admin-review-info,
.admin-review-actions {
  display: grid;
  gap: 0.9rem;
}

.contact-box {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.narrow {
  max-width: 820px;
  padding-top: 2rem;
}

.auth-layout,
.member-shell {
  margin: 0 auto;
  max-width: 1260px;
  padding: 1.4rem clamp(1rem, 4vw, 3rem);
  width: 100%;
}

.auth-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-shell {
  display: grid;
  gap: 1rem;
}

.member-head {
  align-items: flex-start;
  align-self: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-sizing: border-box;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 96px;
  padding: clamp(1rem, 3vw, 1.5rem);
  width: 100%;
}

.member-head h1 {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  font-size: 1rem;
  gap: 0.25rem;
  line-height: 1.2;
  margin-top: 0;
}

.member-head .eyebrow {
  margin-bottom: 0.12rem;
}

.member-head > div > span {
  color: var(--muted);
  display: block;
  font-weight: 800;
  margin-top: 0.18rem;
}

.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.member-tabs {
  align-content: flex-start;
  align-items: flex-start;
  align-self: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 3.65rem;
  padding: 0.55rem;
  width: 100%;
}

.member-tabs a {
  align-items: center;
  align-self: flex-start;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 800;
  min-height: 2.45rem;
  line-height: 1.15;
  padding: 0.5rem 0.72rem;
}

.member-tabs a.active,
.member-tabs a:hover {
  background: var(--soft);
  border-color: var(--accent);
  color: var(--accent-dark);
}

.member-section {
  scroll-margin-top: 5rem;
}

.member-tab-panel {
  align-self: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-sizing: border-box;
  display: grid;
  gap: 1rem;
  min-height: 560px;
  align-content: start;
  padding: clamp(1rem, 3vw, 1.5rem);
  width: 100%;
}

.member-shell input:not([type="hidden"]):not([type="file"]),
.member-shell select {
  height: 2.45rem;
  padding: 0.5rem 0.72rem;
}

.member-shell input[type="file"] {
  min-height: 2.45rem;
  padding: 0.48rem 0.72rem;
}

.member-shell textarea {
  min-height: 96px;
  padding: 0.7rem 0.72rem;
}

.visibility-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  min-height: 1.55rem;
  padding: 0.18rem 0.55rem;
  white-space: nowrap;
}

.visibility-pill.on {
  background: rgba(45, 138, 34, 0.12);
  color: var(--brand-green-dark);
}

.visibility-pill.off {
  background: rgba(22, 37, 48, 0.08);
  color: var(--muted);
}

.chat-page-shell {
  max-width: none;
  padding-left: clamp(0.75rem, 2vw, 1.5rem);
  padding-right: clamp(0.75rem, 2vw, 1.5rem);
}

.chat-panel {
  padding: 0;
  overflow: hidden;
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  min-height: calc(100vh - 210px);
}

.chat-window {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
}

.chat-title {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  font-weight: 850;
  gap: 0.4rem;
  justify-content: space-between;
  padding: 0.8rem 1rem;
}

.chat-title > span {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chat-title-actions {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
}

.chat-address-link,
.chat-report-link {
  background: transparent;
  border: 0;
  font-size: 0.82rem;
  padding: 0.25rem 0.35rem;
}

.chat-address-link {
  color: var(--accent-dark);
}

.chat-report-link {
  color: var(--danger);
}

.chat-address-link:hover {
  background: var(--soft);
  color: var(--accent-dark);
}

.chat-report-link:hover {
  background: #fff4f2;
  color: var(--danger);
}

.chat-messages {
  background: #f8faf7;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow-y: auto;
  padding: 1rem;
}

.chat-bubble {
  border-radius: 8px;
  max-width: min(72%, 560px);
  padding: 0.72rem 0.82rem;
}

.chat-bubble p {
  margin: 0;
}

.chat-bubble small {
  color: var(--muted);
  display: block;
  font-size: 0.76rem;
  margin-top: 0.35rem;
}

.chat-bubble.received {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
}

.chat-bubble.sent {
  align-self: flex-end;
  background: #e8f8dd;
  border: 1px solid #b7e4a1;
}

.chat-bubble.system {
  align-self: center;
  background: #fffbeb;
  border: 1px solid #fedf89;
  max-width: min(88%, 680px);
}

.chat-compose {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.8rem;
}

.chat-contacts {
  border-left: 1px solid var(--line);
  background: #fff;
  display: grid;
  align-content: start;
  gap: 0.35rem;
  max-height: calc(100vh - 210px);
  overflow-y: auto;
  padding: 0.8rem;
}

.chat-contact-select {
  color: var(--muted);
  display: none;
  font-size: 0.82rem;
  font-weight: 850;
  gap: 0.35rem;
}

.chat-contact-select select {
  width: 100%;
}

.chat-contact-list {
  display: grid;
  gap: 0.35rem;
}

.chat-contact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 0.18rem;
  padding: 0.62rem 0.7rem;
  text-align: left;
}

.chat-contact.has-unread {
  border-color: var(--danger);
  box-shadow: inset 3px 0 0 var(--danger);
}

.chat-contact.active,
.chat-contact:hover {
  background: var(--soft);
  border-color: var(--accent);
}

.chat-contact span {
  align-items: center;
  display: inline-flex;
  font-weight: 850;
  gap: 0.24rem;
  min-width: 0;
}

.chat-contact-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-contact small {
  color: var(--muted);
}

.chat-contact.has-unread small {
  color: var(--danger);
  font-weight: 850;
}

.report-dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: min(620px, calc(100vw - 2rem));
  padding: 1rem;
  width: 620px;
}

.report-dialog::backdrop {
  background: rgba(16, 38, 53, 0.35);
}

.report-message-list {
  display: grid;
  gap: 0.5rem;
  max-height: 340px;
  overflow: auto;
}

.report-message-option {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 0.2rem;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 0.65rem;
}

.report-message-option input {
  grid-row: span 2;
  margin-top: 0.25rem;
  width: auto;
}

.report-message-option span,
.report-message-option small {
  min-width: 0;
}

.account-actions input {
  max-width: 180px;
}

.identity-preview {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  max-width: 560px;
}

.identity-preview figure {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
}

.identity-preview img {
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.identity-preview figcaption {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.45rem 0.55rem;
}

.compact-admin-form {
  min-width: 220px;
}

.review-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.review-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem;
}

.review-item strong {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
}

.review-meta {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  margin-top: 0.25rem;
}

.review-meta a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.review-meta a:hover {
  color: var(--brand-green);
}

.review-stars {
  align-items: center;
  display: inline-flex;
  font-size: 1.05rem;
  gap: 0.08rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.review-star.filled {
  color: #f5b800;
}

.review-star.empty {
  color: #aab3bd;
}

.profile-rating-summary {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 800;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.profile-rating-summary .review-stars {
  font-size: 1rem;
}

.star-rating-field {
  border: 0;
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
}

.star-rating-field legend {
  color: var(--muted);
  font-weight: 800;
  padding: 0;
}

.star-rating-input {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.star-rating-input label {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.55rem 0.65rem;
}

.star-rating-input input {
  accent-color: var(--accent-dark);
  width: auto;
}

.star-rating-input span {
  color: #fdb022;
  font-weight: 900;
  line-height: 1;
}

.star-rating-input small {
  color: var(--muted);
  font-weight: 750;
}

.star-rating-input label:has(input:checked) {
  background: var(--soft);
  border-color: var(--accent);
  color: var(--ink);
}

.thumb-row {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
}

.thumb-row img {
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.image-lightbox {
  background: rgba(7, 25, 35, 0.94);
  border: 0;
  height: 100dvh;
  margin: 0;
  max-height: none;
  max-width: 100vw;
  padding: clamp(1rem, 3vw, 2rem);
  width: 100%;
}

.image-lightbox::backdrop {
  background: rgba(7, 25, 35, 0.86);
}

.image-lightbox[open] {
  align-items: center;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  justify-items: center;
}

.image-lightbox img {
  grid-column: 2;
  max-height: min(86dvh, 980px);
  max-width: min(92vw, 1280px);
  object-fit: contain;
  width: auto;
}

.lightbox-nav {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.lightbox-close {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 0.2rem;
  position: fixed;
  right: 1rem;
  top: 1rem;
  z-index: 2;
}

.lightbox-close svg,
.lightbox-nav svg {
  fill: currentColor;
  height: 1.55rem;
  width: 1.55rem;
}

.lightbox-close svg {
  height: 1.85rem;
  width: 1.85rem;
}

.lightbox-prev {
  grid-column: 1;
}

.lightbox-next {
  grid-column: 3;
}

.lightbox-counter {
  bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 800;
  left: 50%;
  position: fixed;
  transform: translateX(-50%);
}

.share-dialog {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(16, 38, 53, 0.24);
  color: var(--ink);
  max-width: min(440px, calc(100vw - 2rem));
  padding: 1.2rem;
  width: 100%;
}

.share-dialog::backdrop {
  background: rgba(7, 25, 35, 0.48);
}

.share-dialog h2 {
  font-size: 1.15rem;
  margin: 0 2rem 0.35rem 0;
}

.share-dialog p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.share-close {
  align-items: center;
  background: var(--soft);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  width: 2rem;
}

.share-close svg {
  fill: currentColor;
  height: 1rem;
  width: 1rem;
}

.share-actions {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0.8rem;
}

.share-actions a,
.share-actions button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.7rem;
}

.share-actions a {
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--accent-dark);
  font-weight: 800;
}

.share-dialog input {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 0.65rem;
  width: 100%;
}

.share-dialog small {
  color: var(--accent-dark);
  display: block;
  font-weight: 800;
  min-height: 1.2rem;
  padding-top: 0.35rem;
}

.stacked-form {
  display: grid;
  gap: 1rem;
}

.stacked-form label {
  color: var(--muted);
  display: grid;
  font-weight: 800;
  gap: 0.4rem;
}

.sub-form-panel {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.section-head.compact {
  margin: 0;
}

.section-head.compact h2 {
  font-size: 1.05rem;
}

.two-cols {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.notice {
  background: var(--soft);
  border-radius: 8px;
  color: var(--accent-dark);
  font-weight: 750;
  padding: 0.9rem;
}

.notice.error {
  background: #fee4e2;
  color: var(--danger);
}

.empty {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 1rem;
}

.admin-shell {
  align-items: start;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 220px minmax(0, 1fr);
  max-width: 1400px;
}

.admin-sidebar {
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  position: sticky;
  top: 5.4rem;
}

.admin-sidebar a {
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  padding: 0.75rem;
}

.admin-sidebar a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-sidebar a.active {
  background: var(--soft);
  color: var(--accent-dark);
}

.admin-content {
  display: grid;
  gap: 1.2rem;
}

.stats-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
}

.stats-grid div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.stats-grid span {
  color: var(--muted);
  display: block;
  font-weight: 800;
}

.stats-grid strong {
  font-size: 1.35rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

td small {
  color: var(--muted);
  display: block;
  margin-top: 0.25rem;
}

.parent-row td {
  background: var(--soft);
}

.subcat-name {
  display: inline-block;
  padding-left: 1rem;
  position: relative;
}

.subcat-name::before {
  color: var(--muted);
  content: "↳";
  left: 0;
  position: absolute;
}

.status {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.42rem 0.65rem;
}

.status.approved {
  background: #dcfae6;
  color: #067647;
}

.status.pending {
  background: #fef0c7;
  color: #b54708;
}

.status.rejected {
  background: #fee4e2;
  color: var(--danger);
}

.inline-actions,
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.inline-actions button,
.inline-form button,
td form button {
  font-size: 0.84rem;
  padding: 0.55rem 0.7rem;
}

.listing-manage-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.listing-manage-actions form {
  margin: 0;
}

.danger-button {
  background: var(--danger);
}

.danger-button:hover {
  background: #8f1f16;
}

.inline-form {
  margin-bottom: 1rem;
}

@media (max-width: 840px) {
  :root {
    --header-offset: 96px;
  }

  body {
    padding-top: var(--header-offset);
  }

  .catalog-page,
  .filter-page,
  .admin-shell,
  .member-shell,
  .telegram-info-page,
  .landing-page,
  .auth-layout,
  .site-footer,
  .admin-panel,
  .member-head,
  .member-tabs,
  .member-tab-panel,
  .stacked-form,
  .table-wrap {
    max-width: 100%;
    min-width: 0;
  }

  .table-wrap {
    overflow-x: auto;
  }

  .playlist-add-form,
  .persistent-audio-player {
    grid-template-columns: 1fr;
  }

  .audio-playlist-menu .playlist-add-form {
    left: 50%;
    max-width: calc(100vw - 1.25rem);
    min-width: 0;
    position: fixed;
    top: var(--playlist-menu-top, 5rem);
    transform: translateX(-50%);
    width: calc(100vw - 1.25rem);
    z-index: 420;
  }

  .persistent-audio-player {
    align-items: start;
    box-sizing: border-box;
    gap: 0.25rem;
    grid-template-columns: auto auto minmax(0, 1fr);
    left: 0;
    max-width: 100%;
    overflow: hidden;
    padding: 0.25rem 0.5rem;
    transform: none;
    width: 100%;
  }

  .persistent-audio-player .persistent-audio-title {
    align-self: center;
  }

  .persistent-audio-player audio {
    box-sizing: border-box;
    grid-column: 1 / -1;
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .social-audio {
    grid-template-columns: 82px minmax(0, 1fr);
    padding: 0;
  }

  .audio-wave-panel {
    min-height: 112px;
    padding: 3.25rem 0.5rem 1rem;
  }

  .waveform {
    height: 52px;
  }

  .social-audio .audio-play-button {
    flex-basis: 2.35rem;
    height: 2.35rem;
    left: 0.55rem;
    top: 0.55rem;
    width: 2.35rem;
  }

  .audio-overlay-title {
    left: 3.15rem;
    max-width: calc(100% - 6.5rem);
    top: 0.58rem;
  }

  .audio-overlay-age {
    display: none;
  }

  .audio-genre-pill {
    font-size: 0.68rem;
    right: 0.45rem;
    top: 1.95rem;
  }

  .audio-duration-pill {
    bottom: 0.45rem;
    font-size: 0.68rem;
    right: 0.45rem;
  }

  .audio-showcase-footer {
    padding: 0.45rem 0.55rem;
  }

  .site-header,
  .hero,
  .premium-banner,
  .plan-grid,
  .site-footer,
  .auth-layout,
  .shop-toolbar,
  .detail-layout,
  .admin-shell,
  .two-cols {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: center;
    box-sizing: border-box;
    gap: 0.42rem 0.7rem;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-content: stretch;
    left: 0;
    padding: 0.35rem 0.75rem 0.5rem 0;
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 100;
  }

  .timeline-header-compact .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .timeline-header-compact .timeline-header-grid {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: 1fr;
    margin-left: 0.75rem;
    width: calc(100% - 0.75rem);
  }

  .timeline-header-search {
    display: none;
  }

  .timeline-header-tabs a {
    font-size: 0.78rem;
    padding: 0.38rem 0.2rem 0.34rem;
  }

  body.mobile-header-hidden .site-header {
    box-shadow: none;
    transform: translateY(-100%);
  }

  body.mobile-header-hidden .category-subheader {
    transform: translateY(calc(-100% - var(--header-offset)));
  }

  .category-subheader .category-browser {
    max-width: calc(100vw - 3.8rem);
    min-width: min(230px, calc(100vw - 3.8rem));
  }

  .landing-hero {
    grid-template-columns: 1fr;
    padding-top: 1.4rem;
  }

  .landing-band,
  .landing-screens,
  .landing-benefits {
    grid-template-columns: 1fr;
  }

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

  .landing-copy h1 {
    font-size: 2rem;
  }

  .landing-actions .button-link {
    flex: 1 1 160px;
    justify-content: center;
  }

  .brand {
    justify-content: flex-start;
    justify-self: start;
    min-width: 0;
    padding-left: 0;
  }

  .brand-logo {
    height: 38px;
    width: 114px;
  }

  .brand-logo-english {
    width: 128px;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    min-width: max-content;
    position: relative;
    z-index: 104;
  }

  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 0.28rem;
    grid-template-columns: minmax(0, 1fr) minmax(86px, 0.58fr) auto auto auto;
    margin-left: 0.75rem;
    width: calc(100% - 0.75rem);
    padding: 0.18rem;
  }

  .header-search input {
    font-size: 0.88rem;
    min-height: 2.05rem;
    padding: 0.34rem 0.5rem;
  }

  .header-search button,
  .header-filter,
  .header-category-browser summary {
    font-size: 0.82rem;
    min-height: 2.05rem;
    padding: 0.28rem 0.48rem;
  }

  .header-category-browser .category-count,
  .header-category-browser .category-summary-text {
    display: none;
  }

  .header-category-browser .category-browser-panel {
    max-width: min(520px, calc(100vw - 1rem));
    min-width: calc(100vw - 1rem);
    top: var(--header-offset);
  }

  .header-login {
    font-size: 0.86rem;
    min-height: 2.25rem;
    padding: 0.48rem 0.65rem;
    position: relative;
    z-index: 105;
  }

  .language-switch {
    height: 2.25rem;
    min-width: 3rem;
  }

  .language-switch select {
    font-size: 0.76rem;
    padding: 0 0.42rem;
  }

  .header-cart {
    height: 2.25rem;
    width: 2.25rem;
  }

  .header-member-nav {
    gap: 0.28rem;
    position: relative;
    z-index: 105;
  }

  .header-member-nav a {
    font-size: 0.78rem;
    padding: 0.42rem 0.5rem;
  }

  .header-member-nav a > span:not(.header-unread-badge) {
    display: none;
  }

  .header-member-nav a {
    height: 2.15rem;
    justify-content: center;
    padding: 0;
    width: 2.15rem;
  }

  .icon-only-member-nav a {
    height: 2.3rem;
    min-height: 2.3rem;
    width: 2.3rem;
  }

  .icon-only-member-nav svg {
    height: 1.2rem;
    width: 1.2rem;
  }

  .main-nav {
    justify-content: start;
  }

  .mega-menu {
    position: static;
  }

  .mega-panel {
    grid-template-columns: 1fr;
    left: 0;
    right: auto;
    top: 100%;
    width: calc(100vw - 2rem);
  }

  .hero {
    min-height: 620px;
  }

  .telegram-hero,
  .telegram-showcase {
    grid-template-columns: 1fr;
  }

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

  .telegram-phone {
    max-width: 340px;
    min-height: 500px;
  }

  .telegram-chat-preview {
    min-height: 450px;
  }

  .telegram-member-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .search-bar {
    grid-template-columns: 1fr;
  }

  .catalog-controls {
    grid-template-columns: 1fr;
  }

  .premium-grid {
    grid-template-columns: 1fr;
  }

  .premium-card {
    grid-template-columns: 54px minmax(0, 1fr) auto;
  }

  .footer-links {
    justify-content: start;
  }

  .section-head,
  .product-meta {
    align-items: start;
    flex-direction: column;
  }

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

  .member-head {
    align-items: start;
    flex-direction: column;
  }

  .member-actions {
    justify-content: start;
  }

  .chat-layout {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 150px);
  }

  .chat-contacts {
    border-left: 0;
    border-bottom: 1px solid var(--line);
    max-height: none;
    order: -1;
    overflow: visible;
  }

  .chat-window {
    min-height: calc(100vh - 260px);
  }

  .chat-contact-select {
    display: grid;
  }

  .chat-contact-list {
    display: none;
  }

  .chat-bubble {
    max-width: 88%;
  }

  .mixed-section .product-card {
    grid-template-columns: 1fr;
  }

  .mixed-section .product-info {
    height: auto;
    min-height: 0;
  }

  .admin-sidebar {
    position: static;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-side {
    position: static;
  }
}

@media (max-width: 520px) {
  :root {
    --header-offset: 88px;
  }

  body {
    padding-top: var(--header-offset);
  }

  .site-header {
    padding: 0.3rem 0.55rem 0.42rem 0;
  }

  .category-subheader .category-browser {
    max-width: calc(100vw - 3.6rem);
    min-width: min(210px, calc(100vw - 3.6rem));
  }

  .handshake-steps {
    grid-template-columns: 1fr;
  }

  body.mobile-header-hidden .category-subheader {
    transform: translateY(calc(-100% - var(--header-offset)));
  }

  .brand-logo {
    height: 34px;
    width: 102px;
  }

  .brand-logo-english {
    width: 116px;
  }

  .header-search {
    grid-template-columns: minmax(0, 1fr) minmax(70px, 0.48fr) auto auto auto;
    margin-left: 0.55rem;
    width: calc(100% - 0.55rem);
  }

  .header-search input {
    font-size: 0.8rem;
    min-height: 1.9rem;
    padding: 0.28rem 0.42rem;
  }

  .header-search button,
  .header-filter,
  .header-category-browser summary {
    font-size: 0.76rem;
    min-height: 1.9rem;
    padding: 0.22rem 0.38rem;
  }

  .header-category-browser .category-browser-panel {
    top: var(--header-offset);
  }

  .search-submit span {
    display: none;
  }

  .header-login {
    font-size: 0.78rem;
    min-height: 2rem;
    padding: 0.4rem 0.5rem;
  }

  .legal-hero {
    grid-template-columns: 1fr;
  }

  .legal-hero img {
    justify-self: start;
    max-height: 76px;
    width: min(190px, 58vw);
  }

  .legal-nav {
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .legal-nav a {
    white-space: nowrap;
  }

  .language-switch {
    height: 2rem;
    min-width: 2.7rem;
  }

  .language-switch select {
    font-size: 0.72rem;
    padding: 0 0.34rem;
  }

  .header-cart {
    height: 2rem;
    width: 2rem;
  }

  .header-cart svg {
    height: 1.12rem;
    width: 1.12rem;
  }

  .cart-count {
    font-size: 0.62rem;
    height: 1rem;
    min-width: 1rem;
    right: -0.28rem;
    top: -0.28rem;
  }

  .header-member-nav a {
    font-size: 0.72rem;
    padding: 0.36rem 0.42rem;
  }

  .telegram-info-page {
    padding: 0.75rem;
  }

  .telegram-hero {
    padding: 1rem;
  }

  .telegram-hero h1 {
    font-size: 1.55rem;
  }

  .telegram-feature-grid,
  .telegram-screens {
    grid-template-columns: 1fr;
  }

  .telegram-phone {
    border-width: 6px;
    border-radius: 26px;
    min-height: 430px;
    padding: 0.65rem;
  }

  .telegram-chat-preview {
    border-radius: 18px;
    min-height: 390px;
    padding: 0.65rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .x-profile-head {
    grid-template-columns: 1fr;
  }

  .x-profile-head .profile-avatar-button {
    --avatar-size: 104px;
  }
}

.mobile-profile-trigger,
.mobile-bottom-nav,
.mobile-timeline-drawer,
.mobile-drawer-backdrop,
.mobile-notifications-dialog {
  display: none;
}

@media (max-width: 900px) {
  .mobile-timeline-ui {
    --header-offset: 94px;
    padding-bottom: 66px;
  }

  .mobile-timeline-ui.mobile-drawer-open {
    overflow: hidden;
  }

  .mobile-timeline-ui .site-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    box-shadow: none;
    display: grid;
    gap: 0;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    grid-template-rows: 48px 45px;
    padding: 0 0.7rem;
  }

  .mobile-timeline-ui .mobile-profile-trigger {
    align-items: center;
    align-self: center;
    background: transparent;
    border: 0;
    color: var(--ink);
    display: inline-flex;
    gap: 0.2rem;
    grid-column: 1;
    grid-row: 1;
    height: 38px;
    justify-self: start;
    min-height: 0;
    padding: 0;
    width: 44px;
  }

  .mobile-timeline-ui .mobile-profile-trigger img {
    border: 1px solid var(--line);
    border-radius: 50%;
    height: 34px;
    object-fit: cover;
    width: 34px;
  }

  .mobile-timeline-ui .mobile-profile-trigger span {
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0;
  }

  .mobile-timeline-ui .mobile-profile-login {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 50%;
    height: 34px;
    justify-content: center;
    width: 34px;
  }

  .mobile-timeline-ui .mobile-profile-login svg {
    fill: currentColor;
    height: 1.15rem;
    width: 1.15rem;
  }

  .mobile-timeline-ui .site-header > .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .mobile-timeline-ui .brand-logo {
    height: 38px;
    width: 112px;
  }

  .mobile-timeline-ui .brand-logo-english {
    width: 126px;
  }

  .mobile-timeline-ui .header-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .mobile-timeline-ui .timeline-header-grid {
    align-self: stretch;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: 1fr;
    margin: 0;
    width: 100%;
  }

  .mobile-timeline-ui .timeline-header-tabs {
    align-self: stretch;
    gap: 0;
    grid-column: 1;
    justify-self: center;
    max-width: 430px;
    width: 100%;
  }

  .mobile-timeline-ui .timeline-header-tabs a {
    align-items: center;
    display: flex;
    font-size: 0.82rem;
    justify-content: center;
    padding: 0.4rem 0.2rem 0.35rem;
  }

  .mobile-timeline-ui .timeline-header-search {
    display: none;
  }

  .mobile-timeline-ui .social-layout {
    padding-bottom: 0.75rem;
  }

  .mobile-bottom-nav {
    align-items: center;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid var(--line);
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    height: 62px;
    left: 0;
    padding: 0 max(0.25rem, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(0.25rem, env(safe-area-inset-left));
    position: fixed;
    right: 0;
    transform: translateY(0);
    transition: transform 0.22s ease;
    z-index: 110;
  }

  body.mobile-header-hidden .mobile-bottom-nav {
    transform: translateY(calc(100% + env(safe-area-inset-bottom)));
  }

  .mobile-bottom-nav > a,
  .mobile-bottom-nav > button {
    align-items: center;
    align-self: stretch;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #52606a;
    display: inline-flex;
    justify-content: center;
    min-height: 0;
    padding: 0;
    position: relative;
  }

  .mobile-bottom-nav > a.active {
    color: var(--ink);
  }

  .mobile-bottom-nav svg {
    fill: currentColor;
    height: 1.55rem;
    width: 1.55rem;
  }

  .mobile-bottom-nav .mobile-radio-button {
    align-self: center;
    background: #dff1d8;
    border: 1px solid #9fc995;
    border-radius: 50%;
    color: #2f6f35;
    height: 42px;
    justify-self: center;
    width: 42px;
  }

  .mobile-bottom-nav .mobile-radio-button.active {
    background: #cce8c3;
    border-color: #82b777;
    color: #245d2a;
  }

  .mobile-bottom-nav .mobile-radio-button svg {
    height: 1.3rem;
    width: 1.3rem;
  }

  .mobile-nav-badge {
    align-items: center;
    background: #1d9bf0;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 0.65rem;
    font-weight: 800;
    height: 1.15rem;
    justify-content: center;
    line-height: 1;
    min-width: 1.15rem;
    padding: 0 0.18rem;
    position: absolute;
    right: calc(50% - 1.15rem);
    top: 0.55rem;
  }

  .mobile-drawer-backdrop {
    background: rgba(15, 23, 42, 0.38);
    display: block;
    inset: 0;
    position: fixed;
    z-index: 300;
  }

  .mobile-drawer-backdrop[hidden] {
    display: none;
  }

  .mobile-timeline-drawer {
    background: #fff;
    bottom: 0;
    box-shadow: 18px 0 45px rgba(15, 23, 42, 0.2);
    display: flex;
    flex-direction: column;
    left: 0;
    max-width: min(86vw, 340px);
    overflow: hidden;
    position: fixed;
    top: 0;
    transform: translateX(-105%);
    transition: transform 0.24s ease;
    width: 320px;
    z-index: 310;
  }

  .mobile-timeline-drawer.open {
    transform: translateX(0);
  }

  .mobile-drawer-head {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: calc(0.85rem + env(safe-area-inset-top)) 0.85rem 0.85rem;
  }

  .mobile-drawer-head > a {
    align-items: center;
    color: var(--ink);
    display: flex;
    gap: 0.65rem;
    min-width: 0;
  }

  .mobile-drawer-head img {
    border: 1px solid var(--line);
    border-radius: 50%;
    height: 46px;
    object-fit: cover;
    width: 46px;
  }

  .mobile-drawer-head > a > svg {
    fill: currentColor;
    height: 2rem;
    width: 2rem;
  }

  .mobile-drawer-head span {
    display: grid;
    min-width: 0;
  }

  .mobile-drawer-head strong,
  .mobile-drawer-head small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-drawer-head small {
    color: var(--muted);
    font-size: 0.75rem;
  }

  .mobile-drawer-head button {
    background: transparent;
    color: var(--ink);
    min-height: 0;
    padding: 0.4rem;
  }

  .mobile-drawer-head button svg {
    fill: currentColor;
    height: 1.25rem;
    width: 1.25rem;
  }

  .mobile-timeline-drawer > nav {
    display: grid;
    gap: 0.05rem;
    overflow-y: auto;
    padding: 0.55rem 0.75rem calc(1rem + env(safe-area-inset-bottom));
  }

  .mobile-timeline-drawer > nav > a,
  .mobile-drawer-language {
    align-items: center;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(16, 38, 53, 0.06);
    color: var(--ink);
    display: grid;
    font-size: 0.92rem;
    font-weight: 500;
    gap: 0.7rem;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    min-height: 2.8rem;
    padding: 0.55rem 0.2rem;
  }

  .mobile-timeline-drawer > nav > a svg {
    fill: currentColor;
    height: 1.2rem;
    width: 1.2rem;
  }

  .mobile-timeline-drawer > nav > a b {
    align-items: center;
    background: #1d9bf0;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 0.68rem;
    height: 1.25rem;
    justify-content: center;
    min-width: 1.25rem;
  }

  .mobile-drawer-language {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .mobile-drawer-language select {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    min-height: 2rem;
    padding: 0.25rem 0.45rem;
  }

  .mobile-drawer-logout {
    color: var(--danger) !important;
    margin-top: 0.3rem;
  }

  .mobile-notifications-dialog {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    display: none;
    margin: auto;
    max-height: min(70vh, 620px);
    max-width: calc(100vw - 1.5rem);
    overflow: auto;
    padding: 0;
    width: 430px;
  }

  .mobile-notifications-dialog[open] {
    display: block;
  }

  .mobile-notifications-dialog::backdrop {
    background: rgba(15, 23, 42, 0.42);
  }

  .mobile-notifications-head {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: 0.8rem;
  }

  .mobile-notifications-head button {
    background: transparent;
    color: var(--ink);
    min-height: 0;
    padding: 0.25rem;
  }

  .mobile-notifications-head svg {
    fill: currentColor;
    height: 1.15rem;
    width: 1.15rem;
  }

  .mobile-notifications-list {
    display: grid;
  }

  .mobile-notifications-list > a {
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    display: grid;
    gap: 0.2rem;
    padding: 0.8rem;
  }

  .mobile-notifications-list > a span,
  .mobile-notifications-list > p {
    color: var(--muted);
    font-size: 0.84rem;
  }

  .mobile-timeline-ui .persistent-audio-player {
    bottom: 62px;
  }

  body.mobile-header-hidden.mobile-timeline-ui:not(.persistent-audio-open) .mobile-bottom-nav {
    pointer-events: none;
  }
}

@media (min-width: 1600px) {
  .catalog-page,
  .filter-page,
  .admin-shell,
  .member-shell {
    max-width: 1480px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .site-header {
    grid-template-columns: auto minmax(520px, 980px) auto;
  }
}

.product-action-row {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
}

.currency-mini-link,
.btc-mini-link,
.btc-pay-button {
  background: #f7931a;
  color: #10202b;
}

.currency-mini-link,
.btc-mini-link {
  align-items: center;
  border-radius: 999px;
  border: 0;
  display: inline-flex;
  font-weight: 800;
  height: 2rem;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  width: 2rem;
}

.currency-mini-link {
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 0.66rem;
  width: 2.45rem;
}

.currency-mini-link.active,
.btc-mini-link.active,
.payment-choice-row button.active {
  box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.22);
}

.payment-choice-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  width: 100%;
}

.payment-choice-row button {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 2.2rem;
  padding: 0.45rem 0.75rem;
}

.payment-choice-row button[data-payment-choice="btc"] {
  border-color: rgba(247, 147, 26, 0.45);
}

.btc-badge {
  background: #f7931a;
  color: #10202b;
}

.bitcoin-price-box {
  border: 1px solid rgba(247, 147, 26, 0.35);
  border-radius: 8px;
  display: grid;
  gap: 0.4rem;
  margin: 0.75rem 0;
  padding: 0.75rem;
}

.btc-pay-button {
  align-items: center;
  border-radius: 8px;
  display: grid;
  gap: 0.35rem;
  grid-template-columns: auto 1fr auto;
  padding: 0.7rem 0.85rem;
  text-decoration: none;
}

.btc-pay-button.muted {
  cursor: default;
}

.btc-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  display: inline-flex;
  font-size: 1.35rem;
  font-weight: 900;
  height: 2.2rem;
  justify-content: center;
  width: 2.2rem;
}

.bitcoin-address-box {
  background: #f6f8f7;
  border: 1px solid #dfe8e2;
  border-radius: 8px;
  display: grid;
  gap: 0.35rem;
  padding: 0.8rem;
}

.bitcoin-address-box span {
  color: #54625a;
  font-size: 0.82rem;
}

.bitcoin-address-box code {
  overflow-wrap: anywhere;
  white-space: normal;
}

.bitcoin-checkout-card .stats-grid {
  margin: 1rem 0;
}

.admin-secret-details {
  border: 1px solid #dfe8e2;
  border-radius: 8px;
  margin: 1rem 0;
  padding: 0.75rem;
}

.social-layout {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 780px) minmax(240px, 320px);
  margin: 0 auto;
  max-width: 1200px;
  padding: 1rem;
  width: 100%;
}

.single-post-layout {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.post-detail-layout {
  grid-template-columns: minmax(180px, 1fr) minmax(0, 780px) minmax(240px, 1fr);
  max-width: 1480px;
  justify-content: stretch;
}

.social-feed,
.social-side,
.timeline-left-panel,
.profile-social-feed {
  display: grid;
  gap: 0.75rem;
}

#social-feed-stream {
  display: grid;
  gap: 0.75rem;
}

.timeline-left-panel {
  align-self: stretch;
  grid-column: 1;
  justify-self: end;
  width: min(100%, 210px);
  z-index: 3;
}

.timeline-side-link {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 400;
  gap: 0.55rem;
  min-height: 2rem;
  padding: 0.35rem 0;
  text-align: left;
  width: 100%;
}

.timeline-side-link:hover {
  background: transparent;
  color: var(--accent-dark);
}

.timeline-side-link svg {
  fill: currentColor;
  height: 1.15rem;
  width: 1.15rem;
}

.timeline-member-menu {
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.55rem;
  padding-bottom: 0.65rem;
  position: relative;
}

.timeline-member-login {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  gap: 0.45rem;
  grid-template-columns: 34px minmax(0, 1fr);
  margin-bottom: 0.55rem;
  padding: 0.25rem 0 0.65rem;
}

.timeline-member-login:hover {
  color: var(--accent-dark);
}

.timeline-login-avatar {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.timeline-login-avatar svg {
  fill: currentColor;
  height: 1.05rem;
  width: 1.05rem;
}

.timeline-member-login > span:last-child {
  font-size: 0.9rem;
}

.timeline-member-menu summary {
  align-items: center;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  list-style: none;
  padding: 0.25rem 0;
}

.timeline-member-menu summary::-webkit-details-marker {
  display: none;
}

.timeline-member-menu summary img {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  height: 34px;
  object-fit: cover;
  width: 34px;
}

.timeline-member-menu summary span {
  color: var(--ink);
  font-size: 0.9rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-member-menu summary strong {
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 1px;
}

.timeline-member-menu nav {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.14);
  display: grid;
  gap: 0.1rem;
  left: 0;
  min-width: min(240px, 88vw);
  padding: 0.45rem;
  position: absolute;
  top: calc(100% + 0.35rem);
  z-index: 80;
}

.timeline-member-menu nav a {
  align-items: center;
  border-radius: 6px;
  color: var(--ink);
  display: flex;
  font-size: 0.88rem;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
}

.timeline-member-menu nav a svg {
  fill: currentColor;
  flex: 0 0 auto;
  height: 1rem;
  width: 1rem;
}

.timeline-member-menu nav a:hover {
  background: var(--soft);
  color: var(--accent-dark);
}

.timeline-member-menu nav .timeline-member-logout {
  border-top: 1px solid var(--line);
  margin-top: 0.3rem;
  padding-top: 0.6rem;
}

.timeline-icon-badge-wrap {
  display: inline-flex;
  position: relative;
}

.timeline-icon-badge {
  background: #1d9bf0;
  border-radius: 999px;
  bottom: -0.35rem;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  height: 1rem;
  line-height: 1rem;
  min-width: 1rem;
  padding: 0 0.22rem;
  position: absolute;
  right: -0.45rem;
  text-align: center;
}

.timeline-language-switch {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 0.8rem;
  justify-content: space-between;
  margin-bottom: 0.25rem;
  padding: 0.35rem 0.55rem 0.55rem;
}

.timeline-language-switch select {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.22rem 0.35rem;
}

.timeline-follow-suggestions {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
}

.timeline-follow-suggestions h2 {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 400;
  margin: 0 0 0.15rem;
}

.timeline-follow-suggestions a {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 400;
  gap: 0.42rem;
  min-width: 0;
}

.timeline-follow-row {
  align-items: center;
  display: grid;
  gap: 0.35rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.timeline-follow-row form {
  margin: 0;
}

.timeline-follow-row button {
  background: transparent;
  border: 1px solid rgba(76, 159, 32, 0.38);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 400;
  min-height: 1.55rem;
  padding: 0.16rem 0.48rem;
}

.timeline-follow-suggestions a:hover {
  color: var(--accent-dark);
}

.timeline-follow-suggestions img {
  aspect-ratio: 1;
  border-radius: 50%;
  height: 1.15em;
  object-fit: cover;
  width: 1.15em;
}

.timeline-follow-suggestions span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-chat-dialog {
  border: 0;
  border-radius: 10px;
  box-shadow: 0 22px 80px rgba(16, 38, 53, 0.26);
  height: min(760px, 86vh);
  max-width: min(980px, 94vw);
  overflow: hidden;
  padding: 0;
  width: min(920px, 94vw);
}

.timeline-chat-dialog::backdrop {
  background: rgba(16, 38, 53, 0.36);
}

.timeline-chat-dialog iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

.timeline-bookmarks-dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 22px 80px rgba(16, 38, 53, 0.24);
  max-height: min(720px, 86vh);
  max-width: min(520px, 94vw);
  overflow: auto;
  padding: 1rem;
  width: min(480px, 94vw);
}

.timeline-bookmarks-dialog::backdrop {
  background: rgba(16, 38, 53, 0.34);
}

.timeline-bookmarks-head {
  border-bottom: 1px solid var(--line);
  margin: 0 2.4rem 0.75rem 0;
  padding-bottom: 0.65rem;
}

.timeline-bookmarks-head h2 {
  font-size: 1rem;
  margin: 0;
}

.timeline-bookmarks-head span {
  color: var(--muted);
  font-size: 0.82rem;
}

.timeline-bookmarks-list {
  display: grid;
  gap: 0.48rem;
}

.timeline-bookmark-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 0.18rem;
  padding: 0.62rem;
}

.timeline-bookmark-item:hover {
  border-color: rgba(76, 159, 32, 0.38);
}

.timeline-bookmark-item strong {
  color: var(--accent-dark);
  font-size: 0.86rem;
}

.timeline-bookmark-item span {
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.35;
}

.timeline-bookmark-item small {
  color: var(--muted);
  font-size: 0.74rem;
}

.timeline-chat-close {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 1.35rem;
  height: 2rem;
  justify-content: center;
  position: absolute;
  right: 0.7rem;
  top: 0.7rem;
  width: 2rem;
  z-index: 2;
}

.chat-embed-body {
  background: #f7faf7;
  min-height: 100vh;
}

.chat-embed-body .chat-page-shell {
  margin: 0;
  max-width: none;
  min-height: 100vh;
  padding: 0;
}

.chat-embed-body .chat-panel {
  border: 0;
  border-radius: 0;
  min-height: 100vh;
}

.chat-embed-body .chat-layout {
  min-height: 100vh;
}

.trending-panel {
  align-self: stretch;
  background: transparent;
  grid-column: 3;
  z-index: 3;
}

.timeline-sidebar-sticky {
  align-self: start;
  display: grid;
  gap: 0.75rem;
  height: max-content;
  max-height: none;
  width: 100%;
}

.trending-panel .timeline-sidebar-sticky {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem;
}

.timeline-scroll-sentinel {
  height: 1px;
}

.timeline-load-more {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(76, 159, 32, 0.28);
  border-radius: 999px;
  color: var(--accent-dark);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 700;
  justify-content: center;
  justify-self: center;
  margin: 0.4rem auto 0.8rem;
  min-height: 2.2rem;
  padding: 0.42rem 0.85rem;
}

.timeline-load-more[hidden] {
  display: none;
}

.trending-list {
  display: grid;
  gap: 0.25rem;
}

.trending-list a {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-dark);
  display: flex;
  font-size: 0.9rem;
  justify-content: space-between;
  padding: 0.42rem 0.5rem;
}

.trending-list a:hover,
.trending-list a.active {
  background: transparent;
  border-color: rgba(76, 159, 32, 0.38);
}

.trending-list small {
  color: var(--muted);
}

.sidebar-block-head {
  border-top: 1px solid var(--line);
  margin-top: 0.85rem;
  padding-top: 0.85rem;
}

.sidebar-list a {
  align-items: flex-start;
  flex-direction: column;
  gap: 0.15rem;
}

.news-feed-list {
  display: grid;
  gap: 0.45rem;
}

.news-feed-list a {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 0.22rem;
  padding: 0.62rem;
}

.news-feed-list a:hover {
  border-color: rgba(76, 159, 32, 0.34);
  box-shadow: 0 10px 22px rgba(16, 38, 53, 0.08);
}

.news-feed-list strong {
  font-size: 0.9rem;
  line-height: 1.25;
}

.news-feed-list span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.32;
}

.news-feed-list small {
  color: var(--accent-dark);
  font-size: 0.72rem;
}

.social-page-head,
.profile-mode-tabs,
.x-profile-hero {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.social-composer {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.social-composer:hover {
  background: rgba(15, 23, 42, 0.025);
  border-color: rgba(15, 23, 42, 0.14);
}

.social-post {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.social-post:hover {
  background: rgba(15, 23, 42, 0.035);
  border-color: rgba(15, 23, 42, 0.16);
}

.social-page-head {
  padding: 0.9rem;
}

.social-page-head h1 {
  font-size: 1.15rem;
  margin: 0 0 0.7rem;
}

.social-filter-tabs,
.profile-mode-tabs {
  display: flex;
  gap: 0.35rem;
}

.social-filter-tabs a,
.profile-mode-tabs a {
  border-radius: 8px;
  color: var(--muted);
  flex: 1;
  font-size: 0.9rem;
  padding: 0.62rem;
  text-align: center;
}

.social-filter-tabs a.active,
.profile-mode-tabs a.active {
  background: var(--soft);
  color: var(--accent-dark);
  font-weight: 800;
}

.search-page {
  display: grid;
  gap: 0.85rem;
  margin: 0 auto;
  max-width: 1200px;
  padding: 1rem;
}

.search-section {
  display: grid;
  gap: 0.75rem;
}

.profile-result-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.profile-result-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 58px minmax(0, 1fr);
  padding: 0.8rem;
}

.profile-result-avatar,
.profile-result-avatar img {
  border-radius: 999px;
  display: block;
  height: 58px;
  overflow: hidden;
  width: 58px;
}

.profile-result-avatar img {
  object-fit: cover;
}

.profile-result-name {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  flex-wrap: wrap;
  font-weight: 800;
  gap: 0.25rem;
}

.profile-result-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.25rem 0;
}

.profile-result-card small {
  color: var(--muted);
}

.profile-playlists {
  display: grid;
  gap: 0.65rem;
}

.profile-playlist-list {
  display: grid;
  gap: 0.5rem;
}

.profile-playlist {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.profile-playlist summary {
  align-items: center;
  background: transparent;
  cursor: pointer;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 54px minmax(0, 1fr);
  justify-content: space-between;
  padding: 0.72rem 0.8rem;
}

.profile-playlist summary > span {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.profile-playlist summary span,
.profile-playlist summary small {
  color: var(--muted);
  font-size: 0.85rem;
}

.playlist-cover {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  width: 54px;
}

.playlist-expanded-body {
  display: grid;
  gap: 0.65rem;
  padding: 0.65rem;
}

.profile-playlist .playlist-track-list {
  padding: 0;
}

.playlist-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.playlist-card-actions form {
  margin: 0;
}

.playlist-card-actions button {
  align-items: center;
  display: inline-flex;
  gap: 0.3rem;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
}

.playlist-card-actions svg {
  height: 1rem;
  width: 1rem;
}

.playlist-settings-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.55rem;
  padding-top: 0.65rem;
}

.social-composer {
  padding: 0.78rem 0.92rem 0.55rem;
}

.new-posts-notice {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(76, 159, 32, 0.28);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(16, 38, 53, 0.1);
  color: var(--accent-dark);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 850;
  justify-content: center;
  justify-self: center;
  margin: 0.2rem auto 0.1rem;
  padding: 0.48rem 0.9rem;
}

.new-posts-notice[hidden] {
  display: none;
}

.composer-head {
  display: grid;
  gap: 0.72rem;
  grid-template-columns: 44px 1fr;
}

.composer-head img,
.social-avatar img {
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  width: 44px;
}

.composer-head textarea {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.35;
  min-height: 74px;
  outline: 0;
  padding: 0.35rem 0 0;
  resize: vertical;
}

.composer-head textarea::placeholder {
  color: #536471;
}

.composer-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-left: 52px;
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  position: relative;
}

.composer-toolbar::before {
  background: var(--line);
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.composer-submit-button {
  background: #c8cdd2;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 850;
  margin-left: auto;
  min-height: 2.15rem;
  padding: 0.35rem 1rem;
}

.composer-quick-actions {
  align-items: center;
  display: flex;
  gap: 0.12rem;
  position: relative;
}

.composer-icon-action {
  align-items: center;
  background: transparent;
  border: 0;
  color: #8aa0b2;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  height: 2.75rem;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.32rem;
  width: 2.75rem;
}

.composer-icon-action:hover {
  background: transparent;
  color: var(--accent-dark);
}

.timeline-chat-close svg,
.ad-popup-close svg,
[data-audio-close] svg {
  fill: currentColor;
  height: 1rem;
  width: 1rem;
}

.composer-icon-action input {
  display: none;
}

.composer-icon-action svg {
  fill: currentColor;
  height: 1.62rem;
  width: 1.62rem;
}

.composer-icon-action > span {
  display: none;
}

.composer-emoji-picker {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
  display: grid;
  gap: 0.18rem;
  grid-template-columns: repeat(8, 2.35rem);
  left: 0;
  max-width: calc(100vw - 2rem);
  padding: 0.42rem;
  position: absolute;
  top: calc(100% + 0.35rem);
  z-index: 90;
}

.composer-emoji-picker[hidden] {
  display: none;
}

.composer-emoji-picker button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  display: flex;
  font-size: 1.35rem;
  height: 2.35rem;
  justify-content: center;
  margin: 0;
  min-height: 2.35rem;
  padding: 0;
  width: 2.35rem;
}

.composer-emoji-picker button:hover {
  background: var(--soft);
  border-radius: 6px;
}

.composer-camera-action {
  display: none;
}

.composer-more {
  margin-left: 52px;
  margin-top: 0.45rem;
  padding-top: 0;
}

.composer-more summary {
  color: #1d9bf0;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
  list-style: none;
}

.composer-more summary::-webkit-details-marker {
  display: none;
}

.composer-more summary::after {
  content: " +";
}

.composer-more[open] summary::after {
  content: " -";
}

.composer-options {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.65rem;
}

.composer-options.compact {
  align-items: end;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-card .composer-more {
  margin-left: 0;
}

.composer-monetization {
  border: 1px solid rgba(76, 159, 32, 0.34);
  border-left: 3px solid var(--brand);
  border-radius: 8px;
  margin: 0.75rem 0 0.2rem 52px;
  overflow: hidden;
}

.form-card .composer-monetization {
  margin-left: 0;
}

.composer-tab-panel .composer-monetization {
  margin-left: 0;
}

.composer-monetization summary {
  align-items: center;
  background: rgba(76, 159, 32, 0.055);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 0.88rem;
  font-weight: 750;
  gap: 0.5rem;
  list-style: none;
  min-height: 2.55rem;
  padding: 0.5rem 0.7rem;
}

.composer-monetization summary::-webkit-details-marker {
  display: none;
}

.composer-monetization summary > span {
  align-items: center;
  background: var(--brand);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.58rem;
  font-weight: 850;
  height: 1.45rem;
  justify-content: center;
  width: 1.45rem;
}

.composer-monetization-body {
  border-top: 1px solid rgba(76, 159, 32, 0.22);
  padding: 0.7rem;
}

.composer-monetization-body > p {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0 0 0.65rem;
}

.composer-monetization-body .composer-options {
  margin-top: 0;
}

.composer-tabbed-options[open] > summary {
  margin-bottom: 0.65rem;
}

.composer-tab-list {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 0.75rem;
}

.composer-tab-list button {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 650;
  gap: 0.38rem;
  justify-content: center;
  margin-bottom: -1px;
  min-height: 2.65rem;
  padding: 0.45rem 0.35rem;
}

.composer-tab-list button:hover {
  background: rgba(76, 159, 32, 0.06);
  color: var(--accent-dark);
}

.composer-tab-list button.active {
  border-bottom-color: var(--brand);
  color: var(--accent-dark);
}

.composer-tab-list svg {
  fill: currentColor;
  height: 1.15rem;
  width: 1.15rem;
}

.composer-tab-panel {
  min-width: 0;
}

.composer-tab-panel[hidden] {
  display: none;
}

.composer-upload-actions {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.composer-upload-tile {
  align-items: center;
  background: rgba(15, 23, 42, 0.025);
  border: 1px dashed #aebbc4;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 0.2rem;
  grid-template-columns: 36px minmax(0, 1fr);
  min-height: 72px;
  padding: 0.65rem 0.75rem;
}

.composer-upload-tile:hover {
  background: rgba(76, 159, 32, 0.06);
  border-color: var(--brand);
}

.composer-upload-tile input {
  display: none;
}

.composer-upload-tile svg {
  fill: var(--accent-dark);
  grid-row: 1 / 3;
  height: 1.65rem;
  justify-self: center;
  width: 1.65rem;
}

.composer-upload-tile span {
  font-size: 0.9rem;
  font-weight: 750;
}

.composer-upload-tile small {
  color: var(--muted);
  font-size: 0.76rem;
}

.composer-tab-panel .composer-options {
  margin-top: 0;
}

.composer-tab-panel .composer-upload-actions + .composer-options {
  margin-top: 0.7rem;
}

.composer-p18-option {
  margin-top: 0.65rem;
}

.poll-composer {
  display: grid;
  gap: 0.65rem;
}

.poll-option-editors {
  display: grid;
  gap: 0.45rem;
}

.poll-option-editor {
  align-items: center;
  display: grid;
  gap: 0.4rem;
  grid-template-columns: minmax(0, 1fr) 32px;
}

.poll-option-editor button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--muted);
  display: inline-flex;
  font-size: 1.25rem;
  height: 32px;
  justify-content: center;
  padding: 0;
  width: 32px;
}

.poll-option-editor button:hover {
  color: #b42318;
}

.poll-add-option {
  justify-self: start;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
}

.poll-edit-locked {
  border-left: 3px solid var(--brand);
  display: grid;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
}

.poll-edit-locked p {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0 0 0.2rem;
}

.poll-edit-locked span {
  font-size: 0.9rem;
}

.social-poll {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.65rem;
  margin: 0.65rem 0;
  padding: 0.8rem;
}

.social-poll h3 {
  font-size: 1rem;
  margin: 0;
}

.social-poll form,
.social-poll-options {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.social-poll-choice {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  font-size: 0.9rem;
  gap: 0.55rem;
  min-height: 2.65rem;
  padding: 0.5rem 0.65rem;
}

.social-poll-choice:hover {
  background: rgba(76, 159, 32, 0.06);
  border-color: rgba(76, 159, 32, 0.45);
}

.social-poll-choice input {
  accent-color: var(--brand);
  flex: 0 0 auto;
}

.social-poll form > button {
  justify-self: start;
  min-height: 2.1rem;
  padding: 0.35rem 0.8rem;
}

.social-poll-result {
  display: grid;
  gap: 0.25rem;
}

.social-poll-result-head {
  align-items: center;
  display: flex;
  font-size: 0.88rem;
  gap: 0.6rem;
  justify-content: space-between;
}

.social-poll-result.selected .social-poll-result-head span {
  color: var(--accent-dark);
  font-weight: 750;
}

.social-poll-result-bar {
  background: #e7ecef;
  border-radius: 999px;
  height: 7px;
  overflow: hidden;
}

.social-poll-result-bar span {
  background: #9ab0ba;
  display: block;
  height: 100%;
  transition: width 0.25s ease;
}

.social-poll-result.selected .social-poll-result-bar span {
  background: var(--brand);
}

.social-poll-result small,
.social-poll footer {
  color: var(--muted);
  font-size: 0.74rem;
}

.social-poll footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
}

.social-poll-login {
  color: var(--accent-dark);
  font-size: 0.82rem;
}

.social-poll-feedback {
  color: #b42318;
  font-size: 0.82rem;
  margin: 0;
}

.social-post {
  cursor: pointer;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 48px 1fr;
  max-width: 100%;
  min-width: 0;
  padding: 0.85rem;
  position: relative;
  z-index: 0;
}

.social-post.playlist-menu-open {
  z-index: 320;
}

.social-post-main {
  min-width: 0;
}

.repost-label {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  display: inline-flex;
  font-size: 0.86rem;
  gap: 0.35rem;
  grid-column: 1 / -1;
  padding: 0.55rem 0.75rem 0.45rem;
}

.repost-label a {
  color: var(--accent-dark);
  font-weight: 800;
}

.repost-eight {
  color: var(--accent-dark);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
}

.social-post-side {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.social-owner-tools {
  align-items: center;
  display: inline-flex;
  gap: 0.18rem;
  justify-content: center;
}

.social-owner-tools a,
.social-owner-tools button {
  align-items: center;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  height: 1.35rem;
  justify-content: center;
  padding: 0.08rem;
  width: 1.35rem;
}

.social-owner-tools a:hover,
.social-owner-tools button:hover {
  color: var(--accent-dark);
}

.social-owner-tools svg {
  fill: currentColor;
  height: 0.95rem;
  width: 0.95rem;
}

.post-report-tools {
  align-items: center;
  display: inline-flex;
  gap: 0.28rem;
  justify-content: flex-end;
  position: absolute;
  right: 0.65rem;
  top: 0.58rem;
  z-index: 2;
}

.post-report-tools form {
  margin: 0;
}

.post-report-tools button {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.76rem;
  gap: 0.2rem;
  min-height: 1.72rem;
  padding: 0.24rem 0.48rem;
}

.post-report-tools button:hover,
.post-report-flag:hover {
  color: var(--accent-dark);
}

.post-report-flag {
  height: 1.72rem;
  justify-content: center;
  padding: 0.22rem;
  width: 1.72rem;
}

.post-report-flag svg {
  fill: currentColor;
  height: 0.92rem;
  width: 0.92rem;
}

.post-report-dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 72px rgba(16, 38, 53, 0.24);
  max-width: min(430px, calc(100vw - 1.6rem));
  padding: 0.9rem;
  width: 430px;
}

.post-report-dialog::backdrop {
  background: rgba(16, 38, 53, 0.32);
}

.admin-report-reasons {
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.social-post-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  gap: 0.38rem;
}

.social-post-meta a {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  gap: 0.25rem;
}

.social-post-body {
  line-height: 1.45;
  margin: 0.45rem 0;
  overflow-wrap: anywhere;
}

.attached-post-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0.65rem 0;
  max-width: 100%;
  overflow: hidden;
}

.attached-post-card > summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) auto;
  list-style: none;
  padding: 0.7rem;
}

.attached-post-card > summary::-webkit-details-marker {
  display: none;
}

.attached-post-summary-main {
  display: grid;
  gap: 0.42rem;
  min-width: 0;
}

.attached-post-author {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  min-width: 0;
}

.attached-post-author img {
  border-radius: 50%;
  height: 2rem;
  object-fit: cover;
  width: 2rem;
}

.attached-post-author span {
  display: grid;
  min-width: 0;
}

.attached-post-author strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attached-post-author small,
.attached-post-expand {
  color: var(--muted);
  font-size: 0.76rem;
}

.attached-post-expand {
  color: var(--accent-dark);
}

.attached-post-excerpt {
  display: -webkit-box;
  font-size: 0.9rem;
  line-height: 1.4;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.attached-post-preview {
  border-radius: 6px;
  height: 5.5rem;
  object-fit: cover;
  width: 5.5rem;
}

.attached-post-full {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
}

.attached-post-direct {
  align-items: center;
  color: var(--accent-dark);
  display: inline-flex;
  font-size: 0.82rem;
  gap: 0.35rem;
  justify-self: start;
}

.attached-post-direct svg {
  fill: currentColor;
  height: 1rem;
  width: 1rem;
}

.social-translation-note {
  color: var(--muted);
  display: inline-flex;
  font-size: 0.75rem;
  margin: -0.15rem 0 0.35rem;
}

.reply-context {
  background: #f7fbf5;
  border-left: 3px solid var(--accent-light);
  border-radius: 6px;
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  margin: 0.45rem 0 0;
  overflow: hidden;
  padding: 0.42rem 0.55rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hashtag-link {
  color: #1d5fd1;
  font-weight: 800;
}

.hashtag-link.trending {
  color: var(--accent-dark);
}

.post-more-link {
  color: var(--accent-dark);
  font-weight: 850;
  white-space: nowrap;
}

.inline-url {
  align-items: center;
  display: inline-flex;
  gap: 0.18rem;
  max-width: 100%;
  vertical-align: baseline;
}

.inline-url a {
  color: var(--accent-dark);
  font-weight: 750;
  max-width: min(38ch, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-link-button {
  align-items: center;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  height: 1.25rem;
  justify-content: center;
  padding: 0.08rem;
  width: 1.25rem;
}

.copy-link-button svg {
  fill: currentColor;
  height: 0.9rem;
  width: 0.9rem;
}

.copy-link-button.copied {
  color: var(--accent-dark);
}

.social-ad-label,
.social-money-label {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 0.72rem;
  padding: 0.18rem 0.45rem;
}

.social-money-label {
  background: #fff7e5;
  color: #8a5a00;
}

.social-subscriber-label {
  align-items: center;
  background: rgba(76, 159, 32, 0.08);
  border: 1px solid rgba(76, 159, 32, 0.28);
  border-radius: 999px;
  color: var(--accent-dark);
  display: inline-flex;
  font-size: 0.72rem;
  gap: 0.24rem;
  padding: 0.18rem 0.45rem;
}

.social-subscriber-label svg {
  fill: currentColor;
  height: 0.78rem;
  width: 0.78rem;
}

.channel-subscribe-head {
  align-items: center;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 58px minmax(0, 1fr);
}

.channel-subscribe-head img {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  width: 58px;
}

.channel-subscribe-head h1 {
  margin: 0 0 0.15rem;
}

.channel-subscribe-dialog .channel-subscribe-head {
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.9rem;
  padding: 0 2.25rem 0.85rem 0;
}

.channel-subscribe-dialog .channel-subscribe-head h2 {
  font-size: 1.05rem;
  margin: 0 0 0.15rem;
}

.channel-subscribe-dialog .channel-subscribe-head a,
.channel-subscribe-fallback {
  color: var(--accent-dark);
  text-decoration: none;
}

.channel-subscribe-facts {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0.9rem 0;
}

.channel-subscribe-facts > div {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 0.18rem;
  min-width: 0;
  padding: 0.65rem;
}

.channel-subscribe-facts span {
  color: var(--muted);
  font-size: 0.78rem;
}

.channel-subscribe-facts strong {
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.channel-subscribe-fallback {
  display: inline-block;
  font-size: 0.82rem;
  margin-top: 0.8rem;
}

@media (max-width: 520px) {
  .channel-subscribe-facts {
    grid-template-columns: 1fr;
  }
}

.subscriber-post-locked {
  text-align: center;
}

.subscriber-lock-icon {
  align-items: center;
  background: rgba(76, 159, 32, 0.1);
  border-radius: 50%;
  color: var(--brand);
  display: inline-flex;
  height: 3.25rem;
  justify-content: center;
  width: 3.25rem;
}

.subscriber-lock-icon svg {
  fill: currentColor;
  height: 1.55rem;
  width: 1.55rem;
}

.social-media-grid {
  display: grid;
  gap: 0.35rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0.6rem 0;
  overflow: visible;
  position: relative;
  z-index: 5;
}

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

.social-media-grid button {
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
}

.social-media-grid .lightbox-trigger {
  align-items: center;
  display: flex;
  justify-content: center;
  width: 100%;
}

.social-media-grid .lightbox-trigger img {
  aspect-ratio: auto;
  background: transparent;
  border-radius: 8px;
  display: block;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  width: 100%;
}

.social-media-grid video {
  aspect-ratio: 16 / 10;
  background: transparent;
  border-radius: 8px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.short-preview {
  background: transparent;
  border-radius: 8px;
  display: flex;
  height: min(520px, calc((100vw - 2rem) * 1.777));
  justify-content: center;
  margin: 0 auto;
  min-height: 0;
  overflow: hidden;
  position: relative;
  width: min(calc(520px * 0.5625), 100%);
}

.short-preview video {
  aspect-ratio: 9 / 16;
  background: transparent;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.short-preview img {
  aspect-ratio: 9 / 16;
  background: transparent;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.short-preview-landscape img,
.short-preview-landscape video {
  aspect-ratio: 9 / 16;
  width: 100%;
}

.short-preview-square img,
.short-preview-square video {
  aspect-ratio: 9 / 16;
  width: 100%;
}

.short-preview span {
  background: rgba(16, 38, 53, 0.72);
  border-radius: 999px;
  bottom: 0.55rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  left: 50%;
  padding: 0.28rem 0.58rem;
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}

.composer-p18-toggle {
  align-items: center;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.82rem;
  gap: 0.3rem;
  min-height: 2.1rem;
}

.composer-p18-toggle input {
  accent-color: var(--brand);
  height: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.adult-icon {
  align-items: center;
  background: #111827;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.62rem;
  font-weight: 900;
  height: 1.45rem;
  justify-content: center;
  line-height: 1;
  width: 1.45rem;
}

.composer-p18-toggle input:checked + .adult-icon {
  background: #dc2626;
}

.short-upload-preview {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fit, minmax(86px, 132px));
  margin-top: 0.6rem;
}

.upload-preview {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  margin-top: 0.6rem;
}

.upload-preview[hidden] {
  display: none;
}

.upload-progress {
  background: #f7faf8;
  border: 1px solid rgba(48, 124, 26, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 0.4rem;
  margin-top: 0.6rem;
  max-width: 100%;
  padding: 0.65rem;
}

.upload-progress[hidden] {
  display: none;
}

.upload-progress-head {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-size: 0.86rem;
  gap: 0.75rem;
  justify-content: space-between;
  min-width: 0;
}

.upload-progress-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-progress-head strong {
  color: var(--accent-dark);
  font-size: 0.86rem;
  white-space: nowrap;
}

.upload-progress-bar {
  background: rgba(16, 38, 53, 0.1);
  border-radius: 999px;
  height: 0.45rem;
  overflow: hidden;
  width: 100%;
}

.upload-progress-bar span {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  display: block;
  height: 100%;
  transition: width 0.18s ease;
  width: 0;
}

.upload-progress small {
  color: var(--muted);
  font-size: 0.78rem;
}

.upload-preview-tile,
.existing-media-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.35rem;
  overflow: hidden;
  padding: 0.45rem;
}

.upload-preview-tile img,
.existing-media-item img,
.existing-media-item video {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  object-fit: cover;
  width: 100%;
}

.upload-preview-tile audio,
.existing-media-item audio {
  width: 100%;
}

.existing-waveform-banner-preview {
  aspect-ratio: 16 / 5 !important;
  border-radius: 6px;
  object-fit: cover;
}

.upload-preview-tile span,
.existing-media-item span,
.existing-media-item small {
  color: var(--muted);
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.existing-media-editor {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
}

.existing-media-editor h2 {
  font-size: 1rem;
  margin: 0 0 0.65rem;
}

.existing-media-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.short-upload-preview[hidden] {
  display: none;
}

.short-upload-preview-tile {
  background: #07151b;
  border: 1px solid rgba(63, 155, 25, 0.22);
  border-radius: 8px;
  color: #fff;
  overflow: hidden;
}

.short-upload-preview-tile video {
  aspect-ratio: 9 / 16;
  background: #000;
  display: block;
  object-fit: cover;
  width: 100%;
}

.short-upload-preview-tile span {
  display: block;
  font-size: 0.72rem;
  overflow: hidden;
  padding: 0.32rem 0.4rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shorts-page {
  background: #07151b;
  color: #fff;
  flex: 1 0 auto;
  margin: 0;
  min-height: calc(100vh - var(--header-offset));
  overflow: hidden;
}

.shorts-body {
  background: #07151b;
}

.shorts-body .site-header,
.shorts-body .category-subheader,
.shorts-body .site-footer,
.shorts-body .ad-slot,
.shorts-body .ad-popup-backdrop,
.shorts-body .persistent-audio-player {
  display: none !important;
}

.shorts-body .shorts-page {
  min-height: 100vh;
}

.shorts-toolbar {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  justify-content: flex-start;
  left: 0.8rem;
  position: fixed;
  top: 0.8rem;
  z-index: 20;
}

.shorts-toolbar a {
  align-items: center;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  height: 2.15rem;
  justify-content: center;
  padding: 0;
  width: 2.15rem;
}

.shorts-toolbar svg {
  fill: currentColor;
  height: 1.05rem;
  width: 1.05rem;
}

.shorts-viewer {
  height: calc(100vh - var(--header-offset));
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

.shorts-body .shorts-viewer {
  height: 100vh;
}

.short-card {
  align-items: center;
  display: grid;
  height: calc(100vh - var(--header-offset));
  justify-content: center;
  overflow: hidden;
  padding: 0;
  position: relative;
  scroll-snap-align: start;
}

.shorts-body .short-card {
  height: 100vh;
}

.short-video {
  background: transparent;
  border-radius: 0;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
  height: 100vh;
  object-fit: cover;
  width: min(calc(100vh * 0.5625), 100vw);
  z-index: 1;
}

.short-orientation-portrait .short-video {
  aspect-ratio: 9 / 16;
  height: 100vh;
  width: min(calc(100vh * 0.5625), 100vw);
}

.short-orientation-landscape .short-video {
  aspect-ratio: 9 / 16;
  height: 100vh;
  width: min(calc(100vh * 0.5625), 100vw);
}

.short-orientation-square .short-video {
  aspect-ratio: 9 / 16;
  height: 100vh;
  width: min(calc(100vh * 0.5625), 100vw);
}

.short-overlay {
  bottom: 1.4rem;
  display: grid;
  gap: 0.45rem;
  left: 50%;
  max-width: min(100vw - 2rem, 480px);
  padding: 0 0.85rem;
  position: absolute;
  transform: translateX(-50%);
  width: min(100%, 480px);
  z-index: 3;
}

.short-orientation-landscape .short-overlay {
  max-width: min(100vw - 2rem, 760px);
  width: min(100%, 760px);
}

.short-author {
  align-items: center;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  gap: 0.25rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.62);
}

.short-caption {
  background: rgba(0, 0, 0, 0.28);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.35;
  margin: 0;
  padding: 0.36rem 0.5rem;
  text-align: left;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
}

.short-caption.expanded {
  max-height: min(42vh, 280px);
  overflow-y: auto;
}

.short-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.short-actions a,
.short-actions button,
.short-actions span {
  align-items: center;
  background: rgba(0, 0, 0, 0.22);
  border: 0;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  gap: 0.24rem;
  min-height: 1.35rem;
  padding: 0.18rem 0.34rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72);
}

.short-actions form {
  margin: 0;
}

.short-actions svg {
  fill: currentColor;
  height: 0.95rem;
  width: 0.95rem;
}

.short-actions .short-sound-button.active {
  background: rgba(76, 159, 32, 0.42);
  color: #fff;
}

.short-actions [data-sound-off],
.short-actions [data-sound-on] {
  align-items: center;
  background: transparent;
  display: inline-flex;
  min-height: 0;
  padding: 0;
}

.short-actions a > span,
.short-actions button > span,
.short-actions > span > span {
  background: transparent;
  border-radius: 0;
  font-size: 0.72rem;
  line-height: 1;
  min-height: 0;
  padding: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
}

.shorts-viewer:fullscreen,
.shorts-viewer:-webkit-full-screen {
  background: #000;
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  width: 100vw;
}

.shorts-viewer:fullscreen .short-card,
.shorts-viewer:-webkit-full-screen .short-card {
  align-items: center;
  background: #000;
  display: grid;
  height: 100vh;
  justify-content: center;
  padding: 0;
}

.shorts-viewer:fullscreen .short-video,
.shorts-viewer:-webkit-full-screen .short-video {
  border-radius: 0;
  box-shadow: none;
  height: 100vh;
  object-fit: cover;
  width: min(calc(100vh * 0.5625), 100vw);
}

.shorts-viewer:fullscreen .short-overlay,
.shorts-viewer:-webkit-full-screen .short-overlay {
  bottom: 1rem;
  max-width: min(100vw, 760px);
  width: min(100vw, 760px);
}

.social-audio {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  grid-column: 1 / -1;
  display: grid;
  gap: 0;
  grid-template-columns: clamp(86px, 18vw, 160px) minmax(0, 1fr);
  max-width: 100%;
  overflow: visible;
  padding: 0;
  position: relative;
  z-index: 8;
}

.audio-cover-panel {
  background: transparent;
  min-width: 0;
  padding: 0.35rem;
}

.audio-cover-art {
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.audio-cover-fallback {
  align-items: center;
  background: linear-gradient(135deg, #20272b, #0f1417);
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  justify-content: center;
}

.audio-cover-fallback svg {
  height: 2rem;
  width: 2rem;
}

.audio-wave-panel {
  background: transparent;
  background-position: center;
  background-size: cover;
  min-height: clamp(112px, 17vw, 170px);
  overflow: hidden;
  padding: 3.65rem 0.7rem 1.2rem;
  position: relative;
}

.audio-wave-panel.has-banner::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 45%, rgba(0, 0, 0, 0.52));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.audio-wave-panel > * {
  position: relative;
  z-index: 1;
}

.social-audio .audio-play-button {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: #e5e7eb !important;
  border: 1px solid #4b5563 !important;
  border-radius: 50% !important;
  box-sizing: border-box;
  color: #111;
  display: flex;
  flex: 0 0 2.85rem;
  height: 2.85rem;
  justify-content: center;
  left: 0.8rem;
  line-height: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: 0 !important;
  position: absolute;
  top: 0.7rem;
  width: 2.85rem;
  z-index: 3;
}

.social-audio .audio-play-button:hover,
.social-audio .audio-play-button:focus,
.social-audio .audio-play-button:active {
  background: #e5e7eb !important;
  border-color: #4b5563 !important;
  color: #111;
}

.social-audio .audio-play-button svg {
  fill: currentColor;
  height: 1.25rem;
  margin: 0 0 0 0.08rem;
  width: 1.25rem;
}

.audio-overlay-title {
  align-items: flex-start;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  left: 4.2rem;
  max-width: min(52%, 28rem);
  position: absolute;
  top: 0.75rem;
}

.audio-overlay-title span,
.audio-overlay-title strong {
  background: transparent;
  border-radius: 2px;
  color: var(--ink);
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  padding: 0.14rem 0.38rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-overlay-title span {
  color: var(--muted);
  font-size: 0.72rem;
}

.audio-overlay-title strong {
  font-size: 0.86rem;
}

.audio-overlay-age {
  color: var(--muted);
  font-size: 0.72rem;
  position: absolute;
  right: 0.75rem;
  top: 0.55rem;
}

.audio-genre-pill,
.audio-duration-pill {
  background: transparent;
  border-radius: 2px;
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1;
  padding: 0.28rem 0.45rem;
  position: absolute;
  right: 0.7rem;
}

.audio-genre-pill {
  top: 2.1rem;
}

.audio-duration-pill {
  bottom: 0.58rem;
}

.audio-wave-panel.has-banner .audio-overlay-title span,
.audio-wave-panel.has-banner .audio-overlay-title strong,
.audio-wave-panel.has-banner .audio-genre-pill,
.audio-wave-panel.has-banner .audio-duration-pill,
.audio-wave-panel.has-banner .audio-overlay-age {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.audio-wave-panel.has-banner .audio-overlay-title span {
  color: var(--muted);
}

.waveform {
  --audio-progress: 0%;
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: flex;
  gap: 0;
  height: clamp(52px, 8vw, 84px);
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}

.waveform::after {
  background: linear-gradient(90deg, rgba(63, 155, 25, 0.24), rgba(148, 205, 28, 0.1));
  content: "";
  inset: 0 auto 0 0;
  pointer-events: none;
  position: absolute;
  width: var(--audio-progress);
}

.waveform.with-waveform-banner {
  background-position: center;
  background-size: cover;
}

.waveform span {
  background: rgba(30, 54, 63, 0.72);
  border-radius: 1px;
  flex: 1 1 1px;
  min-width: 1px;
  opacity: 0.86;
  position: relative;
  z-index: 2;
  transform: scaleX(0.46);
  transform-origin: center;
}

.audio-wave-panel.has-banner .waveform span {
  background: rgba(255, 255, 255, 0.88);
}

.audio-wave-panel.has-banner .waveform::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08));
}

.waveform.active span {
  opacity: 0.72;
}

.audio-track-stats {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.76rem;
  gap: 0.35rem 0.5rem;
}

.audio-showcase-footer {
  align-items: center;
  background: transparent;
  display: flex;
  gap: 0.75rem;
  grid-column: 1 / -1;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
}

.audio-meta-row,
.audio-inline-actions {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  grid-column: 1 / -1;
}

.audio-meta-row {
  justify-content: space-between;
}

.audio-meta-row span {
  color: var(--muted);
  font-size: 0.82rem;
}

.audio-inline-actions {
  flex-wrap: wrap;
}

.audio-inline-actions form,
.audio-playlist-menu {
  margin: 0;
}

.audio-inline-actions button,
.audio-inline-actions a,
.audio-playlist-menu summary {
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 0;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  min-height: 2rem;
  padding: 0;
  width: 2rem;
}

.audio-inline-actions svg {
  height: 1.1rem;
  width: 1.1rem;
}

.audio-icon-action {
  border-radius: 999px;
  text-decoration: none;
}

.audio-icon-action:hover,
.audio-inline-actions button:hover,
.audio-playlist-menu summary:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.audio-playlist-menu {
  position: relative;
  z-index: 50;
}

.audio-playlist-menu[open] {
  z-index: 360;
}

.audio-playlist-menu summary {
  list-style: none;
}

.audio-playlist-menu summary::-webkit-details-marker {
  display: none;
}

.playlist-add-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(16, 38, 53, 0.14);
  display: grid;
  gap: 0.35rem;
  grid-template-columns: minmax(150px, 1fr) auto;
  left: 0;
  min-width: min(280px, calc(100vw - 2rem));
  padding: 0.55rem;
  position: absolute;
  top: calc(100% + 0.35rem);
  z-index: 380;
}

.playlist-add-form [data-new-playlist-field] {
  grid-column: 1 / -1;
}

.playlist-add-form [data-new-playlist-field][hidden] {
  display: none;
}

.playlist-add-form select,
.playlist-add-form input {
  min-height: 2rem;
  width: 100%;
}

.playlist-add-form button {
  background: var(--accent-dark);
  color: #fff;
}

.playlist-grid {
  display: grid;
  gap: 0.75rem;
}

.playlist-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
}

.playlist-track-list {
  display: grid;
  gap: 0.35rem;
}

.playlist-track {
  align-items: center;
  background: var(--soft);
  border-radius: 8px;
  box-sizing: border-box;
  color: var(--ink);
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(0, 1fr) auto;
  height: auto;
  justify-content: stretch;
  min-height: 2.35rem;
  padding: 0.45rem 0.6rem;
  text-align: left;
  width: 100%;
}

.playlist-track.audio-play-button {
  border-radius: 8px;
  display: grid;
  font-size: 0.9rem;
  height: auto;
  justify-content: stretch;
  padding: 0.45rem 0.6rem;
  width: 100%;
}

.playlist-track span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-track small {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.playlist-play-button {
  align-items: center;
  background: #e5e7eb !important;
  border: 1px solid #4b5563 !important;
  border-radius: 50% !important;
  box-sizing: border-box;
  color: #111;
  display: inline-flex;
  flex: 0 0 2.1rem;
  height: 2.1rem;
  justify-content: center;
  margin-bottom: 0.45rem;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: 0 !important;
  width: 2.1rem;
}

.playlist-play-button:hover,
.playlist-play-button:focus,
.playlist-play-button:active {
  background: #e5e7eb !important;
  border-color: #4b5563 !important;
  color: #111;
}

.playlist-play-button strong {
  clip: rect(0 0 0 0);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.playlist-play-button svg {
  fill: currentColor;
  height: 1rem;
  margin-left: 0.06rem;
  width: 1rem;
}

.playlist-total-duration {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  margin-top: 0.4rem;
  text-align: right;
}

.persistent-audio-player {
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(249, 252, 248, 0.96);
  border: 0;
  border-top: 1px solid #b9d8b1;
  border-radius: 0;
  bottom: 0;
  box-shadow: 0 -3px 12px rgba(35, 91, 43, 0.08);
  box-sizing: border-box;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: auto auto minmax(0, 980px);
  justify-content: center;
  left: 0;
  max-width: 100vw;
  min-height: 0;
  padding: 0.3rem 0.75rem;
  position: fixed;
  transform: none;
  width: 100%;
  z-index: 120;
}

.persistent-audio-player button {
  background: #dff1d8;
  border: 1px solid #9fc995;
  border-radius: 999px;
  color: #2f6f35;
  height: 1.55rem;
  min-height: 0;
  padding: 0;
  transition: none;
  width: 1.55rem;
}

.persistent-audio-player button:hover,
.persistent-audio-player button:focus {
  background: #dff1d8;
  border-color: #9fc995;
  color: #2f6f35;
  outline: 0;
}

.persistent-audio-player button.active,
.persistent-audio-player button.active:hover,
.persistent-audio-player button.active:focus {
  background: #cce8c3;
  border-color: #82b777;
  color: #245d2a;
}

.persistent-audio-player button svg {
  height: 0.95rem;
  width: 0.95rem;
}

.persistent-audio-main {
  align-items: center;
  display: grid;
  gap: 0.35rem;
  grid-template-columns: minmax(140px, 220px) 1.8rem 1.8rem 1.8rem minmax(280px, 1fr) auto 1.8rem minmax(82px, 120px);
  max-width: 980px;
  min-width: 0;
  width: min(980px, calc(100vw - 6rem));
}

.persistent-audio-player audio {
  height: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 0;
}

.persistent-audio-title {
  min-width: 0;
}

.persistent-audio-title strong {
  display: block;
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.persistent-audio-title small {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  line-height: 1;
}

.persistent-player-waveform {
  --audio-progress: 0%;
  align-items: center;
  background: transparent;
  border: 1px solid rgba(63, 155, 25, 0.18);
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  gap: 0;
  height: 36px;
  overflow: hidden;
  padding: 0.1rem 0.18rem;
  position: relative;
  touch-action: manipulation;
  width: 100%;
}

.persistent-player-waveform::before {
  background: linear-gradient(90deg, rgba(63, 155, 25, 0.4), rgba(148, 205, 28, 0.2));
  content: "";
  inset: 0 auto 0 0;
  pointer-events: none;
  position: absolute;
  width: var(--audio-progress);
  z-index: 1;
}

.persistent-player-waveform span {
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  border-radius: 1px 1px 0 0;
  flex: 1 1 1px;
  min-width: 1px;
  opacity: 0.62;
  position: relative;
  transform: scaleX(0.46) translateY(18%);
  transform-origin: center;
  z-index: 2;
}

.persistent-audio-prev,
.persistent-audio-play,
.persistent-audio-next,
.persistent-audio-mute {
  background: #dff1d8;
  border-color: #9fc995;
  color: #2f6f35;
}

.persistent-audio-play.active,
.persistent-audio-play.active:hover,
.persistent-audio-play.active:focus {
  background: #cce8c3;
  border-color: #82b777;
  color: #245d2a;
}

.persistent-audio-time {
  color: var(--muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.persistent-audio-volume {
  accent-color: var(--accent-dark);
  height: 1.4rem;
  max-width: 120px;
  min-width: 82px;
  width: 100%;
}

.persistent-player-waveform:focus-visible {
  outline: 2px solid rgba(63, 155, 25, 0.38);
  outline-offset: 2px;
}

@media (max-width: 840px) {
  .persistent-audio-player {
    align-items: center;
    box-sizing: border-box;
    display: grid;
    gap: 0.22rem;
    grid-template-columns: 1.55rem 1.55rem minmax(0, 1fr);
    left: 0;
    max-width: 100%;
    overflow: hidden;
    padding: 0.22rem 0.45rem;
    right: 0;
    width: auto;
  }

  .persistent-audio-player .persistent-audio-title {
    align-self: center;
    min-width: 0;
    overflow: hidden;
  }

  .persistent-audio-main {
    gap: 0.18rem;
    grid-template-columns: 1.8rem 1.8rem 1.8rem minmax(0, 1fr) auto 1.8rem;
    max-width: none;
    width: 100%;
  }

  .persistent-audio-title {
    grid-column: 1 / -1;
  }

  .persistent-player-waveform {
    height: 30px;
  }

  .persistent-audio-time {
    font-size: 0.72rem;
  }

  .persistent-audio-volume {
    grid-column: 1 / -1;
    max-width: none;
    width: 100%;
  }

  .persistent-audio-player audio {
    height: 0;
    width: 0;
  }
}

.timeline-only {
  grid-template-columns: minmax(180px, 1fr) minmax(0, 780px) minmax(240px, 1fr);
  max-width: 1480px;
  justify-content: stretch;
}

.timeline-only > .social-feed {
  grid-column: 2;
  min-width: 0;
}

.timeline-only > .profile-timeline-center {
  grid-column: 2;
  min-width: 0;
  width: 100%;
}

.profile-timeline-center .admin-panel,
.profile-timeline-center .profile-mode-tabs,
.profile-timeline-center .x-profile-hero,
.profile-timeline-center .profile-story-card,
.profile-timeline-center .profile-playlist,
.profile-timeline-center .social-playlist-card {
  background: transparent;
}

.profile-timeline-center .x-profile-topbar {
  background: rgba(255, 255, 255, 0.58);
}

.timeline-only > .premium-timeline-center {
  grid-column: 2;
  min-width: 0;
  width: 100%;
}

.social-audio-meta {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0.3rem 0;
}

.social-linked-listing {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 72px 1fr;
  margin: 0.6rem 0;
  overflow: hidden;
  padding: 0.45rem;
}

.social-linked-listing img {
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
}

.social-linked-listing small {
  color: var(--muted);
  display: block;
}

.social-playlist-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.45rem;
  margin: 0.6rem 0;
  padding: 0.65rem;
}

.social-playlist-card > small {
  color: var(--muted);
}

.social-actions {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.55rem;
  grid-column: 1 / -1;
  justify-content: center;
  margin: 0.15rem -0.85rem -0.85rem;
  min-width: 0;
  padding: 0.42rem 0.65rem;
}

.social-actions a,
.social-actions button,
.social-actions span {
  align-items: center;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.28rem 0.35rem;
  white-space: nowrap;
}

.social-actions form {
  min-width: 0;
}

.social-actions svg {
  fill: currentColor;
  height: 1rem;
  width: 1rem;
}

.social-actions .active {
  color: var(--accent-dark);
}

@media (max-width: 520px) {
  .short-card {
    padding: 0;
  }

  .short-orientation-portrait .short-video {
    border-radius: 0;
    height: 100vh;
    width: 100vw;
  }

  .short-orientation-landscape .short-video,
  .short-orientation-square .short-video {
    border-radius: 0;
    height: 100vh;
    max-height: 100vh;
    width: 100vw;
  }

  .short-overlay,
  .short-orientation-landscape .short-overlay {
    bottom: 1rem;
    max-width: 100vw;
    width: 100vw;
  }

  .post-report-tools {
    grid-column: 1 / -1;
    justify-content: flex-end;
    margin: -0.25rem 0 0;
    position: static;
  }

  .post-report-tools button {
    font-size: 0.72rem;
    min-height: 1.6rem;
    padding: 0.2rem 0.38rem;
  }

  .social-actions {
    justify-content: space-around;
    margin-left: -0.85rem;
    margin-right: -0.85rem;
  }

  .social-actions a,
  .social-actions button,
  .social-actions span {
    font-size: 0.8rem;
    gap: 0.16rem;
    padding: 0.26rem 0.24rem;
  }

  .social-actions svg {
    height: 0.95rem;
    width: 0.95rem;
  }

  .profile-rating-popover > summary > span {
    display: none;
  }
}

.x-profile-banner {
  background: var(--soft);
  border: 0;
  border-radius: 0;
  display: block;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.x-profile-topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 38px 1fr;
  min-height: 3.25rem;
  padding: 0.35rem 0.8rem;
  position: sticky;
  top: var(--header-offset);
  z-index: 6;
}

.x-profile-topbar > a {
  align-items: center;
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.x-profile-topbar > a:hover {
  background: var(--soft);
}

.x-profile-topbar svg {
  fill: currentColor;
  height: 1.25rem;
  width: 1.25rem;
}

.x-profile-topbar strong {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: 1.04rem;
  gap: 0.22rem;
  line-height: 1.15;
}

.x-profile-topbar span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  margin-top: 0.08rem;
}

.x-profile-banner:hover,
.x-profile-banner:focus,
.x-profile-banner:active {
  background: var(--soft);
  outline: 0;
}

.x-profile-banner img {
  aspect-ratio: 4 / 1;
  min-height: 160px;
  width: 100%;
}

.x-profile-avatar-row {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-top: -76px;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

.x-profile-head {
  align-items: flex-start;
  border: 0;
  box-shadow: none;
  justify-content: flex-start;
  margin-top: 0;
  min-width: 0;
  padding: 0.65rem 1rem 1rem;
  position: relative;
  z-index: 1;
}

.x-profile-head > div {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.x-profile-head h1 {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: 1.28rem;
  gap: 0.25rem;
  line-height: 1.15;
  margin: 0;
}

.x-profile-handle {
  color: var(--muted);
  font-size: 0.92rem;
}

.x-profile-bio {
  color: var(--ink);
  line-height: 1.35;
  margin: 0.55rem 0 0;
}

.x-profile-actions {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  margin-top: 88px;
}

.x-profile-actions form {
  margin: 0;
}

.x-profile-more-menu {
  position: relative;
}

.x-profile-more-menu > summary {
  cursor: pointer;
  list-style: none;
}

.x-profile-more-menu > summary::-webkit-details-marker {
  display: none;
}

.x-profile-more-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.2);
  display: grid;
  min-width: 245px;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 80;
}

.x-profile-more-panel button,
.x-profile-more-panel > a {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 0;
  padding: 0.72rem 0.85rem;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.x-profile-more-panel button:hover,
.x-profile-more-panel button:focus,
.x-profile-more-panel > a:hover,
.x-profile-more-panel > a:focus {
  background: var(--soft);
}

.x-profile-more-panel button.danger {
  color: var(--danger);
}

.x-profile-mobile-message-menu {
  display: none !important;
}

.profile-action-dialog {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  max-height: calc(100vh - 2rem);
  max-width: min(520px, calc(100vw - 2rem));
  overflow: auto;
  padding: 1.2rem;
  width: 520px;
}

.profile-action-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
}

.profile-action-dialog h2 {
  font-size: 1.05rem;
  margin: 0 2rem 1rem 0;
}

.profile-dialog-close {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  min-height: 0;
  padding: 0.35rem;
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  width: 2rem;
}

.profile-dialog-close svg {
  fill: currentColor;
  height: 1.25rem;
  width: 1.25rem;
}

.profile-account-facts {
  display: grid;
  gap: 0.6rem 1rem;
  grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
}

.profile-account-facts span,
.profile-list-view span {
  color: var(--muted);
}

.profile-list-options,
.profile-list-view {
  display: grid;
  gap: 0.45rem;
}

.profile-list-options label,
.profile-list-view > div {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 0.6rem;
  justify-content: space-between;
  padding: 0.55rem 0;
}

.profile-list-options input {
  flex: 0 0 auto;
  width: auto;
}

.x-profile-icon-button,
.x-profile-follow-button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 2.35rem;
  text-decoration: none;
}

.x-profile-icon-button {
  background: #fff;
  color: var(--ink);
  min-width: 2.55rem;
  padding: 0 0.55rem;
}

.x-profile-icon-button svg {
  fill: currentColor;
  height: 1.28rem;
  width: 1.28rem;
}

.x-profile-subscribe-button {
  color: #111827;
}

.x-profile-actions .x-profile-subscribe-button.active,
.x-profile-actions .x-profile-subscribe-button.active:hover,
.x-profile-actions .x-profile-subscribe-button.active:focus {
  background: #dff1d8 !important;
  border-color: #9fc995 !important;
  color: #2f6f35 !important;
  outline: 0;
}

.x-profile-actions .x-profile-subscribe-button.active svg {
  fill: #2f6f35;
}

.x-profile-follow-button {
  background: var(--ink);
  color: #fff;
  padding: 0.45rem 1.05rem;
}

.x-profile-follow-button.secondary {
  background: #fff;
  color: var(--ink);
}

.profile-social-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.profile-social-link {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.28rem;
  min-height: 2rem;
  padding: 0.35rem 0.58rem;
}

.profile-social-link svg {
  fill: currentColor;
  height: 1rem;
  width: 1rem;
}

.profile-social-link.website {
  color: var(--accent-dark);
}

.profile-social-link.telegram {
  color: #229ed9;
}

.profile-social-link.whatsapp {
  color: #128c7e;
}

.profile-social-link.x {
  color: #101828;
}

.profile-social-link.facebook {
  color: #1877f2;
}

.profile-social-link.instagram {
  color: #c13584;
}

.profile-social-link.discord {
  color: #5865f2;
}

.x-profile-avatar-row .profile-avatar-button {
  --avatar-size: clamp(112px, 13vw, 156px);
  align-items: center;
  background: #fff;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(16, 43, 58, 0.18);
  display: inline-flex;
  flex: 0 0 var(--avatar-size);
  height: var(--avatar-size);
  justify-content: center;
  max-height: var(--avatar-size);
  max-width: var(--avatar-size);
  min-height: var(--avatar-size);
  min-width: var(--avatar-size);
  overflow: hidden;
  padding: 0;
  width: var(--avatar-size);
}

.x-profile-hero .profile-social-stats {
  gap: 0.75rem;
  margin-top: 0.7rem;
}

.x-profile-hero .profile-follow-popover > summary {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
  height: auto;
  padding: 0;
}

.x-profile-hero .profile-rating-popover > summary.profile-rating-summary-plain {
  all: unset;
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  line-height: 1;
}

.x-profile-hero .profile-rating-popover > summary.profile-rating-summary-plain strong {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 800;
  gap: 0.35rem;
  line-height: 1;
  padding: 0;
}

.x-profile-hero .profile-rating-popover > summary.profile-rating-summary-plain .review-stars {
  background: transparent;
  border: 0;
  border-radius: 0;
  display: inline-flex;
  font-size: 1.05rem;
  gap: 0.08rem;
  line-height: 1;
  padding: 0;
}

.x-profile-hero .profile-rating-popover > summary.profile-rating-summary-plain .review-star {
  background: transparent;
  border: 0;
  border-radius: 0;
  display: inline-block;
  margin-right: 0;
  padding: 0;
}

.x-profile-hero .profile-rating-popover > summary.profile-rating-summary-plain:hover,
.x-profile-hero .profile-rating-popover > summary.profile-rating-summary-plain:focus {
  background: transparent;
  color: var(--ink);
  outline: 0;
}

.x-profile-hero .profile-rating-popover > summary.profile-rating-summary-plain strong > span {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  font-size: 0.92rem;
  padding: 0;
}

.profile-social-stats > .profile-subscriber-rating-group {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
  cursor: default;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: inherit;
  font-weight: inherit;
  gap: 0.75rem;
  height: auto;
  min-height: 0;
  padding: 0;
}

.profile-about-shell {
  min-width: 0;
}

.profile-about-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 0.75rem;
  padding: 1rem;
}

.profile-about-identity {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 0.8rem;
  padding-bottom: 1rem;
}

.profile-about-identity img {
  border: 1px solid var(--line);
  border-radius: 50%;
  height: 52px;
  object-fit: cover;
  width: 52px;
}

.profile-about-identity > div {
  display: grid;
  gap: 0.18rem;
}

.profile-about-identity a,
.profile-about-facts a {
  color: var(--accent-dark);
  text-decoration: none;
}

.profile-about-facts {
  margin: 0;
}

.profile-about-facts > div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(130px, 0.7fr) minmax(0, 1fr);
  padding: 0.9rem 0;
}

.profile-about-facts > div:last-child {
  border-bottom: 0;
}

.profile-about-facts dt {
  color: var(--muted);
}

.profile-about-facts dd {
  display: grid;
  gap: 0.18rem;
  margin: 0;
}

.profile-about-facts dd span {
  color: var(--muted);
  font-size: 0.82rem;
}

.x-profile-hero .profile-rating-popover > summary > span {
  color: var(--muted);
}

.x-profile-hero .profile-follow-popover > summary strong {
  color: var(--ink);
  font-weight: 850;
}

.profile-avatar-button .profile-avatar {
  border: 0;
  box-shadow: none;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  min-height: 100%;
  min-width: 100%;
  width: 100%;
}

.profile-mode-tabs {
  padding: 0.35rem;
}

@media (max-width: 900px) {
  .social-layout {
    grid-template-columns: 1fr;
  }

  .social-side,
  .timeline-left-panel {
    display: none;
  }

  .composer-options,
  .composer-options.compact {
    grid-template-columns: 1fr;
  }

  .composer-toolbar {
    align-items: stretch;
  }

  .composer-submit-button {
    margin-left: auto;
  }

  .composer-icon-action {
    height: 2.9rem;
    min-height: 2.9rem;
    width: 2.9rem;
  }

  .composer-icon-action svg {
    height: 1.72rem;
    width: 1.72rem;
  }

  .composer-emoji-picker {
    grid-template-columns: repeat(4, 2.65rem);
  }

  .composer-emoji-picker button {
    height: 2.65rem;
    width: 2.65rem;
  }

  .composer-camera-action {
    display: grid;
  }

  .composer-more {
    margin-left: 0;
  }

  .composer-monetization {
    margin-left: 0;
  }

  .composer-tab-list button {
    flex-direction: column;
    font-size: 0.72rem;
    gap: 0.15rem;
    min-height: 3rem;
    padding-inline: 0.12rem;
  }

  .composer-tab-list svg {
    height: 1rem;
    width: 1rem;
  }

  .composer-upload-actions {
    grid-template-columns: 1fr;
  }

  .x-profile-head {
    align-items: flex-start;
    display: block;
  }

  .x-profile-topbar {
    top: var(--header-offset);
  }

  .x-profile-avatar-row {
    margin-top: -58px;
    padding: 0 0.8rem;
  }

  .x-profile-actions {
    gap: 0.3rem;
    margin-top: 66px;
  }

  .x-profile-follow-button {
    min-height: 2.15rem;
    padding: 0.38rem 0.85rem;
  }
}

@media (max-width: 520px) {
  .x-profile-avatar-row .profile-avatar-button {
    --avatar-size: 104px;
  }

  .x-profile-banner img {
    min-height: 132px;
  }

  .x-profile-head {
    padding: 0.55rem 0.8rem 0.9rem;
  }

  .x-profile-head h1 {
    font-size: 1.15rem;
  }

  .x-profile-hero .profile-social-stats {
    gap: 0.45rem 0.65rem;
  }

  .x-profile-hero .profile-follow-popover > summary {
    font-size: 0.82rem;
  }

  .profile-follow-list {
    left: 0;
    max-width: calc(100vw - 2rem);
    min-width: min(220px, calc(100vw - 2rem));
  }
}

@media (max-width: 900px) {
  .social-audio.audio-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-inline: auto;
    max-width: 360px;
    overflow: visible;
  }

  .social-audio .audio-cover-panel {
    grid-column: 1;
    padding: 0.35rem;
    width: 100%;
  }

  .social-audio .audio-cover-art {
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    width: 100%;
  }

  .social-audio .audio-wave-panel {
    aspect-ratio: 1 / 1;
    background: transparent !important;
    grid-column: 1;
    inset: 0.35rem 0.35rem auto;
    min-height: 0;
    overflow: visible;
    padding: 0;
    pointer-events: none;
    position: absolute;
  }

  .social-audio .audio-wave-panel::before,
  .social-audio .audio-overlay-title,
  .social-audio .audio-overlay-age,
  .social-audio .audio-genre-pill,
  .social-audio .audio-duration-pill,
  .social-audio .waveform {
    display: none;
  }

  .social-audio .audio-play-button {
    background: rgba(223, 241, 216, 0.9) !important;
    border-color: rgba(111, 157, 101, 0.92) !important;
    color: #245d2a;
    height: 3.25rem;
    left: 50%;
    pointer-events: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 3.25rem;
  }

  .social-audio .audio-play-button:hover,
  .social-audio .audio-play-button:focus,
  .social-audio .audio-play-button:active {
    background: rgba(223, 241, 216, 0.9) !important;
    border-color: rgba(111, 157, 101, 0.92) !important;
    color: #245d2a;
  }

  .social-audio .audio-showcase-footer {
    grid-column: 1;
    padding: 0.45rem 0.55rem;
  }
}

@media (max-width: 520px) {
  .attached-post-card > summary {
    gap: 0.55rem;
    padding: 0.6rem;
  }

  .attached-post-preview {
    height: 4.4rem;
    width: 4.4rem;
  }

  .attached-post-full {
    padding: 0.6rem;
  }
}

@media (max-width: 900px) {
  .mobile-timeline-ui .social-layout.timeline-only {
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
  }

  .mobile-timeline-ui .timeline-only > .social-feed,
  .mobile-timeline-ui .timeline-only > .profile-timeline-center,
  .mobile-timeline-ui .timeline-only > .premium-timeline-center {
    grid-column: 1;
    min-width: 0;
    width: 100%;
  }

  .mobile-timeline-ui .profile-timeline-center {
    margin: 0;
    max-width: none;
    padding: 0;
  }

  .mobile-timeline-ui .x-profile-shell {
    gap: 0.75rem;
  }

  .mobile-timeline-ui .x-profile-topbar {
    top: var(--header-offset);
    transition: top 0.22s ease;
  }

  .mobile-timeline-ui.mobile-header-hidden .x-profile-topbar {
    top: 0;
  }

  .mobile-timeline-ui .x-profile-message-button {
    display: none;
  }

  .mobile-timeline-ui .x-profile-mobile-message-menu {
    align-items: center;
    display: flex !important;
    gap: 0.5rem;
  }

  .mobile-timeline-ui .x-profile-mobile-message-menu svg {
    fill: currentColor;
    height: 1rem;
    width: 1rem;
  }

  .mobile-timeline-ui .x-profile-more-panel {
    left: 50%;
    max-height: calc(100dvh - 2rem);
    min-width: 0;
    overflow-y: auto;
    position: fixed;
    right: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(320px, calc(100vw - 2rem));
    z-index: 120;
  }

  .mobile-timeline-ui.mobile-profile-ui {
    --header-offset: 48px;
  }

  .mobile-timeline-ui.mobile-profile-ui .site-header {
    grid-template-rows: 48px;
  }

  .mobile-timeline-ui.mobile-profile-ui .timeline-header-grid {
    display: none;
  }

  .mobile-timeline-ui.mobile-profile-ui .x-profile-topbar {
    margin-bottom: -2px;
    top: var(--header-offset);
    z-index: 7;
  }

  .mobile-timeline-ui.mobile-profile-ui.mobile-header-hidden .x-profile-topbar {
    top: 0;
  }
}

.x-profile-topbar .premium-check-badge {
  color: #fff;
  display: inline-flex;
  margin-top: 0;
}

.x-profile-topbar .premium-check-institution {
  color: #111827;
}
