/* Event discovery and focused guest stages, aligned with the mobile concept. */
.event-guest-art,.guest-flow-toolbar {display:none}
.guest-flow [hidden] {display:none!important}
.guest-flow .nav,.event-guest .nav {max-width:680px;margin-inline:auto}
.guest-flow .join-hero {display:block;max-width:480px;margin:0 auto;padding:12px 24px 40px}
.guest-flow .guest-flow-toolbar {display:flex;align-items:center;gap:12px;max-width:480px;margin:0 auto;padding:8px 24px 16px;font-size:12px;color:#aeb5cc}
.guest-flow-toolbar #guestFlowEventName {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.guest-browser-label {color:#b8a6ff;white-space:nowrap}
.guest-back {border:0;background:transparent;color:#fff;font-size:24px;min-width:44px;min-height:44px;cursor:pointer;padding:0;text-align:left}
.guest-flow #joinSidePanel,.guest-flow .join-explainer,.guest-flow #intentStep,
.guest-flow #joinSourceBadge,.guest-flow #liveStatusIndicator,.guest-flow #liveActivityFeed,
.guest-flow #liveAttendeePreview,.guest-flow #joinKicker,.guest-flow #joinEventMeta,
.guest-flow #joinDescription,.guest-flow #guestJoinedGoal,.guest-flow .guest-device-note {display:none!important}
/* Retain the event's page heading for assistive technology. */
.guest-flow #joinTitle {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.guest-flow .guest-join-card,.guest-flow .guest-joined-card {margin:0;padding:0;background:transparent;border:0;box-shadow:none;min-width:0}
.guest-flow .guest-join-title {font-size:28px;line-height:1.2;letter-spacing:-.025em;margin:0 0 10px}
.guest-flow .guest-join-sub {font-size:15px;line-height:1.5;color:#b8bdd0;margin:0 0 20px}
.guest-flow .guest-goal-field {border:0;padding:0;margin:0 0 22px;min-width:0}
.guest-goal-card {position:relative;display:grid;grid-template-columns:28px 1fr 20px;align-items:center;gap:10px;min-height:58px;box-sizing:border-box;padding:12px 14px;margin-bottom:10px;border:1px solid #41445e;border-radius:12px;background:linear-gradient(115deg,#1b1e30,#121525);color:#f4f3ff;cursor:pointer;font-size:15px;font-weight:600}
.guest-goal-card input {position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.guest-goal-card:has(input:checked) {border-color:#956aff;background:linear-gradient(115deg,#2c214e,#1d1834);box-shadow:inset 0 0 0 1px #7955ff}
.guest-goal-card:has(input:focus-visible) {outline:3px solid #c5b1ff;outline-offset:3px}
.guest-goal-icon {font-size:24px;font-weight:400;color:#c9c9e2}
.guest-goal-check {width:18px;height:18px;border:1px solid #969aaf;border-radius:50%;display:grid;place-items:center;box-sizing:border-box}
.guest-goal-card input:checked~.guest-goal-check {background:#8656ff;border-color:#8656ff}
.guest-goal-card input:checked~.guest-goal-check::after {content:'✓';font-size:12px;color:white}
.guest-more-goals summary {width:fit-content;min-height:36px;cursor:pointer;font-size:13px;color:#b9a4ff;padding:4px 0}
.guest-more-goals[open] summary {margin-bottom:8px}
.guest-flow .guest-join-label {display:block;font-size:14px;margin-bottom:8px;color:#e6e7f3}
.guest-flow .guest-join-input {box-sizing:border-box;width:100%;min-height:48px;border:1px solid #62657d;border-radius:10px;background:#191d30;color:#fff;font-size:16px;padding:12px 14px}
.guest-flow .guest-join-actions {margin-top:22px;gap:10px}
.guest-flow .btn {box-sizing:border-box;min-height:48px;border-radius:11px;white-space:normal;text-align:center;font-size:15px}
.guest-flow .btn.primary,.event-guest #eventContinueWithoutSignInBtn {background:linear-gradient(105deg,#7545f4,#8b49ff);border-color:#8954ff;box-shadow:0 4px 20px #7144ef15}
.guest-flow .guest-join-actions>.primary {width:100%}
.guest-flow #guestCancelBtn {display:none}
.guest-form-reassurance {font-size:13px;text-align:center;color:#d4c5ff;margin:14px 0 6px}
.guest-local-note {font-size:12px;text-align:center;color:#a8afc4;margin:0}
.guest-flow .intent-status {font-size:14px;line-height:1.5;text-align:left}
.guest-flow .intent-status:empty {display:none}
#guestConnectStage {text-align:center}
.guest-flow .guest-joined-header {display:inline-flex;align-items:center;gap:6px;background:#12352f;border:1px solid #368a77;border-radius:30px;color:#78e5cd;padding:6px 12px;font-size:13px}
.guest-flow .guest-joined-check {width:auto;height:auto;background:none;border:0;color:inherit;font-size:16px}
.guest-flow .guest-connect-heading {max-width:310px;font-size:30px;line-height:1.15;margin:18px auto 24px;letter-spacing:-.025em}
.guest-flow .guest-qr-actions {display:flex;flex-direction:column;gap:14px;margin-top:0!important}
.guest-flow .guest-personal-qr {width:256px;max-width:100%;box-sizing:border-box;margin:0 auto 6px;padding:20px 20px 14px;background:#fff;border-radius:16px;color:#151525;box-shadow:0 8px 36px #0003}
.guest-personal-qr #guestMyQrCode {display:flex;justify-content:center;min-height:200px}
.guest-personal-qr #guestMyQrCode:empty::before {content:'';display:block;width:200px;height:200px;border-radius:6px;background:linear-gradient(135deg,#f5f3fa,#e9e6f0)}
.guest-personal-qr #guestMyQrCode img,.guest-personal-qr #guestMyQrCode canvas {max-width:100%;height:auto}
.guest-flow .guest-joined-name {display:block;font-size:21px;line-height:1.3;margin:12px 0 2px;color:#171725}
.guest-qr-caption {font-size:12px;line-height:1.4;margin:0;color:#626477}
.guest-personal-qr #guestMyQrStatus {font-size:12px;line-height:1.4;margin:8px 0;color:#535569}
.guest-personal-qr #guestMyQrStatus:empty {display:none}
.guest-link-details {margin-top:12px;font-size:12px;text-align:left}
.guest-link-details summary {cursor:pointer;text-align:center;color:#59516c;min-height:28px}
.guest-link-details label {display:block;margin:10px 0 6px}
.guest-link-details input {box-sizing:border-box;width:100%;font-size:14px;padding:8px;border-radius:6px;border:1px solid #b0b0bf;color:#151525;background:white}
.guest-copy-link {border:0;background:#eee8ff;border-radius:6px;color:#5a32ad;padding:10px;margin-top:8px;width:100%;min-height:40px;cursor:pointer}
.guest-qr-retry {font-size:14px;color:#c5b1ff;border:1px solid #7960a7;background:transparent;border-radius:8px;padding:12px;cursor:pointer}
.guest-flow #guestScanQrBtn {width:100%}
.guest-text-action {display:block;min-height:44px;width:100%;border:0;background:transparent;color:#c0a2ff;text-decoration:underline;text-underline-offset:3px;font-size:14px;cursor:pointer;padding:10px}
.guest-connect-tip {display:flex;align-items:center;gap:12px;border:1px solid #428d92;border-radius:12px;background:linear-gradient(110deg,#153039,#172432);font-size:13px;line-height:1.5;color:#e3f3f4;text-align:left;padding:14px;margin:4px 0 0}
.guest-connect-tip span {font-size:24px;color:#79e5ed}
.guest-flow #guestQrScanner {text-align:left;padding:16px;background:#151a2c;border:1px solid #42445c;border-radius:12px}
.guest-flow #guestQrScanner .btn {margin:12px 0 0;width:100%}
.guest-flow #guestQrScanner label {display:block;margin:14px 0 8px;font-size:14px;line-height:1.5}
.guest-flow .guest-save-confirmation {padding:8px 0 0;text-align:center;border:0;background:none;border-radius:0}
.guest-save-check {display:grid;place-items:center;width:56px;height:56px;margin:0 auto 20px;background:#71e5ce;color:#102527;border-radius:50%;font-size:32px}
.guest-flow #guestSaveHeading {font-size:30px;line-height:1.2;letter-spacing:-.025em;margin:0 0 26px}
.guest-saved-person {display:flex;align-items:center;gap:14px;text-align:left;background:linear-gradient(110deg,#22283d,#191e30);border:1px solid #3a4058;border-radius:14px;padding:18px}
.guest-saved-avatar {flex-shrink:0;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:linear-gradient(140deg,#bba9ff,#6c4aad);color:white;font-size:20px;font-weight:700}
.guest-saved-person strong {display:block;font-size:18px}
.guest-saved-person p {font-size:13px;line-height:1.5;color:#b9c0d5;margin:5px 0 0}
.guest-flow #guestSaveMessage {font-size:14px;line-height:1.65;color:#bfc5d9;text-align:left;margin:20px 0 24px}
.guest-flow #guestKeepConnectingBtn {width:100%}
.guest-flow .guest-connect-section {margin:0;padding:0;border:0}
.guest-flow .guest-connect-title {font-size:28px;line-height:1.2;margin:0 0 10px}
.guest-flow .guest-connect-subtitle,.guest-flow .guest-connect-history-note {font-size:14px;line-height:1.6;color:#b6bed3}
.guest-flow #guestConnectStatus {color:#aeb9d1;text-align:left;font-size:14px}
.guest-flow .guest-connection-history {margin-top:20px}
.guest-flow .guest-joined-actions {padding:18px;margin-top:28px!important;border:1px solid #414a65;border-radius:14px;background:#171f31}
.guest-flow .guest-joined-actions h3 {font-size:17px;line-height:1.4;margin:0 0 8px}
.guest-flow .guest-joined-actions .btn {width:100%;margin-top:12px}
.guest-flow[data-guest-view='connect'] .guest-joined-actions,
.guest-flow[data-guest-view='connect'] #guestClaimStatus {display:none!important}
.guest-flow .footer {display:none}
.guest-flow :is(button,a,input,summary):focus-visible {outline:3px solid #c1a7ff;outline-offset:4px}
/* The discovery screen uses real event metadata and decorative brand artwork. */
.event-guest .event-hero {max-width:680px;display:block;margin:0 auto;padding:24px}
.event-guest #eventTitle {font-size:clamp(30px,5vw,44px);line-height:1.15;letter-spacing:-.035em;margin-bottom:14px}
.event-guest #eventKicker {font-size:11px;letter-spacing:.12em;color:#8ee3e5;margin-bottom:14px}
.event-guest #eventSubhead {display:none}
.event-guest #eventMetaGrid {display:flex;flex-direction:column;gap:12px;margin:18px 0 0}
.event-guest #eventMetaGrid .event-meta-card {display:flex;align-items:center;gap:12px;padding:0;border:0;background:none;border-radius:0;flex:auto}
.event-guest #eventMetaGrid .event-meta-card::before {content:'◷';color:#dadff1;font-size:22px;width:24px;text-align:center}
.event-guest #eventMetaGrid .event-meta-card:nth-child(2)::before {content:'⌖'}
.event-guest #eventMetaGrid .meta-label {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.event-guest #eventMetaGrid .meta-value {font-size:15px;line-height:1.5;font-weight:500;color:#e4e8f5}
.event-guest .event-summary-preview {padding:0;margin:22px 0 18px;text-align:left}
.event-guest .event-summary-preview-text {font-size:15px;line-height:1.65;color:#bfc6d9}
.event-guest .event-guest-art {position:relative;display:flex;flex-direction:column;justify-content:center;min-height:180px;overflow:hidden;isolation:isolate;border:1px solid #4c4277;border-radius:16px;padding:24px;background:radial-gradient(ellipse at 95% 100%,#257b8155,transparent 65%),linear-gradient(120deg,#28204a,#15172c 75%);box-sizing:border-box}
.event-art-label {font-size:9px;letter-spacing:.15em;color:#bcb4eb;margin-bottom:14px;z-index:1}
.event-guest-art strong {font-size:28px;line-height:1.15;letter-spacing:-.03em;z-index:1}
.event-art-orbit {position:absolute;width:190px;height:190px;border:1px solid #c4b7ff30;border-radius:50%;right:-20px;top:45px;transform:rotate(-30deg);z-index:-1}
.orbit-two {width:250px;height:250px;right:-50px;top:15px}
.event-art-bubble {position:absolute;display:grid;place-items:center;width:54px;height:54px;border:1px solid #8f75d6;border-radius:17px;background:linear-gradient(145deg,#645094,#32254c);font-size:30px;color:#e1d5ff;box-shadow:0 12px 28px #0003;transform:rotate(10deg);right:24px;top:32px}
.bubble-two {width:42px;height:42px;right:84px;top:90px;transform:rotate(-10deg);color:#9fe9e2;background:#20444c;border-color:#3f8985}
.bubble-three {width:32px;height:32px;right:22px;top:115px;font-size:22px;transform:rotate(-8deg)}
.event-guest #eventAttendeeAuthPrompt {display:flex;align-items:stretch;gap:12px;max-width:none;padding:0;border:0;background:none;margin:22px 0 0}
.event-guest #eventAttendeeAuthPrompt .intent-signin-message {font-size:13px;text-align:left;color:#aeb8ce;margin:0}
.event-guest #eventAttendeeAuthPrompt .event-inline-actions {display:flex;flex-direction:column;width:100%;gap:6px}
.event-guest #eventContinueWithoutSignInBtn {width:100%;min-height:48px;box-sizing:border-box;border-radius:11px;font-size:16px}
.event-guest #eventAttendeeSignInBtn {width:100%;min-height:44px;border:0;background:none;color:#c8b2ff;font-size:13px}
.event-guest #eventSections {display:none!important}
.event-guest #eventMomentum {margin:0}
.event-guest #eventMomentum .btn {border:0;background:none;min-height:40px;padding:6px 0;font-size:13px;color:#aeb8ce}
.event-guest .footer {padding:24px}
@media(max-width:600px) {
 .guest-flow .join-hero {padding:8px 24px 32px}
 .guest-flow .guest-flow-toolbar {padding:0 20px 12px}
 .event-guest .event-hero {padding:18px 24px 24px}
 .guest-flow .guest-connect-heading {font-size:28px}
 .event-guest #eventTitle {font-size:32px}
}
@media(prefers-reduced-motion:reduce) {
 .guest-flow *, .event-guest * {scroll-behavior:auto!important;transition:none!important}
}
.guest-flow .guest-joined-name,.guest-flow .guest-saved-person strong {overflow-wrap:anywhere}
.guest-saved-person>div {min-width:0}
.event-guest #eventMetaGrid .event-meta-card {box-shadow:none}
.event-guest-art strong {max-width:72%;font-size:26px}
@media(max-width:350px) {
 .event-guest-art strong {font-size:23px}
 .event-art-bubble {right:14px;width:42px;height:42px}
 .bubble-two {right:36px;top:110px;width:32px;height:32px}
 .bubble-three {display:none}
}
/* An explicit browser QR route never presents an automatic app handoff. */
.web-browser-flow #joinActions,.web-browser-flow #joinSidePanel,.web-browser-flow #joinBottomCta,
.web-browser-flow #joinPayloadCard,.web-browser-flow #authHandoffSection,
.web-browser-flow #claimSuccessState a[href*='testflight.apple.com'] {display:none!important}
.web-browser-flow .join-explainer,.web-browser-flow #intentStep {display:none!important}
/* Programmatic status-heading focus should not look like a selected control. */
.guest-flow :is(#guestSaveHeading,#guestConnectHeading,#guestHistoryHeading):focus {outline:none}
.web-browser-flow #scanAnotherQr,.web-browser-flow #webScanRetryBtn {margin:12px 12px 0 0}
/* Keep the camera in view instead of opening below the visitor's own QR. */
body.guest-scanning {overflow:hidden}
.guest-flow #guestQrScanner {position:fixed;inset:0;margin:auto;width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);box-sizing:border-box;overflow-y:auto;padding:18px;border:1px solid #75688f;border-radius:18px;color:#f3f4ff;background:#111729;box-shadow:0 16px 80px #0008}
#guestQrScanner::backdrop {background:#050813d9}
.guest-scanner-header {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.guest-scanner-header h2 {font-size:22px;line-height:1.25;margin:0}
.guest-scanner-close {display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border:1px solid #615d7d;border-radius:10px;background:transparent;color:white;font-size:20px;cursor:pointer}
.guest-flow #guestQrVideo {display:block;width:100%;aspect-ratio:4/3;min-height:180px;max-height:45dvh;border-radius:12px;object-fit:cover;background:#070b14}
.guest-flow #guestQrStatus {margin:14px 0 8px}
#guestQrLinkFallback {margin-top:16px}
#guestQrLinkFallback summary {min-height:44px;color:#c4aaff;cursor:pointer;font-size:14px}
.guest-flow #guestQrStatus {color:#c9d3e9}
.guest-handoff-state h2 {font-size:28px;line-height:1.2;margin:8px 0 18px}
.guest-handoff-state p {font-size:15px;line-height:1.65;color:#c5cde0;margin-bottom:24px}
.guest-handoff-state .btn {width:100%;margin-bottom:12px}
#guestHandoffErrorTitle:focus {outline:none}
.guest-flow:is([data-guest-view='saving'],[data-guest-view='scan-error']) .guest-joined-actions {display:none!important}
.guest-support-details {margin:16px 0;color:#b9c6de;font-size:13px}
.guest-support-details summary {cursor:pointer;min-height:40px}
.guest-support-details code {display:block;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.5;margin:8px 0}

/* Event-first guest confirmation refinement */
.guest-flow #guestConnectStage {max-width:440px;margin-inline:auto}
.guest-flow .guest-joined-header {padding:9px 18px;font-size:15px;font-weight:700}
.guest-flow .guest-connect-heading {max-width:390px;font-size:clamp(28px,6.5vw,36px);line-height:1.12;margin:20px auto 12px;text-wrap:balance}
.guest-flow .guest-connect-intro {max-width:370px;margin:0 auto 24px;font-size:15px;line-height:1.6;color:#c7cce0}
.guest-flow .guest-personal-qr {border:1px solid #f0ecff;box-shadow:0 18px 52px #0006}
@media(max-width:350px){.guest-flow .guest-connect-heading {font-size:27px}.guest-flow .guest-connect-intro {font-size:14px}}

/* Compact guest success: keep QR and scan action closer together on mobile. */
.guest-flow .guest-connect-note {font-size:12px;line-height:1.45;color:#aeb5cc;margin:0 auto 4px;max-width:320px;text-align:center}
@media(max-width:600px) {
 .guest-flow .nav {padding-block:10px}
 .guest-flow .guest-flow-toolbar {padding-block:0 8px}
 .guest-flow .join-hero {padding-top:0;padding-bottom:20px}
 .guest-flow .guest-joined-header {padding:5px 12px;font-size:13px}
 .guest-flow .guest-connect-heading {font-size:clamp(24px,6vw,30px);line-height:1.13;margin:12px auto 8px;max-width:340px}
 .guest-flow .guest-connect-intro {font-size:13px;line-height:1.45;margin:0 auto 14px;max-width:310px}
 .guest-flow .guest-qr-actions {gap:9px}
 .guest-flow .guest-personal-qr {width:238px;padding:12px 12px 9px;border-radius:14px;margin-bottom:0}
 .guest-personal-qr #guestMyQrCode {min-height:0}
 .guest-flow .guest-joined-name {font-size:17px;margin:7px 0 2px}
 .guest-flow .guest-qr-caption {font-size:11px;line-height:1.3}
 .guest-flow .guest-link-details {margin-top:5px}
 .guest-flow #guestScanQrBtn {min-height:48px}
 .guest-flow .guest-connect-note {margin-top:0}
}
@media(max-height:740px) and (max-width:600px) {
 .guest-flow .guest-personal-qr {width:218px}
 .guest-flow .guest-connect-heading {font-size:24px}
 .guest-flow .guest-connect-intro {margin-bottom:10px}
}

/* Guest ticket experience: visual redesign without changing QR/session behavior. */
body.guest-flow {background:radial-gradient(ellipse 460px 290px at 50% 185px,#48277b55,transparent 80%),radial-gradient(ellipse 320px 230px at 90% 420px,#135b6950,transparent 85%),#090d1c;color:#f7f5ff}
.guest-flow .nav-container {background:transparent;border-bottom:1px solid #ffffff12}
.guest-flow .nav {max-width:560px}
.guest-flow .nav-scan-link {display:none}
.guest-flow .guest-flow-toolbar {max-width:460px;gap:14px;padding-top:16px;padding-bottom:18px;border-bottom:1px solid #b8a0f325}
.guest-flow .guest-event-context {display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.guest-flow .guest-event-eyebrow {font-size:9px;letter-spacing:.18em;font-weight:800;color:#a897dc}
.guest-flow #guestFlowEventName {display:block;font-size:16px;line-height:1.25;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.guest-flow .guest-browser-label {border:1px solid #6c5b9d;background:#30214b88;border-radius:100px;padding:7px 10px;font-size:11px;color:#e4d9ff}
.guest-flow #guestConnectStage {position:relative;padding:22px 12px 12px;border:1px solid #a88dff3d;border-radius:24px;background:linear-gradient(158deg,#30204d80 0%,#171b35bb 39%,#101c2cb8 100%);box-shadow:0 25px 70px #0006, inset 0 1px #d1baff20;isolation:isolate}
.guest-flow #guestConnectStage::before {content:'';position:absolute;top:-1px;left:22%;right:22%;height:2px;background:linear-gradient(90deg,transparent,#b89aff,transparent)}
.guest-flow .guest-ticket-topline {display:flex;align-items:center;gap:12px;margin:0 8px 16px;color:#c3b4ef;font-size:10px;font-weight:800;letter-spacing:.19em}
.guest-flow .guest-ticket-line {height:1px;flex:1;background:#a58bc74d}
.guest-flow .guest-joined-header {background:#113c3c;border:1px solid #4ca99b;color:#a5ffde;border-radius:100px;padding:7px 15px;font-size:13px}
.guest-flow .guest-connect-heading {max-width:300px;margin:14px auto 9px;font-size:clamp(26px,6.5vw,33px);line-height:1.09;letter-spacing:-.04em}
.guest-flow .guest-connect-intro {max-width:295px;margin:0 auto 16px;font-size:13px;line-height:1.45;color:#d3cce5}
.guest-flow .guest-qr-actions {gap:10px}
.guest-flow .guest-personal-qr {width:min(256px,100%);padding:13px 14px 10px;margin-bottom:2px;border-radius:16px;background:#fff;border:1px solid #fff;box-shadow:0 10px 36px #0005}
.guest-flow .guest-ticket-qr-label {display:block;color:#635a75;font-size:9px;letter-spacing:.15em;font-weight:800;margin:0 0 8px}
.guest-flow .guest-joined-name {margin:7px 0 3px;font-size:18px}
.guest-flow .guest-qr-caption {font-size:11px;line-height:1.35}
.guest-flow .guest-link-details {margin-top:5px}
.guest-flow #guestScanQrBtn {min-height:50px;background:linear-gradient(110deg,#8151ff,#a34dff);box-shadow:0 8px 28px #8249ff4d;font-weight:750}
.guest-flow #guestViewConnectionsBtn {min-height:38px;padding:5px}
.guest-flow .guest-connect-note {margin:0 auto 4px;max-width:300px;font-size:11px;color:#c6c1d5}
@media(max-width:600px) {
 .guest-flow .nav {padding-block:8px}
 .guest-flow .guest-flow-toolbar {padding:7px 20px 12px}
 .guest-flow .join-hero {padding:12px 12px 30px}
 .guest-flow #guestConnectStage {padding:17px 12px 12px}
 .guest-flow .guest-ticket-topline {margin-bottom:12px}
 .guest-flow .guest-connect-heading {font-size:clamp(25px,6.6vw,30px)}
 .guest-flow .guest-connect-intro {margin-bottom:13px}
 .guest-flow .guest-personal-qr {width:min(244px,100%);padding:11px 13px 9px}
}
@media(max-height:740px) and (max-width:600px) {
 .guest-flow .guest-personal-qr {width:min(222px,100%)}
 .guest-flow #guestConnectStage {padding-top:12px}
 .guest-flow .guest-connect-heading {font-size:25px}
}

/* The pass sits on white; override the global dark-surface secondary button. */
.guest-flow #guestSharePassBtn {display:block;width:100%;min-height:44px;margin:10px 0 4px;padding:10px 12px;border:1px solid #7852d8;border-radius:10px;background:#eee8ff;color:#4f269c;font-size:14px;font-weight:750;line-height:1.3;cursor:pointer;box-shadow:none;opacity:1;-webkit-text-fill-color:#4f269c}
.guest-flow #guestSharePassBtn:active {background:#ded2ff}

/* Optional device-local guest memory, after an explicit QR save. */
.guest-flow .guest-memory-panel {text-align:left;margin:16px 0;padding:15px;border:1px solid #625481;border-radius:14px;background:#201c35}
.guest-flow .guest-memory-panel label {display:block;font-size:15px;font-weight:700;margin-bottom:10px;color:#f6efff}
.guest-flow .guest-memory-panel label span {font-size:12px;font-weight:400;color:#bdb3d2}
.guest-flow #guestMemoryNote {box-sizing:border-box;width:100%;min-height:90px;resize:vertical;padding:12px;border:1px solid #81749c;border-radius:10px;background:#141327;color:white;font:inherit;font-size:16px;line-height:1.5}
.guest-flow #guestMemorySaveBtn {width:100%;margin-top:10px;background:#3b2a5e;color:#f4eaff;border:1px solid #9977d4}
.guest-flow #guestMemorySaveBtn:disabled {opacity:.55}
.guest-flow #guestMemoryStatus {font-size:13px;color:#a6e8d7}
.guest-flow .guest-memory-disclosure {font-size:11px;line-height:1.5;color:#b8b0cc;margin:9px 0 0}

/* Existing saved connections now opens each person's device-local memory inline. */
.guest-flow .ghost-connections-list {list-style:none;padding:0;margin:12px 0 18px}
.guest-flow .guest-memory-history-item {margin:0 0 10px;border:1px solid #55496e;border-radius:12px;background:#211c35;overflow:hidden}
.guest-flow .guest-memory-history-item summary {display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;padding:15px;color:#f5efff}
.guest-flow .guest-memory-history-item summary strong {font-size:16px;overflow-wrap:anywhere}
.guest-flow .guest-memory-history-item summary span {font-size:12px;color:#c6b8e1;text-align:right}
.guest-flow .guest-memory-history-item details[open] summary {border-bottom:1px solid #55496e}
.guest-flow .guest-memory-history-item textarea {display:block;box-sizing:border-box;width:calc(100% - 28px);margin:14px;min-height:88px;padding:12px;border:1px solid #81749c;border-radius:10px;background:#141327;color:white;font:inherit;font-size:16px;line-height:1.5;resize:vertical}
.guest-flow .guest-memory-history-item button {display:block;box-sizing:border-box;width:calc(100% - 28px);margin:0 14px;min-height:44px;background:#3b2a5e;color:#f4eaff;border:1px solid #9977d4}
.guest-flow .guest-memory-history-status {margin:9px 14px 14px;font-size:13px;color:#a6e8d7}

/* Quiet, scannable memory rows: one clear affordance and distinct destructive action. */
.guest-flow .guest-memory-history-item summary {position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px;row-gap:3px;padding:17px 48px 17px 18px;min-height:60px;box-sizing:border-box}
.guest-flow .guest-memory-history-item summary::after {content:"⌄";position:absolute;right:18px;top:50%;transform:translateY(-55%);font-size:22px;color:#c7b6ed}
.guest-flow .guest-memory-history-item details[open] summary::after {content:"⌃"}
.guest-flow .guest-memory-history-item summary strong {min-width:0;line-height:1.35}
.guest-flow .guest-memory-history-item summary span {font-size:12px;white-space:normal;text-align:right;line-height:1.3}
@media(max-width:420px) {.guest-flow .guest-memory-history-item summary {grid-template-columns:minmax(0,1fr);row-gap:4px}.guest-flow .guest-memory-history-item summary span {text-align:left}}
.guest-flow .guest-memory-actions {display:flex;align-items:center;gap:12px;margin:0 14px;flex-wrap:wrap}
.guest-flow .guest-memory-history-item .guest-memory-actions .btn {width:auto;flex:1;margin:0;min-width:150px}
.guest-flow .guest-memory-history-item .guest-memory-delete {width:auto;margin:0;padding:10px 2px;min-height:44px;border:0;background:transparent;color:#e4bac9;font-size:13px;text-decoration:underline}
.guest-flow .guest-memory-history-item .guest-memory-delete[hidden] {display:none}
.guest-flow .guest-memory-history-item .btn:disabled {opacity:.45;cursor:default}

/* Keep the optional account step visually secondary to saved people. */
.guest-flow[data-guest-view='history'] .guest-joined-actions {background:#141b2b;border-color:#343c54}
.guest-flow[data-guest-view='history'] .guest-joined-actions h3 {font-size:16px}
.guest-flow[data-guest-view='history'] .guest-joined-actions .btn {min-height:46px}

/* Saved connections: full-width rows (no flex shrink) and no leftover list icons,
   so every card's arrow sits in the same place. */
.guest-flow .ghost-connections-list li.guest-memory-history-item {display:block}
.guest-flow .ghost-connections-list li.guest-memory-history-item::before {content:none;display:none}
.guest-flow .guest-memory-history-item summary {list-style:none}
.guest-flow .guest-memory-history-item summary::-webkit-details-marker {display:none}

/* Goal is optional and tucked under the name field. */
.guest-flow .guest-goal-optional {margin:0 0 18px}
.guest-flow .guest-goal-optional > summary {width:fit-content;min-height:36px;cursor:pointer;font-size:14px;color:#b9a4ff;padding:4px 0}
.guest-flow .guest-goal-optional[open] > summary {margin-bottom:10px}
.guest-flow .guest-goal-optional .guest-goal-field {margin-bottom:8px}

/* Copy my recap: under the saved list */
.guest-flow .guest-recap-actions {margin:4px 0 12px;text-align:left}
.guest-flow #guestCopyRecapBtn {width:100%;min-height:46px}
.guest-flow .guest-recap-hint {margin:8px 0 0;font-size:13px;line-height:1.5;color:#bdb3d2}
.guest-flow .guest-recap-status {margin:8px 0 0;font-size:13px;line-height:1.5;color:#b6e9da}
.guest-flow .guest-recap-status:empty {display:none}
.guest-flow .guest-recap-fallback {box-sizing:border-box;width:100%;margin-top:8px;padding:10px;border:1px solid #81749c;border-radius:10px;background:#141327;color:#fff;font:inherit;font-size:14px;line-height:1.5}
.guest-flow .guest-recap-fallback[hidden] {display:none}
