﻿/* ============================================================
   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;
  --mobile-fab-size: 56px;
  --mobile-fab-icon-size: 24px;
  --mobile-fab-edge: 18px;
  --mobile-fab-right: var(--mobile-fab-edge);
  --mobile-fab-bottom: calc(84px + env(safe-area-inset-bottom));
  --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;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  border: 0 !important;
  clip-path: inset(50%) !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-rewards-menu-button,
.map-rewards-menu-panel {
  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 {
  box-sizing: border-box;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--ink);
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  align-items: center;
  justify-items: center;
  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 {
  display: block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

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

/* Keep native dialogs from showing the browser's default blue focus ring. */
dialog:focus {
  outline: none;
}

/* Pointer/touch activation should not leave a native focus ring behind. */
button:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible) {
  outline: none;
}

/* Keep keyboard focus visible with the site's warm accent color. */
.icon-button:focus-visible {
  outline: 3px solid rgba(216, 90, 48, 0.42);
  outline-offset: 3px;
}

.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);
}

.location-help-notice {
  position: fixed;
  z-index: 1095;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: flex-start;
  width: min(480px, calc(100vw - 32px));
  gap: 10px;
  padding: 12px 12px 12px 14px;
  color: #8a2439;
  background: rgba(255, 248, 249, 0.96);
  border: 1px solid rgba(225, 119, 139, 0.62);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(78, 35, 43, 0.16);
  backdrop-filter: blur(10px);
  transform: translate(-50%, -50%);
}

.location-help-notice[hidden] {
  display: none;
}

.location-help-notice p {
  flex: 1;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.location-help-notice button {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  color: #a34b5d;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
}

.location-help-notice button:hover,
.location-help-notice button:focus-visible {
  color: #7b1e34;
  background: rgba(163, 75, 93, 0.1);
}

.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;
}

/* ============================================================
   Sparrow garden — logic-first scene using existing layered birds
   ============================================================ */
.sparrow-garden-page {
  --sparrow-theme: #c46f47;
  --sparrow-theme-strong: #a95734;
  --sparrow-theme-ink: #56382b;
  --sparrow-theme-ink-soft: #7c5b4a;
  --sparrow-theme-soft: #fbf1eb;
  --sparrow-theme-soft-strong: #ffeadf;
  --sparrow-theme-border: #dfa184;
  --sparrow-theme-glass: rgba(173, 82, 42, .24);
  --sparrow-theme-glass-strong: rgba(173, 82, 42, .36);
  --sparrow-theme-shadow: rgba(102, 49, 27, .24);
  min-height: 100dvh;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  color: var(--sparrow-theme-ink);
  background: #f2e2d9;
}

.sparrow-garden-shell {
  position: relative;
  width: min(100%, 540px);
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  background: #e5bda8;
  box-shadow: 0 0 50px rgba(105, 55, 33, .18);
}

.sparrow-garden-shell input,
.sparrow-garden-shell textarea,
.sparrow-garden-shell [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

/* Touch interactions should not leave a keyboard-style focus ring behind.
   Keyboard focus remains visible because the class is cleared on keydown. */
.sparrow-garden-page.is-pointer-interaction :focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
}

.sparrow-garden-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: calc(12px + env(safe-area-inset-top)) 16px 14px;
  color: #fff;
  background: linear-gradient(180deg, rgba(128, 62, 32, .62), rgba(128, 62, 32, 0));
  text-shadow: 0 1px 3px rgba(92, 43, 23, .34);
}

.sparrow-garden-header-controls {
  grid-column: 3;
  display: grid;
  gap: 7px;
  justify-items: end;
}

.sparrow-garden-back,
.sparrow-garden-asset-balances {
  display: grid;
  height: 40px;
  color: inherit;
  place-items: center;
  text-decoration: none;
  background: var(--sparrow-theme-glass);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

@media (hover: hover) {
  .sparrow-garden-back:hover,
  .sparrow-garden-asset-balances:hover {
    background: var(--sparrow-theme-glass-strong);
    border-color: rgba(255, 255, 255, .42);
    transform: translateY(-1px);
  }
}

.sparrow-garden-back:focus-visible,
.sparrow-garden-asset-balances:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .88);
  outline-offset: 2px;
}

.sparrow-garden-back:active,
.sparrow-garden-asset-balances:active {
  background: rgba(173, 82, 42, .4);
  transform: scale(.97);
}

.sparrow-garden-back {
  width: 40px;
  border-radius: 50%;
  align-self: start;
}

.sparrow-garden-back svg {
  width: 22px;
}

.sparrow-garden-asset-balances {
  display: flex;
  gap: 8px;
  min-width: 126px;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-shadow: none;
}

.sparrow-garden-asset {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
}

.sparrow-garden-asset img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.sparrow-garden-asset strong {
  font-size: 13px;
  line-height: 1;
}

.sparrow-garden-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #ead2b9 center center / cover no-repeat;
}

.sparrow-garden-scene:not(.has-background) {
  background-image: none;
}

.sparrow-garden-sky,
.sparrow-garden-cloud,
.sparrow-garden-distant-hill,
.sparrow-garden-meadow {
  display: none;
}

.sparrow-garden-sky {
  position: absolute;
  inset: 0 0 48%;
  background:
    radial-gradient(circle at 72% 17%, rgba(255, 250, 190, 0.92) 0 4%, rgba(255, 250, 190, 0.18) 11%, transparent 22%),
    linear-gradient(180deg, #76d4dc, #b9e9dc);
}

.sparrow-garden-cloud {
  position: absolute;
  width: 118px;
  height: 30px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  filter: blur(1px);
}

.sparrow-garden-cloud::before,
.sparrow-garden-cloud::after {
  position: absolute;
  bottom: 0;
  background: inherit;
  border-radius: 50%;
  content: "";
}

.sparrow-garden-cloud::before { left: 18px; width: 47px; height: 47px; }
.sparrow-garden-cloud::after { right: 19px; width: 58px; height: 58px; }
.sparrow-garden-cloud.cloud-one { top: 16%; left: -28px; transform: scale(.75); }
.sparrow-garden-cloud.cloud-two { top: 24%; right: -28px; transform: scale(.55); opacity: .7; }

.sparrow-garden-distant-hill {
  position: absolute;
  right: -16%;
  bottom: 37%;
  left: -14%;
  height: 34%;
  background:
    radial-gradient(ellipse at 17% 100%, #75bd82 0 48%, transparent 49%),
    radial-gradient(ellipse at 58% 100%, #67b578 0 51%, transparent 52%),
    radial-gradient(ellipse at 92% 100%, #7ac389 0 45%, transparent 46%);
  filter: drop-shadow(0 -8px 24px rgba(46, 127, 79, .16));
}

.sparrow-garden-meadow {
  position: absolute;
  inset: 48% -5% -8%;
  background:
    radial-gradient(circle at 8% 29%, #fff6bd 0 2px, transparent 3px),
    radial-gradient(circle at 18% 54%, #ffe07c 0 2px, transparent 3px),
    radial-gradient(circle at 34% 18%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 55% 47%, #ffc4ca 0 2px, transparent 3px),
    radial-gradient(circle at 72% 24%, #fff2a9 0 2px, transparent 3px),
    radial-gradient(circle at 89% 58%, #fff 0 2px, transparent 3px),
    repeating-linear-gradient(78deg, transparent 0 19px, rgba(33, 128, 65, .23) 20px 21px, transparent 22px 35px),
    linear-gradient(180deg, #76c47c, #47a85e 66%, #358b50);
  border-radius: 48% 52% 0 0 / 11% 11% 0 0;
}

.sparrow-garden-birds {
  position: absolute;
  inset: 88px 0 112px;
  z-index: auto;
}

.sparrow-garden-food-drag-ghost {
  position: absolute;
  top: var(--food-y, 60%);
  left: var(--food-x, 50%);
  z-index: 120;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  font-size: 27px;
  pointer-events: none;
  filter: drop-shadow(0 7px 5px rgba(83, 58, 42, .22));
  transform: translate(-50%, -50%) scale(1.08) rotate(-8deg);
  animation: sparrowGardenFoodFloat .65s ease-in-out infinite alternate;
}

.sparrow-garden-food-drag-ghost[hidden] { display: none; }

.sparrow-garden-food-drag-ghost img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transform: scale(var(--food-image-scale, 2.45));
}

.sparrow-garden-bird {
  --bird-canvas-size: 88px;
  position: absolute;
  top: var(--bird-y);
  left: var(--bird-x);
  z-index: var(--bird-depth, 5);
  width: 100px;
  height: 100px;
  padding: 0;
  color: var(--sparrow-theme-ink);
  cursor: pointer;
  background: transparent;
  border: 0;
  transform: translate(-50%, -50%);
  transition:
    left var(--bird-walk-duration, 0ms) linear,
    top var(--bird-walk-duration, 0ms) linear;
}

.sparrow-garden-bird-depth {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  transform: scale(var(--bird-depth-scale, 1));
  transform-origin: 50% 87.5%;
  transition: transform var(--bird-walk-duration, 0ms) linear;
}

.sparrow-garden-bird-shadow {
  position: absolute;
  right: 30px;
  bottom: 10px;
  left: 30px;
  z-index: 0;
  display: block;
  height: 6px;
  background: rgba(83, 58, 42, .25);
  border-radius: 50%;
  filter: blur(4px);
  transform-origin: center;
}

.sparrow-garden-bird-motion {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  pointer-events: none;
  transform: rotate(var(--bird-rotate)) scaleX(var(--bird-facing, 1));
  transform-origin: 50% 87.5%;
}

.sparrow-garden-bird.is-walking .sparrow-garden-bird-motion {
  animation: sparrowGardenWalkSettle var(--bird-move-duration, 4s) linear both;
}

.sparrow-garden-bird:hover,
.sparrow-garden-bird:focus-visible,
.sparrow-garden-bird.is-interacting {
  z-index: 100 !important;
  outline: none;
}

.sparrow-garden-bird:hover .sparrow-garden-bird-motion,
.sparrow-garden-bird:focus-visible .sparrow-garden-bird-motion,
.sparrow-garden-bird.is-interacting .sparrow-garden-bird-motion {
  animation: sparrowGardenHappy .38s ease-in-out 2 alternate;
}

.sparrow-garden-bird.is-walking .sparrow-garden-bird-art {
  animation: sparrowGardenWalk var(--bird-step-duration, .9s) ease-in-out infinite;
}

.sparrow-garden-bird.is-walking .sparrow-garden-foot-left {
  animation: sparrowGardenLeftStep var(--bird-step-duration, .9s) ease-in-out infinite;
}

.sparrow-garden-bird.is-walking .sparrow-garden-foot-right {
  animation: sparrowGardenRightStep var(--bird-step-duration, .9s) ease-in-out infinite;
}

.sparrow-garden-bird.is-hopping .sparrow-garden-bird-motion {
  animation: sparrowGardenHop var(--bird-hop-duration, 1s) ease-in-out infinite;
}

.sparrow-garden-bird.is-hopping .sparrow-garden-foot {
  animation: sparrowGardenFeetTuck var(--bird-hop-duration, 1s) ease-in-out infinite;
}

.sparrow-garden-bird.is-hopping .sparrow-garden-bird-shadow {
  animation: sparrowGardenHopShadow var(--bird-hop-duration, 1s) ease-in-out infinite;
}

.sparrow-garden-bird.is-food-interested:not(.is-walking) .sparrow-garden-bird-motion {
  animation: sparrowGardenFoodNotice .42s ease-out 1;
}

.sparrow-garden-bird.is-food-observing .sparrow-garden-bird-art {
  animation: sparrowGardenFoodObserve var(--food-observe-duration, .62s) ease-in-out 2 alternate;
}

.sparrow-garden-bird.is-food-eating {
  z-index: 101 !important;
  filter: drop-shadow(0 4px 5px rgba(91, 57, 38, .22));
}

.sparrow-garden-bird.is-food-eating .sparrow-garden-bird-motion {
  animation: none !important;
}

.sparrow-garden-bird.is-food-eating .sparrow-garden-bird-art {
  animation: sparrowGardenEat .32s ease-in-out infinite alternate;
}

.sparrow-garden-feed-success {
  position: absolute;
  top: -43px;
  left: 50%;
  z-index: 130;
  display: inline-flex;
  width: max-content;
  min-width: 0;
  height: 28px;
  padding: 2px 6px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  pointer-events: none;
  opacity: 1;
  white-space: nowrap;
  transform: translateX(-50%);
  animation: sparrowGardenFeedSuccess 1.4s cubic-bezier(.2, .82, .3, 1) forwards;
}

.sparrow-garden-feed-success-value {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: #a95b1d;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .95), 0 2px 4px rgba(91, 57, 38, .28);
}

.sparrow-garden-feed-success-satiety-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  filter: drop-shadow(0 2px 2px rgba(91, 57, 38, .22));
}

.sparrow-garden-feed-success-satiety-svg {
  width: 22px;
  height: 22px;
  overflow: visible;
}

.sparrow-garden-feed-success-plate {
  fill: rgba(255, 247, 218, .94);
  stroke: #b96a25;
  stroke-width: 1.5;
}

.sparrow-garden-feed-success-plate-well {
  fill: rgba(255, 224, 145, .8);
  stroke: #d3883d;
  stroke-width: 1.1;
}

.sparrow-garden-feed-success-friendship {
  color: #e65370;
}

.sparrow-garden-feed-success-heart {
  display: inline-block;
  color: currentColor;
  font-size: 20px;
  line-height: .8;
  filter: drop-shadow(0 2px 1px rgba(131, 42, 61, .2));
  animation: sparrowGardenFeedSuccessHeart .42s ease-in-out .18s 2 alternate;
}

.sparrow-garden-feed-success-spark {
  position: absolute;
  color: #fff3a4;
  font-size: 12px;
  line-height: 1;
  text-shadow: 0 0 5px rgba(255, 210, 83, .9);
  animation: sparrowGardenFeedSuccessSpark .62s ease-out both;
}

.sparrow-garden-feed-success-spark.spark-one {
  top: 2px;
  left: 12px;
  animation-delay: .08s;
}

.sparrow-garden-feed-success-spark.spark-two {
  top: 25px;
  right: 0;
  font-size: 9px;
  animation-delay: .24s;
}

.sparrow-garden-food-drop {
  position: absolute;
  top: var(--food-y);
  left: var(--food-x);
  z-index: calc(var(--food-depth) - 1);
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  pointer-events: none;
  filter: drop-shadow(0 7px 5px rgba(91, 57, 38, .24));
  opacity: 0;
  transform: translate(-50%, -78%) scale(.62) rotate(-12deg);
  transition: opacity .16s ease, transform .34s cubic-bezier(.2, .9, .32, 1.15);
}

.sparrow-garden-food-drop::after {
  position: absolute;
  right: 8px;
  bottom: 3px;
  left: 8px;
  z-index: -1;
  height: 6px;
  background: rgba(83, 58, 42, .24);
  border-radius: 50%;
  content: "";
  filter: blur(3px);
  transform: scale(.64);
}

.sparrow-garden-food-drop.is-landed {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

.sparrow-garden-food-drop.is-being-eaten {
  animation: sparrowGardenFoodNibble .72s ease-in-out forwards;
}

.sparrow-garden-food-drop.is-returning {
  animation: sparrowGardenFoodReturn .42s ease-in forwards;
}

.sparrow-garden-food-drop.is-expiring {
  animation: sparrowGardenFoodExpire .3s ease-in forwards;
}

.sparrow-garden-food-drop img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transform: scale(var(--food-image-scale, 2.45));
}

.sparrow-garden-food-drop > span {
  display: block;
  font-size: 27px;
  line-height: 1;
}

.sparrow-garden-bird-art {
  --bird-body-offset: 3px;
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  pointer-events: none;
  transform: translateY(var(--bird-body-offset));
  transform-origin: 50% 87.5%;
  animation: sparrowGardenIdle var(--bird-idle-duration, 4.4s) ease-in-out infinite;
  animation-delay: var(--bird-delay);
}

.sparrow-garden-bird-feet {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: block;
  width: var(--bird-canvas-size);
  height: var(--bird-canvas-size);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transform-origin: center;
}

.sparrow-garden-bird-feet svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sparrow-garden-foot {
  transform-box: fill-box;
  transform-origin: center bottom;
}

.sparrow-garden-foot path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sparrow-garden-foot-outline {
  stroke: #161616;
  stroke-width: 10;
}

.sparrow-garden-foot-color {
  stroke: #f26a2a;
  stroke-width: 6;
}

.sparrow-garden-bird.has-animated-feet .sparrow-garden-bird-art .outfit-layer-sparrow {
  clip-path: inset(0 0 12% 0);
}

.sparrow-garden-bird-art .outfit-stage-zone {
  z-index: 2;
}

.sparrow-garden-bird-art .outfit-stage-zone,
.sparrow-garden-bird-preview .outfit-stage-zone {
  min-height: 0;
  background: transparent;
  box-shadow: none;
}

.sparrow-garden-bird-art .outfit-stage-scene {
  --outfit-stage-scale: 1;
  min-height: 0;
}

.sparrow-garden-bird-art .outfit-stage-scene .outfit-sparrow-stage {
  width: 88px;
  height: 88px;
}

.sparrow-garden-empty,
.sparrow-garden-mode-hint,
.sparrow-garden-capacity {
  position: absolute;
  z-index: 12;
  margin: 0;
  color: #fff;
  background: rgba(166, 78, 39, .66);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(111, 51, 27, .18);
  backdrop-filter: blur(10px);
}

.sparrow-garden-empty {
  top: 47%;
  left: 50%;
  width: min(82%, 340px);
  padding: 12px 18px;
  text-align: center;
  transform: translate(-50%, -50%);
}

.sparrow-garden-mode-hint {
  top: calc(77px + env(safe-area-inset-top));
  left: 50%;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transform: translateX(-50%);
}

.sparrow-garden-food-tray {
  position: absolute;
  right: 0;
  bottom: calc(88px + env(safe-area-inset-bottom));
  left: 0;
  z-index: 26;
  display: grid;
  justify-items: center;
  pointer-events: none;
}

.sparrow-garden-food-tray[hidden] { display: none; }

.sparrow-garden-food-control {
  position: relative;
  width: 100px;
  height: 88px;
}

.sparrow-garden-food-selector {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100px;
  height: 88px;
  padding: 0;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 20px;
  box-shadow: none;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.sparrow-garden-food-selector:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .95);
  outline-offset: 2px;
}

.sparrow-garden-food-icon {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  font-size: 32px;
  filter: drop-shadow(0 7px 5px rgba(91, 57, 38, .3));
  transition: filter .18s ease, transform .18s ease;
}

.sparrow-garden-food-icon img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  transform: scale(var(--food-image-scale, 2.45));
  pointer-events: none;
}

.sparrow-garden-food-selector:hover .sparrow-garden-food-icon,
.sparrow-garden-food-selector:focus-visible .sparrow-garden-food-icon {
  filter: drop-shadow(0 9px 6px rgba(91, 57, 38, .34)) drop-shadow(0 0 8px rgba(255, 224, 178, .58));
  transform: translateY(-3px) scale(1.04);
}

.sparrow-garden-food-selector.is-pressing .sparrow-garden-food-icon {
  transform: translateY(1px) scale(.96);
}

.sparrow-garden-food-selector.is-dragging {
  cursor: grabbing;
}

.sparrow-garden-food-selector.is-dragging .sparrow-garden-food-icon {
  filter: drop-shadow(0 12px 8px rgba(91, 57, 38, .3));
  opacity: .52;
  transform: translateY(-9px) scale(1.08);
}

.sparrow-garden-food-selector.is-disabled {
  cursor: default;
}

.sparrow-garden-food-selector.is-disabled .sparrow-garden-food-icon {
  filter: grayscale(.25) drop-shadow(0 5px 4px rgba(91, 57, 38, .18));
  opacity: .56;
}

.sparrow-garden-food-count {
  position: absolute;
  right: 1px;
  bottom: 1px;
  z-index: 3;
  display: grid;
  min-width: 27px;
  height: 27px;
  padding: 0 6px;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  background: rgba(145, 70, 38, .86);
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(102, 49, 27, .28);
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(6px);
}

.sparrow-garden-food-count:hover,
.sparrow-garden-food-count:focus-visible {
  background: rgba(178, 85, 43, .96);
  outline: 2px solid rgba(255, 255, 255, .92);
  outline-offset: 2px;
}

.sparrow-garden-capacity {
  right: 15px;
  bottom: calc(102px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: auto auto;
  gap: 7px;
  align-items: center;
  padding: 7px 11px;
  font-size: 11px;
}

.sparrow-garden-capacity strong { font-size: 13px; }

.sparrow-garden-actions {
  position: absolute;
  right: 12px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  left: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.sparrow-garden-actions button {
  position: relative;
  display: grid;
  grid-template-columns: 36px auto;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  color: #fff;
  background: var(--sparrow-theme-glass);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 20px;
  box-shadow: 0 10px 28px var(--sparrow-theme-shadow);
  text-shadow: 0 1px 3px rgba(92, 43, 23, .34);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

#gardenHatchButton.has-ready-egg::after {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 10px;
  height: 10px;
  content: "";
  background: #f58235;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(92, 43, 23, .34);
  pointer-events: none;
}

.sparrow-garden-actions button strong {
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
}

.sparrow-garden-actions button.is-active {
  color: #fff;
  background: var(--sparrow-theme-glass-strong);
  border-color: rgba(255, 255, 255, .44);
}

@media (hover: hover) {
  .sparrow-garden-actions button:hover {
    background: rgba(173, 82, 42, .32);
    border-color: rgba(255, 255, 255, .4);
    transform: translateY(-1px);
  }
}

.sparrow-garden-actions button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .88);
  outline-offset: 2px;
}

.sparrow-garden-actions button:active {
  background: rgba(173, 82, 42, .4);
  transform: scale(.98);
}

.sparrow-garden-actions .sparrow-garden-action-icon {
  --action-icon-scale: 1;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  pointer-events: none;
}

.sparrow-garden-action-icon img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  transform: scale(var(--action-icon-scale));
  transform-origin: center;
  pointer-events: none;
}

.sparrow-garden-action-bird-icon { --action-icon-scale: 1.16 !important; }
.sparrow-garden-action-food-icon { --action-icon-scale: 2.55 !important; }
.sparrow-garden-action-nest-icon { --action-icon-scale: 1.14 !important; }

.sparrow-garden-action-nest-icon img {
  mix-blend-mode: normal;
}

.sparrow-garden-food-dialog {
  inset: auto 0 0;
  width: min(100%, 540px);
  max-width: 540px;
  height: min(66dvh, 570px);
  max-height: min(66dvh, 570px);
  margin: 0 auto;
  padding: 0;
  overflow: visible;
  color: var(--sparrow-theme-ink);
  background: transparent;
  border: 0;
  border-radius: 28px 28px 0 0;
}

.sparrow-garden-food-dialog::backdrop {
  background: rgba(76, 38, 24, .34);
  backdrop-filter: blur(2px);
}

.sparrow-garden-food-dialog-panel {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 15px;
  padding: 17px;
  overflow: hidden;
  background: rgba(255, 250, 247, .97);
  border: 1px solid rgba(255, 255, 255, .9);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -18px 42px rgba(58, 43, 31, .2);
  backdrop-filter: blur(14px);
}

.sparrow-garden-food-dialog-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sparrow-garden-food-dialog-panel h2,
.sparrow-garden-food-dialog-panel p {
  margin: 0;
}

.sparrow-garden-food-dialog-panel p {
  color: #987665;
  font-size: 11px;
  font-weight: 800;
}

.sparrow-garden-food-dialog-panel h2 {
  margin-top: 2px;
  font-size: 20px;
}

.sparrow-garden-food-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 2px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sparrow-garden-food-option {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 126px;
  padding: 9px 7px 10px;
  place-items: center;
  align-content: center;
  color: #704532;
  background: rgba(251, 240, 233, .86);
  border: 2px solid transparent;
  border-radius: 19px;
  cursor: pointer;
}

.sparrow-garden-food-option:hover,
.sparrow-garden-food-option:focus-visible,
.sparrow-garden-food-option.is-selected {
  background: #fff8f3;
  border-color: var(--sparrow-theme-border);
  outline: none;
}

.sparrow-garden-food-option.is-empty:not(.is-selected) {
  opacity: .52;
}

.sparrow-garden-food-option-visual {
  position: relative;
  display: grid;
  width: 62px;
  height: 55px;
  margin-bottom: 3px;
  place-items: center;
  filter: drop-shadow(0 6px 4px rgba(91, 57, 38, .2));
}

.sparrow-garden-food-option-visual img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  transform: scale(var(--food-image-scale, 2.05));
}

.sparrow-garden-food-option-visual > span:not(.sparrow-garden-food-option-count) {
  font-size: 31px;
}

.sparrow-garden-food-option-count {
  position: absolute;
  right: -4px;
  bottom: -1px;
  z-index: 2;
  display: grid;
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  background: rgba(145, 70, 38, .86);
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(102, 49, 27, .28);
  backdrop-filter: blur(6px);
}

.sparrow-garden-food-option strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sparrow-garden-food-option small {
  display: block;
  margin-top: 2px;
  color: #967766;
  font-size: 10px;
  font-weight: 800;
}

.sparrow-garden-food-option-check {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  background: var(--sparrow-theme);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .16s ease, transform .16s ease;
}

.sparrow-garden-food-option.is-selected .sparrow-garden-food-option-check {
  opacity: 1;
  transform: scale(1);
}

.sparrow-garden-dialog {
  width: min(100% - 24px, 500px);
  max-width: 500px;
  max-height: min(86dvh, 760px);
  padding: 0;
  overflow: hidden;
  color: var(--sparrow-theme-ink);
  background: transparent;
  border: 0;
  border-radius: 28px;
}

.sparrow-garden-dialog::backdrop {
  background: rgba(72, 35, 22, .46);
  backdrop-filter: blur(3px);
}

.sparrow-garden-dialog-panel {
  position: relative;
  display: flex;
  max-height: min(86dvh, 760px);
  margin: 0;
  padding: 20px;
  overflow: hidden;
  flex-direction: column;
  background: #fffaf7;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 28px;
  box-shadow: 0 22px 60px rgba(94, 46, 25, .3);
}

.sparrow-garden-dialog-panel > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.sparrow-garden-dialog-panel h2,
.sparrow-garden-dialog-panel p { margin: 0; }
.sparrow-garden-dialog-panel header p,
.sparrow-garden-coming-soon + p { color: #92705f; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.sparrow-garden-dialog-panel h2 { font-size: 23px; }

.sparrow-garden-dialog-close {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #85604e;
  place-items: center;
  font-size: 26px;
  line-height: 1;
  background: #f8eee9;
  border: 0;
  border-radius: 50%;
}

.sparrow-garden-dialog-summary {
  margin: 12px 0 !important;
  color: #8f6d5c;
  font-size: 12px;
}

.sparrow-garden-roster-list {
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding-right: 3px;
  overflow-y: auto;
}

.sparrow-garden-roster-empty {
  align-self: center;
  padding: 30px 18px;
  color: #98786a;
  text-align: center;
  background: #fbf3ee;
  border: 1px dashed #e5c9ba;
  border-radius: 16px;
}

.sparrow-garden-roster-item {
  display: grid;
  grid-template-columns: 24px 50px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 64px;
  padding: 7px 10px;
  background: #fbf3ee;
  border: 1px solid #eedfd7;
  border-radius: 16px;
}

.sparrow-garden-roster-item:has(input:checked) {
  background: var(--sparrow-theme-soft-strong);
  border-color: var(--sparrow-theme-border);
}

.sparrow-garden-roster-item input { width: 18px; height: 18px; accent-color: var(--sparrow-theme); }
.sparrow-garden-roster-thumb { display: grid; width: 50px; height: 50px; place-items: center; overflow: hidden; background: #f4e2d8; border-radius: 14px; }
.sparrow-garden-roster-thumb img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.2); }
.sparrow-garden-roster-item > span:nth-of-type(2) { display: grid; min-width: 0; }
.sparrow-garden-roster-item strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.sparrow-garden-roster-item small { overflow: hidden; color: #927365; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.sparrow-garden-roster-item em { color: var(--sparrow-theme-strong); font-size: 11px; font-style: normal; font-weight: 800; }

.sparrow-garden-dialog-panel > footer,
.sparrow-garden-bird-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  margin-top: 14px;
}

.sparrow-garden-primary,
.sparrow-garden-secondary {
  min-height: 46px;
  padding: 10px 15px;
  font-weight: 850;
  border-radius: 14px;
}

.sparrow-garden-primary { color: #fff; background: var(--sparrow-theme); border: 1px solid var(--sparrow-theme); }
.sparrow-garden-secondary { color: #754833; background: #fbf3ee; border: 1px solid #ead7cd; }

.sparrow-garden-bird-preview {
  height: 210px;
  margin: 10px -4px;
  overflow: hidden;
  background: linear-gradient(180deg, #f6e3d9, #f5ecdf);
  border-radius: 22px;
}

.sparrow-garden-bird-preview .outfit-stage-zone,
.sparrow-garden-bird-preview .outfit-stage-scene { height: 100%; min-height: 0; }
.sparrow-garden-bird-preview .outfit-stage-scene { --outfit-stage-scale: 1.75; }

.sparrow-garden-friendship-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  padding: 12px 14px;
  background: #f4f0e2;
  border-radius: 16px;
}

.sparrow-garden-friendship-card span { font-size: 13px; font-weight: 800; }
.sparrow-garden-friendship-card small { color: #7b7259; font-size: 10px; }
.sparrow-garden-progress { grid-column: 1 / -1; height: 8px; overflow: hidden; background: #e4dcc0; border-radius: 99px; }
.sparrow-garden-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #ef9a55, #efc45c); border-radius: inherit; transition: width .25s ease; }

.sparrow-garden-nickname-field { display: grid; gap: 6px; margin-top: 12px; }
.sparrow-garden-nickname-field span { color: #896554; font-size: 12px; font-weight: 800; }
.sparrow-garden-nickname-field input { width: 100%; height: 44px; padding: 0 13px; color: #5b392a; background: #fff; border: 1px solid #ead7cd; border-radius: 13px; outline: none; }
.sparrow-garden-nickname-field input:focus { border-color: var(--sparrow-theme); box-shadow: 0 0 0 3px rgba(196, 111, 71, .15); }
.sparrow-garden-wardrobe-link { margin-top: 12px; color: var(--sparrow-theme-strong); font-size: 12px; font-weight: 800; text-align: center; }

.hatch-dialog {
  inset: 0;
  width: min(100%, 540px);
  max-width: 540px;
  height: 100dvh;
  max-height: 100dvh;
  margin: auto;
  color: #fff;
  background: #d7ccba;
  border-radius: 0;
}

.hatch-dialog::backdrop {
  background: #c7bdad;
  backdrop-filter: none;
}

.hatch-dialog .sparrow-garden-hatch-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  height: 100%;
  max-height: none;
  padding: 0;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background:
    #e8ddcc
    url("/files/public/ui/sparrow-garden-hatch-background.png?v=20260715-v1")
    center center / cover no-repeat;
  border: 0;
  border-radius: 0;
  box-shadow: 0 0 50px rgba(77, 66, 52, .2);
}

.sparrow-garden-hatch-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(48, 55, 50, .34) 0%, rgba(48, 55, 50, 0) 20%),
    linear-gradient(0deg, rgba(78, 64, 47, .24) 0%, rgba(78, 64, 47, 0) 18%);
}

.hatch-dialog .sparrow-garden-hatch-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  padding:
    calc(12px + env(safe-area-inset-top))
    calc(14px + env(safe-area-inset-right))
    14px
    calc(14px + env(safe-area-inset-left));
  text-align: center;
  text-shadow: 0 2px 6px rgba(53, 47, 37, .42);
}

.sparrow-garden-hatch-header p,
.sparrow-garden-hatch-header h2 {
  margin: 0;
  color: #fff;
}

.sparrow-garden-hatch-header p {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  opacity: .86;
}

.sparrow-garden-hatch-header h2 {
  font-size: 24px;
  line-height: 1.15;
}

.hatch-dialog .sparrow-garden-hatch-back {
  position: static;
  width: 44px;
  height: 44px;
  color: #fff;
  background: rgba(68, 73, 64, .28);
  border: 1px solid rgba(255, 255, 255, .42);
  box-shadow: 0 6px 18px rgba(52, 47, 38, .16);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.sparrow-garden-hatch-back svg {
  width: 23px;
  height: 23px;
}

.sparrow-garden-hatch-back:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .9);
  outline-offset: 2px;
}

.sparrow-garden-hatch-stage {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 0;
  place-items: center;
}

.sparrow-garden-hatch-status {
  position: relative;
  z-index: 1;
  justify-self: center;
  margin: 12px 18px calc(18px + env(safe-area-inset-bottom)) !important;
  padding: 9px 15px;
  color: #684e3f;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
  background: rgba(255, 250, 243, .76);
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(76, 61, 45, .14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (hover: hover) {
  .sparrow-garden-hatch-back:hover {
    background: rgba(68, 73, 64, .42);
    border-color: rgba(255, 255, 255, .62);
  }
}

.sparrow-garden-load-card {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  gap: 9px;
  width: min(84%, 340px);
  padding: 22px;
  text-align: center;
  background: rgba(255, 255, 255, .92);
  border-radius: 22px;
  box-shadow: 0 18px 38px var(--sparrow-theme-shadow);
  transform: translate(-50%, -50%);
}

.sparrow-garden-load-card span { color: #907061; font-size: 13px; }
.sparrow-garden-load-card a,
.sparrow-garden-load-card button { padding: 10px 14px; color: #fff; font-weight: 800; text-decoration: none; background: var(--sparrow-theme); border: 0; border-radius: 12px; }

@keyframes sparrowGardenIdle {
  0%, 16%, 100% {
    transform: translateY(var(--bird-body-offset)) scaleX(1) scaleY(1);
  }
  46% {
    transform: translateY(calc(var(--bird-body-offset) + .7px)) scaleX(1.006) scaleY(1.014);
  }
  62% {
    transform: translateY(calc(var(--bird-body-offset) + 1px)) scaleX(1.008) scaleY(1.012);
  }
  80% {
    transform: translateY(calc(var(--bird-body-offset) + .25px)) scaleX(1.002) scaleY(1.004);
  }
}

@keyframes sparrowGardenWalkSettle {
  0% {
    transform: translateY(1px) rotate(var(--bird-rotate)) scaleX(var(--bird-facing, 1)) scaleY(.99);
  }
  10%, 90% {
    transform: translateY(0) rotate(var(--bird-rotate)) scaleX(var(--bird-facing, 1)) scaleY(1);
  }
  100% {
    transform: translateY(.5px) rotate(var(--bird-rotate)) scaleX(var(--bird-facing, 1)) scaleY(.996);
  }
}

@keyframes sparrowGardenWalk {
  0%, 50%, 100% { transform: translateY(var(--bird-body-offset)) scaleY(1); }
  25%, 75% { transform: translateY(var(--bird-body-offset)) scaleY(.995); }
}

@keyframes sparrowGardenLeftStep {
  0%, 50%, 100% { transform: translate(0, 0) rotate(0); }
  22% { transform: translate(-2px, -2px) rotate(-9deg); }
  72% { transform: translate(1.2px, 0) rotate(6deg); }
}

@keyframes sparrowGardenRightStep {
  0%, 50%, 100% { transform: translate(0, 0) rotate(0); }
  22% { transform: translate(1.2px, 0) rotate(6deg); }
  72% { transform: translate(-2px, -2px) rotate(-9deg); }
}

@keyframes sparrowGardenHop {
  0%, 100% { transform: translateY(0) rotate(var(--bird-rotate)) scaleX(var(--bird-facing, 1)); }
  43% { transform: translateY(var(--bird-hop-height, -6px)) rotate(var(--bird-rotate)) scaleX(var(--bird-facing, 1)); }
  72% { transform: translateY(-1px) rotate(var(--bird-rotate)) scaleX(var(--bird-facing, 1)); }
}

@keyframes sparrowGardenFeetTuck {
  0%, 100% { transform: translateY(0) scaleY(1); }
  43% { transform: translateY(-1.5px) scaleY(.78); }
  72% { transform: translateY(-.5px) scaleY(.94); }
}

@keyframes sparrowGardenHopShadow {
  0%, 100% { opacity: .7; transform: scale(1); }
  43% { opacity: .34; transform: scale(.72, .66); }
  72% { opacity: .62; transform: scale(.93, .88); }
}

@keyframes sparrowGardenHappy {
  from { transform: translateY(0) rotate(var(--bird-rotate)) scaleX(var(--bird-facing, 1)) scale(1); }
  to { transform: translateY(-7px) rotate(var(--bird-rotate)) scaleX(var(--bird-facing, 1)) scale(1.08); }
}

@keyframes sparrowGardenEat {
  from { transform: translateY(var(--bird-body-offset)) scaleY(1); }
  to { transform: translateY(calc(var(--bird-body-offset) + 4px)) scaleY(.965); }
}

@keyframes sparrowGardenFoodNotice {
  0% { transform: translateY(0) rotate(var(--bird-rotate)) scaleX(var(--bird-facing, 1)); }
  45% { transform: translateY(-5px) rotate(var(--bird-rotate)) scaleX(var(--bird-facing, 1)) scale(1.035); }
  100% { transform: translateY(0) rotate(var(--bird-rotate)) scaleX(var(--bird-facing, 1)); }
}

@keyframes sparrowGardenFoodObserve {
  from { transform: translateY(var(--bird-body-offset)) rotate(-1deg); }
  to { transform: translateY(calc(var(--bird-body-offset) + 2px)) rotate(1.5deg) scaleY(.982); }
}

@keyframes sparrowGardenFeedSuccess {
  0% { opacity: 0; transform: translate(-50%, 9px) scale(.72); }
  18% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  76% { opacity: 1; transform: translate(-50%, -7px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -17px) scale(.94); }
}

@keyframes sparrowGardenFeedSuccessFood {
  0% { opacity: 0; transform: rotate(-14deg) scale(.5); }
  100% { opacity: 1; transform: rotate(0deg) scale(1); }
}

@keyframes sparrowGardenFeedSuccessHeart {
  from { transform: scale(.82) rotate(-5deg); }
  to { transform: scale(1.16) rotate(5deg); }
}

@keyframes sparrowGardenFeedSuccessSpark {
  0% { opacity: 0; transform: scale(.35) rotate(-20deg); }
  45% { opacity: 1; transform: scale(1.25) rotate(8deg); }
  100% { opacity: 0; transform: scale(.7) rotate(24deg); }
}

@keyframes sparrowGardenFoodFloat {
  from { transform: translate(-50%, -50%) scale(1.08) rotate(-8deg); }
  to { transform: translate(-50%, -57%) scale(1.16) rotate(6deg); }
}

@keyframes sparrowGardenFoodNibble {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  42% { opacity: 1; transform: translate(-50%, -43%) scale(.84) rotate(12deg); }
  100% { opacity: 0; transform: translate(-50%, -32%) scale(.2) rotate(-18deg); }
}

@keyframes sparrowGardenFoodReturn {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  to { opacity: 0; transform: translate(-50%, -180%) scale(.45); }
}

@keyframes sparrowGardenFoodExpire {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(.45); }
}

@media (max-width: 390px) {
  .sparrow-garden-actions { gap: 7px; }
  .sparrow-garden-actions button { min-height: 56px; border-radius: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .sparrow-garden-back,
  .sparrow-garden-asset-balances,
  .sparrow-garden-actions button { transition: none; }
  .sparrow-garden-bird { transition: none; }
  .sparrow-garden-bird-depth { transition: none; }
  .sparrow-garden-bird-shadow,
  .sparrow-garden-bird-motion,
  .sparrow-garden-bird-art,
  .sparrow-garden-bird-feet,
  .sparrow-garden-foot,
  .sparrow-garden-food-drag-ghost,
  .sparrow-garden-food-drop,
  .sparrow-garden-feed-success,
  .sparrow-garden-feed-success-heart,
  .sparrow-garden-feed-success-spark { animation: none !important; }
  .sparrow-garden-food-drop { transition: none; }
  .sparrow-garden-food-icon,
  .sparrow-garden-food-option-check { transition: none; }
}

/* Egg appearance and compact administration cards */
.reward-egg-card {
  --egg-accent: #3b82f6;
  --egg-tint: #eaf3ff;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.reward-egg-card.rarity-green, .reward-egg-image-field.rarity-green { --egg-accent: #22a66d; --egg-tint: #e9f9f0; }
.reward-egg-card.rarity-purple, .reward-egg-image-field.rarity-purple { --egg-accent: #8654dc; --egg-tint: #f3edff; }
.reward-egg-card.rarity-gold, .reward-egg-image-field.rarity-gold { --egg-accent: #c88a16; --egg-tint: #fff5da; }
.reward-egg-card.rarity-blue, .reward-egg-image-field.rarity-blue { --egg-accent: #3b82f6; --egg-tint: #eaf3ff; }

.reward-egg-art {
  display: grid;
  width: 112px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 28%, #fff 0 14%, var(--egg-tint) 52%, color-mix(in srgb, var(--egg-accent) 20%, #fff) 100%);
  border: 2px solid color-mix(in srgb, var(--egg-accent) 58%, #fff);
  border-radius: 16px;
}

.reward-egg-art img { width: 100%; height: 100%; object-fit: contain; }
.reward-egg-art-fallback { font-size: 52px; filter: drop-shadow(0 4px 2px rgba(0,0,0,.12)); }
.rewards-egg-card { --egg-accent: #3b82f6; --egg-tint: #eaf3ff; }
.rewards-egg-card.rarity-green { --egg-accent: #22a66d; --egg-tint: #e9f9f0; }
.rewards-egg-card.rarity-purple { --egg-accent: #8654dc; --egg-tint: #f3edff; }
.rewards-egg-card.rarity-gold { --egg-accent: #c88a16; --egg-tint: #fff5da; }
.rewards-egg-visual {
  display: grid;
  width: 48px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 24%, #fff 0 11%, var(--egg-tint) 50%, color-mix(in srgb, var(--egg-accent) 25%, #fff) 100%);
  border: 1px solid color-mix(in srgb, var(--egg-accent) 55%, #fff);
  border-radius: 50% 50% 45% 45% / 42% 42% 58% 58%;
}
.rewards-egg-visual img { width: 100%; height: 100%; object-fit: contain; }
.rewards-egg-visual .rewards-egg-icon { width: 100%; height: 100%; margin: 0; background: none; border: 0; box-shadow: none; }
.rewards-egg-visual .rewards-egg-icon::after { background: var(--egg-accent); }
.rewards-egg-rarity { color: var(--egg-accent); font-weight: 800; }
.reward-egg-card-content { display: grid; min-width: 0; gap: 10px; }
.reward-egg-card-title, .reward-egg-statuses, .reward-egg-card-actions, .reward-egg-dialog-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reward-egg-card-title { justify-content: space-between; }
.reward-egg-card-title h3 { margin: 0; color: var(--ink); font-size: 18px; }
.reward-egg-card-title p { margin: 3px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.reward-rarity-badge, .reward-egg-status { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 9px; border-radius: 999px; background: #f2f4f7; color: #596273; font-size: 12px; font-weight: 800; }
.reward-rarity-badge.rarity-blue { background: #e7f0ff; color: #1764c0; }
.reward-rarity-badge.rarity-green { background: #e1f7ea; color: #147a4b; }
.reward-rarity-badge.rarity-purple { background: #eee6ff; color: #6840b6; }
.reward-rarity-badge.rarity-gold { background: #fff1c9; color: #936211; }
.reward-egg-status.is-active, .reward-egg-status.is-ready { background: #e8f7ef; color: #197647; }
.reward-egg-card-actions { justify-content: flex-end; }

.reward-egg-dialog { width: min(860px, calc(100vw - 28px)); max-height: min(820px, calc(100vh - 28px)); padding: 0; overflow: auto; border: 0; border-radius: 18px; box-shadow: 0 24px 80px rgba(18, 28, 45, .28); }
.reward-egg-dialog::backdrop { background: rgba(26, 35, 50, .48); }
.reward-egg-dialog-card { padding: 20px; background: #fff; }
.reward-egg-dialog-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.reward-egg-dialog-header p { margin: 0 0 3px; color: var(--muted); font-size: 13px; font-weight: 700; }
.reward-egg-dialog-header h2 { margin: 0; }
.reward-egg-dialog-body { padding-top: 18px; }
.reward-egg-dialog-layout { display: grid; grid-template-columns: minmax(190px, .72fr) minmax(0, 1.3fr); gap: 22px; }
.reward-egg-image-field, .reward-egg-form-fields { display: grid; align-content: start; gap: 12px; }
.reward-egg-dialog-art { width: 100%; max-width: 250px; justify-self: center; }
.reward-egg-image-upload { display: grid; gap: 6px; color: var(--ink); font-weight: 700; }
.reward-egg-form-fields > label, .reward-egg-schedule-fields > label, .reward-egg-rate-fields > label { display: grid; gap: 5px; color: var(--ink); font-size: 14px; font-weight: 700; }
.reward-egg-rate-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.reward-egg-rate-fields legend { padding: 0 4px; color: var(--muted); font-size: 13px; font-weight: 700; }
.reward-egg-schedule-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.reward-egg-active-toggle { display: flex !important; align-items: center; gap: 8px; }
.reward-egg-dialog-status { margin: 0; padding: 9px 11px; color: #526070; background: #f5f7fa; border-radius: 10px; font-size: 13px; font-weight: 700; }
.reward-egg-dialog-status[data-tone="progress"] { color: #275d9d; background: #eaf3ff; }
.reward-egg-dialog-status[data-tone="success"] { color: #197647; background: #e8f7ef; }
.reward-egg-dialog-status[data-tone="error"] { color: #a33b29; background: #fff0ec; }
.reward-egg-dialog-actions { justify-content: flex-end; padding-top: 6px; }
.reward-egg-dialog-actions button { position: relative; z-index: 1; pointer-events: auto; }

@media (max-width: 640px) {
  .reward-egg-order-toolbar { align-items: stretch; flex-direction: column; }
  .reward-egg-order-toolbar-actions { justify-content: space-between; }
  .reward-egg-card { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
  .reward-egg-art { width: 76px; border-radius: 12px; }
  .reward-egg-art-fallback { font-size: 38px; }
  .reward-egg-card-title { align-items: flex-start; }
  .reward-egg-card-actions { justify-content: flex-start; }
  .reward-egg-dialog-layout, .reward-egg-schedule-fields { grid-template-columns: 1fr; }
}

.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);
}

.reward-egg-order-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  padding: 10px 12px;
  color: var(--muted);
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.reward-egg-order-toolbar p,
.reward-egg-order-toolbar-actions { margin: 0; }
.reward-egg-order-toolbar p { font-size: 13px; font-weight: 700; }
.reward-egg-order-toolbar-actions { display: flex; align-items: center; gap: 10px; }
.reward-egg-order-toolbar-actions span { color: var(--muted); font-size: 12px; font-weight: 700; }
.reward-egg-card[draggable="true"] { cursor: grab; }
.reward-egg-card[draggable="true"]:active { cursor: grabbing; }
.reward-egg-card.is-dragging { opacity: .48; border-style: dashed; }
.reward-egg-drag-hint { color: var(--muted); font-size: 12px; font-weight: 800; }

.admin-grant-card {
  display: grid;
  gap: 16px;
  max-width: 760px;
  padding: 20px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

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

.admin-grant-card label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.admin-grant-item-field {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.admin-grant-card input,
.admin-grant-card select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.admin-grant-checkbox-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 420px;
  margin-top: 8px;
  padding: 4px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.admin-grant-checkbox-option {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 8px !important;
  min-width: 0;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.admin-grant-checkbox-option:hover,
.admin-grant-checkbox-option:has(input:checked) {
  background: var(--accent-light);
  border-color: var(--accent-mid);
}

.admin-grant-checkbox-option input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px !important;
  min-height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.admin-grant-checkbox-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-grant-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 4px;
}

.admin-grant-actions .helper-text {
  flex: 1 1 auto;
}

.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);
}

.rewards-dialog {
  width: min(430px, calc(100vw - 24px));
  max-height: min(720px, calc(100dvh - 28px));
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.rewards-dialog::backdrop {
  background: rgba(26, 18, 20, 0.36);
  backdrop-filter: blur(2px);
}

.favorite-collection-dialog {
  width: min(430px, calc(100vw - 24px));
  max-height: min(620px, calc(100dvh - 28px));
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.favorite-collection-dialog::backdrop {
  background: rgba(26, 18, 20, 0.36);
  backdrop-filter: blur(2px);
}

.favorite-collection-panel {
  display: grid;
  max-height: min(620px, calc(100dvh - 28px));
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.favorite-collection-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.favorite-collection-panel header p,
.favorite-collection-panel header h2 {
  margin: 0;
}

.favorite-collection-panel header p {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.favorite-collection-panel header h2 {
  font-size: 20px;
  line-height: 1.2;
}

.favorite-collection-close {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 8px;
  color: var(--ink);
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.favorite-collection-close svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.favorite-collection-body {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
  overflow: auto;
}

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

.favorite-collection-list button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 13px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.favorite-collection-list strong {
  font-size: 15px;
}

.favorite-collection-list small,
.favorite-collection-note {
  color: var(--muted);
  font-size: 12px;
}

.favorite-collection-kind {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.favorite-collection-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 18px;
  color: var(--ink);
  text-align: center;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.favorite-collection-empty > span {
  color: var(--accent);
  font-size: 32px;
  line-height: 1;
}

.favorite-collection-empty p,
.favorite-collection-note {
  margin: 0;
  line-height: 1.6;
}

.rewards-dialog-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: min(720px, calc(100dvh - 28px));
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.rewards-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
}

.rewards-dialog-header p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.rewards-currency-summary,
.rewards-currency {
  display: inline-flex;
  align-items: center;
}

.rewards-currency-summary {
  gap: 6px;
  min-height: 22px;
}

.rewards-currency {
  gap: 3px;
  color: var(--ink);
  white-space: nowrap;
}

.rewards-currency img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.rewards-currency strong {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.rewards-inline-currency {
  vertical-align: -0.18em;
  margin: 0 1px;
}

.rewards-inline-currency img {
  width: 17px;
  height: 17px;
}

.rewards-inline-currency strong {
  font-size: inherit;
}

.rewards-currency-separator {
  color: var(--muted);
}

.rewards-dialog-header h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.rewards-dialog-body {
  display: grid;
  gap: 12px;
  min-height: 0;
  padding: 14px 16px 16px;
  overflow: auto;
}

.rewards-checkin-hero,
.rewards-checkin-day,
.rewards-shop-hero,
.rewards-task-card,
.rewards-shop-item,
.rewards-inventory-item,
.rewards-sparrow-preview,
.rewards-empty,
.rewards-egg-result {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.rewards-task-card span,
.rewards-shop-hero span,
.rewards-shop-item span,
.rewards-inventory-item span,
.rewards-sparrow-preview span,
.rewards-egg-result span {
  color: var(--muted);
  font-size: 12px;
}

.rewards-task-list,
.rewards-checkin-week,
.rewards-shop-list,
.rewards-inventory-list,
.rewards-drop-list {
  display: grid;
  gap: 10px;
}

.rewards-program-section {
  display: grid;
  gap: 10px;
}

.rewards-program-section > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 0;
}

.rewards-program-section > header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.rewards-program-section > header span {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.rewards-program-section > .rewards-weekly-tabs {
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.rewards-weekly-tab {
  appearance: none;
  min-height: 34px;
  padding: 0 2px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.rewards-weekly-tab.is-active {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.rewards-weekly-empty {
  padding-block: 28px;
}

.rewards-task-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.rewards-task-card.is-completed {
  background: #fafafa;
}

.rewards-task-card.is-claimable {
  border-color: var(--accent-mid);
}

.rewards-task-card.is-pending {
  background: #fafafa;
}

.rewards-weekly-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 88px;
  align-items: center;
  gap: 10px;
  min-height: 86px;
  padding: 10px;
}

.rewards-task-reward {
  display: grid;
  align-self: stretch;
  place-items: center;
  min-width: 0;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rewards-weekly-reward {
  align-self: center;
  width: 62px;
  height: 62px;
  overflow: visible;
  border-color: #ecd49c;
  border-radius: 12px;
  background: #fff9ec;
}

.rewards-weekly-coin {
  position: relative;
  display: block;
  width: 62px;
  height: 62px;
}

.rewards-weekly-coin img {
  position: absolute;
  top: -4px;
  left: 50%;
  display: block;
  width: 70px;
  height: 70px;
  transform: translateX(-50%);
  object-fit: contain;
}

.rewards-weekly-coin strong {
  position: absolute;
  bottom: 4px;
  left: 50%;
  z-index: 1;
  color: #49332a;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 0 #fff9ec, 1px 0 0 #fff9ec, -1px 0 0 #fff9ec;
  transform: translateX(-50%);
}

.rewards-task-reward .rewards-currency {
  display: grid;
  justify-items: center;
  gap: 1px;
  color: var(--ink);
}

.rewards-task-reward .rewards-currency img {
  width: 31px;
  height: 31px;
}

.rewards-task-reward .rewards-currency strong {
  font-size: 19px;
  line-height: 1;
}

.rewards-weekly-task-content {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.rewards-weekly-task-label {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.rewards-weekly-progress {
  position: relative;
  display: grid;
  height: 16px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #efd6ce;
  border-radius: 999px;
  background: #f6ebe7;
}

.rewards-weekly-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--rewards-weekly-progress, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #f5aa76, #ea8451);
  transition: width 180ms ease;
}

.rewards-weekly-progress strong {
  position: relative;
  z-index: 1;
  color: #704135;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px rgba(255, 255, 255, 0.75);
}

.rewards-task-content {
  min-width: 0;
}

.rewards-task-content > div {
  display: grid;
  gap: 2px;
}

.rewards-task-content strong,
.rewards-task-content span,
.rewards-task-content p {
  overflow-wrap: anywhere;
}

.rewards-task-content strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.rewards-weekly-card .rewards-task-content p {
  margin-top: 7px;
  line-height: 1.4;
}

.rewards-weekly-card .rewards-task-action {
  width: 88px;
  min-height: 40px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.rewards-weekly-card .rewards-task-action.is-claim {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.weekly-share-guide-target {
  position: relative;
  z-index: 4;
  outline: 3px solid rgba(220, 92, 50, 0.3);
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(220, 92, 50, 0.12), 0 0 22px rgba(220, 92, 50, 0.72) !important;
  animation: weeklyShareGuidePulse 1.05s ease-in-out infinite;
}

@keyframes weeklyShareGuidePulse {
  50% {
    outline-color: rgba(220, 92, 50, 0.62);
    box-shadow: 0 0 0 7px rgba(220, 92, 50, 0.08), 0 0 30px rgba(220, 92, 50, 0.9);
  }
}

@media (max-width: 370px) {
  .rewards-weekly-card {
    grid-template-columns: 54px minmax(0, 1fr) 78px;
    gap: 7px;
    padding: 8px;
  }

  .rewards-task-reward .rewards-currency img {
    width: 27px;
    height: 27px;
  }

  .rewards-weekly-card .rewards-task-action {
    width: 78px;
    padding-inline: 6px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .weekly-share-guide-target {
    animation: none;
  }
}

.rewards-shop-section {
  display: grid;
  gap: 10px;
}

.rewards-shop-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rewards-shop-section-header h3,
.rewards-shop-section-header p {
  margin: 0;
}

.rewards-shop-section-header h3 {
  font-size: 16px;
}

.rewards-shop-section-header p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.rewards-checkin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 10px 14px;
  background: #fff9ed;
}

.rewards-checkin-reward {
  display: flex;
  align-items: center;
  min-height: 62px;
}

.rewards-checkin-amount {
  display: block;
  margin: 0;
  line-height: 1.05;
}

.rewards-checkin-amount .rewards-currency {
  align-items: center;
  gap: 4px;
  color: var(--ink);
}

.rewards-checkin-amount .rewards-currency img {
  width: 48px;
  height: 48px;
}

.rewards-checkin-amount .rewards-currency strong {
  font-size: 30px;
  line-height: 1;
}

.rewards-checkin-hero button {
  min-width: 86px;
  min-height: 40px;
}

.rewards-checkin-week {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.rewards-checkin-day {
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: 7px;
  min-height: 82px;
  padding: 8px 6px;
  text-align: center;
  background: #fff;
}

.rewards-checkin-day strong,
.rewards-checkin-day .rewards-checkin-mark {
  display: block;
}

.rewards-checkin-day strong {
  font-size: 12px;
}

.rewards-checkin-mark {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin: 0 auto;
  color: transparent;
  background: #fff;
  border: 1.5px solid #e6dfe0;
  border-radius: 7px;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
}

.rewards-checkin-day.is-claimed .rewards-checkin-mark {
  color: #fff;
  background: #3da66a;
  border-color: #3da66a;
}

.rewards-checkin-day.is-today {
  border-color: var(--accent-mid);
  box-shadow: inset 0 0 0 1px var(--accent-mid);
}

.rewards-checkin-day.is-claimed {
  background: #fff;
}

.rewards-full-attendance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.rewards-full-attendance > div {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.rewards-full-attendance > div > strong {
  font-size: 14px;
}

.rewards-full-attendance button {
  min-width: 72px;
  min-height: 34px;
  padding: 0 12px;
  color: var(--accent-strong);
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: 999px;
}

.rewards-full-attendance button:disabled {
  color: #9b8f92;
  background: #f4eff0;
  border-color: #eee5e0;
}

.rewards-full-attendance.is-claimed {
  background: #f3fbf6;
}

.rewards-shop-item,
.rewards-inventory-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.rewards-egg-card {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: start;
}

.rewards-egg-card .rewards-egg-icon {
  width: 38px;
  height: 48px;
  margin: 0;
}

.rewards-egg-card .rewards-drop-list {
  margin-top: 8px;
  gap: 4px;
}

.rewards-egg-card .rewards-drop-list div {
  font-size: 12px;
}

.reward-egg-fields {
  align-items: end;
}

.reward-egg-fields label {
  display: grid;
  gap: 4px;
  min-width: 110px;
}

.reward-egg-fields input[type="checkbox"] {
  width: auto;
}

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

/* Egg-pool management is scanned frequently. Keep the asset visible while
   reserving the full editing controls for the expanded row only. */
.reward-pool-toolbar {
  display: grid;
  grid-template-columns: minmax(190px, 1.45fr) repeat(5, minmax(112px, 0.7fr));
  gap: 9px;
  align-items: end;
  padding: 12px;
  background: #f7fafc;
  border: 1px solid #d9e5ee;
  border-radius: var(--radius);
}

.reward-pool-toolbar label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.reward-pool-toolbar input,
.reward-pool-toolbar select {
  width: 100%;
  min-width: 0;
  min-height: 36px;
}

.reward-pool-summary {
  grid-column: 1 / -1;
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.reward-pool-selection-tools {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reward-pool-selection-tools button {
  min-height: 34px;
  padding: 0 10px;
}

.reward-pool-bulk-bar {
  display: grid;
  gap: 9px;
  padding: 12px;
  background: #edf7ff;
  border: 1px solid #b9d9ef;
  border-radius: var(--radius);
}

.reward-pool-bulk-bar > p {
  margin: 0;
  color: #245d82;
  font-size: 13px;
}

.reward-pool-bulk-actions,
.reward-pool-bulk-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}

.reward-pool-bulk-actions button,
.reward-pool-bulk-fields button {
  min-height: 36px;
  padding: 0 10px;
}

.reward-pool-bulk-fields label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.reward-pool-bulk-fields input {
  min-height: 36px;
}

.reward-pool-bulk-fields input[type="number"] {
  width: 92px;
}

.reward-pool-group {
  overflow: hidden;
  border: 1px solid #d9e5ee;
  border-radius: var(--radius);
  background: #fff;
}

.reward-pool-group-header {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 46px;
  padding: 10px 13px;
  color: var(--ink);
  text-align: left;
  background: #f7fafc;
  border: 0;
  border-bottom: 1px solid #d9e5ee;
  border-radius: 0;
}

.reward-pool-group-header span {
  font-weight: 900;
}

.reward-pool-group-header small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.reward-pool-group-items {
  display: grid;
  gap: 8px;
  padding: 8px;
}

.reward-rarity-stage {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: linear-gradient(135deg, #f4f9fd, #fbfdff);
  border: 1px solid #cfe0ec;
  border-radius: 10px;
}

.reward-rarity-stage-heading,
.reward-rarity-stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
}

.reward-rarity-stage-heading > div {
  display: grid;
  gap: 2px;
}

.reward-rarity-stage-heading strong {
  color: var(--ink);
  font-size: 14px;
}

.reward-rarity-stage-heading small,
.reward-rarity-stage-heading > span,
.reward-rarity-stage-actions p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.reward-rarity-stage-heading > span {
  color: #245d82;
}

.reward-rarity-stage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 8px;
}

.reward-rarity-stage-item {
  display: grid;
  grid-template-columns: minmax(62px, 1fr) 86px auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  background: #fff;
  border: 1px solid #dbe5ec;
  border-left: 4px solid #6682a0;
  border-radius: 9px;
}

.reward-rarity-stage-item.rarity-green { border-left-color: #2e9b64; }
.reward-rarity-stage-item.rarity-purple { border-left-color: #8658c7; }
.reward-rarity-stage-item.rarity-gold { border-left-color: #c98b18; }

.reward-rarity-stage-item > span {
  display: grid;
  gap: 1px;
}

.reward-rarity-stage-item b {
  color: var(--ink);
  font-size: 13px;
}

.reward-rarity-stage-item small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.reward-rarity-stage-item input {
  width: 86px;
  min-height: 34px;
}

.reward-rarity-stage-item > strong {
  color: var(--accent-strong);
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.reward-rarity-stage-actions {
  justify-content: flex-end;
}

.reward-rarity-stage-actions p {
  flex: 1 1 320px;
  margin: 0;
}

.reward-rarity-stage-actions button {
  min-height: 34px;
  padding: 0 10px;
}

.reward-pool-item {
  overflow: hidden;
  border: 1px solid #e0e7ed;
  border-radius: 10px;
  background: #fff;
}

.reward-pool-item.is-expanded {
  border-color: var(--accent-mid);
  box-shadow: 0 4px 16px rgba(24, 84, 127, 0.08);
}

.reward-pool-item-row {
  display: grid;
  grid-template-columns: 28px 56px minmax(150px, 1fr) minmax(120px, 0.9fr) 76px minmax(250px, auto) auto;
  gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 8px 10px;
}

.reward-pool-select {
  display: grid;
  width: 28px;
  height: 56px;
  place-items: center;
}

.reward-pool-select input {
  width: 17px;
  height: 17px;
}

.reward-accessory-thumb-button {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  padding: 0;
  overflow: hidden;
  background: repeating-conic-gradient(#f2f5f7 0 25%, #fff 0 50%) 50% / 12px 12px;
  border: 1px solid #d7e0e8;
  border-radius: 9px;
}

.reward-accessory-thumb-button:hover {
  border-color: var(--accent);
}

.reward-accessory-thumb {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.reward-accessory-thumb-empty {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
  background: #f4f6f8;
  border: 1px solid #d7e0e8;
  border-radius: 9px;
}

.reward-pool-item-identity {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.reward-pool-item-identity strong,
.reward-pool-item-identity span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reward-pool-item-identity span {
  color: var(--muted);
  font-size: 12px;
}

.reward-pool-item-status {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.reward-pool-effective {
  background: #e8f7ef;
  color: #237246;
}

.reward-pool-chance {
  display: grid;
  gap: 2px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.reward-pool-chance small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.reward-pool-quick-settings {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.reward-pool-weight,
.reward-pool-checkbox {
  display: flex;
  gap: 5px;
  align-items: center;
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.reward-pool-weight input {
  width: 70px;
  min-height: 34px;
}

.reward-pool-checkbox input {
  width: auto;
}

.reward-pool-row-actions {
  display: grid;
  gap: 6px;
}

.reward-pool-row-actions button {
  min-height: 34px;
  padding: 0 10px;
  white-space: nowrap;
}

.reward-pool-expand {
  min-height: 34px;
  padding: 0 10px;
  white-space: nowrap;
}

.reward-pool-item-details {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 11px 12px;
  background: #f8fbfd;
  border-top: 1px solid #e0e7ed;
}

.reward-pool-item-details label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.reward-pool-item-details input:not([type="checkbox"]) {
  min-height: 36px;
}

.reward-pool-item-details button {
  min-height: 36px;
  white-space: nowrap;
}

.reward-accessory-preview-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 14px;
  background: #fff;
  border: 0;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.rewards-dialog.is-weekly-view .rewards-dialog-panel {
  height: min(600px, calc(100dvh - 56px));
}

.rewards-dialog.is-achievements-view .rewards-dialog-panel {
  height: min(720px, calc(100dvh - 28px));
}

.rewards-dialog.is-weekly-view .rewards-dialog-body,
.rewards-dialog.is-weekly-view .rewards-program-section,
.rewards-dialog.is-weekly-view .rewards-task-list {
  align-content: start;
}

.rewards-dialog.is-achievements-view .rewards-dialog-body {
  align-content: start;
}

.reward-accessory-preview-dialog::backdrop {
  background: rgba(20, 28, 40, 0.46);
}

.reward-accessory-preview-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.reward-accessory-preview-dialog img {
  display: block;
  width: min(100%, 380px);
  max-height: min(65vh, 480px);
  margin: 0 auto;
  object-fit: contain;
  background: repeating-conic-gradient(#f2f5f7 0 25%, #fff 0 50%) 50% / 18px 18px;
  border-radius: 10px;
}

@media (max-width: 980px) {
  .reward-pool-toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reward-pool-search {
    grid-column: span 2;
  }

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

  .reward-pool-item-row {
    grid-template-columns: 28px 56px minmax(150px, 1fr) minmax(120px, 0.8fr) auto;
  }

  .reward-pool-chance {
    grid-column: 3;
  }

  .reward-pool-quick-settings {
    grid-column: 3 / 5;
  }

  .reward-pool-row-actions {
    grid-column: 5;
    grid-row: 1 / span 3;
  }
}

@media (max-width: 620px) {
  .reward-pool-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reward-pool-search {
    grid-column: 1 / -1;
  }

  .reward-rarity-stage-grid {
    grid-template-columns: 1fr;
  }

  .reward-rarity-stage-item {
    grid-template-columns: minmax(72px, 1fr) 94px auto;
  }

  .reward-pool-item-row {
    grid-template-columns: 28px 56px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .reward-pool-item-status,
  .reward-pool-chance {
    grid-column: 3;
  }

  .reward-pool-quick-settings {
    grid-column: 3;
  }

  .reward-pool-row-actions {
    grid-column: 4;
    grid-row: 1 / span 4;
  }

  .reward-pool-item-details {
    grid-template-columns: 1fr;
  }

  .reward-pool-item-details button {
    width: 100%;
  }
}

.rewards-task-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.rewards-task-card button,
.rewards-shop-item button,
.rewards-inventory-item button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--accent-strong);
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: 999px;
}

.rewards-task-card button:disabled,
.rewards-shop-item button:disabled,
.rewards-inventory-item button:disabled,
.rewards-wide-action:disabled {
  color: #9b8f92;
  background: #f4eff0;
  border-color: #eee5e0;
}

.rewards-sparrow-preview {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 126px;
  padding: 12px;
  background: #f9fbf7;
}

.rewards-sparrow-stage {
  position: relative;
  width: 104px;
  height: 100px;
}

.sparrow-body,
.sparrow-wing,
.sparrow-tail,
.sparrow-eye,
.sparrow-beak,
.sparrow-hat,
.sparrow-face,
.sparrow-clothes,
.sparrow-shoes {
  position: absolute;
  display: block;
}

.sparrow-body {
  left: 22px;
  top: 22px;
  width: 62px;
  height: 58px;
  background: #77a8d8;
  border: 3px solid #315a79;
  border-radius: 48% 48% 46% 46%;
}

.rewards-sparrow-preview.is-green .sparrow-body {
  background: #75b56d;
  border-color: #386a35;
}

.sparrow-wing {
  left: 35px;
  top: 45px;
  width: 24px;
  height: 28px;
  background: rgba(255, 255, 255, 0.32);
  border-radius: 50%;
}

.sparrow-tail {
  left: 13px;
  top: 54px;
  width: 24px;
  height: 20px;
  background: #315a79;
  clip-path: polygon(0 50%, 100% 0, 86% 50%, 100% 100%);
}

.rewards-sparrow-preview.is-green .sparrow-tail {
  background: #386a35;
}

.sparrow-eye {
  left: 66px;
  top: 38px;
  width: 7px;
  height: 7px;
  background: #1a1214;
  border-radius: 50%;
}

.sparrow-beak {
  left: 79px;
  top: 44px;
  width: 14px;
  height: 10px;
  background: #e6a23b;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.has-hat .sparrow-hat {
  left: 36px;
  top: 11px;
  width: 35px;
  height: 20px;
  background: #4f8f4a;
  border: 2px solid #315f2d;
  border-radius: 50% 50% 24% 24%;
}

.has-face .sparrow-face {
  left: 55px;
  top: 34px;
  width: 24px;
  height: 12px;
  border: 3px solid #2d3540;
  border-radius: 999px;
}

.has-clothes .sparrow-clothes {
  left: 45px;
  top: 68px;
  width: 34px;
  height: 10px;
  background: #c7352d;
  border-radius: 999px;
  transform: rotate(-8deg);
}

.has-shoes .sparrow-shoes {
  left: 39px;
  top: 81px;
  width: 38px;
  height: 10px;
  border-bottom: 6px solid #58473f;
  border-radius: 0 0 999px 999px;
}

.has-tail .sparrow-tail::after {
  position: absolute;
  left: 4px;
  top: 3px;
  width: 16px;
  height: 10px;
  content: "";
  border: 3px solid #d85a30;
  border-left: 0;
  border-radius: 0 999px 999px 0;
}

.rewards-shop-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.rewards-egg-icon {
  width: 48px;
  height: 58px;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.9) 0 14%, transparent 15%),
    linear-gradient(145deg, #f7d9bb, #d85a30);
  border-radius: 50% 50% 46% 46%;
  box-shadow: inset 0 -8px 18px rgba(173, 63, 31, 0.22);
}

.rewards-drop-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #faf7f5;
  border-radius: 8px;
}

.rewards-wide-action {
  width: 100%;
  justify-content: center;
  min-height: 44px;
}

.rewards-empty,
.rewards-egg-result {
  display: grid;
  gap: 4px;
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
}

.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) 46px;
}

.submission-panel-header .icon-button,
.place-search-row .icon-button {
  width: 46px;
  min-width: 46px;
  height: 46px;
  min-height: 46px;
}

.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;
}

.submission-duplicate-notice > .duplicate-acknowledged-status {
  padding: 8px 10px;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-weight: 700;
}

.duplicate-candidate-list {
  display: grid;
  gap: 8px;
  max-height: 306px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.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;
  padding: 8px 0 0;
}

.duplicate-create-anyway-button {
  min-height: 46px;
  padding: 0 18px;
  color: #9a3412;
  background: #fff;
  border: 1.5px solid #fdba74;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(154, 52, 18, 0.12);
  font-size: 15px;
  font-weight: 800;
}

.duplicate-create-anyway-button:hover,
.duplicate-create-anyway-button:focus-visible {
  color: #7c2d12;
  background: #ffedd5;
  outline: 0;
  box-shadow:
    0 0 0 3px rgba(253, 186, 116, 0.38),
    0 12px 24px rgba(154, 52, 18, 0.16);
}

.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-processing {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  background: #f6f7f9;
  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-dugu-entry {
  gap: 2px;
  color: #a95734;
}

.mobile-nav-dugu-entry .mobile-nav-fab-circle {
  width: 60px;
  height: 60px;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.mobile-nav-dugu-entry.has-pending-dugu .mobile-nav-fab-circle {
  animation: dugu-map-entry-wobble 1.8s ease-in-out infinite;
  transform-origin: 50% 75%;
}

@keyframes dugu-map-entry-wobble {
  0%, 76%, 100% { transform: rotate(0deg); }
  80% { transform: rotate(-2deg); }
  84% { transform: rotate(2deg); }
  88% { transform: rotate(-1.2deg); }
  92% { transform: rotate(.6deg); }
  96% { transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav-dugu-entry.has-pending-dugu .mobile-nav-fab-circle {
    animation: none;
  }
}

.mobile-nav-dugu-entry .mobile-nav-fab-circle img {
  display: block;
  width: 78px;
  height: 78px;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 3px 4px rgba(87, 55, 35, 0.2));
  transform: translateY(-2px);
}

.mobile-nav-dugu-entry strong {
  color: inherit;
  font-weight: 750;
}

@media (hover: hover) {
  .mobile-nav-dugu-entry:hover .mobile-nav-fab-circle img {
    transform: translateY(-4px) scale(1.04);
  }
}

.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-title-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

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

.place-governance-badge {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  color: #BA7517;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  background: #FAEEDA;
  border: 1px solid rgba(226, 178, 112, 0.42);
  border-radius: var(--radius-pill);
}

.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 {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--color-text-tertiary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.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-summary-updated-by {
}

.place-summary-updater,
.place-summary-footer .place-summary-updater-name {
  display: inline;
  width: auto;
  min-width: 0;
  padding: 0;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  line-height: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.place-summary-updater {
  cursor: pointer;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
  white-space: normal;
  word-break: break-word;
}

.place-summary-updater:hover,
.place-summary-updater:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.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;
}

.place-original-contributor {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 7px 18px 6px;
  color: #475467;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  text-align: right;
  background: var(--color-background-secondary);
  border: 0;
  border-bottom: 1px solid #eadfe2;
  border-radius: 0;
}

.place-original-contributor.clickable {
  cursor: pointer;
}

.place-original-contributor.clickable:hover,
.place-original-contributor.clickable:focus-visible {
  background: #f8f2f4;
}

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

.place-original-contributor-avatar {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}

.place-original-contributor span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.place-original-contributor strong {
  color: var(--ink);
  font-weight: 900;
}

#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;
}

.rewards-button-currency {
  margin-left: 3px;
}

.rewards-shop-item button .rewards-currency {
  vertical-align: middle;
}

.rewards-shop-item button .rewards-currency img {
  width: 15px;
  height: 15px;
}

/* -- Shop catalog and try-on wardrobe -- */
.shop-catalog-page,
.wardrobe-page {
  min-height: 100dvh;
  background: #fff;
}

.shop-catalog-page {
  display: grid;
  height: 100dvh;
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

.wardrobe-page {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

.shop-catalog-header,
.shop-catalog-tabs,
.shop-catalog-main,
.wardrobe-header,
.wardrobe-main {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.shop-catalog-header,
.wardrobe-header {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.shop-catalog-title {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
}

.wardrobe-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
}

.shop-catalog-heading {
  display: flex;
  min-width: 0;
  gap: 6px;
  align-items: center;
}

.shop-catalog-back {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  padding: 0;
  color: var(--accent);
  font-size: 20px;
  font-weight: 850;
  line-height: 1;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
}

.shop-catalog-back:hover,
.shop-catalog-back:focus-visible {
  color: var(--accent-strong);
  background: var(--accent-light);
  outline: none;
}

.wardrobe-header > a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.shop-catalog-balances {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.wardrobe-header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.wardrobe-purchase-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(203, 82, 25, .18);
  cursor: pointer;
}

.wardrobe-purchase-button span {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  color: var(--accent-strong);
  font-size: 11px;
  background: #fff;
  border-radius: 999px;
}

.wardrobe-purchase-button:disabled {
  color: var(--muted);
  background: #f1eeeb;
  border-color: #e5ded8;
  box-shadow: none;
  cursor: not-allowed;
}

.wardrobe-purchase-button:disabled span {
  color: var(--muted);
  background: #fff;
}

.shop-currency {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.shop-currency img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.shop-catalog-tabs {
  display: flex;
  min-height: 54px;
  overflow-x: auto;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.shop-catalog-tabs::-webkit-scrollbar { display: none; }

.shop-catalog-tabs button {
  position: relative;
  flex: 0 0 auto;
  min-width: 94px;
  min-height: 54px;
  padding: 0 18px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.shop-catalog-tabs button:hover,
.shop-catalog-tabs button.active {
  color: var(--accent-strong);
}

.shop-catalog-tabs button.active::after {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 3px;
  content: "";
  background: var(--accent);
  border-radius: 999px 999px 0 0;
}

.shop-catalog-main {
  display: grid;
  min-width: 0;
  min-height: 0;
  padding: 26px 24px 0;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.shop-catalog-scroll {
  min-width: 0;
  min-height: 0;
  padding: 0 0 52px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-x: none;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.shop-catalog-filters {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr);
  gap: 8px;
  margin: 0 0 18px;
}

.shop-catalog-filters[hidden] {
  display: none;
}

.shop-catalog-filters select {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 30px 0 11px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.shop-catalog-main h1 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 900;
  text-align: center;
}

.shop-catalog-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 30px 18px;
}

.shop-catalog-load-sentinel {
  min-height: 1px;
}

.shop-product-tile {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 0;
  color: var(--ink);
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.shop-product-tile:hover .shop-product-image,
.shop-product-tile:focus-visible .shop-product-image {
  background: var(--accent-light);
  outline: 2px solid var(--accent-mid);
  outline-offset: 2px;
}

.shop-product-image {
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  color: var(--accent-strong);
  font-size: 44px;
  background: #fbf8f6;
  border-radius: 8px;
  transition: background .15s;
}

.shop-product-image img,
.shop-detail-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop-product-tile > strong,
.shop-product-name {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shop-product-meta {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.shop-product-name {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 1.32em;
  overflow: hidden;
  white-space: nowrap;
  -webkit-box-orient: initial;
  -webkit-line-clamp: initial;
}

.shop-product-name-base {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-product-name-variant {
  flex: 0 0 auto;
  margin-left: 4px;
  white-space: nowrap;
}

.shop-product-acquisition {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.shop-product-price {
  min-height: 21px;
  color: #b47500;
}

.shop-product-price .shop-currency {
  color: inherit;
  font-size: 15px;
}

.shop-product-price .shop-currency img {
  width: 18px;
  height: 18px;
}

.shop-product-prices {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 24px;
}

.shop-product-prices .shop-product-price {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 24px;
}

.shop-product-prices .shop-product-price .shop-currency {
  min-width: 0;
  gap: 3px;
  font-size: 13px;
  line-height: 1;
}

.shop-product-prices .shop-product-price .shop-currency img {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
}

.shop-product-prices [data-shop-price-currency="feathers"] .shop-currency img {
  width: 24px;
  height: 24px;
}

.shop-catalog-empty {
  grid-column: 1 / -1;
  padding: 32px;
  color: var(--muted);
  text-align: center;
  background: #faf7f5;
  border: 1px dashed var(--line);
  border-radius: 10px;
}

.shop-product-dialog {
  width: min(430px, calc(100vw - 32px));
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 16px;
}

.shop-product-dialog::backdrop { background: rgba(26, 18, 20, .42); }

.shop-product-dialog-panel {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 28px;
  background: #fff;
  border-radius: 16px;
}

#shopProductDialogBody {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 14px;
}

.shop-product-dialog-panel > .icon-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  line-height: 1;
  aspect-ratio: 1;
  flex: 0 0 34px;
  font-size: 22px;
}

.shop-detail-art {
  display: grid;
  width: min(180px, 58vw);
  aspect-ratio: 1 / 1;
  place-items: center;
  justify-self: center;
  margin-inline: auto;
  overflow: hidden;
  color: var(--accent-strong);
  font-size: 84px;
  background: #fbf8f6;
  border-radius: 12px;
}

.shop-detail-art img {
  display: block;
  justify-self: center;
  align-self: center;
  margin-inline: auto;
  object-position: center;
}

.shop-detail-kicker {
  margin: 0;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}

.shop-product-dialog h2 { margin: -8px 0 0; font-size: 25px; }
.shop-detail-copy,
.shop-detail-sources p { margin: 0; color: var(--muted); line-height: 1.55; }

.shop-detail-rates {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 12px;
  background: #faf7f5;
  border-radius: 10px;
}

.shop-detail-rates div { display: flex; justify-content: space-between; gap: 12px; }
.shop-detail-rates dt,
.shop-detail-rates dd { margin: 0; }
.shop-detail-rates dd { font-weight: 850; }

.shop-detail-copy-row { display: flex; align-items: center; gap: 8px; }
.shop-detail-copy-row .shop-detail-copy { flex: 1 1 auto; min-width: 0; }
.shop-egg-odds-button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 4px 10px;
  color: var(--accent-strong);
  background: #fffaf7;
  border: 1px solid var(--accent-mid);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}
.shop-egg-odds-button:hover { color: #fff; background: var(--accent-strong); }
.shop-egg-odds-dialog { width: min(350px, calc(100vw - 32px)); }
.shop-egg-odds-dialog .shop-product-dialog-panel { gap: 10px; padding: 24px; }
.shop-egg-odds-dialog .shop-detail-rates { margin-top: 2px; }
.shop-detail-rates .shop-detail-rate-group {
  display: grid;
  gap: 6px;
}
.shop-detail-rates .shop-detail-rate-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.shop-detail-rate-sublist {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 2px solid var(--accent-mid);
  color: var(--muted);
  font-size: 12px;
  list-style: none;
}
.shop-detail-rate-sublist li { display: flex; justify-content: space-between; gap: 12px; }
.shop-detail-rate-sublist strong { color: var(--ink); font-weight: 800; }

.shop-detail-sources { display: grid; gap: 6px; }
.shop-detail-sources ul { display: grid; gap: 5px; margin: 0; padding-left: 20px; color: var(--muted); }
.shop-detail-actions,
.wardrobe-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.shop-detail-actions button,
.wardrobe-actions > * { flex: 1 1 150px; justify-content: center; }
.shop-detail-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
.shop-detail-actions button,
.shop-detail-actions .shop-detail-owned { width: 100%; min-height: 46px; justify-content: center; }
.shop-detail-actions .shop-detail-owned { display: grid; place-items: center; }
.shop-detail-actions .shop-detail-purchase {
  color: var(--accent-strong);
  background: #fffaf7;
  border: 1.5px solid var(--accent-mid);
  box-shadow: 0 3px 10px rgba(153, 55, 26, 0.1);
}
.shop-detail-actions .shop-detail-purchase:hover {
  color: #fff;
  background: var(--accent-strong);
}
.shop-detail-actions .shop-detail-purchase:disabled {
  color: var(--muted);
  background: #f7f3f1;
  border-color: var(--line);
  box-shadow: none;
}
.shop-detail-actions .shop-detail-purchase .shop-currency { gap: 6px; font-size: 16px; }
.shop-detail-actions .shop-detail-purchase .shop-currency img { width: 22px; height: 22px; }
.shop-detail-action { width: 100%; justify-content: center; }
.shop-detail-action .shop-currency,
.shop-detail-actions .shop-currency,
.wardrobe-actions .shop-currency { color: inherit; font-size: inherit; }
.shop-detail-action .shop-currency img,
.shop-detail-actions .shop-currency img,
.wardrobe-actions .shop-currency img { width: 17px; height: 17px; }
.shop-detail-owned { color: var(--muted); font-size: 13px; font-weight: 800; }
.shop-egg-opening-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border-radius: 0; }
.shop-egg-opening-dialog::backdrop { background: rgba(69, 43, 27, .54); }
.shop-egg-opening-panel { min-height: 100%; height: 100%; padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); place-items: center; color: #694532; text-align: center; background: radial-gradient(circle at 50% 38%, #fff5c9, #fffaf3 59%, #f6e8da); border: 0; border-radius: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75); }
.shop-egg-opening { display: grid; justify-items: center; color: #694532; }
.shop-opening-egg { position: relative; display: grid; width: 200px; height: 232px; margin: 0; padding: 0; place-items: center; background: transparent; border: 0; cursor: pointer; filter: drop-shadow(0 18px 15px rgba(90, 60, 38, .2)); }
.shop-opening-egg:focus,
.shop-opening-egg:focus-visible {
  outline: 0;
  outline-offset: 0;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}
.shop-opening-egg:disabled { cursor: wait; }
.shop-opening-egg-stack { position: absolute; display: grid; width: 182px; height: 214px; place-items: center; isolation: isolate; }
.shop-opening-egg-stack::after { position: absolute; z-index: 0; inset: 27px 20px; background: radial-gradient(circle, rgba(255, 238, 168, .9), rgba(255, 218, 125, .28) 48%, transparent 72%); border-radius: 50%; content: ""; opacity: 0; }
.shop-opening-egg-stack > .shop-opening-egg-visual,
.shop-opening-shell-piece,
.shop-opening-cracks,
.shop-opening-crack-stage { position: absolute; inset: 0; }
.shop-opening-egg-visual { z-index: 1; display: grid; width: 182px; height: 214px; place-items: center; overflow: hidden; font-size: 160px; line-height: 1; }
.shop-opening-egg-visual img { display: block; width: 100%; height: 100%; object-fit: contain; }
.shop-opening-shell-piece { z-index: 2; display: grid; place-items: center; opacity: 0; transform-origin: 50% 42%; }
.shop-opening-shell-piece .shop-opening-egg-visual { position: static; }
.shop-opening-shell-piece.is-shell-left { clip-path: polygon(0 0, 52% 0, 44% 22%, 55% 38%, 45% 55%, 51% 72%, 0 75%); }
.shop-opening-shell-piece.is-shell-right { clip-path: polygon(52% 0, 100% 0, 100% 75%, 51% 72%, 45% 55%, 55% 38%, 44% 22%); }
.shop-opening-shell-piece.is-shell-bottom { clip-path: polygon(0 75%, 51% 72%, 100% 75%, 100% 100%, 0 100%); }
.shop-opening-cracks { z-index: 4; pointer-events: none; }
.shop-opening-crack-stage { opacity: 0; transform-origin: 50% 38%; }
.shop-opening-crack-stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.shop-egg-opening.has-tap-1:not(.has-tap-2) .shop-opening-crack-stage.is-stage-1,
.shop-egg-opening.has-tap-2:not(.has-tap-3) .shop-opening-crack-stage.is-stage-2,
.shop-egg-opening.has-tap-3 .shop-opening-crack-stage.is-stage-3 { opacity: 1; animation: shopEggCrackReveal .22s cubic-bezier(.2, .84, .32, 1.2) both; }
.shop-egg-opening > strong { font-size: 20px; font-weight: 950; }
.shop-egg-opening > p { margin: 7px 0 0; color: #806d61; font-size: 12px; font-weight: 750; }
.shop-egg-opening.is-opening .shop-opening-egg { animation: shopEggOpeningAnticipation .54s cubic-bezier(.18, .84, .26, 1) both; }
.shop-egg-opening:not(.is-opening) .shop-opening-egg:not(.is-tapping) { transform-origin: 50% 78%; animation: shopEggIdleWobble 1.9s ease-in-out infinite; }
.shop-egg-opening.is-opening .shop-opening-egg-stack::after { animation: shopEggOpenGlow .62s .3s ease-out both; }
.shop-egg-opening.is-opening .is-opening-egg-base { animation: shopEggFinalBurst .96s cubic-bezier(.22, .8, .3, 1) both; }
.shop-egg-opening.is-opening .shop-opening-cracks { animation: shopEggCracksRelease .62s .34s ease-out both; }
.shop-egg-opening.is-opening .shop-opening-shell-piece.is-shell-left { animation: shopEggShellLeft .96s cubic-bezier(.18, .76, .24, 1) both; }
.shop-egg-opening.is-opening .shop-opening-shell-piece.is-shell-right { animation: shopEggShellRight .96s cubic-bezier(.18, .76, .24, 1) both; }
.shop-egg-opening.is-opening .shop-opening-shell-piece.is-shell-bottom { animation: shopEggShellBottom .96s cubic-bezier(.22, .68, .28, 1) both; }
 .shop-opening-egg.is-tapping { animation: shopEggTap .32s ease-out; }
@keyframes shopEggOpeningAnticipation { 0%, 100% { transform: scale(1) rotate(0); } 14% { transform: scale(.93) rotate(-9deg); } 29% { transform: scale(.91) rotate(11deg); } 43% { transform: scale(.9) rotate(-12deg); } 58% { transform: scale(.92) rotate(10deg); } 73% { transform: scale(.94) rotate(-6deg); } }
@keyframes shopEggIdleWobble { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(2px) rotate(-2deg); } 50% { transform: translateY(0) rotate(0); } 75% { transform: translateY(2px) rotate(2deg); } }
@keyframes shopEggTap { 0%, 100% { transform: rotate(0); } 35% { transform: rotate(-8deg) scale(.96); } 70% { transform: rotate(6deg) scale(1.02); } }
@keyframes shopEggCrackReveal { 0% { opacity: 0; transform: scale(.92); } 58% { opacity: 1; transform: scale(1.025); } 100% { opacity: 1; transform: scale(1); } }
@keyframes shopEggFinalBurst { 0%, 44% { opacity: 1; transform: scale(1); visibility: visible; } 56% { opacity: .92; transform: scale(.82); } 67%, 100% { opacity: 0; transform: scale(.28); visibility: hidden; } }
@keyframes shopEggCracksRelease { 0% { opacity: 1; transform: scale(1); } 45% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(.46); } }
@keyframes shopEggOpenGlow { 0% { opacity: 0; transform: scale(.28); } 34% { opacity: .96; transform: scale(.86); } 64% { opacity: .52; transform: scale(1.28); } 100% { opacity: 0; transform: scale(1.8); } }
@keyframes shopEggShellLeft { 0%, 44% { opacity: 0; transform: translate(0, 0) scale(.76) rotate(0); } 48% { opacity: 1; transform: translate(-2px, 1px) scale(.78) rotate(-3deg); } 70% { opacity: .9; transform: translate(-15px, 7px) scale(.9) rotate(-14deg); } 100% { opacity: 0; transform: translate(-30px, 26px) scale(.98) rotate(-24deg); } }
@keyframes shopEggShellRight { 0%, 44% { opacity: 0; transform: translate(0, 0) scale(.76) rotate(0); } 48% { opacity: 1; transform: translate(2px, 1px) scale(.78) rotate(3deg); } 70% { opacity: .9; transform: translate(15px, 7px) scale(.9) rotate(14deg); } 100% { opacity: 0; transform: translate(30px, 26px) scale(.98) rotate(24deg); } }
@keyframes shopEggShellBottom { 0%, 46% { opacity: 0; transform: translate(0, 0) scale(.76) rotate(0); } 51% { opacity: 1; transform: translate(0, 4px) scale(.8) rotate(1deg); } 73% { opacity: .84; transform: translate(1px, 17px) scale(.92) rotate(4deg); } 100% { opacity: 0; transform: translate(3px, 32px) scale(1) rotate(7deg); } }
.shop-reward-result-dialog {
  width: min(340px, calc(100vw - 32px));
  margin: auto;
  border-radius: 28px;
}
.shop-egg-result-panel {
  justify-items: center;
  gap: 8px;
  padding: 28px 24px 24px;
  color: #29271f;
  text-align: center;
  background: #fff9f4;
  border: 1px solid #f2b28e;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(111, 48, 22, .25);
}
.shop-egg-result-panel .shop-detail-kicker {
  color: #8f3519;
  font-size: 11px;
  letter-spacing: .18em;
}
.shop-egg-result-panel h2 {
  margin: 0;
  color: #29271f;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: .13em;
  text-shadow: none;
}
.shop-reward-result-item {
  display: grid;
  min-width: 0;
  min-height: 0;
  padding: 0;
  grid-template-rows: 150px minmax(24px, auto) auto;
  gap: 8px;
  place-items: center;
  color: #7a3e26;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.shop-reward-result-item.is-rarity-blue,
.shop-reward-result-item.is-rarity-green,
.shop-reward-result-item.is-rarity-purple,
.shop-reward-result-item.is-rarity-gold {
  padding: 12px 14px 10px;
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(78, 48, 31, .1);
}
.shop-reward-result-item.is-rarity-blue { color: #1764c0; background: #e7f0ff; border: 1px solid #b7d3ef; }
.shop-reward-result-item.is-rarity-green { color: #147a4b; background: #e1f7ea; border: 1px solid #b8dfbb; }
.shop-reward-result-item.is-rarity-purple { color: #6840b6; background: #eee6ff; border: 1px solid #ddc2ee; }
.shop-reward-result-item.is-rarity-gold { color: #936211; background: #fff1c9; border: 1px solid #efd68b; }
.shop-reward-result-visual {
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  font-size: 82px;
}
.shop-reward-result-visual img {
  display: block;
  width: 144px;
  height: 144px;
  object-fit: contain;
  filter: drop-shadow(0 4px 3px rgba(75, 45, 30, .2));
}
.shop-reward-result-visual.is-accessory { overflow: visible; }
.shop-reward-result-visual.is-accessory img { transform: scale(1.7); transform-origin: 50% 50%; }
.shop-reward-result-visual.is-accessory.is-hat img { transform: scale(2.2); transform-origin: 50% 14%; }
.shop-reward-result-visual.is-accessory.is-clothes img { transform: scale(1.55); transform-origin: 50% 72%; }
.shop-reward-result-sparrow .outfit-reward-sparrow,
.sparrow-garden-reward-visual .outfit-reward-sparrow {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.shop-reward-result-sparrow .outfit-sparrow-stage,
.sparrow-garden-reward-visual .outfit-sparrow-stage {
  position: relative;
  width: 100%;
  height: 100%;
}
.shop-reward-result-item strong { color: #7a3e26; font-size: 16px; font-weight: 850; }
.shop-reward-result-item b { color: #c44d25; font-weight: 950; white-space: nowrap; }
.shop-reward-result-item.is-rarity-blue strong { color: #1764c0; }
.shop-reward-result-item.is-rarity-green strong { color: #147a4b; }
.shop-reward-result-item.is-rarity-purple strong { color: #6840b6; }
.shop-reward-result-item.is-rarity-gold strong { color: #936211; }
.shop-reward-result-item p { margin: 0; color: #80503a; font-size: 11px; line-height: 1.35; }
.shop-reward-dismiss-hint { color: rgba(143, 53, 25, .72); font-size: 10px; }
.shop-egg-result-panel { text-align: center; }
.shop-egg-result-panel > div { display: grid; gap: 6px; }
.shop-egg-result-panel > div strong { font-size: 22px; }
.shop-egg-result-panel > div p { margin: 0; color: var(--muted); }
.shop-egg-result-panel .shop-reward-result-item strong { color: #7a3e26; font-size: 16px; }
.shop-egg-result-panel .shop-reward-result-item p { color: #80503a; }

.wardrobe-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
  gap: 30px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
  padding: 24px;
}

.wardrobe-preview {
  position: relative;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.wardrobe-preview-purchase-button {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
}

.wardrobe-preview > #wardrobePreviewContent {
  height: 100%;
  min-height: 0;
}

.wardrobe-preview .outfit-stage-zone { height: 100%; min-height: 0; box-shadow: none; }
.wardrobe-trial-notice { position: absolute; z-index: 2; top: 14px; left: 14px; margin: 0; padding: 6px 10px; color: var(--accent-strong); font-size: 12px; font-weight: 850; background: #fff; border: 1px solid var(--accent-mid); border-radius: 999px; }
.wardrobe-trial-bird-swipe { position: relative; height: 100%; min-height: 0; touch-action: pan-y; }
.wardrobe-trial-bird-swipe .outfit-stage-zone { height: 100%; }
.wardrobe-trial-bird-dots { position: absolute; z-index: 3; bottom: 16px; left: 50%; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 18px; padding: 4px; transform: translateX(-50%); }
.wardrobe-trial-bird-dots button { width: 8px; height: 8px; padding: 0; cursor: pointer; background: #d5c6bc; border: 0; border-radius: 50%; transition: transform .16s ease, background-color .16s ease; }
.wardrobe-trial-bird-dots button.active { background: var(--accent); transform: scale(1.35); }
.wardrobe-trial-bird-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wardrobe-controls h2 { margin: 0; font-size: 28px; }
.wardrobe-controls > p:not(.shop-detail-kicker) { color: var(--muted); line-height: 1.6; }
.wardrobe-controls {
  display: grid;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  gap: 24px;
  padding-right: 4px;
}
.wardrobe-browser,
.wardrobe-selected-detail {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.wardrobe-browser-head,
.wardrobe-selected-detail { display: flex; align-items: center; gap: 14px; }
.wardrobe-browser-head { justify-content: space-between; }
.wardrobe-browser-head h2,
.wardrobe-selected-detail h2 { margin: 0; font-size: 22px; }
.wardrobe-browser-head .shop-detail-kicker,
.wardrobe-selected-detail .shop-detail-kicker { margin: 0 0 4px; }
.wardrobe-item-count {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
  background: #fff5ef;
  border-radius: 999px;
}
.wardrobe-slot-tabs {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  gap: 7px;
  margin: 0 0 14px;
  padding: 18px 0 8px;
  overflow-x: auto;
  scrollbar-width: none;
  background: #fff;
}
.wardrobe-slot-tabs::-webkit-scrollbar { display: none; }
.wardrobe-slot-tabs button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  color: var(--ink-soft);
  font-weight: 800;
  background: #fbf8f6;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.wardrobe-slot-tabs button.active { color: #fff; background: var(--accent); border-color: var(--accent); }
.wardrobe-item-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.wardrobe-item-choice {
  display: grid;
  grid-template-rows: 54px minmax(0, 1fr);
  justify-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 132px;
  padding: 8px 5px;
  color: var(--ink);
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.wardrobe-item-choice:hover,
.wardrobe-item-choice.selected { border-color: var(--accent); background: #fff8f4; }
.wardrobe-item-thumb,
.wardrobe-selected-art { display: grid; place-items: center; background: #fbf8f6; }
.wardrobe-item-thumb { width: 54px; height: 54px; border-radius: 9px; }
.wardrobe-item-thumb img { width: 100%; height: 100%; object-fit: contain; }
.wardrobe-item-meta { display: grid; width: 100%; min-width: 0; gap: 4px; }
.wardrobe-item-name { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 1.35em; overflow: hidden; font-size: 12px; line-height: 1.35; white-space: nowrap; }
.wardrobe-item-name-base { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wardrobe-item-name-variant { flex: 0 0 auto; margin-left: 3px; white-space: nowrap; }
.wardrobe-item-choice small { color: var(--muted); font-size: 10px; font-weight: 750; }
.wardrobe-item-prices { display: flex; align-items: center; justify-content: center; min-height: 20px; gap: 5px; }
.wardrobe-item-price { display: flex; align-items: center; justify-content: center; min-width: 0; }
.wardrobe-item-price .shop-currency { min-width: 0; gap: 2px; color: var(--accent-strong); font-size: 12px; line-height: 1; }
.wardrobe-item-price .shop-currency img { flex: 0 0 auto; width: 16px; height: 16px; }
.wardrobe-item-price[data-wardrobe-price-currency="feathers"] .shop-currency img { width: 18px; height: 18px; }
.wardrobe-selected-detail { align-items: flex-start; flex-wrap: wrap; }
.wardrobe-selected-art { flex: 0 0 88px; width: 88px; height: 88px; border-radius: 12px; }
.wardrobe-selected-art img { width: 100%; height: 100%; object-fit: contain; }
.wardrobe-selected-detail > div:nth-child(2) { flex: 1 1 180px; }
.wardrobe-selected-detail > div:nth-child(2) > p:last-child { margin: 7px 0 0; color: var(--muted); line-height: 1.55; }
.wardrobe-selected-detail .wardrobe-actions { width: 100%; }

.wardrobe-purchase-dialog {
  width: min(480px, calc(100vw - 32px));
  max-width: 100%;
  max-height: min(760px, calc(100dvh - 32px));
  padding: 0;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(55, 38, 29, .24);
}

.wardrobe-purchase-dialog::backdrop {
  background: rgba(42, 27, 20, .48);
  backdrop-filter: blur(3px);
}

.wardrobe-purchase-panel {
  display: grid;
  max-height: min(760px, calc(100dvh - 32px));
  gap: 14px;
  padding: 24px;
  overflow-y: auto;
}

.wardrobe-purchase-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.wardrobe-purchase-dialog-header h2 {
  margin: 3px 0 0;
  font-size: 22px;
  line-height: 1.25;
}

.wardrobe-purchase-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.wardrobe-purchase-list {
  display: grid;
  gap: 9px;
}

.wardrobe-purchase-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fffaf7;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.wardrobe-purchase-item-main {
  display: grid;
  grid-template-columns: auto 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  cursor: pointer;
}

.wardrobe-purchase-item-main input,
.wardrobe-purchase-currency-options input {
  accent-color: var(--accent);
}

.wardrobe-purchase-item-thumb {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  background: #fbf8f6;
  border-radius: 10px;
}

.wardrobe-purchase-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wardrobe-purchase-item-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.wardrobe-purchase-item-copy strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wardrobe-purchase-item-copy small,
.wardrobe-purchase-item-payment > span {
  color: var(--muted);
  font-size: 11px;
}

.wardrobe-purchase-item-payment {
  display: grid;
  gap: 6px;
  padding-left: 28px;
}

.wardrobe-purchase-currency-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.wardrobe-purchase-currency-options label {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.wardrobe-purchase-currency-options label:has(input:checked) {
  background: #fff1e9;
  border-color: var(--accent-mid);
}

.wardrobe-purchase-currency-options .shop-currency {
  color: inherit;
  font-size: 12px;
}

.wardrobe-purchase-currency-options .shop-currency img {
  width: 16px;
  height: 16px;
}

.wardrobe-purchase-summary {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  background: #f8f5f2;
  border-radius: 12px;
}

.wardrobe-purchase-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.wardrobe-purchase-summary-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.wardrobe-purchase-summary-line > span:first-child {
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
}

.wardrobe-purchase-total {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wardrobe-purchase-total .shop-currency {
  color: var(--accent-strong);
  font-size: 14px;
}

.wardrobe-purchase-insufficient {
  color: #b24e2a !important;
  font-weight: 800;
}

.wardrobe-purchase-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.wardrobe-purchase-actions button {
  min-height: 42px;
  padding: 0 16px;
}

.reward-store-batch-toolbar {
  position: sticky;
  top: 88px;
  z-index: 15;
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 18px rgba(70, 47, 39, 0.08);
  backdrop-filter: blur(8px);
}

.reward-store-batch-selection,
.reward-store-batch-fields,
.reward-store-batch-currency,
.reward-store-product-summary-top,
.reward-store-product-select {
  display: flex;
  align-items: center;
}

.reward-store-batch-selection {
  flex-wrap: wrap;
  gap: 6px;
}

.reward-store-batch-selection strong {
  margin-right: auto;
  font-size: 14px;
}

.reward-store-batch-selection button,
.reward-store-batch-fields > button {
  min-height: 30px;
  padding: 4px 9px;
  font-size: 12px;
}

.reward-store-batch-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(210px, 1fr)) auto;
  gap: 7px;
}

.reward-store-batch-currency {
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--color-background-secondary);
}

.reward-store-batch-currency label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  white-space: nowrap;
  font-size: 13px;
}

.reward-store-batch-currency input[type="number"] {
  width: 82px;
  height: 30px;
  padding: 3px 6px;
}

.reward-store-batch-toolbar > .helper-text {
  margin: 0;
  font-size: 12px;
}

.reward-store-batch-toolbar > .helper-text[data-tone="error"] { color: #a33b29; }
.reward-store-batch-toolbar > .helper-text[data-tone="success"] { color: #197647; }

.reward-store-product-item {
  grid-template-columns: minmax(120px, 0.7fr) minmax(260px, 1.3fr);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
}

.reward-store-product-summary {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 6px;
  min-width: 0;
}

.reward-store-product-summary-top {
  flex-wrap: wrap;
  gap: 6px;
}

.reward-store-product-select {
  gap: 3px;
  margin: 0;
  color: var(--muted);
  white-space: nowrap;
  font-size: 12px;
}

.reward-store-product-select input {
  width: 16px;
  height: 16px;
}

.reward-store-product-thumb {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
}

.reward-store-product-summary .reward-accessory-thumb {
  width: 44px;
  height: 44px;
  transform: translateY(5px) scale(1.5);
  transform-origin: center;
}

.reward-store-product-item[data-reward-store-item-slot="clothes"] .reward-accessory-thumb {
  transform: translateY(1px) scale(1.5);
}

.reward-store-product-summary strong {
  max-width: 100%;
  font-size: 14px;
  line-height: 1.35;
}

.reward-store-product-name {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  width: 100%;
  color: var(--muted);
  font-size: 12px;
}

.reward-store-product-name input {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 3px 7px;
}

.reward-store-settings {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
}

.reward-store-currency-setting {
  display: grid;
  grid-template-columns: minmax(94px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--color-background-secondary);
}

.reward-store-toggle,
.reward-store-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  margin: 0;
  font-size: 13px;
}

.reward-store-toggle {
  white-space: nowrap;
}

.reward-store-price {
  justify-content: flex-end;
  white-space: nowrap;
}

.reward-store-price input[type="number"] {
  width: min(80px, 100%);
  height: 30px;
  padding: 3px 6px;
}

.reward-store-rarity-setting select {
  min-width: 132px;
  height: 30px;
  padding: 3px 6px;
}

.reward-store-settings > button {
  justify-self: end;
  min-height: 30px;
  padding: 4px 10px;
  font-size: 13px;
}

.reward-store-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--line);
}

.reward-store-tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 10px 14px 8px;
  color: var(--muted);
  background: transparent;
}

.reward-store-tabs button.active {
  border-bottom-color: var(--accent);
  color: var(--accent-strong);
}

@media (max-width: 760px) {
  .reward-store-batch-toolbar {
    top: 88px;
    padding: 8px;
  }

  .reward-store-batch-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reward-store-batch-fields > button {
    grid-column: 1 / -1;
  }

  .reward-store-batch-currency {
    flex-wrap: wrap;
    gap: 4px;
  }

  .reward-store-batch-currency input[type="number"] {
    width: 68px;
  }

  .reward-store-product-item {
    grid-template-columns: minmax(96px, 0.65fr) minmax(190px, 1.35fr);
    gap: 8px;
    padding: 9px 10px;
  }

  .reward-store-currency-setting {
    grid-template-columns: minmax(88px, auto) minmax(0, 1fr);
  }

  .reward-store-product-summary strong {
    font-size: 13px;
  }

  .shop-catalog-header,
  .wardrobe-header { min-height: 58px; padding: 0 14px; }
  .wardrobe-header h1 { font-size: 25px; }
  .wardrobe-header h1 { display: none; }
  .wardrobe-header-actions { gap: 7px; }
  .wardrobe-purchase-button { min-height: 32px; padding: 0 9px; font-size: 12px; }
  .wardrobe-purchase-button span { min-width: 18px; height: 18px; }
  .shop-catalog-balances { gap: 9px; }
  .shop-currency { font-size: 15px; }
  .shop-currency img { width: 20px; height: 20px; }
  .shop-catalog-tabs { min-height: 50px; padding: 0 6px; }
  .shop-catalog-tabs button { min-width: 82px; min-height: 50px; padding: 0 13px; font-size: 15px; }
  .shop-catalog-main { padding: 20px 14px 0; }
  .shop-catalog-scroll { padding-bottom: 36px; }
  .shop-catalog-filters { margin-bottom: 16px; }
  .shop-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 10px; }
  .shop-product-tile > strong,
  .shop-product-name { font-size: 13px; }
  .shop-product-acquisition { font-size: 11px; }
  .shop-product-price .shop-currency { font-size: 14px; }
  .shop-product-dialog { width: 100%; max-width: none; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .shop-product-dialog-panel { min-height: min(70dvh, 600px); padding: 28px 20px max(24px, env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; }
  .shop-egg-opening-dialog { width: 100vw; margin: 0; border-radius: 0; }
  .shop-egg-opening-dialog .shop-egg-opening-panel { min-height: 100%; padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); border-radius: 0; }
  .shop-reward-result-dialog { width: min(340px, calc(100vw - 32px)); margin: auto; border-radius: 24px; }
  .shop-reward-result-dialog .shop-egg-result-panel { min-height: 0; padding: 28px 24px 24px; border-radius: 24px; }
  .wardrobe-purchase-dialog { width: 100%; max-width: none; max-height: min(760px, 92dvh); margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .wardrobe-purchase-panel { max-height: min(760px, 92dvh); padding: 22px 18px max(22px, env(safe-area-inset-bottom)); }
  .wardrobe-main { grid-template-columns: 1fr; grid-template-rows: minmax(280px, 48dvh) minmax(0, 1fr); gap: 0; padding: 0; background: #d6eaf8; }
  .wardrobe-preview .outfit-stage-zone { height: 100%; min-height: 0; }
  .wardrobe-trial-bird-dots { bottom: 42px; }
  .wardrobe-controls { position: relative; z-index: 1; align-self: stretch; margin-top: -30px; padding: 0 0 40px; background: #fff; border-radius: 26px 26px 0 0; }
  .wardrobe-slot-tabs { margin: 0 0 14px; padding: 16px 14px 8px; }
  .wardrobe-item-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 14px; }
  .wardrobe-browser,
  .wardrobe-selected-detail { margin: 12px 14px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .shop-egg-opening *,
  .shop-egg-opening *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* -- Storefront -- */
.storefront-page {
  min-height: 100dvh;
  background: #f7f3ef;
}

.storefront-header,
.storefront-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.storefront-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.storefront-back-link,
.storefront-account-link {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.storefront-account-link {
  color: var(--accent-strong);
}

.storefront-shell {
  display: grid;
  gap: 20px;
  padding-bottom: 48px;
}

.storefront-hero,
.storefront-catalog-panel,
.storefront-collection-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.storefront-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px, 5vw, 48px);
  color: #fff;
  background: linear-gradient(130deg, #5f3227, #bd5939 58%, #d89039);
  border: 0;
}

.storefront-eyebrow {
  margin: 0 0 6px;
  color: inherit;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
}

.storefront-hero h1,
.storefront-section-heading h2,
.storefront-product-section h3,
.storefront-product-card h4 {
  margin: 0;
}

.storefront-hero h1 {
  font-size: clamp(34px, 5vw, 52px);
}

.storefront-hero > div > p:last-child {
  max-width: 520px;
  margin: 10px 0 0;
  color: rgba(255,255,255,.84);
}

.storefront-balances {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 10px;
  width: min(100%, 350px);
}

.storefront-balance-card {
  display: grid;
  gap: 4px;
  padding: 13px;
  color: var(--ink);
  background: rgba(255,255,255,.93);
  border-radius: 12px;
}

.storefront-balance-card > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.storefront-balance-value strong {
  font-size: 22px;
}

.storefront-balance-value em,
.storefront-product-meta .rewards-currency em {
  font-style: normal;
  font-size: 12px;
  font-weight: 750;
}

.storefront-catalog-panel,
.storefront-collection-panel {
  padding: clamp(18px, 4vw, 32px);
}

.storefront-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.storefront-section-heading .storefront-eyebrow {
  color: var(--accent-strong);
}

.storefront-section-heading h2 {
  font-size: clamp(22px, 3vw, 30px);
}

.storefront-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: #f2ece8;
  border-radius: 10px;
}

.storefront-tabs button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  box-shadow: none;
}

.storefront-tabs button.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 5px rgba(70, 38, 29, .12);
}

.storefront-catalog {
  display: grid;
  gap: 28px;
}

.storefront-product-section {
  display: grid;
  gap: 12px;
}

.storefront-product-section header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.storefront-product-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.storefront-product-art {
  display: grid;
  place-items: center;
  width: 72px;
  height: 88px;
  overflow: hidden;
  font-size: 46px;
  background: #fff4e7;
  border-radius: 12px;
}

.storefront-product-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.storefront-feather-art {
  background: #f2edff;
}

.storefront-product-content {
  min-width: 0;
}

.storefront-product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.storefront-product-meta > span {
  font-weight: 750;
}

.storefront-product-meta .rewards-currency {
  padding: 3px 7px;
  background: #f8f3ef;
  border-radius: 999px;
}

.storefront-product-meta .rewards-currency img,
.storefront-buy-button .rewards-currency img {
  width: 15px;
  height: 15px;
}

.storefront-product-card h4 {
  margin-top: 5px;
  font-size: 17px;
}

.storefront-product-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.storefront-buy-button {
  grid-column: 1 / -1;
  justify-content: center;
}

.storefront-button-currency {
  margin-left: 3px;
}

.storefront-drop-rates {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.storefront-drop-rates summary {
  cursor: pointer;
}

.storefront-drop-rates ul {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.storefront-drop-rates li {
  display: flex;
  justify-content: space-between;
}

.storefront-collection-layout {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
  gap: 20px;
}

.storefront-outfit .rewards-sparrow-preview {
  min-height: 100%;
}

.storefront-inventory-list {
  display: grid;
  gap: 9px;
}

.storefront-inventory-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.storefront-inventory-item div {
  display: grid;
  gap: 3px;
}

.storefront-inventory-item span,
.storefront-inventory-item small {
  color: var(--muted);
  font-size: 12px;
}

.storefront-empty {
  padding: 20px;
  color: var(--muted);
  text-align: center;
  background: #faf7f5;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.storefront-result-dialog {
  width: min(400px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 16px;
}

.storefront-result-dialog::backdrop {
  background: rgba(26, 18, 20, .42);
}

.storefront-result-panel {
  position: relative;
  padding: 30px;
  text-align: center;
}

.storefront-result-panel .icon-button {
  position: absolute;
  top: 10px;
  right: 10px;
}

.storefront-result-panel > div {
  display: grid;
  gap: 4px;
  margin-top: 16px;
}

.storefront-result-panel > div strong {
  font-size: 24px;
}

.storefront-result-panel > div p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 680px) {
  .storefront-header,
  .storefront-shell {
    width: min(100% - 20px, 1120px);
  }

  .storefront-hero,
  .storefront-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .storefront-balances,
  .storefront-collection-layout {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .storefront-tabs {
    width: fit-content;
  }
}

/* Admin cards are scanned in bulk, so their routine actions stay compact and
   aligned instead of becoming a second card-sized block. */
.admin-page .detail-actions {
  flex-wrap: nowrap;
  gap: 6px;
  padding-top: 2px;
}

.admin-page .detail-actions button,
.admin-page .detail-actions a {
  min-width: 0;
  min-height: 36px;
  padding: 0 8px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.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;
  background: var(--color-background-secondary);
}

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

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

.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-location-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2e7ef;
  border-radius: 8px;
}

.place-edit-location-head {
  display: grid;
  gap: 4px;
}

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

.place-edit-location-head small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.place-edit-map {
  width: 100%;
  height: 180px;
  min-height: 180px;
  overflow: hidden;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #eef3f7;
}

.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%;
}

.anonymous-avatar-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}

.member-avatar-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}

/* Shared 512px Dugu avatar crop: SPARROW_AVATAR_MASK 227,221,203. */
.sparrow-avatar {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  background: #d6eaf8;
  border-radius: 50%;
}

.sparrow-avatar.rarity-blue {
  background: #d6eaf8;
}

.sparrow-avatar.rarity-green {
  background: #b8e9d5;
}

.sparrow-avatar.rarity-purple {
  background: #d3cafb;
}

.sparrow-avatar.rarity-gold {
  background: #fbe19c;
}

.sparrow-avatar-art {
  position: absolute;
  width: var(--sparrow-avatar-art-size);
  height: var(--sparrow-avatar-art-size);
  left: var(--sparrow-avatar-art-left);
  top: var(--sparrow-avatar-art-top);
}

.sparrow-avatar-art > .outfit-sparrow-stage,
.sparrow-avatar-art .outfit-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.place-comment-avatar-button > span,
.discussion-reply-avatar-button > span {
  display: grid;
  width: 100%;
  height: 100%;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
}

.place-comment-option-avatar.member,
.discussion-reply-option-avatar.member {
  overflow: hidden;
  padding: 0;
  color: transparent;
  background: transparent;
}

.comment-avatar.anonymous,
.place-comment-avatar-button.anonymous,
.place-comment-option-avatar.anonymous,
.discussion-reply-option-avatar.anonymous,
.account-muted-avatar {
  overflow: hidden;
  color: transparent;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.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: transparent;
  border-color: transparent;
  box-shadow: none;
}

.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: transparent;
}

.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: flex;
  gap: 2px;
  padding: 4px;
  overflow-x: auto;
  background: rgba(250, 245, 246, 0.94);
  border: 1px solid var(--line);
  border-radius: 10px;
  backdrop-filter: blur(12px);
}

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

.admin-domain-tab span {
  min-width: 20px;
  padding: 2px 6px;
  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: transparent;
  box-shadow: none;
}

.admin-domain-tab.active {
  background: #fff;
  box-shadow: inset 0 -2px 0 var(--accent);
}

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

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

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

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

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

.admin-tab.active {
  background: #fff;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.admin-tab span {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 5px;
  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-user-stats-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.admin-user-stat-card {
  cursor: default;
}

.admin-user-stat-card:hover {
  border-color: var(--line);
}

.admin-user-stat-card-online strong {
  color: #16804f;
}

.admin-workspace-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) max-content max-content;
  gap: 6px;
  align-items: center;
  padding: 6px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.admin-workspace-tools label {
  display: block;
  min-width: 0;
}

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

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

.admin-workspace-tools input {
  width: 100%;
}

.admin-workspace-tools select {
  width: auto;
  min-width: 92px;
}

.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;
}

/* Moderation queues are scanned far more often than they are edited. Keep
   secondary metadata in one compact reading line instead of individual tiles. */
.admin-moderation-card {
  gap: 9px;
  padding: 12px;
}

.admin-moderation-card .submission-card-header {
  align-items: center;
}

.admin-moderation-card .submission-card-header h3 {
  margin-top: 4px;
}

.admin-moderation-card .submission-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin: 0;
}

.admin-moderation-card .submission-meta div {
  display: inline-flex;
  gap: 4px;
  align-items: baseline;
  min-width: 0;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  background: transparent;
  border: 0;
}

.admin-moderation-card .submission-meta dt,
.admin-moderation-card .submission-meta dd {
  margin: 0;
}

.admin-moderation-card .submission-meta dt {
  flex: 0 0 auto;
  font-weight: 800;
}

.admin-moderation-card .submission-meta dt::after {
  content: "：";
}

.admin-moderation-card .submission-meta dd {
  min-width: 0;
  color: var(--ink);
}

.admin-moderation-card .helper-text {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-moderation-card .detail-actions {
  justify-content: flex-end;
  margin-top: 1px;
}

.admin-image-review-card {
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: start;
  padding: 12px;
}

.admin-image-review-card .submission-card-header,
.admin-image-review-card .submission-meta,
.admin-image-review-card .submission-actions {
  grid-column: 2;
}

.admin-image-review-card > img {
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 132px;
  height: 100px;
  max-width: none !important;
  max-height: none !important;
}

.admin-image-review-card .submission-card-header h3 {
  margin-top: 3px;
}

.admin-image-review-card .submission-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0;
}

.admin-image-review-card .submission-meta div {
  display: inline-flex;
  gap: 4px;
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 12px;
}

.admin-image-review-card .submission-meta dt,
.admin-image-review-card .submission-meta dd {
  margin: 0;
}

.admin-image-review-card .submission-meta dt::after {
  content: "：";
}

.admin-image-review-card .submission-meta div:nth-child(3),
.admin-image-review-card .submission-meta div:nth-child(4) {
  display: none;
}

.admin-image-review-card .submission-actions {
  display: flex;
  gap: 6px;
}

.admin-image-review-card .submission-actions button {
  min-height: 34px;
  padding: 0 10px;
}

.admin-image-orphan-notice {
  margin: 0;
  padding: 8px 10px;
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.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;
}

.admin-support-ticket-replies {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 10px;
  background: #fff;
  border: 1px solid #e7e9ef;
  border-radius: 10px;
}

.admin-support-ticket-replies > strong {
  color: var(--ink);
  font-size: 13px;
}

.admin-support-ticket-reply {
  padding: 9px 10px;
  background: #f7f8fa;
  border-radius: 8px;
}

.admin-support-ticket-reply-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-support-ticket-reply p {
  margin: 6px 0 0;
  color: #303746;
  line-height: 1.6;
  white-space: pre-wrap;
}

.admin-support-ticket-reply-form {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.admin-support-ticket-reply-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.admin-support-ticket-reply-form textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
}

.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;
}

.admin-place-card {
  gap: 9px;
  padding: 12px;
}

.admin-place-kicker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.admin-place-kicker,
.admin-place-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.admin-place-kicker {
  color: var(--accent-strong);
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
}

.admin-place-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px max-content;
  gap: 8px;
  align-items: center;
}

.admin-place-title-row h3 {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.admin-place-category-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-items: center;
  font-size: 19px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.admin-place-category-icon svg {
  width: 18px;
  height: 18px;
}

.admin-place-status-pill {
  justify-self: end;
  color: #3f4652;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.admin-place-status-pill.is-candidate {
  color: #7c3f00;
  background: #fff4dc;
  border-color: #ffd99a;
}

.admin-place-price {
  color: var(--muted);
  font-size: 18px;
  font-weight: 850;
}

.admin-place-info {
  display: grid;
  gap: 5px;
  padding-top: 3px;
}

.admin-place-info-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 24px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.admin-place-info-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-place-info-main {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-place-info-main small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.admin-place-submitter {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.admin-place-submitter .admin-user-chip {
  min-height: 24px;
  padding: 3px 8px;
}

.admin-place-score-row,
.admin-place-address-row {
  grid-template-columns: minmax(0, 1fr) max-content;
}

.admin-place-address-row {
  grid-template-columns: 68px minmax(0, 1fr) 34px;
}

.admin-place-votes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.admin-place-vote {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-place-vote svg {
  width: 16px;
  height: 16px;
}

.admin-place-vote-good {
  color: #0f766e;
}

.admin-place-vote-bad,
.admin-place-vote-warning {
  color: #b45309;
}

.admin-place-trust {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-place-trust strong {
  color: var(--ink);
  font-size: 15px;
}

.admin-place-google-link {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #0f4f92;
  background: #e9f2ff;
  border: 1px solid #cfe2ff;
  border-radius: 999px;
}

.admin-place-google-link svg {
  width: 18px;
  height: 18px;
}

.admin-place-google-link.is-disabled {
  color: #9ca3af;
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.admin-place-review-details {
  gap: 6px;
  padding: 0;
  overflow: hidden;
}

.admin-place-review-details summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 8px;
  align-items: center;
  padding: 9px 11px;
  cursor: pointer;
  list-style: none;
}

.admin-place-review-details summary::-webkit-details-marker {
  display: none;
}

.admin-place-review-details summary span {
  color: var(--accent-strong);
  font-weight: 900;
}

.admin-place-review-details[open] {
  padding-bottom: 10px;
}

.admin-place-review-details[open] > span {
  padding: 0 11px;
}

.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-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: 42px minmax(0, 1fr);
  grid-template-areas:
    "avatar head"
    "title title"
    "excerpt excerpt";
  gap: 5px 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-avatar {
  display: grid;
  grid-area: avatar;
  width: 40px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
}

.bang-thread-avatar > img,
.bang-thread-avatar > .sparrow-avatar {
  display: block;
  width: 100%;
  height: 100%;
}

.bang-thread-avatar > img {
  object-fit: cover;
}

.bang-thread-content {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.bang-thread-feed-content {
  display: contents;
}

.bang-thread-head {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.bang-thread-feed-content > .bang-thread-head {
  display: grid;
  grid-area: head;
  align-self: center;
  gap: 2px;
}

.bang-thread-author-line {
  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: 14px;
  font-weight: 800;
  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;
  grid-area: title;
  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-feed-content > p {
  grid-area: excerpt;
}

.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;
  padding: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
  place-items: center;
  background: var(--accent);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.public-profile-card-avatar:hover,
.public-profile-card-avatar:focus-visible {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.74), 0 0 0 7px rgba(70, 111, 159, 0.28);
  outline: none;
}

.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-card-dialog {
  width: min(430px, calc(100vw - 12px));
  height: calc(100dvh - 16px);
  max-height: calc(100dvh - 16px);
  background: #eceff4;
  border-radius: 16px;
}

.map-public-profile-card-dialog .bang-profile-panel {
  height: 100%;
  max-height: none;
  overflow: hidden;
  background: #eceff4;
}

.map-public-profile-card-dialog .public-profile-card-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #eceff4;
}

.map-public-profile-card-dialog .public-profile-card-hero {
  flex: 0 0 auto;
  min-height: 142px;
  background: #eceff4;
}

.map-public-profile-card-dialog .public-profile-card-mode-tabs {
  flex: 0 0 auto;
  margin: 0 20px 14px;
}

.map-public-profile-card-dialog .public-profile-card-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 18px 18px 0 0;
}

.map-public-profile-card-dialog .public-profile-card-tabs {
  position: static;
  flex: 0 0 auto;
}

.map-public-profile-card-dialog .public-profile-card-feed {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

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 .bang-profile-post {
  width: 100%;
  min-width: 0;
  background: #fff;
  border-bottom: 1px solid #eceef3;
}

.public-profile-card-feed .bang-profile-post > button {
  display: grid;
  gap: 7px;
  width: 100%;
  min-width: 0;
  min-height: 74px;
  padding: 13px 14px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.public-profile-card-feed .bang-profile-post > button:hover,
.public-profile-card-feed .bang-profile-post > button:focus-visible {
  background: #fffafa;
}

.public-profile-card-feed .bang-profile-post > button:focus-visible {
  outline: 2px solid var(--accent-mid);
  outline-offset: -2px;
}

.public-profile-card-feed .bang-profile-post .type-badge {
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-profile-card-feed .bang-profile-post strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
  text-overflow: ellipsis;
  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;
}

.post-content-editor-source {
  display: none;
}

.post-content-editor {
  width: 100%;
  min-height: 160px;
  padding: 12px;
  overflow-y: auto;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

.post-content-editor:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(216, 90, 48, 0.12);
}

.post-content-editor:empty::before {
  color: var(--muted);
  content: attr(data-placeholder);
  pointer-events: none;
}

.post-content-editor-image {
  position: relative;
  display: block;
  width: min(100%, 360px);
  margin: 10px 0;
  line-height: 0;
  white-space: normal;
}

.post-content-editor-image img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #f6f7f9;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.post-content-editor-image-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  color: #fff;
  background: rgba(31, 35, 40, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  place-items: center;
  transition:
    background 0.15s,
    box-shadow 0.15s,
    transform 0.1s;
}

.post-content-editor-image-remove svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.post-content-editor-image-remove:hover {
  background: rgba(31, 35, 40, 0.88);
}

.post-content-editor-image-remove:active {
  transform: scale(0.94);
}

.post-content-editor-image-remove:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.96);
  outline-offset: 2px;
  box-shadow:
    0 0 0 5px rgba(216, 90, 48, 0.78),
    0 2px 10px rgba(0, 0, 0, 0.24);
}

.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: var(--mobile-fab-right);
  bottom: 90px;
  width: var(--mobile-fab-size);
  height: var(--mobile-fab-size);
  padding: 0;
  color: #fff;
  line-height: 0;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(216, 90, 48, 0.38);
  appearance: none;
  z-index: 1200;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

.bang-write-fab svg {
  display: block;
  width: var(--mobile-fab-icon-size);
  height: var(--mobile-fab-icon-size);
}

.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 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.is-open .deals-search-row {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.deal-search-disclosure.is-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.is-expired {
  background: #f5f3f0;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.07);
}

.deal-card.is-expired .deal-card-open,
.deal-card.is-expired .deal-feedback {
  opacity: 0.64;
  filter: saturate(0.65);
}

.deal-card.is-expired[data-deal-card-url]:hover .deal-card-open,
.deal-card.is-expired[data-deal-card-url]:hover .deal-feedback {
  background: #f5f3f0;
}

.deal-card-open {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 7px 10px;
  grid-template-areas:
    "avatar head"
    "title title"
    "meta meta";
  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"
    "meta meta 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;
  font-size: 11px;
  font-weight: 700;
}

.deal-card-meta {
  display: flex;
  grid-area: meta;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 1px;
  min-width: 0;
}

.deal-card-expiry {
  overflow: hidden;
  color: var(--accent);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deal-card-expiry.expired,
.deal-card-expiry.unknown {
  color: var(--muted);
}

.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-price-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.48fr);
  gap: 10px;
  align-items: end;
}

.deal-price-input-row > label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.deal-price-input-row input,
.deal-price-input-row select {
  width: 100%;
  min-width: 0;
  font-weight: 500;
}

.deal-type-picker {
  position: relative;
  display: block;
  min-width: 0;
}

.deal-type-picker-button {
  position: relative;
  width: 100%;
  height: 44px;
  min-height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.deal-type-picker-button::after {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-65%) rotate(45deg);
  opacity: 0.65;
  pointer-events: none;
}

.deal-type-picker-button[aria-expanded="true"]::after {
  transform: translateY(-35%) rotate(225deg);
}

.deal-type-picker-menu {
  position: relative;
  display: grid;
  max-height: 220px;
  margin-top: 6px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}

.deal-type-picker-menu[hidden] {
  display: none;
}

.deal-type-picker-menu button {
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.deal-type-picker-menu button:hover,
.deal-type-picker-menu button[aria-selected="true"] {
  background: rgba(42, 122, 226, 0.1);
  color: #1d5fbf;
}

@media (max-width: 680px) {
  .deal-price-input-row {
    grid-template-columns: 1fr;
  }
}

.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-expiry-control-group {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--accent-mid);
  border-radius: 12px;
  background: var(--accent-light);
}

.deal-expiry-none-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.deal-composer-body > label .deal-expiry-none-option input {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.deal-write-fab {
  display: grid;
  place-items: center;
  right: var(--mobile-fab-right);
  bottom: var(--mobile-fab-bottom);
  width: var(--mobile-fab-size);
  height: var(--mobile-fab-size);
  padding: 0;
  color: #fff;
  line-height: 0;
  background: var(--accent);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(216, 90, 48, 0.38);
  appearance: none;
}

.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;
  }

  .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;
  }

  .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;
  background: #fff;
}

.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);
  gap: 14px;
  align-items: center;
  min-height: 136px;
  padding: 18px 16px 28px;
  background: #eceff4;
}

.account-home-avatar {
  display: grid;
  width: 64px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
  place-items: center;
  background: var(--accent);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.account-home-avatar.member-avatar-button {
  background: #d6eaf8;
}

.account-home-avatar:focus-visible {
  outline: 3px solid rgba(49, 111, 181, 0.36);
  outline-offset: 3px;
}

.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 {
  flex: 0 1 auto;
  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-bio,
.account-profile-bio {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.account-home-bio {
  max-width: 24ch;
}

.account-page .account-home-balances {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 20px;
  margin-top: 1px;
  padding: 0;
  color: #1b2430;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.account-page .account-home-balances[hidden] {
  display: none;
}

.account-page .account-home-balance {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 20px;
  color: #1b2430;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
}

.account-page .account-home-balance img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  transform: scale(1.4);
  transform-origin: center;
}

.account-page .account-home-balance strong {
  color: inherit;
  font-size: 14px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.account-page .account-home-balance-separator {
  color: #8d96a3;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
}

.account-home-edit-button {
  flex: 0 0 auto;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #303746;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.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:focus-visible,
.account-home-settings-button[aria-expanded="true"],
.account-home-shop-button:hover,
.account-home-shop-button:focus-visible,
.account-home-garden-button:hover,
.account-home-garden-button:focus-visible,
.account-home-collection-button:hover,
.account-home-collection-button:focus-visible {
  color: var(--accent);
  background: #eceff4;
}

.account-home-settings-button svg {
  width: 20px;
  height: 20px;
}

.account-home-shop-button,
.account-home-garden-button,
.account-home-collection-button {
  position: absolute;
  top: -41px;
  display: grid;
  width: 38px;
  height: 38px;
  color: #303746;
  place-items: center;
  text-decoration: none;
  background: transparent;
  border-radius: 50%;
}

.account-home-shop-button {
  right: 99px;
}

.account-home-garden-button {
  right: 55px;
}

.account-home-collection-button {
  right: 143px;
}

.account-home-shop-button svg {
  width: 20px;
  height: 20px;
}

.account-home-garden-button svg {
  width: 23px;
  height: 23px;
}

.account-home-collection-button svg {
  width: 24px;
  height: 24px;
}

.collection-nav-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 9px;
  height: 9px;
  pointer-events: none;
  background: var(--accent, #d85a30);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(111, 56, 25, 0.35);
}

.sparrow-garden-collection-button .collection-nav-badge {
  top: 3px;
  right: 3px;
  border: 0;
}

.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-status-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 54px;
  padding: 10px 10px 10px 13px;
  background: #fff;
  border-bottom: 1px solid #eef0f4;
}

.account-home-status-content {
  position: relative;
  z-index: 2;
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 3px;
  pointer-events: none;
}

.account-home-settings-menu .account-home-status-trigger {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  min-height: 0;
  height: 100%;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: inherit;
}

.account-home-status-row:has(.account-home-status-trigger:hover),
.account-home-status-row:has(.account-home-status-trigger:focus-visible) {
  background: #faf1f3;
}

.account-home-settings-menu .account-home-status-trigger:focus-visible {
  outline: 2px solid var(--accent-mid);
  outline-offset: -2px;
}

.account-home-status-member-id {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 4px;
}

.account-home-status-member-id strong {
  min-width: 0;
  flex: 0 1 auto;
}

.account-home-status-member-id i {
  flex: 0 0 auto;
  color: #aab2c0;
  font-size: 17px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.account-home-settings-menu .account-home-copy-member-id {
  position: relative;
  z-index: 3;
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  min-height: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  color: #687386;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.account-home-settings-menu .account-home-copy-member-id svg {
  width: 16px;
  height: 16px;
}

.account-home-settings-menu .account-home-copy-member-id:hover,
.account-home-settings-menu .account-home-copy-member-id:focus-visible {
  color: var(--accent);
  background: var(--accent-light);
}

.account-home-settings-menu .account-home-copy-member-id:focus-visible {
  outline: 2px solid var(--accent-mid);
  outline-offset: 2px;
}

.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 {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  max-block-size: none;
  margin: 0;
  padding: 14px;
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(18, 24, 33, 0.42);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.account-change-password-dialog:not([open]) {
  display: none;
}

.account-change-password-dialog::backdrop {
  background: transparent;
}

.account-first-nickname-dialog {
  box-sizing: border-box;
  width: min(420px, calc(100vw - 32px));
  max-width: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: #141821;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(18, 24, 33, 0.26);
}

.account-first-nickname-dialog::backdrop {
  background: rgba(18, 24, 33, 0.48);
  backdrop-filter: blur(3px);
}

.account-first-nickname-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.account-first-nickname-head span {
  display: block;
  margin-bottom: 3px;
  color: #768093;
  font-size: 12px;
  font-weight: 800;
}

.account-first-nickname-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.account-first-nickname-intro {
  margin: -4px 0 0;
  color: #596579;
  font-size: 13px;
  line-height: 1.55;
}

.account-first-nickname-form .primary-action {
  width: 100%;
}

.account-first-nickname-feedback {
  margin: -4px 0 0;
  color: #b9381c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.account-change-password-panel {
  display: grid;
  align-content: start;
  grid-template-rows: max-content max-content;
  grid-auto-rows: max-content;
  gap: 14px;
  box-sizing: border-box;
  width: min(420px, calc(100vw - 32px));
  height: auto;
  max-height: calc(var(--mobile-visual-viewport-height, 100dvh) - 28px);
  max-block-size: calc(var(--mobile-visual-viewport-height, 100dvh) - 28px);
  min-height: 0;
  padding: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(18, 24, 33, 0.08);
}

.account-binding-status-panel {
  gap: 16px;
}

.account-binding-status-panel {
  gap: 10px;
  padding: 12px;
}

.account-binding-status-panel .account-change-password-head {
  align-items: center;
}

.account-binding-status-panel #closeAccountBindingStatus {
  width: 36px;
  min-height: 36px;
  height: 36px;
}

.account-binding-status-panel .account-binding-status-row {
  min-height: 54px;
}

.account-binding-status-intro {
  margin: -4px 0 0;
  color: #697589;
  font-size: 13px;
  line-height: 1.5;
}

.account-binding-status-list {
  display: grid;
  gap: 9px;
}

.account-binding-status-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  background: #fffdfc;
  border: 1px solid #e8e1df;
  border-radius: 10px;
}

.account-binding-status-row.is-linkable {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.account-binding-status-row.is-linkable:hover,
.account-binding-status-row.is-linkable:focus-visible {
  background: #fff6f1;
  border-color: var(--accent-mid);
  outline: none;
}

.account-binding-status-row.is-linkable:focus-visible {
  outline: 2px solid var(--accent-mid);
  outline-offset: 2px;
}

.account-binding-status-row.is-linked {
  background: #fff9f6;
  border-color: #f0b49d;
}

.account-binding-status-row.is-unavailable {
  opacity: 0.65;
}

.account-binding-provider-icon {
  position: relative;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
}

.account-binding-provider-icon .account-oauth-icon {
  position: static;
  width: 24px;
  height: 24px;
}

.account-binding-provider-icon .account-oauth-icon-line {
  width: 26px;
  height: 26px;
}

.account-binding-provider-icon .account-oauth-icon-line path[fill="#fff"] {
  display: block;
}

.account-binding-provider-icon .account-oauth-icon-line path[fill="#fff"] {
  display: none;
}

.account-binding-line-wordmark {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: 26px;
  height: 7px;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 6.4px;
  font-weight: 900;
  letter-spacing: -0.55px;
  line-height: 1;
  transform: translate(-50%, -60%);
}

.account-binding-status-row.is-unavailable {
  opacity: 1;
}

.account-binding-status-row > strong {
  min-width: 0;
  color: #202633;
  font-size: 15px;
}

.account-binding-state {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.account-binding-state.is-linked {
  color: #b85231;
  background: #ffe4d8;
}

.account-binding-state.is-unlinked {
  color: #7a8493;
  background: #f0f2f5;
}

html.account-managed-dialog-open,
body.account-managed-dialog-open {
  overflow: hidden;
}

.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;
  align-content: start;
  grid-auto-rows: max-content;
  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 {
  padding: 16px;
}

.account-support-dialog .account-change-password-panel {
  max-height: calc(var(--mobile-visual-viewport-height, 100dvh) - 32px);
  max-block-size: calc(var(--mobile-visual-viewport-height, 100dvh) - 32px);
}

.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: 100%;
}

.account-notice-dialog .account-change-password-panel {
  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: transparent;
  background: transparent;
  border-color: transparent;
  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-auth-form input[aria-invalid="true"],
.account-password-row:has(input[aria-invalid="true"]),
.account-nickname-generator-row:has(input[aria-invalid="true"]) {
  border-color: #bd3e32;
}

.account-auth-form input[aria-invalid="true"]:focus,
.account-password-row:has(input[aria-invalid="true"]):focus-within,
.account-nickname-generator-row:has(input[aria-invalid="true"]):focus-within {
  box-shadow: 0 0 0 3px rgba(189, 62, 50, 0.16);
}

.account-password-row,
.account-nickname-generator-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,
.account-nickname-generator-row:focus-within {
  border-color: var(--accent-mid);
  box-shadow: 0 0 0 3px rgba(216, 90, 48, 0.12);
}

.account-nickname-generator-row {
  grid-template-columns: minmax(0, 1fr) 48px;
}

.account-password-row input,
.account-nickname-generator-row input {
  min-width: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.account-password-row input:focus,
.account-nickname-generator-row input:focus {
  border-color: transparent;
  box-shadow: none;
}

.account-password-row .icon-button,
.account-nickname-generator-row .icon-button {
  width: 42px;
  height: 38px;
  color: #26313d;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.account-nickname-generator-row .account-nickname-dice-button {
  width: 48px;
  height: auto;
  min-height: 42px;
  align-self: stretch;
  color: var(--accent);
  background: #fff;
  border-left: 1px solid #e4e8ee;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.account-nickname-generator-row .account-nickname-dice-button:hover:not(:disabled) {
  color: #b84520;
  background: #f5f7fa;
}

.account-nickname-generator-row .account-nickname-dice-button:active:not(:disabled) {
  transform: scale(0.94);
}

.account-nickname-generator-row .account-nickname-dice-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.account-nickname-generator-row .account-nickname-dice-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.account-password-row svg,
.account-nickname-generator-row svg {
  width: 19px;
  height: 19px;
}

.account-nickname-generator-row .account-nickname-dice-button svg {
  width: 22px;
  height: 22px;
}

.account-auth-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.account-auth-form .account-auth-check {
  display: inline-flex;
  width: fit-content;
  grid-template-columns: none;
  grid-auto-flow: column;
  align-items: center;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 800;
}

.account-auth-form .account-auth-check input {
  width: 16px;
  min-width: 16px;
  min-height: 16px;
  height: 16px;
  padding: 0;
  accent-color: var(--accent);
}

.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-auth-feedback {
  margin: -2px 0 0;
  padding: 9px 10px;
  color: #8e2e25;
  background: #fff1ef;
  border: 1px solid #f2b9b3;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.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-page-avatar.account-muted-avatar {
  color: transparent;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.member-avatar-menu {
  position: fixed;
  z-index: 70;
  display: grid;
  min-width: 132px;
  padding: 6px;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(28, 38, 54, 0.18);
}

.member-avatar-menu[hidden] {
  display: none;
}

.member-avatar-menu button {
  min-height: 38px;
  padding: 0 12px;
  color: #26384f;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.member-avatar-menu button:hover,
.member-avatar-menu button:focus-visible {
  background: #edf5fb;
  outline: none;
}

.member-avatar-dialog {
  width: min(92vw, 430px);
  padding: 0;
  background: transparent;
  border: 0;
}

.member-avatar-dialog::backdrop {
  background: rgba(20, 28, 40, 0.42);
}

.member-avatar-dialog-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: #fff;
  border-radius: 8px;
}

.member-avatar-preview-panel {
  gap: 0;
  padding: 8px;
}

.member-avatar-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.member-avatar-dialog-head h2 {
  margin: 0;
  color: #22324a;
  font-size: 18px;
}

.member-avatar-preview-image {
  display: block;
  width: min(100%, 512px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #e7f4fd;
  border-radius: 8px;
}

.member-avatar-preview-body {
  width: min(100%, 512px);
  aspect-ratio: 1 / 1;
}

.member-avatar-preview-body > .member-avatar-preview-image,
.member-avatar-preview-body > .sparrow-avatar {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.member-avatar-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 12px;
}

.member-avatar-choice {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-height: 142px;
  padding: 12px;
  color: #23344a;
  font-size: 13px;
  font-weight: 800;
  background: #f7fafc;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.member-avatar-choice img {
  width: 84px;
  height: 84px;
  overflow: hidden;
  border-radius: 50%;
}

.member-avatar-choice.selected {
  background: #eef7ff;
  border-color: #5ca4dc;
}

.member-wardrobe-dialog {
  width: min(94vw, 460px);
  max-height: min(780px, calc(100dvh - 24px));
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.member-wardrobe-dialog::backdrop {
  background: rgba(20, 28, 40, 0.42);
}

.member-wardrobe-panel {
  display: grid;
  max-height: min(780px, calc(100dvh - 24px));
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(28, 38, 54, 0.22);
}

.member-wardrobe-head {
  padding: 16px;
  border-bottom: 1px solid #e5edf4;
}

.member-wardrobe-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.member-wardrobe-body {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
  overflow: auto;
}

.member-wardrobe-loading,
.member-wardrobe-empty {
  display: grid;
  gap: 6px;
  padding: 16px;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e5edf4;
  border-radius: 8px;
}

.outfit-sparrow-preview {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 132px;
  padding: 12px;
  background: #f8fbf6;
  border: 1px solid #dfe8d8;
  border-radius: 8px;
}

.outfit-sparrow-preview.is-large {
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 172px;
}

.outfit-sparrow-stage {
  position: relative;
  width: 112px;
  height: 112px;
}

.outfit-sparrow-preview.is-large .outfit-sparrow-stage {
  width: 112px;
  height: 112px;
  transform: none;
}

.outfit-sparrow-preview.is-green .sparrow-body {
  background: #75b56d;
  border-color: #386a35;
}

.outfit-sparrow-preview.is-green .sparrow-tail {
  background: #386a35;
}

.outfit-sparrow-preview strong {
  display: block;
  color: #22324a;
  font-size: 18px;
}

.outfit-sparrow-preview span:not(.sparrow-tail, .sparrow-body, .sparrow-wing, .sparrow-eye, .sparrow-beak, .sparrow-hat, .sparrow-face, .sparrow-clothes, .sparrow-shoes) {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

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

.member-wardrobe-slot-tabs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.member-wardrobe-tabs button,
.member-wardrobe-slot-tabs button {
  min-height: 40px;
  color: #526579;
  font-weight: 850;
  background: #f7fafc;
  border: 1px solid #dce6ef;
  border-radius: 8px;
  cursor: pointer;
}

.member-wardrobe-tabs button.active,
.member-wardrobe-slot-tabs button.active {
  color: #0f766e;
  background: #eefaf7;
  border-color: #62c5b8;
}

.member-wardrobe-slot-tabs span {
  display: grid;
  place-items: center;
  font-size: 14px;
}

.member-wardrobe-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.member-wardrobe-choice {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 6px;
  min-height: 116px;
  padding: 10px 6px;
  color: #26384f;
  text-align: center;
  background: #fff;
  border: 2px solid #e5edf4;
  border-radius: 8px;
  cursor: pointer;
}

.member-wardrobe-choice.selected {
  background: #eefaf7;
  border-color: #18a88c;
}

.member-wardrobe-item-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #0f766e;
  font-weight: 900;
  background: #e9f8f4;
  border-radius: 50%;
}

.member-wardrobe-choice strong {
  display: -webkit-box;
  min-height: 34px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.member-wardrobe-choice small {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.member-wardrobe-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

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

.outfit-equipped-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e5edf4;
  border-radius: 8px;
}

.outfit-equipped-row span {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.outfit-equipped-row strong {
  overflow: hidden;
  color: #22324a;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-wardrobe-dialog.public-outfit-dialog,
.member-wardrobe-dialog.outfit-wardrobe-dialog {
  width: min(100vw, 430px);
  max-width: 430px;
  height: min(100dvh, 760px);
  max-height: 760px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.member-wardrobe-dialog.public-outfit-dialog::backdrop,
.member-wardrobe-dialog.outfit-wardrobe-dialog::backdrop {
  background: rgba(20, 28, 40, 0.42);
}

.outfit-dialog-body {
  height: 100%;
}

.outfit-experience {
  --outfit-stage-bg:
    linear-gradient(180deg, #d6eaf8 0%, #e4f3fc 54%, #f3fbff 100%),
    #eef8ff;
  --outfit-stage-bottom-color: #f3fbff;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
  color: #26384f;
  background: #fff;
  box-shadow: 0 18px 46px rgba(28, 38, 54, 0.22);
}

.outfit-stage-zone {
  position: relative;
  display: grid;
  flex: 1 1 auto;
  min-height: 310px;
  place-items: center;
  overflow: hidden;
  background: var(--outfit-stage-bg);
  box-shadow: 0 24px 0 var(--outfit-stage-bottom-color);
}

.outfit-stage-zone.rarity-blue {
  --outfit-stage-bg:
    linear-gradient(180deg, #d6eaf8 0%, #e4f3fc 54%, #f3fbff 100%),
    #f3fbff;
  --outfit-stage-bottom-color: #f3fbff;
}

.outfit-stage-zone.rarity-green {
  --outfit-stage-bg:
    linear-gradient(180deg, rgba(125, 205, 174, 0.72) 0%, rgba(184, 233, 213, 0.76) 54%, rgba(239, 252, 246, 0.98) 100%),
    #effcf6;
  --outfit-stage-bottom-color: #effcf6;
}

.outfit-stage-zone.rarity-purple {
  --outfit-stage-bg:
    linear-gradient(180deg, rgba(184, 169, 244, 0.78) 0%, rgba(211, 202, 251, 0.72) 48%, rgba(246, 243, 255, 0.94) 100%),
    #f1edff;
  --outfit-stage-bottom-color: #f6f3ff;
}

.outfit-stage-zone.rarity-gold {
  --outfit-stage-bg:
    linear-gradient(180deg, rgba(246, 203, 107, 0.78) 0%, rgba(251, 225, 156, 0.72) 48%, rgba(255, 250, 232, 0.94) 100%),
    #fff3cf;
  --outfit-stage-bottom-color: #fffae8;
}

.outfit-stage-zone::after {
  display: none;
  content: none;
}

.outfit-stage-scene {
  --outfit-stage-scale: 2.75;
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 280px;
  place-items: center;
}

.outfit-stage-scene .outfit-sparrow-stage {
  width: 112px;
  height: 112px;
  transform: scale(var(--outfit-stage-scale));
  transform-origin: center center;
}

.outfit-sparrow-stage.has-asset {
  display: grid;
  place-items: center;
}

.outfit-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  overflow: visible;
}

.sparrow-asset-image,
.outfit-layer {
  position: absolute;
  inset: 0;
  z-index: var(--outfit-layer, 1);
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* Every asset is a pre-positioned 512x512 transparent layer. */
.outfit-layer-sparrow,
.outfit-layer-eyes {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.outfit-sparrow-stage.has-asset .sparrow-body,
.outfit-sparrow-stage.has-asset .sparrow-wing,
.outfit-sparrow-stage.has-asset .sparrow-eye,
.outfit-sparrow-stage.has-asset .sparrow-beak,
.outfit-sparrow-stage.has-asset .sparrow-tail {
  display: none;
}

.outfit-sparrow-stage.has-asset .sparrow-hat,
.outfit-sparrow-stage.has-asset .sparrow-face,
.outfit-sparrow-stage.has-asset .sparrow-clothes,
.outfit-sparrow-stage.has-asset .sparrow-shoes {
  z-index: 2;
}

.outfit-stage-zone.is-green .sparrow-body,
.outfit-sparrow-preview.is-green .sparrow-body {
  background: #75b56d;
  border-color: #386a35;
}

.outfit-stage-zone.is-green .sparrow-tail,
.outfit-sparrow-preview.is-green .sparrow-tail {
  background: #386a35;
}

.outfit-tray {
  --outfit-tray-radius: 30px;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  min-height: 318px;
  padding: 12px 18px calc(16px + env(safe-area-inset-bottom));
  overflow: hidden;
  background: #fff;
  background-clip: padding-box;
  border-radius: var(--outfit-tray-radius) var(--outfit-tray-radius) 0 0;
  box-shadow: 0 -10px 28px rgba(28, 38, 54, 0.12);
  clip-path: inset(0 round var(--outfit-tray-radius) var(--outfit-tray-radius) 0 0);
  isolation: isolate;
}

.outfit-tray::before {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 48px;
  height: 5px;
  content: "";
  background: #d0d6dd;
  border-radius: 999px;
  transform: translateX(-50%);
}

.outfit-main-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 16px 0 8px;
  padding: 0 4px 8px;
  border-bottom: 1px solid #e2e8f0;
}

.outfit-main-tabs button,
.outfit-slot-tabs button {
  display: grid;
  min-width: 0;
  min-height: 42px;
  place-items: center;
  color: #66717f;
  font-size: 18px;
  font-weight: 900;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.outfit-main-tabs button.active,
.outfit-slot-tabs button.active {
  color: #10a68b;
  box-shadow: inset 0 -5px 0 #10b99b;
}

.outfit-slot-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0 -8px 8px;
}

.outfit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 86px;
  gap: 12px;
  min-height: 184px;
  padding: 8px 0 12px;
}

.outfit-choice {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 6px;
  color: #26384f;
  text-align: center;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.outfit-choice.selected {
  border-color: #10b99b;
  box-shadow: 0 8px 22px rgba(28, 38, 54, 0.16);
}

.outfit-choice-icon {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #10a68b;
  font-weight: 900;
  background: #eef8f5;
  border-radius: 8px;
}

.outfit-choice-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.outfit-choice strong {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  color: #26384f;
  font-size: 11px;
  line-height: 1.2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.outfit-choice small {
  max-width: 100%;
  overflow: hidden;
  color: #7a8592;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outfit-empty {
  display: grid;
  grid-column: 1 / -1;
  min-height: 160px;
  place-items: center;
  color: #7a8592;
  font-size: 14px;
  font-weight: 800;
}

.outfit-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.outfit-back-button,
.outfit-save-button {
  display: grid;
  min-height: 48px;
  align-items: center;
  border: 0;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(28, 38, 54, 0.16);
}

.outfit-back-button {
  width: 56px;
  color: #26384f;
  font-size: 34px;
  background: #fff;
  border-radius: 50%;
}

.outfit-save-button {
  min-width: 150px;
  padding: 0 28px;
  color: #10a68b;
  font-size: 17px;
  font-weight: 900;
  background: #fff;
  border-radius: 999px;
}

.outfit-save-button:disabled {
  color: #96a1ad;
  cursor: wait;
}

.outfit-loading {
  display: grid;
  height: 100%;
  place-items: center;
  color: #66717f;
  font-weight: 850;
}

.outfit-viewer-tray {
  min-height: 292px;
}

.member-wardrobe-dialog.public-outfit-dialog {
  width: min(calc(100vw - 32px), 390px);
  max-width: 390px;
  height: min(calc(100dvh - 96px), 520px);
  max-height: 520px;
  border-radius: 24px;
}

.public-dugu-outfit-experience {
  border-radius: 24px;
}

.public-dugu-outfit-stage {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  touch-action: pan-y;
}

.public-dugu-outfit-stage > .outfit-stage-zone {
  width: 100%;
  height: 100%;
  min-height: 0;
  box-shadow: none;
}

.public-dugu-outfit-name {
  position: absolute;
  z-index: 3;
  top: 58px;
  left: 50%;
  max-width: calc(100% - 72px);
  overflow: hidden;
  color: #26384f;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.72);
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateX(-50%);
}

.public-dugu-outfit-stage-head {
  position: absolute;
  z-index: 4;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  pointer-events: none;
}

.public-dugu-outfit-close {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  color: #26384f;
  font-size: 26px;
  line-height: 1;
  pointer-events: auto;
  cursor: pointer;
  background: #fff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(28, 38, 54, 0.16);
}

.public-dugu-outfit-close:focus-visible {
  outline: 3px solid var(--accent-mid);
  outline-offset: 2px;
}

.public-dugu-outfit-dots {
  bottom: 18px;
}

.public-dugu-outfit-empty {
  position: relative;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  background: linear-gradient(180deg, #d6eaf8 0%, #f7fbfe 100%);
}

.public-dugu-outfit-empty-copy {
  display: grid;
  gap: 8px;
  max-width: 280px;
  padding: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #dce6ef;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(28, 38, 54, 0.12);
}

.public-dugu-outfit-empty-copy strong {
  color: #22324a;
  font-size: 18px;
}

.public-dugu-outfit-empty-copy span {
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.outfit-equipped-list {
  gap: 8px;
  padding-top: 20px;
}

.outfit-equipped-row {
  grid-template-columns: 32px 58px minmax(0, 1fr);
  min-height: 40px;
  padding: 8px 10px;
  background: #f8fafc;
  border-color: #e5edf4;
}

.outfit-equipped-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #10a68b;
  background: #eef8f5;
  border-radius: 50%;
}

@media (max-width: 430px) {
  .member-wardrobe-dialog.outfit-wardrobe-dialog {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
  }

  .member-wardrobe-dialog.public-outfit-dialog {
    width: calc(100vw - 32px);
    height: min(calc(100dvh - 96px), 520px);
    max-height: 520px;
  }

  .outfit-stage-zone {
    min-height: 300px;
  }

  .outfit-stage-scene {
    --outfit-stage-scale: 2.65;
  }

  .outfit-tray {
    --outfit-tray-radius: 28px;
    min-height: 306px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .outfit-grid {
    grid-auto-rows: 78px;
    gap: 8px;
  }

  .outfit-save-button {
    min-width: 132px;
  }
}

.account-page .account-sparrow-thumb {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.account-page .account-sparrow-thumb-layer {
  position: absolute;
  inset: 0;
  z-index: var(--account-thumb-layer, 1);
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.account-page .account-wardrobe-switch-dialog {
  width: min(92vw, 340px);
  max-width: 340px;
  padding: 22px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(28, 38, 54, 0.22);
}

.account-page .account-wardrobe-switch-dialog::backdrop {
  background: rgba(20, 28, 40, 0.42);
}

.account-page .account-wardrobe-switch-dialog h2 {
  margin: 0;
  font-size: 18px;
}

.account-page .account-wardrobe-switch-dialog p {
  margin: 10px 0 18px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.account-page .account-wardrobe-switch-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.account-page .account-wardrobe-switch-actions button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  background: #fff;
  border: 1px solid var(--accent);
  border-radius: 999px;
}

.account-page .account-wardrobe-switch-actions button[data-wardrobe-switch-action="apply"] {
  color: #fff;
  background: var(--accent);
}

.sparrow-wardrobe-message-dialog {
  width: min(88vw, 360px);
  max-width: 360px;
  padding: 0;
  overflow: visible;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.sparrow-wardrobe-message-dialog::backdrop {
  background: rgba(20, 28, 40, 0.46);
  backdrop-filter: blur(2px);
}

.sparrow-wardrobe-message-dialog > section {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 24px 22px 22px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(28, 38, 54, 0.24);
}

.sparrow-wardrobe-message-dialog h2,
.sparrow-wardrobe-message-dialog p {
  margin: 0;
}

.sparrow-wardrobe-message-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.sparrow-wardrobe-message-dialog h2 {
  font-size: 21px;
}

.sparrow-wardrobe-message-dialog #sparrowWardrobeMessageText {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.sparrow-wardrobe-message-dialog button {
  min-height: 44px;
  margin-top: 6px;
  padding: 0 22px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
}

/* Account wardrobe only: keep the standalone try-on page unchanged. */
.account-page #memberWardrobeDialog .outfit-wardrobe-experience {
  position: relative;
}

.account-page #memberWardrobeDialog .outfit-wardrobe-experience .outfit-wardrobe-tray::before {
  display: none;
}

.account-page #memberWardrobeDialog .account-wardrobe-top-actions {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.account-page #memberWardrobeDialog .account-wardrobe-top-actions button {
  pointer-events: auto;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--accent);
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(28, 38, 54, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.account-page #memberWardrobeDialog .account-wardrobe-top-actions button.account-wardrobe-back-button {
  display: grid;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  place-items: center;
  padding: 0;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 50%;
  box-shadow: none;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.account-page #memberWardrobeDialog .account-wardrobe-back-icon {
  display: inline-block;
  line-height: 1;
  transform: translateY(-1px);
}

.account-page #memberWardrobeDialog .account-wardrobe-save-button {
  min-width: 76px;
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
}

.account-page #memberWardrobeDialog .account-wardrobe-top-actions button:disabled {
  opacity: .65;
  cursor: wait;
}

.account-page #memberWardrobeDialog .outfit-wardrobe-tray .outfit-actions {
  display: none;
}

.account-page #memberWardrobeDialog .outfit-wardrobe-experience .outfit-wardrobe-tray {
  box-sizing: border-box;
  flex: 0 0 435px;
  height: 435px;
  min-height: 435px;
  max-height: 435px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.account-page #memberWardrobeDialog .outfit-wardrobe-experience .outfit-main-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 12px;
  padding: 0;
  border: 0;
}

.account-page #memberWardrobeDialog .outfit-wardrobe-experience .outfit-main-tabs button,
.account-page #memberWardrobeDialog .outfit-wardrobe-experience .outfit-slot-tabs button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 13px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 850;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: none;
}

.account-page #memberWardrobeDialog .outfit-wardrobe-experience .outfit-main-tabs button.active,
.account-page #memberWardrobeDialog .outfit-wardrobe-experience .outfit-slot-tabs button.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
}

.account-page #memberWardrobeDialog .outfit-wardrobe-experience .outfit-slot-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0;
  overflow: visible;
}

.account-page #memberWardrobeDialog .outfit-wardrobe-experience .outfit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 10px;
  min-height: 0;
  padding: 8px 0 16px;
}

.account-page #memberWardrobeDialog .outfit-wardrobe-experience .outfit-choice {
  min-height: 138px;
  align-content: start;
  gap: 10px;
  padding: 18px 6px 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.account-page #memberWardrobeDialog .outfit-wardrobe-experience .outfit-choice.selected {
  background: var(--accent-light);
  border-color: var(--accent);
  box-shadow: 0 5px 14px rgba(216, 90, 48, 0.16);
}

.account-page #memberWardrobeDialog .outfit-wardrobe-experience .outfit-choice-icon {
  width: 68px;
  height: 68px;
  background: #fbf8f6;
  border-radius: 12px;
}

.account-page #memberWardrobeDialog .outfit-wardrobe-experience .outfit-choice[data-wardrobe-item=""] .outfit-choice-icon {
  color: var(--accent);
  font-size: 20px;
  font-weight: 900;
}

.sparrow-wardrobe-page #memberWardrobeDialog .outfit-wardrobe-experience .outfit-choice[data-accessory-item=""] .outfit-choice-icon {
  color: var(--accent);
  font-size: 20px;
  font-weight: 900;
}

.account-page #memberWardrobeDialog .outfit-wardrobe-experience .outfit-choice strong {
  font-size: 14px;
  line-height: 1.25;
}

.account-page #memberWardrobeDialog .outfit-wardrobe-experience .outfit-choice > small {
  display: none;
}

@media (max-width: 430px) {
  .account-page #memberWardrobeDialog .outfit-wardrobe-experience .outfit-wardrobe-tray {
    min-height: 435px;
  }

  .account-page #memberWardrobeDialog .outfit-wardrobe-experience .outfit-grid {
    gap: 8px;
  }
}

/* Standalone sparrow wardrobe: visually matches the account wardrobe while
   keeping the shop try-on page and its state completely separate. */
.sparrow-wardrobe-page {
  display: grid;
  place-items: center;
  margin: 0;
  background: #d9dde3;
}

.sparrow-wardrobe-shell {
  position: relative;
  width: min(100vw, 430px);
  height: min(100dvh, 760px);
  max-height: 760px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 46px rgba(28, 38, 54, 0.22);
}

.sparrow-wardrobe-page #memberWardrobeDialog .outfit-wardrobe-experience {
  height: 100%;
}

.sparrow-wardrobe-page #memberWardrobeDialog .wardrobe-empty-stage {
  pointer-events: none;
}

.sparrow-wardrobe-page #memberWardrobeDialog .account-wardrobe-top-actions {
  top: calc(14px + env(safe-area-inset-top));
  right: 16px;
  left: 16px;
}

.sparrow-wardrobe-page #memberWardrobeDialog .account-wardrobe-top-actions button {
  min-height: 40px;
  color: #fff;
  background: rgba(173, 82, 42, .38);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 14px rgba(102, 49, 27, .17);
  text-shadow: 0 1px 3px rgba(92, 43, 23, .34);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.sparrow-wardrobe-page #memberWardrobeDialog .account-wardrobe-top-actions .sparrow-avatar-save-button {
  display: inline-flex;
  width: 40px;
  min-width: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.sparrow-wardrobe-page #memberWardrobeDialog .sparrow-avatar-save-button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.sparrow-wardrobe-page #memberWardrobeDialog .sparrow-wardrobe-preview .sparrow-wardrobe-apply-button {
  position: absolute;
  z-index: 4;
  right: 16px;
  bottom: 22px;
  min-height: 40px;
  color: #fff;
  background: rgba(173, 82, 42, .38);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 14px rgba(102, 49, 27, .17);
  text-shadow: 0 1px 3px rgba(92, 43, 23, .34);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.sparrow-wardrobe-page #memberWardrobeDialog .account-wardrobe-top-actions button.account-wardrobe-back-button {
  color: #fff;
  background: rgba(173, 82, 42, .38);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 14px rgba(102, 49, 27, .17);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sparrow-wardrobe-page #memberWardrobeDialog .account-wardrobe-back-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  transform: none;
}

.sparrow-wardrobe-page #memberWardrobeDialog .account-wardrobe-back-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.sparrow-wardrobe-page #memberWardrobeDialog .account-wardrobe-save-button {
  min-width: 76px;
  min-height: 40px;
  padding: 0 16px;
}

@media (hover: hover) {
  .sparrow-wardrobe-page #memberWardrobeDialog .account-wardrobe-top-actions button:not(:disabled):hover {
    background: rgba(173, 82, 42, .54);
    border-color: rgba(255, 255, 255, 0.42);
    transform: translateY(-1px);
  }
}

.sparrow-wardrobe-page #memberWardrobeDialog .account-wardrobe-top-actions button:not(:disabled):active {
  background: rgba(173, 82, 42, .6);
  transform: scale(.96);
}

.sparrow-wardrobe-page #memberWardrobeDialog .account-wardrobe-top-actions button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.88);
  outline-offset: 2px;
}

.sparrow-wardrobe-page #memberWardrobeDialog .account-wardrobe-top-actions button:disabled {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(173, 82, 42, .25);
  cursor: wait;
}

@media (prefers-reduced-motion: reduce) {
  .sparrow-wardrobe-page #memberWardrobeDialog .account-wardrobe-top-actions button {
    transition: none;
  }
}

.sparrow-wardrobe-page #memberWardrobeDialog .sparrow-wardrobe-tray {
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 90, 48, 0.42) transparent;
}

.first-quest-wardrobe-guide-dialog {
  width: min(88vw, 360px);
  padding: 0;
  overflow: hidden;
  color: #4e3022;
  background: #fffaf7;
  border: 1px solid #f1bea5;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(61, 33, 21, .3);
}
.first-quest-wardrobe-guide-dialog::backdrop { background: rgba(42, 27, 20, .52); backdrop-filter: blur(3px); }
.first-quest-wardrobe-guide-dialog > section { display: grid; gap: 10px; padding: 24px 21px 21px; }
.first-quest-wardrobe-guide-dialog p,
.first-quest-wardrobe-guide-dialog h2 { margin: 0; }
.first-quest-wardrobe-guide-kicker { color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.first-quest-wardrobe-guide-dialog h2 { color: #63341f; font-size: 22px; line-height: 1.25; }
.first-quest-wardrobe-guide-dialog > section > p:not(.first-quest-wardrobe-guide-kicker) { color: #725a4d; font-size: 13px; line-height: 1.62; }
.first-quest-wardrobe-guide-dialog ol { display: grid; gap: 8px; margin: 3px 0 2px; padding: 0; list-style: none; }
.first-quest-wardrobe-guide-dialog li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; align-items: center; color: #6c5144; font-size: 12px; line-height: 1.38; }
.first-quest-wardrobe-guide-dialog li > span { display: grid; width: 24px; height: 24px; place-items: center; color: #9b5a36; font-size: 11px; font-weight: 900; background: #fff; border: 1px solid #ecc1ad; border-radius: 50%; }
.first-quest-wardrobe-guide-dialog li.is-current { color: #73391f; }
.first-quest-wardrobe-guide-dialog li.is-current > span { color: #fff; background: var(--accent); border-color: var(--accent); }
.first-quest-wardrobe-guide-dialog [data-first-quest-guide-close] { min-height: 44px; margin-top: 4px; color: #fff; font: inherit; font-size: 14px; font-weight: 900; background: #e86f24; border: 1px solid #e86f24; border-radius: 999px; cursor: pointer; box-shadow: 0 7px 16px rgba(203, 82, 25, .24); }
.sparrow-wardrobe-page #memberWardrobeDialog .account-wardrobe-save-button.is-first-quest-save { position: relative; display: inline-flex; align-items: center; gap: 6px; padding-left: 22px; color: #fff; text-shadow: none; background: #e86f24; border-color: #ffd2af; box-shadow: 0 0 0 3px rgba(255, 126, 42, .4), 0 0 18px rgba(255, 116, 21, .95), 0 4px 14px rgba(102, 49, 27, .28); animation: firstQuestSaveGuidePulse 1.1s ease-in-out infinite; }
.sparrow-wardrobe-page #memberWardrobeDialog .account-wardrobe-save-button.is-first-quest-save::before { content: ""; width: 8px; height: 8px; flex: 0 0 8px; background: #ffcc4d; border: 1px solid #fff2be; border-radius: 50%; box-shadow: 0 0 7px 2px #ffd35e; animation: firstQuestOrangeLamp .72s ease-in-out infinite alternate; }

@keyframes firstQuestSaveGuidePulse {
  50% { box-shadow: 0 0 0 6px rgba(255, 126, 42, .12), 0 0 26px rgba(255, 116, 21, 1), 0 4px 14px rgba(102, 49, 27, .28); }
}
@keyframes firstQuestOrangeLamp { to { opacity: .45; transform: scale(.8); } }

@media (prefers-reduced-motion: reduce) {
  .sparrow-wardrobe-page #memberWardrobeDialog .account-wardrobe-save-button.is-first-quest-save,
  .sparrow-wardrobe-page #memberWardrobeDialog .account-wardrobe-save-button.is-first-quest-save::before { animation: none; }
}

.sparrow-wardrobe-preview {
  position: relative;
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.sparrow-wardrobe-preview > .outfit-stage-zone {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.sparrow-roster-order-launcher {
  position: absolute;
  z-index: 3;
  left: 16px;
  bottom: 22px;
  display: grid;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  color: #fff;
  place-items: center;
  background: rgba(173, 82, 42, .38);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(102, 49, 27, .17);
  text-shadow: 0 1px 3px rgba(92, 43, 23, .34);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.sparrow-roster-order-launcher > span {
  display: grid;
  gap: 2px;
}

.sparrow-roster-order-launcher i {
  display: flex;
  align-items: center;
  gap: 3px;
  color: currentColor;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.sparrow-roster-order-launcher i::after {
  width: 13px;
  height: 2px;
  content: "";
  background: currentColor;
  border-radius: 999px;
}

@media (hover: hover) {
  .sparrow-roster-order-launcher:hover,
  .sparrow-wardrobe-page #memberWardrobeDialog .sparrow-wardrobe-preview .sparrow-wardrobe-apply-button:hover {
    background: rgba(173, 82, 42, .54);
    border-color: rgba(255, 255, 255, .42);
    transform: translateY(-1px);
  }
}

.sparrow-roster-order-launcher:active {
  background: rgba(173, 82, 42, .6);
  transform: scale(.96);
}

.sparrow-wardrobe-page #memberWardrobeDialog .sparrow-wardrobe-preview .sparrow-wardrobe-apply-button:active {
  background: rgba(173, 82, 42, .6);
  transform: scale(.96);
}

.sparrow-roster-order-launcher:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .88);
  outline-offset: 2px;
}

.sparrow-wardrobe-page #memberWardrobeDialog .sparrow-wardrobe-preview .sparrow-wardrobe-apply-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .88);
  outline-offset: 2px;
}

.sparrow-wardrobe-page #memberWardrobeDialog .sparrow-wardrobe-preview .sparrow-wardrobe-apply-button:disabled {
  color: rgba(255, 255, 255, .72);
  background: rgba(173, 82, 42, .25);
  cursor: wait;
}

@media (prefers-reduced-motion: reduce) {
  .sparrow-roster-order-launcher,
  .sparrow-wardrobe-page #memberWardrobeDialog .sparrow-wardrobe-preview .sparrow-wardrobe-apply-button {
    transition: none;
  }
}

.sparrow-wardrobe-roster {
  display: grid;
  gap: 22px;
  padding: 4px 0 24px;
}

.sparrow-wardrobe-roster-section {
  display: grid;
  gap: 8px;
}

.sparrow-wardrobe-roster-section.is-standby {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.sparrow-wardrobe-roster-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
}

.sparrow-wardrobe-roster-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.sparrow-wardrobe-roster-heading span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  background: var(--accent-light);
  border-radius: 999px;
}

.account-page #memberWardrobeDialog .outfit-wardrobe-experience .sparrow-wardrobe-bird-grid {
  padding-top: 2px;
}

.account-page #memberWardrobeDialog .outfit-wardrobe-experience .sparrow-wardrobe-bird-card {
  position: relative;
  grid-template-rows: 72px auto;
  min-height: 120px;
  align-content: start;
  gap: 5px;
  padding: 12px 6px 8px;
  cursor: default;
}

.sparrow-wardrobe-bird-select,
.sparrow-wardrobe-bird-name {
  display: grid;
  min-width: 0;
  padding: 0;
  color: inherit;
  place-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.sparrow-wardrobe-bird-select {
  width: 100%;
  height: 72px;
}

.sparrow-wardrobe-bird-select .outfit-choice-icon {
  width: 68px;
  height: 68px;
}

.sparrow-wardrobe-bird-name-row {
  display: block;
  width: 100%;
  min-width: 0;
}

.sparrow-wardrobe-bird-name {
  width: 100%;
  justify-items: center;
  overflow: hidden;
  text-align: center;
}

.sparrow-wardrobe-bird-name strong {
  display: block;
  width: 100%;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sparrow-wardrobe-roster-edit {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
  color: var(--accent);
  place-items: center;
  background: #fff;
  border: 1px solid var(--accent-mid);
  border-radius: 50%;
  cursor: pointer;
}

.sparrow-wardrobe-roster-edit svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sparrow-wardrobe-section-empty {
  display: grid;
  grid-column: 1 / -1;
  min-height: 86px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
  place-items: center;
}

.sparrow-roster-action-dialog {
  width: min(88vw, 340px);
  max-width: 340px;
  padding: 0;
  overflow: visible;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.sparrow-roster-action-dialog::backdrop {
  background: rgba(20, 28, 40, 0.46);
  backdrop-filter: blur(2px);
}

.sparrow-roster-action-dialog > section {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 24px 22px 22px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(28, 38, 54, 0.24);
}

.sparrow-roster-action-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--ink-soft);
  font-size: 24px;
  background: #f4f6f8;
  border: 0;
  border-radius: 50%;
  place-items: center;
  cursor: pointer;
}

.sparrow-roster-action-preview {
  display: grid;
  width: 150px;
  height: 150px;
  margin-top: 4px;
  place-items: center;
  background: var(--accent-light);
  border-radius: 50%;
}

.sparrow-roster-action-preview .account-sparrow-thumb {
  width: 126px;
  height: 126px;
}

.sparrow-roster-action-dialog p,
.sparrow-roster-action-dialog h2,
.sparrow-roster-action-dialog small {
  margin: 0;
}

.sparrow-roster-order-dialog {
  width: min(100vw, 430px);
  max-width: 430px;
  max-height: min(78dvh, 640px);
  margin: auto auto 0;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -12px 38px rgba(28, 38, 54, .2);
}

.sparrow-roster-order-dialog::backdrop {
  background: rgba(20, 28, 40, .42);
  backdrop-filter: blur(2px);
}

.sparrow-roster-order-dialog > section {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  max-height: min(78dvh, 640px);
  padding: 20px 18px max(18px, env(safe-area-inset-bottom));
}

.sparrow-roster-order-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sparrow-roster-order-dialog header p,
.sparrow-roster-order-dialog header h2,
.sparrow-roster-order-hint {
  margin: 0;
}

.sparrow-roster-order-dialog header p {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.sparrow-roster-order-dialog header h2 {
  margin-top: 2px;
  font-size: 22px;
}

.sparrow-roster-order-dialog header > button {
  display: grid;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  color: var(--ink-soft);
  font-size: 24px;
  background: #f4f6f8;
  border: 0;
  border-radius: 50%;
  place-items: center;
  cursor: pointer;
}

.sparrow-roster-order-hint {
  padding: 8px 0 12px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
}

.sparrow-roster-order-hint span {
  color: var(--accent);
  font-size: 11px;
}

.sparrow-roster-order-list {
  display: grid;
  gap: 8px;
  min-height: 0;
  padding: 2px 1px 12px;
  overflow-y: auto;
}

.sparrow-roster-order-list.is-dragging {
  cursor: grabbing;
}

.sparrow-roster-order-item {
  display: grid;
  grid-template-columns: 30px 54px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 1px 9px;
  min-height: 66px;
  align-items: center;
  padding: 6px 8px;
  background: #fbf8f6;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform .16s ease, opacity .16s ease, box-shadow .16s ease;
  user-select: none;
}

.sparrow-roster-order-item.is-dragging {
  position: relative;
  z-index: 2;
  opacity: .82;
  transform: scale(1.015);
  box-shadow: 0 10px 24px rgba(77, 51, 32, .16);
}

.sparrow-roster-order-rank {
  display: grid;
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: var(--accent);
  border-radius: 50%;
  place-items: center;
}

.sparrow-roster-order-thumb {
  display: grid;
  grid-row: 1 / 3;
  width: 54px;
  height: 54px;
  overflow: hidden;
  place-items: center;
  background: #fff;
  border-radius: 13px;
}

.sparrow-roster-order-thumb .account-sparrow-thumb {
  width: 50px;
  height: 50px;
}

.sparrow-roster-order-item > strong {
  align-self: end;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sparrow-roster-order-item > small {
  align-self: start;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
}

.sparrow-roster-order-actions {
  display: flex;
  grid-column: 4;
  grid-row: 1 / 3;
  gap: 5px;
}

.sparrow-roster-order-actions button {
  display: grid;
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  color: var(--accent);
  font-size: 16px;
  font-weight: 900;
  background: #fff;
  border: 1px solid var(--accent-mid);
  border-radius: 10px;
  place-items: center;
  cursor: pointer;
}

.sparrow-roster-order-actions .sparrow-roster-order-drag {
  color: var(--ink-soft);
  font-size: 18px;
  letter-spacing: -3px;
  border-color: transparent;
  background: transparent;
  cursor: grab;
  touch-action: none;
}

.sparrow-roster-order-actions .sparrow-roster-order-drag:active {
  cursor: grabbing;
}

.sparrow-roster-order-actions .sparrow-roster-order-drag:focus-visible {
  outline: 3px solid rgba(232, 91, 42, .28);
  outline-offset: 1px;
}

.sparrow-roster-order-actions button:disabled {
  color: #c8c0b7;
  border-color: #e5ded6;
  cursor: default;
}

.sparrow-roster-order-dialog footer {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.sparrow-roster-order-dialog footer button {
  min-height: 44px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 900;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.sparrow-roster-order-dialog footer [data-roster-order-save] {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.sparrow-roster-order-dialog footer button:disabled {
  opacity: .6;
  cursor: wait;
}

.sparrow-roster-action-dialog p {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.sparrow-roster-action-dialog h2 {
  font-size: 21px;
}

.sparrow-roster-action-confirm {
  min-height: 44px;
  margin-top: 6px;
  padding: 0 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
}

.sparrow-roster-action-confirm:disabled {
  color: #7f8791;
  background: #eceff2;
  border-color: #d9dee4;
  cursor: not-allowed;
}

.sparrow-roster-action-dialog small {
  min-height: 18px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
}

.sparrow-wardrobe-load-error {
  display: grid;
  height: 100%;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  color: var(--ink);
  text-align: center;
  background: #fff;
}

.sparrow-wardrobe-load-error p {
  margin: 0;
  color: var(--ink-soft);
}

.sparrow-wardrobe-load-error a {
  padding: 10px 18px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  background: var(--accent);
  border-radius: 999px;
}

@media (max-width: 430px) {
  .sparrow-wardrobe-shell {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    box-shadow: none;
  }
}

@media (max-height: 700px) {
  .sparrow-wardrobe-page #memberWardrobeDialog .outfit-stage-zone {
    min-height: 240px;
  }

  .sparrow-wardrobe-page #memberWardrobeDialog .outfit-wardrobe-experience .outfit-wardrobe-tray {
    flex-basis: 52dvh;
    height: 52dvh;
    min-height: 300px;
  }
}

.member-profile-avatar {
  overflow: hidden;
  padding: 0;
}

.member-content-avatar {
  overflow: hidden;
  padding: 0;
  color: transparent;
  background: transparent;
}

.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;
}

.account-oauth-actions {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}

.account-oauth-actions p,
.account-oauth-settings p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* Referral activity */
.referral-page {
  min-height: 100dvh;
  height: auto;
  overflow-y: auto;
  color: var(--ink);
  background: #faf5f6;
}

.referral-page-shell {
  width: min(640px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 16px 16px calc(32px + env(safe-area-inset-bottom));
}

.referral-page-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 18px;
}

.referral-page-header h1,
.referral-card h2,
.referral-card p {
  margin: 0;
}

.referral-page-header h1 {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.referral-page-header p,
.referral-muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.referral-back-link {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: 0;
  background: transparent;
}

.referral-card {
  display: grid;
  gap: 14px;
  margin: 0 0 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.referral-share-card {
  grid-template-columns: minmax(0, 1fr) 156px;
  grid-template-areas: "copy art";
  column-gap: 8px;
  border-color: var(--accent-mid);
  background: linear-gradient(135deg, var(--accent-light), #fff 66%);
}

.referral-share-card > div:first-child {
  grid-area: copy;
  display: grid;
  align-content: start;
  align-self: center;
  gap: 4px;
}

.referral-share-card strong {
  color: var(--ink);
  font-size: 18px;
}

.referral-share-card > div:first-child > strong,
.referral-share-card > div:first-child > .referral-share-reward {
  padding-left: 6px;
}

.referral-kicker {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
}

.referral-share-reward {
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}

.referral-share-art-wrap {
  grid-area: art;
  position: relative;
  display: grid;
  width: 156px;
  height: 168px;
  align-self: center;
  justify-self: end;
  overflow: hidden;
  place-items: center;
  border-radius: 46% 54% 48% 52% / 54% 46% 54% 46%;
  background: radial-gradient(circle at 50% 46%, #fffdf6 0 34%, #fce1d4 35% 59%, rgba(253, 232, 222, 0.3) 60% 100%);
}

.referral-share-art-wrap::before {
  position: absolute;
  width: 128px;
  height: 128px;
  content: "";
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(205, 103, 57, 0.12);
}

.referral-share-art {
  position: relative;
  z-index: 1;
  width: 156px;
  height: 168px;
  object-fit: contain;
  object-position: center bottom;
}

.referral-copy-link {
  display: inline-flex;
  width: fit-content;
  min-width: 158px;
  justify-self: start;
  margin-top: 6px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  padding: 0 16px;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.01em;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--accent);
  box-shadow: 0 4px 14px rgba(216, 90, 48, 0.25);
}

.referral-copy-link:hover {
  background: var(--accent-strong);
}

.referral-copy-link:active {
  transform: scale(0.98);
}

.referral-copy-link:focus-visible {
  outline: 3px solid rgba(216, 90, 48, 0.42);
  outline-offset: 3px;
}

.referral-copy-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.referral-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 0 0 14px;
}

.referral-summary-grid article {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  text-align: center;
}

.referral-summary-grid strong {
  color: var(--accent);
  font-size: 23px;
}

.referral-summary-grid span {
  color: var(--muted);
  font-size: 12px;
}

.referral-milestones-card h2,
.referral-rules-card h2 {
  color: var(--ink);
  font-size: 18px;
}

.referral-milestone-list {
  display: grid;
  gap: 9px;
}

.referral-milestone {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fffdfc;
}

.referral-milestone.is-reached {
  border-color: var(--accent-mid);
  background: var(--accent-light);
}

.referral-milestone-reward {
  display: grid;
  justify-items: center;
}

.referral-reward-value {
  width: 100%;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.referral-milestone-main {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.referral-milestone-task {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.referral-progress {
  position: relative;
  display: grid;
  height: 16px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #efd6ce;
  border-radius: 999px;
  background: #f6ebe7;
}

.referral-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--referral-progress, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #f5aa76, #ea8451);
  transition: width 180ms ease;
}

.referral-progress strong {
  position: relative;
  z-index: 1;
  color: #704135;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-shadow: 0 1px rgba(255, 255, 255, 0.75);
}

.referral-reward-image {
  display: grid;
  width: 62px;
  height: 68px;
  flex: 0 0 62px;
  grid-template-rows: 46px minmax(14px, auto);
  overflow: visible;
  place-items: center;
  padding: 3px 2px 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

button.referral-reward-image {
  appearance: none;
  cursor: pointer;
  font: inherit;
}

.referral-reward-trigger:hover {
  border-color: var(--accent-mid);
  transform: translateY(-1px);
}

.referral-reward-trigger:focus-visible {
  outline: 3px solid rgba(216, 90, 48, 0.24);
  outline-offset: 2px;
}

.referral-reward-image.is-coin {
  position: relative;
  height: 62px;
  grid-template-rows: 1fr;
  padding: 0;
  background: #fff9e9;
  border-color: #f0dda6;
}

.referral-reward-image.is-coin .referral-reward-art {
  width: 54px;
  height: 54px;
}

.referral-reward-image.is-coin .referral-reward-art > img {
  width: 54px;
  height: 54px;
}

.referral-reward-image.is-coin .referral-reward-value {
  position: absolute;
  z-index: 2;
  bottom: 1px;
  left: 50%;
  width: max-content;
  min-width: 24px;
  padding: 0 3px;
  color: #6b4520;
  font-size: 11px;
  line-height: 1.25;
  background: transparent;
  text-shadow: 0 1px rgba(255, 255, 255, 0.75);
  transform: translateX(-50%);
}

.referral-reward-art {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
}

.referral-reward-art > img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.referral-reward-image.is-accessory .referral-reward-art {
  width: 58px;
  height: 58px;
  transform: scale(1.08);
}

.referral-reward-image.is-accessory {
  position: relative;
  height: 62px;
  grid-template-rows: 1fr;
  padding: 0;
  border-color: #ecd49c;
  box-shadow: 0 3px 10px rgba(222, 151, 52, 0.14);
  isolation: isolate;
}

@property --referral-accessory-shimmer-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.referral-reward-image.is-accessory::before,
.referral-reward-image.is-accessory::after {
  position: absolute;
  z-index: 4;
  inset: 0;
  padding: 2px;
  content: "";
  pointer-events: none;
  border-radius: inherit;
  background: conic-gradient(
    from var(--referral-accessory-shimmer-angle),
    transparent 0deg 4deg,
    rgba(255, 247, 189, 0.74) 11deg,
    #fff7bd 19deg,
    #ef9a34 31deg,
    #fff7bd 43deg,
    rgba(255, 247, 189, 0.74) 51deg,
    transparent 59deg 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  filter: drop-shadow(0 0 4px rgba(239, 154, 52, 0.82));
  animation: referral-accessory-border-shimmer 4s linear infinite;
}

.referral-reward-image.is-accessory::after {
  animation-delay: -2s;
}

.referral-reward-image.is-accessory .referral-reward-art {
  position: relative;
  z-index: 3;
}

@keyframes referral-accessory-border-shimmer {
  to {
    --referral-accessory-shimmer-angle: 360deg;
  }
}

/* Public sparrow garden — read-only visitor view */
.public-sparrow-garden-page {
  background: #d9c0ae;
}

.public-sparrow-garden-shell {
  isolation: isolate;
}

.public-sparrow-garden-header {
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.public-sparrow-garden-heading {
  min-width: 0;
}

.public-sparrow-garden-heading span {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.public-sparrow-garden-heading h1 {
  margin: 0;
  overflow: hidden;
  font-size: 19px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-sparrow-garden-readonly {
  display: inline-flex;
  min-height: 28px;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  background: rgba(83, 46, 29, .28);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
}

.public-sparrow-garden-scene {
  background:
    radial-gradient(circle at 72% 17%, rgba(255, 250, 190, .9) 0 4%, rgba(255, 250, 190, .14) 12%, transparent 24%),
    linear-gradient(180deg, #92d7db, #cde9d4 50%, #75b96f 100%);
}

.public-sparrow-garden-birds {
  inset: 94px 0 132px;
}

.public-sparrow-garden-bird {
  cursor: default;
  pointer-events: none;
}

.public-sparrow-garden-bird-name {
  position: absolute;
  bottom: -13px;
  left: 50%;
  z-index: 4;
  display: inline-flex;
  max-width: 116px;
  min-height: 22px;
  padding: 2px 7px 2px 4px;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  color: #56382b;
  background: rgba(255, 250, 241, .9);
  border: 1px solid rgba(122, 76, 49, .28);
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(88, 49, 31, .16);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateX(-50%);
}

.public-sparrow-garden-bird-name em {
  display: inline-grid;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: #c46f47;
  border-radius: 50%;
  font-size: 10px;
  font-style: normal;
}

.public-sparrow-garden-summary {
  position: absolute;
  right: 14px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  left: 14px;
  z-index: 24;
  display: grid;
  gap: 3px;
  padding: 13px 15px;
  color: #55382b;
  background: rgba(255, 250, 243, .9);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(83, 47, 30, .18);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.public-sparrow-garden-summary strong {
  font-size: 15px;
  font-weight: 950;
}

.public-sparrow-garden-summary span {
  color: #8a6555;
  font-size: 12px;
  line-height: 1.45;
}

.public-sparrow-garden-load-card,
.public-sparrow-garden-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 15;
  display: grid;
  width: min(82%, 330px);
  gap: 6px;
  padding: 16px 18px;
  place-items: center;
  color: #fff;
  background: rgba(126, 68, 42, .68);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(81, 43, 28, .2);
  font-size: 14px;
  text-align: center;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(9px);
}

.public-sparrow-garden-empty strong {
  font-size: 16px;
}

.public-sparrow-garden-empty span {
  font-size: 13px;
  line-height: 1.55;
}

@media (min-width: 680px) {
  .public-sparrow-garden-birds {
    inset-bottom: 142px;
  }
}

/* Public gardens use the same field, depth, bird scale, and action bar as the
   owner's garden. Only state-changing controls are disabled for visitors. */
.public-sparrow-garden-page .public-sparrow-garden-birds {
  inset: 88px 0 112px;
}

.public-sparrow-garden-page .public-sparrow-garden-bird {
  cursor: default;
  pointer-events: auto;
}

.public-sparrow-garden-page .public-sparrow-garden-bird .sparrow-garden-bird-hit {
  cursor: pointer;
}

.public-sparrow-garden-page .public-sparrow-garden-actions button:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.public-sparrow-garden-page .public-sparrow-garden-actions button:disabled:hover,
.public-sparrow-garden-page .public-sparrow-garden-actions button:disabled:active {
  background: var(--sparrow-theme-glass);
  border-color: rgba(255, 255, 255, .28);
  transform: none;
}

.public-sparrow-garden-bird-dialog .sparrow-bird-details-preview {
  margin: 18px auto 14px;
}

.public-sparrow-garden-bird-description {
  margin: 10px 0 2px;
  color: #8a6555;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

/* The public route now uses sparrow-garden.html itself. Keep its complete
   layout while making every owner-only control visibly unavailable. */
.sparrow-garden-page.is-public-garden-visitor #gardenAssetBalances,
.sparrow-garden-page.is-public-garden-visitor .sparrow-garden-header-button:disabled,
.sparrow-garden-page.is-public-garden-visitor .sparrow-garden-actions button:disabled,
.sparrow-garden-page.is-public-garden-visitor .sparrow-garden-slipper-tool:disabled {
  pointer-events: none;
  cursor: not-allowed;
  opacity: .58;
}

.sparrow-garden-page.is-public-garden-visitor .sparrow-garden-bird-hit {
  cursor: default;
}

.sparrow-garden-page.is-public-garden-visitor .sparrow-garden-actions button:disabled:hover,
.sparrow-garden-page.is-public-garden-visitor .sparrow-garden-actions button:disabled:active {
  background: var(--sparrow-theme-glass);
  border-color: rgba(255, 255, 255, .28);
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .referral-reward-image.is-accessory::before,
  .referral-reward-image.is-accessory::after {
    animation: none;
  }
}

.referral-sparrow-reward-preview {
  position: relative;
  display: block;
  width: 46px;
  height: 46px;
}

.referral-sparrow-reward-preview img {
  position: absolute;
  inset: 0;
  z-index: var(--referral-reward-layer, 0);
  display: block;
  width: 46px !important;
  height: 46px !important;
  object-fit: contain;
  pointer-events: none;
}

.referral-sparrow-reward-preview img:nth-child(2) {
  --referral-reward-layer: 35;
}

.referral-reward-dialog {
  width: min(360px, calc(100vw - 32px));
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 20px;
  background: transparent;
  box-shadow: 0 22px 70px rgba(71, 44, 33, 0.28);
}

.referral-reward-dialog::backdrop {
  background: rgba(36, 22, 25, 0.46);
  backdrop-filter: blur(2px);
}

.referral-reward-dialog-panel {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 24px 24px 26px;
  border: 1px solid #f0ded7;
  border-radius: inherit;
  background: #fffdfc;
  text-align: center;
}

.referral-reward-dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.outfit-choice.is-unavailable,
.outfit-choice:disabled {
  cursor: not-allowed;
  opacity: 1;
}

.outfit-choice.is-unavailable .outfit-choice-icon,
.outfit-choice.is-unavailable strong,
.outfit-choice:disabled .outfit-choice-icon,
.outfit-choice:disabled strong {
  opacity: 0.46;
  filter: grayscale(0.7);
}

.sparrow-wardrobe-equipped-check,
.sparrow-wardrobe-available-count {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  box-shadow: 0 2px 7px rgba(55, 40, 18, 0.2);
}

.sparrow-wardrobe-equipped-check {
  top: 4px;
  right: 6px;
  width: auto;
  height: auto;
  color: #f28c28;
  font-size: 22px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.sparrow-wardrobe-available-count {
  right: -6px;
  bottom: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 10px;
  background: rgba(48, 61, 75, 0.9);
  border-radius: 999px;
}

.sparrow-rarity-dot.sparrow-wardrobe-rarity-dot {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 3;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin: 0;
  border: 0;
  box-shadow: none;
  pointer-events: none;
}

.referral-reward-dialog-close:hover,
.referral-reward-dialog-close:focus-visible {
  color: var(--accent-strong);
  background: var(--accent-light);
  outline: none;
}

.referral-reward-dialog-art {
  display: grid;
  width: 212px;
  height: 190px;
  margin: 4px 0 16px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #eee0db;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff9f4, #f8eeee);
}

.referral-reward-dialog-art.is-coin {
  background: radial-gradient(circle at 50% 42%, #fffefa 0 28%, #fff2c9 72%, #f8e4b4 100%);
}

.referral-reward-dialog-art.is-coin > img {
  display: block;
  width: 146px;
  height: 146px;
  object-fit: contain;
}

.referral-reward-dialog-art.is-accessory .referral-sparrow-reward-preview {
  width: 156px;
  height: 156px;
}

.referral-reward-dialog-art.is-accessory .referral-sparrow-reward-preview img {
  width: 156px !important;
  height: 156px !important;
}

.referral-reward-dialog-panel > p {
  margin: 0 0 4px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.referral-reward-dialog-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
}

.referral-reward-result-dialog {
  width: min(340px, calc(100vw - 32px));
}

.referral-reward-result-art {
  display: grid;
  width: 190px;
  height: 190px;
  margin: 2px 0;
  place-items: center;
}

.referral-reward-result-art.is-coin > img {
  width: 158px;
  height: 158px;
}

.referral-reward-result-art.is-accessory .referral-sparrow-reward-preview {
  width: 190px;
  height: 190px;
}

.referral-reward-result-art.is-accessory .referral-sparrow-reward-preview img {
  width: 190px !important;
  height: 190px !important;
}

.referral-status-button {
  min-width: 72px;
  min-height: 34px;
  padding: 0 9px;
  color: #a96049;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  border: 1px solid #e5b7a9;
  border-radius: 10px;
  background: #f5dfd8;
}

.referral-status-button:disabled {
  cursor: default;
  opacity: 1;
}

.referral-status-button.is-claimable {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 3px 8px rgba(216, 90, 48, 0.2);
}

.referral-status-button.is-claimed,
.referral-status-button.is-locked,
.referral-status-button.is-pending_review,
.referral-status-button.is-void {
  color: #a96049;
  border-color: #e5b7a9;
  background: #f5dfd8;
}

.referral-status-button.is-pending_review {
  color: #95632e;
  border-color: #ecd6ad;
  background: #faf0dc;
}

.referral-status-button.is-void {
  color: #8f7b76;
  border-color: #ded2ce;
  background: #f1ecea;
}

.referral-status {
  flex: 0 0 auto;
}

.referral-rules-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.referral-error-card {
  margin-top: 80px;
  text-align: center;
}

@media (max-width: 460px) {
  .referral-summary-grid {
    gap: 6px;
  }

  .referral-summary-grid article {
    padding-inline: 6px;
  }

  .referral-page-shell {
    padding-inline: 12px;
  }

  .referral-card {
    padding: 14px;
  }

  .referral-share-card {
    grid-template-columns: minmax(0, 1fr) 140px;
    column-gap: 8px;
  }

  .referral-share-art-wrap,
  .referral-share-art {
    width: 140px;
    height: 152px;
  }

  .referral-share-art-wrap::before {
    width: 114px;
    height: 114px;
  }

  .referral-share-card strong {
    font-size: 16px;
  }

  .referral-share-reward {
    font-size: 13px;
  }

  .referral-milestone {
    grid-template-columns: 54px minmax(0, 1fr) max-content;
    gap: 8px;
    padding: 10px;
  }

  .referral-reward-image {
    width: 54px;
    height: 58px;
    flex-basis: 54px;
    grid-template-rows: 38px minmax(14px, auto);
  }

  .referral-reward-image.is-coin,
  .referral-reward-image.is-accessory {
    height: 54px;
  }

  .referral-reward-image.is-coin .referral-reward-art,
  .referral-reward-image.is-coin .referral-reward-art > img {
    width: 48px;
    height: 48px;
  }

  .referral-reward-image.is-accessory .referral-reward-art {
    width: 52px;
    height: 52px;
  }

  .referral-status-button {
    min-width: 64px;
    padding-inline: 7px;
    font-size: 11px;
  }
}

@media (max-width: 370px) {
  .referral-share-card {
    grid-template-columns: minmax(0, 1fr) 110px;
  }

  .referral-share-art-wrap,
  .referral-share-art {
    width: 110px;
    height: 122px;
  }

  .referral-share-art-wrap::before {
    width: 92px;
    height: 92px;
  }

  .referral-share-card strong {
    font-size: 15px;
  }
}

.account-oauth-button {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.account-last-login-method-badge {
  position: absolute;
  top: 50%;
  right: 10px;
  display: inline-flex;
  width: 28px;
  height: 24px;
  align-items: center;
  justify-content: center;
  color: #20242b;
  pointer-events: none;
  transform: translateY(-50%);
}

.account-last-login-method-badge svg {
  display: block;
  width: 26px;
  height: 23px;
}

.account-oauth-icon {
  position: absolute;
  left: 15px;
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.account-oauth-icon-line {
  left: 13px;
  width: 26px;
  height: 26px;
}

.account-oauth-icon-line path[fill="#fff"] {
  display: none;
}

.account-oauth-line-wordmark {
  position: absolute;
  top: 50%;
  left: 13px;
  display: flex;
  width: 26px;
  height: 7px;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 6.4px;
  font-weight: 900;
  letter-spacing: -0.55px;
  line-height: 1;
  transform: translateY(-60%);
}

.account-platform-login-button {
  font-size: 16px;
  font-weight: 700;
}

.account-oauth-platform-icon {
  left: 11px;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.account-local-onboarding-preview {
  padding: 9px 12px;
  color: #7a4a3a;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  background: #fff8f5;
  border: 1px dashed #e6a38e;
  border-radius: 999px;
}

.account-local-onboarding-preview:hover {
  color: #a63e20;
  background: #fff0ea;
}

.account-local-onboarding-preview-card {
  display: grid;
  gap: 14px;
}

.account-local-onboarding-preview-card h1,
.account-local-onboarding-preview-card p {
  margin: 0;
}

.account-local-onboarding-preview-card > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.account-local-onboarding-preview-kicker {
  color: #a63e20;
  font-size: 12px;
  font-weight: 800;
}

.account-local-onboarding-preview-user {
  display: grid;
  gap: 3px;
  padding: 12px;
  background: #fff8f5;
  border-radius: 10px;
}

.account-local-onboarding-preview-user span {
  color: #7a4a3a;
  font-size: 12px;
  font-weight: 700;
}

.account-local-onboarding-preview-user strong {
  color: #141821;
  font-size: 17px;
}

.account-local-onboarding-preview-note,
.account-local-onboarding-preview-success {
  padding: 10px 12px;
  border-radius: 8px;
}

.account-local-onboarding-preview-note {
  color: #5d6472 !important;
  background: #f5f7fa;
}

.account-local-onboarding-preview-success {
  color: #24613b !important;
  background: #eaf7ee;
}

.account-local-onboarding-preview-exit {
  justify-self: start;
  min-height: 38px;
}

.account-platform-login-panel {
  gap: 16px;
}

.account-platform-login-dialog .account-auth-submit {
  width: 100%;
  min-height: 42px;
}

.account-platform-login-dialog .account-register-link {
  justify-self: start;
}

.account-oauth-settings {
  display: grid;
  gap: 10px;
  padding: 14px 12px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.account-oauth-settings h3 {
  margin: 0;
  font-size: 14px;
}

.account-oauth-setting-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.account-oauth-setting-row > span:first-child {
  margin-right: auto;
}

.account-oauth-setting-row .secondary-action {
  min-height: 34px;
  padding: 6px 10px;
  text-decoration: none;
}

.account-oauth-linked {
  color: #27724c !important;
  font-size: 12px;
}

/* -- 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: var(--mobile-fab-right);
    bottom: var(--mobile-fab-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: var(--mobile-fab-right);
    bottom: var(--mobile-fab-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: var(--mobile-fab-right);
  }

  .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 {
    right: 0;
    left: 0;
    width: calc(100vw - 12px);
    height: calc(100dvh - 12px);
    max-height: none;
    margin: 6px auto;
    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: 1320;
    top: 0;
    left: 0;
    right: 0;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    min-height: 56px;
    padding: 8px 108px 8px 4px;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1.5px solid var(--line);
    backdrop-filter: blur(10px);
  }
  .map-rewards-menu-button {
    box-sizing: border-box;
    display: grid;
    flex: 0 0 auto;
    position: relative;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    place-items: center;
    color: #5f6368;
    line-height: 0;
    background: transparent;
    border: 0;
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
  }
  .map-rewards-menu-button:hover,
  .map-rewards-menu-button[aria-expanded="true"] {
    color: var(--accent-strong);
    background: rgba(216, 90, 48, 0.1);
  }
  .map-rewards-menu-button svg {
    display: block;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
  }
  .map-rewards-menu-button:focus-visible {
    outline: 3px solid rgba(216, 90, 48, 0.28);
    outline-offset: 2px;
  }
  .rewards-menu-pending-badge {
    position: absolute;
    top: 6px;
    right: 5px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(116, 47, 22, 0.38);
    pointer-events: none;
    z-index: 2;
  }
  .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;
  }
  .mobile-map-brand .rewards-menu-pending-badge {
    display: block;
  }
  .map-rewards-menu-panel {
    position: fixed;
    z-index: 1410;
    inset: 0 auto 0 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(84vw, 340px);
    height: 100dvh;
    gap: 0;
    padding: max(16px, env(safe-area-inset-top)) 0 max(18px, env(safe-area-inset-bottom));
    overflow-y: auto;
    color: var(--ink);
    background: #fffdfb;
    border: 0;
    border-radius: 0;
    box-shadow: 18px 0 46px rgba(45, 31, 24, 0.28);
    animation: rewardsSideDrawerIn 0.22s ease-out;
  }
  .map-rewards-menu-panel[hidden] {
    display: none;
  }
  .map-rewards-menu-backdrop {
    position: fixed;
    z-index: 1400;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    padding: 0;
    background: rgba(31, 26, 23, 0.4);
    border: 0;
    backdrop-filter: blur(2px);
    animation: rewardsSideDrawerBackdropIn 0.2s ease-out;
  }
  .map-rewards-menu-backdrop[hidden] {
    display: none;
  }
  .map-rewards-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
    padding: 0 18px 0 20px;
    border-bottom: 1px solid #f0e6e1;
  }
  .map-rewards-menu-head h2 {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.25;
  }
  .map-rewards-menu-close {
    display: grid;
    width: 40px;
    height: 40px;
    min-width: 40px;
    place-items: center;
    padding: 0;
    color: #6a5a52;
    background: #fff;
    border: 1px solid #eee3dd;
    border-radius: 50%;
    font: inherit;
    font-size: 28px;
    line-height: 1;
  }
  .map-rewards-menu-items {
    display: grid;
    align-content: start;
    padding: 8px 0;
  }
  .map-rewards-menu-items > button {
    box-sizing: border-box;
    display: grid;
    position: relative;
    gap: 4px;
    width: 100%;
    min-height: 66px;
    padding: 12px 42px 12px 20px;
    color: inherit;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
  }
  .map-rewards-menu-items > button + button {
    border-top: 1px solid #f5ece7;
  }
  .map-rewards-menu-items > button::before {
    content: "›";
    position: absolute;
    top: 50%;
    right: 20px;
    color: #b8a59b;
    font-size: 25px;
    font-weight: 300;
    line-height: 1;
    transform: translateY(-50%);
  }
  .map-rewards-menu-items > button.has-pending-rewards > strong::after {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    background: var(--accent);
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(116, 47, 22, 0.3);
    pointer-events: none;
  }
  .map-rewards-menu-items > button.has-new-collection > strong::after {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    background: var(--accent);
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(116, 47, 22, 0.3);
    pointer-events: none;
  }
  .map-rewards-menu-items > button:hover,
  .map-rewards-menu-items > button:focus-visible {
    background: var(--accent-light);
    outline: none;
  }
  .map-rewards-menu-items > button strong {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.25;
  }
  .map-rewards-menu-items > button span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
  }
  .map-rewards-menu-close:focus-visible,
  .map-rewards-menu-items > button:focus-visible {
    outline: 3px solid rgba(216, 90, 48, 0.28);
    outline-offset: -3px;
  }
  body.rewards-menu-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  @keyframes rewardsSideDrawerIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
  }
  @keyframes rewardsSideDrawerBackdropIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .top-toolbar {
    z-index: 1340;
    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: clamp(128px, 34vw, 144px);
    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: var(--mobile-fab-right);
    bottom: var(--mobile-fab-bottom);
    z-index: 1248;
    display: grid;
    width: var(--mobile-fab-size);
    height: var(--mobile-fab-size);
    min-height: var(--mobile-fab-size);
    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 svg {
    display: block;
    width: var(--mobile-fab-icon-size);
    height: var(--mobile-fab-icon-size);
  }

  .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;
  }

  .location-help-notice {
    z-index: 1249;
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: calc(100vw - 32px);
    padding: 11px 10px 11px 12px;
    transform: translate(-50%, -50%);
  }

  .location-help-notice p {
    font-size: 13px;
  }

  .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="half"],
  .bottom-sheet[data-state="expanded"] {
    z-index: 1360;
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: min(420px, calc(100vw - 24px));
    transform: translate(-50%, -50%);
  }

  .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-x: hidden;
    overflow-y: auto;
    padding: 20px 20px 0;
    overscroll-behavior-x: none;
    overscroll-behavior-y: contain;
    scrollbar-gutter: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    transform: none;
  }

  body:has(#filterDrawer:not([hidden]))
    .top-toolbar
    :is(#locateButton, #submitButton) {
    visibility: hidden;
    pointer-events: 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: 46px minmax(0, 1fr) 46px;
    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: flex;
    flex-wrap: nowrap;
    gap: 6px;
    padding-top: 8px;
    background: #fff;
  }

  .detail-actions button {
    min-width: 0;
    min-height: 36px;
    padding: 0 6px;
    font-size: 13px;
  }
  .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-grant-grid {
    grid-template-columns: 1fr;
  }

  .admin-grant-checkbox-list {
    grid-template-columns: 1fr;
  }

  .admin-grant-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-grant-actions button {
    width: 100%;
  }

  .admin-domain-tabs {
    margin-inline: -4px;
    border-radius: 10px;
  }

  .admin-tabs {
    top: 44px;
    margin-inline: -4px;
    border-radius: 10px;
  }

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

  .admin-workspace-tools {
    grid-template-columns: minmax(0, 1fr) max-content max-content;
    gap: 6px;
    padding: 6px;
  }

  .admin-workspace-tools .admin-tool-search {
    grid-column: auto;
  }

  .admin-workspace-tools select {
    min-width: 72px;
    max-width: 92px;
    padding-inline: 6px;
  }

  .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.is-open .bang-search-row {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .bang-search-disclosure.is-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: 42px minmax(0, 1fr);
    gap: 5px 10px;
    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: var(--mobile-fab-right);
    bottom: var(--mobile-fab-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 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.is-open .deals-search-row {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .deal-search-disclosure.is-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.is-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: var(--mobile-fab-right);
    bottom: var(--mobile-fab-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-content-label textarea,
.bang-composer-dialog .bang-content-label .post-content-editor {
  min-height: 240px;
}

.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: transparent;
}

.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;
}

/* Mobile text entry: prevent iOS focus zoom and keep fixed UI off the keyboard. */
@media (max-width: 900px), (pointer: coarse) {
  textarea,
  select,
  [contenteditable]:not([contenteditable="false"]),
  input:not([type]),
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="color"]):not([type="image"]) {
    font-size: 16px !important;
  }

  .account-change-password-dialog {
    padding: 8px 10px;
  }

  .account-change-password-panel {
    width: min(420px, calc(100vw - 20px));
    max-height: calc(var(--mobile-visual-viewport-height, 100dvh) - 16px);
    max-block-size: calc(var(--mobile-visual-viewport-height, 100dvh) - 16px);
  }

  html.mobile-keyboard-open .account-change-password-dialog[open],
  body.mobile-keyboard-open .account-change-password-dialog[open] {
    height: var(--mobile-visual-viewport-height, 100dvh);
    align-items: center;
  }

  html.mobile-keyboard-open .mobile-bottom-nav,
  body.mobile-keyboard-open .mobile-bottom-nav,
  html.mobile-keyboard-open .bang-write-fab,
  body.mobile-keyboard-open .bang-write-fab,
  html.mobile-keyboard-open .map-list-button,
  body.mobile-keyboard-open .map-list-button,
  html.mobile-keyboard-open .top-toolbar #locateButton,
  body.mobile-keyboard-open .top-toolbar #locateButton,
  html.mobile-keyboard-open .top-toolbar #submitButton,
  body.mobile-keyboard-open .top-toolbar #submitButton,
  html.mobile-keyboard-open .filter-actions,
  body.mobile-keyboard-open .filter-actions,
  html.mobile-keyboard-open .detail-actions,
  body.mobile-keyboard-open .detail-actions,
  html.mobile-keyboard-open .bang-detail-actions,
  body.mobile-keyboard-open .bang-detail-actions,
  html.mobile-keyboard-open .modal-card menu,
  body.mobile-keyboard-open .modal-card menu,
  html.mobile-keyboard-open .account-profile-card-footer,
  body.mobile-keyboard-open .account-profile-card-footer,
  html.mobile-keyboard-open .submission-panel-actions {
    display: none !important;
  }
  body.mobile-keyboard-open .submission-panel-actions {
    display: none !important;
  }

  html.mobile-input-active .submission-panel {
    grid-template-rows: auto minmax(0, 1fr);
  }

  html.mobile-input-active .submission-panel-body {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    scroll-padding-top: 72px;
    scroll-padding-bottom: 24px;
  }

  html.mobile-input-active,
  body.mobile-input-active,
  html.mobile-input-active .modal-card,
  body.mobile-input-active .modal-card,
  html.mobile-input-active .detail-dialog,
  body.mobile-input-active .detail-dialog,
  html.mobile-input-active .submission-panel-body,
  body.mobile-input-active .submission-panel-body,
  html.mobile-input-active .post-content-editor,
  body.mobile-input-active .post-content-editor,
  html.mobile-input-active .account-home-feed,
  body.mobile-input-active .account-home-feed,
  html.mobile-input-active .account-profile-feed,
  body.mobile-input-active .account-profile-feed {
    scroll-padding-top: 72px;
    scroll-padding-bottom: max(88px, calc(28px + env(safe-area-inset-bottom)));
  }

  html.mobile-input-active .discussion-fixed-reply-form:focus-within,
  body.mobile-input-active .discussion-fixed-reply-form:focus-within,
  html.mobile-input-active .deal-fixed-reply-form:focus-within,
  body.mobile-input-active .deal-fixed-reply-form:focus-within {
    transform: translateY(calc(-1 * var(--mobile-keyboard-inset, 0px)));
  }
}

.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);
}

/* Image avatars must not inherit legacy initial-avatar backgrounds. */
.discussion-post-avatar.member-content-avatar,
.discussion-comment-avatar.member-content-avatar,
.comment-avatar.member-content-avatar,
.deal-card-avatar.member-content-avatar,
.bang-profile-avatar.member-content-avatar,
.public-profile-card-avatar.member-content-avatar,
.contributor-ranking-avatar.member-content-avatar,
.contributor-profile-avatar.member-content-avatar,
.account-deal-avatar.member-content-avatar,
.discussion-post-avatar.member-content-avatar.anonymous,
.discussion-comment-avatar.member-content-avatar.anonymous,
.comment-avatar.member-content-avatar.anonymous,
.deal-card-avatar.member-content-avatar.anonymous,
.bang-profile-avatar.member-content-avatar.anonymous,
.public-profile-card-avatar.member-content-avatar.anonymous,
.contributor-ranking-avatar.member-content-avatar.anonymous,
.contributor-profile-avatar.member-content-avatar.anonymous,
.account-deal-avatar.member-content-avatar.anonymous,
.comment-composer-form .comment-composer-avatar.public,
.comment-composer-form .comment-composer-avatar.anonymous,
.place-comment-avatar-button.public,
.place-comment-avatar-button.anonymous,
.discussion-reply-avatar-button.public,
.discussion-reply-avatar-button.anonymous,
.place-comment-option-avatar.member,
.place-comment-option-avatar.anonymous,
.discussion-reply-option-avatar.member,
.discussion-reply-option-avatar.anonymous {
  overflow: hidden;
  padding: 0;
  color: transparent;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.discussion-post-avatar.member-content-avatar,
.discussion-comment-avatar.member-content-avatar,
.comment-avatar.member-content-avatar,
.deal-card-avatar.member-content-avatar,
.bang-profile-avatar.member-content-avatar,
.public-profile-card-avatar.member-content-avatar,
.contributor-ranking-avatar.member-content-avatar,
.contributor-profile-avatar.member-content-avatar,
.account-deal-avatar.member-content-avatar,
.comment-composer-form .comment-composer-avatar,
.place-comment-avatar-button,
.discussion-reply-avatar-button,
.place-comment-option-avatar.member,
.place-comment-option-avatar.anonymous,
.discussion-reply-option-avatar.member,
.discussion-reply-option-avatar.anonymous {
  border-radius: 50%;
}

.public-profile-avatar-trigger {
  position: relative;
  isolation: isolate;
  overflow: visible !important;
}

.public-profile-avatar-view-hint {
  position: absolute;
  right: -3px;
  bottom: -3px;
  z-index: 2;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  color: #d9613b;
  background: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(45, 38, 34, 0.22);
  pointer-events: none;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.public-profile-avatar-view-hint svg {
  width: 13px;
  height: 13px;
}

.public-profile-avatar-trigger:hover .public-profile-avatar-view-hint,
.public-profile-avatar-trigger:focus-visible .public-profile-avatar-view-hint {
  color: #fff;
  background: #d9613b;
  transform: scale(1.08);
}

.public-author-avatar-trigger {
  padding: 0;
  cursor: pointer;
}

.discussion-post-avatar.member-content-avatar > img,
.discussion-comment-avatar.member-content-avatar > img,
.comment-avatar.member-content-avatar > img,
.deal-card-avatar.member-content-avatar > img,
.bang-profile-avatar.member-content-avatar > img,
.public-profile-card-avatar.member-content-avatar > img,
.contributor-ranking-avatar.member-content-avatar > img,
.contributor-profile-avatar.member-content-avatar > img,
.account-deal-avatar.member-content-avatar > img,
.comment-composer-form .comment-composer-avatar img,
.place-comment-avatar-button img,
.discussion-reply-avatar-button img,
.place-comment-option-avatar.member img,
.place-comment-option-avatar.anonymous img,
.discussion-reply-option-avatar.member img,
.discussion-reply-option-avatar.anonymous img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}

dialog.detail-dialog.public-profile-card-dialog.map-public-profile-card-dialog {
  position: fixed;
  inset: 6px;
  width: min(430px, calc(100vw - 12px));
  height: calc(100dvh - 12px);
  max-width: 430px;
  max-height: calc(100dvh - 12px);
  margin: auto;
  overflow: hidden;
  background: #eceff4;
  border-radius: 16px;
}

dialog.detail-dialog.public-profile-card-dialog.map-public-profile-card-dialog .bang-profile-panel {
  height: 100%;
  max-height: none;
  overflow: hidden;
  background: #eceff4;
}

dialog.detail-dialog.public-profile-card-dialog.map-public-profile-card-dialog .public-profile-card-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #eceff4;
}

dialog.detail-dialog.public-profile-card-dialog.map-public-profile-card-dialog .public-profile-card-hero {
  flex: 0 0 auto;
  background: #eceff4;
}

dialog.detail-dialog.public-profile-card-dialog.map-public-profile-card-dialog .public-profile-card-mode-tabs {
  flex: 0 0 auto;
  margin: 0 20px 14px;
}

dialog.detail-dialog.public-profile-card-dialog.map-public-profile-card-dialog .public-profile-card-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 18px 18px 0 0;
}

dialog.detail-dialog.public-profile-card-dialog.map-public-profile-card-dialog .public-profile-card-tabs {
  position: static;
  flex: 0 0 auto;
}

dialog.detail-dialog.public-profile-card-dialog.map-public-profile-card-dialog .public-profile-card-feed {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* Shared sparrow details dialog used by the wardrobe and garden pages. */
.sparrow-bird-details-dialog {
  width: min(88vw, 360px);
  max-width: 360px;
  max-height: min(92dvh, 760px);
  padding: 0;
  overflow: visible;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.sparrow-bird-details-dialog::backdrop {
  background: rgba(20, 28, 40, 0.46);
  backdrop-filter: blur(2px);
}

.sparrow-bird-details-dialog > section {
  position: relative;
  display: grid;
  max-height: min(92dvh, 760px);
  justify-items: center;
  gap: 10px;
  padding: 24px 22px 22px;
  overflow-y: auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(28, 38, 54, 0.24);
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 90, 48, 0.42) transparent;
}

.sparrow-bird-details-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--ink-soft);
  font-size: 24px;
  line-height: 1;
  background: #f4f6f8;
  border: 0;
  border-radius: 50%;
  place-items: center;
  cursor: pointer;
}

.sparrow-bird-details-preview {
  display: grid;
  width: 124px;
  height: 124px;
  margin-top: 4px;
  overflow: hidden;
  place-items: center;
  isolation: isolate;
  background: #fff8f5;
  border-radius: 50%;
}

.sparrow-bird-details-preview .account-sparrow-thumb {
  position: relative;
  display: block;
  width: 108px;
  height: 108px;
}

.sparrow-bird-details-preview .account-sparrow-thumb-layer {
  position: absolute;
  inset: 0;
  z-index: var(--account-thumb-layer, 1);
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.sparrow-bird-details-dialog p,
.sparrow-bird-details-dialog h2,
.sparrow-bird-details-dialog small {
  margin: 0;
}

.sparrow-bird-details-status {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.sparrow-bird-details-dialog h2 {
  font-size: 21px;
}

.sparrow-dialog-basic-info-slot {
  width: 100%;
}

.sparrow-dialog-basic-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 10px;
  text-align: left;
  background: #fff8f5;
  border: 1px solid #f3dfd7;
  border-radius: 16px;
}

.sparrow-dialog-basic-info > div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #f3e9e5;
  border-radius: 12px;
}

.sparrow-dialog-basic-info dt {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
}

.sparrow-dialog-basic-info dd {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sparrow-dialog-basic-info .sparrow-dialog-gender-value {
  display: flex;
  align-items: center;
  overflow: visible;
}

.sparrow-dialog-basic-info .sparrow-dialog-rarity-value {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: visible;
}

.sparrow-rarity-dot {
  display: inline-block;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.sparrow-rarity-dot-blue { background: #5d9ee9; }
.sparrow-rarity-dot-green { background: #62b36b; }
.sparrow-rarity-dot-purple { background: #9573c9; }
.sparrow-rarity-dot-gold { background: #df9d2e; }

.sparrow-gender-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.sparrow-gender-icon-female {
  color: #d9688c;
}

.sparrow-gender-icon-male {
  color: #3f86b6;
}

.sparrow-roster-action-confirm {
  margin-top: 2px;
}

.sparrow-bird-details-dialog > section > small {
  min-height: 18px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
}

.sparrow-bird-details-friendship-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  background: #fff8f5;
  border: 1px solid #f3dfd7;
  border-radius: 16px;
}

.sparrow-bird-details-friendship-card span {
  font-size: 13px;
  font-weight: 800;
}

.sparrow-bird-details-friendship-card small {
  color: var(--ink-soft);
  font-size: 10px;
}

.sparrow-bird-details-progress {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  background: #f3dfd7;
  border-radius: 99px;
}

.sparrow-bird-details-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ef9a55);
  border-radius: inherit;
  transition: width 0.25s ease;
}

.sparrow-bird-details-nickname-field {
  display: grid;
  gap: 6px;
  width: 100%;
  text-align: left;
}

.sparrow-bird-details-nickname-field span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.sparrow-bird-details-nickname-field input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
}

.sparrow-bird-details-nickname-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(216, 90, 48, 0.14);
}

.sparrow-bird-details-actions {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}

.sparrow-bird-details-secondary {
  min-height: 46px;
  padding: 10px 15px;
  font-weight: 850;
  border-radius: 14px;
  cursor: pointer;
}

.sparrow-bird-details-secondary {
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
}

.sparrow-bird-details-wardrobe-link {
  margin-top: 2px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

@media (max-height: 700px) {
  .sparrow-bird-details-dialog > section {
    max-height: calc(100dvh - 24px);
  }

  .sparrow-bird-details-preview {
    width: 110px;
    height: 110px;
  }

  .sparrow-bird-details-preview .account-sparrow-thumb {
    width: 94px;
    height: 94px;
  }
}

.sparrow-bird-details-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
}

.sparrow-bird-details-title-row h2 {
  margin: 0;
}

.sparrow-bird-details-edit {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: 50%;
  place-items: center;
  cursor: pointer;
}

.sparrow-bird-details-edit:hover,
.sparrow-bird-details-edit:focus-visible {
  color: var(--accent-strong);
  background: #ffe4da;
}

.sparrow-bird-details-edit svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sparrow-bird-rename-dialog {
  width: min(88vw, 340px);
  max-width: 340px;
  padding: 0;
  overflow: visible;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.sparrow-bird-rename-dialog::backdrop {
  background: rgba(20, 28, 40, 0.46);
  backdrop-filter: blur(2px);
}

.sparrow-bird-rename-panel {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 22px 20px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(28, 38, 54, 0.24);
}

.sparrow-bird-rename-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  text-align: left;
}

.sparrow-bird-rename-panel label {
  display: block;
  width: 100%;
}

.sparrow-bird-rename-panel input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  color: var(--ink);
  font-size: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
}

.sparrow-bird-rename-panel input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(216, 90, 48, 0.14);
}

.sparrow-bird-rename-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sparrow-bird-rename-actions button {
  min-height: 46px;
  padding: 10px 14px;
  font-weight: 850;
  border-radius: 999px;
  cursor: pointer;
}

.sparrow-bird-rename-cancel {
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
}

.sparrow-bird-rename-confirm {
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
}

.sparrow-bird-rename-actions button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.sparrow-bird-details-actions > :only-child {
  grid-column: 1 / -1;
}

/* 舊版第一份委託樣式（保留相容） */
.first-quest-root[hidden] { display: none !important; }
.first-quest-launcher {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 980;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 174px;
  padding: 9px 15px 9px 9px;
  border: 1px solid #d9c99f;
  border-radius: 999px;
  color: #2f2b21;
  background: rgba(255, 252, 241, .97);
  box-shadow: 0 12px 32px rgba(77, 63, 28, .2);
  cursor: pointer;
  text-align: left;
}
.first-quest-launcher-bird {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #64743d;
  font-weight: 900;
}
.first-quest-launcher span:last-child { display: grid; gap: 1px; }
.first-quest-launcher strong { font-size: 14px; }
.first-quest-launcher small { color: #766b50; font-size: 12px; }
.first-quest-dialog,
.first-quest-reward-dialog {
  width: min(760px, calc(100vw - 28px));
  max-height: min(820px, calc(100dvh - 28px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  color: #29271f;
  background: #fffdf7;
  box-shadow: 0 24px 80px rgba(29, 27, 20, .28);
}
.first-quest-dialog::backdrop,
.first-quest-reward-dialog::backdrop { background: rgba(28, 27, 22, .54); backdrop-filter: blur(3px); }
.first-quest-panel { display: flex; max-height: inherit; flex-direction: column; }
.first-quest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 17px;
  border-bottom: 1px solid #eee5cf;
  background: linear-gradient(135deg, #f7f0d9, #fffdf7 72%);
}
.first-quest-head p,
.first-quest-reward-dialog p {
  margin: 0 0 3px;
  color: #7d6b36;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}
.first-quest-head h2 { margin: 0; font-size: 23px; }
.first-quest-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: #5f5949;
  background: rgba(255, 255, 255, .78);
  cursor: pointer;
  font-size: 26px;
}
.first-quest-body { overflow-y: auto; padding: 20px 24px 26px; }
.first-quest-intro { margin-bottom: 16px; }
.first-quest-intro p { margin: 0 0 11px; color: #625d4f; }
.first-quest-intro small { color: #82775e; }
.first-quest-progress { height: 8px; overflow: hidden; border-radius: 99px; background: #eee8d8; }
.first-quest-progress span { display: block; width: var(--quest-progress); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #72834b, #a4b56c); transition: width .3s ease; }
.first-quest-stage {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: start;
  padding: 17px 0;
  border-top: 1px solid #eee8d9;
}
.first-quest-step {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #c9b876;
  border-radius: 50%;
  color: #69591f;
  background: #fff8d9;
  font-weight: 900;
}
.first-quest-stage.completed .first-quest-step { border-color: #718149; color: #fff; background: #718149; }
.first-quest-stage.locked { opacity: .55; }
.first-quest-stage-main h3 { margin: 2px 0 6px; font-size: 16px; }
.first-quest-stage-main p { max-width: 470px; margin: 0; color: #6d6759; font-size: 14px; line-height: 1.55; }
.first-quest-stage-action { align-self: center; }
.first-quest-action {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid #66763f;
  border-radius: 12px;
  color: #fff;
  background: #66763f;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.first-quest-action:hover { background: #536332; }
.first-quest-action.secondary { border-color: #d8cfb7; color: #504a3d; background: #fff; }
.first-quest-action:disabled { cursor: wait; opacity: .6; }
.first-quest-done { color: #63743b; font-size: 13px; font-weight: 800; white-space: nowrap; }
.first-quest-lock { color: #8c8574; font-size: 13px; }
.first-quest-shirt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.first-quest-shirt-choice {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 9px;
  border: 2px solid transparent;
  border-radius: 15px;
  background: #f7f5ee;
  cursor: pointer;
  text-align: center;
}
.first-quest-shirt-choice.selected { border-color: #7b8d4a; background: #f6f8ed; }
.first-quest-shirt-choice input { position: absolute; opacity: 0; pointer-events: none; }
.first-quest-shirt-choice img { width: 100%; aspect-ratio: 1; border-radius: 11px; object-fit: contain; background: #fff; }
.first-quest-shirt-choice strong { font-size: 12px; }
.first-quest-selected-shirt { display: inline-flex; align-items: center; gap: 9px; margin-top: 12px; padding: 7px 10px; border-radius: 12px; background: #f4f1e7; }
.first-quest-selected-shirt img { width: 52px; height: 52px; object-fit: contain; border-radius: 9px; background: #fff; }
.first-quest-selected-shirt strong { font-size: 13px; }
.first-quest-shirt-choice.is-background { overflow: hidden; }
.first-quest-shirt-choice.is-background img { aspect-ratio: 3 / 4; object-fit: cover; object-position: center; }
.first-quest-background-select { display: grid; gap: 6px; cursor: pointer; }
.first-quest-background-preview-button {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 2;
  min-height: 26px;
  padding: 0 8px;
  color: #4d3329;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(232, 91, 42, .38);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(77, 51, 41, .14);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.first-quest-background-preview-button:hover,
.first-quest-background-preview-button:focus-visible { color: #fff; background: var(--dugu-orange, #e85b2a); }
.first-quest-background-preview-dialog {
  width: min(430px, calc(100vw - 24px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  color: #2b201b;
  background: transparent;
  border: 0;
}
.first-quest-background-preview-dialog::backdrop { background: rgba(32, 22, 18, .56); backdrop-filter: blur(3px); }
.first-quest-background-preview-dialog > section {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: calc(100dvh - 28px);
  overflow: hidden;
  background: #fffaf7;
  border: 1px solid #f0d9ca;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(62, 34, 22, .28);
}
.first-quest-background-preview-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f0d9ca;
}
.first-quest-background-preview-dialog header p,
.first-quest-background-preview-dialog header h2 { margin: 0; }
.first-quest-background-preview-dialog header p { color: #a24c2d; font-size: 11px; font-weight: 800; }
.first-quest-background-preview-dialog header h2 { margin-top: 2px; font-size: 18px; }
.first-quest-background-preview-dialog header button {
  width: 40px;
  height: 40px;
  color: #3f2c24;
  background: #fff;
  border: 1px solid #ead8cf;
  border-radius: 999px;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.first-quest-background-preview-image {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 14px;
  overflow: auto;
  background: #f3eee9;
}
.first-quest-background-preview-image img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(72dvh, 720px);
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(50, 34, 27, .18);
}
.first-quest-selected-shirt.is-background { overflow: hidden; }
.first-quest-selected-shirt.is-background img { object-fit: cover; }
.first-quest-finale { display: grid; gap: 5px; margin-top: 12px; padding: 16px; border: 1px solid #d8c888; border-radius: 16px; background: #fff8d9; text-align: center; }
.first-quest-finale span { color: #746944; font-size: 13px; }
.first-quest-reward-dialog section { display: grid; justify-items: center; padding: 28px; text-align: center; }
.first-quest-reward-dialog h2 { margin: 2px 0 12px; font-size: 24px; }
.first-quest-reward-dialog img { width: min(270px, 65vw); aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(37, 33, 20, .15)); }
.first-quest-reward-dialog img.is-background { width: min(240px, 62vw); height: min(360px, 50dvh); aspect-ratio: auto; border-radius: 16px; object-fit: cover; object-position: center; }
.first-quest-reward-sparrow {
  position: relative;
  display: grid;
  width: min(270px, 65vw);
  aspect-ratio: 1;
  margin: 0;
  place-items: center;
  filter: drop-shadow(0 14px 18px rgba(37, 33, 20, .15));
}
.first-quest-reward-sparrow > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  filter: none;
}
.first-quest-reward-sparrow-eyes { z-index: 1; pointer-events: none; }
.first-quest-reward-dialog section > strong { margin-top: 4px; font-size: 17px; }
.first-quest-reward-spark { color: #c59c28; font-size: 26px; animation: firstQuestSpark 1.2s ease-in-out infinite alternate; }
.first-quest-coin { display: grid; width: 118px; height: 118px; margin: 10px; place-items: center; border: 7px double #f7d35b; border-radius: 50%; color: #826111; background: #ffec91; box-shadow: 0 12px 26px rgba(164, 123, 20, .24); font-size: 34px; font-weight: 900; }
.first-quest-reward-actions { display: flex; gap: 9px; margin-top: 20px; }
.first-quest-error,
.first-quest-inline-error { padding: 12px; border-radius: 10px; color: #8d2f28; background: #fff0ee; font-size: 13px; }
.first-quest-inline-error { margin-bottom: 10px; }
@keyframes firstQuestSpark { to { transform: scale(1.18) rotate(8deg); } }

@media (max-width: 700px) {
  .first-quest-launcher { right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); min-width: 0; padding-right: 12px; }
  .sparrow-wardrobe-page .first-quest-launcher { bottom: calc(18px + env(safe-area-inset-bottom)); }
  .first-quest-dialog { width: 100vw; max-width: none; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .first-quest-head { padding: 18px 17px 14px; }
  .first-quest-head h2 { font-size: 20px; }
  .first-quest-body { padding: 16px 17px 24px; }
  .first-quest-stage { grid-template-columns: 34px minmax(0, 1fr); }
  .first-quest-stage-action { grid-column: 2; justify-self: stretch; }
  .first-quest-stage-action .first-quest-action { width: 100%; }
  .first-quest-shirt-grid { grid-template-columns: repeat(3, minmax(78px, 1fr)); gap: 6px; }
  .first-quest-shirt-choice { padding: 5px; }
}

/* 度咕的委託 v2 */
.dugu-commission-root .first-quest-stage {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 17px 0;
}
.dugu-commission-root .first-quest-stage-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}
.dugu-commission-root .first-quest-step {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  font-size: 13px;
}
.dugu-commission-root .first-quest-stage-heading h3 {
  margin: 0;
  font-size: 16px;
}
.dugu-commission-root .first-quest-stage-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}
.dugu-commission-root .first-quest-stage-content.without-visual {
  grid-template-columns: minmax(0, 1fr);
}
.dugu-commission-root .first-quest-stage-main {
  min-width: 0;
  padding: 0;
}
.dugu-commission-root .first-quest-stage-main p {
  max-width: none;
}
.dugu-commission-root .first-quest-stage-action {
  grid-column: 2;
  width: 100%;
  margin: 2px 0 0;
}
.dugu-commission-root .first-quest-stage-action .first-quest-action {
  width: 100%;
}
.dugu-commission-root .first-quest-shirt-choice small {
  color: #8a7042;
  font-size: 10px;
  line-height: 1.3;
}
.dugu-stage-visual {
  display: grid;
  width: 76px;
  min-height: 76px;
  align-self: center;
  place-items: center;
}
.dugu-stage-egg {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(77, 61, 36, .15));
}
.dugu-stage-reward-visual {
  display: grid;
  width: 72px;
  height: 72px;
  padding: 5px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #f3dfd2;
  border-radius: 18px;
  background: #fff7f1;
}
.dugu-stage-reward-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.dugu-stage-reward-visual.is-background img { object-fit: cover; object-position: center; }
.dugu-stage-reward-visual.is-background { position: relative; }
.dugu-stage-reward-visual.is-background img {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
}
.dugu-stage-reward-visual.is-food,
.dugu-stage-reward-visual.is-coins { position: relative; }
.dugu-stage-reward-visual.is-food img,
.dugu-stage-reward-visual.is-coins img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: none;
  transform: translate(-50%, -50%);
}
.dugu-stage-reward-visual.is-food img { width: 132px; height: 132px; }
.dugu-stage-reward-visual.is-coins img { width: 80px; height: 80px; object-fit: contain; }
.dugu-stage-collection-visual {
  display: grid;
  width: 63px;
  height: 63px;
  place-items: center;
  border: 1px solid var(--dugu-orange-border);
  border-radius: 50%;
  color: var(--dugu-orange);
  background: var(--dugu-orange-soft);
  font-size: 35px;
  line-height: 1;
}
.dugu-stage-final-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: 72px;
  min-height: 64px;
  padding: 6px;
  border: 1px solid #f3dfd2;
  border-radius: 18px;
  background: #fff7f1;
}
.dugu-stage-final-visual span {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  min-width: 0;
  border-radius: 10px;
  color: var(--dugu-orange-deep);
  background: #fff;
}
.dugu-stage-final-visual strong { font-size: 13px; line-height: 1; }
.dugu-stage-final-visual small { font-size: 9px; line-height: 1.1; white-space: nowrap; }
.dugu-candidate-tutorial {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 13px;
}
.dugu-candidate-tutorial > div {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
  min-height: 82px;
  padding: 11px;
  border-radius: 13px;
  background: #f5f2ea;
}
.dugu-candidate-tutorial strong { font-size: 13px; }
.dugu-candidate-tutorial small {
  grid-column: 2;
  color: #756f61;
  font-size: 11px;
  line-height: 1.4;
}
.dugu-map-marker-preview {
  display: grid;
  grid-row: 1 / span 2;
  width: 64px;
  min-height: 64px;
  align-self: center;
  place-items: center;
}
.dugu-map-marker-preview .price-marker {
  transform: scale(.94);
  transform-origin: center;
}
.dugu-candidate-tutorial > p {
  grid-column: 1 / -1;
  padding: 9px 11px;
  border-left: 3px solid #859658;
  background: #f8f9f1;
}
.dugu-marker-example {
  display: inline-grid;
  width: 24px;
  height: 30px;
  border: 3px solid currentColor;
  border-radius: 50% 50% 50% 8px;
  transform: rotate(-45deg);
  background: #fff;
}
.dugu-marker-example.is-candidate { color: #8d9299; background: #e7e9ec; }
.dugu-marker-example.is-official { color: #d73545; background: #ffe9ec; }
.dugu-filter-map-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 13px;
}
.dugu-filter-map-item {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  min-height: 54px;
  padding: 5px 6px;
  border-radius: 10px;
  background: #f7f5ee;
}
.dugu-filter-map-item .dugu-map-marker-preview {
  display: grid;
  flex: 0 0 45px;
  grid-row: auto;
  width: 45px;
  min-height: 46px;
  place-items: center;
}
.dugu-filter-map-item .dugu-map-marker-preview .price-marker {
  transform: scale(.68);
  transform-origin: center;
}
.dugu-filter-map-item b {
  min-width: 0;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}
.dugu-filter-map-item.restaurant b { color: #d73545; }
.dugu-filter-map-item.lodging b { color: #2475d6; }
.dugu-filter-map-item.facility b { color: #7c3aed; }
.dugu-filter-map-item.service b { color: #159459; }
.dugu-filter-success { margin-top: 10px !important; color: #547037 !important; font-weight: 800; }
.dugu-final-reward-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}
.dugu-final-reward-preview > strong {
  flex-basis: 100%;
  margin-top: 8px;
  color: #806225;
  font-size: 13px;
}
.dugu-hatch-dialog,
.dugu-auth-dialog {
  padding: 0;
  border: 0;
  border-radius: 24px;
  color: #29271f;
  background: #fffdf7;
  box-shadow: 0 24px 80px rgba(29, 27, 20, .32);
}
.dugu-story-dialog {
  width: min(460px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--dugu-orange-border, #f2b28e);
  border-radius: 22px;
  color: #29271f;
  background: #fff9f4;
  box-shadow: 0 24px 80px rgba(111, 48, 22, .3);
}
.dugu-story-dialog::backdrop { background: rgba(28, 27, 22, .65); backdrop-filter: blur(4px); }
.dugu-story-dialog section { position: relative; padding: 30px 28px 26px; }
.dugu-story-dialog p { margin: 0; color: #8f3519; font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.dugu-story-dialog h2 { margin: 4px 38px 16px 0; font-size: 26px; }
.dugu-story-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #8f3519;
  background: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.dugu-story-content { display: grid; gap: 12px; }
.dugu-story-content p { color: #554b40; font-size: 15px; font-weight: 500; line-height: 1.75; letter-spacing: 0; }
.dugu-story-content .dugu-story-lead { color: #8f3519; font-weight: 800; }
.dugu-story-ability {
  display: grid;
  gap: 3px;
  margin-top: 4px;
  padding: 11px 13px;
  border: 1px solid #f2b28e;
  border-radius: 13px;
  color: #8f3519;
  background: #fff0e5;
  text-align: left;
}
.dugu-story-ability span { font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.dugu-story-ability strong { font-size: 14px; line-height: 1.45; }
.dugu-hatch-dialog {
  width: min(820px, calc(100vw - 28px));
  max-height: min(850px, calc(100dvh - 28px));
  overflow: hidden;
  background: #e8ddcc url("/files/public/ui/sparrow-garden-hatch-background.png?v=20260715-v1") center / cover no-repeat;
}
.dugu-auth-dialog { width: min(420px, calc(100vw - 32px)); }
.dugu-hatch-dialog::backdrop,
.dugu-auth-dialog::backdrop { background: rgba(28, 27, 22, .65); backdrop-filter: blur(4px); }
.dugu-hatch-panel { position: relative; max-height: inherit; overflow-y: auto; }
.dugu-hatch-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: #5c5143;
  background: rgba(255, 255, 255, .86);
  font-size: 25px;
  cursor: pointer;
}
.dugu-hatch-back {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #5c5143;
  background: rgba(255, 255, 255, .86);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.dugu-hatch-dialog.is-customizing .dugu-hatch-back { display: grid; }
.dugu-hatch-body {
  display: grid;
  justify-items: center;
  min-height: min(720px, calc(100dvh - 28px));
  padding: 54px 28px 30px;
  text-align: center;
}
.dugu-hatch-body > p { margin: 0; color: #7b6532; font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.dugu-hatch-body h2 { margin: 5px 0 8px; }
.dugu-hatch-hint { color: #6f6758; font-size: 13px; }
.dugu-hatch-body.is-choosing {
  align-content: start;
  gap: 8px;
  padding-top: 62px;
}
.dugu-hatch-body.is-choosing h2 { margin: 0 0 2px; }
.dugu-hatch-body.is-choosing .dugu-starter-grid { margin-top: 4px; }
.dugu-hatch-body.is-choosing .dugu-starter-confirm { margin-top: 8px; }
.dugu-egg-animation {
  position: relative;
  width: min(390px, 72vw);
  aspect-ratio: 1;
  margin: 18px 0 6px;
  animation: duguEggShake .55s ease-in-out infinite alternate;
}
.dugu-egg-base,
.dugu-egg-crack { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.dugu-egg-crack { opacity: 0; }
.dugu-egg-crack.crack-one { animation: duguCrack 1.35s steps(1, end) .25s both; }
.dugu-egg-crack.crack-two { animation: duguCrack 1s steps(1, end) .62s both; }
.dugu-egg-crack.crack-three { animation: duguCrack .6s steps(1, end) .98s both; }
.dugu-starter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 18px;
}
.dugu-starter-choice {
  position: relative;
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 8px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: rgba(255, 253, 247, .9);
  cursor: pointer;
}
.dugu-starter-select { display: grid; width: 100%; gap: 4px; justify-items: center; cursor: pointer; }
.dugu-starter-choice.selected { border-color: #72834b; background: #f8fbe9; }
.dugu-starter-choice input { position: absolute; opacity: 0; pointer-events: none; }
.dugu-starter-gender {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .82);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}
.dugu-starter-gender-female { color: #d9688c; }
.dugu-starter-gender-male { color: #3f86b6; }
.dugu-starter-sparrow {
  position: relative;
  display: grid;
  width: min(140px, 100%);
  aspect-ratio: 1;
  place-items: center;
}
.dugu-starter-sparrow > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.dugu-starter-eyes { z-index: 1; pointer-events: none; }
.dugu-starter-choice img { width: min(140px, 100%); aspect-ratio: 1; object-fit: contain; }
.dugu-starter-choice strong { font-size: 14px; }
.dugu-starter-choice small { color: #7d7565; font-size: 11px; }
.dugu-starter-story-button {
  padding: 3px 8px;
  border: 1px solid #f2b28e;
  border-radius: 999px;
  color: #b9431e;
  background: rgba(255, 255, 255, .8);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}
.dugu-starter-story-button:hover { border-color: #e85b2a; color: #8f3519; background: #fff0e5; }
.dugu-starter-story-button:focus-visible,
.dugu-story-close:focus-visible { outline: 3px solid rgba(232, 91, 42, .28); outline-offset: 2px; }
.dugu-starter-confirm { margin-top: 18px; min-width: 180px; }
.dugu-customization-preview { display: grid; width: 100%; max-width: 460px; gap: 5px; justify-self: stretch; justify-items: center; }
.dugu-customization-preview-stage { width: 100%; height: 280px; overflow: hidden; border: 1px solid rgba(232, 91, 42, .22); border-radius: 22px; box-shadow: 0 10px 22px rgba(111, 48, 22, .1); }
.dugu-customization-preview-stage > .outfit-stage-zone { width: 100%; height: 100%; min-height: 0; box-shadow: none; }
.dugu-customization-preview-stage .outfit-stage-scene { min-height: 0; height: 100%; --outfit-stage-scale: 2; }
.dugu-customization-preview-stage .outfit-stage-scene .outfit-sparrow-stage { transform: scale(var(--outfit-stage-scale)); }
.dugu-customization-preview-fallback { position: relative; width: 180px; height: 180px; }
.dugu-customization-preview-fallback img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.dugu-customization-group { width: 100%; margin-top: 4px; }
.dugu-customization-group h3 { margin: 0 0 6px; color: #8f3519; font-size: 14px; }
.dugu-customization-group .first-quest-shirt-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-top: 0;
}
.dugu-customization-group .first-quest-shirt-choice { padding: 5px; }
.dugu-customization-group .first-quest-shirt-choice img { aspect-ratio: 1; }
.dugu-customization-group .first-quest-shirt-choice strong { font-size: 11px; line-height: 1.25; }
.dugu-customization-group .is-starter-headwear-grid .first-quest-choice-visual {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 11px;
  background: #fff;
}
.dugu-customization-group .is-starter-headwear-grid .first-quest-choice-visual img {
  position: absolute;
  top: 80%;
  left: 55%;
  width: 100%;
  height: 100%;
  max-width: none;
  transform: translate(-50%, -50%) scale(1.45);
  transform-origin: center;
}
.dugu-appearance-reward-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: min(360px, 78vw); }
.dugu-appearance-reward-grid > div { display: grid; justify-items: center; gap: 6px; padding: 8px; border: 1px solid var(--dugu-orange-border); border-radius: 14px; background: #fff5ee; }
.dugu-appearance-reward-grid img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.dugu-appearance-reward-grid strong { color: var(--dugu-orange-deep); font-size: 12px; }
.dugu-auth-dialog section { display: grid; justify-items: center; padding: 28px; text-align: center; }
.dugu-auth-dialog h2 { margin: 4px 0 8px; }
.dugu-auth-dialog p { margin: 0; color: #696254; line-height: 1.6; }
.dugu-auth-egg { font-size: 42px; }
.dugu-auth-actions { display: flex; gap: 9px; margin-top: 22px; }
.dugu-guide-toast {
  position: fixed;
  z-index: 2200;
  left: 50%;
  bottom: max(86px, calc(70px + env(safe-area-inset-bottom)));
  width: min(460px, calc(100vw - 28px));
  padding: 13px 16px;
  transform: translateX(-50%);
  border: 1px solid #d9c99f;
  border-radius: 14px;
  color: #3f3828;
  background: rgba(255, 252, 241, .98);
  box-shadow: 0 12px 34px rgba(60, 43, 20, .2);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

/* 度咕的委託：暖橘色主題 */
.dugu-commission-root,
.dugu-hatch-dialog,
.dugu-auth-dialog,
.first-quest-reward-dialog {
  --dugu-orange: #e85b2a;
  --dugu-orange-dark: #b9431e;
  --dugu-orange-deep: #8f3519;
  --dugu-orange-soft: #fff0e5;
  --dugu-orange-pale: #fff9f4;
  --dugu-orange-border: #f2b28e;
}
.dugu-commission-root .first-quest-dialog,
.dugu-auth-dialog,
.first-quest-reward-dialog {
  border: 1px solid var(--dugu-orange-border);
  background: var(--dugu-orange-pale);
  box-shadow: 0 24px 80px rgba(111, 48, 22, .25);
}
.dugu-commission-root .first-quest-head {
  border-bottom-color: #f5d5c2;
  background: linear-gradient(135deg, #ffe3d1, var(--dugu-orange-pale) 72%);
}
.dugu-commission-root .first-quest-head p,
.first-quest-reward-dialog p,
.dugu-hatch-body > p {
  color: var(--dugu-orange-deep);
}
.dugu-commission-root .first-quest-close {
  color: var(--dugu-orange-deep);
  box-shadow: 0 3px 12px rgba(185, 67, 30, .1);
}
.dugu-commission-root .first-quest-progress {
  background: #f5ded1;
}
.dugu-commission-root .first-quest-progress span {
  background: linear-gradient(90deg, var(--dugu-orange), #f59a4b);
}
.dugu-commission-root .first-quest-stage {
  border-top-color: #f3dfd2;
}
.dugu-commission-root .first-quest-step {
  border-color: var(--dugu-orange-border);
  color: var(--dugu-orange-dark);
  background: var(--dugu-orange-soft);
}
.dugu-commission-root .first-quest-stage.completed .first-quest-step {
  border-color: var(--dugu-orange);
  color: #fff;
  background: var(--dugu-orange);
}
.dugu-commission-root .first-quest-action,
.dugu-hatch-dialog .first-quest-action,
.dugu-auth-dialog .first-quest-action,
.first-quest-reward-dialog .first-quest-action {
  border-color: var(--dugu-orange);
  background: var(--dugu-orange);
  box-shadow: 0 5px 14px rgba(232, 91, 42, .2);
}
.dugu-commission-root .first-quest-action:hover,
.dugu-hatch-dialog .first-quest-action:hover,
.dugu-auth-dialog .first-quest-action:hover,
.first-quest-reward-dialog .first-quest-action:hover {
  border-color: var(--dugu-orange-dark);
  background: var(--dugu-orange-dark);
}
.dugu-commission-root .first-quest-action.secondary,
.dugu-hatch-dialog .first-quest-action.secondary,
.dugu-auth-dialog .first-quest-action.secondary,
.first-quest-reward-dialog .first-quest-action.secondary {
  border-color: var(--dugu-orange-border);
  color: var(--dugu-orange-deep);
  background: #fff;
  box-shadow: none;
}
.dugu-commission-root .first-quest-action:focus-visible,
.dugu-commission-root .first-quest-shirt-choice:focus-within,
.dugu-hatch-dialog .first-quest-action:focus-visible,
.dugu-auth-dialog .first-quest-action:focus-visible,
.dugu-starter-choice:focus-within,
.first-quest-reward-dialog .first-quest-action:focus-visible {
  outline: 3px solid rgba(232, 91, 42, .28);
  outline-offset: 2px;
}
.dugu-commission-root .first-quest-done,
.dugu-filter-success {
  color: var(--dugu-orange-dark) !important;
}
.dugu-commission-root .first-quest-shirt-choice,
.dugu-candidate-tutorial > div,
.dugu-filter-legend span {
  background: #fff5ee;
}
.dugu-commission-root .first-quest-shirt-choice:hover,
.dugu-starter-choice:hover {
  border-color: #f5c9ae;
}
.dugu-commission-root .first-quest-shirt-choice.selected,
.dugu-starter-choice.selected {
  border-color: var(--dugu-orange);
  background: var(--dugu-orange-soft);
  box-shadow: 0 5px 16px rgba(232, 91, 42, .13);
}
.dugu-commission-root .first-quest-selected-shirt {
  color: var(--dugu-orange-deep);
  background: var(--dugu-orange-soft);
}
.dugu-commission-root .first-quest-finale {
  border-color: var(--dugu-orange-border);
  background: linear-gradient(135deg, #ffe5d4, #fff5ec);
}
.dugu-commission-root .first-quest-finale span,
.dugu-final-reward-preview > strong {
  color: var(--dugu-orange-deep);
}
.dugu-candidate-tutorial > p {
  border-left-color: var(--dugu-orange);
  background: #fff5ee;
}
.dugu-stage-egg {
  filter: drop-shadow(0 9px 12px rgba(232, 91, 42, .18));
}
.dugu-hatch-dialog {
  border: 1px solid var(--dugu-orange-border);
  background-color: #f7d7c4;
  background-image:
    linear-gradient(rgba(255, 239, 228, .32), rgba(255, 247, 241, .2)),
    url("/files/public/ui/sparrow-garden-hatch-background.png?v=20260715-v1");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 24px 80px rgba(111, 48, 22, .3);
}
.dugu-hatch-close {
  color: var(--dugu-orange-deep);
}
.dugu-starter-choice {
  background: rgba(255, 249, 244, .94);
}
.dugu-auth-egg {
  filter: drop-shadow(0 6px 9px rgba(232, 91, 42, .2));
}
.dugu-guide-toast {
  border-color: var(--dugu-orange-border);
  color: var(--dugu-orange-deep);
  background: rgba(255, 244, 236, .98);
  box-shadow: 0 12px 34px rgba(111, 48, 22, .2);
}
.first-quest-reward-spark {
  color: var(--dugu-orange);
}
@keyframes duguEggShake { from { transform: translateX(-4px) rotate(-1.5deg); } to { transform: translateX(4px) rotate(1.5deg); } }
@keyframes duguCrack { to { opacity: 1; } }

@media (max-width: 700px) {
  .dugu-commission-root .first-quest-stage { grid-template-columns: 68px minmax(0, 1fr); gap: 10px; }
  .dugu-commission-root .first-quest-stage-content { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .dugu-commission-root .first-quest-stage-action { grid-column: 2; width: 100%; margin: 2px 0 0; }
  .dugu-commission-root .first-quest-step { width: 24px; height: 24px; font-size: 12px; }
  .dugu-stage-visual { width: 68px; min-height: 68px; justify-content: start; }
  .dugu-stage-egg { width: 66px; height: 66px; }
  .dugu-stage-reward-visual { width: 66px; height: 66px; }
  .dugu-stage-final-visual { width: 66px; }
  .dugu-candidate-tutorial { grid-template-columns: 1fr; }
  .dugu-candidate-tutorial > p { grid-column: 1; }
  .dugu-hatch-dialog { width: 100vw; max-width: none; max-height: 100dvh; margin: 0; border-radius: 0; }
  .dugu-hatch-body { min-height: 100dvh; padding: 52px 14px 28px; }
  .dugu-starter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .dugu-customization-preview-stage { height: 270px; }
  .dugu-customization-preview-stage .outfit-stage-scene { --outfit-stage-scale: 1.8; }
  .dugu-customization-group .first-quest-shirt-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .dugu-customization-group .first-quest-shirt-choice strong { font-size: 10px; }
  .dugu-starter-choice { padding: 5px; }
  .dugu-auth-actions { width: 100%; flex-direction: column-reverse; }
  .dugu-auth-actions > * { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .dugu-egg-animation,
  .dugu-egg-crack { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Local-only Dugu-sparrow avatar mask calibration page. It is served only
   through the explicitly enabled localhost development route. */
.avatar-mask-calibration-page {
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background: #f4f7fb;
}

.avatar-mask-calibration-shell {
  width: min(100% - 28px, 760px);
  margin: 0 auto;
  padding: 28px 0 40px;
}

.avatar-mask-calibration-header,
.avatar-mask-calibration-controls,
.avatar-mask-calibration-previews,
.avatar-mask-calibration-workspace {
  display: flex;
  gap: 16px;
  align-items: center;
}

.avatar-mask-calibration-header {
  justify-content: space-between;
  margin-bottom: 20px;
}

.avatar-mask-calibration-header p,
.avatar-mask-calibration-header h1,
.avatar-mask-calibration-previews figure {
  margin: 0;
}

.avatar-mask-calibration-header p,
.avatar-mask-calibration-header > span,
.avatar-mask-calibration-status,
.avatar-mask-calibration-result > span,
.avatar-mask-calibration-previews figcaption {
  color: var(--muted);
  font-size: 13px;
}

.avatar-mask-calibration-header h1 {
  margin-top: 4px;
  font-size: 26px;
}

.avatar-mask-calibration-header > span {
  padding: 7px 10px;
  background: #e8f5ee;
  border-radius: var(--radius-pill);
}

.avatar-mask-calibration-controls {
  flex-wrap: wrap;
  align-items: end;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.avatar-mask-calibration-controls label {
  display: grid;
  flex: 1 1 210px;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
}

.avatar-mask-calibration-controls label > span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.avatar-mask-calibration-controls select,
.avatar-mask-calibration-controls input[type="range"] {
  width: 100%;
}

.avatar-mask-calibration-controls select {
  min-height: 40px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.avatar-mask-calibration-controls button {
  min-height: 40px;
  padding: 0 14px;
  color: #fff;
  font-weight: 800;
  background: var(--accent);
  border: 0;
  border-radius: 10px;
}

.avatar-mask-calibration-status {
  min-height: 20px;
  margin: 14px 0;
}

.avatar-mask-calibration-workspace {
  align-items: flex-start;
}

.avatar-mask-calibration-stage {
  position: relative;
  flex: 0 1 512px;
  width: min(100%, 512px);
  aspect-ratio: 1;
  overflow: hidden;
  touch-action: none;
  background: #d6eaf8;
  border: 1px solid #c3dcea;
  border-radius: 16px;
}

.avatar-mask-calibration-art,
.avatar-mask-calibration-art > .outfit-sparrow-stage,
.avatar-mask-calibration-art .outfit-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.avatar-mask-calibration-overlay {
  position: absolute;
  z-index: 60;
  display: block;
  box-sizing: border-box;
  padding: 0;
  cursor: grab;
  touch-action: none;
  background: transparent;
  border: 2px solid #e65b36;
  border-radius: 50%;
  box-shadow: 0 0 0 999px rgba(29, 45, 64, 0.42);
}

.avatar-mask-calibration-overlay.is-dragging {
  cursor: grabbing;
}

.avatar-mask-calibration-overlay:focus-visible {
  outline: 3px solid rgba(230, 91, 54, 0.45);
  outline-offset: 3px;
}

.avatar-mask-calibration-result {
  display: grid;
  flex: 1 1 180px;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.avatar-mask-calibration-result code {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.55;
}

.avatar-mask-calibration-previews {
  justify-content: center;
  margin-top: 20px;
}

.avatar-mask-calibration-previews figure {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.avatar-mask-calibration-avatar {
  position: relative;
  display: block;
  overflow: hidden;
  background: #d6eaf8;
  border-radius: 50%;
}

.avatar-mask-calibration-preview-art,
.avatar-mask-calibration-preview-art > .outfit-sparrow-stage,
.avatar-mask-calibration-preview-art .outfit-canvas {
  position: absolute;
  display: block;
}

.avatar-mask-calibration-preview-art > .outfit-sparrow-stage,
.avatar-mask-calibration-preview-art .outfit-canvas {
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 640px) {
  .avatar-mask-calibration-shell {
    width: min(100% - 20px, 760px);
    padding-top: 18px;
  }

  .avatar-mask-calibration-workspace {
    align-items: stretch;
    flex-direction: column;
  }

  .avatar-mask-calibration-stage {
    width: 100%;
  }

  .avatar-mask-calibration-result {
    flex-basis: auto;
  }

  .account-first-nickname-dialog {
    width: min(420px, calc(100vw - 20px));
  }
}

.rewards-achievement-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(253, 244, 235, 0.98), rgba(247, 232, 235, 0.92));
  border: 1px solid rgba(216, 90, 48, 0.16);
  border-radius: 16px;
}

.rewards-achievement-intro span,
.rewards-achievement-intro strong {
  display: block;
}

.rewards-achievement-intro span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.rewards-achievement-intro strong {
  color: var(--ink);
  font-size: 15px;
}

.rewards-achievement-group {
  margin-bottom: 22px;
}

.rewards-achievement-group > header {
  margin-bottom: 10px;
}

.rewards-achievement-group h3,
.rewards-achievement-track header strong {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.rewards-achievement-group p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.rewards-achievement-track-list {
  display: grid;
  gap: 10px;
}

.rewards-achievement-track {
  padding: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(44, 34, 38, 0.1);
  border-left: 4px solid #b7b0b2;
  border-radius: 14px;
}

.rewards-achievement-track-red { border-left-color: #e94b5f; }
.rewards-achievement-track-blue { border-left-color: #4e76c9; }
.rewards-achievement-track-purple { border-left-color: #a55ab7; }
.rewards-achievement-track-green,
.rewards-achievement-track-dark-green { border-left-color: #47784d; }
.rewards-achievement-track-yellow { border-left-color: #c89127; }

.rewards-achievement-track > header,
.rewards-achievement-milestone-head,
.rewards-achievement-milestone-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rewards-achievement-track > header {
  margin-bottom: 10px;
}

.rewards-achievement-track > header span,
.rewards-achievement-milestone-head span {
  color: var(--muted);
  font-size: 12px;
}

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

.rewards-achievement-milestone {
  min-width: 0;
  padding: 9px;
  background: #fbfaf9;
  border: 1px solid rgba(44, 34, 38, 0.08);
  border-radius: 11px;
}

.rewards-achievement-milestone.is-claimable {
  border-color: rgba(216, 90, 48, 0.55);
  box-shadow: 0 5px 16px rgba(216, 90, 48, 0.12);
}

.rewards-achievement-milestone.is-claimed {
  opacity: 0.68;
}

.rewards-achievement-milestone-head strong {
  color: var(--ink);
  font-size: 13px;
}

.rewards-achievement-reward {
  display: flex;
  min-height: 78px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 8px 0;
  text-align: center;
}

.rewards-achievement-reward img {
  display: block;
  width: 72px;
  height: 56px;
  object-fit: contain;
}

.rewards-achievement-reward span {
  overflow: hidden;
  width: 100%;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rewards-achievement-milestone-foot {
  align-items: flex-end;
}

.rewards-achievement-milestone-foot > span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.rewards-achievement-milestone-foot .primary-action {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 5px 9px;
  font-size: 11px;
}

.public-garden-bird-outfit {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  background: #fff9f6;
  border: 1px solid #f2d7cb;
  border-radius: 14px;
}

.public-garden-bird-outfit h3 {
  margin: 0;
  color: #614536;
  font-size: 14px;
  font-weight: 900;
}

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

.public-garden-bird-outfit-item {
  display: grid;
  grid-template-rows: minmax(72px, 1fr) auto;
  min-width: 0;
  min-height: 112px;
  gap: 6px;
  place-items: center;
  padding: 9px 7px;
  text-align: center;
  background: #fff;
  border: 1px solid #f3e5de;
  border-radius: 10px;
}

.public-garden-bird-outfit-icon {
  display: grid;
  width: 72px;
  height: 72px;
  overflow: hidden;
  place-items: center;
  color: #a4654c;
  font-size: 15px;
  font-weight: 900;
  background: #fff8f5;
  border-radius: 8px;
}

.public-garden-bird-outfit-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.public-garden-bird-outfit-item strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #513b2e;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: normal;
}

.public-garden-bird-outfit-empty {
  margin: 0;
  color: #96796b;
  font-size: 13px;
}

/* 成就收藏：依分類顯示，任務卡比照邀請活動。 */
.rewards-achievement-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 15px;
}

.rewards-achievement-tab {
  position: relative;
  min-height: 38px;
  padding: 6px 5px;
  color: #926a5d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  border: 1px solid #ecdcd6;
  border-radius: 11px;
  background: #fffdfc;
}

.rewards-achievement-tab.has-pending-rewards::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  z-index: 2;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 1px 4px rgba(216, 90, 48, .28);
}

.rewards-achievement-tab-badge {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.rewards-achievement-tab.is-active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 3px 8px rgba(216, 90, 48, 0.18);
}

.rewards-achievement-tab:focus-visible {
  outline: 3px solid rgba(216, 90, 48, 0.24);
  outline-offset: 2px;
}

.rewards-achievement-tab-panel,
.rewards-achievement-category,
.rewards-achievement-task-list {
  display: grid;
  gap: 10px;
}

.rewards-achievement-category {
  padding: 2px 0 5px;
}

.rewards-achievement-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 3px;
}

.rewards-achievement-category-header strong {
  color: var(--ink);
  font-size: 16px;
}

.rewards-achievement-category-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.rewards-achievement-task {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 1px solid #eaded9;
  border-radius: 13px;
  background: #fffdfc;
}

.rewards-achievement-task.is-claimable {
  border-color: var(--accent-mid);
  background: var(--accent-light);
}

.rewards-achievement-task.is-claimed {
  background: #fffaf8;
}

.rewards-achievement-reward-box {
  display: grid;
  width: 62px;
  height: 62px;
  padding: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid #ecd49c;
  border-radius: 12px;
  background: #fff9ec;
  cursor: pointer;
}

.rewards-achievement-reward-box:hover {
  border-color: #dea65c;
  box-shadow: 0 3px 9px rgba(208, 143, 55, 0.18);
}

.rewards-achievement-reward-box:focus-visible {
  outline: 3px solid rgba(226, 120, 63, 0.32);
  outline-offset: 2px;
}

.rewards-achievement-reward-box img {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.rewards-achievement-category-title {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.rewards-achievement-category-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: #a4a19e;
  box-shadow: inset 0 0 0 1px rgba(72, 47, 35, 0.1);
}

.rewards-achievement-category-dot.is-red { background: #dc665b; }
.rewards-achievement-category-dot.is-blue { background: #5e86d6; }
.rewards-achievement-category-dot.is-purple { background: #9a72c9; }
.rewards-achievement-category-dot.is-green { background: #62a16a; }
.rewards-achievement-category-dot.is-dark-green { background: #4b7660; }
.rewards-achievement-category-dot.is-yellow { background: #d5a03c; }

.achievement-reward-preview-dialog .referral-reward-dialog-art > img {
  display: block;
  width: 176px;
  height: 176px;
  object-fit: contain;
}

.achievement-reward-preview-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.achievement-claim-result-dialog {
  width: min(340px, calc(100vw - 32px));
}

.achievement-claim-result-art {
  display: grid;
  width: min(210px, 58vw);
  min-height: 190px;
  margin: 2px 0;
  place-items: center;
}

.achievement-claim-result-art img {
  display: block;
  width: min(210px, 58vw) !important;
  height: min(210px, 58vw);
  aspect-ratio: 1;
  object-fit: contain;
}

.achievement-claim-result-rarity {
  display: block;
  min-height: 0;
  margin-top: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #596273;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}
.achievement-claim-result-rarity.rarity-blue { color: #1764c0; }
.achievement-claim-result-rarity.rarity-green { color: #147a4b; }
.achievement-claim-result-rarity.rarity-purple { color: #6840b6; }
.achievement-claim-result-rarity.rarity-gold { color: #936211; }

.achievement-claim-result-note,
.achievement-claim-result-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.rewards-achievement-task-main {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.rewards-achievement-task-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.rewards-achievement-progress {
  position: relative;
  display: grid;
  height: 16px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #efd6ce;
  border-radius: 999px;
  background: #f6ebe7;
}

.rewards-achievement-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--rewards-achievement-progress, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #f5aa76, #ea8451);
  transition: width 180ms ease;
}

.rewards-achievement-progress strong {
  position: relative;
  z-index: 1;
  color: #704135;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px rgba(255, 255, 255, 0.75);
}

.rewards-achievement-status-button {
  min-width: 72px;
  min-height: 34px;
  padding: 0 9px;
  color: #a96049;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  border: 1px solid #e5b7a9;
  border-radius: 10px;
  background: #f5dfd8;
}

.rewards-achievement-status-button:disabled {
  cursor: default;
  opacity: 1;
}

.rewards-achievement-status-button.is-claimable {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 3px 8px rgba(216, 90, 48, 0.2);
  cursor: pointer;
}

@media (max-width: 390px) {
  .rewards-achievement-task {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 9px;
  }

  .rewards-achievement-reward-box {
    width: 56px;
    height: 56px;
  }

  .rewards-achievement-reward-box img {
    width: 52px;
    height: 52px;
  }

  .rewards-achievement-status-button {
    min-width: 66px;
    padding-inline: 7px;
    font-size: 11px;
  }
}

@media (max-width: 640px) {
  .rewards-achievement-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .rewards-achievement-intro .primary-action {
    width: 100%;
  }

  .rewards-achievement-milestone-list {
    grid-template-columns: 1fr;
  }

  .rewards-achievement-reward {
    min-height: 72px;
  }
}

/* -- Discussion tips -- */
.discussion-tip-action {
  color: #a86f00;
}

.discussion-tip-action:hover,
.discussion-tip-action:focus-visible {
  color: #805000;
}

.discussion-tip-button-coin {
  display: inline-flex;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
}

.discussion-tip-button-coin img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.discussion-tip-placement {
  display: flex;
  min-height: 42px;
  justify-content: flex-end;
  margin-top: 8px;
}

.discussion-tip-placement-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 6px 7px 6px 12px;
  border: 0;
  background: transparent;
  color: #c96800;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.discussion-tip-placement-button:hover,
.discussion-tip-placement-button:focus-visible {
  color: #9c5000;
  background: #fff8e9;
  border-radius: var(--radius-pill);
}

.bang-detail-tip-placement {
  margin-top: 10px;
}

dialog.detail-dialog.discussion-tip-dialog {
  position: fixed;
  inset: 0;
  width: min(440px, calc(100vw - 28px));
  height: fit-content;
  max-height: calc(100dvh - 28px);
  margin: auto;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #fff;
}

.discussion-tip-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.discussion-tip-heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.discussion-tip-heading > div {
  min-width: 0;
  flex: 1;
}

.discussion-tip-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
}

.discussion-tip-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.discussion-tip-coin {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #fff4cc;
  font-size: 22px;
}

.discussion-tip-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.discussion-tip-option {
  display: grid;
  gap: 3px;
  min-height: 66px;
  padding: 11px 12px;
  border: 1px solid #eadfbe;
  border-radius: 12px;
  background: #fffdf7;
  color: #725118;
  text-align: left;
  cursor: pointer;
}

.discussion-tip-option strong {
  color: #8b5a00;
  font-size: 15px;
}

.discussion-tip-option span {
  color: #826d45;
  font-size: 12px;
}

.discussion-tip-option:hover,
.discussion-tip-option.selected {
  border-color: #d79a19;
  background: #fff3c9;
  box-shadow: 0 0 0 2px rgba(215, 154, 25, 0.14);
}

.discussion-tip-message-label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.discussion-tip-message-label small {
  color: var(--muted);
  font-weight: 500;
}

.discussion-tip-message-label textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid #d9dfe8;
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
}

.discussion-tip-error {
  margin: -4px 0 0;
  color: #c63f35;
  font-size: 13px;
}

.discussion-tip-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.discussion-tip-notice .discussion-tip-actions {
  margin-top: 2px;
}

.discussion-tip-comments {
  overflow: hidden;
}

.discussion-tip-comment-list {
  display: grid;
  background: #fff;
}

.discussion-tip-comment {
  display: grid;
  gap: 7px;
  padding: 13px 14px;
  border-top: 1px solid #f0e7d5;
}

.discussion-tip-comment:first-child {
  border-top: 0;
}

.discussion-tip-comment-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
}

.discussion-tip-comment-meta > strong,
.discussion-tip-comment-meta .bang-author-link,
.discussion-tip-comment-meta .deal-post-author-link {
  font-weight: 800;
}

.account-auth-options .account-register-link {
  margin-left: auto;
}

.discussion-tip-comment-meta time {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.discussion-tip-comment-amount {
  color: #9a6500;
  font-size: 12px;
  font-weight: 800;
}

.discussion-tip-comment p {
  margin: 0;
  color: #4f5968;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}

@media (max-width: 480px) {
  .discussion-tip-panel {
    padding: 18px;
  }

  .discussion-tip-comment-meta time {
    width: 100%;
    margin-left: 0;
  }
}
