@font-face {
    font-family: "Manrope";
    src: url("/static/public/fonts/entry-prototype/Manrope-Variable.woff2?v=20261028-fonts-v1") format("woff2"), url("/static/public/fonts/entry-prototype/Manrope-Variable.ttf") format("truetype");
    font-weight: 200 800;
    font-display: swap;
}
@font-face {
    font-family: "Literata";
    src: url("/static/public/fonts/entry-prototype/Literata-Variable.woff2?v=20261028-fonts-v1") format("woff2"), url("/static/public/fonts/entry-prototype/Literata-Variable.ttf") format("truetype");
    font-weight: 200 900;
    font-display: swap;
}
@font-face {
    font-family: "Bad Script";
    src: url("/static/public/fonts/entry-prototype/BadScript-Regular.woff2?v=20261028-fonts-v1") format("woff2"), url("/static/public/fonts/entry-prototype/BadScript-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
:root {
    --fxp-blue: #0a2fae;
    --fxp-milk: #fffaf4;
    --fxp-ui: "Manrope", Arial, sans-serif;
    --fxp-voice: "Literata", Georgia, serif;
    --fxp-hand: "Bad Script", "Comic Sans MS", cursive;
    background: var(--fxp-milk);
    color: var(--fxp-blue);
    font-family: var(--fxp-ui);
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    color-scheme: light;
}
.fxp-root, .fxp-root *, .fxp-root *::before, .fxp-root *::after { box-sizing: border-box; }
.fxp-body { margin: 0; min-height: 100svh; overflow-x: hidden; background: var(--fxp-milk); font-size: 1rem; line-height: 1.5; }
.fxp-app { --fxp-ink: var(--fxp-blue); --fxp-surface: var(--fxp-milk); --fxp-line: rgb(10 47 174 / 24%); display: flex; flex-direction: column; min-height: 100svh; min-width: 0; overflow-x: clip; background: var(--fxp-surface); color: var(--fxp-ink); }
[hidden] { display: none !important; }
.fxp-boot-screen-leaving { opacity: 0; transition: opacity 180ms ease-out; }
h1, h2, p, figure { margin: 0; }
h1, h2 { font-family: var(--fxp-voice); font-weight: 450; letter-spacing: -.025em; line-height: 1.25; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: .2em; }
button { color: inherit; font: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
img { display: block; max-width: 100%; height: auto; }
svg { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--fxp-blue); color: var(--fxp-milk); }
.fxp-cloud ::selection, .fxp-footer ::selection { background: var(--fxp-milk); color: var(--fxp-blue); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
h1:focus, main:focus { outline: none; }
.fxp-skip { position: fixed; z-index: 50; top: 10px; left: 12px; min-height: 44px; padding: 10px 16px; background: var(--fxp-blue); color: var(--fxp-milk); transform: translateY(-160%); }
.fxp-skip:focus { transform: none; }
.fxp-topbar { position: relative; z-index: 10; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; flex: 0 0 auto; width: calc(100% - 64px); max-width: 1328px; min-height: 64px; margin: 0 auto; }
.fxp-brand { grid-column: 2; grid-row: 1; display: grid; place-items: center; justify-self: center; min-height: 44px; padding: 6px 16px; font-size: 1.375rem; font-weight: 750; letter-spacing: -.04em; line-height: 1.1; text-decoration: none; }
[data-back] { grid-column: 1; grid-row: 1; }
[data-menu] { grid-column: 3; grid-row: 1; justify-self: end; }
.fxp-icon-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; transition: background-color 140ms ease-out, transform 140ms ease-out; }
.fxp-icon-button:hover { background: rgb(10 47 174 / 8%); }
.fxp-icon-button:active { transform: scale(.96); }
.fxp-menu { position: absolute; top: calc(100% + 4px); right: 0; display: grid; width: min(280px, calc(100vw - 24px)); max-height: calc(100svh - 90px); overflow-y: auto; padding: 8px; border-radius: 16px; background: var(--fxp-milk); color: var(--fxp-blue); box-shadow: 0 12px 40px rgb(0 0 0 / 15%); scrollbar-width: thin; scrollbar-color: var(--fxp-blue) var(--fxp-milk); }
.fxp-menu button { min-height: 46px; padding: 10px 14px; border: 0; border-radius: 9px; background: transparent; text-align: left; font-size: .875rem; }
.fxp-menu button:hover, .fxp-menu button[aria-current="page"] { background: rgb(10 47 174 / 8%); }
.fxp-main { display: grid; grid-template-rows: auto minmax(120px, 1fr) auto; gap: 8px; flex: 0 0 auto; min-height: calc(100svh - 64px); padding: 4px 24px 12px; overflow: visible; background: var(--fxp-milk); }
.fxp-views, .fxp-welcome, .fxp-dialogue { display: contents; }
.fxp-screen { min-width: 0; }
.fxp-cloud { grid-column: 1; grid-row: 1; position: relative; justify-self: center; width: min(100%, 570px); padding: 18px 42px 20px; border-radius: 55px 75px 49px 70px / 43px 39px 58px 42px; background: var(--fxp-blue); color: var(--fxp-milk); text-align: center; }
.fxp-cloud h1 { font-size: 1.875rem; }
.fxp-cloud .fxp-message-copy { max-width: 50ch; margin: 7px auto 0; font-size: .9375rem; line-height: 1.36; }
.fxp-cloud .fxp-message-copy p + p { margin-top: 6px; }
.fxp-cloud-tail { position: absolute; top: calc(100% - 2px); left: calc(50% - 8px); width: 39px; height: 24px; fill: var(--fxp-blue); stroke: none; overflow: visible; }
.fxp-companion { display: block; grid-column: 1; grid-row: 2; position: relative; min-width: 0; min-height: clamp(210px, 31svh, 260px); }
.fxp-mascot-button { position: absolute; top: 0; left: 50%; display: block; width: min(270px, 42vw); height: calc(100% - 8px); min-width: 0; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; text-decoration: none; transform: translateX(-50%); }
.fxp-mascot-button:focus-visible { outline: none; box-shadow: inset 0 0 0 1px rgb(10 47 174 / 72%); filter: none; }
.fxp-mascot { position: absolute; z-index: 1; inset: 8px 0 0; width: auto; height: calc(100% - 8px); max-width: 270px; max-height: 320px; margin: auto; object-fit: contain; transform-origin: center bottom; pointer-events: none; transition: opacity 140ms ease-out, transform 180ms cubic-bezier(.16,1,.3,1); }
.fxp-app[data-fleksi-state="transition"] .fxp-mascot-idle { transform: translateY(-4px); }
.fxp-app[data-fleksi-state="matching"] .fxp-mascot-idle { transform: translateY(-6px) rotate(.7deg); }
.fxp-app[data-fleksi-state="thinking"] .fxp-mascot-idle { transform: translateY(1px) rotate(-2deg); }
.fxp-app[data-fleksi-state="listening"] .fxp-mascot-idle { transform: translateY(-2px) rotate(.45deg); }
.fxp-app[data-fleksi-state="curious"] .fxp-mascot-idle { transform: translateY(-3px) rotate(2deg); }
.fxp-app[data-fleksi-intent="ready"] .fxp-mascot-idle { transform: translateY(-4px) rotate(.7deg); }
.fxp-app[data-fleksi-intent="pressed"] .fxp-mascot-idle { transform: translateY(2px) rotate(-.7deg); }
.fxp-app[data-fleksi-intent="selection"] .fxp-mascot-idle { transform: translateY(-5px) rotate(.55deg); }
.fxp-app[data-fleksi-intent="test"] .fxp-mascot-idle { transform: translateY(1px) rotate(-1.5deg); }
.fxp-app[data-fleksi-intent="about"] .fxp-mascot-idle { transform: translateY(-2px) rotate(.4deg); }
.fxp-app[data-fleksi-intent="articles"] .fxp-mascot-idle { transform: translateY(-3px) rotate(1.35deg); }
.fxp-app[data-view="welcome"][data-fleksi-state="telegram"]:not([data-returning]) .fxp-mascot-idle { transform-origin: center center; animation: fxp-telegram-ready 420ms cubic-bezier(.16,1,.3,1) both; }
.fxp-app[data-fleksi-intent="test"] .fxp-cloud { transform: rotate(-.5deg); }
.fxp-app[data-fleksi-intent="about"] .fxp-cloud { transform: scale(1.01); }
.fxp-app[data-fleksi-intent="articles"] .fxp-cloud { transform: translateY(-2px) rotate(.35deg); }
.fxp-character-note { position: absolute; top: 34%; left: calc(50% + clamp(115px, 10vw, 150px)); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: min(250px, calc(50% - 120px)); margin: 0; color: rgb(10 47 174 / 74%); font-family: var(--fxp-hand); font-size: .9rem; line-height: 1.2; text-align: left; transform: rotate(1.5deg); }
.fxp-character-note-arrow { width: 42px; height: 22px; flex: 0 0 auto; margin-left: 0; stroke-width: 1.35; }
.fxp-app:not([data-view="welcome"]) .fxp-character-note { display: none; }
.fxp-answer-area { display: grid; grid-template-columns: 120px minmax(0, 620px); grid-template-rows: auto auto; column-gap: 20px; row-gap: 6px; grid-column: 1; grid-row: 3; width: min(100%, 900px); margin-inline: auto; }
.fxp-question { grid-column: 2; grid-row: 1; margin-bottom: 13px; font-family: var(--fxp-voice); font-size: 1.25rem; text-align: center; }
.fxp-cta-layout { display: contents; }
.fxp-replies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.fxp-answer-area > .fxp-cta-layout > .fxp-replies { grid-column: 2; grid-row: 2; }
.fxp-reply { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; min-height: 48px; padding: 11px 16px; border: 1px solid var(--fxp-line); border-radius: 15px 15px 5px 15px; background: transparent; color: var(--fxp-blue); font-size: .875rem; font-weight: 650; line-height: 1.35; text-align: left; text-decoration: none; transition: background-color 140ms ease-out, border-color 140ms ease-out, color 140ms ease-out, transform 140ms ease-out; }
.fxp-reply span { min-width: 0; }
.fxp-reply svg { width: 18px; height: 18px; }
.fxp-reply:hover { background: rgb(10 47 174 / 7%); border-color: var(--fxp-blue); }
.fxp-reply:active { transform: scale(.96); }
.fxp-reply-primary, .fxp-reply-blue { border-color: var(--fxp-blue); background: var(--fxp-blue); color: var(--fxp-milk); }
.fxp-reply-primary:hover, .fxp-reply-blue:hover { background: rgb(10 47 174 / 88%); }
.fxp-reply-primary:hover, .fxp-reply-primary:focus-visible { box-shadow: 0 9px 24px rgb(10 47 174 / 19%); }
.fxp-reply-primary:focus-visible, .fxp-reply-blue:focus-visible { outline-color: var(--fxp-blue); }
.fxp-action-note { position: relative; display: flex; flex-direction: column; grid-column: 1; grid-row: 1; align-self: start; gap: 4px; width: 280px; margin: 0 0 0 6px; color: rgb(10 47 174 / 78%); font-family: var(--fxp-hand); font-size: 1rem; line-height: 1.12; text-align: left; transform: rotate(-1.8deg); }
.fxp-action-note > span { display: block; width: 280px; min-width: 0; }
.fxp-action-note svg { position: static; width: 52px; height: 56px; margin-left: 62px; stroke-width: 1.35; }
.fxp-footer { position: relative; z-index: 2; flex: 0 0 auto; padding: 16px 32px max(18px, env(safe-area-inset-bottom)); border-top: 1px solid rgb(10 47 174 / 24%); background: var(--fxp-milk); color: var(--fxp-blue); }
.fxp-footer-inner { display: grid; grid-template-columns: minmax(215px, .75fr) minmax(0, 2fr); align-items: center; gap: 20px; max-width: 1100px; margin-inline: auto; }
.fxp-footer-signoff { display: flex; align-items: center; gap: 14px; min-width: 0; }
.fxp-footer-signoff-copy { display: grid; gap: 2px; min-width: 0; }
.fxp-footer-signoff-copy > p { font-family: var(--fxp-ui); font-size: .75rem; font-weight: 700; line-height: 1.35; white-space: nowrap; }
.fxp-accelerator-badge { display: block; flex: 0 0 104px; width: 104px; max-width: 100%; height: auto; margin: 0; }
.fxp-footer-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.fxp-documents { position: relative; }
.fxp-documents summary, .fxp-footer-telegram { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 13px; border: 1px solid var(--fxp-line); border-radius: 999px; background: transparent; color: inherit; font-size: .75rem; font-weight: 700; line-height: 1.2; cursor: pointer; list-style: none; }
.fxp-documents summary::-webkit-details-marker { display: none; }
.fxp-documents summary::after { content: "＋"; font-size: .95rem; font-weight: 400; }
.fxp-documents[open] summary::after { content: "−"; }
.fxp-documents-list { position: absolute; right: 0; bottom: calc(100% + 8px); display: grid; width: min(330px, calc(100vw - 32px)); padding: 8px; border: 1px solid var(--fxp-line); border-radius: 14px; background: var(--fxp-milk); box-shadow: 0 10px 26px rgb(10 47 174 / 12%); }
.fxp-footer a { display: flex; align-items: center; gap: 8px; min-height: 44px; min-width: 0; padding: 7px 9px; font-size: .75rem; line-height: 1.35; text-decoration: none; }
.fxp-documents-list a:hover, .fxp-documents-list a:focus-visible { background: rgb(10 47 174 / 7%); border-radius: 8px; }
.fxp-footer a:hover { text-decoration: underline; }
.fxp-footer svg { width: 16px; height: 16px; }
@media (min-width: 761px) {
    .fxp-main { grid-template-rows: auto auto auto; align-content: start; }
    .fxp-companion { min-height: 330px; }
    .fxp-question { grid-column: 1 / -1; grid-row: 1; align-self: start; margin-bottom: 0; }
    .fxp-action-note { grid-column: 1; grid-row: 2; align-self: start; display: block; height: auto; transform: translateY(calc(-100% - 56px)) rotate(-1.8deg); }
    .fxp-action-note > span { display: block; }
    .fxp-action-note svg { position: absolute; top: calc(100% + 12px); left: 100px; margin: 0; }
}
@media (min-width: 761px) and (max-width: 900px) {
    .fxp-companion { min-height: 270px; }
    .fxp-answer-area { grid-template-columns: minmax(230px, 260px) minmax(0, 1fr); column-gap: 20px; width: min(100%, 720px); }
    .fxp-action-note { width: 260px; margin-left: 0; }
    .fxp-action-note > span { width: 260px; }
    .fxp-action-note svg { left: 240px; margin-left: 0; }
}
.fxp-app:not([data-view="welcome"]) { position: relative; }
.fxp-app:not([data-view="welcome"]) .fxp-main { grid-template-rows: 54px minmax(min-content, 1fr); gap: 8px; min-height: calc(100svh - 64px); padding-top: 0; }
.fxp-app:not([data-view="welcome"]) .fxp-companion { position: absolute; top: 0; left: 0; right: 0; z-index: 11; display: block; grid-row: auto; height: 64px; min-height: 64px; pointer-events: none; }
.fxp-app:not([data-view="welcome"]) .fxp-mascot-button { position: absolute; top: 0; left: 50%; right: auto; width: 44px; height: 54px; transform: translateX(-50%); clip-path: none; mask-image: none; }
.fxp-app:not([data-view="welcome"]) .fxp-mascot { inset: 0; width: 34px; height: 44px; max-height: none; }
.fxp-app:not([data-view="welcome"]) .fxp-character-note { display: none; }
.fxp-app:not([data-view="welcome"]) .fxp-mascot-button { pointer-events: auto; }
.fxp-app:not([data-view="welcome"]) .fxp-screen { grid-row: 2; }
.fxp-sender { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: .75rem; font-weight: 750; line-height: 1.3; }
.fxp-sender span { font-size: .6875rem; font-weight: 500; }
.fxp-message-inner h1 { font-size: clamp(1.375rem, 2.4vw, 2rem); line-height: 1.4; }
.fxp-message-copy { margin-top: 12px; font-size: .9375rem; line-height: 1.55; }
.fxp-message-copy p + p { margin-top: 12px; }
.fxp-info { display: flex; align-items: center; justify-content: center; align-self: stretch; min-height: 0; padding-block: 18px; }
.fxp-info-dialogue { width: min(100%, 600px); }
.fxp-info-dialogue > .fxp-reply { margin-top: 24px; }
.fxp-detail-note { max-width: 55ch; margin: 10px 0 0; font-size: .75rem; }
.fxp-detail-note a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
.fxp-about-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 90px); width: min(100%, 990px); }
.fxp-ira picture { display: block; }
.fxp-ira img { width: 100%; aspect-ratio: 1.45; object-fit: cover; }
.fxp-ira figcaption { display: grid; gap: 8px; min-width: 0; margin-top: 16px; }
.fxp-ira strong { min-width: 0; font-size: .875rem; font-weight: 750; overflow-wrap: anywhere; }
.fxp-ira figcaption span { min-width: 0; font-size: .8125rem; line-height: 1.6; overflow-wrap: anywhere; }
.fxp-no-js { position: fixed; inset: auto 0 0; z-index: 30; padding: 16px; background: var(--fxp-milk); color: var(--fxp-blue); text-align: center; }

@media (prefers-reduced-motion: no-preference) {
    .fxp-app[data-ready="true"][data-mascot-ready="true"][data-view="welcome"]:not([data-returning]) .fxp-mascot-idle { animation: fxp-arrive 520ms cubic-bezier(.16,1,.3,1) both; }
    .fxp-app[data-ready="true"][data-view="welcome"]:not([data-returning]) .fxp-cloud { animation: fxp-cloud-in 520ms 80ms cubic-bezier(.16,1,.3,1) both; }
    .fxp-app[data-ready="true"][data-view="welcome"]:not([data-returning]) .fxp-answer-area { animation: fxp-answer-in 360ms 160ms cubic-bezier(.16,1,.3,1) both; }
    .fxp-app:not([data-view="welcome"]) .fxp-screen { animation: fxp-answer-in 240ms cubic-bezier(.16,1,.3,1); }
    .fxp-app[data-fleksi-state="matching"] .fxp-cloud { animation: fxp-match-pulse 240ms ease-out; }
    .fxp-app[data-fleksi-state="thinking"] .fxp-cloud { animation: fxp-think 250ms ease-in-out; }
    .fxp-app[data-fleksi-state="listening"] .fxp-cloud { animation: fxp-listen 230ms ease-out; }
    .fxp-app[data-fleksi-state="curious"] .fxp-cloud { animation: fxp-curious 260ms ease-out; }
    @keyframes fxp-arrive { 0% { opacity: .6; transform: translateY(5px); } 100% { opacity: 1; transform: none; } }
    @keyframes fxp-match-pulse { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-4px); } }
    @keyframes fxp-think { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-1deg) scale(.99); } }
    @keyframes fxp-listen { 0% { border-radius: 55px 75px 49px 70px / 43px 39px 58px 42px; } 50% { border-radius: 48px 62px 56px 76px / 48px 45px 50px 38px; } 100% { border-radius: 55px 75px 49px 70px / 43px 39px 58px 42px; } }
    @keyframes fxp-curious { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px) rotate(.35deg); } }
    @keyframes fxp-telegram-ready { 0%, 100% { transform: translateY(0) rotate(0); } 34% { transform: translateY(-4px) rotate(-2deg); } 67% { transform: translateY(-2px) rotate(2deg); } }
    @keyframes fxp-cloud-in { from { opacity: .1; transform: translateY(6px); border-radius: 65px 50px 55px 60px / 40px 54px 40px 45px; } to { opacity: 1; transform: none; } }
    @keyframes fxp-answer-in { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 760px) {
    .fxp-topbar { width: calc(100% - 32px); min-height: 54px; }
    .fxp-main { grid-template-rows: auto minmax(115px, 1fr) auto; gap: 6px; min-height: calc(100svh - 54px); padding: 3px 20px 10px; }
    .fxp-cloud { padding: 15px 26px 17px; border-radius: 35px 46px 35px 42px / 28px 30px 37px 30px; }
    .fxp-cloud h1 { font-size: 1.5rem; }
    .fxp-cloud .fxp-message-copy { font-size: .875rem; line-height: 1.36; }
    .fxp-companion { min-height: clamp(205px, 29svh, 235px); }
    .fxp-mascot-button { width: min(190px, 60vw); height: calc(100% - 8px); }
    .fxp-mascot { max-width: 190px; max-height: 240px; }
    .fxp-character-note { top: 4%; left: calc(50% + 70px); display: block; width: 120px; min-width: 0; max-width: none; font-size: .78rem; }
    .fxp-character-note span { white-space: nowrap; }
    .fxp-character-note-arrow { position: relative; left: -24px; width: 32px; height: 18px; margin-left: 0; transform: none; }
    .fxp-question { font-size: 1.125rem; margin-bottom: 10px; }
    .fxp-reply { min-height: 48px; padding: 10px 12px; font-size: .8125rem; gap: 6px; }
    .fxp-answer-area { display: flex; flex-direction: column; width: min(100%, 620px); }
    .fxp-question { order: 1; }
    .fxp-cta-layout { display: flex; flex-direction: column; order: 2; gap: 4px; }
    .fxp-action-note { order: 1; width: min(100%, 320px); margin: 0; gap: 4px; font-size: .85rem; transform: translateY(-2px) rotate(-1.8deg); }
    .fxp-action-note > span { width: 100%; }
    .fxp-action-note svg { width: 42px; height: 40px; margin-left: 42px; }
    .fxp-answer-area > .fxp-cta-layout > .fxp-replies { order: 2; width: 100%; }
    .fxp-footer { padding: 14px 20px max(16px, env(safe-area-inset-bottom)); }
    .fxp-footer-inner { grid-template-columns: 1fr; gap: 4px; }
    .fxp-footer-signoff { gap: 10px; }
    .fxp-footer-signoff-copy > p { font-size: .75rem; white-space: normal; }
    .fxp-footer-actions { justify-content: flex-start; flex-wrap: wrap; }
    .fxp-documents-list { left: 0; right: auto; }
    .fxp-app:not([data-view="welcome"]) .fxp-main { grid-template-rows: 45px minmax(min-content, 1fr); gap: 7px; min-height: calc(100svh - 54px); padding: 0 20px 4px; }
    .fxp-app:not([data-view="welcome"]) .fxp-companion { height: 54px; min-height: 54px; }
    .fxp-app:not([data-view="welcome"]) .fxp-mascot { height: 40px; width: 30px; }
    .fxp-info { padding-block: 16px; }
    .fxp-message-inner h1 { font-size: 1.375rem; }
    .fxp-message-copy { font-size: .875rem; }
    .fxp-about-layout { grid-template-columns: 1fr; gap: 24px; }
    .fxp-ira { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 16px; }
    .fxp-ira figcaption { margin-top: 0; }
    .fxp-ira img { aspect-ratio: 1; }
}
@media (max-width: 480px) {
    .fxp-footer-actions { gap: 8px; }
    .fxp-documents summary, .fxp-footer-telegram { font-size: .6875rem; }
}
@media (max-width: 350px) {
    .fxp-topbar { width: calc(100% - 24px); }
    .fxp-main { padding-inline: 12px; }
    .fxp-cloud { padding: 17px 22px 21px; }
    .fxp-cloud h1 { font-size: 1.375rem; }
    .fxp-cloud .fxp-message-copy { font-size: .8125rem; }
    .fxp-mascot-button { width: min(160px, 55vw); }
    .fxp-mascot { max-width: 160px; max-height: 205px; }
    .fxp-character-note { top: 4%; left: calc(50% + 55px); width: 95px; font-size: .72rem; }
    .fxp-character-note-arrow { left: -20px; margin-left: 0; transform: none; }
    .fxp-reply { padding-inline: 10px; font-size: .75rem; }
    .fxp-footer { padding-inline: 14px; }
    .fxp-footer-signoff { gap: 8px; }
    .fxp-accelerator-badge { flex-basis: 96px; width: 96px; }
    .fxp-app:not([data-view="welcome"]) .fxp-main { padding-inline: 16px; }
    .fxp-message-inner h1 { font-size: 1.25rem; }
}

@media (max-height: 700px) {
    .fxp-topbar { min-height: 50px; }
    .fxp-main { grid-template-rows: auto minmax(90px, 1fr) auto; min-height: calc(100svh - 50px); padding-block: 6px 12px; }
    .fxp-companion { min-height: 150px; }
    .fxp-mascot { max-height: 220px; }
}
@media (max-width: 760px) and (max-height: 820px) {
    .fxp-main { gap: 4px; }
    .fxp-companion { min-height: 210px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .fxp-app[data-fleksi-intent] .fxp-mascot { transform: none !important; }
    .fxp-app[data-fleksi-intent] .fxp-cloud { transform: none !important; }
    .fxp-app[data-fleksi-state] .fxp-mascot { transform: none !important; }
}


/* Selection: a shared portrait/copy/action rhythm; height affects art size only.
   The rem floor keeps enlarged text and short windows naturally scrollable. */
.fxp-app[data-view="selection"] .fxp-main { display: block; min-height: calc(100svh - 64px); padding: 12px 24px 24px; }
.fxp-selection { display: flex; flex-direction: column; gap: 20px; width: min(100%, 1100px); margin-inline: auto; }
.fxp-selection-intro { display: grid; grid-template-columns: 1.1fr 1fr; align-items: end; gap: 48px; text-align: left; }
.fxp-selection-intro h1 { overflow-wrap: anywhere; max-width: 18ch; font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1.1; }
.fxp-selection-story { max-width: 45ch; font-size: .9375rem; line-height: 1.5; }
.fxp-personas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: clamp(18px, 3vw, 42px); min-width: 0; }
.fxp-persona { display: flex; flex-direction: column; min-width: 0; padding: 0; }
.fxp-persona > picture { display: block; align-self: center; width: min(100%, clamp(15rem, calc(80svh - 24rem), 22rem)); aspect-ratio: 4 / 5; background: transparent; }
.fxp-persona > picture > img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; background: transparent; }
.fxp-image-fallback { margin: 10px 0 0; padding: 14px; border: 1px dashed var(--fxp-line); border-radius: 12px; font-size: .8125rem; line-height: 1.4; }
.fxp-persona-copy { flex: 1; margin: 14px 0; padding-top: 12px; border-top: 1px solid var(--fxp-line); }
.fxp-persona h2 { font-size: 1.65rem; line-height: 1.3; }
.fxp-persona p { max-width: 34ch; margin-top: 7px; font-size: .875rem; line-height: 1.5; }
.fxp-persona .fxp-persona-note { margin-top: 8px; color: rgb(10 47 174 / 72%); font-size: .75rem; line-height: 1.4; }
.fxp-persona .fxp-reply { align-self: flex-start; width: auto; min-height: 48px; border-radius: 999px 999px 7px 999px; font-size: .8125rem; }
.fxp-persona-tabs, .fxp-swipe-hint { display: none; }
.fxp-app[data-view="selection"] .fxp-footer-inner { grid-template-columns: repeat(auto-fit, minmax(min(100%, 32rem), 1fr)); }
.fxp-app[data-view="selection"] .fxp-footer-signoff-copy > p { white-space: normal; overflow-wrap: anywhere; }
@media (min-width: 761px) and (max-width: 900px) {
    .fxp-selection-intro { grid-template-columns: 1fr; gap: 10px; }
    .fxp-selection-story { max-width: 60ch; }
}
@media (max-width: 760px) {
    .fxp-app[data-view="selection"] .fxp-main { min-height: calc(100svh - 54px); padding: 6px 20px 24px; }
    .fxp-selection { gap: 10px; width: 100%; }
    .fxp-selection-intro { display: block; }
    .fxp-selection-intro h1 { overflow-wrap: anywhere; max-width: 18ch; font-size: 1.65rem; line-height: 1.12; }
    .fxp-selection-story { max-width: 45ch; margin-top: 8px; font-size: .875rem; line-height: 1.45; }
    .fxp-persona-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 1px solid var(--fxp-line); border-radius: 12px; }
    .fxp-persona-tabs button { overflow-wrap: anywhere; min-width: 0; min-height: 44px; padding: 7px; border: 0; border-radius: 8px; background: transparent; font-size: .8125rem; font-weight: 650; }
    .fxp-persona-tabs button[aria-pressed="true"] { background: var(--fxp-blue); color: var(--fxp-milk); }
    .fxp-persona-tabs button:hover:not([aria-pressed="true"]) { background: rgb(10 47 174 / 7%); }
    .fxp-personas { display: flex; align-items: stretch; gap: 16px; width: 100%; min-width: 0; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; scrollbar-width: none; padding-bottom: 8px; }
    .fxp-personas::-webkit-scrollbar { display: none; }
    .fxp-persona { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
    .fxp-persona > picture { width: min(100%, clamp(13rem, calc(78svh - 25rem), 22rem)); }
    .fxp-persona-copy { margin: 10px 0 12px; padding-top: 10px; }
    .fxp-persona h2 { font-size: 1.5rem; }
    .fxp-persona p { max-width: 42ch; }
    .fxp-persona .fxp-reply:focus-visible { outline-color: var(--fxp-milk); outline-offset: -6px; }
}
@media (max-width: 350px) {
    .fxp-app[data-view="selection"] .fxp-main { padding-inline: 16px; }
}
