:root {
  --brand: #df3f25;
  --brand-light: rgba(223,63,37,0.08);
  --ink: #1a1d24;
  --muted: #8b93a3;
  --line: #e8eaed;
  --page: #f5f6f8;
  --surface: #ffffff;
  --text: var(--ink);
  --panel: var(--surface);
  --accent: var(--brand);
  --admin-table-head: #f5f6f8;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --text-xs: 11px;
  --text-sm: 12px;
  --muted-text-xs: 11.77px;
  --muted-text-sm: 12.84px;
  --text-md: 14px;
  --text-lg: 16px;
  --text-xl: 18px;
  --text-2xl: 22px;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --line-height: 1.5;
  --line-height-tight: 1.25;
  --icon-sm: 16px;
  --icon-md: 20px;
  --icon-lg: 24px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --topbar-h: 56px;
  --bottombar-h: 58px;
  --page-x: 16px;
  --page-top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + var(--space-sm));
  --page-bottom: calc(var(--bottombar-h) + env(safe-area-inset-bottom, 0px) + var(--space-sm));
  --page-bottom-compact: calc(var(--space-xl) + env(safe-area-inset-bottom, 0px));
  --tap-target: 44px;
  --tap-target-lg: 56px;
  --feed-title-line: 24px;
  --detail-title-line: 28px;
  --ratio-square: 1 / 1;
  --ratio-wide: 16 / 9;
  --ratio-xhs-card: var(--ratio-square);
  --ratio-xhs-detail: var(--ratio-square);
  --gallery-feed-gap: calc(var(--space-md) / 2);
  --gallery-feed-x: calc(var(--page-x) / 2);
  --home-feed-card-image-size: calc((min(100vw, 480px) - (var(--gallery-feed-x) * 2) - var(--gallery-feed-gap)) / 2);
  --home-feature-media-ratio: 770 / 300;
  --ratio-news-carousel: var(--ratio-wide);
  --ratio-local-ad: 16 / 9;
  --ratio-job-card-media: var(--ratio-square);
  --local-news-card-width: 70%;
  --job-cover-width: 22%;
  --local-ad-thumb-width: 96px;
  --local-ad-demo-min-height: 177px;
  --admin-logo-width: 132px;
  --admin-logo-height: 42px;
  --admin-menu-width: min(50vw, 240px);
  --admin-menu-scrim: rgba(26, 29, 36, 0.36);
  --admin-menu-shadow: rgba(26, 29, 36, 0.18);
  --admin-menu-line-h: 2px;
  --admin-shell-title-gap: calc(var(--space-xs) / 2);
  --admin-shell-h: var(--topbar-h);
  --job-cover-offset: 0;
  --z-popover: 60;
  --contact-row-compact-h: var(--space-2xl);
  --brand-red: var(--brand);
  --brand-blue: #4aa3df;
  --brand-yellow: #f5c542;
  --brand-green: #a6c64f;
  --brand-purple: #bd247d;
  --soft-red: var(--brand-light);
  --category-chip-bg: #eef1f5;
  --category-chip-fg: #4d5664;
  --image-placeholder: #eef1f5;
  --popup-glass-bg: color-mix(in srgb, var(--surface) 68%, transparent);
  --popup-glass-row-bg: color-mix(in srgb, var(--surface) 48%, transparent);
  --popup-glass-border: rgba(255, 255, 255, 0.5);
  --popup-glass-shadow: 0 18px 48px rgba(15, 23, 42, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.38);
  --popup-glass-filter: blur(18px) saturate(1.7) contrast(1.04) brightness(1.02);
  --popup-glass-scrim: rgba(10, 14, 20, 0.25);
  --radius: var(--radius-md);
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

html.search-no-scroll,
body.search-no-scroll {
  height: 100vh;
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.app-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.app {
  width: min(100%, 480px);
  min-height: 100vh;
  background: var(--category-chip-bg);
  position: relative;
  padding-top: 43px;
  padding-bottom: calc(62px + env(safe-area-inset-bottom));
  box-shadow: none;
  overflow-x: hidden;
}

.app.no-topbar {
  padding-top: 0;
}

.detail-route-overlay {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: calc(var(--z-popover) + 20);
  width: auto;
  min-height: 100vh;
  padding-top: 43px;
  overflow-x: hidden;
  overflow-y: visible;
  transform: none;
  background: var(--category-chip-bg);
}

html.pwa-standalone .detail-route-overlay {
  padding-top: calc(43px + env(safe-area-inset-top, 0px));
}

html.pwa-standalone .app:not(.admin-app):not(.no-topbar) {
  padding-top: calc(43px + env(safe-area-inset-top, 0px));
}

html.pwa-standalone .app:not(.admin-app) .topbar {
  top: 0;
  padding-top: calc(5px + env(safe-area-inset-top, 0px));
}

html.pwa-standalone .app:not(.admin-app) .topbar.topbar-hidden {
  transform: translate(-50%, -110%);
}

.pwa-pull-refresh-indicator {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top, 0px));
  left: 50%;
  z-index: calc(var(--z-popover) + 12);
  width: 38px;
  height: 38px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(26, 29, 36, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-48px + var(--pull-refresh-y, 0px)));
  transition: opacity 160ms ease, transform 160ms ease;
}

html.pwa-standalone .pwa-pull-refresh-indicator {
  display: none;
}

.pwa-pull-refresh-indicator.is-visible {
  opacity: 1;
}

.pwa-pull-refresh-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(139, 147, 163, 0.32);
  border-top-color: var(--brand-red);
  border-radius: var(--radius-full);
  transform: rotate(calc(var(--pull-refresh-y, 0px) * 3deg));
}

.pwa-pull-refresh-indicator.is-refreshing .pwa-pull-refresh-spinner {
  animation: btn-spin 0.78s linear infinite;
}

body.dark .pwa-pull-refresh-indicator {
  background: rgba(23, 27, 33, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.app.search-no-scroll {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.desktop-sidebar,
.desktop-right-rail {
  display: none;
}

.liquid-glass-filter-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: calc(var(--z-popover) + 7);
  width: min(100%, 480px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 5px var(--gallery-feed-x);
  overflow: hidden;
  background: rgba(8, 12, 18, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 1px 0 rgba(85, 107, 136, 0.06),
    0 8px 24px rgba(27, 39, 57, 0.05),
    inset 1px 0 rgba(74, 221, 255, 0.2),
    inset -1px 0 rgba(255, 125, 205, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 28% 160% at 0% 52%, rgba(72, 224, 255, 0.2), transparent 72%),
    radial-gradient(ellipse 28% 160% at 100% 48%, rgba(255, 116, 205, 0.15), transparent 72%),
    linear-gradient(105deg, transparent 8%, rgba(112, 174, 255, 0.08) 30%, transparent 48%, rgba(255, 218, 153, 0.08) 70%, transparent 92%),
    radial-gradient(ellipse at center, transparent 0 42%, rgba(214, 237, 255, 0.04) 64%, rgba(255, 255, 255, 0.2) 100%);
  backdrop-filter: blur(0.75px) saturate(1.55) contrast(1.08) brightness(1.04);
  backdrop-filter: url("#civilya-nav-edge-distortion") blur(0.75px) saturate(1.55) contrast(1.08) brightness(1.04);
  -webkit-backdrop-filter: blur(0.75px) saturate(1.55) contrast(1.08) brightness(1.04);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 0 58%, rgba(0, 0, 0, 0.28) 70%, rgba(0, 0, 0, 0.78) 88%, #000 100%);
  mask-image: radial-gradient(ellipse at center, transparent 0 58%, rgba(0, 0, 0, 0.28) 70%, rgba(0, 0, 0, 0.78) 88%, #000 100%);
  filter: url("#civilya-nav-edge-distortion");
}

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

.topbar.topbar-hidden {
  transform: translate(-50%, -110%);
  opacity: 0;
  pointer-events: none;
}

.top-region-button {
  flex: 0 0 86px;
  width: 86px;
  max-width: 96px;
  min-width: 0;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  padding: 0 7px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand {
  min-width: 0;
  min-height: 0;
  justify-self: start;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  width: auto;
  max-width: 150px;
  gap: 6px;
  padding: 0;
  overflow: hidden;
}

.topbar-actions {
  justify-self: end;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.install-app-button {
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
  color: var(--brand-red);
}

.install-app-button.topbar-share-button {
  color: var(--ink);
}

.install-app-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand picture {
  display: flex;
  flex: 0 0 auto;
}

.brand img {
  flex: 0 0 auto;
  width: 101px;
  height: auto;
  max-height: 32px;
  object-fit: contain;
  transform: translateX(-5px);
}

.brand-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  color: var(--ink);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.1;
}

.brand-subtitle {
  color: var(--muted);
  display: block;
  font-size: 12.5px;
  margin: 0 0 1px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
  text-align: center;
  text-overflow: ellipsis;
}

.brand.quiet-button {
  min-height: 0;
  padding: 0;
}

.admin-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--admin-logo-height);
  margin-top: 0;
  margin-bottom: var(--space-md);
}

.admin-logo picture {
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-logo img {
  width: min(var(--admin-logo-width), calc(100vw - var(--page-x) * 2));
  max-height: var(--admin-logo-height);
  height: auto;
  object-fit: contain;
}

.admin-main {
  position: relative;
}

.admin-content {
  min-width: 0;
}

.crawler-source-label,
.detail-source-footer {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--line-height);
}

.detail-source-footer {
  border-top: 1px solid var(--line);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
}

.detail-source-footer a {
  color: var(--ink);
  text-decoration: none;
}

.crawler-source-open,
.crawler-row-url {
  color: var(--muted);
  text-decoration: none;
}

.crawler-source-open:hover,
.crawler-row-url:hover {
  color: var(--brand-red);
}

.crawler-source-form,
.crawler-source-list,
.crawler-review-list,
.crawler-run-list,
.admin-keyword-list {
  display: grid;
  gap: var(--space-md);
}

.crawler-source-row,
.crawler-review-row,
.crawler-run-row {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-md);
  align-items: start;
  padding: var(--space-md) 0;
}

.crawler-row-main {
  display: grid;
  gap: var(--space-xs);
  min-width: 0;
}

.crawler-row-main p,
.crawler-row-url,
.crawler-error {
  color: var(--muted);
  font-size: var(--text-sm);
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crawler-error {
  color: var(--brand-red);
}

.admin-keyword-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: var(--space-sm) 0;
}

.admin-keyword-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.crawler-row-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: flex-end;
}

.admin-inline-edit-panel,
.crawler-review-action-panel,
.crawler-source-run-summary {
  grid-column: 1 / -1;
}

.crawler-review-images {
  display: flex;
  gap: var(--space-xs);
  overflow-x: auto;
}

.crawler-review-images img {
  width: 88px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.admin-inline-completion {
  margin-left: 6px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.admin-inline-completion.has-missing {
  color: var(--brand-red);
  font-weight: 800;
}

.crawler-current-status {
  min-height: 32px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 800;
}

.crawler-review-row.is-complete {
  opacity: 0.82;
}

.main.admin-main {
  padding-top: 0;
}

.admin-shell-header {
  position: sticky;
  top: 0;
  z-index: calc(var(--z-popover) - 1);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-sm);
  min-height: var(--admin-shell-h);
  margin: calc(var(--space-sm) * -1) calc(var(--page-x) * -1) var(--space-md);
  padding: env(safe-area-inset-top, 0px) var(--page-x) 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px);
}

.admin-menu-button,
.admin-shell-placeholder {
  width: var(--tap-target);
  min-width: var(--tap-target);
  height: var(--tap-target);
}

.admin-menu-button {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
}

.admin-shell-center {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.admin-shell-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-sm);
  min-width: 0;
}

.admin-language-picker {
  flex: 0 0 76px;
  width: 76px;
  height: var(--tap-target);
  min-height: var(--tap-target);
}

.admin-shell-actions .secondary-btn {
  height: var(--tap-target);
  min-height: var(--tap-target);
}

.admin-shell-logo {
  justify-self: center;
  min-height: var(--admin-shell-h);
  margin: 0;
}

.admin-shell-logo img {
  max-height: calc(var(--admin-shell-h) - var(--space-md));
}

.admin-shell-scope {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.admin-inline-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-left: auto;
  justify-content: flex-end;
  vertical-align: middle;
}

.permission-card > .admin-inline-actions {
  justify-self: end;
  margin-left: 0;
}

.permission-card > .post-body:has(.admin-inline-actions) {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  min-width: 0;
}

.permission-card > .post-body:has(.admin-inline-actions) > .admin-inline-actions {
  flex: 0 0 auto;
  margin-left: auto;
}

.admin-menu-icon {
  display: grid;
  gap: var(--space-xs);
  width: var(--icon-md);
}

.admin-menu-icon span {
  display: block;
  height: var(--admin-menu-line-h);
  border-radius: var(--radius-full);
  background: currentColor;
}

.admin-shell-title {
  display: grid;
  gap: var(--admin-shell-title-gap);
  min-width: 0;
}

.admin-shell-title strong {
  color: var(--ink);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  line-height: var(--line-height-tight);
}

.admin-shell-title span,
.admin-scope-badge {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--line-height-tight);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-menu-scrim {
  position: fixed;
  inset: 0;
  z-index: var(--z-popover);
  background: var(--admin-menu-scrim);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.admin-menu-scrim.open {
  opacity: 1;
  pointer-events: auto;
}

.admin-menu-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: calc(var(--z-popover) + 1);
  width: var(--admin-menu-width);
  max-width: calc(100vw - var(--tap-target));
  padding: calc(env(safe-area-inset-top, 0px) + var(--space-lg)) var(--space-md) var(--space-lg);
  border-right: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 var(--space-lg) var(--space-2xl) var(--admin-menu-shadow);
  transform: translateX(-100%);
  transition: transform 180ms ease;
}

.admin-menu-drawer.open {
  transform: translateX(0);
}

.admin-menu-head {
  display: grid;
  gap: var(--space-xs);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--line);
}

.admin-menu-head strong {
  color: var(--ink);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  line-height: var(--line-height-tight);
}

.admin-menu-head span {
  color: var(--muted);
  font-size: var(--text-sm);
}

.admin-menu-list {
  display: grid;
  gap: var(--space-xs);
  padding-top: var(--space-md);
}

.admin-menu-item {
  display: flex;
  align-items: center;
  min-height: var(--tap-target);
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 18%, transparent);
  color: var(--ink);
  padding: 0 var(--space-md);
  font-size: var(--text-md);
  font-weight: var(--font-medium);
  text-align: left;
}

.admin-menu-item.active {
  border-color: var(--line);
  background: var(--brand-light);
  color: var(--brand);
}

.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--line);
}

.admin-page-title {
  display: grid;
  gap: var(--space-xs);
  min-width: 0;
}

.admin-page-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  line-height: var(--line-height-tight);
}

.admin-page-title span {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--line-height-tight);
}

.admin-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-sm);
  flex: 0 0 auto;
}

.admin-install-app-button {
  flex-basis: 40px;
  width: 40px;
}

.admin-placeholder-panel {
  display: grid;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.admin-placeholder-panel p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-md);
  line-height: var(--line-height);
}

.language-select,
.compact-select {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  min-height: 34px;
  padding: 0 8px;
  color: var(--ink);
  line-height: var(--line-height);
}

.language-select option {
  font-size: var(--text-md);
  line-height: var(--line-height);
  padding: var(--space-sm) var(--space-md);
}

.language-picker {
  position: relative;
  flex: 0 0 50px;
  justify-self: end;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  font-size: 13px;
  font-weight: 800;
}

.language-picker-wrap {
  position: relative;
  flex: 0 0 50px;
  width: 50px;
  height: 32px;
}

.language-picker-wrap .language-picker {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.top-region-button,
.topbar .language-picker,
.install-app-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.34);
  background: transparent;
  box-shadow:
    0 5px 14px rgba(15, 23, 42, 0.07),
    inset 1px 0 rgba(72, 226, 255, 0.22),
    inset -1px 0 rgba(255, 112, 202, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(8px) saturate(1.75) contrast(1.04);
  -webkit-backdrop-filter: blur(8px) saturate(1.75) contrast(1.04);
  transition: transform 180ms cubic-bezier(0.2, 0.9, 0.24, 1), box-shadow 180ms ease, filter 180ms ease;
}

.top-region-button::before,
.topbar .language-picker::before,
.install-app-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(from 205deg at 50% 50%, rgba(71, 223, 255, 0.44), rgba(112, 99, 255, 0.3), rgba(255, 91, 188, 0.42), rgba(255, 218, 112, 0.34), rgba(91, 255, 210, 0.34), rgba(71, 223, 255, 0.44));
  backdrop-filter: url("#civilya-drop-distortion") blur(0.35px) saturate(1.65) contrast(1.08);
  -webkit-backdrop-filter: blur(0.35px) saturate(1.65) contrast(1.08);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 0 58%, rgba(0, 0, 0, 0.22) 70%, #000 84% 100%);
  mask-image: radial-gradient(ellipse at center, transparent 0 58%, rgba(0, 0, 0, 0.22) 70%, #000 84% 100%);
  opacity: 0.62;
  transition: opacity 160ms ease, filter 160ms ease;
}

.top-region-button:active,
.topbar .language-picker:active,
.install-app-button:active {
  transform: scale(0.96, 1.06);
  box-shadow:
    0 7px 18px rgba(15, 23, 42, 0.1),
    inset 2px 0 rgba(72, 226, 255, 0.42),
    inset -2px 0 rgba(255, 112, 202, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.top-region-button:active::before,
.topbar .language-picker:active::before,
.install-app-button:active::before {
  opacity: 0.96;
  filter: url("#civilya-drop-distortion") saturate(1.32);
}

.language-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-popover) + 5);
  border: 0;
  background: rgba(0, 0, 0, 0.24);
  appearance: none;
  -webkit-appearance: none;
}

.language-menu-panel {
  position: fixed;
  right: max(12px, calc((100vw - 480px) / 2 + 12px));
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: max(12px, calc((100vw - 480px) / 2 + 12px));
  z-index: calc(var(--z-popover) + 6);
  display: grid;
  gap: var(--space-sm);
  max-height: min(72vh, 560px);
  padding: 10px;
  border: 1px solid var(--popup-glass-border);
  border-radius: var(--radius-md);
  background: var(--popup-glass-bg);
  box-shadow: var(--popup-glass-shadow);
  overflow: hidden;
  backdrop-filter: var(--popup-glass-filter);
  -webkit-backdrop-filter: var(--popup-glass-filter);
}

.language-menu-grip {
  justify-self: center;
  width: 42px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--line);
}

.language-menu-list {
  display: grid;
  gap: 8px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px;
}

.language-menu-option {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--popup-glass-row-bg);
  color: var(--ink);
  text-align: left;
  font: inherit;
  font-weight: 800;
}

.language-menu-option.active {
  border-color: color-mix(in srgb, var(--brand-red) 70%, var(--line));
  background: var(--brand-light);
  color: var(--brand-red);
}

.language-menu-flag {
  font-size: 22px;
  line-height: 1;
}

.language-menu-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-menu-check {
  justify-self: end;
  font-size: 18px;
  line-height: 1;
}

.install-help-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-popover) + 5);
  border: 0;
  background: rgba(0, 0, 0, 0.24);
  appearance: none;
  -webkit-appearance: none;
}

.install-help-panel {
  position: fixed;
  right: max(12px, calc((100vw - 480px) / 2 + 12px));
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: max(12px, calc((100vw - 480px) / 2 + 12px));
  z-index: calc(var(--z-popover) + 6);
  display: grid;
  gap: var(--space-md);
  padding: 12px 8px 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.install-help-grip {
  justify-self: center;
  width: 42px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--line);
}

.install-help-copy {
  display: grid;
  gap: var(--space-xs);
}

.install-help-copy strong {
  color: var(--ink);
  font-size: calc(var(--text-lg) * 1.2);
  font-weight: 900;
  line-height: var(--line-height-tight);
}

.install-help-copy p {
  margin: 0;
  color: var(--muted);
  font-size: calc(var(--text-sm) * 1.2);
  font-weight: 700;
  line-height: var(--line-height);
}

.install-help-copy .install-help-copied {
  color: var(--brand-red);
  font-weight: 900;
}

.install-help-close {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-target);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 900;
}

.admin-pin-scope-option {
  grid-template-columns: minmax(0, 1fr) auto 24px;
}

.admin-pin-scope-option .language-menu-name {
  font-weight: 900;
}

.admin-pin-scope-hint {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 800;
  white-space: nowrap;
}

.language-picker.admin-language-picker {
  flex-basis: 76px;
  width: 76px;
  height: var(--tap-target);
  min-height: var(--tap-target);
}

.admin-language-picker .language-flag {
  display: none;
}

.admin-language-picker .language-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  min-height: 100%;
  padding: 0 10px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  background-image: none;
  color: inherit;
  font-weight: 800;
  text-align: center;
  text-align-last: center;
}

.admin-language-picker .language-select option {
  min-height: 34px;
  padding: var(--space-sm) var(--space-md);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 600;
}

.language-flag {
  font-size: inherit;
  line-height: 1;
}

.topbar .language-select {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.main {
  padding: 14px 0 24px;
}

.main > .section-title,
.main > .form,
.main > .permission-list,
.main > .segmented,
.main > .empty-state,
.search-view > .search-panel,
.my-main > .my-intro-panel,
.my-main > .my-tabs {
  margin-left: var(--gallery-feed-x);
  margin-right: var(--gallery-feed-x);
}

.main > .admin-page-header,
.main > .admin-logo,
.main > .admin-toolbar,
.main > .admin-panel,
.main > .admin-post-list,
.main > .metric-grid {
  margin-left: 16px;
  margin-right: 16px;
}

.my-main > .admin-toolbar.my-intro-panel {
  margin-left: var(--gallery-feed-x);
  margin-right: var(--gallery-feed-x);
}

.hero {
  padding: 12px 16px;
  background: linear-gradient(135deg, #fff8f6 0%, #f8fbff 100%);
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.18;
}

.hero p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.region-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 0;
}

.search-panel {
  flex: 1;
  min-width: 0;
}

.search-page-panel {
  position: fixed;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 24;
  width: min(100%, 480px);
  margin: 0;
  padding: 8px var(--gallery-feed-x) 10px;
  box-sizing: border-box;
  background: var(--surface);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.search-view > .search-page-panel {
  margin: 0;
}

.search-page-panel.search-panel-hidden {
  transform: translate(-50%, -140%);
  opacity: 0;
  pointer-events: none;
}

.search-view {
  padding-top: 112px;
}

.region-chip,
.ghost-button,
.primary-button,
.danger-button,
.quiet-button {
  border: 0;
  border-radius: var(--radius);
  min-height: 40px;
  padding: 0 12px;
  font-weight: 700;
  white-space: nowrap;
}

.region-chip {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
}

.primary-button {
  background: var(--brand-red);
  color: #fff;
  box-shadow: 0 8px 18px rgba(223, 63, 37, 0.22);
  transition: opacity 0.15s, background 0.15s;
}

.primary-button.publishing {
  opacity: 0.72;
  cursor: not-allowed;
  box-shadow: none;
}

.primary-button.publishing::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.ghost-button {
  background: #f0f3f7;
  color: var(--ink);
}

.danger-button {
  background: #fff0f0;
  color: #b12a2a;
}

.quiet-button {
  background: transparent;
  color: var(--muted);
  padding: 0 6px;
}

.search-box {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: #fff;
}

.search-history {
  display: none;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 0 2px;
  scrollbar-width: none;
}

.search-panel:focus-within .search-history:not(:empty) {
  display: flex;
}

.search-page-panel .search-history:not(:empty) {
  display: flex;
}

.search-page-panel.has-query .search-history {
  display: none;
}

.search-history::-webkit-scrollbar {
  display: none;
}

.search-history-chip {
  flex: 0 0 auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  max-width: 180px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 24px 0 12px;
  background: #fff;
  color: #4a4f58;
}

.home-top-panel {
  margin: -8px 0 var(--space-sm);
  padding: 5px 0 8px;
  background:
    linear-gradient(180deg, rgba(223, 63, 37, 0.12) 0%, rgba(74, 163, 223, 0.07) 48%, rgba(255, 255, 255, 0) 100%);
}

.home-top-panel .announcement-ticker {
  min-height: 28px;
  max-height: 32px;
  margin: 0 var(--gallery-feed-x) 6px;
  padding: 0 10px;
  overflow: hidden;
  white-space: nowrap;
}

.home-search-icon-section {
  height: 34px;
  padding: 0 var(--gallery-feed-x) 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.home-search-icon-button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--category-chip-bg);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-search-section {
  display: grid;
  gap: 7px;
  padding: 0 var(--gallery-feed-x) 10px;
}

.home-search-box {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: var(--category-chip-bg);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-align: left;
}

.home-search-icon {
  width: var(--icon-md, 20px);
  height: var(--icon-md, 20px);
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-search-placeholder {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.home-search-history {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.home-search-history-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.home-search-history .search-history {
  display: flex;
  min-width: 0;
  padding: 0;
}

.home-search-history .search-history-chip {
  min-height: 30px;
  padding: 0 11px;
  background: color-mix(in srgb, var(--surface) 88%, var(--category-chip-bg));
}

.search-history-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-history-remove {
  position: absolute;
  top: -6px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand-red);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 0 10px;
}

.section-title h2 {
  margin: 0;
  font-size: 17px;
}

.section-title span {
  color: var(--muted);
  font-size: 12px;
}

.category-grid {
  display: grid;
  grid-template-columns: 1.16fr 0.95fr 0.95fr 0.95fr;
  grid-template-rows: 76px 58px 58px;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0 var(--gallery-feed-x) 2px;
}

.category-bubble {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--category-color, var(--brand-red)) 12%, var(--category-chip-bg));
  color: var(--ink);
  text-align: left;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 11px 10px;
  overflow: hidden;
  box-shadow: none;
}

.category-bubble.active {
  border-color: var(--category-color, var(--brand-red));
  background: color-mix(in srgb, var(--category-color, var(--brand-red)) 20%, var(--category-chip-bg));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--category-color, var(--brand-red)) 62%, transparent);
}

.category-bubble-mark {
  display: block;
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  width: 4px;
  height: 17px;
  border-radius: var(--radius-md);
  background: var(--category-color, var(--brand-red));
}

.category-bubble-label {
  position: relative;
  z-index: 2;
  display: -webkit-box;
  align-self: flex-start;
  flex: 0 0 calc(100% - 9px);
  max-width: calc(100% - 9px);
  margin-left: 9px;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-weight: 700;
  font-size: 14.3px;
  line-height: 1.18;
  color: var(--ink);
}

.category-picture {
  box-sizing: border-box;
}

.category-picture {
  position: absolute;
  right: 7px;
  bottom: 5px;
  z-index: 1;
  width: 70px;
  height: 58px;
  pointer-events: none;
  opacity: 0.72;
  filter: drop-shadow(0 4px 7px rgba(17, 24, 39, 0.16));
}

.category-bubble-large .category-picture {
  right: 12px;
  bottom: 7px;
  width: 98px;
  height: 82px;
}

.category-bubble-secondhand .category-picture {
  right: 8px;
  bottom: 0;
  width: 72px;
  height: 52px;
}

.category-bubble-usedcars .category-picture {
  right: 8px;
  bottom: 0;
  width: 76px;
  height: 55px;
}

.category-bubble-medium .category-picture {
  right: 0;
  bottom: 2px;
  width: 60px;
  height: 50px;
}

.category-bubble-small .category-picture {
  right: 0;
  bottom: 0;
  width: 52px;
  height: 42px;
}

.category-bubble-all .category-picture,
.category-bubble-jobs .category-picture,
.category-bubble-secondhand .category-picture,
.category-bubble-events .category-picture {
  right: -6px;
  bottom: -4px;
  width: 58px;
  height: 48px;
}

.category-bubble-all .category-picture,
.category-bubble-jobs .category-picture,
.category-bubble-secondhand .category-picture {
  right: -2px;
  bottom: 1px;
  width: 58px;
  height: 48px;
}

.category-bubble-life .category-picture {
  right: 0;
  bottom: -6px;
}

.category-bubble-all {
  grid-column: 4 / 5;
  grid-row: 1 / 2;
}

.category-bubble-housing {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.category-bubble-jobs {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.category-bubble-secondhand {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.category-bubble-usedcars {
  grid-column: 2 / 4;
  grid-row: 2 / 3;
}

.category-bubble-events {
  grid-column: 4 / 5;
  grid-row: 2 / 3;
}

.category-bubble-business {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
}

.category-bubble-life {
  grid-column: 2 / 3;
  grid-row: 3 / 4;
}

.category-bubble-news {
  grid-column: 3 / 4;
  grid-row: 3 / 4;
}

.category-bubble-search {
  grid-column: 4 / 5;
  grid-row: 3 / 4;
}

.category-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 var(--gallery-feed-x) 10px;
  scroll-snap-type: x proximity;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.category-strip-chip {
  flex: 0 0 auto;
  min-height: 38px;
  max-width: 160px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: var(--category-chip-bg);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  scroll-snap-align: start;
}

.category-strip-chip.active {
  color: var(--brand-red);
  border-color: color-mix(in srgb, var(--category-color, var(--brand-red)) 76%, var(--line));
  background: color-mix(in srgb, var(--category-color, var(--brand-red)) 14%, var(--surface));
}

.category-strip-mark {
  width: 4px;
  height: 17px;
  border-radius: var(--radius);
  background: var(--category-color, var(--brand-red));
  flex: 0 0 auto;
}

.feed {
  display: grid;
  gap: 0;
}

.post-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  background: #fff;
}

.post-card.pinned-card {
  border-color: rgba(223, 63, 37, 0.35);
  background: #fffaf9;
}

.feed .feed-post-card {
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  padding: 14px var(--gallery-feed-x);
  background: var(--surface);
}

.feed .feed-post-card.pinned-card {
  border-left: 4px solid var(--brand-red);
  border-bottom: 0;
  padding-left: 12px;
  background: var(--soft-red);
}

.feed-home-mixed .feed-post-card.pinned-card {
  border-left: 0;
  padding-left: 0;
  background: linear-gradient(180deg, rgba(245, 197, 66, 0.14), var(--surface) 66%);
}

.home-carousel-section {
  position: relative;
}

.home-carousel-frame {
  position: relative;
}

.home-carousel-nav {
  display: none;
}

.horizontal-strip-shell {
  position: relative;
}

.horizontal-strip-control {
  display: none;
}

.horizontal-strip-control svg {
  width: var(--icon-lg);
  height: var(--icon-lg);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.horizontal-strip-control.is-disabled,
.horizontal-strip-control:disabled {
  opacity: 0.34;
  cursor: default;
}

.home-carousel-nav svg {
  width: var(--icon-lg);
  height: var(--icon-lg);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .horizontal-strip-shell.has-overflow .horizontal-strip-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: var(--tap-target);
    height: var(--tap-target);
    border: 0;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transform: translateY(-50%);
    box-shadow: none;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.36));
  }

  .horizontal-strip-control-prev {
    left: -10px;
  }

  .horizontal-strip-control-next {
    right: -10px;
  }

  .home-carousel-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: var(--tap-target);
    height: var(--tap-target);
    border: 0;
    border-radius: var(--radius-full);
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transform: translateY(-50%);
    box-shadow: none;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.42));
  }

  .home-carousel-nav-prev {
    left: var(--space-sm);
  }

  .home-carousel-nav-next {
    right: var(--space-sm);
  }
}

.local-news-section {
  padding: 0 var(--gallery-feed-x) var(--space-md);
}

.local-news-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: var(--space-2xl);
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: var(--font-semibold);
}

.local-news-strip {
  display: flex;
  align-items: stretch;
  gap: var(--space-md);
  overflow-x: auto;
  padding-bottom: var(--space-xs);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.local-news-strip::-webkit-scrollbar {
  display: none;
}

.local-news-card {
  flex: 0 0 var(--local-news-card-width);
  scroll-snap-align: start;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  display: grid;
  gap: var(--space-sm);
  text-align: left;
  overflow: hidden;
}

.local-news-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: var(--ratio-news-carousel);
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0;
  overflow: hidden;
  background: var(--category-chip-bg);
}

.local-news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.local-news-placeholder {
  color: var(--muted);
  font-size: var(--text-sm);
}

.local-news-caption {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: var(--text-md);
  font-weight: var(--font-semibold);
  line-height: var(--line-height);
}

.local-news-meta {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--line-height);
}

.feed-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gallery-feed-gap);
  padding: 0 var(--gallery-feed-x) var(--space-md);
}

.feed-home-mixed {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gallery-feed-gap);
  padding: 0 var(--gallery-feed-x) var(--space-md);
}

.feed-gallery .feed-post-card {
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  overflow: hidden;
}

.feed-home-mixed .feed-post-card {
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  overflow: hidden;
}

.feed-home-gallery .feed-post-card {
  border-bottom: 0;
}

.gallery-card-content {
  padding: calc(var(--space-xs) / 2) var(--gallery-feed-x) 0;
  display: grid;
  gap: 0;
}

.gallery-post-card .post-top,
.news-post-card .post-top {
  align-items: flex-start;
  gap: var(--space-sm);
}

.gallery-post-card .post-title-button {
  -webkit-line-clamp: 2;
}

.gallery-post-card .post-title {
  font-size: 14px;
  line-height: 1.3;
}

.gallery-post-card .feed-title-meta {
  gap: var(--space-xs);
  margin-top: 0;
  font-size: var(--muted-text-xs);
  line-height: 1.32;
}

.feed-home-gallery .gallery-post-card .feed-title-meta {
  margin-top: calc(-1 * var(--space-xs) / 2);
}

.gallery-post-card .feed-title-meta .post-address {
  font-size: var(--muted-text-xs);
}

.gallery-post-card .feed-info-specs {
  margin-top: 2px;
  font-size: var(--muted-text-xs);
  line-height: 1.28;
}

.gallery-post-card .post-stats.feed-footer {
  margin-top: 2px;
  line-height: 1.25;
}

.gallery-post-card .image-grid,
.news-post-card .image-grid {
  margin-top: 0;
  grid-template-columns: 1fr;
  gap: 0;
}

.gallery-post-card .post-image,
.gallery-cover,
.cover-placeholder.gallery-cover {
  aspect-ratio: var(--ratio-xhs-card);
}

.gallery-cover,
.post-image {
  overflow: hidden;
  background: var(--image-placeholder);
}

.gallery-cover img,
.post-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  color: transparent;
  font-size: 0;
}

.feed-news-large .feed-post-card {
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
  padding: var(--space-lg) 0;
}

.news-post-card {
  min-width: 0;
  overflow: hidden;
}

.news-card-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
  width: calc(100% - (var(--gallery-feed-x) * 2));
  box-sizing: border-box;
  overflow-wrap: anywhere;
  margin: var(--space-xs) var(--gallery-feed-x) 0;
  color: var(--ink);
  font-size: 1.2em;
  line-height: 1.5;
}

.news-post-card .post-title,
.news-post-card .post-title-button,
.news-post-card .feed-title-meta {
  min-width: 0;
  overflow-wrap: anywhere;
}

.news-post-card .post-title,
.news-post-card .post-title-button {
  font-size: 1.2em;
  line-height: 1.25;
}

.news-post-card .post-title-button {
  -webkit-line-clamp: 2;
}

.feed-news-large .news-post-card .post-top {
  justify-content: space-between;
}

.news-post-card .image-grid,
.news-post-card .cover-placeholder {
  width: calc(100% - (var(--gallery-feed-x) * 2));
  margin: var(--space-xs) var(--gallery-feed-x) 0;
}

.news-card-media {
  position: relative;
  width: calc(100% - (var(--gallery-feed-x) * 2));
  margin: var(--space-xs) var(--gallery-feed-x) 0;
}

.news-card-media .image-grid,
.news-card-media .cover-placeholder {
  width: 100%;
  margin: 0;
}

.news-media-actions {
  position: static;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: var(--space-xs);
}

.news-post-card .post-image,
.news-cover,
.cover-placeholder.news-cover {
  aspect-ratio: var(--ratio-wide);
}

.cover-placeholder {
  width: 100%;
  min-height: var(--tap-target);
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--category-chip-bg);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed-news-large .news-post-card .post-top,
.feed-news-large .news-post-card .feed-title-meta,
.feed-news-large .news-post-card .post-meta,
.feed-news-large .news-post-card .feed-footer {
  margin-right: var(--gallery-feed-x);
  margin-left: var(--gallery-feed-x);
}

.feed-job .feed-post-card {
  position: relative;
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
  padding: var(--space-lg) var(--gallery-feed-x);
}

.job-card-main {
  width: 100%;
  min-width: 0;
}

.job-card-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  width: 100%;
  min-width: 0;
}

.job-card-content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.job-post-card .post-top {
  align-items: flex-start;
  gap: var(--space-sm);
}

.job-post-card .post-title {
  font-size: 15px;
  line-height: 1.34;
  overflow-wrap: anywhere;
}

.job-post-card .post-title-button {
  overflow-wrap: anywhere;
}

.job-post-card .image-grid,
.job-post-card .cover-placeholder {
  width: 100%;
  margin-top: var(--job-cover-offset);
}

.job-post-card .image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.job-post-card .post-image,
.job-cover,
.cover-placeholder.job-cover {
  aspect-ratio: var(--ratio-job-card-media);
}

.job-card-media {
  position: relative;
  flex: 0 0 var(--job-cover-width);
  width: var(--job-cover-width);
  min-width: 0;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.job-card-media .image-grid,
.job-card-media .cover-placeholder {
  flex: none;
}

.job-media-actions {
  position: absolute;
  left: var(--space-xs);
  bottom: var(--space-xs);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.news-media-actions .favorite-button,
.job-media-actions .favorite-button {
  height: var(--space-xl);
  min-height: var(--space-xl);
  color: var(--brand-red);
  gap: var(--space-xs);
}

.news-media-actions .favorite-icon,
.job-media-actions .favorite-icon {
  width: var(--icon-md);
  height: var(--icon-md);
}

.home-job-section {
  padding: 0 0 var(--space-md);
}

.home-job-strip {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding: 0 var(--gallery-feed-x) var(--space-xs);
  scroll-padding-inline: var(--gallery-feed-x);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.home-job-strip::-webkit-scrollbar {
  display: none;
}

.home-job-strip .job-post-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
  padding: var(--space-lg) 0 var(--space-lg);
}

.job-post-card .post-stats.feed-footer {
  margin-top: auto;
}

.post-top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  align-items: flex-start;
}

.post-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: var(--text-xl);
  line-height: var(--line-height-tight);
}

.post-title-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  text-align: left;
  line-height: inherit;
}

.post-card:not(.detail-card) .post-title-button {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-card:not(.detail-card) .post-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-title-button:active {
  color: var(--brand-red);
}

.feed-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: none;
  margin: 0;
  min-height: 24px;
  padding: 3px 7px;
  border: 0;
  border-radius: var(--radius);
  background: var(--category-chip-bg);
  color: var(--category-chip-fg);
  font-size: 14.3px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: none;
  vertical-align: 2px;
  white-space: nowrap;
  overflow: hidden;
}

.feed-category-pill::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: var(--radius);
  background: var(--category-color, var(--brand-red));
  flex: 0 0 3px;
}

.feed-category-pill > span {
  font-weight: 700;
}

.feed-category-pill .category-icon {
  display: none;
}

.post-body {
  margin: 8px 0 0;
  color: #4a4f58;
  font-size: 15px;
  line-height: 1.65;
}

.post-body-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.post-card:not(.detail-card) .post-body-button {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  max-height: calc(1.65em * 3);
}

.news-post-card .post-body-button.news-card-summary {
  width: calc(100% - (var(--gallery-feed-x) * 2));
  margin: var(--space-xs) var(--gallery-feed-x) 0;
  -webkit-line-clamp: 2;
  max-height: calc(1.65em * 2);
}

.post-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  align-items: center;
}

.icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.favorite-button {
  min-width: auto;
  min-height: 20px;
  height: 20px;
  padding: 0;
  gap: 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
}

.favorite-icon {
  display: block;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.favorite-button.active {
  color: var(--brand-red);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.favorite-button.active .favorite-icon {
  fill: currentColor;
}

.favorite-button:not(.active) .favorite-icon {
  fill: none;
}

.feed-post-card .favorite-button,
.detail-card .favorite-button {
  min-height: 26px;
  height: 26px;
}

.feed-post-card .favorite-icon,
.detail-card .favorite-icon {
  width: 20px;
  height: 20px;
}

.favorite-button:hover,
.favorite-button:focus,
.favorite-button:active {
  background: transparent;
  box-shadow: none;
}

.share-button,
.more-button {
  width: var(--tap-target);
  min-width: var(--tap-target);
  height: var(--tap-target);
  min-height: var(--tap-target);
  padding: 0;
}

.more-button {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.more-button:hover,
.more-button:focus,
.more-button:active {
  background: transparent;
  box-shadow: none;
}

.post-action-menu {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  align-self: flex-start;
  transform: translateY(calc((var(--feed-title-line) - var(--tap-target)) / 2));
}

.more-icon {
  width: var(--icon-md);
  height: var(--icon-md);
  fill: currentColor;
}

.post-action-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: var(--z-popover);
  width: max-content;
  min-width: 136px;
  max-width: calc(100vw - 32px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

.post-action-menu:not(.open) .post-action-popover {
  display: none;
}

.post-action-popover button {
  width: 100%;
  min-height: var(--tap-target);
  border: 0;
  border-radius: var(--radius);
  padding: 10px 14px;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
}

.post-action-menu-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.post-action-popover button [data-menu-label] {
  flex: 0 0 auto;
  min-width: 0;
  white-space: nowrap;
  word-break: keep-all;
}

.post-action-popover button:active {
  background: var(--soft-red);
  color: var(--brand-red);
}

.post-action-popover .report-menu-item {
  color: var(--brand-red);
}

.stat-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 26px;
  white-space: nowrap;
}

.stat-icon {
  display: block;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.feed-post-card .stat-icon,
.detail-card .stat-icon {
  width: 20px;
  height: 20px;
}

.stat-count {
  min-width: 0.8em;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.post-body-button:active {
  color: var(--brand-red);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.image-grid.single-image {
  grid-template-columns: 1fr;
}

.post-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--image-placeholder);
}

.post-image.is-fallback-image,
.lightbox-current-image.is-fallback-image {
  object-fit: contain;
  padding: var(--space-sm);
  background: var(--surface);
}

.post-image.is-empty-image,
.lightbox-current-image.is-empty-image {
  opacity: 0;
  padding: 0;
  background: transparent;
}

.image-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--image-placeholder);
}

.image-category-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--icon-lg);
  max-width: 100%;
  padding: 0 var(--space-md);
  border-radius: var(--radius) 0 var(--radius-sm) 0;
  background: var(--category-color, var(--brand-red));
  color: var(--surface);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-ended-pill {
  min-height: 22px;
  padding: 0 7px;
  border-radius: var(--radius-sm);
  background: #6b7280;
  color: #f8fafc;
  font-size: var(--text-xs);
  font-weight: 800;
  line-height: 1;
}

.event-status-row {
  display: flex;
  align-items: center;
  min-height: 24px;
  margin-top: 6px;
}

.event-status-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: var(--brand-red);
  font-size: var(--text-xs);
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
}

.event-status-label,
.event-status-date {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-status-date {
  font-weight: 700;
  opacity: 0.96;
}

.event-status-pill.is-ongoing {
  background: var(--brand-green);
  color: #1f2a10;
}

.event-status-pill.is-upcoming {
  background: var(--brand-red);
  color: #fff;
}

.event-status-pill.is-ended {
  background: #374151;
  color: #fff;
}

.event-status-image-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: var(--space-sm);
  pointer-events: none;
}

.event-status-image-overlay .event-status-pill {
  min-width: 104px;
  min-height: 32px;
  max-width: min(88%, 240px);
  padding: 4px 16px;
  gap: 2px;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  line-height: 1.12;
}

.event-status-image-overlay .event-status-pill.is-ongoing {
  background: color-mix(in srgb, var(--brand-green) 72%, transparent);
  color: #fff;
}

.event-status-image-overlay .event-status-pill.is-upcoming {
  background: color-mix(in srgb, var(--brand-red) 72%, transparent);
  color: #fff;
}

.event-status-image-overlay .event-status-pill.is-ended {
  background: color-mix(in srgb, #374151 78%, transparent);
  color: #fff;
}

.home-pinned-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 38px;
  pointer-events: none;
}

.home-pinned-overlay.is-above-event-status {
  bottom: calc(var(--icon-lg) + var(--space-xs));
}

.home-pin-mark {
  display: block;
  width: 30px;
  height: 18px;
  position: relative;
  transform: translateX(4px);
}

.home-pin-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 4px solid var(--brand-blue);
  border-top: 4px solid var(--brand-blue);
  transform: translateY(5px) rotate(45deg);
  transform-origin: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.24));
}

.home-pin-label {
  color: var(--brand-blue);
  font-size: var(--text-xs);
  font-weight: 900;
  line-height: 1;
  transform: translate(-5%, -30%);
}

.image-button:active .post-image {
  transform: scale(0.98);
}

.single-image .post-image,
.detail-card .single-image .post-image {
  aspect-ratio: 4 / 3;
}

.post-card:not(.detail-card) .image-grid.single-image {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card:not(.detail-card) .single-image .post-image {
  aspect-ratio: 1 / 1;
}

.post-card.gallery-post-card .image-grid.single-image,
.post-card.news-post-card .image-grid.single-image,
.post-card.job-post-card .image-grid.single-image {
  grid-template-columns: 1fr;
}

.post-card.gallery-post-card .single-image .post-image {
  aspect-ratio: var(--ratio-xhs-card);
}

.post-card.news-post-card .single-image .post-image {
  aspect-ratio: var(--ratio-wide);
}

.post-card.job-post-card .single-image .post-image {
  aspect-ratio: var(--ratio-job-card-media);
}

.detail-card .image-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.detail-image-carousel {
  position: relative;
  margin: 0 calc(-1 * var(--gallery-feed-x)) var(--space-lg);
}

.detail-image-strip {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 0;
  cursor: grab;
  user-select: none;
}

.detail-image-strip.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.detail-image-strip::-webkit-scrollbar {
  display: none;
}

.detail-image-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.detail-image-slide .post-image {
  aspect-ratio: 4 / 3;
  border-radius: 0;
  background: var(--image-placeholder);
}

.detail-image-housing .detail-image-slide .post-image,
.detail-image-secondhand .detail-image-slide .post-image,
.detail-image-business .detail-image-slide .post-image {
  aspect-ratio: var(--ratio-xhs-detail);
}

.detail-carousel-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 52px;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.detail-carousel-nav-prev {
  left: 10px;
}

.detail-carousel-nav-next {
  right: 10px;
}

.detail-carousel-nav svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) and (pointer: fine) {
  .detail-carousel-nav {
    display: flex;
  }
}

.detail-image-back {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: transparent;
  box-shadow: none;
}

.detail-image-back::before {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: 1;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.34);
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 34%, rgba(72, 226, 255, 0.3), transparent 38%),
    radial-gradient(circle at 84% 68%, rgba(255, 112, 202, 0.24), transparent 40%),
    radial-gradient(circle at center, transparent 0 50%, rgba(255, 255, 255, 0.2) 82%, rgba(255, 255, 255, 0.42) 100%);
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.16),
    inset 1px 0 rgba(72, 226, 255, 0.4),
    inset -1px 0 rgba(255, 112, 202, 0.3),
    inset 0 1px rgba(255, 255, 255, 0.5);
  backdrop-filter: url("#civilya-drop-distortion") blur(0.35px) saturate(1.7) contrast(1.1);
  -webkit-backdrop-filter: blur(0.35px) saturate(1.7) contrast(1.1);
  -webkit-mask-image: radial-gradient(circle at center, transparent 0 62%, rgba(0, 0, 0, 0.28) 72%, #000 84% 100%);
  mask-image: radial-gradient(circle at center, transparent 0 62%, rgba(0, 0, 0, 0.28) 72%, #000 84% 100%);
  filter: url("#civilya-drop-distortion");
}

.detail-image-back::after {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(8, 12, 18, 0.32);
}

.detail-image-back svg {
  position: relative;
  z-index: 2;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-image-counter {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  min-width: 48px;
  padding: 5px 10px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}


.feed-image-carousel {
  position: relative;
  margin: 0 calc(-1 * var(--gallery-feed-x)) 12px;
  overflow: hidden;
}

.feed-image-strip {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.feed-image-strip::-webkit-scrollbar {
  display: none;
}

.feed-image-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.feed-image-slide .post-image {
  aspect-ratio: 4 / 3;
  border-radius: 0;
  background: #111;
  width: 100%;
  display: block;
  object-fit: cover;
}

.feed-image-counter {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  min-width: 44px;
  padding: 4px 10px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  pointer-events: none;
}

.form-image-preview {
  margin: 0 0 4px;
}

.sortable-image-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.sortable-image-list.sorting {
  position: relative;
}

.sortable-image-list.empty {
  display: none;
}

.sortable-image-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  will-change: transform;
}

.sortable-image-card.dragging {
  opacity: 0.9;
  transform: scale(1.05);
  cursor: grabbing;
  box-shadow: 0 18px 36px rgba(24, 28, 36, 0.34);
  pointer-events: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sortable-image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--image-placeholder);
  pointer-events: none;
  user-select: none;
}

.sortable-image-ai-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.sortable-image-ai-overlay::before {
  content: "";
  width: 34px;
  height: 34px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-6%20-6%2078%2084'%3E%3Cpath%20fill='%23299be8'%20d='M28%204c3%200%205%202%206%205l5%2013c2%205%206%209%2011%2011l8%203c3%201%203%205%200%206l-8%203c-5%202-9%206-11%2011l-5%2013c-1%203-3%205-6%205s-5-2-6-5l-5-13c-2-5-6-9-11-11l-8-3c-3-1-3-5%200-6l8-3c5-2%209-6%2011-11l5-13c1-3%203-5%206-5z'/%3E%3Cpath%20fill='%237d58c2'%20d='M49%2034c2%200%203%201%204%203l2%205c1%203%203%205%206%206l3%201c2%201%202%204%200%205l-3%201c-3%201-5%203-6%206l-2%205c-1%202-2%203-4%203s-3-1-4-3l-2-5c-1-3-3-5-6-6l-3-1c-2-1-2-4%200-5l3-1c3-1%205-3%206-6l2-5c1-2%202-3%204-3z'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
  filter: drop-shadow(0 2px 5px rgba(16, 24, 40, 0.36));
}

.sortable-image-list.is-ai-analyzing .sortable-image-card:first-child .sortable-image-ai-overlay::before {
  width: 46px;
  height: 46px;
  background-size: 34px 34px;
  animation: aiImageIconPulse 0.9s ease-in-out infinite;
  filter: drop-shadow(0 0 9px rgba(41, 155, 232, 0.62));
}

.sortable-image-list.is-ai-analyzing .sortable-image-card:first-child .sortable-image-ai-overlay::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 14px rgba(41, 155, 232, 0.88);
  animation: aiImageScan 1.15s ease-in-out infinite;
}

.sortable-image-placeholder {
  border: 1px dashed rgba(223, 63, 37, 0.45);
  border-radius: var(--radius);
  background: rgba(223, 63, 37, 0.08);
  aspect-ratio: 1 / 1;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.sortable-image-card.drop-settle {
  animation: imageDropSettle 0.34s cubic-bezier(0.22, 1.35, 0.36, 1);
}

@keyframes imageDropSettle {
  0% {
    transform: scale(0.96);
  }
  55% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

.image-remove-button {
  position: absolute;
  top: 2px;
  right: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  background: rgba(34, 37, 42, 0.62);
  font-size: 14px;
  line-height: 1;
}

.image-order-badge {
  position: absolute;
  left: 50%;
  bottom: 3px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  transform: translateX(-50%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(34, 37, 42, 0.58);
  font-size: 11px;
  font-weight: 800;
}

.detail-card .post-title {
  font-size: 18px;
  line-height: 1.28;
}

.detail-card .post-action-menu {
  transform: translateY(calc((var(--detail-title-line) - var(--tap-target)) / 2));
}

.detail-card .post-action-menu.open {
  z-index: calc(var(--z-popover) + 32);
}

.detail-card .post-action-menu.open .post-action-popover {
  z-index: calc(var(--z-popover) + 33);
}

.detail-main {
  padding-top: 0;
}

.detail-card {
  border: 0;
  border-radius: 0;
  padding: 0 var(--gallery-feed-x) 18px;
  background: var(--surface);
}

.detail-card.no-detail-image {
  padding-top: 16px;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-popover) + 40);
  display: grid;
  place-items: center;
  padding: 0;
  touch-action: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 15, 20, 0.86);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.lightbox-image-strip {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}

.lightbox-image-strip.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.lightbox-image-strip::-webkit-scrollbar {
  display: none;
}

.lightbox-slide {
  flex: 0 0 100%;
  width: 100vw;
  height: 100vh;
  border: 0;
  padding: 0;
  margin: 0;
  scroll-snap-align: center;
  background: transparent;
}

.lightbox-slide img {
  display: block;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 0;
  object-fit: contain;
  background: #111;
  user-select: none;
  touch-action: none;
  transform-origin: center center;
  transition: none;
  will-change: transform;
  backface-visibility: hidden;
}

.lightbox-counter {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  min-width: 48px;
  padding: 5px 10px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  animation: lightboxCounterIn 0.24s ease both;
}

@media (max-width: 640px) {
  .lightbox-counter {
    bottom: calc(86px + env(safe-area-inset-bottom));
  }
}

.lightbox-counter.counter-bump {
  animation: lightboxCounterIn 0.24s ease both;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 58px;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox-nav-prev {
  left: 10px;
}

.lightbox-nav-next {
  right: 10px;
}

.lightbox-nav svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) and (pointer: fine) {
  .lightbox-nav {
    display: flex;
  }
}

@keyframes lightboxImageIn {
  0% {
    opacity: 0.72;
  }
  100% {
    opacity: 1;
  }
}

@keyframes lightboxCounterIn {
  0% {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.detail-card .post-body {
  margin-top: 14px;
  margin-bottom: 14px;
  font-size: 17px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.detail-card.category-news .post-title {
  font-size: 19px;
}

.detail-card.category-news .post-body {
  font-size: 20.4px;
}

.post-address {
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.post-card-left-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  line-height: var(--line-height);
}

.meta-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  opacity: 0.72;
  font-size: var(--muted-text-sm);
  line-height: 1;
}

.post-card-left-meta .post-address {
  max-width: 190px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-card-left-meta {
  font-size: var(--muted-text-xs);
  line-height: 1.32;
}

.feed-title-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
  min-width: 0;
  margin-top: 0;
  color: var(--muted);
  font-size: var(--muted-text-xs);
  line-height: 1.32;
}

.feed-title-meta > span,
.post-card-left-meta > span {
  display: inline-flex;
  align-items: center;
}

.feed-title-meta .post-address {
  max-width: 240px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: inherit;
}

.feed-post-card .post-stats {
  justify-content: space-between;
  gap: var(--space-sm);
}

.feed-post-card .feed-footer {
  width: 100%;
  flex-wrap: nowrap;
  justify-content: flex-start;
  margin-top: var(--space-sm);
}

.feed-card-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-sm);
}

.feed-post-card .price {
  font-size: var(--text-md);
  font-weight: var(--font-semibold);
}

.detail-address {
  margin: 0;
  font-size: 15px;
}

.detail-info-row {
  margin: 2px 0 4px;
  font-size: var(--muted-text-sm);
  line-height: 1.35;
  align-items: center;
}

.detail-card .post-stats {
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.contact-action {
  width: var(--tap-target);
  height: var(--tap-target);
  min-height: var(--tap-target);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0;
  box-sizing: border-box;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
}

.contact-action.disabled {
  color: var(--muted);
  background: #f6f7f9;
  pointer-events: none;
}

.contact-icon {
  display: block;
  width: var(--icon-lg);
  height: var(--icon-lg);
  flex: 0 0 auto;
  fill: none;
  margin: 0;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-icon text {
  dominant-baseline: middle;
  text-anchor: middle;
}

.contact-action .contact-icon {
  width: var(--icon-lg);
  height: var(--icon-lg);
}

.contact-action[data-contact-type="email"] .contact-icon,
.permission-contact-row .contact-action[data-contact-type="email"] .contact-icon,
.detail-contact-side .contact-action[data-contact-type="email"] .contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-contact-layer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px calc(150px + env(safe-area-inset-bottom));
}

.phone-contact-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 15, 20, 0.22);
}

.phone-contact-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 448px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: #0f5132;
  box-shadow: 0 18px 42px rgba(9, 45, 29, 0.34);
  animation: phoneSheetIn 0.18s ease both;
}

.phone-contact-option {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 400;
}

.phone-contact-option .contact-icon {
  width: 20px;
  height: 20px;
}

@keyframes phoneSheetIn {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.post-meta,
.post-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 10px;
  color: var(--muted);
  font-size: var(--muted-text-sm);
}

.post-stat-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.inline-action {
  height: 26px;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 9px;
  background: #fff;
  color: #b12a2a;
  font-size: 12px;
  font-weight: 800;
}

.report-button {
  min-width: 64px;
  padding: 0 8px;
}

.pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: var(--radius);
  background: #f1f3f6;
  color: #4d5664;
  font-size: 12px;
  white-space: nowrap;
}

.status-published {
  background: #ecf8ef;
  color: #24733c;
}

.status-pending {
  background: #fff6df;
  color: #8b6100;
}

.status-rejected,
.status-removed {
  background: #fff0f0;
  color: #a92c2c;
}

.status-ended {
  background: #eef1f5;
  color: #6b7280;
  font-weight: 800;
}

.vip-pill {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  color: var(--brand-blue);
  background: rgba(74, 163, 223, 0.12);
  border-color: rgba(74, 163, 223, 0.35);
  font-weight: 500;
}

.vip-mark {
  color: var(--brand-blue);
  font-weight: 900;
}

.vip-text {
  font-weight: 500;
}

.price {
  color: var(--brand-red);
  font-size: 14px;
  font-weight: 900;
}

.stat-item[data-stat="views"] .stat-count {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

.end-hint {
  padding: 14px 0 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.feed-pagination-footer {
  min-height: 1px;
}

.feed-loading-indicator {
  min-height: 28px;
  padding: 10px 0 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.feed-loading-indicator.is-active,
.platform-loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  color: var(--muted);
  animation: btn-spin 0.7s linear infinite;
}

.platform-loading-state {
  min-height: 78px;
  color: var(--muted);
  pointer-events: none;
}

.main [data-platform-loading],
.main .platform-loading-state {
  pointer-events: none;
}

.property-map-loading-message {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feed-loading-indicator:not(.is-active) {
  padding: 0;
}

.feed-loading-retry {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.feed-load-sentinel {
  height: 72px;
  pointer-events: none;
}

.empty-state {
  padding: 30px 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  background: var(--surface);
}

.form {
  display: grid;
  gap: 12px;
}

.form-main {
  padding-bottom: calc(156px + env(safe-area-inset-bottom));
}

.publish-main,
.owner-edit-main {
  padding-bottom: calc(var(--bottombar-h) + var(--space-2xl) + env(safe-area-inset-bottom));
}

.app[data-view="publish"] .publish-main {
  padding-bottom: calc(var(--bottombar-h) + var(--space-2xl) + env(safe-area-inset-bottom));
}

.form-sticky-submit-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: calc(var(--z-popover) + 6);
  width: min(100%, 480px);
  transform: translateX(-50%);
  padding: 6px var(--gallery-feed-x) calc(6px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 -14px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.app[data-view="publish"] .form-sticky-submit-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: calc(var(--z-popover) + 6);
  width: min(100%, 480px);
  transform: translateX(-50%);
  margin: 0;
  padding: 6px var(--gallery-feed-x) calc(6px + env(safe-area-inset-bottom));
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(8, 12, 18, 0.18);
  box-shadow:
    0 -10px 28px rgba(15, 23, 42, 0.1),
    inset 1px 0 rgba(74, 221, 255, 0.2),
    inset -1px 0 rgba(255, 125, 205, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.app[data-view="publish"] .form-sticky-submit-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 24% 170% at 0% 52%, rgba(72, 224, 255, 0.22), transparent 72%),
    radial-gradient(ellipse 24% 170% at 100% 48%, rgba(255, 116, 205, 0.17), transparent 72%),
    linear-gradient(105deg, transparent 8%, rgba(112, 174, 255, 0.09) 30%, transparent 48%, rgba(255, 218, 153, 0.09) 70%, transparent 92%),
    radial-gradient(ellipse at center, transparent 0 42%, rgba(210, 235, 255, 0.04) 64%, rgba(255, 255, 255, 0.2) 100%);
  backdrop-filter: blur(0.75px) saturate(1.55) contrast(1.09) brightness(1.04);
  backdrop-filter: url("#civilya-nav-edge-distortion") blur(0.75px) saturate(1.55) contrast(1.09) brightness(1.04);
  -webkit-backdrop-filter: blur(0.75px) saturate(1.55) contrast(1.09) brightness(1.04);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 0 58%, rgba(0, 0, 0, 0.28) 70%, rgba(0, 0, 0, 0.78) 88%, #000 100%);
  mask-image: radial-gradient(ellipse at center, transparent 0 58%, rgba(0, 0, 0, 0.28) 70%, rgba(0, 0, 0, 0.78) 88%, #000 100%);
  filter: url("#civilya-nav-edge-distortion");
}

.app[data-view="publish"] .form-sticky-submit-bar > * {
  position: relative;
  z-index: 1;
}

.form-sticky-submit-bar .primary-button {
  width: 100%;
  height: var(--tap-target);
  min-height: var(--tap-target);
  margin: 0;
  transition: transform 170ms cubic-bezier(0.2, 0.9, 0.24, 1), box-shadow 170ms ease, filter 170ms ease, opacity 150ms ease;
}

.publish-submit-hint {
  margin: 0 0 6px;
  color: var(--brand-red);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.primary-button.is-unavailable {
  opacity: 0.62;
}

.ai-fill-row {
  display: none;
  justify-content: flex-start;
  margin: 0 0 8px;
}

.ai-fill-row.has-images.is-ai-enabled {
  display: flex;
}

.ai-fill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-red);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.15s, color 0.15s, border-color 0.15s, background 0.15s;
}

.ai-fill-button::before {
  content: "";
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-6%20-6%2078%2084'%3E%3Cpath%20fill='%23299be8'%20d='M28%204c3%200%205%202%206%205l5%2013c2%205%206%209%2011%2011l8%203c3%201%203%205%200%206l-8%203c-5%202-9%206-11%2011l-5%2013c-1%203-3%205-6%205s-5-2-6-5l-5-13c-2-5-6-9-11-11l-8-3c-3-1-3-5%200-6l8-3c5-2%209-6%2011-11l5-13c1-3%203-5%206-5z'/%3E%3Cpath%20fill='%237d58c2'%20d='M49%2034c2%200%203%201%204%203l2%205c1%203%203%205%206%206l3%201c2%201%202%204%200%205l-3%201c-3%201-5%203-6%206l-2%205c-1%202-2%203-4%203s-3-1-4-3l-2-5c-1-3-3-5-6-6l-3-1c-2-1-2-4%200-5l3-1c3-1%205-3%206-6l2-5c1-2%202-3%204-3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ai-fill-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ai-fill-button.is-ai-filling {
  opacity: 1;
  cursor: progress;
  border-color: rgba(223, 63, 37, 0.45);
  background: rgba(223, 63, 37, 0.08);
}

.ai-fill-button.is-ai-filling::before {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
  animation: aiFillIconPulse 0.9s ease-in-out infinite;
  transform-origin: center;
  filter: drop-shadow(0 0 8px rgba(41, 155, 232, 0.42));
}

@keyframes aiFillIconPulse {
  0%,
  100% {
    transform: scale(0.92);
  }

  50% {
    transform: scale(1.18);
  }
}

@keyframes aiImageIconPulse {
  0%,
  100% {
    transform: scale(0.92);
  }

  50% {
    transform: scale(1.12);
  }
}

@keyframes aiImageScan {
  0%,
  100% {
    transform: translateY(-32px);
    opacity: 0.35;
  }

  50% {
    transform: translateY(32px);
    opacity: 1;
  }
}

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

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: #3b4048;
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 11px;
  background: #fff;
  color: var(--ink);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field textarea {
  min-height: 116px;
  resize: vertical;
  line-height: 1.45;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.admin-region-code-readonly code {
  min-height: 44px;
  display: flex;
  align-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 10px 11px;
  background: var(--soft);
  color: var(--muted);
  font-family: inherit;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.admin-region-code-readonly small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.title-input-wrap {
  position: relative;
  display: block;
  min-width: 0;
}

.limited-input-wrap {
  position: relative;
  display: block;
  min-width: 0;
}

.title-input-wrap input {
  padding-right: 64px;
}

.limited-input-wrap input {
  padding-right: 52px;
}

.title-input-counter,
.limited-input-counter {
  position: absolute;
  right: 12px;
  top: 50%;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.char-counter {
  justify-self: end;
}

.unit-input-wrap {
  position: relative;
  display: block;
  min-width: 0;
}

.unit-input-wrap input {
  padding-right: 78px;
}

.unit-input-wrap .unit-inline-select {
  position: absolute;
  right: 1px;
  top: 1px;
  bottom: 1px;
  width: 72px;
  min-height: 0;
  height: calc(100% - 2px);
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) 0;
  background-color: var(--surface);
  color: var(--muted);
  font-size: 13px;
  padding: 0 26px 0 8px;
}

.price-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(58px, auto);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.price-input-row input {
  min-width: 0;
}

.price-input-wrap {
  position: relative;
  display: block;
  min-width: 0;
}

.price-input-wrap input {
  width: 100%;
  padding-left: 48px;
}

.currency-prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  z-index: 1;
  min-width: 24px;
  min-height: 0;
  border: 0;
  border-radius: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  pointer-events: none;
}

.negotiable-button.active {
  color: #fff;
  background: var(--brand-red);
}

.period-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.period-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.period-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-width: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff;
  font-weight: 800;
}

.period-option input:checked + span {
  color: #fff;
  border-color: var(--brand-red);
  background: var(--brand-red);
}

.period-option-wanted input:checked + span {
  border-color: #16a34a;
  background: #16a34a;
}

.contact-rows {
  display: grid;
  gap: 8px;
}

.contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(58px, auto);
  column-gap: 8px;
  row-gap: 8px;
  align-items: center;
  min-width: 0;
}

.contact-row input {
  min-width: 0;
}

.contact-input-wrap {
  position: relative;
  display: block;
  min-width: 0;
}

.contact-input-wrap input {
  height: 44px;
  min-height: 44px;
  padding-left: 112px;
}

.contact-input-wrap .contact-type-select {
  position: absolute;
  left: 1px;
  top: 1px;
  bottom: 1px;
  z-index: 1;
  width: 100%;
  max-width: 104px;
  height: calc(100% - 2px);
  min-height: 0;
  padding: 0 28px 0 10px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: var(--radius) 0 0 var(--radius);
  background-color: var(--surface);
  color: var(--muted);
  opacity: 1;
  pointer-events: auto;
}

.contact-row .contact-row-action,
.contact-row .contact-row-spacer {
  justify-self: center;
  margin-left: 0;
}

.contact-type-wheel {
  display: none;
}

.contact-wheel-option {
  width: 100%;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  opacity: 0.45;
  transform: scale(0.82);
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-wheel-option.is-active {
  color: var(--ink);
  font-size: 13px;
  opacity: 1;
  transform: scale(1);
}

.icon-remove-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--brand-red);
  font-size: 22px;
  line-height: 1;
}

.contact-row-action {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--brand-red);
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.contact-row-spacer {
  width: 36px;
  height: 36px;
}

.add-contact-button {
  justify-self: start;
}

.compact-form .field > label:not(.image-upload-button):not(.map-location-toggle):not(.publish-map-address-field) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.compact-form .add-contact-button {
  display: none;
}

.category-wheel-field {
  margin: 2px -16px 4px;
}

.category-native-select {
  position: absolute;
  width: 1px !important;
  height: 1px;
  min-height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.category-wheel-shell {
  position: relative;
  overflow: hidden;
  padding: 4px 0 7px;
}

.category-wheel-shell::before,
.category-wheel-shell::after {
  content: none;
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 56px;
  pointer-events: none;
}

.category-wheel-shell::before {
  left: 0;
  background: linear-gradient(90deg, var(--surface), rgba(255, 255, 255, 0));
}

.category-wheel-shell::after {
  right: 0;
  background: linear-gradient(270deg, var(--surface), rgba(255, 255, 255, 0));
}

.category-wheel-track {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 48px;
  padding: 3px 0;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}

.category-wheel-track::-webkit-scrollbar {
  display: none;
}

.category-wheel-spacer {
  flex: 0 0 calc(50% - 45px);
  min-width: calc(50% - 45px);
}

.category-wheel-item {
  position: relative;
  flex: 0 0 auto;
  width: auto;
  min-width: 84px;
  height: 34px;
  border: 0;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 12px;
  scroll-snap-align: center;
  background: var(--category-chip-bg);
  color: var(--category-chip-fg);
  opacity: 0.82;
  filter: none;
  transform: none;
  overflow: visible;
  transition: opacity 0.18s ease, color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.category-wheel-item::before {
  content: none;
}

.category-wheel-item.is-active {
  z-index: 3;
  opacity: 1;
  filter: none;
  transform: scale(1);
  background: var(--category-chip-bg);
  color: var(--category-chip-fg);
  box-shadow: inset 0 0 0 1px rgba(223, 63, 37, 0.42), 0 6px 14px rgba(223, 63, 37, 0.12);
}

.category-wheel-label {
  position: relative;
  z-index: 1;
  display: block;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
}

.image-upload-field {
  gap: 8px;
}

.image-upload-button {
  width: 56px;
  height: 56px;
  border: 1px dashed #cbd1da;
  border-radius: var(--radius);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-red);
}

.image-upload-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.image-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.camera-icon {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4a4f58;
  font-size: 13px;
}

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

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.event-date-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.event-date-field {
  position: relative;
  display: block;
  gap: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.event-date-field input {
  display: block;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  padding: 0 11px;
  background: transparent;
  line-height: 44px;
}

.event-date-placeholder {
  position: absolute;
  left: 11px;
  top: 50%;
  z-index: 1;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.event-date-field:not(.has-value) input {
  color: transparent;
}

.event-date-field.has-value .event-date-placeholder,
.event-date-field:focus-within .event-date-placeholder {
  display: none;
}

.event-date-field:focus-within input {
  color: var(--ink);
}

.region-list {
  display: grid;
  gap: 12px;
}

.region-block {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.region-block h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.city-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.city-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
}

.city-button.active {
  border-color: var(--brand-red);
  background: var(--soft-red);
  color: var(--brand-red);
}

.admin-toolbar {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafbfc;
}

.admin-panel {
  display: grid;
  gap: var(--space-sm);
  min-width: 0;
}

.admin-region-create-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-md);
  align-items: stretch;
  min-width: 0;
}

.admin-region-create-grid > .admin-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  align-content: stretch;
}

.admin-region-create-grid > .admin-panel > .form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.admin-region-create-grid > .admin-panel > .form > .local-ad-form-actions {
  margin-top: auto;
  padding-top: 2px;
}

@media (max-width: 760px) {
  .admin-region-create-grid {
    grid-template-columns: 1fr;
  }
}

.admin-toolbar > .segmented {
  flex-wrap: wrap;
  overflow-x: visible;
  padding-bottom: 0;
}

.admin-toolbar > .segmented .segment {
  flex: 1 1 72px;
  min-width: 0;
}

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

.admin-filter-label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
}

.admin-filter-label select,
.admin-support-reply-form textarea,
.admin-support-auto-reply-form textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  color-scheme: light;
}

.admin-filter-label select {
  min-height: 34px;
  padding: 0 8px;
}

.admin-support-auto-reply-form,
.admin-support-reply-form {
  display: grid;
  gap: 10px;
}

.admin-support-reply-form textarea,
.admin-support-auto-reply-form textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  padding: 10px 12px;
  line-height: 1.45;
}

.admin-helper-text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.admin-support-actions,
.admin-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-meta-grid {
  color: var(--muted);
  font-size: var(--text-sm);
}

.admin-support-messages {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-height: 160px;
  max-height: 420px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-y: auto;
}

.admin-support-messages :where(.chat-message) {
  max-width: 92%;
}

.admin-support-messages :where(.chat-message-bubble) {
  max-width: min(560px, 58vw);
}

.admin-support-messages :where(.chat-message.other .chat-message-bubble) {
  background: color-mix(in srgb, var(--muted) 18%, transparent);
}

.admin-support-messages :where(.chat-message.own .chat-message-bubble) {
  background: var(--brand-red);
  color: #fff;
}

.admin-support-messages .admin-support-original-toggle {
  justify-self: start;
  color: currentColor;
}

.admin-support-unread-badge {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: var(--radius-full);
  background: var(--brand-red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.segmented {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.segment {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 10px;
  background: var(--surface);
  color: var(--ink);
}

.segment.active {
  background: var(--brand-red);
  color: #fff;
  border-color: var(--brand-red);
}

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

.app.admin-app .admin-overview-metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
  .app.admin-app .admin-overview-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.metric {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 86px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  overflow: hidden;
}

.metric strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.metric span {
  display: block;
  max-width: 100%;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.metric small {
  display: block;
  max-width: 100%;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

.metric-date {
  cursor: pointer;
}

.metric-date-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.metric-button {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.admin-monthly-traffic-panel {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.admin-monthly-traffic-head,
.admin-monthly-traffic-row {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) repeat(3, minmax(58px, .7fr));
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: var(--text-sm);
}

.admin-monthly-traffic-head {
  background: var(--admin-table-head);
  color: var(--muted);
  font-weight: 800;
}

.admin-monthly-traffic-row:last-child {
  border-bottom: 0;
}

.admin-monthly-traffic-row strong {
  color: var(--brand-red);
}

.admin-region-account-card summary {
  cursor: pointer;
  list-style: none;
}

.admin-region-account-card summary::-webkit-details-marker {
  display: none;
}

.admin-region-account-card summary::after {
  content: "展开";
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
}

.admin-region-account-card[open] summary::after {
  content: "收起";
}

.admin-country-region-card {
  display: grid;
  gap: var(--space-sm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-md);
  background: var(--surface);
}

.admin-country-region-head {
  align-items: flex-start;
}

.admin-country-region-head strong {
  color: var(--brand-purple);
}

.admin-country-city-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.admin-country-city-row {
  border: 0;
  border-radius: 0;
  padding: var(--space-sm) 0;
  background: transparent;
}

.admin-country-city-row:last-child {
  border-bottom: 0;
}

.admin-region-edit-actions {
  margin-top: var(--space-xs);
}

.admin-inline-edit-form {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--line);
}

.admin-account-row {
  display: grid;
  gap: var(--space-xs);
}

.admin-permission-editor {
  display: grid;
  gap: var(--space-sm);
}

.admin-permission-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.admin-permission-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  cursor: pointer;
}

.admin-permission-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-permission-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 5px 10px;
  background: var(--category-chip-bg);
  color: var(--category-chip-fg);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.admin-permission-chip span::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1px solid currentColor;
  border-radius: 3px;
  margin-right: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.admin-permission-chip input:checked + span {
  border-color: rgba(223, 63, 37, 0.48);
  background: var(--brand-light);
  color: var(--brand);
}

.admin-permission-chip input:checked + span::before {
  content: "✓";
}

.admin-category-row-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  flex: 0 0 auto;
  white-space: nowrap;
  justify-content: flex-end;
  min-width: 0;
  max-width: 48%;
}

.admin-category-row-meta > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-category-drag-handle {
  cursor: grab;
  width: 38px;
  min-height: 34px;
  padding-inline: 0;
  font-size: 16px;
}

.admin-category-drag-handle:active {
  cursor: grabbing;
}

.admin-category-card {
  position: relative;
  padding-block: calc(var(--space-md) * 0.5);
}

.admin-category-card.is-dragging {
  opacity: 0.58;
}

.admin-category-card.drag-over-before,
.admin-category-card.drag-over-after {
  border-color: rgba(223, 63, 37, 0.58);
}

.admin-category-card.drag-over-before::before,
.admin-category-card.drag-over-after::after {
  content: "";
  position: absolute;
  left: var(--space-sm);
  right: var(--space-sm);
  height: 3px;
  border-radius: 999px;
  background: var(--brand-red);
}

.admin-category-card.drag-over-before::before {
  top: -2px;
}

.admin-category-card.drag-over-after::after {
  bottom: -2px;
}

.admin-main button,
.admin-main .primary-button,
.admin-main .primary-btn,
.admin-main .secondary-btn,
.admin-main .quiet-button,
.admin-main .segment,
.admin-main .admin-menu-item {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 5px 10px;
  background: var(--category-chip-bg);
  color: var(--category-chip-fg);
  box-shadow: none;
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.admin-main .primary-button,
.admin-main .primary-btn {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}

.admin-main .secondary-btn,
.admin-main .quiet-button,
.admin-main .segment,
.admin-main .admin-menu-item {
  background: var(--category-chip-bg);
  color: var(--category-chip-fg);
}

.admin-main .segment.active,
.admin-main .admin-menu-item.active,
.admin-main button.is-current {
  background: var(--category-chip-bg);
  color: var(--brand-red);
  border-color: rgba(223, 63, 37, 0.42);
  box-shadow: inset 0 0 0 1px rgba(223, 63, 37, 0.42);
}

.admin-main .admin-menu-list {
  display: grid;
  gap: var(--space-xs);
}

.admin-main .admin-menu-item {
  width: 100%;
  min-height: var(--tap-target);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 0 var(--space-md);
  background: transparent;
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: var(--font-medium);
  justify-content: flex-start;
  text-align: left;
}

.admin-main .admin-menu-item.active {
  border-color: var(--line);
  background: var(--brand-light);
  color: var(--brand);
  box-shadow: none;
}

.admin-main .secondary-btn.danger,
.admin-main .danger {
  color: #df3f25;
  border-color: rgba(223, 63, 37, 0.48);
}

.admin-main .secondary-btn.success {
  color: #168a4a;
  border-color: rgba(22, 138, 74, 0.48);
}

.admin-main button:disabled,
.admin-main .secondary-btn:disabled,
.admin-main .primary-button:disabled,
.admin-main .primary-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-main button.is-current:disabled {
  opacity: 1;
}

.admin-main button.is-loading,
.admin-main .primary-button.is-loading,
.admin-main .primary-btn.is-loading,
.admin-main .secondary-btn.is-loading {
  opacity: 0.72;
  cursor: progress;
}

.admin-main form.is-dirty button[type="submit"]:not(.is-loading):not(.is-saved),
.admin-main button.is-dirty:not(.is-loading):not(.is-saved) {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}

.admin-main button.is-saved {
  background: #168a4a;
  border-color: #168a4a;
  color: #fff;
}

.admin-main button.is-submit-error {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}

.admin-main .btn-spinner {
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
  animation: btn-spin 0.7s linear infinite;
}

.admin-empty-admins {
  color: var(--muted);
}

.admin-table-actions-menu {
  align-self: center;
  justify-content: flex-start;
  transform: none;
  overflow: visible;
}

.admin-main .admin-bulk-actions button,
.admin-main .admin-row-actions button,
.admin-main .admin-country-city-row > .admin-row-head > button,
.admin-main .secondary-btn,
.admin-main .primary-btn,
.admin-main .primary-button {
  min-height: var(--tap-target);
}

.admin-table-action-popover {
  width: max-content;
  min-width: 132px;
  max-width: min(220px, calc(100vw - 32px));
  max-height: var(--admin-action-popover-max-height, min(420px, calc(100vh - 24px)));
  overflow-y: auto;
  z-index: calc(var(--z-popover) + 126);
}

.admin-table-actions-menu.open {
  position: relative;
  z-index: calc(var(--z-popover) + 125);
}

.admin-table-actions-menu.open .admin-table-action-popover {
  position: fixed;
  top: var(--admin-action-popover-top, 12px);
  right: var(--admin-action-popover-right, 12px);
  margin-top: 0;
}

.admin-table-actions-menu.open.has-body-popover > .admin-table-action-popover {
  display: none;
}

.admin-table-action-popover-layer {
  position: fixed;
  top: var(--admin-action-popover-top, 12px);
  right: var(--admin-action-popover-right, 12px);
  margin-top: 0;
  max-height: var(--admin-action-popover-max-height, min(420px, calc(100vh - 24px)));
  overflow-y: auto;
  z-index: calc(var(--z-popover) + 500);
}

.admin-table:has(.admin-table-actions-menu.open) {
  overflow: visible;
  position: relative;
  z-index: calc(var(--z-popover) + 120);
}

.admin-table-row:has(.admin-table-actions-menu.open),
.admin-table-row > .admin-table-actions-menu {
  overflow: visible;
  position: relative;
  z-index: calc(var(--z-popover) + 124);
}

.admin-record-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  background: rgba(11, 13, 16, 0.58);
}

.admin-record-dialog {
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  padding: var(--space-lg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 48px rgba(11, 13, 16, 0.28);
}

.admin-confirm-layer {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-popover) + 12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-main .admin-confirm-backdrop {
  position: absolute;
  inset: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-confirm-box {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

.admin-confirm-box strong {
  font-size: var(--text-lg);
  line-height: 1.2;
}

.admin-confirm-box p {
  margin: 0;
  color: var(--muted);
  line-height: var(--line-height);
}

.admin-confirm-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.admin-main .admin-confirm-ok-button {
  color: #fff;
}

.admin-record-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.admin-record-row {
  display: grid;
  grid-template-columns: minmax(120px, .8fr) minmax(0, 1.5fr);
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.admin-record-row:last-child {
  border-bottom: 0;
}

.admin-record-row dt,
.admin-record-row dd {
  margin: 0;
  min-width: 0;
}

.admin-record-row dt {
  color: var(--muted);
  font-weight: 800;
}

.admin-record-row dd {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.admin-main .admin-table-action-popover button,
.admin-table-action-popover-layer button {
  width: 100%;
  min-height: var(--tap-target);
  border: 0;
  padding: 10px 14px;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 1.2;
  justify-content: flex-start;
  text-align: left;
}

.admin-main .admin-table-action-popover button.danger,
.admin-table-action-popover-layer button.danger {
  color: var(--brand-red);
}

.admin-main .admin-table-action-popover button:active,
.admin-table-action-popover-layer button:active {
  background: var(--soft-red);
  color: var(--brand-red);
}


.admin-post-list {
  display: grid;
  gap: var(--space-sm);
}

.admin-post-row {
  display: grid;
  gap: var(--space-sm);
  padding: var(--space-md);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.admin-promotion-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(220px, 1.4fr) auto;
  gap: var(--space-md);
  align-items: start;
  padding: var(--space-md);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.admin-promotion-main,
.admin-promotion-draft,
.admin-promotion-actions {
  display: grid;
  gap: var(--space-xs);
  min-width: 0;
}

.admin-promotion-main p,
.admin-promotion-draft p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--line-height);
  overflow-wrap: anywhere;
}

.admin-promotion-draft strong {
  color: var(--ink);
}

.admin-promotion-tags {
  color: var(--brand-red);
}

.admin-promotion-actions {
  justify-items: end;
}

.admin-ai-usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.admin-ai-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.admin-ai-summary-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.admin-ai-summary-card span,
.admin-ai-summary-card p {
  color: var(--muted);
}

.admin-ai-summary-card strong {
  color: var(--ink);
  font-size: 30px;
  line-height: 1.05;
  font-weight: 900;
}

.admin-ai-summary-card p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--line-height);
}

.admin-ai-chart-title {
  margin-top: 12px;
}

.admin-ai-daily-chart {
  min-width: 0;
  padding: 12px;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-x: auto;
}

.admin-ai-line-chart-frame {
  min-width: 640px;
  display: grid;
  gap: 6px;
}

.admin-ai-line-chart-svg {
  width: 100%;
  height: clamp(220px, 24vw, 300px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
}

.admin-ai-line-chart-axis-line {
  stroke: var(--line);
  stroke-width: 1;
}

.admin-ai-line-chart-line {
  fill: none;
  stroke: var(--brand-red);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-ai-line-chart-point {
  fill: var(--brand-red);
  stroke: #fff;
  stroke-width: 2;
}

.admin-ai-line-chart-point-group {
  outline: none;
  cursor: pointer;
}

.admin-ai-line-chart-point-group.active .admin-ai-line-chart-point {
  stroke-width: 3;
}

.admin-ai-line-chart-tooltip {
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}

.admin-ai-line-chart-point-group:hover .admin-ai-line-chart-tooltip,
.admin-ai-line-chart-point-group:focus .admin-ai-line-chart-tooltip {
  opacity: 1;
}

.admin-ai-line-chart-tooltip rect {
  fill: rgba(31, 33, 37, .94);
  stroke: rgba(255, 255, 255, .18);
}

.admin-ai-line-chart-tooltip text {
  fill: #fff;
  font-size: 10px;
  font-weight: 800;
}

.admin-ai-line-chart-axis {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
}

.admin-ai-date-detail {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.admin-ai-date-metrics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-ai-date-metrics span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
}

.admin-ai-usage-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  display: grid;
  gap: 8px;
}

.admin-ai-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.admin-ai-card-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-ai-token-total {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--ink);
}

.admin-ai-usage-card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.35;
}

.admin-ai-provider-panel .status-pill {
  margin: 0 6px 6px 0;
}

.admin-ai-text-cell {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-ai-text-cell > span,
.admin-ai-text-cell small {
  min-width: 0;
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
}

.admin-ai-text-cell > span {
  -webkit-line-clamp: 2;
}

.admin-ai-text-cell small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  -webkit-line-clamp: 1;
}

.admin-ai-number-cell {
  justify-self: stretch;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.admin-ai-region-table .admin-table-row {
  grid-template-columns: minmax(140px, 1.35fr) minmax(58px, .5fr) minmax(82px, .68fr) minmax(82px, .68fr) minmax(86px, .68fr) minmax(104px, .72fr);
  min-width: 660px;
}

.admin-ai-date-table .admin-table-row {
  grid-template-columns: minmax(92px, .7fr) minmax(136px, 1fr) minmax(150px, 1.08fr) minmax(116px, .85fr) repeat(4, minmax(76px, .58fr));
  min-width: 880px;
}

.admin-ai-breakdown-table .admin-table-row {
  grid-template-columns: minmax(150px, 1.08fr) minmax(118px, .82fr) minmax(130px, .9fr) minmax(58px, .42fr) repeat(4, minmax(76px, .58fr));
  min-width: 860px;
}

.admin-table-inline-panel,
.local-ad-inline-panel {
  min-width: 0;
}

.admin-table-inline-panel {
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  padding-bottom: calc(var(--tap-target) + 72px + env(safe-area-inset-bottom));
}

.admin-table-inline-panel > .admin-panel,
.local-ad-inline-panel > .admin-panel {
  margin: 0;
}

.local-ad-inline-panel {
  grid-column: 1 / -1;
}

.admin-pin-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 640px) {
  .admin-record-row {
    grid-template-columns: 1fr;
  }

  .admin-promotion-row {
    grid-template-columns: 1fr;
  }

  .admin-promotion-actions {
    justify-items: stretch;
  }
}

.admin-post-summary {
  display: grid;
  gap: var(--space-xs);
  min-width: 0;
}

.admin-post-title {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: var(--font-semibold);
  line-height: var(--line-height);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--line-height);
}

.admin-post-meta span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

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

.admin-actions button {
  min-height: 34px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0 10px;
  color: var(--ink);
}

.admin-filter-toolbar {
  align-items: stretch;
}

.admin-bulk-actions,
.admin-row-actions,
.admin-row-head,
.admin-color-preview {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-row-actions {
  margin-left: auto;
  justify-content: flex-end;
  justify-self: end;
  text-align: right;
}

.admin-row-head {
  justify-content: space-between;
  width: 100%;
}

.admin-row-head > strong,
.admin-row-head > span:not(.admin-row-actions) {
  min-width: 0;
}

.admin-table .admin-row-actions {
  margin-left: 0;
}

.admin-row-actions .secondary-btn,
.admin-row-actions .primary-btn,
.admin-row-actions .primary-button {
  min-width: 44px;
}

.admin-bulk-actions,
.admin-row-head {
  justify-content: space-between;
  flex-wrap: wrap;
  min-width: 0;
}

.admin-color-preview {
  min-height: 34px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.admin-category-language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

@media (max-width: 640px) {
  .admin-category-language-grid {
    grid-template-columns: 1fr;
  }
}

.admin-table {
  display: grid;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.admin-table-row {
  display: grid;
  grid-template-columns: minmax(72px, .9fr) minmax(110px, 1.5fr) minmax(54px, .58fr) minmax(70px, .7fr) minmax(38px, .36fr) minmax(38px, .36fr) minmax(52px, .48fr) minmax(72px, .52fr);
  gap: 6px;
  min-width: 100%;
  width: 100%;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-sm);
}

.admin-table-row > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-table-row > .admin-table-actions-menu {
  overflow: visible;
}

.admin-table-row > span:not(.admin-row-actions):not(.admin-table-actions-menu) {
  white-space: nowrap;
}

.admin-post-status-cell {
  display: grid;
  gap: 3px;
  align-content: center;
}

.admin-post-translation-progress {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.2;
}

.admin-post-translation-progress.has-missing {
  color: var(--brand-red);
  font-weight: 800;
}

.admin-support-table {
  gap: 8px;
  overflow-x: hidden;
}

.admin-support-row {
  grid-template-columns: 36px minmax(172px, 250px) minmax(74px, 92px) minmax(0, 1fr) 72px 38px 82px;
  gap: 8px;
  min-width: 0;
  padding: 9px 14px;
  text-align: left;
  font-size: 13px;
}

.admin-support-row.active {
  border-color: rgba(223, 63, 37, 0.48);
  box-shadow: inset 3px 0 0 var(--brand-red);
}

.admin-support-avatar-cell,
.admin-support-unread-cell,
.admin-support-status-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-support-user-cell,
.admin-support-region-cell,
.admin-support-message-cell {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.admin-support-user-cell strong,
.admin-support-user-cell small,
.admin-support-region-cell small,
.admin-support-message-cell,
.admin-support-message-cell strong,
.admin-support-time-cell {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-support-message-cell {
  color: var(--text);
}

.admin-support-message-cell strong {
  display: block;
  font-weight: 800;
}

.admin-support-time-cell,
.admin-support-unread-cell,
.admin-support-status-cell {
  justify-self: stretch;
}

.admin-support-time-cell {
  text-align: right;
}

.admin-support-unread-cell {
  display: flex;
  justify-content: center;
}

.admin-support-user-cell small,
.admin-support-region-cell small,
.admin-support-time-cell {
  color: var(--muted);
  font-size: 11px;
}

.admin-support-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--category-chip-bg);
  color: var(--category-chip-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.admin-support-avatar-empty {
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .admin-support-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 8px 10px;
  }

  .admin-support-avatar-cell {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .admin-support-user-cell {
    grid-column: 2;
  }

  .admin-support-region-cell {
    grid-column: 2;
  }

  .admin-support-message-cell {
    grid-column: 1 / -1;
  }

  .admin-support-time-cell {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .admin-support-unread-cell {
    display: none;
  }

  .admin-support-status-cell {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
  }
}

.admin-table-row > span:nth-last-child(n + 2):has(.admin-ai-number-cell),
.admin-table-row > span:has(.admin-ai-number-cell) {
  text-align: right;
}

.admin-table-row:has(input[type="checkbox"]) {
  grid-template-columns: 44px minmax(72px, .9fr) minmax(110px, 1.5fr) minmax(54px, .58fr) minmax(70px, .7fr) minmax(38px, .36fr) minmax(38px, .36fr) minmax(52px, .48fr) minmax(72px, .52fr);
}

.admin-table-row.admin-table-row-selectable {
  grid-template-columns: minmax(54px, .38fr) minmax(72px, .85fr) minmax(110px, 1.45fr) minmax(54px, .56fr) minmax(70px, .68fr) minmax(38px, .34fr) minmax(38px, .34fr) minmax(52px, .46fr) minmax(72px, .5fr);
}

.admin-table-row.admin-table-row-selectable:has(input[type="checkbox"]) {
  grid-template-columns: minmax(54px, .38fr) minmax(72px, .85fr) minmax(110px, 1.45fr) minmax(54px, .56fr) minmax(70px, .68fr) minmax(38px, .34fr) minmax(38px, .34fr) minmax(52px, .46fr) minmax(72px, .5fr);
}

.admin-table-row.admin-table-row-hot {
  grid-template-columns: minmax(78px, .82fr) minmax(116px, 1.22fr) minmax(54px, .56fr) minmax(70px, .62fr) minmax(38px, .34fr) minmax(42px, .36fr) minmax(38px, .34fr) minmax(52px, .44fr) minmax(72px, .5fr);
  min-width: 100%;
}

.admin-table-row-hot.admin-table-row-no-actions {
  grid-template-columns: minmax(84px, .9fr) minmax(128px, 1.4fr) minmax(58px, .58fr) minmax(74px, .66fr) minmax(42px, .34fr) minmax(42px, .34fr) minmax(42px, .34fr) minmax(56px, .44fr);
  min-width: 100%;
}

.admin-table-row-hot .admin-row-actions {
  justify-self: end;
  flex-wrap: nowrap;
}

.admin-table-row-no-region {
  grid-template-columns: minmax(120px, 1.55fr) minmax(54px, .56fr) minmax(70px, .66fr) minmax(38px, .34fr) minmax(38px, .34fr) minmax(52px, .46fr) minmax(72px, .5fr);
  min-width: 100%;
}

.admin-table-row-no-region.admin-table-row-hot {
  grid-template-columns: minmax(120px, 1.45fr) minmax(54px, .54fr) minmax(70px, .62fr) minmax(38px, .32fr) minmax(38px, .32fr) minmax(38px, .32fr) minmax(52px, .42fr) minmax(72px, .48fr);
  min-width: 100%;
}

.admin-table-row-no-region.admin-table-row-hot.admin-table-row-no-actions {
  grid-template-columns: minmax(128px, 1.48fr) minmax(56px, .56fr) minmax(72px, .64fr) minmax(40px, .34fr) minmax(40px, .34fr) minmax(40px, .34fr) minmax(56px, .44fr);
  min-width: 100%;
}

.admin-table-row-no-region:has(input[type="checkbox"]) {
  grid-template-columns: 44px minmax(112px, 1.5fr) minmax(54px, .54fr) minmax(70px, .64fr) minmax(38px, .32fr) minmax(38px, .32fr) minmax(52px, .44fr) minmax(72px, .48fr);
  min-width: 100%;
}

.admin-table-row-no-region.admin-table-row-selectable {
  grid-template-columns: minmax(54px, .38fr) minmax(112px, 1.45fr) minmax(54px, .52fr) minmax(70px, .62fr) minmax(38px, .3fr) minmax(38px, .3fr) minmax(52px, .42fr) minmax(72px, .46fr);
  min-width: 100%;
}

.admin-table-row-no-region.admin-table-row-selectable:has(input[type="checkbox"]) {
  grid-template-columns: minmax(54px, .38fr) minmax(112px, 1.45fr) minmax(54px, .52fr) minmax(70px, .62fr) minmax(38px, .3fr) minmax(38px, .3fr) minmax(52px, .42fr) minmax(72px, .46fr);
  min-width: 100%;
}

.admin-table-row-content {
  grid-template-columns: minmax(76px, .72fr) minmax(116px, 1.2fr) minmax(54px, .5fr) minmax(68px, .56fr) minmax(38px, .28fr) minmax(38px, .28fr) minmax(50px, .38fr) minmax(70px, .48fr) minmax(72px, .48fr);
  min-width: 100%;
}

.admin-table-row-content.admin-table-row-selectable,
.admin-table-row-content.admin-table-row-selectable:has(input[type="checkbox"]) {
  grid-template-columns: 44px minmax(76px, .7fr) minmax(116px, 1.15fr) minmax(54px, .48fr) minmax(68px, .54fr) minmax(38px, .26fr) minmax(38px, .26fr) minmax(50px, .36fr) minmax(70px, .44fr) minmax(72px, .46fr);
  min-width: 100%;
}

.admin-table-row-content.admin-table-row-no-region {
  grid-template-columns: minmax(116px, 1.12fr) minmax(54px, .48fr) minmax(68px, .54fr) minmax(38px, .26fr) minmax(38px, .26fr) minmax(50px, .36fr) minmax(70px, .44fr) minmax(72px, .46fr);
  min-width: 100%;
}

@media (max-width: 640px) {
  .app.admin-app .admin-table:has(.admin-table-row-content) {
    overflow-x: visible;
    overscroll-behavior-x: auto;
  }

  .app.admin-app .admin-table-head.admin-table-row-content {
    display: none;
  }

  .app.admin-app .admin-table-row-content,
  .app.admin-app .admin-table-row-content.admin-table-row-no-region,
  .app.admin-app .admin-table-row-content.admin-table-row-selectable,
  .app.admin-app .admin-table-row-content.admin-table-row-selectable:has(input[type="checkbox"]) {
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
    width: 100%;
    align-items: start;
    gap: 8px 10px;
    padding: 12px;
  }

  .app.admin-app .admin-table-row-content.admin-table-row-selectable,
  .app.admin-app .admin-table-row-content.admin-table-row-selectable:has(input[type="checkbox"]) {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .app.admin-app .admin-table-row-content > span {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .app.admin-app .admin-table-row-content .admin-table-select-cell {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }

  .app.admin-app .admin-table-row-content .admin-table-title {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 0;
    max-height: none;
    padding-right: 74px;
  }

  .app.admin-app .admin-table-row-content.admin-table-row-selectable .admin-table-title {
    grid-column: 2 / -1;
  }

  .app.admin-app .admin-table-row-content .admin-table-actions-menu {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    width: auto;
  }

  .app.admin-app .admin-table-row-content.admin-table-row-selectable .admin-table-actions-menu {
    grid-column: 3;
  }

  .app.admin-app .admin-table-row-content .admin-table-region-cell,
  .app.admin-app .admin-table-row-content .admin-table-category-cell,
  .app.admin-app .admin-table-row-content .admin-table-date-cell,
  .app.admin-app .admin-table-row-content .admin-table-traffic-cell,
  .app.admin-app .admin-table-row-content .admin-table-share-cell,
  .app.admin-app .admin-table-row-content .admin-table-status-cell,
  .app.admin-app .admin-table-row-content .admin-table-quality-cell {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .app.admin-app .admin-table-row-content.admin-table-row-selectable .admin-table-region-cell,
  .app.admin-app .admin-table-row-content.admin-table-row-selectable .admin-table-category-cell,
  .app.admin-app .admin-table-row-content.admin-table-row-selectable .admin-table-date-cell,
  .app.admin-app .admin-table-row-content.admin-table-row-selectable .admin-table-traffic-cell,
  .app.admin-app .admin-table-row-content.admin-table-row-selectable .admin-table-share-cell,
  .app.admin-app .admin-table-row-content.admin-table-row-selectable .admin-table-status-cell,
  .app.admin-app .admin-table-row-content.admin-table-row-selectable .admin-table-quality-cell {
    grid-column: 2 / -1;
  }

  .app.admin-app .admin-table-row-content .admin-table-inline-panel,
  .app.admin-app .admin-table:has(.admin-table-row-content) > .admin-table-inline-panel {
    min-width: 0;
    width: 100%;
  }
}

.admin-table-title small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--text-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-quality-cell,
.admin-health-mini-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.admin-quality-pill {
  font-size: var(--text-xs);
  line-height: 1.2;
}

.admin-health-summary-grid,
.admin-language-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-sm);
}

.admin-health-summary-card,
.admin-language-health-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: var(--space-md);
}

.admin-health-summary-card.is-warning,
.admin-language-health-card.has-warning {
  border-color: rgba(223, 63, 37, .45);
  box-shadow: inset 3px 0 0 var(--brand-red);
}

.admin-health-summary-card span,
.admin-health-mini-grid span {
  color: var(--muted);
  font-size: var(--text-xs);
}

.admin-health-summary-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1.2rem;
}

.admin-language-health-card strong {
  display: block;
  margin-bottom: 8px;
}

.admin-demo-content-table .admin-table-row {
  grid-template-columns: minmax(150px, 1.2fr) minmax(120px, 1fr) minmax(80px, .6fr) minmax(100px, .7fr) minmax(120px, .8fr);
  min-width: 720px;
}

.admin-language-completion {
  display: grid;
  gap: 4px;
  margin: 6px 0;
  color: var(--muted);
  font-size: var(--text-xs);
}

.admin-language-completion.has-missing {
  color: var(--brand-red);
}

.admin-language-completion small {
  color: inherit;
  overflow-wrap: anywhere;
}

.admin-select-all-btn.is-selected {
  color: var(--brand-red);
  border-color: rgba(223, 63, 37, 0.42);
  box-shadow: inset 0 0 0 1px rgba(223, 63, 37, 0.42);
}

.admin-table-head {
  background: var(--admin-table-head);
  color: var(--muted);
  font-weight: 700;
}

.admin-table-title {
  display: block;
  width: 100%;
  min-height: 40px;
  max-height: 48px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.admin-table-title small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table-title-link {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.admin-main .admin-table-title-link {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  text-align: left;
  justify-content: flex-start;
}

.admin-table-title-link:hover {
  color: var(--brand-red);
}

.admin-ads-table .admin-table-row {
  grid-template-columns: minmax(82px, .85fr) minmax(112px, 1.25fr) minmax(70px, .58fr) minmax(70px, .58fr) minmax(52px, .42fr) minmax(72px, .48fr);
  min-width: 100%;
}

.admin-ads-table .admin-row-actions,
.admin-table-row-content .admin-row-actions,
.admin-table-row-content .admin-table-actions-menu,
.admin-table-row-hot .admin-row-actions,
.admin-table-row-hot .admin-table-actions-menu {
  justify-self: end;
  width: 100%;
  justify-content: flex-end;
}

.admin-rule-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--line-height);
}

.admin-form[data-form="admin-login"] .primary-btn {
  margin-top: 10px;
}

.admin-daily-hot-limit-form {
  display: flex;
  align-items: end;
  gap: 8px;
  margin-left: auto;
}

.admin-daily-hot-limit-form .field {
  margin: 0;
  max-width: 160px;
}

.admin-traffic-table .admin-table-row {
  grid-template-columns: minmax(150px, 1.3fr) repeat(5, minmax(70px, .7fr));
  min-width: 560px;
}

.admin-city-traffic-title {
  width: 100%;
  justify-content: flex-start;
  border-color: transparent;
  background: transparent;
  color: var(--ink);
  padding-inline: 0;
  text-align: left;
}

.admin-traffic-chart {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.admin-traffic-chart-period {
  min-width: 86px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.admin-traffic-chart-frame {
  display: grid;
  gap: 6px;
}

.admin-traffic-chart-svg {
  width: 100%;
  height: clamp(260px, 26vw, 340px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
}

.admin-traffic-chart-axis-line {
  stroke: var(--line);
  stroke-width: 1;
}

.admin-traffic-chart-grid-line {
  stroke: rgba(139, 147, 163, .22);
  stroke-width: 1;
}

.admin-traffic-chart-scale-label {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-anchor: end;
  dominant-baseline: middle;
}

.admin-traffic-chart-line {
  fill: none;
  stroke: var(--brand-red);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-traffic-chart-point {
  fill: var(--brand-red);
  stroke: #fff;
  stroke-width: 2;
}

.admin-traffic-chart-point-group {
  outline: none;
  cursor: pointer;
}

.admin-traffic-chart-tooltip {
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}

.admin-traffic-chart-point-group:hover .admin-traffic-chart-tooltip,
.admin-traffic-chart-point-group:focus .admin-traffic-chart-tooltip {
  opacity: 1;
}

.admin-traffic-chart-tooltip rect {
  fill: rgba(31, 33, 37, .94);
  stroke: rgba(255, 255, 255, .18);
}

.admin-traffic-chart-tooltip text {
  fill: #fff;
  font-size: 10px;
  font-weight: 800;
}

.admin-traffic-chart-axis {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
}

.admin-city-month-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(120px, .7fr));
  gap: 8px;
  min-width: 560px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--admin-table-head);
  color: var(--ink);
  font-size: var(--text-sm);
}

.admin-city-month-panel .admin-field {
  margin: 0;
}

.admin-city-month-panel > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admin-city-month-panel strong {
  font-size: var(--text-md);
}

.admin-city-month-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

@media (min-width: 900px) {
  .app.admin-app {
    width: min(calc(100% - 48px), 1180px);
    max-width: 1180px;
    padding-bottom: var(--space-2xl);
    overflow-x: visible;
  }

  .app.admin-app .admin-main {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg) var(--space-xl);
    align-items: flex-start;
  }

  .app.admin-app .admin-shell-header {
    flex: 0 0 100%;
    margin: 0 0 var(--space-lg);
    padding: env(safe-area-inset-top, 0px) var(--space-lg) 0;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .app.admin-app .admin-menu-button {
    visibility: hidden;
    pointer-events: none;
  }

  .app.admin-app .admin-menu-scrim {
    display: none;
  }

  .app.admin-app .admin-menu-drawer {
    position: sticky;
    top: calc(var(--admin-shell-h) + var(--space-lg));
    flex: 0 0 260px;
    width: 260px;
    max-width: none;
    height: calc(100vh - var(--admin-shell-h) - var(--space-2xl));
    overflow-y: auto;
    padding: var(--space-lg) var(--space-md);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: none;
    transform: none;
    transition: none;
  }

  .app.admin-app .admin-content {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: var(--space-xl);
    max-width: calc(100% - 260px - var(--space-xl));
  }

  .app.admin-app .admin-page-header {
    padding-top: 0;
  }

  .app.admin-app .admin-table-row,
  .app.admin-app .admin-ads-table .admin-table-row,
  .app.admin-app .admin-traffic-table .admin-table-row {
    min-width: 100%;
  }

  .app.admin-app .admin-table-row.admin-table-row-hot {
    min-width: 100%;
  }

  .app.admin-app .admin-table-row.admin-table-row-hot.admin-table-row-no-actions {
    min-width: 100%;
  }

  .app.admin-app .admin-table-row.admin-table-row-content {
    min-width: 100%;
  }

  .app.admin-app .admin-table {
    overflow-x: auto;
  }

  .app.admin-app .admin-table:has(.admin-table-row-hot) {
    overflow-x: auto;
  }
}

@media (min-width: 900px) {
  .app:not(.admin-app) {
    width: 100%;
    max-width: none;
    padding: 64px 320px 40px 232px;
    background: var(--page);
    overflow-x: visible;
  }

  .app:not(.admin-app).no-topbar {
    padding-top: 0;
  }

  .app:not(.admin-app) .detail-route-overlay {
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    padding: 64px 320px 40px 232px;
    transform: none;
    background: var(--page);
  }

  .app:not(.admin-app) .topbar {
    left: 232px;
    right: 320px;
    width: auto;
    transform: none;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 9px 24px;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }

  .app:not(.admin-app) .topbar.topbar-hidden {
    transform: translateY(-110%);
  }

  html.pwa-standalone .app:not(.admin-app):not(.no-topbar) {
    padding-top: calc(64px + env(safe-area-inset-top, 0px));
  }

  html.pwa-standalone .app:not(.admin-app) .topbar {
    padding-top: calc(9px + env(safe-area-inset-top, 0px));
  }

  html.pwa-standalone .app:not(.admin-app) .topbar.topbar-hidden {
    transform: none;
  }

  .app:not(.admin-app) .form-sticky-submit-bar {
    left: calc(232px + ((100vw - 552px) / 2));
    width: min(820px, calc(100vw - 552px));
    transform: translateX(-50%);
    padding-right: var(--space-xl);
    padding-left: var(--space-xl);
  }

  .app:not(.admin-app)[data-view="publish"] .publish-main {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .app:not(.admin-app) .detail-chat-bar {
    left: calc(232px + ((100vw - 552px) / 2));
    right: auto;
    width: min(820px, calc(100vw - 552px));
    transform: translateX(-50%);
    box-sizing: border-box;
    padding-right: var(--space-xl);
    padding-left: var(--space-xl);
  }

  .app:not(.admin-app) .chat-thread-main .chat-compose {
    left: calc(232px + ((100vw - 552px) / 2));
    right: auto;
    width: min(820px, calc(100vw - 552px));
    transform: translateX(-50%);
    box-sizing: border-box;
    grid-template-columns: var(--tap-target) minmax(0, 1fr) auto;
  }

  .app:not(.admin-app) .related-posts {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  .app:not(.admin-app) .topbar .brand {
    visibility: hidden;
  }

  .app:not(.admin-app) .main {
    width: min(100%, 820px);
    margin: 0 auto;
    padding: 20px 0 56px;
  }

  .app:not(.admin-app) .bottom-nav {
    display: none;
  }

  .desktop-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: calc(var(--z-popover) + 8);
    width: 216px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 18px 14px 24px;
    border-right: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .desktop-sidebar-brand {
    width: 100%;
    min-height: 42px;
    justify-content: flex-start;
    padding: 0 8px;
  }

  .desktop-sidebar-brand picture {
    display: flex;
  }

  .desktop-sidebar-brand img {
    width: 146px;
    max-height: 46px;
    object-fit: contain;
  }

  .desktop-nav {
    display: grid;
    gap: 8px;
  }

  .desktop-sidebar-account {
    margin-top: auto;
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
  }

  .desktop-sidebar-account-head {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .desktop-sidebar-account-text {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .desktop-sidebar-avatar {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border: 1px solid var(--line);
  }

  .desktop-sidebar-account strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
  }

  .desktop-nav-button {
    position: relative;
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: var(--radius);
    padding: 0 12px;
    background: transparent;
    color: var(--muted);
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    text-align: left;
    font-size: 15px;
    font-weight: 800;
  }

  .desktop-nav-button.active {
    color: var(--brand-red);
    background: rgba(223, 63, 37, 0.08);
  }

  .desktop-nav-button.primary {
    margin: 8px 0;
    min-height: 52px;
    color: #fff;
    background: var(--brand-red);
    box-shadow: 0 8px 18px rgba(223, 63, 37, 0.24);
  }

  .desktop-nav-button.primary.active {
    color: #fff;
    background: var(--brand-red);
  }

  .desktop-nav-button .nav-icon {
    width: 23px;
    height: 23px;
  }

  .desktop-nav-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--brand-red);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
  }

  .desktop-right-rail {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: calc(var(--z-popover) + 6);
    width: 304px;
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 72px 18px 24px;
    border-left: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.86);
    overflow-y: auto;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .desktop-rail-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
  }

  .desktop-rail-kicker,
  .desktop-rail-head {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }

  .desktop-rail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .desktop-region-current {
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--ink);
    text-align: left;
    font-size: 17px;
    font-weight: 900;
  }

  .desktop-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .desktop-category-chip {
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0 10px;
    background: var(--category-chip-bg);
    color: var(--category-chip-fg);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 800;
  }

  .desktop-category-chip.active {
    color: var(--brand-red);
    box-shadow: inset 0 0 0 1px rgba(223, 63, 37, 0.42);
  }

  .desktop-latest-list {
    display: grid;
    gap: 4px;
  }

  .desktop-latest-item {
    width: 100%;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 9px 8px;
    background: transparent;
    color: var(--ink);
    display: grid;
    gap: 3px;
    text-align: left;
  }

  .desktop-latest-item:hover,
  .desktop-latest-item:focus-visible {
    background: var(--category-chip-bg);
  }

  .desktop-latest-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 850;
  }

  .desktop-latest-meta,
  .desktop-rail-empty {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
  }

  .desktop-account-card strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
  }

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

  .desktop-primary-action,
  .desktop-secondary-action {
    min-height: 34px;
    border-radius: var(--radius);
    padding: 0 12px;
    font-weight: 850;
  }

  .desktop-primary-action {
    border: 0;
    background: var(--brand-red);
    color: #fff;
  }

  .desktop-secondary-action {
    border: 1px solid var(--line);
    background: var(--category-chip-bg);
    color: var(--ink);
  }

  .app:not(.admin-app) .search-page-panel {
    top: 64px;
    left: calc(232px + ((100vw - 552px) / 2));
    width: min(820px, calc(100vw - 600px));
  }

  .app:not(.admin-app) .floating-back {
    right: 340px;
    bottom: 96px;
  }

  .app:not(.admin-app) .toast {
    left: calc(232px + ((100vw - 552px) / 2));
    transform: translateX(-50%);
  }
}

@media (min-width: 1240px) {
  .app:not(.admin-app) {
    padding-left: 260px;
    padding-right: 344px;
  }

  .app:not(.admin-app) .topbar {
    left: 260px;
    right: 344px;
  }

  .desktop-sidebar {
    width: 240px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .desktop-right-rail {
    width: 328px;
  }

  .app:not(.admin-app) .search-page-panel,
  .app:not(.admin-app) .toast {
    left: calc(260px + ((100vw - 604px) / 2));
  }

  .app:not(.admin-app) .chat-thread-main .chat-compose {
    left: calc(260px + ((100vw - 604px) / 2));
    width: min(820px, calc(100vw - 604px));
  }

  .app:not(.admin-app) .floating-back {
    right: 368px;
  }
}

@media (min-width: 1180px) {
  .app:not(.admin-app) .main:has(.category-strip) {
    width: min(100%, 1200px);
  }

  .app:not(.admin-app) .main:has(.category-strip) .property-map-home-card {
    margin: 0 var(--gallery-feed-x) var(--space-lg);
  }

  .app:not(.admin-app) .main:has(.category-strip) .property-map-home {
    aspect-ratio: var(--home-feature-media-ratio);
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .app:not(.admin-app) .main:has(.category-strip) .local-ad-section {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  .app:not(.admin-app) .main:has(.category-strip) .local-ad-card {
    height: auto;
    aspect-ratio: var(--ratio-local-ad);
  }

  .app:not(.admin-app) .main:has(.category-strip) .local-ad-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .app:not(.admin-app) .main:has(.category-strip) .home-ad-strip .local-ad-card {
    aspect-ratio: var(--home-feature-media-ratio);
    height: auto;
    max-height: none;
  }

  .app:not(.admin-app) .main:has(.category-strip) .home-ad-strip .local-ad-card img {
    aspect-ratio: var(--home-feature-media-ratio);
  }

  .app:not(.admin-app) .main:has(.category-strip) .local-news-section {
    --local-news-card-width: calc((100% - var(--space-md)) / 2);
    --ratio-news-carousel: 16 / 7;
  }

  .app:not(.admin-app) .main:has(.category-strip) [data-feed-list] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-lg);
    padding-right: var(--gallery-feed-x);
    padding-left: var(--gallery-feed-x);
  }

  .app:not(.admin-app) .main:has(.category-strip) [data-feed-list] .feed-post-card {
    min-width: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    overflow: hidden;
  }

  .app:not(.admin-app) .main:has(.category-strip) [data-feed-list] .gallery-card-content {
    padding-right: 0;
    padding-left: 0;
  }

  .app:not(.admin-app) .main:has(.category-strip) [data-feed-list] .post-title,
  .app:not(.admin-app) .main:has(.category-strip) [data-feed-list] .post-title-button,
  .app:not(.admin-app) .main:has(.category-strip) [data-feed-list] .post-body-button,
  .app:not(.admin-app) .main:has(.category-strip) [data-feed-list] .feed-title-meta,
  .app:not(.admin-app) .main:has(.category-strip) [data-feed-list] .post-meta,
  .app:not(.admin-app) .main:has(.category-strip) [data-feed-list] .price {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .app:not(.admin-app) .main:has(.category-strip) [data-feed-list] .feed-title-meta .post-address {
    max-width: 100%;
  }

  .app:not(.admin-app) .main:has(.category-strip) [data-feed-list] .post-title {
    font-size: 14px;
    line-height: 1.3;
  }

  .app:not(.admin-app) .main:has(.category-strip) [data-feed-list] .price {
    font-size: var(--text-sm);
  }

  .app:not(.admin-app) .main:has(.category-strip) .feed-news-large .news-post-card .post-top,
  .app:not(.admin-app) .main:has(.category-strip) .feed-news-large .news-post-card .feed-title-meta,
  .app:not(.admin-app) .main:has(.category-strip) .feed-news-large .news-post-card .post-meta,
  .app:not(.admin-app) .main:has(.category-strip) .feed-news-large .news-post-card .feed-footer,
  .app:not(.admin-app) .main:has(.category-strip) .feed-news-large .news-card-summary,
  .app:not(.admin-app) .main:has(.category-strip) .feed-news-large .news-card-media,
  .app:not(.admin-app) .main:has(.category-strip) .feed-news-large .news-post-card .image-grid,
  .app:not(.admin-app) .main:has(.category-strip) .feed-news-large .news-post-card .cover-placeholder {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .app:not(.admin-app) .main:has(.category-strip) .feed-job .job-card-row {
    display: grid;
    gap: var(--space-sm);
  }

  .app:not(.admin-app) .main:has(.category-strip) .feed-job .job-card-media {
    order: -1;
    width: 100%;
    flex-basis: auto;
  }

  .app:not(.admin-app) .main:has(.category-strip) .feed-job .job-post-card .post-title {
    font-size: var(--text-md);
  }
}

.secondary-btn.danger,
.admin-actions .danger {
  color: var(--brand-red);
  border-color: rgba(223, 63, 37, 0.35);
}

.edit-panel {
  border: 1px solid rgba(223, 63, 37, 0.28);
  background: #fffaf9;
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
}

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

.my-main .my-tabs + .permission-list {
  margin-top: 18px;
}

.my-main .permission-list {
  gap: 16px;
}

.my-main [data-my-tab-content] > .permission-list,
.my-main [data-my-tab-content] > .empty-state {
  margin-left: var(--gallery-feed-x);
  margin-right: var(--gallery-feed-x);
}

.permission-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-md);
  background: var(--surface);
}

.admin-category-card {
  display: grid;
  gap: calc(var(--space-xs) * 0.5);
}

.admin-category-card .admin-row-head {
  flex-wrap: nowrap;
}

.admin-category-card strong {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
  overflow: hidden;
}

.admin-category-card p,
.admin-category-card span {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
}

.admin-user-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: visible;
  background: var(--surface);
}

.admin-user-table-head {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(120px, 0.75fr) minmax(120px, 0.8fr) minmax(84px, auto);
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  border-bottom: 1px solid var(--line);
  background: var(--chip-bg);
}

.admin-user-table-head.has-region {
  grid-template-columns: minmax(220px, 1.25fr) minmax(150px, 0.85fr) minmax(120px, 0.7fr) minmax(120px, 0.75fr) minmax(84px, auto);
}

.admin-user-table-head span:last-child {
  justify-self: end;
}

.admin-user-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(120px, 0.75fr) minmax(120px, 0.8fr) minmax(84px, auto);
  align-items: center;
  gap: var(--space-md);
  min-height: 50px;
  padding: 8px var(--space-md);
  border-bottom: 1px solid var(--line);
}

.admin-user-row.has-region {
  grid-template-columns: minmax(220px, 1.25fr) minmax(150px, 0.85fr) minmax(120px, 0.7fr) minmax(120px, 0.75fr) minmax(84px, auto);
}

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

.admin-user-main,
.admin-user-main strong {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
}

.admin-user-main {
  flex-wrap: wrap;
}

.admin-user-main strong,
.admin-user-main span,
.admin-user-region,
.admin-user-joined,
.admin-user-status span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-region,
.admin-user-joined {
  color: var(--muted);
}

.admin-user-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
  margin: 0;
  color: var(--muted);
}

.admin-user-normal-status {
  color: var(--muted);
}

.admin-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--chip-bg);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.admin-user-action-menu {
  justify-self: end;
  align-self: center;
  transform: translateY(2px);
}

.admin-user-action-menu.open {
  position: relative;
  z-index: 110;
}

.admin-user-action-menu .post-action-popover {
  z-index: 111;
}

@media (max-width: 760px) {
  .admin-user-table-head {
    display: none;
  }

  .admin-user-row {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .admin-user-action-menu {
    justify-self: start;
  }
}

.admin-category-swatch {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-sm);
  flex: 0 0 12px;
}

.admin-category-color-field small {
  color: var(--muted);
  font-size: var(--text-sm);
}

.admin-category-color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-category-color-option {
  position: relative;
  width: 34px;
  height: 34px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-category-color-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.admin-category-color-dot {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background: var(--category-picker-color);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.admin-category-color-option input:checked + .admin-category-color-dot {
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--category-picker-color);
}

.permission-card-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.permission-card-title.with-red-bar::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: var(--radius);
  background: var(--brand-red);
  flex: 0 0 3px;
}

.permission-support-button {
  width: fit-content;
  min-width: 88px;
  min-height: 34px;
  margin-top: 2px;
  margin-bottom: var(--space-xs);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: var(--surface);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 900;
  line-height: var(--line-height-tight);
  text-align: center;
}

.permission-support-icon {
  width: 17px;
  height: 17px;
  display: block;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.permission-support-button:active {
  filter: brightness(0.94);
}

@media (prefers-color-scheme: dark) {
  .permission-support-button {
    color: #fff;
  }
}

.permission-contact-actions {
  margin-top: var(--space-sm);
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
}

.permission-contact-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: var(--contact-row-compact-h);
  min-width: 0;
  color: var(--ink);
}

.permission-contact-row .contact-action {
  width: var(--icon-lg);
  height: var(--icon-lg);
  min-height: var(--icon-lg);
  border: 0;
  border-radius: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 var(--icon-lg);
  padding: 0;
}

.permission-contact-row .contact-action .contact-icon {
  width: var(--icon-md);
  height: var(--icon-md);
  margin: 0;
}

.permission-contact-value {
  min-width: 0;
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
  min-height: var(--contact-row-compact-h);
  font-size: var(--text-md);
  line-height: var(--line-height-tight);
}

.my-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  margin: 12px 0 6px;
}

.my-tab {
  min-width: 0;
  width: 100%;
  min-height: var(--tap-target);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #4a4f58;
  font-size: 12px;
  font-weight: 800;
  padding: 0 6px;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.my-tab span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-tab.active {
  color: #fff;
  border-color: var(--brand-red);
  background: var(--brand-red);
}

.my-tab-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.my-intro-panel .post-body {
  white-space: pre-wrap;
  margin: 0;
}

.my-intro-panel {
  margin-bottom: 12px;
}

.my-owned-row .feed-category-pill,
.my-owned-row .region-pill {
  min-height: 22px;
  padding: 0 7px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  align-items: center;
}

.my-feed {
  gap: 0;
}

.my-owned-row {
  display: grid;
  gap: var(--space-sm);
  padding: var(--space-md) var(--gallery-feed-x);
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.my-owned-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
}

.my-owned-status {
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: var(--font-semibold);
  line-height: var(--line-height-tight);
}

.my-owned-status.ended {
  color: var(--muted);
}

.my-owned-menu {
  transform: none;
  margin-top: calc(-1 * var(--space-sm));
  margin-right: 0;
}

.my-owned-menu .post-action-popover {
  min-width: 132px;
}

.my-owned-delete-action {
  color: var(--brand-red) !important;
}

.my-owned-row-main {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--space-md);
  align-items: stretch;
}

.my-owned-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  aspect-ratio: var(--ratio-square);
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--category-chip-bg);
  color: var(--muted);
  font-size: var(--text-sm);
}

.my-owned-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.my-owned-content {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: var(--space-xs);
}

.my-owned-title {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  line-height: var(--line-height-tight);
}

.my-owned-meta {
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: var(--space-xs);
  min-width: 0;
  margin-top: 0;
  overflow: hidden;
}

.my-owned-meta .post-time {
  flex: 0 0 auto;
}

.my-owned-bottom-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
  align-self: end;
  min-width: 0;
}

.my-owned-info-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: var(--space-xs);
  min-width: 0;
  margin-top: 0;
}

.my-owned-price {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-lg);
}

.my-owned-price-spacer {
  flex: 0 1 auto;
  min-width: 0;
}

.my-owned-favorites {
  color: var(--muted);
}

.my-owned-favorites .favorite-icon {
  width: 16px;
  height: 16px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(6px, env(safe-area-inset-bottom, 0px));
  z-index: 30;
  width: min(calc(100% - 16px), 464px);
  --nav-active-index: 0;
  --nav-active-left: 10%;
  --nav-bubble-width: 68px;
  container-type: inline-size;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 0;
  min-height: 50px;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 27px;
  background: rgba(8, 12, 18, 0.18);
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.13),
    inset 1px 0 rgba(74, 221, 255, 0.22),
    inset -1px 0 rgba(255, 125, 205, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(86, 110, 142, 0.1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.bottom-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(ellipse 24% 170% at 0% 52%, rgba(72, 224, 255, 0.22), transparent 72%),
    radial-gradient(ellipse 24% 170% at 100% 48%, rgba(255, 116, 205, 0.17), transparent 72%),
    linear-gradient(105deg, transparent 8%, rgba(112, 174, 255, 0.09) 30%, transparent 48%, rgba(255, 218, 153, 0.09) 70%, transparent 92%),
    radial-gradient(ellipse at center, transparent 0 42%, rgba(210, 235, 255, 0.04) 64%, rgba(255, 255, 255, 0.2) 100%);
  backdrop-filter: blur(0.75px) saturate(1.55) contrast(1.09) brightness(1.04);
  backdrop-filter: url("#civilya-nav-edge-distortion") blur(0.75px) saturate(1.55) contrast(1.09) brightness(1.04);
  -webkit-backdrop-filter: blur(0.75px) saturate(1.55) contrast(1.09) brightness(1.04);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 0 58%, rgba(0, 0, 0, 0.28) 70%, rgba(0, 0, 0, 0.78) 88%, #000 100%);
  mask-image: radial-gradient(ellipse at center, transparent 0 58%, rgba(0, 0, 0, 0.28) 70%, rgba(0, 0, 0, 0.78) 88%, #000 100%);
  filter: url("#civilya-nav-edge-distortion");
}

.bottom-nav.bottom-nav-hidden {
  transform: translate(-50%, calc(100% + env(safe-area-inset-bottom, 0px)));
  opacity: 0;
  pointer-events: none;
}

.app[data-view="region"] {
  padding-bottom: calc(var(--bottombar-h) + env(safe-area-inset-bottom, 0px) + 16px);
}

.app[data-view="region"] .bottom-nav {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: max(6px, env(safe-area-inset-bottom, 0px));
  z-index: calc(var(--z-popover) + 7);
  width: min(calc(100% - 16px), 464px);
  transform: translateX(-50%);
}

.app[data-view="region"] .bottom-nav.bottom-nav-hidden {
  transform: translate(-50%, calc(100% + env(safe-area-inset-bottom, 0px)));
}

.nav-active-bubble {
  position: absolute;
  left: var(--nav-active-left);
  top: 4px;
  z-index: 0;
  width: var(--nav-bubble-width);
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: linear-gradient(132deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.025) 52%, rgba(152, 205, 255, 0.07));
  box-shadow:
    0 5px 14px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.44);
  backdrop-filter: blur(8px) saturate(1.75) contrast(1.06) brightness(1.06);
  -webkit-backdrop-filter: blur(8px) saturate(1.75) contrast(1.06) brightness(1.06);
  pointer-events: none;
  transform: translateX(-50%);
  transition: left 360ms cubic-bezier(0.18, 0.92, 0.2, 1), background-color 180ms ease;
  will-change: left;
}

body.dark .nav-active-bubble {
  border-color: rgba(255, 255, 255, 0.24);
  background: linear-gradient(132deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.018) 52%, rgba(96, 162, 225, 0.06));
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px) saturate(1.65) contrast(1.06) brightness(0.96);
  -webkit-backdrop-filter: blur(8px) saturate(1.65) contrast(1.06) brightness(0.96);
}

@media (prefers-color-scheme: dark) {
  .nav-active-bubble {
    border-color: rgba(255, 255, 255, 0.24);
    background: linear-gradient(132deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.018) 52%, rgba(96, 162, 225, 0.06));
    box-shadow:
      0 6px 16px rgba(0, 0, 0, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px) saturate(1.65) contrast(1.06) brightness(0.96);
    -webkit-backdrop-filter: blur(8px) saturate(1.65) contrast(1.06) brightness(0.96);
  }
}

.bottom-nav.nav-bubble-moving .nav-active-bubble,
.bottom-nav.nav-bubble-dragging .nav-active-bubble {
  z-index: 2;
  top: 4px;
  width: var(--nav-bubble-width);
  height: 42px;
  border-color: rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background:
    radial-gradient(circle at 16% 42%, rgba(72, 226, 255, 0.24), transparent 34%),
    radial-gradient(circle at 86% 58%, rgba(255, 112, 202, 0.2), transparent 34%),
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.025) 0 52%, rgba(255, 255, 255, 0.08) 72%, rgba(210, 232, 255, 0.22) 100%);
  box-shadow:
    0 6px 16px rgba(10, 18, 31, 0.12),
    inset 1px 0 rgba(72, 226, 255, 0.42),
    inset -1px 0 rgba(255, 112, 202, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -1px 0 rgba(118, 166, 255, 0.28);
  backdrop-filter: blur(0.8px) saturate(2.25) contrast(1.12) brightness(1.08);
  -webkit-backdrop-filter: blur(0.8px) saturate(2.25) contrast(1.12) brightness(1.08);
  filter: url("#civilya-drop-distortion");
}

@media (prefers-color-scheme: dark) {
  .bottom-nav.nav-bubble-moving .nav-active-bubble,
  .bottom-nav.nav-bubble-dragging .nav-active-bubble {
    background:
      radial-gradient(circle at 16% 42%, rgba(72, 226, 255, 0.18), transparent 34%),
      radial-gradient(circle at 86% 58%, rgba(255, 112, 202, 0.15), transparent 34%),
      radial-gradient(ellipse at center, rgba(255, 255, 255, 0.018) 0 52%, rgba(255, 255, 255, 0.05) 72%, rgba(154, 196, 236, 0.18) 100%);
  }
}

.bottom-nav.nav-bubble-dragging .nav-active-bubble {
  background: transparent;
  box-shadow:
    0 5px 14px rgba(10, 18, 31, 0.07),
    inset 1px 0 rgba(72, 226, 255, 0.26),
    inset -1px 0 rgba(255, 112, 202, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.54),
    inset 0 -1px 0 rgba(118, 166, 255, 0.2);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  filter: none;
}

.bottom-nav.nav-bubble-moving .nav-active-bubble {
  background: transparent;
  backdrop-filter: url("#civilya-drop-distortion") blur(0.35px) saturate(1.7) contrast(1.1) brightness(1.04);
  -webkit-backdrop-filter: blur(0.35px) saturate(1.7) contrast(1.1) brightness(1.04);
  filter: none;
}

.nav-lens-clone,
.nav-lens-edge-clone,
.nav-lens-rim {
  display: none;
}

@supports (width: 1cqw) {
  .nav-lens-clone,
  .nav-lens-edge-clone {
    position: absolute;
    top: -4px;
    left: calc(50% - var(--nav-lens-center-x));
    width: 100cqw;
    height: 50px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    color: var(--ink);
    opacity: 0;
    transform-origin: var(--nav-lens-center-x) 50%;
    transition: opacity 90ms ease;
  }

  .nav-lens-clone {
    transform: scale(1.2);
    filter: contrast(1.03) saturate(1.03);
  }

  .nav-lens-edge-clone {
    transform: scale(1.28);
    filter: url("#civilya-drop-distortion");
    -webkit-mask-image: radial-gradient(ellipse 34px 21px at var(--nav-lens-center-x) 50%, transparent 0 58%, rgba(0, 0, 0, 0.34) 68%, #000 78% 100%);
    mask-image: radial-gradient(ellipse 34px 21px at var(--nav-lens-center-x) 50%, transparent 0 58%, rgba(0, 0, 0, 0.34) 68%, #000 78% 100%);
  }

  .bottom-nav.nav-bubble-dragging .nav-lens-clone {
    display: grid;
    opacity: 1;
  }

  .bottom-nav.nav-bubble-dragging .nav-lens-edge-clone {
    display: grid;
    opacity: 0.96;
  }

  .nav-lens-clone-item {
    justify-self: center;
    width: 58px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
  }

  .nav-lens-clone-item.active {
    color: var(--brand-red);
  }

  .nav-lens-clone-item.primary {
    height: 42px;
    border-radius: 14px;
    color: #fff;
    background: var(--brand-red);
  }
}

.nav-lens-rim {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background:
    conic-gradient(from 206deg at 50% 50%, rgba(71, 223, 255, 0.78), rgba(112, 99, 255, 0.64), rgba(255, 91, 188, 0.78), rgba(255, 218, 112, 0.72), rgba(91, 255, 210, 0.68), rgba(71, 223, 255, 0.78)),
    radial-gradient(ellipse at center, transparent 0 62%, rgba(255, 255, 255, 0.72) 78%, rgba(255, 255, 255, 0.2) 100%);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 0 64%, rgba(0, 0, 0, 0.26) 70%, #000 80% 100%);
  mask-image: radial-gradient(ellipse at center, transparent 0 64%, rgba(0, 0, 0, 0.26) 70%, #000 80% 100%);
  filter: url("#civilya-drop-distortion");
}

.bottom-nav.nav-bubble-moving .nav-lens-rim,
.bottom-nav.nav-bubble-dragging .nav-lens-rim {
  display: block;
  opacity: 0.88;
}

.bottom-nav.nav-bubble-moving .nav-active-bubble {
  animation: nav-active-bubble-flow 420ms cubic-bezier(0.16, 0.92, 0.18, 1);
}

.bottom-nav.nav-bubble-dragging .nav-active-bubble {
  top: 4px;
  width: var(--nav-bubble-width);
  height: 42px;
  border-radius: 999px;
  transition: left 80ms linear, border-color 140ms ease;
  transform: translateX(-50%);
}

.nav-button {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: 58px;
  min-height: 46px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.nav-button.active {
  color: var(--brand-red);
  background: transparent;
}

.nav-button-press {
  animation: nav-button-press 180ms ease-out;
}

@keyframes nav-active-bubble-flow {
  0% {
    top: 4px;
    width: 68px;
    height: 42px;
    border-radius: 999px;
    opacity: 0.82;
    transform: translateX(-50%);
  }
  52% {
    top: 4px;
    width: 68px;
    height: 42px;
    border-radius: 58% 42% 56% 44% / 54% 48% 52% 46%;
    opacity: 1;
    transform: translateX(-50%);
  }
  100% {
    top: 4px;
    width: 68px;
    height: 42px;
    border-radius: 999px;
    opacity: 1;
    transform: translateX(-50%);
  }
}

@keyframes nav-button-press {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(0.88);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-active-bubble,
  .bottom-nav.nav-bubble-moving .nav-active-bubble,
  .nav-button-press {
    animation: none;
  }

  .nav-active-bubble {
    transition: left 120ms ease-out;
  }
}

.nav-button-primary {
  width: 58px;
  min-height: 42px;
  margin: 2px 0;
  border-radius: 14px;
  color: #fff;
  background: var(--brand-red);
  box-shadow: 0 10px 24px rgba(223, 63, 37, 0.22);
}

.nav-button-primary.active {
  color: #fff;
  background: var(--brand-red);
  box-shadow: 0 10px 24px rgba(223, 63, 37, 0.26);
}

.nav-icon {
  display: block;
  width: 31.42125px;
  height: 31.42125px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.nav-profile-avatar {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 900;
}

.nav-profile-avatar.active {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 2px rgba(223, 63, 37, 0.16);
}

.nav-icon-solid {
  fill: currentColor;
  stroke: none;
}

.nav-home-outline {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-icon-cutout {
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.nav-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  font-size: 11px;
}

.nav-unread-badge {
  position: absolute;
  top: 4px;
  right: 22%;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand-red);
  color: #fff;
  border: 2px solid var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.nav-button-primary .nav-icon {
  width: 31.42125px;
  height: 31.42125px;
  stroke-width: 2.25;
}

.nav-button-primary .nav-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.floating-back {
  position: fixed;
  right: max(16px, calc((100vw - 480px) / 2 + 16px));
  bottom: calc(156px + env(safe-area-inset-bottom));
  z-index: calc(var(--z-popover) + 4);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  color: #fff;
  background: rgba(223, 63, 37, 0.2);
  appearance: none;
  -webkit-appearance: none;
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.16),
    inset 1px 0 rgba(72, 226, 255, 0.4),
    inset -1px 0 rgba(255, 112, 202, 0.3),
    inset 0 1px rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(0.5px) saturate(1.55) contrast(1.08) brightness(1.04);
  -webkit-backdrop-filter: blur(0.5px) saturate(1.55) contrast(1.08) brightness(1.04);
  transition: transform 140ms ease, background-color 140ms ease;
}

.floating-back::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 34%, rgba(72, 226, 255, 0.3), transparent 38%),
    radial-gradient(circle at 84% 68%, rgba(255, 112, 202, 0.24), transparent 40%),
    radial-gradient(circle at center, transparent 0 50%, rgba(255, 255, 255, 0.2) 82%, rgba(255, 255, 255, 0.42) 100%);
  backdrop-filter: url("#civilya-drop-distortion") blur(0.35px) saturate(1.7) contrast(1.1);
  -webkit-backdrop-filter: blur(0.35px) saturate(1.7) contrast(1.1);
  -webkit-mask-image: radial-gradient(circle at center, transparent 0 62%, rgba(0, 0, 0, 0.28) 72%, #000 84% 100%);
  mask-image: radial-gradient(circle at center, transparent 0 62%, rgba(0, 0, 0, 0.28) 72%, #000 84% 100%);
  filter: url("#civilya-drop-distortion");
}

.floating-back:active {
  transform: scale(0.9, 1.1);
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.18),
    inset 2px 0 rgba(72, 226, 255, 0.58),
    inset -2px 0 rgba(255, 112, 202, 0.46),
    inset 0 1px rgba(255, 255, 255, 0.7);
}

.floating-back:active::before {
  opacity: 1;
  filter: url("#civilya-drop-distortion") saturate(1.35) brightness(1.08);
}

.floating-back-icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.image-lightbox + .floating-back,
.admin-view ~ .floating-back {
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 60;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 76px;
  z-index: 40;
  width: min(calc(100% - 32px), 448px);
  transform: translateX(-50%);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: #fff;
  background: #22252a;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.version-update-banner {
  position: fixed;
  right: 16px;
  bottom: calc(86px + env(safe-area-inset-bottom));
  left: 16px;
  z-index: calc(var(--z-popover) + 8);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(calc(100% - 32px), 448px);
  margin: 0 auto;
  border: 1px solid color-mix(in srgb, var(--brand) 48%, var(--line));
  border-radius: var(--radius-md);
  padding: 12px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.version-update-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.version-update-copy strong {
  color: var(--ink);
  font-size: var(--text-md);
  line-height: 1.25;
}

.version-update-copy span {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.version-update-button {
  min-width: 96px;
  min-height: 44px;
  padding-right: 12px;
  padding-left: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f4f7;
    --muted: #a9b0bb;
    --line: #303640;
    --page: #0f1115;
    --surface: #171b21;
    --admin-table-head: #252b34;
    --soft-red: rgba(223, 63, 37, 0.16);
    --category-chip-bg: #252b34;
    --category-chip-fg: #c7ccd5;
    --image-placeholder: #252b34;
    --popup-glass-bg: rgba(23, 27, 33, 0.68);
    --popup-glass-row-bg: rgba(255, 255, 255, 0.055);
    --popup-glass-border: rgba(255, 255, 255, 0.16);
    --popup-glass-shadow: 0 20px 52px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    --popup-glass-filter: blur(18px) saturate(1.6) contrast(1.04) brightness(0.96);
    --popup-glass-scrim: rgba(0, 0, 0, 0.34);
  }

  body {
    color: var(--ink);
    background: var(--page);
  }

  .status-ended {
    background: #303640;
    color: #f8fafc;
  }

  .category-bubble {
    background: color-mix(in srgb, var(--category-color, var(--brand-red)) 20%, var(--category-chip-bg));
    color: var(--ink);
    border-color: var(--line);
    box-shadow: none;
  }

  .category-bubble.active {
    background: color-mix(in srgb, var(--category-color, var(--brand-red)) 26%, var(--category-chip-bg));
    color: #f8fafc;
    border-color: color-mix(in srgb, var(--category-color, var(--brand-red)) 62%, var(--line));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--category-color, var(--brand-red)) 42%, transparent);
  }

  .category-bubble-label {
    color: var(--ink);
  }

  .category-bubble.active .category-bubble-label {
    color: var(--ink);
  }

  .app {
    background: var(--surface);
  }

  .topbar {
    background: rgba(8, 12, 18, 0.18);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow:
      0 1px 0 rgba(0, 0, 0, 0.18),
      0 8px 24px rgba(0, 0, 0, 0.12),
      inset 1px 0 rgba(72, 216, 255, 0.16),
      inset -1px 0 rgba(241, 104, 202, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }

  .bottom-nav {
    background: rgba(8, 12, 18, 0.18);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
      0 12px 30px rgba(0, 0, 0, 0.24),
      inset 1px 0 rgba(72, 216, 255, 0.18),
      inset -1px 0 rgba(241, 104, 202, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  }

  .topbar::before,
  .bottom-nav::before {
    background:
      radial-gradient(ellipse 28% 160% at 0% 52%, rgba(62, 202, 236, 0.15), transparent 72%),
      radial-gradient(ellipse 28% 160% at 100% 48%, rgba(224, 89, 186, 0.12), transparent 72%),
      linear-gradient(105deg, transparent 8%, rgba(92, 143, 221, 0.07) 30%, transparent 48%, rgba(220, 179, 118, 0.06) 70%, transparent 92%),
      radial-gradient(ellipse at center, transparent 0 42%, rgba(112, 148, 184, 0.035) 64%, rgba(152, 177, 204, 0.15) 100%);
  }

  .floating-back {
    background: rgba(223, 63, 37, 0.22);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .desktop-sidebar,
  .desktop-right-rail {
    background: rgba(23, 27, 33, 0.88);
  }

  .top-region-button,
  .install-app-button,
  .language-picker,
  .language-select,
  .compact-select,
  .period-option span,
  .ai-fill-button,
  .contact-type-wheel,
  .search-box,
  .search-history-chip,
  .post-card,
  .sortable-image-card,
  .image-upload-button,
  .admin-menu-button,
  .admin-menu-drawer,
  .admin-placeholder-panel,
  .icon-action,
  .inline-action,
  .contact-action,
  .region-chip,
  .city-button,
  .segment,
  .metric,
  .admin-shell-header,
  .admin-actions button,
  .icon-remove-button,
  .my-tab,
  .permission-card,
  .owner-password-dialog,
  .owner-password-input,
  .field input,
  .field select,
  .field textarea {
    background-color: #1d222a;
    color: var(--ink);
    border-color: var(--line);
    color-scheme: dark;
  }

  .owner-password-input:focus {
    background-color: #1d222a;
    color: var(--ink);
  }

  .owner-password-input:-webkit-autofill,
  .owner-password-input:-webkit-autofill:hover,
  .owner-password-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--ink);
    box-shadow: 0 0 0 1000px #1d222a inset;
    caret-color: var(--ink);
  }

  .post-card.pinned-card,
  .feed .feed-post-card.pinned-card,
  .edit-panel,
  .admin-toolbar,
  .empty-state,
  .danger-button {
    background: #211d1d;
  }

  .install-app-button {
    color: #ff6b55;
  }

  .top-region-button,
  .topbar .language-picker,
  .install-app-button {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow:
      0 6px 16px rgba(0, 0, 0, 0.2),
      inset 1px 0 rgba(72, 216, 255, 0.18),
      inset -1px 0 rgba(241, 104, 202, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px) saturate(1.75) contrast(1.04);
    -webkit-backdrop-filter: blur(8px) saturate(1.75) contrast(1.04);
  }

  .install-help-backdrop {
    background: rgba(0, 0, 0, 0.46);
  }

  .install-help-panel {
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    border-color: var(--line);
  }

  .install-help-close {
    background: #1d222a;
    color: var(--ink);
    border-color: var(--line);
    color-scheme: dark;
  }

  .admin-traffic-chart {
    background: #1d222a;
    border-color: var(--line);
  }

  .admin-traffic-chart-period {
    background-color: #171b21;
    color: var(--ink);
    border-color: var(--line);
    color-scheme: dark;
  }

  .admin-traffic-chart-svg {
    background: linear-gradient(180deg, #171b21 0%, #11151b 100%);
    border-color: #303640;
  }

  .admin-traffic-chart-axis-line {
    stroke: #3b4350;
  }

  .admin-traffic-chart-grid-line {
    stroke: #303640;
  }

  .admin-traffic-chart-scale-label {
    fill: #a9b0bb;
  }

  .admin-traffic-chart-line {
    stroke: #ff6b55;
  }

  .admin-traffic-chart-point {
    fill: #ff6b55;
    stroke: #171b21;
  }

  .admin-ai-daily-chart {
    background: #1d222a;
    border-color: var(--line);
  }

  .admin-ai-line-chart-svg {
    background: linear-gradient(180deg, #171b21 0%, #11151b 100%);
    border-color: #303640;
  }

  .admin-ai-line-chart-axis-line {
    stroke: #3b4350;
  }

  .admin-ai-line-chart-line {
    stroke: #ff6b55;
  }

  .admin-ai-line-chart-point {
    fill: #ff6b55;
    stroke: #171b21;
  }

  .post-body,
  .post-body-button,
  .check-row,
  .field label {
    color: #d3d7df;
  }

  .pill,
  .status-pill,
  .ghost-button,
  .contact-action.disabled {
    background: #252b34;
    color: #c7ccd5;
  }

  .city-button.active {
    background: rgba(223, 63, 37, 0.18);
  }

  .share-button,
  .favorite-button,
  .inline-action {
    color: #c7ccd5;
  }

  .favorite-button.active {
    color: var(--brand-red);
    border-color: transparent;
    background: transparent;
  }

  .inline-action[data-action="report-post"] {
    color: #f08a79;
    border-color: rgba(240, 138, 121, 0.38);
  }

  .translate-button,
  .feed-translate-button {
    color: var(--brand-blue);
    border-color: rgba(74, 163, 223, 0.42);
  }

  .contact-row-action {
    background-color: #1d222a;
    color: var(--brand-red);
    border-color: var(--line);
  }

  .category-wheel-shell::before {
    background: linear-gradient(90deg, var(--surface), rgba(23, 27, 33, 0));
  }

  .category-wheel-shell::after {
    background: linear-gradient(270deg, var(--surface), rgba(23, 27, 33, 0));
  }

  .admin-support-detail,
  .admin-support-table,
  .admin-support-messages,
  .admin-support-reply-form,
  .admin-support-auto-reply-form {
    color-scheme: dark;
  }

  .admin-toolbar:has([data-action="set-admin-support-filter"]),
  .admin-toolbar:has([data-action="set-admin-support-tab"]),
  .admin-support-messages {
    background: #171b21;
    border-color: var(--line);
  }

  .admin-filter-label,
  .admin-support-message-cell {
    color: var(--ink);
  }

  .admin-filter-label select,
  .admin-support-reply-form textarea,
  .admin-support-auto-reply-form textarea {
    background-color: #1d222a;
    color: var(--ink);
    border-color: var(--line);
    color-scheme: dark;
  }

  .admin-filter-label select:focus,
  .admin-support-reply-form textarea:focus,
  .admin-support-auto-reply-form textarea:focus {
    outline: 2px solid rgba(223, 63, 37, 0.45);
    outline-offset: 1px;
  }

  .admin-support-row.active {
    background: rgba(223, 63, 37, 0.08);
  }

  .admin-support-messages .chat-message.incoming {
    background: #252b34;
    color: var(--ink);
  }

}

.translate-row,
.feed-translate-row {
  display: flex;
  justify-content: flex-start;
  margin: 6px 0 10px;
}

.feed-translate-row {
  margin: 4px 0 0;
}

.feed-title-meta .feed-translate-row {
  display: inline-flex;
  align-items: center;
  margin: 0;
  line-height: inherit;
  vertical-align: baseline;
}

.feed-title-meta .feed-translate-button {
  font-size: inherit;
  line-height: inherit;
}

.translate-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-blue);
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.15s;
}

.translate-button:hover {
  opacity: 0.72;
}

.translate-button--dim {
  color: var(--muted);
}

.translate-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.region-search-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 var(--gallery-feed-x) 12px;
}

.region-current-button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-weight: var(--font-semibold);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.region-current-button:disabled {
  opacity: 0.64;
}

.region-search-title {
  margin-bottom: 8px;
}

.region-block-flat {
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.region-block-flat:first-child {
  border-top: 1px solid var(--line);
}

.region-block-flat h3 {
  padding: 0 var(--gallery-feed-x);
  margin-bottom: 6px;
  color: var(--muted);
}

.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 var(--gallery-feed-x);
}

.city-row,
body.dark .city-row {
  width: auto;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.city-row[hidden],
.region-block-flat[hidden] {
  display: none !important;
}

.city-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.city-row.active,
body.dark .city-row.active {
  background: transparent;
  color: var(--brand-red);
}

.category-wheel-shell {
  padding-top: 13px;
}

.category-wheel-marker {
  position: absolute;
  top: 2px;
  left: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--brand-red);
  opacity: 0.96;
  pointer-events: none;
}

.body-field textarea {
  min-height: 174px;
}

.detail-price-row {
  margin: 2px 0 0;
  gap: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-price {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.detail-body {
  margin-top: 10px !important;
}

.detail-card .detail-body {
  white-space: normal;
}

.detail-body-paragraph {
  margin: 0 0 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.detail-body-paragraph:last-child {
  margin-bottom: 0;
}

.detail-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.detail-contact-side {
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-sm);
}

.detail-contact-side .contact-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-sm);
  margin-top: 0;
}

.detail-contact-side .contact-action {
  flex: 0 0 var(--tap-target);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.detail-contact-side .contact-action .contact-icon {
  width: var(--icon-lg);
  height: var(--icon-lg);
  margin: 0;
}

.detail-local-time {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-target);
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  line-height: var(--line-height-tight);
  white-space: nowrap;
}

.detail-section-label {
  display: none;
}

.detail-stat-side {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.detail-stat-side .post-actions {
  display: inline-flex;
}

.detail-stat-side .stat-item,
.detail-stat-side .stat-count {
  font-size: 14.3px;
  font-weight: 400;
  line-height: 1.35;
}

.detail-edit-actions {
  margin-top: 14px;
}

.my-main {
  padding-bottom: var(--page-bottom-compact);
}

.my-footer-links {
  margin: 20px var(--gallery-feed-x) 0;
  text-align: center;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.my-footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.my-footer-links a:active {
  color: var(--accent);
}

.privacy-main {
  padding: 16px;
  padding-bottom: calc(var(--page-bottom-compact) + 18px);
}

.privacy-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 18px 16px;
}

.privacy-panel h1 {
  margin: 0 0 14px;
  font-size: var(--text-xl);
  line-height: 1.25;
}

.privacy-policy-text {
  margin: 0;
  color: var(--ink);
  user-select: none;
  -webkit-user-select: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: var(--text-sm);
  line-height: 1.72;
}

.cookie-consent {
  position: fixed;
  right: 16px;
  bottom: calc(86px + env(safe-area-inset-bottom));
  left: 16px;
  z-index: calc(var(--z-popover) + 3);
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  padding: 14px;
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.cookie-consent-copy h2 {
  margin: 0 0 8px;
  font-size: var(--text-md);
  line-height: 1.3;
}

.cookie-consent-copy p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.cookie-consent-copy a {
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: 800;
  text-decoration: none;
  pointer-events: auto;
}

.cookie-consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.cookie-consent-actions button {
  min-height: 44px;
  padding-right: 10px;
  padding-left: 10px;
  pointer-events: auto;
}

.owner-edit-main > .admin-actions {
  margin-right: var(--gallery-feed-x);
  margin-left: var(--gallery-feed-x);
}

.related-posts {
  padding-bottom: 16px;
}

.related-posts > .section-title {
  margin-right: var(--gallery-feed-x);
  margin-left: var(--gallery-feed-x);
}

.detail-ad-slot {
  width: min(100%, 720px);
  box-sizing: border-box;
  margin: 14px auto 0;
  padding: 0 var(--gallery-feed-x);
  background: transparent;
}

.detail-ad-slot .adsbygoogle {
  display: block;
  width: 100%;
  min-height: 120px;
  background: transparent !important;
}

.detail-ad-slot iframe {
  background: transparent !important;
}

ins.adsbygoogle[data-ad-status="unfilled"],
ins.adsbygoogle[data-ad-status="unfill-optimized"] {
  display: none !important;
  min-height: 0 !important;
  height: 0 !important;
}

.detail-ad-slot-inline {
  width: 100%;
  margin: 12px 0;
  padding: 0;
  max-height: 40px;
  overflow: hidden;
}

.detail-ad-slot-inline .adsbygoogle {
  min-height: 40px;
  height: 40px !important;
  max-height: 40px !important;
  overflow: hidden;
}

.detail-ad-slot-inline iframe {
  min-height: 0 !important;
  height: 40px !important;
  max-height: 40px !important;
}

.detail-ad-slot-bottom {
  padding-bottom: calc(108px + env(safe-area-inset-bottom));
}

.related-feed {
  margin-top: 0;
}

.detail-card .post-top {
  align-items: flex-start;
  gap: 12px;
  margin: 8px 0 4px;
}

.detail-info-row {
  margin: 2px 0 4px;
  font-size: var(--muted-text-sm);
  line-height: 1.35;
  align-items: center;
}

.detail-card .detail-info-specs {
  margin: 2px 0 0;
  font-size: var(--muted-text-sm);
  line-height: 1.35;
}

.detail-info-row .post-time,
.detail-info-row .detail-address {
  font-size: inherit;
  line-height: 1.35;
}

.detail-category-pill {
  min-height: 24px;
  padding: 3px 7px;
  border: 0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.detail-inline-translate {
  font-size: 13px;
  line-height: 1.35;
}

.detail-price-main {
  min-width: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.detail-owner-edit {
  flex: 0 0 auto;
}

.contact-action[data-contact-type="phone"],
.contact-action[data-contact-type="whatsapp"] {
  color: #25d366;
}

.contact-action[data-contact-type="wechat"] {
  color: #07c160;
}

.contact-action[data-contact-type="telegram"] {
  color: #229ed9;
}

.contact-action[data-contact-type="email"] {
  color: #ea4335;
}

.permission-contact-row .contact-action[data-contact-type] {
  color: var(--muted);
}

.permission-contact-row .contact-action[data-contact-type="phone"],
.permission-contact-row .contact-action[data-contact-type="whatsapp"] {
  color: #25d366;
}

.permission-contact-row .contact-action[data-contact-type="wechat"] {
  color: #07c160;
}

.permission-contact-row .contact-action[data-contact-type="telegram"] {
  color: #229ed9;
}

.permission-contact-row .contact-action[data-contact-type="email"] {
  color: #ea4335;
}

.permission-contact-row .contact-action:active {
  color: var(--brand-red);
}

.related-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  color: var(--muted);
}

.related-title::before {
  content: "";
  width: 3px;
  height: 18px;
  border-radius: var(--radius);
  background: var(--brand-red);
  flex: 0 0 3px;
}

.compact-form > .primary-button {
  margin-top: 12px;
}

.owner-action-button.publishing,
.ghost-button.publishing,
.danger-button.publishing {
  opacity: 0.72;
  cursor: not-allowed;
}

.owner-action-button.publishing::after,
.ghost-button.publishing::after,
.danger-button.publishing::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
  vertical-align: middle;
}

.owner-password-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.owner-password-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 15, 20, 0.38);
}

.owner-password-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(10, 14, 20, 0.28);
}

.owner-password-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--ink);
  background: var(--surface);
}

.owner-password-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.owner-password-actions .primary-button,
.owner-password-actions .quiet-button {
  min-height: 38px;
}

@media (max-width: 640px) {
  .lightbox-counter {
    bottom: calc(118px + env(safe-area-inset-bottom));
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar {
    background-color: rgba(247, 249, 252, 0.94);
  }

  .top-region-button,
  .language-picker,
  .install-app-button {
    background: rgba(255, 255, 255, 0.82);
  }

  .bottom-nav {
    background-color: rgba(247, 249, 252, 0.94);
  }

  .nav-active-bubble {
    background:
      radial-gradient(ellipse 74% 44% at 50% -2%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.28) 48%, transparent 74%),
      linear-gradient(132deg, rgba(255, 255, 255, 0.76), rgba(220, 233, 247, 0.42));
  }

  body.dark .bottom-nav {
    background-color: rgba(23, 27, 33, 0.94);
  }

  body.dark .topbar,
  body.dark .top-region-button,
  body.dark .language-picker,
  body.dark .install-app-button {
    background-color: rgba(23, 27, 33, 0.94);
  }

  body.dark .nav-active-bubble {
    background:
      radial-gradient(ellipse 74% 44% at 50% -2%, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.08) 48%, transparent 74%),
      linear-gradient(132deg, rgba(67, 76, 90, 0.82), rgba(30, 36, 45, 0.68));
  }
}

@media (prefers-color-scheme: dark) {
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .topbar,
    .top-region-button,
    .language-picker,
    .install-app-button {
      background-color: rgba(23, 27, 33, 0.94);
    }

    .bottom-nav {
      background-color: rgba(23, 27, 33, 0.94);
    }

    .nav-active-bubble {
      background:
        radial-gradient(ellipse 74% 44% at 50% -2%, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.08) 48%, transparent 74%),
        linear-gradient(132deg, rgba(67, 76, 90, 0.82), rgba(30, 36, 45, 0.68));
    }
  }
}

.more-button,
.more-button:hover,
.more-button:focus,
.more-button:active {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.price,
.detail-price,
.detail-price-main {
  font-weight: 800 !important;
}

.announcement-ticker {
  margin: -6px var(--gallery-feed-x) 6px;
  padding: 2px 0;
  border: 1px solid rgba(223, 63, 37, 0.28);
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, rgba(223, 63, 37, 0.14), rgba(249, 204, 57, 0.16));
  color: var(--ink);
  overflow: hidden;
}

.announcement-marquee {
  display: flex;
  width: max-content;
  min-height: 28px;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
  animation: announcement-marquee 31.4s linear infinite;
}

.announcement-marquee span {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
}

@keyframes announcement-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.local-ad-section {
  padding: 0 var(--gallery-feed-x) var(--space-md);
}

.local-ad-strip {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.local-ad-strip::-webkit-scrollbar {
  display: none;
}

.local-ad-card {
  flex: 0 0 100%;
  min-height: var(--tap-target);
  border: 0;
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  aspect-ratio: var(--ratio-local-ad);
}

.local-ad-card img {
  width: 100%;
  aspect-ratio: var(--ratio-local-ad);
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.home-ad-strip-section {
  padding: 0 var(--gallery-feed-x) 10px;
}

.home-ad-strip-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(223, 63, 37, 0.16), var(--surface) 100%);
}

.home-ad-strip .local-ad-card {
  aspect-ratio: var(--home-feature-media-ratio);
  height: auto;
  min-height: 0;
  max-height: none;
  border-radius: 0;
  background: transparent;
}

.home-ad-strip .local-ad-card img {
  aspect-ratio: var(--home-feature-media-ratio);
}

@media (min-width: 900px) {
  .home-ad-strip .local-ad-card {
    aspect-ratio: var(--home-feature-media-ratio);
    height: auto;
    max-height: none;
  }

  .home-ad-strip .local-ad-card img {
    aspect-ratio: var(--home-feature-media-ratio);
  }
}

.detail-related-ad-section {
  padding: 0 var(--gallery-feed-x) var(--space-md);
}

.publisher-related-section {
  padding: 0 var(--gallery-feed-x) var(--space-md);
}

.publisher-related-head {
  width: 100%;
  min-height: var(--tap-target);
  margin-bottom: 10px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}

.publisher-related-head span:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.publisher-related-head strong {
  font-size: var(--text-lg);
  line-height: 1.2;
}

.publisher-related-head small {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
}

.publisher-related-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(142px, calc((100% - 12px) / 2));
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.publisher-related-strip::-webkit-scrollbar {
  display: none;
}

.publisher-related-card {
  min-width: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  display: grid;
  gap: 6px;
  text-align: left;
  scroll-snap-align: start;
}

.publisher-related-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-soft, var(--surface));
  display: flex;
  align-items: center;
  justify-content: center;
}

.publisher-related-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.publisher-related-placeholder {
  width: 100%;
  height: 100%;
  padding: 10px;
  color: #fff;
  background: var(--category-color, var(--brand));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.publisher-related-title,
.publisher-related-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publisher-related-title {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.24;
}

.publisher-related-meta {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
}

.detail-ad-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.detail-ad-strip::-webkit-scrollbar {
  display: none;
}

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

.detail-ad-list-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.detail-ad-list-carousel::-webkit-scrollbar {
  display: none;
}

.detail-ad-list-item {
  width: 100%;
  flex: 0 0 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 12px;
  background: transparent;
  color: var(--ink);
  display: grid;
  grid-template-columns: minmax(96px, 30%) 1fr;
  align-items: center;
  gap: 12px;
  text-align: left;
  scroll-snap-align: start;
}

.detail-ad-list-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
}

.detail-ad-list-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.detail-ad-list-content {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 5px;
  padding-top: 2px;
}

.detail-ad-list-title {
  color: var(--ink);
  font-size: clamp(15px, 4.1vw, 19px);
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-ad-list-meta {
  min-width: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.detail-ad-list-category {
  color: var(--category-color, var(--brand-blue));
  font-weight: 700;
}

.detail-ad-list-price {
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 900;
  line-height: 1.2;
}

.detail-ad-card {
  flex: 0 0 31%;
  min-width: 102px;
  max-width: 150px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  display: grid;
  gap: 6px;
  scroll-snap-align: start;
}

.detail-ad-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
}

.detail-ad-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.detail-ad-badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(18, 20, 26, 0.72);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.detail-ad-title {
  min-height: 2.7em;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-ad-price {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.local-ad-demo-card {
  min-height: var(--local-ad-demo-min-height);
  justify-content: space-between;
  padding: var(--space-md);
  background:
    linear-gradient(135deg, rgba(223, 63, 37, 0.14), rgba(74, 163, 223, 0.16)),
    var(--surface);
}

.local-ad-demo-visual {
  display: grid;
  gap: var(--space-xs);
  min-width: 0;
  flex: 1 1 auto;
}

.local-ad-demo-dot {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--brand-red);
}

.local-ad-demo-line {
  display: block;
  width: 44%;
  height: 9px;
  border-radius: 999px;
  background: rgba(74, 163, 223, 0.35);
}

.local-ad-demo-line.wide {
  width: 72%;
  background: rgba(223, 63, 37, 0.28);
}

.local-ad-demo-text {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: calc(var(--text-md) * 1.2);
  font-weight: var(--font-semibold);
}

.local-ad-admin-list {
  display: grid;
  gap: var(--space-sm);
}

.local-ad-row {
  display: grid;
  grid-template-columns: var(--local-ad-thumb-width) minmax(0, 1fr);
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-sm);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.local-ad-inline-panel {
  grid-column: 1 / -1;
}

.local-ad-thumb {
  width: 100%;
  aspect-ratio: var(--ratio-local-ad);
  border-radius: var(--radius-sm);
  object-fit: cover;
  object-position: center;
  background: var(--page);
}

.local-ad-thumb-empty {
  display: grid;
  place-items: center;
  padding: var(--space-xs);
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  text-align: center;
  font-size: var(--text-sm);
}

.local-ad-post-preview {
  display: grid;
  gap: var(--space-xs);
  padding: var(--space-sm);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
}

.local-ad-post-preview.empty {
  color: var(--muted);
}

.local-ad-post-preview span,
.local-ad-post-preview p,
.local-ad-post-preview a {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--line-height);
}

.local-ad-post-preview a {
  color: var(--accent);
  overflow-wrap: anywhere;
}

.local-ad-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-xs);
  min-width: 0;
}

.local-ad-info > .local-ad-title,
.local-ad-info > .local-ad-meta {
  grid-column: 1;
}

.local-ad-info > .local-ad-actions {
  grid-column: 2;
  grid-row: 1 / span 6;
  align-self: center;
  justify-self: end;
}

.local-ad-title {
  margin: 0;
  font-size: var(--text-md);
  font-weight: var(--font-semibold);
  line-height: var(--line-height);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.local-ad-meta {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--line-height);
}

.local-ad-actions,
.local-ad-form-actions,
.checkbox-line {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.local-ad-actions {
  justify-content: flex-end;
}

.local-ad-form-actions,
.checkbox-line {
  justify-content: flex-start;
}

.checkbox-line {
  min-height: var(--tap-target);
}

.local-ad-actions button,
.local-ad-form-actions button {
  min-height: var(--tap-target);
}

.detail-main {
  padding-bottom: calc(var(--tap-target) + var(--space-lg) + env(safe-area-inset-bottom));
}

.detail-chat-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: var(--tap-target) minmax(0, 1fr);
  gap: var(--space-sm);
  align-items: center;
  padding: 6px var(--gallery-feed-x) calc(6px + env(safe-area-inset-bottom));
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(8, 12, 18, 0.18);
  box-shadow:
    0 -10px 28px rgba(15, 23, 42, 0.1),
    inset 1px 0 rgba(74, 221, 255, 0.2),
    inset -1px 0 rgba(255, 125, 205, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.detail-chat-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 24% 170% at 0% 52%, rgba(72, 224, 255, 0.22), transparent 72%),
    radial-gradient(ellipse 24% 170% at 100% 48%, rgba(255, 116, 205, 0.17), transparent 72%),
    linear-gradient(105deg, transparent 8%, rgba(112, 174, 255, 0.09) 30%, transparent 48%, rgba(255, 218, 153, 0.09) 70%, transparent 92%),
    radial-gradient(ellipse at center, transparent 0 42%, rgba(210, 235, 255, 0.04) 64%, rgba(255, 255, 255, 0.2) 100%);
  backdrop-filter: blur(0.75px) saturate(1.55) contrast(1.09) brightness(1.04);
  backdrop-filter: url("#civilya-nav-edge-distortion") blur(0.75px) saturate(1.55) contrast(1.09) brightness(1.04);
  -webkit-backdrop-filter: blur(0.75px) saturate(1.55) contrast(1.09) brightness(1.04);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 0 58%, rgba(0, 0, 0, 0.28) 70%, rgba(0, 0, 0, 0.78) 88%, #000 100%);
  mask-image: radial-gradient(ellipse at center, transparent 0 58%, rgba(0, 0, 0, 0.28) 70%, rgba(0, 0, 0, 0.78) 88%, #000 100%);
  filter: url("#civilya-nav-edge-distortion");
}

.detail-chat-bar > * {
  position: relative;
  z-index: 1;
}

.detail-follow-button {
  width: var(--tap-target);
  height: var(--tap-target);
  border: 0;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms cubic-bezier(0.2, 0.9, 0.24, 1), color 160ms ease;
}

.detail-follow-button .favorite-icon {
  width: 28px;
  height: 28px;
}

.detail-chat-button {
  min-height: var(--tap-target);
  border: 0;
  border-radius: var(--radius-md);
  background: var(--brand-red);
  color: #fff;
  font-weight: 800;
  font-size: var(--text-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 170ms cubic-bezier(0.2, 0.9, 0.24, 1), box-shadow 170ms ease, filter 170ms ease;
}

.detail-follow-button:active {
  transform: scale(0.88, 1.1);
  color: var(--brand-red);
}

.detail-chat-button:active:not(:disabled),
.app[data-view="publish"] .form-sticky-submit-bar .primary-button:active:not(:disabled) {
  transform: scale(0.98, 1.06);
  filter: saturate(1.16) brightness(1.04);
  box-shadow:
    0 8px 20px rgba(223, 63, 37, 0.24),
    inset 2px 0 rgba(72, 226, 255, 0.22),
    inset -2px 0 rgba(255, 164, 210, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.34);
}

.detail-chat-button:disabled {
  opacity: 0.55;
}

@media (prefers-reduced-motion: reduce) {
  .top-region-button,
  .topbar .language-picker,
  .install-app-button,
  .floating-back,
  .detail-follow-button,
  .detail-chat-button,
  .form-sticky-submit-bar .primary-button {
    transition: none;
  }

  .top-region-button:active,
  .topbar .language-picker:active,
  .install-app-button:active,
  .floating-back:active,
  .detail-follow-button:active,
  .detail-chat-button:active:not(:disabled),
  .app[data-view="publish"] .form-sticky-submit-bar .primary-button:active:not(:disabled) {
    transform: none;
  }
}

.chat-main {
  padding-bottom: calc(var(--bottombar-h) + var(--space-lg) + env(safe-area-inset-bottom));
}

.chat-shell {
  padding: var(--space-md) var(--gallery-feed-x) var(--space-lg);
}

.chat-header,
.chat-thread-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.chat-header {
  justify-content: space-between;
}

.chat-support-entry {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: auto;
}

.chat-support-entry-button {
  width: auto;
  min-width: var(--tap-target);
  height: var(--tap-target);
  min-height: var(--tap-target);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--brand-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.chat-support-entry-button .permission-support-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.chat-support-entry-label {
  max-width: 7em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-support-chooser {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 168px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  padding: 6px;
}

.chat-support-choice {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  text-align: left;
  font-weight: 800;
}

.chat-support-choice:active {
  background: var(--soft);
}

.chat-support-choice .permission-support-icon {
  width: 20px;
  height: 20px;
  color: var(--brand-red);
  flex: 0 0 auto;
}

.chat-header .chat-support-choice span {
  color: var(--text);
}

.chat-header-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.chat-header h1,
.chat-thread-heading h1 {
  margin: 0;
  font-size: var(--text-xl);
  line-height: 1.2;
}

.chat-header span,
.chat-thread-heading span,
.chat-thread-preview,
.chat-thread-time,
.chat-message-time {
  color: var(--muted);
}

.chat-thread-list {
  display: grid;
  gap: var(--space-md);
}

.chat-thread-row-wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--tap-target);
  gap: var(--space-sm);
  align-items: center;
}

.chat-thread-row {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md) 0;
  text-align: left;
}

.chat-thread-row-wrap.is-pinned .chat-thread-row {
  border: 0;
  background: transparent;
}

.chat-thread-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
  color: var(--brand-red);
  font-size: 9px;
  line-height: 1;
  vertical-align: middle;
}

.chat-thread-delete {
  width: var(--tap-target);
  min-width: var(--tap-target);
  height: var(--tap-target);
  min-height: var(--tap-target);
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--brand-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
}

.chat-thread-delete .more-icon {
  width: var(--icon-md);
  height: var(--icon-md);
}

.chat-thread-menu-wrap {
  position: relative;
  display: inline-flex;
  justify-content: center;
}

.chat-thread-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 12;
  min-width: 132px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.chat-thread-menu button {
  width: 100%;
  min-height: var(--tap-target);
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
}

.chat-thread-menu button[data-action="block-chat-thread"],
.chat-thread-menu button[data-action="unblock-chat-thread"] {
  color: var(--brand-red);
  font-weight: 800;
}

.chat-confirm-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: var(--page-x);
}

.chat-confirm-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.42);
}

.chat-confirm-box {
  position: relative;
  z-index: 1;
  width: min(100%, 320px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  padding: var(--space-lg);
  box-shadow: 0 18px 48px rgba(10, 14, 20, 0.28);
}

.chat-confirm-box p {
  margin: 0 0 var(--space-lg);
  font-size: var(--text-lg);
  font-weight: 800;
  line-height: 1.35;
}

.chat-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.chat-confirm-actions button {
  min-height: var(--tap-target);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
}

.chat-confirm-actions .danger {
  border-color: var(--brand-red);
  background: var(--brand-red);
  color: #fff;
}

.chat-thumb {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--category-chip-bg);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.chat-thumb-support {
  background: var(--category-chip-bg);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-thumb-support svg {
  width: 30px;
  height: 30px;
  display: block;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-thumb-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  display: inline-flex;
}

.chat-thread-content,
.chat-thread-side,
.chat-thread-heading {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.chat-thread-title,
.chat-thread-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-thread-title {
  font-weight: 800;
}

.chat-thread-side {
  justify-items: end;
}

.chat-thread-time {
  font-size: 10px;
}

.chat-unread {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--brand-red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 800;
}

.chat-header-unread {
  min-width: 18px;
  height: 18px;
  font-size: 10px;
}

.chat-thumb-unread {
  position: absolute;
  top: -6px;
  left: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
  box-shadow: 0 0 0 2px var(--surface);
}

.chat-thread-shell {
  min-height: calc(100dvh - 43px);
  height: calc(100dvh - 43px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.chat-thread-main {
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.chat-thread-top {
  min-width: 0;
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.chat-thread-top .chat-post-card {
  margin-bottom: 0;
}

.chat-support-push-button {
  justify-self: end;
  align-self: center;
  min-height: 28px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 900;
  line-height: 1;
}

.chat-support-push-button.is-loading {
  opacity: 0.62;
  cursor: progress;
}

.chat-post-card {
  width: 100%;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  text-align: left;
}

.chat-support-post-card {
  grid-template-columns: 58px minmax(0, 1fr) auto;
}

.chat-post-card-with-actions {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.chat-post-open {
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: var(--space-md);
  align-items: center;
  padding: 0;
  text-align: left;
}

.chat-post-thumb-column {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 4px;
}

.chat-post-source-label {
  max-width: 58px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}

.chat-post-contact {
  justify-self: end;
  align-self: start;
}

.chat-post-contact .contact-actions {
  margin-top: 0;
  gap: var(--space-xs);
}

.chat-post-contact .contact-action {
  width: 36px;
  height: 36px;
  min-height: 36px;
  border-radius: var(--radius-md);
}

.chat-post-contact .contact-action .contact-icon {
  width: 18px;
  height: 18px;
}

.chat-post-info {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.chat-post-title-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-post-title {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.chat-post-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

.chat-post-price {
  color: var(--brand-red);
  font-weight: 900;
}

.chat-message-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-height: 0;
  overflow-y: auto;
  padding-bottom: calc(var(--tap-target) + var(--space-lg) + 14px + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}

.chat-message {
  --chat-avatar-size: 42px;
  display: grid;
  row-gap: 4px;
  max-width: 80%;
}

.chat-message.own {
  align-self: end;
  grid-template-columns: minmax(0, 1fr);
  justify-items: end;
}

.chat-message.other {
  align-self: start;
  grid-template-columns: var(--chat-avatar-size) minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  max-width: 92%;
}

.chat-message-avatar-column {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  width: var(--chat-avatar-size);
  min-width: var(--chat-avatar-size);
}

.chat-message .chat-message-avatar {
  width: var(--chat-avatar-size);
  height: var(--chat-avatar-size);
}

.chat-message .chat-message-avatar.chat-thumb-support {
  border-radius: var(--radius-sm);
}

.chat-message .chat-message-avatar.chat-thumb-support svg {
  width: 24px;
  height: 24px;
}

.chat-message.own .chat-message-avatar-column {
  display: none;
}

.chat-message-time {
  justify-self: start;
  font-size: 9px;
  line-height: 1.1;
}

.chat-message-stack {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.chat-message.own .chat-message-stack {
  justify-items: end;
}

.chat-message.other .chat-message-stack {
  grid-column: 2;
  justify-items: start;
}

.chat-message.own .chat-message-time {
  justify-self: end;
  text-align: right;
}

.chat-message.other .chat-message-time {
  justify-self: start;
  text-align: left;
}

.chat-message.other .chat-message-avatar-column .chat-message-time {
  align-self: center;
  max-width: 100%;
  text-align: center;
  white-space: nowrap;
}

.chat-translate-button {
  justify-self: start;
  padding: 0;
  color: var(--brand-blue);
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.chat-message.own .chat-translate-button {
  justify-self: end;
}

.chat-message-avatar-column .chat-translate-button {
  align-self: center;
  max-width: 100%;
  text-align: center;
}

.chat-message.other .chat-message-stack .chat-translate-button {
  justify-self: start;
  text-align: left;
}

.chat-translate-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.chat-message-bubble {
  min-height: var(--tap-target);
  max-width: min(72vw, 260px);
  border-radius: var(--radius-md);
  padding: 9px 14px 10px;
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  text-align: left;
  line-height: 1.36;
}

.chat-message.other .chat-message-bubble {
  background: color-mix(in srgb, var(--muted) 18%, transparent);
}

.chat-message-bubble.has-image {
  display: grid;
  gap: var(--space-xs);
  padding: 0;
  max-width: 220px;
  min-height: 0;
  background: transparent;
}

.chat-message-image {
  display: block;
  width: 100%;
  max-height: 240px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: zoom-in;
}

.chat-message-text {
  display: inline-block;
  padding: 0;
  line-height: inherit;
}

.chat-message-original {
  display: block;
  width: 100%;
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  color: color-mix(in srgb, currentColor 72%, transparent);
  font-size: 12px;
  line-height: 18px;
}

.chat-message.own .chat-message-bubble {
  background: var(--brand-red);
  color: #fff;
}

.chat-message.own .chat-message-bubble.has-image,
.chat-message.other .chat-message-bubble.has-image {
  background: transparent;
  color: var(--text);
}

.chat-message.is-pending {
  opacity: 0.78;
}

.chat-message.is-failed .chat-message-bubble {
  border-color: var(--brand-red);
}

.chat-message-time.is-failed {
  color: var(--brand-red);
}

.chat-compose {
  position: sticky;
  bottom: calc(var(--bottombar-h) + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: var(--tap-target) minmax(0, 1fr) auto;
  gap: var(--space-sm);
  align-items: end;
  padding: var(--space-sm) 0;
  background: var(--page);
}

.chat-thread-main .chat-compose {
  position: fixed;
  left: var(--page-x);
  right: var(--page-x);
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 8;
  padding: 0;
  border-top: 0;
  background: transparent;
  align-items: stretch;
}

.chat-attach-button {
  width: var(--tap-target);
  min-width: var(--tap-target);
  height: var(--tap-target);
  min-height: var(--tap-target);
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  font-weight: 400;
}

.chat-compose textarea {
  resize: none;
  min-height: var(--tap-target);
  max-height: 120px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  line-height: 20px;
  padding: 11px 12px;
}

.chat-compose button:not(.chat-attach-button) {
  min-height: var(--tap-target);
  padding: 0 var(--space-lg);
  border: 0;
  border-radius: var(--radius-md);
  background: var(--brand-red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.chat-compose button.is-loading {
  opacity: 0.78;
  cursor: progress;
}

.chat-thread-main .chat-compose .chat-attach-button,
.chat-thread-main .chat-compose textarea,
.chat-thread-main .chat-compose button {
  height: var(--tap-target);
  min-height: var(--tap-target);
}

.chat-transaction-control {
  display: inline-flex;
  width: fit-content;
  min-width: 0;
  flex: 0 0 auto;
}

.chat-transaction-control button {
  width: auto;
  min-height: var(--tap-target);
  border: 0;
  border-radius: 0;
  padding: 0 2px;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  font-weight: 900;
}

.chat-transaction-control svg,
.chat-transaction-sheet svg,
.transaction-review-header svg,
.transaction-review-photo-button svg,
.transaction-review-sent-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-transaction-sheet-layer {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-popover) + 30);
  pointer-events: auto;
}

.chat-transaction-sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 0;
  pointer-events: auto;
  background: transparent;
}

.chat-transaction-sheet-layer .chat-transaction-sheet-backdrop {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.chat-transaction-sheet {
  position: fixed;
  left: var(--chat-transaction-sheet-left, 8px);
  top: var(--chat-transaction-sheet-top, 64px);
  z-index: 2;
  width: max-content;
  min-width: 136px;
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 16px);
  overflow-y: auto;
  pointer-events: auto;
  border: 1px solid var(--popup-glass-border);
  border-radius: var(--radius);
  padding: 8px;
  background: var(--popup-glass-bg);
  box-shadow: var(--popup-glass-shadow);
  backdrop-filter: var(--popup-glass-filter);
  -webkit-backdrop-filter: var(--popup-glass-filter);
}

.chat-transaction-sheet > button {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  width: 100%;
  min-height: var(--tap-target);
  border: 0;
  border-radius: var(--radius);
  padding: 10px 14px;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
}

.chat-transaction-sheet .chat-transaction-selected {
  margin-left: auto;
}

.chat-transaction-sheet > button.active {
  color: var(--brand-red);
}

.chat-transaction-sheet > button:disabled:not(.active) {
  opacity: 0.42;
}

.chat-message.is-transaction-review {
  width: min(100%, 390px);
  max-width: 100%;
}

.chat-transaction-review-card {
  width: min(100%, 330px);
  border: 1px solid color-mix(in srgb, var(--brand-blue) 34%, var(--line));
  border-radius: 8px;
  padding: 14px;
  background: color-mix(in srgb, var(--brand-blue) 10%, var(--surface));
  color: var(--text);
  display: grid;
  gap: 10px;
}

.chat-transaction-review-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.chat-transaction-review-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.chat-transaction-review-card > img {
  width: 100%;
  max-height: 240px;
  border-radius: 6px;
  object-fit: cover;
}

.chat-transaction-review-tags,
.transaction-review-sent-tags,
.publisher-transaction-review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chat-transaction-review-tags span,
.transaction-review-sent-tags span,
.publisher-transaction-review-tags span {
  border-radius: 6px;
  padding: 5px 8px;
  background: color-mix(in srgb, var(--brand-green) 18%, var(--surface));
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.transaction-review-main {
  min-height: 100dvh;
  padding: 0 0 calc(var(--tap-target) + 36px + env(safe-area-inset-bottom));
}

.transaction-review-page {
  width: min(100%, 480px);
  margin: 0 auto;
  padding: 0 var(--page-x) 24px;
}

.transaction-review-header {
  min-height: 56px;
  display: grid;
  grid-template-columns: var(--tap-target) minmax(0, 1fr) var(--tap-target);
  align-items: center;
  gap: 8px;
}

.transaction-review-header h1 {
  margin: 0;
  font-size: 18px;
  text-align: center;
}

.transaction-review-header button {
  width: var(--tap-target);
  height: var(--tap-target);
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.transaction-review-product {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 0 16px;
}

.transaction-review-product > span {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.transaction-review-product strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transaction-review-product small {
  color: var(--muted);
  font-weight: 700;
}

.transaction-review-form {
  display: grid;
  gap: 18px;
  padding-top: 20px;
}

.transaction-review-section {
  display: grid;
  gap: 12px;
}

.transaction-review-section h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.transaction-review-section > p {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.transaction-rating-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.transaction-rating-options label {
  min-width: 0;
  min-height: 72px;
  position: relative;
}

.transaction-rating-options input,
.transaction-highlight-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.transaction-rating-options span {
  width: 100%;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.transaction-rating-options b {
  font-size: 25px;
  line-height: 1;
  font-weight: 400;
}

.transaction-rating-options em {
  font-style: normal;
}

.transaction-rating-options label:nth-child(1) input:checked + span {
  border-color: var(--muted);
  background: color-mix(in srgb, var(--muted) 18%, var(--surface));
}

.transaction-rating-options label:nth-child(2) input:checked + span {
  border-color: var(--brand-blue);
  background: color-mix(in srgb, var(--brand-blue) 18%, var(--surface));
}

.transaction-rating-options label:nth-child(3) input:checked + span {
  border-color: var(--brand-red);
  background: color-mix(in srgb, var(--brand-red) 14%, var(--surface));
  color: var(--brand-red);
}

.transaction-highlight-options {
  display: grid;
  gap: 8px;
}

.transaction-highlight-options label {
  position: relative;
  min-height: var(--tap-target);
}

.transaction-highlight-options span {
  min-height: var(--tap-target);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px 10px 44px;
  background: var(--surface);
  display: flex;
  align-items: center;
  line-height: 1.35;
}

.transaction-highlight-options span::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  border: 1px solid var(--muted);
  border-radius: 5px;
}

.transaction-highlight-options input:checked + span {
  border-color: var(--brand-green);
  background: color-mix(in srgb, var(--brand-green) 14%, var(--surface));
}

.transaction-highlight-options input:checked + span::before {
  content: "✓";
  border-color: var(--brand-green);
  background: var(--brand-green);
  color: #10151c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.transaction-review-optional textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
  color: var(--text);
  line-height: 1.5;
}

.transaction-review-photo-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.transaction-review-photo-button {
  min-width: 96px;
  min-height: var(--tap-target);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--surface);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
}

.transaction-review-photo-preview {
  position: relative;
  width: 96px;
  height: 96px;
}

.transaction-review-photo-preview img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
}

.transaction-review-photo-preview button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 14, 20, 0.76);
  color: #fff;
}

.transaction-review-submit {
  width: 100%;
  height: var(--tap-target);
  min-height: var(--tap-target);
  border: 0;
  border-radius: 8px;
  background: var(--brand-red);
  color: #fff;
  font-weight: 900;
}

.transaction-review-submit-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: calc(var(--z-popover) + 6);
  width: min(100%, 480px);
  transform: translateX(-50%);
  padding: 6px var(--gallery-feed-x) calc(6px + env(safe-area-inset-bottom));
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(8, 12, 18, 0.18);
  box-shadow:
    0 -10px 28px rgba(15, 23, 42, 0.1),
    inset 1px 0 rgba(74, 221, 255, 0.2),
    inset -1px 0 rgba(255, 125, 205, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.transaction-review-submit-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 24% 170% at 0% 52%, rgba(72, 224, 255, 0.22), transparent 72%),
    radial-gradient(ellipse 24% 170% at 100% 48%, rgba(255, 116, 205, 0.17), transparent 72%),
    linear-gradient(105deg, transparent 8%, rgba(112, 174, 255, 0.09) 30%, transparent 48%, rgba(255, 218, 153, 0.09) 70%, transparent 92%);
  backdrop-filter: url("#civilya-nav-edge-distortion") blur(0.75px) saturate(1.55) contrast(1.09) brightness(1.04);
  -webkit-backdrop-filter: blur(0.75px) saturate(1.55) contrast(1.09) brightness(1.04);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 0 58%, rgba(0, 0, 0, 0.28) 70%, rgba(0, 0, 0, 0.78) 88%, #000 100%);
  mask-image: radial-gradient(ellipse at center, transparent 0 58%, rgba(0, 0, 0, 0.28) 70%, rgba(0, 0, 0, 0.78) 88%, #000 100%);
  filter: url("#civilya-nav-edge-distortion");
}

.transaction-review-submit-bar > * {
  position: relative;
  z-index: 1;
}

.transaction-review-sent {
  min-height: calc(100dvh - var(--page-bottom));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.transaction-review-sent h1,
.transaction-review-sent p {
  margin: 0;
}

.transaction-review-sent p {
  color: var(--muted);
  line-height: 1.5;
}

.transaction-review-sent-icon {
  width: 64px;
  height: 64px;
  align-self: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-green) 32%, var(--surface));
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.transaction-review-sent-icon svg {
  width: 32px;
  height: 32px;
}

.transaction-review-sent-tags {
  justify-content: center;
}

.transaction-review-sent > .primary-btn {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: var(--brand-red);
  color: #fff;
  font-weight: 900;
}

.publisher-transaction-reviews {
  display: grid;
  gap: 12px;
  padding: 16px 0 24px;
}

.publisher-transaction-reviews > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.publisher-transaction-reviews h2 {
  margin: 0;
  font-size: 17px;
}

.publisher-transaction-reviews > header > span {
  color: var(--muted);
  font-weight: 800;
}

.publisher-transaction-review-list {
  display: grid;
  gap: 10px;
}

.publisher-transaction-review-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
  display: grid;
  gap: 10px;
}

.publisher-transaction-review-author {
  min-width: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.publisher-review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.publisher-transaction-review-author > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.publisher-transaction-review-author strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publisher-transaction-review-author small {
  color: var(--muted);
}

.publisher-transaction-review-card p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.publisher-transaction-review-image {
  width: min(100%, 320px);
  max-height: 240px;
  border-radius: 8px;
  object-fit: cover;
}
/* Account auth */
.account-panel {
  display: grid;
  gap: 12px;
  margin: 0 var(--gallery-feed-x) 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.my-intro-copy {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0;
  row-gap: 4px;
  white-space: pre-wrap;
}

.my-intro-label {
  white-space: nowrap;
}

.account-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.account-summary-row,
.profile-edit-row,
.post-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-summary-main {
  min-width: 0;
  flex: 1 1 auto;
}

.account-summary-main strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-manage-button {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
}

.account-notice-button {
  width: 36px;
  height: 36px;
  min-height: 36px;
  flex: 0 0 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.account-notice-button.active {
  color: #fff;
  border-color: var(--brand-red);
  background: var(--brand-red);
}

.account-notice-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-avatar {
  display: block;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--brand-light);
  color: var(--brand);
  flex: 0 0 auto;
}

.profile-avatar-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.profile-form {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.account-profile-panel {
  gap: 10px;
}

.profile-page-head {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.profile-page-title {
  min-width: 0;
  flex: 1 1 auto;
}

.account-profile-menu {
  position: relative;
  margin-left: auto;
  flex: 0 0 auto;
  align-self: flex-start;
}

.account-profile-menu-button {
  width: var(--tap-target);
  min-width: var(--tap-target);
  height: var(--tap-target);
  min-height: var(--tap-target);
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.account-profile-menu-button[aria-expanded="true"] {
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

.account-profile-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  min-width: 132px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong, var(--surface));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.account-profile-menu:not(.open) .account-profile-menu-list {
  display: none;
}

.account-profile-menu-item {
  width: 100%;
  min-height: var(--tap-target);
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 1.2;
  text-align: left;
  font-weight: 800;
}

.account-profile-menu-item + .account-profile-menu-item {
  margin-top: 4px;
}

.account-profile-menu-item.danger {
  color: #ff756a;
}

.profile-form h3 {
  margin: 0;
  font-size: var(--text-lg);
}

.profile-avatar-picker {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 800;
}

.post-author-row {
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.detail-card .post-author-row {
  margin: 10px 0 8px;
}

.post-author-avatar {
  width: 28px;
  height: 28px;
}

.post-author-link {
  width: max-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.post-author-wrap {
  position: relative;
  width: max-content;
  max-width: 100%;
  align-items: center;
}

.post-author-wrap .post-author-link {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.post-author-avatar-wrap {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.publisher-main {
  padding-top: 0;
}

.publisher-page {
  --profile-hero-ink: #fff;
  --profile-hero-muted: rgba(255, 255, 255, 0.78);
  --profile-panel-bg: var(--surface);
  --profile-panel-ink: var(--ink);
  --profile-panel-muted: var(--muted);
  --profile-cover-height: 300px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--page-x) calc(var(--bottom-nav-height) + 20px);
  color: var(--profile-panel-ink);
  background: var(--profile-panel-bg);
}

.profile-image-control {
  position: relative;
  display: block;
}

.profile-image-open {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  display: block;
}

.publisher-cover {
  position: relative;
  width: calc(100% + var(--page-x) * 2);
  height: var(--profile-cover-height);
  margin: 0 calc(var(--page-x) * -1);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(223, 63, 37, 0.22), rgba(74, 163, 223, 0.18)),
    var(--surface-strong, var(--surface));
}

.publisher-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.22) 42%, rgba(0, 0, 0, 0.52));
}

.publisher-cover img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.profile-image-upload {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.profile-background-upload {
  top: 64px;
  right: 18px;
  bottom: auto;
}

.publisher-cover-empty {
  background:
    radial-gradient(circle at 72% 28%, rgba(74, 163, 223, 0.22), transparent 30%),
    linear-gradient(135deg, rgba(223, 63, 37, 0.34), rgba(189, 36, 125, 0.18)),
    var(--surface-strong, var(--surface));
}

.publisher-topbar {
  min-height: 56px;
  display: grid;
  grid-template-columns: var(--tap-target) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.publisher-floating-topbar {
  min-height: 50px;
  margin-top: calc(-1 * var(--profile-cover-height));
  color: var(--profile-hero-ink);
  position: relative;
  z-index: 2;
  grid-template-columns: var(--tap-target) minmax(0, 1fr) auto;
  align-items: center;
}

.publisher-floating-topbar,
.publisher-hero,
.publisher-stats {
  text-shadow: none;
}

.publisher-icon-button {
  width: var(--tap-target);
  min-width: var(--tap-target);
  height: var(--tap-target);
  min-height: var(--tap-target);
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.publisher-icon-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.publisher-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 40px;
  height: 40px;
  align-self: center;
}

.my-header-actions {
  min-width: 124px;
}

.publisher-report-actions {
  padding-right: 18px;
}

.publisher-header-actions .account-notice-button {
  width: 40px;
  height: 40px;
  min-height: 40px;
  flex: 0 0 40px;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--profile-hero-ink);
  background: transparent;
  line-height: 1;
}

.profile-top-background-upload {
  min-height: 40px;
  padding: 0 6px;
  border: 0;
  border-radius: 0;
  color: var(--profile-hero-ink);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.publisher-header-actions .publisher-icon-button {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  flex: 0 0 40px;
  margin: 0;
  line-height: 1;
}

.publisher-header-actions .account-notice-button,
.publisher-header-actions .publisher-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.publisher-header-actions .account-notice-icon,
.publisher-header-actions .publisher-icon-button svg {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  transform-origin: center;
}

.publisher-header-actions .account-notice-icon {
  transform: translateY(-1px);
}

.publisher-header-actions .profile-share-icon {
  transform: translate(-1.5px, -2px);
}

.publisher-report-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  min-height: var(--tap-target);
  min-width: max-content;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  color: var(--profile-hero-ink);
  background: transparent;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  word-break: keep-all;
}

.publisher-report-label {
  display: inline-block;
  flex: 0 0 auto;
  white-space: nowrap;
  word-break: keep-all;
}

.publisher-report-button .profile-report-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.publisher-report-button.reported,
.publisher-report-button:disabled {
  opacity: 0.78;
}

.publisher-hero {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  padding: 0 0 14px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--profile-hero-ink);
}

.publisher-avatar {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  border: 0;
}

.publisher-other-page .publisher-avatar {
  border: 0;
}

.publisher-avatar-stack {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.publisher-avatar-subscribe-button {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
}

.profile-avatar-open {
  border-radius: 999px;
}

.profile-avatar-open + .profile-image-upload {
  right: -4px;
  bottom: -2px;
  min-width: 34px;
  width: 34px;
  padding: 0;
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
}

.profile-avatar-open + .profile-image-upload::before {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-indent: 0;
  font-size: 22px;
}

.publisher-identity {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.publisher-identity h1 {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 24px;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publisher-identity p {
  margin: 0;
  color: var(--profile-hero-muted);
  font-size: var(--text-sm);
  font-weight: 700;
}

.profile-name-edit,
.profile-name-login {
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  font: inherit;
  font-weight: 900;
}

.profile-name-login {
  min-height: var(--tap-target);
}

.profile-name-edit span,
.profile-name-login strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-edit-icon,
.profile-share-icon,
.profile-report-icon,
.profile-search-icon,
.account-notice-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-account-line {
  font-size: var(--text-xs);
}

.profile-inline-field {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-inline-field input,
.profile-inline-field textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  color: var(--profile-hero-ink);
  background: rgba(15, 23, 42, 0.26);
  font: inherit;
  font-weight: 900;
  outline: none;
}

.profile-inline-name input {
  min-height: 34px;
  padding: 0 8px;
  font-size: 24px;
  line-height: 1.18;
}

.profile-inline-account {
  color: var(--profile-hero-muted);
  font-size: var(--text-sm);
  font-weight: 800;
}

.profile-inline-account input {
  min-height: 28px;
  padding: 0 6px;
  color: var(--profile-hero-muted);
  font-size: var(--text-sm);
}

.profile-account-prefix {
  flex: 0 0 auto;
}

.profile-inline-bio textarea {
  min-height: 48px;
  max-height: 64px;
  padding: 6px 8px;
  color: var(--profile-hero-muted);
  font-size: 16px;
  line-height: 1.35;
  resize: none;
}

.publisher-bio {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.publisher-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
  padding: 6px 0 8px;
  border: 0;
}

.publisher-stats span {
  min-width: 0;
  color: var(--profile-hero-muted);
  display: grid;
  gap: 2px;
  align-content: center;
  justify-items: center;
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 800;
}

.publisher-other-page .publisher-stats span {
  align-content: start;
}

.publisher-stats strong {
  min-width: 0;
  overflow: hidden;
  color: var(--profile-hero-ink);
  font-size: var(--text-lg);
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publisher-temperature-stat {
  align-self: center;
}

.publisher-other-page .publisher-temperature-stat {
  align-self: start;
}

.publisher-stat-chat-button {
  width: min(150px, 100%);
  justify-self: center;
  margin-top: 8px;
}

.publisher-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0 6px;
}

.publisher-login-inline {
  width: 100%;
  min-height: var(--tap-target);
  margin: 12px 0 0;
  border: 1px solid rgba(223, 63, 37, 0.22);
  border-radius: var(--radius);
  background: rgba(223, 63, 37, 0.08);
  color: var(--brand-red);
  font-weight: 800;
}

.publisher-menu,
.my-menu {
  position: relative;
  display: inline-flex;
}

.publisher-menu-list,
.my-menu-list {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: calc(var(--z-popover) + 5);
  min-width: 150px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
  display: none;
}

.my-menu-list {
  left: 0;
  right: auto;
}

.publisher-menu.open .publisher-menu-list,
.my-menu.open .my-menu-list {
  display: grid;
}

.publisher-menu-list button,
.my-menu-list button,
.my-menu-list a {
  min-height: var(--tap-target);
  border: 0;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: inherit;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 1.2;
  text-align: left;
  font-weight: 800;
  text-decoration: none;
}

.publisher-menu-list button:hover,
.my-menu-list button:hover,
.my-menu-list a:hover {
  background: var(--category-chip-bg);
}

.my-menu-list .danger {
  color: var(--brand-red);
}

.profile-menu-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.publisher-follow-button,
.publisher-chat-button {
  min-height: calc(var(--tap-target) * 0.9);
  border-radius: var(--radius);
  font-weight: 900;
}

.publisher-follow-button {
  border: 1px solid var(--brand-red);
  color: #fff;
  background: var(--brand-red);
}

.publisher-follow-button.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(107, 114, 128, 0.72);
}

.publisher-avatar-stack .publisher-avatar-subscribe-button {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
}

.publisher-chat-button {
  border: 1px solid var(--brand-red);
  color: #fff;
  background: var(--brand-red);
}

.publisher-chat-button:disabled {
  border-color: var(--brand-red);
  color: #fff;
  background: var(--brand-red);
  opacity: 0.62;
}

.publisher-tab-panel {
  position: relative;
  z-index: 1;
  margin: 4px calc(var(--page-x) * -1) 0;
  padding: 8px var(--page-x) 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  color: var(--profile-panel-ink);
  background: var(--profile-panel-bg);
}

.publisher-post-grid .gallery-post-card {
  min-width: 0;
}

.publisher-empty-state {
  grid-column: 1 / -1;
  margin: 24px 0;
  color: var(--profile-panel-muted);
  background: var(--profile-panel-bg);
}

.profile-background-picker,
.profile-avatar-picker {
  min-height: var(--tap-target);
  border: 1px dashed var(--line-strong, var(--line));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-weight: 900;
  background: var(--category-chip-bg);
}

.profile-content-tabs {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}

.profile-content-tabs::-webkit-scrollbar,
.profile-follow-strip::-webkit-scrollbar {
  display: none;
}

.profile-content-tab,
.profile-content-search {
  min-height: var(--tap-target);
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 14.4px;
  font-weight: 900;
  white-space: nowrap;
}

.profile-content-tab {
  width: auto;
  min-width: 58px;
  padding: 0 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.profile-content-tab-icon {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-content-tab-label {
  display: inline-block;
  line-height: 1;
}

.profile-content-tab.active {
  color: var(--ink);
  box-shadow: inset 0 -3px var(--brand-red);
}

.profile-content-search {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap-target);
  padding: 0;
}

.profile-search-field {
  margin: 10px 0;
  display: block;
}

.profile-search-field input {
  width: 100%;
  min-height: var(--tap-target);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 800;
}

.profile-follow-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 11px 0 0;
  scrollbar-width: none;
}

.profile-follow-card {
  flex: 0 0 clamp(48px, calc((100% - 50px) / 6), 60px);
  min-width: 0;
  max-width: none;
  min-height: 54px;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--profile-panel-ink);
  background: transparent;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 900;
}

.profile-follow-name {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1;
}

.profile-follow-avatar {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  color: var(--ink);
  background: var(--surface-strong, var(--surface));
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
}

.profile-follow-avatar-img {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  display: inline-flex;
  flex: 0 0 40px;
  border: 0;
  border-radius: 999px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.profile-follow-avatar-img.profile-avatar-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(223, 63, 37, 0.14);
}

.my-profile-page .profile-follow-shell {
  position: relative;
  z-index: 2;
  margin: clamp(64px, 14vw, 96px) calc(var(--page-x) * -1) 0;
  padding: 0 var(--page-x) 0;
}

.profile-age-field {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 8px;
}

.profile-age-field legend {
  padding: 0;
  color: var(--muted);
  font-weight: 900;
}

.profile-age-selects {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 8px;
}

.profile-age-selects label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 800;
}

.profile-inline-edit-form {
  margin: 8px 0 0;
  padding-top: 8px;
}

.profile-age-selects select {
  min-height: var(--tap-target);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 900;
}

.my-profile-page .publisher-floating-topbar {
  margin-top: calc(-1 * var(--profile-cover-height));
}

.my-menu-panel-content {
  margin: 8px 0 14px;
}

@media (min-width: 900px) {
  .publisher-page {
    padding-top: 10px;
  }

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

.account-actions,
.auth-actions-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.profile-actions-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.profile-actions-row .account-secondary-button {
  min-width: 88px;
}

.account-primary-button,
.account-secondary-button,
.account-danger-button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.account-primary-button {
  border: 0;
  color: #fff;
  background: var(--accent);
}

.google-login-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
}

.google-logo {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.account-secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.account-danger-button {
  border: 1px solid rgba(239, 59, 38, 0.42);
  color: #ff756a;
  background: rgba(239, 59, 38, 0.08);
}

.account-primary-button.is-loading,
.account-secondary-button.is-loading,
.account-danger-button.is-loading,
.google-login-button.is-loading,
.account-profile-menu-item.is-loading {
  cursor: progress;
  opacity: 0.84;
}

.account-profile-menu-item.is-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-spinner {
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
  animation: btn-spin 0.7s linear infinite;
}

.account-recover-link {
  justify-self: start;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
}

.account-recover-text {
  margin: 0;
  white-space: pre-wrap;
  color: var(--muted);
  font: inherit;
  line-height: 1.55;
}

.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.58);
}

.auth-modal {
  width: min(100%, 440px);
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
}

.auth-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.auth-modal-head h2 {
  margin: 0;
  font-size: 20px;
}

.auth-modal-title-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-submit-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.auth-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  font-size: 24px;
  line-height: 1;
}

.auth-password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.auth-password-row button {
  min-width: 64px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.auth-device-status.ok {
  color: #53d178;
}

.auth-device-status.bad,
.auth-error {
  color: #ff6b5a;
}

.auth-error {
  font-weight: 700;
}

@media (min-width: 700px) {
  .auth-modal-backdrop {
    align-items: center;
  }
}

.property-map-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.property-map-home-card {
  margin: 0 0 14px;
}

.property-map-overlay-search-row {
  position: relative;
  z-index: 2;
  padding: 8px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.property-map-search-input {
  width: 100%;
  min-height: 38px;
}

.property-map-detail-card {
  margin-top: 12px;
}

.property-map-card-header {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.property-map-card-header > div {
  display: inline-flex;
  flex-direction: column;
  min-width: 0;
  max-width: calc(100% - 96px);
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

body.dark .property-map-card-header > div {
  background: rgba(24, 24, 27, 0.9);
}

.property-map-card-header strong {
  font-size: 14px;
  line-height: 1.2;
}

.property-map-card-header span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-map-expand-button,
.property-map-close-button {
  pointer-events: auto;
  border: 0;
  border-radius: 8px;
  background: var(--brand-red);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.property-map-expand-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
  white-space: nowrap;
}

.property-map-canvas {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 120px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #eef3f0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

body.dark .property-map-canvas {
  background: #1f2421;
}

.property-map-home {
  aspect-ratio: var(--home-feature-media-ratio);
  height: auto;
  min-height: 0;
  max-height: none;
}

.property-map-detail {
  aspect-ratio: 16 / 3.9;
  min-height: 94px;
}

.property-map-message {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

body.dark .property-map-message {
  background: rgba(24, 24, 27, 0.86);
}

.property-map-detail-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.property-map-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom));
}

.property-map-overlay-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.52);
}

.property-map-overlay-panel {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(980px, 100%);
  min-height: 72vh;
  max-height: 92vh;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.property-map-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.property-map-overlay-header div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.property-map-overlay-header strong {
  font-size: 15px;
  line-height: 1.25;
}

.property-map-overlay-header span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.property-map-close-button {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  font-size: 24px;
  line-height: 1;
}

.property-map-overlay-canvas {
  flex: 1 1 auto;
  min-height: 0;
}

.property-map-info-card {
  display: flex;
  max-width: 210px;
  min-width: 160px;
  flex-direction: column;
  gap: 3px;
  border: 0;
  background: transparent;
  color: #111827;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.property-map-info-card strong,
.property-map-info-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-map-info-card strong {
  font-size: 13px;
  line-height: 1.25;
}

.property-map-info-card span {
  color: #4b5563;
  font-size: 12px;
  line-height: 1.25;
}

@media (max-width: 640px) {
  .property-map-home {
    min-height: 0;
  }

  .property-map-card-header {
    top: 8px;
    left: 8px;
    right: 8px;
  }

  .property-map-card-header > div {
    max-width: calc(100% - 86px);
  }

  .property-map-expand-button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .property-map-overlay {
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  }

  .property-map-overlay-panel {
    width: 100%;
    min-height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
}

.price-wanted {
  color: #16a34a !important;
}

.housing-location-field.is-hidden {
  display: none;
}

.map-location-toggle {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.map-location-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-red);
}

.publish-map-address-field {
  display: block;
}

.publish-map-address-field input {
  width: 100%;
}

.category-location-field.is-location-disabled .property-map-publish {
  background: #d1d5db;
  filter: grayscale(1);
  opacity: 0.58;
  pointer-events: none;
}

body.dark .category-location-field.is-location-disabled .property-map-publish {
  background: #374151;
}

.property-map-home {
  cursor: pointer;
}

.property-map-publish {
  aspect-ratio: 16 / 5;
  min-height: 88px;
  border-radius: 8px;
}

.property-map-publish-center-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 30px;
  height: 42px;
  pointer-events: none;
  transform: translate(-50%, -100%);
}

.property-map-publish-location-pin {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.34);
}

.property-map-publish-location-pin-body {
  fill: #ef4444;
}

.property-map-publish-location-pin-hole {
  fill: #fff;
}

.property-map-overlay-close {
  position: absolute;
  top: calc(max(12px, env(safe-area-inset-top)) + 58px);
  left: 12px;
  z-index: 5;
  background: transparent;
  box-shadow: none;
}

.property-map-overlay-close svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.property-map-price-marker {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 0 4px;
  border: 0;
  border-radius: var(--radius-sm);
  background: #b91c1c;
  color: #fff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.28);
  cursor: pointer;
  font: 900 13px/1 var(--font-main);
  -webkit-text-stroke: 0.26px currentColor;
  paint-order: stroke fill;
  text-shadow: 0.22px 0 0 currentColor, -0.22px 0 0 currentColor;
  text-align: center;
  transition: min-width 0.18s ease, min-height 0.18s ease, padding 0.18s ease, border-radius 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
  transform: translate(-50%, -100%);
}

.property-map-marker-price-text {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.property-map-marker-heart-icon {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-left: -2px;
  fill: #fff;
  stroke: #fff;
  stroke-linejoin: round;
  stroke-width: 1.35;
  filter: drop-shadow(0 1px 2px rgba(66, 32, 6, 0.36));
}

.property-map-marker-dot {
  display: none;
}

.property-map-price-marker.is-price .property-map-marker-dot {
  display: none;
}

.property-map-price-marker::after {
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 4px;
  height: 4px;
  background: inherit;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.property-map-price-marker.is-wanted {
  background: #16a34a;
}

.property-map-marker-category-jobs {
  border-radius: 5px;
  background: #4aa3df;
}

.property-map-marker-category-secondhand {
  border-radius: 7px 7px 7px 2px;
  background: var(--brand-yellow);
  color: #422006;
}

.property-map-marker-category-usedcars {
  border-radius: 999px 999px 999px 4px;
  background: #a6c64f;
  color: #1f2a10;
}

.property-map-marker-category-business {
  border-radius: 3px 8px 8px 8px;
  background: #bd247d;
}

.property-map-marker-category-events {
  border-radius: 2px 8px 2px 8px;
  background: #4aa3df;
}

.property-map-price-marker.is-viewed {
  background: #d65a50;
}

.property-map-price-marker.is-favorite {
  background: var(--brand-yellow);
  color: #422006;
  padding-left: 3px;
  padding-right: 4px;
}

.property-map-price-marker.is-ended {
  background: #6b7280;
  color: #f8fafc;
}

.property-map-price-marker.is-event-ongoing {
  background: var(--brand-green);
  color: #1f2a10;
}

.property-map-price-marker.is-event-upcoming {
  background: var(--brand-red);
  color: #fff;
}

.property-map-price-marker.is-event-ended {
  background: #4b5563;
  color: #f8fafc;
}

.property-map-price-marker.is-dot {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  overflow: visible;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  color: transparent;
  font-size: 0;
  line-height: 0;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.3);
  transform: translate(-50%, -50%);
}

.property-map-price-marker.is-dot .property-map-marker-price-text {
  display: none;
}

.property-map-price-marker.is-dot .property-map-marker-dot {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.property-map-price-marker.is-dot::after {
  display: none;
}

.property-map-result-popover {
  position: absolute;
  left: 50%;
  bottom: max(56px, env(safe-area-inset-bottom));
  z-index: 4;
  width: min(390px, calc(100% - 20px));
  pointer-events: auto;
  transform: translateX(-50%);
}

.property-map-result-popover .property-map-result-card {
  width: 100%;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

.property-map-result-card {
  position: relative;
  display: block;
  width: min(390px, 90vw);
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #171821;
  color: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.property-map-result-open {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.property-map-result-follow {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: #fff;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
}

.property-map-result-follow .favorite-icon {
  width: 24px;
  height: 24px;
}

.property-map-result-follow.active {
  color: #fff;
  background: var(--brand-red);
}

.property-map-result-follow:hover,
.property-map-result-follow:focus,
.property-map-result-follow:active {
  background: rgba(15, 23, 42, 0.74);
}

.property-map-result-follow.active:hover,
.property-map-result-follow.active:focus,
.property-map-result-follow.active:active {
  background: var(--brand-red);
}

.property-map-result-carousel {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x;
}

.property-map-result-carousel::-webkit-scrollbar {
  display: none;
}

.property-map-result-slide {
  display: block;
  min-width: 100%;
  aspect-ratio: 16 / 9;
  scroll-snap-align: start;
}

.property-map-result-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-map-result-placeholder {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #2f333d, #171821);
}

.property-map-result-dots {
  position: absolute;
  left: 50%;
  top: calc(56.25% - 24px);
  display: inline-flex;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  transform: translateX(-50%);
}

.property-map-result-dots i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

.property-map-result-dots i.active {
  background: #fff;
}

.property-map-result-content {
  display: grid;
  min-width: 0;
  gap: 7px;
  padding: 13px 14px 15px;
}

.property-map-result-title,
.property-map-result-content span,
.property-map-result-price {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-map-result-content span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.3;
}

.property-map-result-meta {
  color: rgba(255, 255, 255, 0.78);
}

.property-map-result-title {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.property-map-result-price {
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.25;
}

.property-map-publisher-choices {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px;
  color: rgba(255, 255, 255, 0.82);
}

.property-map-publisher-heading {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-map-publisher-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.property-map-publisher-option {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 46px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.property-map-publisher-option.is-active {
  border-color: rgba(239, 68, 68, 0.78);
  background: rgba(185, 28, 28, 0.28);
}

.property-map-publisher-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  object-fit: cover;
}

.property-map-publisher-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.property-map-publisher-copy strong,
.property-map-publisher-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-map-publisher-copy strong {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
}

.property-map-publisher-copy span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.15;
}

@media (max-width: 640px) {
  .property-map-publish {
    min-height: 82px;
  }

  .property-map-price-marker {
    min-width: 0;
    min-height: 0;
    padding: 0 4px;
    font-size: 12px;
  }

  .property-map-result-card {
    width: min(360px, 90vw);
  }

  .property-map-result-popover {
    bottom: max(52px, env(safe-area-inset-bottom));
    width: min(360px, calc(100% - 18px));
  }

  .property-map-result-price {
    font-size: 25px;
  }

  .property-map-publisher-list {
    grid-template-columns: 1fr;
  }
}

/* Shared transparent material for option sheets, menus, and dialogs. */
.language-menu-panel,
.install-help-panel,
.post-action-popover,
.admin-main .admin-table-action-popover,
.admin-table-action-popover-layer,
.admin-menu-drawer,
.phone-contact-sheet,
.admin-record-dialog,
.admin-confirm-box,
.owner-password-dialog,
.chat-support-chooser,
.chat-thread-menu,
.chat-confirm-box,
.chat-transaction-sheet,
.account-profile-menu-list,
.publisher-menu-list,
.my-menu-list,
.auth-modal,
.property-map-overlay-panel,
.cookie-consent,
.version-update-banner,
.toast {
  border-color: var(--popup-glass-border);
  background: var(--popup-glass-bg);
  box-shadow: var(--popup-glass-shadow);
  backdrop-filter: var(--popup-glass-filter);
  -webkit-backdrop-filter: var(--popup-glass-filter);
}

.city-row,
body.dark .city-row {
  border-color: var(--popup-glass-border);
  background: var(--popup-glass-row-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.language-menu-option,
.post-action-popover button,
.admin-menu-item,
.admin-main .admin-table-action-popover button,
.admin-table-action-popover-layer button,
.phone-contact-option,
.chat-support-choice,
.chat-thread-menu button,
.account-profile-menu-item,
.publisher-menu-list button,
.my-menu-list button,
.my-menu-list a {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.toast,
.phone-contact-option {
  color: var(--ink);
}

.property-map-result-card {
  background: color-mix(in srgb, #171821 72%, transparent);
  backdrop-filter: var(--popup-glass-filter);
  -webkit-backdrop-filter: var(--popup-glass-filter);
}

.language-menu-backdrop,
.install-help-backdrop,
.phone-contact-backdrop,
.owner-password-backdrop,
.admin-record-backdrop,
.admin-main .admin-confirm-backdrop,
.chat-confirm-backdrop,
.chat-transaction-sheet-backdrop,
.auth-modal-backdrop,
.property-map-overlay-backdrop,
.admin-menu-scrim {
  background: var(--popup-glass-scrim);
  backdrop-filter: blur(2px) saturate(1.08);
  -webkit-backdrop-filter: blur(2px) saturate(1.08);
}

body.dark {
  --popup-glass-bg: rgba(23, 27, 33, 0.68);
  --popup-glass-row-bg: rgba(255, 255, 255, 0.055);
  --popup-glass-border: rgba(255, 255, 255, 0.16);
  --popup-glass-shadow: 0 20px 52px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  --popup-glass-filter: blur(18px) saturate(1.6) contrast(1.04) brightness(0.96);
  --popup-glass-scrim: rgba(0, 0, 0, 0.34);
}

body.dark .detail-chat-bar,
body.dark .app[data-view="publish"] .form-sticky-submit-bar {
  border-top-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 -12px 30px rgba(0, 0, 0, 0.24),
    inset 1px 0 rgba(72, 216, 255, 0.18),
    inset -1px 0 rgba(241, 104, 202, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body.dark .detail-chat-bar::before,
body.dark .app[data-view="publish"] .form-sticky-submit-bar::before {
  background:
    radial-gradient(ellipse 24% 170% at 0% 52%, rgba(62, 202, 236, 0.15), transparent 72%),
    radial-gradient(ellipse 24% 170% at 100% 48%, rgba(224, 89, 186, 0.12), transparent 72%),
    linear-gradient(105deg, transparent 8%, rgba(92, 143, 221, 0.07) 30%, transparent 48%, rgba(220, 179, 118, 0.06) 70%, transparent 92%),
    radial-gradient(ellipse at center, transparent 0 42%, rgba(112, 148, 184, 0.035) 64%, rgba(152, 177, 204, 0.15) 100%);
}

@media (prefers-color-scheme: dark) {
  .detail-chat-bar,
  .app[data-view="publish"] .form-sticky-submit-bar {
    border-top-color: rgba(255, 255, 255, 0.14);
    box-shadow:
      0 -12px 30px rgba(0, 0, 0, 0.24),
      inset 1px 0 rgba(72, 216, 255, 0.18),
      inset -1px 0 rgba(241, 104, 202, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  .detail-chat-bar::before,
  .app[data-view="publish"] .form-sticky-submit-bar::before {
    background:
      radial-gradient(ellipse 24% 170% at 0% 52%, rgba(62, 202, 236, 0.15), transparent 72%),
      radial-gradient(ellipse 24% 170% at 100% 48%, rgba(224, 89, 186, 0.12), transparent 72%),
      linear-gradient(105deg, transparent 8%, rgba(92, 143, 221, 0.07) 30%, transparent 48%, rgba(220, 179, 118, 0.06) 70%, transparent 92%),
      radial-gradient(ellipse at center, transparent 0 42%, rgba(112, 148, 184, 0.035) 64%, rgba(152, 177, 204, 0.15) 100%);
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .language-menu-panel,
  .install-help-panel,
  .post-action-popover,
  .admin-table-action-popover-layer,
  .admin-menu-drawer,
  .phone-contact-sheet,
  .admin-record-dialog,
  .admin-confirm-box,
  .owner-password-dialog,
  .chat-support-chooser,
  .chat-thread-menu,
  .chat-confirm-box,
  .chat-transaction-sheet,
  .account-profile-menu-list,
  .publisher-menu-list,
  .my-menu-list,
  .auth-modal,
  .property-map-overlay-panel,
  .cookie-consent,
  .version-update-banner,
  .toast,
  .detail-chat-bar {
    background: color-mix(in srgb, var(--surface) 94%, transparent);
  }
}
