:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #222222;
  --muted: #717171;
  --line: #e4e4e4;
  --accent: #e5573f;
  --accent-ink: #ffffff;
  --accent-soft: #fde7e2;
  --plum: #c13f2a;
  --ok: #2f7d5b;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(42, 31, 45, .06), 0 6px 20px rgba(42, 31, 45, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #18151a; --surface: #221e24; --ink: #f5f5f5; --muted: #a8a3aa; --line: #37323a;
    --accent: #f06a52; --accent-soft: #48261f; --plum: #ff8f7a; --ok: #6cc59b;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #18151a; --surface: #221e24; --ink: #f5f5f5; --muted: #a8a3aa; --line: #37323a;
  --accent: #f06a52; --accent-soft: #48261f; --plum: #ff8f7a; --ok: #6cc59b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 "Figtree", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
main { max-width: 720px; margin: 0 auto; padding: 20px 16px calc(110px + env(safe-area-inset-bottom)); }

h1, h2, h3 { font-family: inherit; font-weight: 800; line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 7vw, 3rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--plum); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.top-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.top-bar .brand { margin-bottom: 0; }
.share-top { font-size: .85rem; gap: 6px; }
.share-top .ico { width: 18px; height: 18px; }
.brand { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; margin-bottom: 24px; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 6px 16px rgba(0,0,0,.06); margin-bottom: 16px; }

.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; min-height: 50px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  transition: transform .08s ease, opacity .15s;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn.secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost { background: transparent; color: var(--muted); padding: 10px 14px; min-height: 40px; }
.btn.block { width: 100%; }
.btn.danger { background: transparent; color: var(--accent); border: 1.5px solid var(--accent-soft); }

label { display: block; font-weight: 700; margin: 14px 0 6px; }
.date-time-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.date-picker { position: relative; }
.date-trigger {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600;
  color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 16px; min-height: 50px; width: 100%; cursor: pointer; white-space: nowrap; text-align: left;
}
.date-trigger:hover { border-color: var(--accent); }
.date-trigger .ico { color: var(--muted); width: 18px; height: 18px; flex-shrink: 0; }
.cal-panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 20;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,.12); padding: 14px; width: 280px;
}
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-title { font-weight: 700; font-size: .95rem; }
.cal-nav {
  appearance: none; border: 0; background: transparent; cursor: pointer; font-size: 1.2rem;
  color: var(--muted); width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
}
.cal-nav:hover { background: var(--accent-soft); color: var(--accent); }
.cal-nav .ico { width: 16px; height: 16px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-day-label { font-size: .75rem; font-weight: 600; color: var(--muted); padding: 4px 0; }
.cal-day {
  appearance: none; border: 0; background: transparent; font: inherit; font-size: .9rem; font-weight: 500;
  color: var(--ink); width: 36px; height: 36px; border-radius: 10px; cursor: pointer; margin: 0 auto;
}
.cal-day:hover:not([disabled]) { background: var(--accent-soft); }
.cal-day.sel { background: var(--accent); color: #fff; font-weight: 700; }
.cal-day.past { color: var(--line); cursor: default; }
.time-picker { position: relative; flex: 0 0 auto; }
.time-trigger {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600;
  color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 16px; min-height: 50px; min-width: 140px; cursor: pointer; white-space: nowrap;
}
.time-trigger:hover { border-color: var(--accent); }
.time-trigger .ico { color: var(--muted); width: 18px; height: 18px; }
.time-panel {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 20;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,.12); padding: 8px;
  width: 200px; max-height: 280px; overflow-y: auto;
  grid-template-columns: 1fr 1fr; gap: 4px;
  scrollbar-width: thin;
}
.time-panel[hidden], .cal-panel[hidden] { display: none !important; }
.time-panel:not([hidden]) { display: grid; }
.time-opt {
  appearance: none; border: 0; background: transparent; font: inherit; font-size: .9rem;
  font-weight: 500; color: var(--ink); padding: 10px 8px; border-radius: 10px;
  cursor: pointer; text-align: center; white-space: nowrap;
}
.time-opt:hover { background: var(--accent-soft); }
.time-opt[aria-pressed="true"] { background: var(--accent); color: #fff; font-weight: 700; }
.time-sep { flex-shrink: 0; line-height: 50px; }
.time-trigger.secondary { border-style: dashed; color: var(--muted); font-weight: 500; min-width: auto; padding: 10px 12px; }
input[type=text], input[type=url], textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 80px; resize: vertical; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  appearance: none; font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); min-height: 40px;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.size { min-width: 64px; min-height: 52px; font-size: 1.05rem; font-weight: 700; }
.chip.size:active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* homepage mosaic spotlight */
.mosaic-wrap {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
}
.mosaic-wrap::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 600px 500px at 50% 40%, rgba(255,255,255,.95) 0%, rgba(255,255,255,.7) 60%, transparent 100%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mosaic-wrap::after {
    background: radial-gradient(ellipse 600px 500px at 50% 40%, rgba(24,21,26,.95) 0%, rgba(24,21,26,.7) 60%, transparent 100%);
  }
}
.mosaic-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); width: 100%; height: 100%;
  mask-image: radial-gradient(circle 0px at 0 0, transparent 100%);
  -webkit-mask-image: radial-gradient(circle 0px at 0 0, transparent 100%);
}
.mosaic-tile {
  display: grid; place-items: center; padding: 20%;
  color: var(--accent); opacity: .35;
}
.mosaic-tile svg { width: 100%; height: 100%; }
.mosaic-tile:nth-child(even) { color: var(--line); opacity: .5; }
.mosaic-tile:nth-child(3n) { transform: rotate(8deg); }
.mosaic-tile:nth-child(3n+1) { transform: rotate(-6deg); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mosaic-tile { opacity: .15; }
}
@media (hover: none) { .mosaic-wrap { display: none; } }

.hero { position: relative; padding: 60px 0 40px; text-align: center; max-width: 560px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.4rem, 8vw, 3.4rem); margin-bottom: .3em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .muted { font-size: 1.1rem; line-height: 1.6; margin-bottom: 28px; }
.hero .btn { font-size: 1.15rem; padding: 18px 40px; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 56px 0 48px; text-align: center; }
@media (max-width: 600px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; } }
.step { display: flex; flex-direction: column; align-items: center; gap: 12px; opacity: 0; transform: translateY(24px); animation: step-in .5s ease forwards; }
.step:nth-child(1) { animation-delay: .1s; }
.step:nth-child(2) { animation-delay: .25s; }
.step:nth-child(3) { animation-delay: .4s; }
.step:nth-child(4) { animation-delay: .55s; }
@keyframes step-in { to { opacity: 1; transform: translateY(0); } }
.step .n { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 1.05rem; display: grid; place-items: center; }
.step b { font-size: .95rem; }
.step .muted { font-size: .85rem; line-height: 1.45; }

.host-profile { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; }
.host-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--line); flex-shrink: 0; }
.host-avatar-placeholder { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 1.1rem; display: grid; place-items: center; flex-shrink: 0; }
.avatar-edit .host-avatar, .avatar-edit .host-avatar-placeholder { width: 48px; height: 48px; }
/* features */
.features { margin: 56px 0 40px; padding: 40px 0; border-top: 1px solid var(--line); }
.features h2 { font-size: 1.5rem; margin-bottom: 8px; text-align: center; }
.features > .muted { text-align: center; margin-bottom: 28px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (min-width: 600px) { .feature-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 16px; opacity: 0; transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.feature.visible { opacity: 1; transform: translateY(0); }
.feature-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.feature-icon { flex-shrink: 0; color: var(--accent); display: grid; place-items: center; }
.feature-icon .ico { width: 22px; height: 22px; stroke-width: 2; }
.feature:nth-child(1) .feature-icon .ico { animation: feat-snap 3s ease-in-out infinite; }
.feature:nth-child(2) .feature-icon .ico { animation: feat-pulse 2s ease-in-out infinite; }
.feature:nth-child(3) .feature-icon .ico { animation: feat-tick 4s linear infinite; }
.feature:nth-child(4) .feature-icon .ico { animation: feat-lock 4s ease-in-out infinite; }
.feature:nth-child(5) .feature-icon .ico { animation: feat-check 3s ease-in-out infinite; }
.feature:nth-child(6) .feature-icon .ico { animation: feat-spin 4s ease-in-out infinite; }
.feature:nth-child(7) .feature-icon .ico { animation: feat-ring 3s ease-in-out infinite; }
.feature:nth-child(8) .feature-icon .ico { animation: feat-bounce 2.5s ease-in-out infinite; }
.feature:nth-child(9) .feature-icon .ico { animation: feat-lock 4s ease-in-out infinite; }
.feature:nth-child(10) .feature-icon .ico { animation: feat-check 3s ease-in-out infinite; }
.feature:nth-child(11) .feature-icon .ico { animation: feat-bounce 2.5s ease-in-out infinite; }
.feature:nth-child(12) .feature-icon .ico { animation: feat-tick 4s linear infinite; }
@keyframes feat-snap { 0%,85%,100% { transform: scale(1); } 90% { transform: scale(.8); } 95% { transform: scale(1.05); } }
@keyframes feat-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@keyframes feat-tick { 0%,100% { transform: rotate(0); } 25% { transform: rotate(15deg); } 50% { transform: rotate(0); } }
@keyframes feat-lock { 0%,40%,100% { transform: translateY(0); } 45% { transform: translateY(-2px); } 50% { transform: translateY(0); } }
@keyframes feat-check { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: .8; } }
@keyframes feat-spin { 0%,100% { transform: rotate(0); } 50% { transform: rotate(180deg); } }
@keyframes feat-ring { 0%,70%,100% { transform: rotate(0); } 75% { transform: rotate(12deg); } 80% { transform: rotate(-10deg); } 85% { transform: rotate(6deg); } 90% { transform: rotate(0); } }
@keyframes feat-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.feature-head b { font-size: .95rem; }
.feature p { margin: 0; line-height: 1.45; }
.cta-bottom { text-align: center; padding: 48px 0 20px; }
.cta-bottom h2 { font-size: 1.5rem; margin-bottom: .3em; }
.cta-bottom .muted { margin-bottom: 20px; font-size: 1.05rem; }

.swap-head { margin-bottom: 18px; text-align: center; }
.swap-head h1 { margin-top: 12px; margin-bottom: 12px; }
.swap-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; color: var(--muted); font-size: .95rem; }
.stats { display: flex; gap: 10px; margin: 14px 0; }
.stat { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; }
.stat b { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.stat span { font-size: .8rem; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.tile { position: relative; border-radius: 14px; overflow: hidden; background: var(--line); aspect-ratio: 3 / 4; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .tag { position: absolute; left: 8px; bottom: 8px; background: rgba(20, 14, 22, .72); color: #fff; font-weight: 700; font-size: .85rem; padding: 3px 9px; border-radius: 999px; backdrop-filter: blur(4px); }
.tile .del { position: absolute; right: 6px; bottom: 6px; appearance: none; border: 0; cursor: pointer; background: rgba(255,255,255,.9); color: var(--accent); border-radius: 999px; padding: 5px 10px; font: inherit; font-size: .8rem; font-weight: 700; min-height: 32px; }
.tile.pending img { opacity: .55; }
.tile .state { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); }

.empty { text-align: center; padding: 36px 16px; color: var(--muted); }

.fab { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 10; box-shadow: 0 8px 24px rgba(217, 87, 59, .35); padding: 16px 28px; font-size: 1.05rem; }
.fab:active { transform: translateX(-50%) scale(.97); }

.snap-zone { display: grid; gap: 10px; }
.snap-btn { min-height: 120px; font-size: 1.2rem; border-radius: 22px; flex-direction: column; }
.snap-btn .icon { font-size: 2rem; line-height: 1; }
.preview { border-radius: 18px; overflow: hidden; background: var(--line); aspect-ratio: 3 / 4; max-height: 52dvh; margin: 0 auto 14px; }
.preview img { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sizes .chip { min-width: 0; }
.added-strip { display: flex; gap: 8px; overflow-x: auto; margin: 14px -16px 0; padding: 0 16px 4px; }
.added-strip .tile { flex: 0 0 72px; aspect-ratio: 3/4; }
.added-strip .tile .tag { font-size: .7rem; padding: 2px 6px; left: 4px; bottom: 4px; }

.linkbox { display: flex; gap: 8px; align-items: center; background: var(--bg); border: 1.5px dashed var(--line); border-radius: 12px; padding: 10px 12px; margin: 8px 0 4px; }
.linkbox code { flex: 1; font-size: .85rem; word-break: break-all; }
.warn { background: var(--accent-soft); color: var(--ink); border-radius: 12px; padding: 12px 14px; font-size: .95rem; margin: 12px 0; }
.qr { display: grid; place-items: center; padding: 12px; background: #fff; border-radius: 14px; width: fit-content; margin: 10px auto; }
.qr svg { width: 180px; height: 180px; display: block; }
.qr-pair { display: flex; gap: 20px; justify-content: center; margin: 14px 0; }
.qr-col { flex: 0 0 auto; }
.host-qr .qr { background: var(--accent); border: 2px solid var(--accent); padding: 14px; }
.host-qr .qr svg { filter: invert(1); }

/* dashboard nav */
.dash-nav {
  position: sticky; top: 0; z-index: 8; background: var(--bg);
  margin: 0 -16px 12px; padding: 8px 16px; border-bottom: 1px solid var(--line);
}
.dash-nav-scroll {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.dash-nav-scroll::-webkit-scrollbar { display: none; }
.dash-nav-link {
  flex-shrink: 0; font-size: .85rem; font-weight: 600; color: var(--muted);
  text-decoration: none; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); white-space: nowrap;
}
.dash-nav-link:hover { border-color: var(--accent); color: var(--accent); }

.social-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.social-btn {
  font-size: .82rem; font-weight: 600; color: var(--muted); text-decoration: none;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color .15s, color .15s;
}
.social-btn:hover { border-color: var(--accent); color: var(--accent); }

.scroll-fade-wrap { position: relative; }
.scroll-fade-wrap::after {
  content: ''; position: sticky; bottom: 0; left: 0; right: 0; display: block;
  height: 48px; margin-top: -48px; pointer-events: none;
  background: linear-gradient(transparent, var(--surface));
}
.host-items-scroll { max-height: 500px; overflow-y: auto; scrollbar-width: thin; }
.host-item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.host-item:last-child { border-bottom: 0; }
.host-item img { width: 64px; height: 84px; object-fit: cover; border-radius: 10px; background: var(--line); }
.host-item .actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.host-item .actions .chip { min-height: 34px; padding: 4px 10px; font-size: .85rem; }
.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 64px 1fr 32px; gap: 8px; align-items: center; font-size: .9rem; }
.bar .track { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--accent); border-radius: 999px; }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.pill.open { background: #dff1e8; color: #1d6345; }
.pill.closed { background: var(--accent-soft); color: var(--accent); }

#toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(90px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 500; z-index: 20; max-width: calc(100% - 32px); text-align: center; }
footer.foot { text-align: center; margin-top: 40px; color: var(--muted); font-size: .9rem; }
.foot-links { margin-top: 6px; font-size: .85rem; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.legal { max-width: 600px; margin: 0 auto; }

/* guide pages */
.guide-hero {
  text-align: center; padding: 40px 20px 36px; margin: -20px -16px 28px;
  background: linear-gradient(145deg, var(--accent-soft) 0%, var(--bg) 100%);
  border-radius: 0 0 24px 24px;
}
.guide-hero-icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.guide-hero-icon .ico { width: 28px; height: 28px; stroke-width: 2; }
.guide-hero h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); margin-bottom: .3em; }
.guide-hero p { color: var(--muted); font-size: 1.05rem; max-width: 480px; margin: 0 auto; line-height: 1.5; }
.guide h2 { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.guide section:first-child h2 { border-top: none; padding-top: 0; }
.guide p:first-of-type { font-size: 1rem; color: var(--ink); line-height: 1.7; }
.guide-cta {
  text-align: center; padding: 36px 20px; margin: 36px -16px 0;
  background: var(--accent-soft); border-radius: 20px;
}
.guide-cta h3 { margin-bottom: .3em; }
.guide-cta .muted { margin-bottom: 16px; }
.guide-related { margin: 36px 0; }
.guide-related h3 { margin-bottom: 12px; }
.guide-links { display: flex; flex-direction: column; gap: 8px; }
.guide-link {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: border-color .15s;
}
.guide-link:hover { border-color: var(--accent); }
.guide-link-icon { flex-shrink: 0; color: var(--accent); }
.guide-link-icon .ico { width: 20px; height: 20px; }
.legal h1 { font-size: 1.8rem; margin-bottom: .2em; }
.legal h2 { font-size: 1.1rem; margin-top: 28px; margin-bottom: .3em; }
.legal p { color: var(--muted); font-size: .95rem; line-height: 1.7; margin-bottom: .6em; }
.legal section { margin-bottom: 8px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.next-banner { display: flex; flex-direction: column; gap: 2px; background: var(--ink); color: var(--bg); text-decoration: none; border-radius: 14px; padding: 14px 16px; margin: 12px 0; }
.next-banner span { opacity: .8; font-size: .95rem; }
.recap { border-color: var(--accent-soft); }
.recap .stat b { color: var(--accent); }
.host-link-card { border-color: var(--accent-soft); background: var(--surface); }
.host-link-card h3 { color: var(--accent); }
.confirm-card { border-color: var(--accent); }
.confirm-card[hidden] { display: none; }
.guest-list { display: flex; flex-direction: column; gap: 0; }
.guest-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.guest-row:last-child { border-bottom: 0; }
.guest-row .actions { display: flex; gap: 6px; }
.guest-row .actions .chip { min-height: 32px; padding: 4px 10px; font-size: .82rem; }
.ticket-banner { background: var(--accent-soft); border-radius: 12px; padding: 14px; margin-bottom: 14px; text-align: center; }
.ticket-banner b { font-size: 1.2rem; color: var(--accent); }
.price-picker { display: flex; flex-direction: column; gap: 8px; }
.price-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.price-chip { min-width: 56px; font-weight: 700; }
.price-chip[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.price-custom { max-width: 140px; }
.edit-form { margin-top: 4px; }

.brand-mark { width: 42px; height: 38px; display: block; }
.brand em { color: var(--accent); font-style: normal; }
.phone-card-inner { display: flex; align-items: center; gap: 20px; }
.phone-card-inner .qr { margin: 0; padding: 8px; }
.phone-card-inner .qr svg { width: 120px; height: 120px; }
.phone-card h3 { margin-bottom: 4px; }
.phone-card p { margin: 0; }
.ok-note { background: #e3f3ea; color: #1d5a3e; border-radius: 12px; padding: 10px 14px; font-size: .95rem; margin: 12px 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ok-note { background: #1f3a2c; color: #bfe8d0; } }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 500; margin-top: 12px; }
label.check input { width: 20px; height: 20px; accent-color: var(--accent); }
input[type=email] { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.pending-badge { position: absolute; left: 8px; top: 8px; right: 8px; background: rgba(255,255,255,.92); color: #222; font-size: .75rem; font-weight: 700; padding: 4px 8px; border-radius: 999px; text-align: center; }
.review-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; margin: 0 0 16px; }
.review-banner .btn { min-height: 40px; padding: 8px 16px; }
.pill.review { background: var(--accent-soft); color: var(--accent); margin-top: 4px; }
.chip.approve { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; }
details.privacy-opts { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
details.privacy-opts summary { cursor: pointer; font-weight: 700; }

/* ---------- browse: Airbnb-style 2-column grid ---------- */
.browser { margin-top: 8px; }
.filter-bar { position: sticky; top: 0; z-index: 5; background: var(--bg); margin: 0 -16px; padding: 10px 16px 8px; border-bottom: 1px solid transparent; }
.filter-bar .chips.scroll + .chips.scroll { margin-top: 8px; }
.filter-bar .chip { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.chip .count { margin-left: 6px; font-size: .78rem; opacity: .6; font-weight: 600; }
.bar-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.result-count { color: var(--muted); font-size: .9rem; }
.segmented { display: inline-flex; background: var(--line); border-radius: 999px; padding: 3px; }
.seg { appearance: none; border: 0; background: transparent; font: inherit; font-size: .85rem; font-weight: 600; color: var(--muted); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.seg[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; margin-top: 12px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.item { min-width: 0; animation: none; }
.item.fade-in { animation: item-in .25s ease; }
.item.fade-out { animation: item-out .2s ease forwards; pointer-events: none; }
@keyframes item-in { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }
@keyframes item-out { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(.95); } }
.item .tile { position: relative; border-radius: 16px; overflow: hidden; background: var(--line); aspect-ratio: 4 / 5; }
.item .tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
@media (hover: hover) { .item:hover .tile img { transform: scale(1.03); } }
.item-meta { display: flex; align-items: baseline; gap: 6px; padding: 8px 2px 0; font-size: .92rem; min-width: 0; }
.item-meta .size { font-weight: 700; white-space: nowrap; }
.item-meta .cat { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-meta .cat::before { content: "·"; margin-right: 6px; }
.item-meta .loves { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.item .heart { position: absolute; top: 8px; right: 8px; min-height: 0; padding: 6px; background: none; border: 0; cursor: pointer; display: flex; align-items: center; -webkit-tap-highlight-color: transparent; }
.item .heart .ico { width: 32px; height: 32px; color: rgba(255,255,255,.35); stroke-width: 2; }
.item .heart .heart-count { display: none; }
.item .heart[aria-pressed="true"] .ico { color: #e5573f; }
.item .heart.heart-pop svg { animation: heart-bounce .4s ease; }
@keyframes heart-bounce { 0% { transform: scale(1); } 25% { transform: scale(1.4); } 50% { transform: scale(.85); } 75% { transform: scale(1.15); } 100% { transform: scale(1); } }
.item .del { position: absolute; right: 8px; bottom: 8px; }
.sentinel { height: 1px; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  animation: lb-in .2s ease;
}
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox > img {
  max-width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; border-radius: 8px;
  -webkit-user-select: none; user-select: none;
}
.lb-close {
  position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; z-index: 2;
  appearance: none; border: 0; background: rgba(255,255,255,.15); color: #fff;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.5rem;
  display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(8px);
}
.lb-close:hover { background: rgba(255,255,255,.25); }
.lb-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; max-width: 500px; padding: 16px 20px; color: #fff;
}
.lb-size { font-weight: 700; font-size: 1.1rem; }
.lb-cat { color: rgba(255,255,255,.6); margin-left: 8px; }
.lb-info { display: flex; align-items: baseline; }
.lb-heart {
  appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  background: none; color: rgba(255,255,255,.5); font: inherit; font-weight: 700; font-size: .95rem;
  padding: 8px; -webkit-tap-highlight-color: transparent;
}
.lb-heart .ico { width: 32px; height: 32px; color: rgba(255,255,255,.4); stroke-width: 2; }
.lb-heart .lb-heart-count { color: rgba(255,255,255,.5); }
.lb-heart[aria-pressed="true"] .ico { color: #e5573f; }
.lb-heart[aria-pressed="true"] .lb-heart-count { color: #e5573f; }
.lb-heart.lb-heart-pop .ico { animation: heart-bounce .4s ease; }
.lb-heart-static { display: inline-flex; align-items: center; gap: 6px; }
.lb-heart-static .ico { width: 26px; height: 26px; color: rgba(255,255,255,.4); fill: none; }

/* wrap-up selection */
.item.selectable { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.item.selectable .left-badge { position: absolute; inset: 0; display: none; place-items: center; background: rgba(229, 87, 63, .55); color: #fff; font-weight: 800; font-size: 1.1rem; letter-spacing: .02em; }
.item.selectable[aria-pressed="true"] .left-badge { display: grid; }
.item.selectable[aria-pressed="true"] .tile { outline: 3px solid var(--accent); outline-offset: -3px; }

/* sticky event bar */
.event-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0,0,0,.06); }
.event-bar .when { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.event-bar .when b { font-size: .95rem; white-space: nowrap; }
.event-bar .when span { color: var(--muted); font-size: .85rem; }
.bar-actions { display: flex; gap: 6px; flex-shrink: 1; min-width: 0; }
.bar-btn { min-height: 40px; padding: 8px 12px; font-size: .85rem; white-space: nowrap; }
.bar-btn .ico { display: none; }
@media (min-width: 420px) { .bar-btn .ico { display: inline; } .bar-btn { padding: 10px 14px; font-size: .92rem; } }
@media (max-width: 360px) { .event-bar .when span { display: none; } .bar-btn { padding: 8px 10px; font-size: .8rem; } }
.wrap-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0,0,0,.06); }

/* ---------- line icons ---------- */
.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.2em; }
.ico.accent { color: var(--accent); }
.ico.big { width: 34px; height: 34px; }
.btn .ico { width: 1.2em; height: 1.2em; }
.inline-ico { display: inline-flex; align-items: center; gap: 6px; }
.with-ico { display: flex; align-items: center; gap: 10px; }
.with-ico .ico { width: 1em; height: 1em; }
.swap-meta .ico { color: var(--muted); }
.loves { display: inline-flex; align-items: center; gap: 3px; }
.loves .ico { width: 14px; height: 14px; }
.pending-badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.pending-badge .ico { width: 14px; height: 14px; }
.tile .state .ico { width: 28px; height: 28px; stroke-width: 2.4; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.chip.approve .ico { width: 15px; height: 15px; stroke-width: 2.4; }
.next-banner .inline-ico .ico { width: 1em; height: 1em; }
