:root { color-scheme: dark; }
* { box-sizing: border-box; }
[ng-cloak] { display: none !important; }
body { margin: 0; background: #101514; color: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
html.landing-locked, body.landing-locked { width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
body.landing-locked { position: fixed; inset: 0; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 14, 13, .7), rgba(8, 14, 13, .22) 55%, rgba(8, 14, 13, .9)), var(--onboarding-background, url('/images/onboarding-phone.jpg')) center 56% / cover no-repeat; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #7fffd4; outline-offset: 5px; }
.onboarding.container-fluid { display: flex; flex-direction: column; padding: 0; min-height: 100vh; min-height: 100svh; }
body.landing-locked .onboarding.container-fluid { height: 100%; height: 100dvh; min-height: 0; overflow: hidden; }
.landing-locked #twoxt-browser-handoff { max-height: 100vh; max-height: 100dvh; overflow-y: auto; overscroll-behavior: none; }
.onboarding-header { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; padding: max(22px, env(safe-area-inset-top)) clamp(24px, 5vw, 72px) 22px; }
.onboarding-brand { color: #7fffd4; text-decoration: none; font-size: 32px; font-weight: 850; font-style: italic; letter-spacing: -2px; }
.onboarding-brand:hover { color: #b2ffe5; }
.onboarding-signin, .back-link { padding: 10px 0; background: none; border: 0; color: #fff; font-size: 15px; }
.onboarding-signin:hover, .back-link:hover { color: #7fffd4; }
.onboarding-screen { width: 100%; max-width: 720px; margin: 0 auto; padding: 22px 24px max(30px, env(safe-area-inset-bottom)); }
.onboarding-home { position: relative; isolation: isolate; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.phone-glow { position: fixed; z-index: -1; pointer-events: none; top: 13%; left: 50%; width: min(88vw, 640px); height: 39%; transform: translateX(-50%); background: radial-gradient(ellipse at 42% 88%, rgba(127, 255, 212, .15), transparent 48%), radial-gradient(ellipse at 50% 25%, rgba(127, 255, 212, .055), transparent 65%); filter: blur(22px); }
.home-copy { position: relative; isolation: isolate; flex-shrink: 0; width: 100%; }
.home-copy::before { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -22px -8px -38px; background: radial-gradient(ellipse at 50% 85%, rgba(100, 246, 210, .09), transparent 72%); filter: blur(18px); }
.onboarding h1 { color: #fff; margin: 0 0 22px; font-size: clamp(34px, 5vw, 58px); font-weight: 750; letter-spacing: -1.4px; line-height: 1.14; }
/* Route changes focus static titles for screen readers, without a control outline. */
.onboarding h1:focus { outline: none; }
.home-copy h1 { text-shadow: 0 1px 4px #06120f, 0 0 22px rgba(127, 255, 212, .23); }
.home-copy .home-subheading { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; max-width: 100%; margin: 0 auto 22px; padding: 0; color: #7fffd4; font-size: clamp(17px, 2.2vw, 22px); font-weight: 700; line-height: 1.3; letter-spacing: .01em; text-wrap: balance; text-shadow: 0 1px 4px #06120f; }
.home-subheading-label { position: relative; color: #f3eee5; font-weight: 600; text-shadow: 0 2px 3px rgba(0, 0, 0, .85), 0 4px 12px rgba(0, 0, 0, .55), 0 0 18px rgba(255, 223, 176, .18); }
.home-subheading-label::before { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -22px -32px; background: radial-gradient(ellipse at center, rgba(255, 218, 166, .34) 0%, rgba(221, 177, 119, .19) 38%, rgba(194, 150, 95, .06) 62%, transparent 78%); filter: blur(14px); }
.home-twin { display: block; flex: 0 0 32px; width: 32px; height: 32px; }
.home-twin-female, [data-homepage-variant='female'] .home-twin-male { display: none; }
[data-homepage-variant='female'] .home-twin-female { display: block; }
.home-copy p { max-width: 30ch; margin: 0 auto; color: #f5fff9; font-size: clamp(17px, 2vw, 20px); font-weight: 500; line-height: 1.5; text-wrap: pretty; text-shadow: 0 1px 3px #06120f, 0 0 14px rgba(127, 255, 212, .14); }
.home-action { width: 100%; margin-top: auto; padding-top: 16px; flex-shrink: 0; }
.onboarding-eyebrow { margin: 0 0 12px; color: #7fffd4; font-size: 12px; font-weight: 750; letter-spacing: 2px; text-transform: uppercase; }
.enable-link { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 16px; max-width: 100%; padding: 0 0 22px; border: 0; background: none; color: #7fffd4; font-size: clamp(24px, 8vw, 43px); font-weight: 750; letter-spacing: -1px; line-height: 1.25; }
.enable-link:hover { color: #b2ffe5; }
.action-arrow { font-weight: 400; }
.action-underline { position: absolute; left: 2%; bottom: 0; width: 88%; height: 18px; overflow: visible; }
.action-underline path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.price-note { margin: 6px 0 0; color: #e4ece8; font-size: 13px; line-height: 1.5; }
.recovery-link { display: block; margin: 5px auto 0; padding: 2px; border: 0; background: none; color: #68b7ff; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.home-action .support-link { padding: 6px 8px; color: #b6c6bf; font-size: 12px; font-weight: 400; text-decoration: none; }
.home-action .support-link:hover { color: #e4ece8; text-decoration: underline; }
body.help-active .onboarding.container-fluid { height: var(--setup-viewport-height, 100dvh); }
.help-screen { flex: 1; min-height: 0; max-width: 720px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.help-heading { margin-bottom: 24px; }
.onboarding .help-heading h1 { margin-bottom: 12px; font-size: clamp(30px, 5vw, 42px); }
.help-screen p { margin: 0; color: #d5ded9; font-size: 14px; line-height: 1.5; }
.help-heading .onboarding-eyebrow { margin-bottom: 10px; color: #7fffd4; font-size: 11px; }
.help-card { margin-bottom: 18px; padding: clamp(18px, 4vw, 26px); border: 1px solid #7fffd433; border-radius: 20px; background: #101c18ed; }
.help-card h2 { margin: 0 0 12px; color: #fff; font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -.4px; }
.help-card .recovery-form { margin-top: 18px; }
.help-screen .onboarding-error { margin-top: 12px; color: #ffd2c9; }
.help-answer { padding: 14px 0; border-top: 1px solid #7fffd422; }
.help-answer:last-child { padding-bottom: 0; }
.help-answer summary { color: #eafff5; font-size: 15px; font-weight: 600; cursor: pointer; }
.help-answer summary:focus-visible { outline: 2px solid #7fffd4; outline-offset: 4px; }
.help-answer p { margin-top: 12px; }
@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  .help-desktop-only { display: none; }
}
.help-passkey-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.help-passkey-buttons button { flex: 1 1 160px; margin: 0; }
.help-screen > .back-link { display: block; margin: 0 auto; }
#help-title:focus, #recovery-title:focus { outline: none; }
.recovery-form { display: flex; flex-direction: column; gap: 8px; }
.recovery-form input { width: 100%; min-width: 0; padding: 10px 14px; border: 1px solid #7fffd466; border-radius: 18px 18px 18px 5px; background: #eaf3ee; color: #14201c; font-size: 16px; }
.recovery-form small { color: #c3d1cc; font-size: 12px; }
body.access-active .onboarding.container-fluid { height: var(--setup-viewport-height, 100dvh); }
.access-screen { flex: 1; min-height: 0; max-width: 480px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.access-screen h1, .access-screen p { margin: 0; }
.access-copy, .access-options { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.access-screen p { font-size: 14px; line-height: 1.35; }
.access-screen .access-help { color: #c3d1cc; font-size: 12px; }
.access-screen .onboarding-eyebrow { font-size: 10px; }
.onboarding .access-screen h1 { font-size: 30px; }
.access-secondary { width: 100%; margin: 8px 0 0; padding: 9px 14px; border: 1px solid #7fffd488; border-radius: 20px; background: #16251f; color: #d6fff0; font-size: 14px; }
.access-screen .recovery-link { font-size: 12px; margin: 0 auto; }
.access-screen .onboarding-error { font-size: 12px; }
.access-screen .back-link { padding: 4px 0; }
@media (max-height: 600px) {
  .access-screen { padding-top: 8px; padding-bottom: 12px; gap: 10px; }
  .access-copy, .access-options { gap: 7px; }
  .access-screen .onboarding-eyebrow { display: none; }
}
@media (max-height: 600px) and (max-width: 479px) {
  .access-active .onboarding-header { padding-top: 8px; padding-bottom: 8px; }
  .access-active .onboarding-brand { font-size: 27px; }
  .access-screen .access-help { font-size: 11px; }
  .access-screen .recovery-form { gap: 5px; }
  .access-screen .recovery-form label { font-size: 12px; }
  .access-screen .recovery-form input { padding: 7px 12px; }
  .access-screen .recovery-form small { display: none; }
}
@media (max-height: 450px) and (min-width: 480px) {
  .access-screen { max-width: 860px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: center; align-items: center; gap: 20px; }
  .access-options { gap: 5px; }
  .access-screen .setup-submit, .access-secondary { padding: 8px 12px; }
  .access-screen .recovery-form { gap: 5px; }
  .access-screen .recovery-form input { padding: 7px 12px; }
}
.checkout-notice, .onboarding-error { font-size: 15px; line-height: 1.5; margin: 18px 0 0; }
.onboarding-error { color: #ffd2c9; }
body.setup-active .onboarding.container-fluid { height: var(--setup-viewport-height, 100dvh); }
.setup-active .onboarding-header { padding: max(12px, env(safe-area-inset-top)) 22px 10px; }
.setup-active .onboarding-brand { font-size: 27px; }
.setup-screen { flex: 1; min-height: 0; max-width: 960px; margin: 0 auto; padding: 8px 22px max(12px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
.setup-heading .onboarding-eyebrow { margin: 0 0 4px; font-size: 10px; letter-spacing: 1.6px; }
.setup-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.setup-heading-copy { min-width: 0; }
.setup-photo { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; color: #b6c6bf; font-size: 9px; }
.setup-tools { position: fixed; z-index: 20; top: max(4px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); display: flex; gap: 4px; }
.setup-analytics, .setup-settings { display: grid; place-items: center; width: 44px; height: 44px; padding: 9px; border: 0; border-radius: 0; background: transparent; color: #7fffd4; box-shadow: none; }
.setup-analytics svg, .setup-settings svg { width: 26px; height: 26px; }
.owner-settings { position: fixed; z-index: 31; top: max(54px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); width: min(520px, calc(100vw - 24px)); max-height: calc(var(--setup-viewport-height, 100dvh) - 72px); display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 20px; background: #fff; color: #202923; box-shadow: 0 12px 45px #0009; color-scheme: light; }
.owner-settings:focus { outline: none; }
.owner-settings :is(input, button):focus-visible { outline: 2px solid #137a60; outline-offset: 2px; }
.settings-form { display: flex; flex-direction: column; min-height: 0; }
.settings-fields { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 3px; }
.settings-fields fieldset { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.settings-fields legend { float: none; width: auto; margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.settings-fields label { display: block; margin: 12px 0 5px; font-size: 13px; font-weight: 600; }
.settings-fields input:not([type=checkbox]) { display: block; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #b2c6bd; border-radius: 10px; background: #f3f8f5; color: #202923; font-size: 16px; }
.settings-help { margin: 6px 0; color: #596b62; font-size: 12px; line-height: 1.5; }
.settings-social-instruction { margin: 16px 0 8px; color: #202923; font-size: 13px; font-weight: 600; line-height: 1.5; }
.settings-fields .settings-social-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.settings-edit { flex: none; min-width: 44px; min-height: 36px; padding: 6px 0 6px 8px; border: 0; background: transparent; color: #137a60; font-size: 13px; font-weight: 600; }
.settings-social-link { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 0; color: #137a60; text-decoration: none; border-bottom: 1px solid #d7e3dc; }
.settings-social-link:last-child { border-bottom: 0; }
.settings-social-link-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.settings-social-link-name { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.settings-social-link-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #596b62; }
.settings-social { position: relative; padding: 0 0 12px; margin-bottom: 12px; border-bottom: 1px solid #d7e3dc; }
.settings-social-url { display: flex; align-items: center; gap: 10px; }
.settings-social-url input { flex: 1; min-width: 0; }
.settings-social-icon { flex: none; width: 24px; height: 24px; fill: currentColor; color: #354c40; }
.settings-social-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.settings-fields .settings-vcard-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; color: #354c40; font-size: 12px; cursor: pointer; }
.settings-vcard-switch input { appearance: none; position: relative; flex: none; width: 34px; height: 20px; margin: 0; border: 1px solid #8aa499; border-radius: 999px; background: #d7e3dc; cursor: pointer; }
.settings-vcard-switch input::before { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0003; }
.settings-vcard-switch input:checked { border-color: #137a60; background: #137a60; }
.settings-vcard-switch input:checked::before { transform: translateX(14px); }
.settings-vcard-switch input:disabled { opacity: .45; cursor: default; }
.settings-research details { font-size: 13px; line-height: 1.5; }
.settings-biography { font-size: 15px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.settings-research li { margin: 6px 0; overflow-wrap: anywhere; }
.settings-research a { color: #137a60; text-decoration: underline; }
.settings-add, .settings-remove, .settings-cancel { min-height: 44px; padding: 8px 12px; border: 1px solid #b2c6bd; border-radius: 9px; background: transparent; color: #27654f; font-size: 13px; }
.settings-remove { color: #a02e24; }
.settings-footer { flex: none; display: flex; justify-content: flex-end; gap: 10px; padding-top: 14px; margin-top: 8px; border-top: 1px solid #d7e3dc; }
.settings-save { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 9px; background: #137a60; color: #fff; font-weight: 600; }
.settings-status, .settings-error { margin: 0; font-size: 13px; }
.settings-error { color: #a02e24; }
body.keyboard-open .owner-settings { top: calc(var(--keyboard-viewport-top, 0px) + 8px); max-height: calc(var(--setup-viewport-height, 100dvh) - 16px); }
.analytics-backdrop { position: fixed; inset: 0; z-index: 30; border: 0; background: #0007; }
.owner-analytics { position: fixed; z-index: 31; top: max(54px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); width: min(460px, calc(100vw - 24px)); max-height: calc(var(--setup-viewport-height, 100dvh) - 72px); display: flex; flex-direction: column; gap: 16px; padding: 18px; border: 0; border-radius: 20px; background: #fff; color: #202923; box-shadow: 0 12px 45px #0009; color-scheme: light; }
.analytics-heading { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 8px; }
.analytics-heading h2 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.2; }
.analytics-eyebrow { margin: 0 0 6px; color: #606a63; font-size: 12px; }
.owner-analytics:focus { outline: none; }
.analytics-controls { display: flex; flex: none; align-items: center; }
.analytics-close, .analytics-refresh { display: grid; place-items: center; flex: none; width: 40px; height: 44px; padding: 8px; border: 0; border-radius: 10px; background: transparent; color: #354c40; }
.analytics-close svg, .analytics-refresh svg { width: 20px; height: 20px; }
.owner-analytics button:focus-visible { outline-color: #137a60; outline-offset: 1px; }
.analytics-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.analytics-tile { aspect-ratio: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(12px, 4vw, 22px); border-radius: 18px; background: #f1f3f2; }
.analytics-tile svg { width: 24px; height: 24px; flex: none; color: #606a63; }
.analytics-value { font-size: clamp(24px, 7vw, 38px); font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.analytics-label { font-size: clamp(12px, 3.5vw, 16px); line-height: 1.2; color: #606a63; }
.analytics-status, .analytics-error { margin: 12px 0 0; font-size: 13px; line-height: 1.4; }
.analytics-error { color: #a02e24; }
@media (max-height: 500px) {
 .owner-analytics { padding: 12px; gap: 10px; }
 .analytics-heading h2 { font-size: 18px; }
 .analytics-eyebrow { margin-bottom: 3px; font-size: 10px; }
 .analytics-grid { max-width: 210px; margin: 0 auto; gap: 8px; }
 .analytics-tile { padding: 10px; border-radius: 12px; }
 .analytics-tile svg { width: 18px; height: 18px; }
 .analytics-value { font-size: 24px; }
 .analytics-label { font-size: 11px; }
}
.setup-photo-picker { position: relative; display: grid; place-items: center; width: 54px; height: 54px; overflow: hidden; border: 0; border-radius: 50%; cursor: pointer; list-style: none; }
.setup-photo-picker::-webkit-details-marker { display: none; }
.setup-photo-picker img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; }
.setup-photo-plus { position: absolute; inset: 0; display: grid; place-items: center; color: #7fffd4; font-size: 28px; font-weight: 650; text-shadow: 0 1px 4px #000; pointer-events: none; }
.setup-photo-picker:focus-visible { outline: 2px solid #7fffd4; outline-offset: 3px; }
.setup-photo-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.setup-photo-picker.photo-disabled { opacity: .5; cursor: default; }
.setup-photo-actions { position: relative; }
.setup-photo-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; width: 156px; padding: 5px; border: 1px solid #638477; border-radius: 12px; background: #16251f; box-shadow: 0 8px 24px #0008; }
.photo-source { position: relative; display: block; padding: 10px; color: #fff; border-radius: 8px; font-size: 13px; cursor: pointer; }
.photo-source:hover, .photo-source:focus-within { background: #2c453a; }
.setup-photo-remove { width: 100%; border: 0; background: transparent; text-align: left; font-family: inherit; }
.setup-photo-status { margin: 0; color: #d5ded9; font-size: 10px; line-height: 1.25; }
.onboarding .setup-screen h1 { margin: 0; font-size: clamp(23px, 4vw, 32px); line-height: 1.1; letter-spacing: -.8px; }
#setup-title:focus { outline: none; }
.setup-form { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.setup-fields { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; }
.setup-fields > * { flex-shrink: 0; }
.checkout-contact { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; font-size: 12px; color: #c3d1cc; }
.setup-field { display: flex; flex-direction: column; gap: 4px; }
.setup-form label { font-size: 13px; font-weight: 650; margin: 0; }
.setup-form small, .setup-note { color: #b6c6bf; font-size: 10px; line-height: 1.3; }
.username-field { display: flex; align-items: center; border: 1px solid rgba(127, 255, 212, .3); border-radius: 18px 18px 18px 5px; background: #eaf3ee; color: #14201c; overflow: hidden; }
.username-field:focus-within { border-color: #7fffd4; box-shadow: 0 0 0 2px rgba(127, 255, 212, .16); }
.username-field span { padding-left: 13px; font-size: 12px; white-space: nowrap; color: #52665c; }
.username-field input { min-width: 0; width: 100%; padding: 10px 10px 10px 3px; border: 0; background: transparent; color: #14201c; font-size: 16px; text-transform: lowercase; }
.username-field input:focus-visible { outline: none; }
.setup-form textarea { display: block; width: 100%; height: 62px; padding: 9px 13px; border: 1px solid rgba(127, 255, 212, .3); border-radius: 18px 18px 5px 18px; background: #eaf3ee; color: #14201c; font-size: 16px; line-height: 1.3; resize: none; }
.setup-form input::placeholder, .setup-form textarea::placeholder { color: #66786f; opacity: 1; }
.setup-form textarea:focus-visible { outline-offset: 1px; }
.setup-actions { display: flex; flex-direction: column; gap: 5px; }
.setup-submit { width: 100%; margin: 0; padding: 10px 14px; border: 0; border-radius: 20px; background: #7fffd4; color: #10201a; font-size: 14px; font-weight: 750; }
.setup-note { text-align: center; margin: 0; }
.activation-screen { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 14px; }
.activation-screen .onboarding-eyebrow, .activation-screen h1, .activation-screen p { margin: 0; }
.activation-check { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid #7fffd4; border-radius: 50%; color: #7fffd4; font-size: 36px; }
.activation-handle { color: #7fffd4; font-size: 22px; overflow-wrap: anywhere; }
.activation-screen .setup-submit { display: block; max-width: 320px; text-decoration: none; margin-top: 12px; }
body.persona-active::before { background: #091218; }
body.persona-active .onboarding.container-fluid { height: var(--setup-viewport-height, 100dvh); }
body.persona-active .onboarding-header { padding: max(10px, env(safe-area-inset-top)) 20px 6px; }
body.persona-active .onboarding-brand { font-size: 26px; }
.persona-screen { flex: 0 1 auto; min-height: 0; max-width: 760px; max-height: calc(var(--setup-viewport-height, 100dvh) - 54px); display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 16px; padding: 12px 20px max(16px, env(safe-area-inset-bottom)); margin: auto; }
.onboarding .persona-heading h1 { margin: 0; font-size: clamp(25px, 4vw, 34px); letter-spacing: -.8px; }
.persona-heading p { margin: 6px 0 0; color: #aebdc6; font-size: 13px; line-height: 1.4; }
.persona-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.persona-settings { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #425661; border-radius: 12px; background: #12212b; color: #7fffd4; }
.persona-settings:hover { border-color: #7fffd4; }
.persona-carousel { display: grid; grid-template-rows: minmax(0,1fr) 28px; min-height: 0; min-width: 0; }
.persona-stage { display: grid; grid-template-columns: 28px minmax(0,1fr) 28px; gap: 8px; align-items: center; min-height: 0; }
.persona-card { touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); width: 100%; aspect-ratio: 2 / 1; height: auto; max-height: 100%; min-height: 0; min-width: 0; border: 0; border-radius: 16px; background: #12212b; overflow: hidden; }
.persona-card:focus-visible { outline: 2px solid #7fffd4; outline-offset: -3px; }
.persona-art { position: relative; min-height: 0; overflow: hidden; container-type: size; background: #0d1921; }
.persona-art-image { position: absolute; left: 50%; top: 50%; width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); transform: translate(-50%, -50%); background-image: url('/images/persona-portraits.png'); background-size: 300% 200%; background-repeat: no-repeat; }
.persona-art-executive { background-position: 0 0; }
.persona-art-concierge { background-position: 50% 0; }
.persona-art-friendly { background-position: 100% 0; }
.persona-art-sassy { background-position: 0 100%; }
.persona-art-playful { background-position: 50% 100%; }
.persona-art-custom { background-position: 100% 100%; }
.persona-card-copy { align-self: center; padding: 14px; }
.persona-card-name { display: block; color: var(--persona-accent); font-size: clamp(20px, 3vw, 30px); line-height: 1.2; font-weight: 700; }
.persona-card-tone { display: block; font-size: 14px; color: #b7c6cf; line-height: 1.5; margin-top: 8px; }
.persona-nav, .persona-dots { display: flex; align-items: center; justify-content: center; }
.persona-nav { gap: 12px; }
.persona-arrow { width: 28px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: #7fffd4; font-size: 32px; line-height: 1; padding: 0 0 3px; }
.persona-arrow:hover { background: #12212b; }
.persona-dot { width: 22px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; }
.persona-dot span { width: 5px; height: 5px; border-radius: 50%; background: #546772; }
.persona-dot[aria-pressed=true] span { background: #7fffd4; width: 7px; height: 7px; }
.persona-count { color: #aebdc6; font-size: 11px; }
.persona-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.persona-editor { --persona-text-height: 210px; max-height: calc(var(--setup-viewport-height, 100dvh) * .5); min-height: 0; min-width: 0; display: flex; flex-direction: column; border: 0; padding: 0; }
.persona-editor-heading, .persona-editor-meta { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 8px; }
.persona-editor-heading { margin-bottom: 8px; }
.persona-editor label { margin: 0; font-size: 14px; font-weight: 650; }
.persona-edit-actions { display: flex; gap: 16px; }
.persona-reset { border: 0; padding: 4px 0; font-size: 13px; line-height: 1.3; background: transparent; color: #7fffd4; }
.persona-reset:hover { text-decoration: underline; }
.persona-summary { height: var(--persona-text-height); min-height: 60px; white-space: pre-wrap; overflow-wrap: anywhere; color: #c9d5dd; font-size: 14px; line-height: 1.5; margin: 0; overflow-y: auto; overscroll-behavior: contain; }
.persona-editor textarea { display: block; width: 100%; height: var(--persona-text-height); min-height: 60px; padding: 10px; border: 1px solid #425661; border-radius: 10px; background: #12212b; color: #e8f0f5; font-size: 16px; line-height: 1.4; resize: none; overscroll-behavior: contain; }
.persona-editor-meta { height: 36px; }
.persona-save-status { color: #899ea9; font-size: 11px; }
.persona-editor .setup-submit { flex: none; width: 100%; padding: 12px; font-size: 15px; line-height: 1.3; border-radius: 12px; }
.persona-editor .onboarding-error { flex: none; margin: 4px 0 0; font-size: 12px; line-height: 1.2; }
@media (max-width: 420px) {
 .persona-card { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
 .persona-card-copy { padding: 8px; }
 .persona-card-name { font-size: 16px; }
 .persona-card-tone { font-size: 12px; }
}
@media (max-height: 650px) {
 .persona-screen { gap: 8px; padding-top: 4px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
 .persona-heading p { margin-top: 4px; }
 .persona-editor-heading { margin-bottom: 4px; }
 .persona-editor-meta { height: 30px; }
 /* Reserve room for the portrait and navigation on short screens in either mode. */
 .persona-editor { --persona-text-height: clamp(60px, calc(var(--setup-viewport-height, 100dvh) - 446px), 190px); }
 .persona-summary { font-size: 13px; line-height: 1.4; }
 .persona-card-copy { padding: 8px; }
 .persona-card-name { font-size: 16px; }
}
@media (max-height: 500px) and (min-width: 600px) {
 .persona-screen { flex: 1; max-width: 1000px; max-height: none; grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-rows: auto minmax(0,1fr); gap: 8px 20px; }
 .persona-heading { grid-column: 1 / -1; }
 .persona-editor { align-self: center; max-height: 100%; }
 .persona-editor { --persona-text-height: 130px; }
}
.setup-fields .onboarding-error { margin: 0; font-size: 12px; line-height: 1.25; }
.setup-preview { flex: none; min-width: 0; display: flex; justify-content: center; }
.setup-vcard { width: min(100%, 460px); container-type: inline-size; }
.setup-card { width: 100%; height: calc(100cqw / 1.75); aspect-ratio: 7 / 4; overflow: hidden; border-radius: 10px; background: #f7f7f5; color: #323232; box-shadow: 0 10px 28px #0005; display: flex; flex-direction: column; }
.setup-card header { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; background: #323232; color: #fff; }
.setup-card header h4 { margin: 0; color: #7fffd4; font-size: clamp(13px, 5cqw, 20px); line-height: 1; font-style: italic; letter-spacing: -.6px; }
.card-handle-editor { width: 62%; min-width: 0; }
.setup-card label, .card-field-label { display: block; font-size: 10px; font-weight: 600; line-height: 1.2; margin-bottom: 4px; }
.setup-card .card-field-label { color: #5b6a61; }
.setup-card .username-field { background: #f7f7f5; border-color: #ddd; border-radius: 14px 14px 14px 4px; }
.setup-card .username-field input { padding: 6px 8px 6px 3px; font-size: 16px; }
.setup-card .username-field span { padding-left: 9px; }
.card-handle-editor small { display: block; margin-top: 3px; color: #d6dfd9; font-size: 9px; }
.setup-card #theBody { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 14px; padding: 12px 14px; }
.setup-card #theLeft, .setup-card #theRight { min-width: 0; }
.setup-card h2 { margin: 0; color: #323232; font-size: clamp(16px, 6cqw, 27px); font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.setup-card #setup-website { width: 100%; min-width: 0; border: 1px solid #bdc9c2; border-radius: 14px 14px 4px 14px; padding: 7px 10px; font-size: 16px; color: #323232; background: #e9eeeb; }
.setup-card-link { margin: 8px 0 0; font-size: clamp(10px, 3.2cqw, 13px); line-height: 1.3; overflow-wrap: anywhere; }
@media (min-width: 700px) and (orientation: landscape), (max-height: 450px) and (min-width: 480px) {
  .setup-screen { justify-content: center; }
  .setup-form { flex: 0 1 auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 24px; }
}
@media (max-height: 650px) {
  .setup-active .onboarding-header { padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: 4px; }
  .setup-screen { gap: 8px; padding-top: 4px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .setup-form { gap: 10px; }
  .setup-fields { gap: 7px; }
  .setup-card header { padding: 8px 12px; }
  .setup-card #theBody { padding: 10px 12px; gap: 10px; }
}
@media (max-height: 550px) {
  .setup-card .card-handle-editor small, .setup-field small { display: none; }
  .setup-form textarea { height: 50px; }
  .setup-live-note { display: none; }
  .setup-fields { gap: 6px; }
}
.swal2-popup { color: #14201c; }
.swal-max.alt { background: #fff; }
@media (max-width: 360px) {
  .setup-card .card-handle-editor small { display: none; }
}
@media (max-width: 420px) {
  .onboarding-header { padding: max(16px, env(safe-area-inset-top)) 22px 16px; }
  .onboarding-screen { padding-left: 22px; padding-right: 22px; }
  .onboarding h1 { font-size: 33px; letter-spacing: -1px; }
  .onboarding-home h1 { font-size: clamp(27px, 7.6vw, 32px); }
  .home-copy p { font-size: 17px; }
  .username-field span { font-size: 12px; }
}
@media (min-width: 900px) {
  .onboarding-header { padding-top: max(28px, env(safe-area-inset-top)); }
  .onboarding-home { padding-top: 38px; }
}
@media (max-height: 600px) {
  .landing-locked .onboarding-header { padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: 8px; }
  .onboarding-home { padding-top: 8px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .onboarding-home h1 { font-size: 30px; margin-bottom: 14px; }
  .home-copy p { font-size: 16px; line-height: 1.45; }
  .home-action .onboarding-eyebrow { margin-bottom: 8px; }
}
@media (max-height: 450px) and (min-width: 480px) {
  .onboarding-home { flex-direction: row; justify-content: space-between; align-items: center; max-width: 1100px; gap: 24px; text-align: left; }
  .home-copy { width: 56%; }
  .phone-glow { left: 32%; top: 20%; width: 50vw; height: 48%; opacity: .65; }
  .onboarding-home h1 { font-size: 28px; }
  .home-copy .home-subheading { margin-inline: 0; }
  .home-copy p { margin: 0; font-size: 15px; }
  .home-action { width: 40%; margin-top: 0; padding-top: 0; text-align: center; }
  .home-action .enable-link { font-size: clamp(22px, 4vw, 32px); gap: 8px; }
  .home-action .price-note { font-size: 11px; }
}
@media (prefers-reduced-motion: no-preference) {
  .action-arrow { transition: transform .18s ease; }
  .enable-link:hover .action-arrow { transform: translateX(4px); }
}

@media (max-height: 550px) {
  .activation-screen { gap: 8px; padding-top: 12px; padding-bottom: 12px; }
  .activation-check { width: 40px; height: 40px; font-size: 24px; }
  .onboarding .activation-screen h1 { font-size: 26px; }
  .activation-screen .setup-submit { margin-top: 4px; }
}

.owner-nav { flex: none; width: calc(100% - 32px); max-width: 920px; margin: 0 auto; padding: 6px 4px max(8px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; border-top: 1px solid #7fffd433; }
.owner-nav a { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 6px 3px; border-radius: 9px; color: #c7d7d1; text-decoration: none; font-size: 12px; line-height: 1.2; text-align: center; white-space: nowrap; }
.owner-nav-icon { flex: 0 0 18px; width: 18px; height: 18px; }
.owner-nav a > span { min-width: 0; }
.owner-nav-label-compact { display: none; }
@media (max-width: 599px) {
  .owner-nav-label-full { display: none; }
  .owner-nav-label-compact { display: inline; }
}
@media (max-width: 359px) {
  .owner-nav a { gap: 4px; font-size: 11px; }
  .owner-nav-icon { flex-basis: 16px; width: 16px; height: 16px; }
}
.owner-nav a[aria-current=page] { color: #10231c; background: #7fffd4; font-weight: 650; }
.owner-nav a[aria-disabled=true] { opacity: .5; cursor: wait; }
.owner-nav a:hover { box-shadow: inset 0 0 0 1px #7fffd4; }
.persona-screen { max-height: calc(var(--setup-viewport-height, 100dvh) - 114px); }
.persona-screen.persona-hero-screen { flex: 1; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
.persona-hero { display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.persona-hero-portrait { flex: none; height: clamp(120px, calc(var(--setup-viewport-height, 100dvh) * .36), 340px); width: 100%; max-width: 360px; border-radius: 18px; background: transparent; }
.persona-hero-portrait .persona-art-image { border-radius: 18px; }
.persona-hero-attributes { flex: none; text-align: center; }
.persona-hero-name { margin: 0; font-size: 26px; line-height: 1.2; color: var(--persona-accent); }
.persona-hero-tone { margin: 4px 0 0; font-size: 14px; line-height: 1.4; color: #b7c6cf; }
.persona-hero-response { flex: none; width: 100%; max-width: 640px; min-width: 0; }
.persona-hero-response h3 { margin: 0 0 8px; font-size: 14px; line-height: 1.4; }
.persona-hero-response .persona-summary { height: clamp(60px, calc(var(--setup-viewport-height, 100dvh) * .22), 190px); min-height: 0; }
.persona-hero > .persona-save-status { flex: none; }
@media (max-height: 650px) {
 .persona-hero { gap: 8px; }
 .persona-hero-name { font-size: 22px; }
}
.setup-form .setup-card-public { display: flex; align-items: center; gap: 8px; font-size: 12px; }
body.setup-active .setup-fields { max-height: 100%; overflow-y: auto; overscroll-behavior: contain; }
body.setup-active .setup-form { overflow: hidden; }
@media (max-height: 500px) {
 .owner-nav { padding-top: 2px; padding-bottom: max(4px, env(safe-area-inset-bottom)); }
 .owner-nav a { min-height: 40px; }
 .setup-screen { gap: 6px; }
 .setup-form { gap: 8px; }
}
@media (max-height: 500px) and (max-width: 599px) {
 .setup-vcard { width: min(100%, 260px); }
}
@media (max-height: 500px) and (min-width: 600px) {
 .persona-screen { max-height: none; }
}
@media (max-height: 500px) and (min-width: 600px) {
 .persona-heading p { display: none; }
 .onboarding .persona-heading h1 { font-size: 25px; }
 .persona-editor-meta { height: 26px; }
 .persona-editor .setup-submit { padding: 9px; }
}

.help-screen .help-owner-signin { display: block; }
/* Keep the private-contact note readable when the form is compressed. */
.setup-fields .checkout-contact { flex-shrink: 0; min-height: 16px; }
.owner-external-icon { margin-left: 4px; }
.setup-heading-copy { flex: 1; }
