/* ============================================================
   Design System - primary #D85A30, accent-strong #ad3f1f
   ============================================================ */
:root {
  --ink: #1a1214;
  --muted: #6b5c60;
  --line: #e8dfe1;
  --panel: #ffffff;
  --map-panel: rgba(255, 255, 255, 0.95);
  --color-background-primary: var(--panel);
  --color-background-secondary: #f7f4ef;
  --color-text-primary: var(--ink);
  --color-text-secondary: var(--muted);
  --color-text-tertiary: #8a7d80;
  --color-border-tertiary: #eee5e0;
  --color-border-secondary: var(--line);
  --accent: #D85A30;
  --accent-strong: #ad3f1f;
  --accent-light: #fff2ed;
  --accent-mid: #f3c7b8;
  --price-50: #d94436;
  --price-80: #e57b22;
  --price-100: #228b52;
  --price-150: #626a73;
  --shadow-sm: 0 2px 8px rgba(60, 20, 28, 0.1);
  --shadow: 0 8px 28px rgba(60, 20, 28, 0.14);
  --shadow-lg: 0 18px 42px rgba(60, 20, 28, 0.18);
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --border-radius-lg: var(--radius-lg);
  --border-radius-md: var(--radius);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
  margin: 0;
  color: var(--ink);
  font-family:
    "Noto Sans TC",
    "Microsoft JhengHei",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

/* -- App shell -- */
.app-shell {
  display: grid;
  grid-template-columns: minmax(300px, 360px) 1fr;
  height: 100vh;
  overflow: hidden;
  background: #faf5f6;
}

/* -- Sidebar ranking panel -- */
.ranking-panel {
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: 24px 20px;
  overflow: auto;
  background: var(--panel);
  border-right: 1px solid var(--line);
}

/* -- Brand lockup -- */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  place-items: center;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(216, 90, 48, 0.35);
  flex-shrink: 0;
}

.brand-lockup h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-lockup p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* -- Stat grid -- */
.panel-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.panel-stat-grid div {
  padding: 14px 12px;
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius);
}

.panel-stat-grid span {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: var(--accent-strong);
}

.panel-stat-grid small {
  color: var(--muted);
  font-size: 12px;
}

.ranking-kind-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: #f7f0f1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ranking-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius);
}

.ranking-mode-tabs button {
  min-width: 0;
  min-height: 36px;
  padding: 0 10px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 850;
  background: transparent;
  border: 0;
  border-radius: 7px;
}

.ranking-mode-tabs button:hover {
  color: var(--accent-strong);
  background: rgba(216, 90, 48, 0.1);
}

.ranking-mode-tabs button.active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(216, 90, 48, 0.22);
}

.ranking-kind-tabs[hidden],
.sheet-kind-tabs[hidden] {
  display: none;
}

.ranking-kind-tabs button {
  min-width: 0;
  min-height: 34px;
  padding: 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  background: transparent;
  border: 0;
  border-radius: 6px;
}

.ranking-kind-tabs button:hover {
  color: var(--accent-strong);
  background: rgba(216, 90, 48, 0.08);
}

.ranking-kind-tabs button.active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(216, 90, 48, 0.22);
}

/* -- Ranking list -- */
.ranking-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ranking-item {
  display: block;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.ranking-item:hover {
  border-color: var(--accent-mid);
  box-shadow: var(--shadow-sm);
}

.ranking-index {
  display: grid;
  color: #667085;
  font-weight: 800;
  font-size: 12px;
  place-items: center;
}

.ranking-row-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  width: 100%;
  min-height: 58px;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
}

.ranking-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ranking-main-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}

.ranking-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 17px;
  line-height: 1;
}

.ranking-title strong,
.ranking-title em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-title strong {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.ranking-title em {
  flex: 0 0 auto;
  max-width: 78px;
  color: #475467;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.ranking-area {
  color: var(--muted);
  font-size: 12px;
}

.ranking-score {
  justify-self: end;
  color: #00857a;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  text-align: right;
  white-space: nowrap;
}

/* -- Empty states -- */
.empty-state {
  display: grid;
  gap: 6px;
  padding: 16px;
  color: var(--muted);
  border: 1.5px dashed var(--accent-mid);
  border-radius: var(--radius);
  background: var(--accent-light);
}

.empty-state strong {
  color: var(--ink);
}
.map-empty-card {
  align-content: start;
  min-height: 150px;
}
.map-empty-card strong {
  font-size: 16px;
}
.map-empty-card p {
  line-height: 1.5;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.empty-actions button {
  min-height: 38px;
}

/* -- Map stage -- */
.map-stage {
  position: relative;
  min-width: 0;
}
.mobile-map-brand {
  display: none;
}

#map {
  width: 100%;
  height: 100%;
  background: #f5eded;
}

#map .leaflet-control-zoom {
  display: none;
}

.map-loading-indicator {
  position: absolute;
  z-index: 1075;
  top: 50%;
  left: 50%;
  display: inline-flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #1f2937;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.2);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(10px);
}

.map-loading-indicator[hidden] {
  display: none;
}

.map-loading-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(148, 163, 184, 0.35);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: mapLoadingSpin 1.2s linear infinite;
}

@keyframes mapLoadingSpin {
  to {
    transform: rotate(360deg);
  }
}

.map-tiles-no-labels {
  filter: saturate(1.06) contrast(1.02) brightness(1.02);
}
.map-tiles-voyager {
  filter: saturate(1.04) contrast(1.02) brightness(1.01);
}
.map-tiles-osmbright {
  filter: saturate(1.02) contrast(1.01) brightness(1.01);
}
.map-tiles-naverish {
  filter: saturate(1.16) contrast(1.04) brightness(1.04);
}
.map-tiles-street {
  filter: saturate(1.12) contrast(1.02) brightness(1.03);
}
.map-tiles-soft {
  filter: saturate(1.12) contrast(1.05) brightness(1.02);
}

/* -- Top toolbar -- */
.top-toolbar {
  position: absolute;
  z-index: 1100;
  top: 18px;
  right: 18px;
  left: 18px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  pointer-events: none;
}

.top-toolbar > * {
  pointer-events: auto;
}

.top-toolbar .top-search-toggle {
  display: none;
}

.top-toolbar #favoriteButton {
  display: none;
}

.search-box {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 160px;
  max-width: 460px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: var(--map-panel);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.search-box-icon {
  flex-shrink: 0;
  color: #6b7280;
}

.search-box input {
  width: 100%;
  height: 48px;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  overflow: hidden;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.search-result {
  display: block;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #f3eef0;
  transition: background 0.1s;
}

.search-result:hover {
  background: var(--accent-light);
}
.search-result small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

/* -- Buttons -- */
.icon-button,
.primary-action,
.secondary-action,
.text-button {
  min-height: 46px;
  border-radius: var(--radius-pill);
  transition:
    opacity 0.15s,
    transform 0.1s;
}

.icon-button {
  display: grid;
  width: 46px;
  height: 46px;
  color: var(--ink);
  place-items: center;
  background: var(--map-panel);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  border-radius: 50%;
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.icon-button:hover {
  border-color: var(--accent-mid);
}
.icon-button:active {
  transform: scale(0.95);
}

.primary-action {
  padding: 0 20px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  background: var(--accent);
  border: none;
  box-shadow: 0 4px 14px rgba(216, 90, 48, 0.35);
  letter-spacing: 0.01em;
}

.primary-action:hover {
  background: var(--accent-strong);
}
.primary-action:active {
  transform: scale(0.97);
}

.admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
  background: var(--map-panel);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: background 0.15s;
}

.admin-link:hover {
  background: var(--accent-light);
}

.secondary-action {
  padding: 0 16px;
  color: var(--accent-strong);
  font-weight: 700;
  background: var(--accent-light);
  border: 1.5px solid var(--accent-mid);
  border-radius: var(--radius-pill);
}

.secondary-action:hover {
  background: var(--accent-mid);
}

.map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  text-decoration: none;
}

.danger-action {
  color: #b42318;
  background: #fff4f2;
  border-color: #f0b8b2;
}

.text-button {
  color: var(--muted);
  background: transparent;
  border: 0;
}

/* -- Refresh area button -- */
.refresh-area-button {
  position: absolute;
  z-index: 1080;
  top: 82px;
  left: 50%;
  min-height: 36px;
  padding: 0 18px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.map-status-panel {
  position: absolute;
  z-index: 1090;
  top: 126px;
  left: 50%;
  display: grid;
  width: min(520px, calc(100% - 56px));
  gap: 10px;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(210, 218, 228, 0.9);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(25, 30, 35, 0.16);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
}

.map-status-panel[hidden] {
  display: none;
}

.map-status-panel strong {
  min-width: 0;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}

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

.map-status-actions button {
  min-height: 30px;
  padding: 0 11px;
  color: #2f3a4a;
  font-size: 12px;
  font-weight: 800;
  background: #fff;
  border: 1px solid rgba(196, 205, 218, 0.95);
  border-radius: 7px;
  box-shadow: none;
}

.map-status-actions button:first-child {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.map-status-panel[data-kind="location"] {
  border-color: rgba(59, 130, 246, 0.28);
}

.map-status-panel[data-kind="api"],
.map-status-panel[data-kind="tile"] {
  border-color: rgba(216, 90, 48, 0.32);
}

.map-list-button {
  display: none;
}

.map-filter-pill {
  display: none;
}

.map-filter-legend {
  position: absolute;
  z-index: 1095;
  top: 90px;
  right: 18px;
  display: grid;
  gap: 5px;
  width: 26px;
  min-height: 26px;
  justify-items: center;
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(25, 30, 35, 0.14);
  pointer-events: none;
}

.map-filter-legend[hidden] {
  display: none;
}

.map-filter-legend-dot {
  width: 8px;
  height: 8px;
  background: #94a3b8;
  border-radius: 50%;
}

.map-filter-legend-restaurant {
  background: #d73545;
}
.map-filter-legend-lodging {
  background: #2475d6;
}
.map-filter-legend-facility {
  background: #7c3aed;
}
.map-filter-legend-service {
  background: #159459;
}
.map-filter-legend-candidate {
  background: #64748b;
}

/* -- Filter drawer -- */
.filter-drawer {
  position: absolute;
  z-index: 1200;
  top: 76px;
  right: 18px;
  display: grid;
  width: min(320px, calc(100% - 36px));
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* -- Account drawer -- */
.account-drawer {
  position: absolute;
  z-index: 1200;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: min(320px, calc(100% - 36px));
  gap: 12px;
  padding: 18px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-header strong {
  font-size: 20px;
  font-weight: 800;
}

.drawer-header .icon-button {
  width: 38px;
  height: 38px;
  color: var(--muted);
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 50%;
}

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

.filter-actions button {
  min-height: 42px;
}

/* -- Price range -- */
.price-range-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius);
}

.price-range-title,
.range-limits {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-range-title strong,
.price-range-title span {
  font-size: 17px;
  font-weight: 800;
  color: var(--accent-strong);
}

.range-stack {
  position: relative;
  height: 34px;
  margin-inline: 9px;
  padding: 0;
}

.range-stack::before,
.range-stack::after {
  position: absolute;
  top: 50%;
  height: 6px;
  content: "";
  border-radius: var(--radius-pill);
  transform: translateY(-50%);
}

.range-stack::before {
  right: 0;
  left: 0;
  background: #e0d0d3;
}
.range-stack::after {
  right: calc(100% - var(--range-max, 100%));
  left: var(--range-min, 0%);
  background: var(--accent);
}

.range-stack input[type="range"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 34px;
  padding: 0;
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.range-stack input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
  border-color: transparent;
  color: transparent;
}

.range-stack input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -6px;
  background: transparent;
  border: 3px solid var(--range-color, var(--accent));
  border-radius: 50%;
  box-shadow: none;
  opacity: 0;
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
}

.range-stack input[type="range"]::-moz-range-track {
  height: 6px;
  background: transparent;
  border-color: transparent;
  color: transparent;
}
.range-stack input[type="range"]::-moz-range-progress {
  height: 6px;
  background: transparent;
  border-color: transparent;
}
.range-stack input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: transparent;
  border: 3px solid var(--range-color, var(--accent));
  border-radius: 50%;
  box-shadow: none;
  opacity: 0;
  pointer-events: auto;
}

.range-thumb {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 18px;
  height: 18px;
  background: #fff;
  border: 3px solid var(--range-color, var(--accent));
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(25, 30, 35, 0.18);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.range-thumb-min {
  left: var(--thumb-min, 0%);
}
.range-thumb-max {
  left: var(--thumb-max, 100%);
}

.range-limits {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

/* -- Filter chips -- */
.filter-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 38px;
  padding: 0 14px;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  background: #fff;
  border: 1.5px solid #d5c8ca;
  border-radius: var(--radius-pill);
  transition: all 0.15s;
}

.filter-chip:hover {
  border-color: var(--accent-mid);
  background: var(--accent-light);
}

.filter-chip.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.category-layer-filters {
  display: grid;
  gap: 10px;
}

.filter-top-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px 6px;
  align-items: center;
  margin-top: -2px;
}

.layer-quick-filters {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.filter-drawer .layer-quick-filter {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 34px;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 4px 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
}

.filter-drawer .candidate-filter-toggle {
  display: flex;
  grid-column: 1;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  cursor: pointer;
}

.filter-drawer .layer-quick-filter input {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--layer-color, var(--accent));
}

.filter-drawer .candidate-filter-toggle input {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #64748b;
}

.filter-drawer .layer-quick-filter:has(input:checked) {
  color: var(--layer-color, var(--accent-strong));
  background: transparent;
}

.filter-drawer .candidate-filter-toggle:has(input:checked) {
  color: #334155;
}

.filter-drawer .layer-quick-filter:has(input:focus-visible) {
  outline: 2px solid
    color-mix(in srgb, var(--layer-color, var(--accent)) 50%, #fff);
  outline-offset: 2px;
}

.filter-drawer .candidate-filter-toggle:has(input:focus-visible) {
  outline: 2px solid rgba(100, 116, 139, 0.32);
  outline-offset: 2px;
}

.filter-drawer .layer-quick-filter.is-disabled {
  opacity: 0.56;
}

.filter-drawer .layer-quick-filter strong,
.filter-drawer .candidate-filter-toggle span {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layer-quick-restaurant {
  --layer-color: #d73545;
}
.layer-quick-lodging {
  --layer-color: #2475d6;
}
.layer-quick-facility {
  --layer-color: #7c3aed;
}
.layer-quick-service {
  --layer-color: #159459;
}

.layer-filter-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}

.layer-filter-card.is-disabled {
  background: #fafafa;
}

.layer-filter-header {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: var(--ink);
  font-size: 14px;
}

.layer-filter-header input,
.layer-category-grid input {
  accent-color: var(--layer-color, var(--accent));
}

.layer-filter-dot {
  width: 10px;
  height: 10px;
  background: var(--layer-color, var(--accent));
  border-radius: 50%;
}

.layer-price-filter {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #faf7f8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.layer-price-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.layer-price-title strong {
  color: var(--layer-color, var(--accent-strong));
  font-size: 13px;
}

.layer-price-filter .range-stack {
  height: 28px;
  margin-inline: 8px;
  --range-color: var(--layer-color, var(--accent));
}

.layer-price-filter .range-stack::after {
  background: var(--layer-color, var(--accent));
}

.layer-price-filter .range-stack input[type="range"] {
  height: 28px;
}

.layer-price-filter .range-stack input[type="range"]::-webkit-slider-thumb {
  margin-top: -6px;
}

.layer-price-filter .range-limits {
  font-size: 12px;
}

.layer-filter-restaurant {
  --layer-color: #d73545;
}
.layer-filter-lodging {
  --layer-color: #2475d6;
}
.layer-filter-facility {
  --layer-color: #7c3aed;
}
.layer-filter-service {
  --layer-color: #159459;
}

.layer-category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.layer-category-grid label {
  position: relative;
  display: flex;
  min-width: max-content;
  min-height: 30px;
  align-items: center;
  padding: 5px 11px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  background: #fff;
  border: 1px solid
    color-mix(in srgb, var(--layer-color, var(--accent)) 26%, var(--line));
  border-radius: var(--radius-pill);
}

.layer-category-grid label input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.layer-category-grid label:has(input:checked) {
  color: #fff;
  background: var(--layer-color, var(--accent));
  border-color: var(--layer-color, var(--accent));
  box-shadow: 0 2px 6px
    color-mix(in srgb, var(--layer-color, var(--accent)) 24%, transparent);
}

.layer-category-grid label:has(input:focus-visible) {
  outline: 2px solid
    color-mix(in srgb, var(--layer-color, var(--accent)) 55%, #fff);
  outline-offset: 2px;
}

.layer-category-grid label:has(input:disabled) {
  color: #a0a0a0;
  background: #f2f2f2;
  border-color: var(--line);
}

.layer-category-grid span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contributor-ranking-item .ranking-row-button,
.contributor-ranking-item.ranking-item-sheet {
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

.contributor-ranking-static {
  cursor: default;
}

.contributor-ranking-avatar {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: #293145;
  border-radius: 999px;
}

.contributor-ranking-score {
  color: #006c63;
}

.contributor-profile-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  color: #fff;
  font-weight: 900;
  place-items: center;
  background: #293145;
  border-radius: 999px;
}

.contributor-profile-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
}

.contributor-profile-metrics div {
  padding: 10px;
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius);
}

.contributor-profile-metrics dt {
  color: var(--muted);
  font-size: 12px;
}

.contributor-profile-metrics dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.contributor-profile-activity h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

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

.contributor-profile-list div {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.contributor-profile-list span,
.contributor-profile-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.contributor-profile-list strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* -- Account profile -- */
.account-profile {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
}

.account-profile strong,
.account-profile span {
  display: block;
}

.account-profile span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.account-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  color: #fff;
  font-weight: 800;
  place-items: center;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(216, 90, 48, 0.3);
}

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

.account-grid div {
  padding: 12px;
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius);
}

.account-grid strong,
.account-grid span {
  display: block;
}
.account-grid strong {
  font-size: 20px;
  color: var(--accent-strong);
}
.account-grid span {
  color: var(--muted);
  font-size: 12px;
}
/* -- Form elements -- */
.filter-drawer label,
.modal-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.modal-card label small {
  color: var(--accent-strong);
  line-height: 1.45;
}

.filter-drawer select,
.modal-card input,
.modal-card select,
.modal-card textarea,
.submission-panel input,
.submission-panel select,
.submission-panel textarea {
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.15s;
}

.filter-drawer select:focus,
.modal-card input:focus,
.submission-panel input:focus,
.submission-panel select:focus,
.submission-panel textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(216, 90, 48, 0.12);
}

.modal-card textarea,
.submission-panel textarea {
  min-height: 84px;
  padding: 10px 12px;
  resize: vertical;
}

/* -- Bottom sheet -- */
.bottom-sheet {
  position: absolute;
  z-index: 1050;
  display: none;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 10px 14px 16px;
  background: var(--map-panel);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.sheet-handle {
  display: block;
  width: 40px;
  height: 4px;
  margin: 0 auto 10px;
  padding: 0;
  background: var(--accent-mid);
  border: 0;
  border-radius: var(--radius-pill);
}

.sheet-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.sheet-header strong {
  font-size: 15px;
  font-weight: 700;
}
.sheet-header span {
  color: var(--muted);
  font-size: 13px;
}

.sheet-ranking-mode-tabs {
  grid-column: 1 / -1;
}

#activeFilterLabel {
  display: none;
}

.sheet-kind-tabs {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
  padding: 2px;
  background: #f7f0f1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sheet-kind-tabs button {
  min-width: 0;
  min-height: 32px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  background: transparent;
  border: 0;
  border-radius: 6px;
}

.sheet-kind-tabs button.active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(216, 90, 48, 0.22);
}

/* -- Place cards -- */
.place-cards {
  display: grid;
  grid-auto-columns: minmax(220px, 280px);
  grid-auto-flow: column;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.place-card {
  min-width: 0;
  padding: 14px;
  text-align: left;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.place-card:hover {
  border-color: var(--accent-mid);
  box-shadow: var(--shadow-sm);
}

.place-card.ranking-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  min-height: 58px;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  color: inherit;
  border-width: 1px;
}

.empty-card {
  min-height: 112px;
  cursor: default;
}
.place-card strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.place-card p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 13px;
}

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

.price-text {
  font-size: 20px;
  font-weight: 900;
  color: var(--accent-strong);
}

.new-badge,
.type-badge,
.verification-badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  background: var(--accent);
  border-radius: var(--radius-pill);
}

.type-badge {
  color: var(--ink);
  background: #f3eeef;
  border: 1px solid var(--line);
}
.verification-badge {
  color: #7a3b00;
  background: #fff0d6;
}

.verification-badge.candidate {
  color: #475569;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
}

/* -- Map markers -- */
.mobile-bottom-nav {
  display: none;
}
.mobile-nav-item {
  text-decoration: none;
}

.price-marker {
  --marker-color: #d73545;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-items: center;
  align-items: center;
  width: 50px;
  min-height: 56px;
  color: var(--marker-color);
  filter: drop-shadow(0 3px 8px rgba(20, 24, 28, 0.18));
}

.marker-circle {
  position: relative;
  place-items: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--marker-color);
  font-size: 18px;
  line-height: 1;
  background: #fff;
  border: 2.5px solid var(--marker-color);
  border-radius: 50%;
}

.category-inline-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.15em;
  height: 1.15em;
  color: currentColor;
  vertical-align: -0.18em;
}

.marker-circle .category-inline-icon {
  width: 22px;
  height: 22px;
}

.ranking-icon .category-inline-icon {
  width: 18px;
  height: 18px;
}

.marker-price {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 2px 8px;
  margin-top: -8px;
  color: var(--marker-color);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  white-space: nowrap;
  background: #fff;
  border: 2px solid var(--marker-color);
  border-radius: 999px;
}

.price-marker em {
  position: absolute;
  top: -3px;
  right: 1px;
  z-index: 3;
  display: inline-grid;
  min-width: 24px;
  height: 14px;
  padding: 0 5px;
  color: #fff;
  font-size: 8px;
  font-style: normal;
  line-height: 1;
  place-items: center;
  background: #1f2937;
  border: 1px solid #fff;
  border-radius: var(--radius-pill);
}

.overlap-price-marker {
  width: 56px;
}

.overlap-price-marker .marker-circle {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  background: var(--marker-color);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.88);
}

.overlapping-places-dialog {
  width: min(380px, calc(100vw - 24px));
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
}

.overlapping-places-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(26, 28, 31, 0.22);
}

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

.overlap-close-button.icon-button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  color: #475569;
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  backdrop-filter: none;
}

.overlap-close-button.icon-button:hover {
  color: #111827;
  background: #f3f4f6;
}

.overlap-close-button.icon-button svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.overlapping-place-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 10px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.overlapping-place-item:hover {
  background: var(--accent-light);
  border-color: var(--accent-mid);
}

.overlap-kind-icon {
  --marker-color: #d73545;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--marker-color);
  font-size: 17px;
  line-height: 1;
  background: #fff;
  border: 1.5px solid var(--marker-color);
  border-radius: 50%;
}

.overlap-kind-icon .category-inline-icon {
  width: 20px;
  height: 20px;
}

.overlap-kind-icon.marker-kind-restaurant {
  --marker-color: #d73545;
}

.overlap-kind-icon.marker-kind-lodging {
  --marker-color: #2475d6;
}

.overlap-kind-icon.marker-kind-facility {
  --marker-color: #7c3aed;
}

.overlap-kind-icon.marker-kind-service {
  --marker-color: #159459;
}

.overlap-place-content {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.overlap-place-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.overlap-place-title em {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 18px;
  padding: 2px 6px;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
}

.overlap-price {
  display: inline-flex;
  min-width: 46px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  color: #d73545;
  font-size: 12px;
  font-weight: 900;
  background: #fff5f5;
  border: 1px solid #f3a6ad;
  border-radius: 999px;
}

.overlapping-place-item strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overlapping-place-item small {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-marker.marker-kind-restaurant {
  --marker-color: #d73545;
}
.price-marker.marker-kind-lodging {
  --marker-color: #2475d6;
}
.price-marker.marker-kind-facility {
  --marker-color: #7c3aed;
}
.price-marker.marker-kind-service {
  --marker-color: #159459;
}

.price-marker.candidate {
  filter: drop-shadow(0 3px 8px rgba(71, 85, 105, 0.2));
}

.price-marker.candidate .marker-circle {
  color: #475569;
  background: rgba(248, 250, 252, 0.96);
  border-color: #94a3b8;
}

.price-marker.candidate em {
  color: #334155;
  background: #f8fafc;
  border-color: #cbd5e1;
}

.marker-cluster-kind {
  --cluster-color: var(--accent);
  --cluster-soft-color: rgba(228, 76, 92, 0.1);
}

.marker-cluster-kind div {
  display: grid;
  width: 42px;
  height: 42px;
  color: var(--cluster-color);
  font-weight: 800;
  place-items: center;
  background: radial-gradient(
    circle,
    var(--cluster-soft-color) 0 56%,
    #fff 57% 100%
  );
  border: 2px solid var(--cluster-color);
  border-radius: 50%;
  box-shadow: 0 3px 9px rgba(20, 24, 28, 0.14);
}

.marker-cluster-kind span {
  display: block;
  min-width: 1.8em;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
}

.cluster-kind-restaurant {
  --cluster-color: #d73545;
  --cluster-soft-color: rgba(215, 53, 69, 0.1);
}

.cluster-kind-lodging {
  --cluster-color: #2475d6;
  --cluster-soft-color: rgba(36, 117, 214, 0.1);
}

.cluster-kind-facility {
  --cluster-color: #7c3aed;
  --cluster-soft-color: rgba(124, 58, 237, 0.12);
}

.cluster-kind-service {
  --cluster-color: #159459;
  --cluster-soft-color: rgba(21, 148, 89, 0.1);
}

/* -- Dialogs -- */
.detail-dialog {
  width: min(560px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.detail-dialog::backdrop {
  background: rgba(18, 10, 14, 0.45);
}

.submit-dialog {
  position: fixed;
  top: 12px;
  right: 12px;
  bottom: 12px;
  left: auto;
  width: min(480px, calc(100% - 24px));
  height: auto;
  max-height: none;
  margin: 0;
  overflow: clip;
  overscroll-behavior: none;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.submit-dialog::backdrop {
  background: rgba(18, 10, 14, 0.2);
}

.modal-card,
#placeDetail {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: #fff;
}

.modal-card {
  max-height: calc(100dvh - 28px);
  overflow: auto;
}
.modal-card h2,
#placeDetail h2 {
  margin: 0;
  font-size: 22px;
}

.detail-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: start;
}

.detail-title-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.detail-close-button {
  width: 42px;
  min-height: 42px;
  color: var(--muted);
  background: #f7f0f2;
  box-shadow: none;
}

/* -- Price intel -- */
.price-intel-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius);
}

.price-intel-main {
  display: grid;
  gap: 2px;
}
.price-intel-main span,
.price-intel-main small,
.price-intel-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.price-intel-main strong {
  color: var(--accent-strong);
  font-size: 30px;
  line-height: 1;
}

.price-intel-meta {
  display: grid;
  gap: 5px;
  justify-items: end;
}
.price-intel-meta span {
  width: fit-content;
  padding: 4px 8px;
  background: #fff;
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius-pill);
}

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

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

.detail-tags span,
.report-type-pill {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius-pill);
}

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

.place-quick-info div {
  min-height: 58px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.place-quick-info span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.place-quick-info strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.place-vote-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

.vote-panel-header strong {
  font-size: 14px;
  color: var(--ink);
}

.vote-panel-header span,
.vote-bar-labels span {
  color: var(--muted);
  font-size: 12px;
}

.vote-bar {
  display: flex;
  height: 16px;
  overflow: hidden;
  background: #f7f0f2;
  border-radius: var(--radius-pill);
}

.vote-bar-good {
  background: #21b887;
}

.vote-bar-bad {
  background: var(--accent);
}

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

.price-report-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
}

.price-report-actions .secondary-action {
  background: #fff;
  box-shadow: none;
}

.price-report-actions .secondary-action:hover {
  background: #f8fafc;
}

.price-report-actions button svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

.price-report-actions .plate-icon {
  overflow: visible;
}

.vote-good-button {
  color: #08704d;
  border-color: #9ee7ca;
}

.vote-bad-button {
  color: var(--accent-strong);
  border-color: var(--accent-mid);
}

.price-report-actions .map-link,
.price-report-actions #toggleFavorite {
  color: var(--ink);
  border-color: #d9dde4;
}

.price-report-actions .vote-good-button,
.price-report-actions .vote-bad-button {
  background: #fff;
}

.price-report-actions .vote-good-button:hover,
.price-report-actions .vote-bad-button:hover {
  background: #f8fafc;
}

.price-report-actions .map-link,
.price-report-actions #toggleFavorite {
  background: #fff;
}

/* -- Submission panel -- */
.submission-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.submission-panel-header,
.submission-panel-actions {
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
}

.submission-panel-header {
  border-bottom: 1px solid var(--line);
}

.submission-panel-header h2,
.submission-panel-header p,
.submission-section h3,
.submission-section p {
  margin: 0;
}

.submission-panel-header h2 {
  font-size: 18px;
  font-weight: 800;
}

.submission-panel-header p,
.submission-section p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.submission-back-button {
  flex: 0 0 auto;
}

.submission-kind-picker {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  padding: 16px 18px 20px;
  overflow: auto;
}

.submission-kind-option {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 4px 12px;
  width: 100%;
  padding: 14px;
  text-align: left;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition:
    border-color 0.15s,
    background 0.15s,
    transform 0.15s;
}

.submission-kind-option:hover {
  background: var(--accent-light);
  border-color: var(--accent-mid);
  transform: translateY(-1px);
}

.submission-kind-option > span {
  grid-row: span 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  font-size: 22px;
  background: #faf7f8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.submission-kind-option strong {
  color: var(--ink);
  font-size: 16px;
}

.submission-kind-option small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.submission-panel.is-kind-step .submission-panel-body,
.submission-panel.is-kind-step .submission-panel-actions {
  display: none;
}

.submission-panel.is-kind-step {
  grid-template-rows: auto auto;
  height: auto;
}

.submission-panel.is-form-step .submission-kind-picker {
  display: none;
}

.submission-panel-body {
  display: grid;
  gap: 12px;
  min-height: 0;
  padding: 16px 18px 20px;
  overflow: auto;
  overscroll-behavior: contain;
}

.submission-panel-actions {
  margin: 0;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.submission-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}

.anonymous-section {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background: var(--accent-light);
  border-color: var(--accent-mid);
}

.anonymous-section.is-member {
  grid-template-columns: minmax(0, 1fr);
  background: var(--accent-light);
  border-color: var(--accent-mid);
}

.anonymous-section.is-member .anonymous-actions {
  display: none;
}

.submission-section[hidden],
.anonymous-section[hidden] {
  display: none;
}

.anonymous-section strong,
.submission-section h3 {
  font-size: 15px;
}

.anonymous-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.nickname-field,
.submission-section label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.required-field-label {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  width: fit-content;
  max-width: 100%;
}

.required-marker {
  color: #c77872;
  font-weight: 600;
}

.bang-composer-dialog .submission-panel-body > label {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
}

.bang-composer-dialog .submission-panel-body > label > input,
.bang-composer-dialog .submission-panel-body > label > select,
.bang-composer-dialog .submission-panel-body > label > textarea {
  width: 100%;
  min-width: 0;
  font-weight: 500;
}

.bang-composer-dialog .submission-panel-body {
  align-content: start;
  gap: 6px;
}

.bang-composer-dialog .submission-panel-body > label > input,
.bang-composer-dialog .submission-panel-body > label > select {
  box-sizing: border-box;
  height: 44px;
  min-height: 40px;
  padding-top: 0;
  padding-bottom: 0;
  font-weight: 500;
}

.bang-composer-dialog .submission-panel-body > label > textarea {
  box-sizing: border-box;
  padding-top: 10px;
  padding-bottom: 10px;
}

.nickname-field > span,
.place-search-row,
.menu-price-row {
  display: grid;
  gap: 8px;
}

.nickname-field > span {
  grid-template-columns: minmax(0, 1fr) 42px;
}
.place-search-row {
  grid-template-columns: minmax(0, 1fr) 42px;
}

.place-search-status {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  background: #faf7f8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.submission-place-results {
  display: grid;
  gap: 8px;
}

.place-result-button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  text-align: left;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition:
    border-color 0.15s,
    background 0.15s;
}

.place-result-button:hover {
  border-color: var(--accent-mid);
  background: var(--accent-light);
}

.place-result-button strong,
.selected-place-preview strong {
  color: var(--ink);
  font-size: 14px;
}
.place-result-button small,
.selected-place-preview small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.place-result-button em {
  color: var(--accent-strong);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.selected-place-preview {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius);
}

.submission-duplicate-notice {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fff7ed;
  border: 1.5px solid #fdba74;
  border-radius: var(--radius);
}

.submission-duplicate-notice[hidden] {
  display: none;
}

.submission-duplicate-notice > strong {
  color: #9a3412;
  font-size: 14px;
}

.submission-duplicate-notice > p {
  margin: 0;
  color: #7c2d12;
  font-size: 12px;
  line-height: 1.45;
}

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

.duplicate-candidate-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  background: #fff;
  border: 1px solid #fed7aa;
  border-radius: 8px;
}

.duplicate-candidate-card div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.duplicate-candidate-card strong {
  color: var(--ink);
  font-size: 13px;
}

.duplicate-candidate-card small,
.duplicate-candidate-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

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

.manual-place-fields {
  display: grid;
  gap: 12px;
}
.manual-place-fields summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}
.manual-place-fields[open] summary {
  margin-bottom: 12px;
}
.menu-price-row {
  grid-template-columns: minmax(0, 1.35fr) minmax(118px, 0.65fr);
}

.section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.selection-count {
  flex: 0 0 auto;
  padding: 3px 10px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius-pill);
}

.form-grid {
  display: grid;
  gap: 10px;
}
.form-wide {
  grid-column: 1 / -1;
}
.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.checkbox-grid label {
  position: relative;
  cursor: pointer;
}
.checkbox-grid input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-grid span {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.15s;
}

.checkbox-grid input:checked + span {
  color: var(--accent-strong);
  background: var(--accent-light);
  border-color: var(--accent);
  font-weight: 700;
}

.checkbox-grid span:hover {
  border-color: var(--accent-mid);
  background: #fdf6f7;
}

.submission-note-box {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  background: #faf7f8;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-mid);
  border-radius: var(--radius);
  margin: 0;
}

.submission-photo-block {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px dashed var(--accent-mid);
  border-radius: var(--radius);
}

.submission-photo-block h3,
.submission-photo-block p {
  margin: 0;
}
.submission-photo-block h3 {
  color: var(--ink);
  font-size: 15px;
}
.submission-photo-block p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.submission-photo-picker {
  display: block;
}

.submission-photo-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.submission-photo-picker span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 800;
  background: var(--accent-light);
  border: 1.5px solid var(--accent-mid);
  border-radius: var(--radius);
}

.submission-photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
}

.submission-photo-item {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 0;
  background: #faf7f8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.submission-photo-preview[hidden] {
  display: none;
}

.submission-photo-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  background: #fff;
  border: 0;
  border-radius: var(--radius);
}

.submission-photo-item button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.submission-map {
  width: 100%;
  height: 180px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--line);
}

/* -- Mobile bottom nav -- */
.mobile-bottom-nav {
  position: fixed;
  z-index: 1250;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  align-items: flex-end;
  width: 100vw;
  padding: 8px 4px calc(12px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 0.5px solid #f0e8e8;
  box-shadow: none;
  backdrop-filter: none;
}

.mobile-nav-item,
.mobile-nav-fab {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: 3px;
  min-height: 44px;
  color: #bbb;
  font-size: 10px;
  background: transparent;
  border: 0;
  text-decoration: none;
  transition: color 0.15s;
}

.mobile-nav-item svg,
.mobile-nav-item ion-icon {
  width: 24px;
  height: 24px;
  color: currentColor;
}

.mobile-nav-item svg {
  stroke-width: 1.8;
}

.mobile-nav-item strong,
.mobile-nav-fab strong {
  font-size: 10px;
  font-weight: 650;
}

.mobile-nav-fab {
  gap: 4px;
  color: #bbb;
  margin-top: -20px;
}

.mobile-nav-fab[aria-current="page"] strong {
  color: var(--accent);
}

.mobile-nav-fab-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: #fff;
  background: var(--accent);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(216, 90, 48, 0.25);
}

.mobile-nav-fab-circle svg,
.mobile-nav-fab-circle ion-icon {
  width: 24px;
  height: 24px;
}

.mobile-nav-badge {
  position: absolute;
  top: 2px;
  left: calc(50% + 7px);
  width: 8px;
  height: 8px;
  background: #e03131;
  border-radius: 999px;
}

.mobile-nav-item.active {
  color: var(--accent);
}

/* Notifications */
.notifications-page {
  min-height: 100dvh;
  background: #f7f8f9;
}

.notifications-shell {
  width: min(760px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 14px 12px calc(92px + env(safe-area-inset-bottom));
  background: #fff;
  border-inline: 1px solid var(--line);
}

.notifications-header {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.notifications-header h1 {
  margin: 0 0 4px;
  font-size: 22px;
  letter-spacing: 0;
}

.notifications-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.notification-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  overflow-x: auto;
}

.notification-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 14px;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.notification-tabs button.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

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

.notification-item {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  padding: 13px 12px;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.notification-item.unread {
  border-color: #f2b7c0;
  background: #fff8f9;
}

.notification-restriction-item {
  border-color: #f08c00;
  background: #fff9ed;
}

.notification-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  background: transparent;
  border-radius: 50%;
}

.notification-item.unread .notification-dot {
  background: #e03131;
}
.notification-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}
.notification-type {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 6px;
  padding: 2px 7px;
  color: #0b66c3;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  background: #eef6ff;
  border: 1px solid #cfe5ff;
  border-radius: 999px;
}
.notification-item p {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}
.notification-item small {
  color: var(--muted);
  font-size: 12px;
}

.account-map-risk-note {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 6px;
  padding: 3px 8px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
}

.notification-empty {
  display: grid;
  gap: 6px;
  padding: 34px 16px;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.notification-empty strong {
  font-size: 16px;
}
.notification-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* -- Toast -- */
.toast {
  position: fixed;
  z-index: 9999;
  bottom: 90px;
  left: 50%;
  max-width: min(380px, calc(100% - 32px));
  padding: 12px 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  background: var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  transform: translateX(-50%);
  animation: toastIn 0.2s ease;
}

.toast.toast-with-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: min(420px, calc(100% - 32px));
  max-width: min(420px, calc(100% - 32px));
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(22, 23, 28, 0.96);
}

.toast-status-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  background: #fff;
  border-radius: 999px;
}

.toast-with-action strong {
  min-width: 0;
  font-size: 14px;
  font-weight: 850;
}

.toast-action {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 36px;
  padding: 0 4px 0 12px;
  color: #fff;
  font: inherit;
  font-weight: 750;
  white-space: nowrap;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.toast-action::after {
  content: ">";
  font-size: 22px;
  line-height: 1;
}

.discussion-save-folder-picker {
  z-index: 10000;
}

.discussion-save-folder-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.discussion-save-folder-head strong {
  text-align: center;
}

.discussion-save-folder-create-toggle {
  min-height: 38px;
  padding: 0 4px;
  color: #f43f5e;
  font-size: 14px;
  font-weight: 850;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.discussion-save-folder-options {
  display: grid;
  gap: 10px;
  max-height: min(360px, 52vh);
  overflow: auto;
}

.discussion-save-folder-option {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 12px 14px;
  text-align: left;
  background: #f7f7f9;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.discussion-save-folder-option > span:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.discussion-save-folder-option strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discussion-save-folder-option small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discussion-save-folder-cover {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #e5e7eb, #f8fafc);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.discussion-save-folder-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.discussion-save-folder-create[hidden] {
  display: none;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* -- Detail view -- */
#placeDialog.detail-dialog {
  overflow: hidden;
}

#placeDetail {
  display: block;
  height: min(78dvh, 760px);
  padding: 0;
  overflow: hidden;
}

#placeDialog #placeDetail {
  padding: 0;
}

.place-detail-shell {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  background: #fff;
}

.place-detail-scroll {
  display: block;
  min-height: 0;
  padding: 0 0 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: auto;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.place-summary-card {
  display: grid;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--color-text-primary);
  background: var(--color-background-primary);
  border: 0;
  border-bottom: 1px solid var(--color-border-secondary);
  border-radius: 0;
  box-shadow: none;
}

.place-summary-accent {
  height: 4px;
  background: var(--accent);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.place-summary-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 16px 18px 10px;
}

.place-summary-heading {
  min-width: 0;
}

.place-summary-heading h2 {
  margin: 0;
  color: var(--color-text-primary);
  font-size: 22px;
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.place-summary-heading p {
  display: flex;
  gap: 5px;
  align-items: center;
  min-width: 0;
  margin: 5px 0 0;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.35;
}

.place-summary-heading p svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  color: var(--color-text-tertiary);
}

.place-summary-heading p span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-summary-top-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: end;
  min-width: 0;
}

.place-category-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 112px;
  padding: 3px 9px;
  overflow: hidden;
  color: #3B6D11;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #EAF3DE;
  border: 1px solid #97C459;
  border-radius: var(--radius-pill);
}

.place-governance-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 132px;
  padding: 3px 9px;
  overflow: hidden;
  color: #7a3b00;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #fff0d6;
  border: 1px solid #f2bf65;
  border-radius: var(--radius-pill);
}

.place-governance-badge.candidate {
  color: #475569;
  background: #f8fafc;
  border-color: #cbd5e1;
}

.place-summary-top-actions .detail-more-button {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  color: var(--color-text-secondary);
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
}

.place-summary-top-actions .detail-more-button:hover,
.place-summary-top-actions .detail-more-button[aria-expanded="true"] {
  color: var(--color-text-primary);
  background: var(--color-background-secondary);
}

.place-summary-top-actions .detail-more-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.place-summary-photos {
  display: grid;
  grid-template-columns: minmax(156px, 178px) 48px;
  gap: 10px 12px;
  align-items: center;
  justify-content: start;
  padding: 0 18px 12px;
}

.place-summary-photos.empty {
  grid-template-columns: minmax(156px, 178px) 48px;
}

.place-summary-photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.place-summary-photo-main,
.place-summary-photo-empty {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.16;
  min-width: 0;
  overflow: hidden;
  background: var(--color-background-secondary);
  border: 1px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-md);
}

.place-summary-photo-add,
.place-summary-photo-empty {
  color: var(--color-text-secondary);
  font: inherit;
}

.place-summary-photo-add-wrap {
  display: grid;
  place-items: center;
  min-width: 0;
}

.place-summary-photo-add {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--color-border-secondary);
  border-radius: 10px;
  border-style: dashed;
}

.place-summary-photo-add span {
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
  color: var(--color-text-primary);
  font-size: 21px;
  font-weight: 750;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.place-summary-photo-add.is-full span {
  width: auto;
  height: auto;
  padding: 5px 8px;
  color: var(--color-text-tertiary);
  font-size: 12px;
  border-radius: var(--radius-pill);
}

.place-summary-photo-empty {
  align-content: center;
  gap: 5px;
  justify-items: center;
  min-height: 0;
  padding: 14px;
  border-style: dashed;
}

.place-summary-photo-empty svg {
  width: 24px;
  height: 24px;
}

.place-summary-photo-empty span {
  color: var(--color-text-tertiary);
  font-size: 12px;
  font-weight: 750;
}

.place-summary-photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.place-summary-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 18px 12px;
}

.place-summary-stats div {
  display: grid;
  align-content: center;
  min-height: 66px;
  min-width: 0;
  padding: 10px 12px;
  background: var(--color-background-secondary);
  border-radius: var(--border-radius-md);
}

.place-summary-stats span {
  color: var(--color-text-tertiary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.place-summary-stats strong {
  min-width: 0;
  margin-top: 4px;
  color: var(--color-text-primary);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.place-summary-stats div:first-child strong {
  color: var(--accent);
  font-size: 22px;
  line-height: 1.05;
}

.place-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
}

.place-summary-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  background: var(--color-background-secondary);
  border: 1px solid var(--color-border-tertiary);
  border-radius: 4px;
}

.place-summary-divider {
  height: 1px;
  background: var(--color-border-tertiary);
}

.place-summary-note {
  display: grid;
  gap: 10px;
  padding: 12px 18px;
}

.place-summary-note p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.place-summary-votes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 70px;
}

.place-summary-vote {
  display: inline-flex;
  flex-direction: row;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 70px;
  padding: 12px 8px;
  background: var(--color-background-primary);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.place-summary-vote + .place-summary-vote {
  border-left: 0.5px solid var(--color-border-secondary);
}

.place-summary-vote svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  color: currentColor;
}

.place-summary-vote .plate-icon {
  overflow: visible;
}

.place-summary-vote span {
  color: currentColor;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.15;
  white-space: nowrap;
}

.place-summary-vote small {
  color: var(--color-text-tertiary);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}

.place-summary-vote-good {
  color: #0F6E56;
}

.place-summary-vote-bad {
  color: #D12D3C;
}

.place-summary-vote:hover {
  background: var(--color-background-secondary);
}

.candidate-review-panel {
  display: grid;
  gap: 10px;
  padding: 12px 18px 14px;
  background: #fbfcfd;
  border-top: 1px solid var(--color-border-tertiary);
}

.candidate-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.candidate-review-head strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.candidate-review-head span {
  color: var(--color-text-tertiary);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.candidate-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--color-border-secondary);
  border-radius: 8px;
  background: var(--color-background-primary);
}

.candidate-review-grid div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 9px 8px;
}

.candidate-review-grid div + div {
  border-left: 1px solid var(--color-border-tertiary);
}

.candidate-review-grid span {
  color: var(--color-text-tertiary);
  font-size: 11px;
  font-weight: 750;
}

.candidate-review-grid strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.candidate-review-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.candidate-review-reasons span {
  padding: 5px 8px;
  color: #0F6E56;
  font-size: 12px;
  font-weight: 800;
  background: #EAF7F1;
  border: 1px solid #BFE6D2;
  border-radius: 999px;
}

.candidate-review-panel p {
  margin: 0;
  color: var(--color-text-tertiary);
  font-size: 12px;
  font-weight: 750;
}

.place-summary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 50px;
  background: var(--color-background-primary);
}

.place-summary-action {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 50px;
  padding: 10px 8px;
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  background: var(--color-background-primary);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.place-summary-action + .place-summary-action {
  border-left: 0.5px solid var(--color-border-secondary);
}

.place-summary-action svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: currentColor;
}

.place-summary-action span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-summary-action-google {
  color: #1A73E8;
}

.place-summary-action-save {
  color: var(--color-text-secondary);
}

.place-summary-action-save.active {
  color: var(--accent);
}

.place-summary-action:hover {
  background: var(--color-background-secondary);
}

.place-summary-action:disabled {
  color: var(--color-text-tertiary);
  cursor: not-allowed;
  opacity: 0.62;
}

.place-summary-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 8px 18px;
  background: var(--color-background-secondary);
}

.place-summary-footer-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.place-summary-footer span {
  color: var(--color-text-tertiary);
  font-size: 12px;
  font-weight: 700;
}

.place-summary-footer span::before {
  margin-right: 4px;
  content: "◷";
}

.place-summary-footer strong {
  flex: 0 0 auto;
  padding: 4px 9px;
  color: #BA7517;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  background: #FAEEDA;
  border-radius: var(--radius-pill);
}

.place-activity-toggle {
  display: grid;
  width: 26px;
  height: 26px;
  min-width: 26px;
  padding: 0;
  color: #8a5d49;
  place-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(223, 196, 181, 0.82);
  border-radius: 50%;
  cursor: pointer;
}

.place-activity-toggle svg {
  width: 15px;
  height: 15px;
  transition: transform 160ms ease;
}

.place-activity-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.place-activity-toggle:focus-visible {
  outline: 2px solid rgba(223, 81, 37, 0.32);
  outline-offset: 2px;
}

#placeDialog .detail-title-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

#placeDialog .detail-title-row .meta-row {
  align-items: center;
}

#placeDialog .detail-title-row h2 {
  font-size: 20px;
  line-height: 1.25;
}

#placeDialog .detail-title-row small {
  max-width: 100%;
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-top-actions {
  display: inline-flex;
  gap: 8px;
  align-items: flex-start;
}

.detail-top-actions .icon-button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  color: #475569;
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  backdrop-filter: none;
}

.detail-top-actions .icon-button:hover,
.detail-top-actions .icon-button[aria-expanded="true"] {
  color: #111827;
  background: #f3f4f6;
}

.detail-top-actions .icon-button svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-more-button svg {
  fill: currentColor;
  stroke: none;
}

.place-detail-more-menu {
  position: relative;
}

.place-detail-menu-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 4;
  display: grid;
  min-width: 148px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.place-detail-menu-panel[hidden] {
  display: none;
}

.place-detail-menu-panel button {
  min-height: 34px;
  padding: 0 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.place-detail-menu-panel button:hover {
  background: #faf7f8;
}

.place-photo-gallery {
  display: grid;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.place-photo-gallery h3,
.place-photo-gallery p {
  margin: 0;
}

.place-photo-gallery h3 {
  font-size: 15px;
}

.place-photo-gallery p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.place-photo-gallery .section-title-row > span {
  flex: 0 0 auto;
  padding: 3px 9px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius-pill);
}

.place-photo-list {
  position: relative;
  display: flex;
  gap: 10px;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.place-photo-list a {
  position: relative;
  flex: 0 0 clamp(96px, 28vw, 148px);
  aspect-ratio: 1;
  display: block;
  overflow: hidden;
  background: #faf7f8;
  border: 1px solid var(--line);
  border-radius: 12px;
  scroll-snap-align: start;
}

.place-photo-list img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.place-photo-caption {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.place-note-panel {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.place-note-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.place-note-panel p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.detail-actions button,
.detail-actions a {
  flex: 1;
  min-height: 44px;
}

.detail-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.detail-actions .map-link.is-disabled {
  color: var(--muted);
  cursor: not-allowed;
  background: #f7f0f2;
  border-color: var(--line);
  opacity: 0.78;
}

#placeDialog .price-report-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.place-comments {
  display: grid;
  gap: 0;
  margin: 0;
  overflow: visible;
  background: #fff;
  border-top: 1px solid #eadfe2;
}

.place-comments-divider {
  height: 12px;
  background: #f6f1f3;
  border-bottom: 1px solid #eadfe2;
}

.place-comments .comment-section-header {
  padding: 14px 18px 12px;
  background: #fff;
  border-bottom: 1px solid #eadfe2;
}

.place-comments .comment-section-header > div {
  display: grid;
  gap: 3px;
}

.place-comments .comment-section-header strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.place-comments .comment-section-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.place-comments .comment-login-prompt {
  margin: 0;
  padding: 10px 18px;
  background: #fff9fa;
  border: 0;
  border-bottom: 1px solid #eadfe2;
  border-radius: 0;
}

.place-comments .comment-empty {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.place-comments .comment-list {
  gap: 0;
  background: #fff;
}

.place-activity-section {
  display: grid;
  background: var(--color-background-secondary);
}

.place-revision-section {
  display: grid;
  background: #fff;
  border-top: 1px solid #eadfe2;
}

.place-activity-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 14px;
  background: var(--color-background-secondary);
  border-bottom: 1px solid #eadfe2;
}

.place-activity-tab {
  display: inline-flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 6px;
  color: #667085;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
}

.place-activity-tab strong {
  color: inherit;
  font-size: 13px;
  font-weight: 950;
}

.place-activity-tab.active {
  color: #df5125;
  border-bottom-color: #df5125;
}

.place-activity-tab:focus-visible {
  outline: 2px solid rgba(223, 81, 37, 0.32);
  outline-offset: -4px;
}

.place-activity-content {
  display: grid;
  min-height: 86px;
  background: var(--color-background-secondary);
}

.place-activity-empty {
  display: grid;
  gap: 4px;
  padding: 18px;
  background: #fff;
  border-bottom: 1px solid #f0e7ea;
}

.place-activity-empty strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.place-activity-empty span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.place-revision-section .comment-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
  background: #fff;
  border-bottom: 1px solid #eadfe2;
}

.place-revision-section .comment-section-header > div {
  display: flex;
  width: 100%;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.place-revision-section .comment-section-header strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.place-revision-section .comment-section-header span {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.place-revision-timeline {
  display: grid;
  gap: 0;
}

.place-revision-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #f0e7ea;
}

.place-revision-item div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.place-revision-item strong {
  font-size: 13px;
  color: var(--ink);
}

.place-revision-item span,
.place-revision-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.place-pending-section {
  background: #fff;
}

.place-viewer-pending-note {
  display: grid;
  gap: 4px;
  margin: 12px 14px 0;
  padding: 12px;
  background: #fff8ec;
  border: 1px solid #f3c983;
  border-radius: 8px;
}

.place-viewer-pending-note strong {
  color: #8a4a00;
  font-size: 13px;
  font-weight: 900;
}

.place-viewer-pending-note span,
.place-viewer-pending-note small {
  color: #77522a;
  font-size: 12px;
  line-height: 1.4;
}

.place-pending-list {
  display: grid;
  gap: 8px;
  padding: 12px 14px 14px;
}

.place-pending-item {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #f3cfb9;
  border-radius: 8px;
  background: #fff7f1;
}

.place-pending-item.place-revision-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
}

.place-pending-item-header {
  display: flex;
  width: 100%;
  min-width: 0;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.place-pending-item-header strong {
  flex: 1 1 auto;
  min-width: 0;
  color: #9a3f15;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.place-pending-item-header time {
  flex: 0 0 auto;
  margin-left: auto;
  color: #7f5947;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
}

.place-pending-diff-list {
  display: grid;
  gap: 7px;
}

.place-pending-diff-row {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid #f5d8c7;
}

.place-pending-diff-values {
  display: flex !important;
  width: fit-content;
  max-width: 100%;
  column-gap: 10px;
  align-items: center;
  justify-content: flex-start;
  justify-self: start;
}

.place-pending-diff-values p {
  min-width: auto;
  max-width: min(138px, 42vw);
  margin: 0;
  color: #6f4d3c;
  font-size: 12px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-pending-diff-row.expanded .place-pending-diff-values {
  align-items: center;
}

.place-pending-diff-row.expanded .place-pending-diff-values p {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.place-pending-diff-values i {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  color: #df5125;
  font-size: 15px;
  font-style: normal;
  font-weight: 950;
  line-height: 1.2;
  text-align: center;
}

.place-pending-diff-toggle {
  justify-self: start;
  padding: 0;
  color: #df5125;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.place-pending-diff-more {
  color: #8a5d49;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.place-edit-dialog,
.place-report-dialog,
.place-photo-dialog {
  position: fixed;
  inset: 12px;
  width: min(420px, calc(100vw - 24px));
  height: min(760px, calc(100dvh - 24px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overscroll-behavior: contain;
}

.place-edit-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e1e6ee;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(26, 28, 31, 0.2);
}

.place-edit-panel header,
.place-edit-panel menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 14px 16px;
  background: #fff;
}

.place-edit-panel header {
  border-bottom: 1px solid #eef1f5;
}

.place-edit-panel header strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.place-edit-panel menu {
  flex-wrap: wrap;
  border-top: 1px solid #eef1f5;
}

.place-edit-submit-status {
  flex: 1 0 100%;
  margin: 0;
  color: #7a4b00;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.place-edit-scroll {
  display: grid;
  gap: 14px;
  min-height: 0;
  padding: 14px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.place-edit-panel label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.place-edit-panel input,
.place-edit-panel textarea,
.place-edit-panel select {
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
}

.place-edit-panel textarea {
  min-height: 88px;
  resize: vertical;
}

.place-edit-selected,
.place-report-hint {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: var(--color-background-secondary);
  border-radius: 8px;
}

.place-edit-selected span,
.place-edit-selected small,
.place-report-hint span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.place-edit-selected strong,
.place-report-hint strong {
  color: var(--ink);
  font-size: 14px;
}

.place-edit-check-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e2e7ef;
  border-radius: 8px;
}

.place-edit-photo-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2e7ef;
  border-radius: 8px;
}

.place-edit-photo-head {
  display: flex;
  gap: 10px;
  align-items: start;
  justify-content: space-between;
}

.place-edit-photo-head strong,
.place-edit-photo-head span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

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

.place-edit-photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.place-edit-photo-item,
.place-edit-photo-add {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

.place-edit-photo-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.place-edit-photo-item button {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 8px;
  color: #c9362c;
  font-size: 12px;
  font-weight: 850;
  background: #fff0ef;
  border: 1px solid #ffd2ce;
  border-radius: 8px;
}

.place-edit-photo-item button span {
  font-size: 16px;
  line-height: 1;
}

.place-edit-photo-add {
  place-items: center;
  aspect-ratio: 1;
  padding: 10px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  background: #fff;
  border: 1px dashed #cfd7e4;
  border-radius: 8px;
}

.place-edit-photo-add svg {
  width: 24px;
  height: 24px;
}

.place-edit-photo-add span {
  color: var(--ink);
  font-size: 12px;
}

.place-edit-check-panel strong {
  font-size: 13px;
}

.place-edit-check-panel small {
  color: var(--muted);
  font-size: 12px;
}

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

.place-edit-check-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.place-edit-check-grid label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-weight: 750;
}

.place-edit-check-grid input {
  width: 20px;
  min-height: 20px;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.place-edit-check-grid span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.place-edit-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 10px;
}

.place-report-scroll,
.place-photo-scroll {
  align-content: start;
}

.place-photo-upload-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.place-photo-upload-picker span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 850;
  background: var(--accent-light);
  border: 1.5px solid var(--accent-mid);
  border-radius: var(--radius);
}

.place-photo-upload-preview {
  display: grid;
  gap: 10px;
}

.place-photo-upload-preview[hidden] {
  display: none;
}

.place-report-panel textarea {
  min-height: 114px;
  resize: vertical;
}

.place-report-hint button {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 900;
}

@media (max-width: 480px) {
  .place-edit-dialog,
  .place-report-dialog,
  .place-photo-dialog {
    inset: 10px;
    width: calc(100vw - 20px);
    height: calc(100dvh - 20px);
  }

  .place-edit-price-row,
  .place-edit-check-grid,
  .place-edit-check-grid.compact {
    grid-template-columns: 1fr;
  }

  .place-edit-photo-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.detail-dialog.place-submit-result-dialog {
  position: fixed;
  inset: 0;
  width: min(360px, calc(100vw - 28px));
  height: fit-content;
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 16px;
  background: transparent;
}

.place-submit-result-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: #fff;
  border: 1px solid #e1e6ee;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(26, 28, 31, 0.2);
}

.place-submit-result-panel strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.place-submit-result-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.place-submit-result-details {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.place-submit-result-details dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.place-submit-result-details div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
}

.place-submit-result-details dt {
  color: var(--muted);
  font-weight: 800;
}

.place-submit-result-details dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.place-submit-result-reasons {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: #9a3412;
  font-size: 12px;
  line-height: 1.45;
}

.place-submit-result-fallback {
  color: #9a3412;
}

.place-submit-result-panel menu {
  display: flex;
  justify-content: flex-end;
  margin: 4px 0 0;
  padding: 0;
}

.detail-dialog.vote-reason-dialog {
  position: fixed;
  inset: 0;
  width: min(390px, calc(100vw - 28px));
  height: fit-content;
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 16px;
  background: transparent;
}

.vote-reason-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e1e6ee;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(26, 28, 31, 0.2);
}

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

.vote-reason-panel header strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.vote-reason-options {
  display: grid;
  gap: 8px;
}

.vote-reason-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 11px;
  background: #fbfcfd;
  border: 1px solid var(--color-border-secondary);
  border-radius: 8px;
  cursor: pointer;
}

.vote-reason-option input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.vote-reason-option span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.vote-reason-panel menu {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.comment-item {
  padding: 12px;
  background: #faf7f8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.comment-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.comment-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-strong);
}
.comment-time {
  color: var(--muted);
  font-size: 12px;
}
.comment-body {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.comment-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.place-comment-thread {
  display: grid;
  gap: 0;
  background: #fff;
  border-bottom: 1px solid #eadfe2;
}

.place-comment-item.comment-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 18px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.place-comment-item.child {
  margin-left: 0;
  padding-left: 46px;
  background: #fbf8f9;
  border-top: 1px solid #f0e6e8;
  border-left: 0;
}

.comment-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  place-items: center;
  background: #778294;
  border-radius: 50%;
}

.comment-content {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.comment-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.comment-meta-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-meta-row time {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.comment-more-menu {
  position: relative;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.comment-more-menu > .comment-more-button {
  display: grid;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(60, 20, 28, 0.08);
}

.comment-more-menu > .comment-more-button svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.comment-more-menu > .comment-more-button:hover,
.comment-more-menu > .comment-more-button[aria-expanded="true"] {
  color: var(--ink);
  background: #fff7f9;
  border-color: var(--accent-mid);
}

.place-comments .comment-more-menu > .comment-more-button {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  color: #64748b;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.place-comments .comment-more-menu > .comment-more-button:hover,
.place-comments .comment-more-menu > .comment-more-button[aria-expanded="true"] {
  color: var(--ink);
  background: transparent;
}

.comment-item p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.comment-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.comment-actions-row button {
  min-height: 28px;
  padding: 0 9px;
  color: var(--muted);
  font-size: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: none;
}

.place-comments .comment-actions-row {
  gap: 13px;
}

.place-comments .comment-actions-row button {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  height: 22px;
  min-height: 22px;
  padding: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.place-comments .comment-actions-row button:hover,
.place-comments .comment-actions-row button:focus-visible {
  color: var(--ink);
  background: transparent;
}

.place-comments .comment-actions-row button:focus-visible {
  outline: 2px solid rgba(216, 90, 48, 0.22);
  outline-offset: 2px;
}

.comment-like-button {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.comment-like-icon {
  width: 14px;
  height: 14px;
}

.comment-like-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linejoin: round;
}

.comment-bubble-icon {
  width: 14px;
  height: 14px;
}

.comment-bubble-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.comment-like-button.liked {
  color: #d12d3c;
  background: transparent;
  border-color: transparent;
}

.comment-like-button.liked .comment-like-icon path {
  fill: currentColor;
}

.place-child-comments,
.place-child-list {
  display: grid;
  gap: 8px;
}

.place-fixed-comment-form {
  display: grid;
  gap: 8px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 28px rgba(60, 20, 28, 0.1);
  backdrop-filter: blur(12px);
}

.place-reply-target {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius);
}

.place-reply-target button {
  min-height: 24px;
  padding: 0 8px;
}

.place-comment-composer-inner {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 46px;
}

.place-comment-identity-menu-wrap {
  position: relative;
}

.place-comment-avatar-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  background: #778294;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(37, 45, 58, 0.18);
  cursor: pointer;
}

.place-comment-avatar-button.public {
  background: var(--accent);
}

.place-comment-avatar-button.anonymous {
  background: #778294;
}

.place-comment-avatar-button:focus-visible {
  outline: 3px solid rgba(216, 90, 48, 0.24);
  outline-offset: 2px;
}

.place-comment-identity-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  z-index: 5;
  display: grid;
  width: 218px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d8cacc;
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(26, 33, 44, 0.18);
}

.place-comment-identity-option {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 9px 10px;
  color: #2f2427;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #f0e4e6;
  cursor: pointer;
}

.place-comment-identity-option:last-child {
  border-bottom: 0;
}

.place-comment-identity-option.active,
.place-comment-identity-option:hover {
  background: #faf1f3;
}

.place-comment-option-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  background: var(--accent);
  border-radius: 50%;
}

.place-comment-option-avatar.anonymous {
  background: #778294;
}

.place-comment-identity-option strong,
.place-comment-identity-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-comment-identity-option strong {
  font-size: 13px;
  font-weight: 850;
}

.place-comment-identity-option small {
  margin-top: 2px;
  color: #77686c;
  font-size: 12px;
}

.place-fixed-comment-form textarea {
  width: 100%;
  min-height: 42px;
  height: 42px;
  max-height: 96px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  resize: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  overflow: hidden;
  white-space: nowrap;
}

.place-fixed-comment-form textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(216, 90, 48, 0.14);
}

.place-fixed-comment-form textarea::placeholder {
  color: #8b7f83;
  font-size: 13px;
  text-overflow: ellipsis;
}

.place-fixed-comment-form .primary-action {
  min-width: 72px;
  height: 42px;
  min-height: 42px;
  padding: 0 16px;
  white-space: nowrap;
}

.comment-report-menu {
  position: absolute;
  z-index: 10;
  right: 0;
  min-width: 140px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.comment-report-menu button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 13px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.comment-report-menu button:hover {
  background: var(--accent-light);
}
.comment-report-menu button:last-child {
  border-bottom: 0;
}

/* -- Admin page -- */
.admin-page {
  background: #faf5f6;
  min-height: 100dvh;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 28px;
  background: #fff;
  border-bottom: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.admin-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.admin-header h1 {
  margin: 4px 0 0;
  font-size: 22px;
}

.admin-shell {
  display: grid;
  gap: 18px;
  max-width: 1120px;
  padding: 28px;
  margin: 0 auto;
}

.admin-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

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

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

.review-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.review-summary-card {
  padding: 16px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: inherit;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.review-summary-card:hover {
  border-color: var(--accent-mid);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.review-summary span,
.review-summary-card span {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}
.review-summary small,
.review-summary-card small {
  color: var(--muted);
  font-size: 13px;
}

.admin-domain-tabs {
  position: sticky;
  top: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  overflow-x: auto;
  background: rgba(250, 245, 246, 0.94);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.admin-domain-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.admin-domain-tab span {
  min-width: 26px;
  padding: 3px 8px;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  background: var(--accent);
  border-radius: 999px;
}

.admin-domain-tab:hover,
.admin-domain-tab.active {
  color: var(--accent-strong);
  border-color: var(--accent-mid);
  box-shadow: var(--shadow-sm);
}

.admin-domain-tab.active {
  background: #fff7f4;
}

.admin-tabs {
  position: sticky;
  top: 74px;
  z-index: 20;
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
  background: rgba(250, 245, 246, 0.92);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.admin-section-tabs {
  margin-top: -8px;
}

.admin-tabs::-webkit-scrollbar {
  height: 0;
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.admin-tab:hover,
.admin-tab.active {
  color: var(--accent-strong);
  border-color: var(--accent-mid);
}

.admin-tab.active {
  background: var(--accent-light);
  box-shadow: inset 0 0 0 1px rgba(31, 111, 235, 0.08);
}

.admin-tab span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  background: var(--accent);
  border-radius: 999px;
}

.admin-user-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  color: var(--accent-strong);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  background: #fff7f4;
  border: 1px solid var(--accent-mid);
  border-radius: 999px;
  cursor: pointer;
}

.admin-user-chip:hover {
  box-shadow: var(--shadow-sm);
}

.admin-user-chip.muted {
  color: var(--muted);
  background: #f8f6f6;
  border-color: var(--line);
  cursor: default;
}

.admin-reporter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-user-card-dialog {
  width: min(720px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}

.admin-user-card-dialog::backdrop {
  background: rgba(20, 16, 16, 0.36);
}

.admin-user-card {
  max-height: min(760px, calc(100dvh - 32px));
  overflow: auto;
  background: #fff;
}

.admin-user-card-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.admin-user-card-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-user-card-header h2 {
  margin: 3px 0 0;
  font-size: 20px;
}

.admin-user-card-body {
  display: grid;
  gap: 16px;
  padding: 18px 20px 22px;
}

.admin-user-card-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.admin-user-card-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  color: #fff;
  font-weight: 900;
  background: var(--accent);
  border-radius: 50%;
  place-items: center;
}

.admin-user-card-profile strong,
.admin-user-card-profile span {
  display: block;
}

.admin-user-card-profile span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.admin-user-card-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.admin-user-card-metrics.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-user-card-metrics div {
  padding: 10px;
  background: #faf7f7;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.admin-user-card-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.admin-user-card-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.admin-user-card-section h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.admin-user-card-timeline {
  display: grid;
  gap: 8px;
}

.admin-user-card-timeline article {
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.admin-user-card-timeline strong,
.admin-user-card-timeline span,
.admin-user-card-timeline small {
  display: block;
}

.admin-user-card-timeline span {
  margin-top: 3px;
  color: var(--text);
}

.admin-user-card-timeline small,
.admin-user-card-empty,
.admin-user-card-loading {
  color: var(--muted);
  font-size: 13px;
}

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

.admin-tab-panel[hidden] {
  display: none;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.admin-overview-card {
  display: grid;
  gap: 8px;
  min-height: 142px;
  padding: 16px;
  text-align: left;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.admin-overview-card:hover {
  border-color: var(--accent-mid);
}

.admin-overview-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.admin-overview-card strong {
  color: var(--accent);
  font-size: 34px;
  line-height: 1;
}

.admin-overview-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-workspace-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 160px 160px;
  gap: 10px;
  align-items: end;
  padding: 12px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.admin-workspace-tools label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-workspace-tools span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-workspace-tools input,
.admin-workspace-tools select {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  color: var(--ink);
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-filter-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  color: #6b4b00;
  background: #fff6df;
  border: 1px solid #f4c76b;
  border-radius: var(--radius);
}

.admin-filter-notice span {
  font-size: 13px;
  font-weight: 800;
}

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

.submission-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

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

.submission-card-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.submission-card-header h3 {
  margin: 6px 0 0;
  font-size: 17px;
}

.review-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e9f2ff;
  color: #0f4f92;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.status-pill.muted-pill {
  background: #f3f4f6;
  color: #5f6875;
}

.status-pill.warning-pill {
  background: #fff4dc;
  color: #8a5600;
}

.submission-card.is-hidden-place {
  opacity: 0.72;
}

.admin-support-ticket-body {
  margin: 12px 0;
  padding: 12px;
  color: #303746;
  line-height: 1.65;
  white-space: pre-wrap;
  background: #f7f8fa;
  border: 1px solid #e7e9ef;
  border-radius: 10px;
}

.audit-event-card {
  border-left: 3px solid rgba(37, 99, 235, 0.75);
}

.candidate-admin-summary {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.candidate-admin-summary strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.candidate-admin-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.submission-report-detail {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid #d8e7f6;
  border-radius: 8px;
}

.submission-report-detail > strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.submission-item {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}

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

.submission-meta div {
  padding: 10px;
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius);
}

.submission-meta strong {
  display: block;
  font-size: 17px;
  color: var(--accent-strong);
}
.submission-meta span {
  color: var(--muted);
  font-size: 12px;
}

.admin-diff-list {
  display: grid;
  gap: 6px;
  padding: 10px;
  background: #fbfcfd;
  border: 1px solid #e5e9ef;
  border-radius: var(--radius);
}

.admin-diff-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 28px;
  font-size: 12px;
}

.admin-diff-row strong {
  color: var(--ink);
}

.admin-diff-row span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
}

.admin-diff-row em {
  color: var(--accent);
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.pending-change-card {
  border-color: #f4c76b;
}

.revision-card {
  border-color: #cdd9ea;
}

/* -- Bang page -- */
.bang-page {
  background: #f7f8f9;
}

.bang-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 260px;
  min-height: 100dvh;
}

.bang-rank-panel {
  padding: 22px 18px;
  background: #fff;
  border-right: 1px solid #f0f1f3;
  overflow-y: auto;
}

.bang-rank-panel .brand-lockup {
  margin-bottom: 18px;
}

.bang-contributor-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.bang-contributor-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.bang-contributor-rank {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}

.bang-contributor-name {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bang-contributor-score {
  font-size: 12px;
  color: var(--accent-strong);
  font-weight: 700;
}

.bang-main {
  min-width: 0;
  padding: 0;
}

.bang-top-stack {
  position: sticky;
  top: 0;
  z-index: 120;
  background: #fff;
  border-bottom: 1px solid #f2f2f2;
}

.bang-top-stack .bang-header,
.bang-top-stack .bang-category-tabs,
.bang-top-stack .bang-sort-tabs {
  position: static;
  top: auto;
}

.bang-top-stack .bang-header {
  z-index: auto;
}

.bang-top-stack .bang-category-tabs,
.bang-top-stack .bang-sort-tabs {
  z-index: auto;
}

.bang-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: #fff;
  border-bottom: 0;
}

.bang-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2px;
}

.bang-back-link:hover {
  color: var(--accent);
}

.bang-header h1 {
  margin: 0;
  color: #1a1a1a;
  font-size: 22px;
  font-weight: 800;
}

.bang-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bang-search-disclosure {
  display: contents;
}

.bang-search-toggle {
  display: none;
}

.bang-search-toggle::-webkit-details-marker {
  display: none;
}

.bang-header-actions .icon-button {
  width: 40px;
  height: 40px;
  color: #666;
  background: #f8f9fa;
  border-color: transparent;
  border-radius: 16px;
  box-shadow: none;
}

.bang-header-actions .icon-button:hover {
  color: var(--accent);
  background: #fce8e6;
  border-color: transparent;
}

/* -- Bang category tabs -- */
.bang-category-tabs {
  position: sticky;
  top: 69px;
  z-index: 90;
  display: flex;
  gap: 6px;
  padding: 10px 18px;
  overflow-x: auto;
  background: #fff;
  scrollbar-width: none;
}

.bang-category-tabs::-webkit-scrollbar {
  display: none;
}

.bang-category-tab {
  flex-shrink: 0;
  min-height: 30px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 650;
  color: #666;
  background: #f8f9fa;
  border: 0;
  border-radius: var(--radius-pill);
  transition: all 0.15s;
}

.bang-category-tab:hover {
  color: var(--accent);
  background: #fce8e6;
  border-color: transparent;
}
.bang-category-tab.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.bang-sort-tabs {
  position: sticky;
  top: 123px;
  z-index: 88;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 18px;
  background: #fff;
  border-bottom: 1px solid #f2f2f2;
}

.bang-sort-tabs button {
  position: relative;
  min-height: 42px;
  color: #666;
  font-size: 14px;
  font-weight: 650;
  background: transparent;
  border: 0;
}

.bang-sort-tabs button::after {
  position: absolute;
  right: 24px;
  bottom: 0;
  left: 24px;
  height: 2px;
  content: "";
  background: transparent;
  border-radius: var(--radius-pill);
}

.bang-sort-tabs button:hover {
  color: #1a1a1a;
}

.bang-sort-tabs button.active {
  color: #1a1a1a;
}

.bang-sort-tabs button.active::after {
  background: var(--accent);
}

/* -- Bang search -- */
.bang-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: min(280px, 30vw);
  padding: 0;
}

.bang-search-row input {
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  color: #1a1a1a;
  border: 0;
  border-radius: 16px;
  background: #f8f9fa;
  transition: border-color 0.15s;
}

.bang-search-row input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(216, 90, 48, 0.12);
}

.bang-search-row .deal-search-placeholder {
  display: none;
}

/* -- Bang hot section -- */
.bang-hot-section {
  padding: 10px 18px 12px;
  background: #fff;
  border-bottom: 1px solid #f2f2f2;
}

.bang-hot-section[hidden] {
  display: none;
}

.bang-section-heading,
.bang-list-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.bang-section-heading strong,
.bang-list-heading strong {
  font-size: 14px;
  font-weight: 750;
}
.bang-section-heading span,
.bang-list-heading span {
  color: var(--muted);
  font-size: 13px;
}

.bang-featured-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
}

.bang-featured-toggle {
  display: inline-grid;
  width: 26px;
  height: 26px;
  margin-left: auto;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.bang-featured-toggle:hover {
  color: var(--ink);
  background: #f8f9fa;
}

.bang-featured-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  transition: transform 0.16s ease;
}

.bang-featured-toggle.collapsed svg {
  transform: rotate(180deg);
}

.bang-hot-list {
  display: grid;
  grid-auto-columns: minmax(260px, 76%);
  grid-auto-flow: column;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
}

.bang-hot-list::-webkit-scrollbar {
  display: none;
}

.bang-hot-open {
  display: grid;
  grid-template-rows: auto auto auto;
  position: relative;
  width: 100%;
  height: 76px;
  padding: 9px 10px 8px;
  text-align: left;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid #edf0f2;
  border-radius: var(--radius);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.bang-hot-open:hover {
  border-color: #f4c8c4;
  box-shadow: 0 4px 14px rgba(216, 90, 48, 0.08);
}

.bang-hot-author {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bang-hot-author .level-pill {
  flex: 0 0 auto;
  min-height: 16px;
  padding: 0 5px;
  font-size: 9px;
}

.bang-hot-category {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-strong);
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}

.bang-hot-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 6px;
  text-align: left;
}

.bang-hot-stats {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.bang-hot-open > strong {
  display: block;
  overflow: hidden;
  margin: 0 0 4px;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bang-hot-open > p {
  overflow: hidden;
  margin: 0 0 5px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bang-hot-meta,
.bang-hot-metrics {
  display: flex;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}

.bang-hot-meta .bang-author-link,
.bang-hot-meta .bang-author-static {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.bang-hot-meta {
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bang-hot-metrics {
  gap: 10px;
  margin-top: 0;
  font-weight: 700;
}

.bang-hot-metrics span {
  display: inline-flex;
  min-width: 0;
  gap: 4px;
  align-items: center;
}

.bang-hot-metric {
  color: #666;
}

.bang-hot-metric.like-action.active {
  color: #d12d3c;
}

.bang-hot-metrics svg {
  width: 12px;
  height: 12px;
}

/* -- Bang thread list -- */
.bang-list-heading {
  padding: 14px 18px 6px;
}

.bang-thread-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: #f2f2f2;
  border-top: 1px solid #f2f2f2;
  border-bottom: 1px solid #f2f2f2;
}

.bang-thread-card {
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
}

.bang-thread-card[data-thread-card-url] {
  cursor: pointer;
}

.bang-thread-card:hover {
  background: #fffafa;
}

.bang-thread-open {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: 100%;
  min-width: 0;
  min-height: 116px;
  padding: 14px 14px 8px;
  text-align: left;
  color: inherit;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background 0.12s;
}

.bang-thread-open:focus-visible {
  outline: 2px solid var(--accent-mid);
  outline-offset: -2px;
}

.bang-thread-card.has-thumb {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0 10px;
  padding: 14px;
}

.bang-thread-card.has-thumb .bang-thread-open {
  grid-column: 1;
  grid-row: 1;
  min-height: 0;
  padding: 0;
}

.bang-thread-thumb {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  width: 112px;
  height: 112px;
  border: 0;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f5f7fa;
}

.bang-thread-content {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.bang-thread-head {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.bang-thread-head .bang-author-link,
.bang-thread-head .bang-author-static {
  overflow: hidden;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.15;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-meta-row .place-comment-author-link {
  flex: 0 1 auto;
  color: var(--ink);
  text-decoration: none;
}

.comment-meta-row .place-comment-author-link:hover,
.comment-meta-row .place-comment-author-link:focus-visible,
.comment-meta-row .place-comment-author-link:active {
  color: #0c447c;
  text-decoration: none;
}

.bang-thread-head .bang-author-link {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.bang-thread-head .bang-author-link:hover,
.bang-thread-head .bang-author-link:focus-visible {
  color: #0c447c;
  outline: none;
}

.bang-thread-category-text {
  overflow: hidden;
  color: #666;
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bang-thread-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.bang-thread-title-row strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  overflow-wrap: anywhere;
}

.bang-thread-category {
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: #fce8e6;
  border: 1px solid #f4c8c4;
  border-radius: var(--radius-pill);
}

.bang-thread-content p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
  text-overflow: ellipsis;
  text-align: left;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bang-thread-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  white-space: nowrap;
}

.bang-thread-meta span,
.bang-thread-meta time {
  overflow: hidden;
  text-overflow: ellipsis;
}

.bang-thread-tags {
  display: flex;
  gap: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.bang-thread-tags span {
  flex: 0 0 auto;
  padding: 1px 7px;
  color: #666;
  background: #f8f9fa;
  border: 0;
  border-radius: var(--radius-pill);
}

.bang-thread-tag {
  padding: 1px 7px;
  font-size: 11px;
  color: #666;
  background: #f8f9fa;
  border: 0;
  border-radius: var(--radius-pill);
}

.bang-thread-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  align-items: center;
  justify-content: start;
  gap: 12px;
  padding: 0 14px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #666;
}

.bang-thread-card.has-thumb .bang-thread-stats {
  grid-column: 1;
  grid-row: 2;
  padding: 8px 0 0;
}

.bang-thread-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  height: 24px;
  padding: 0;
  color: #666;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.bang-thread-action:hover {
  color: #4b5563;
}

.bang-thread-action.like-action.active {
  color: #d12d3c;
}

.bang-thread-action.active:not(.like-action) {
  color: var(--accent);
}

.bang-thread-stats svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  pointer-events: none;
}

/* -- Bang side panel -- */
.bang-side-panel {
  padding: 18px;
  display: grid;
  gap: 14px;
  align-content: start;
  border-left: 1px solid #f0f1f3;
  overflow-y: auto;
}

.bang-side-card {
  padding: 14px;
  background: #fff;
  border: 1px solid #edf0f2;
  border-radius: var(--radius);
}

.bang-side-card strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}
.bang-side-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.bang-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bang-tag-pill {
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-strong);
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.12s;
}

.bang-tag-pill:hover {
  background: var(--accent-mid);
}

.bang-ad-slot {
  padding: 14px;
  background: #faf7f8;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.bang-ad-slot span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.bang-ad-slot strong {
  font-size: 13px;
  color: var(--ink);
}

/* -- Bang composer / detail dialogs -- */
.bang-composer-dialog,
.bang-detail-dialog,
.bang-profile-dialog {
  border-radius: var(--radius-lg);
}

.bang-detail {
  padding: 22px;
  max-height: calc(100dvh - 28px);
  overflow: auto;
}

.bang-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.bang-detail-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.bang-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.bang-detail-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 18px;
}

.bang-detail-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}

.bang-detail-action {
  width: auto;
  min-width: 42px;
  padding: 0 9px;
}

.bang-detail-action svg {
  width: 15px;
  height: 15px;
}

.bang-reply-form {
  position: sticky;
  bottom: 0;
  display: grid;
  gap: 8px;
  padding: 12px 0 0;
  background: #fff;
  border-top: 1px solid var(--line);
}

.bang-reply-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

/* -- Bang profile -- */
.bang-profile-panel {
  padding: 22px;
  max-height: calc(100dvh - 28px);
  overflow: auto;
}

.bang-profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.bang-profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #fff;
  font-weight: 800;
}

.bang-profile-info strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
}
.bang-profile-info span {
  color: var(--muted);
  font-size: 13px;
}

.bang-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.bang-profile-stats div {
  padding: 12px;
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius);
  text-align: center;
}

.bang-profile-stats strong {
  display: block;
  font-size: 20px;
  color: var(--accent-strong);
}
.bang-profile-stats span {
  color: var(--muted);
  font-size: 12px;
}

.bang-profile-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 1.5px solid var(--line);
  padding-bottom: 8px;
}

.bang-profile-tabs button {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  transition: all 0.15s;
}

.bang-profile-tabs button.active {
  color: var(--accent-strong);
  background: var(--accent-light);
}

.bang-author-link {
  color: #16649a;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.bang-author-link:hover,
.bang-author-link:focus-visible {
  color: #0c447c;
  outline: none;
}

.public-profile-header .bang-profile-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.public-profile-header .bang-profile-info p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.public-card-header {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 38px;
  gap: 12px;
  align-items: start;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.public-card-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  background: #b32638;
  border-radius: 50%;
}

.public-card-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.public-card-title > span {
  color: #16649a;
  font-size: 12px;
  font-weight: 800;
}

.public-card-title > strong {
  overflow: hidden;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-card-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.public-activity-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  margin-bottom: 14px;
  background: #eaf6ff;
  border: 1px solid #c7e3f5;
  border-radius: 8px;
}

.public-activity-head {
  display: flex;
  gap: 10px;
  align-items: start;
  justify-content: space-between;
}

.public-activity-head strong {
  display: block;
  font-size: 17px;
  font-weight: 900;
}

.public-activity-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.public-activity-head > span {
  flex: 0 0 auto;
  padding: 5px 10px;
  color: #0c447c;
  font-size: 12px;
  font-weight: 900;
  background: #d5ecff;
  border-radius: var(--radius-pill);
}

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

.public-metric-grid div {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid #d5e2eb;
  border-radius: 6px;
}

.public-metric-grid span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-metric-grid strong {
  flex: 0 0 auto;
  font-size: 17px;
}

.public-profile-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.public-profile-activity,
.bang-profile-post > button {
  position: relative;
}

.public-profile-activity {
  display: grid;
  gap: 5px;
  min-height: 74px;
  padding: 12px 72px 12px 12px;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.public-profile-activity strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-profile-activity small {
  color: var(--muted);
  font-size: 12px;
}

.public-profile-activity p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #344054;
  font-size: 13px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.public-profile-activity em,
.bang-profile-post em {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 8px;
  color: #16649a;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  background: #e7f5ff;
  border: 1px solid #9bd4ff;
  border-radius: var(--radius-pill);
}

.bang-profile-post > button {
  padding-right: 72px;
}

.account-public-profile-dialog,
.public-profile-card-dialog {
  width: min(430px, calc(100vw - 20px));
  max-height: calc(100dvh - 20px);
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 18px;
}

.account-public-profile-dialog::backdrop,
.public-profile-card-dialog::backdrop {
  background: rgba(15, 18, 26, 0.52);
}

.account-public-profile-panel,
.public-profile-card-dialog .bang-profile-panel {
  max-height: calc(100dvh - 20px);
  padding: 0;
  overflow: auto;
  background: #fff;
}

.public-profile-card-shell {
  --public-profile-card-header: 216px;
  min-height: min(720px, calc(100dvh - 20px));
  color: #141821;
  background: linear-gradient(
    #eceff4 0 var(--public-profile-card-header),
    #fff var(--public-profile-card-header) 100%
  );
}

.public-profile-card-hero {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 38px;
  gap: 14px;
  align-items: center;
  min-height: 142px;
  padding: 24px 16px 26px;
  background: #eceff4;
}

.public-profile-card-avatar {
  display: grid;
  width: 64px;
  height: 64px;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
  place-items: center;
  background: var(--accent);
  border-radius: 50%;
}

.public-profile-card-identity {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.public-profile-card-identity > span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.public-profile-card-name-row {
  display: flex;
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.public-profile-card-name-row strong {
  min-width: 0;
  overflow: hidden;
  color: #10131a;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-profile-card-name-row .level-pill {
  flex: 0 0 auto;
  min-height: 18px;
  padding: 2px 6px;
  font-size: 10px;
}

.public-profile-card-identity p {
  margin: 0;
  color: #596174;
  font-size: 13px;
  line-height: 1.35;
}

.public-profile-card-close {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #303746;
  font-size: 15px;
  font-weight: 650;
  place-items: center;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(18, 24, 33, 0.12);
  cursor: pointer;
}

.public-profile-card-close:hover {
  color: var(--accent);
}

.public-profile-card-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 6px 16px 14px;
  background: #eceff4;
}

.public-profile-card-mode-tabs button {
  min-width: 0;
  min-height: 38px;
  color: #596174;
  font-size: 14px;
  font-weight: 900;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 10px;
  cursor: pointer;
}

.public-profile-card-mode-tabs button.active {
  color: var(--accent);
  border-color: var(--accent-mid);
  box-shadow: 0 0 0 1px rgba(216, 90, 48, 0.08), 0 0 8px rgba(216, 90, 48, 0.08);
}

.public-profile-card-content {
  overflow: hidden;
  background: #fff;
  border-radius: 18px 18px 0 0;
}

.public-profile-card-tabs {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(86px, 1fr);
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid #e6e8ee;
  scrollbar-width: none;
}

.public-profile-card-tabs::-webkit-scrollbar {
  display: none;
}

.public-profile-card-tabs button {
  position: relative;
  min-width: 0;
  min-height: 48px;
  padding: 0 10px;
  overflow: hidden;
  color: #657084;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.public-profile-card-tabs button.active {
  color: var(--accent);
}

.public-profile-card-tabs button.active::after {
  position: absolute;
  right: 16px;
  bottom: 0;
  left: 16px;
  height: 2px;
  content: "";
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}

.public-profile-card-scope-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: initial;
}

.public-profile-card-feed {
  display: grid;
  align-content: start;
  gap: 0;
  min-height: 300px;
  padding: 0 8px 18px;
}

.map-public-profile-dialog {
  width: min(100vw, 430px);
  height: min(100dvh, 760px);
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: transparent;
  box-shadow: 0 24px 70px rgb(16 24 40 / 28%);
}

.map-public-profile-dialog::backdrop {
  background: rgb(20 24 32 / 48%);
}

.map-public-profile-dialog iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

body.embedded-public-profile-page {
  min-height: 100dvh;
  overflow: hidden;
  background: transparent;
}

body.embedded-public-profile-page > :not(#bangProfileDialog) {
  display: none !important;
}

body.embedded-public-profile-page #bangProfileDialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border-radius: 0;
}

.place-comment-item.just-submitted {
  animation: placeCommentSubmitted 1.8s ease-out;
}

@keyframes placeCommentSubmitted {
  0%,
  35% {
    background: #fff2c7;
    box-shadow: inset 4px 0 0 #f4b400;
  }
  100% {
    background: transparent;
    box-shadow: inset 4px 0 0 transparent;
  }
}

body.embedded-public-profile-page #bangProfileDialog::backdrop {
  background: transparent;
}

body.embedded-public-profile-page #bangProfilePanel {
  width: 100%;
  height: 100%;
  max-height: none;
}

.public-profile-card-feed .public-profile-activity {
  align-content: start;
  align-self: start;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 10px;
  min-height: 0;
  padding: 13px 14px;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
}

.public-profile-card-feed .public-profile-activity + .public-profile-activity {
  border-top: 0;
}

.public-profile-card-feed .public-profile-activity:first-child {
  border-top: 0;
}

.public-profile-card-feed .public-profile-activity .type-badge {
  width: fit-content;
  max-width: 100%;
  align-self: center;
  padding: 3px 8px;
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #f4f5f7;
  border: 1px solid #dfe2e7;
  border-radius: var(--radius-pill);
}

.public-profile-card-feed .public-profile-activity > strong,
.public-profile-card-feed .public-profile-activity > p,
.public-profile-card-feed .public-profile-activity > small {
  grid-column: 1 / -1;
}

.public-profile-card-feed .public-profile-activity > strong {
  overflow: visible;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.35;
  text-overflow: clip;
  white-space: normal;
}

.public-profile-card-feed .public-profile-activity > p {
  color: var(--ink);
  line-height: 1.45;
}

.public-profile-card-feed .public-profile-activity > small {
  color: var(--muted);
  line-height: 1.4;
}

.public-profile-card-feed .public-profile-card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.public-profile-card-feed .public-profile-card-metrics > span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.public-profile-card-feed .public-profile-card-metrics > span.good {
  color: #1e8e3e;
}

.public-profile-card-feed .public-profile-card-metrics > span.like {
  color: var(--muted);
}

.public-profile-card-feed .public-profile-card-metrics > span.like.active {
  color: #d93025;
}

.public-profile-card-feed .public-profile-card-metrics > span.bad {
  color: #d93025;
}

.public-profile-card-feed .public-profile-card-metrics svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.public-profile-card-feed .public-profile-card-metrics b {
  font: inherit;
}

.public-profile-card-feed .public-profile-card-metrics time {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.public-profile-card-feed .account-profile-activity-card,
.public-profile-card-feed .account-profile-post-card,
.public-profile-card-feed .account-profile-reply-card {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
}

.public-profile-card-feed .account-profile-post-card:not(:first-child),
.public-profile-card-feed .account-profile-post-card:not(:last-child),
.public-profile-card-feed .account-profile-reply-card:not(:first-child),
.public-profile-card-feed .account-profile-reply-card:not(:last-child) {
  border-top: 0;
}

.public-profile-card-feed .account-profile-activity-card:first-child,
.public-profile-card-feed .account-profile-post-card:first-child,
.public-profile-card-feed .account-profile-reply-card:first-child {
  border-top: 0;
}

.public-profile-card-feed .account-profile-map-card,
.public-profile-card-feed .account-profile-map-card:first-child {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.public-profile-card-feed .account-profile-map-card + .account-profile-map-card {
  margin-top: -1px;
}

.public-profile-card-feed .account-profile-card-footer .account-profile-manage-actions,
.public-profile-card-feed .account-profile-reply-menu-actions {
  display: none;
}

.public-profile-card-activity {
  display: grid;
  gap: 12px;
  padding: 16px 0 18px;
}

.public-profile-card-activity-head {
  display: flex;
  gap: 10px;
  align-items: start;
  justify-content: space-between;
}

.public-profile-card-activity-head strong {
  display: block;
  font-size: 17px;
  font-weight: 900;
}

.public-profile-card-activity-head p {
  margin: 3px 0 0;
  color: #657084;
  font-size: 13px;
  line-height: 1.45;
}

.public-profile-card-activity-head > span {
  flex: 0 0 auto;
  padding: 5px 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  background: #fff1f4;
  border: 1px solid #f4c3cc;
  border-radius: var(--radius-pill);
}

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

.public-profile-card-metric-grid div {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  background: #fff8f9;
  border: 1px solid #f3cbd2;
  border-radius: 8px;
}

.public-profile-card-metric-grid span {
  min-width: 0;
  overflow: hidden;
  color: #596174;
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-profile-card-metric-grid strong {
  flex: 0 0 auto;
  color: #a51e33;
  font-size: 18px;
  font-weight: 950;
}

.public-profile-card-empty {
  display: grid;
  min-height: 180px;
  margin: 0;
  color: #657084;
  font-size: 14px;
  place-items: center;
  text-align: center;
}

.bang-profile-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bang-identity-section {
  background: var(--accent-light);
  border-color: var(--accent-mid);
}

.bang-identity-section.member-mode {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: var(--accent-light);
  border-color: var(--accent-mid);
  box-sizing: border-box;
  height: 46px;
  min-height: 46px;
  padding: 0 12px;
  overflow: hidden;
}

.bang-identity-section.member-mode > div:first-child {
  display: flex;
  align-items: center;
  min-height: 0;
}

.bang-identity-section.member-mode p {
  display: none;
}

.bang-identity-section.member-mode .bang-identity-toggle,
.bang-identity-section.member-mode .bang-guest-auth-actions,
.bang-identity-section.member-mode .bang-member-identity-summary {
  display: none !important;
}

.bang-guest-auth-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  align-items: end;
  gap: 10px;
}

.bang-guest-auth-actions {
  justify-content: end;
}

.bang-guest-composer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(118px, 0.92fr);
  align-items: end;
  gap: 10px;
}

.bang-composer-dialog .submission-panel-body > .bang-guest-composer-row {
  min-width: 0;
}

.bang-guest-nickname-field,
.bang-guest-password-row {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
}

.bang-guest-nickname-field {
  position: relative;
}

.bang-guest-nickname-field input,
.bang-guest-password-row input {
  width: 100%;
  min-width: 0;
}

.bang-guest-nickname-field input {
  padding-right: 42px;
}

.bang-reroll-nickname-button {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  color: var(--accent-strong);
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.bang-reroll-nickname-button:hover {
  background: #fff7f9;
}

.bang-guest-auth-actions[hidden],
.bang-guest-composer-row[hidden],
.bang-guest-password-row[hidden] {
  display: none;
}

.bang-member-identity-summary {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(47, 36, 39, 0.1);
}

.bang-member-identity-summary[hidden] {
  display: none;
}

.bang-member-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #0f6842;
  font-weight: 900;
  background: #fff;
  border: 1px solid #9be2bd;
  border-radius: 50%;
}

.bang-member-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.bang-member-name-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.bang-member-name-line strong {
  overflow: hidden;
  color: #18352a;
  min-height: 28px;
  font-size: 20px;
  font-weight: 900;
  line-height: 28px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bang-member-name-line .level-pill {
  flex: 0 0 auto;
}

.bang-content-label {
  display: grid;
  gap: 3px;
}

.bang-content-label textarea {
  width: 100%;
  min-height: 160px;
}

.bang-content-image-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.bang-content-image-preview-list {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  gap: 8px;
}

.bang-content-image-preview-list[hidden] {
  display: none;
}

.bang-content-image-preview-list figure {
  display: grid;
  grid-template-columns: 56px auto;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.bang-content-image-preview-list img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  background: #f6f7f9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bang-tags-input-wrap {
  min-height: 44px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}

.bang-tags-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(216, 90, 48, 0.12);
}

.submission-panel .bang-tags-input-wrap input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  box-shadow: none;
}

.submission-panel .bang-tags-input-wrap input:focus {
  border: 0;
  box-shadow: none;
}

.bang-detail-body {
  display: grid;
  gap: 12px;
}

.bang-detail-body p {
  margin: 0;
  white-space: normal;
}

.segmented-control {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #f3eef0;
  border-radius: var(--radius-pill);
}

.segmented-control label {
  flex: 1;
  cursor: pointer;
}
.segmented-control input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.bang-identity-toggle span {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border-radius: var(--radius-pill);
  transition: all 0.15s;
}

.bang-identity-toggle input:checked + span {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(216, 90, 48, 0.3);
}

/* -- Bang write FAB -- */
.bang-write-fab {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 90px;
  width: 56px;
  height: 56px;
  color: #fff;
  font-size: 24px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(216, 90, 48, 0.38);
  z-index: 1200;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

.bang-write-fab:hover {
  transform: scale(1.06);
  background: var(--accent-strong);
  box-shadow: 0 6px 18px rgba(216, 90, 48, 0.42);
}
.bang-write-fab:focus-visible {
  background: var(--accent-strong);
  outline: 3px solid rgba(216, 90, 48, 0.22);
  outline-offset: 3px;
}
.bang-write-fab:active {
  background: var(--accent-strong);
  transform: scale(0.95);
}

/* -- Bang mobile nav -- */
.bang-mobile-nav {
  display: none;
}

/* Deals board */
.deals-page {
  min-height: 100%;
  background: #fff;
}

.deals-shell {
  width: min(400px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0 0 104px;
  background: #fff;
  border-inline: 1px solid #f0f1f3;
}

.deals-top-stack {
  position: sticky;
  top: 0;
  z-index: 120;
  margin: 0;
  padding: 12px 14px 0;
  background: #fff;
  border-bottom: 1px solid #f2f2f2;
}

.deals-header {
  position: static;
  z-index: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  min-height: 48px;
  padding: 0;
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
}

.deals-header h1 {
  margin: 0;
  color: #1a1a1a;
  font-size: 20px;
  font-weight: 800;
}

.deals-header p {
  display: none;
}

.deal-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #9aa0a6;
  background: #f8f9fa;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  list-style: none;
}

.deal-search-disclosure {
  display: block;
}

.deal-search-toggle::-webkit-details-marker {
  display: none;
}

.deal-search-toggle svg {
  width: 20px;
  height: 20px;
}

.deal-category-tabs {
  position: static;
  top: auto;
  z-index: auto;
  margin: 10px -14px 0;
  padding: 0 14px 12px;
  background: #fff;
}

.deal-category-tabs .bang-category-tab {
  min-height: 30px;
  padding: 0 14px;
  color: #666;
  font-size: 13px;
  font-weight: 650;
  background: #f8f9fa;
  border: 0;
}

.deal-category-tabs .bang-category-tab:hover {
  color: var(--accent);
  background: #fce8e6;
  border-color: transparent;
}

.deal-category-tabs .bang-category-tab.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.deal-sort-tabs {
  position: static;
  top: auto;
  z-index: auto;
  margin: 0 -14px;
  padding: 0 14px;
  background: #fff;
  border-bottom: 1px solid #f2f2f2;
}

.deal-sort-tabs button {
  min-height: 42px;
  color: #666;
  font-size: 14px;
  font-weight: 650;
}

.deal-sort-tabs button:hover,
.deal-sort-tabs button.active {
  color: #1a1a1a;
}

.deal-sort-tabs button::after {
  right: 24px;
  left: 24px;
  height: 2px;
}

.deal-sort-tabs button.active::after {
  background: var(--accent);
}

.deals-search-row {
  position: absolute;
  top: 12px;
  right: 14px;
  left: 14px;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 0.14s ease,
    transform 0.16s ease;
}

.deals-search-row input,
.deals-search-row select {
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  color: #1a1a1a;
  border: 0;
  border-radius: 16px;
  background: #f8f9fa;
}

.deal-search-disclosure[open] .deals-search-row {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.deal-search-disclosure[open] .deal-search-toggle {
  opacity: 0;
  pointer-events: none;
}

.deal-search-field {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
}

.deals-search-row input::placeholder {
  color: transparent;
}

.deal-search-placeholder {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 1;
  display: block;
  width: calc(100% - 32px);
  overflow: hidden;
  color: #8a8f98;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  transform: translateY(-50%);
}

.deal-search-field input:focus + .deal-search-placeholder,
.deal-search-field input:not(:placeholder-shown) + .deal-search-placeholder {
  display: none;
}

.deal-list {
  display: grid;
  gap: 10px;
  padding: 10px 10px 18px;
  overflow: visible;
  background: #f3f4f6;
  border-top: 0;
  border-bottom: 0;
  border-radius: 0;
}

.deal-card {
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.12);
  transition:
    background 0.12s,
    box-shadow 0.12s;
}

.deal-card[data-deal-card-url] {
  cursor: pointer;
}

.deal-card[data-deal-card-url]:hover {
  background: #fff;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.14);
}

.deal-card[data-deal-card-url]:hover .deal-card-open,
.deal-card[data-deal-card-url]:hover .deal-feedback {
  background: #fff;
}

.deal-card-open {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 7px 10px;
  grid-template-areas:
    "avatar head"
    "title title"
    "price price";
  align-items: start;
  width: 100%;
  padding: 14px 14px 8px;
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.deal-card-open.has-thumb {
  grid-template-columns: 42px minmax(0, 1fr) 104px;
  grid-template-areas:
    "avatar head thumb"
    "title title thumb"
    "price price thumb";
}

.deal-card-open:hover {
  background: #fffafa;
}

.deal-card-avatar {
  display: grid;
  grid-area: avatar;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #9aa0a6;
  font-size: 15px;
  font-weight: 850;
  background: #eef1f4;
  border: 0;
  border-radius: 50%;
}

.deal-card-main {
  display: contents;
}

.deal-card-head {
  display: grid;
  grid-area: head;
  gap: 2px;
  min-width: 0;
}

.deal-card-author-line {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.deal-author-name {
  overflow: hidden;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deal-category-text {
  display: block;
  overflow: hidden;
  color: #666;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deal-card-title {
  display: block;
  grid-area: title;
  min-width: 0;
  margin-top: 4px;
  overflow: hidden;
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 820;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: anywhere;
}

.deal-expiry-alert {
  flex: 0 0 auto;
  max-width: 86px;
  overflow: hidden;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deal-expiry-alert.expired {
  color: #6b7280;
}

.deal-title-row {
  display: flex;
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.deal-title-row strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deal-category-badge {
  width: fit-content;
  flex-shrink: 0;
  padding: 2px 7px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  background: #fce8e6;
  border: 1px solid #f4c8c4;
  border-radius: var(--radius-pill);
}

.deal-level-badge {
  flex-shrink: 0;
  padding: 1px 6px;
  color: #2f80ed;
  font-size: 10px;
  font-weight: 900;
  background: #eff6ff;
  border: 0;
  border-radius: var(--radius-pill);
}

.level-pill,
.deal-level-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: auto;
  min-height: 18px;
  padding: 2px 7px;
  color: #4a8df8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  background: #f2f7ff;
  border: 0;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.level-tier-blue {
  color: #4a8df8;
  background: #f2f7ff;
  border: 0;
}

.level-tier-green {
  color: #52a26f;
  background: #f1faf4;
  border: 0;
}

.level-tier-purple {
  color: #8b7cf6;
  background: #f6f4ff;
  border: 0;
}

.level-tier-gold {
  color: #c28a30;
  background: #fff8e8;
  border: 0;
}

.deal-card .deal-level-badge,
.deal-card .deal-level-badge.level-tier-blue,
.deal-card .deal-level-badge.level-tier-green,
.deal-card .deal-level-badge.level-tier-purple,
.deal-card .deal-level-badge.level-tier-gold {
  min-width: auto;
  min-height: 18px;
  padding: 2px 7px;
  color: #4a8df8;
  font-size: 11px;
  font-weight: 700;
  background: #f2f7ff;
  border: 0;
}

.deal-price-row {
  display: flex;
  grid-area: price;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 1px;
  min-width: 0;
}

.deal-price-line {
  color: var(--accent);
  font-size: 17px;
  font-weight: 850;
}

.deal-comment-count {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 2px;
  align-items: center;
  justify-content: center;
  width: calc((100% - 10px) / 3);
  min-width: 0;
  height: 24px;
  color: #666;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.deal-comment-count svg {
  width: 15px;
  height: 15px;
}

.deal-card-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 5px;
  align-items: center;
  justify-content: flex-start;
  min-width: 112px;
}

.deal-inline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: calc((100% - 10px) / 3);
  min-width: 0;
  height: 24px;
  padding: 0;
  color: #666;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.deal-inline-action:hover {
  color: var(--accent);
  background: transparent;
}

.deal-inline-action.active {
  color: var(--accent);
  background: transparent;
}

.deal-card-actions .deal-inline-action.active {
  color: var(--accent);
}

.deal-inline-action svg {
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.deal-meta {
  display: flex;
  gap: 7px;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.deal-expiry {
  color: #8b6b28;
  font-size: 12px;
  font-weight: 700;
}

.deal-card-thumb {
  grid-area: thumb;
  align-self: center;
  justify-self: end;
  width: 104px;
  height: 104px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 12px;
  background: #f5f7fa;
}

.deal-feedback,
.deal-detail-feedback {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 14px 13px;
  transition: background 0.12s;
}

.deal-detail-feedback {
  padding: 10px 0 14px;
}

.deal-feedback .deal-card-actions {
  margin-left: auto;
}

.deal-feedback-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 26px;
  min-width: 62px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 750;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: #fff;
}

.deal-feedback-button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.deal-feedback-button.good {
  color: #1e8e3e;
  background: #e6f4ea;
  border-color: #e6f4ea;
}

.deal-feedback-button.bad {
  color: #d93025;
  background: #fce8e6;
  border-color: #fce8e6;
}

.deal-card .deal-feedback-button {
  background: #fff;
  border-width: 1.5px;
}

.deal-card .deal-feedback-button.good {
  color: #21875a;
  background: #fff;
  border-color: #4aa176;
}

.deal-card .deal-feedback-button.bad {
  color: #d12d3c;
  background: #fff;
  border-color: #f08a94;
}

.deal-card .deal-feedback-button.good:hover,
.deal-card .deal-feedback-button.good.active {
  color: #1d7a50;
  background: #fff;
  border-color: #2f8f63;
}

.deal-card .deal-feedback-button.bad:hover,
.deal-card .deal-feedback-button.bad.active {
  color: #d12d3c;
  background: #fff1f3;
  border-color: #d12d3c;
}

.deal-feedback-meter {
  display: flex;
  overflow: hidden;
  height: 9px;
  background: #edf1f4;
  border-radius: var(--radius-pill);
}

.deal-feedback-meter span.good {
  background: #27b57d;
}
.deal-feedback-meter span.bad {
  background: #ef6670;
}

.deal-detail-image {
  width: 100%;
  max-height: 320px;
  margin-bottom: 14px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.deal-source-link {
  display: inline-flex;
  width: fit-content;
}

.deal-composer-body > label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.deal-composer-body > label input,
.deal-composer-body > label select,
.deal-composer-body > label textarea {
  width: 100%;
  font-weight: 500;
}

.deal-date-row {
  display: grid;
  grid-template-columns: minmax(74px, 1fr) auto minmax(48px, 0.7fr) auto minmax(
      48px,
      0.7fr
    ) auto;
  gap: 6px;
  align-items: center;
}

.deal-date-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.deal-date-row input {
  min-width: 0;
  text-align: center;
}

.deal-date-row.has-error input,
.deal-date-row input[aria-invalid="true"] {
  border-color: #d43d51;
  box-shadow: 0 0 0 3px rgba(212, 61, 81, 0.12);
}

.deal-write-fab {
  display: grid;
  place-items: center;
  right: max(14px, calc((100vw - 400px) / 2 + 14px));
  bottom: calc(76px + env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(216, 90, 48, 0.38);
}

.deal-write-fab:hover {
  background: var(--accent-strong);
  box-shadow: 0 6px 18px rgba(216, 90, 48, 0.42);
}

.deal-write-fab:focus-visible {
  background: var(--accent-strong);
  outline: 3px solid rgba(216, 90, 48, 0.22);
  outline-offset: 3px;
}

.deal-write-fab:active {
  background: var(--accent-strong);
}

.deals-mobile-nav {
  right: 50%;
  left: auto;
  display: flex;
  width: min(400px, 100vw);
  transform: translateX(50%);
}

@media (min-width: 720px) {
  .deals-page {
    background: #f7f8f9;
  }

  .deals-shell {
    width: min(640px, calc(100vw - 48px));
    padding-bottom: 112px;
    border-inline: 1px solid #edf0f2;
    box-shadow: 0 18px 48px rgba(17, 24, 39, 0.06);
  }

  .deals-top-stack {
    padding: 18px 22px 0;
  }

  .deals-header {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    min-height: 52px;
  }

  .deals-header h1 {
    font-size: 22px;
  }

  .deal-search-toggle {
    display: none;
  }

  .deal-search-disclosure {
    display: block;
  }

  .deals-search-row {
    position: static;
    display: grid;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .deals-search-row input,
  .deals-search-row select {
    min-height: 44px;
  }

  .deal-category-tabs {
    margin: 12px -22px 0;
    padding: 0 22px 14px;
  }

  .deal-sort-tabs {
    margin: 0 -22px;
    padding: 0 22px;
  }

  .deal-card-open {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px 14px;
    padding: 16px 22px 9px;
  }

  .deal-card-open.has-thumb {
    grid-template-columns: 42px minmax(0, 1fr) 124px;
  }

  .deal-card-avatar {
    width: 40px;
    height: 40px;
  }

  .deal-card-title {
    font-size: 19px;
  }

  .deal-card-thumb {
    width: 124px;
    height: 124px;
  }

  .deal-feedback {
    padding: 0 22px 16px;
  }

  .deal-write-fab {
    right: max(22px, calc((100vw - min(640px, calc(100vw - 48px))) / 2 + 22px));
    bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .deals-mobile-nav {
    width: min(640px, calc(100vw - 48px));
  }
}

@media (min-width: 1100px) {
  .deals-shell {
    width: min(760px, calc(100vw - 96px));
  }

  .deals-header {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .deal-card-open {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .deal-card-open.has-thumb {
    grid-template-columns: 44px minmax(0, 1fr) 136px;
  }

  .deal-card-title {
    font-size: 20px;
  }

  .deal-card-thumb {
    width: 136px;
    height: 136px;
  }

  .deal-write-fab {
    right: max(24px, calc((100vw - min(760px, calc(100vw - 96px))) / 2 + 24px));
  }

  .deals-mobile-nav {
    width: min(760px, calc(100vw - 96px));
  }
}

.deal-empty {
  min-height: 220px;
}

.feed-load-more {
  display: flex;
  justify-content: center;
  padding: 14px 0 24px;
}

.feed-load-more .secondary-action {
  min-width: 136px;
  justify-content: center;
}

.deal-post-page {
  color: var(--ink);
}

.deal-post-shell {
  width: min(740px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 76px 8px calc(132px + env(safe-area-inset-bottom));
  background: transparent;
  border-inline: 0;
}

.discussion-post-shell {
  padding-top: 88px;
  padding-bottom: calc(124px + env(safe-area-inset-bottom));
}

.deal-post-page::before {
  position: fixed;
  z-index: 55;
  top: 0;
  right: 0;
  left: 0;
  height: 76px;
  pointer-events: none;
  content: "";
  background: #f5eded;
}

.discussion-post-page::before {
  height: 88px;
}

.deal-post-topbar {
  position: fixed;
  z-index: 60;
  top: 8px;
  left: 50%;
  display: flex;
  width: min(724px, calc(100% - 16px));
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transform: translateX(-50%);
  backdrop-filter: none;
}

.deal-post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  color: #2f2427;
  font-size: 17px;
  font-weight: 850;
  text-decoration: none;
}

.deal-post-back::before {
  content: "<";
  margin-right: 2px;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
}

.deal-post-back-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  color: #4f6075;
}

.deal-post-back-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.deal-post-page:not(.discussion-post-page) .deal-post-back {
  gap: 5px;
  min-height: 36px;
  color: var(--accent);
  font-size: 17px;
  font-weight: 850;
}

.discussion-post-page .deal-post-back {
  gap: 5px;
  min-height: 36px;
  color: var(--accent);
  font-size: 17px;
  font-weight: 850;
}

.deal-post-page:not(.discussion-post-page) .deal-post-back::before {
  margin-right: 1px;
  color: var(--accent);
  font-size: 27px;
}

.discussion-post-page .deal-post-back::before {
  margin-right: 1px;
  color: var(--accent);
  font-size: 27px;
}

.deal-post-menu {
  position: relative;
}

.deal-post-page .deal-post-more-button {
  width: 38px;
  height: 38px;
  min-height: 38px;
  color: #596579;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.deal-post-page .deal-post-more-button:hover {
  color: #2f3b4c;
  background: #f3f5f7;
}

.deal-post-page .deal-post-more-button svg {
  width: 22px;
  height: 22px;
}

.deal-post-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 156px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(18, 28, 42, 0.16);
}

.deal-post-menu-panel button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #eef1f4;
}

.deal-post-menu-panel button:last-child {
  border-bottom: 0;
}

.deal-post-menu-panel .danger-action {
  color: #d12d3c;
}

.deal-post-card {
  margin-bottom: 12px;
  padding: 14px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}

.deal-post-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.deal-post-title-row h1 {
  flex: 1 1 220px;
  min-width: 0;
  margin: 0;
  color: #2f2427;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.deal-post-main .deal-post-title-row .deal-category-badge {
  padding: 0;
  font-size: 13px;
  background: transparent;
  border-color: transparent;
}

.deal-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.deal-post-meta span:first-child {
  color: var(--accent);
  font-weight: 850;
}

.discussion-post-meta span:first-child,
.discussion-post-meta .bang-author-link {
  color: #2f2427;
  font-weight: 850;
  text-decoration: none;
}

.discussion-post-meta .bang-author-link {
  cursor: pointer;
}

.discussion-post-title-row {
  gap: 4px;
  margin-bottom: 10px;
}

.discussion-post-author {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  margin: 0 0 12px;
}

.deal-post-author {
  margin-bottom: 14px;
}

.discussion-post-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  background: var(--accent);
  border: 2px solid #f2d7dc;
  border-radius: 50%;
}

.discussion-post-author-main {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
}

.discussion-post-author-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: #2f2427;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.15;
}

.discussion-post-author-name > span:first-child,
.discussion-post-author-name .bang-author-link {
  min-width: 0;
  overflow: hidden;
  color: #2f2427;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discussion-post-author-name .bang-author-link {
  cursor: pointer;
  text-decoration: none;
}

.discussion-post-author-main time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.discussion-post-actions {
  justify-content: space-between;
  padding: 12px 0 0;
  margin-top: 12px;
  border-top: 1px solid #f0e4e6;
}

.deal-post-inline-actions.discussion-post-actions .deal-inline-action {
  flex: 1 1 0;
  min-width: 0;
  color: #5f7189;
}

.deal-post-inline-actions.discussion-post-actions .deal-inline-action.active {
  color: var(--accent);
}

.deal-post-vote-actions {
  gap: 4px;
}

.deal-post-inline-actions.discussion-post-actions.deal-post-vote-actions
  .deal-inline-action {
  height: 34px;
  padding: 0 3px;
  gap: 3px;
  font-size: 12px;
  white-space: nowrap;
}

.deal-post-inline-actions.discussion-post-actions.deal-post-vote-actions
  .deal-inline-action
  svg {
  width: 17px;
  height: 17px;
}

.deal-post-vote-actions .plate-icon {
  overflow: visible;
}

.plate-icon-rim {
  fill: rgba(255, 255, 255, 0.68);
  stroke: currentColor;
  stroke-width: 1.7;
}

.plate-icon-well {
  fill: rgba(255, 255, 255, 0.35);
  stroke: currentColor;
  stroke-width: 1.25;
  opacity: 0.72;
}

.plate-icon-shine {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.38;
}

.plate-icon-shine.short {
  stroke-width: 1.35;
  opacity: 0.3;
}

.deal-post-inline-actions.discussion-post-actions.deal-post-vote-actions
  .deal-inline-action
  span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.deal-post-inline-actions.discussion-post-actions .deal-vote-action.good {
  color: #087c55;
  border: 1px solid #36c293;
  border-radius: var(--radius-pill);
}

.deal-post-inline-actions.discussion-post-actions .deal-vote-action.bad {
  color: #d12d3c;
  border: 1px solid #f08a94;
  border-radius: var(--radius-pill);
}

.deal-post-inline-actions.discussion-post-actions .deal-vote-action.good:hover,
.deal-post-inline-actions.discussion-post-actions .deal-vote-action.good.active {
  color: #087c55;
  background: #eafff6;
}

.deal-post-inline-actions.discussion-post-actions .deal-vote-action.bad:hover,
.deal-post-inline-actions.discussion-post-actions .deal-vote-action.bad.active {
  color: #d12d3c;
  background: #fff1f3;
}

.discussion-fixed-reply-form {
  position: fixed;
  z-index: 70;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 10px max(8px, env(safe-area-inset-left))
    calc(10px + env(safe-area-inset-bottom))
    max(8px, env(safe-area-inset-right));
  background: rgba(239, 232, 234, 0.96);
  border-top: 1px solid #d8cacc;
  box-shadow: 0 -12px 28px rgba(43, 31, 35, 0.12);
  backdrop-filter: blur(12px);
}

.discussion-fixed-reply-inner {
  position: relative;
  display: grid;
  width: min(724px, 100%);
  min-height: 48px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin: 0 auto;
}

.discussion-reply-identity-menu-wrap {
  position: relative;
}

.discussion-reply-avatar-button,
.discussion-reply-option-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  background: #778294;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(37, 45, 58, 0.18);
}

.discussion-reply-avatar-button {
  padding: 0;
  cursor: pointer;
}

.discussion-reply-avatar-button.public,
.discussion-reply-option-avatar:not(.anonymous) {
  background: var(--accent);
}

.discussion-reply-avatar-button:focus-visible {
  outline: 3px solid rgba(216, 90, 48, 0.24);
  outline-offset: 2px;
}

.discussion-reply-identity-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  display: grid;
  width: 218px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d8cacc;
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(26, 33, 44, 0.18);
}

.discussion-reply-identity-option {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 9px 10px;
  color: #2f2427;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #f0e4e6;
  cursor: pointer;
}

.discussion-reply-identity-option:last-child {
  border-bottom: 0;
}

.discussion-reply-identity-option.active,
.discussion-reply-identity-option:hover {
  background: #faf1f3;
}

.discussion-reply-identity-option strong,
.discussion-reply-identity-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discussion-reply-identity-option strong {
  font-size: 13px;
  font-weight: 850;
}

.discussion-reply-identity-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.discussion-fixed-reply-form textarea {
  width: 100%;
  min-height: 42px;
  max-height: 96px;
  padding: 10px 12px;
  color: #2f2427;
  font: inherit;
  font-size: 15px;
  line-height: 1.35;
  resize: vertical;
  background: #fff;
  border: 1px solid #d7c9cc;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.discussion-fixed-reply-form textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(216, 90, 48, 0.16);
}

.discussion-fixed-reply-form textarea::placeholder {
  color: #8b7f83;
}

.discussion-reply-submit {
  min-width: 72px;
  height: 42px;
  padding: 0 16px;
  white-space: nowrap;
}

.deal-post-source {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 12px;
  color: #8f3340;
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.deal-post-source::before {
  content: "↗ ";
}

.deal-post-image {
  display: block;
  width: min(360px, 100%);
  max-height: 520px;
  margin: 10px auto 14px;
  object-fit: contain;
  background: #f5f7fa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.deal-post-body {
  margin: 10px 0 16px;
  font-size: 15px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.deal-post-feedback {
  padding: 12px 0 0;
}

.deal-author-card {
  display: grid;
  gap: 12px;
}

.deal-author-card-head {
  display: flex;
  gap: 10px;
  align-items: center;
}

.deal-author-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: #2f8064;
  border-radius: 50%;
}

.deal-author-card-head strong {
  display: block;
  font-size: 16px;
  font-weight: 850;
}

.deal-author-card-head span {
  color: var(--muted);
  font-size: 12px;
}

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

.deal-author-stats div,
.deal-author-trust {
  padding: 10px;
  background: #faf7f8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.deal-author-stats span,
.deal-author-trust span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.deal-author-stats strong,
.deal-author-trust strong {
  display: block;
  margin-top: 2px;
  color: #8f3340;
  font-size: 18px;
}

.deal-author-trust {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.deal-post-comments .comment-list {
  margin-top: 12px;
}

.deal-thread-comments {
  padding: 0;
  overflow: visible;
}

.deal-thread-comments .comment-section-header {
  padding: 14px 14px 10px;
  border-bottom: 1px solid #eee2e5;
}

.deal-thread-comments .comment-list {
  gap: 0;
  margin-top: 0;
}

.deal-thread-comments .comment-empty {
  padding: 18px 14px 20px;
}

.discussion-post-shell .deal-post-comments {
  padding: 0;
  overflow: visible;
}

.discussion-post-shell .comment-section-header {
  padding: 14px 14px 10px;
  border-bottom: 1px solid #eee2e5;
}

.discussion-post-shell .comment-list {
  gap: 0;
  margin-top: 0;
}

.discussion-reply-thread {
  display: grid;
  gap: 0;
  background: #fff;
  border-bottom: 1px solid #eee2e5;
}

.discussion-comment-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  padding: 11px 14px 10px;
  background: #fff;
  border: 0;
  border-radius: 0;
}

.discussion-comment-item.child {
  grid-template-columns: 28px minmax(0, 1fr);
  padding: 9px 14px 9px 57px;
  background: #fbf8f9;
}

.discussion-comment-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: #cf3f61;
  border-radius: 50%;
}

.discussion-comment-item.child .discussion-comment-avatar {
  width: 28px;
  height: 28px;
  font-size: 12px;
  background: #9a7480;
}

.discussion-comment-content {
  min-width: 0;
}

.discussion-comment-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: start;
}

.discussion-comment-meta {
  display: flex;
  min-width: 0;
  flex-wrap: nowrap;
  gap: 4px 6px;
  align-items: center;
  justify-content: flex-start;
  color: #2f2427;
  font-size: 13px;
  font-weight: 850;
}

.discussion-comment-meta > strong,
.discussion-comment-meta > span:first-child,
.discussion-comment-meta .bang-author-link {
  min-width: 0;
  max-width: 150px;
  overflow: hidden;
  color: #2f2427;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discussion-comment-meta .bang-author-link {
  cursor: pointer;
  text-decoration: none;
}

.discussion-comment-time {
  margin-left: auto;
  color: #8b7f83;
  font-size: 12px;
  font-weight: 650;
  line-height: 22px;
  white-space: nowrap;
}

.discussion-comment-tools {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #8b7f83;
}

.discussion-comment-floor {
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.discussion-comment-more {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  color: #8b7f83;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.discussion-comment-more:hover {
  color: #2f2427;
  background: #f3ecee;
}

.discussion-comment-more svg {
  width: 18px;
  height: 18px;
}

.discussion-comment-menu {
  top: 30px;
  right: 0;
  min-width: 126px;
}

.discussion-comment-body {
  margin: 6px 0 7px;
  color: #2f2427;
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.discussion-comment-reply-context {
  margin: 6px 0 -1px;
  color: #748193;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.discussion-comment-reply-context span {
  color: #2774b8;
}

.discussion-comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
}

.discussion-comment-actions button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  height: 22px;
  padding: 0;
  color: #69778a;
  font-size: 12px;
  font-weight: 750;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.discussion-comment-actions button:hover,
.discussion-comment-actions .liked {
  color: var(--accent);
}

.discussion-comment-actions svg {
  width: 15px;
  height: 15px;
}

.discussion-child-replies {
  display: grid;
  grid-column: 1 / -1;
  gap: 0;
  background: #fff;
}

.discussion-child-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  margin: -1px 14px 9px 57px;
  padding: 0;
  color: #69778a;
  font-size: 13px;
  font-weight: 800;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.discussion-child-toggle::before {
  content: "";
  width: 28px;
  height: 1px;
  background: #c8cfd8;
}

.discussion-child-toggle:hover {
  color: var(--accent);
}

.discussion-child-list {
  display: grid;
  gap: 0;
}

.discussion-reply-target {
  display: flex;
  width: min(724px, 100%);
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 auto 8px;
  padding: 7px 10px;
  color: #6f5960;
  font-size: 13px;
  font-weight: 800;
  background: #fff;
  border: 1px solid #e4d4d8;
  border-radius: 10px;
}

.discussion-reply-target button {
  padding: 0;
  color: var(--accent);
  font: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.deal-reply-form {
  position: static;
  padding-top: 10px;
}

.deal-post-action-card {
  padding-block: 10px;
}

.deal-post-inline-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.deal-post-inline-actions .deal-inline-action {
  width: auto;
  min-width: 0;
  flex: 1 1 0;
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
}

.deal-post-empty {
  display: grid;
  gap: 10px;
  min-height: 220px;
  align-content: center;
  justify-items: start;
}

.deal-post-empty strong {
  font-size: 20px;
}

.deal-post-empty p {
  margin: 0;
  color: var(--muted);
}

.deal-post-page:not(.discussion-post-page) {
  background: #fff;
}

.deal-post-page:not(.discussion-post-page) .deal-post-shell {
  background: #f3f4f6;
}

.deal-post-page:not(.discussion-post-page)::before {
  background: var(--accent-light);
}

.deal-post-page:not(.discussion-post-page) .deal-post-topbar {
  top: 0;
  width: min(740px, 100%);
  background: var(--accent-light);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.deal-post-page:not(.discussion-post-page) .deal-post-more-button {
  color: #59616f;
  background: transparent;
}

.deal-post-page:not(.discussion-post-page) .deal-post-more-button:hover {
  color: var(--accent);
  background: var(--accent-mid);
}

.deal-post-page:not(.discussion-post-page) .deal-post-card {
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.deal-post-page:not(.discussion-post-page) .deal-post-main {
  margin-bottom: 0;
}

.deal-post-page:not(.discussion-post-page) .deal-post-title-row h1 {
  color: #1a1a1a;
  font-weight: 820;
  line-height: 1.38;
}

.deal-post-page:not(.discussion-post-page) .deal-post-meta {
  color: #6b7280;
  font-weight: 650;
}

.deal-post-page:not(.discussion-post-page) .deal-post-meta span:first-child {
  color: var(--accent);
  font-weight: 800;
}

.deal-post-page:not(.discussion-post-page) .deal-post-body {
  color: #242424;
  line-height: 1.72;
}

.deal-post-page:not(.discussion-post-page) .deal-post-image {
  background: #f8f9fa;
  border: 0;
  border-radius: 10px;
}

.deal-post-page:not(.discussion-post-page) .discussion-post-actions {
  border-top: 1px solid #f0f1f3;
}

.deal-post-page:not(.discussion-post-page)
  .deal-post-inline-actions.discussion-post-actions
  .deal-inline-action {
  color: #5f6876;
  font-weight: 700;
}

.deal-post-page:not(.discussion-post-page)
  .deal-post-inline-actions.discussion-post-actions
  .deal-inline-action.active,
.deal-post-page:not(.discussion-post-page)
  .deal-post-inline-actions.discussion-post-actions
  .deal-inline-action:hover {
  color: var(--accent);
}

.deal-post-page:not(.discussion-post-page)
  .deal-post-inline-actions.discussion-post-actions
  .deal-vote-action.good {
  color: #087c55;
  border-color: #087c55;
}

.deal-post-page:not(.discussion-post-page)
  .deal-post-inline-actions.discussion-post-actions
  .deal-vote-action.bad {
  color: #d12d3c;
  border-color: #d12d3c;
}

.deal-post-page:not(.discussion-post-page)
  .deal-post-inline-actions.discussion-post-actions
  .deal-vote-action.bad.active,
.deal-post-page:not(.discussion-post-page)
  .deal-post-inline-actions.discussion-post-actions
  .deal-vote-action.bad:hover {
  color: #d12d3c;
  border-color: #d12d3c;
}

.deal-post-page:not(.discussion-post-page)
  .deal-post-inline-actions.discussion-post-actions
  .deal-vote-action.good.active,
.deal-post-page:not(.discussion-post-page)
  .deal-post-inline-actions.discussion-post-actions
  .deal-vote-action.good:hover {
  color: #087c55;
  border-color: #087c55;
}

.deal-post-page:not(.discussion-post-page) .deal-thread-comments {
  margin-bottom: 0;
  padding: 0;
  background: #fff;
  overflow: visible;
}

.deal-post-page:not(.discussion-post-page)
  .deal-thread-comments
  .comment-section-header {
  padding: 12px 14px;
  color: #4b5563;
  background: #f3f4f6;
  border-bottom: 0;
}

.deal-post-page:not(.discussion-post-page)
  .deal-thread-comments
  .comment-section-header
  strong {
  font-size: 13px;
  font-weight: 800;
}

.deal-post-page:not(.discussion-post-page) .discussion-reply-thread {
  background: #fff;
  border-bottom: 1px solid #eef0f2;
}

.deal-post-page:not(.discussion-post-page) .discussion-comment-item {
  background: #fff;
}

.deal-post-page:not(.discussion-post-page) .discussion-comment-item.child {
  background: #f8f9fa;
}

.deal-post-page:not(.discussion-post-page) .discussion-comment-avatar {
  background: var(--accent);
}

.deal-post-page:not(.discussion-post-page)
  .discussion-comment-item.child
  .discussion-comment-avatar {
  background: #9aa3af;
}

.deal-post-page:not(.discussion-post-page) .discussion-comment-meta,
.deal-post-page:not(.discussion-post-page) .discussion-comment-body {
  color: #242424;
}

.deal-post-page:not(.discussion-post-page) .discussion-comment-time,
.deal-post-page:not(.discussion-post-page) .discussion-comment-tools,
.deal-post-page:not(.discussion-post-page) .discussion-comment-actions button {
  color: #6b7280;
}

.deal-post-page:not(.discussion-post-page)
  .discussion-comment-actions
  button:hover,
.deal-post-page:not(.discussion-post-page)
  .discussion-comment-actions
  .liked {
  color: #d12d3c;
}

.deal-fixed-reply-form {
  background: #fff4f5;
  border-top: 1px solid #f7dfe3;
  box-shadow: 0 -8px 18px rgba(216, 90, 48, 0.08);
  backdrop-filter: none;
}

.deal-fixed-reply-form textarea {
  color: #242424;
  background: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
}

.deal-fixed-reply-form textarea:focus {
  border-color: transparent;
  outline: 3px solid rgba(216, 90, 48, 0.14);
}

.deal-fixed-reply-form .discussion-reply-submit {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(216, 90, 48, 0.22);
}

.discussion-post-page {
  background: #fff;
}

.discussion-post-page .discussion-post-shell {
  background: #f3f4f6;
}

.discussion-post-page::before {
  background: var(--accent-light);
}

.discussion-post-page .deal-post-topbar {
  top: 0;
  width: min(740px, 100%);
  background: var(--accent-light);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.discussion-post-page .deal-post-more-button {
  color: #59616f;
  background: transparent;
}

.discussion-post-page .deal-post-more-button:hover {
  color: var(--accent);
  background: var(--accent-mid);
}

.discussion-post-page .deal-post-card {
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.discussion-post-page .discussion-post-main {
  margin-bottom: 0;
}

.discussion-post-page .deal-post-title-row h1 {
  color: #1a1a1a;
  font-weight: 820;
  line-height: 1.38;
}

.discussion-post-page .discussion-post-author-name,
.discussion-post-page
  .discussion-post-author-name
  > span:first-child,
.discussion-post-page .discussion-post-author-name .bang-author-link {
  color: #242424;
}

.discussion-post-page .discussion-post-author-main time {
  color: #6b7280;
}

.discussion-post-page .discussion-post-avatar {
  background: var(--accent);
  border-color: #fce8e6;
}

.discussion-post-page .deal-post-body {
  color: #242424;
  line-height: 1.72;
}

.discussion-post-page .discussion-post-actions {
  border-top: 1px solid #f0f1f3;
}

.discussion-post-page
  .deal-post-inline-actions.discussion-post-actions
  .deal-inline-action {
  color: #5f6876;
  font-weight: 700;
}

.discussion-post-page
  .deal-post-inline-actions.discussion-post-actions
  .deal-inline-action.active,
.discussion-post-page
  .deal-post-inline-actions.discussion-post-actions
  .deal-inline-action:hover {
  color: var(--accent);
}

.discussion-post-page
  .deal-post-inline-actions.discussion-post-actions
  [data-like-post].active {
  color: #d12d3c;
}

.discussion-post-page
  .deal-post-inline-actions.discussion-post-actions
  [data-save-post].active {
  color: var(--accent);
}

.discussion-post-page .discussion-post-shell .deal-post-comments {
  margin-bottom: 0;
  padding: 0;
  background: #fff;
  overflow: visible;
}

.discussion-post-page
  .discussion-post-shell
  .comment-section-header {
  padding: 12px 14px;
  color: #4b5563;
  background: #f3f4f6;
  border-bottom: 0;
}

.discussion-post-page
  .discussion-post-shell
  .comment-section-header
  strong {
  font-size: 13px;
  font-weight: 800;
}

.discussion-post-page .discussion-reply-thread {
  background: #fff;
  border-bottom: 1px solid #eef0f2;
}

.discussion-post-page .discussion-comment-item {
  background: #fff;
}

.discussion-post-page .discussion-comment-item.child {
  background: #f8f9fa;
}

.discussion-post-page .discussion-comment-avatar {
  background: var(--accent);
}

.discussion-post-page
  .discussion-comment-item.child
  .discussion-comment-avatar {
  background: #9aa3af;
}

.discussion-post-page .discussion-comment-meta,
.discussion-post-page .discussion-comment-body {
  color: #242424;
}

.discussion-post-page .discussion-comment-time,
.discussion-post-page .discussion-comment-tools,
.discussion-post-page .discussion-comment-actions button {
  color: #6b7280;
}

.discussion-post-page .discussion-comment-actions button:hover,
.discussion-post-page .discussion-comment-actions .liked {
  color: #d12d3c;
}

.discussion-post-page .discussion-fixed-reply-form {
  background: var(--accent-light);
  border-top: 1px solid rgba(216, 90, 48, 0.14);
  box-shadow: 0 -8px 18px rgba(216, 90, 48, 0.08);
  backdrop-filter: none;
}

.discussion-post-page .discussion-fixed-reply-inner {
  display: flex;
  min-height: 48px;
  gap: 8px;
  align-items: center;
  padding: 0;
  background: transparent;
  border: 0;
}

.discussion-post-page .discussion-fixed-reply-inner.is-multiline {
  align-items: flex-end;
}

.discussion-post-page .discussion-reply-capsule {
  display: flex;
  min-width: 0;
  min-height: 48px;
  flex: 1 1 auto;
  gap: 8px;
  align-items: center;
  padding: 6px 8px 6px 14px;
  background: #fff;
  border: 0.5px solid #d9dde3;
  border-radius: 24px;
  transition: border-color 180ms ease, border-radius 180ms ease;
}

.discussion-post-page
  .discussion-fixed-reply-inner.is-multiline
  .discussion-reply-capsule {
  align-items: flex-end;
  border-radius: 12px;
}

.discussion-post-page .discussion-reply-capsule:focus-within {
  border-color: #aeb5bf;
}

.discussion-post-page .discussion-reply-identity-menu-wrap {
  flex: 0 0 40px;
}

.discussion-post-page
  .discussion-fixed-reply-inner.is-multiline
  .discussion-reply-identity-menu-wrap {
  margin-bottom: 7px;
}

.discussion-post-page .discussion-reply-avatar-button {
  width: 40px;
  height: 40px;
  font-size: 14px;
  border-width: 1px;
  box-shadow: none;
}

.discussion-post-page .discussion-fixed-reply-form textarea {
  min-width: 0;
  min-height: 22.5px;
  max-height: 96px;
  flex: 1 1 auto;
  padding: 0;
  color: #242424;
  font-size: 15px;
  line-height: 1.5;
  resize: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.discussion-post-page .discussion-fixed-reply-form textarea:focus {
  outline: 0;
}

.discussion-post-page .discussion-fixed-reply-form textarea::placeholder {
  color: #9ca3af;
}

.discussion-post-page .discussion-reply-submit {
  display: grid;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  flex: 0 0 34px;
  place-items: center;
  padding: 0;
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  border-radius: 50%;
  box-shadow: none;
  opacity: 1;
  transition: color 180ms ease, background-color 180ms ease,
    border-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.discussion-post-page .discussion-reply-submit svg {
  width: 17px;
  height: 17px;
}

.discussion-post-page .discussion-reply-submit:disabled {
  color: #8f98a5;
  background: #eceff3;
  border-color: #eceff3;
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.discussion-post-page .discussion-reply-submit:not(:disabled):hover {
  background: #d9613b;
  border-color: #d9613b;
}

.discussion-post-page .discussion-reply-submit:not(:disabled):active {
  transform: scale(0.96);
}

.deal-report-dialog {
  width: min(380px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(20, 28, 40, 0.24);
}

.deal-report-dialog::backdrop {
  background: rgba(12, 18, 28, 0.58);
}

.deal-report-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.deal-report-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.deal-report-panel header strong {
  font-size: 17px;
}

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

.deal-report-reasons {
  display: grid;
  gap: 8px;
}

.deal-report-reasons label {
  display: flex;
  min-height: 38px;
  gap: 8px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.discussion-report-dialog {
  width: min(440px, calc(100vw - 28px));
}

.discussion-report-panel {
  max-height: min(720px, calc(100dvh - 28px));
  overflow: auto;
}

.discussion-report-reasons {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.discussion-report-reasons label:has(input:checked) {
  border-color: #df6d47;
  background: #fff5f0;
}

.discussion-report-error {
  color: #b6382d !important;
  font-weight: 700;
}

.discussion-report-panel [data-submit-discussion-report]:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.admin-report-note-list {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.admin-report-note-list li {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-report-note-list span,
.admin-report-note-list time {
  color: var(--muted);
  font-size: 12px;
}

.admin-report-note-list p {
  margin: 0;
  white-space: pre-wrap;
}

.deal-report-panel menu {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.deal-edit-dialog {
  width: min(520px, calc(100vw - 28px));
}

.deal-edit-panel label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.deal-edit-panel input,
.deal-edit-panel textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 500;
}

.deal-edit-panel textarea {
  min-height: 128px;
  resize: vertical;
}

/* -- Empty board -- */
.bang-empty-board {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: var(--muted);
  font-size: 14px;
}

/* Account page */
.account-page {
  height: 100dvh;
  min-height: 100%;
  overflow: hidden;
  background: #f5eded;
}

.account-page-shell {
  width: min(720px, 100%);
  height: 100dvh;
  min-height: 0;
  margin: 0 auto;
  padding: 8px 8px 132px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.account-page-shell:has(#accountHomeSurface) {
  --account-home-content-start: 238px;
  --account-home-content-radius: 18px;
  width: 100%;
  max-width: 430px;
  padding: 0 0 calc(96px + env(safe-area-inset-bottom));
  background: #fff;
}

.account-home-surface {
  min-height: 100%;
  color: #141821;
  background: linear-gradient(
    #eceff4 0 calc(var(--account-home-content-start) + var(--account-home-content-radius)),
    #fff calc(var(--account-home-content-start) + var(--account-home-content-radius)) 100%
  );
}

.account-home-top-rail {
  height: 44px;
  background: #eceff4;
  border-bottom: 0;
}

.account-home-header {
  position: relative;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) 40px;
  gap: 14px;
  align-items: center;
  min-height: 136px;
  padding: 18px 16px 28px;
  background: #eceff4;
}

.account-home-avatar {
  display: grid;
  width: 64px;
  height: 64px;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
  place-items: center;
  background: var(--accent);
  border-radius: 50%;
}

.account-home-identity {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-home-identity span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.account-home-name-row {
  display: flex;
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.account-home-name-row strong {
  min-width: 0;
  overflow: hidden;
  color: #10131a;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-home-level {
  display: inline-flex;
  flex: 0 0 auto;
}

.account-home-level:empty {
  display: none;
}

.account-home-level .level-pill {
  min-height: 18px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: none;
}

.account-home-level .level-pill.level-tier-blue {
  color: #4a8df8;
  background: #f2f7ff;
}

.account-home-level .level-pill.level-tier-green {
  color: #52a26f;
  background: #f1faf4;
}

.account-home-level .level-pill.level-tier-purple {
  color: #8b7cf6;
  background: #f6f4ff;
}

.account-home-level .level-pill.level-tier-gold {
  color: #c28a30;
  background: #fff8e8;
}

.account-home-identity p {
  margin: 0;
  color: #596174;
  font-size: 13px;
  line-height: 1.35;
}

.account-home-edit-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #303746;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  transform: translate(-96px, 22px);
}

.account-home-edit-button:hover,
.account-home-edit-button[aria-expanded="true"],
.account-home-edit-button:focus-visible {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.58);
}

.account-home-edit-button svg {
  width: 18px;
  height: 18px;
}

.account-home-settings-button {
  position: absolute;
  top: -41px;
  right: 11px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #303746;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.account-home-settings-button:hover,
.account-home-settings-button[aria-expanded="true"] {
  color: var(--accent);
  background: #eceff4;
}

.account-home-settings-button svg {
  width: 20px;
  height: 20px;
}

.account-home-settings-menu {
  position: absolute;
  top: 0;
  right: 14px;
  z-index: 20;
  display: grid;
  width: min(250px, calc(100vw - 28px));
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(18, 24, 33, 0.18);
}

.account-home-settings-menu[hidden] {
  display: none;
}

.account-home-settings-menu a,
.account-home-settings-menu button {
  display: grid;
  gap: 3px;
  min-height: 54px;
  padding: 10px 13px;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #eef0f4;
}

.account-home-settings-menu a:last-child,
.account-home-settings-menu button:last-child {
  border-bottom: 0;
}

.account-home-settings-menu a:not(:has(strong)),
.account-home-settings-menu button:not(:has(strong)) {
  min-height: 44px;
  align-content: center;
}

.account-home-settings-menu span {
  color: #141821;
  font-size: 14px;
  font-weight: 850;
}

.account-home-settings-menu strong {
  overflow: hidden;
  color: #768093;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-home-settings-menu button:not(:disabled) {
  cursor: pointer;
}

.account-home-settings-menu button:not(:disabled):hover,
.account-home-settings-menu a:hover {
  background: #faf1f3;
}

.account-home-edit-menu {
  top: 110px;
  right: 110px;
}

.account-change-password-dialog {
  display: grid;
  gap: 14px;
  width: min(420px, calc(100vw - 32px));
  margin: auto;
  padding: 14px;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(18, 24, 33, 0.08);
}

.account-change-password-dialog:not([open]) {
  display: none;
}

.account-change-password-dialog::backdrop {
  background: rgba(18, 24, 33, 0.42);
  backdrop-filter: blur(3px);
}

.account-level-center-dialog {
  width: min(720px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(18, 24, 33, 0.26);
}

.account-level-center-dialog:not([open]) {
  display: none;
}

.account-level-center-dialog::backdrop {
  background: rgba(18, 24, 33, 0.48);
  backdrop-filter: blur(3px);
}

.account-level-center-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: calc(100dvh - 28px);
  background: #f6f7f9;
}

.account-level-center-head {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: #fff;
  border-bottom: 1px solid #e8eaf0;
}

.account-level-center-head > div {
  display: grid;
  gap: 2px;
}

.account-level-center-head span,
.account-level-center-section-head span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.account-level-center-head h2 {
  margin: 0;
  color: #141821;
  font-size: 21px;
}

.account-level-center-head .icon-button {
  width: 36px;
  height: 36px;
  color: #596174;
  background: #f2f4f7;
  border: 0;
  border-radius: 50%;
}

.account-level-center-body {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 14px;
  overflow: auto;
  overscroll-behavior: contain;
}

.account-level-center-loading {
  margin: 0;
  padding: 32px 18px;
  color: #768093;
  text-align: center;
}

.account-level-center-error {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 48px 18px;
  color: #596174;
  text-align: center;
}

.account-level-center-error strong {
  color: #141821;
}

.account-level-center-error .secondary-action {
  margin-top: 6px;
}

.account-level-center-summary,
.account-level-center-section {
  display: grid;
  gap: 12px;
  padding: 15px;
  background: #fff;
  border: 1px solid #e7e9ee;
  border-radius: 13px;
}

.account-level-center-current {
  display: flex;
  gap: 10px;
  align-items: center;
}

.account-level-center-current > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-level-center-current > div strong {
  color: #141821;
  font-size: 15px;
}

.account-level-center-current > div span,
.account-level-center-summary > small {
  color: #768093;
  font-size: 12px;
}

.account-level-center-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
  background: #e9ebef;
  border: 1px solid #e0e3e9;
  border-radius: 11px;
}

.account-level-center-tabs button {
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  color: #667084;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.account-level-center-tabs button[aria-selected="true"] {
  color: var(--accent);
  background: #fff;
  box-shadow: 0 2px 8px rgba(30, 38, 50, 0.1);
}

.account-level-center-tabs button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.account-level-center-tab-panels {
  min-height: 0;
}

.account-level-center-tab-panel {
  max-height: min(520px, calc(100dvh - 320px));
  overflow: auto;
  overscroll-behavior: contain;
}

.account-level-center-tab-panel[hidden] {
  display: none;
}

.account-level-center-section-head {
  display: flex;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
}

.account-level-center-section-head > div {
  display: grid;
  gap: 2px;
}

.account-level-center-section-head strong {
  color: #141821;
  font-size: 15px;
}

.account-level-center-section-head small {
  color: #8a92a1;
  font-size: 11px;
}

.account-level-table-scroll {
  max-height: min(430px, 50dvh);
  overflow: auto;
  border: 1px solid #e7e9ee;
  border-radius: 10px;
  overscroll-behavior: contain;
}

.account-level-tier-section {
  display: grid;
}

.account-level-tier-section + .account-level-tier-section {
  border-top: 8px solid #f6f7f9;
}

.account-level-tier-section > header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 9px 11px;
  background: #f8f9fb;
  border-bottom: 1px solid #e7e9ee;
}

.account-level-tier-section > header strong {
  color: #242a35;
  font-size: 13px;
}

.account-level-tier-section > header small {
  margin-left: auto;
  color: #8a92a1;
  font-size: 10px;
}

.account-level-tier-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
}

.account-level-tier-dot.level-tier-blue {
  background: #4a8df8;
}

.account-level-tier-dot.level-tier-green {
  background: #52a26f;
}

.account-level-tier-dot.level-tier-purple {
  background: #8b7cf6;
}

.account-level-tier-dot.level-tier-gold {
  background: #c28a30;
}

.account-level-tier-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.account-level-tier-section th,
.account-level-tier-section td {
  padding: 9px 10px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid #eef0f4;
}

.account-level-tier-section tbody tr:last-child td {
  border-bottom: 0;
}

.account-level-tier-section th {
  color: #8a92a1;
  font-size: 10px;
  font-weight: 800;
}

.account-level-tier-section td {
  color: #535d6d;
}

.account-level-tier-section tr.is-current td {
  background: #fff7f8;
}

.account-level-table-badge {
  display: inline-flex;
  min-width: 46px;
  justify-content: center;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 850;
  border-radius: 999px;
}

.account-level-current-mark {
  color: var(--accent);
  font-size: 11px;
}

.account-level-action-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.account-level-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  padding: 10px;
  background: #f8f9fb;
  border: 1px solid #e8eaf0;
  border-radius: 9px;
}

.account-level-action-row span {
  overflow: hidden;
  color: #303746;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-level-action-row strong {
  color: #16824e;
  font-size: 12px;
}

.account-level-action-row strong.negative {
  color: var(--accent);
}

.account-level-action-row small {
  grid-column: 1 / -1;
  color: #8a92a1;
  font-size: 10px;
}

.account-change-password-head {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.account-change-password-head span {
  display: block;
  margin-bottom: 3px;
  color: #768093;
  font-size: 12px;
  font-weight: 800;
}

.account-change-password-head h2 {
  margin: 0;
  color: #141821;
  font-size: 18px;
  line-height: 1.2;
}

.account-change-password-form {
  display: grid;
  gap: 12px;
}

.account-change-password-form label {
  display: grid;
  gap: 6px;
  color: #303746;
  font-size: 13px;
  font-weight: 800;
}

.account-change-password-form input,
.account-change-password-form select,
.account-change-password-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  color: #141821;
  font: inherit;
  background: #f8fafc;
  border: 1px solid #d9dde7;
  border-radius: 8px;
}

.account-change-password-form textarea {
  resize: vertical;
}

.account-change-password-form input:focus,
.account-change-password-form select:focus,
.account-change-password-form textarea:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(216, 90, 48, 0.15);
}

.account-support-dialog {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}

.account-support-intro {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.account-support-form textarea {
  min-height: 132px;
}

.account-change-password-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.account-notice-dialog {
  width: min(380px, calc(100vw - 32px));
}

.account-notice-message {
  margin: 0;
  color: #4b5565;
  font-size: 14px;
  line-height: 1.65;
}

.account-nickname-required-banner {
  display: grid;
  gap: 4px;
  width: calc(100% - 32px);
  margin: 0 16px 12px;
  padding: 12px 14px;
  color: #7c2d12;
  text-align: left;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 10px;
  cursor: pointer;
}

.account-nickname-required-banner strong {
  font-size: 14px;
}

.account-nickname-required-banner span {
  font-size: 12px;
  line-height: 1.5;
}

.account-home-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 6px 16px 14px;
  background: #eceff4;
}

.account-home-mode-tabs button {
  min-width: 0;
  min-height: 38px;
  color: #596174;
  font-size: 14px;
  font-weight: 900;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 10px;
  cursor: pointer;
}

.account-home-mode-tabs button.active {
  color: var(--accent);
  background: #fff;
  border-color: var(--accent-mid);
  box-shadow: 0 0 0 1px rgba(216, 90, 48, 0.08), 0 0 8px rgba(216, 90, 48, 0.08);
}

.account-home-content {
  display: grid;
  align-content: start;
  min-height: calc(100dvh - var(--account-home-content-start) - 69px - env(safe-area-inset-bottom));
  padding: 0;
  background: #fff;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}

.account-home-primary-tabs {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(88px, 1fr);
  overflow-x: auto;
  background: #fff;
  border-top: 0;
  border-bottom: 1px solid #e6e8ee;
  border-radius: 0;
  scrollbar-width: none;
}

.account-home-primary-tabs::-webkit-scrollbar,
.account-home-folder-tabs::-webkit-scrollbar {
  display: none;
}

.account-home-primary-tabs button {
  position: relative;
  min-width: 0;
  min-height: 48px;
  padding: 0 10px;
  color: #6a7284;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.account-home-primary-tabs button.active {
  color: var(--accent);
}

.account-home-primary-tabs button.active::after {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 2px;
  content: "";
  background: var(--accent);
  border-radius: 999px;
}

.account-home-folder-tabs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 7px;
  padding: 9px 16px;
  background: #fff;
  border-bottom: 1px solid #eceef3;
}

.account-home-folder-scroll {
  display: flex;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.account-home-folder-tabs[hidden] {
  display: none;
}

.account-home-folder-scroll::-webkit-scrollbar {
  display: none;
}

.account-home-folder-scroll button {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 10px;
  color: #596174;
  font-size: 11px;
  font-weight: 780;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #e4e7ee;
  border-radius: 999px;
}

.account-home-folder-scroll button.active {
  color: var(--accent);
  background: var(--accent-light);
  border-color: var(--accent-mid);
}

.account-home-folder-create {
  display: grid;
  width: 30px;
  min-width: 30px;
  min-height: 26px;
  padding: 0;
  color: var(--accent);
  place-items: center;
  background: #fff;
  border: 1px solid var(--accent-mid);
  border-radius: 999px;
  box-shadow: -8px 0 16px rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.account-home-folder-create svg {
  width: 15px;
  height: 15px;
}

.account-home-feed {
  display: grid;
  align-content: start;
  gap: 0;
  padding: 0 0 18px;
  background: #fff;
}

.account-home-feed .account-empty-state {
  margin: 0;
  background: transparent;
}

.account-home-feed .account-deal-empty {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.account-home-feed .account-profile-activity-card,
.account-home-feed .account-profile-post-card,
.account-home-feed .account-profile-reply-card,
.account-home-feed .account-thread-row {
  margin: 0;
  overflow: visible;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #eceef3;
  border-radius: 0;
  box-shadow: none;
}

.account-home-feed .account-profile-post-card + .account-profile-post-card,
.account-home-feed .account-profile-reply-card + .account-profile-reply-card {
  margin-top: 0;
}

.account-home-feed .account-profile-activity-card,
.account-home-feed .account-profile-reply-open,
.account-home-feed .account-thread-row {
  padding: 14px 16px;
}

.account-home-feed .account-profile-post-card .deal-card-open,
.account-home-feed .account-profile-post-card.bang-thread-card.has-thumb .bang-thread-open,
.account-home-feed .account-profile-post-card .bang-thread-open {
  padding-left: 16px;
  background: transparent;
}

.account-home-feed .account-profile-card-footer,
.account-home-feed .account-profile-post-card.bang-thread-card.has-thumb .bang-thread-stats {
  padding-right: 16px;
  padding-left: 16px;
  background: transparent;
}

.account-home-feed .account-profile-post-card:hover,
.account-home-feed .account-profile-reply-card:hover,
.account-home-feed .account-thread-row:hover {
  background: #fff;
  border-color: #e4e7ee;
}

.account-home-feed .type-badge,
.account-home-feed .account-thread-row span:first-child {
  width: fit-content;
  color: #596174;
  background: #eef1f6;
  border: 0;
}

.account-home-feed .account-folder-move select {
  background: #fff;
}

.account-home-feed .account-profile-activity-card strong,
.account-home-feed .account-profile-reply-title strong,
.account-home-feed .account-thread-row strong,
.account-home-feed .deal-card-title,
.account-home-feed .bang-thread-title-row strong {
  font-weight: 850;
  letter-spacing: 0;
}

.account-home-feed .account-profile-reply-bubble {
  padding: 0;
  font-weight: 650;
  background: transparent;
  border: 0;
}

.account-home-feed .account-profile-reply-head time,
.account-home-feed .account-profile-card-date,
.account-home-feed .account-profile-activity-card small,
.account-home-feed .account-thread-row small {
  color: #626b7e;
  font-weight: 700;
}

.account-page .account-mobile-nav {
  right: 50%;
  left: auto;
  width: min(400px, 100vw);
  max-width: none;
  margin: 0;
  transform: translateX(50%);
}

.account-page-card {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  padding: 14px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}

.account-identity-card {
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  min-height: 82px;
}

.account-identity-card strong,
.account-identity-card p {
  margin: 0;
}

.account-identity-card strong {
  display: block;
  margin-top: 2px;
  font-size: 17px;
  font-weight: 850;
}

.account-identity-card p {
  margin-top: 4px;
  color: #718195;
  font-size: 13px;
  line-height: 1.45;
}

.account-muted-avatar {
  width: 46px;
  height: 46px;
  color: #1d2733;
  background: #eef2f6;
  border-radius: 50%;
  box-shadow: none;
}

.account-muted-avatar svg {
  width: 22px;
  height: 22px;
}

.account-auth-card {
  gap: 12px;
  padding: 16px;
}

.account-auth-card h1 {
  margin: -4px 0 2px;
  font-size: 22px;
  font-weight: 900;
}

.account-auth-form {
  display: grid;
  gap: 14px;
}

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

.account-auth-form input {
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  padding: 0 12px;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.account-auth-form input::placeholder {
  color: var(--muted);
}

.account-auth-form input:focus {
  border-color: var(--accent-mid);
  box-shadow: 0 0 0 3px rgba(216, 90, 48, 0.12);
}

.account-password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: 8px;
}

.account-password-row:focus-within {
  border-color: var(--accent-mid);
  box-shadow: 0 0 0 3px rgba(216, 90, 48, 0.12);
}

.account-password-row input {
  min-width: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.account-password-row input:focus {
  border-color: transparent;
  box-shadow: none;
}

.account-password-row .icon-button {
  width: 42px;
  height: 38px;
  color: #26313d;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.account-password-row svg {
  width: 19px;
  height: 19px;
}

.account-auth-submit {
  width: fit-content;
  min-height: 36px;
  padding: 0 20px;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
}

.account-register-link {
  width: fit-content;
  min-height: 32px;
  padding: 0 4px;
  color: var(--accent-strong);
  font-weight: 800;
}

.account-auth-hint {
  margin: 0;
  color: #718195;
  font-size: 12px;
  line-height: 1.6;
}

.account-hero-card {
  grid-template-columns: 58px minmax(0, 1fr) 38px;
  align-items: start;
  margin-top: 0;
}

.account-hero-level-summary {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  padding-top: 4px;
}

.account-level-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  color: var(--ink);
  text-align: left;
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius);
}

.account-level-toggle span:first-child {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-level-toggle strong {
  display: none;
  font-size: 13px;
  font-weight: 900;
}

.account-level-toggle-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--accent-strong);
  font-size: 18px;
  font-weight: 900;
  background: #fff;
  border: 1px solid var(--accent-mid);
  border-radius: 50%;
}

.account-page-avatar {
  display: grid;
  width: 56px;
  height: 56px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  place-items: center;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(216, 90, 48, 0.28);
}

.account-hero-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.account-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.account-hero-main > strong {
  overflow: hidden;
  font-size: 22px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-name-row {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  flex-wrap: nowrap;
}

.account-name-row strong {
  min-width: 32px;
  overflow: hidden;
  font-size: 22px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-hero-level {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.account-hero-contribution {
  display: grid;
  gap: 4px;
  width: 100%;
  max-width: 280px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.account-hero-contribution span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-level-card {
  gap: 14px;
}

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

.account-level-panel[hidden] {
  display: none;
}

.account-level-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.account-level-current {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.account-hero-card .account-level-panel .account-level-current .level-pill {
  display: none;
}

.account-level-current > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-level-current strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-level-current span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.account-level-progress {
  height: 8px;
  overflow: hidden;
  background: #eceff3;
  border-radius: var(--radius-pill);
}

.account-level-progress span {
  display: block;
  height: 100%;
  background: #2f7de1;
  border-radius: inherit;
}

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

.account-level-counts div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 9px 10px;
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius);
  font-size: 12px;
}

.account-level-counts span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-level-counts strong {
  flex: 0 0 auto;
}

.account-level-events {
  display: grid;
  gap: 8px;
}

.account-level-events > strong {
  font-size: 13px;
}

.account-level-events ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.account-level-events li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.account-level-events li:last-child {
  border-bottom: 0;
}

.account-level-events span {
  color: var(--muted);
}

.account-level-events strong {
  color: #16824e;
}

.account-level-events strong.negative {
  color: var(--accent);
}

.account-edit-button {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  color: var(--accent-strong);
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: 50%;
  box-shadow: none;
}

.account-edit-button svg {
  width: 17px;
  height: 17px;
}

.account-profile-button {
  align-self: start;
  justify-self: end;
  width: 34px;
  height: 34px;
  color: #4f5f75;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: none;
}

.account-profile-button svg {
  width: 18px;
  height: 18px;
}

.account-public-profile-dialog,
.deal-public-profile-dialog {
  width: min(620px, calc(100vw - 24px));
}

.account-nickname-panel {
  display: grid;
  grid-column: 2 / -1;
  gap: 8px;
  min-width: 0;
}

.account-nickname-editor {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.account-nickname-editor input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}

.account-nickname-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.account-nickname-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.account-nickname-actions button {
  min-height: 40px;
}

.account-section-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.account-section-head h2,
.account-section-head p {
  margin: 0;
}

.account-section-head h2 {
  font-size: 18px;
  font-weight: 850;
}

.account-section-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.account-section-link {
  flex-shrink: 0;
  min-height: 36px;
  padding: 0 12px;
}

.account-page-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.account-page-stats div {
  min-width: 0;
  padding: 12px 10px;
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius);
}

.account-page-stats span,
.account-page-stats strong {
  display: block;
}

.account-page-stats span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-page-stats strong {
  margin-top: 4px;
  color: var(--accent-strong);
  font-size: 22px;
  font-weight: 900;
}

.account-list-preview {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.account-manage-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.account-manage-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 12px;
  color: inherit;
  background: #fff;
  text-decoration: none;
}

.account-manage-icon {
  display: grid;
  width: 34px;
  height: 34px;
  color: var(--ink);
  place-items: center;
  background: #f2f3f5;
  border-radius: 50%;
}

.account-manage-icon svg {
  width: 18px;
  height: 18px;
}

.account-manage-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.account-manage-copy strong,
.account-manage-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-manage-copy strong {
  font-size: 15px;
  font-weight: 850;
}

.account-manage-copy small {
  color: var(--muted);
  font-size: 12px;
}

.account-manage-arrow {
  display: grid;
  color: var(--ink);
  place-items: center;
}

.account-manage-arrow svg {
  width: 17px;
  height: 17px;
}

.account-thread-row {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 12px;
  color: inherit;
  background: #fff;
  text-decoration: none;
}

.account-thread-row span {
  width: fit-content;
  padding: 2px 7px;
  color: #16649a;
  font-size: 11px;
  font-weight: 800;
  background: #e7f5ff;
  border: 1px solid #9bd4ff;
  border-radius: var(--radius-pill);
}

.account-thread-row strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-thread-row small {
  color: var(--muted);
  font-size: 12px;
}

.account-saved-place-folder-row {
  gap: 9px;
}

.account-saved-place-main {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.account-folder-move {
  display: inline-grid;
  grid-template-columns: auto 108px;
  gap: 5px;
  align-items: center;
  min-width: 0;
}

.account-folder-move small {
  font-weight: 800;
  text-align: left;
}

.account-folder-move select {
  width: 100%;
  min-height: 30px;
  padding: 0 7px;
  font-size: 12px;
  font-weight: 750;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.account-saved-place-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.account-saved-place-metrics {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  color: #7b828c;
  font-size: 13px;
  font-weight: 800;
}

.account-saved-place-metrics span,
.account-save-metric {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  height: 20px;
  min-width: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.account-saved-place-metrics svg,
.account-save-metric svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.account-saved-place-metrics span::before,
.account-save-metric::before {
  display: none;
}

.account-saved-place-metrics span {
  color: #7b828c;
  line-height: 1;
}

.account-saved-place-metrics .account-save-metric,
.account-saved-place-metrics .account-save-metric:hover,
.account-saved-place-metrics .account-save-metric:focus-visible {
  color: #7b828c;
}

.account-comment-metric svg {
  transform: translateY(1px);
}

.account-save-metric {
  width: 20px;
  min-width: 0;
  min-height: 0;
  justify-content: center;
  padding: 0;
  color: #1f78aa;
  font: inherit;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.account-save-metric svg {
  width: 19px;
  height: 19px;
  flex-basis: 19px;
}

.account-save-metric:hover,
.account-save-metric:focus-visible {
  color: #16649a;
}

.account-saved-map-list {
  display: grid;
  gap: 8px;
}

.account-saved-deal-list {
  gap: 8px;
}

.account-saved-deal-row span {
  color: var(--accent);
}

.account-saved-deal-row .account-saved-place-main small {
  color: var(--accent);
  font-weight: 850;
}

.account-saved-place-row span {
  color: #16649a;
}

.account-saved-place-row .account-place-kind-badge {
  color: #fff;
  border: 0;
}

.account-saved-place-row .account-place-kind-restaurant {
  background: #d73545;
}

.account-saved-place-row .account-place-kind-lodging {
  background: #2475d6;
}

.account-saved-place-row .account-place-kind-facility {
  background: #7c3aed;
}

.account-saved-place-row .account-place-kind-service {
  background: #159459;
}

.account-saved-discussion-row span {
  color: #4f5f75;
}

.account-saved-place-row .account-saved-place-metrics span,
.account-saved-deal-row .account-saved-place-metrics span,
.account-saved-discussion-row .account-saved-place-metrics span,
.account-saved-place-row .account-saved-place-metrics button,
.account-saved-deal-row .account-saved-place-metrics button,
.account-saved-discussion-row .account-saved-place-metrics button,
.account-saved-place-row .account-saved-place-metrics a,
.account-saved-deal-row .account-saved-place-metrics a,
.account-saved-discussion-row .account-saved-place-metrics a,
.account-saved-place-row .account-saved-place-metrics .account-save-metric,
.account-saved-deal-row .account-saved-place-metrics .account-save-metric,
.account-saved-discussion-row
  .account-saved-place-metrics
  .account-save-metric {
  color: #7b828c;
}

.account-saved-place-row .account-saved-place-metrics span:nth-child(1),
.account-saved-place-row .account-saved-place-metrics button:nth-child(1),
.account-saved-deal-row .account-saved-place-metrics span:nth-child(1),
.account-saved-deal-row .account-saved-place-metrics button:nth-child(1) {
  color: #21875a;
  background: transparent;
}

.account-saved-discussion-row .account-saved-place-metrics span:nth-child(1) {
  color: var(--accent);
  background: transparent;
}

.account-saved-place-row .account-saved-place-metrics button:nth-child(2),
.account-saved-deal-row .account-saved-place-metrics span:nth-child(2),
.account-saved-deal-row .account-saved-place-metrics button:nth-child(2) {
  color: #a94d58;
}

.account-saved-place-row .account-saved-place-metrics a:nth-child(3),
.account-saved-deal-row .account-saved-place-metrics span:nth-child(3),
.account-saved-deal-row .account-saved-place-metrics a:nth-child(3),
.account-saved-deal-row .account-saved-place-metrics button:nth-child(4),
.account-saved-discussion-row .account-saved-place-metrics span:nth-child(2),
.account-saved-discussion-row .account-saved-place-metrics button:nth-child(3) {
  color: #7b828c;
}

.account-saved-metric-button {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-width: 0;
  height: 22px;
  padding: 0;
  font: inherit;
  color: #7b828c;
  line-height: 1;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.account-saved-metric-button.active {
  font-weight: 900;
}

.account-saved-metric-button span {
  color: inherit;
}

.account-saved-place-row .account-saved-place-metrics .account-saved-metric-button > span,
.account-saved-deal-row .account-saved-place-metrics .account-saved-metric-button > span,
.account-saved-discussion-row .account-saved-place-metrics .account-saved-metric-button > span,
.account-saved-discussion-card .bang-thread-action > span {
  color: inherit;
}

.account-saved-place-metrics .account-metric-good,
.account-saved-place-metrics .account-metric-good.active {
  color: #21875a;
}

.account-saved-place-metrics .account-metric-bad,
.account-saved-place-metrics .account-metric-bad.active {
  color: #d12d3c;
}

.account-saved-place-metrics .account-metric-comment,
.account-saved-place-metrics .account-metric-save {
  color: #7b828c;
}

.account-saved-deal-row .account-saved-place-metrics button:nth-child(1).active,
.account-saved-place-row .account-saved-place-metrics button:nth-child(1).active {
  color: #0f6b4f;
}

.account-saved-deal-row .account-saved-place-metrics button:nth-child(2).active,
.account-saved-place-row .account-saved-place-metrics button:nth-child(2).active {
  color: var(--accent);
}

.account-saved-metric-button:disabled,
.account-unsave-action:disabled {
  cursor: wait;
  opacity: 0.55;
}

.account-saved-discussion-card {
  border-right: 0;
  border-left: 0;
}

.account-saved-discussion-card .bang-thread-open {
  min-height: 0;
}

.account-saved-discussion-card .bang-thread-category-text {
  color: #596174;
  font-size: 12px;
  font-weight: 800;
}

.account-saved-discussion-card .bang-thread-title-row strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-saved-discussion-card .bang-thread-content p {
  display: -webkit-box;
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.account-saved-discussion-card .account-saved-discussion-footer {
  gap: 8px;
  padding-top: 0;
}

.account-saved-discussion-card .bang-thread-action {
  color: #7b828c;
}

.account-saved-discussion-card .bang-thread-action:first-child {
  color: #d12d3c;
}

.account-saved-discussion-card .account-unsave-action {
  color: #7b828c;
}

.account-saved-discussion-card .account-saved-comment-link {
  color: #7b828c;
  text-decoration: none;
}

.account-saved-discussion-card .bang-thread-action svg {
  width: 15px;
  height: 15px;
}

.account-saved-discussion-card .account-folder-move {
  grid-template-columns: minmax(0, 108px);
  margin-left: auto;
}

.account-saved-discussion-card .account-folder-move small {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.bang-save-button svg,
#detailSaveThread svg {
  width: 15px;
  height: 15px;
}

#detailSaveThread {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

#detailLikeThread.active {
  color: #d12d3c;
}

#detailSaveThread.active {
  color: var(--accent);
}

.account-deal-manager {
  display: grid;
  gap: 12px;
}

.account-deal-manager-card {
  padding-top: 10px;
}

.account-manager-toolbar {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
  min-height: 40px;
}

.account-manager-toolbar h2 {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
  font-size: 17px;
  font-weight: 900;
}

.account-manager-action {
  justify-self: end;
}

.account-folder-strip {
  display: flex;
  gap: 8px;
  padding: 0 0 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.account-folder-substrip {
  margin-top: -3px;
  padding-bottom: 6px;
}

.account-folder-substrip .account-folder-chip {
  min-height: 28px;
  padding: 0 9px;
  font-size: 12px;
}

.account-folder-substrip .account-folder-chip strong {
  min-width: 18px;
  padding: 1px 5px;
  font-size: 10px;
}

.account-folder-strip::-webkit-scrollbar {
  display: none;
}

.account-folder-chip {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  color: var(--ink);
  font-weight: 800;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}

.account-folder-chip strong {
  min-width: 20px;
  padding: 1px 6px;
  color: var(--muted);
  font-size: 11px;
  background: #f3f5f8;
  border-radius: var(--radius-pill);
}

.account-folder-chip.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.account-folder-chip.active strong {
  color: var(--accent);
  background: #fff;
}

.account-folder-dialog,
.favorite-folder-picker {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  align-items: end;
}

.account-folder-dialog-backdrop,
.favorite-folder-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 20, 22, 0.32);
}

.account-folder-dialog-panel,
.favorite-folder-picker-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(100% - 16px, 500px);
  margin: 0 auto max(8px, env(safe-area-inset-bottom));
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg) var(--radius-lg) 12px 12px;
  box-shadow: var(--shadow-lg);
}

body.account-page .account-folder-dialog-panel {
  max-height: calc(100dvh - 112px - env(safe-area-inset-bottom));
  margin-bottom: calc(76px + env(safe-area-inset-bottom));
  overflow: auto;
}

body.deals-page .discussion-save-folder-picker .favorite-folder-picker-panel,
body.bang-page .discussion-save-folder-picker .favorite-folder-picker-panel {
  max-height: calc(100dvh - 112px - env(safe-area-inset-bottom));
  margin-bottom: calc(76px + env(safe-area-inset-bottom));
  overflow: auto;
}

.account-folder-dialog-panel strong,
.favorite-folder-picker-panel strong {
  font-size: 18px;
  font-weight: 900;
}

.account-folder-dialog-panel p {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.account-folder-dialog-panel input,
.favorite-folder-picker-panel input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.account-folder-dialog-panel > div,
.favorite-folder-picker-head,
.favorite-folder-create-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
}

.favorite-folder-picker-head {
  grid-template-columns: minmax(0, 1fr) 38px;
}

.favorite-folder-options {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.favorite-folder-options::-webkit-scrollbar {
  display: none;
}

.favorite-folder-options button {
  flex: 0 0 auto;
}

.favorite-folder-picker-panel label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 850;
}

.favorite-folder-picker-inline {
  position: static;
  inset: auto;
  z-index: auto;
  display: block;
}

.favorite-folder-picker-inline .favorite-folder-picker-panel {
  width: 100%;
  margin: 0;
  padding: 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.favorite-folder-picker-inline .favorite-folder-picker-head .icon-button {
  width: 34px;
  min-height: 34px;
}

.favorite-folder-picker-dialog {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  align-items: end;
  padding: 12px;
}

.favorite-folder-picker-dialog .favorite-folder-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 20, 22, 0.28);
}

.favorite-folder-picker-dialog .favorite-folder-picker-panel {
  width: 100%;
  margin: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.account-manager-title-icon {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  color: var(--accent-strong);
  place-items: center;
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: 50%;
}

.account-manager-title-icon svg {
  width: 15px;
  height: 15px;
}

.account-profile-page-card {
  margin-top: 0;
  padding: 0;
  min-height: calc(100dvh - 104px);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.account-profile-title-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.account-profile-toolbar {
  margin-bottom: 10px;
}

.account-profile-surface {
  display: grid;
  align-content: start;
  align-items: start;
  gap: 14px;
  grid-auto-rows: max-content;
}

.account-profile-summary-card {
  display: grid;
  gap: 12px;
  padding: 8px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}

.account-profile-stats-summary {
  display: grid;
  gap: 0;
  overflow: hidden;
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius);
}

.account-profile-stats-toggle {
  grid-template-columns: minmax(0, 1fr) 30px;
  min-height: 42px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.account-profile-stats-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.account-profile-stats-panel[hidden] {
  display: none;
}

.account-profile-stats-scope {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  justify-self: end;
  padding: 3px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}

.account-profile-stats-scope button {
  min-height: 28px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
}

.account-profile-stats-scope button.active {
  color: var(--accent-strong);
  background: var(--accent-light);
}

.account-profile-hero {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.account-profile-avatar,
.account-profile-reply-avatar {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: var(--accent);
  border-radius: 50%;
}

.account-profile-avatar {
  width: 58px;
  height: 58px;
  font-size: 24px;
}

.account-profile-identity {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.account-profile-identity > span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.account-profile-name-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.account-profile-name-row strong {
  min-width: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.account-profile-name-row .level-pill {
  align-self: center;
}

.account-profile-identity p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.account-profile-metrics[hidden] {
  display: none;
}

.account-profile-metrics div {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 10px 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.account-profile-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.account-profile-metrics strong {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
  text-align: right;
}

.account-profile-content-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 8px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}

.account-profile-tabs,
.account-profile-status-tabs {
  display: grid;
  gap: 8px;
}

.account-profile-tabs {
  position: relative;
  align-self: start;
  align-items: start;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: max-content;
  height: max-content;
  gap: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.account-profile-tabs::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--line);
}

.account-profile-status-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-profile-tabs button,
.account-profile-status-tabs button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 38px;
  min-height: 38px;
  padding: 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.account-profile-tabs button.active,
.account-profile-status-tabs button.active {
  color: var(--accent-strong);
  background: transparent;
  box-shadow: none;
}

.account-profile-tabs button.active::after {
  position: absolute;
  right: 16px;
  bottom: 0;
  left: 16px;
  z-index: 1;
  height: 2px;
  content: "";
  background: var(--accent-strong);
  border-radius: var(--radius-pill);
}

.account-profile-status-tabs button {
  background: #fff;
  border: 1px solid var(--line);
}

.account-profile-feed {
  display: grid;
  gap: 0;
}

.account-profile-content-card .account-empty-state {
  margin: 0;
  padding: 18px 12px;
  background: #fbf6f7;
  border-radius: var(--radius);
}

.account-profile-activity-card {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.account-profile-activity-card strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.25;
}

.account-profile-activity-card p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.account-profile-activity-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.account-profile-map-card {
  gap: 7px;
}

.account-profile-map-status {
  width: fit-content;
  border: 0;
}

.account-profile-map-status.map-status-confirmed {
  color: #12824a;
  background: #dff7e9;
}

.account-profile-map-status.map-status-alert {
  color: #b4232f;
  background: #fff0f1;
}

.account-profile-map-details {
  display: grid;
  gap: 4px;
  min-width: 0;
  margin: 1px 0 0;
}

.account-profile-map-details div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
}

.account-profile-map-details dt,
.account-profile-map-details dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.account-profile-map-details dt {
  color: #6f7788;
  font-weight: 850;
}

.account-profile-map-details dd {
  color: var(--ink);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.account-profile-map-price-row dd {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.account-profile-map-date {
  flex: 0 0 auto;
  color: #626b7e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.account-profile-post-card {
  position: relative;
  width: 100%;
  overflow: visible;
  background: #fff;
  border: 1px solid #eadde1;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(50, 32, 37, 0.04);
}

.account-profile-post-card + .account-profile-post-card {
  margin-top: -1px;
}

.account-profile-post-card:not(:first-child) {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.account-profile-post-card:not(:last-child) {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.account-profile-post-card:hover {
  background: #fdf8f8;
  border-color: #e5cbd1;
}

.account-profile-post-card:hover .deal-card-open,
.account-profile-post-card:hover .account-profile-card-footer {
  background: #fdf8f8;
}

.account-profile-post-card .deal-card-open {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "head"
    "title"
    "price";
}

.account-profile-post-card .deal-card-open.has-thumb {
  min-height: 116px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "head"
    "title"
    "price";
  padding-right: 132px;
  padding-top: 10px;
}

.account-profile-post-card .deal-card-thumb {
  position: absolute;
  top: 38px;
  right: 12px;
  margin-top: 0;
}

.account-profile-post-card .deal-card-head {
  gap: 3px;
}

.account-profile-post-card.bang-thread-card.has-thumb {
  display: block;
  padding: 0;
}

.account-profile-post-card.bang-thread-card.has-thumb .bang-thread-open {
  min-height: 116px;
  padding: 10px 132px 8px 14px;
}

.account-profile-post-card .bang-thread-thumb {
  position: absolute;
  top: 38px;
  right: 12px;
  grid-column: auto;
  grid-row: auto;
  margin-top: 0;
}

.account-profile-post-card .bang-thread-head {
  min-height: 18px;
}

body.account-page .account-home-feed .account-profile-post-card .deal-category-text,
body.account-page .account-home-feed .account-profile-post-card .bang-thread-category-text,
body.account-page .account-saved-discussion-card .bang-thread-category-text {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  align-items: center;
  padding: 2px 8px;
  overflow: hidden;
  color: #596174;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #eef1f6;
  border: 0;
  border-radius: var(--radius-pill);
}

.account-profile-post-card.bang-thread-card.has-thumb .bang-thread-stats {
  grid-column: auto;
  grid-row: auto;
  padding: 0 14px 12px;
}

.account-profile-card-footer {
  align-items: center;
}

.account-profile-card-footer .deal-feedback-button {
  min-width: 0;
  min-height: 22px;
  gap: 3px;
  padding: 0;
  font-size: 12px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.account-profile-card-footer .deal-feedback-button svg {
  width: 16px;
  height: 16px;
}

.account-profile-card-footer .deal-feedback-button .plate-icon {
  overflow: visible;
}

.account-profile-card-footer .deal-feedback-button.bad {
  margin-left: 6px;
}

.account-profile-card-footer .deal-comment-count {
  width: auto;
  min-width: 0;
  height: 22px;
  gap: 3px;
  margin-left: 8px;
  font-size: 12px;
}

.account-profile-card-footer .deal-comment-count svg {
  width: 16px;
  height: 16px;
}

.account-profile-card-date {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: auto;
  padding-right: 34px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.deal-feedback.account-profile-card-footer .account-profile-card-date {
  margin-left: 1px;
}

.account-profile-manage-actions {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 5;
  display: block;
}

.account-profile-menu-toggle {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  color: #5f6673;
  place-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid transparent;
  border-radius: 50%;
  box-shadow: none;
}

.account-profile-menu-toggle:hover,
.account-profile-menu-toggle[aria-expanded="true"] {
  color: var(--accent-strong);
  background: #fff5f6;
  border-color: #f0c9cf;
}

.account-profile-menu-toggle svg {
  width: 18px;
  height: 18px;
}

.account-profile-manage-menu {
  position: absolute;
  top: 34px;
  right: 0;
  z-index: 6;
  display: grid;
  min-width: 136px;
  overflow: hidden;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(50, 32, 37, 0.16);
}

.account-profile-manage-menu[hidden] {
  display: none;
}

.account-profile-manage-menu .text-button,
.account-profile-reply-actions .text-button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.account-profile-manage-menu .text-button {
  width: 100%;
  justify-content: flex-start;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 6px;
}

.account-profile-manage-menu .text-button:hover {
  background: #fbf1f3;
}

.account-profile-manage-menu .text-button.danger {
  color: #b32638;
}

.account-profile-reply-card {
  display: grid;
  gap: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.account-profile-reply-context {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  color: inherit;
  text-decoration: none;
  background: #fbf6f7;
  border-bottom: 1px solid var(--line);
}

.account-profile-reply-context strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.account-profile-reply-context small,
.account-profile-reply-meta,
.account-profile-reply-actions {
  color: var(--muted);
  font-size: 12px;
}

.account-profile-reply-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.account-profile-reply-avatar {
  width: 38px;
  height: 38px;
}

.account-profile-reply-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.account-profile-reply-meta strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.account-profile-reply-body p {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

.account-profile-reply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.account-profile-reply-actions a {
  color: var(--accent-strong);
  font-weight: 850;
  text-decoration: none;
}

.account-profile-reply-card {
  position: relative;
  overflow: visible;
  gap: 0;
  border-color: #d9e2ea;
  border-radius: 7px;
  box-shadow: none;
}

.account-profile-reply-card + .account-profile-reply-card {
  margin-top: -1px;
}

.account-profile-reply-card:not(:first-child) {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.account-profile-reply-card:not(:last-child) {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.account-profile-reply-card:hover {
  border-color: #bfd4e8;
  background: #fbfdff;
}

.account-profile-reply-open {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px 48px 26px 12px;
  color: inherit;
  text-decoration: none;
}

.account-profile-reply-head {
  display: block;
  min-width: 0;
}

.account-profile-reply-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.account-profile-reply-title .type-badge {
  width: fit-content;
  padding: 2px 8px;
  font-size: 11px;
}

.account-profile-reply-title strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-profile-reply-date {
  position: absolute;
  right: 12px;
  bottom: 8px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-align: right;
}

.account-profile-map-reply-detail {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-profile-reply-bubble {
  display: -webkit-box;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.account-profile-reply-menu-actions {
  position: absolute;
  top: 9px;
  right: 10px;
  z-index: 5;
}

.account-profile-reply-menu-actions .account-profile-manage-menu {
  top: 32px;
}

@media (max-width: 560px) {
  .account-profile-reply-open {
    padding: 10px 44px 26px 12px;
  }

  .account-profile-reply-date {
    right: 12px;
    text-align: right;
  }
}

.account-manager-back {
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.account-manager-back svg {
  width: 22px;
  height: 22px;
}

.account-manager-head {
  align-items: flex-start;
}

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

.account-deal-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  background: #f4f0f1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.account-deal-tabs button {
  min-width: 0;
  min-height: 42px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.account-deal-tabs button.active {
  color: var(--accent-strong);
  background: #fff;
  border-bottom-color: var(--accent);
}

.account-deal-feed {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.account-managed-deal-card {
  border-radius: 0;
}

.account-managed-deal-card .deal-feedback-button {
  cursor: default;
}

.account-deal-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 12px;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}

.account-deal-post-item:hover,
.account-deal-reply-link:hover {
  background: #fffafa;
}

.account-deal-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 900;
  place-items: center;
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: 50%;
}

.account-deal-avatar svg {
  width: 18px;
  height: 18px;
}

.account-deal-content {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.account-deal-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.account-deal-meta strong,
.account-deal-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-deal-meta strong {
  font-size: 13px;
  font-weight: 900;
}

.account-deal-meta small {
  color: var(--muted);
  font-size: 12px;
}

.account-deal-title,
.account-deal-reply-context {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-deal-reply-context {
  color: var(--accent-strong);
  font-size: 13px;
}

.account-deal-body {
  display: -webkit-box;
  overflow: hidden;
  color: #344154;
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.account-deal-tags,
.account-deal-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.account-deal-tags span,
.account-deal-metrics span {
  width: fit-content;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 850;
  border-radius: var(--radius-pill);
}

.account-deal-tags span {
  color: var(--accent-strong);
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
}

.account-deal-metrics span {
  color: #176b4d;
  background: #e9fbf3;
  border: 1px solid #8bdab8;
}

.account-deal-reply-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.account-deal-reply-link {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.account-reply-delete {
  min-height: 34px;
  padding: 0 10px;
  color: #c9364b;
  border-color: #f0b6bf;
}

.account-deal-empty {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.account-deal-empty strong,
.account-deal-empty p {
  margin: 0;
}

.account-deal-empty strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.account-deal-empty .primary-action {
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
}

.account-empty-state {
  margin: 0;
  padding: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  background: #fff;
}

.account-placeholder-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  background: #faf7f8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.account-placeholder-icon {
  display: grid;
  width: 40px;
  height: 40px;
  color: var(--accent-strong);
  place-items: center;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 50%;
}

.account-placeholder-icon svg {
  width: 19px;
  height: 19px;
}

.account-placeholder-row strong,
.account-placeholder-row p {
  margin: 0;
}

.account-placeholder-row strong {
  display: block;
  font-size: 15px;
  font-weight: 850;
}

.account-placeholder-row p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.account-settings-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.account-settings-list a,
.account-setting-button {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 12px;
  color: inherit;
  background: #fff;
  border: 0;
  text-decoration: none;
}

.account-setting-button {
  width: 100%;
  font: inherit;
  cursor: pointer;
}

.account-settings-list span {
  color: var(--ink);
  font-weight: 850;
}

.account-settings-list strong {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* -- Responsive -- */
@media (max-width: 900px) {
  .bang-rank-panel,
  .bang-side-panel {
    display: none;
  }
  .bang-shell {
    grid-template-columns: 1fr;
    width: min(640px, calc(100vw - 48px));
    min-height: 100dvh;
    margin: 0 auto;
    background: #fff;
    border-inline: 1px solid #edf0f2;
    box-shadow: 0 18px 48px rgba(17, 24, 39, 0.06);
  }

  .bang-page {
    background: #f7f8f9;
  }

  .bang-top-stack {
    background: #fff;
  }

  .bang-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    min-height: 52px;
  }

  .bang-search-disclosure {
    display: block;
  }

  .bang-search-toggle,
  #bangNotifyButton,
  #bangProfileButton,
  .bang-header-actions .primary-action {
    display: none;
  }

  .bang-search-row {
    position: static;
    display: grid;
    width: auto;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .bang-write-fab {
    right: max(22px, calc((100vw - min(640px, calc(100vw - 48px))) / 2 + 22px));
    bottom: calc(84px + env(safe-area-inset-bottom));
    display: grid;
    place-items: center;
    background: var(--accent);
    box-shadow: 0 4px 14px rgba(216, 90, 48, 0.38);
  }

  .bang-mobile-nav {
    right: 50%;
    left: auto;
    display: flex;
    width: min(640px, calc(100vw - 48px));
    transform: translateX(50%);
    background: #fff;
    border-top: 0.5px solid #f0e8e8;
    box-shadow: none;
    backdrop-filter: none;
  }
}

@media (min-width: 681px) {
  .bang-page {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
    background: #f7f8f9;
  }

  .bang-shell {
    display: block;
    width: min(640px, calc(100vw - 48px));
    min-height: 100dvh;
    margin: 0 auto;
    padding: 0 0 calc(112px + env(safe-area-inset-bottom));
    background: #fff;
    border-inline: 1px solid #edf0f2;
    box-shadow: 0 18px 48px rgba(17, 24, 39, 0.06);
  }

  .bang-rank-panel,
  .bang-side-panel {
    display: none;
  }

  .bang-main {
    min-width: 0;
  }

  .bang-top-stack {
    top: 0;
    z-index: 120;
    margin: 0;
    padding: 18px 22px 0;
    background: #fff;
    border-bottom: 1px solid #f2f2f2;
  }

  .bang-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    gap: 8px;
    align-items: center;
    min-height: 52px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .bang-header h1 {
    font-size: 22px;
  }

  .bang-header-actions {
    min-width: 0;
    width: 100%;
  }

  .bang-search-disclosure {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .bang-search-toggle,
  #bangNotifyButton,
  #bangProfileButton,
  .bang-header-actions .primary-action {
    display: none;
  }

  .bang-search-row {
    position: static;
    display: grid;
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .bang-search-row input {
    min-height: 44px;
  }

  .bang-category-tabs {
    position: static;
    top: auto;
    z-index: auto;
    margin: 12px -22px 0;
    padding: 0 22px 14px;
    background: #fff;
  }

  .bang-sort-tabs {
    position: static;
    top: auto;
    z-index: auto;
    margin: 0 -22px;
    padding: 0 22px;
    background: #fff;
    border-bottom: 1px solid #f2f2f2;
  }

  .bang-hot-section {
    padding: 10px 22px 12px;
  }

  .bang-thread-open {
    padding: 16px 22px 9px;
  }

  .bang-thread-card.has-thumb {
    grid-template-columns: minmax(0, 1fr) 124px;
    padding: 16px 22px;
  }

  .bang-thread-thumb {
    width: 124px;
    height: 124px;
  }

  .bang-thread-title-row strong {
    font-size: 19px;
  }

  .bang-thread-stats {
    padding: 0 22px 16px;
  }

  .bang-write-fab {
    right: max(22px, calc((100vw - min(640px, calc(100vw - 48px))) / 2 + 22px));
    bottom: calc(84px + env(safe-area-inset-bottom));
    display: grid;
    place-items: center;
    background: var(--accent);
    box-shadow: 0 4px 14px rgba(216, 90, 48, 0.38);
  }

  .bang-mobile-nav {
    right: 50%;
    left: auto;
    display: flex;
    width: min(640px, calc(100vw - 48px));
    transform: translateX(50%);
    background: #fff;
    border-top: 0.5px solid #f0e8e8;
    box-shadow: none;
    backdrop-filter: none;
  }

  .account-page .account-mobile-nav {
    width: min(640px, calc(100vw - 48px));
  }
}

@media (min-width: 1100px) {
  .bang-shell {
    width: min(760px, calc(100vw - 96px));
  }

  .bang-header {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .bang-thread-card.has-thumb {
    grid-template-columns: minmax(0, 1fr) 136px;
  }

  .bang-thread-thumb {
    width: 136px;
    height: 136px;
  }

  .bang-thread-title-row strong {
    font-size: 20px;
  }

  .bang-write-fab {
    right: max(24px, calc((100vw - min(760px, calc(100vw - 96px))) / 2 + 24px));
  }

  .bang-mobile-nav {
    width: min(760px, calc(100vw - 96px));
  }

  .account-page .account-mobile-nav {
    width: min(760px, calc(100vw - 96px));
  }
}

@media (max-width: 680px) {
  .account-level-center-dialog {
    width: calc(100vw - 12px);
    height: calc(100dvh - 12px);
    max-height: none;
    margin: 6px;
    border-radius: 14px;
  }

  .account-level-center-panel {
    height: 100%;
    max-height: none;
  }

  .account-level-center-body {
    padding: 10px;
  }

  .account-level-center-summary,
  .account-level-center-section {
    padding: 13px;
  }

  .account-level-center-tabs button {
    min-height: 38px;
    padding-inline: 6px;
    font-size: 12px;
  }

  .account-level-center-tab-panel {
    max-height: 56dvh;
  }

  .account-level-table-scroll {
    max-height: 48dvh;
  }

  .account-level-action-list {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }
  .ranking-panel {
    display: none;
  }
  .mobile-map-brand {
    display: flex;
    position: absolute;
    z-index: 1100;
    top: 0;
    left: 0;
    right: 0;
    align-items: center;
    justify-content: flex-start;
    min-height: 56px;
    padding: 8px 108px 8px 16px;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1.5px solid var(--line);
    backdrop-filter: blur(10px);
  }
  .mobile-map-brand strong {
    flex: 0 0 auto;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
  }
  .mobile-map-brand span {
    display: none;
  }

  .top-toolbar {
    top: 8px;
    right: 10px;
    left: auto;
    display: flex;
    min-height: 40px;
    gap: 8px;
    align-items: center;
  }

  .search-box {
    display: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 40px;
    padding: 0 11px;
    background: #f7eef1;
    border-color: #eadde1;
    border-radius: 9px;
    box-shadow: none;
    backdrop-filter: none;
  }

  .top-toolbar.search-open {
    right: 10px;
    left: 112px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px 40px;
  }

  .top-toolbar.search-open .search-box {
    display: flex;
    background: #f4f5f7;
  }

  .search-box input {
    height: 38px;
    background: transparent;
    font-size: 14px;
  }

  .top-toolbar #favoriteButton,
  .top-toolbar .admin-link {
    display: none;
  }

  .top-toolbar #filterButton,
  .top-toolbar #searchToggleButton {
    display: grid;
    width: 40px;
    height: 40px;
    min-height: 40px;
    background: transparent;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
  }

  .top-toolbar #searchToggleButton {
    order: 1;
  }

  .top-toolbar #filterButton {
    order: 2;
  }

  .top-toolbar #locateButton {
    position: fixed;
    left: 14px;
    bottom: calc(90px + env(safe-area-inset-bottom));
    width: 40px;
    height: 40px;
    min-height: 40px;
    color: #888780;
    background: #fff;
    border: 0.5px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  }

  .top-toolbar #locateButton svg {
    width: 20px;
    height: 20px;
  }

  .top-toolbar #filterButton svg,
  .top-toolbar #searchToggleButton svg {
    width: 18px;
    height: 18px;
  }

  .top-toolbar #submitButton {
    position: fixed;
    right: 14px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    z-index: 1248;
    display: grid;
    width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 0;
    color: #fff;
    font-size: 0;
    place-items: center;
    background: var(--accent);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(216, 90, 48, 0.38);
    transition:
      transform 0.15s,
      box-shadow 0.15s,
      background 0.15s;
  }

  .top-toolbar #submitButton:hover {
    background: var(--accent-strong);
    box-shadow: 0 6px 18px rgba(216, 90, 48, 0.42);
    transform: scale(1.06);
  }

  .top-toolbar #submitButton:focus-visible {
    background: var(--accent-strong);
    outline: 3px solid rgba(216, 90, 48, 0.22);
    outline-offset: 3px;
  }

  .top-toolbar #submitButton:active {
    background: var(--accent-strong);
    transform: scale(0.95);
  }

  .top-toolbar #submitButton::before,
  .top-toolbar #submitButton::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2.2px;
    content: "";
    background: currentColor;
    border-radius: 999px;
    transform: translate(-50%, -50%);
  }

  .top-toolbar #submitButton::after {
    transform: translate(-50%, -50%) rotate(90deg);
  }

  .place-cards::-webkit-scrollbar {
    display: none;
  }
  .refresh-area-button {
    top: 68px;
  }

  .map-status-panel {
    position: fixed;
    top: 50%;
    right: 10px;
    left: 10px;
    width: auto;
    max-width: none;
    gap: 8px;
    padding: 10px 11px;
    transform: translateY(-50%);
  }

  .map-status-panel strong {
    font-size: 13px;
  }

  .map-status-actions {
    gap: 6px;
  }

  .map-status-actions button {
    flex: 1 1 auto;
    min-width: max-content;
    min-height: 30px;
    padding: 0 9px;
    font-size: 12px;
  }

  .map-loading-indicator {
    width: 46px;
    height: 46px;
  }

  .map-loading-spinner {
    width: 18px;
    height: 18px;
    border-width: 2.5px;
  }

  .map-filter-pill {
    position: absolute;
    z-index: 1090;
    top: 58px;
    right: 10px;
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    gap: 8px;
    padding: 0 7px 0 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(32, 37, 43, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(25, 30, 35, 0.18);
    backdrop-filter: blur(8px);
  }

  .map-filter-pill[hidden] {
    display: none;
  }

  .map-filter-pill button {
    display: grid;
    width: 22px;
    height: 22px;
    min-height: 22px;
    padding: 0;
    color: #fff;
    font-size: 17px;
    line-height: 1;
    place-items: center;
    background: rgba(255, 255, 255, 0.16);
    border: 0;
    border-radius: 50%;
    box-shadow: none;
  }

  .map-filter-legend {
    top: 66px;
    right: 14px;
    width: 24px;
    padding: 7px 0;
    gap: 5px;
    border-radius: 9px;
  }

  .map-filter-legend-dot {
    width: 7px;
    height: 7px;
  }

  .bottom-sheet {
    display: block;
    right: 12px;
    bottom: calc(74px + env(safe-area-inset-bottom));
    left: 12px;
    max-height: none;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 92px));
    transition:
      height 180ms ease,
      opacity 160ms ease,
      transform 180ms ease;
  }

  .bottom-sheet[data-state="peek"] {
    height: 76px;
  }
  .bottom-sheet[data-state="half"],
  .bottom-sheet[data-state="expanded"] {
    z-index: 1300;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .bottom-sheet[data-state="half"] {
    height: min(58vh, 430px);
  }
  .bottom-sheet[data-state="expanded"] {
    height: min(72vh, 620px);
  }
  .bottom-sheet[data-state="peek"] .place-cards {
    display: none;
  }
  .bottom-sheet[data-state="peek"] .sheet-header {
    margin-bottom: 0;
  }
  .bottom-sheet[data-state="peek"] .sheet-ranking-mode-tabs,
  .bottom-sheet[data-state="peek"] .sheet-kind-tabs {
    display: none;
  }
  .bottom-sheet[data-state="peek"] .sheet-handle {
    margin-bottom: 8px;
  }

  .bottom-sheet[data-state="half"] .place-cards,
  .bottom-sheet[data-state="expanded"] .place-cards {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: 1fr;
    max-height: calc(72vh - 148px);
    overflow-y: auto;
  }

  .place-cards {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: 1fr;
    gap: 8px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .place-card {
    display: grid;
    gap: 6px;
    padding: 12px;
  }

  .map-list-button {
    position: absolute;
    z-index: 1110;
    top: 66px;
    left: 14px;
    display: grid;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    color: #888780;
    place-items: center;
    background: #fff;
    border: 0.5px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  }

  .map-list-button svg {
    width: 20px;
    height: 20px;
  }

  .map-list-button.active {
    color: var(--accent-strong);
    background: rgba(255, 239, 229, 0.9);
    border-color: var(--accent-mid);
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .map-stage > .mobile-bottom-nav {
    display: flex;
  }

  .filter-drawer {
    position: fixed;
    z-index: 1260;
    top: 56px;
    right: 16px;
    left: 16px;
    bottom: calc(74px + env(safe-area-inset-bottom));
    width: auto;
    max-height: none;
    overflow: auto;
    padding: 20px 20px 0;
    scrollbar-gutter: stable;
    border-radius: var(--radius-lg);
    transform: none;
  }

  .filter-top-controls {
    gap: 4px 6px;
  }

  .filter-drawer .candidate-filter-toggle {
    min-height: 30px;
    justify-content: flex-start;
    padding-left: 0;
  }

  .filter-actions {
    position: sticky;
    z-index: 5;
    bottom: 0;
    margin: 8px -20px 0;
    padding: 12px 20px 14px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 18px rgba(25, 30, 35, 0.08);
  }

  .account-drawer {
    position: fixed;
    right: 12px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    padding: 16px;
    border-radius: var(--radius-lg);
  }

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

  .filter-chip {
    min-width: 0;
    padding: 0 10px;
  }

  .detail-dialog {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    max-height: 88dvh;
    margin: auto 0 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .detail-dialog.place-submit-result-dialog {
    inset: 0;
    width: min(360px, calc(100vw - 28px));
    height: fit-content;
    max-height: calc(100dvh - 40px);
    margin: auto;
    overflow: visible;
    border-radius: 16px;
  }

  #placeDetail {
    height: 88dvh;
  }

  .place-detail-scroll {
    padding: 0 0 max(48px, env(safe-area-inset-bottom));
  }

  .place-activity-content {
    max-height: 142px;
    overflow: hidden;
  }

  .place-activity-content .place-pending-list {
    max-height: 142px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(119, 119, 119, 0.48) transparent;
    scrollbar-width: thin;
  }

  .place-activity-content .place-pending-list::-webkit-scrollbar {
    width: 4px;
  }

  .place-activity-content .place-pending-list::-webkit-scrollbar-track {
    background: transparent;
  }

  .place-activity-content .place-pending-list::-webkit-scrollbar-thumb {
    background: rgba(119, 119, 119, 0.48);
    border-radius: 999px;
  }

  .place-photo-list {
    min-height: 0;
  }

  .submit-dialog {
    top: max(5px, env(safe-area-inset-top));
    right: 5px;
    bottom: max(5px, env(safe-area-inset-bottom));
    left: 5px;
    width: auto;
    height: auto;
    max-height: none;
    margin: 0;
  }

  .submit-dialog.is-kind-step {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: min(58dvh, 430px);
    padding: 0;
    margin: auto 0 0;
    border-radius: 14px 14px 0 0;
  }

  .submit-dialog.is-kind-step::backdrop {
    background: rgba(18, 10, 14, 0.48);
  }

  .submit-dialog.is-kind-step .submission-panel {
    position: relative;
    max-height: inherit;
    padding-top: 14px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -10px 28px rgba(18, 10, 14, 0.22);
  }

  .submit-dialog.is-kind-step .submission-panel::before {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 56px;
    height: 5px;
    content: "";
    background: #d7d1d4;
    border-radius: var(--radius-pill);
    transform: translateX(-50%);
  }

  .submit-dialog.is-kind-step .submission-panel-header {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
    padding: 12px 18px 10px;
    border-bottom: 0;
  }

  .submit-dialog.is-kind-step .submission-panel-header > div {
    grid-column: 2;
    text-align: center;
  }

  .submit-dialog.is-kind-step .submission-panel-header p {
    display: none;
  }

  .submit-dialog.is-kind-step .submission-kind-picker {
    gap: 6px;
    max-height: calc(min(58dvh, 430px) - 76px);
    padding: 0 18px max(16px, env(safe-area-inset-bottom));
  }

  .submit-dialog.is-kind-step .submission-kind-option {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 2px 10px;
    padding: 10px 12px;
    border: 0;
    border-radius: 0;
  }

  .submit-dialog.is-kind-step .submission-kind-option + .submission-kind-option {
    border-top: 1px solid var(--line);
  }

  .submit-dialog.is-kind-step .submission-kind-option > span {
    width: 34px;
    height: 34px;
    font-size: 18px;
    background: transparent;
    border: 0;
  }

  .submit-dialog.is-kind-step .submission-kind-option strong {
    font-size: 16px;
  }

  .submit-dialog.is-kind-step .submission-kind-option small {
    font-size: 12px;
  }

  .modal-card {
    max-height: 76dvh;
    padding: 16px;
    overflow: auto;
  }

  #placeDetail {
    height: 88dvh;
    max-height: 88dvh;
    padding: 0;
    overflow: hidden;
  }

  .price-intel-panel {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }
  .price-intel-main strong {
    font-size: 28px;
  }
  .price-intel-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: stretch;
  }
  .price-intel-meta span {
    display: grid;
    place-items: center;
    min-height: 30px;
    padding: 4px 6px;
    text-align: center;
  }

  .modal-card menu {
    position: sticky;
    bottom: -16px;
    padding-top: 10px;
    background: #fff;
  }

  .submission-panel-header,
  .submission-panel-actions,
  .submission-panel-body {
    padding-right: 14px;
    padding-left: 14px;
  }

  .submission-panel-header {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .submission-panel-body {
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 14px;
  }
  .submission-section {
    gap: 10px;
    padding: 12px;
  }

  .anonymous-section {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px 12px;
  }
  .anonymous-section p {
    display: none;
  }
  .anonymous-actions {
    justify-content: flex-start;
  }
  .anonymous-actions .secondary-action,
  .anonymous-actions .text-button {
    min-height: 36px;
    padding: 0 10px;
  }

  .checkbox-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .checkbox-grid span {
    min-height: 38px;
    padding: 7px;
    font-size: 13px;
  }
  .menu-price-row {
    grid-template-columns: minmax(0, 1.25fr) minmax(96px, 0.75fr);
  }

  .detail-actions {
    position: sticky;
    bottom: -16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 10px;
    background: #fff;
  }

  .detail-actions button {
    min-height: 42px;
    padding: 0 8px;
  }
  .price-report-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comment-input-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .comment-input-row .primary-action {
    width: 100%;
  }
  .comment-report-menu {
    right: auto;
    left: 0;
    min-width: 136px;
  }

  .form-grid,
  .review-summary,
  .submission-meta {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    gap: 14px;
    padding: 18px;
  }

  .admin-domain-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-inline: -4px;
    border-radius: 10px;
  }

  .admin-tabs {
    top: 108px;
    margin-inline: -4px;
    border-radius: 10px;
  }

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

  .admin-workspace-tools {
    grid-template-columns: 1fr;
  }

  .admin-filter-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  /* bang mobile */
  .bang-page {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
    background: #fff;
  }

  .bang-shell {
    display: block;
    width: 100%;
    min-height: 100dvh;
    margin: 0;
    padding: 0 8px;
    border-inline: 0;
    box-shadow: none;
  }
  .bang-rank-panel,
  .bang-side-panel {
    display: none;
  }

  .bang-top-stack {
    top: 0;
    z-index: 120;
    margin: 0 -8px 8px;
    padding: 12px 14px 0;
    background: #fff;
    border-bottom: 1px solid #f2f2f2;
  }

  .bang-header {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    top: auto;
    z-index: 120;
    gap: 8px;
    align-items: center;
    min-height: 48px;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .bang-header-actions {
    position: static;
  }

  #bangNotifyButton {
    display: none;
  }
  .bang-header-actions .bang-search-toggle {
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    color: #9aa0a6;
    background: #f8f9fa;
    border-color: transparent;
    border-radius: 16px;
    cursor: pointer;
    list-style: none;
  }
  .bang-search-toggle svg {
    width: 19px;
    height: 19px;
  }
  .bang-header-actions .primary-action {
    display: none;
  }
  #bangProfileButton {
    display: none;
  }
  .bang-header h1 {
    font-size: 18px;
    font-weight: 800;
  }

  .bang-category-tabs {
    top: 76px;
    z-index: 110;
    margin: 10px -14px 0;
    padding: 0 14px 12px;
    background: #fff;
  }

  .bang-category-tab {
    min-height: 30px;
    padding: 0 14px;
    font-size: 13px;
  }

  .bang-sort-tabs {
    top: 122px;
    z-index: 105;
    margin: 0 -14px;
    padding: 0 14px;
    background: #fff;
  }

  .bang-top-stack .bang-header,
  .bang-top-stack .bang-category-tabs,
  .bang-top-stack .bang-sort-tabs {
    position: static;
    top: auto;
    z-index: auto;
  }

  .bang-top-stack .bang-header {
    position: relative;
  }

  .bang-sort-tabs button {
    min-height: 40px;
    font-size: 13px;
    font-weight: 650;
  }

  .bang-search-row {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    z-index: 1;
    grid-template-columns: minmax(0, 1fr);
    width: clamp(160px, 38vw, 190px);
    padding: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition:
      opacity 0.14s ease,
      transform 0.18s ease;
  }

  .bang-search-disclosure {
    display: block;
  }

  .bang-search-disclosure[open] .bang-search-row {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .bang-search-disclosure[open] .bang-search-toggle {
    opacity: 0;
    pointer-events: none;
  }

  .bang-search-row input {
    min-height: 40px;
  }

  .bang-search-row .deal-search-placeholder {
    display: block;
  }

  .bang-hot-section {
    margin: 0 -8px 8px;
    padding: 8px 8px 10px;
    background: #fff;
  }
  .bang-section-heading,
  .bang-list-heading {
    padding: 0 2px;
  }
  .bang-hot-list {
    grid-auto-columns: 72vw;
    padding-bottom: 5px;
  }
  .bang-hot-open {
    height: 76px;
    padding: 8px 10px;
  }
  .bang-list-heading {
    margin-bottom: 6px;
  }

  .bang-thread-open {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-height: 74px;
    padding: 10px 12px;
  }

  .bang-thread-card.has-thumb {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 0 10px;
    padding: 10px 12px;
  }

  .bang-thread-card.has-thumb .bang-thread-open {
    min-height: 0;
    padding: 0;
  }
  .bang-thread-thumb {
    width: 96px;
    height: 96px;
  }
  .bang-thread-title-row {
    align-items: flex-start;
    gap: 6px;
  }
  .bang-thread-title-row strong {
    width: 100%;
    font-size: 14px;
    white-space: nowrap;
  }
  .bang-thread-content {
    gap: 5px;
  }
  .bang-thread-content p {
    display: -webkit-box;
  }
  .bang-thread-card {
    border-radius: var(--radius);
  }
  .bang-thread-meta,
  .bang-thread-tags {
    gap: 4px;
    font-size: 11px;
  }
  .bang-thread-stats {
    justify-content: flex-start;
    gap: 8px;
    font-size: 12px;
  }
  .bang-thread-card.has-thumb .bang-thread-stats {
    padding: 8px 0 0;
  }

  .bang-load-more {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .bang-mobile-nav {
    right: 0;
    left: 0;
    display: flex;
    width: 100vw;
    transform: none;
  }

  .bang-write-fab {
    right: 14px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    display: grid;
    place-items: center;
    background: var(--accent);
    box-shadow: 0 4px 14px rgba(216, 90, 48, 0.38);
  }

  .deals-shell {
    min-height: 100dvh;
    width: 100%;
    padding: 0 0 calc(92px + env(safe-area-inset-bottom));
    border-inline: 0;
  }

  .deals-top-stack {
    margin: 0;
    padding: 12px 14px 0;
  }

  .deals-header {
    position: relative;
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 8px;
    align-items: center;
    min-height: 48px;
    padding: 0;
    overflow: hidden;
  }

  .deals-header h1 {
    font-size: 18px;
  }

  .deal-search-toggle {
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #9aa0a6;
    background: #f8f9fa;
    border-color: transparent;
    border-radius: 16px;
    cursor: pointer;
    list-style: none;
  }

  .deal-search-toggle::-webkit-details-marker {
    display: none;
  }

  .deal-search-toggle svg {
    width: 19px;
    height: 19px;
  }

  .deal-search-disclosure {
    display: contents;
  }

  .deals-search-row {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    z-index: 1;
    grid-template-columns: minmax(0, 1fr);
    width: clamp(160px, 38vw, 190px);
    padding: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition:
      opacity 0.14s ease,
      transform 0.18s ease;
  }

  .deal-search-disclosure[open] .deals-search-row {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .deal-search-disclosure[open] .deal-search-toggle {
    opacity: 0;
    pointer-events: none;
  }

  .deals-search-row input,
  .deals-search-row select {
    min-height: 40px;
  }

  .deal-search-field {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
  }

  .deal-search-field input {
    color: transparent;
    caret-color: #111827;
  }

  .deal-search-field input::placeholder {
    color: transparent;
  }

  .deal-search-field input:focus,
  .deal-search-field input:not(:placeholder-shown) {
    color: #111827;
  }

  .deal-search-field input:focus + .deal-search-placeholder,
  .deal-search-field input:not(:placeholder-shown) + .deal-search-placeholder {
    display: none;
  }

  .deal-search-placeholder {
    position: absolute;
    top: 50%;
    left: 12px;
    z-index: 1;
    display: block;
    width: calc(100% - 24px);
    overflow: hidden;
    color: #6b7280;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    transform: translateY(-50%);
  }

  .deal-search-disclosure[open] .deal-search-placeholder.marquee {
    animation: deal-search-marquee 4.8s ease-in-out 1s infinite alternate;
  }

  @keyframes deal-search-marquee {
    from {
      transform: translateY(-50%) translateX(0);
    }
    to {
      transform: translateY(-50%) translateX(-36px);
    }
  }

  .deal-category-tabs {
    margin: 10px -14px 0;
    padding: 0 14px 12px;
    background: #fff;
  }

  .deal-sort-tabs {
    margin: 0 -14px;
    padding: 0 14px;
    background: #fff;
  }

  .deal-list {
    gap: 10px;
    padding: 10px 10px calc(24px + env(safe-area-inset-bottom));
    background: #f3f4f6;
  }

  .deal-card-open {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 7px 10px;
    padding: 14px 14px 8px;
  }

  .deal-card-open.has-thumb {
    grid-template-columns: 42px minmax(0, 1fr) 100px;
  }

  .deal-expiry-alert {
    max-width: 76px;
  }

  .deal-card-actions {
    min-width: 116px;
    transform: none;
  }

  .deal-card-avatar {
    width: 40px;
    height: 40px;
  }

  .deal-card-thumb {
    width: 100px;
    height: 100px;
  }

  .deal-card-title {
    font-size: 18px;
  }

  .deal-title-row strong {
    font-size: 13px;
  }

  .deal-meta {
    gap: 5px;
    font-size: 11px;
  }

  .deal-feedback {
    padding: 0 14px 13px;
  }

  .deal-feedback-button {
    min-width: 62px;
    padding: 0 10px;
  }

  .deal-write-fab {
    right: 14px;
    bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .deals-mobile-nav {
    right: 0;
    left: 0;
    width: 100vw;
    transform: none;
  }

  .account-page .account-mobile-nav {
    right: 0;
    left: 0;
    width: 100vw;
    transform: none;
  }

  .deal-post-shell {
    padding: 50px 0 calc(132px + env(safe-area-inset-bottom));
    border-inline: 0;
  }

  .discussion-post-shell {
    padding-top: 50px;
    padding-bottom: calc(124px + env(safe-area-inset-bottom));
  }

  .deal-post-page::before {
    height: 50px;
  }

  .discussion-post-page::before {
    height: 50px;
  }

  .discussion-comment-item {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
    padding: 10px 12px 9px;
  }

  .discussion-comment-item.child {
    grid-template-columns: 26px minmax(0, 1fr);
    padding-left: 52px;
  }

  .discussion-comment-head {
    gap: 4px;
  }

  .discussion-comment-meta > strong,
  .discussion-comment-meta > span:first-child,
  .discussion-comment-meta .bang-author-link {
    max-width: 112px;
  }

  .discussion-comment-body {
    font-size: 14px;
  }

  .discussion-comment-actions {
    gap: 11px;
  }

  .discussion-child-toggle {
    margin-left: 52px;
  }

  .deal-post-topbar {
    min-height: 50px;
    padding: 6px 10px;
  }

  .deal-post-page:not(.discussion-post-page) .deal-post-topbar {
    border-bottom: 1px solid #f3dadd;
  }

  .discussion-post-page .deal-post-topbar {
    border-bottom: 1px solid #f3dadd;
  }

  .deal-post-card {
    padding: 12px;
  }

  .deal-post-title-row h1 {
    font-size: 20px;
  }

  .deal-author-stats div {
    padding: 8px 6px;
  }

  .deal-author-stats strong,
  .deal-author-trust strong {
    font-size: 16px;
  }

  .account-page-shell {
    height: 100dvh;
    min-height: 0;
    padding: 8px 8px calc(150px + env(safe-area-inset-bottom));
  }

  .account-hero-card {
    grid-template-columns: 52px minmax(0, 1fr) 36px;
    gap: 10px;
  }

  .account-profile-button {
    grid-column: 3;
    grid-row: 1;
  }

  .account-page-avatar {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .account-hero-main > strong {
    font-size: 20px;
  }

  .account-name-row strong {
    font-size: 20px;
  }

  .account-edit-button {
    width: 28px;
    height: 28px;
  }

  .account-profile-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .account-profile-status-tabs {
    grid-template-columns: 1fr;
  }

  .account-profile-post-card .deal-card-open.has-thumb {
    min-height: 116px;
    grid-template-columns: minmax(0, 1fr);
    padding-right: 110px;
  }

  .account-profile-post-card.bang-thread-card.has-thumb {
    display: block;
    padding: 0;
  }

  .account-profile-post-card.bang-thread-card.has-thumb .bang-thread-open {
    min-height: 116px;
    padding: 10px 110px 8px 12px;
  }

  .account-profile-post-card .bang-thread-thumb {
    position: absolute;
    top: 38px;
    right: 12px;
    width: 96px;
    height: 96px;
  }

  .account-profile-post-card.bang-thread-card.has-thumb .bang-thread-stats {
    grid-column: auto;
    grid-row: auto;
    padding: 0 12px 12px;
  }

  .account-profile-card-footer {
    align-items: stretch;
  }

  .deal-feedback.account-profile-card-footer {
    align-items: center;
  }

  .account-profile-manage-actions {
    width: auto;
    margin-left: 0;
  }

  .account-profile-manage-menu .text-button {
    justify-content: center;
  }

  .account-hero-card > .primary-action {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 42px;
  }

  .account-nickname-editor {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .account-nickname-panel {
    grid-column: 1 / -1;
  }

  .account-section-head {
    align-items: flex-start;
  }

  .account-section-link {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

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

  .account-deal-reply-item {
    grid-template-columns: 1fr;
  }

  .account-saved-place-folder-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-saved-place-actions {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .account-saved-place-metrics {
    gap: 9px;
  }

  .account-folder-move {
    grid-template-columns: 104px;
    justify-self: end;
  }

  .account-folder-move small {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .account-reply-delete {
    justify-self: start;
  }

  .account-settings-list a,
  .account-setting-button {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .account-settings-list strong {
    width: 100%;
    text-align: left;
  }

  .account-auth-submit {
    width: 100%;
    min-height: 42px;
  }

  .bang-detail-dialog {
    width: calc(100% - 10px);
    max-height: calc(100dvh - 10px);
    margin: 5px auto;
    border-radius: var(--radius);
  }

  .bang-detail {
    max-height: calc(100dvh - 10px);
    overflow: auto;
    padding: 14px;
  }
  .bang-detail-header h2 {
    font-size: 18px;
  }
  .bang-detail-header {
    position: sticky;
    z-index: 3;
    top: -14px;
    align-items: flex-start;
    padding: 10px 0;
    background: #fff;
  }
  .bang-detail-actions {
    position: static;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
  }
  .bang-reply-form {
    position: sticky;
    bottom: -14px;
    padding: 10px 0 0;
    background: #fff;
  }

  .bang-composer-dialog {
    border-radius: var(--radius);
  }
  .bang-empty-board {
    min-height: 132px;
  }

  .bang-profile-dialog {
    width: calc(100% - 10px);
    max-height: calc(100dvh - 10px);
    margin: 5px auto;
    border-radius: var(--radius);
  }

  .bang-profile-panel {
    max-height: calc(100dvh - 10px);
    overflow: auto;
    padding: 14px;
  }
  .bang-profile-header {
    position: sticky;
    z-index: 3;
    top: -14px;
    padding: 10px 0;
    background: #fff;
  }
  .bang-profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .public-profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .public-card-header {
    grid-template-columns: 48px minmax(0, 1fr) 36px;
    gap: 10px;
  }
  .public-card-avatar {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  .public-card-title > strong {
    font-size: 20px;
  }
  .public-metric-grid {
    grid-template-columns: 1fr;
  }
  .public-profile-activity {
    padding-right: 12px;
  }
  .public-profile-activity em,
  .bang-profile-post em {
    position: static;
    width: fit-content;
  }
  .bang-profile-editor {
    grid-template-columns: 1fr;
  }
  .bang-profile-tabs button,
  .bang-identity-toggle span {
    min-height: 32px;
    padding: 0 8px;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .menu-price-row {
    grid-template-columns: 1fr;
  }
  .submission-panel .menu-price-row {
    grid-template-columns: minmax(0, 1.2fr) minmax(92px, 0.8fr);
  }
}

.bang-composer-dialog .submission-panel-body {
  align-content: start;
  gap: 6px;
}

.bang-composer-dialog .submission-panel-body > label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
}

.bang-composer-dialog .submission-panel-body > label > input,
.bang-composer-dialog .submission-panel-body > label > select {
  box-sizing: border-box;
  height: 44px !important;
  min-height: 44px !important;
  padding-top: 0;
  padding-bottom: 0;
  font-weight: 500;
}

.bang-composer-dialog .submission-panel-body > label > textarea {
  box-sizing: border-box;
  font-weight: 500;
}

.bang-composer-dialog .bang-identity-section.member-mode {
  height: 46px;
  min-height: 46px;
  padding: 0 12px;
}

.bang-composer-dialog .submission-panel-body > label + label,
.bang-composer-dialog .submission-panel-body > label + .bang-content-label,
.bang-composer-dialog .bang-content-label + label {
  margin-top: 4px;
}

body.account-page .account-home-feed .account-profile-activity-card,
body.account-page .account-home-feed .account-profile-post-card,
body.account-page .account-home-feed .account-profile-reply-card,
body.account-page .account-home-feed .account-thread-row {
  margin: 0;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #eceef3;
  border-radius: 0;
  box-shadow: none;
}

body.account-page .account-home-feed .account-profile-post-card:not(:first-child),
body.account-page .account-home-feed .account-profile-post-card:not(:last-child),
body.account-page .account-home-feed .account-profile-reply-card:not(:first-child),
body.account-page .account-home-feed .account-profile-reply-card:not(:last-child) {
  border-radius: 0;
}

body.account-page .account-home-feed .account-profile-post-card + .account-profile-post-card,
body.account-page .account-home-feed .account-profile-reply-card + .account-profile-reply-card {
  margin-top: 0;
}

body.account-page .account-home-feed .account-profile-post-card .deal-card-open,
body.account-page .account-home-feed .account-profile-post-card .bang-thread-open,
body.account-page .account-home-feed .account-profile-post-card.bang-thread-card.has-thumb .bang-thread-open,
body.account-page .account-home-feed .account-profile-card-footer,
body.account-page .account-home-feed .account-profile-post-card.bang-thread-card.has-thumb .bang-thread-stats {
  background: transparent;
}

body.account-page .account-home-feed .account-profile-reply-open {
  padding: 14px 48px 28px 16px;
}

body.account-page .account-home-feed .account-profile-reply-date {
  right: 16px;
  bottom: 8px;
}

/* Unified comment and reply composer */
.comment-composer-form.comment-composer-form {
  background: var(--accent-light);
  border-top-color: rgba(216, 90, 48, 0.14);
  box-shadow: 0 -8px 18px rgba(216, 90, 48, 0.08);
}

.comment-composer-form .comment-composer-row {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 48px;
  grid-template-columns: none;
  gap: 8px;
  align-items: center;
  padding: 0;
  background: transparent;
  border: 0;
}

.comment-composer-form .comment-composer-row.is-multiline {
  align-items: flex-end;
}

.comment-composer-form .comment-composer-avatar-wrap {
  position: relative;
  flex: 0 0 40px;
}

.comment-composer-form
  .comment-composer-row.is-multiline
  .comment-composer-avatar-wrap {
  margin-bottom: 7px;
}

.comment-composer-form .comment-composer-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  background: #778294;
  border: 1px solid #fff;
  border-radius: 50%;
  box-shadow: none;
  cursor: pointer;
}

.comment-composer-form .comment-composer-avatar.public {
  background: var(--accent);
}

.comment-composer-form .comment-composer-avatar.anonymous {
  background: #778294;
}

.comment-composer-form .comment-composer-capsule {
  display: flex;
  min-width: 0;
  min-height: 48px;
  flex: 1 1 auto;
  gap: 8px;
  align-items: center;
  padding: 6px 8px 6px 14px;
  background: #fff;
  border: 0.5px solid #d9dde3;
  border-radius: 24px;
  transition: border-color 180ms ease, border-radius 180ms ease;
}

.comment-composer-form
  .comment-composer-row.is-multiline
  .comment-composer-capsule {
  align-items: flex-end;
  border-radius: 12px;
}

.comment-composer-form .comment-composer-capsule:focus-within {
  border-color: #aeb5bf;
}

.comment-composer-form textarea.comment-composer-input {
  width: auto;
  min-width: 0;
  min-height: 22.5px;
  max-height: 96px;
  flex: 1 1 auto;
  padding: 0;
  color: #242424;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  resize: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.comment-composer-form textarea.comment-composer-input:focus {
  border-color: transparent;
  outline: 0;
}

.comment-composer-form textarea.comment-composer-input::placeholder {
  color: #9ca3af;
  font-size: 15px;
}

.comment-composer-form .comment-composer-submit {
  display: grid;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  flex: 0 0 34px;
  place-items: center;
  padding: 0;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  opacity: 1;
  transition: color 180ms ease, background-color 180ms ease,
    opacity 180ms ease, transform 180ms ease;
}

.comment-composer-form .comment-composer-submit svg {
  width: 17px;
  height: 17px;
}

.comment-composer-form .comment-composer-submit:disabled {
  color: #8f98a5;
  background: #eceff3;
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.comment-composer-form .comment-composer-submit:not(:disabled):hover {
  background: #d9613b;
}

.comment-composer-form .comment-composer-submit:not(:disabled):active {
  transform: scale(0.96);
}
