*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

:root {
  --bg: #f2eadc;
  --surface: #fffdf7;
  --surface-soft: #f8f1e5;
  --line: rgba(55, 43, 28, 0.14);
  --line-strong: rgba(55, 43, 28, 0.24);
  --text: #211b14;
  --text-soft: #4f4335;
  --muted: #7a6d5c;
  --accent: #7a4f2b;
  --accent-dark: #4b2f1a;
  --accent-soft: rgba(180, 138, 73, 0.14);
  --gold: #b48a49;
  --danger: #9e3f31;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(48, 35, 18, 0.05), 0 18px 42px rgba(52, 38, 20, 0.08);
  --font-main: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "PingFang SC", "Microsoft YaHei", serif;
  --app-visual-height: 100dvh;
  --app-visual-offset-top: 0px;
  --app-dialog-safe-top: max(8px, env(safe-area-inset-top, 0px));
  --app-dialog-safe-bottom: max(8px, env(safe-area-inset-bottom, 0px));
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

#root {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

html.page-loading,
html.page-loading body {
  overflow: hidden;
}

html.artwork-viewer-open,
html.artwork-viewer-open body {
  overflow: hidden;
}

body {
  position: relative;
  isolation: isolate;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 46% at 50% 118%, rgba(180, 138, 73, 0.16), transparent 58%),
    radial-gradient(circle, rgba(55, 43, 28, 0.045) 0 0.8px, transparent 1px),
    linear-gradient(180deg, #fbf6ec 0%, #f4ead9 46%, var(--bg) 100%);
  background-size: auto, 22px 22px, auto;
  font-family: var(--font-main);
  font-size: 15.5px;
  line-height: 1.55;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(251, 246, 236, 0.28), rgba(242, 234, 220, 0.56)),
    url("/static/bg-qingming-river.jpg") center top / cover no-repeat;
  opacity: 0.34;
  filter: sepia(0.22) saturate(0.72) contrast(0.95);
}

button, input, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 2.5vw, 2.55rem);
  line-height: 1.16;
}

h2 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.3;
}

p {
  color: var(--muted);
}

code {
  color: var(--accent-dark);
  font-family: "SFMono-Regular", Consolas, monospace;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 251, 242, 0.88);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
  padding: 15px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong {
  display: block;
}

.brand-title {
  color: var(--accent-dark);
  font-weight: 900;
  white-space: nowrap;
}

.main-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: visible;
}

.nav-link {
  appearance: none;
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-weight: 780;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--accent-dark);
}

.nav-link.active {
  color: var(--accent-dark);
  border-color: rgba(122, 79, 43, 0.24);
  background: var(--accent-soft);
}

.primary-nav-menu {
  position: relative;
  display: none;
}

.topbar-inner.nav-collapsed > .primary-nav-menu {
  display: block;
  flex: 0 0 auto;
}

.topbar-inner.nav-collapsed .nav-links {
  position: static;
  width: auto;
  max-width: 100%;
  visibility: visible;
  pointer-events: auto;
}

.nav-measure-links {
  position: fixed;
  top: -10000px;
  left: -10000px;
  z-index: -1;
  display: flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: none;
  visibility: hidden;
  pointer-events: none;
}

.primary-nav-trigger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--accent-dark);
  font-weight: 850;
}

.primary-nav-trigger.active {
  background: var(--accent-soft);
}

.primary-nav-trigger:hover {
  background: rgba(122, 79, 43, 0.08);
}

.primary-nav-panel {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  z-index: 90;
  display: grid;
  width: min(220px, calc(100vw - 28px));
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.98);
  box-shadow: 0 22px 54px rgba(52, 38, 20, 0.2);
}

.primary-nav-panel button {
  appearance: none;
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 820;
  text-align: left;
}

.primary-nav-panel button:hover,
.primary-nav-panel button.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}

@media (max-width: 980px) {
  .user-panel {
    position: fixed;
    top: 62px;
    right: 10px;
    left: auto;
    width: min(260px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
  }
}

.nav-user {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
  white-space: nowrap;
}

.page {
  width: min(1240px, calc(100% - 32px));
  flex: 1 0 auto;
  margin: 24px auto 48px;
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 20px, 1240px);
    margin-top: 14px;
    margin-bottom: 30px;
  }

  .react-page,
  .hero-card,
  .card,
  .empty-state,
  .masonry-grid,
  .masonry-column,
  .metric-grid,
  .search-panel,
  .section-head,
  .my-page,
  .orders-page,
  .checkout-page,
  .cart-page,
  .chat-page,
  .admin-dashboard,
  .support-panel-page-wrap {
    min-width: 0;
  }

  .card,
  .hero-card {
    padding: 14px;
  }

  .section-head,
  .section-heading,
  .page-list-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .my-tabs,
  .manager-tabs,
  .support-panel-tabs,
  .category-filter {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .my-tabs::-webkit-scrollbar,
  .manager-tabs::-webkit-scrollbar,
  .support-panel-tabs::-webkit-scrollbar,
  .category-filter::-webkit-scrollbar {
    display: none;
  }

  .my-tabs a,
  .my-tabs button,
  .manager-tabs button,
  .support-panel-tabs button,
  .category-option {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .table-wrap {
    max-width: 100%;
    min-width: 0;
  }
}

.page-skeleton {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: block;
  color: transparent;
  background:
    linear-gradient(180deg, rgba(255, 251, 242, 0.96), rgba(244, 234, 217, 0.96)),
    radial-gradient(circle, rgba(55, 43, 28, 0.04) 0 0.8px, transparent 1px);
  background-size: auto, 22px 22px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

html.page-loading .page-skeleton {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.skeleton-topbar,
.skeleton-page {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.skeleton-topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 73px;
  border-bottom: 1px solid var(--line);
}

.skeleton-logo,
.skeleton-user,
.skeleton-nav span,
.skeleton-line,
.skeleton-metrics span,
.skeleton-toolbar,
.skeleton-grid span {
  position: relative;
  overflow: hidden;
  background: rgba(122, 79, 43, 0.12);
}

.skeleton-logo::after,
.skeleton-user::after,
.skeleton-nav span::after,
.skeleton-line::after,
.skeleton-metrics span::after,
.skeleton-toolbar::after,
.skeleton-grid span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 253, 247, 0.72), transparent);
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.35s ease-in-out infinite;
}

.skeleton-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.skeleton-nav {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.skeleton-nav span {
  width: 86px;
  height: 34px;
  border-radius: var(--radius-sm);
}

.skeleton-user {
  width: 148px;
  height: 34px;
  border-radius: var(--radius-sm);
}

.skeleton-page {
  padding: 24px 0 48px;
}

.skeleton-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: 18px;
  min-height: 168px;
  padding: 24px;
  border: 1px solid rgba(122, 79, 43, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.78);
  box-shadow: var(--shadow);
}

.skeleton-line {
  display: block;
  height: 15px;
  margin-bottom: 14px;
  border-radius: 999px;
}

.skeleton-line.short {
  width: 126px;
}

.skeleton-line.title {
  width: min(520px, 82%);
  height: 34px;
}

.skeleton-line.medium {
  width: min(360px, 64%);
}

.skeleton-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.skeleton-metrics span {
  min-height: 96px;
  border-radius: var(--radius);
}

.skeleton-toolbar {
  height: 82px;
  margin: 16px 0;
  border-radius: var(--radius);
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.skeleton-grid span {
  position: relative;
  display: block;
  min-height: 280px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 18%, rgba(180, 138, 73, 0.18) 0 18px, transparent 19px),
    linear-gradient(135deg, rgba(246, 239, 226, 0.92), rgba(255, 253, 247, 0.64) 46%, rgba(214, 194, 156, 0.3) 70%),
    linear-gradient(180deg, rgba(255, 253, 247, 0.88), rgba(250, 244, 232, 0.8));
  border: 1px solid rgba(122, 79, 43, 0.12);
  box-shadow: 0 18px 42px rgba(52, 38, 20, 0.08);
}

.skeleton-grid span::before {
  content: "";
  position: absolute;
  inset: auto 13px 13px;
  height: 96px;
  border-top: 1px solid rgba(122, 79, 43, 0.08);
  background:
    linear-gradient(rgba(122, 79, 43, 0.12), rgba(122, 79, 43, 0.12)) 0 18px / 64px 18px no-repeat,
    linear-gradient(rgba(55, 43, 28, 0.13), rgba(55, 43, 28, 0.13)) 0 48px / 76% 18px no-repeat,
    linear-gradient(rgba(122, 79, 43, 0.1), rgba(122, 79, 43, 0.1)) 0 78px / 54% 12px no-repeat;
}

.has-image-skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(122, 79, 43, 0.1);
}

.has-image-skeleton::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 253, 247, 0.72), transparent),
    rgba(122, 79, 43, 0.08);
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.25s ease-in-out infinite;
}

.image-loading {
  opacity: 0;
}

.image-loaded {
  opacity: 1;
  transition: opacity 220ms ease;
}

.art-image-button.has-image-skeleton {
  min-height: clamp(220px, 32vw, 360px);
}

@keyframes skeleton-shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-logo::after,
  .skeleton-user::after,
  .skeleton-nav span::after,
  .skeleton-line::after,
  .skeleton-metrics span::after,
  .skeleton-toolbar::after,
  .skeleton-grid span::after {
    animation: none;
  }

  .has-image-skeleton::before {
    animation: none;
  }
}

.site-footer {
  flex: 0 0 auto;
  border-top: 1px solid rgba(255, 250, 241, 0.12);
  background: #070604;
  color: #fffaf1;
}

.site-footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(280px, 1.45fr) auto;
  gap: 22px;
  align-items: center;
  padding: 30px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.footer-logo {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  padding: 5px;
  border: 1px solid rgba(255, 250, 241, 0.72);
  border-radius: 10px;
  background: #fffaf1;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  font-size: 1rem;
  line-height: 1.2;
}

.footer-brand span {
  margin-top: 3px;
  color: rgba(255, 250, 241, 0.68);
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-nav-groups {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.footer-manage-links {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 250, 241, 0.12);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.footer-links a,
.footer-link-button,
.footer-record a,
.footer-legal-links a {
  color: rgba(255, 250, 241, 0.8);
  font-size: 0.88rem;
  font-weight: 760;
}

.footer-links a:hover,
.footer-link-button:hover,
.footer-record a:hover,
.footer-legal-links a:hover {
  color: #fffaf1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-link-button {
  border: 0;
  background: transparent;
  padding: 0;
}

.complaint-dialog {
  width: min(520px, calc(100vw - 32px));
}

.footer-record {
  display: grid;
  gap: 9px;
  justify-self: end;
  justify-items: end;
  white-space: nowrap;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 780;
}

.breadcrumbs a {
  color: var(--accent-dark);
}

.breadcrumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb-separator {
  color: rgba(79, 67, 53, 0.46);
}

.hero-card,
.card,
.art-card,
.feed-card,
.metric-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.92);
  box-shadow: var(--shadow);
}

.eyebrow,
.hint {
  color: var(--muted);
  font-size: 0.82rem;
}

.trust-list,
.tag-row,
.action-row,
.inline-fields,
.section-head,
.section-heading,
.profile-header,
.inline-form {
  display: flex;
  align-items: center;
}

.trust-list,
.tag-row,
.action-row {
  flex-wrap: wrap;
  gap: 8px;
}

.trust-list span,
.tag-row span,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(122, 79, 43, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 760;
}

.application-status {
  border-color: transparent;
  background: transparent;
  padding-inline: 0;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 162px;
  margin-bottom: 12px;
  padding: clamp(16px, 2.5vw, 28px);
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255, 253, 247, 0.96) 0%, rgba(246, 239, 226, 0.78) 58%),
    url("https://images.unsplash.com/photo-1578301978693-85fa9c0320b9?auto=format&fit=max&w=1600&q=82") center / cover;
}

.hero-card > div:first-child {
  display: flex;
  flex-direction: column;
  align-self: center;
  text-align: left;
}

.hero-card p {
  order: 3;
  max-width: 680px;
  margin-bottom: 0;
  color: var(--text-soft);
}

.hero-card h1 {
  order: 1;
  margin-bottom: 4px;
  font-size: clamp(1.32rem, 1.9vw, 1.82rem);
}

.hero-card .eyebrow {
  order: 2;
  margin-bottom: 6px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric-grid.compact {
  grid-template-columns: repeat(3, minmax(86px, 1fr));
  min-width: 300px;
  margin-bottom: 0;
}

.metric-card {
  padding: 9px 11px;
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(246, 239, 226, 0.9));
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.metric-card strong {
  display: block;
  margin-top: 2px;
  font-size: 1.14rem;
  line-height: 1.1;
}

.card {
  padding: 18px;
  margin-bottom: 16px;
}

.legal-page {
  max-width: 860px;
  margin: 0 auto 16px;
  padding: clamp(24px, 4vw, 40px);
}

.legal-sections {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.legal-sections section {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.legal-sections h2 {
  margin-bottom: 6px;
}

.search-form,
.form,
.manager-list {
  display: grid;
  gap: 11px;
}

.search-form {
  gap: 14px;
}

.search-panel {
  padding: 18px;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.search-row input {
  min-height: 48px;
}

.search-row .btn {
  min-width: 92px;
  min-height: 48px;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.category-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  min-width: 72px;
  padding: 0 14px;
  border: 1px solid rgba(122, 79, 43, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 247, 0.82);
  color: var(--accent-dark);
  font-weight: 820;
  cursor: pointer;
}

.category-option:hover,
.category-option.active {
  border-color: var(--accent-dark);
  background: var(--text);
  color: #fffaf1;
}

.search-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 2px;
}

.form {
  grid-template-columns: 1fr;
}

.auth-page {
  display: grid;
  place-items: center;
  min-height: clamp(520px, calc(100dvh - 260px), 760px);
  padding: clamp(18px, 4vh, 44px) 0 clamp(40px, 7vh, 84px);
}

.auth-card {
  width: min(520px, calc(100vw - 32px), 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 0 24px 70px rgba(52, 38, 20, 0.16);
  padding: clamp(28px, 5vw, 52px);
}

.auth-brand {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-bottom: 34px;
  text-align: center;
}

.auth-brand .brand-mark {
  width: 96px;
  height: 96px;
}

.auth-brand h1 {
  margin: 0;
  font-size: 1.65rem;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form.compact {
  margin-top: 14px;
  gap: 10px;
}

.phone-field {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
}

.phone-field > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: rgba(246, 239, 226, 0.68);
  color: var(--text);
  font-weight: 820;
}

.phone-field input {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.phone-field input,
.code-field input,
.code-field .btn,
.password-field input,
.auth-submit {
  min-height: 50px;
}

.code-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
}

.password-field {
  display: grid;
  gap: 6px;
}

.auth-field-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.84rem;
  font-weight: 820;
  line-height: 1.45;
}

.password-field input[aria-invalid="true"] {
  border-color: rgba(158, 63, 49, 0.62);
  box-shadow: 0 0 0 3px rgba(158, 63, 49, 0.12);
}

.auth-submit {
  background: #b8e4c9;
  border-color: #b8e4c9;
  color: #225039;
}

.agreement-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.agreement-check input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.agreement-check a {
  color: #2468c9;
  font-weight: 820;
}

.agreement-check a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.agreement-dialog .hint {
  margin: 0;
  color: var(--text-soft);
}

.agreement-dialog-body {
  display: grid;
  gap: 14px;
}

.agreement-dialog-copy {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  line-height: 1.65;
}

.agreement-dialog-copy a {
  color: #2468c9;
  font-weight: 850;
}

.agreement-dialog-actions .btn {
  flex: 0 0 auto;
  min-width: 112px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 38px 0 16px;
  color: var(--muted);
  font-weight: 820;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.auth-mode-switch {
  text-align: center;
}

.inline-fields {
  gap: 10px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 247, 0.88);
  color: var(--text);
  padding: 11px 12px;
  outline: none;
}

select {
  appearance: none;
  padding-right: 42px;
  background-color: rgba(255, 253, 247, 0.88);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237a4f2b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 14px;
}

select::-ms-expand {
  display: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(122, 79, 43, 0.6);
  box-shadow: 0 0 0 3px rgba(180, 138, 73, 0.16);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--accent-dark);
  border-radius: var(--radius-sm);
  background: var(--text);
  color: #fffaf1;
  font-weight: 850;
  white-space: nowrap;
}

.btn.ghost {
  border-color: var(--line-strong);
  background: rgba(255, 253, 247, 0.84);
  color: var(--text);
}

.btn.danger {
  border-color: var(--danger);
  background: var(--danger);
  color: #fffaf1;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.btn.soft-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.btn.small {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.86rem;
}

.art-grid,
.shop-grid,
.feed-grid,
.account-grid,
.cart-grid,
.admin-grid {
  display: grid;
  gap: 16px;
}

.art-grid {
  --masonry-columns: 3;
  grid-template-columns: repeat(var(--masonry-columns), minmax(0, 1fr));
  align-items: start;
}

.masonry-grid-empty {
  grid-template-columns: 1fr;
}

.masonry-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-content: start;
  min-width: 0;
}

.art-card {
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
}

.art-media {
  position: relative;
  overflow: hidden;
  display: block;
  background: var(--surface-soft);
}

.art-image-button {
  display: block;
  width: 100%;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.art-image-button img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  background: var(--surface-soft);
  transform-origin: center;
  transition: opacity 0.22s ease, filter 0.36s ease, transform 0.34s ease;
}

.art-image-button.ratio-wide,
.feed-card-media.ratio-wide {
  aspect-ratio: 3 / 1;
}

.art-image-button.ratio-tall,
.feed-card-media.ratio-tall {
  aspect-ratio: 1 / 3;
}

.art-image-button.ratio-wide img,
.art-image-button.ratio-tall img,
.feed-card-media.ratio-wide img,
.feed-card-media.ratio-tall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.art-image-button:hover img,
.art-image-button:focus-visible img {
  filter: saturate(1.04) contrast(1.03);
}

.favorite-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 250, 241, 0.76);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.9);
  color: #7a4f2b;
  box-shadow: 0 10px 28px rgba(33, 24, 13, 0.18);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px) scale(0.96);
  transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.art-media:hover .favorite-toggle,
.art-media:focus-within .favorite-toggle {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.favorite-toggle:hover,
.favorite-toggle:focus-visible {
  color: #9e3f31;
  transform: translateY(-1px) scale(1.04);
}

.favorite-toggle:disabled {
  cursor: wait;
  opacity: 0.72;
}

.favorite-toggle.is-favorited {
  background: rgba(158, 63, 49, 0.94);
  color: #fffaf1;
}

@media (hover: none) {
  .favorite-toggle {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
}

.favorite-icon {
  width: 23px;
  height: 23px;
  pointer-events: none;
}

.favorite-icon-solid {
  display: none;
}

.favorite-toggle.is-favorited .favorite-icon-outline {
  display: none;
}

.favorite-toggle.is-favorited .favorite-icon-solid {
  display: block;
}

.invalid-artwork {
  opacity: 0.72;
}

.invalid-artwork .art-image-button img {
  filter: grayscale(0.45) contrast(0.92);
}

.invalid-hint {
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 850;
}

.art-card-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.art-card h2 {
  margin-bottom: 0;
  font-size: 1.42rem;
  font-weight: 950;
  line-height: 1.1;
}

.shop-link {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 850;
  line-height: 1.2;
}

.shop-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shop-link-icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  color: currentColor;
}

.art-card-shop-link {
  margin-top: -2px;
}

.viewer-shop-link {
  align-self: flex-end;
  font-size: 1rem;
  margin-top: -8px;
}

.shop-detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.shop-detail-hero h1 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 6px;
}

.shop-detail-hero .shop-link-icon {
  width: 1em;
  height: 1em;
}

.shop-detail-hero p {
  margin: 0;
  color: var(--muted);
}

.art-description {
  display: -webkit-box;
  margin: -4px 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.6;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.artwork-viewer {
  position: relative;
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(52, 38, 20, 0.34);
}

.artwork-viewer::backdrop {
  background: rgba(33, 27, 20, 0.48);
  backdrop-filter: blur(5px);
}

.viewer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  min-height: min(760px, calc(100vh - 72px));
}

.viewer-gallery {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px;
  background: #16130f;
}

.viewer-gallery > img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: calc(100vh - 170px);
  object-fit: contain;
  transform-origin: center;
  transition: transform 0.34s ease, filter 0.34s ease;
}

.artwork-viewer .viewer-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 8;
  box-shadow: 0 10px 28px rgba(22, 19, 15, 0.16);
}

.viewer-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 38px;
  height: 52px;
  border: 1px solid rgba(255, 250, 241, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(22, 19, 15, 0.58);
  color: #fffaf1;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
}

.viewer-prev {
  left: 16px;
}

.viewer-next {
  right: 16px;
}

.viewer-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.viewer-thumbs button {
  width: 58px;
  height: 44px;
  flex: 0 0 auto;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  overflow: hidden;
}

.viewer-thumbs button.active {
  border-color: var(--accent);
}

.viewer-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  transition: transform 0.28s ease;
}

.viewer-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.viewer-info-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  padding-bottom: 20px;
}

.viewer-actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 28px;
  border-top: 1px solid rgba(52, 38, 20, 0.08);
  background: rgba(255, 253, 247, 0.96);
}

.viewer-info .section-head {
  align-items: start;
}

.viewer-info h2 {
  margin: 0;
  padding-right: 78px;
}

.viewer-description {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.viewer-params {
  display: grid;
  gap: 10px;
  margin: 0;
}

.viewer-params div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.viewer-params dt {
  color: var(--muted);
  font-weight: 850;
}

.viewer-params dd {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.viewer-purchase-summary {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

.viewer-purchase-summary .price {
  color: #9e3f31;
  font-size: 2.15rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.viewer-actions {
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  background: linear-gradient(rgba(255, 253, 247, 0), var(--surface) 24px);
}

.viewer-favorite-action {
  position: static;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-color: var(--line);
  background: #fffdfa;
  box-shadow: none;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.viewer-favorite-action:hover,
.viewer-favorite-action:focus-visible {
  transform: translateY(-1px);
}

.price {
  color: var(--accent-dark);
  white-space: nowrap;
}

.art-card .price {
  display: inline-flex;
  align-items: baseline;
  color: #9e3f31;
  font-size: 1.42rem;
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.shop-grid,
.account-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.my-page {
  display: grid;
  gap: 16px;
}

.my-header {
  margin-bottom: 0;
}

.my-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.my-tabs a,
.my-tabs button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-bottom-color: transparent;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.my-tabs a:hover,
.my-tabs button:hover {
  color: var(--accent-dark);
}

.my-tabs a.active,
.my-tabs button.active {
  border-color: var(--line);
  border-bottom-color: var(--line);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: rgba(255, 253, 247, 0.94);
  color: var(--accent-dark);
  box-shadow: none;
}

.order-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.order-flow button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(246, 239, 226, 0.58);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.order-flow button:hover,
.order-flow button.active {
  border-color: var(--accent-dark);
  background: var(--text);
  color: #fffaf1;
}

.order-mobile-list {
  display: none;
}

.order-mobile-card,
.order-mobile-meta,
.order-mobile-meta > div {
  min-width: 0;
}

.order-mobile-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 247, 0.82);
}

.order-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.order-mobile-head code,
.order-mobile-head .hint {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-mobile-card h2 {
  min-width: 0;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.36;
  overflow-wrap: anywhere;
}

.order-mobile-meta {
  display: grid;
  gap: 8px;
  margin: 0;
}

.order-mobile-meta > div {
  display: grid;
  grid-template-columns: minmax(64px, 0.34fr) minmax(0, 1fr);
  gap: 10px;
}

.order-mobile-meta dt,
.order-mobile-meta dd {
  margin: 0;
}

.order-mobile-meta dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.order-mobile-meta dd {
  color: var(--text-soft);
  font-weight: 780;
  overflow-wrap: anywhere;
}

.order-mobile-actions {
  padding-top: 2px;
}

.order-mobile-empty {
  margin: 0;
  padding: 8px 0;
  text-align: center;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.profile-facts div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(246, 239, 226, 0.52);
}

.profile-facts span,
.profile-facts strong {
  display: block;
}

.profile-facts span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 820;
}

.profile-fact-action {
  display: grid;
  gap: 10px;
  align-content: start;
}

.profile-fact-action .btn {
  justify-self: start;
  margin-top: 2px;
}

.profile-settings-layout {
  display: grid;
  gap: 16px;
}

.profile-settings-card {
  padding: 0;
  overflow: hidden;
}

.profile-settings-card .section-head {
  margin-bottom: 0;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--line);
}

.profile-settings-list {
  display: grid;
}

.profile-setting-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 66px;
  margin: 0;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}

.profile-setting-row:last-child {
  border-bottom: 0;
}

.profile-setting-label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
}

.profile-setting-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.profile-setting-main strong {
  color: var(--text);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.profile-status.needs-attention {
  min-height: 24px;
  padding: 2px 8px 2px 7px;
  border: 1px solid rgba(83, 78, 70, 0.2);
  border-radius: 999px;
  background: rgba(92, 86, 76, 0.1);
  color: #6c655b;
  font-size: 0.78rem;
  line-height: 1.2;
}

.profile-status.needs-attention svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  color: #7a7167;
}

.profile-setting-avatar {
  width: 66px;
  height: 66px;
  font-size: 1.35rem;
}

.profile-setting-form input {
  flex: 1 1 260px;
  width: 100%;
  min-width: 0;
  min-height: 42px;
}

.profile-setting-form.editing .profile-setting-main {
  flex-wrap: wrap;
}

.profile-setting-form.editing .hint {
  flex: 0 1 220px;
  line-height: 1.35;
}

.profile-setting-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-setting-actions .btn {
  white-space: nowrap;
}

.profile-password-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-password-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-password-methods button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 247, 0.78);
  color: var(--muted);
  font-weight: 850;
}

.profile-password-methods button.active {
  border-color: var(--accent);
  background: rgba(122, 79, 43, 0.12);
  color: var(--accent-dark);
}

.profile-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 138px;
  gap: 12px;
}

.profile-password-form {
  min-height: 0;
}

.profile-password-form .profile-password-fields {
  grid-template-columns: 1fr;
  gap: 16px;
}

.profile-avatar-form {
  min-height: 0;
}

.avatar-upload-control {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
}

.avatar-upload-control input {
  min-height: 42px;
}

.avatar-choice-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.avatar-choice {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 3px;
  cursor: pointer;
  overflow: hidden;
}

.avatar-choice.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(122, 79, 43, 0.16);
}

.avatar-choice img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.avatar-preview-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.profile-email-form {
  min-height: 0;
}

.profile-email-fields {
  display: grid;
  gap: 14px;
}

.profile-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.profile-code-row .btn {
  min-width: 116px;
}

.verification-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
}

.verification-code-row input,
.verification-code-row .btn {
  min-height: 50px;
}

.verification-code-row input {
  min-width: 0;
}

.verification-code-row .btn {
  min-width: 150px;
  white-space: nowrap;
}

.address-list {
  display: grid;
  gap: 10px;
}

.address-dialog {
  width: min(860px, calc(100vw - 32px));
}

.address-modal-form {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0;
}

.address-modal-form .address-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
}

.address-field {
  display: grid;
  gap: 7px;
}

.address-field > span {
  color: var(--text-soft);
  font-weight: 850;
}

.address-field.span-full {
  grid-column: 1 / -1;
}

.address-modal-form .address-field input,
.address-modal-form .address-field select,
.address-modal-form .address-field textarea {
  min-height: 46px;
  padding-block: 11px;
}

.address-modal-form .region-selects {
  gap: 16px;
}

.address-modal-form .checkbox-line {
  grid-column: 1 / -1;
  margin-top: 0;
}

.address-modal-form .modal-actions {
  padding: 14px 18px 16px;
}

.store-application-form {
  min-height: 0;
}

.store-application-fields {
  display: grid;
  gap: 18px;
  padding: 24px 28px;
}

.store-application-fields input,
.store-application-fields textarea {
  min-height: 50px;
}

.store-application-fields textarea {
  min-height: 118px;
}

.address-region-current {
  grid-column: 1 / -1;
  margin: 0;
}

.checkout-address-list {
  display: grid;
  gap: 10px;
}

.checkout-address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.address-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(246, 239, 226, 0.52);
  cursor: pointer;
}

.checkout-address-row .address-choice {
  min-width: 0;
}

.checkout-address-row.selected .address-choice {
  border-color: rgba(122, 79, 43, 0.46);
  background: rgba(180, 138, 73, 0.14);
  box-shadow: inset 0 0 0 1px rgba(122, 79, 43, 0.18);
}

.checkout-address-row > .btn {
  align-self: center;
}

.address-choice input {
  margin-top: 4px;
}

.address-choice strong,
.address-choice em {
  display: block;
}

.address-choice em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
}

.checkout-empty {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 247, 0.66);
}

.checkout-empty p {
  margin: 0;
}

.checkout-notice {
  padding: 12px 14px;
  border: 1px solid rgba(158, 63, 49, 0.26);
  border-radius: var(--radius-sm);
  background: rgba(158, 63, 49, 0.08);
  color: var(--danger);
  font-weight: 850;
  line-height: 1.55;
}

.checkout-confirm-form {
  margin-top: 14px;
}

.checkout-section-head {
  align-items: center;
}

.inline-action {
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkout-address-create {
  justify-self: start;
  margin-top: 2px;
}

.attachment-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.attachment-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 247, 0.84);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 820;
}

.shop-empty-state {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  color: var(--muted);
}

.shop-empty-state a:not(.btn) {
  color: var(--accent-dark);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shop-empty-state p {
  margin: 0;
}

.store-modal {
  width: min(560px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0;
  box-shadow: 0 28px 90px rgba(52, 38, 20, 0.28);
}

.store-modal::backdrop {
  background: rgba(33, 27, 20, 0.36);
  backdrop-filter: blur(4px);
}

.standard-modal {
  max-height: calc(var(--app-visual-height, 100dvh) - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.standard-modal .modal-head {
  flex: 0 0 auto;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.modal-body {
  min-height: 0;
  padding: 18px;
  overflow: auto;
}

.modal-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
  margin-top: 0;
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line);
  background: rgba(248, 241, 229, 0.55);
}

.modal-actions .btn {
  flex: 0 0 auto;
  min-width: 96px;
}

.store-application-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.setup-modal {
  width: min(480px, calc(100vw - 32px));
}

.setup-form .hint {
  margin: -4px 0 2px;
}

.setup-form input {
  min-height: 48px;
}

.setup-form .action-row .btn {
  flex: 1 1 140px;
  justify-content: center;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-head h2 {
  margin: 0;
}

.store-application-form label {
  display: grid;
  gap: 7px;
}

.store-application-form label > span {
  color: var(--text-soft);
  font-weight: 850;
}

.store-application-form em {
  color: var(--muted);
  font-style: normal;
  font-weight: 760;
}

.attachment-field {
  position: relative;
  min-height: 112px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(246, 239, 226, 0.45);
  cursor: pointer;
}

.attachment-field input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.attachment-field strong {
  color: var(--muted);
  font-weight: 760;
}

.attachment-field b {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 247, 0.9);
  color: var(--accent-dark);
  font-size: 1.35rem;
  line-height: 1;
}

.avatar-attachment-field {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.avatar-attachment-field > span:first-child,
.avatar-attachment-field strong {
  grid-column: 1;
}

.avatar-attachment-field > span:first-child {
  display: grid;
  gap: 3px;
}

.avatar-attachment-field .avatar-preview,
.avatar-attachment-field b {
  grid-column: 2;
}

.avatar-attachment-field .avatar-preview {
  grid-row: 1 / 3;
  align-self: center;
}

.avatar-attachment-field b {
  justify-self: end;
}

.address-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.address-form .modal-head,
.address-form .span-full,
.address-form .region-selects,
.address-form .address-region-input,
.address-form .checkbox-line,
.address-form > .btn {
  grid-column: 1 / -1;
}

.region-selects {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.region-selects select:disabled {
  color: rgba(79, 67, 53, 0.48);
  background: rgba(246, 239, 226, 0.5);
  cursor: not-allowed;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-weight: 760;
}

.checkbox-line input {
  width: auto;
}

.feed-grid {
  --masonry-columns: 3;
  grid-template-columns: repeat(var(--masonry-columns), minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.feed-grid .masonry-column {
  gap: 18px;
}

.community-posts-grid {
  grid-template-columns: repeat(var(--masonry-columns), minmax(min(100%, 280px), 1fr));
  gap: clamp(12px, 2vw, 18px);
}

.community-posts-grid .masonry-column {
  grid-template-columns: minmax(0, 1fr);
  min-width: min(100%, 280px);
  gap: clamp(12px, 2vw, 18px);
}

.community-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.community-modal {
  width: min(640px, calc(100vw - 32px));
}

.community-compose-form {
  min-height: 0;
  gap: 0;
}

.community-compose-body {
  display: grid;
  gap: 16px;
}

.community-compose-body textarea {
  min-height: 148px;
  resize: vertical;
}

.community-compose-body .attachment-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 14px;
  min-height: 108px;
}

.community-compose-body .attachment-field > span,
.community-compose-body .attachment-field strong {
  grid-column: 1;
}

.community-compose-body .attachment-field b {
  grid-column: 2;
  grid-row: 1 / 3;
}

.community-compose-body .attachment-field.has-file {
  border-color: var(--accent);
  background: rgba(255, 253, 247, 0.92);
}

.community-compose-preview-wrap {
  display: grid;
  justify-items: start;
  gap: 6px;
  margin: 0;
}

.community-compose-preview-wrap figcaption,
.community-compose-error {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.community-compose-error {
  margin: -6px 0 0;
  color: #9f322e;
}

.community-compose-preview {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 420px);
  max-height: 360px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fffdfa;
}

.feed-card {
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
}

.feed-card-media {
  display: block;
  background: var(--surface-soft);
  overflow: hidden;
}

.feed-card-media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  transform-origin: center;
  transition: opacity 0.22s ease, filter 0.36s ease, transform 0.34s ease;
}

.feed-card:hover .feed-card-media img,
.feed-card:focus-within .feed-card-media img {
  filter: saturate(1.05) contrast(1.03);
}

.feed-card-body {
  display: grid;
  gap: 8px;
  padding: 12px 13px 13px;
}

.feed-author {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.feed-author strong {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.3;
}

.feed-author span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 820;
  white-space: nowrap;
}

.feed-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.52;
}

.feed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 2px;
}

.feed-actions button {
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(122, 79, 43, 0.16);
  border-radius: 999px;
  background: rgba(246, 239, 226, 0.55);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 820;
}

.feed-actions button:hover {
  border-color: rgba(122, 79, 43, 0.32);
  background: rgba(180, 138, 73, 0.18);
  color: var(--accent-dark);
}

.feed-actions button.liked {
  border-color: rgba(122, 79, 43, 0.42);
  background: rgba(180, 138, 73, 0.22);
  color: var(--accent-dark);
}

.feed-actions button:disabled {
  cursor: wait;
  opacity: 0.78;
}

@media (max-width: 840px) {
  .community-posts-grid {
    gap: 12px;
  }

  .community-posts-grid .masonry-column {
    min-width: 0;
    gap: 12px;
  }

  .community-posts-grid .feed-card,
  .community-posts-grid .feed-card-main,
  .community-posts-grid .feed-card-body {
    min-width: 0;
  }

  .community-posts-grid .feed-card-body {
    gap: 6px;
    padding: 10px;
  }

  .community-posts-grid .feed-author {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    align-items: start;
  }

  .community-posts-grid .feed-author strong,
  .community-posts-grid .feed-author span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .community-posts-grid .feed-card p {
    display: -webkit-box;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .community-posts-grid .feed-actions-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 10px 10px;
  }

  .community-posts-grid .feed-actions-card button {
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding: 0 6px;
    overflow: hidden;
    font-size: 0.72rem;
    white-space: nowrap;
  }
}

.cart-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.cart-page,
.checkout-page {
  display: grid;
  gap: 16px;
}

.cart-page .section-head h1 {
  margin-bottom: 4px;
  font-size: 1.55rem;
}

.cart-page .table-wrap {
  margin-top: 14px;
}

.cart-check {
  width: 18px;
  height: 18px;
}

.cart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
}

.cart-mobile-list {
  display: none;
}

.cart-mobile-item,
.cart-mobile-main,
.cart-mobile-title-row,
.cart-mobile-meta {
  min-width: 0;
}

.cart-artwork-cell,
.checkout-artwork-cell {
  min-width: 0;
}

.cart-artwork-cell strong,
.checkout-artwork-cell strong {
  color: var(--text);
  font-weight: 900;
}

.cart-artwork-cell .invalid-hint {
  display: block;
  margin-top: 5px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.checkout-total {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(122, 79, 43, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(180, 138, 73, 0.18), rgba(255, 253, 247, 0.92));
}

.checkout-total span {
  color: var(--text-soft);
  font-weight: 900;
}

.checkout-total strong {
  color: var(--accent-dark);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1;
}

.payment-field {
  display: grid;
  gap: 7px;
}

.payment-field span {
  color: var(--text-soft);
  font-weight: 850;
}

.admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-dashboard {
  display: grid;
  gap: 16px;
}

.manager-tabs {
  margin-bottom: 0;
}

.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-hero h1 {
  margin-bottom: 4px;
  font-size: 1.55rem;
}

.admin-hero p {
  margin: 0;
  color: var(--muted);
}

.admin-quick-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-platform-overview {
  display: grid;
  gap: 18px;
}

.admin-platform-overview .section-head {
  margin-bottom: 0;
}

.admin-platform-group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.admin-platform-group {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.64);
}

.admin-platform-group-head {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(122, 79, 43, 0.12);
}

.admin-platform-group-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
}

.admin-platform-group-head span,
.admin-platform-block-title {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
}

.admin-platform-block {
  display: grid;
  gap: 8px;
}

.admin-platform-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-platform-metric-grid .metric-card {
  min-width: 0;
  min-height: 62px;
  margin: 0;
  padding: 10px;
}

.admin-platform-metric-grid .wide-metric {
  grid-column: 1 / -1;
}

.admin-todo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-todo-grid div,
.shop-stat-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(246, 239, 226, 0.5);
}

.admin-todo-grid div {
  padding: 12px;
}

.admin-todo-grid span,
.shop-stat-row span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
}

.admin-todo-grid strong,
.shop-stat-row strong {
  display: block;
  margin-top: 4px;
}

.shop-stat-list {
  display: grid;
  gap: 10px;
}

.shop-stat-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(92px, auto));
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.admin-review-row {
  grid-template-columns: minmax(0, 1fr) 150px auto;
}

.wide {
  grid-column: 1 / -1;
}

.section-head,
.section-heading {
  justify-content: space-between;
  gap: 14px;
}

.profile-header {
  gap: 14px;
}

.profile-header > .avatar {
  flex: 0 0 58px;
  min-width: 58px;
  min-height: 58px;
}

.profile-header > div {
  min-width: 0;
}

.profile-header h1,
.profile-header p {
  overflow-wrap: anywhere;
}

.profile-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-dialog {
  width: min(520px, calc(100vw - 32px));
}

.identity-dialog {
  max-height: calc(100dvh - 36px);
}

.profile-identity-form {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.profile-identity-fields {
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  gap: 12px;
  overflow: auto;
}

.profile-identity-fields .attachment-field {
  min-height: 112px;
}

.identity-dialog .modal-actions {
  flex: 0 0 auto;
}

.profile-dialog input,
.profile-dialog textarea {
  min-height: 46px;
}

.avatar-upload-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-upload-row input {
  min-height: auto;
}

.avatar-preview {
  flex: 0 0 auto;
}

.avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(122, 79, 43, 0.24);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 1.4rem;
  font-weight: 900;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manager-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(246, 239, 226, 0.55);
}

.complaint-row {
  align-items: start;
}

.identity-request-row {
  grid-template-columns: minmax(0, 1fr) 150px auto;
  align-items: start;
}

.community-admin-row {
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: start;
}

.community-admin-media {
  display: grid;
  width: 76px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 247, 0.72);
  color: var(--muted);
  font-size: 0.78rem;
  overflow: hidden;
}

.community-admin-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  transition: transform 0.34s ease, filter 0.34s ease;
}

@media (hover: hover) and (pointer: fine) {
  .viewer-gallery {
    overflow: hidden;
  }

  .art-image-button:hover img,
  .art-image-button:focus-visible img,
  .feed-card:hover .feed-card-media img,
  .feed-card:focus-within .feed-card-media img,
  .viewer-thumbs button:hover img,
  .viewer-thumbs button:focus-visible img,
  .community-admin-media:hover img {
    transform: scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .art-image-button img,
  .viewer-gallery > img,
  .viewer-thumbs img,
  .feed-card-media img,
  .community-admin-media img {
    transition: opacity 0.22s ease, filter 0.22s ease;
  }

  .art-image-button:hover img,
  .art-image-button:focus-visible img,
  .feed-card:hover .feed-card-media img,
  .feed-card:focus-within .feed-card-media img,
  .viewer-thumbs button:hover img,
  .viewer-thumbs button:focus-visible img,
  .community-admin-media:hover img {
    transform: none;
  }
}

.admin-community-modal {
  width: min(620px, calc(100vw - 32px));
}

.admin-community-form {
  min-height: 0;
}

.admin-community-fields {
  display: grid;
  gap: 18px;
  padding: 24px 28px;
}

.admin-community-fields textarea {
  min-height: 128px;
}

.confirm-dialog {
  width: min(460px, calc(100vw - 32px));
}

.confirm-dialog-body {
  display: grid;
  gap: 12px;
}

.confirm-dialog-body p {
  margin: 0;
  color: var(--text);
  font-weight: 850;
}

.confirm-dialog-body strong {
  display: -webkit-box;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.identity-review-modal {
  width: min(960px, calc(100vw - 32px));
}

.approval-grid {
  display: grid;
  gap: 18px;
}

.approval-subtabs {
  margin: 12px 0 18px;
}

.compact-head {
  margin-bottom: 10px;
}

.compact-head h2 {
  margin-bottom: 0;
}

.manager-row strong,
.manager-row span {
  display: block;
}

.manager-row span {
  color: var(--muted);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.artwork-modal {
  width: min(860px, calc(100vw - 32px));
  position: relative;
  inset: auto;
  margin: 0;
  max-height: calc(var(--app-visual-height, 100vh) - 40px);
  overflow: auto;
}

.artwork-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 22px;
}

.artwork-form .form-field {
  display: grid;
  gap: 7px;
}

.artwork-form .form-field > span,
.artwork-form .artwork-image-field > span {
  color: var(--text-soft);
  font-weight: 850;
}

.artwork-form input,
.artwork-form select,
.artwork-form textarea {
  min-height: 46px;
}

.artwork-form textarea {
  min-height: 108px;
}

.artwork-form .modal-head,
.artwork-form .span-full,
.artwork-form .artwork-image-field,
.artwork-form .artwork-image-hint,
.artwork-form > .btn {
  grid-column: 1 / -1;
}

.artwork-form .artwork-image-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 14px;
}

.artwork-form .artwork-image-field > span,
.artwork-form .artwork-image-field strong {
  grid-column: 1;
}

.artwork-form .artwork-image-field b {
  grid-column: 2;
  grid-row: 1 / 3;
}

.artwork-image-preview-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.artwork-image-preview {
  position: relative;
  display: block;
  min-height: 118px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.artwork-image-preview.active {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(180, 138, 73, 0.18);
}

.artwork-image-preview img {
  width: 100%;
  height: 118px;
  object-fit: cover;
}

.artwork-image-preview span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(23, 17, 12, 0.78);
  color: #fffaf1;
  font-size: 0.76rem;
  font-weight: 900;
}

.artwork-image-preview.active span {
  background: #9e3f31;
}

.artwork-form .artwork-image-hint {
  margin: -8px 0 0;
}

.artwork-form > .btn {
  width: min(180px, 100%);
  justify-self: end;
}

.table-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.table-actions .inline-form {
  flex-wrap: nowrap;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.76);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  background: rgba(246, 239, 226, 0.72);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
}

.favorites-empty-state {
  width: 100%;
  min-height: 220px;
  padding: 32px;
}

.toast-stack {
  position: fixed;
  right: 22px;
  top: 50vh;
  z-index: 800;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 28px));
  transform: translateY(-50%);
}

.toast {
  border-radius: var(--radius);
  background: var(--text);
  color: #fffaf1;
  padding: 12px 14px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
  animation: toast-in 0.22s ease-out both;
}

.toast.auth-required {
  background: var(--accent-dark);
}

.toast-hide {
  opacity: 0;
  transform: translateX(14px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(18px, 0); }
  to { opacity: 1; transform: translate(0, 0); }
}

@media (max-width: 980px) {
  .skeleton-topbar {
    height: auto;
    min-height: 73px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .skeleton-nav span {
    width: 74px;
  }

  .skeleton-hero {
    grid-template-columns: 1fr;
  }

  .skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar-inner,
  .section-head,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-inner {
    width: calc(100% - 20px);
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
  }

  .brand {
    min-width: 0;
    flex: 0 0 auto;
    gap: 6px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .main-nav,
  .auth-actions {
    align-items: center;
  }

  .main-nav {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
    gap: 6px;
  }

  .main-nav .nav-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
  }

  .nav-measure-links {
    gap: 4px;
  }

  .topbar-inner.nav-expanded > .primary-nav-menu {
    display: none;
  }

  .topbar-inner.nav-collapsed > .primary-nav-menu {
    display: block;
  }

  .primary-nav-trigger {
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    font-size: 0.86rem;
  }

  .primary-nav-panel {
    left: auto;
    right: 0;
    width: min(210px, calc(100vw - 20px));
  }

  .auth-actions {
    flex: 0 0 auto;
    margin-left: 0;
  }

  .auth-actions .btn.small,
  .user-avatar-trigger {
    min-height: 42px;
  }

  .hero-card,
  .search-row,
  .region-selects,
  .phone-field,
  .code-field,
  .art-grid,
  .shop-grid,
  .feed-grid,
  .account-grid,
  .profile-facts,
  .address-form,
  .cart-grid,
  .checkout-grid,
  .admin-grid,
  .admin-metrics,
  .admin-platform-group-grid,
  .admin-platform-metric-grid,
  .metric-grid,
  .metric-grid.compact,
  .artwork-form,
  .manager-row,
  .admin-todo-grid,
  .shop-stat-row {
    grid-template-columns: 1fr;
  }

  .auth-form .phone-field {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .hero-card .metric-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    gap: 8px;
  }

  .hero-card .metric-grid.compact .metric-card {
    min-width: 0;
    padding: 8px;
  }

  .hero-card .metric-grid.compact .metric-card span {
    font-size: 0.74rem;
  }

  .hero-card .metric-grid.compact .metric-card strong {
    font-size: 1rem;
  }

  .search-panel .search-row {
    grid-template-columns: minmax(0, 1fr) minmax(72px, 0.26fr);
    gap: 8px;
  }

  .search-panel .search-row input,
  .search-panel .search-row .btn {
    min-height: 44px;
  }

  .search-panel .search-row .btn {
    min-width: 0;
    padding-inline: 12px;
  }

  .admin-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-quick-actions {
    justify-content: flex-start;
  }

  .viewer-shell {
    height: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
  }

  .artwork-viewer {
    height: calc(100vh - 32px);
    height: calc(100dvh - 32px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
  }

  .viewer-gallery {
    min-height: 0;
  }

  .artwork-viewer .viewer-close {
    right: auto;
    left: 14px;
  }

  .artwork-viewer .viewer-gallery-favorite {
    right: 14px;
    left: auto;
    top: 14px;
  }

  .viewer-gallery > img {
    height: min(42dvh, 380px);
    min-height: 0;
    max-height: min(42dvh, 380px);
  }

  .viewer-info {
    min-height: 0;
  }

  .viewer-info-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }

  .viewer-actions {
    flex: 0 0 auto;
  }

  .art-grid {
    --masonry-columns: 2;
    grid-template-columns: repeat(var(--masonry-columns), minmax(0, 1fr));
  }

  .feed-card {
    grid-template-columns: 1fr;
  }

  .feed-grid {
    --masonry-columns: 2;
    grid-template-columns: repeat(var(--masonry-columns), minmax(0, 1fr));
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-nav-groups {
    justify-items: start;
  }

  .footer-record {
    justify-self: start;
    justify-items: start;
  }

  .footer-legal-links {
    justify-content: flex-start;
  }
}
}

@media (max-width: 640px) {
  .artwork-image-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar-inner {
    width: calc(100% - 20px);
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
  }

  .brand {
    min-width: 0;
    flex: 0 0 auto;
    gap: 6px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .main-nav {
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    gap: 6px;
  }

  .nav-links {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 3px;
    overflow: visible;
  }

  .nav-measure-links {
    gap: 3px;
  }

  .nav-link {
    min-height: 34px;
    padding: 5px 7px;
    white-space: nowrap;
    font-size: 0.8rem;
  }

  .nav-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.92rem;
  }

  .user-avatar-trigger {
    padding-right: 6px;
  }

  .primary-nav-trigger {
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    font-size: 0.86rem;
  }

  .primary-nav-panel {
    left: auto;
    right: 0;
    width: min(210px, calc(100vw - 20px));
  }

  .auth-actions {
    flex: 0 0 auto;
    align-items: center;
    margin-left: 0;
  }

  .auth-actions .btn.small,
  .user-avatar-trigger {
    min-height: 34px;
  }

  .skeleton-topbar,
  .skeleton-page {
    width: calc(100% - 20px);
  }

  .skeleton-topbar {
    gap: 10px;
  }

  .skeleton-logo {
    width: 38px;
    height: 38px;
  }

  .skeleton-user {
    display: none;
  }

  .skeleton-nav span {
    width: calc(50% - 4px);
    height: 32px;
  }

  .skeleton-page {
    padding-top: 14px;
  }

  .skeleton-hero {
    min-height: 144px;
    padding: 18px;
  }

  .skeleton-metrics,
  .skeleton-grid {
    grid-template-columns: 1fr;
  }

  .skeleton-metrics span {
    min-height: 62px;
  }

  .skeleton-toolbar {
    height: 68px;
  }

  .skeleton-grid span {
    min-height: 210px;
  }

  .hero-card .metric-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    gap: 8px;
  }

  .hero-card .metric-grid.compact .metric-card {
    min-width: 0;
    padding: 8px;
  }

  .hero-card .metric-grid.compact .metric-card span {
    font-size: 0.74rem;
  }

  .hero-card .metric-grid.compact .metric-card strong {
    font-size: 1rem;
  }

  .artwork-viewer {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px);
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }

  .artwork-viewer .viewer-close {
    right: auto;
    left: 14px;
  }

  .viewer-gallery {
    padding: 12px;
  }

  .viewer-gallery > img {
    height: min(35dvh, 260px);
    min-height: 0;
    max-height: min(35dvh, 260px);
  }

  .viewer-info-scroll {
    padding: 18px;
    padding-bottom: 14px;
  }

  .viewer-actions {
    padding: 12px 18px;
  }

  .viewer-params div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .artwork-viewer .viewer-gallery-favorite {
    right: 14px;
    left: auto;
    top: 14px;
  }

  .cart-page,
  .checkout-page {
    gap: 12px;
  }

  .cart-page .card,
  .checkout-page .card {
    margin-bottom: 0;
    padding: 14px;
  }

  .cart-page .section-head,
  .checkout-page .section-head {
    gap: 8px;
  }

  .cart-page .section-head .price {
    font-size: 1.35rem;
  }

  .cart-page .table-wrap,
  .checkout-page .table-wrap {
    margin-top: 12px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .cart-page .responsive-table,
  .checkout-page .responsive-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  .cart-page .responsive-table thead,
  .checkout-page .responsive-table thead {
    display: none;
  }

  .cart-page .responsive-table tbody,
  .checkout-page .responsive-table tbody {
    display: grid;
    gap: 10px;
  }

  .cart-page .responsive-table tr,
  .checkout-page .responsive-table tr {
    display: grid;
    gap: 9px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 253, 247, 0.84);
  }

  .cart-page .responsive-table td,
  .checkout-page .responsive-table td {
    display: grid;
    grid-template-columns: minmax(64px, 0.35fr) minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
  }

  .cart-page .responsive-table td::before,
  .checkout-page .responsive-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
  }

  .cart-page .responsive-table td[colspan],
  .checkout-page .responsive-table td[colspan] {
    display: block;
  }

  .cart-page .responsive-table td[colspan]::before,
  .checkout-page .responsive-table td[colspan]::before {
    display: none;
  }

  .cart-page .responsive-table .cart-artwork-cell,
  .checkout-page .responsive-table .checkout-artwork-cell {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .cart-page .responsive-table .cart-select-cell {
    grid-template-columns: minmax(64px, 0.35fr) minmax(0, 1fr);
    align-items: center;
  }

  .cart-page .responsive-table .cart-select-cell input {
    width: 20px;
    height: 20px;
  }

  .cart-page .responsive-table .cart-action-cell {
    grid-template-columns: 1fr;
  }

  .cart-page .responsive-table .cart-action-cell::before {
    display: none;
  }

  .cart-page .responsive-table .cart-action-cell .btn,
  .cart-footer .btn,
  .checkout-section-head .btn,
  .checkout-confirm-form > .btn {
    width: 100%;
  }

  .cart-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .checkout-total {
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding: 13px 14px;
  }

  .checkout-total strong {
    font-size: 1.35rem;
  }

  .checkout-address-row {
    grid-template-columns: 1fr;
  }

  .address-choice {
    grid-template-columns: 22px minmax(0, 1fr);
    padding: 11px;
  }

  .address-choice strong,
  .address-choice em {
    overflow-wrap: anywhere;
  }

  .checkout-confirm-form textarea,
  .payment-field select {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .brand-title {
    display: none;
  }
}

@media (max-width: 760px) {
  .cart-page .table-wrap {
    display: none;
  }

  .cart-mobile-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
  }

  .cart-mobile-item {
    display: grid;
    grid-template-columns: 24px 86px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 253, 247, 0.88);
    box-shadow: 0 8px 22px rgba(52, 38, 20, 0.06);
  }

  .cart-mobile-check {
    display: grid;
    min-height: 86px;
    place-items: center;
  }

  .cart-mobile-check input {
    width: 20px;
    height: 20px;
  }

  .cart-mobile-thumb {
    display: grid;
    width: 86px;
    overflow: hidden;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
  }

  .cart-mobile-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .cart-mobile-main {
    display: grid;
    gap: 6px;
    align-content: start;
  }

  .cart-mobile-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
  }

  .cart-mobile-title-row h2 {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 0.98rem;
    line-height: 1.35;
  }

  .cart-mobile-remove {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 850;
  }

  .cart-mobile-shop {
    max-width: 100%;
    justify-self: start;
    overflow: hidden;
    color: var(--accent-dark);
    font-size: 0.8rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cart-mobile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 820;
  }

  .cart-mobile-price {
    justify-self: end;
    color: #9e3f31;
    font-size: 1.02rem;
    font-weight: 950;
    line-height: 1;
  }

  .cart-mobile-empty {
    margin: 0;
    padding: 16px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    background: rgba(255, 253, 247, 0.72);
    text-align: center;
  }

  .cart-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .cart-footer .btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .cart-mobile-item {
    grid-template-columns: 22px 74px minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .cart-mobile-check {
    min-height: 74px;
  }

  .cart-mobile-thumb {
    width: 74px;
  }
}

.support-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 250;
}

.mobile-support-page {
  display: grid;
  gap: 16px;
}

.support-widget.support-widget-page {
  position: static;
  right: auto;
  bottom: auto;
  z-index: auto;
  width: 100%;
}

.support-fab {
  position: relative;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(255, 250, 241, 0.72);
  border-radius: 999px;
  background: #17110c;
  color: #fffaf1;
  box-shadow: 0 18px 44px rgba(32, 22, 12, 0.24);
  font-weight: 900;
  touch-action: none;
}

.support-fab-icon {
  width: 33px;
  height: 33px;
  color: #fffaf1;
  pointer-events: none;
}

.nav-link-with-badge,
.tab-pill,
.support-thread-avatar {
  position: relative;
}

.unread-badge {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 250, 241, 0.86);
  background: #9e3f31;
  color: #fffaf1;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.nav-link .unread-badge,
.tab-pill .unread-badge {
  margin-left: 6px;
}

.support-fab-badge {
  position: absolute;
  top: -3px;
  right: -3px;
}

.support-login-dialog {
  width: min(460px, calc(100vw - 32px));
}

.support-login-body p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.unread-badge.mini {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  font-size: 0.68rem;
  font-style: normal;
}

.unread-badge.inline {
  display: inline-grid;
  margin-left: 6px;
  vertical-align: middle;
}

.support-popover {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: min(460px, calc(100vw - 28px));
  height: min(560px, calc(100vh - 110px));
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(33, 24, 13, 0.22);
}

.support-widget.support-widget-page .support-fab {
  display: none;
}

.support-widget.support-widget-page .support-popover {
  position: static;
  width: 100%;
  height: min(720px, calc(100dvh - 210px));
  min-height: 520px;
}

.support-standalone-shell {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
}

.support-standalone-chat {
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.support-standalone-chat .support-panel-layout {
  height: 100dvh;
  min-height: 0;
}

.support-thread-rail {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px 9px;
  border-right: 1px solid var(--line);
  background: #17110c;
  scrollbar-width: thin;
}

.support-thread-avatar,
.support-thread-mini-avatar {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fffaf1;
  color: var(--accent-dark);
  font-weight: 900;
}

.support-thread-avatar {
  width: 44px;
  height: 44px;
  border: 2px solid transparent;
  overflow: hidden;
}

.support-thread-avatar.platform {
  background: #2563eb;
  color: #ffffff;
}

.support-platform-icon {
  width: 25px;
  height: 25px;
  color: currentColor;
  pointer-events: none;
}

.support-thread-avatar.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(180, 138, 73, 0.2);
}

.support-chat,
.support-panel-chat {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.support-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 241, 229, 0.76);
}

.support-mobile-list-head,
.support-chat-back {
  display: none;
}

.support-chat-head strong {
  display: block;
}

.support-messages {
  min-height: 0;
  height: 100%;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: #fbf5ea;
}

.support-message {
  max-width: 82%;
  align-self: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.support-message.own {
  align-self: flex-end;
  border-color: rgba(122, 79, 43, 0.26);
  background: rgba(180, 138, 73, 0.16);
}

.support-message.system {
  max-width: 100%;
  align-self: center;
  background: transparent;
  border-style: dashed;
  color: var(--muted);
}

.support-message strong,
.support-message time {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
}

.support-message p {
  margin: 3px 0;
  color: var(--text);
  white-space: pre-wrap;
}

.support-composer {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.support-composer input {
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fffdfa;
}

.support-panel-hero {
  align-items: center;
}

.support-panel-page {
  padding: 0;
  overflow: hidden;
}

.support-panel-tabs {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 241, 229, 0.72);
}

.tab-pill {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  font-weight: 850;
}

.tab-pill.active {
  border-color: rgba(122, 79, 43, 0.32);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.support-panel-layout {
  height: min(720px, calc(100dvh - 250px));
  min-height: 540px;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  overflow: hidden;
}

.support-panel-threads {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: #fffaf1;
}

.support-panel-threads .empty-copy.centered {
  min-height: 100%;
  height: 100%;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
}

.support-panel-thread {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 42px 12px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.support-panel-thread .unread-badge.mini.support-thread-list-badge {
  position: absolute;
  top: 50%;
  right: 14px;
  left: auto;
  z-index: 2;
  transform: translateY(-50%);
}

.support-panel-thread.active,
.support-panel-thread:hover {
  background: var(--accent-soft);
}

.support-thread-mini-avatar {
  width: 44px;
  height: 44px;
  background: #17110c;
  color: #fffaf1;
}

.support-panel-thread strong,
.support-panel-thread small,
.support-panel-thread em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-panel-thread small,
.support-panel-thread em,
.empty-copy {
  color: var(--muted);
}

.support-panel-thread em {
  margin-top: 3px;
  font-style: normal;
}

.support-messages.panel {
  min-height: 0;
}

@media (max-width: 760px) {
  .support-popover {
    grid-template-columns: 54px minmax(0, 1fr);
    width: calc(100vw - 20px);
    right: -10px;
  }

  .support-widget.support-widget-page .support-popover {
    width: 100%;
    height: calc(100dvh - 170px);
    min-height: 520px;
    right: auto;
  }

  .support-panel-layout {
    height: auto;
    grid-template-columns: 1fr;
  }

  .support-standalone-chat .support-panel-layout {
    height: 100dvh;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .support-panel-threads {
    max-height: 260px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .support-standalone-chat .support-panel-threads {
    display: flex;
    gap: 8px;
    max-height: 104px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px;
  }

  .support-standalone-chat .support-panel-thread {
    min-width: min(220px, 72vw);
    border-right: 1px solid var(--line);
    border-bottom: 0;
    border-radius: var(--radius-sm);
    background: rgba(255, 253, 247, 0.72);
  }

  .support-standalone-chat .support-panel-chat {
    min-height: 0;
  }

  .react-support-chat-page .support-panel-layout,
  .support-standalone-chat.react-support-chat-page .support-panel-layout {
    height: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
  }

  .react-support-chat-page .support-panel-threads,
  .support-standalone-chat.react-support-chat-page .support-panel-threads {
    display: block;
    max-height: none;
    min-height: 0;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
    border-right: 0;
    border-bottom: 0;
  }

  .react-support-chat-page.mobile-thread-list-open .support-panel-chat,
  .react-support-chat-page.mobile-chat-open .support-panel-threads {
    display: none;
  }

  .react-support-chat-page .support-mobile-list-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 62px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(248, 241, 229, 0.92);
    backdrop-filter: blur(10px);
  }

  .react-support-chat-page .support-mobile-list-head strong {
    display: block;
    color: var(--text);
    font-size: 1rem;
    font-weight: 900;
  }

  .react-support-chat-page .support-panel-thread,
  .support-standalone-chat.react-support-chat-page .support-panel-thread {
    min-width: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }

  .react-support-chat-page .support-panel-thread.active,
  .react-support-chat-page .support-panel-thread:hover {
    background: var(--accent-soft);
  }

  .react-support-chat-page .support-panel-chat {
    min-height: 0;
    height: 100%;
  }

  .react-support-chat-page .support-chat-head {
    min-height: 62px;
    justify-content: flex-start;
    gap: 10px;
  }

  .react-support-chat-page .support-chat-back {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 34px;
    padding: 0 8px;
    border: 1px solid rgba(122, 79, 43, 0.18);
    border-radius: var(--radius-sm);
    background: rgba(255, 253, 247, 0.78);
    color: var(--accent-dark);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 850;
  }

  .react-support-chat-page .support-messages.panel {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .section-head,
  .section-heading,
  .page-list-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .my-tabs,
  .manager-tabs,
  .support-panel-tabs,
  .category-filter {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .my-tabs::-webkit-scrollbar,
  .manager-tabs::-webkit-scrollbar,
  .support-panel-tabs::-webkit-scrollbar,
  .category-filter::-webkit-scrollbar {
    display: none;
  }

  .my-tabs a,
  .my-tabs button,
  .manager-tabs button,
  .support-panel-tabs button,
  .category-option {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .unified-order-card {
    min-width: 0;
    overflow: hidden;
  }

  .order-list-card .table-wrap {
    display: none;
  }

  .order-mobile-list {
    display: grid;
    gap: 10px;
    min-width: 0;
  }

  .order-flow {
    flex-wrap: nowrap;
    max-width: 100%;
    margin-inline: -2px;
    padding: 0 2px 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .order-flow::-webkit-scrollbar {
    display: none;
  }

  .order-flow button {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 11px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .order-type-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .order-type-tabs button {
    width: 100%;
    min-width: 0;
  }

  .profile-settings-card .section-head {
    padding: 18px 16px 12px;
  }

  .profile-setting-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 16px;
  }

  .profile-setting-main {
    width: 100%;
  }

  .profile-setting-row .btn {
    justify-self: start;
  }

  .profile-setting-actions {
    justify-self: start;
    justify-content: flex-start;
  }

  .profile-password-fields {
    grid-template-columns: 1fr;
  }

  .avatar-choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-code-row {
    grid-template-columns: 1fr;
  }
}

.friend-conversation-pane {
  grid-template-rows: auto minmax(0, 1fr) !important;
}

.friend-request-summary {
  align-self: start !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) auto !important;
  align-items: center !important;
  width: calc(100% - 24px) !important;
  padding: 10px 12px !important;
}

.friend-request-summary > strong {
  justify-self: end !important;
}

.friend-conversation-list {
  align-content: start !important;
  overflow: auto !important;
}

.friend-list-row,
.friend-contact-row {
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  box-sizing: border-box !important;
}
