:root {
    color-scheme: dark;
    --bg: #050307;
    --panel: #0d0811;
    --panel-2: #130a17;
    --line: rgba(255, 126, 219, .22);
    --line-soft: rgba(255, 255, 255, .075);
    --pink: #ff7edb;
    --pink-strong: #ff49b7;
    --violet: #b979ff;
    --text: #fff8fd;
    --muted: #aa8fa5;
    --success: #4ff0a5;
    --danger: #ff708c;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --shadow: 0 28px 90px rgba(0, 0, 0, .62);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 8%, rgba(255, 73, 183, .12), transparent 24rem),
        radial-gradient(circle at 82% 92%, rgba(185, 121, 255, .08), transparent 27rem),
        #050307;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.site-header {
    width: min(1180px, calc(100% - 36px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 850;
    text-decoration: none;
    letter-spacing: -.02em;
}

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    box-shadow: 0 0 24px rgba(255, 73, 183, .34);
}

.brand em {
    color: var(--pink);
    font-style: normal;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.age-pill,
.language-button {
    min-width: 42px;
    min-height: 34px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    color: #d9c7d5;
    background: rgba(13, 8, 17, .72);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.language-button {
    cursor: pointer;
}

.page-shell {
    width: 100%;
    min-height: calc(100svh - 68px);
    padding: 10px 18px 28px;
    display: grid;
    place-items: center;
}

.chat-device {
    width: min(1120px, 100%);
    height: min(760px, calc(100svh - 104px));
    min-height: 580px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 80, 185, .44);
    border-radius: 24px;
    background:
        linear-gradient(160deg, rgba(255, 126, 219, .04), transparent 24%),
        rgba(5, 3, 7, .96);
    box-shadow: var(--shadow), 0 0 50px rgba(255, 73, 183, .08);
}

.chat-device:has(.entry-view:not([hidden])) {
    width: min(540px, 100%);
    height: min(650px, calc(100svh - 104px));
}

.device-glow {
    width: 420px;
    height: 240px;
    position: absolute;
    right: -150px;
    top: -150px;
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 73, 183, .14), transparent 68%);
}

.entry-view,
.chat-view {
    position: relative;
    z-index: 1;
}

.entry-view {
    width: min(500px, calc(100% - 36px));
    height: 100%;
    margin: auto;
    padding: clamp(34px, 7vh, 66px) 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.entry-mark {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e8a7d8;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 12px var(--success);
}

.entry-view h1 {
    margin: 14px 0 7px;
    font-size: clamp(35px, 5vw, 54px);
    line-height: .98;
    letter-spacing: -.055em;
}

.entry-copy {
    margin: 0 0 26px;
    color: #c7adc1;
    font-size: 15px;
}

#entry-form {
    display: grid;
    gap: 17px;
}

.entry-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 10px;
}

.field {
    min-width: 0;
    position: relative;
    display: grid;
    gap: 7px;
}

.field > span {
    color: #d8bed1;
    font-size: 11px;
    font-weight: 800;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    outline: none;
    color: #fff;
    background: rgba(2, 2, 4, .74);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.field input,
.field select {
    padding: 0 14px;
}

.field textarea {
    padding: 13px 14px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: rgba(255, 126, 219, .68);
    background: rgba(8, 4, 10, .94);
    box-shadow: 0 0 0 3px rgba(255, 73, 183, .08);
}

.field small {
    position: absolute;
    right: 11px;
    bottom: 8px;
    color: #715e6e;
    font-size: 9px;
}

.consent-row {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    color: #a996a5;
    font-size: 11px;
    line-height: 1.45;
}

.consent-row input {
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    accent-color: var(--pink-strong);
}

.consent-row a {
    color: #ffacd9;
}

.bot-field {
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
    opacity: 0;
}

.form-error {
    min-height: 15px;
    margin: -8px 0 -5px;
    color: var(--danger);
    font-size: 11px;
}

.primary-button,
.secondary-button,
.danger-button,
.text-button {
    border: 0;
    cursor: pointer;
    transition:
        transform 90ms ease-out,
        filter 90ms ease-out,
        border-color 120ms ease-out,
        background-color 120ms ease-out,
        opacity 120ms ease-out;
}

.primary-button {
    min-height: 48px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(255, 218, 241, .76);
    border-radius: 14px;
    color: #170711;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .21), rgba(255, 255, 255, 0) 42%),
        linear-gradient(135deg, #ff9fdf, #ff54b8 55%, #bd79ff);
    box-shadow: 0 14px 32px rgba(255, 73, 183, .2), inset 0 1px rgba(255, 255, 255, .32);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .02em;
}

.entry-submit {
    width: 100%;
}

.primary-button:active,
.secondary-button:active,
.danger-button:active,
.text-button:active,
.icon-button:active,
.report-button:active,
.composer button:active {
    transform: translateY(1px) scale(.975);
    filter: brightness(1.12);
}

.primary-button:disabled,
.danger-button:disabled {
    cursor: wait;
    opacity: .62;
}

.entry-version-note {
    margin-top: 18px;
    margin-bottom: 0;
    color: #766572;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.45;
    text-align: center;
}

.chat-view {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
}

.app-sidebar {
    min-width: 0;
    min-height: 0;
    position: relative;
    z-index: 3;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, .075);
    background: rgba(11, 7, 14, .94);
}

.partner-sidebar-art {
    position: absolute;
    inset: 72px 0 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: #140c19;
}

.partner-sidebar-art::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(4, 2, 6, .08), rgba(4, 2, 6, .44) 56%, rgba(8, 5, 10, .76)),
        radial-gradient(circle at 50% 20%, transparent, rgba(0, 0, 0, .26));
}

.identity-bar {
    min-height: 72px;
    padding: 13px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto auto;
    gap: 9px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .065);
    background: rgba(7, 5, 9, .76);
}

.identity-bar,
.partner-profile,
.sidebar-actions {
    position: relative;
    z-index: 3;
}

.own-avatar {
    width: 42px;
    height: 42px;
    position: relative;
}

.own-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid rgba(255, 126, 219, .5);
    border-radius: 13px;
    background: #050307;
}

.online-ring {
    width: 9px;
    height: 9px;
    position: absolute;
    right: -2px;
    bottom: -1px;
    border: 2px solid #0d0811;
    border-radius: 50%;
    background: var(--success);
}

.own-copy,
.partner-copy {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.own-copy small,
.partner-copy > small {
    overflow: hidden;
    color: #8f7489;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .1em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.own-copy strong,
.partner-copy > strong {
    overflow: hidden;
    font-size: 13px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.web-badge,
.app-badge {
    width: max-content;
    padding: 4px 7px;
    border: 1px solid rgba(255, 126, 219, .28);
    border-radius: 999px;
    color: #ff9fdb;
    background: rgba(255, 73, 183, .08);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.web-badge span {
    font-size: 7px;
}

.icon-button {
    width: 33px;
    height: 33px;
    border: 1px solid rgba(255, 255, 255, .085);
    border-radius: 11px;
    color: #aa91a5;
    background: rgba(255, 255, 255, .035);
    cursor: pointer;
    font-size: 19px;
}

.partner-profile {
    min-height: 255px;
    padding: 20px 17px 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.partner-skin-background,
.partner-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.partner-skin-background {
    z-index: 0;
    background-color: #140c19;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: .9;
}

.partner-shade {
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(4, 2, 6, .06), rgba(4, 2, 6, .24) 58%, rgba(8, 5, 10, .44)),
        radial-gradient(circle at 50% 24%, transparent, rgba(0, 0, 0, .2));
}

.partner-avatar-shell {
    width: 88px;
    height: 88px;
    padding: 3px;
    position: relative;
    display: grid;
    place-items: center;
    border: 2px solid var(--pink);
    border-radius: 50%;
    background: rgba(8, 5, 10, .88);
    box-shadow: 0 0 22px rgba(255, 73, 183, .2);
}

.partner-avatar-shell img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border: 2px solid rgba(8, 5, 10, .92);
    border-radius: inherit;
    background: #0a0710;
}

.partner-copy {
    width: 100%;
    justify-items: center;
    gap: 4px;
    text-align: center;
}

.partner-copy > strong {
    max-width: 100%;
    font-size: 18px;
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}

.partner-title {
    max-width: 100%;
    padding: 3px 7px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: rgba(3, 2, 5, .65);
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.partner-title-icon {
    font-size: 10px;
}

.partner-bio-surface {
    width: 100%;
    min-height: 36px;
    padding: 9px 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 11px;
    color: rgba(255, 255, 255, .9);
    background: rgba(9, 6, 11, .72);
    background-position: center;
    background-size: cover;
    box-shadow: 0 9px 18px rgba(0, 0, 0, .2);
    font-size: 10px;
    line-height: 1.35;
    text-shadow: 0 1px 4px #000, 0 0 8px #000;
}

.partner-bio-surface span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.report-button {
    min-height: 28px;
    padding: 0 9px;
    position: absolute;
    top: 11px;
    right: 11px;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 9px;
    color: #d8bdcf;
    background: rgba(6, 4, 8, .64);
    font-size: 9px;
    font-weight: 800;
    backdrop-filter: blur(5px);
}

.sidebar-actions {
    margin-top: auto;
    padding: 13px;
    display: grid;
}

.chat-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.secondary-button,
.primary-button.compact {
    min-width: 0;
    min-height: 42px;
    padding-inline: 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 850;
}

.secondary-button {
    border: 1px solid rgba(255, 255, 255, .1);
    color: #d3becd;
    background: rgba(255, 255, 255, .045);
}

.chat-main {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto 58px;
    background: #000;
}

.chat-stage {
    min-height: 0;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 73, 183, .055), transparent 23rem),
        #000;
}

.stage-state,
.conversation-state {
    height: 100%;
    position: relative;
    z-index: 1;
}

.stage-state {
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.stage-state h2 {
    margin: 18px 0 7px;
    font-size: clamp(25px, 4vw, 38px);
    letter-spacing: .12em;
}

.stage-state p {
    max-width: 340px;
    margin: 0;
    color: #a57b98;
    font-size: 13px;
    letter-spacing: .06em;
    line-height: 1.55;
}

.gofish-mark {
    width: 104px;
    height: 76px;
    position: relative;
    display: grid;
    place-items: center;
}

.gofish-mark svg {
    overflow: visible;
    filter: drop-shadow(0 0 13px rgba(255, 73, 183, .58));
}

.gofish-mark ellipse,
.gofish-mark path {
    fill: var(--pink-strong);
}

.gofish-mark circle {
    fill: #180610;
}

.stage-start-button {
    width: min(244px, 100%);
    min-height: 44px;
    margin-top: 22px;
    display: inline-flex;
    border-radius: 12px;
    font-size: 11px;
}

.search-state {
    isolation: isolate;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 45%, rgba(65, 22, 77, .34), transparent 58%);
}

.search-state::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 73, 183, .2) 50%, rgba(255, 126, 219, .07) 56%, transparent 64%);
    transform: translate3d(-100%, 0, 0);
    animation: search-scan-sweep 2.8s ease-in-out infinite;
    will-change: transform;
}

@keyframes search-scan-sweep {
    0% { transform: translate3d(-100%, 0, 0); }
    60%, 100% { transform: translate3d(100%, 0, 0); }
}

.app-search-visual {
    width: 92px;
    height: 92px;
    position: relative;
    display: grid;
    place-items: center;
    border: 2px solid var(--pink);
    border-radius: 50%;
    background: #050307;
    box-shadow: 0 0 18px rgba(255, 73, 183, .42);
}

.app-search-visual::before {
    content: "";
    position: absolute;
    inset: -9px;
    border: 2px solid transparent;
    border-top-color: rgba(255, 126, 219, .95);
    border-right-color: rgba(255, 126, 219, .18);
    border-radius: 50%;
    animation: search-avatar-scan 1.15s linear infinite;
    will-change: transform;
}

.search-question {
    color: #fff;
    font-size: 43px;
    font-weight: 850;
    line-height: 1;
    text-shadow: 0 0 8px var(--pink), 0 0 16px rgba(255, 61, 159, .72);
}

@keyframes search-avatar-scan {
    to { transform: rotate(360deg); }
}

.text-button {
    min-height: 35px;
    margin-top: 18px;
    padding: 0 13px;
    border: 1px solid rgba(255, 126, 219, .24);
    border-radius: 10px;
    color: #ff9bd4;
    background: rgba(255, 73, 183, .055);
    font-size: 10px;
    font-weight: 850;
}

.conversation-state {
    overflow: hidden;
}

.messages {
    height: 100%;
    padding: 19px 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(255, 73, 183, .35) transparent;
}

.message {
    max-width: min(72%, 560px);
    margin: 0 0 10px;
    display: grid;
    justify-items: start;
    gap: 3px;
    animation: message-in .18s ease-out both;
}

.message.is-own {
    margin-left: auto;
    justify-items: end;
}

.message-bubble {
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, .085);
    border-radius: 6px 16px 16px 16px;
    color: #f8edf5;
    background: rgba(27, 19, 30, .92);
    box-shadow: 0 9px 24px rgba(0, 0, 0, .18);
    font-size: 13px;
    line-height: 1.42;
    overflow-wrap: anywhere;
}

.message.is-own .message-bubble {
    border-color: rgba(255, 126, 219, .23);
    border-radius: 16px 6px 16px 16px;
    background: linear-gradient(135deg, rgba(255, 73, 183, .24), rgba(185, 121, 255, .15));
}

.message-meta {
    padding: 0 3px;
    color: #6e5969;
    font-size: 8px;
}

.message.is-pending {
    opacity: .58;
}

.system-message {
    width: max-content;
    max-width: 76%;
    margin: 12px auto;
    padding: 5px 9px;
    border: 1px solid rgba(255, 126, 219, .12);
    border-radius: 999px;
    color: #9e8297;
    background: rgba(255, 255, 255, .025);
    font-size: 9px;
    text-align: center;
}

@keyframes message-in {
    from { opacity: 0; transform: translateY(5px) scale(.985); }
    to { opacity: 1; transform: none; }
}

.typing-copy {
    position: absolute;
    left: 18px;
    bottom: 8px;
    color: #a77b9a;
    font-size: 9px;
}

.composer {
    grid-row: 2;
    min-height: 64px;
    padding: 9px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
    align-items: end;
    border-top: 1px solid rgba(255, 255, 255, .065);
    background: rgba(7, 5, 9, .97);
}

.composer textarea {
    width: 100%;
    max-height: 112px;
    min-height: 44px;
    padding: 11px 13px;
    resize: none;
    outline: none;
    border: 1px solid rgba(255, 255, 255, .085);
    border-radius: 13px;
    color: #fff;
    background: rgba(255, 255, 255, .035);
    font-size: 13px;
    line-height: 1.4;
}

.composer textarea:focus {
    border-color: rgba(255, 126, 219, .5);
}

.composer button {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 218, 241, .62);
    border-radius: 13px;
    color: #170711;
    background: linear-gradient(135deg, var(--pink-strong), var(--violet));
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
}

.composer button:disabled {
    cursor: default;
    opacity: .4;
}

.install-rail {
    grid-row: 3;
    min-width: 0;
    height: 58px;
    padding: 7px 11px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    border-top: 1px solid rgba(255, 126, 219, .13);
    background:
        linear-gradient(90deg, rgba(255, 73, 183, .07), rgba(185, 121, 255, .025)),
        #08060a;
}

.rail-ad-label {
    display: none;
}

.install-rail img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    box-shadow: 0 0 14px rgba(255, 73, 183, .2);
}

.rail-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.rail-copy strong,
.rail-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rail-copy strong {
    color: #f6deee;
    font-size: 10px;
}

.rail-copy small {
    margin-top: 2px;
    color: #806b7a;
    font-size: 8px;
}

.install-rail a {
    min-height: 30px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 126, 219, .28);
    border-radius: 9px;
    color: #ff8fd2;
    background: rgba(255, 73, 183, .055);
    font-size: 9px;
    font-weight: 900;
    text-decoration: none;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    padding: 18px;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(8px);
}

.modal-card {
    width: min(410px, 100%);
    padding: 27px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 126, 219, .28);
    border-radius: 21px;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 73, 183, .13), transparent 45%),
        #100b13;
    box-shadow: var(--shadow);
}

.modal-card > small {
    color: #d58cbc;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.modal-card h2 {
    margin: 9px 0;
    font-size: 25px;
    line-height: 1.06;
}

.modal-card p {
    margin: 0 0 19px;
    color: #b59fad;
    font-size: 12px;
    line-height: 1.5;
}

.modal-card .primary-button {
    width: 100%;
    margin-top: 5px;
    text-decoration: none;
}

.modal-card .text-button {
    width: 100%;
}

.modal-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 17px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 126, 219, .3);
    border-radius: 11px;
    color: var(--pink);
    background: rgba(255, 73, 183, .06);
}

.modal-close {
    width: 32px;
    height: 32px;
    position: absolute;
    top: 12px;
    right: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    color: #a88d9f;
    background: rgba(255, 255, 255, .035);
    cursor: pointer;
    font-size: 18px;
}

.report-card form {
    display: grid;
    gap: 14px;
}

.danger-button {
    min-height: 44px;
    padding: 0 15px;
    border: 1px solid rgba(255, 112, 140, .32);
    border-radius: 12px;
    color: #ffdce3;
    background: rgba(255, 79, 114, .13);
    font-size: 11px;
    font-weight: 900;
}

.toast,
.network-state {
    position: fixed;
    z-index: 140;
    border: 1px solid rgba(255, 126, 219, .24);
    color: #f9e9f4;
    background: rgba(17, 10, 20, .94);
    box-shadow: 0 15px 45px rgba(0, 0, 0, .5);
    backdrop-filter: blur(8px);
}

.toast {
    left: 50%;
    bottom: max(18px, var(--safe-bottom));
    max-width: min(420px, calc(100% - 28px));
    padding: 10px 14px;
    transform: translateX(-50%);
    border-radius: 12px;
    font-size: 11px;
    text-align: center;
}

.toast.is-error {
    border-color: rgba(255, 112, 140, .38);
}

.network-state {
    top: max(10px, var(--safe-top));
    left: 50%;
    padding: 8px 11px;
    display: flex;
    align-items: center;
    gap: 7px;
    transform: translateX(-50%);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
}

.network-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pink);
    animation: network-pulse 1s ease-in-out infinite;
}

@keyframes network-pulse {
    50% { opacity: .35; }
}

/* Catálogo visual compartido: las propiedades principales llegan inline;
   estas clases conservan la personalidad animada de los ítems especiales. */
.partner-avatar-shell.frame-verified {
    box-shadow: 0 0 0 1px rgba(0, 198, 255, .45), 0 0 24px rgba(0, 124, 255, .34);
}

.partner-avatar-shell.frame-nebula,
.partner-avatar-shell.frame-neon-pink,
.partner-avatar-shell.frame-neon-cyan,
.partner-avatar-shell.frame-neon-red,
.partner-avatar-shell.frame-fire,
.partner-avatar-shell.frame-celestial,
.partner-avatar-shell.frame-phoenix,
.partner-avatar-shell.frame-crystal,
.partner-avatar-shell.frame-abyss,
.partner-avatar-shell.frame-mythic-glitch {
    animation: web-frame-pulse 2.4s ease-in-out infinite;
}

.partner-avatar-shell.frame-celestial,
.partner-avatar-shell.frame-phoenix {
    box-shadow: 0 0 16px currentColor, 0 0 30px rgba(255, 185, 55, .26);
}

.partner-avatar-shell.frame-mythic-glitch {
    animation: web-frame-glitch 1.2s steps(2, end) infinite;
}

@keyframes web-frame-pulse {
    50% { filter: saturate(1.2) brightness(1.12); box-shadow: 0 0 27px rgba(255, 73, 183, .36); }
}

@keyframes web-frame-glitch {
    0%, 90%, 100% { transform: translate(0); filter: none; }
    92% { transform: translate(-1px, 1px); filter: hue-rotate(45deg); }
    96% { transform: translate(1px, -1px); filter: hue-rotate(-35deg); }
}

.partner-copy .name-fx-nebula,
.partner-copy .name-fx-chroma,
.partner-copy .name-fx-radioactive,
.partner-copy .name-fx-midas,
.partner-copy .name-fx-sunset {
    background-size: 220% 100% !important;
    animation: web-name-flow 3s linear infinite;
}

.partner-copy .name-fx-magenta,
.partner-copy .name-fx-neon-red,
.partner-copy .name-fx-neon-cyan {
    text-shadow: 0 0 7px currentColor, 0 0 15px currentColor;
}

.partner-copy .mythic-blood-text {
    color: #ff233d !important;
    text-shadow: 0 0 5px #ff001f, 1px 1px #39000a;
    animation: web-blood-pulse 1.8s ease-in-out infinite;
}

@keyframes web-name-flow {
    to { background-position: 220% 0; }
}

@keyframes web-blood-pulse {
    50% { filter: brightness(1.35); text-shadow: 0 0 11px #ff001f, 1px 2px #39000a; }
}

@media (max-width: 840px) {
    body {
        overflow: hidden;
    }

    .site-header {
        width: calc(100% - 24px);
        height: 58px;
    }

    .page-shell {
        min-height: calc(100svh - 58px);
        padding: 0 10px 10px;
    }

    .chat-device {
        height: calc(100svh - 68px);
        min-height: 0;
        border-radius: 20px;
    }

    .chat-device:has(.entry-view:not([hidden])) {
        height: min(650px, calc(100svh - 68px));
    }

    .chat-view {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .app-sidebar {
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .075);
    }

    .partner-sidebar-art {
        top: 62px;
    }

    .identity-bar {
        min-height: 62px;
        padding: 9px 11px;
        grid-template-columns: 38px minmax(0, 1fr) auto auto;
    }

    .own-avatar {
        width: 38px;
        height: 38px;
    }

    .partner-profile {
        min-height: 96px;
        padding: 10px 72px 10px 11px;
        display: grid;
        grid-template-columns: 62px minmax(0, 1fr);
        grid-template-rows: auto auto;
        gap: 4px 11px;
        align-items: center;
    }

    .partner-avatar-shell {
        width: 62px;
        height: 62px;
        grid-row: 1 / span 2;
    }

    .partner-copy {
        align-self: end;
        justify-items: start;
        text-align: left;
    }

    .partner-copy > strong {
        font-size: 16px;
    }

    .partner-title,
    .app-badge {
        display: inline-flex;
    }

    .partner-bio-surface {
        min-height: 25px;
        padding: 5px 7px;
        align-self: start;
        font-size: 9px;
    }

    .partner-bio-surface span {
        white-space: nowrap;
        text-overflow: ellipsis;
        -webkit-line-clamp: 1;
    }

    .report-button {
        top: 10px;
        right: 10px;
    }

    .sidebar-actions {
        padding: 8px 10px;
        position: absolute;
        right: 0;
        bottom: -49px;
        left: 0;
        z-index: 5;
        justify-items: center;
        pointer-events: none;
    }

    .sidebar-actions > * {
        pointer-events: auto;
    }

    .stage-start-button {
        width: min(244px, calc(100vw - 32px));
        min-height: 42px;
        margin-top: 18px;
    }

    .chat-controls {
        width: min(244px, calc(100vw - 32px));
        margin-inline: auto;
    }

    .chat-main {
        grid-template-rows: minmax(0, 1fr) auto 54px;
    }

    .idle-state,
    .search-state {
        padding-top: 62px;
    }

    .stage-state h2 {
        font-size: 27px;
    }

    .messages {
        padding: 54px 14px 16px;
    }

    .install-rail {
        height: 54px;
    }
}

@media (max-width: 520px) {
    .site-header {
        height: 52px;
    }

    .brand {
        font-size: 13px;
    }

    .brand img {
        width: 31px;
        height: 31px;
        border-radius: 9px;
    }

    .age-pill,
    .language-button {
        min-width: 37px;
        min-height: 31px;
        padding: 0 9px;
        border-radius: 10px;
        font-size: 9px;
    }

    .page-shell {
        min-height: calc(100svh - 52px);
        padding: 0;
        align-items: start;
    }

    .chat-device {
        width: 100%;
        height: calc(100svh - 52px);
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 18px 18px 0 0;
        box-shadow: none;
    }

    .chat-device:has(.entry-view:not([hidden])) {
        width: 100%;
        height: calc(100svh - 52px);
    }

    .entry-view {
        width: min(430px, 100%);
        padding: 24px 20px max(22px, var(--safe-bottom));
    }

    .entry-view h1 {
        font-size: 40px;
    }

    .entry-copy {
        margin-bottom: 22px;
    }

    .entry-fields {
        grid-template-columns: minmax(0, 1fr) 88px;
    }

    .field input,
    .field select {
        min-height: 47px;
    }

    .entry-version-note {
        margin-top: 15px;
        font-size: 9px;
    }

    .identity-bar {
        grid-template-columns: 36px minmax(0, 1fr) auto 31px;
        gap: 7px;
    }

    .own-avatar {
        width: 36px;
        height: 36px;
    }

    .web-badge {
        padding: 4px 6px;
        font-size: 7px;
    }

    .icon-button {
        width: 31px;
        height: 31px;
    }

    .partner-profile {
        min-height: 88px;
        padding: 8px 66px 8px 9px;
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 3px 9px;
    }

    .partner-avatar-shell {
        width: 56px;
        height: 56px;
    }

    .partner-copy > strong {
        font-size: 15px;
    }

    .partner-title {
        max-width: 148px;
        padding: 2px 6px;
        font-size: 8px;
    }

    .partner-bio-surface {
        max-width: 210px;
    }

    .report-button {
        min-height: 25px;
        padding: 0 7px;
        font-size: 8px;
    }

    .sidebar-actions {
        bottom: -47px;
        padding: 7px 9px;
    }

    .sidebar-actions .start-button {
        min-height: 37px;
    }

    .chat-controls {
        width: min(244px, calc(100vw - 26px));
    }

    .secondary-button,
    .primary-button.compact {
        min-height: 37px;
    }

    .idle-state,
    .search-state {
        padding: 54px 18px 18px;
    }

    .gofish-mark {
        transform: scale(.88);
    }

    .stage-state h2 {
        margin-top: 9px;
        font-size: 23px;
    }

    .stage-state p {
        font-size: 11px;
    }

    .messages {
        padding: 50px 11px 13px;
    }

    .message {
        max-width: 84%;
    }

    .message-bubble {
        padding: 9px 11px;
        font-size: 12px;
    }

    .composer {
        min-height: 59px;
        padding: 8px 9px;
        grid-template-columns: minmax(0, 1fr) 42px;
    }

    .composer textarea,
    .composer button {
        min-height: 42px;
        height: 42px;
    }

    .install-rail {
        grid-template-columns: 29px minmax(0, 1fr) auto;
        gap: 8px;
        padding: 7px 9px max(7px, var(--safe-bottom));
    }

    .rail-ad-label {
        display: none;
    }

    .install-rail img {
        width: 29px;
        height: 29px;
        border-radius: 8px;
    }

    .rail-copy strong {
        font-size: 9px;
    }

    .rail-copy small {
        font-size: 7.5px;
    }

    .install-rail a {
        min-height: 28px;
        padding: 0 9px;
        font-size: 8px;
    }

    .modal-card {
        padding: 23px;
        border-radius: 18px;
    }
}

@media (max-height: 680px) and (min-width: 841px) {
    .site-header {
        height: 54px;
    }

    .page-shell {
        min-height: calc(100svh - 54px);
        padding-top: 0;
        padding-bottom: 10px;
    }

    .chat-device {
        height: calc(100svh - 64px);
        min-height: 520px;
    }

    .partner-profile {
        min-height: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}
