/* Good Plans v3 web app screens, in the goodplans.ca look. Loads after /styles.css and /v3.css:
   paper field, soft white cards, chunky pressed buttons, sun for "you're live", navy marks. */
.app-body { background: var(--glass); min-height: 100dvh; overflow-x: hidden; }
.app { position: relative; max-width: 480px; min-height: 100dvh; margin: 0 auto; background: var(--paper); display: flex; flex-direction: column; }
@media (min-width: 520px) { .app { box-shadow: 0 0 0 2px var(--ink); } }
.app-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px 4px; min-height: 60px; }
.preview-chip { min-height: 44px; padding: 0 14px; border: 2px dashed var(--ink-2); border-radius: 999px; background: transparent; color: var(--ink-2); font: 600 .875rem var(--sans); cursor: pointer; }
.preview-chip:hover { color: var(--ink); border-color: var(--ink); }
#view { flex: 1; padding: 10px 18px 130px; outline: none; }
.app h1 { font-size: clamp(1.9rem, 1.5rem + 2.4vw, 2.4rem); line-height: 1.08; letter-spacing: -.035em; text-align: left; }
/* Dec 5 (Robert): idle Here title is a sentence, not a short all-caps word. */
.app h1.here-idle { text-transform: none; font-size: clamp(1.7rem, 1.35rem + 2vw, 2.05rem); line-height: 1.08 !important; letter-spacing: -.02em; text-wrap: balance; }
.app h2 { font-size: 1.5rem; line-height: 1.1; letter-spacing: -.03em; max-width: none; text-align: left; }
.app .lead { font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2); margin-top: 10px; max-width: none; text-align: left; }
.eyebrow { display: inline-block; margin-bottom: 10px; padding: 5px 12px; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: .8125rem; font-weight: 600; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 24px; }
.app .btn { width: 100%; }
.btns { display: grid; gap: 12px; margin-top: 22px; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0 0 6px -4px; padding: 0 8px 0 4px; background: none; border: 0; color: var(--ink-2); font-weight: 600; cursor: pointer; text-decoration: none; }
.back svg { width: 18px; height: 18px; }
.back:hover { color: var(--ink); }
.fine { font-size: .875rem; color: var(--ink-2); text-align: center; text-wrap: balance; }
.fine a { color: var(--ink); display: inline-block; padding: 12px 2px; margin: -12px 0; font-weight: 600; }
.spin { display: grid; place-items: center; padding: 60px 0; color: var(--ink-2); }
.empty { padding: 24px 20px; background: #fff; border-radius: 20px; color: var(--ink-2); box-shadow: 0 12px 32px -20px rgba(16, 38, 58, .35); }
.sect { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 8px; }
.lbl { display: block; font-size: .9375rem; font-weight: 600; }

/* setup progress: named steps */
.prog { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin: 4px 0 24px; }
.prog li { font-size: .875rem; font-weight: 600; color: var(--ink-2); padding-top: 10px; border-top: 5px solid rgba(16, 38, 58, .16); }
.prog li[data-state="done"] { border-color: var(--ink); }
.prog li[data-state="now"] { border-color: var(--orange); color: var(--ink); }

.photo-pick { display: flex; align-items: center; gap: 16px; }
.photo-pick .ph { width: 84px; height: 84px; border-radius: 50%; background: var(--glass-2) center / cover; border: 2px solid var(--ink); flex: none; }
.photo-pick input[type="file"] { min-width: 0; width: 100%; min-height: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; font-size: 1rem; }
.photo-pick input::file-selector-button { min-height: 46px; margin-right: 12px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font: 600 .9375rem var(--sans); cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
.gpf input.code { letter-spacing: .45em; font-size: 1.5rem; text-align: center; font-variant-numeric: tabular-nums; }
.app .choices.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 420px) { .app .choices.three .choice span { padding: 8px 6px; font-size: .9375rem; } }

/* switch row */
.switch-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; padding: 18px; background: #fff; border-radius: 20px; box-shadow: 0 12px 32px -20px rgba(16, 38, 58, .35); }
.switch-row b { font-weight: 600; }
.switch-row p { grid-column: 1 / -1; font-size: .9375rem; color: var(--ink-2); }
.switch { position: relative; width: 58px; height: 34px; margin: 5px 0; flex: none; }
.switch input { position: absolute; left: 0; right: 0; top: -5px; width: 100%; height: 44px; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: #b9c4cd; border: 2px solid var(--ink); transition: background-color .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-sizing: border-box; transition: transform .2s var(--ease); }
.switch input:checked + i { background: var(--orange); }
.switch input:checked + i::after { transform: translateX(24px); }
.switch input:focus-visible + i { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--sun); }
details.more { font-size: .9375rem; color: var(--ink-2); }
details.more summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; color: var(--ink); font-weight: 600; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "i"; display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 50%; font: 800 .8125rem/1 var(--display); }

/* presence card */
.presence { display: grid; gap: 10px; padding: 16px 18px; border-radius: 20px; background: #fff; box-shadow: 0 12px 32px -20px rgba(16, 38, 58, .35); margin-bottom: 22px; }
.presence[data-s="live"] { background: var(--sun); box-shadow: 0 5px 0 var(--ink); border: 2px solid var(--ink); }
.presence-line { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.15; }
.presence-line .dot { width: 11px; height: 11px; border-radius: 50%; background: #9aa8b4; flex: none; }
.presence[data-s="live"] .dot { background: var(--orange); box-shadow: 0 0 0 4px rgba(207, 61, 21, .25); }
.presence[data-s="pending"] .dot { background: var(--orange); animation: gp-pulse 1.6s infinite; }
@keyframes gp-pulse { 50% { opacity: .35; } }
.presence p { font-size: .9375rem; color: var(--ink-2); }
.presence[data-s="live"] p { color: var(--ink); }
.presence .acts { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 5px; }
.app .presence .btn { width: auto; min-height: 46px; padding: 10px 20px; font-size: .9375rem; box-shadow: 0 4px 0 var(--orange-dk); }
.app .presence .btn-ghost { box-shadow: 0 4px 0 var(--ink); }
.app .presence[data-s="live"] .btn:not(.btn-ghost) { background: var(--ink); color: var(--on-ink); box-shadow: 0 4px 0 #000; }
.meter { height: 10px; border-radius: 999px; background: rgba(16, 38, 58, .12); overflow: hidden; }
.meter i { display: block; width: 100%; height: 100%; background: var(--orange); border-radius: 999px; transform-origin: left; transition: transform 1s linear; }
[data-left] { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.which { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(16, 38, 58, .18); font-size: .9375rem; }
.which span { flex: 1 1 100%; }

/* a venue's screen */
.room-head { margin-bottom: 18px; display: grid; gap: 6px; }
.room-head .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--ink-2); font-size: .9375rem; }
.room-line { display: grid; gap: 2px; margin-top: 4px; font-size: 1.125rem; }
.room-owner { margin-top: 26px; text-align: center; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pcard { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: var(--glass-2); cursor: pointer; text-align: left; aspect-ratio: 4 / 5; box-shadow: 0 12px 28px -18px rgba(16, 38, 58, .5); }
.pcard img { width: 100%; height: 100%; object-fit: cover; }
.pcard::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, rgba(16, 38, 58, 0), rgba(16, 38, 58, .88)); }
.pcard .who { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.pcard .state { position: absolute; z-index: 1; top: 10px; left: 10px; padding: 5px 10px; border-radius: 999px; background: #fff; color: var(--ink); font-size: .8125rem; font-weight: 600; }
.pcard .state[data-k="mutual"] { background: var(--sun); }
.pcard:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.pletter { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 5rem; color: var(--ink); }
.locked { display: grid; gap: 12px; justify-items: start; padding: 22px 18px; background: #fff; border-radius: 20px; box-shadow: 0 12px 32px -20px rgba(16, 38, 58, .35); }
.locked b { font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.15; }

/* sheet + celebration */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(16, 38, 58, .6); display: grid; align-items: end; justify-items: center; }
.sheet { width: 100%; max-width: 480px; max-height: 94dvh; overflow: auto; background: var(--paper); border: 2px solid var(--ink); border-bottom: 0; border-radius: 28px 28px 0 0; padding: 14px 18px calc(24px + env(safe-area-inset-bottom)); animation: gp-up .25s var(--ease); }
.sheet:focus { outline: none; }
@keyframes gp-up { from { transform: translateY(30px); opacity: 0; } }
.sheet-top { display: flex; justify-content: flex-end; }
.x { width: 44px; height: 44px; display: grid; place-items: center; background: var(--ink); border: 0; border-radius: 50%; color: #fff; cursor: pointer; font-size: 1.375rem; line-height: 1; }
.sheet-photo { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 4.2; margin-top: 10px; background: var(--glass-2); }
.sheet-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.sheet h2 { margin-top: 16px; font-size: 2rem; }
.sheet .bio { color: var(--ink-2); margin-top: 6px; }
.sheet .btn { margin-top: 18px; }
.linkish { display: inline-flex; align-items: center; min-height: 44px; background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9375rem; }
.celebrate { text-align: center; padding-top: 6px; }
.celebrate .pair { display: flex; justify-content: center; margin: 14px 0 18px; }
.celebrate .pair span { width: 108px; height: 108px; border-radius: 50%; border: 4px solid var(--ink); background: var(--glass-2) center / cover; }
.celebrate .pair span + span { margin-left: -22px; }
.celebrate h2 { font-size: 2.6rem; text-align: center; }
.celebrate .lead { text-align: center; }
.av-letter { display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--ink); background-color: var(--glass-2); }
.celebrate .pair .av-letter { font-size: 3rem; }
.confetti { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: gp-fall 1.9s var(--ease) forwards; }
@keyframes gp-fall { to { transform: translateY(105vh) rotate(540deg); opacity: .9; } }

/* matches + chat */
.mlist { display: grid; gap: 10px; margin-top: 18px; }
.mrow { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 14px; min-height: 80px; background: #fff; border-radius: 20px; text-decoration: none; box-shadow: 0 12px 32px -20px rgba(16, 38, 58, .35); }
.mrow:hover { background: var(--glass); }
.mrow .av { width: 56px; height: 56px; border-radius: 50%; background: var(--glass-2) center / cover; }
.mrow b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.mrow .mtxt span { display: block; font-size: .9375rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.chat-head .av { width: 48px; height: 48px; border-radius: 50%; background: var(--glass-2) center / cover; flex: none; font-size: 1.25rem; }
.chat-head b { font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.chat-head div span { display: block; font-size: .875rem; color: var(--ink-2); }
.msgs { display: grid; gap: 8px; align-content: start; min-height: 40dvh; padding-bottom: 12px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; line-height: 1.4; overflow-wrap: anywhere; }
.msg.mine { justify-self: end; background: var(--ink); color: var(--on-ink); border-bottom-right-radius: 5px; }
.msg.theirs { justify-self: start; background: var(--glass-2); border-bottom-left-radius: 5px; }
.composer { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(70px + env(safe-area-inset-bottom)); width: 100%; max-width: 480px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 10px 18px; background: var(--paper); border-top: 2px solid var(--ink); z-index: 5; }
.composer input { min-height: 52px; min-width: 0; border-radius: 999px !important; }
.app .composer .btn { width: auto; min-height: 52px; padding: 0 22px; box-shadow: 0 4px 0 var(--orange-dk); }

/* me */
.me-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.me-head .av { width: 76px; height: 76px; border-radius: 50%; background: var(--glass-2) center / cover; border: 2px solid var(--ink); flex: none; }
.me-head .small { margin-top: 2px; overflow-wrap: anywhere; }
.rows { display: grid; gap: 12px; }
.row-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 58px; padding: 0 18px; background: #fff; border: 0; border-radius: 20px; color: var(--ink); font: 600 1.0625rem var(--sans); cursor: pointer; text-decoration: none; text-align: left; box-shadow: 0 12px 32px -20px rgba(16, 38, 58, .35); }
.row-btn:hover { background: var(--glass); }
.row-btn.danger { color: var(--err); }

/* tab bar */
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 10; width: 100%; max-width: 480px; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 2px solid var(--ink); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 68px; color: var(--ink-2); text-decoration: none; font-size: .8125rem; font-weight: 600; }
.tabbar svg { width: 24px; height: 24px; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: -2px; left: 22%; right: 22%; height: 5px; border-radius: 0 0 5px 5px; background: var(--orange); }
.nbadge { position: absolute; top: 9px; left: calc(50% + 8px); min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 10px; background: var(--orange); color: #fff; font-size: .75rem; font-weight: 700; }

/* toast + preview panel */
.toast { position: fixed; left: 16px; right: 16px; margin: 0 auto; width: fit-content; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 95; max-width: min(440px, calc(100% - 32px)); padding: 13px 18px; border-radius: 16px; background: var(--ink); color: var(--on-ink); font-weight: 600; font-size: .9375rem; box-shadow: 0 12px 40px rgba(16, 38, 58, .45); }
.preview-panel h2 { font-size: 1.75rem; margin-top: 6px; }
.preview-panel .field { margin-top: 16px; }
.preview-panel .btn { margin-top: 12px; }

/* Nov 29: check-in chip top right; full card opens under it */
.app-top { position: relative; gap: 10px; }
.presence-top { position: relative; margin-left: auto; }
.pres-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; max-width: 58vw; padding: 0 14px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font: 700 .875rem var(--sans); cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
.pres-chip .pres-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pres-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: #9aa8b4; flex: none; }
.pres-chip[data-s="live"] { background: var(--sun); }
.pres-chip[data-s="live"] .dot, .pres-chip[data-s="pending"] .dot { background: var(--orange); }
.pres-chip[data-s="pending"] .dot { animation: gp-pulse 1.6s infinite; }
.pres-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; width: min(360px, calc(100vw - 28px)); }
.pres-panel .presence { margin: 0; box-shadow: 0 18px 40px -16px rgba(16, 38, 58, .45); border: 2px solid var(--ink); }

/* Nov 29: venue photo at the top of the venue page (Google Places, credit shown) */
.room-hero { margin: 4px 0 14px; position: relative; border-radius: 20px; overflow: hidden; border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); background: #e9e3d8; }
.room-hero img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.room-hero figcaption { position: absolute; right: 8px; bottom: 8px; font-size: .6875rem; color: #fff; background: rgba(16, 38, 58, .62); padding: 3px 8px; border-radius: 999px; }

/* Nov 29: avatars in the room; real photos only after a match */
.av-emoji { display: grid; place-items: center; line-height: 1; font-size: 1.9rem; }
.av-real { background-size: cover !important; background-position: center 25% !important; }
.chat-head .av-emoji { font-size: 1.6rem; } .me-head .av-emoji { font-size: 2.6rem; } .mrow .av-emoji { font-size: 1.8rem; }
.av-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.av-opt { position: relative; cursor: pointer; }
.av-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.av-opt span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; font-size: 1.75rem; border: 2px solid transparent; transition: transform .15s; }
.av-opt input:checked + span { border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); transform: scale(1.06); }
.av-opt input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.pcard .pcard-av { position: absolute; inset: 0; display: grid; place-items: center; font-size: 4.2rem; }
.sheet-av { display: grid; place-items: center; margin-top: 10px; }
.sheet-av .sheet-av-in { width: 140px; height: 140px; border-radius: 50%; font-size: 4.6rem; border: 2px solid var(--ink); }
.pcard .who .pline { display: block; margin-top: 2px; font-family: var(--sans); font-weight: 500; font-size: .8125rem; letter-spacing: 0; line-height: 1.3; opacity: .92; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pres-chip { max-width: min(46vw, 220px); }
/* Nov 29: venue-owner link small and at the bottom of the screen */
#view:has(> .room-owner) { display: flex; flex-direction: column; min-height: calc(100dvh - 150px); }
#view:has(> .room-owner) > * { flex: none; }
.room-owner { margin-top: auto !important; padding-top: 32px; text-align: center; }
.room-owner a { font-size: .75rem; font-weight: 500; color: var(--ink-2); text-decoration-thickness: 1px; }

/* Nov 29: private stats on Me */
.my-stats { margin: 4px 0 16px; padding: 16px 18px; border-radius: 20px; background: var(--sun); border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); text-align: center; }
.my-stats .stat-head { font-family: var(--display); font-weight: 800; font-size: 1.15rem; margin: 0 0 12px; }
.my-stats .stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.my-stats .stat { display: grid; gap: 2px; background: #fff; border-radius: 14px; padding: 10px 6px; }
.my-stats .stat b { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1; }
.my-stats .stat span { font-size: .75rem; font-weight: 600; color: var(--ink-2); }
.my-stats .fine { margin: 10px 0 0; }

/* Nov 29: list header + admin venues */
.list-head { margin: 0 0 12px; font-weight: 700; font-size: .9375rem; color: var(--ink); }
.rooms-foot [data-show-more] { width: auto; }
.admin-search { width: 100%; margin-top: 14px; min-height: 46px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 14px; font: 500 1rem var(--sans); }
.admin-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 12px 14px; margin-bottom: 8px; background: #fff; border-radius: 16px; }
.admin-row > div { display: grid; gap: 2px; min-width: 0; } .admin-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-row select { min-height: 40px; border: 2px solid var(--ink); border-radius: 10px; padding: 0 8px; font: 600 .875rem var(--sans); background: #fff; }
.admin-row .admin-hide { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; font-size: .875rem; font-weight: 600; }
.admin-row.is-hidden { opacity: .55; }
.howto { margin: 14px 0 4px 1.1rem; display: grid; gap: 8px; font-size: .9375rem; }
.h1-date { display: block; margin-top: 4px; font-size: .55em; color: var(--orange); letter-spacing: -.01em; }

/* Nov 29: "Are you at X?" is a centred takeover */
.pres-panel.takeover { position: fixed; inset: 0; top: 0; right: 0; width: auto; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(16, 38, 58, .55); }
.pres-panel.takeover .presence { width: min(420px, 100%); text-align: center; justify-items: center; }
.pres-panel.takeover .presence-line { justify-content: center; font-size: 1.4rem; }
.pres-panel.takeover .acts { flex-direction: column; align-items: stretch; width: 100%; }
.pres-panel.takeover .acts .btn { width: 100%; }
.pres-panel.takeover .takeover-close { margin-top: 2px; }
.pres-panel.takeover .takeover-close { align-self: center; }
.live-here { display: grid; justify-items: center; gap: 10px; margin: 0 0 16px; padding: 16px; border-radius: 20px; background: var(--sun); border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); text-align: center; }
.live-here .acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.live-here .btn { width: auto; }
.locked > b + .btn, .locked .btn + .btn { margin-top: 2px; }
.pres-panel.takeover, .pres-panel.takeover * { box-sizing: border-box; }
.pres-panel.takeover { display: flex; align-items: center; justify-content: center; }
.pres-panel.takeover .presence { width: 100%; max-width: 420px; }
html, body { overflow-x: hidden; }
.pres-panel.takeover { left: 0; top: 0; width: 100vw; height: 100dvh; }

/* Dec 3 (Robert): cartoon people avatars (pictures, not emoji) */
.av-pic { background-color: #e9e6df !important; background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; font-size: 0 !important; color: transparent !important; }
.av-opt span.av-pic { border-width: 3px; }

/* Dec 5 (Robert): two columns on the bar page — you + chats on the left, new singles on the right */
.room-board { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.room-col { display: grid; gap: 12px; align-content: start; min-width: 0; }
.room-col-empty { margin: 0; padding: 14px 12px; font-size: .8125rem; }
.pcard-me { cursor: default; box-shadow: 0 12px 28px -18px rgba(16, 38, 58, .5), 0 0 0 2px var(--ink); }
.pcard .state[data-k="you"] { background: var(--sun); }
a.pcard { text-decoration: none; color: inherit; }

/* Dec 5 (Robert): Show me Women / Men / Everyone on the Me tab, saves on tap */
.seek-row { margin: 0 0 16px; }
.seek-row .choices { grid-column: 1 / -1; }
.seek-saved { font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.seek-saved[data-err] { color: var(--err); }

/* Dec 5 (Robert): heart on people who liked me, with the start of their note / latest message on the picture. */
.pcard .heart { position: absolute; z-index: 2; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.15rem; line-height: 1; box-shadow: 0 4px 12px -4px rgba(16, 38, 58, .55); }
.pcard::after { inset: 38% 0 0; }
.pcard .who { z-index: 2; }
.pcard .who .pprev { display: block; -webkit-line-clamp: unset; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; font-weight: 600; opacity: 1; text-shadow: 0 1px 6px rgba(16, 38, 58, .75); }
.sheet .likedme { margin-top: 12px; padding: 10px 14px; border-radius: 16px; background: var(--glass-2); text-align: center; }
.sheet .likedme b { display: block; }
.sheet .likedme span { display: block; margin-top: 4px; color: var(--ink-2); }
.sheet .note-in { display: block; width: 100%; margin-top: 16px; min-height: 48px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 14px; background: #fff; font: inherit; font-size: 1rem; color: var(--ink); }
.sheet .note-in + .btn { margin-top: 10px; }

/* Dec 5 (Robert): on-my-way page */
.way h1 { margin: 2px 0 12px; }
.way-count { margin: 0 0 14px; font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.2; }
.way-count .way-n { font-size: 2.6rem; margin-right: 6px; vertical-align: -3px; }
.way-count .way-sub { display: block; margin-top: 4px; font-family: var(--sans); font-weight: 500; font-size: .9375rem; letter-spacing: 0; color: var(--ink-2); }
.way-made { margin: 4px 0 6px; }
.way-note { margin: 6px 0 0; text-align: center; }
.way-go { min-height: 64px; font-size: 1.2rem; }
.way-map { height: 240px; margin: 16px 0 10px; border-radius: 24px; overflow: hidden; background: #e9e3d8; border: 1px solid var(--line, rgba(16, 38, 58, .16)); }
.way-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.way-addr { margin: 0 0 14px; color: var(--ink-2); }
.way .btn { width: 100%; }
.way-cancel { display: flex; margin: 10px auto 0; justify-content: center; }
.pcard-unhide { margin-top: 8px; width: 100%; }
