:root {
    --phone-width: 393px;
    --phone-bg: #121212;
    --card-bg: #1f2024;
    --card-border: rgba(255, 255, 255, 0.05);
    --muted-text: rgba(255, 255, 255, 0.52);
    --soft-text: rgba(255, 255, 255, 0.76);
    --accent-strong: #5b3cff;
    --line: rgba(255, 255, 255, 0.07);
    --white: #ffffff;
    --danger: #ff4d4f;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    --font-sans: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    --admin-bg: #f3f6fb;
    --admin-surface: rgba(255, 255, 255, 0.9);
    --admin-card-border: rgba(95, 116, 160, 0.14);
    --admin-text: #182131;
    --admin-muted: #647089;
    --admin-accent: #355cff;
    --admin-accent-soft: rgba(53, 92, 255, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    background:
        radial-gradient(circle at top, rgba(102, 126, 234, 0.18), transparent 30%),
        linear-gradient(180deg, #eef3fb 0%, #e8eef8 100%);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    background: transparent;
    color: #111;
}

body.member-body .site-header,
body.member-body--immersive .site-header,
body.admin-body .site-header,
body.auth-body .site-header {
    display: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p,
pre {
    margin: 0;
}

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

.site-header {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid rgba(128, 146, 179, 0.18);
    backdrop-filter: blur(14px);
}

.site-header__inner {
    width: min(100%, 960px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.site-logo,
.site-nav,
.link-button {
    color: #263246;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.link-button {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.page-shell {
    width: min(100%, var(--phone-width));
    min-height: 100vh;
    margin: 0 auto;
    background: var(--phone-bg);
    position: relative;
}

.page-shell--center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.page-shell--phone {
    overflow-x: hidden;
    overflow-y: auto;
}

.page-shell--immersive {
    padding: 0;
}

.flash-stack {
    display: grid;
    gap: 10px;
    padding: 12px 16px 0;
}

.flash {
    padding: 12px 14px;
    border-radius: 14px;
    color: #fff;
    font-size: 14px;
}

.flash-success {
    background: rgba(33, 183, 123, 0.88);
}

.flash-info {
    background: rgba(61, 126, 255, 0.88);
}

.flash-warning {
    background: rgba(235, 173, 60, 0.92);
    color: #231500;
}

.flash-danger {
    background: rgba(239, 84, 84, 0.94);
}

.member-phone,
.admin-phone,
.detail-app,
.auth-phone {
    min-height: 100vh;
    background: var(--phone-bg);
}

.member-phone {
    padding: 20px 16px 36px;
    background:
        radial-gradient(circle at top center, rgba(86, 150, 255, 0.2), transparent 26%),
        linear-gradient(180deg, #f7fbff 0%, #edf5ff 100%);
}

.member-phone--home {
    position: relative;
    padding: 18px 16px 36px;
    background:
        radial-gradient(circle at 50% -8%, rgba(86, 150, 255, 0.26), transparent 30%),
        linear-gradient(180deg, #f9fbff 0%, #eef5ff 58%, #e6efff 100%);
}

.member-phone__header {
    display: grid;
    grid-template-columns: 64px 1fr 64px;
    align-items: center;
    min-height: 58px;
    margin-bottom: 18px;
}

.member-phone__header h1 {
    color: var(--white);
    font-size: 19px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.02em;
}

.member-phone__logout {
    display: flex;
    justify-content: flex-end;
}

.member-phone__logout-button {
    min-width: 54px;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(58, 84, 126, 0.18);
    border-radius: 999px;
    background: rgba(48, 74, 116, 0.14);
    color: #243754;
    font-size: 13px;
    cursor: pointer;
}

.member-banner {
    margin-bottom: 18px;
}

.member-banner img {
    width: 100%;
}

.member-section {
    display: grid;
    gap: 14px;
}

.member-section--home {
    gap: 16px;
}

.member-phone--home .empty-state {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(114, 140, 188, 0.18);
    color: #4e6286;
}

.home-topbar {
    display: grid;
    grid-template-columns: 64px 1fr 64px;
    align-items: center;
    align-items: center;
    min-height: 44px;
    margin-bottom: 18px;
}

.home-topbar__side {
    min-height: 1px;
}

.home-topbar__logout {
    display: flex;
    justify-content: flex-end;
    margin: 0;
}

.home-brand {
    display: inline-flex;
    align-items: center;
    justify-self: center;
    gap: 5px;
}

.home-brand__mark {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex: 0 0 20px;
    transform: translateY(1px);
}

.home-brand__text {
    color: #21324d;
    font-size: 16px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.home-hero {
    margin-bottom: 16px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 44px rgba(94, 126, 190, 0.16);
}

.home-hero img {
    display: block;
    width: 100%;
    height: auto;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.section-heading--tight {
    margin-bottom: 0;
}

.section-heading--mobile h2 {
    color: #223451;
    font-size: 18px;
    font-weight: 500;
}

.member-section--home .section-heading--mobile h2 {
    font-size: 16px;
    font-weight: 500;
}

.agent-mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.agent-mobile-grid--home {
    gap: 10px;
}

.agent-mobile-card {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
}

.agent-mobile-card--home {
    min-height: 88px;
    gap: 10px;
    padding: 14px 12px;
    border: 1px solid rgba(114, 140, 188, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 36px rgba(96, 122, 168, 0.12);
}

.agent-mobile-card__icon-wrap {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.agent-mobile-card__icon-wrap--home {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    background: linear-gradient(180deg, #edf4ff 0%, #d6e5ff 100%);
    box-shadow: inset 0 0 0 1px rgba(111, 136, 184, 0.12);
}

.agent-mobile-card__icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-mobile-card__body {
    min-width: 0;
}

.agent-mobile-card__body h3 {
    color: var(--white);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    margin-bottom: 4px;
}

.agent-mobile-card__body--home h3 {
    margin-bottom: 5px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
}

.agent-mobile-card__body p {
    color: var(--muted-text);
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-mobile-card__body--home p {
    max-width: 100%;
    color: rgba(49, 70, 105, 0.58);
    font-size: 12px;
    line-height: 1.2;
}

.agent-mobile-card--home .agent-mobile-card__body h3,
.agent-mobile-card__body--home h3 {
    color: #21324d;
}


.eyebrow {
    color: rgba(255, 255, 255, 0.48);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.detail-app {
    color: var(--white);
    background: linear-gradient(180deg, #1c1c1c 0%, #121212 44%, #242424 100%);
}

.detail-app--brand_form {
    background: #121212;
}

.detail-app--poster_chat {
    background:
        linear-gradient(180deg, #313131 0%, #1c1c1c 10%, #111111 40%, #111111 82%, #393939 100%);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.poster-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 6px;
    color: var(--white);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.01em;
}

.poster-statusbar__icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.signal-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.signal-bars i {
    display: block;
    width: 3px;
    background: var(--white);
    border-radius: 2px;
}

.signal-bars i:nth-child(1) {
    height: 5px;
}

.signal-bars i:nth-child(2) {
    height: 8px;
}

.signal-bars i:nth-child(3) {
    height: 11px;
}

.signal-bars i:nth-child(4) {
    height: 14px;
}

.wifi-icon {
    width: 14px;
    height: 10px;
    border: 2px solid transparent;
    border-top-color: var(--white);
    border-radius: 50%;
    position: relative;
    transform: translateY(1px);
}

.wifi-icon::before,
.wifi-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    border: 2px solid transparent;
    border-top-color: var(--white);
    border-radius: 50%;
    transform: translateX(-50%);
}

.wifi-icon::before {
    top: -4px;
    width: 14px;
    height: 10px;
}

.wifi-icon::after {
    top: 0;
    width: 6px;
    height: 6px;
}

.battery-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 27px;
    height: 16px;
    padding: 0 5px;
    border-radius: 8px;
    background: #f6f6f6;
    color: #111;
    font-size: 10px;
    line-height: 1;
}

.immersive-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 8px;
    padding: 18px 16px 14px;
    background: rgba(18, 18, 18, 0.96);
    border-bottom: 1px solid var(--line);
}

.immersive-topbar--poster {
    grid-template-columns: 32px 1fr 32px;
    padding: 10px 14px 11px;
    background: rgba(18, 18, 18, 0.98);
}

.icon-back {
    color: var(--white);
    font-size: 34px;
    line-height: 1;
}

.immersive-topbar__title {
    color: var(--white);
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.immersive-topbar__placeholder {
    width: 100%;
    height: 1px;
}

.immersive-topbar__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.topbar-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.topbar-chip--dots {
    width: 30px;
    height: 22px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.05);
    gap: 3px;
}

.topbar-chip--dots i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
}

.topbar-chip--circle {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    position: relative;
}

.topbar-chip--circle::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
}

.brand-screen,
.poster-screen {
    min-height: calc(100vh - 73px);
}

.brand-screen {
    padding: 18px 12px 164px;
}

.brand-screen__intro {
    margin-bottom: 16px;
}

.brand-screen__intro p {
    color: var(--soft-text);
    font-size: 16px;
    line-height: 1.55;
}

.brand-form {
    display: grid;
    gap: 18px;
}

.brand-field {
    display: grid;
    gap: 10px;
}

.brand-field > span {
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
}

.brand-field em {
    margin-right: 4px;
    color: var(--danger);
    font-style: normal;
}

.brand-field textarea,
.brand-select select {
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: #232323;
    color: var(--white);
    padding: 18px 14px;
    outline: none;
}

.brand-field textarea {
    min-height: 140px;
    resize: none;
}

.brand-field textarea::placeholder,
.brand-select select {
    color: rgba(255, 255, 255, 0.28);
}

.brand-select {
    display: grid;
    grid-template-columns: 1fr 48px;
    gap: 8px;
}

.brand-select select {
    appearance: none;
    padding-right: 14px;
}

.brand-select__arrow {
    position: relative;
    border-radius: 8px;
    background: #232323;
}

.brand-select__arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-right: 1.6px solid rgba(255, 255, 255, 0.38);
    border-bottom: 1.6px solid rgba(255, 255, 255, 0.38);
    transform: translate(-50%, -62%) rotate(45deg);
}

.screen-footer {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 18;
    width: min(100%, var(--phone-width));
    padding: 12px 10px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(18, 18, 18, 0), rgba(18, 18, 18, 0.96) 30%, #121212 100%);
    transform: translateX(-50%);
}

.brand-submit {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 8px;
    background: #f6f6f6;
    color: #151515;
    font-size: 18px;
    font-weight: 700;
}

.brand-submit:disabled {
    opacity: 0.55;
}

.screen-footnote,
.bottom-note small {
    display: block;
    margin-top: 10px;
    text-align: center;
    color: rgba(255, 255, 255, 0.52);
    font-size: 12px;
    line-height: 1.4;
}

.response-state {
    font-size: 13px;
    line-height: 1.45;
}

.response-state--dark,
.response-state--chat {
    color: rgba(255, 255, 255, 0.74);
}

.response-content {
    white-space: normal;
}

.response-content--dark {
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.response-content--brand {
    min-height: 120px;
}

.mobile-app {
    min-height: 100vh;
    padding: 18px 16px 30px;
    color: var(--white);
}

.back-link {
    display: inline-block;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.74);
}

.detail-hero,
.panel,
.status-panel {
    border-radius: 16px;
    border: 1px solid var(--card-border);
}

.detail-hero {
    overflow: hidden;
    background: #1b1c1f;
}

.detail-hero img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.detail-hero__content {
    padding: 16px;
}

.detail-hero__content h1 {
    margin: 6px 0;
    font-size: 22px;
}

.detail-hero__content p:last-child {
    color: rgba(255, 255, 255, 0.64);
    line-height: 1.55;
}

.status-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding: 14px;
    background: #1b1c1f;
}

.status-panel--ok {
    box-shadow: inset 0 0 0 1px rgba(33, 183, 123, 0.14);
}

.status-panel--warn {
    box-shadow: inset 0 0 0 1px rgba(235, 173, 60, 0.14);
}

.status-panel h2 {
    margin-bottom: 6px;
    font-size: 16px;
}

.status-panel p {
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.45;
}

.status-meta {
    flex: 0 0 auto;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    text-align: center;
}

.status-meta span {
    display: block;
    color: rgba(255, 255, 255, 0.52);
    font-size: 12px;
}

.status-meta strong {
    display: block;
    margin-top: 4px;
    color: var(--white);
    font-size: 20px;
}

.panel {
    margin-top: 14px;
    padding: 16px;
    background: #1b1c1f;
}

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

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: var(--accent-strong);
    color: var(--white);
    cursor: pointer;
}

.poster-screen {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
}

.poster-screen__hero {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-top: 2px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(245, 249, 255, 0.94));
    border: 1px solid rgba(114, 140, 188, 0.16);
    box-shadow: 0 18px 38px rgba(95, 124, 174, 0.12);
}

.poster-avatar {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(180deg, #b6c4dd 0%, #7887a7 100%);
}

.poster-avatar img {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    object-fit: cover;
}

.poster-screen__hero h1 {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
}

.chat-thread {
    display: grid;
    align-content: start;
    gap: 10px;
    margin-top: 0;
    padding: 16px;
    max-height: min(42vh, 360px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.78));
    border: 1px solid rgba(114, 140, 188, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.chat-bubble {
    max-width: 70%;
    padding: 14px 14px;
    border-radius: 10px;
    line-height: 1.6;
    font-size: 14px;
}

.chat-bubble--assistant {
    background: #f3f3f3;
    color: #303030;
}

.chat-bubble--assistant.is-image-result {
    max-width: 100%;
    padding: 0;
    background: transparent;
}

.chat-bubble__content {
    margin: 0;
    white-space: normal;
}

.markdown-content {
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.markdown-content > :first-child {
    margin-top: 0;
}

.markdown-content > :last-child {
    margin-bottom: 0;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    margin: 1em 0 0.45em;
    line-height: 1.3;
    font-weight: 700;
}

.markdown-content h1 {
    font-size: 1.55em;
}

.markdown-content h2 {
    font-size: 1.35em;
}

.markdown-content h3 {
    font-size: 1.18em;
}

.markdown-content p,
.markdown-content ul,
.markdown-content ol,
.markdown-content blockquote,
.markdown-content pre {
    margin: 0 0 0.9em;
}

.markdown-content ul,
.markdown-content ol {
    padding-left: 1.35em;
}

.markdown-content li + li {
    margin-top: 0.28em;
}

.markdown-content strong {
    font-weight: 700;
}

.markdown-content em {
    font-style: italic;
}

.markdown-content code {
    padding: 0.12em 0.36em;
    border-radius: 6px;
    font-family: Consolas, "SFMono-Regular", monospace;
    font-size: 0.94em;
}

.markdown-content pre {
    padding: 12px 14px;
    border-radius: 12px;
    overflow-x: auto;
}

.markdown-content pre code {
    padding: 0;
    background: transparent;
}

.markdown-content blockquote {
    padding-left: 12px;
    border-left: 3px solid rgba(90, 108, 160, 0.34);
}

.markdown-content a {
    text-decoration: underline;
}

.markdown-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 0 0 0.9em;
}

.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    min-width: 420px;
    font-size: 0.96em;
}

.markdown-content th,
.markdown-content td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    border: 1px solid rgba(120, 136, 176, 0.24);
}

.markdown-content th {
    font-weight: 700;
}

.response-content--dark .markdown-content th,
.response-content--dark .markdown-content td,
.response-content--dark th,
.response-content--dark td {
    border-color: rgba(255, 255, 255, 0.14);
}

.response-content--dark .markdown-content th,
.response-content--dark th {
    background: rgba(255, 255, 255, 0.06);
}

.chat-bubble__content th {
    background: rgba(34, 45, 67, 0.06);
}

.response-content--dark .markdown-content code,
.response-content--dark code {
    background: rgba(255, 255, 255, 0.12);
}

.response-content--dark .markdown-content pre,
.response-content--dark pre {
    background: rgba(255, 255, 255, 0.08);
}

.chat-bubble__content code {
    background: rgba(34, 45, 67, 0.08);
}

.chat-bubble__content pre {
    background: rgba(34, 45, 67, 0.08);
}

.chat-bubble__content a {
    color: #355cff;
}

.copy-chip {
    justify-self: end;
    width: 20px;
    height: 20px;
    margin-top: -4px;
    margin-right: 14px;
    border: 0;
    background: transparent;
    padding: 0;
    position: relative;
    cursor: pointer;
}

.copy-chip span,
.copy-chip span::before {
    position: absolute;
    border: 1.5px solid rgba(255, 255, 255, 0.84);
    border-radius: 2px;
}

.copy-chip span {
    inset: 5px 2px 2px 5px;
}

.copy-chip span::before {
    content: "";
    inset: -5px 5px 5px -5px;
}

.copy-chip.is-copied {
    opacity: 0.55;
}

.chat-pill {
    justify-self: start;
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 999px;
    background: #b8b8bc;
    color: #3f3f46;
    font-size: 13px;
    line-height: 1.35;
}

.chat-composer {
    position: relative;
    z-index: 10;
    margin-top: auto;
    padding-top: 0;
    background: none;
}

.chat-composer__row {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 10px;
}

.chat-side-button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #d7d7d7;
    position: relative;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.chat-side-button span {
    position: relative;
    display: block;
    width: 14px;
    height: 14px;
}

.chat-side-button span::before,
.chat-side-button span::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.chat-side-button span::before {
    top: 3px;
    width: 10px;
    height: 9px;
    border: 1.7px solid #505050;
    border-top: 0;
    border-radius: 0 0 3px 3px;
}

.chat-side-button span::after {
    top: 1px;
    width: 14px;
    height: 2px;
    background: #505050;
    border-radius: 999px;
    box-shadow: 0 10px 0 -4px #505050;
}

.chat-side-button::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    width: 6px;
    height: 2px;
    border-radius: 999px;
    background: #505050;
    transform: translateX(-50%);
}

.composer-shell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 10px 14px;
    border: 1.5px solid #4430ff;
    border-radius: 24px;
    background: rgba(8, 8, 8, 0.92);
    box-shadow: inset 0 0 0 1px rgba(78, 57, 255, 0.1);
}

.composer-shell textarea {
    flex: 1;
    display: block;
    min-height: 24px;
    max-height: 120px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: none;
    resize: none;
    color: var(--white);
    background: transparent;
    line-height: 24px;
}

.composer-shell textarea::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.composer-actions {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 102px;
    align-self: center;
}

.composer-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    padding: 0;
    position: relative;
    color: var(--white);
    cursor: pointer;
    line-height: 0;
}

.composer-icon input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.composer-send-button {
    min-width: 54px;
    height: 32px;
    padding: 0 13px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #3f5cff 0%, #6478ff 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.composer-send-button:disabled {
    opacity: 0.55;
    cursor: default;
}

.composer-icon--upload span::before,
.composer-icon--upload span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--white);
    transform: translate(-50%, -50%);
}

.composer-icon--upload span::before {
    width: 12px;
    height: 1.8px;
}

.composer-icon--upload span::after {
    width: 1.8px;
    height: 12px;
}

.composer-icon--submit span {
    position: relative;
    width: 10px;
    height: 14px;
    border: 1.8px solid var(--white);
    border-radius: 7px;
    transform: translateY(-1px);
}

.composer-icon--submit span::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 2px;
    height: 6px;
    background: var(--white);
    transform: translateX(-50%);
}

.composer-icon--submit span::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -11px;
    width: 12px;
    height: 7px;
    border: 1.8px solid var(--white);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    transform: translateX(-50%);
}

.upload-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.composer-limit-hint {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 12px;
    line-height: 1.4;
}

.loading-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(5, 7, 16, 0.58);
    backdrop-filter: blur(8px);
}

.loading-modal__card {
    min-width: 180px;
    padding: 24px 22px;
    border-radius: 24px;
    background: rgba(17, 18, 24, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
    text-align: center;
}

.loading-modal__card p {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}

.loading-modal__spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto 14px;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: loading-spin 0.9s linear infinite;
}

@keyframes loading-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.upload-thumb {
    width: 58px;
    display: grid;
    gap: 4px;
}

.upload-thumb__image {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
}

.upload-thumb__name {
    color: rgba(255, 255, 255, 0.68);
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bottom-note--poster {
    padding: 0 4px;
    margin-top: 2px;
    text-align: center;
}

.bottom-note--poster small {
    color: rgba(255, 255, 255, 0.46);
}

.poster-result {
    margin-bottom: 12px;
}

.poster-result__image {
    display: block;
    width: 100%;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    object-fit: cover;
}

.poster-result__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.poster-download-button {
    min-width: 96px;
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #2f6bff 0%, #5b8bff 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.detail-app--brand_form,
.detail-app--poster_chat {
    color: #1f2a3d;
}

.detail-app--brand_form {
    background:
        radial-gradient(circle at top, rgba(92, 143, 255, 0.18), transparent 34%),
        linear-gradient(180deg, #f8fbff 0%, #eef5ff 52%, #e7f0ff 100%);
}

.detail-app--poster_chat {
    background:
        radial-gradient(circle at 12% 10%, rgba(117, 183, 255, 0.28), transparent 26%),
        radial-gradient(circle at 88% 18%, rgba(151, 199, 255, 0.24), transparent 22%),
        linear-gradient(180deg, #fbfdff 0%, #f1f6ff 36%, #e6efff 100%);
}

.detail-app--brand_form .poster-statusbar,
.detail-app--poster_chat .poster-statusbar {
    color: #30415f;
}

.detail-app--brand_form .signal-bars i,
.detail-app--poster_chat .signal-bars i {
    background: #30415f;
}

.detail-app--brand_form .wifi-icon,
.detail-app--poster_chat .wifi-icon,
.detail-app--brand_form .wifi-icon::before,
.detail-app--poster_chat .wifi-icon::before,
.detail-app--brand_form .wifi-icon::after,
.detail-app--poster_chat .wifi-icon::after {
    border-top-color: #30415f;
}

.detail-app--brand_form .battery-pill,
.detail-app--poster_chat .battery-pill {
    background: #30415f;
    color: #ffffff;
}

.detail-app--brand_form .immersive-topbar,
.detail-app--poster_chat .immersive-topbar,
.detail-app--brand_form .immersive-topbar--poster,
.detail-app--poster_chat .immersive-topbar--poster {
    background: rgba(251, 253, 255, 0.82);
    border-bottom: 1px solid rgba(109, 136, 184, 0.14);
    backdrop-filter: blur(18px);
}

.detail-app--brand_form .icon-back,
.detail-app--poster_chat .icon-back,
.detail-app--brand_form .immersive-topbar__title,
.detail-app--poster_chat .immersive-topbar__title {
    color: #21324d;
}

.detail-app--brand_form .topbar-chip--dots,
.detail-app--poster_chat .topbar-chip--dots {
    background: rgba(59, 90, 145, 0.08);
}

.detail-app--brand_form .topbar-chip--dots i,
.detail-app--poster_chat .topbar-chip--dots i {
    background: #48658f;
}

.detail-app--brand_form .topbar-chip--circle,
.detail-app--poster_chat .topbar-chip--circle,
.detail-app--brand_form .topbar-chip--circle::before,
.detail-app--poster_chat .topbar-chip--circle::before {
    border-color: rgba(72, 101, 143, 0.9);
}

.detail-app--brand_form .brand-screen__intro p,
.detail-app--poster_chat .brand-screen__intro p,
.detail-app--brand_form .poster-screen__hero h1,
.detail-app--poster_chat .poster-screen__hero h1,
.detail-app--brand_form .brand-field > span,
.detail-app--poster_chat .brand-field > span {
    color: #233553;
}

.detail-app--brand_form .response-state--dark,
.detail-app--brand_form .response-state--chat,
.detail-app--poster_chat .response-state--chat {
    color: rgba(52, 72, 107, 0.82);
}

.detail-app--brand_form .brand-field textarea,
.detail-app--brand_form .brand-select select,
.detail-app--brand_form .brand-select__arrow,
.detail-app--brand_form .response-content--dark,
.detail-app--poster_chat .composer-shell {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(114, 140, 188, 0.18);
    box-shadow: 0 14px 34px rgba(95, 124, 174, 0.12);
}

.detail-app--brand_form .brand-field textarea,
.detail-app--brand_form .brand-select select,
.detail-app--brand_form .response-content--dark,
.detail-app--poster_chat .composer-shell textarea {
    color: #21324d;
}

.detail-app--brand_form .brand-field textarea::placeholder,
.detail-app--brand_form .brand-select select,
.detail-app--brand_form .response-content--dark code,
.detail-app--poster_chat .composer-shell textarea::placeholder,
.detail-app--poster_chat .composer-limit-hint,
.detail-app--poster_chat .bottom-note--poster small,
.detail-app--brand_form .screen-footnote {
    color: rgba(61, 82, 120, 0.62);
}

.detail-app--brand_form .response-content--dark .markdown-content th,
.detail-app--brand_form .response-content--dark .markdown-content td,
.detail-app--brand_form .response-content--dark th,
.detail-app--brand_form .response-content--dark td {
    border-color: rgba(111, 136, 184, 0.18);
}

.detail-app--brand_form .response-content--dark .markdown-content th,
.detail-app--brand_form .response-content--dark th,
.detail-app--brand_form .response-content--dark .markdown-content code,
.detail-app--brand_form .response-content--dark code,
.detail-app--brand_form .response-content--dark .markdown-content pre,
.detail-app--brand_form .response-content--dark pre {
    background: rgba(92, 122, 179, 0.08);
}

.detail-app--brand_form .brand-select__arrow::before {
    border-right-color: rgba(72, 101, 143, 0.48);
    border-bottom-color: rgba(72, 101, 143, 0.48);
}

.detail-app--brand_form .screen-footer {
    background: linear-gradient(180deg, rgba(248, 251, 255, 0), rgba(248, 251, 255, 0.92) 30%, #eef5ff 100%);
}

.detail-app--brand_form .brand-submit {
    background: linear-gradient(135deg, #3271ff 0%, #69a0ff 100%);
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(50, 113, 255, 0.22);
}

.detail-app--poster_chat .poster-avatar {
    background: linear-gradient(180deg, #edf4ff 0%, #c9dbff 100%);
    box-shadow: 0 14px 28px rgba(94, 126, 190, 0.16);
}

.detail-app--poster_chat .chat-bubble--assistant {
    max-width: 100%;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    color: #2d3d57;
    box-shadow: 0 12px 26px rgba(100, 126, 173, 0.1);
}

.detail-app--poster_chat .chat-bubble__content code,
.detail-app--poster_chat .chat-bubble__content pre {
    background: rgba(61, 96, 167, 0.08);
}

.detail-app--poster_chat .chat-pill {
    background: rgba(104, 142, 214, 0.14);
    color: #35507c;
    border: 1px solid rgba(104, 142, 214, 0.14);
}

.detail-app--poster_chat .copy-chip span,
.detail-app--poster_chat .copy-chip span::before {
    border-color: rgba(67, 97, 148, 0.7);
}

.detail-app--poster_chat .chat-composer {
    padding: 8px 0 0;
}

.detail-app--poster_chat .composer-shell {
    border-color: rgba(95, 130, 201, 0.2);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(95, 124, 174, 0.14);
}

.detail-app--poster_chat .composer-icon,
.detail-app--poster_chat .composer-send-button,
.detail-app--poster_chat .poster-download-button {
    box-shadow: 0 12px 24px rgba(70, 115, 203, 0.16);
}

.detail-app--poster_chat .composer-icon--upload span::before,
.detail-app--poster_chat .composer-icon--upload span::after {
    background: #4c6ea8;
}

.detail-app--poster_chat .chat-side-button {
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(96, 120, 162, 0.14);
}

.detail-app--poster_chat .chat-side-button::before,
.detail-app--poster_chat .chat-side-button span::after {
    background: #5b6f92;
}

.detail-app--poster_chat .chat-side-button span::before {
    border-color: #5b6f92;
    border-top: 0;
}

.detail-app--poster_chat .upload-thumb__image {
    border-color: rgba(100, 126, 173, 0.2);
    background: rgba(255, 255, 255, 0.7);
}

.detail-app--poster_chat .upload-thumb__name {
    color: rgba(50, 71, 107, 0.72);
}

.detail-app--poster_chat .chat-thread::-webkit-scrollbar {
    width: 6px;
}

.detail-app--poster_chat .chat-thread::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(112, 138, 186, 0.36);
}

.detail-app--poster_chat .loading-modal {
    background: rgba(231, 239, 255, 0.55);
}

.detail-app--poster_chat .loading-modal__card {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(103, 130, 181, 0.14);
    box-shadow: 0 24px 50px rgba(95, 124, 174, 0.18);
}

.detail-app--poster_chat .loading-modal__card p {
    color: #2b3c58;
}

.detail-app--poster_chat .loading-modal__spinner {
    border-color: rgba(87, 118, 177, 0.18);
    border-top-color: #3d6fda;
}

.detail-app--poster_chat {
    background: #ededed;
    color: #1f2329;
}

.detail-app--poster_chat .immersive-topbar--poster {
    grid-template-columns: 32px 1fr 32px;
    padding: 12px 12px 10px;
    background: #f7f7f7;
    border-bottom: 1px solid #d8d8d8;
    box-shadow: none;
}

.detail-app--poster_chat .icon-back,
.detail-app--poster_chat .immersive-topbar__title {
    color: #111111;
}

.detail-app--poster_chat .poster-screen {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 0 calc(8px + env(safe-area-inset-bottom));
}

.detail-app--poster_chat .chat-thread {
    flex: 1;
    max-height: none;
    margin: 0;
    padding: 12px 12px 10px;
    gap: 10px;
    overflow-y: auto;
    background: #ededed;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.detail-app--poster_chat .chat-thread::-webkit-scrollbar {
    width: 4px;
}

.detail-app--poster_chat .chat-thread::-webkit-scrollbar-thumb {
    background: rgba(120, 120, 120, 0.25);
}

.detail-app--poster_chat .chat-system-note,
.detail-app--poster_chat .response-state--chat {
    justify-self: center;
    width: fit-content;
    max-width: calc(100% - 80px);
    margin: 0 auto 2px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    color: #7f8490;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.detail-app--poster_chat .chat-message {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: flex-start;
    gap: 10px;
}

.detail-app--poster_chat .chat-avatar {
    width: 36px;
    height: 36px;
    overflow: hidden;
    border-radius: 10px;
    background: #d7e3ff;
    box-shadow: inset 0 0 0 1px rgba(60, 90, 150, 0.08);
}

.detail-app--poster_chat .chat-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-app--poster_chat .chat-stack {
    display: grid;
    justify-items: start;
    gap: 8px;
    min-width: 0;
}

.detail-app--poster_chat .chat-agent-name {
    color: #8c9098;
    font-size: 12px;
    line-height: 1.2;
}

.detail-app--poster_chat .chat-bubble--assistant,
.detail-app--poster_chat #response-wrapper {
    width: fit-content;
    max-width: calc(100% - 12px);
    padding: 12px 14px;
    border-radius: 4px 16px 16px 16px;
    background: #ffffff;
    color: #1f2329;
    box-shadow: none;
}

.detail-app--poster_chat .chat-bubble--assistant.is-image-result,
.detail-app--poster_chat #response-wrapper.is-image-result {
    padding: 10px;
}

.detail-app--poster_chat .chat-bubble--user {
    width: fit-content;
    max-width: 78%;
    margin-left: auto;
    padding: 11px 14px;
    border-radius: 16px 4px 16px 16px;
    background: #95ec69;
    color: #1f2329;
}

.detail-app--poster_chat .chat-upload-summary {
    width: fit-content;
    max-width: 78%;
    margin-left: auto;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.04);
    color: #6f7782;
    font-size: 12px;
    line-height: 1.4;
}

.detail-app--poster_chat .chat-tip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-app--poster_chat .chat-pill {
    max-width: 100%;
    padding: 7px 10px;
    border-radius: 14px;
    background: #f5f5f5;
    border: 1px solid #e6e6e6;
    color: #5d6470;
    font-size: 12px;
    line-height: 1.35;
}

.detail-app--poster_chat .copy-chip {
    width: 24px;
    height: 24px;
    margin: 0;
    justify-self: start;
    opacity: 0.65;
}

.detail-app--poster_chat .copy-chip span,
.detail-app--poster_chat .copy-chip span::before {
    border-color: rgba(92, 100, 112, 0.78);
}

.detail-app--poster_chat .poster-result {
    margin: 0;
}

.detail-app--poster_chat .poster-result__image {
    width: min(248px, 68vw);
    border-radius: 10px;
    background: #f4f4f4;
}

.detail-app--poster_chat .poster-result__actions {
    justify-content: flex-end;
    margin-top: 10px;
}

.detail-app--poster_chat .poster-download-button {
    min-width: 84px;
    height: 34px;
    padding: 0 14px;
    background: #07c160;
    color: #ffffff;
    box-shadow: none;
}

.detail-app--poster_chat .chat-composer {
    position: relative;
    z-index: 5;
    margin-top: 0;
    padding: 8px 10px 0;
    background: #f7f7f7;
    border-top: 1px solid #d8d8d8;
}

.detail-app--poster_chat .upload-strip {
    gap: 6px;
    margin-bottom: 8px;
}

.detail-app--poster_chat .upload-thumb {
    width: 48px;
    gap: 3px;
}

.detail-app--poster_chat .upload-thumb__image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid #d8d8d8;
    background: #ffffff;
}

.detail-app--poster_chat .upload-thumb__name {
    font-size: 10px;
    color: #7c8390;
}

.detail-app--poster_chat .chat-composer__row {
    grid-template-columns: 1fr;
    gap: 0;
}

.detail-app--poster_chat .chat-side-button {
    display: none;
}

.detail-app--poster_chat .composer-shell {
    min-height: 44px;
    padding: 6px 8px 6px 12px;
    border: 1px solid #dcdcdc;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: none;
}

.detail-app--poster_chat .composer-shell textarea {
    min-height: 22px;
    max-height: 96px;
    color: #1f2329;
    line-height: 22px;
}

.detail-app--poster_chat .composer-shell textarea::placeholder {
    color: #9aa1ad;
}

.detail-app--poster_chat .composer-actions {
    gap: 8px;
    min-width: auto;
}

.detail-app--poster_chat .composer-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f3f3f3;
    box-shadow: none;
}

.detail-app--poster_chat .composer-icon--upload span::before,
.detail-app--poster_chat .composer-icon--upload span::after {
    background: #5d6470;
}

.detail-app--poster_chat .composer-send-button {
    min-width: 58px;
    height: 32px;
    padding: 0 14px;
    background: #07c160;
    color: #ffffff;
    box-shadow: none;
}

.detail-app--poster_chat .composer-limit-hint {
    margin-top: 6px;
    padding: 0 2px;
    color: #8c9098;
    font-size: 12px;
}

.detail-app--poster_chat .bottom-note--poster {
    margin-top: 6px;
    padding: 0 10px;
}

.detail-app--poster_chat .bottom-note--poster small {
    color: #9da3ad;
}

.auth-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 32px);
    padding: 24px 16px;
    background:
        radial-gradient(circle at top, rgba(137, 160, 255, 0.22), transparent 34%),
        linear-gradient(180deg, #edf2fb 0%, #e3ebf8 100%);
}

.auth-phone__card,
.admin-card,
.list-card,
.stat-mobile-card,
.inline-editor,
.error-card {
    border-radius: 16px;
}

.auth-phone__card {
    width: min(100%, 360px);
    padding: 28px 24px 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.95) 100%);
    border: 1px solid rgba(195, 207, 232, 0.5);
    color: var(--admin-text);
    box-shadow: 0 20px 48px rgba(94, 114, 164, 0.12);
}

.auth-phone__card--simple {
    border-radius: 24px;
}

.auth-phone__card h1 {
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: 0;
}

.auth-phone__brand {
    margin-bottom: 18px;
    text-align: left;
}

.auth-phone__brand p {
    margin-top: 10px;
    color: #69789f;
    font-size: 14px;
    line-height: 1.45;
}

.auth-phone__badge {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 16px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(232, 235, 255, 0.96), rgba(223, 228, 249, 0.96));
    color: #4561ff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.auth-phone__hint {
    margin-bottom: 18px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(240, 180, 67, 0.18);
    color: #8b5c00;
    font-size: 14px;
    line-height: 1.4;
}

.auth-phone__submit {
    margin-top: 10px;
    min-height: 52px;
    border-radius: 16px;
    font-size: 15px;
    box-shadow: none;
}

.admin-phone {
    padding: 18px 16px 36px;
    color: var(--admin-text);
    background:
        radial-gradient(circle at top center, rgba(111, 130, 255, 0.16), transparent 30%),
        var(--admin-bg);
}

.admin-phone__header {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.admin-phone__header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--admin-text);
}

.admin-mobile-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.admin-mobile-nav::-webkit-scrollbar {
    display: none;
}

.admin-mobile-nav a {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(128, 146, 179, 0.14);
    color: var(--admin-muted);
    font-size: 14px;
}

.admin-mobile-nav a.is-active {
    background: var(--admin-accent-soft);
    color: var(--admin-accent);
    border-color: rgba(53, 92, 255, 0.18);
}

.stats-mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.stat-mobile-card {
    padding: 16px 14px;
    background: var(--admin-surface);
    border: 1px solid var(--admin-card-border);
    box-shadow: 0 12px 30px rgba(82, 101, 138, 0.08);
}

.stat-mobile-card span,
.card-subtitle,
.meta-pairs,
.content-block p,
.field span,
.toggle span,
.empty-state,
.section-heading p {
    color: var(--admin-muted);
}

.stat-mobile-card strong {
    display: block;
    margin-top: 10px;
    font-size: 28px;
    color: var(--admin-text);
}

.admin-card {
    padding: 16px;
    background: var(--admin-surface);
    border: 1px solid var(--admin-card-border);
    box-shadow: 0 18px 44px rgba(82, 101, 138, 0.1);
}

.section-heading h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--admin-text);
}

.section-heading--split {
    align-items: center;
}

.list-stack {
    display: grid;
    gap: 12px;
}

.list-card {
    padding: 14px;
    background: rgba(248, 250, 255, 0.88);
    border: 1px solid rgba(128, 146, 179, 0.12);
}

.list-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.list-card__header strong {
    color: var(--admin-text);
    font-size: 16px;
}

.card-subtitle {
    margin-top: 4px;
    font-size: 13px;
}

.status-pill {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
}

.status-pill--success {
    background: rgba(38, 175, 118, 0.14);
    color: #188b5f;
}

.status-pill--muted {
    background: rgba(128, 146, 179, 0.14);
    color: #4f5d78;
}

.meta-pairs {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.45;
}

.content-block {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(128, 146, 179, 0.16);
}

.content-block strong {
    display: block;
    margin-bottom: 6px;
    color: var(--admin-text);
    font-size: 14px;
}

.inline-editor {
    margin-bottom: 14px;
    padding: 14px;
    background: rgba(247, 250, 255, 0.92);
    border: 1px solid rgba(128, 146, 179, 0.14);
}

.inline-editor__title {
    margin-bottom: 14px;
    color: var(--admin-text);
    font-size: 16px;
    font-weight: 700;
}

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

.mobile-form__grid {
    display: grid;
    gap: 12px;
}

.field {
    display: grid;
    gap: 8px;
}

.field--full {
    grid-column: 1 / -1;
}

.field span {
    font-size: 14px;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(128, 146, 179, 0.22);
    border-radius: 12px;
    background: #ffffff;
    color: var(--admin-text);
    outline: none;
}

.auth-phone .field input {
    min-height: 60px;
    padding: 0 18px;
    border-radius: 16px;
    border-color: rgba(188, 200, 228, 0.8);
    background: rgba(242, 246, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.auth-phone .field {
    gap: 10px;
}

.auth-phone .field span {
    color: #64739b;
    font-size: 14px;
}

.auth-phone .field input::placeholder {
    color: #9ea9c7;
}

.auth-phone .button--primary {
    background: linear-gradient(135deg, #3559f7 0%, #6177ff 100%);
}

@media (max-width: 767px) {
    .auth-phone {
        min-height: 100vh;
        padding: 24px 12px;
    }
}

@media (max-width: 420px) {
    .auth-phone__card {
        width: 100%;
        padding: 24px 18px 20px;
        border-radius: 22px;
    }

    .auth-phone__card h1 {
        font-size: 28px;
    }
}

.field textarea {
    resize: vertical;
    min-height: 110px;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #94a0b5;
}

.toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.row-actions--compact {
    margin-top: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
}

.button--primary {
    background: linear-gradient(135deg, #3b63ff 0%, #5e7cff 100%);
    color: var(--white);
    box-shadow: 0 12px 26px rgba(59, 99, 255, 0.2);
}

.button--ghost {
    background: rgba(255, 255, 255, 0.92);
    color: var(--admin-text);
    border: 1px solid rgba(128, 146, 179, 0.18);
}

.button--danger {
    background: rgba(255, 77, 79, 0.12);
    color: #d84145;
}

.button--block {
    width: 100%;
}

.empty-state {
    padding: 18px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.45;
    border: 1px dashed rgba(128, 146, 179, 0.22);
}

.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px 16px;
}

.error-card {
    width: 100%;
    padding: 24px 18px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(128, 146, 179, 0.16);
    color: var(--admin-text);
    box-shadow: 0 18px 44px rgba(82, 101, 138, 0.12);
}

.error-card h1 {
    margin-bottom: 12px;
    font-size: 22px;
}

.error-card p {
    color: var(--admin-muted);
    line-height: 1.55;
}

body.admin-body .page-shell {
    background: var(--admin-bg);
}

body.auth-body .page-shell {
    background: transparent;
}

body.admin-body .page-shell,
body.auth-body .page-shell,
body.error-page {
    color: var(--admin-text);
}

.is-hidden {
    display: none !important;
}

@media (min-width: 768px) {
    body.member-body,
    body.member-body--immersive,
    body.admin-body,
    body.auth-body {
        padding: 18px 0;
    }

    .page-shell {
        min-height: calc(100vh - 36px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 34px;
        box-shadow: var(--shadow);
    }
}

@media (max-width: 767px) {
    .page-shell {
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        border: 0;
    }
}
