@font-face {
  font-family: "Pelak";
  src: url("fonts/Pelak-Thin.woff2") format("woff2"), url("fonts/Pelak-Thin.woff") format("woff");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pelak";
  src: url("fonts/Pelak-light.woff2") format("woff2"), url("fonts/Pelak-light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pelak";
  src: url("fonts/Pelak-Regular.woff2") format("woff2"), url("fonts/Pelak-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pelak";
  src: url("fonts/Pelak-Medium.woff2") format("woff2"), url("fonts/Pelak-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pelak";
  src: url("fonts/Pelak-SemiBold.woff2") format("woff2"), url("fonts/Pelak-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pelak";
  src: url("fonts/Pelak-Bold.woff2") format("woff2"), url("fonts/Pelak-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pelak";
  src: url("fonts/Pelak-ExtraBold.woff2") format("woff2"), url("fonts/Pelak-ExtraBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pelak";
  src: url("fonts/Pelak-Black.woff2") format("woff2"), url("fonts/Pelak-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3f0e9;
  --surface: #fffdf8;
  --surface-strong: #ebe6da;
  --ink: #151514;
  --muted: #736f68;
  --line: #d8d0c3;
  --accent: #353b34;
  --accent-dark: #151514;
  --green: #3d473d;
  --nav: rgba(255, 253, 248, 0.92);
  --shadow: 0 18px 55px rgba(24, 22, 18, 0.09);
  color-scheme: light;
  font-family: "Pelak", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

.material-symbols-rounded.local-icon {
  display: inline-flex;
  width: 1em;
  height: 1em;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex: 0 0 auto;
}

.material-symbols-rounded.local-icon svg {
  width: 1em;
  height: 1em;
  display: block;
}

.public-share-page {
  padding-bottom: 0;
}

.public-share-page .topbar,
.public-share-page .bottom-nav,
.public-share-page .app-menu-overlay {
  display: none !important;
}

.public-share-page .main-content {
  padding-top: clamp(18px, 5vw, 36px);
}

.public-share-page .shared-handle-link {
  cursor: default;
}

.shared-brand {
  display: grid;
  justify-items: center;
  margin-bottom: 18px;
}

.shared-brand img {
  display: block;
  width: min(112px, 34vw);
  height: auto;
}

.shared-brand-link {
  display: block;
  opacity: 0.85;
  transition: opacity 0.15s;
}

.shared-brand-link:hover {
  opacity: 1;
}

/* فقط برای بازدیدکننده‌های بدون حساب نمایش بده */
.guest-brand {
  display: none;
}

body.is-guest .guest-brand {
  display: grid;
}

button {
  cursor: pointer;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  gap: 12px;
  padding: 14px clamp(16px, 4vw, 42px);
  background: var(--nav);
  border-bottom: 1px solid rgba(222, 216, 206, 0.7);
  backdrop-filter: blur(18px);
}

.topbar-brand-row,
.topbar-search-row {
  display: grid;
  align-items: center;
  gap: 12px;
}

.topbar-brand-row {
  grid-template-columns: 42px 1fr 42px;
}

.topbar-search-row {
  grid-template-columns: minmax(0, 1fr) 46px 46px;
}

.app-lockup {
  justify-self: center;
  width: min(92px, 28vw);
  height: auto;
  display: block;
}

body:has(#signupView.is-active) .topbar,
body:has(#signupView.is-active) .bottom-nav,
body:has(#onboardingView.is-active) .bottom-nav {
  display: none;
}

body:has(#signupView.is-active) .main-content {
  max-width: none;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-block: 32px;
}

[hidden],
.beta-placeholder-section {
  display: none !important;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline: clamp(16px, 4vw, 42px);
  display: grid;
  gap: 8px;
  max-width: 860px;
  margin-inline: auto;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-result {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: right;
}

.search-result:hover {
  background: var(--surface-strong);
}

.search-submit-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
}

.search-submit-button .material-symbols-rounded {
  font-size: 22px;
  font-variation-settings: "FILL" 0, "wght" 460, "GRAD" 0, "opsz" 22;
}

.search-cover {
  width: 54px;
  height: 54px;
  border-radius: 6px;
  background: var(--cover);
  background-size: cover;
  background-position: center;
}

.artist-search-cover {
  border-radius: 50%;
}

.search-result p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.result-type-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  opacity: 0.7;
  margin-bottom: 2px;
}

.no-search-result {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.no-search-result strong,
.no-search-result p {
  margin: 0;
}

.no-search-result p {
  color: var(--muted);
  line-height: 1.8;
}

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

.missing-action {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 900;
}

.missing-action-primary {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
}

.missing-action-secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.search-note {
  margin: 0;
  padding: 10px;
}

.avatar-button,
.menu-button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ink);
  color: var(--surface);
  font-weight: 800;
}

.menu-button {
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--ink);
}

.menu-button .material-symbols-rounded {
  font-size: 25px;
  font-variation-settings: "FILL" 0, "wght" 450, "GRAD" 0, "opsz" 24;
}

.notification-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
}

.notification-button .material-symbols-rounded {
  font-size: 24px;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.notification-dot {
  position: absolute;
  top: 6px;
  inset-inline-end: 7px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--ink);
}

.notification-panel {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 35;
  display: grid;
  gap: 6px;
  width: min(380px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.notification-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  width: 100%;
  min-height: 62px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  padding: 8px;
  text-align: right;
}

.notification-item.is-unread::after {
  content: "";
  position: absolute;
  top: 12px;
  inset-inline-end: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}

.notification-item:hover {
  background: var(--surface-strong);
}

.notification-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-strong);
}

.notification-copy {
  display: grid;
  gap: 3px;
}

.notification-copy strong {
  font-size: 13px;
  line-height: 1.6;
}

.notification-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.notification-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.notification-empty {
  margin: 0;
  padding: 12px;
}

.global-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0 16px;
  height: 46px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.global-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search-icon {
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.main-content {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 42px) 108px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
  animation: viewFadeIn 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 280ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  .view.is-active {
    animation: none;
  }
}

.hero-panel,
.artist-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding: clamp(26px, 5vw, 54px);
  min-height: 260px;
  background:
    linear-gradient(135deg, rgba(25, 24, 22, 0.9), rgba(40, 104, 93, 0.86)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='520'%3E%3Crect width='800' height='520' fill='%23d9d2c4'/%3E%3Crect x='72' y='42' width='230' height='230' fill='%23353b34'/%3E%3Crect x='310' y='42' width='230' height='230' fill='%23736f68'/%3E%3Crect x='548' y='42' width='180' height='230' fill='%23151514'/%3E%3Ccircle cx='185' cy='356' r='98' fill='%23151514'/%3E%3Ccircle cx='185' cy='356' r='24' fill='%23f3f0e9'/%3E%3Crect x='330' y='310' width='320' height='110' fill='%23fffdf8'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  color: white;
  box-shadow: var(--shadow);
}

.artist-hero {
  position: relative;
  display: flex;
  min-height: 420px;
  margin-bottom: 22px;
  padding: clamp(22px, 5vw, 46px);
  align-items: end;
  background-size: cover;
  background-position: center;
}

.admin-artist-edit {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(21, 21, 20, 0.48);
  color: white;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.admin-artist-edit .material-symbols-rounded {
  font-size: 17px;
}

.hero-panel h1,
.artist-hero h1,
.page-title h1,
.profile-copy h1 {
  margin: 6px 0 10px;
  letter-spacing: 0;
}

.hero-panel h1,
.artist-hero h1 {
  font-size: clamp(34px, 7vw, 74px);
  line-height: 1.05;
}

.artist-hero h1 {
  font-size: clamp(46px, 10vw, 112px);
}

.hero-panel p,
.artist-hero p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.9;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hero-panel .eyebrow,
.artist-hero .eyebrow {
  color: #dfd7c9;
}

.artist-discography {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.artist-album-card {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: right;
}

.artist-album-card .cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
}

.artist-album-card span:last-child {
  display: grid;
  gap: 3px;
  padding-top: 8px;
  direction: rtl;
}

.artist-album-card strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.artist-album-card small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.primary-action,
.text-button,
.filter {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.primary-action {
  min-height: 44px;
  padding: 0 18px;
  background: var(--ink);
  color: white;
  border-color: var(--ink);
  font-weight: 800;
}

.primary-action:disabled,
.compact-cta:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.primary-action span {
  display: inline-grid;
  vertical-align: middle;
  margin-inline-end: 5px;
  font-weight: 900;
}

.compact-cta {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.compact-cta .material-symbols-rounded {
  font-size: 19px;
  font-variation-settings: "FILL" 0, "wght" 480, "GRAD" 0, "opsz" 20;
}

.text-button {
  min-height: 38px;
  padding: 0 14px;
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.section-footer {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.section-footer .text-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
}

.section-footer .text-button::after {
  content: "←";
  font-weight: 900;
}

.count-label,
.muted-note {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.content-section {
  margin-top: 28px;
}

.static-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 0 44px;
}

.static-page h1 {
  margin: 6px 0 18px;
  font-size: 28px;
  line-height: 1.35;
}

.static-copy {
  display: grid;
  gap: 16px;
  color: var(--ink);
  font-size: 16px;
  line-height: 2.1;
}

.static-copy p {
  margin: 0;
}

.static-email-link {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.section-heading,
.page-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.clickable-heading {
  cursor: pointer;
}

.title-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.icon-share-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
}

.icon-share-button .material-symbols-rounded,
.add-primary .material-symbols-rounded {
  font-size: 22px;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.section-share-button {
  width: 36px;
  height: 36px;
}

.add-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 10px 24px rgba(21, 21, 20, 0.14);
}

.add-primary .material-symbols-rounded {
  margin: 0;
}

.market-search-status {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}

.section-heading h2,
.page-title h1 {
  margin: 0;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
}

.album-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.sale-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 18px;
}

.album-grid.editable {
  padding-bottom: 40px;
}

.empty-archive-state {
  display: grid;
  justify-items: center;
  gap: 16px;
  min-height: 320px;
  align-content: center;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  text-align: center;
}

.empty-archive-state p {
  max-width: 340px;
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
}

.cafe-side-section {
  margin-top: 24px;
}

/* ── Explore sections ── */
.explore-section {
  padding: 20px 16px;
  border-top: 1px solid var(--border);
}
.explore-card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.explore-card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
/* 2 rows × 3 cols = 6 items max */
.explore-section-header {
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.explore-section-header h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 2px;
}
.explore-section-header p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

/* تازه‌ترین آیتم‌ها */
.explore-add-row {
  display: flex;
  flex-direction: row;
  direction: ltr;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  cursor: pointer;
}
.explore-add-row:last-child { border-bottom: none; }
.explore-add-cover {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: #ccc center/cover no-repeat;
  flex-shrink: 0;
}
.explore-add-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
  direction: rtl;
  text-align: right;
}
.explore-add-album {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--fg);
}
.explore-add-artist {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.explore-add-user {
  font-size: 11px;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* محبوب هفته */
.explore-album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.explore-album-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.explore-album-cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--border) center/cover no-repeat;
}
.explore-album-card strong {
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--fg);
}
.explore-album-card span {
  font-size: 12px;
  color: var(--muted);
}

/* فروشی‌ها */
.explore-listing-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  width: 100%;
  background: none;
  border-right: none;
  border-left: none;
  border-top: none;
  cursor: pointer;
  text-align: right;
}
.explore-listing-row:last-child { border-bottom: none; }
.explore-listing-price {
  font-size: 12px;
  color: var(--accent);
  white-space: nowrap;
  font-weight: 600;
}

.explore-section-more {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-right: auto;
}

/* کالکتورها */
.explore-collectors-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.explore-avatar-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
}
.explore-avatar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  min-width: 56px;
}
.explore-avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--border);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
  overflow: hidden;
}
.explore-avatar-name {
  font-size: 11px;
  color: var(--fg);
  text-align: center;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.explore-collector-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  background: none;
  border-right: none;
  border-left: none;
  border-top: none;
  width: 100%;
  cursor: pointer;
  text-align: right;
}
.explore-collector-row:last-child { border-bottom: none; }
.explore-collector-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.explore-collector-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}
.explore-collector-handle {
  font-size: 12px;
  color: var(--muted);
}
.explore-collector-stat {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.album-card {
  position: relative;
  min-width: 0;
}

.album-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: inherit;
}

.market-card {
  cursor: pointer;
}

.cover {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  background: var(--cover);
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 30px rgba(25, 24, 22, 0.12);
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 34%);
}

.album-meta {
  padding-top: 10px;
}

.album-meta strong,
.album-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-meta strong {
  font-family: "Pelak", "Times New Roman", serif;
  font-size: 14px;
  letter-spacing: 0;
}

.search-result strong,
.product-copy h1 {
  font-family: "Pelak", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

.album-meta span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.album-meta .price-line {
  color: var(--ink);
  font-weight: 800;
}

.market-meta span:first-of-type {
  color: var(--muted);
}

.market-meta span {
  white-space: normal;
}

.seller-line {
  color: var(--ink);
}

.card-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: auto;
}

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

.reaction-pill {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.card-menu {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  z-index: 4;
}

.menu-trigger {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  background: rgba(25, 24, 22, 0.68);
  color: white;
  font-size: 18px;
  line-height: 1;
}

.menu-panel {
  position: absolute;
  top: 38px;
  inset-inline-end: 0;
  display: grid;
  min-width: 168px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.menu-panel button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: right;
}

.menu-panel button:hover {
  background: var(--surface-strong);
}

.menu-panel .danger {
  color: var(--ink);
}

.tiny-action {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
}

.tiny-action.danger {
  color: var(--ink);
}

.admin-danger-zone {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid rgba(163, 51, 51, 0.28);
  border-radius: 8px;
  background: rgba(163, 51, 51, 0.05);
}

.admin-danger-zone h3 {
  margin: 0;
  font-size: 14px;
}

.merge-candidate {
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-align: right;
}

.merge-candidate .mini-cover {
  grid-row: span 2;
}

.merge-candidate strong,
.merge-candidate small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkbox-line {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.checkbox-line input {
  width: auto;
  min-height: auto;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.activity-list,
.collector-list,
.topic-list,
.forum-list {
  display: grid;
  gap: 10px;
}

.activity-item,
.collector-item,
.topic-item,
.forum-item,
.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.activity-item {
  justify-content: start;
}

.activity-item p,
.collector-item p,
.topic-item p,
.forum-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.activity-art,
.topic-art,
.forum-art {
  flex: 0 0 auto;
  background: var(--cover);
  background-size: cover;
  background-position: center;
}

.activity-art {
  width: 58px;
  height: 58px;
  border-radius: 6px;
  box-shadow: 0 10px 22px rgba(25, 24, 22, 0.12);
}

.activity-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  color: white;
  font-weight: 900;
}

.activity-icon.collection {
  background: var(--green);
}

.activity-icon.wishlist {
  background: var(--ink);
}

.activity-icon.sale {
  background: var(--ink);
}

.activity-copy {
  flex: 1;
  min-width: 0;
}

.activity-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.collector-person {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.collector-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.collector-avatar.has-photo,
.talk-avatar.has-photo {
  background-size: cover;
  background-position: center;
  color: transparent;
}

.collector-match {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.collector-match small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.7;
}

.collector-match-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.collector-match-list span {
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface-strong);
  font-size: 11px;
  line-height: 1.5;
}

.mini-covers {
  display: flex;
  direction: ltr;
}

.mini-cover {
  width: 42px;
  height: 42px;
  margin-left: -8px;
  border: 2px solid var(--surface);
  border-radius: 5px;
  background: var(--cover);
  background-size: cover;
  background-position: center;
}

.topic-item {
  align-items: center;
  justify-content: start;
}

.topic-art {
  width: 64px;
  height: 64px;
  border-radius: 6px;
}

.forum-list {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.forum-item,
.wander-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: start;
}

.forum-art {
  width: 96px;
  height: 96px;
  border-radius: 6px;
}

.content-filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filter-menu {
  position: relative;
}

.filter-menu summary {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}

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

.filter-panel {
  position: absolute;
  z-index: 10;
  inset-inline-start: 0;
  top: calc(100% + 8px);
  display: grid;
  gap: 12px;
  min-width: 260px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.grouped-filter-panel {
  min-width: 300px;
}

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

.filter-group-title {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.sort-panel {
  min-width: 220px;
}

.sort-panel .filter {
  justify-content: flex-start;
  width: 100%;
}

.talk-entry {
  width: min(100%, 360px);
  margin-inline: auto;
  margin-bottom: 14px;
}

.real-home-test-panel {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) repeat(5, auto);
  gap: 8px;
  align-items: center;
  margin: 0 0 14px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 245, 0.62);
}

.real-home-test-panel strong {
  display: block;
  font-size: 13px;
}

.real-home-test-panel p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.real-home-test-panel select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 8px;
  font: inherit;
  font-size: 12px;
}

.talk-composer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.talk-composer button {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  aspect-ratio: 1.35;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  font-weight: 800;
}

.talk-composer .material-symbols-rounded {
  font-size: 20px;
  font-variation-settings: "FILL" 0, "wght" 430, "GRAD" 0, "opsz" 24;
}

.talk-composer strong {
  font-size: 11px;
}

.new-talk-cta {
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  font-size: 12px;
}

.talk-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin-bottom: 14px;
  padding: 3px;
  border: 1px solid rgba(216, 208, 195, 0.65);
  border-radius: 999px;
  background: transparent;
}

.talk-tabs button {
  min-width: 108px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.talk-tabs button.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.talk-section + .talk-section {
  margin-top: 28px;
}

.talk-feed {
  margin-top: 14px;
}

.feed-divider {
  margin: 22px 0 14px;
  padding: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.inline-heading {
  margin-top: 10px;
}

.wander-grid.compact {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.wander-grid.compact .wander-card {
  min-height: 0;
}

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

.profile-talk {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-talk strong {
  display: block;
}

.profile-talk p {
  margin: 6px 0 0;
  color: var(--muted);
}

.post-owner-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
}

.post-owner-actions.is-compact {
  gap: 4px;
}

.post-owner-actions.is-compact .icon-action {
  min-width: 30px;
  width: 30px;
  min-height: 30px;
  padding: 0;
}

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

.icon-action.danger:hover {
  border-color: rgba(164, 61, 53, 0.35);
  background: rgba(164, 61, 53, 0.08);
}

.wander-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.wander-card {
  grid-template-columns: 1fr;
  gap: 12px;
  align-content: start;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 320px;
}

.talk-author {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.talk-author .talk-time {
  margin-inline-start: auto;
  font-weight: 400;
}

.talk-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 14px;
}

.avatar-link,
.talk-author-link {
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
}

.avatar-link {
  border-radius: 50%;
  background: transparent;
}

.talk-author-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: transparent;
  text-align: inherit;
}

.wander-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--cover);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

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

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

.media-talk-preview video,
.talk-detail-media video,
.talk-detail-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.wander-card strong {
  display: block;
  line-height: 1.65;
}

.wander-card p {
  margin-top: 6px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.read-more-button {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.play-mark {
  position: absolute;
  inset-inline-start: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(25, 24, 22, 0.78);
  color: white;
  font-size: 15px;
}

.icon-action,
.comment-count {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
}

.icon-action {
  min-width: 44px;
  padding: 0 10px;
}

.split-social-action {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.split-social-action .icon-action {
  min-width: 34px;
  width: 34px;
  padding: 0;
}

.talk-social-actions .icon-action {
  min-width: 24px;
  width: 24px;
  min-height: 30px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.talk-social-actions .icon-action.is-active {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
}

.talk-social-actions .icon-action.is-active .local-icon svg {
  stroke-width: 2.5;
}

.talk-social-actions .icon-action.is-active [data-icon-name="favorite"] svg {
  fill: currentColor;
}

.talk-social-actions .icon-action.is-active [data-icon-name="repeat"] svg {
  filter: drop-shadow(0 0 0 currentColor);
}

.engagement-count {
  min-height: 32px;
  min-width: 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.talk-social-actions .engagement-count {
  padding: 0;
}

.talk-social-actions .comment-count {
  border: 0;
  background: transparent;
  padding: 0;
  min-height: 30px;
}

.engagement-count:hover {
  color: var(--ink);
}

.icon-action.is-active {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}

.icon-action .material-symbols-rounded,
.comment-count .material-symbols-rounded {
  width: 16px;
  height: 16px;
  font-size: 16px;
}

.comment-count {
  padding: 0 12px;
}

.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.catalog-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 8px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.catalog-filter-shell {
  margin-bottom: 18px;
}

.catalog-filter-toggle {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

.catalog-filter-toggle .material-symbols-rounded {
  font-size: 19px;
}

.catalog-filter-toggle.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.compact-catalog-controls {
  grid-template-columns: minmax(150px, 220px);
  width: fit-content;
  max-width: 100%;
}

.market-catalog-controls {
  grid-template-columns: repeat(auto-fit, minmax(134px, 1fr));
}

.catalog-controls label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.catalog-controls select {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: var(--surface-strong);
  color: var(--ink);
  padding: 0 10px;
  font-size: 12px;
}

.filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px;
}

.profile-header {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-topline {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: none;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.profile-stats div {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding-inline-end: 0;
}

.profile-stats strong {
  font-family: "Pelak", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1;
  font-weight: 900;
}

.profile-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 30px;
  font-weight: 900;
}

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

.profile-copy p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

.profile-copy .profile-handle {
  margin: -6px 0 6px;
  color: var(--muted);
  direction: ltr;
  text-align: right;
  font-family: "Pelak", serif;
  font-size: 17px;
}

.profile-copy h1 {
  font-size: 26px;
}

.contact-pills {
  display: flex;
  gap: 8px;
}

.profile-social-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.contact-pills a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-strong);
}

.contact-pills svg {
  width: 19px;
  height: 19px;
  fill: var(--ink);
}

.profile-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.follow-button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.follow-button.is-following {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.report-profile-button {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.follow-button .material-symbols-rounded,
.report-profile-button .material-symbols-rounded {
  font-size: 18px;
  font-variation-settings: "FILL" 0, "wght" 450, "GRAD" 0, "opsz" 20;
}

.report-profile-button .material-symbols-rounded {
  font-size: 16px;
}

.notice {
  margin-bottom: 20px;
  border-color: var(--line);
  background: #f7f4ed;
  color: var(--ink);
  line-height: 1.9;
}

.back-button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
}

.back-button .material-symbols-rounded {
  width: 18px;
  height: 18px;
  font-size: 18px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 22px;
  align-items: start;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.album-detail {
  display: grid;
  gap: 22px;
}

.album-hero-detail {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 22px;
  align-items: start;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-cover {
  width: 100%;
  max-width: 240px;
  justify-self: center;
}

.image-viewer-cover {
  border: 0;
  padding: 0;
  cursor: zoom-in;
}

.album-cover-stack {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.album-image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
}

.album-image-thumb {
  width: 46px;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  overflow: hidden;
}

.album-image-thumb.is-active {
  border-color: var(--ink);
}

.album-image-thumb span,
.admin-album-image-thumb {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.admin-album-image-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-image-manager {
  display: grid;
  gap: 6px;
}

.admin-album-image-thumb {
  position: relative;
  width: 54px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.admin-album-image-thumb.is-pending::after {
  content: "جدید";
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
}

.admin-add-image-button {
  width: 54px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
}

.admin-add-image-button:disabled {
  opacity: 0.48;
  cursor: default;
}

.admin-add-image-button .material-symbols-rounded {
  width: 22px;
  height: 22px;
}

.admin-add-image-button small {
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.admin-album-image-thumb button,
.admin-album-image-thumb small {
  position: absolute;
  top: 4px;
  left: 4px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(21, 21, 20, 0.78);
  color: #fff;
}

.admin-album-image-thumb button {
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.admin-album-image-thumb button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.admin-album-image-thumb small {
  padding: 0 7px;
  font-size: 10px;
  font-weight: 700;
}

.image-viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 26px 22px 28px;
  background: #000;
  color: #fff;
}

.image-viewer-overlay.is-hidden {
  display: none;
}

.image-viewer-close,
.image-viewer-nav,
.image-viewer-thumb {
  border: 0;
  background: transparent;
  color: inherit;
}

.image-viewer-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.image-viewer-count {
  align-self: end;
  justify-self: center;
  text-align: center;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

.image-viewer-stage {
  min-height: 0;
  display: grid;
  place-items: center;
}

.image-viewer-stage img {
  max-width: min(100%, 980px);
  max-height: 100%;
  object-fit: contain;
}

.image-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.image-viewer-nav:disabled {
  opacity: 0.28;
  cursor: default;
}

.image-viewer-prev {
  right: 22px;
}

.image-viewer-next {
  left: 22px;
}

.image-viewer-nav .material-symbols-rounded {
  width: 34px;
  height: 34px;
  color: #fff;
}

.image-viewer-thumbs {
  min-width: 0;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 4px 0;
  scroll-snap-type: x mandatory;
}

.image-viewer-thumb {
  flex: 0 0 96px;
  width: 96px;
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 2px;
  overflow: hidden;
  opacity: 0.68;
  cursor: pointer;
  scroll-snap-align: center;
}

.image-viewer-thumb.is-active {
  border-color: #fff;
  opacity: 1;
}

.image-viewer-thumb span {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.product-copy h1 {
  margin: 6px 0 8px;
  font-size: clamp(30px, 5vw, 58px);
}

.product-copy p {
  margin: 0 0 18px;
  color: var(--muted);
}

.product-copy dl {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

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

.release-icon-action {
  display: grid;
  place-items: center;
  gap: 5px;
  width: 104px;
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}

.release-icon-action .material-symbols-rounded {
  font-size: 28px;
  font-variation-settings: "FILL" 0, "wght" 430, "GRAD" 0, "opsz" 24;
}

.release-icon-action small {
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.release-icon-action.is-disabled {
  color: var(--muted);
  background: var(--surface-strong);
}

.collector-strip {
  margin-top: 22px;
}

.collector-strip-title {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.collector-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.collector-chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 400;
}

.collector-chip-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  background-size: cover;
  background-position: center;
}

.more-collectors {
  min-width: 42px;
  justify-content: center;
}

.track-section {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.album-detail > .track-section,
.album-page-section {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

[data-album-versions-section] {
  scroll-margin-top: 132px;
}

.album-page-section.compact-section {
  padding: 10px 12px;
}

.album-page-section .section-heading {
  margin-bottom: 8px;
}

.album-page-section .section-heading h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
}

.shared-list-header {
  display: block;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px 0 14px;
  border: 1px solid var(--line);
  border-width: 0 0 1px;
  border-radius: 8px;
  background: transparent;
}

.shared-user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.shared-user-card .profile-avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  font-size: 20px;
}

.shared-user-card .profile-avatar.has-photo {
  background-color: var(--surface-strong);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 28%;
}

.shared-user-card h1 {
  margin: 0 0 2px;
  font-size: 21px;
  line-height: 1.4;
  font-weight: 500;
}

.shared-handle-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  text-align: right;
}

.share-sheet {
  gap: 14px;
}

.share-link-preview {
  direction: ltr;
  margin: 0;
  overflow: hidden;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.share-options button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.share-options .material-symbols-rounded {
  font-size: 21px;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.share-copy-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.track-section h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.track-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.track-list > div:not(.track-side-column) {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 3px 0;
  border-bottom: 1px solid var(--line);
}

.track-list > div:not(.track-side-column) span {
  direction: ltr;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  text-align: left;
}

.track-list > div:not(.track-side-column) p {
  margin: 0;
  color: var(--ink);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.35;
}

.track-list > .empty-note {
  grid-column: 1 / -1;
  padding: 0;
  border: 0;
}

.track-side-column {
  display: grid;
  gap: 4px;
  align-content: start;
}

.track-row {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 3px 0;
  border-bottom: 1px solid var(--line);
}

.track-row span {
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  direction: ltr;
  text-align: left;
}

.track-row strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 400;
}

.track-list-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.track-list-section .section-heading h2 {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
}

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

.track-side {
  display: grid;
  gap: 4px;
  align-content: start;
}

.track-side h3 {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.collector-person strong,
.collector-row strong {
  font-weight: 400;
}

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

.version-photo-fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.version-photo-fieldset legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
}

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

.version-photo-grid label {
  gap: 6px;
  font-size: 12px;
}

.version-photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.version-photo-preview-grid figure {
  margin: 0;
}

.version-photo-preview-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-strong);
}

.version-photo-preview-grid figcaption {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.version-note-text {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.8;
  font-weight: 400;
}

.review-composer {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.review-composer textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
}

.review-composer .primary-action {
  width: fit-content;
  min-height: 38px;
  padding: 0 18px;
}

.version-card,
.version-match-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-align: right;
}

.compact-avatar-list {
  display: flex;
  gap: 8px;
  align-items: center;
}

.compact-avatar {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ink);
  color: var(--surface);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.similar-album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.similar-album-card {
  display: grid;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: right;
  font-family: inherit;
  cursor: pointer;
}

.similar-cover {
  display: block;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(135deg, #d9d2c3, #f4f0e8);
}

.similar-album-card strong {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
}

.similar-album-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.version-match-card {
  grid-template-columns: 1fr;
}

.version-confirm {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.version-confirm p {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

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

.version-card small,
.version-match-card span {
  color: var(--muted);
}

.version-card small {
  grid-column: 2;
}

.review-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.review-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.review-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
}

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

.disabled-action {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--muted);
  font-weight: 800;
}

.product-copy dl div {
  display: flex;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.product-copy dt {
  color: var(--muted);
  flex-shrink: 0;
  max-width: 55%;
}

.product-copy dd {
  margin: 0;
  flex: 1;
  font-weight: 400;
  text-align: left;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-profile-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.artist-inline-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  text-decoration: none;
}

.artist-inline-link:hover {
  color: var(--muted);
}

.artist-more-collectors {
  justify-self: start;
  margin-top: 8px;
  border-radius: 999px;
}

.artist-more-items {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
}

.seller-note,
.seller-contact-panel {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.seller-note h3,
.seller-note p,
.seller-contact-panel strong {
  margin: 0;
}

.seller-note h3,
.seller-contact-panel strong {
  font-size: 14px;
  font-weight: 900;
}

.seller-note p {
  color: var(--muted);
  line-height: 1.9;
}

.seller-contact-panel a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.bottom-nav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  max-width: 620px;
  margin: 0 auto;
  padding: 10px 12px 14px;
  background: var(--nav);
  border: 1px solid rgba(222, 216, 206, 0.78);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  backdrop-filter: blur(18px);
}

.achievement-toast {
  position: fixed;
  inset-inline: 16px;
  bottom: 78px;
  z-index: 30;
  max-width: 420px;
  margin-inline: auto;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
  text-align: center;
  font-weight: 800;
}

.nav-item {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.add-nav {
  display: grid;
  place-items: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
  height: 48px;
  align-self: center;
  justify-self: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  box-shadow: none;
}

.add-nav .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 22px;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.nav-item.is-active {
  background: transparent;
  color: var(--ink);
}

.nav-icon {
  font-size: 30px;
  line-height: 1;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.nav-item.is-active .nav-icon {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.nav-label {
  font-size: 10px;
}

.add-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  align-items: end;
  background: rgba(21, 21, 20, 0.28);
}

.app-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  justify-items: start;
  background: rgba(21, 21, 20, 0.22);
}

.app-menu {
  width: min(360px, calc(100% - 28px));
  min-height: 100%;
  padding: 22px;
  border-inline-end: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.app-menu h2 {
  margin: 0 0 18px;
}

.app-menu a,
.mode-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
}

.mode-toggle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.add-search-sheet {
  width: min(760px, calc(100% - 24px));
  margin: 0 auto 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.avatar-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  background: rgba(21, 21, 20, 0.38);
}

.sale-form-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: end center;
  background: rgba(21, 21, 20, 0.38);
}

#talkDetailOverlay {
  place-items: stretch;
  background: var(--surface);
}

#talkDetailOverlay .talk-detail {
  width: 100%;
  max-height: none;
  min-height: 100dvh;
  margin: 0;
  padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  align-content: start;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: auto;
}

#talkDetailContent {
  display: grid;
  gap: 12px;
  width: min(560px, 100%);
  margin: 0 auto;
}

.sale-form {
  display: grid;
  gap: 12px;
  width: min(560px, calc(100% - 24px));
  max-height: min(86vh, 760px);
  margin-bottom: 18px;
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sale-form h2,
.sale-form p {
  margin: 0;
}

.sale-form p {
  color: var(--muted);
}

.sale-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
}

.field-label {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.field-label small,
.sale-image-fieldset legend small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.field-label small.required::before,
.sale-image-fieldset legend small.required::before {
  content: "*";
  margin-inline-end: 4px;
  color: #a33;
}

.artist-choice-button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.artist-choice-button:hover {
  border-color: var(--ink);
}

.artist-choice-button .material-symbols-rounded {
  font-size: 18px;
  font-variation-settings: "FILL" 0, "wght" 520, "GRAD" 0, "opsz" 20;
}

.form-required-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.form-hint {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
input.is-readonly {
  opacity: 0.5;
  cursor: default;
}

.image-position-controls {
  display: block;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.sale-form input,
.sale-form select,
.sale-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
}

.sale-form textarea {
  min-height: 86px;
  padding-block: 10px;
  resize: vertical;
}

.sale-price-block {
  display: grid;
  gap: 6px;
  max-width: 260px;
}

.price-helper-row {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.price-unit {
  color: var(--muted);
  white-space: nowrap;
}

.inline-check {
  display: inline-flex !important;
  grid-template-columns: none;
  gap: 8px;
  align-items: center;
  justify-content: start;
}

.inline-check input {
  width: auto;
  min-height: 0;
}

.colored-vinyl-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: end;
}

.sale-image-fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sale-image-fieldset legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.sale-image-fieldset small {
  color: var(--muted);
}

.sale-image-gallery {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: start;
}

.add-photo-button,
.sale-thumb {
  width: 104px;
  min-height: 132px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.add-photo-button {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 900;
}

.add-photo-button .material-symbols-rounded {
  font-size: 28px;
}

.sale-thumb {
  position: relative;
  display: block;
  padding: 0;
}

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

.sale-thumb input {
  display: none;
}

.media-picker {
  display: grid;
  gap: 10px;
  padding: 0;
  background: transparent;
}

.media-talk-preview {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.remove-media-talk {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(21, 21, 20, 0.78);
  color: white;
  font-size: 18px;
  line-height: 1;
}

.media-talk-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-title-field input {
  font-weight: 800;
}

.talk-time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.talk-detail h2 {
  margin: 8px 0 0;
  font-size: 19px;
}

.talk-detail p {
  margin-top: 10px;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.8;
}

.talk-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.talk-detail .talk-avatar {
  width: 44px;
  height: 44px;
  font-size: 16px;
}

.talk-detail .talk-author {
  gap: 10px;
  font-size: 14px;
}

.talk-detail-copy {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.talk-detail-copy h2 {
  margin-top: 0;
}

.talk-detail-media {
  position: relative;
  width: min(100%, 420px);
  max-height: 42vh;
  margin-inline: auto;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--surface-strong);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.talk-detail-media.is-wide {
  aspect-ratio: 16 / 9;
}

video.talk-detail-media {
  object-fit: contain;
}

.talk-detail-social {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.talk-detail-social .reaction-stack {
  margin-top: 0;
}

.talk-comments {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.talk-comments textarea {
  width: 100%;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-weight: 400;
  resize: vertical;
}

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

.comment-list.is-scrollable {
  max-height: 320px;
  overflow-y: auto;
  padding-inline-end: 4px;
}

.engagement-sheet {
  gap: 14px;
}

.engagement-sheet h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

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

.engagement-user-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-areas:
    "avatar name"
    "avatar handle";
  gap: 2px 10px;
  align-items: center;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: right;
}

.engagement-user-row:last-child {
  border-bottom: 0;
}

.engagement-user-avatar {
  grid-area: avatar;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--ink);
  color: var(--surface);
}

.engagement-user-row span {
  grid-area: name;
  font-size: 14px;
  font-weight: 500;
}

.engagement-user-row small {
  grid-area: handle;
  color: var(--muted);
  font-size: 12px;
}

.comment-list article {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.comment-list strong {
  font-size: 13px;
}

.comment-list p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.media-text-field textarea {
  font-weight: 400;
}

.sale-form .media-text-field textarea {
  font-weight: 400;
}

.signup-panel {
  display: grid;
  gap: 14px;
  width: min(680px, 100%);
  margin-inline: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.login-panel {
  width: min(1500px, 100vw);
  min-height: min(620px, calc(100vh - 190px));
  align-content: center;
  justify-items: center;
  gap: 18px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  padding-inline: 0;
}

.brand-lockup {
  display: grid;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.brand-lockup .start-lockup {
  display: block;
  width: min(260px, 76vw);
  max-width: none;
  height: auto;
  justify-self: center;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand-mainline {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.brand-lockup img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand-lockup h1 {
  margin: 0 0 -3px;
  font-size: clamp(34px, 9vw, 48px);
  font-weight: 800;
  line-height: 1;
}

.brand-lockup p {
  width: 100%;
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  text-align: justify;
  text-align-last: justify;
}

.login-form {
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 48px));
  margin-top: 4px;
}

.phone-step,
.auth-step {
  display: grid;
  gap: 10px;
  width: 100%;
}

.auth-step label small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.auth-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auth-main-action,
.auth-outline-action {
  width: 100%;
  min-height: 48px;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
}

.auth-outline-action {
  border: 1px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.auth-outline-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.auth-secondary-action,
.auth-recovery-action {
  justify-self: center;
  min-height: 32px;
  font-size: 13px;
}

.auth-inline-status {
  min-height: 20px;
  margin-top: -2px !important;
  color: var(--muted);
  font-size: 12px;
}

.auth-inline-status.is-ready {
  color: var(--ink);
}

.country-picker {
  position: relative;
}

.country-picker > button,
.phone-input-wrap {
  display: flex;
  align-items: center;
  direction: ltr;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  margin-top: 6px;
}
.phone-prefix {
  padding: 0 12px;
  font-size: 15px;
  color: var(--muted);
  white-space: nowrap;
  border-left: 1px solid var(--line);
  align-self: stretch;
  display: flex;
  align-items: center;
}
.phone-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 12px;
  font: inherit;
  direction: ltr;
  min-width: 0;
}
.phone-input-wrap input:focus {
  outline: none;
}

.phone-input-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 14px;
  font: inherit;
  font-weight: 400;
}

.country-picker > button {
  text-align: right;
}

.country-code,
.phone-input-box span {
  direction: ltr;
  color: var(--muted);
  font-size: 15px;
}

.phone-input-box {
  gap: 12px;
  direction: ltr;
}

.phone-input-box input {
  flex: 1;
  border: 0;
  background: transparent;
  min-height: auto;
  padding: 0;
  direction: ltr;
  text-align: left;
}

.phone-input-box input:focus {
  outline: 0;
}

.country-menu {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 6px);
  z-index: 5;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.country-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  padding: 0 8px;
  font: inherit;
  font-size: 14px;
  text-align: right;
}

.country-menu button:hover {
  background: var(--surface-strong);
}

.signup-panel h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1.05;
}

.signup-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.signup-panel .brand-lockup h1 {
  margin: 0 0 -3px;
  font-size: clamp(34px, 9vw, 48px);
  font-weight: 800;
  line-height: 1;
}

.signup-panel .brand-lockup p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.signup-panel label,
.profile-edit-grid label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
}

.signup-panel .required-field::after {
  content: "ضروری";
  justify-self: start;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.signup-panel input,
.signup-panel textarea,
.profile-edit-grid input,
.sale-form #editProfileName,
.sale-form #editProfileBio,
.sale-form #editProfileTelegram,
.sale-form #editProfileInstagram,
.sale-form #editProfilePhone,
.sale-form #editProfileCity {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
  font-weight: 400;
}

.signup-panel textarea {
  padding-block: 10px;
  resize: vertical;
}

.signup-panel .phone-input-box input {
  flex: 1;
  min-height: auto;
  border: 0;
  background: transparent;
  padding: 0;
  direction: ltr;
  text-align: left;
}

.signup-panel .phone-input-box input:focus {
  outline: 0;
}

.otp-step {
  display: grid;
  gap: 12px;
  width: min(360px, calc(100vw - 48px));
  padding-top: 0;
  border-top: 0;
}

.otp-timer-row,
.otp-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.otp-timer-row {
  color: var(--muted);
  font-size: 13px;
}

.otp-error {
  margin-top: -4px !important;
  color: var(--ink) !important;
  font-size: 13px;
}

.edit-phone-button {
  justify-self: center;
  font-size: 13px;
}

.handle-preview {
  align-self: end;
  min-height: 42px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--muted);
  padding: 0 12px;
  direction: ltr;
  text-align: left;
  font-family: "Pelak", serif;
  font-size: 20px;
}

.handle-preview.is-ready {
  color: var(--ink);
}
.handle-availability {
  font-size: 13px;
  min-height: 20px;
  margin-top: -4px;
}
.handle-availability.available { color: #22a06b; }
.handle-availability.taken { color: #e2483d; }

.onboarding-grid,
.profile-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-photo-edit {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.profile-photo-edit .profile-avatar {
  width: 84px;
  height: 84px;
  flex-basis: 84px;
  font-size: 24px;
}

.onboarding-grid label:nth-child(2) {
  grid-column: auto;
}

.onboarding-grid label:nth-child(4) {
  grid-column: 1 / -1;
}

.onboarding-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.menu-link-button {
  display: block;
  width: 100%;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: right;
  font: inherit;
}

.remove-sale-image {
  position: absolute;
  top: -7px;
  inset-inline-start: -7px;
  z-index: 1;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ink);
  color: white;
  line-height: 1;
}

.version-flow-album {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.version-flow-cover {
  width: 82px;
  aspect-ratio: 1;
  border-radius: 6px;
}

.artist-create-preview {
  width: min(100%, 220px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}

.draggable-image-frame {
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.draggable-image-frame.is-dragging {
  cursor: grabbing;
}

.track-builder {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.track-builder legend {
  padding: 0 6px;
  color: var(--ink);
  font-size: 14px;
}

.track-builder legend small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.track-builder-sides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.tag-check-grid label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  font-size: 11.5px;
  font-weight: 700;
}

.tag-check-grid input {
  width: auto;
  min-height: 0;
  margin: 0;
}

#entityAdminFields .track-builder.admin-release-vinyl {
  gap: 8px;
  padding: 8px;
  background: transparent;
}

#entityAdminFields .track-builder.admin-release-vinyl legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.track-side-editor {
  display: grid;
  gap: 8px;
  align-content: start;
}

.track-side-editor h3 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.track-side-inputs {
  display: grid;
  gap: 8px;
}

.track-input-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
}

.track-code {
  color: var(--muted);
  direction: ltr;
  font-size: 12px;
  text-align: left;
}

.track-add-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
}

.track-add-button .material-symbols-rounded {
  font-size: 20px;
}

.version-flow-album strong,
.version-flow-album span {
  display: block;
}

.version-flow-album strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 17px;
}

.version-flow-album span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.tag-fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tag-fieldset legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tag-fieldset label {
  display: inline-flex;
  grid-template-columns: none;
  gap: 6px;
  align-items: center;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  font-size: 11.5px;
}

.tag-fieldset input {
  width: auto;
  min-height: 0;
}

.release-notes {
  margin: 12px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
}

.release-notes h3 {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.release-notes p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
}

.collector-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 46;
  display: grid;
  place-items: end center;
  background: rgba(21, 21, 20, 0.36);
}

.collector-sheet {
  width: min(560px, calc(100% - 24px));
  max-height: min(78vh, 680px);
  margin-bottom: 18px;
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.collector-sheet h2 {
  margin: 0 0 14px;
}

.collector-sheet-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.collector-sheet-tabs button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 900;
}

.collector-sheet-tabs button.is-active {
  background: var(--ink);
  color: white;
}

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

.collector-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-align: right;
}

.collector-row-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  background-size: cover;
  background-position: center;
  font-weight: 900;
}

.collector-row span {
  display: grid;
  gap: 2px;
}

.collector-row small,
.empty-note {
  color: var(--muted);
}

.avatar-preview-image {
  display: grid;
  place-items: center;
  width: min(72vw, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 8px solid var(--surface);
  background: var(--ink);
  background-size: cover;
  background-position: center;
  color: white;
  font-size: 76px;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.add-search-sheet h2 {
  margin: 0 0 6px;
}

.add-search-sheet p {
  margin: 0 0 14px;
  color: var(--muted);
}

.add-search-sheet input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.sheet-search-row {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
  align-items: center;
}

.sheet-close {
  float: left;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.talk-detail-back {
  float: none;
  justify-self: start;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
}

.talk-detail-back .material-symbols-rounded {
  font-size: 20px;
}

.sheet-results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

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

@media (max-width: 780px) {
  .main-content {
    padding-top: 18px;
  }

  .hero-panel,
  .artist-hero,
  .section-heading,
  .page-title,
  .profile-header {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-panel h1,
  .artist-hero h1 {
    font-size: 38px;
  }

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

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

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

  .activity-item,
  .collector-item,
  .topic-item,
  .forum-item {
    align-items: stretch;
    flex-direction: column;
  }

  .search-result {
    grid-template-columns: 46px minmax(0, 1fr);
  }

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

  .forum-item,
  .product-detail,
  .album-hero-detail {
    grid-template-columns: 1fr;
  }

  .image-viewer-overlay {
    gap: 14px;
    padding: 28px 0 22px;
  }

  .image-viewer-close {
    top: 22px;
    right: 16px;
  }

  .image-viewer-nav {
    display: none;
  }

  .image-viewer-count {
    font-size: 14px;
  }

  .image-viewer-thumbs {
    padding-inline: 18px;
  }

  .image-viewer-thumb {
    flex-basis: 82px;
    width: 82px;
  }

  .profile-topline {
    grid-template-columns: auto 1fr;
    gap: 12px;
  }

  .profile-social-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-avatar {
    width: 88px;
    height: 88px;
    flex-basis: 88px;
  }

  .filter-panel {
    position: static;
    margin-top: 8px;
    min-width: 0;
    max-width: 100%;
  }

  .talk-composer {
    grid-template-columns: repeat(3, 1fr);
  }

  .real-home-test-panel {
    grid-template-columns: 1fr 1fr;
  }

  .real-home-test-panel > div {
    grid-column: 1 / -1;
  }

  .colored-vinyl-row {
    grid-template-columns: 1fr;
  }

  .track-builder-sides {
    grid-template-columns: 1fr;
  }

  .forum-art {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
  }
}

@media (max-width: 470px) {
  .topbar {
    padding-inline: 10px;
  }

  .shared-list-header {
    align-items: stretch;
    flex-direction: column;
  }

  .global-search input::placeholder {
    font-size: 12px;
  }

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

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

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

  .sale-strip {
    grid-template-columns: 1fr;
  }
}

/* Guest home CTA */
.guest-home-cta {
  padding: 16px 0 8px;
}

.guest-home-cta .primary-action {
  width: 100%;
}

/* ── Admin Reports ──────────────────────────────────────── */
.admin-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
}
.admin-tab {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  cursor: pointer;
}
.admin-tab.is-active {
  color: var(--fg);
  border-bottom-color: var(--fg);
}
.admin-dash-section {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.admin-dash-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-dash-count {
  background: var(--border);
  color: var(--fg);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 500;
}
.admin-dash-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 8px;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.admin-dash-row:last-child { border-bottom: none; }
.admin-dash-handle { color: var(--accent); font-weight: 500; }
.admin-dash-name { color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-dash-date { color: var(--muted); font-size: 11px; white-space: nowrap; }

.admin-reports-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.admin-report-card {
  background: var(--surface, #1a1a1a);
  border: 1px solid var(--border, #2a2a2a);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-report-card.is-resolved {
  opacity: 0.45;
}

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

.report-type {
  background: var(--accent, #6c63ff);
  color: #fff;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 20px;
}

.report-reason {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary, #fff);
}

.report-date {
  font-size: 0.75rem;
  color: var(--text-secondary, #888);
  margin-right: auto;
}

.report-reporter {
  font-size: 0.83rem;
  color: var(--text-secondary, #888);
  margin: 0;
}

.report-body {
  font-size: 0.88rem;
  color: var(--text-primary, #fff);
  margin: 0;
  background: var(--surface2, #222);
  padding: 8px 10px;
  border-radius: 8px;
}

.report-target-id {
  margin: 0;
  color: var(--text-secondary, #888);
  word-break: break-all;
}

.report-actions {
  margin-top: 4px;
}

.report-resolved-badge {
  font-size: 0.78rem;
  color: var(--text-secondary, #888);
}

body.is-guest .new-talk-cta { display: none; }

.guest-feed-preview { margin-top: 8px; opacity: 0.75; pointer-events: none; }
.guest-feed-preview .talk-author-link { display: inline-flex; align-items: center; gap: 8px; }
.guest-feed-preview .avatar-circle { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface2, #2a2a2a); font-size: 0.85rem; font-weight: 600; flex-shrink: 0; }

.demo-cover-label { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:2rem; }
.guest-demo-card .cover { position:relative; }
.condition-badge { font-size:0.72rem; color:var(--text-secondary,#888); }

/* ── OTP auth flow ──────────────────────────────────────── */
.auth-step-hint { font-size: 0.9rem; color: var(--text-secondary, #888); margin-bottom: 16px; line-height: 1.6; }
.otp-footer { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; font-size: 0.85rem; color: var(--text-secondary, #888); }
#otpCode { font-size: 1.4rem; letter-spacing: 0.3em; text-align: center; }

/* ── QR Scanner button ──────────────────────────────────── */
.sheet-search-row {
  grid-template-columns: 1fr 42px 42px;
}
.qr-scan-button {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--ink);
}
.qr-scan-button .material-symbols-rounded { font-size: 20px; }

/* ── Discogs Import Overlay ─────────────────────────────── */
.discogs-import-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.discogs-import-overlay.is-hidden { display: none !important; }

.discogs-import-sheet {
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 560px;
  max-height: 92dvh;
  overflow-y: auto;
  padding: 24px 20px 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Scanner panel */
.discogs-scanner-panel h2 { margin: 0 0 4px; }
.scanner-hint { color: var(--muted); margin: 0 0 16px; font-size: 0.9rem; }
.scanner-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: 280px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto;
}
.scanner-viewport video { width: 100%; height: 100%; object-fit: cover; }
.scanner-guide {
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.45), inset 0 0 0 2px rgba(255,255,255,0.6);
}
.scanner-guide::before, .scanner-guide::after {
  content: '';
  position: absolute;
  width: 36px; height: 36px;
  border-color: var(--accent, #e0b050);
  border-style: solid;
}
.scanner-guide::before { top: 16px; right: 16px; border-width: 3px 3px 0 0; border-radius: 0 6px 0 0; }
.scanner-guide::after  { bottom: 16px; left: 16px; border-width: 0 0 3px 3px; border-radius: 0 0 0 6px; }

.scanner-or { text-align: center; color: var(--muted); font-size: 0.85rem; margin: 12px 0 8px; }
.scanner-url-row {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
  align-items: center;
}
.scanner-url-row input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.85rem;
  direction: ltr;
}
.scanner-error {
  color: #e05050;
  font-size: 0.85rem;
  margin: 6px 0 0;
  text-align: center;
}

/* Preview panel */
.discogs-preview-panel { display: flex; flex-direction: column; gap: 14px; }
.discogs-preview-panel.is-hidden { display: none !important; }

.discogs-preview-cover {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1;
  border-radius: 10px;
  align-self: center;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-strong);
}
.discogs-preview-meta .eyebrow { font-size: 0.8rem; color: var(--muted); margin: 0 0 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.discogs-preview-meta h2 { margin: 0 0 2px; font-size: 1.2rem; }
.discogs-preview-meta p  { margin: 0; color: var(--muted); }

.discogs-local-match {
  display: flex;
  align-items: center;
  gap: 8px;
  background: color-mix(in srgb, var(--accent, #e0b050) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, #e0b050) 30%, transparent);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.88rem;
}
.discogs-local-match.is-hidden { display: none !important; }
.discogs-local-match .material-symbols-rounded { font-size: 18px; color: var(--accent, #e0b050); flex-shrink: 0; }

.discogs-preview-fields {
  display: grid;
  gap: 10px;
  background: var(--surface-strong);
  border-radius: 10px;
  padding: 14px;
}
.discogs-preview-fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--muted);
}
.discogs-preview-fields input,
.discogs-preview-fields select {
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
}
.discogs-preview-fields select { cursor: pointer; }

.discogs-tracklist {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.discogs-track-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 6px;
  padding: 5px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.discogs-track-row:last-child { border-bottom: none; }
.discogs-track-pos { color: var(--muted); }
.discogs-track-dur { color: var(--muted); }

.discogs-preview-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.discogs-preview-actions .primary-button {
  width: 100%;
  height: 48px;
  background: #000 !important;
  color: #fff !important;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}
.discogs-preview-actions .secondary-button,
.discogs-preview-actions .text-button {
  width: 100%;
  height: 44px;
  background: transparent !important;
  color: #000 !important;
  border: 1.5px solid rgba(0,0,0,0.2);
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
}

.release-edit-cover {
  width: 100%;
  aspect-ratio: 1;
  max-width: 160px;
  margin: 0 auto 12px;
  background-color: var(--border);
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}
.release-edit-cover:not(.has-image) {
  display: none;
}
.release-edit-image-name {
  font-size: 0.8rem;
  color: var(--muted);
  margin-right: 8px;
}

.release-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.release-photo-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--border);
}
.release-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.release-photo-remove {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* PWA install prompt */
.pwa-prompt-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 env(safe-area-inset-bottom, 0);
}
.pwa-prompt-overlay.is-hidden { display: none; }
.pwa-prompt-card {
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 28px 24px 36px;
  width: 100%;
  max-width: 480px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.pwa-prompt-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 14px;
}
.pwa-prompt-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
  color: #000;
}
.pwa-prompt-steps {
  background: #f2f2f7;
  border-radius: 12px;
  padding: 16px 20px;
  width: 100%;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pwa-prompt-steps p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}
.pwa-prompt-steps p strong {
  color: #000;
}
.pwa-prompt-steps .pwa-note {
  font-size: 12px;
  color: #999;
  border-top: 1px solid #ddd;
  padding-top: 10px;
  margin-top: 2px;
}
.pwa-prompt-dismiss {
  background: #000 !important;
  color: #fff !important;
  border: none;
  border-radius: 12px;
  padding: 14px 0;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
