/* Little Emperors — members' studio. Emerald Supper Club. */
:root {
  --bg: #061f1a;
  --bg-2: #082a24;
  --panel: #0e372e;
  --panel-2: #134437;
  --line: #24554710;
  --rule: #2c5a4b;
  --rule-soft: #1d4539;
  --ink: #f6f1de;
  --ink-2: #cfd8cd;
  --ink-3: #9db3a6;
  --gold: #cfaf70;
  --gold-2: #f3dfae;
  --gold-3: #a98a4f;
  --gold-grad: linear-gradient(100deg, #b99a5e 0%, #f7e6b8 28%, #cfa862 52%, #fbecc6 74%, #b79a62 100%);
  --plum-1: #1e1426;
  --plum-2: #33223a;
  --lilac: #bf9be8;
  --lilac-btn: linear-gradient(100deg, #d3bcf7, #edc6e1 55%, #f4d3c8);
  --danger: #f0a08c;
  --ok: #9fd8b4;
  --serif: "Cormorant Garamond", "Cormorant", Baskerville, "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .65);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100dvh; color: var(--ink); font: 400 16px/1.5 var(--sans);
  background:
    radial-gradient(1200px 520px at 50% -120px, rgba(42, 110, 86, .42), transparent 70%),
    radial-gradient(900px 600px at 100% 100%, rgba(14, 62, 50, .5), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--gold-2); text-underline-offset: 3px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(207, 175, 112, .35); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: .01em; margin: 0; line-height: 1.12; }
.eyebrow { font: 500 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.muted { color: var(--ink-3); }
.gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--rule); background: rgba(255, 255, 255, .03); color: var(--ink);
  font: 500 14.5px/1 var(--sans); letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  transition: background .18s, border-color .18s, transform .12s, box-shadow .18s, color .18s;
}
.btn:hover { border-color: var(--gold-3); background: rgba(207, 175, 112, .09); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.gold {
  background: var(--gold-grad); color: #1c2a1f; border-color: transparent; font-weight: 600;
  box-shadow: 0 10px 26px -12px rgba(207, 175, 112, .7), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn.gold:hover { filter: brightness(1.06); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: rgba(255, 255, 255, .06); color: var(--ink); }
.btn.danger { color: var(--danger); border-color: rgba(240, 160, 140, .35); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid transparent;
  background: transparent; color: var(--ink-2); transition: background .18s, color .18s, border-color .18s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .07); color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- Fields ---------- */
.field { display: grid; gap: 6px; }
.field > span, .label { font: 500 12px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.input, .textarea, .select {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--rule);
  background: rgba(3, 20, 16, .55); color: var(--ink); transition: border-color .18s, box-shadow .18s;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(207, 175, 112, .18); }
.input::placeholder, .textarea::placeholder { color: #7f978b; }
.hint { font-size: 13px; color: var(--ink-3); }
.error-text { color: var(--danger); font-size: 14px; }
.ok-text { color: var(--ok); font-size: 14px; }

/* ---------- Header ---------- */
.masthead {
  position: sticky; top: 0; z-index: 40; padding-top: var(--safe-t);
  background: linear-gradient(180deg, rgba(6, 31, 26, .96), rgba(6, 31, 26, .82) 70%, rgba(6, 31, 26, 0));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.masthead-in { max-width: 1320px; margin: 0 auto; padding: 14px 24px 12px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.wordmark {
  grid-column: 2; font: 600 clamp(26px, 3.4vw, 40px)/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 10px rgba(207, 175, 112, .22)); white-space: nowrap; background-size: 200% 100%;
  animation: sheen 9s ease-in-out infinite;
}
.wordmark small { display: block; font: 500 10px/1 var(--sans); letter-spacing: .42em; margin-top: 7px; text-align: center; color: var(--gold); -webkit-text-fill-color: var(--gold); opacity: .8; }
@keyframes sheen { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.nav-left { display: flex; gap: 4px; align-items: center; }
.nav-right { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.nav-link {
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2);
  font: 500 14px/1 var(--sans); letter-spacing: .04em; display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.nav-link:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.nav-link[aria-current="page"] { color: var(--gold-2); }
.nav-link svg { width: 18px; height: 18px; }
.sel-pill {
  min-height: 40px; padding: 0 8px 0 16px; border-radius: 999px; border: 1px solid var(--gold-3); background: rgba(207, 175, 112, .1);
  color: var(--gold-2); font: 500 14px/1 var(--sans); display: inline-flex; align-items: center; gap: 10px;
}
.sel-pill b { min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--gold-grad); color: #1c2a1f; display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; }
.sel-pill.bump b { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }

/* Bottom tab bar (phones) */
.tabbar { display: none; }

/* ---------- Layout ---------- */
.wrap { max-width: 1320px; margin: 0 auto; padding: 8px 24px 120px; }
.view { animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Concierge ---------- */
.concierge {
  position: relative; margin: 10px auto 34px; max-width: 980px; padding: 34px 28px 28px; text-align: center;
  border-radius: 260px 260px 28px 28px / 120px 120px 28px 28px;
  background: radial-gradient(120% 90% at 50% 0%, #1f5a45 0%, #0f3b30 46%, #0a2c24 100%);
  border: 1px solid rgba(207, 175, 112, .38);
  box-shadow: var(--shadow), inset 0 0 0 6px rgba(6, 31, 26, .55), inset 0 0 0 7px rgba(207, 175, 112, .22);
}
.concierge .ornament { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold); margin-bottom: 6px; font-size: 12px; }
.concierge .ornament::before, .concierge .ornament::after { content: ""; width: 54px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.concierge .ornament::after { transform: scaleX(-1); }
.emblem { width: 92px; height: 92px; margin: 0 auto 6px; color: var(--gold); display: grid; place-items: center; }
.emblem svg { width: 100%; height: 100%; overflow: visible; }
.emblem.small { width: 44px; height: 44px; margin: 0; }
.reply { font: 500 clamp(26px, 4.2vw, 44px)/1.12 var(--serif); margin: 4px auto 6px; max-width: 22ch; text-wrap: balance; min-height: 1.12em; }
.reply.long { max-width: 30ch; font-size: clamp(22px, 3.2vw, 34px); }
.reply-sub { color: var(--ink-2); margin: 0 auto 4px; max-width: 52ch; min-height: 1.5em; text-wrap: balance; }
.thinking .reply { opacity: .55; }
.dots { display: inline-flex; gap: 5px; vertical-align: middle; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: dot 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px 0 0; min-height: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 6px 0 14px; border-radius: 999px;
  background: rgba(207, 175, 112, .13); border: 1px solid rgba(207, 175, 112, .45); color: var(--gold-2); font-size: 14px;
}
.chip.place { background: rgba(191, 155, 232, .12); border-color: rgba(191, 155, 232, .5); color: #e3d2fb; }
.chip.exclude { background: rgba(240, 160, 140, .1); border-color: rgba(240, 160, 140, .45); color: #f6c7ba; }
.chip button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: inherit; display: grid; place-items: center; font-size: 14px; line-height: 1; }
.chip button:hover { background: rgba(255, 255, 255, .2); }

.capsule {
  margin: 18px auto 0; max-width: 640px; display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 8px; border-radius: 999px;
  background: linear-gradient(100deg, var(--plum-1), var(--plum-2)); border: 1px solid var(--lilac);
  box-shadow: 0 0 0 4px rgba(191, 155, 232, .12), 0 18px 40px -18px rgba(120, 80, 170, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: box-shadow .2s;
}
.capsule:focus-within { box-shadow: 0 0 0 5px rgba(191, 155, 232, .26), 0 18px 44px -16px rgba(140, 95, 200, .8), inset 0 1px 0 rgba(255, 255, 255, .1); }
.capsule input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; color: #fbf4ff; font-size: 17px; padding: 0 8px; outline: none; }
.capsule input::placeholder { color: #b7a3c9; }
.capsule .icon-btn { color: #d9c6ef; width: 42px; height: 42px; }
.capsule .send {
  height: 46px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--lilac-btn); color: #2a1838; font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; gap: 8px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
.capsule .send:hover { filter: brightness(1.05); }
.capsule .send svg { width: 16px; height: 16px; }

.suggest { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px auto 0; max-width: 760px; }
.suggest button {
  min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rule); background: rgba(6, 31, 26, .45); color: var(--ink-2); font-size: 14px;
  transition: all .18s;
}
.suggest button:hover { border-color: var(--gold); color: var(--gold-2); background: rgba(207, 175, 112, .08); }
.suggest button.primary { border-color: var(--gold-3); color: var(--gold-2); }

/* ---------- Toolbar + grid ---------- */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--rule-soft); }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); }
.section-head .count { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--rule); background: rgba(3, 20, 16, .5); }
.seg button { min-width: 40px; height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-3); font-size: 13px; display: inline-grid; place-items: center; }
.seg button[aria-pressed="true"] { background: rgba(207, 175, 112, .18); color: var(--gold-2); }
.seg svg { width: 16px; height: 16px; }
.combo { position: relative; }
.combo input { width: 250px; max-width: 60vw; min-height: 40px; border-radius: 999px; padding: 8px 36px 8px 16px; font-size: 14px; }
.combo .clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-3); }
.combo-list { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; width: min(380px, 90vw); max-height: 320px; overflow: auto; background: #0b2f27; border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; }
.combo-list button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: transparent; border-radius: 9px; font-size: 14px; }
.combo-list button:hover, .combo-list button.on { background: rgba(207, 175, 112, .12); }
.combo-list small { display: block; color: var(--ink-3); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.grid[data-size="s"] { --cols: 6; gap: 10px; }
.grid[data-size="m"] { --cols: 4; }
.grid[data-size="l"] { --cols: 2; gap: 24px; }
.card { position: relative; border-radius: 16px; overflow: hidden; background: var(--panel); border: 1px solid var(--rule-soft); transition: transform .25s, box-shadow .25s, border-color .25s; animation: rise .4s ease both; }
.card:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -24px rgba(0, 0, 0, .8); border-color: rgba(207, 175, 112, .45); }
.card .shot { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; padding: 0; background: #0a2a23; overflow: hidden; }
.card .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .4s; opacity: 0; }
.card .shot img.in { opacity: 1; }
.card:hover .shot img { transform: scale(1.045); }
.card .meta { padding: 12px 14px 14px; }
.card .loc { font: 500 10.5px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.card h3 { font-size: 20px; margin: 5px 0 3px; }
.card p { margin: 0; color: var(--ink-3); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grid[data-size="s"] .card .meta { display: none; }
.grid[data-size="s"] .card { border-radius: 10px; }
.grid[data-size="s"] .card .shot { aspect-ratio: 1; }
.grid[data-size="l"] .card .shot { aspect-ratio: 3 / 2; }
.grid[data-size="l"] .card h3 { font-size: 26px; }
.pick {
  position: absolute; z-index: 2; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .85);
  background: rgba(6, 31, 26, .55); color: #fff; display: grid; place-items: center; font: 600 15px/1 var(--sans);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .15s, background .2s, border-color .2s;
}
.pick:hover { transform: scale(1.08); }
.pick svg { width: 18px; height: 18px; }
.pick[aria-pressed="true"] { background: var(--gold-grad); color: #1c2a1f; border-color: transparent; box-shadow: 0 6px 18px -6px rgba(207, 175, 112, .9); animation: bump .3s ease; }
.grid[data-size="s"] .pick { width: 32px; height: 32px; top: 6px; right: 6px; font-size: 13px; }
.card.picked { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.more { display: flex; justify-content: center; margin: 30px 0 0; }
.empty { text-align: center; padding: 60px 20px; color: var(--ink-3); border: 1px dashed var(--rule); border-radius: var(--radius); }
.empty h3 { font-size: 26px; color: var(--ink); margin-bottom: 8px; }
.skeleton { border-radius: 16px; aspect-ratio: 4 / 3.9; background: linear-gradient(100deg, #0d342b 30%, #14463a 50%, #0d342b 70%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.foot { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--rule-soft); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--ink-3); font-size: 13px; }
.foot a { color: var(--ink-3); }

/* partner cards */
.pcard .shot { aspect-ratio: 4 / 3; }
.pcard .links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 13px; }
.pcard .links a { color: var(--ink-2); }
.pcard .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.pcard details { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.pcard summary { cursor: pointer; color: var(--ink-2); }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font: 500 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; background: rgba(207, 175, 112, .14); color: var(--gold-2); }

/* ---------- Dialogs / sheets ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(2, 12, 10, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .2s ease both; display: grid; place-items: center; padding: 20px; }
@keyframes fade { from { opacity: 0; } }
.dialog {
  width: min(640px, 100%); max-height: min(88dvh, 900px); display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, #10392f, #0a2a23); border: 1px solid rgba(207, 175, 112, .35); box-shadow: var(--shadow); animation: pop .25s cubic-bezier(.2, .8, .2, 1) both;
}
.dialog.wide { width: min(1080px, 100%); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 14px; border-bottom: 1px solid var(--rule-soft); }
.dialog-head h2 { font-size: 28px; }
.dialog-body { padding: 20px 22px; overflow: auto; overscroll-behavior: contain; display: grid; gap: 18px; align-content: start; }
.dialog-foot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 14px 22px calc(14px + var(--safe-b)); border-top: 1px solid var(--rule-soft); background: rgba(6, 31, 26, .5); }
.sheet { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(560px, 100%); display: flex; flex-direction: column; background: linear-gradient(180deg, #10392f, #092720); border-left: 1px solid rgba(207, 175, 112, .35); box-shadow: var(--shadow); animation: slide .3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.sheet.wide { width: min(1040px, 100%); }
.steps { display: flex; gap: 6px; padding: 12px 22px 0; }
.steps button { flex: 1; min-height: 44px; border: 0; border-bottom: 2px solid var(--rule-soft); background: transparent; color: var(--ink-3); font: 500 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.steps button[aria-selected="true"] { color: var(--gold-2); border-bottom-color: var(--gold); }
.steps button b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .08); margin-right: 8px; font-size: 11px; }
.steps button[aria-selected="true"] b { background: var(--gold-grad); color: #1c2a1f; }

.card-box { border: 1px solid var(--rule-soft); border-radius: 16px; background: rgba(3, 20, 16, .35); padding: 16px; display: grid; gap: 12px; }
.card-box h3 { font-size: 22px; }
.rowx { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rowx.between { justify-content: space-between; }
.stack { display: grid; gap: 12px; }
.divider { height: 1px; background: var(--rule-soft); border: 0; margin: 2px 0; }

/* selection list */
.sel-item { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 12px; border: 1px solid var(--rule-soft); border-radius: 16px; background: rgba(3, 20, 16, .35); }
.sel-item.dragging { opacity: .5; }
.sel-item.over { border-color: var(--gold); }
.sel-thumb { position: relative; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: #0a2a23; cursor: grab; }
.sel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sel-thumb b { position: absolute; left: 6px; top: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold-grad); color: #1c2a1f; display: grid; place-items: center; font-size: 12px; }
.sel-item h4 { margin: 0; font: 500 19px/1.2 var(--serif); }
.sel-item .loc { font: 500 10.5px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.sel-actions { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.sel-edit { grid-column: 1 / -1; display: grid; gap: 10px; padding-top: 4px; }

/* caption + preview */
.post-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.phone { width: 100%; max-width: 320px; margin: 0 auto; border-radius: 28px; background: #000; border: 1px solid #333; padding: 10px 0 14px; color: #f5f5f5; font: 400 13px/1.4 -apple-system, "Segoe UI", Roboto, sans-serif; box-shadow: var(--shadow); }
.phone .ig-head { display: flex; align-items: center; gap: 8px; padding: 4px 12px 10px; font-weight: 600; }
.phone .ig-head i { width: 28px; height: 28px; border-radius: 50%; background: conic-gradient(#feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75); display: block; }
.phone .ig-media { position: relative; background: #111; overflow: hidden; }
.phone .ig-media canvas, .phone .ig-media img { width: 100%; height: 100%; object-fit: cover; display: block; touch-action: none; cursor: grab; }
.phone .ig-dots { display: flex; justify-content: center; gap: 4px; padding: 8px 0 2px; }
.phone .ig-dots i { width: 6px; height: 6px; border-radius: 50%; background: #555; }
.phone .ig-dots i.on { background: #3897f0; }
.phone .ig-cap { padding: 6px 12px 0; white-space: pre-wrap; word-break: break-word; max-height: 150px; overflow: auto; }
.phone .ig-cap b { font-weight: 600; }
.phone .ig-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .8); color: #111; display: grid; place-items: center; }
.phone .ig-nav.prev { left: 8px; } .phone .ig-nav.next { right: 8px; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-chips button { min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--ink-2); font-size: 13px; }
.tag-chips button[aria-pressed="true"] { background: rgba(207, 175, 112, .16); border-color: var(--gold); color: var(--gold-2); }
.counter { font-size: 12px; color: var(--ink-3); text-align: right; }
.counter.over { color: var(--danger); }
.post-actions { display: grid; gap: 10px; }
.post-actions .btn { min-height: 52px; font-size: 15.5px; }
.status-line { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(3, 20, 16, .5); border: 1px solid var(--rule-soft); font-size: 14px; }
.status-line.good { border-color: rgba(159, 216, 180, .4); }
.status-line.warn { border-color: rgba(240, 160, 140, .4); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 4px rgba(159, 216, 180, .18); }
.dot.off { background: var(--danger); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); border-top-color: var(--gold-2); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* viewer */
.viewer { position: fixed; inset: 0; z-index: 70; background: rgba(2, 10, 8, .94); display: grid; grid-template-rows: auto 1fr auto; animation: fade .2s ease both; }
.viewer-top { display: flex; justify-content: space-between; align-items: center; padding: calc(10px + var(--safe-t)) 14px 6px; }
.viewer-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 56px; }
.viewer-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: var(--shadow); }
.viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.viewer-nav.prev { left: 8px; } .viewer-nav.next { right: 8px; }
.viewer-info { padding: 14px 20px calc(18px + var(--safe-b)); display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; max-width: 1100px; margin: 0 auto; width: 100%; }
.viewer-info h3 { font-size: 24px; }
.viewer-info .links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; margin-top: 4px; }
.wm { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font: 600 clamp(18px, 4vw, 44px)/1 var(--serif); letter-spacing: .3em; color: rgba(255, 255, 255, .22); text-transform: uppercase; transform: rotate(-18deg); }

/* toast */
.toasts { position: fixed; z-index: 90; left: 50%; bottom: calc(92px + var(--safe-b)); transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; padding: 13px 16px; border-radius: 14px; background: #f6f1de; color: #18261f; font-size: 14.5px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; animation: pop .25s ease both; }
.toast.err { background: #f7d5cb; }
.toast button { margin-left: auto; border: 0; background: transparent; color: inherit; font-weight: 600; text-decoration: underline; }

/* menu */
.menu { position: absolute; z-index: 50; right: 0; top: calc(100% + 8px); min-width: 250px; padding: 8px; border-radius: 16px; background: #0b2f27; border: 1px solid var(--rule); box-shadow: var(--shadow); animation: pop .18s ease both; }
.menu .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--rule-soft); margin-bottom: 6px; }
.menu .who b { display: block; font: 500 18px/1.2 var(--serif); }
.menu .who span { font-size: 12.5px; color: var(--ink-3); word-break: break-all; }
.menu button, .menu a { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font-size: 14.5px; text-align: left; text-decoration: none; }
.menu button:hover, .menu a:hover { background: rgba(207, 175, 112, .1); }
.menu svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold-3); background: rgba(207, 175, 112, .1); color: var(--gold-2); font: 600 15px/1 var(--serif); display: grid; place-items: center; }

/* tour */
.tour-hole { position: fixed; z-index: 80; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(2, 12, 10, .72), 0 0 0 2px var(--gold), 0 0 28px 4px rgba(207, 175, 112, .5); pointer-events: none; transition: all .35s cubic-bezier(.2, .8, .2, 1); }
.tour-card { position: fixed; z-index: 81; width: min(340px, calc(100vw - 24px)); padding: 18px; border-radius: 18px; background: #f6f1de; color: #18261f; box-shadow: var(--shadow); transition: top .35s, left .35s; }
.tour-card .eyebrow { color: #8a6b2f; }
.tour-card h3 { font-size: 24px; margin: 8px 0 6px; }
.tour-card p { margin: 0 0 14px; font-size: 14.5px; color: #33443a; }
.tour-card .rowx { justify-content: space-between; }
.tour-card .btn { min-height: 38px; color: #18261f; border-color: #c9bf9f; }
.tour-card .btn.gold { color: #1c2a1f; }
.tour-card .skip { border: 0; background: transparent; color: #5c6b60; font-size: 13.5px; text-decoration: underline; padding: 0; }
.tour-progress { display: flex; gap: 4px; margin-bottom: 2px; }
.tour-progress i { flex: 1; height: 3px; border-radius: 2px; background: #d9d0b4; }
.tour-progress i.on { background: #a98a4f; }

/* tables/lists */
.list { display: grid; gap: 8px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--rule-soft); border-radius: 14px; background: rgba(3, 20, 16, .35); flex-wrap: wrap; }
.list-row .grow { flex: 1; min-width: 160px; }
.list-row b { display: block; font-weight: 500; }
.list-row small { color: var(--ink-3); word-break: break-all; }
.switch { position: relative; width: 46px; height: 28px; border-radius: 999px; border: 1px solid var(--rule); background: rgba(3, 20, 16, .6); flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink-3); transition: transform .2s, background .2s; }
.switch[aria-checked="true"] { background: rgba(207, 175, 112, .25); border-color: var(--gold); }
.switch[aria-checked="true"]::after { transform: translateX(18px); background: var(--gold-2); }
.copybox { display: flex; gap: 8px; align-items: center; padding: 8px 8px 8px 14px; border-radius: 12px; border: 1px dashed var(--gold-3); background: rgba(207, 175, 112, .07); }
.copybox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 13px/1.3 ui-monospace, Consolas, monospace; color: var(--gold-2); }

/* install banner */
.install { position: fixed; z-index: 45; left: 50%; transform: translateX(-50%); bottom: calc(86px + var(--safe-b)); width: min(480px, calc(100vw - 24px)); display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: #0b2f27; border: 1px solid var(--gold-3); box-shadow: var(--shadow); animation: pop .3s ease both; }
.install img { width: 44px; height: 44px; border-radius: 11px; }
.install b { display: block; font: 500 18px/1.1 var(--serif); }
.install span { font-size: 13px; color: var(--ink-3); }

/* ---------- Welcome ---------- */
.welcome { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }
.welcome-main { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; max-width: 1120px; width: 100%; margin: 0 auto; padding: 20px 28px 40px; }
.arch {
  position: relative; aspect-ratio: 4 / 5; max-height: 68dvh; margin: 0 auto; width: min(100%, 440px); display: grid; place-items: center;
  border-radius: 999px 999px 26px 26px; border: 1px solid rgba(207, 175, 112, .4);
  background: radial-gradient(90% 70% at 50% 30%, #1f5a45, #0c3329 60%, #082820);
  box-shadow: var(--shadow), inset 0 0 0 8px rgba(6, 31, 26, .6), inset 0 0 0 9px rgba(207, 175, 112, .2);
}
.arch .emblem { width: 56%; height: auto; aspect-ratio: 1; transition: transform .25s ease-out; will-change: transform; }
.welcome-panel h1 { font-size: clamp(40px, 5.4vw, 64px); margin: 10px 0 12px; }
.welcome-panel p.lede { color: var(--ink-2); font-size: 17px; max-width: 40ch; margin: 0 0 26px; }
.welcome-panel form { display: grid; gap: 12px; max-width: 400px; }
.welcome-panel .btn { min-height: 52px; justify-content: space-between; padding: 0 22px; font-size: 15.5px; }
.welcome-panel .btn.center { justify-content: center; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin: 6px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.linkbtn { border: 0; background: transparent; color: var(--gold-2); padding: 0; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.welcome-foot { text-align: center; padding: 16px; color: var(--ink-3); font-size: 13px; }
.welcome-foot a { color: var(--ink-3); margin: 0 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid[data-size="s"] { --cols: 5; } .grid[data-size="m"] { --cols: 3; }
  .post-cols { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .masthead-in { padding: 10px 14px 8px; grid-template-columns: 44px 1fr 44px; }
  .nav-left .nav-link, .nav-right .sel-pill, .nav-right .nav-link { display: none; }
  .wordmark { font-size: 23px; letter-spacing: .12em; text-align: center; }
  .wordmark small { font-size: 8.5px; margin-top: 5px; }
  .wrap { padding: 4px 14px calc(110px + var(--safe-b)); }
  .concierge { padding: 24px 14px 20px; border-radius: 120px 120px 22px 22px / 60px 60px 22px 22px; margin-bottom: 24px; }
  .emblem { width: 72px; height: 72px; }
  .capsule input { font-size: 16px; }
  .capsule .send span { display: none; }
  .capsule .send { width: 46px; padding: 0; justify-content: center; }
  .grid[data-size="s"] { --cols: 3; gap: 6px; } .grid[data-size="m"] { --cols: 2; gap: 10px; } .grid[data-size="l"] { --cols: 1; }
  .card h3 { font-size: 17px; } .card .meta { padding: 9px 10px 11px; } .card p { font-size: 12.5px; }
  .grid[data-size="m"] .card p { display: none; }
  .section-head { align-items: start; }
  .combo input { width: 100%; max-width: none; } .combo { flex: 1; min-width: 150px; }
  .tabbar {
    position: fixed; z-index: 44; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 8px calc(6px + var(--safe-b));
    background: rgba(6, 28, 23, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--rule-soft);
  }
  .tabbar button { position: relative; border: 0; background: transparent; color: var(--ink-3); min-height: 54px; display: grid; place-items: center; gap: 2px; font: 500 10.5px/1 var(--sans); letter-spacing: .08em; }
  .tabbar button svg { width: 23px; height: 23px; }
  .tabbar button[aria-current="page"] { color: var(--gold-2); }
  .tabbar .count { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--gold-grad); color: #1c2a1f; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
  .scrim { padding: 0; place-items: end center; }
  .dialog { width: 100%; max-height: 94dvh; border-radius: 22px 22px 0 0; animation: up .3s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes up { from { transform: translateY(40px); opacity: 0; } }
  .sheet, .sheet.wide { width: 100%; border-left: 0; }
  .dialog-head { padding: 14px 16px 12px; } .dialog-body { padding: 16px; } .dialog-foot { padding: 12px 16px calc(12px + var(--safe-b)); }
  .dialog-head h2 { font-size: 24px; }
  .dialog-foot .btn { flex: 1; }
  .steps { padding: 8px 16px 0; } .steps button { font-size: 11.5px; letter-spacing: .08em; }
  .sel-item { grid-template-columns: 76px 1fr; } .sel-thumb { width: 76px; height: 76px; }
  .viewer-stage { padding: 0 8px; } .viewer-nav { background: rgba(0, 0, 0, .35); }
  .welcome-main { grid-template-columns: 1fr; gap: 18px; padding: 8px 20px 28px; text-align: center; }
  .arch { width: min(62%, 250px); max-height: 30dvh; aspect-ratio: 4 / 4.6; }
  .welcome-panel p.lede { margin-inline: auto; } .welcome-panel form { margin-inline: auto; }
  .foot { margin-top: 36px; }
  .menu { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(76px + var(--safe-b)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* fixes after first walk */
.sheet .dialog-body { flex: 1; }
.reply { max-width: 24ch; }
