:root {
  --bg: #0b0712;
  --bg-glow: radial-gradient(1200px 600px at 10% 0%, rgba(255, 61, 138, 0.18), transparent 50%),
    radial-gradient(900px 500px at 100% 10%, rgba(139, 92, 255, 0.22), transparent 45%),
    radial-gradient(700px 400px at 80% 100%, rgba(214, 255, 60, 0.08), transparent 40%);
  --elev: #14101c;
  --card: #1a1526;
  --card-2: #221a32;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f2ff;
  --muted: #9b93b3;
  --lime: #d6ff3c;
  --lime-text: #162000;
  --pink: #ff3d8a;
  --purple: #8b5cff;
  --grad: linear-gradient(90deg, #ff3d8a 0%, #9b5cff 100%);
  --green: #7cff6b;
  --danger: #ff5c7a;
  --nav: #16111f;
  --chip: #2a203c;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --safe-bottom: max(12px, env(safe-area-inset-bottom));
}

html[data-theme="light"] {
  --bg: #f3effa;
  --bg-glow: radial-gradient(1000px 500px at 10% 0%, rgba(255, 61, 138, 0.12), transparent 50%),
    radial-gradient(800px 400px at 100% 0%, rgba(139, 92, 255, 0.12), transparent 45%);
  --elev: #ffffff;
  --card: #ffffff;
  --card-2: #f7f3ff;
  --line: rgba(26, 18, 40, 0.08);
  --text: #1a1228;
  --muted: #6b6280;
  --lime: #b2d220;
  --lime-text: #162000;
  --nav: #ffffff;
  --chip: #efe8ff;
  --shadow: 0 14px 40px rgba(40, 20, 70, 0.12);
}

* { box-sizing: border-box; }
html, body, #root {
  margin: 0;
  min-height: 100%;
  width: 100%;
  max-width: 100%;
}
#root > * {
  max-width: 100%;
  min-width: 0;
}
html {
  background-color: var(--bg);
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overscroll-behavior-x: none;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--bg-glow);
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: -1;
}
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.app-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
}
.desktop-nav { display: none; }
.main {
  width: min(100%, 560px);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 12px 16px calc(92px + var(--safe-bottom));
}
.main > * {
  min-width: 0;
  max-width: 100%;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  margin-bottom: 14px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(var(--bg), color-mix(in srgb, var(--bg) 80%, transparent));
  border-radius: 28px;
  backdrop-filter: blur(2px);
}
.topbar h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.spark { color: var(--lime); font-size: 1.1rem; }
.icon-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--card);
  color: var(--lime);
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease;
}
.icon-btn:active { transform: scale(0.94); }
.flame {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  box-shadow: var(--shadow);
}
.flame span { color: #ff7a3d; }

.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: var(--safe-bottom);
  width: min(calc(100% - 24px), 520px);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: color-mix(in srgb, var(--nav) 92%, transparent);
  backdrop-filter: blur(16px);
  border-radius: 28px;
  padding: 8px;
  z-index: 20;
  box-shadow: var(--shadow);
}
.nav-item {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  padding: 12px 8px;
  border-radius: 20px;
  position: relative;
  transition: transform 0.14s ease, background 0.2s ease, color 0.2s ease;
}
.nav-item.active {
  background: var(--lime);
  color: var(--lime-text);
}
.nav-item:active { transform: scale(0.96); }
.badge {
  position: absolute;
  top: 4px;
  right: 18%;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--pink);
  color: white;
  font-size: 11px;
  line-height: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  animation: rise 0.35s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.card-body {
  display: flex;
  flex-direction: column;
  padding: 14px 14px 16px;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.pitch-photo-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pitch-photo-preview {
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}
.photo-scroller {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  border-radius: 18px;
  touch-action: pan-y;
  user-select: none;
  background: #000;
  overscroll-behavior-x: contain;
}
.photo-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.28s ease;
}
.photo-track.dragging { transition: none; }
.photo-track > * {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.photo-track img, .photo-slide {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.photo-slide { background-size: cover; background-position: center; }
.scroller-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 16, 28, 0.55);
  color: white;
  backdrop-filter: blur(8px);
}
.scroller-btn.prev { left: 10px; }
.scroller-btn.next { right: 10px; }
.dots {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
}
.dot.on { background: var(--lime); }

.person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.person h2, .person h3 { margin: 0; font-size: 1.2rem; font-weight: 800; }
.meta {
  color: var(--muted);
  font-size: 0.86rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 6px 0 10px;
}
.meta .lefts { color: var(--lime); font-weight: 700; }
.quote {
  flex-grow: 1;
  color: var(--text);
  opacity: 0.92;
  margin: 0 0 14px;
  line-height: 1.45;
}
.btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 800;
  font-size: 1rem;
  width: 100%;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-grad {
  background: var(--grad);
  color: white;
  box-shadow: 0 8px 24px rgba(255, 61, 138, 0.28);
}
.btn-grad:hover { filter: brightness(1.06); }
.btn-grad.flash { animation: flash 0.45s ease; }
@keyframes flash {
  0% { box-shadow: 0 0 0 0 rgba(255, 61, 138, 0.55); }
  100% { box-shadow: 0 0 0 18px rgba(255, 61, 138, 0); }
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-lime {
  background: var(--lime);
  color: var(--lime-text);
}
.row-btns { display: grid; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--chip);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}
.chip-green { background: rgba(124, 255, 107, 0.16); color: var(--green); }
.chip-topic { background: #3a2a6a; color: #d7c8ff; }
html[data-theme="light"] .chip-topic { background: #efe8ff; color: #5b3bb8; }
.topic-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-top: 6px;
  -webkit-overflow-scrolling: touch;
}
.topic-chips .chip {
  flex: 0 0 auto;
  border: 0;
  white-space: nowrap;
}
.topic-chips .chip.on {
  outline: 2px solid currentColor;
}
.verified { color: var(--green); font-size: 18px; }

.field { position: relative; margin: 10px 0; }
.field label { display: flex; font-size: 0.82rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 16px;
  padding: 12px 44px 12px 14px;
  outline: none;
}
.field textarea { min-height: 110px; resize: vertical; padding-right: 44px; }
.ai-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--lime);
  font-size: 1.05rem;
}
.hint { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }

.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(8, 4, 16, 0.62);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 40;
  animation: fade 0.2s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(100%, 560px);
  background: var(--elev);
  border-radius: 24px 24px 0 0;
  padding: 18px 16px calc(18px + var(--safe-bottom));
  box-shadow: var(--shadow);
  animation: up 0.25s ease;
}
@keyframes up { from { transform: translateY(24px); } to { transform: none; } }
.modal h3 { margin: 0 0 8px; }
.starters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 10px 0;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.starter {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.8rem;
}
.starter.on {
  border-color: var(--lime);
  background: color-mix(in srgb, var(--lime) 18%, var(--card));
}
.stream {
  min-height: 80px;
  background: var(--card);
  border-radius: 14px;
  padding: 12px;
  white-space: pre-wrap;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 48px;
}
.welcome-banner {
  width: 100%;
  background: var(--lime);
  color: var(--lime-text);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  animation: rise 0.35s ease both;
}
.welcome-banner p {
  margin: 0 0 12px;
  line-height: 1.45;
  font-size: 1.5rem;
}
.welcome-banner > button.btn.btn-ghost {
  color: inherit;
}
.inbox-card {
  background: var(--card);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  animation: rise 0.35s ease both;
  position: relative;
  min-width: 0;
  overflow-wrap: anywhere;
}
.inbox-card .accent {
  position: absolute;
  left: 0; top: 16px; bottom: 16px;
  width: 4px;
  border-radius: 4px;
  background: var(--pink);
}
.inbox-card.alt .accent { background: #4cc3ff; }
.preview { color: var(--muted); font-size: 1.3rem; margin-bottom: 10px; padding-left: 10px; }
.response { font-size: 1.3rem; }
.section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 18px 0 8px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  padding-top: 8px;
  padding-bottom: 8px;
}
.admin-tabs button {
  border: 0;
  background: var(--card);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  white-space: nowrap;
  font-weight: 700;
  width: auto;
  max-width: 100%;
}
.admin-tabs button.on { background: var(--lime); color: var(--lime-text); }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 16px;
}
.stat-card {
  background: var(--card);
  border-radius: 16px;
  padding: 12px 14px;
  min-width: 0;
}
.stat-card.stat-wide {
  grid-column: 1 / -1;
}
.stat-n {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.1;
}
.stat-label {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 4px 0 0;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.visits-card {
  background: var(--card);
  border-radius: 16px;
  padding: 12px 14px;
  margin: 0 0 16px;
  min-width: 0;
}
.visits-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.visits-head .stat-label,
.visits-head .stat-sub { margin: 0; }
.visits-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 8px;
}
.visits-leg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: var(--chip);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 0.78rem;
  width: auto;
  opacity: 0.45;
}
.visits-leg.on { opacity: 1; color: var(--text); }
.visits-swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex: 0 0 auto;
}
.visits-leg.lime .visits-swatch { background: var(--lime); }
.visits-leg.pink .visits-swatch { background: var(--pink); }
.visits-plot {
  position: relative;
  height: 180px;
  touch-action: none;
  cursor: crosshair;
}
.visits-plot svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.visits-tooltip {
  position: absolute;
  top: 8px;
  transform: translateX(-50%);
  background: var(--elev);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: var(--shadow);
  pointer-events: none;
  min-width: 112px;
  z-index: 2;
}
.visits-tooltip p { margin: 0; font-size: 0.78rem; }
.visits-tip-day { font-weight: 800; margin-bottom: 4px !important; }
.visits-axis {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  margin-top: 6px;
}
.visits-tick {
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
  font-weight: 700;
}
.visits-tick.on { color: var(--text); }

.stat-sub {
  color: var(--muted);
  font-size: 0.75rem;
  margin: 4px 0 0;
}
.activity-action {
  font-weight: 700;
  margin: 6px 0 8px;
}
.pending-pill {
  background: var(--card);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 18px;
}

.sticker-wrap {
  position: fixed;
  inset: 0;
  background: rgba(8,4,16,0.72);
  display: grid;
  place-items: center;
  z-index: 50;
}
.sticker {
  text-align: center;
  animation: pop 0.5s cubic-bezier(.2,1.4,.4,1);
}
.sticker-img {
  width: min(72vw, 320px);
  height: min(72vw, 320px);
  border-radius: 50%;
  display: block;
  margin: 0 auto 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.sticker-download {
  margin: 12px 0 18px;
}
@keyframes pop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.heart {
  width: 180px;
  height: 160px;
  margin: 0 auto 12px;
  position: relative;
}
.heart img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  position: absolute;
  border: 3px solid #ff4d94;
}
.heart img.a { left: 0; top: 10px; }
.heart img.b { right: 0; top: 10px; }
.heart:after {
  content: "♥";
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  color: #ff4d94;
  font-size: 42px;
  text-shadow: 0 8px 20px rgba(255, 61, 138, 0.5);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%);
  background: var(--card);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 60;
  box-shadow: var(--shadow);
}

.hours { display: grid; gap: 2px; margin: 8px 0 10px; }
.hours-now { font-weight: 800; font-size: 0.95rem; }
.hours-now.open { color: var(--green); }
.hours-now.closed { color: var(--danger); }
.hours-line { color: var(--muted); font-size: 0.82rem; margin: 0; line-height: 1.35; }
.hours-row { display: grid; grid-template-columns: 70px 1fr 1fr auto; gap: 6px; align-items: center; font-size: 0.85rem; }
.highlight { font-weight: 700; margin: 4px 0; }
.highlight.c0 { color: var(--lime); }
.highlight.c1 { color: var(--pink); }
.highlight.c2 { color: var(--purple); }
.person-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 6px 0 10px;
}
.person-row .person-card { flex: 1; min-width: 0; margin: 0; }
.share-pitch-btn {
  width: auto;
  flex-shrink: 0;
  padding: 10px 14px;
  font-size: 0.88rem;
  margin-top: 6px;
}
.share-pitch {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.share-pitch-img {
  width: min(82vw, 360px);
  aspect-ratio: 1;
  height: auto;
  border-radius: 18px;
  display: block;
  margin: 0 auto 12px;
  object-fit: cover;
  box-shadow: var(--shadow);
  background: var(--card);
}
.share-pitch-link {
  word-break: break-all;
  color: var(--muted);
  font-size: 0.85rem;
}
.person-card { display: flex; gap: 12px; align-items: center; margin: 6px 0 10px; }
.person-card h3 { margin: 0; font-size: 1.05rem; }
.person-card .intro {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 12rem;
}
.person-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--chip);
}
.person-photo.placeholder {
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--lime);
}
.person-open { cursor: pointer; }
.person-open:hover { opacity: 0.86; }
.profile-sheet { text-align: center; }
.profile-sheet-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  background: var(--chip);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--lime);
}
.profile-sheet h2 { margin: 0 0 8px; }
.profile-sheet .intro { color: var(--muted); margin: 0 0 16px; }
.switch { display: flex; gap: 12px; align-items: center; cursor: pointer; user-select: none; }
.switch-ui {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1px solid var(--line);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.switch-ui.on { background: var(--lime); border-color: var(--lime); }
.switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.switch-ui.on .switch-knob { transform: translateX(20px); }
.location-pick { width: 100%; text-align: left; justify-content: flex-start; }
.quote-label { color: var(--lime); font-weight: 800; margin: 8px 0; }
.modal-scroll { max-height: 85vh; overflow: auto; }
.sticker-img { width: min(100%, 360px); border-radius: 24px; margin: 0 auto 12px; }
.photo-scroller.clickable { cursor: pointer; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.muted { color: var(--muted); }
.back-row { display: flex; align-items: center; gap: 8px; }
.error { color: var(--danger); font-size: 0.86rem; }
.day-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.day-toggle {
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  width: auto;
}
.day-toggle.on {
  background: var(--lime);
  color: var(--lime-text);
  border-color: var(--lime);
}
.avail-day {
  background: var(--card-2);
  border-radius: 16px;
  padding: 10px 12px;
  margin: 8px 0 0;
}
.avail-day-name {
  font-weight: 800;
  font-size: 0.86rem;
  margin-bottom: 8px;
}
.time-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.time-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--chip);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 0.86rem;
}
.time-chip button {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0;
}
.time-add {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.time-add input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  outline: none;
}
.time-add button {
  width: auto;
  border: 0;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 800;
  background: var(--lime);
  color: var(--lime-text);
}
.slot-grid {
  display: grid;
  gap: 8px;
  margin: 8px 0 14px;
}
.slot-option {
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--text);
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 700;
  text-align: left;
  width: 100%;
}
.slot-option.on {
  border-color: var(--lime);
  background: color-mix(in srgb, var(--lime) 16%, var(--card-2));
}
.slot-preview {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 4px 0;
}

@media (min-width: 900px) {
  .app-shell {
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
  }
  .desktop-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 28px 18px;
    position: sticky;
    top: 0;
    align-self: start;
    height: 100dvh;
    overflow-y: auto;
  }
  .desktop-nav .brand {
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 18px;
  }
  .desktop-nav .nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .desktop-nav .badge {
    position: static;
    top: auto;
    right: auto;
    transform: none;
  }
  .bottom-nav { display: none; }
  .main {
    width: min(100%, 1080px);
    padding: 24px 28px 40px;
  }
  .feed-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .modal { border-radius: 24px; margin-bottom: 10vh; }
  .modal-back { align-items: center; }
}

.spacer {
  height: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.drop-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 18px 16px;
  border: 1.5px dashed color-mix(in srgb, var(--lime) 40%, var(--line));
  border-radius: 22px;
  background: var(--card-2);
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.drop-box:hover, .drop-box.hover {
  border-color: var(--lime);
  background: color-mix(in srgb, var(--lime) 12%, var(--card-2));
  color: var(--text);
}
.drop-box:active { transform: scale(0.99); }
.drop-box.uploading {
  pointer-events: none;
  cursor: wait;
  color: var(--text);
  border-color: color-mix(in srgb, var(--pink) 55%, var(--lime));
  background: color-mix(in srgb, var(--pink) 10%, var(--card-2));
}
.drop-box.uploading:active { transform: none; }
.upload-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(280px, 100%);
}
.upload-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 70%, #000);
  overflow: hidden;
}
.upload-bar-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(255, 61, 138, 0.45);
  transition: width 0.16s ease;
}
.upload-pct {
  font-variant-numeric: tabular-nums;
  color: var(--lime);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.photo-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  user-select: none;
  -webkit-user-select: none;
}
.photo-thumbs.dragging {
  touch-action: none;
}
.photo-thumb {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: grab;
  touch-action: none;
}
.photo-thumb:active {
  cursor: grabbing;
}
.photo-thumb.slot {
  background: color-mix(in srgb, var(--lime) 10%, transparent);
  box-shadow: none;
  outline: 2px dashed color-mix(in srgb, var(--lime) 55%, var(--line));
  outline-offset: -2px;
  cursor: grabbing;
}
.photo-thumb.slot img,
.photo-thumb.slot .photo-del {
  visibility: hidden;
}
.photo-thumb.ghost {
  position: fixed;
  margin: 0;
  z-index: 80;
  pointer-events: none;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(8, 4, 16, 0.35);
  opacity: 0.94;
  cursor: grabbing;
}
.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.photo-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 4, 16, 0.72);
  color: #fff;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
}

@media (min-width: 1280px) {
  .feed-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
