:root {
    --tx-ink: #17162a;
    --tx-muted: #6f6b78;
    --tx-line: #e8e1d8;
    --tx-paper: #fffdf9;
    --tx-wash: #f8f5f0;
    --tx-orange: #f24822;
    --tx-orange-deep: #c93016;
    --tx-blue: #007aff;
}

html:has(.tx-layer.is-page),
body:has(.tx-layer.is-page) {
    height: 100%;
    margin: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 12%, rgb(255 206 92 / 25%), transparent 32%),
        radial-gradient(circle at 88% 82%, rgb(0 122 255 / 12%), transparent 30%),
        #f4efe7;
}

body:has(.tx-layer) {
    color: var(--tx-ink);
    font-family: "Noto Sans KR", system-ui, sans-serif;
}

.tx-layer,
.tx-layer *,
.tx-profile-drawer,
.tx-profile-drawer * {
    box-sizing: border-box;
}

.tx-layer {
    color: var(--tx-ink);
}

.tx-layer.is-dialog {
    position: fixed;
    inset: 0;
    z-index: 4600;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgb(28 25 31 / 54%);
    backdrop-filter: blur(10px);
    animation: tx-fade-in 180ms ease both;
}

.tx-layer.is-page {
    display: grid;
    height: 100dvh;
    min-height: 100dvh;
    place-items: stretch center;
    padding: 0 24px;
}

.tx-window {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(100%, 540px);
    height: min(860px, calc(100dvh - 44px));
    min-height: 540px;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 78%);
    border-radius: 28px;
    background: var(--tx-paper);
    box-shadow: 0 26px 90px rgb(31 25 20 / 26%), 0 2px 8px rgb(31 25 20 / 12%);
    outline: none;
    animation: tx-window-in 220ms cubic-bezier(.2, .8, .2, 1) both;
}

.tx-layer.is-page .tx-window {
    width: min(100%, 760px);
    height: 100dvh;
    min-height: 0;
    border-block: 0;
    border-color: var(--tx-line);
    border-radius: 0;
    box-shadow: 0 0 70px rgb(31 25 20 / 14%);
}

.tx-header {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 40px 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 70px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--tx-line);
    background: rgb(255 253 249 / 94%);
    backdrop-filter: blur(16px);
}

.tx-close {
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--tx-ink);
    cursor: pointer;
}

.tx-close:hover { background: #f1ede7; }
.tx-close:focus-visible { outline: 3px solid rgb(0 122 255 / 28%); }
.tx-close svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.tx-header-face {
    width: 42px;
    height: 42px;
    border: 1px solid #ddd2c3;
    border-radius: 50%;
    background: #fff4dc;
    object-fit: cover;
    object-position: 50% 12%;
}

.tx-header-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.tx-header-copy strong {
    overflow: hidden;
    color: var(--tx-ink);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tx-header-copy span {
    overflow: hidden;
    color: var(--tx-muted);
    font-size: 12px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tx-quota {
    flex: 0 0 auto;
    padding: 6px 9px;
    border: 1px solid #f2b9aa;
    border-radius: 999px;
    background: #fff1ec;
    color: var(--tx-orange-deep);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.tx-statusbar {
    position: relative;
    z-index: 4;
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 16px;
    border-bottom: 1px solid #eee8e0;
    background: #faf8f4;
}

.tx-status-person {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 7px;
}

.tx-status-person b {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 800;
}

.tx-status-person small {
    overflow: hidden;
    color: var(--tx-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tx-body {
    position: relative;
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
    background: linear-gradient(180deg, #fffdf9 0%, #faf7f2 100%);
}

.tx-chat-pane {
    position: relative;
    display: flex;
    flex: 1 1 0;
    min-height: 0;
    flex-direction: column;
    background: linear-gradient(180deg, #fffdf9 0%, #faf7f2 100%);
}

.tx-report-pane {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 0;
    flex: 1 1 0;
    flex-direction: column;
    overflow: hidden;
    border-bottom: 0;
    background:
        radial-gradient(circle at 92% 0%, rgb(255 197 77 / 18%), transparent 34%),
        linear-gradient(145deg, #f8f3eb, #fffdf9 68%);
    box-shadow: inset 0 -1px #dfd5c7, 0 8px 28px rgb(52 41 29 / 7%);
    transition: flex-basis 220ms cubic-bezier(.2, .8, .2, 1), min-height 220ms cubic-bezier(.2, .8, .2, 1);
}

.tx-report-pane.is-collapsed {
    min-height: 54px;
    flex: 0 0 54px;
}

.tx-report-head {
    display: grid;
    width: 100%;
    min-height: 54px;
    flex: 0 0 54px;
    grid-template-columns: minmax(0, 1fr) auto auto 30px;
    align-items: center;
    gap: 10px;
    padding: 7px 15px 7px 18px;
    border: 0;
    background: rgb(250 247 241 / 82%);
    color: var(--tx-ink);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    backdrop-filter: blur(14px);
}

.tx-report-head:hover { background: rgb(247 241 232 / 94%); }
.tx-report-head:focus-visible { outline: 3px solid rgb(0 122 255 / 25%); outline-offset: -3px; }

.tx-report-heading {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.tx-report-heading small {
    color: #8d735e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.tx-report-heading strong {
    overflow: hidden;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tx-report-date,
.tx-report-head-score {
    color: #756d64;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.tx-report-date { grid-column: 2; }

.tx-report-head-score {
    grid-column: 3;
    padding: 4px 8px;
    border: 1px solid #f2bcae;
    border-radius: 999px;
    background: #fff3ee;
    color: var(--tx-orange-deep);
    font-weight: 900;
}

.tx-report-toggle {
    display: grid;
    grid-column: 4;
    width: 30px;
    height: 30px;
    justify-self: end;
    place-items: center;
    border: 1px solid #d8cec1;
    border-radius: 50%;
    background: #e9e1d6;
    color: #423a32;
    box-shadow: 0 1px 2px rgb(52 41 29 / 12%);
}

.tx-report-toggle svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: rotate(180deg);
    transition: transform 180ms ease;
}

.tx-report-pane.is-collapsed .tx-report-toggle svg { transform: rotate(0); }

.tx-report-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #cbbdab transparent;
    scrollbar-width: thin;
}

.tx-report-inner {
    display: grid;
    width: 100%;
    margin: 0 auto;
    gap: 14px;
    padding: 15px 16px 24px;
}

.tx-report-hero {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 15px;
    padding: 14px 16px;
    border: 1px solid #eadbca;
    border-radius: 20px;
    background: rgb(255 255 255 / 84%);
    box-shadow: 0 8px 22px rgb(60 46 31 / 7%);
}

.tx-report-hero.is-text-only { grid-template-columns: minmax(0, 1fr); }

.tx-report-intro {
    display: grid;
    gap: 5px;
    padding: 13px 15px;
    border-left: 3px solid var(--tx-orange);
    border-radius: 4px 16px 16px 4px;
    background: rgb(255 251 244 / 88%);
}

.tx-report-intro small {
    color: var(--tx-orange-deep);
    font-size: 13px;
    font-weight: 900;
}

.tx-report-intro p {
    margin: 0;
    color: #4e4851;
    font-size: 16px;
    line-height: 1.7;
    word-break: keep-all;
}

.tx-report-score {
    display: grid;
    width: 66px;
    height: 66px;
    place-content: center;
    justify-items: center;
    border: 1px solid #f3a994;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff6f1, #ffe7dd);
    color: var(--tx-orange-deep);
    box-shadow: inset 0 0 0 5px rgb(255 255 255 / 70%);
}

.tx-report-score b { font-size: 24px; font-weight: 900; line-height: 1; }
.tx-report-score span { margin-top: 3px; font-size: 9px; font-weight: 800; }

.tx-report-hero-copy { min-width: 0; }

.tx-report-hero-copy small {
    display: block;
    margin-bottom: 4px;
    color: #98735f;
    font-size: 14px;
    font-weight: 800;
}

.tx-report-hero-copy p,
.tx-report-cards p,
.tx-report-solutions p,
.tx-report-months p {
    margin: 0;
    color: #4e4851;
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.tx-report-hero-copy p { font-size: 16px; }

.tx-report-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tx-report-keywords span {
    padding: 5px 10px;
    border: 1px solid #e4d9cb;
    border-radius: 999px;
    background: rgb(255 255 255 / 78%);
    color: #655b52;
    font-size: 14px;
    font-weight: 800;
}

.tx-report-charms {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 0;
}

.tx-report-charms > div {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid #e9dfd3;
    border-radius: 13px;
    background: rgb(255 255 255 / 74%);
}

.tx-report-charms dt {
    overflow: hidden;
    margin-bottom: 3px;
    color: #948a80;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tx-report-charms dd {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #3f3941;
    font-size: 14px;
    font-weight: 800;
}

.tx-report-charms dd i {
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
    border: 1px solid rgb(23 22 42 / 14%);
    border-radius: 50%;
}

.tx-report-section { display: grid; gap: 8px; }

.tx-report-section > h2 {
    margin: 2px 2px 0;
    color: #3c3740;
    font-size: 16px;
    font-weight: 900;
}

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

.tx-report-cards article {
    min-width: 0;
    padding: 11px 12px 12px;
    border: 1px solid #e9dfd3;
    border-radius: 15px;
    background: rgb(255 255 255 / 82%);
}

.tx-report-cards header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tx-report-cards header strong { font-size: 15px; font-weight: 900; }
.tx-report-cards header span {
    margin-left: auto;
    color: #8d735e;
    font-size: 13px;
    font-weight: 800;
}
.tx-report-cards header b { color: var(--tx-orange-deep); font-size: 14px; font-weight: 900; }

.tx-report-meter {
    display: block;
    height: 3px;
    margin: 7px 0 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #eee7de;
}

.tx-report-meter i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff9b5c, var(--tx-orange));
}

.tx-report-cards p { font-size: 15px; }

.tx-report-cards .tx-report-card-action {
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px dashed #dfd3c5;
    color: #61564e;
}

.tx-report-parts {
    display: grid;
    gap: 12px;
}

.tx-report-part {
    display: grid;
    gap: 8px;
    padding: 13px;
    border: 1px solid #e4d7c8;
    border-radius: 18px;
    background: rgb(255 255 255 / 78%);
    box-shadow: 0 7px 18px rgb(60 46 31 / 5%);
}

.tx-report-part > header {
    display: flex;
    align-items: center;
    gap: 7px;
}

.tx-report-part > header span {
    padding: 3px 7px;
    border-radius: 999px;
    background: #f4e9dc;
    color: #8b674f;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.tx-report-part > header h2 {
    margin: 0;
    color: #332e34;
    font-size: 17px;
    font-weight: 900;
}

.tx-report-part-guide {
    margin: 0;
    color: #776c63;
    font-size: 15px;
    line-height: 1.65;
}

.tx-report-part-sections {
    display: grid;
    gap: 7px;
}

.tx-report-part-sections article {
    padding: 10px 11px;
    border: 1px solid #ede4da;
    border-radius: 13px;
    background: rgb(250 247 242 / 75%);
}

.tx-report-part-sections h3 {
    margin: 0 0 5px;
    color: #51463f;
    font-size: 15px;
    font-weight: 900;
}

.tx-report-part-sections p {
    margin: 0;
    color: #514b53;
    font-size: 16px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: keep-all;
    white-space: pre-line;
}

.tx-report-part-sections p + p { margin-top: 7px; }

.tx-report-card-action b {
    margin-right: 6px;
    color: var(--tx-orange-deep);
    font-size: 13px;
}

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

.tx-report-months article {
    min-width: 0;
    padding: 11px 12px 12px;
    border: 1px solid #e9dfd3;
    border-radius: 15px;
    background: rgb(255 255 255 / 82%);
}

.tx-report-months header {
    display: flex;
    align-items: center;
    gap: 7px;
}

.tx-report-months header strong,
.tx-report-months header b { font-size: 14px; font-weight: 900; }
.tx-report-months header small { color: #958a80; font-size: 12px; }
.tx-report-months header b { margin-left: auto; color: var(--tx-orange-deep); }
.tx-report-months h3 { margin: 7px 0 3px; font-size: 15px; line-height: 1.5; }
.tx-report-months p { font-size: 15px; }

.tx-report-solutions { display: grid; gap: 7px; }

.tx-report-solutions article {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid #e5dbcf;
    border-radius: 14px;
    background: rgb(255 255 255 / 78%);
}

.tx-report-solutions article > span {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: #fff0e9;
    color: var(--tx-orange-deep);
    font-size: 10px;
    font-weight: 900;
}

.tx-report-solutions strong { display: block; margin-bottom: 2px; font-size: 15px; font-weight: 900; }
.tx-report-solutions p { font-size: 15px; }

.tx-report-link {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #dacbbb;
    border-radius: 13px;
    background: #fff;
    color: #4f4640;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
}

.tx-report-link:hover { border-color: #ee9279; color: var(--tx-orange-deep); }

.tx-alert {
    z-index: 3;
    margin: 10px 14px 0;
    border-radius: 12px;
}

.tx-messages {
    position: relative;
    flex: 1;
    min-height: 0;
}

.tx-messages > .ant-bubble-list {
    height: 100%;
}

.tx-messages .ant-bubble-list-scroll-box {
    padding: 18px 16px 26px;
    scrollbar-color: #cfc7bc transparent;
    scrollbar-width: thin;
}

.tx-messages .ant-bubble-list-scroll-content {
    gap: 16px;
}

.tx-messages .ant-bubble-content {
    max-width: 390px;
    font-size: 15px;
    line-height: 1.68;
    white-space: pre-wrap;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.tx-layer.is-page .tx-messages .ant-bubble-list-scroll-box {
    padding: 22px 28px 30px;
}

.tx-layer.is-page .tx-messages .ant-bubble-content {
    max-width: 520px;
}

.tx-messages .ant-bubble-start .ant-bubble-content {
    border: 1px solid #e8e1d8;
    background: #fff;
    color: var(--tx-ink);
    box-shadow: 0 4px 14px rgb(36 30 24 / 6%);
}

.tx-messages .ant-bubble-end .ant-bubble-content {
    border: 1px solid #db3b1b;
    background: var(--tx-orange);
    color: #fff;
    box-shadow: 0 5px 16px rgb(242 72 34 / 16%);
}

.tx-messages .tx-greeting-bubble .ant-bubble-content {
    padding: 14px 17px;
    border-radius: 6px 18px 18px 18px;
    background: #fff;
}

.tx-bubble-avatar {
    width: 32px;
    height: 32px;
    border: 1px solid #dfd3c4;
    border-radius: 50%;
    background: #fff4dc;
    object-fit: cover;
    object-position: 50% 12%;
}

.tx-bubble-name {
    color: #756d64;
    font-size: 11px;
    font-weight: 700;
}

.tx-message-actions {
    opacity: .42;
    transition: opacity 140ms ease;
}

.ant-bubble:hover .tx-message-actions,
.tx-message-actions:focus-within { opacity: 1; }

.tx-message-actions.ant-actions-copy {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.tx-messages .ant-bubble-system {
    color: var(--tx-muted);
    font-size: 12px;
}

.tx-birth-screen .ant-welcome-icon {
    margin-inline-end: 0;
}

.tx-birth-screen .ant-welcome-icon img {
    width: 80px;
    height: 80px;
    border: 1px solid #e4d6c5;
    border-radius: 50%;
    background: #fff4dc;
    object-fit: cover;
    object-position: 50% 12%;
}

.tx-birth-screen .ant-welcome-title {
    margin-top: 10px;
    color: var(--tx-ink);
    font-size: 20px;
    font-weight: 800;
    word-break: keep-all;
}

.tx-birth-screen .ant-welcome-description {
    color: var(--tx-muted);
    font-size: 14px;
    line-height: 1.65;
    word-break: keep-all;
}

.tx-setup-card {
    width: min(100%, 390px);
    padding: 17px;
    border: 1px solid #e6ddd1;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgb(48 39 29 / 9%);
}

.tx-messages .tx-setup-bubble .ant-bubble-content {
    max-width: min(100%, 408px);
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.tx-setup-progress {
    display: flex;
    justify-content: space-between;
    color: var(--tx-orange-deep);
    font-size: 11px;
    font-weight: 800;
}

.tx-setup-meter {
    height: 4px;
    margin: 8px 0 16px;
    overflow: hidden;
    border-radius: 999px;
    background: #eee8e0;
}

.tx-setup-meter i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--tx-orange), #ff9a39);
    transition: width 240ms ease;
}

.tx-setup-lead {
    margin: 0 0 4px;
    color: var(--tx-muted);
    font-size: 13px;
    line-height: 1.55;
}

.tx-setup-card h2 {
    margin: 0 0 13px;
    color: var(--tx-ink);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
    word-break: keep-all;
}

.tx-setup-options .ant-prompts-list { gap: 8px; }

.tx-setup-options .ant-prompts-item {
    min-height: 44px;
    border-color: #ded7ce;
    border-radius: 12px;
    background: #fffdf9;
    color: var(--tx-ink);
    font-size: 14px;
    font-weight: 700;
}

.tx-setup-options .ant-prompts-item:hover {
    border-color: #f29b84;
    background: #fff4ef;
}

.tx-skip {
    width: 100%;
    min-height: 38px;
    margin-top: 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #827b72;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.tx-skip:hover { background: #f5f1eb; }

.tx-setup-note {
    margin: 5px 0 0;
    color: #9a938b;
    font-size: 11px;
    text-align: center;
}

.tx-jump {
    position: absolute;
    right: 16px;
    bottom: 12px;
    z-index: 2;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 1px solid #ded7ce;
    border-radius: 50%;
    background: rgb(255 255 255 / 92%);
    color: var(--tx-ink);
    box-shadow: 0 6px 20px rgb(30 27 24 / 14%);
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.tx-jump svg,
.tx-profile svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tx-composer-zone {
    position: relative;
    z-index: 4;
    display: grid;
    flex: 0 0 auto;
    gap: 8px;
    padding: 9px 12px max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--tx-line);
    background: rgb(255 253 249 / 96%);
    box-shadow: 0 -10px 28px rgb(36 31 26 / 5%);
    backdrop-filter: blur(18px);
}

.tx-suggestions {
    overflow: hidden;
}

.tx-suggestions .ant-prompts-title {
    margin: 0 2px 6px;
    color: #857e75;
    font-size: 11px;
    font-weight: 700;
}

.tx-suggestions .ant-prompts-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    overflow-x: auto;
    padding: 1px 1px 4px;
    scrollbar-width: none;
}

.tx-suggestions .ant-prompts-list::-webkit-scrollbar { display: none; }

.tx-suggestions .ant-prompts-item {
    flex: 0 0 236px;
    min-height: 48px;
    border: 1px solid #e2dbd2;
    border-radius: 14px;
    background: #fff;
    color: #46414a;
    font-size: 12px;
    line-height: 1.45;
    box-shadow: 0 3px 10px rgb(42 35 28 / 5%);
}

.tx-suggestions .ant-prompts-item:hover {
    border-color: #f0a18d;
    background: #fff7f3;
}

.tx-profile-rail {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 1px 0 2px;
    scrollbar-width: none;
}

.tx-profile-rail::-webkit-scrollbar { display: none; }

.tx-profile {
    display: inline-flex;
    min-height: 30px;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid #ddd6cd;
    border-radius: 999px;
    background: #fff;
    color: #5f5962;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.tx-profile.is-selected {
    border-color: #f39880;
    background: #fff0eb;
    color: var(--tx-orange-deep);
}

.tx-profile.is-add {
    border-style: dashed;
    background: transparent;
    color: #716b73;
}

.tx-profile:disabled { cursor: wait; opacity: .55; }

.tx-profile.is-selected svg {
    width: 14px;
    height: 14px;
}

.tx-buy {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 15px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--tx-orange), #e83a1b);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 7px 18px rgb(242 72 34 / 20%);
    cursor: pointer;
}

.tx-buy b { font-size: 15px; }
.tx-buy:disabled { cursor: wait; opacity: .7; }

.tx-sender.ant-sender {
    border: 1px solid #d9d2c9;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 4px 16px rgb(42 35 28 / 7%);
}

.tx-sender.ant-sender:focus-within {
    border-color: #f1785c;
    box-shadow: 0 0 0 3px rgb(242 72 34 / 11%);
}

.tx-sender .ant-sender-content { padding: 9px 11px 3px; }
.tx-sender textarea { color: var(--tx-ink); font-size: 15px; line-height: 1.55; }

.tx-sender-footer {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0 3px 3px 7px;
}

.tx-sender-footer > span {
    color: #aaa29a;
    font-size: 10px;
}

.tx-sender .ant-sender-actions-btn { width: 34px; height: 34px; border-radius: 50%; }
.tx-sender .ant-sender-actions-btn.ant-btn-primary { background: var(--tx-orange); }

.tx-state {
    display: grid;
    flex: 1;
    place-content: center;
    justify-items: center;
    gap: 16px;
    padding: 30px;
    text-align: center;
}

.tx-state strong { font-size: 15px; }
.tx-state .ant-alert { max-width: 420px; text-align: left; }

.tx-birth-screen {
    flex: 1;
    overflow-y: auto;
    padding: 22px 20px 30px;
}

.tx-birth-screen > .ant-welcome {
    margin-bottom: 16px;
    text-align: center;
}

.tx-birth-form {
    display: grid;
    gap: 12px;
}

.tx-birth-form .wallet-birth-card.is-flat {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.tx-birth-form .wt-form-grid { gap: 14px; }
.tx-birth-form .field-label,
.tx-birth-form .saju-fieldset legend { color: var(--tx-ink); font-size: 14px; font-weight: 800; }
.tx-birth-form .input { min-height: 48px; border-color: #d8d0c6; border-radius: 10px; background: #fff; }
.tx-birth-form .saju-choice-grid label span { min-height: 44px; border-radius: 10px; }
.tx-birth-form .ant-btn-primary { min-height: 50px; background: var(--tx-orange); font-weight: 800; }

.tx-profile-drawer .ant-drawer-content {
    overflow: hidden;
    border-radius: 24px 24px 0 0;
}

.tx-profile-drawer .ant-drawer-header { border-bottom-color: #ece5dc; }
.tx-profile-drawer .ant-drawer-title { color: var(--tx-ink); font-size: 18px; font-weight: 800; }
.tx-profile-drawer .ant-drawer-body { max-width: 540px; width: 100%; margin: 0 auto; padding-bottom: max(30px, env(safe-area-inset-bottom)); }

@keyframes tx-fade-in {
    from { opacity: 0; }
}

@keyframes tx-window-in {
    from { opacity: 0; transform: translateY(16px) scale(.985); }
}

@media (max-width: 640px) {
    .tx-layer.is-dialog,
    .tx-layer.is-page { padding: 0; }

    .tx-window {
        width: 100%;
        height: 100dvh;
        min-height: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .tx-layer.is-page .tx-window {
        border: 0;
        box-shadow: none;
    }

    .tx-header {
        min-height: 64px;
        grid-template-columns: 36px 38px minmax(0, 1fr) auto;
        gap: 8px;
        padding: 8px 10px;
    }

    .tx-close { width: 36px; height: 36px; }
    .tx-header-face { width: 38px; height: 38px; }
    .tx-header-copy strong { font-size: 15px; }
    .tx-header-copy span { font-size: 11px; }
    .tx-quota { max-width: 102px; overflow: hidden; text-overflow: ellipsis; }
    .tx-report-pane.is-collapsed { min-height: 52px; flex: 0 0 52px; }
    .tx-report-head {
        min-height: 52px;
        flex-basis: 52px;
        grid-template-columns: minmax(0, 1fr) auto auto 30px;
        gap: 7px;
        padding-inline: 12px 9px;
    }
    .tx-report-date { display: none; }
    .tx-report-inner { gap: 11px; padding: 12px 10px 20px; }
    .tx-report-hero { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; padding: 12px; }
    .tx-report-score { width: 56px; height: 56px; }
    .tx-report-score b { font-size: 21px; }
    .tx-report-charms { gap: 5px; }
    .tx-report-charms > div { padding-inline: 8px; }
    .tx-report-cards { grid-template-columns: 1fr; }
    .tx-report-months { grid-template-columns: 1fr; }
    .tx-layer.is-page .tx-messages .ant-bubble-list-scroll-box,
    .tx-messages .ant-bubble-list-scroll-box { padding: 16px 12px 24px; }
    .tx-layer.is-page .tx-messages .ant-bubble-content,
    .tx-messages .ant-bubble-content { max-width: min(340px, calc(100vw - 76px)); }
    .tx-composer-zone { padding-inline: 9px; }
    .tx-birth-screen { padding-inline: 15px; }
}

@media (max-width: 380px) {
    .tx-header-copy span { display: none; }
    .tx-quota { max-width: 92px; padding-inline: 7px; }
    .tx-status-person small { display: none; }
    .tx-suggestions .ant-prompts-item { flex-basis: 214px; }
    .tx-report-heading small { display: none; }
}

@media (max-height: 700px) {
    .tx-report-pane.is-collapsed { min-height: 52px; flex: 0 0 52px; }
}

@media (prefers-reduced-motion: reduce) {
    .tx-layer,
    .tx-window,
    .tx-setup-meter i,
    .tx-report-pane,
    .tx-report-toggle svg { animation: none; transition: none; }
}
