:root {
  --bg: #f7f4ef;
  --bg-deep: #ede8e0;
  --ink: #14110f;
  --muted: rgba(20, 17, 15, 0.58);
  --accent: #a8485c;
  --card: rgba(255, 252, 250, 0.94);
  --line: rgba(20, 17, 15, 0.09);
  --ok: #2a6b4a;
  --radius: 18px;
  --nav-h: 64px;
  --header-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 0% -10%, rgba(220, 200, 180, 0.45) 0%, transparent 55%),
    radial-gradient(800px 420px at 100% 0%, rgba(196, 152, 162, 0.35) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg), var(--bg-deep));
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.shell {
  min-height: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem calc(var(--nav-h) + var(--safe-bottom) + 1.25rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-h);
  padding: 0.75rem 0;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(247, 244, 239, 0.92), rgba(247, 244, 239, 0.7));
}

.logo {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}
.logo-icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.45rem;
  display: block;
  flex-shrink: 0;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.site-link {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.2rem 0.25rem;
}

.header-meta { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.pill.ghost { color: var(--muted); font-weight: 500; }

.lang-wrap select,
.lang-panel select {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.account-tabs {
  display: flex;
  overflow-x: auto;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0.1rem;
  scrollbar-width: none;
}
.account-tabs::-webkit-scrollbar { display: none; }
.account-tab {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.account-tab.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.account-tab-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.lang-panel {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.lang-panel:last-of-type { margin-bottom: 0; }
.lang-label { font-weight: 600; font-size: 0.92rem; }
.panel-subtitle {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-family: var(--font-display, inherit);
}
.profile-group-title {
  margin: 1.4rem 0 0.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.profile-panel > .profile-group-title:first-of-type {
  margin-top: 1rem;
  padding-top: 0;
  border-top: none;
}
.danger-panel {
  border: 1px solid rgba(168, 72, 92, 0.25);
}
.shortcuts-panel .profile-lede,
.shortcuts-panel .panel-subtitle {
  margin-bottom: 0.6rem;
}
.account-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin: 0;
}
.account-shortcut {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.7rem 0.45rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}
.profile-lede {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.4;
}
.profile-panel .field input,
.profile-panel .field select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: var(--surface);
}
.dob-note {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
}
.selfie-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}
.selfie-status {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}
.selfie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.selfie-pick {
  cursor: pointer;
}

.nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  z-index: 30;
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.15rem;
  padding: 0.45rem 0.4rem calc(0.45rem + var(--safe-bottom));
  background: rgba(255, 252, 250, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-item {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.55rem 0.15rem;
  border-radius: 12px;
}
.nav-item.active {
  color: var(--ink);
  background: rgba(20, 17, 15, 0.06);
}

.infinite-sentinel {
  height: 1px;
  width: 100%;
  pointer-events: none;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.home-page {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 0.35rem 0 0.5rem;
}

.home-stage {
  width: min(100%, 22rem);
  margin: 0 auto;
  aspect-ratio: 1 / 1.15;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-deep);
  position: relative;
}
.home-empty-stage {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  color: inherit;
}
.home-empty-tiles {
  position: absolute;
  inset: 0;
}
.home-empty-tile {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(20, 17, 15, 0.4);
  box-shadow: 0 6px 18px rgba(20, 17, 15, 0.08);
}
.home-empty-tile.t1 {
  width: 42%;
  height: 48%;
  top: 8%;
  left: 8%;
  background: #e8d9d2;
  transform: rotate(-6deg);
}
.home-empty-tile.t2 {
  width: 40%;
  height: 52%;
  top: 14%;
  left: 48%;
  background: #d9e0e4;
  transform: rotate(5deg);
}
.home-empty-tile.t3 {
  width: 36%;
  height: 28%;
  top: 58%;
  left: 28%;
  background: #e5dcc8;
  transform: rotate(-3deg);
}
.home-empty-cue {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: rgba(247, 244, 239, 0.28);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}
.home-empty-cam {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 1.15rem;
}

.home-stage-fill,
.home-stage-grid,
.home-stage-collage {
  display: block;
  width: 100%;
  height: 100%;
}
.home-stage-fill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-stage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  background: var(--line);
}
.home-stage-grid img,
.home-stage-ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #e8e2da;
  display: block;
}
.home-stage-collage {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2px;
  background: var(--line);
}
.home-stage-main {
  display: block;
  min-height: 0;
}
.home-stage-main img,
.home-stage-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-stage-side {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 2px;
  min-height: 0;
}
.home-stage-side > * {
  min-height: 0;
  background: #e8e2da;
}
.home-stage-add {
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 252, 250, 0.92) !important;
}

.home-copy {
  max-width: 22rem;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}
.brand-mark {
  margin: 0 0 0.35rem;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.1rem, 9vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--ink);
}
.home-copy h1 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.35rem, 4.8vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--ink);
}
.lede {
  margin: 0.65rem auto 0;
  color: var(--muted);
  max-width: 32ch;
  line-height: 1.5;
  font-size: 0.95rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
}
.home-rise {
  animation: homeRise 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--rise, 0) * 90ms);
}
@keyframes homeRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.home-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0.15rem 0 0.5rem;
  border-top: 1px solid var(--line);
}
.overview-stat {
  display: block;
  padding: 1rem 0.35rem 0.35rem;
  text-align: left;
  color: inherit;
  transition: color 160ms ease;
}
.overview-stat:hover { color: var(--accent); }
.overview-stat strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.overview-stat span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.home-onboarding {
  margin: 0;
  padding: 0;
}
.home-onboarding h2 {
  margin: 0 0 0.85rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .home-rise,
  .home-onboarding {
    animation: none !important;
  }
}

.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.5rem 0 1rem;
}
.page-head.tight { margin-top: 1.5rem; }
.page-head h1, .page-head h2 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}
.page-head h2 { font-size: 1.25rem; }
.muted { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.9rem; }
.subhead {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
  margin: 1.25rem 0 0.6rem;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: var(--accent);
  box-shadow: none;
}
.btn.ghost {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn.sm { padding: 0.45rem 0.8rem; font-size: 0.85rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.form-row, .form-stack { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.form-stack { flex-direction: column; margin-bottom: 0.75rem; }
.form-row { margin-top: 0.75rem; }
.form-row > * { flex: 1 1 140px; }

input, select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
}

.file-drop {
  display: grid;
  place-items: center;
  gap: 0.25rem;
  min-height: 7.5rem;
  max-height: 9rem;
  border: 0;
  border-radius: 2px;
  background:
    linear-gradient(160deg, rgba(168, 72, 92, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(255, 251, 246, 0.7), rgba(239, 228, 214, 0.55));
  margin-bottom: 0.85rem;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  padding: 0.85rem 1rem;
  text-align: center;
  transition: background 200ms ease, color 200ms ease, transform 180ms ease;
  position: relative;
  overflow: hidden;
}
.file-drop::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px dashed rgba(168, 72, 92, 0.28);
  border-radius: 2px;
  pointer-events: none;
}
.file-drop input { display: none; }
.file-drop-icon {
  font-size: 1.25rem;
  line-height: 1;
  color: var(--accent);
  font-weight: 400;
}
.file-drop-label {
  font-family: Fraunces, Georgia, serif;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.file-drop.has-file {
  background:
    linear-gradient(160deg, rgba(168, 72, 92, 0.14), transparent 50%),
    linear-gradient(180deg, rgba(255, 251, 246, 0.85), rgba(239, 228, 214, 0.7));
  color: var(--ink);
}
.file-drop.has-file::after {
  border-style: solid;
  border-color: rgba(168, 72, 92, 0.4);
}
.file-drop:active {
  transform: scale(0.99);
}
.file-drop-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.local-preview {
  margin: 0 0 1rem;
}
.local-preview.local-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.local-preview.local-preview-grid img {
  width: 72px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 2px;
}
.local-preview img {
  width: min(240px, 100%);
  border-radius: 2px;
  border: 0;
  display: block;
  box-shadow: none;
  background:
    linear-gradient(145deg, rgba(255, 251, 246, 0.9), rgba(239, 228, 214, 0.85));
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.7rem;
}
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.card:active { transform: scale(0.98); }
.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  background: #eee;
}
.card .meta {
  padding: 0.5rem 0.6rem 0.65rem;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: capitalize;
}

.status-line {
  margin: 0.5rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.btn.danger {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(168, 72, 92, 0.35);
  box-shadow: none;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(26, 18, 16, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: fadeIn 180ms ease;
}
.sheet {
  width: min(100%, 520px);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: #fffaf5;
  border-radius: 22px 22px 0 0;
  padding: 0.75rem 1rem calc(1.25rem + var(--safe-bottom));
  box-shadow: 0 -12px 40px rgba(0,0,0,0.18);
  animation: sheetUp 220ms ease;
}
.sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  margin: 0.15rem auto 0.85rem;
}
.sheet-img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 16px;
  background:
    linear-gradient(45deg, #eee 25%, transparent 25%),
    linear-gradient(-45deg, #eee 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eee 75%),
    linear-gradient(-45deg, transparent 75%, #eee 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  margin-bottom: 0.75rem;
}
.sheet .field { margin: 0.65rem 0; }
.sheet .field textarea {
  width: 100%;
  min-height: 4.5rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  resize: vertical;
  background: var(--surface);
  color: inherit;
}
.sheet .field textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-color: var(--accent);
}
.sheet .ai-comment {
  margin: 0.35rem 0 0.65rem;
  font-size: 0.84rem;
  line-height: 1.35;
}
.item-sheet-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.6rem;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  font-size: 0.84rem;
}
.item-sheet-source[hidden] { display: none !important; }
.item-sheet-source-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.item-sheet-source-link:hover {
  text-decoration: underline;
}
.sheet-actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}
.sheet-actions[hidden] { display: none !important; }
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes sheetUp {
  from { transform: translateY(24px); opacity: 0.6; }
  to { transform: none; opacity: 1; }
}

@media (min-width: 760px) {
  .sheet-backdrop {
    align-items: center;
    padding: 1.5rem;
  }
  .sheet {
    border-radius: 22px;
    max-height: 85vh;
  }
}
.draft { margin-top: 1rem; }
.draft img {
  width: min(220px, 100%);
  border-radius: 16px;
  border: 1px solid var(--line);
  display: block;
}

.outfit { margin-top: 1rem; }
.outfit .title {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
}
.outfit .why { color: var(--muted); margin: 0 0 0.75rem; line-height: 1.45; }
.pieces { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.pieces figure { margin: 0; width: 96px; }
.pieces img {
  width: 96px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
}
.pieces figcaption {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.25rem;
  text-transform: capitalize;
}
.outfit-actions {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ad-reward-inline {
  margin-top: 0.5rem;
}
.outfit-preview {
  margin-bottom: 0.85rem;
}
.preview-hero-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.preview-missing {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px dashed var(--line);
  font-size: 0.82rem;
}
.preview-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}
.preview-zoom:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.preview-zoom img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  display: block;
  background: #eee;
  transition: transform 180ms ease, filter 180ms ease;
}
.preview-zoom:hover img,
.preview-zoom:focus-visible img {
  transform: scale(1.01);
  filter: brightness(0.98);
}
.preview-zoom-hint {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(26, 18, 16, 0.62);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  pointer-events: none;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  padding-bottom: calc(1rem + var(--safe-bottom));
}
.lightbox[hidden] {
  display: none !important;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(12, 10, 9, 0.88);
  cursor: zoom-out;
  animation: fadeIn 180ms ease;
}
.lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 920px);
  max-height: min(92vh, 960px);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 200ms ease;
}
.lightbox-close {
  position: absolute;
  top: -0.15rem;
  right: 0;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 250, 245, 0.14);
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover {
  background: rgba(255, 250, 245, 0.24);
}
.lightbox-img {
  width: 100%;
  max-height: min(82vh, 860px);
  object-fit: contain;
  border-radius: 16px;
  background: #111;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.lightbox-caption {
  margin: 0.65rem 0 0;
  color: rgba(255, 250, 245, 0.82);
  font-size: 0.84rem;
  text-align: center;
}
.lightbox-actions {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}
.confirm-dialog {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
  padding-bottom: calc(1rem + var(--safe-bottom));
}
.confirm-dialog[hidden] {
  display: none !important;
}
.confirm-dialog-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(12, 10, 9, 0.5);
  cursor: pointer;
  animation: fadeIn 150ms ease;
}
.confirm-dialog-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 380px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  animation: fadeIn 180ms ease;
}
.confirm-dialog-message {
  margin: 0 0 1.1rem;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.45;
}
.confirm-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.birthday-banner {
  margin: 0 0 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(196, 92, 62, 0.12), rgba(232, 168, 96, 0.18));
  border: 1px solid rgba(196, 92, 62, 0.22);
  font-size: 0.92rem;
  line-height: 1.4;
}
.info-banner {
  margin: 0 0 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--panel-2, rgba(0, 0, 0, 0.04));
  border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
  font-size: 0.92rem;
  line-height: 1.4;
}
.install-banner[hidden] { display: none !important; }
.install-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.6rem 1rem 0;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  background: rgba(168, 72, 92, 0.08);
  border: 1px solid rgba(168, 72, 92, 0.2);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}
.install-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}
.outfit-warning {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  background: rgba(224, 148, 15, 0.12);
  border: 1px solid rgba(224, 148, 15, 0.3);
  color: #8a5a06;
  font-size: 0.84rem;
  line-height: 1.35;
}
.outfit-warning .icon { flex: 0 0 auto; }
.warn-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(224, 148, 15, 0.15);
  color: #8a5a06;
  font-size: 0.72rem;
}
.piece-tile .fav-mark {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  line-height: 1;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(20, 14, 10, 0.45);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  font-family: inherit;
  border: none;
  cursor: pointer;
  z-index: 1;
  backdrop-filter: blur(6px);
  transition: transform 120ms ease, background 120ms ease, color 120ms ease;
}
.piece-tile .fav-mark:hover {
  transform: scale(1.08);
  background: rgba(20, 14, 10, 0.65);
}
.piece-tile .fav-mark.active {
  color: #f4d35e;
}
.closet-search {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 0.6rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--card, rgba(255, 251, 246, 0.6));
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
}
.closet-search::placeholder { color: var(--muted); }
.closet-search:focus {
  outline: none;
  border-color: var(--accent);
}
.closet-filters {
  display: flex;
  gap: 0.15rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin: 0 0 0.75rem;
  padding-bottom: 0.15rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.closet-filters::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 0;
  padding: 0.55rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.filter-chip:hover { color: var(--ink); }
.filter-chip.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
@keyframes skeleton-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(26, 18, 16, 0.06) 25%,
    rgba(26, 18, 16, 0.13) 37%,
    rgba(26, 18, 16, 0.06) 63%
  );
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
  border-radius: 10px;
}
.skeleton-piece-tile {
  aspect-ratio: 3 / 4;
  border-radius: 4px;
}
.skeleton-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
}
.skeleton-line {
  height: 0.8rem;
  margin: 0.55rem 0;
  border-radius: 6px;
}
.skeleton-line.lg {
  width: 55%;
  height: 1.1rem;
}
.skeleton-line.md { width: 85%; }
.skeleton-line.sm { width: 40%; }
.skeleton-piece {
  width: 96px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  flex: 0 0 auto;
}
.onboarding-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.onboarding-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.15rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 160ms ease, padding-left 160ms ease;
}
.onboarding-step:hover { color: var(--accent); }
.onboarding-step:active { padding-left: 0.2rem; }
.onboarding-step .mark {
  flex: 0 0 auto;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  border: 1.5px solid var(--line);
  color: var(--muted);
}
.onboarding-step.done {
  opacity: 0.45;
  font-weight: 500;
}
.onboarding-step.done .mark {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}
.onboarding-step.active {
  color: var(--ink);
}
.onboarding-step.active .mark {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 3px rgba(168, 72, 92, 0.12);
}
body.lightbox-open {
  overflow: hidden;
}
.preview-note {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
}
.saved-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(34, 139, 87, 0.12);
  color: var(--ok);
  font-size: 0.78rem;
  font-weight: 700;
}
.saved-badge.sm {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
}
.trip-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(168, 72, 92, 0.12);
  color: var(--accent, #A8485C);
  font-size: 0.78rem;
  font-weight: 700;
}
.trip-badge.sm {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
}
.history-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.history-filters {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.look-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.look-thumbs {
  display: flex;
  gap: 0.35rem;
  margin: 0.45rem 0;
  flex-wrap: wrap;
}
.look-thumb {
  width: 44px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #eee;
}

.mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}
.mode-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.mode-chip.active {
  border-color: rgba(168, 72, 92, 0.45);
  background: rgba(168, 72, 92, 0.08);
  color: var(--accent);
}
.mode-hint { margin: 0 0 0.85rem; }
.tag-add-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.tag-add-row input {
  flex: 1 1 auto;
  min-width: 0;
}
.tag-add-row .btn {
  flex: 0 0 auto;
  width: auto !important;
  white-space: nowrap;
}
#lookPrompt {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  resize: vertical;
  min-height: 84px;
}
.look-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.look-row:hover,
.look-row:focus-visible {
  border-color: rgba(168, 72, 92, 0.35);
  outline: none;
}
a.look-row {
  display: block;
  color: inherit;
  text-decoration: none;
}
.look-row strong { font-family: Fraunces, Georgia, serif; }
.look-row p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.85rem; }

.balance-card {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.balance-card strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 2.4rem;
  color: var(--accent);
}
.actions-stack { display: grid; gap: 0.5rem; }

.ledger { display: grid; gap: 0.4rem; }
.ledger-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.88rem;
}
.ledger-row .pos { color: var(--ok); font-weight: 700; }
.ledger-row .neg { color: var(--accent); font-weight: 700; }

.empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
}
.empty .btn { margin-top: 0.75rem; }

.support-list { display: grid; gap: 0.4rem; margin-top: 1rem; }
.support-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.support-row-subject { font-weight: 600; }
.support-row-meta { color: var(--muted); font-size: 0.8rem; margin-top: 0.15rem; }
.support-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}
.support-status.open { background: rgba(168, 72, 92, 0.14); color: var(--accent); }
.support-status.in_progress { background: rgba(180, 130, 20, 0.14); color: #b48214; }
.support-status.resolved, .support-status.closed { background: rgba(42, 107, 74, 0.14); color: var(--ok); }

.support-thread { display: grid; gap: 0.65rem; margin: 1rem 0; }
.support-msg { max-width: 85%; padding: 0.65rem 0.85rem; border-radius: 14px; font-size: 0.88rem; line-height: 1.45; white-space: pre-wrap; }
.support-msg.from-user { justify-self: start; background: var(--card); border: 1px solid var(--line); }
.support-msg.from-admin { justify-self: end; background: rgba(168, 72, 92, 0.1); border: 1px solid rgba(168, 72, 92, 0.2); }
.support-msg .meta { font-size: 0.72rem; color: var(--muted); margin-bottom: 0.25rem; }
.support-reply-form { display: flex; gap: 0.5rem; align-items: flex-end; margin-top: 1rem; }
.support-reply-form textarea {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  background: #fff;
  font-family: inherit;
  resize: vertical;
}

.closet-page {
  padding-top: 0.35rem;
}
.closet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.15rem 0 0.85rem;
}
.closet-head-copy {
  min-width: 0;
}
.closet-head h1 {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.closet-count {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}
.closet-head-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
}
.icon-btn.round {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 1rem;
}
.icon-btn.round.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.icon-btn.round.ink {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
}
.closet-chrome {
  margin-bottom: 0.65rem;
}
.closet-chrome[hidden] { display: none !important; }
.more-filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0;
  margin: 0 0 0.55rem;
  cursor: pointer;
}
.more-filters-btn.open { color: var(--ink); }
.closet-more {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
}
.closet-more[hidden] { display: none !important; }
.closet-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}
.closet-select {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0.35rem 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: pointer;
}
.closet-select:focus {
  outline: none;
}
.closet-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 0 0 auto;
}
.icon-btn {
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.95rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 140ms ease, background 140ms ease;
}
.icon-btn:hover {
  color: var(--ink);
  background: rgba(26, 18, 16, 0.06);
}
.text-btn {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 999px;
  transition: background 140ms ease;
}
.text-btn:hover {
  background: rgba(20, 17, 15, 0.06);
}
.closet-inline-form {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
}
.closet-inline-form[hidden] {
  display: none !important;
}
.closet-inline-form input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: none;
  border: 0;
  border-bottom: 1.5px solid var(--line);
  border-radius: 0;
  padding: 0.4rem 0;
  background: transparent;
  font-size: 0.9rem;
}
.closet-inline-form input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.closet-inline-form .btn.sm {
  flex: 0 0 auto;
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
  white-space: nowrap;
}
.closet-extra-filters {
  display: flex;
  gap: 0.5rem;
  margin: 0;
}
.closet-extra-filters select {
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.5rem 0;
  background: transparent;
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 500;
}
.closet-extra-filters select:focus {
  outline: none;
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.piece-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem 0.75rem;
}
@media (min-width: 520px) {
  .piece-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem 1rem;
  }
}
.piece-tile {
  position: relative;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
}
.piece-tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.piece-tile:active .piece-tile-media {
  transform: scale(0.985);
}
.piece-tile-media {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background:
    linear-gradient(145deg, rgba(255, 251, 246, 0.9), rgba(239, 228, 214, 0.85));
  transition: transform 180ms ease;
}
.piece-tile-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: transparent;
}
.piece-tile-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.55rem 0.05rem 0;
}
.piece-tile-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: -0.01em;
}
.piece-tile-brand {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.piece-tile-wear {
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Looks — anchor piece thumb picker */
.anchor-picker {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.anchor-none {
  align-self: flex-start;
  border: 1px solid var(--line, rgba(20, 17, 15, 0.12));
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
}
.anchor-none.selected {
  border-color: var(--ink, #14110f);
  color: var(--ink, #14110f);
  background: rgba(20, 17, 15, 0.05);
}
.anchor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  max-height: 16rem;
  overflow: auto;
  padding: 0.15rem 0.1rem 0.35rem;
}
@media (min-width: 520px) {
  .anchor-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
.anchor-tile {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  border-radius: 4px;
}
.anchor-tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.anchor-tile-media {
  position: relative;
  display: block;
  border-radius: 3px;
  overflow: hidden;
  border: 2px solid transparent;
  background: linear-gradient(145deg, rgba(255, 251, 246, 0.9), rgba(239, 228, 214, 0.85));
  transition: border-color 140ms ease, transform 140ms ease;
}
.anchor-tile.selected .anchor-tile-media {
  border-color: var(--ink, #14110f);
}
.anchor-tile:active .anchor-tile-media {
  transform: scale(0.97);
}
.anchor-tile-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}
.anchor-tile-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}
.anchor-tile-fav {
  position: absolute;
  top: 0.25rem;
  right: 0.3rem;
  font-size: 0.7rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.anchor-tile-caption {
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: capitalize;
}

.inspire-preview {
  margin: 0.6rem 0 1rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: var(--panel-2, rgba(0, 0, 0, 0.03));
  border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
}
.inspire-preview[hidden] { display: none !important; }
.inspire-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.inspire-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.55rem 0.3rem 0.3rem;
  border-radius: 999px;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
  cursor: pointer;
  font-size: 0.78rem;
}
.inspire-item-media {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}
.inspire-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.inspire-item-empty {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
}
.inspire-item-caption {
  white-space: nowrap;
  text-transform: capitalize;
}

.closet-empty {
  text-align: center;
  padding: 0.35rem 0 1.5rem;
  max-width: none;
}
.closet-empty[hidden],
.closet-filter-empty[hidden] {
  display: none !important;
}
.closet-empty-stage {
  width: min(100%, 22rem);
  margin: 0 auto;
  height: auto !important;
  aspect-ratio: 1 / 1.15;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-deep);
}
.closet-empty-hint {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}
.closet-filter-empty {
  text-align: center;
  padding: 2.5rem 1rem;
}
.closet-filter-empty .lede {
  margin: 0.45rem auto 1rem;
  max-width: 28ch;
}
.closet-empty-title {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.closet-empty .lede {
  margin: 0.5rem 0 1.15rem;
}
.closet-empty .btn { margin-top: 0; }

.closet-bar,
.closet-create {
  display: none;
}
.closet-rename {
  display: none;
}
.section-title {
  font-family: Fraunces, Georgia, serif;
  font-size: 1rem;
  margin: 0 0 0.35rem;
}
.pending-drafts {
  display: grid;
  gap: 0;
  margin-top: 0.35rem;
  border-top: 1px solid var(--line);
}
.pending-draft {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0.1rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.pending-draft img {
  width: 52px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 2px;
  background: #eee;
}
.pending-draft-meta {
  flex: 1;
  min-width: 0;
}
.pending-draft-meta strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.pending-draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.add-page {
  padding-top: 0.35rem;
}
.add-head {
  margin: 0.35rem 0 1.35rem;
}
.add-head h1 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.85rem, 6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.add-head .lede {
  margin-top: 0.5rem;
}
.add-pending {
  margin: 0 0 1.5rem;
}
.add-pending h2 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.add-pending-hint {
  margin: 0.35rem 0 0.65rem;
  font-size: 0.88rem;
}
.add-stage .field {
  display: grid;
  gap: 0.35rem;
  margin: 0.85rem 0;
}
.add-stage .field > span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.add-stage select,
.add-stage .field input {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 0.55rem 0;
}
.add-stage select:focus,
.add-stage .field input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.panel .field {
  display: grid;
  gap: 0.35rem;
  margin: 0.75rem 0;
}
.panel .field > span {
  font-size: 0.82rem;
  font-weight: 600;
}
.panel > .btn.block,
.panel form > .btn.block,
.add-stage > .btn.block,
#btnSave,
#btnProcess {
  width: 100%;
  margin-top: 0.35rem;
}
.review-panel {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  animation: homeRise 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ai-badge {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.35;
}
.ai-comment {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.4;
  max-width: 40rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 0.75rem);
  transform: translateX(-50%);
  z-index: 40;
  max-width: min(90vw, 420px);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* —— Auth screens —— */
.auth-mode .nav { display: none; }
.auth-mode .shell {
  padding-bottom: 2rem;
  max-width: 440px;
}
.auth-mode .site-header {
  background: transparent;
  backdrop-filter: none;
}
.auth-mode .toast {
  bottom: calc(1.25rem + var(--safe-bottom));
}

.auth-screen {
  min-height: calc(100vh - var(--header-h) - 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 0 2rem;
  animation: rise 360ms ease;
}
.auth-brand {
  margin: 0 0 0.85rem;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.6rem, 11vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  background: linear-gradient(120deg, var(--ink) 20%, var(--accent) 125%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-screen h1 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.55rem, 5vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.auth-lede {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.45;
  max-width: 32ch;
}
.auth-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.85rem;
}

.auth-form-error {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--danger, #b42318) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger, #b42318) 35%, transparent);
  color: var(--danger, #b42318);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}
.field {
  display: grid;
  gap: 0.35rem;
}
.field > span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}
.field small {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}
.field input,
.field textarea,
.field select {
  border-radius: 16px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 251, 246, 0.92);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea {
  resize: vertical;
}
.field input.readonly-input,
.readonly-input {
  opacity: 1;
  background: rgba(42, 36, 32, 0.04);
  cursor: default;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(168, 72, 92, 0.45);
  box-shadow: 0 0 0 3px rgba(168, 72, 92, 0.12);
}
.password-field {
  position: relative;
  display: grid;
}
.password-field input {
  padding-right: 2.75rem;
}
.password-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}
.password-toggle:hover,
.password-toggle[aria-pressed="true"] {
  color: var(--ink);
  background: rgba(20, 17, 15, 0.05);
}
.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
}
.checkbox-field input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
}
.auth-submit {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.95rem 1.2rem;
  font-size: 1rem;
}
.auth-oauth-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.25rem 0 0.85rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.auth-oauth-divider::before,
.auth-oauth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-oauth {
  display: flex;
  justify-content: center;
  min-height: 44px;
}
.auth-oauth[hidden],
.auth-oauth-divider[hidden] {
  display: none !important;
}
.auth-switch {
  margin: 1.35rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}
.auth-switch a {
  color: var(--accent);
  font-weight: 700;
  margin-left: 0.25rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.session-info {
  margin: 0 0 1rem;
  line-height: 1.45;
}

/* Wear calendar */
.calendar-panel { padding-bottom: 1rem; }
.calendar-month-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.calendar-month-label {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
  flex: 1;
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
  margin-bottom: 0.35rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}
.cal-cell {
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(42, 36, 32, 0.03);
  padding: 0.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.15rem;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.cal-cell.empty {
  background: transparent;
  pointer-events: none;
}
.cal-cell.has-log {
  background: rgba(168, 72, 92, 0.06);
}
.cal-cell.is-today {
  border-color: rgba(168, 72, 92, 0.35);
}
.cal-cell.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(168, 72, 92, 0.12);
}
.cal-day-num {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
}
.cal-thumb {
  width: 70%;
  height: auto;
  max-height: 58%;
  object-fit: cover;
  border-radius: 6px;
}
.cal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: auto;
  margin-bottom: 0.2rem;
}
.cal-day-title {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 1rem;
}
.cal-section-label {
  margin: 0.75rem 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cal-pieces {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.cal-piece {
  margin: 0;
}
.cal-piece img,
.cal-piece-ph {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  background: rgba(42, 36, 32, 0.06);
  display: block;
}
.cal-piece figcaption {
  margin-top: 0.25rem;
  font-size: 0.68rem;
  color: var(--muted);
  text-align: center;
}
.calendar-recent {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.cal-recent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 251, 246, 0.85);
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
}
.cal-recent-date {
  font-weight: 600;
  font-size: 0.9rem;
}
.cal-recent-thumbs {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}
.cal-recent-thumbs img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
}

@media (min-width: 760px) {
  .auth-mode .nav { display: none; }
  .nav {
    top: var(--header-h);
    bottom: auto;
    transform: none;
    left: auto;
    right: auto;
    position: sticky;
    width: auto;
    display: flex;
    justify-content: flex-start;
    gap: 0.25rem;
    padding: 0.25rem 0 0.75rem;
    background: transparent;
    border: 0;
    backdrop-filter: none;
  }
  .nav-item {
    font-size: 0.85rem;
    padding: 0.55rem 0.85rem;
  }
  .shell {
    padding-bottom: 2rem;
  }
}

/* --- Social --- */
.social-page { display: grid; gap: 1rem; }
.social-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.social-tabs .btn.active {
  background: var(--ink, #1a1210);
  color: #fff;
  border-color: transparent;
}
.social-feed { display: grid; gap: 1rem; }
.social-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 252, 250, 0.9);
}
.social-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem 0.5rem;
}
.social-author {
  display: grid;
  gap: 0.1rem;
  color: inherit;
}
.social-author strong { font-size: 0.95rem; }
.social-author span { color: var(--muted); font-size: 0.8rem; }
.social-vis { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.social-preview {
  display: block;
  aspect-ratio: 3 / 4;
  background: #efe8e0;
}
.social-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.social-preview.empty { min-height: 180px; }
.social-caption { padding: 0.75rem 1rem 0; margin: 0; line-height: 1.45; }
.social-card-meta {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
}
.social-post-hero {
  width: 100%;
  border-radius: 16px;
  display: block;
  margin: 0.75rem 0;
}
.social-post-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 1.25rem; }
.social-comments { display: grid; gap: 0.65rem; margin-bottom: 1rem; }
.social-comment { padding: 0.55rem 0; border-bottom: 1px solid var(--line); line-height: 1.4; }
.social-comment-form { display: flex; gap: 0.5rem; }
.social-comment-form input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  background: #fff;
}
.social-user-head { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.social-user-actions { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.social-bell { position: relative; }
.social-bell-badge {
  position: absolute;
  top: -0.15rem;
  right: -0.15rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.22rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.social-bell-badge[hidden] { display: none; }
.social-notif-list { display: grid; }
.social-notif {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0.15rem;
  border-bottom: 1px solid var(--line);
}
.social-notif.unread {
  background: color-mix(in srgb, var(--bg-deep) 80%, transparent);
  margin: 0 -0.5rem;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
  border-radius: 10px;
}
.social-notif-meta { color: var(--muted); font-size: 0.8rem; }
.social-notif[data-username] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.social-notif[data-username] a { display: grid; gap: 0.2rem; }
.social-notif[data-username] .btn-unblock { flex: none; }
.social-notif[data-id] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.empty-block { padding: 2rem 0.25rem; }
.empty-block h2 { margin: 0 0 0.35rem; font-size: 1.15rem; }

.city-search-wrap { position: relative; }
.city-results {
  position: absolute;
  z-index: 5;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.25rem;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: 220px;
  overflow-y: auto;
}
.city-results li {
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
}
.city-results li:hover,
.city-results li.active {
  background: var(--line);
}
.city-selected-note { margin: 0.35rem 0 0; font-size: 0.8rem; color: var(--muted); }
.city-osm-attribution { font-size: 0.7rem; opacity: 0.75; }

.trip-forecast-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.75rem;
  margin-bottom: 0.5rem;
}
.trip-forecast-tile {
  flex: 0 0 auto;
  width: 78px;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
}
.trip-forecast-date { font-size: 0.68rem; color: var(--muted); margin: 0 0 0.25rem; }
.trip-forecast-temp { font-size: 0.78rem; font-weight: 700; margin: 0; }
.trip-forecast-unknown { font-size: 0.68rem; color: var(--muted); margin: 0; }

.trip-day-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem;
  margin-bottom: 0.75rem;
  color: inherit;
  text-decoration: none;
}
a.trip-day-card {
  cursor: pointer;
  transition: border-color 0.15s ease;
}
a.trip-day-card:hover,
a.trip-day-card:focus-visible {
  border-color: rgba(168, 72, 92, 0.35);
  outline: none;
}
.trip-day-empty { font-style: italic; }
.trip-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.trip-day-date { font-weight: 700; font-size: 0.9rem; }
.trip-day-weather {
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}
.trip-day-items { display: flex; gap: 0.5rem; overflow-x: auto; }
.trip-day-items img,
.trip-day-items .anchor-tile-empty {
  width: 64px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}

.trip-packing-list { margin-top: 0.5rem; }
.trip-packing-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}
.trip-packing-row img,
.trip-packing-row .anchor-tile-empty {
  width: 44px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  flex: 0 0 auto;
}
.trip-packing-info { display: flex; flex-direction: column; }
.trip-packing-category { font-weight: 600; font-size: 0.85rem; text-transform: capitalize; }
.trip-packing-worn { font-size: 0.75rem; color: var(--muted); }


/* Today's weather — the suggest-page card and the home pill. */
.suggest-weather { margin-bottom: 0.9rem; }
.weather-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 0.9rem;
}
.weather-card.empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.weather-head { display: flex; align-items: center; gap: 0.75rem; }
.weather-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  border-radius: 999px;
  background: var(--bg-deep);
}
.weather-title {
  margin: 0 0 0.1rem;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.weather-temp { margin: 0; font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.weather-bucket { font-size: 0.85rem; font-weight: 600; text-transform: capitalize; }
.weather-meta { margin: 0.15rem 0 0; font-size: 0.78rem; color: var(--muted); }
.weather-hours {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.weather-hour {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  min-width: 34px;
}
.weather-hour-label { font-size: 0.62rem; color: var(--muted); }
.weather-hour-icon { font-size: 0.9rem; }
.weather-hour-temp { font-size: 0.78rem; font-weight: 600; }
.weather-shift { margin: 0.75rem 0 0; font-size: 0.78rem; color: #8a5a06; }
.weather-note {
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}
.weather-auto { margin: 0.35rem 0 0; font-size: 0.75rem; color: var(--muted); }

.home-weather { margin-top: 0.85rem; }
.weather-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}
.weather-pill-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weather-pill-shift { font-weight: 400; font-size: 0.78rem; color: #8a5a06; white-space: nowrap; }
.weather-card.loading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.weather-card.loading p { margin: 0; }
.weather-spinner {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 999px;
  animation: weather-spin 0.8s linear infinite;
}
@keyframes weather-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .weather-spinner { animation: none; }
}
