/* ============================================================================
   joie — component styles (resonance visuals, orb, cards, screens)
   ============================================================================ */

/* ---- Voice orb — the glassy resonance sphere (dark lantern in both themes) ---- */
.orb {
  --orb: 200px;
  position: relative; width: var(--orb); height: var(--orb);
  border: none; background: none; cursor: pointer; display: grid; place-items: center;
  margin: 6px auto; flex: 0 0 auto;
}
.orb__halo {
  position: absolute; inset: -16%; border-radius: 50%;
  background: radial-gradient(circle, rgba(72,210,225,.32), rgba(72,210,225,0) 62%);
  filter: blur(12px); animation: joHalo 6.5s ease-in-out infinite;
}
.orb__listenhalo {
  position: absolute; inset: -10%; border-radius: 50%;
  background: radial-gradient(circle, rgba(86,225,214,.4), rgba(86,225,214,0) 60%);
  filter: blur(10px); animation: joListen 1.9s ease-in-out infinite;
}
.orb__body {
  position: absolute; inset: 8%; border-radius: 50%; overflow: hidden;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.5), rgba(255,255,255,0) 38%),
    radial-gradient(circle at 68% 72%, rgba(86,225,214,.5), rgba(86,225,214,0) 60%),
    radial-gradient(circle at 28% 76%, rgba(185,140,255,.42), rgba(185,140,255,0) 55%),
    radial-gradient(circle at 76% 30%, rgba(255,180,84,.30), rgba(255,180,84,0) 52%),
    radial-gradient(circle at 50% 50%, #2a3170 0%, #161d4a 60%, #0c1234 100%);
  box-shadow: inset 0 0 42px rgba(120,150,255,.28), inset 0 -14px 30px rgba(0,0,0,.4),
    0 20px 50px -12px rgba(20,30,90,.7);
  animation: joBreathe 6s ease-in-out infinite;
}
.orb__aura {
  position: absolute; inset: -20%; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(86,225,214,0), rgba(86,225,214,.4),
    rgba(185,140,255,.32), rgba(255,126,107,.3), rgba(255,180,84,.28), rgba(86,225,214,0));
  filter: blur(6px); opacity: .8; animation: joSpin 24s linear infinite;
}
.orb__spec {
  position: absolute; left: 32%; top: 24%; width: 34%; height: 30%; border-radius: 50%;
  background: radial-gradient(circle at 42% 40%, rgba(255,255,255,.75), rgba(255,255,255,0) 70%);
  filter: blur(2px);
}
.orb--listening .orb__body { animation: joBreathe 3s ease-in-out infinite; }
.orb--muted .orb__body { filter: saturate(.25) brightness(.7); }
.orb--muted .orb__halo { opacity: .25; }

.orb__ring {
  position: absolute; width: 70%; height: 70%; border-radius: 50%;
  border: 1.5px solid rgba(120,220,225,.55); animation: joRing 2.7s ease-out infinite;
}
.orb__ring--2 { animation-delay: .9s; }
.orb__ring--3 { animation-delay: 1.8s; }
.orb__dots { position: absolute; bottom: -26px; display: flex; gap: 6px; }
.orb__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--flow); animation: joDot 1.2s ease-in-out infinite; }
.orb__dots i:nth-child(2) { animation-delay: .18s; }
.orb__dots i:nth-child(3) { animation-delay: .36s; }
.orb--mini { margin: 0; }

@keyframes joBreathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes joHalo { 0%,100% { opacity: .45; } 50% { opacity: .9; } }
@keyframes joListen { 0%,100% { opacity: .4; transform: scale(1); } 50% { opacity: .85; transform: scale(1.08); } }
@keyframes joSpin { to { transform: rotate(360deg); } }
@keyframes joRing { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.85); opacity: 0; } }
@keyframes joDot { 0%,100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-6px); opacity: 1; } }
@keyframes joEq { 0%,100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
@keyframes joFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes joSpinSlow { to { transform: rotate(360deg); } }

/* ---- Energy cue — motion = temperature, colorless ---- */
.ecue { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-1); }
.ecue__word { font-weight: 600; letter-spacing: .01em; }
.ecue__dash { width: 14px; height: 2px; border-radius: 2px; background: currentColor; opacity: .8; }
.ecue__eq { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 13px; }
.ecue__eq i { width: 2.5px; height: 100%; background: currentColor; border-radius: 2px; transform-origin: bottom; animation: joEq .85s ease-in-out infinite; }
.ecue__eq i:nth-child(2) { animation-delay: .18s; }
.ecue__eq i:nth-child(3) { animation-delay: .36s; }

/* ---- Signature constellation — the living FSM identity object ---- */
.constel { position: relative; }
.constel__halo { position: absolute; inset: 10%; border-radius: 50%;
  background: radial-gradient(circle, rgba(120,160,255,.18), transparent 65%); filter: blur(8px);
  animation: joHalo 6s ease-in-out infinite; }
.constel__aura { position: absolute; inset: 4%; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(86,225,214,.18), rgba(185,140,255,.16), rgba(255,126,107,.14), rgba(255,180,84,.14), rgba(95,208,138,.16), rgba(86,225,214,.18));
  filter: blur(7px); animation: joSpinSlow 22s linear infinite; }
.constel__lume { position: absolute; border-radius: 50%; transform: translate(-50%,-50%); }
.constel__lume--pulse { animation: joSigPulse 2.2s ease-in-out infinite; }
@keyframes joSigPulse { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.5); } }
.auraav { display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #1a2150, #0c1130); flex: 0 0 auto; }

/* ---- Theme switch — collapsing glyph control ---- */
.themesw { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 16px; z-index: 6;
  display: flex; gap: 4px; padding: 3px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--card-border); backdrop-filter: blur(10px); }
.themesw__btn { width: 30px; height: 28px; border-radius: 999px; border: none; cursor: pointer;
  background: transparent; color: var(--ink-2); font-size: 14px; display: grid; place-items: center; }
.themesw__btn.is-active { background: var(--brand); color: var(--brand-ink); }

/* ---- Wordmark image ---- */
.wordmark-img { display: block; width: auto; }

/* ---- Resonance aura ---- */
.aura { filter: saturate(1.1); }

/* ---- Place portrait (procedural imagery) ---- */
.portrait { width: 100%; display: block; border-radius: 0; }
.portrait--card { border-radius: var(--r-md); }
/* Ken-Burns drift — speed encodes energy temperature (faster = dynamic) */
.portrait--drift-calm, .portrait--drift-dyn { transform-origin: 50% 45%; will-change: transform;
  animation-name: joKenburns; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate; }
@keyframes joKenburns { from { transform: scale(1.06) translate(-1%, -1%); } to { transform: scale(1.16) translate(2%, 1.5%); } }
@media (prefers-reduced-motion: reduce) { .portrait--drift-calm, .portrait--drift-dyn { animation: none !important; transform: scale(1.06); } }

/* ---- Shorts chrome (story overlay on a place's looping short) ---- */
.shorts { position: absolute; top: 0; left: 0; right: 0; z-index: 3; padding: 12px 14px 0; pointer-events: none; }
.shorts__segs { display: flex; gap: 4px; }
.shorts__seg { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.28); overflow: hidden; }
.shorts__segfill { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; transform: scaleX(0); animation-name: joSeg; animation-timing-function: linear; animation-iteration-count: infinite; }
@keyframes joSeg { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .shorts__segfill { animation: none !important; transform: scaleX(.5); } }
.shorts__row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.shorts__avatar { width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--joy), var(--inspiration)); flex: 0 0 auto; box-shadow: 0 0 0 1.5px rgba(255,255,255,.5); }
.shorts__handle { font-size: 13px; font-weight: 600; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.shorts__live { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; letter-spacing: .06em; color: #fff; background: rgba(255,30,60,.85); padding: 3px 8px; border-radius: 999px; }
.shorts__livedot { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: joHalo 1.4s ease-in-out infinite; }
.shorts__badge { font-size: 10px; font-weight: 600; letter-spacing: .04em; color: #fff; background: rgba(10,12,30,.5); border: 1px solid rgba(255,255,255,.25); padding: 3px 9px; border-radius: 999px; backdrop-filter: blur(6px); }
.shorts__mute { margin-left: auto; pointer-events: auto; }

/* ---- Light-bars ---- */
.bars { display: flex; flex-direction: column; gap: 13px; }
.bar__label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-1); margin-bottom: 5px; }
.bar__label .dot { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.bar__flag { font-size: 11px; color: var(--belonging); margin-left: auto; opacity: .85; }
.bar__track { height: 7px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 999px; box-shadow: 0 0 14px currentColor; transition: width .7s var(--ease); }

/* ---- Access pill already in theme (.pill) ---- */

/* ---- Energy read ---- */
.energy { margin: 4px 0; }
.energy__words { font-family: var(--font-display); font-style: italic; color: var(--ink-1); font-size: 15px; margin-bottom: 9px; }
.energy__track { display: flex; align-items: center; gap: 10px; }
.energy__end { font-size: 11px; color: var(--ink-2); letter-spacing: .08em; text-transform: uppercase; }
.energy__rail { position: relative; flex: 1; height: 3px; border-radius: 999px;
  background: linear-gradient(90deg, #4a6b8f, #6b6b8f, #c98a6b); }
.energy__node { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%;
  transform: translate(-50%,-50%); background: #fff; box-shadow: 0 0 14px rgba(255,255,255,.8); }

/* ---- Provenance ---- */
.prov { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.prov__item--stale { opacity: .55; }
.prov__sep { margin: 0 6px; opacity: .5; }
.prov__seed { font-size: 10px; vertical-align: super; margin-left: 2px; opacity: .6; cursor: help; }
.caveat { font-size: 12.5px; color: var(--belonging); opacity: .85; margin-top: 8px; }

/* ---- Character phrase ---- */
.char { font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em; line-height: 1.15; }

/* ============================================================================
   SCREEN: Listen
   ============================================================================ */
.listen { justify-content: flex-start; padding: 0 var(--pad); align-items: center; }
.listen__top { padding-top: calc(34px + env(safe-area-inset-top)); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.listen__head { font-family: var(--font-display); font-weight: 500; font-size: 30px; line-height: 1.16;
  letter-spacing: -.02em; color: var(--ink-0); }
.listen__mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.listen__dynamic { min-height: 96px; display: grid; place-items: center; padding: 8px 10px; text-align: center; }
.listen__resolved { font-size: 25px; line-height: 1.3; max-width: 340px; }
.listen__resolved--typed { font-family: var(--font-body); font-style: normal; font-size: 21px; font-weight: 400; }
.listen__hint { font-size: 13.5px; color: var(--ink-2); }
.listen__reset { background: none; border: none; color: var(--ink-2); font-size: 13.5px; cursor: pointer; }
.listen__reading { font-size: 13px; color: var(--ink-2); animation: joHalo 1.6s ease-in-out infinite; }
.listen__bottom { width: 100%; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.listen__suggest { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; padding: 4px 0 16px; }
.listen__or { text-align: center; font-size: 12px; color: var(--ink-2); margin: 2px 0 12px; position: relative; }
.listen__or::before, .listen__or::after { content: ""; position: absolute; top: 50%; width: 28%; height: 1px; background: var(--hairline); }
.listen__or::before { left: 12%; } .listen__or::after { right: 12%; }
.listen__gatherrow { display: flex; justify-content: center; margin-bottom: 16px; }
.listen__gather { display: inline-flex; align-items: center; gap: 11px; cursor: pointer; font-family: var(--font-body);
  font-size: 14.5px; font-weight: 600; color: var(--ink-0); padding: 12px 20px; border-radius: var(--r-pill);
  background: rgba(255,107,17,.10); border: 1px solid rgba(255,107,17,.4); transition: transform .12s var(--ease), background .2s; }
.listen__gather:active { transform: scale(.97); }
.listen__gather:hover { background: rgba(255,107,17,.16); }
.listen__gather .cowork__rings { width: 30px; }

.listen__fallback { text-align: center; }
.listen__texttoggle { background: none; border: none; color: var(--ink-2); font-size: 13.5px; cursor: pointer; padding: 6px; }
.listen__textinput { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--card-border);
  color: var(--ink-0); font-family: var(--font-body); font-size: 16px; padding: 10px 4px; text-align: center; }
.listen__textinput::placeholder { color: var(--ink-2); }
.listen__textinput:focus { outline: none; border-bottom-color: var(--brand); }
.muted-note { font-size: 12.5px; color: var(--belonging); opacity: .9; text-align: center; margin-top: 8px; }

/* ============================================================================
   SCREEN: Resonance Answer
   ============================================================================ */
/* Echo header */
.answer__echo { display: flex; align-items: flex-start; gap: 12px; padding: calc(16px + env(safe-area-inset-top)) var(--pad) 10px; }
.answer__echotext { flex: 1; }
.answer__echotext .eyebrow { text-transform: uppercase; }
.answer__said { font-size: 18.5px; line-height: 1.32; margin-top: 4px; }
.iconbtn { width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto; cursor: pointer;
  background: var(--card); border: 1px solid var(--card-border); color: var(--ink-0); font-size: 18px;
  display: grid; place-items: center; backdrop-filter: blur(8px); }

.answer__cards { display: flex; flex-direction: column; gap: 16px; padding: 6px var(--pad) 8px; }
.acard {
  position: relative; border-radius: 26px; overflow: hidden; height: 470px; cursor: pointer;
  box-shadow: var(--card-shadow); border: 1px solid var(--card-border);
  animation: cardrise .55s var(--ease) both;
}
.acard:active { transform: scale(.99); }
@keyframes cardrise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.acard .portrait { position: absolute; inset: 0; height: 100% !important; }
.acard__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,7,26,.05) 30%, rgba(5,7,26,.5) 62%, rgba(5,7,26,.92) 100%); }
.acard__pill { position: absolute; top: 16px; right: 16px; }
.acard__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px 20px; }
.acard__meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #cdd0ea; margin-bottom: 7px; flex-wrap: wrap; }
.acard__meta .ecue { color: #eceaf6; }
.acard__dot { opacity: .5; }
.acard__char { font-size: 26px; line-height: 1.12; color: #fff; margin-bottom: 12px; }
.acard .prov { color: #b8bbd8; margin-top: 10px; }
.acard__prov { font-size: 13px; color: #b8bbd8; margin-top: 11px; line-height: 1.45; }
/* Joie speaking to you — warm, no system internals (PRD §11 copy voice) */
.answer__hint { font-size: 13.5px; color: var(--ink-1); line-height: 1.5; padding: 8px 0 6px; }
.answer__hint b { color: var(--ink-0); font-weight: 600; }

/* Five-light lume row */
.lumerow { display: flex; align-items: center; gap: 9px; }
.lume { border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c), 0 0 4px var(--c); }

/* Steer bar */
.steer { position: sticky; bottom: 0; z-index: 4;
  background: linear-gradient(180deg, rgba(5,7,26,0), var(--bg-0) 38%);
  padding: 14px var(--pad) calc(16px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; }
.steer__chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px; }
.chip--active { background: rgba(255,107,17,.16); border-color: rgba(255,107,17,.5); color: var(--ink-0); }

/* ============================================================================
   SCREEN: Place / Anticipate
   ============================================================================ */
.place__hero { position: relative; }
.place__hero .portrait { height: 420px; }
.place__heroscrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,7,26,.25) 0%, rgba(5,7,26,0) 28%, rgba(5,7,26,.55) 64%, rgba(5,7,26,.95) 100%); }
.place__topbar { position: absolute; top: calc(54px + env(safe-area-inset-top)); left: 0; right: 0; padding: 0 14px;
  display: flex; align-items: center; gap: 10px; z-index: 4; }
.shorts--segsonly { padding: 12px 14px 0; }
.shortsid { display: inline-flex; align-items: center; gap: 8px; }
.place__herotext { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--pad) 22px; }
.place__mute { width: 34px; height: 34px; border-radius: 50%; background: rgba(10,12,30,.5); border: 1px solid rgba(255,255,255,.18);
  color: #fff; font-size: 14px; cursor: pointer; backdrop-filter: blur(8px); flex: 0 0 auto; }
.place__char { font-family: var(--font-display); font-weight: 500; font-size: 31px; line-height: 1.1; color: #fff; letter-spacing: -.02em; }

/* "the vibe, from regulars" clip strip */
.vibestrip { display: flex; gap: 12px; overflow-x: auto; padding: 2px 0 4px; scroll-snap-type: x mandatory; }
.vclip { flex: 0 0 132px; scroll-snap-align: start; }
.vclip__media { position: relative; border-radius: 16px; overflow: hidden; }
.vclip__media .portrait { height: 150px !important; }
.vclip__dur { position: absolute; bottom: 7px; right: 7px; font-size: 10.5px; font-weight: 600; color: #fff; background: rgba(10,12,30,.6); padding: 2px 6px; border-radius: 6px; }
.vclip__cap { font-size: 12.5px; color: var(--ink-0); margin-top: 7px; line-height: 1.3; }
.vclip__handle { font-size: 11.5px; color: var(--ink-2); margin-top: 2px; }
.vibestrip__note { font-size: 12px; color: var(--ink-2); margin-top: 10px; }
.place__meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #cdd0ea; margin-top: 12px; flex-wrap: wrap; }
.place__meta .ecue { color: #fff; }
.place__section { padding: 22px var(--pad) 0; }
.place__narrative { font-family: var(--font-spoken); font-style: italic; font-size: 20px; line-height: 1.5; color: var(--ink-1); font-weight: 300; }
.place__cues { display: flex; flex-wrap: wrap; gap: 8px; }
.cue { font-size: 13px; color: var(--ink-1); background: var(--card); border: 1px solid var(--card-border); border-radius: var(--r-pill); padding: 8px 13px; }
.place__logistics { font-size: 13px; color: var(--ink-2); padding-top: 16px; border-top: 1px solid var(--hairline); }
.section-label { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }

/* Impact note */
.impact { padding: 16px 18px; border-radius: var(--r-md); background: rgba(95,208,138,.08); border: 1px solid rgba(95,208,138,.2); }
.impact__eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--impact); margin-bottom: 8px; }
.impact__lume { width: 9px; height: 9px; border-radius: 50%; background: var(--impact); box-shadow: 0 0 10px var(--impact); }
.impact__text { font-size: 14.5px; color: var(--ink-0); line-height: 1.45; }

.place__actionbar { position: sticky; bottom: 0; z-index: 4; display: flex; gap: 10px;
  padding: 14px var(--pad) calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(5,7,26,0), var(--bg-0) 34%); }

/* Cowork invite */
.cowork__row { width: 100%; display: flex; align-items: center; gap: 12px; cursor: pointer;
  border: 1px solid var(--card-border); border-radius: var(--r-pill); padding: 13px 18px; background: var(--card);
  color: var(--ink-0); font-size: 14.5px; }
.cowork__rings { position: relative; width: 34px; height: 22px; flex: 0 0 auto; }
.cowork__ring { position: absolute; top: 0; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink-2); }
.cowork__ring--o { left: 0; border-color: var(--brand); z-index: 1; }
.cowork__rings .cowork__ring:not(.cowork__ring--o) { right: 0; }
.cowork__plus { color: var(--ink-2); font-size: 18px; }
.cowork { border: 1px solid var(--card-border); border-radius: var(--r-md); padding: 18px; background: var(--card); }
.cowork__title { font-family: var(--font-display); font-weight: 500; font-size: 18px; margin-bottom: 16px; }
.cowork__avatars { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.favatar { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; }
.favatar__circle { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; font-weight: 600;
  background: linear-gradient(135deg, var(--inspiration), var(--joy)); color: #1a1430; border: 2px solid transparent; transition: box-shadow .2s, border-color .2s; }
.favatar__name { font-size: 12px; color: var(--ink-2); }
.favatar--on .favatar__circle { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand), 0 0 16px rgba(255,107,17,.5); }
.favatar--on .favatar__name { color: var(--ink-0); }
.cowork__note { font-size: 12.5px; color: var(--ink-2); text-align: center; margin-top: 12px; }
.cowork__sent { text-align: center; }
.cowork__sentline { font-size: 13px; color: var(--ink-1); margin-bottom: 12px; }

/* Bridge (point 1): belonging-led place → find your people here */
.bridge { width: 100%; display: flex; align-items: center; gap: 11px; cursor: pointer; text-align: left;
  border: 1px solid rgba(255,180,84,.32); border-radius: var(--r-md); padding: 14px 16px;
  background: rgba(255,180,84,.08); color: var(--ink-0); font-size: 14px; }
.bridge__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--belonging); box-shadow: 0 0 10px var(--belonging); flex: 0 0 auto; }
.bridge__arrow { margin-left: auto; color: var(--belonging); }

/* Plans entry (Listen, top-left) */
.plansentry { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 16px; z-index: 6;
  width: 38px; height: 38px; border-radius: 999px; cursor: pointer; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--card-border); color: var(--ink-1); font-size: 15px; backdrop-filter: blur(10px); }
.plansentry__badge { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 600; display: grid; place-items: center; }

/* ============================================================================
   SCREEN: your plans
   ============================================================================ */
.plans__header { padding: calc(26px + env(safe-area-inset-top)) var(--pad) 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.plans__title { font-family: var(--font-display); font-weight: 500; font-size: 30px; letter-spacing: -.02em; color: var(--ink-0); }
.plans__list { display: flex; flex-direction: column; gap: 14px; padding: 0 var(--pad); }
.plans__empty { text-align: center; padding: 40px var(--pad); }
.appt { border-radius: 22px; padding: 16px; background: var(--card); border: 1px solid var(--card-border); }
.appt__head { display: flex; align-items: center; gap: 12px; }
.appt__dot { width: 44px; height: 44px; border-radius: 14px; background: radial-gradient(circle at 35% 30%, var(--flow), var(--inspiration)); flex: 0 0 auto; }
.appt__place { flex: 1; }
.appt__name { font-family: var(--font-display); font-weight: 500; font-size: 16px; color: var(--ink-0); }
.appt__time { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.appt__kind { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; text-transform: lowercase; }
.appt__kind--cowork { background: rgba(255,107,17,.16); color: var(--brand); }
.appt__kind--solo { background: rgba(54,214,231,.14); color: var(--flow); }
.appt__char { font-family: var(--font-display); font-size: 15px; color: var(--ink-1); margin: 12px 0 4px; }
.appt__who { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.who-pill { display: inline-flex; align-items: center; gap: 7px; background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--r-pill); padding: 4px 12px 4px 4px; font-size: 13px; color: var(--ink-0); cursor: pointer; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600;
  background: linear-gradient(135deg, var(--inspiration), var(--joy)); color: #1a1430; flex: 0 0 auto; }
.who-pill--accepted { box-shadow: 0 0 0 1px var(--impact) inset; color: var(--ink-0); }
.who-pill--declined { opacity: .5; text-decoration: line-through; }
.who-add { background: transparent; border: 1px dashed var(--card-border); border-radius: var(--r-pill); padding: 5px 12px; font-size: 13px; color: var(--ink-1); cursor: pointer; }
.appt__demohint { font-size: 11.5px; color: var(--ink-2); margin-top: 8px; opacity: .8; }
.appt__foot { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--hairline); }
.appt__cal { background: transparent; border: 1px solid var(--card-border); border-radius: var(--r-pill); padding: 9px 15px; font-size: 13px; font-weight: 600; color: var(--ink-1); cursor: pointer; }
.appt__cal--on { color: var(--impact); border-color: rgba(95,208,138,.4); background: rgba(95,208,138,.1); }
.appt__kind--gathering { background: rgba(185,140,255,.16); color: var(--inspiration); }
.appt__gather { margin: 12px 0 4px; }
.appt__purpose { font-family: var(--font-display); font-size: 15px; color: var(--ink-0); margin-bottom: 9px; }
.appt__phases { display: flex; flex-wrap: wrap; gap: 6px; }
.appt__phase { font-size: 12px; color: var(--ink-1); background: var(--card); border: 1px solid var(--card-border); border-radius: var(--r-pill); padding: 5px 11px; }
.appt__phase--moment { color: var(--inspiration); border-color: rgba(185,140,255,.3); }
.plans__actions { display: flex; gap: 10px; padding: 8px var(--pad) 0; }

/* ============================================================================
   SCREEN: Gather (Medium gathering flow)
   ============================================================================ */
.gather__header { padding: calc(26px + env(safe-area-inset-top)) var(--pad) 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gather__title { font-family: var(--font-display); font-weight: 500; font-size: 30px; letter-spacing: -.02em; color: var(--ink-0); }
.gather__step { padding: 8px var(--pad) 0; }
.gather__cta { display: flex; gap: 10px; padding: 18px 0 0; }
.gather__cta .btn--brand { flex: 1; }

.gather__purposes { display: flex; flex-wrap: wrap; gap: 10px; }
.purpose { font-family: var(--font-display); font-size: 17px; padding: 16px 20px; border-radius: var(--r-md); cursor: pointer;
  background: var(--card); border: 1px solid var(--card-border); color: var(--ink-0); }
.purpose--on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }

.gather__team { display: flex; flex-direction: column; gap: 10px; }
.tmate { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); cursor: pointer;
  background: var(--card); border: 1px solid var(--card-border); color: var(--ink-0); text-align: left; }
.tmate--host { cursor: default; opacity: .9; }
.tmate--on { border-color: var(--brand); box-shadow: 0 0 14px -4px var(--brand); }
.tmate__name { font-family: var(--font-display); font-size: 16px; flex: 1; }

/* The narrative artifact */
.artifact { border-radius: 24px; padding: 20px; border: 1px solid var(--card-border);
  background: radial-gradient(120% 80% at 50% 0%, rgba(185,140,255,.1), var(--card) 55%); }
.artifact__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.artifact__badge { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: lowercase; padding: 5px 11px; border-radius: 999px; background: rgba(185,140,255,.18); color: var(--inspiration); }
.artifact__headline { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.15; letter-spacing: -.01em; color: var(--ink-0); }
.artifact__reason { font-family: var(--font-spoken); font-style: italic; font-size: 15px; color: var(--ink-1); margin: 8px 0 16px; line-height: 1.4; }
.artifact__place { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--card-border); margin-bottom: 14px; }
.artifact__place > div { flex: 1; }
.artifact__placename { font-size: 13px; color: var(--ink-2); }
.artifact__char { font-family: var(--font-display); font-size: 16px; color: var(--ink-0); line-height: 1.15; margin-top: 2px; }
.artifact__floor { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-1); margin-bottom: 16px; }
.artifact__floordot { width: 9px; height: 9px; border-radius: 50%; background: var(--impact); box-shadow: 0 0 10px var(--impact); flex: 0 0 auto; }

.artifact__arc { display: flex; flex-direction: column; }
.phase { display: flex; gap: 13px; }
.phase__rail { display: flex; flex-direction: column; align-items: center; flex: 0 0 14px; }
.phase__node { width: 12px; height: 12px; border-radius: 50%; background: var(--inspiration); box-shadow: 0 0 10px var(--inspiration); margin-top: 4px; flex: 0 0 auto; }
.phase__node--star { background: none; box-shadow: none; color: var(--inspiration); font-size: 14px; margin-top: 0; }
.phase__line { flex: 1; width: 2px; background: linear-gradient(var(--inspiration), transparent); min-height: 26px; margin: 4px 0; }
.phase__body { padding-bottom: 16px; flex: 1; }
.phase__label { font-family: var(--font-display); font-size: 15.5px; color: var(--ink-0); }
.phase__place { color: var(--ink-2); font-size: 13px; }
.phase__line2 { font-size: 13.5px; color: var(--ink-1); margin: 3px 0 6px; line-height: 1.4; }
.phase--moment .phase__body { padding-bottom: 0; }

.artifact__share { margin-top: 6px; width: 100%; padding: 12px; border-radius: var(--r-pill); cursor: pointer;
  background: transparent; border: 1px dashed rgba(185,140,255,.45); color: var(--inspiration); font-family: var(--font-body); font-size: 14px; font-weight: 600; }

.coord__who { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.coord__hint { font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.coord__slots { display: flex; gap: 9px; margin-bottom: 18px; flex-wrap: wrap; }
.slot { padding: 12px 16px; border-radius: var(--r-pill); cursor: pointer; font-family: var(--font-body); font-size: 14px;
  background: var(--card); border: 1px solid var(--card-border); color: var(--ink-0); }
.slot--on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.slot__src { color: var(--brand); font-weight: 600; }

/* Agentic coordination — the coordinator's converged plan */
.coord__chosen { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--r-card, 16px);
  padding: 14px 16px; margin-bottom: 14px; }
.coord__slotbig { font-family: var(--font-display, var(--font-body)); font-size: 22px; color: var(--ink-0); margin-bottom: 4px; }
.coord__why { font-size: 13px; color: var(--ink-2); }
.coord__seq { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.coord__seqrow { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; color: var(--ink-0); }
.coord__lean { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex: 0 0 auto; background: var(--ink-2); }
.coord__lean--dynamic { background: var(--joy, #FF7E6B); }
.coord__lean--serene { background: var(--flow, #56E1D6); }
.coord__lean--mixed, .coord__lean--shared { background: linear-gradient(135deg, var(--flow, #56E1D6), var(--joy, #FF7E6B)); }
.coord__dead { font-size: 14px; color: var(--ink-0); margin-bottom: 10px; }
.coord__summary { font-size: 13px; color: var(--ink-2); margin: 4px 0 16px; font-style: italic; }

/* §5 access model + Tier-5 certification (Supply Addendum) */
.access { display: flex; flex-direction: column; gap: 9px; margin-bottom: 10px; }
.access__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.access__entry { font-size: 16px; color: var(--ink-0); font-weight: 600; }
.access__cost { font-size: 15px; color: var(--ink-1); font-variant-numeric: tabular-nums; }
.access__easy { font-size: 13px; color: var(--ink-2); }
.access__steps { display: flex; flex-wrap: wrap; gap: 7px; }
.access__step { font-size: 12.5px; color: var(--ink-1); background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--r-pill); padding: 5px 11px; }
.certbadge { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--ink-1);
  background: var(--card); border: 1px solid var(--card-border); border-radius: 12px; padding: 10px 12px; margin-top: 2px; }
.certbadge b { color: var(--ink-0); }
.certbadge__dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 4px; flex: 0 0 auto; background: var(--ink-2); }
.certbadge--warm .certbadge__dot { background: var(--belonging, #FFB454); }
/* Joie-certified uses the brand orange — same hue as the Joie wordmark */
.certbadge--go .certbadge__dot { background: var(--brand, #FF6B11); }
.certbadge--go { border-color: color-mix(in srgb, var(--brand, #FF6B11) 45%, var(--card-border)); }
.certbadge--go b { color: var(--brand, #FF6B11); }
/* Answer-card certified chip — brand orange (Joie wordmark hue) */
.acard__cert { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--brand, #FF6B11); }
.acard__cert::before { content: "✦"; }

/* Auth — the one-tap sign-in sheet (login-light §1.2/§1.3) */
.sheet-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 60;
  display: flex; align-items: flex-end; justify-content: center; animation: sheetfade .18s ease; }
@keyframes sheetfade { from { opacity: 0; } to { opacity: 1; } }
.authsheet { width: 100%; max-width: 460px; background: var(--bg, #14110f); border-top-left-radius: 22px;
  border-top-right-radius: 22px; padding: 12px 22px 22px; box-shadow: 0 -14px 40px rgba(0,0,0,.4);
  animation: sheetrise .24s cubic-bezier(.2,.7,.2,1); }
@keyframes sheetrise { from { transform: translateY(40px); } to { transform: translateY(0); } }
.authsheet__grip { width: 38px; height: 4px; border-radius: 2px; background: var(--card-border); margin: 0 auto 16px; }
.authsheet__title { font-family: var(--font-display, var(--font-body)); font-size: 21px; color: var(--ink-0); margin-bottom: 6px; }
.authsheet__sub { font-size: 13px; color: var(--ink-2); margin-bottom: 18px; line-height: 1.45; }
.authsheet__providers { display: flex; flex-direction: column; gap: 9px; }
.authbtn { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left;
  padding: 13px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--card-border); cursor: pointer; }
.authbtn--primary { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.authbtn__label { font-size: 15px; color: var(--ink-0); font-weight: 600; }
.authbtn__note { font-size: 12px; color: var(--ink-2); }
.authsheet__skip { display: block; margin: 14px auto 0; background: none; border: none; color: var(--ink-2); font-size: 13px; cursor: pointer; }
.authsheet__proto { margin-top: 10px; text-align: center; font-size: 10.5px; color: var(--ink-2); opacity: .65; }
.sigcard__auth { font-size: 12px; color: var(--ink-2); margin-top: 8px; }
.sigcard__auth button { background: none; border: none; color: var(--brand); font-size: 12px; cursor: pointer; padding: 0; }
.sigcard__auth b { color: var(--ink-1); }

/* ============================================================================
   SCREEN: Validation gate (founder/ops instrument)
   ============================================================================ */
.plans__ops { display: block; margin: 4px auto calc(20px + env(safe-area-inset-bottom)); background: none; border: none;
  color: var(--ink-2); font-size: 12.5px; cursor: pointer; opacity: .7; }
.gate__header { padding: calc(24px + env(safe-area-inset-top)) var(--pad) 8px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.gate__title { font-family: var(--font-display); font-weight: 500; font-size: 25px; letter-spacing: -.02em; color: var(--ink-0); margin-top: 4px; }
.gate__verdict { margin: 14px var(--pad); padding: 16px 18px; border-radius: var(--r-md); border: 1px solid; }
.gate__verdict--go { background: rgba(95,208,138,.1); border-color: rgba(95,208,138,.35); }
.gate__verdict--hold { background: rgba(255,180,84,.1); border-color: rgba(255,180,84,.35); }
.gate__verdicthead { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.gate__verdict--go .gate__verdicthead { color: var(--impact); }
.gate__verdict--hold .gate__verdicthead { color: var(--belonging); }
.gate__verdictdetail { font-size: 13.5px; color: var(--ink-1); margin-top: 5px; line-height: 1.45; }
.gate__phases { display: flex; gap: 8px; padding: 0 var(--pad) 6px; }
.gate__phase { flex: 1; padding: 9px; border-radius: var(--r-pill); cursor: pointer; font-size: 12.5px; font-weight: 600;
  background: var(--card); border: 1px solid var(--card-border); color: var(--ink-1); }
.gate__phase--on { border-color: var(--brand); color: var(--ink-0); box-shadow: 0 0 0 1px var(--brand); }
.gate__list { display: flex; flex-direction: column; gap: 10px; padding: 12px var(--pad) 0; }
.grow { border-radius: var(--r-md); padding: 13px 15px; background: var(--card); border: 1px solid var(--card-border); border-left: 3px solid var(--ink-2); }
.grow--go { border-left-color: var(--impact); }
.grow--risk { border-left-color: var(--belonging); }
.grow--hold { border-left-color: var(--joy); }
.grow__top { display: flex; align-items: center; gap: 9px; }
.grow__dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.grow--go .grow__dot { background: var(--impact); box-shadow: 0 0 8px var(--impact); }
.grow--risk .grow__dot { background: var(--belonging); box-shadow: 0 0 8px var(--belonging); }
.grow--hold .grow__dot { background: var(--joy); box-shadow: 0 0 8px var(--joy); }
.grow__label { font-family: var(--font-display); font-size: 15px; color: var(--ink-0); flex: 1; display: flex; align-items: center; gap: 8px; }
.grow__scale { font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); background: rgba(255,107,17,.14); padding: 2px 7px; border-radius: 999px; }
.grow__val { font-family: var(--font-display); font-size: 17px; color: var(--ink-0); }
.grow__meta { display: flex; align-items: center; gap: 8px; margin: 6px 0 4px; }
.grow__target { font-size: 12px; color: var(--ink-2); }
.grow__src { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 999px; }
.grow__src--measured { color: var(--flow); background: rgba(86,225,214,.12); }
.grow__src--manual { color: var(--belonging); background: rgba(255,180,84,.12); }
.grow__note { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.gate__inputs { display: flex; flex-direction: column; gap: 8px; padding: 0 var(--pad); }
.vstep { display: flex; align-items: center; justify-content: space-between; padding: 11px 15px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--card-border); }
.vstep__label { font-size: 14px; color: var(--ink-0); }
.vstep__ctrl { display: flex; align-items: center; gap: 12px; }
.vstep__ctrl button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--card-border); background: var(--bg-2); color: var(--ink-0); font-size: 16px; cursor: pointer; }
.vstep__val { min-width: 22px; text-align: center; font-family: var(--font-display); font-size: 16px; }
.gate__rule { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; padding: 18px var(--pad) 6px; }

/* ============================================================================
   SCREEN: Reflect
   ============================================================================ */
.reflect { justify-content: flex-start; text-align: center; padding: 0 var(--pad); }
.reflect__header { padding-top: calc(20px + env(safe-area-inset-top)); display: flex; flex-direction: column; align-items: center; }
.reflect__body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.reflect__q { font-family: var(--font-display); font-weight: 500; font-size: 33px; line-height: 1.12; letter-spacing: -.02em; margin-bottom: 8px; }
.reflect__voice { color: var(--ink-1); font-size: 15px; font-style: italic; font-family: var(--font-spoken); cursor: pointer; }
.reflect__divider { position: relative; width: 100%; max-width: 280px; text-align: center; margin: 18px 0 16px; }
.reflect__divider::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--hairline); }
.reflect__divider span { position: relative; background: var(--bg-0); padding: 0 12px; font-size: 12.5px; color: var(--ink-2); }
[data-theme="light"] .reflect__divider span { background: #EEF0F7; }
/* 2×2 intensity matrix — tap a feeling, tap again to "punch" it 1→2→3 */
.reflect__grid { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feelcard { display: flex; flex-direction: column; align-items: center; gap: 7px; cursor: pointer; text-align: center;
  border-radius: var(--r-md); padding: 16px 12px; min-height: 116px; justify-content: center;
  transition: transform .14s var(--ease), box-shadow .25s, background .25s;
  background: color-mix(in srgb, var(--c) 9%, transparent); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); color: var(--ink-0); }
.feelcard:active { transform: scale(.98); }
.feelcard--on { background: color-mix(in srgb, var(--c) 18%, transparent); box-shadow: 0 0 26px -4px var(--c); border-color: var(--c); }
.feelcard__lume { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 20px;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 45%, transparent), transparent 72%); animation: joPop .26s var(--ease); }
@keyframes joPop { 0% { transform: scale(1); } 45% { transform: scale(1.28); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .feelcard__lume { animation: none !important; } }
.feelcard__label { font-family: var(--font-spoken); font-style: italic; font-size: 15.5px; line-height: 1.15; }
.feelcard__pips { display: flex; gap: 5px; }
.pip { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--c) 25%, transparent); transition: background .2s, box-shadow .2s; }
.pip--on { background: var(--c); box-shadow: 0 0 8px var(--c); }
.feelcard__degree { font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--c); }
.feelcard__again { font-size: 10.5px; color: var(--ink-2); }
.reflect__skip { padding: 18px 0 calc(22px + env(safe-area-inset-bottom)); color: var(--ink-2); font-size: 14px; background: none; border: none; cursor: pointer; }

/* Confirmation sheet — a dark lantern that rises on selection */
.sheet__backdrop { position: absolute; inset: 0; background: rgba(3,4,14,.55); z-index: 8; animation: fade .3s var(--ease); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 9; text-align: center;
  background: radial-gradient(120% 80% at 50% 0%, #1a2150 0%, #0c1130 60%, #080b22 100%);
  border-radius: 30px 30px 0 0; border-top: 1px solid rgba(255,255,255,.1);
  padding: 26px var(--pad) calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px;
  box-shadow: 0 -20px 60px -10px rgba(0,0,0,.6); animation: sheetrise .5s cubic-bezier(.2,.8,.2,1); }
@keyframes sheetrise { from { transform: translateY(102%); } to { transform: none; } }
.sheet__eyebrow { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: #8a8fc4; margin-top: 8px; }
.sheet__learned { font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 1.25; max-width: 300px; }
.sheet__temp { margin: 8px 0 14px; }
.sheet__templabel { font-size: 13px; color: #9a9fce; margin-bottom: 10px; }
.sheet__temppills { display: flex; gap: 10px; justify-content: center; }
.temppill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); color: #eceaf6; font-family: var(--font-spoken); font-style: italic; font-size: 15px; }
.temppill--on { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }
.sheet .btn { max-width: 280px; }

/* ============================================================================
   SCREEN: Glasses-native frame
   ============================================================================ */
.glasses { position: relative; height: 100%; overflow: hidden; }
.glasses__room { position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 72% 26%, #c89a5e 0%, #7a5a36 38%, #3a2c1e 72%, #221a14 100%); }
.glasses__vignette { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, rgba(0,0,0,0) 40%, rgba(10,8,18,.6) 100%),
    linear-gradient(180deg, rgba(20,30,60,.18), rgba(10,8,18,.1)); }
.glasses__glint { position: absolute; top: calc(16px + env(safe-area-inset-top)); left: 18px; opacity: .34; }
.gtag { position: absolute; padding: 13px 16px; border-radius: 18px;
  background: rgba(20,18,40,.42); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 14px 40px -12px rgba(0,0,0,.6); animation: joFloat 7s ease-in-out infinite; max-width: 250px; }
.gtag--room { top: 16%; left: 8%; }
.gtag--person { top: 58%; left: 8%; display: flex; align-items: center; gap: 12px; animation-delay: 1.5s; }
.gtag__head { display: flex; align-items: center; gap: 8px; }
.gtag__lume { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.gtag__head .ecue { color: #fff; }
.gtag__title { font-family: var(--font-display); font-weight: 500; font-size: 15.5px; color: #fff; }
.gtag__sub { font-size: 13.5px; color: #e7e2d6; margin-top: 5px; }
.gtag__pin { position: absolute; bottom: -22px; left: 24px; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 12px rgba(255,255,255,.9); animation: joHalo 3s ease-in-out infinite; }
.gtag__pin::before { content: ""; position: absolute; top: -16px; left: 3.5px; width: 1px; height: 16px; background: rgba(255,255,255,.4); }
.glasses__thesis { position: absolute; bottom: calc(58px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  white-space: nowrap; padding: 12px 20px; border-radius: 999px; font-size: 14px; color: #fff;
  background: rgba(20,18,40,.5); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.16); }
.glasses__year { color: var(--brand); font-weight: 600; }
.glasses__nav { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom)); left: 0; right: 0;
  display: flex; gap: 18px; justify-content: center; }
.glasses__navbtn { background: none; border: none; color: #fff; font-size: 13.5px; cursor: pointer; }
.glasses__navbtn--dim { color: rgba(255,255,255,.55); }

/* ============================================================================
   SCREEN: find my people
   ============================================================================ */
.people__header { padding: calc(26px + env(safe-area-inset-top)) var(--pad) 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.people__title { font-family: var(--font-display); font-weight: 500; font-size: 30px; letter-spacing: -.02em; color: var(--ink-0); }
.people__sub { font-size: 16px; color: var(--ink-1); max-width: 320px; line-height: 1.4; }

/* Your flourishing signature card — a dark lantern in both themes */
.sigcard { margin: 8px var(--pad) 22px; padding: 26px 20px 24px; border-radius: 26px; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, #1a2150 0%, #0c1130 62%, #080b22 100%);
  border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sigcard__eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #8a8fc4; margin-bottom: 12px; }
.sigcard .constel { margin-bottom: 10px; }
.sigcard__phrase { font-family: var(--font-display); font-weight: 500; font-size: 20px; color: #fff; line-height: 1.2; }
.sigcard__words { font-size: 14px; display: flex; gap: 9px; align-items: center; margin-top: 4px; }
.sigcard__sep { color: #6a6f9c; }
.sigcard__own { display: flex; align-items: center; gap: 9px; margin-top: 16px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: #8a8fc4; }
.sigcard__own button { background: none; border: none; color: var(--flow); font-size: 12px; cursor: pointer; padding: 0; }

.people__list { display: flex; flex-direction: column; gap: 14px; padding: 0 var(--pad) 8px; }
.comm { border-radius: 22px; padding: 16px; background: var(--card); border: 1px solid var(--card-border); }
.comm__hearth { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hearth { width: 48px; height: 48px; border-radius: 14px; flex: 0 0 auto; }
.comm__name { font-family: var(--font-display); font-weight: 500; font-size: 16px; color: var(--ink-0); }
.comm__access { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }
.acc-ring { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--impact); }
.acc-square { width: 9px; height: 9px; border-radius: 2px; background: var(--belonging); }
.comm__tribe { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.comm__thread { font-family: var(--font-display); font-weight: 500; font-size: 15.5px; color: var(--ink-0); }
.comm__people { display: flex; gap: 18px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.person__name { font-size: 12.5px; color: var(--ink-1); }
.comm__recip { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.recip__icon { color: var(--impact); font-size: 14px; }
.comm__private { display: flex; align-items: center; gap: 14px; }
.comm__orbs { display: flex; gap: 8px; }
.presenceorb { width: 38px; height: 38px; border-radius: 50%; filter: blur(5px);
  background: radial-gradient(circle at 40% 35%, rgba(150,170,255,.5), rgba(120,140,255,.12) 70%); }
.comm__privnote { font-size: 14px; color: var(--ink-1); flex: 1; }
/* connect (not host) — source badge + membership state + outbound CTA */
.people__sectionhead { padding: 0 var(--pad); }
.people__connectnote { font-size: 12.5px; color: var(--ink-2); margin: -6px 0 14px; line-height: 1.4; }
.statepill { margin-left: auto; align-self: flex-start; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.statepill--member { background: rgba(95,208,138,.16); color: var(--impact); }
.statepill--pending { background: rgba(255,180,84,.16); color: var(--belonging); }
.statepill--invited { background: rgba(86,225,214,.16); color: var(--flow); }
.comm__connect { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--hairline); }
.comm__via { font-size: 12px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.comm__viaicon { font-size: 12px; opacity: .8; }
.comm__cta { margin-left: auto; padding: 9px 15px; border-radius: var(--r-pill); cursor: pointer; font-family: var(--font-body); font-size: 13px; font-weight: 600;
  background: transparent; border: 1px solid var(--card-border); color: var(--ink-0); white-space: nowrap; }
.comm__cta--request { border-color: rgba(255,107,17,.5); color: var(--brand); }
.comm__cta--join { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.comm__cta--open { color: var(--ink-1); }
.comm__cta--pending { color: var(--ink-2); cursor: default; opacity: .7; }

.people__invite { text-align: center; padding: 30px var(--pad); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.people__formtitle { font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--ink-0); }
.people__back { display: block; margin: 8px auto calc(24px + env(safe-area-inset-bottom)); background: none; border: none; color: var(--ink-2); font-size: 14px; cursor: pointer; }

/* ---- shared header / progress ---- */
.topbar { display: flex; align-items: center; gap: 12px; padding: 16px var(--pad) 0; }
.dots { display: flex; gap: 6px; margin-left: auto; }
.dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--bg-3); }
.dots span.on { background: var(--brand); box-shadow: 0 0 8px var(--brand); }

.peek { font-size: 12px; color: var(--ink-2); margin-top: 10px; padding: 10px 12px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.03); border: 1px solid var(--bg-3); line-height: 1.5; }
.peek b { color: var(--ink-1); font-weight: 600; }
.peek code { color: var(--brand); font-size: 11.5px; }

/* ============================================================================
   OPENING — animated joie wordmark (design: Joie/Logo.dc.html)
   ============================================================================ */
.logo-open { position: absolute; inset: 0; z-index: 90; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 30px; cursor: pointer; user-select: none; outline: none;
  background: radial-gradient(125% 95% at 50% 40%, #1b2350 0%, #0e1336 44%, #080b22 78%, #05071a 100%);
  font-family: var(--font-body); animation: joOpenOut .5s ease 2.9s backwards; }
.logo-open__stage { position: relative; width: 236px; height: 131px; }
.jo-glow { position: absolute; inset: -40px; border-radius: 50%; filter: blur(18px); opacity: .5;
  background: radial-gradient(circle, rgba(255,107,17,.34), rgba(255,107,17,0) 64%); animation: joGlow 5s ease-in-out .95s infinite; }
.joL { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 1; }
.joL-j { animation: joLetterJ .9s cubic-bezier(.34,1.4,.5,1) .15s backwards; }
.joL-o { animation: joLetterO .9s cubic-bezier(.34,1.4,.5,1) .50s backwards; }
.joL-i { animation: joLetterI .9s cubic-bezier(.34,1.4,.5,1) .32s backwards; }
.joL-e { animation: joLetterE .9s cubic-bezier(.34,1.4,.5,1) .66s backwards; }
.joTag { margin: 0; font-size: 14.5px; font-weight: 400; letter-spacing: .02em; color: #8A8FB5; opacity: 1; animation: joTagIn 2s ease backwards; }
@keyframes joLetterJ {
  0%   { opacity: 0; transform: translate(-22px,-200px) rotate(-34deg) scale(.7); }
  55%  { opacity: 1; } 72% { transform: translate(0,14px) rotate(5deg) scale(1.04); }
  86%  { transform: translate(0,-6px) rotate(-2deg); } 100% { opacity: 1; transform: none; } }
@keyframes joLetterO {
  0%   { opacity: 0; transform: translate(30px,-280px) rotate(42deg) scale(.6); }
  55%  { opacity: 1; } 73% { transform: translate(0,18px) rotate(-6deg) scale(1.05); }
  88%  { transform: translate(0,-7px) rotate(3deg); } 100% { opacity: 1; transform: none; } }
@keyframes joLetterI {
  0%   { opacity: 0; transform: translate(-16px,-150px) rotate(-46deg) scale(.7); }
  55%  { opacity: 1; } 70% { transform: translate(0,12px) rotate(7deg) scale(1.06); }
  85%  { transform: translate(0,-5px) rotate(-3deg); } 100% { opacity: 1; transform: none; } }
@keyframes joLetterE {
  0%   { opacity: 0; transform: translate(-26px,-330px) rotate(26deg) scale(.62); }
  58%  { opacity: 1; } 74% { transform: translate(0,16px) rotate(-5deg) scale(1.04); }
  88%  { transform: translate(0,-6px) rotate(2deg); } 100% { opacity: 1; transform: none; } }
@keyframes joTagIn { 0% { opacity: 0; transform: translateY(8px); } 40% { opacity: 0; } 100% { opacity: 1; transform: none; } }
@keyframes joGlow { 0%,100% { opacity: .4; transform: scale(1); } 50% { opacity: .7; transform: scale(1.06); } }
@keyframes joOpenOut { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .logo-open, .joL, .joTag { animation: none !important; opacity: 1 !important; transform: none !important; }
  .jo-glow { animation: none !important; opacity: .5 !important; } }

/* ── Invites — the real social loop (share link + accept view) ─────────────── */
.appt__share { margin-top: 10px; width: 100%; padding: 11px; border-radius: var(--r-pill); cursor: pointer;
  background: transparent; border: 1px dashed rgba(255,107,17,.5); color: var(--brand);
  font-family: var(--font-body); font-size: 13.5px; font-weight: 600; }
.appt__share--live { border-style: solid; border-color: var(--card-border); color: var(--ink-1); }

.invite .screen__scroll { padding-top: 34px; }
.invite__from { text-align: center; font-size: 13px; color: var(--ink-2); letter-spacing: .04em; }
.invite__headline { font-family: var(--font-display); font-size: 27px; font-weight: 500; color: var(--ink-0);
  text-align: center; margin: 6px 0 18px; }
.invite__time { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--ink-0); }
.invite__gone { text-align: center; padding: 40px var(--pad) 0; }
.invite__reply { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.invite__name { width: 100%; padding: 13px 16px; border-radius: var(--r-pill); font-family: var(--font-body);
  font-size: 15px; background: var(--card); border: 1px solid var(--card-border); color: var(--ink-0); outline: none; }
.invite__name:focus { border-color: rgba(255,107,17,.55); }
.invite__btns { display: flex; gap: 10px; }
.invite__btns .btn { flex: 1; }
.invite__done { margin-top: 20px; text-align: center; display: flex; flex-direction: column; gap: 14px; }
.invite__doneline { font-size: 14.5px; color: var(--ink-1); line-height: 1.45; }

/* ── Real gathering roster + window collection ─────────────────────────────── */
.slot--sm { padding: 8px 12px; font-size: 12.5px; }
.avatar--lg { width: 44px; height: 44px; font-size: 16px; }
.gather__add { display: flex; gap: 8px; margin: 12px 0 4px; }
.gather__add .invite__name { flex: 1; }
.invite__ask { text-align: center; }
.invite__leans { display: flex; gap: 8px; justify-content: center; }
.coord__hostwin .coord__slots { flex-wrap: wrap; }

/* ── Reply digest + link revocation ────────────────────────────────────────── */
.plans__news { display: flex; align-items: center; gap: 9px; width: calc(100% - 2*var(--pad)); margin: 0 var(--pad) 12px;
  padding: 11px 14px; border-radius: 14px; cursor: pointer; text-align: left;
  background: rgba(87,224,142,.1); border: 1px solid rgba(87,224,142,.35); color: var(--ink-0);
  font-family: var(--font-body); font-size: 13px; line-height: 1.4; }
.plans__newsdot { width: 8px; height: 8px; border-radius: 50%; background: var(--impact); flex: none; }
.plans__newsx { margin-left: auto; color: var(--ink-2); flex: none; }
.appt__revoke { background: none; border: none; padding: 0 0 0 8px; cursor: pointer;
  color: var(--ink-2); font-size: 11.5px; text-decoration: underline; font-family: var(--font-body); }

/* ── Booking doorway (the §5 seam, §6-honest) ──────────────────────────────── */
.bookbar { width: 100%; display: flex; flex-direction: column; gap: 9px; }
.bookbar__line { font-size: 13px; color: var(--ink-1); text-align: center; }
.bookbar__btns { display: flex; gap: 10px; }
.bookbar__btns .btn { flex: 1; }
