:root {
  --black: #000;
  --white: #fff;
  --grey: #888;
  --grey-dim: #888;
  --grey-border: #333;
  --status-gone: #555;
  --nav-height: 60px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  border-radius: 999px;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  background: none;
  color: var(--white);
  border: none;
  outline: none;
}

img {
  display: block;
  max-width: 100%;
}

/* Layout */
#app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--black);
  transition: transform 0.25s ease;
}
#app-header.header--hidden {
  transform: translateY(-100%);
}

#app {
  min-height: 100vh;
  padding-top: 60px;
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom));
  background: var(--black);
}

.page {
  min-height: 100vh;
  background: var(--black);
}

@keyframes page-enter {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page--enter {
  animation: page-enter 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* Loading */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50vh;
  color: var(--grey);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  padding-left: 20px;
  padding-right: 20px;
  background: var(--black);
  border-top: 1px solid var(--grey-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  transition: opacity 0.15s;
}

.nav-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
  opacity: 0.5;
  transition: opacity 0.15s;
}

.nav-item:hover .nav-icon {
  opacity: 0.75;
}

.nav-item.active .nav-icon {
  opacity: 0.25;
}

/* + icon: always white, same size */
.nav-item--submit {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

.nav-item--submit .nav-icon {
  width: 22px;
  height: 22px;
  opacity: 1;
}

.nav-item--submit:hover .nav-icon {
  opacity: 0.8;
}

/* Status badge */
.status-badge {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid currentColor;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.8;
}

/* Visible artworks carry no badge */
.status-badge--visible { display: none; }

/* Gone — minimal, archival */
.status-badge--gone { color: var(--status-gone); }

/* Page header */
.page-header {
  padding: 24px 16px 16px;
  border-bottom: 1px solid var(--grey-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-header img.logo {
  height: 20px;
  width: auto;
  filter: invert(0);
}

.page-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}

/* Feed (tabs removed — discovery lives in Search) */

/* ── Feed mode bar (Recent / Popular / Following) ── */
.feed-mode-bar {
  display: flex;
  gap: 0;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 60px;
  z-index: 10;
}

.feed-mode-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--grey);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  transition: color 0.15s, border-color 0.15s;
}

.feed-mode-btn:hover { color: var(--white); }
.feed-mode-btn.active { color: var(--white); border-bottom-color: var(--white); }

.feed-stub {
  padding: 48px 16px;
  text-align: center;
  color: var(--grey-dim);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Artwork cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--grey-border);
}

@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--black);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
}

.card:hover .card-overlay {
  opacity: 1;
}

.card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-no-photo,
.card-photo--placeholder {
  width: 100%;
  height: 100%;
  background: #808080;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
  padding: 32px 10px 10px;
  opacity: 1;
  transition: opacity 0.2s;
}

.card-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-artist {
  font-size: 11px;
  color: var(--grey);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-likes {
  font-size: 11px;
  color: var(--grey);
}

.card-first-spotted {
  font-size: 10px;
  color: var(--grey-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Map */
/* Search bar pinned above the map */
.map-search-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--grey-border);
  background: var(--black);
}

.map-wrap {
  position: relative;
}

.map-container {
  height: calc(100vh - 60px - 49px - var(--nav-height) - var(--safe-bottom));
  width: 100%;
}

/* Mode toggle pill */
.map-mode-toggle {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 500;
  display: flex;
  background: #000;
  border: 1px solid rgba(255,255,255,0.15);
  overflow: hidden;
}

.map-mode-btn {
  padding: 6px 14px;
  font-size: 11px;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.map-mode-btn:hover {
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.05);
}

.map-mode-btn--active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.map-mode-btn + .map-mode-btn {
  border-left: 1px solid rgba(255,255,255,0.15);
}

.map-container .leaflet-container {
  background: #000;
}

/* Attribution — transparent, minimal, low-contrast */
.leaflet-control-attribution {
  background: transparent !important;
  box-shadow: none !important;
  font-size: 9px !important;
  color: rgba(255,255,255,0.28) !important;
  padding: 0 4px 2px !important;
}
.leaflet-control-attribution a {
  color: rgba(255,255,255,0.28) !important;
}
.leaflet-control-attribution a:hover {
  color: rgba(255,255,255,0.5) !important;
}

/* Black zoom controls */
.leaflet-control-zoom {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.leaflet-control-zoom a {
  background: #000 !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 0 !important;
  font-size: 18px !important;
  font-weight: 300 !important;
  line-height: 28px !important;
  width: 28px !important;
  height: 28px !important;
}
.leaflet-control-zoom a:hover {
  background: #1c1c1c !important;
  color: #fff !important;
}
.leaflet-control-zoom-in {
  border-bottom: none !important;
}


.map-popup .leaflet-popup-content-wrapper {
  background: #000;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.7);
  color: #fff;
  padding: 0;
  overflow: hidden;
}

.map-popup .leaflet-popup-tip-container {
  display: none;
}

.map-popup .leaflet-popup-content {
  margin: 0;
  width: 180px !important;
}

.popup-inner {
  cursor: pointer;
}

.popup-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
}

.popup-thumb-placeholder {
  width: 100%;
  height: 80px;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.popup-body {
  padding: 9px 10px 10px;
}

.popup-title {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 4px;
}

.popup-artist {
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 2px;
  letter-spacing: 0.01em;
}

.popup-contributor {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.02em;
}

/* Artwork detail */
.artwork-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--grey-border);
}

.artwork-back {
  padding: 14px 16px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.artwork-back:hover { color: var(--white); }

.artwork-edit-btn {
  padding: 14px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  cursor: pointer;
  flex-shrink: 0;
}

.artwork-edit-btn:hover { color: var(--white); }

/* Edit sheet */
.edit-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(0, 0, 0, 0.6);
}

.edit-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8001;
  background: #111;
  border-top: 1px solid var(--grey-border);
  border-radius: 12px 12px 0 0;
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  padding-bottom: env(safe-area-inset-bottom);
}

.edit-sheet--open { transform: translateY(0); }

.edit-sheet-handle {
  width: 36px;
  height: 4px;
  background: #333;
  border-radius: 2px;
  margin: 10px auto 6px;
}

.edit-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 14px;
  border-bottom: 1px solid var(--grey-border);
}

.edit-sheet-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.edit-sheet-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  flex-shrink: 0;
}

.edit-sheet-close:hover { background: #2a2a2a; }

.edit-sheet-body {
  padding: 20px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.edit-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.edit-label {
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--grey-dim);
}

.edit-input,
.edit-textarea,
.edit-select {
  background: #000;
  border: 1px solid var(--grey-border);
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  padding: 11px 12px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  resize: none;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.edit-input:focus,
.edit-textarea:focus,
.edit-select:focus {
  border-color: var(--grey);
}

.edit-input:disabled { opacity: 0.35; }

.edit-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.edit-toggle-label {
  font-size: 13px;
  color: var(--grey);
}

.edit-toggle {
  position: relative;
  width: 44px;
  height: 26px;
  background: #333;
  border-radius: 13px;
  cursor: pointer;
  transition: background 0.18s;
  flex-shrink: 0;
}

.edit-toggle--on { background: var(--white); }

.edit-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #666;
  border-radius: 50%;
  transition: transform 0.18s, background 0.18s;
}

.edit-toggle--on .edit-toggle-knob {
  transform: translateX(18px);
  background: #000;
}

.edit-save-btn {
  width: 100%;
  padding: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
  margin-top: 4px;
}

.edit-save-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.edit-save-btn:hover:not(:disabled) { opacity: 0.88; }
.edit-save-btn--error { background: #c0392b; color: #fff; }

.edit-delete-zone {
  border-top: 1px solid var(--grey-border);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.edit-delete-label {
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #555;
}

.edit-delete-btn {
  width: 100%;
  padding: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #c0392b;
  color: #fff;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}

.edit-delete-btn:hover { opacity: 0.85; }

.edit-delete-confirm-msg {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.5;
  margin: 0 0 12px;
}

.edit-delete-confirm-row {
  display: flex;
  gap: 10px;
}

.edit-confirm-btn {
  flex: 1;
  padding: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}

.edit-confirm-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.edit-confirm-btn--cancel {
  background: #222;
  color: var(--grey);
}

.edit-confirm-btn--cancel:hover:not(:disabled) { opacity: 0.75; }

.edit-confirm-btn--destroy {
  background: #c0392b;
  color: #fff;
}

.edit-confirm-btn--destroy:hover:not(:disabled) { opacity: 0.85; }

.artwork-primary-photo {
  width: 100%;
  height: auto;
  display: block;
}

.artwork-primary-photo--placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #808080;
  display: block;
}

/* ── Artwork detail: spotter / post header ─────────────────────────────── */
.artwork-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  cursor: pointer;
}
.artwork-post-header:active { opacity: 0.7; }
.artwork-post-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.artwork-post-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  background: var(--grey-border);
}
.artwork-post-avatar--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--grey);
  background: var(--grey-border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.artwork-post-username {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
}
.artwork-post-time {
  font-size: 12px;
  color: var(--grey);
}

.artwork-photo-strip {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  background: var(--grey-border);
  scrollbar-width: none;
}

.artwork-photo-strip::-webkit-scrollbar { display: none; }

.artwork-strip-photo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.artwork-strip-photo:hover,
.artwork-strip-photo.active {
  opacity: 1;
}

.artwork-info {
  padding: 20px 16px;
  border-bottom: 1px solid var(--grey-border);
}

.artwork-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 6px;
}

.artwork-attribution {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 12px;
}

.artwork-attr-label {
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--grey-dim);
  flex-shrink: 0;
}

.artwork-artist {
  font-size: 14px;
  color: var(--grey);
}

.artwork-desc {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.6;
  margin-top: 12px;
}

.artwork-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.artwork-tag {
  font-size: 11px;
  color: var(--grey);
  border: 1px solid var(--grey-border);
  padding: 2px 8px;
  letter-spacing: 0.05em;
}

.artwork-wall {
  font-size: 12px;
  color: var(--grey);
  margin-top: 10px;
}

.artwork-credit {
  font-size: 11px;
  color: var(--grey-dim);
  margin-top: 8px;
}

.artwork-credit a {
  color: var(--grey);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.artwork-actions {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--grey-border);
}

.artwork-actions-left {
  display: flex;
  gap: 16px;
  align-items: center;
}

.artwork-by {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.artwork-by-label {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-dim);
}

.artwork-by-link {
  font-size: 12px;
  color: var(--grey);
  text-decoration: none;
}

.artwork-by-link:hover { color: var(--white); }

.artwork-status-row {
  padding: 10px 16px;
  border-bottom: 1px solid var(--grey-border);
}

.artwork-status-pill {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--grey-border);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-dim);
  background: transparent;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--grey);
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.15s;
}

.action-btn:hover { color: var(--white); }
.action-btn.active { color: var(--white); }
.action-btn .fi-icon { opacity: 0.5; }
.action-btn:hover .fi-icon,
.action-btn.active .fi-icon { opacity: 1; }

.status-controls {
  padding: 16px;
  border-bottom: 1px solid var(--grey-border);
}

.status-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-dim);
  margin-bottom: 10px;
}

.status-buttons {
  display: flex;
  gap: 8px;
}

.status-btn {
  padding: 6px 14px;
  border: 1px solid var(--grey-border);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  background: none;
  font-family: inherit;
}

.status-btn:hover { border-color: var(--grey); color: var(--white); }
.status-btn.active { border-color: var(--white); color: var(--white); }

/* Edit sheet — status picker */
.edit-status-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.edit-status-opt {
  padding: 6px 14px;
  border: 1px solid var(--grey-border);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  background: none;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  font-family: inherit;
}

.edit-status-opt:hover { border-color: var(--grey); color: var(--white); }
.edit-status-opt--active { border-color: var(--white); color: var(--white); }

/* Comments */
.comments-section {
  padding: 16px;
}

.comments-title {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-dim);
  margin-bottom: 16px;
}

.comment {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--grey-border);
}

.comment-avatar-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  display: block;
}

.comment-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-avatar--placeholder {
  background: var(--grey-border);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

.comment-content { flex: 1; min-width: 0; }

.comment-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.comment-user-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--white);
  transition: opacity 0.15s;
}
.comment-user-btn:hover { opacity: 0.75; }

.comment-time {
  font-size: 11px;
  color: var(--grey-dim);
}

.comment-body {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.5;
}

.comment-form {
  margin-top: 16px;
  display: flex;
  gap: 0;
  border: 1px solid var(--grey-border);
}

.comment-input {
  flex: 1;
  padding: 10px 12px;
  font-size: 13px;
  background: none;
  color: var(--white);
  border: none;
  outline: none;
  font-family: inherit;
}

.comment-input::placeholder { color: var(--grey-dim); }

.comment-form-login {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--grey-border);
  text-align: center;
}

.comment-form-login a {
  font-size: 13px;
  color: var(--grey);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.comment-form-login a:hover { color: var(--white); }

/* ── Comment drawer (feed → piece page shortcut) ── */
.comment-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1080;
  background: transparent;
}

.comment-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--nav-height) + var(--safe-bottom));
  height: 65vh;
  z-index: 1085;
  background: var(--black);
  border-top: 1px solid var(--grey-border);
  display: flex;
  flex-direction: column;
  transform: translateY(calc(100% + 2px));
  transition: transform 0.25s ease;
}

.comment-drawer--open {
  transform: translateY(0);
}

.comment-drawer-handle {
  width: 36px;
  height: 3px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
  margin: 10px auto 0;
  flex-shrink: 0;
}

.comment-drawer-header {
  flex-shrink: 0;
  padding: 10px 12px 10px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-dim);
  border-bottom: 1px solid var(--grey-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.comment-drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  flex-shrink: 0;
}

.comment-drawer-close:hover { background: #2a2a2a; }

.comment-drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px;
  -webkit-overflow-scrolling: touch;
}

.comment-drawer-list .comment {
  border-bottom: 1px solid var(--grey-border);
}

.comment-drawer-empty {
  padding: 24px 0;
  font-size: 13px;
  color: var(--grey-dim);
  text-align: center;
}

.comment-drawer-footer {
  flex-shrink: 0;
  display: flex;
  border-top: 1px solid var(--grey-border);
}

.comment-drawer-footer--login {
  justify-content: center;
  padding: 14px 16px;
}

.comment-drawer-login-link {
  font-size: 13px;
  color: var(--grey);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.comment-drawer-login-link:hover { color: var(--white); }

.comment-drawer-submit {
  white-space: nowrap;
}

.comment-submit {
  padding: 10px 14px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  border-left: 1px solid var(--grey-border);
  cursor: pointer;
  background: none;
  font-family: inherit;
  transition: color 0.15s;
}

.comment-submit:hover { color: var(--white); }

/* Submit form */
.submit-form {
  padding: 20px 16px;
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-dim);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 10px 0;
  border-bottom: 1px solid var(--grey-border);
  font-size: 14px;
  background: none;
  color: var(--white);
  transition: border-color 0.15s;
}

.form-input:focus { border-bottom-color: var(--white); }
.form-input::placeholder { color: var(--grey-dim); }

.form-textarea {
  width: 100%;
  padding: 10px 0;
  border-bottom: 1px solid var(--grey-border);
  font-size: 14px;
  background: none;
  color: var(--white);
  resize: none;
  min-height: 80px;
  transition: border-color 0.15s;
  line-height: 1.5;
}

.form-textarea:focus { border-bottom-color: var(--white); }
.form-textarea::placeholder { color: var(--grey-dim); }

.form-select {
  width: 100%;
  padding: 10px 0;
  border-bottom: 1px solid var(--grey-border);
  font-size: 14px;
  background: none;
  color: var(--white);
  appearance: none;
  cursor: pointer;
}

.form-select option { background: var(--black); }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--grey-border);
}

.toggle-label {
  font-size: 14px;
  color: var(--grey);
}

.toggle-switch {
  width: 36px;
  height: 20px;
  background: var(--grey-border);
  border: 1px solid var(--grey-dim);
  position: relative;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.toggle-switch.on {
  background: var(--white);
  border-color: var(--white);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: var(--grey-dim);
  transition: transform 0.2s, background 0.2s;
}

.toggle-switch.on::after {
  transform: translateX(16px);
  background: var(--black);
}

/* Photo upload */
.photo-upload {
  position: relative;
  border: 1px solid var(--grey-border);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}

.photo-upload:hover { border-color: var(--grey); }

.photo-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.photo-upload-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  text-align: center;
  pointer-events: none;
}

.photo-preview-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.photo-upload-hint {
  font-size: 11px;
  color: var(--grey-dim);
  pointer-events: none;
}

/* GPS */
.gps-btn {
  padding: 8px 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s;
  background: none;
  border: none;
  font-family: inherit;
}

.gps-btn:hover { color: var(--white); }

.gps-status {
  font-size: 12px;
  color: var(--grey);
  margin-top: 6px;
}

.location-map {
  height: 240px;
  margin-top: 12px;
  border: 1px solid var(--grey-border);
}

/* ── Submit flow (redesigned) ── */
.submit-flow {
  padding: 0 16px 48px;
  max-width: 600px;
  margin: 0 auto;
}

.submit-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--grey-border);
}

.submit-section--last { border-bottom: none; }

.submit-section-hd {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.submit-section-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 500;
}

.submit-section-badge {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-dim);
}

.submit-section-opt {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-dim);
}

/* Photo pick */
.photo-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.photo-pick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 16px;
  border: 1px solid var(--grey-border);
  border-radius: 30px;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--grey);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  user-select: none;
  -webkit-user-select: none;
}

.photo-pick-btn:hover  { border-color: var(--white); color: var(--white); }
.photo-pick-btn:active { opacity: 0.6; }

/* Photo preview */
.photo-preview-wrap { position: relative; }

.photo-preview-img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  display: block;
  border-radius: 24px;
}

.photo-change-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.75);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--white);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  user-select: none;
}

/* Location options */
.loc-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.loc-opt-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 16px;
  border: 1px solid var(--grey-border);
  border-radius: 30px;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--grey);
  cursor: pointer;
  background: none;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
}

.loc-opt-btn:hover  { border-color: var(--white); color: var(--white); }
.loc-opt-btn:active { opacity: 0.6; }
.loc-opt-btn:disabled { opacity: 0.45; cursor: default; }

.loc-opt-btn--done {
  border-color: var(--white);
  color: var(--white);
}

/* Did you mean */
.dym-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--grey-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.dym-question {
  font-size: 13px;
  color: var(--grey);
  margin-bottom: 12px;
  line-height: 1.4;
}

.dym-question strong { color: var(--white); font-weight: 500; }

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

.dym-btn {
  padding: 6px 12px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--grey-border);
  background: none;
  color: var(--grey);
  transition: border-color 0.15s, color 0.15s;
}

.dym-btn:hover   { border-color: var(--white); color: var(--white); }
.dym-btn--yes    { border-color: var(--white); color: var(--white); }

/* Artist attribution mode toggle */
.attr-options {
  display: flex;
  gap: 8px;
}

/* Collapsible artist select panel */
#attr-select-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#attr-select-panel.attr-panel--open {
  grid-template-rows: 1fr;
}

.attr-select-inner {
  overflow: hidden;
  padding-top: 0;
  transition: padding-top 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#attr-select-panel.attr-panel--open .attr-select-inner {
  padding-top: 14px;
}

.attr-option {
  padding: 7px 16px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--grey-border);
  background: none;
  color: var(--grey);
  transition: border-color 0.15s, color 0.15s;
}

.attr-option.active {
  border-color: var(--white);
  color: var(--white);
}

.attr-option:hover:not(.active) {
  border-color: var(--grey);
  color: var(--grey);
}

/* "This is my work" panel */
.my-work-confirm {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--grey-border);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
}

.my-work-name {
  font-weight: 500;
  color: var(--white);
  font-size: 14px;
  flex: 1;
}

.my-work-edit-btn {
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--grey-border);
  background: none;
  color: var(--grey);
  transition: border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}

.my-work-edit-btn:hover { border-color: var(--white); color: var(--white); }

.my-work-hint {
  font-size: 11px;
  color: var(--grey-dim);
  margin-top: 10px;
  line-height: 1.5;
}

.my-work-loading {
  font-size: 12px;
  color: var(--grey-dim);
  padding: 8px 0;
}

/* Submit footer */
.submit-footer { padding-top: 8px; }

.submit-error {
  margin-top: 10px;
  font-size: 12px;
  color: #e05555;
  text-align: center;
}

.submit-btn {
  width: 100%;
  padding: 14px 28px;
  background: var(--white);
  color: var(--black);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  margin-top: 8px;
  transition: opacity 0.15s;
}

.submit-btn:hover { opacity: 0.9; }
.submit-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ═══════════════════════════════════════════════════════════════════════════
   Profile
═══════════════════════════════════════════════════════════════════════════ */
.profile-header {
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--grey-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

/* Avatar */
.profile-avatar-wrap {
  flex-shrink: 0;
  position: relative;
  width: fit-content;
}

.profile-avatar-wrap--editable {
  cursor: pointer;
}

.profile-avatar-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}

.profile-avatar-wrap--editable:hover .profile-avatar-overlay,
.profile-avatar-wrap--uploading .profile-avatar-overlay {
  opacity: 1;
}

.profile-avatar-wrap--uploading .profile-avatar-overlay::after {
  content: "…";
}

.profile-avatar-img,
.profile-avatar-placeholder {
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
}

.profile-avatar-placeholder {
  background: var(--grey-border);
  border: 1.5px solid rgba(255,255,255,0.15);
}

/* Identity */
.profile-identity { display: flex; flex-direction: column; gap: 4px; }

.profile-display-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.profile-username {
  font-size: 13px;
  color: var(--grey);
}

.profile-bio {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.5;
  margin-top: 4px;
}

/* Social stats row */
.profile-social-row {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.profile-social-stat {
  flex: none;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  font-family: inherit;
  transition: opacity 0.15s;
}
.profile-social-stat:hover { opacity: 0.75; }
.profile-social-stat--plain { cursor: default; }
.profile-social-stat--plain:hover { opacity: 1; }

.profile-stat-value {
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.profile-stat-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}

/* Profile action button (Edit / Follow) */
.profile-action-btn {
  align-self: flex-start;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 20px;
  cursor: pointer;
  transition: border-color 0.15s, opacity 0.15s;
}
.profile-action-btn:hover { border-color: var(--white); }
.profile-action-btn--following {
  border-color: var(--grey);
  color: var(--grey);
}

/* Tabs */
.profile-tabs {
  display: flex;
  border-bottom: 1px solid var(--grey-border);
  overflow-x: auto;
  scrollbar-width: none;
}
.profile-tabs::-webkit-scrollbar { display: none; }

.profile-tab {
  flex-shrink: 0;
  padding: 12px 20px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.15s;
}
.profile-tab:hover { color: var(--white); }
.profile-tab.active { color: var(--white); border-bottom-color: var(--white); }

/* ── User list overlay (followers / following) ── */
.user-list-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.user-list-panel {
  background: #111;
  width: 100%;
  max-width: 480px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--grey-border);
}

.user-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--grey-border);
  flex-shrink: 0;
}

.user-list-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.user-list-close {
  background: none;
  border: none;
  color: var(--grey);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.user-list-body {
  overflow-y: auto;
  flex: 1;
}

.user-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--grey-border);
  color: var(--white);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.1s;
}
.user-list-item:hover { background: rgba(255,255,255,0.04); }

.user-list-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.user-list-avatar--placeholder {
  background: var(--grey-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255,255,255,0.5);
}

.user-list-name {
  font-size: 14px;
  font-weight: 500;
}
.user-list-username {
  font-size: 12px;
  color: var(--grey);
  margin-top: 1px;
}

/* Empty state */
.empty-state {
  padding: 64px 16px;
  text-align: center;
  color: var(--grey-dim);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.empty-state-sub {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--grey-dim);
  text-transform: none;
  opacity: 0.7;
}

/* Error */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60vh;
  gap: 16px;
  text-align: center;
  padding: 20px;
}

.error-code {
  font-size: 48px;
  font-weight: 300;
  color: var(--grey-dim);
}

.error-msg {
  font-size: 12px;
  color: var(--grey);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Map filter */
.map-filter-todo {
  padding: 10px 16px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--grey-dim);
  border-bottom: 1px solid var(--grey-border);
}

/* Scrollbar */
::-webkit-scrollbar { width: 0; height: 0; }

/* ── Artist directory ── */
.artists-list {
  padding: 0;
}

.artist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--grey-border);
  cursor: pointer;
  transition: background 0.1s;
}

.artist-row:hover { background: var(--grey-border); }

.artist-row-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.artist-row-aliases {
  font-size: 11px;
  color: var(--grey-dim);
  margin-top: 2px;
  letter-spacing: 0.05em;
}

.artist-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
  margin-left: 16px;
}

.artist-row-count {
  font-size: 16px;
  font-weight: 500;
}

.artist-row-count-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-dim);
}

/* ── Artist profile header ── */
.artist-header {
  position: relative;
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--grey-border);
}

.artist-header-info {
  margin-left: 32px;
}

.artist-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.artist-handle {
  font-size: 12px;
  color: var(--grey);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.artist-aliases {
  font-size: 11px;
  color: var(--grey-dim);
  letter-spacing: 0.03em;
}
.artist-user-link {
  display: inline-block;
  font-size: 12px;
  color: var(--grey);
  text-decoration: none;
  margin-top: 4px;
  letter-spacing: 0.03em;
}
.artist-user-link:hover { color: var(--white); }

.artist-header-stats {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  margin-left: 32px;
}

/* Artist stats row (richer page) */
.artist-stats-row {
  display: flex;
  gap: 0;
  margin-top: 16px;
  margin-left: 32px;
  border-top: 1px solid var(--grey-border);
  padding-top: 12px;
}

.artist-stat-item {
  flex: 1;
  text-align: center;
  padding: 0 4px;
}
.artist-stat-item + .artist-stat-item {
  border-left: 1px solid var(--grey-border);
}

.artist-stat-value {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.2;
}

.artist-stat-label {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-dim);
  margin-top: 3px;
}

/* Artist locations line */
.artist-locations {
  margin-top: 12px;
  margin-left: 32px;
  font-size: 11px;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.artist-locations-label {
  color: var(--grey-dim);
  margin-right: 4px;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.artist-locations-list {
  color: var(--grey);
}

/* ── Artist / back button in page headers ── */
.page-back-btn {
  position: absolute;
  top: 20px;
  left: 16px;
  background: none;
  border: none;
  color: var(--grey);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.page-back-btn:hover { color: var(--white); }

/* ── Page header link (e.g. Artists) ── */
.page-header-link {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  text-decoration: none;
  margin-left: auto;
  padding: 0 4px;
  transition: color 0.15s;
}

.page-header-link:hover { color: var(--white); }

/* ── Artist name as link in cards / artwork detail ── */
.card-artist-link,
.artwork-artist-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--grey-border);
  cursor: pointer;
  transition: border-color 0.15s;
}

.card-artist-link:hover,
.artwork-artist-link:hover {
  border-bottom-color: var(--grey);
}

/* ── Artist autocomplete ── */
.artist-autocomplete-wrap {
  position: relative;
}

.autocomplete-dropdown {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #111;
  border: 1px solid var(--grey-border);
  z-index: 200;
  max-height: 220px;
  overflow-y: auto;
}

.autocomplete-dropdown.open {
  display: block;
}

.autocomplete-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--grey-border);
  font-size: 13px;
  transition: background 0.1s;
}

.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background: var(--grey-border); }

.autocomplete-item-name { font-weight: 500; }

.autocomplete-item-alias {
  font-size: 11px;
  color: var(--grey-dim);
  flex: 1;
}

.autocomplete-item-count {
  font-size: 11px;
  color: var(--grey-dim);
  margin-left: auto;
  flex-shrink: 0;
}

.autocomplete-item--new {
  color: var(--grey);
  font-size: 12px;
  font-style: italic;
}

/* ── Feed header ── */
.feed-header {
  justify-content: space-between;
  padding: 0 20px;
  height: 60px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.feed-logo {
  height: 20px;
  width: auto;
  display: block;
  object-fit: contain;
}

.burger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: opacity 0.15s;
}
.burger-btn:hover { opacity: 1; }

.burger-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

/* ── Feed list — responsive grid ── */
/* Mobile: single column, no gap (divider lines separate cards) */
.feed-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
}

/* Tablet: 2 columns */
@media (min-width: 640px) {
  .feed-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 12px;
    padding: 0 12px;
  }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
  .feed-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 0 16px;
    padding: 0 16px;
  }
}

/* Wide: 4 columns */
@media (min-width: 1440px) {
  .feed-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Feed item (list card) ── */
.feed-item {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Feed card: header (avatar + username) ── */
.fi-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
}

.fi-avatar-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
}

.fi-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0;
  text-transform: uppercase;
  font-family: inherit;
}

.fi-avatar--photo {
  object-fit: cover;
  border: none;
}

.fi-user-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: opacity 0.15s;
}
.fi-user-btn:hover { opacity: 0.75; }

.fi-timestamp {
  margin-left: auto;
  font-size: 11px;
  color: var(--grey-dim);
  letter-spacing: 0.01em;
  padding-right: 2px;
  white-space: nowrap;
}

/* ── Feed card: image ── */
.fi-photo-wrap {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}

.fi-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fi-photo-placeholder {
  width: 100%;
  height: 100%;
  background: #808080;
}

/* Artist label — bottom-left corner of image */
.fi-artist-overlay {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(0, 0, 0, 0.48);
  padding: 3px 7px;
  pointer-events: none;
  line-height: 1.5;
}

/* Gone badge — top-right corner of image */
.fi-gone-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.55);
  padding: 3px 7px;
  pointer-events: none;
  line-height: 1.5;
}

/* ── Feed card: actions ── */
.fi-actions {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 6px 8px;
  border-bottom: 1px solid var(--grey-border);
}

.fi-actions-spacer {
  flex: 1;
}

.fi-action-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  color: #808080;
  cursor: pointer;
  padding: 8px 10px;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: color 0.15s, opacity 0.15s;
  font-family: inherit;
}

.fi-action-btn.active { color: var(--white); }

/* PNG icon images — crisp white, opacity controls state */
.fi-icon {
  width: 17px;
  height: 17px;
  display: block;
  object-fit: contain;
  opacity: 0.5;
  transition: opacity 0.15s;
}
.fi-action-btn:hover .fi-icon { opacity: 1; }
.fi-like-btn.active .fi-icon,
.fi-save-btn.active .fi-icon { opacity: 1; }

.fi-action-count {
  font-size: 14px;
  color: inherit;
  font-weight: 400;
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* Search / Discovery                                                          */
/* ══════════════════════════════════════════════════════════════════════════ */

.search-page {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* Search bar */
.search-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--grey-border);
  position: sticky;
  top: 0;
  background: var(--black);
  z-index: 10;
}

.search-icon {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 0.4;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.01em;
  caret-color: var(--white);
}

.search-input::placeholder { color: var(--grey-dim); }
.search-input::-webkit-search-cancel-button { display: none; }

.search-clear {
  background: none;
  border: none;
  color: var(--grey-dim);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
  flex-shrink: 0;
}
.search-clear:hover { color: var(--white); }

/* Discovery sections */
.discovery {
  padding: 8px 0 24px;
}

.discovery-section {
  padding: 20px 0 4px;
}

.discovery-title {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-dim);
  padding: 0 16px 10px;
}

/* Horizontal scroll chip row (artists, walls, contributors) */
.discovery-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px;
  scrollbar-width: none;
}
.discovery-scroll::-webkit-scrollbar { display: none; }

.discovery-chip {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: none;
  border: 1px solid var(--grey-border);
  padding: 10px 14px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s;
  font-family: inherit;
  min-width: 100px;
}
.discovery-chip:hover { border-color: var(--grey); }

.discovery-chip-name {
  font-size: 13px;
  color: var(--white);
  letter-spacing: 0.02em;
}

.discovery-chip-sub {
  font-size: 10px;
  color: var(--grey-dim);
  letter-spacing: 0.05em;
}

/* Search empty state (no artworks in db) */
.search-empty-state {
  padding: 72px 32px 48px;
  text-align: center;
}
.search-empty-headline {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  margin: 0 0 6px;
}
.search-empty-sub {
  font-size: 13px;
  color: var(--grey);
  margin: 0 0 28px;
}
.search-empty-cta {
  display: inline-block;
  background: var(--white);
  color: var(--black);
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 11px 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.search-empty-cta:hover { opacity: 0.85; }

/* Search results */
.search-results {
  padding: 8px 0;
}

/* Grouped search result sections */
.search-section + .search-section {
  border-top: 1px solid var(--grey-border);
}

.search-section-heading {
  padding: 10px 16px 6px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-dim);
}

/* Query empty state (no results for a search) */
.search-empty-state--query {
  padding-top: 56px;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--grey-border);
  transition: background 0.1s;
}
.search-result:last-child { border-bottom: none; }
.search-result:hover { background: #0a0a0a; }

.sr-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--grey-border);
}
.sr-thumb-empty { background: var(--grey-border); }

.sr-type {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-dim);
  border: 1px solid var(--grey-border);
  padding: 2px 6px;
  flex-shrink: 0;
  line-height: 1.6;
}

.sr-content {
  flex: 1;
  min-width: 0;
}

.sr-primary {
  font-size: 14px;
  color: var(--white);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sr-secondary {
  font-size: 11px;
  color: var(--grey-dim);
  letter-spacing: 0.03em;
  margin-top: 2px;
}

.sr-arrow {
  color: var(--grey-dim);
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Header — right side cluster
═══════════════════════════════════════════════════════════════════════════ */
.header-right {
  display: flex;
  align-items: center;
  gap: 19px;
}

/* ── Notification bell button ── */
.notif-btn {
  position: relative;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0.5;
  transition: opacity 0.15s;
}
.notif-btn:hover { opacity: 1; }

.notif-bell-icon {
  width: 25px;
  height: 25px;
  display: block;
}

/* Unread badge */
.notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--white);
  color: var(--black);
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Notifications page
═══════════════════════════════════════════════════════════════════════════ */
.notif-page {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.notif-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--grey-border);
  flex-shrink: 0;
}

.notif-page-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notif-mark-all-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--grey);
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.15s;
  text-transform: uppercase;
}
.notif-mark-all-btn:hover { color: var(--white); }
.notif-mark-all-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Notification list */
.notif-list { flex: 1; }

.notif-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--grey-border);
  color: var(--white);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.1s;
  position: relative;
}
.notif-item:hover { background: rgba(255,255,255,0.04); }

.notif-item--unread {
  background: rgba(255,255,255,0.04);
  border-left: 2px solid rgba(255,255,255,0.5);
  padding-left: 14px;
}
.notif-item--unread:hover { background: rgba(255,255,255,0.07); }

/* Actor avatar */
.notif-avatar-wrap {
  flex-shrink: 0;
  position: relative;
}

.notif-avatar-img,
.notif-avatar-placeholder {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-avatar-placeholder {
  background: var(--grey-border);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
}

/* Extra actor count bubble on grouped notifications */
.notif-actor-count {
  position: absolute;
  bottom: -3px;
  right: -6px;
  background: #222;
  border: 1px solid var(--grey-border);
  color: rgba(255,255,255,0.7);
  font-size: 9px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 8px;
  line-height: 1.5;
  white-space: nowrap;
}

/* Content */
.notif-content { flex: 1; min-width: 0; }

.notif-message {
  font-size: 13px;
  line-height: 1.4;
  color: var(--white);
}

.notif-time {
  font-size: 11px;
  color: var(--grey-dim);
  margin-top: 3px;
}

/* Artwork thumbnail */
.notif-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Unread dot */
.notif-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--white);
  flex-shrink: 0;
}

/* Type icon badge overlaid bottom-left of avatar */
.notif-type-badge {
  position: absolute;
  bottom: -2px;
  left: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #111;
  border: 1px solid var(--grey-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Edit Profile page
═══════════════════════════════════════════════════════════════════════════ */
.ep-page {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.ep-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--grey-border);
  flex-shrink: 0;
}

.ep-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ep-cancel, .ep-save {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.15s;
  padding: 4px 0;
}
.ep-cancel { color: var(--grey); }
.ep-save { color: var(--white); font-weight: 500; }
.ep-cancel:hover, .ep-save:hover { opacity: 0.75; }
.ep-save:disabled { opacity: 0.4; cursor: not-allowed; }

/* Avatar */
.ep-avatar-section {
  display: flex;
  justify-content: center;
  padding: 28px 16px 20px;
  border-bottom: 1px solid var(--grey-border);
}

.ep-avatar-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
}

.ep-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.ep-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--grey-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
}

.ep-avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  opacity: 0;
  transition: opacity 0.15s;
}
.ep-avatar-wrap:hover .ep-avatar-overlay { opacity: 1; }

/* Fields */
.ep-fields {
  padding: 8px 0;
}

.ep-field {
  padding: 14px 16px;
  border-bottom: 1px solid var(--grey-border);
}

.ep-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-dim);
  margin-bottom: 6px;
}

.ep-input, .ep-textarea {
  display: block;
  width: 100%;
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  padding: 0;
  resize: none;
}
.ep-input::placeholder, .ep-textarea::placeholder { color: var(--grey-border); }

.ep-input-prefix-wrap {
  display: flex;
  align-items: center;
  gap: 2px;
}

.ep-at {
  color: var(--grey-dim);
  font-size: 14px;
}

.ep-input-username { flex: 1; }

.ep-field--section-divider {
  border-top: 1px solid var(--grey-border);
  margin-top: 8px;
}

.ep-artist-hint {
  font-size: 11px;
  color: var(--grey-dim);
  margin-bottom: 10px;
  line-height: 1.5;
}

.ep-error {
  margin: 16px;
  padding: 12px;
  border: 1px solid rgba(255,60,60,0.4);
  font-size: 12px;
  color: rgba(255,100,100,0.9);
  line-height: 1.5;
}

/* ─── Auth pages ─────────────────────────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 80px;
}
.auth-logo {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.auth-form {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
}
.auth-form-field {
  border-bottom: 1px solid var(--grey-border);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.auth-form-field:first-of-type { border-top: 1px solid var(--grey-border); }

.auth-field-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-dim);
  line-height: 1;
  pointer-events: none;
}

.auth-form-field input {
  width: 100%;
  font-size: 16px;
  background: none;
  color: var(--white);
  border: none;
  outline: none;
  padding: 0;
}
.auth-form-field input::placeholder { color: transparent; }
.auth-submit {
  margin-top: 24px;
  width: 100%;
  background: var(--white);
  color: var(--black);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px;
  border: none;
  cursor: pointer;
}
.auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-error {
  color: rgba(255,80,80,0.9);
  font-size: 12px;
  margin-top: 12px;
  text-align: center;
  line-height: 1.5;
}
.auth-switch {
  margin-top: 28px;
  font-size: 12px;
  color: var(--grey);
  letter-spacing: 0.04em;
}
.auth-switch a { color: var(--white); text-decoration: underline; }

/* ─── Burger / side menu ─────────────────────────────────────────────────────── */
.burger-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
  overflow: hidden;
}
.burger-menu--open { pointer-events: all; }

.burger-menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.burger-menu--open .burger-menu-overlay { opacity: 1; }

.burger-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 88vw);
  background: #080808;
  border-left: 1px solid var(--grey-border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: all;
}
.burger-menu--open .burger-menu-panel { transform: translateX(0); }

/* Close button row */
.bm-close-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 6px 20px;
  flex-shrink: 0;
}

.bm-logo {
  height: 20px;
  width: auto;
  display: block;
  object-fit: contain;
}
.bm-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  transition: background 0.15s;
  border: none;
}
.bm-close-btn:hover { background: #2a2a2a; }

/* Sections */
.bm-section {
  padding: 4px 12px 8px;
  flex-shrink: 0;
}
.bm-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  padding: 6px 10px 8px;
}

/* Nav items */
.bm-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 10px;
  border-radius: 10px;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s;
  margin-bottom: 2px;
  text-align: left;
  font-family: inherit;
  background: none;
  border: none;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
}
.bm-item:hover { background: #181818; }
.bm-item[hidden] { display: none; }

.bm-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}

/* Divider */
.bm-hr {
  border: none;
  border-top: 1px solid var(--grey-border);
  margin: 4px 0;
  flex-shrink: 0;
}

/* Spacer */
.bm-spacer { flex: 1; min-height: 24px; }

/* Footer */
.bm-footer {
  border-top: 1px solid var(--grey-border);
  padding: 16px 14px calc(var(--nav-height) + var(--safe-bottom) + 16px);
  flex-shrink: 0;
}
.bm-user-info {
  display: block;
  margin-bottom: 14px;
  cursor: pointer;
  border-radius: 8px;
  padding: 6px 8px;
  margin-left: -8px;
  transition: background 0.15s;
}
.bm-user-info:hover,
.bm-user-info:active {
  background: #181818;
}
.burger-menu-user {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  min-height: 18px;
}
.burger-menu-username {
  font-size: 12px;
  color: var(--grey);
  margin-top: 2px;
  min-height: 14px;
}
.bm-social-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--grey-dim);
}
.bm-social-row[hidden] { display: none; }
.bm-social-sep { color: var(--grey-dim); }
.bm-social-stat span:first-child { color: var(--white); font-weight: 500; }
.bm-signout-btn {
  width: 100%;
  padding: 12px;
  background: #181818;
  border-radius: 999px;
  border: 1px solid var(--grey-border);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  margin-bottom: 8px;
  transition: background 0.15s;
  font-family: inherit;
}
.bm-signout-btn:hover { background: #222; }
.bm-signout-btn[hidden] { display: none; }

.bm-signin-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--white);
  border-radius: 10px;
  color: var(--black);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  margin-bottom: 8px;
  transition: opacity 0.15s;
  font-family: inherit;
  border: none;
  letter-spacing: 0.02em;
}
.bm-signin-btn:hover { opacity: 0.88; }
.bm-signin-btn[hidden] { display: none; }

.bm-copyright {
  font-size: 10px;
  color: var(--grey-dim);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 10px;
}

/* ─── Auth: Google button + divider ─────────────────────────────────────────── */
.auth-divider {
  width: 100%;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 0;
  color: var(--grey);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--grey-border);
}
.auth-google-btn {
  width: 100%;
  max-width: 360px;
  background: none;
  color: var(--white);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 16px;
  border: 1px solid var(--grey-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  transition: border-color 0.15s;
}
.auth-google-btn:hover { border-color: #888; }
.auth-google-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* ─── Profile setup page ─────────────────────────────────────────────────────── */
.setup-page {
  justify-content: flex-start;
  padding-top: 48px;
}
.setup-subtitle {
  font-size: 12px;
  color: var(--grey);
  letter-spacing: 0.04em;
  margin: -28px 0 28px;
  text-align: center;
}
.setup-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.setup-avatar-inner {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid var(--grey-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  overflow: hidden;
  background: #111;
  transition: border-color 0.15s;
}
.setup-avatar-wrap:hover .setup-avatar-inner { border-color: #888; }
.setup-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.setup-avatar-label {
  font-size: 10px;
  color: var(--grey);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Tap / press feedback — :active states
═══════════════════════════════════════════════════════════════════════════ */
.nav-item:active {
  opacity: 0.5;
}

.fi-action-btn:active {
  opacity: 0.5;
  transform: scale(0.92);
}

.action-btn:active {
  opacity: 0.6;
  transform: scale(0.92);
}

.submit-btn:active:not(:disabled) {
  opacity: 0.75;
  transform: scale(0.98);
}

.profile-action-btn:active {
  opacity: 0.6;
}

.discovery-chip:active {
  opacity: 0.6;
}

/* Optimistic revert — brief red flash on API failure */
@keyframes optimistic-error-flash {
  0%   { color: #e05555; }
  60%  { color: #e05555; }
  100% { color: inherit; }
}

.optimistic-error {
  animation: optimistic-error-flash 0.8s ease forwards;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Skeleton screens
═══════════════════════════════════════════════════════════════════════════ */
@keyframes skeleton-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.sk-line,
.sk-circle,
.sk-feed-photo,
.sk-artwork-back,
.sk-artwork-photo,
.sk-card,
.sk-list-row {
  background: linear-gradient(90deg, #1c1c1c 25%, #272727 50%, #1c1c1c 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: 2px;
}

/* Lines */
.sk-line {
  height: 12px;
  margin-bottom: 10px;
}
.sk-line--short { width: 40%; }
.sk-line--med   { width: 60%; }
.sk-line--long  { width: 85%; }

/* Circle (avatar placeholder) */
.sk-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sk-circle--lg {
  width: 80px;
  height: 80px;
}

/* ── Feed skeleton ── */
.sk-feed {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .sk-feed { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .sk-feed { grid-template-columns: repeat(3, 1fr); }
}

.sk-feed-card {
  border-bottom: 1px solid var(--grey-border);
}

.sk-feed-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}

.sk-feed-photo {
  width: 100%;
  aspect-ratio: 1;
}

.sk-feed-actions {
  display: flex;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--grey-border);
}

.sk-feed-actions .sk-line { margin-bottom: 0; }

/* ── Artwork skeleton ── */
.sk-artwork {}

.sk-artwork-back {
  height: 42px;
  width: 100%;
  border-bottom: 1px solid var(--grey-border);
  border-radius: 0;
}

.sk-artwork-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
}

.sk-artwork-info {
  padding: 20px 16px;
}

/* ── Profile skeleton ── */
.sk-profile-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 16px 20px;
  border-bottom: 1px solid var(--grey-border);
}

.sk-profile-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 8px;
}

.sk-tabs {
  display: flex;
  gap: 24px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--grey-border);
}
.sk-tabs .sk-line { margin-bottom: 0; width: 48px; }

.sk-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--grey-border);
}

@media (min-width: 600px) {
  .sk-card-grid { grid-template-columns: repeat(3, 1fr); }
}

.sk-card {
  aspect-ratio: 3 / 4;
  border-radius: 0;
}

/* ── List skeleton ── */
.sk-list {
  padding: 0;
}

.sk-list-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid var(--grey-border);
  background: none;
  animation: none;
}

.sk-list-row .sk-line {
  display: block;
}

/* ── Form skeleton ── */
.sk-form {
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 480px;
  margin: 0 auto;
}

/* ── Map skeleton ── */
.sk-map {}

.sk-map-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 16px 16px;
  border-bottom: 1px solid var(--grey-border);
}
.sk-map-header .sk-line { margin-bottom: 0; }

.sk-map-filter {
  padding: 12px 16px;
  border-bottom: 1px solid var(--grey-border);
}
.sk-map-filter .sk-line { margin-bottom: 0; }

.sk-map-area {
  background: linear-gradient(90deg, #1c1c1c 25%, #272727 50%, #1c1c1c 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  height: calc(100vh - var(--nav-height) - var(--safe-bottom) - 90px);
  width: 100%;
}

/* ── Search skeleton ── */
.sk-search {}

.sk-search-bar {
  padding: 14px 16px;
  border-bottom: 1px solid var(--grey-border);
}
.sk-search-bar .sk-line { margin-bottom: 0; }

/* ─── Shell hidden (landing, legal pages) ───────────────────────────────────── */
.app--shell-hidden #app-header,
html.app--shell-hidden #app-header,
.app--shell-hidden #bottom-nav,
html.app--shell-hidden #bottom-nav {
  display: none !important;
}
.app--shell-hidden #app {
  padding-top: 0;
  padding-bottom: 0;
}

/* ─── Landing page ───────────────────────────────────────────────────────────── */
.landing-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #000;
}

.landing-logo-block {
  flex-shrink: 0;
  width: 100%;
  padding: 20px;
}

.landing-logo-icon {
  width: 100%;
  height: auto;
  display: block;
}
@media (min-width: 600px) {
  .landing-logo-icon { max-width: 500px; margin: 0 auto; }
}

.landing-wordmark {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  text-transform: uppercase;
}

.landing-actions {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 32px calc(80px + env(safe-area-inset-bottom, 0px));
  width: 100%;
}

.landing-actions .landing-btn {
  width: 100%;
  max-width: 260px;
}

.landing-btn {
  width: 100%;
  padding: 13px 20px;
  border-radius: 100px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s, opacity 0.15s;
}
.landing-btn:active { opacity: 0.7; }

.landing-btn--login {
  background: #fff;
  color: #000;
}
.landing-btn--login:hover { background: #e8e8e8; }

.landing-btn--signup {
  background: #555;
  color: #fff;
}
.landing-btn--signup:hover { background: #6a6a6a; }

.landing-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  background: #000;
}

.landing-footer-copy {
  font-size: 11px;
  color: #555;
  letter-spacing: 0.04em;
}

.landing-footer-links {
  display: flex;
  gap: 18px;
}

.landing-footer-link {
  font-size: 11px;
  color: #555;
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: 0.02em;
}

/* ─── Legal pages (Terms / Privacy) ─────────────────────────────────────────── */
.legal-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #000;
}

.legal-content {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 24px 100px;
}

.legal-back {
  background: none;
  border: none;
  color: #666;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  margin-bottom: 36px;
  display: block;
}
.legal-back:hover { color: #999; }

.legal-title {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.legal-effective {
  font-size: 12px;
  color: #555;
  letter-spacing: 0.05em;
  margin-bottom: 40px;
}

.legal-section {
  margin-bottom: 32px;
}

.legal-section-heading {
  font-size: 13px;
  font-weight: 600;
  color: #999;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.legal-section-body {
  font-size: 14px;
  color: #ccc;
  line-height: 1.75;
}

.legal-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-footer {
  border-top: 1px solid #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
}

.legal-footer-copy {
  font-size: 11px;
  color: #444;
  letter-spacing: 0.04em;
}

.legal-footer-links {
  display: flex;
  gap: 18px;
}

/* ── Crop modal ──────────────────────────────────────────────────────────────── */
.crop-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.crop-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.crop-modal-hint {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  text-align: center;
  margin: 0;
}

.crop-canvas-wrap {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.crop-canvas {
  display: block;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Thin white ring around the circle to show the crop boundary */
.crop-circle-ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  pointer-events: none;
}

.crop-modal-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}

.crop-btn {
  flex: 1;
  padding: 13px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.crop-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.crop-btn--cancel {
  background: #222;
  color: var(--grey);
}

.crop-btn--cancel:hover:not(:disabled) { opacity: 0.75; }

.crop-btn--save {
  background: var(--white);
  color: var(--black);
}

.crop-btn--save:hover:not(:disabled) { opacity: 0.88; }

.legal-footer-link {
  font-size: 11px;
  color: #555;
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: 0.02em;
}

/* ─── Search discovery — new sections ───────────────────────────────────────── */

/* Pill buttons (Nearby areas, Status filters) */
.discovery-pill {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--grey-border);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  color: var(--white);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: border-color 0.15s;
}
.discovery-pill:hover  { border-color: var(--grey); }
.discovery-pill:active { background: rgba(255,255,255,0.06); }

/* Contributor chips with inline avatar */
.discovery-chip--user {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.discovery-chip-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contrib-chip-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.contrib-chip-avatar--ph {
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
}

/* Empty note inside a section */
.discovery-empty-note {
  padding: 0 16px;
  font-size: 12px;
  color: var(--grey-dim);
  margin: 0;
}

/* Recently Added thumbnail strip */
.discovery-scroll--thumbs { gap: 6px; }

.artwork-thumb {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 8px;
  border: none;
  background-color: var(--grey-border);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity 0.15s;
}
.artwork-thumb:hover   { opacity: 0.82; }
.artwork-thumb--empty  { background-image: none; }

/* Random Spot CTA — uses .discovery-pill; faint variant for empty state */
.discovery-pill--empty {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* (legacy .random-spot-btn removed) */
.random-spot-btn--legacy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 32px);
  margin: 4px 16px 0;
  padding: 16px;
  background: none;
  border: 1px solid var(--grey-border);
  border-radius: 12px;
  color: var(--white);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s;
}
.random-spot-btn:hover         { border-color: var(--grey); }
.random-spot-btn--disabled     { opacity: 0.3; cursor: default; }
.random-spot-btn--disabled:hover { border-color: var(--grey-border); }

/* Status filter results heading */
.search-filter-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 16px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
}
.search-filter-count {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--grey-dim);
  font-weight: 400;
  text-transform: uppercase;
}

/* ─── Auth disclosure ────────────────────────────────────────────────────────── */
.auth-disclosure {
  margin-top: 14px;
  font-size: 11px;
  color: #555;
  text-align: center;
  line-height: 1.6;
  max-width: 360px;
}
.auth-disclosure a {
  color: #888;
  text-decoration: underline;
  text-underline-offset: 2px;
}
