:root,
[data-theme="light"] {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --text: #111111;
  --muted: #6b6b6b;
  --line: #e6e4df;
  --primary: #111111;
  --on-primary: #ffffff;
  --accent: #111111;
  --studio: #eceae4;
  --phone: #111;
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --surface: #141414;
  --text: #f4f4f4;
  --muted: #9a9a9a;
  --line: #2a2a2a;
  --primary: #f4f4f4;
  --on-primary: #0a0a0a;
  --accent: #f4f4f4;
  --studio: #111;
  --phone: #333;
}

/* Fashion palettes */
[data-accent="noir"] { --primary: #111; --accent: #111; --bg: #f6f5f2; }
[data-theme="dark"][data-accent="noir"] { --primary: #f4f4f4; --accent: #f4f4f4; --bg: #0a0a0a; }

[data-accent="ivory"] { --primary: #2c2a26; --accent: #c4a574; --bg: #faf8f4; }
[data-theme="dark"][data-accent="ivory"] { --primary: #f5efe6; --accent: #c4a574; --bg: #12100e; }

[data-accent="wine"] { --primary: #5c1a24; --accent: #5c1a24; --bg: #f7f2f0; }
[data-theme="dark"][data-accent="wine"] { --primary: #e8b4bc; --accent: #e8b4bc; --bg: #14080a; }

[data-accent="olive"] { --primary: #3d4a2e; --accent: #3d4a2e; --bg: #f4f5f0; }
[data-theme="dark"][data-accent="olive"] { --primary: #c5d1b5; --accent: #c5d1b5; --bg: #0d100b; }

[data-accent="ink"] { --primary: #0f172a; --accent: #b8973d; --bg: #f8fafc; }
[data-theme="dark"][data-accent="ink"] { --primary: #e2e8f0; --accent: #d4af37; --bg: #020617; }

[data-accent="sand"] { --primary: #6b5344; --accent: #6b5344; --bg: #f3efe8; }
[data-theme="dark"][data-accent="sand"] { --primary: #e7d5c4; --accent: #e7d5c4; --bg: #14110e; }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, Helvetica, Arial, sans-serif;
  font-weight: 400;
  background: var(--studio);
  color: var(--text);
  letter-spacing: 0.01em;
}

.studio {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
  gap: 20px;
  padding: 20px;
}
@media (max-width: 800px) {
  .studio { grid-template-columns: 1fr; }
  .studio-bar { order: 2; }
}

.studio-bar .brand {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  font-weight: 500;
  margin: 0 0 8px;
}
.studio-bar .brand span { color: var(--muted); letter-spacing: 0.08em; margin-left: 6px; }
.hint { color: var(--muted); font-size: 0.78rem; line-height: 1.4; margin: 0 0 14px; }
.theme-btn, .flow-nav button {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 0;
  padding: 10px 12px;
  margin-bottom: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.flow-nav button:hover, .theme-btn:hover { background: var(--text); color: var(--bg); }

.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 390px;
  height: 844px;
  max-height: calc(100vh - 40px);
  background: var(--bg);
  border: 8px solid var(--phone);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
}

.screen { display: none; flex-direction: column; height: 100%; animation: rise .3s ease; }
.screen.active { display: flex; }
@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Editorial type */
.wordmark {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  font-weight: 500;
}
.wordmark.sm { font-size: 0.65rem; }
.wordmark.light, .ed-link.light, .ed-kicker.light, .ed-text-link.light { color: #fff; }
.ed-kicker {
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.ed-kicker.spaced { margin-top: 20px; }
.ed-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 2.4rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.ed-sub { margin: 0 0 20px; font-size: 0.9rem; line-height: 1.45; font-weight: 300; }
.ed-sub.muted, .muted { color: var(--muted); }
.ed-link, .ed-text-link {
  border: none; background: none; color: var(--text); font: inherit;
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  cursor: pointer; padding: 0; font-weight: 500;
}
.ed-text-link { text-decoration: underline; text-underline-offset: 4px; }
.ed-text-link.start { align-self: flex-start; margin: -4px 0 8px; }
.ed-text-link.inline { display: inline; letter-spacing: 0.04em; text-transform: none; font-size: inherit; }
/* Welcome / full-bleed heroes: keep links readable on video */
.full-bleed .ed-top .wordmark,
.full-bleed .ed-top .ed-link,
.full-bleed .ed-hero .ed-kicker,
.full-bleed .ed-hero .ed-text-link {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 0 18px rgba(0,0,0,.35);
}
.full-bleed .ed-hero h1,
.full-bleed .ed-hero .ed-sub {
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
.full-bleed .ed-hero .ed-text-link {
  display: inline;
  margin: 0;
  padding: 0;
  color: rgba(255,255,255,.88) !important;
  opacity: 1;
  text-decoration: none;
  letter-spacing: 0.14em;
  font-size: 0.62rem;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0,0,0,.7);
  border-bottom: none;
}
.full-bleed .ed-hero .ed-text-link:hover,
.full-bleed .ed-hero .ed-text-link:focus-visible {
  color: #fff !important;
  border-bottom: 1px solid rgba(255,255,255,.7);
  padding-bottom: 1px;
}
.full-bleed .ed-hero .ed-cta-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0 12px;
  margin-top: 16px;
}
.full-bleed .ed-hero .ed-cta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  flex-shrink: 0;
}

/* Full bleed fashion hero */
.full-bleed {
  position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0;
}
.full-bleed.half { flex: 0 0 42%; }
.full-bleed > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  animation: drift 20s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: scale(1.04); }
  to { transform: scale(1.1) translateY(-1%); }
}
.bleed-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.45) 0%,
    rgba(0,0,0,.2) 32%,
    rgba(0,0,0,.35) 55%,
    rgba(0,0,0,.78) 100%
  );
}
.ed-top {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 20px; color: #fff;
}
.ed-hero {
  position: relative; z-index: 2; margin-top: auto; padding: 28px 22px 36px; color: #fff;
}
.ed-hero.compact { padding-bottom: 20px; }
.ed-hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500; font-size: 3rem; line-height: 1; margin: 10px 0 12px;
}
.ed-cta-row { display: flex; gap: 10px; margin: 18px 0 0; }
.ed-cta-row .btn { flex: 1; }

.top-line {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 10px; border-bottom: 1px solid var(--line);
}
.back {
  border: none; background: none; color: var(--text); font-size: 1.1rem; cursor: pointer; padding: 4px 8px;
}
.pad { padding: 20px 18px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pad.narrow { max-width: 100%; }
.pad.scroll { overflow: auto; }
.pad.tight { gap: 14px; padding-top: 14px; }
.pad.sheet {
  background: var(--bg); flex: 1; border-top: 1px solid var(--line);
}
.has-tab .pad.scroll { padding-bottom: 84px; }

.btn {
  border: 1px solid var(--primary);
  border-radius: 0;
  padding: 14px 16px;
  font: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .15s, color .15s;
}
.btn.solid { background: var(--primary); color: var(--on-primary); }
.btn.solid.invert { background: #000; color: #fff; border-color: #000; }
[data-theme="dark"] .btn.solid.invert { background: #fff; color: #000; border-color: #fff; }
.btn.line { background: transparent; color: var(--text); }
.btn.line.light { color: #fff; border-color: rgba(255,255,255,.7); }
.btn.sm { width: auto; padding: 10px 14px; }
.btn.oauth { font-weight: 400; letter-spacing: 0.1em; }
.oauth-icon { width: 16px; height: 16px; }

.ed-label {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
input, select {
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  padding: 10px 0;
}
input:focus, select:focus { outline: none; border-bottom-color: var(--text); }

.or {
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 4px 0;
}
.fine { font-size: 0.8rem; color: var(--muted); text-align: center; }

.ed-row {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 18px 0;
  border: none; border-bottom: 1px solid var(--line);
  background: none; color: var(--text); font: inherit; font-size: 0.92rem;
  cursor: pointer; text-decoration: none; text-align: left;
}
.ed-row .arrow { color: var(--muted); }
.ed-row .meta { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }

.ed-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  border: 1px solid var(--line); background: transparent; color: var(--text);
  padding: 8px 12px; font: inherit; font-size: 0.65rem; letter-spacing: 0.14em;
  text-transform: uppercase; cursor: pointer; border-radius: 0;
}
.tag.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

/* Magazine home */
.mag-hero {
  position: relative; height: 320px; flex-shrink: 0; cursor: pointer; overflow: hidden;
  border: none; padding: 0; background: none; width: 100%;
}
.mag-hero img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.mag-hero:hover img { transform: scale(1.04); }
.mag-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(transparent 30%, rgba(0,0,0,.72));
  color: #fff; text-align: left;
}
.mag-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem; font-weight: 500; margin: 6px 0 8px;
}
.mag-cta { margin: 0; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; }

.count-strip {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.count-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.count-big {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3rem; margin: 4px 0 0; font-weight: 500; line-height: 1;
}
.count-big span { font-family: Inter, sans-serif; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }

.ed-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile {
  position: relative; border: none; padding: 0; height: 140px; overflow: hidden; cursor: pointer; background: #000;
}
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: transform .5s, opacity .3s; }
.tile:hover img { transform: scale(1.05); opacity: 1; }
.tile span {
  position: absolute; left: 10px; bottom: 10px; color: #fff;
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
}

/* Lookbook */
.look-card { margin-bottom: 28px; cursor: pointer; }
.look-img { overflow: hidden; background: #111; }
.look-img img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform .6s; }
.look-img.tall img { height: 300px; }
.look-card:hover img { transform: scale(1.03); }
.look-meta { padding: 12px 0 0; }
.look-meta h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem; font-weight: 500; margin: 4px 0 6px;
}
.look-meta p { margin: 0; color: var(--muted); font-size: 0.85rem; font-weight: 300; }

/* Colours */
.palette-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.palette {
  border: 1px solid var(--line); background: var(--surface); padding: 12px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; cursor: pointer; text-align: left;
}
.palette.on { border-color: var(--text); }
.palette i { display: block; height: 36px; }
.palette[data-accent="noir"] i:nth-child(1) { background: #111; }
.palette[data-accent="noir"] i:nth-child(2) { background: #f6f5f2; }
.palette[data-accent="noir"] i:nth-child(3) { background: #6b6b6b; }
.palette[data-accent="ivory"] i:nth-child(1) { background: #2c2a26; }
.palette[data-accent="ivory"] i:nth-child(2) { background: #c4a574; }
.palette[data-accent="ivory"] i:nth-child(3) { background: #faf8f4; }
.palette[data-accent="wine"] i:nth-child(1) { background: #5c1a24; }
.palette[data-accent="wine"] i:nth-child(2) { background: #c4a574; }
.palette[data-accent="wine"] i:nth-child(3) { background: #f7f2f0; }
.palette[data-accent="olive"] i:nth-child(1) { background: #3d4a2e; }
.palette[data-accent="olive"] i:nth-child(2) { background: #a3a189; }
.palette[data-accent="olive"] i:nth-child(3) { background: #f4f5f0; }
.palette[data-accent="ink"] i:nth-child(1) { background: #0f172a; }
.palette[data-accent="ink"] i:nth-child(2) { background: #b8973d; }
.palette[data-accent="ink"] i:nth-child(3) { background: #f8fafc; }
.palette[data-accent="sand"] i:nth-child(1) { background: #6b5344; }
.palette[data-accent="sand"] i:nth-child(2) { background: #cbb79f; }
.palette[data-accent="sand"] i:nth-child(3) { background: #f3efe8; }
.palette em {
  grid-column: 1 / -1; font-style: normal; font-size: 0.62rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 6px;
}

.hairline-progress {
  height: 1px; background: var(--line); position: relative; margin: 4px 0 12px;
}
.hairline-progress.tall { height: 2px; }
.hairline-progress > div {
  position: absolute; left: 0; top: 0; bottom: 0; background: var(--primary);
}

.ed-check { list-style: none; margin: 0; padding: 0; }
.ed-check li {
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 0.95rem; display: flex; gap: 12px; align-items: center;
}
.ed-check li::before {
  content: ""; width: 14px; height: 14px; border: 1px solid var(--text); flex-shrink: 0;
}
.ed-check li.done { color: var(--muted); }
.ed-check li.done::before { background: var(--text); }

.money-xl {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.6rem; margin: 0 0 16px; font-weight: 500; line-height: 1;
}
.money-split {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.money-split .num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem; margin: 4px 0 0; font-weight: 500;
}
.ed-money { list-style: none; margin: 0; padding: 0; }
.ed-money li {
  display: flex; justify-content: space-between; padding: 14px 0;
  border-bottom: 1px solid var(--line); font-size: 0.9rem;
}
.ed-money li span:last-child { color: var(--muted); }

.guest-list { list-style: none; margin: 0; padding: 0; }
.guest-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.guest-list .info { flex: 1; }
.guest-list .info strong { display: block; font-weight: 500; font-size: 0.95rem; }
.guest-list .info span {
  font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.guest-list .remove {
  border: 1px solid var(--line); background: transparent; color: var(--text);
  padding: 8px 10px; font: inherit; font-size: 0.6rem; letter-spacing: 0.14em;
  text-transform: uppercase; cursor: pointer;
}
.badge {
  font-style: normal; font-size: 0.55rem; letter-spacing: 0.12em; margin-left: 6px;
  border: 1px solid var(--line); padding: 2px 6px;
}
.add-guest { border: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.row-btns { display: flex; gap: 8px; }

.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 10px 4px 18px;
  z-index: 3;
}
.tabbar button {
  border: none; background: none; color: var(--muted);
  font: inherit; font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; padding: 8px 2px;
}
.tabbar button.on { color: var(--text); font-weight: 600; }

.chat { gap: 12px; }
.bubble {
  max-width: 88%; padding: 14px 0; font-size: 0.9rem; line-height: 1.45; font-weight: 300;
  border-bottom: 1px solid var(--line);
}
.bubble.me { align-self: flex-end; text-align: right; font-weight: 400; border-bottom-color: var(--text); }
.composer {
  display: flex; gap: 8px; padding: 12px 16px 20px; border-top: 1px solid var(--line);
  background: var(--bg);
}
.composer input { flex: 1; }

/* —— v4: video, slivers, FAB, flip clock, oauth row —— */
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.full-bleed > .bg-video { z-index: 0; }

.oauth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.oauth-row .btn { width: 100%; }

.sliver-scroll {
  flex: 1;
  overflow: auto;
  padding-bottom: 88px;
  scroll-behavior: smooth;
}
.sliver-hero {
  position: relative;
  height: 340px;
  flex-shrink: 0;
  overflow: hidden;
  background: #111;
}
.sliver-hero .bg-video,
.sliver-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sliver-hero .bleed-scrim,
.sliver-hero .mag-overlay { z-index: 1; }
.sliver-hero .mag-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(transparent 25%, rgba(0,0,0,.78));
  color: #fff;
}
.sliver-hero .mag-cta {
  border: none;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: left;
  padding: 0;
  cursor: pointer;
}

.sliver-pin {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, padding .2s;
}
.sliver-pin.stuck {
  border-bottom-color: var(--line);
}
.sliver-body {
  padding: 8px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg);
}

.flip-clock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
.flip-unit {
  min-width: 0;
  text-align: center;
}
.flip-unit[data-unit="days"] .flip-window { width: 100%; }
.flip-window {
  position: relative;
  width: 100%;
  height: 54px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 92%, var(--text));
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 40%, transparent);
  perspective: 240px;
}
.flip-window::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
  background: color-mix(in srgb, var(--text) 12%, transparent);
  z-index: 2;
  pointer-events: none;
}
.flip-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1;
  color: var(--text);
  transform-origin: center;
  will-change: transform, opacity;
}
.flip-num.is-out {
  animation: flipOut .28s ease forwards;
}
.flip-num.is-in {
  animation: flipIn .32s ease forwards;
}
@keyframes flipOut {
  0% { transform: translateY(0) rotateX(0deg); opacity: 1; }
  100% { transform: translateY(-28%) rotateX(-55deg); opacity: 0; }
}
@keyframes flipIn {
  0% { transform: translateY(32%) rotateX(55deg); opacity: 0; }
  100% { transform: translateY(0) rotateX(0deg); opacity: 1; }
}
.flip-unit small {
  display: block;
  margin-top: 8px;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 62%, var(--muted));
  font-weight: 500;
}

.fab-wedo {
  position: absolute;
  right: 18px;
  bottom: 78px;
  z-index: 6;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--on-primary) 18%, transparent);
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
  display: grid;
  place-items: center;
  overflow: visible;
  transition: transform .2s ease, box-shadow .2s ease;
}
.fab-wedo:active { transform: scale(0.95); }
.fab-tip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  top: auto;
  transform: none;
  z-index: 3;
  white-space: nowrap;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  /* Inverted chip — always contrasts in light and dark */
  background: var(--text);
  color: var(--bg);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
  opacity: 1;
  pointer-events: none;
  animation: fabTipIn .45s ease .3s both;
}
.fab-tip::after {
  content: "";
  position: absolute;
  right: 16px;
  top: auto;
  bottom: -5px;
  width: 8px;
  height: 8px;
  border: none;
  background: var(--text);
  transform: rotate(45deg);
}
@keyframes fabTipIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.fab-icon {
  width: 21px;
  height: 21px;
  position: relative;
  z-index: 1;
  opacity: 0.95;
}
.fab-ring {
  position: absolute;
  inset: -5px;
  border: 1px solid color-mix(in srgb, var(--primary) 55%, transparent);
  border-radius: 50%;
  opacity: 0.4;
  animation: fabPulse 2.8s ease-out infinite;
  pointer-events: none;
}
@keyframes fabPulse {
  0% { transform: scale(0.94); opacity: 0.45; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { opacity: 0; }
}
.has-fab .tabbar { z-index: 5; }

.sliver-pin.static {
  position: sticky;
  border-bottom-color: var(--line);
}
.look-body {
  padding-top: 4px;
  gap: 20px;
}

.count-strip {
  align-items: stretch;
}

/* —— v4.1: demo guest mode —— */
.demo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.demo-banner .ed-text-link {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.65rem;
}

.ed-check [data-check] {
  cursor: pointer;
}

.gate-sheet {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.gate-sheet[hidden] {
  display: none !important;
}
.gate-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: color-mix(in srgb, var(--text) 42%, transparent);
  cursor: pointer;
  padding: 0;
}
.gate-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 22px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: gateUp 0.28s ease-out;
}
.gate-panel .ed-title {
  margin: 0;
  font-size: 1.55rem;
}
.gate-panel .ed-sub {
  margin: 0 0 6px;
}
@keyframes gateUp {
  from { transform: translateY(16px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}
