:root {
  --bg: #f6f4f0;
  --surface: #ffffff;
  --surface-2: #ece8e1;
  --text: #1d1b18;
  --muted: #6f6a62;
  --border: #e2ddd4;
  --accent: #2f5d50;
  --accent-text: #ffffff;
  --accent-soft: #dcebe4;
  --ok: #2f7a55;
  --warn: #a0620a;
  --danger: #b3261e;
  --hot: #c8502e;
  --hot-soft: #f7e1d8;
  --nope: #c2392f;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(40 30 20 / .05), 0 6px 20px rgb(40 30 20 / .06);
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151412;
    --surface: #1f1d1a;
    --surface-2: #2b2824;
    --text: #f2eee7;
    --muted: #a39d93;
    --border: #36322d;
    --accent: #86c2ad;
    --accent-text: #0e1f19;
    --accent-soft: #22382f;
    --ok: #86c2ad;
    --warn: #e6b566;
    --danger: #f2a39d;
    --hot: #f0916c;
    --hot-soft: #3b261e;
    --nope: #f08a80;
    --shadow: 0 1px 2px rgb(0 0 0 / .3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.authed { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: calc(12px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 24px max(16px, env(safe-area-inset-left));
}

h1 { margin: 0; font-size: 1.9rem; font-weight: 700; letter-spacing: -.03em; }
h2 { margin: 0; font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
small, .muted { color: var(--muted); }
small { font-size: .8rem; }

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.loading { padding: 40vh 0; text-align: center; color: var(--muted); }

/* ---------- controls ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--surface-2); color: var(--text);
  font: inherit; font-size: .95rem; font-weight: 600;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .1s, filter .15s;
}
.btn:active { transform: scale(.97); }
.btn .icon { width: 18px; height: 18px; }
.btn.primary { background: var(--accent); color: var(--accent-text); }
.btn.ghost { background: transparent; border-color: var(--border); }
.btn.danger { background: transparent; color: var(--danger); padding-inline: 8px; }
.btn.small { padding: 6px 12px; font-size: .85rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .65; pointer-events: none; }
.btn.busy::after {
  content: ''; width: 14px; height: 14px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
@media (hover: hover) { .btn:hover { filter: brightness(1.06); } }

.icon-btn {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: var(--surface-2); color: var(--text); cursor: pointer;
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: inherit;
  font: inherit; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; }

.field { display: grid; gap: 6px; }
.field > span { font-size: .8rem; font-weight: 600; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.searchbox { position: relative; display: block; }
.searchbox .icon { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.searchbox input { padding-left: 42px; border-radius: 999px; }

/* ---------- layout pieces ---------- */

.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 16px; min-height: 44px; }
main > .searchbox { margin-bottom: 12px; }
.lead { margin-bottom: 12px; }

.chips {
  display: flex; gap: 8px;
  margin: 0 -16px 12px; padding: 2px 16px;
  overflow-x: auto; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; margin: 0; padding: 0; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text);
  font: inherit; font-size: .9rem; font-weight: 500; white-space: nowrap; cursor: pointer;
}
.chip span { color: var(--muted); font-size: .8rem; }
.chip .icon { width: 16px; height: 16px; }
.chip.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip.on span { color: inherit; opacity: .7; }
.chips.small .chip { padding: 5px 12px; font-size: .82rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; } }
.grid.mini-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.nothing { padding: 24px 0; text-align: center; }

.empty { display: grid; justify-items: center; gap: 10px; padding: 56px 16px; text-align: center; }
.empty > .icon {
  width: 56px; height: 56px; padding: 16px; box-sizing: content-box;
  border-radius: 28px; background: var(--accent-soft); color: var(--accent); stroke-width: 1.5;
}
.empty p { max-width: 38ch; color: var(--muted); }
.empty .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }

/* ---------- item cards ---------- */

.card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: 0; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: inherit;
  font: inherit; text-align: left; cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
@media (hover: hover) { .card:hover { transform: translateY(-2px); } }

.ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); }
.ph img, .cell img, .mini img { display: block; width: 100%; height: 100%; object-fit: cover; }
.noimg {
  display: grid; place-items: center; width: 100%; height: 100%;
  background: color-mix(in srgb, var(--sw) 35%, var(--surface-2));
  color: var(--muted);
}
.noimg .icon { width: 42%; height: 42%; stroke-width: 1.2; opacity: .55; }

.meta { display: grid; gap: 1px; min-width: 0; padding: 10px 12px 12px; }
.meta strong, .meta small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta strong { font-size: .95rem; font-weight: 600; }

.badge {
  position: absolute; left: 8px; bottom: 8px;
  display: inline-flex; align-items: center; gap: 4px; max-width: calc(100% - 16px);
  padding: 4px 9px 4px 7px; border-radius: 999px;
  background: rgb(20 18 16 / .6); color: #fff;
  font-size: .75rem; font-weight: 500;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.badge .icon { width: 12px; height: 12px; }

/* selectable cards (checkbox inside a label) */
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.tick {
  position: absolute; top: 8px; right: 8px;
  display: grid; place-items: center; width: 26px; height: 26px;
  border: 2px solid rgb(255 255 255 / .9); border-radius: 50%;
  background: rgb(0 0 0 / .2); color: transparent;
  transition: background .15s;
}
.tick .icon { width: 15px; height: 15px; stroke-width: 3; }
.pick:has(:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.pick:has(:checked) .tick { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.pick:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.mini-grid .meta { padding: 6px 8px 8px; }
.mini-grid .meta strong { font-size: .82rem; }
.mini-grid .meta small { font-size: .72rem; }

/* ---------- move ---------- */

.toolbar { display: grid; gap: 8px; margin-bottom: 20px; }
@media (min-width: 700px) { .toolbar { grid-template-columns: 1fr 260px; } }
.toolbar select { border-radius: 999px; }
#move-form { padding-bottom: 88px; }
.group { margin-bottom: 28px; }
.group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }

.actionbar {
  position: fixed; z-index: 5; left: 50%; translate: -50% 0;
  bottom: calc(84px + env(safe-area-inset-bottom));
  width: min(600px, calc(100% - 24px));
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 18px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 10px 40px rgb(0 0 0 / .2);
  animation: rise .2s ease-out;
}
.actionbar span { font-weight: 600; white-space: nowrap; }
.actionbar select { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 999px; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ---------- outfits ---------- */

.list { display: grid; gap: 12px; }
@media (min-width: 700px) { .list.outfits { grid-template-columns: 1fr 1fr; } }

.outfit {
  display: flex; gap: 14px; padding: 10px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: inherit;
  font: inherit; text-align: left; cursor: pointer;
  box-shadow: var(--shadow);
}
.outfit .meta { align-content: start; gap: 4px; padding: 4px 4px 4px 0; }
.outfit .meta strong { font-size: 1.05rem; }
.notes {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--muted); font-size: .88rem; white-space: pre-line;
}

.collage {
  flex: none; width: 104px; aspect-ratio: 4 / 5;
  display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 2px;
  border-radius: 12px; overflow: hidden; background: var(--surface-2);
}
.collage.n0, .collage.n1 { grid-template-columns: 1fr; }
.collage.n3 .cell:first-child { grid-row: span 2; }
.cell { min-height: 0; overflow: hidden; }

.status { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; font-weight: 500; color: var(--muted); }
.status .icon { width: 14px; height: 14px; }
.status.ok { color: var(--ok); }
.status.warn { color: var(--warn); }
.outfit-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- places ---------- */

.row {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: inherit;
  font: inherit; text-align: left; cursor: pointer;
  box-shadow: var(--shadow);
}
.row-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.row-main { display: grid; flex: 1; min-width: 0; }
.row-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip { display: flex; padding-left: 10px; }
.mini { width: 38px; height: 38px; margin-left: -10px; border: 2px solid var(--surface); border-radius: 50%; overflow: hidden; background: var(--surface-2); }
.mini .noimg .icon { width: 60%; height: 60%; }

.account {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 40px; padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted); font-size: .9rem;
}
.account span { overflow: hidden; text-overflow: ellipsis; }

/* ---------- tab bar ---------- */

.tabbar { display: none; }
body.authed .tabbar {
  position: fixed; z-index: 10; inset: auto 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px max(8px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.tabbar a {
  display: grid; justify-items: center; gap: 2px;
  padding: 6px 4px; border-radius: 12px;
  color: var(--muted); text-decoration: none;
  font-size: .72rem; font-weight: 600;
}
.tabbar a .icon { width: 24px; height: 24px; }
.tabbar a.on { color: var(--accent); }

@media (min-width: 700px) {
  body.authed { padding-bottom: 110px; }
  body.authed .tabbar {
    left: 50%; right: auto; bottom: 20px; translate: -50% 0;
    width: 420px; padding: 6px;
    border: 1px solid var(--border); border-radius: 999px;
    box-shadow: 0 10px 40px rgb(0 0 0 / .12);
  }
  .tabbar a { border-radius: 999px; }
  .tabbar a.on { background: var(--accent-soft); }
  .actionbar { bottom: 104px; }
}

/* ---------- sheets ---------- */

.sheet {
  width: 100%; max-width: 100%; max-height: 92dvh;
  margin: auto auto 0; padding: 0;
  border: 0; border-radius: 24px 24px 0 0;
  background: var(--bg); color: var(--text);
  box-shadow: 0 -10px 40px rgb(0 0 0 / .2);
  overflow-y: auto; overscroll-behavior: contain;
}
.sheet[open] { animation: sheet-up .25s cubic-bezier(.2, .8, .3, 1); }
.sheet::backdrop { background: rgb(10 8 6 / .45); }
@keyframes sheet-up { from { transform: translateY(60px); opacity: 0; } }
@media (min-width: 700px) {
  .sheet { max-width: 580px; max-height: 88dvh; margin: auto; border-radius: 24px; }
}

.sheet > form, .sheet > .sheet-body { display: grid; gap: 16px; padding: 0 20px calc(4px + env(safe-area-inset-bottom)); }
.sheet-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 -20px -4px; padding: 16px 20px 10px;
  background: var(--bg);
}
.sheet-head h2 { font-size: 1.3rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-foot {
  position: sticky; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  margin: 0 -20px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.sheet-foot .primary { margin-left: auto; min-width: 130px; }

.photo-pick {
  position: relative; display: block; aspect-ratio: 4 / 3;
  border: 2px dashed var(--border); border-radius: var(--radius);
  background: var(--surface-2); overflow: hidden; cursor: pointer;
}
.photo-pick:has(img) { border-style: solid; }
.photo-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-pick:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.photo-pick img { width: 100%; height: 100%; object-fit: contain; }
.photo-pick .change { left: auto; right: 10px; bottom: 10px; padding: 6px 12px; font-size: .82rem; }
.photo-pick:not(:has(img)) .change { display: none; }
.photo-empty { display: grid; place-items: center; align-content: center; gap: 8px; height: 100%; color: var(--muted); font-weight: 600; }
.photo-empty .icon { width: 36px; height: 36px; stroke-width: 1.6; }

.timeline { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.timeline li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); font-size: .88rem;
}
.timeline time { color: var(--muted); white-space: nowrap; }

/* ---------- login ---------- */

.login { display: grid; gap: 8px; max-width: 380px; margin: 14vh auto 0; text-align: center; }
.login form { display: grid; gap: 12px; margin-top: 24px; text-align: left; }
.logo { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 8px; border-radius: 24px; background: var(--accent); color: var(--accent-text); }
.logo .icon { width: 42px; height: 42px; stroke-width: 1.6; }

/* ---------- toast ---------- */

#toast {
  inset: auto; left: 50%; top: calc(14px + env(safe-area-inset-top));
  translate: -50% 0; margin: 0;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border: 0; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font: 600 .92rem var(--font);
  box-shadow: 0 10px 30px rgb(0 0 0 / .25);
}
#toast:popover-open { animation: drop .2s ease-out; }
#toast.error { background: var(--danger); color: #fff; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- carousel (coverflow) ---------- */

.bar-actions { display: flex; align-items: center; gap: 8px; }
.field-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.field-head > span { font-size: .8rem; font-weight: 600; color: var(--muted); }

.deck { position: relative; }
.deck.is-flow .cards {
  display: grid; grid-template-columns: 1fr; justify-items: center; gap: 0;
  margin-inline: -16px; padding: 12px 0 96px;
  perspective: 1100px;
  overflow-x: clip;
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.sheet .deck.is-flow .cards { margin-inline: -20px; }
.deck.is-flow .cards > * {
  grid-area: 1 / 1;
  width: min(230px, 58vw);
  transition: transform .55s cubic-bezier(.2, .8, .25, 1), opacity .3s, filter .3s;
  -webkit-box-reflect: below 6px linear-gradient(transparent 74%, rgb(0 0 0 / .2));
}
.sheet .deck.is-flow .cards > * { width: min(190px, 50vw); }
.deck.is-flow .cards > :not(.active) { filter: brightness(.9) saturate(.9); cursor: pointer; }
.deck.is-flow .cards > .active { box-shadow: 0 22px 44px rgb(0 0 0 / .2); }
.deck.is-flow img { pointer-events: none; -webkit-user-drag: none; }
.deck.is-flow .outfit { flex-direction: column; }
.deck.is-flow .outfit .collage { width: 100%; }
.deck.is-flow .cards:empty { padding: 0; }

.flow-nav, .flow-count { display: none; }
.deck.is-flow .flow-nav {
  position: absolute; z-index: 200; top: calc(50% - 44px); translate: 0 -50%;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--border); border-radius: 50%;
  background: var(--surface); color: var(--text);
  box-shadow: 0 4px 16px rgb(0 0 0 / .12); cursor: pointer;
}
.flow-nav.prev { left: 0; }
.flow-nav.next { right: 0; }
.flow-nav:disabled { opacity: 0; pointer-events: none; }
.deck.is-flow .flow-count {
  display: block; position: absolute; left: 0; right: 0; bottom: 12px;
  text-align: center; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .deck.is-flow .cards > *, .swipe-card { transition: none !important; }
}

/* ---------- new outfit: choose a way ---------- */

.choices { display: grid; gap: 12px; padding-bottom: 20px; }
.choice {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: center;
  padding: 16px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: inherit;
  font: inherit; text-align: left; cursor: pointer;
  box-shadow: var(--shadow);
}
.choice strong { font-size: 1.05rem; }
.choice small { grid-column: 2; }
.choice-icon { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--surface-2); color: var(--text); }
.choice-icon.hot { background: var(--hot-soft); color: var(--hot); }
.choice-icon .icon { width: 24px; height: 24px; }

/* ---------- swipe to build ---------- */

.parts { display: flex; flex-wrap: wrap; gap: 8px; }
.part {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); cursor: pointer; font-weight: 500;
}
.part input { position: absolute; opacity: 0; pointer-events: none; }
.part small { font-size: .8rem; }
.part:has(:checked) { background: var(--text); border-color: var(--text); color: var(--bg); }
.part:has(:checked) small { color: inherit; opacity: .7; }
.part:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.center { text-align: center; }
.sheet > .swipe { gap: 12px; }
.steps { display: flex; justify-content: center; gap: 6px; }
.steps span { width: 28px; height: 4px; border-radius: 2px; background: var(--border); }
.steps .done { background: var(--accent); }
.steps .now { background: var(--text); }

.stack { position: relative; height: min(54dvh, 460px); margin-top: 4px; }
.swipe-card {
  --i: 0;
  position: absolute; inset: 0; margin-inline: auto;
  width: min(100%, 340px);
  border-radius: 22px; overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 12px 32px rgb(0 0 0 / .18);
  transform: translateY(calc(var(--i) * 14px)) scale(calc(1 - var(--i) * .05));
  transition: transform .3s cubic-bezier(.2, .8, .3, 1);
  touch-action: none; user-select: none; -webkit-user-select: none;
  cursor: grab;
}
.swipe-card[data-top] { box-shadow: 0 16px 40px rgb(0 0 0 / .25); }
.swipe-card:active { cursor: grabbing; }
.swipe-card img, .swipe-card .noimg { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.swipe-meta {
  position: absolute; inset: auto 0 0;
  display: grid; gap: 2px;
  padding: 56px 18px 18px;
  background: linear-gradient(transparent, rgb(0 0 0 / .78));
  color: #fff;
}
.swipe-meta strong { font-size: 1.35rem; letter-spacing: -.01em; }
.swipe-meta small { color: rgb(255 255 255 / .8); }
.swipe-place { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; color: rgb(255 255 255 / .9); }
.swipe-place .icon { width: 14px; height: 14px; }
.stamp {
  position: absolute; top: 26px;
  padding: 4px 12px;
  border: 3px solid; border-radius: 8px;
  background: rgb(255 255 255 / .9);
  font-size: 1.6rem; font-weight: 800; letter-spacing: .08em;
  pointer-events: none;
}
.stamp.yes { left: 20px; rotate: -14deg; color: #2f7a55; opacity: clamp(0, var(--p, 0), 1); }
.stamp.no { right: 20px; rotate: 14deg; color: #c2392f; opacity: clamp(0, calc(var(--p, 0) * -1), 1); }
.stack-empty {
  display: grid; place-items: center; align-content: center; gap: 14px;
  height: 100%; padding: 24px;
  border: 2px dashed var(--border); border-radius: 22px;
  text-align: center;
}

.swipe-buttons { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 10px 0 calc(20px + env(safe-area-inset-bottom)); }
.round {
  display: grid; place-items: center; width: 64px; height: 64px;
  border: 1px solid var(--border); border-radius: 50%;
  background: var(--surface); box-shadow: var(--shadow); cursor: pointer;
  transition: transform .1s;
}
.round:active { transform: scale(.92); }
.round:disabled { opacity: .4; pointer-events: none; }
.round .icon { width: 28px; height: 28px; stroke-width: 2.6; }
.round.nope { color: var(--nope); }
.round.like { color: var(--ok); }

.review-collage .collage { width: 150px; margin-inline: auto; }
.review { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.review li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface);
}
.review .thumb { flex: none; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.review .thumb img, .review .thumb .noimg { width: 100%; height: 100%; object-fit: cover; }
.review .thumb .noimg .icon { width: 60%; height: 60%; }
.review small { display: inline-flex; align-items: center; gap: 3px; }
.review small .icon { width: 12px; height: 12px; }
