:root[data-domain-theme="custom"] {
    --teal: var(--domain-accent);
    --teal-dark: color-mix(in srgb, var(--domain-accent), #000 22%);
    --teal-deep: color-mix(in srgb, var(--domain-accent), #000 40%);
    --teal-light: color-mix(in srgb, var(--domain-accent), #fff 25%);
    --teal-soft: color-mix(in srgb, var(--domain-accent), #fff 90%);
}
:root[data-domain-surface="solid"] { --glass: #fff; }
:root[data-domain-surface="solid"] .glass { backdrop-filter: none; -webkit-backdrop-filter: none; }
@font-face {
    font-family: Outfit;
    src: url('/assets/outfit-400.woff2');
    font-weight: 400
}

@font-face {
    font-family: Outfit;
    src: url('/assets/outfit-500.woff2');
    font-weight: 500
}

@font-face {
    font-family: Outfit;
    src: url('/assets/outfit-600.woff2');
    font-weight: 600
}

@font-face {
    font-family: Outfit;
    src: url('/assets/outfit-700.woff2');
    font-weight: 700
}

@font-face {
    font-family: Outfit;
    src: url('/assets/outfit-800.woff2');
    font-weight: 800
}

:root {
    color-scheme: light;
    --text-primary: #080808;
    --ink: #152a3a;
    --muted: #5d6f7c;
    --teal: #0e8f84;
    --teal-dark: #0a5f5c;
    --teal-deep: #073f42;
    --teal-light: #2fd1b8;
    --teal-soft: #dff6f2;
    --orange: #ff8a1f;
    --orange-dark: #f06a00;
    --orange-soft: #fff0e2;
    --purple: #8b4cf6;
    --line: #d9ece8;
    --glass: rgba(255, 255, 255, .72);
    font-family: Outfit, system-ui, sans-serif;
    color: var(--ink);
    background: #eef8f6
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 30% 10%, #c8f5ec 0, transparent 45%),
        radial-gradient(ellipse at 100% 100%, #ffe4c955 0, transparent 40%),
        linear-gradient(180deg, #f3fbfa, #eaf6f4);
}

button,
input,
textarea {
    font: inherit
}

button {
    cursor: pointer;
    color: inherit
}

button:disabled {
    cursor: wait;
    opacity: .6
}

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

:focus-visible {
    outline: 3px solid #14a597;
    outline-offset: 3px
}

svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0
}

.icons {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden
}

[hidden] {
    display: none !important
}

.glass {
    background: var(--glass);
    border: 1px solid #ffffffe6;
    box-shadow: 0 14px 40px #0b5f5a14, inset 0 1px 0 #ffffffcc;
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    backdrop-filter: blur(22px) saturate(140%)
}

/* ---------- Layout ---------- */
.app {
    display: grid;
    grid-template-columns: 184px minmax(0, 1fr);
    min-height: 100vh;
    max-width: 1800px;
    margin: auto
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 30px 14px 26px;
    background: url(assets/banner2.png) no-repeat 64% 4%/100%;
    color: #e4f6f3
}

.brand {
    position: relative;
    align-self: center;
    text-decoration: none;
    color: #fff;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1
}

.brand span {
    background: linear-gradient(160deg, #c08bff, #8b4cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.brand-spark {
    position: absolute;
    right: 2px;
    top: -16px;
    width: 16px;
    height: 16px;
    fill: #b57bff;
    stroke: none
}

.nav-items {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%
}

.nav-items button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    padding: 10px 14px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: inherit;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2
}

.nav-items button:hover {
    background: #ffffff14
}

.nav-items button[aria-current=page] {
    background: linear-gradient(120deg, #2fd1b8, #13a596);
    color: #fff;
    box-shadow: 0 8px 22px #0a2e2e55, 0 0 22px #2fd1b844, inset 0 1px 0 #ffffff55
}

.nav-items svg {
    width: 26px;
    height: 26px
}

.lbl-short {
    display: none
}

.side-waves {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 34%;
    pointer-events: none;
    
}

.main {
    min-width: 0;
    padding: 22px 0px 0
}

.topbar {
    border-radius: 22px;
    min-height: 76px;
    display: flex;
    align-items: center;
    padding: 14px 20px;
    gap: 16px
}

.orb {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    background: radial-gradient(circle at 70% 40%, #fff 0 34%, transparent 35%), linear-gradient(140deg, #2fd1b8, #0a5f5c)
}

.greeting {
    display: flex;
    flex-direction: column;
    gap: 2px
}

.greeting strong {
    font-size: 18px;
    font-weight: 600
}

.greeting span {
    font-size: 14px;
    color: var(--muted)
}

.top-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px
}

.divider {
    width: 1px;
    height: 34px;
    background: var(--line)
}

.icon-button {
    background: #ffffff90;
    border: 1px solid var(--line);
    color: var(--teal-dark);
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    flex-shrink: 0
}

.icon-button:hover {
    background: var(--teal-soft)
}

.profile {
    border: 0;
    background: none;
    display: flex;
    gap: 10px;
    align-items: center;
    text-align: left;
    padding: 4px;
    border-radius: 14px
}

.profile:hover {
    background: #ffffff80
}

.profile>span {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, #13a596, #0a5f5c);
    color: #fff;
    font-weight: 600
}

.profile b {
    font-size: 14px;
    font-weight: 600
}

.profile small {
    display: block;
    color: var(--muted);
    font-size: 12px
}

.profile .chev {
    width: 18px;
    height: 18px;
    color: var(--muted)
}

.content {
        display: grid;
    grid-template-columns: minmax(294px, 0.9fr) minmax(380px, 1.35fr);
    gap: 9px;
    max-width: 1258px;
    margin: 24px auto 0;
    align-items: start;
}

/* ---------- Companion (hero) ---------- */
.companion {
    position: sticky;
    top: 22px
}

.hero-art {
     position: relative;
    height: 400px;
    margin: -16px 0px -46px;
}

/* .hero-waves {
    position: absolute; inset: 40px -20px 0; width: calc(100% + 40px); height: calc(100% - 40px);
    -webkit-mask-image: radial-gradient(ellipse 75% 85% at 50% 45%, #000 55%, transparent 85%);
    mask-image: radial-gradient(ellipse 75% 85% at 50% 45%, #000 55%, transparent 85%)
} */
.hero {
         position: relative;
    width: 102%;
    height: 97%;
    object-fit: cover;
    object-position: 16% 6%;
    /* -webkit-mask-image: radial-gradient(ellipse 61% 126% at 59% 45%, #000 93%, transparent 100%); */
    /* mask-image: radial-gradient(ellipse 99% 185% at 52% 44%, #000 62%, transparent 100%); */
    z-index: 1;
}
.guia-logN{
    position: relative;
    width: 30%;
}
.guia-log{
    position: relative;
    width: 80%;
}

.intro {
    position: relative;
    border-radius: 26px;
    padding: 8px 17px;
    background: #ffffffd9;
    margin-top: 29px;
    margin-left: 11px;

}

.intro h1 {
    position: relative;
    display: inline-block;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -.5px;
    margin: 0 0 6px;
    color: var(--text-primary)
}

.intro h1 span {
    background: linear-gradient(160deg, #a46bff, #6d2fe0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800
}

.h1-spark {
    position: absolute;
    right: -6px;
    top: -12px;
    width: 14px;
    height: 14px;
    fill: var(--purple);
    stroke: none
}

.intro h2 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    color: var(--ink)
}

.intro p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.1;
    margin: 3px 0 9px;
}

.intro-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px
}

.status {
    font-size: 12px;
    color: var(--teal-dark);
    background: var(--teal-soft);
    border-radius: 24px;
    padding: 8px 12px;
    display: flex;
    gap: 7px;
    align-items: center
}

.status i {
    width: 7px;
    height: 7px;
    background: #14bd95;
    border-radius: 50%
}

.voice-toggle {
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    background: #fff;
    color: var(--teal-dark)
}

.voice-toggle svg {
    width: 15px;
    height: 15px
}

.voice-toggle[aria-pressed=true] {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff
}

/* ---------- Home cards ---------- */
.workspace {
    min-width: 0
}

.section-heading {
    margin: 6px 0 18px
}

.section-heading h2 {
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -.5px;
    margin: 0 0 6px;
    color: var(--teal-deep)
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 15px
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 1.6px;
    font-weight: 600;
    color: var(--teal)
}

.mode-card {
    --accent: var(--teal);
    --accent-dark: var(--teal-dark);
    --accent-soft: var(--teal-soft);
    border-radius: 26px;
    padding: 20px;
    margin-bottom: 18px
}

.platform-card {
    --accent: var(--orange);
    --accent-dark: var(--orange-dark);
    --accent-soft: var(--orange-soft)
}

.mode-heading {
    display: flex;
    gap: 16px;
    align-items: center
}

.mode-icon {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: radial-gradient(circle at 30% 25%, #ffffff40, transparent 55%), linear-gradient(150deg, #13a596, #0a5f5c);
    box-shadow: 0 10px 24px #0a5f5c33, inset 0 -3px 8px #00000022
}

.platform-card .mode-icon,
.chat-panel[data-mode=gm] .mode-icon {
    background: radial-gradient(circle at 30% 25%, #ffffff55, transparent 55%), linear-gradient(150deg, #ffa448, #f06a00);
    box-shadow: 0 10px 24px #f06a0033, inset 0 -3px 8px #00000018
}

.mode-icon svg {
    width: 34px;
    height: 34px
}

.mode-text {
    flex: 1;
    min-width: 0
}

.mode-heading h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 6px;
    color: var(--teal-deep)
}

.mode-heading h3 em,
.chat-heading em {
    font-style: normal;
    color: var(--teal)
}

.platform-card h3 em,
.chat-panel[data-mode=gm] .chat-heading em {
    color: var(--orange-dark)
}

.mode-heading p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
    line-height: 1.5
}

.mode-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    align-self: stretch;
    gap: 12px
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 999px;
    color: #c75a00;
    background: var(--orange-soft)
}

.badge svg {
    width: 15px;
    height: 15px
}

.platform-card .badge {
    color: var(--teal-dark);
    background: var(--teal-soft)
}

.round-go {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent-dark)
}

.round-go:hover {
    background: var(--accent);
    color: #fff
}

.round-go svg {
    width: 20px;
    height: 20px
}

.preview-box {
    margin-top: 16px;
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(180deg, #f2fbf9cc, #e9f7f4cc);
    border: 1px solid #ffffff
}

.platform-card .preview-box {
    background: linear-gradient(180deg, #f6fbfacc, #edf7f5cc)
}

.preview {
    display: flex;
    gap: 12px;
    align-items: flex-start
}

.face {
   width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 23%;
    object-view-box: inset(-2% 8% 23% 15%);
    background: var(--teal-soft);
    flex-shrink: 0;
    border: 2px solid #fff;
}

.preview p {
    margin: 0;
    padding: 11px 15px;
    border-radius: 4px 16px 16px;
    background: #fff;
    box-shadow: 0 2px 8px #0a5f5c0f;
    line-height: 1.45;
    font-size: 14px
}

.suggestions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px
}

.suggestions button {
    border: 1px solid #c9ece5;
    background: #d9f4ee;
    color: var(--teal-dark);
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 12.5px;
    text-align: left
}

.suggestions button:hover {
    background: #c3ece4
}

.quick-ask {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 5px 5px 5px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 2px 8px #0a5f5c0d
}

.quick-ask:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent)
}

.quick-ask input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: none;
    padding: 9px 0;
    font-size: 15px;
    color: var(--ink)
}

.quick-ask input::placeholder,
.composer textarea::placeholder {
    color: #8a9aa5
}

.send {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(150deg, #13a596, #0a5f5c);
    box-shadow: 0 4px 12px #0a5f5c33
}

.platform-card .send,
.chat-panel[data-mode=gm] .send {
    background: linear-gradient(150deg, #ffa448, #f06a00);
    box-shadow: 0 4px 12px #f06a0033
}

.send:hover {
    filter: brightness(1.08)
}

.send svg {
    width: 19px;
    height: 19px
}

.primary {
    background: linear-gradient(110deg, #13a596, #0a5f5c);
    color: #fff;
    border: 0;
    border-radius: 14px;
    padding: 13px 20px;
    font-weight: 600
}

.primary:hover {
    filter: brightness(1.08)
}

.engine-note {
    text-align: center;
    color: var(--muted);
    font-size: 11px;
    margin: 16px 0
}

.app-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #7b8d97;
    font-size: 11px;
    margin: 28px auto 0;
    padding: 18px 0;
    max-width: 1240px
}

/* ---------- Chat ---------- */
.chat-panel {
    display: flex;
    flex-direction: column;
    border-radius: 26px;
    overflow: hidden;
    height: min(740px, calc(100dvh - 150px));
    min-height: 470px
}

.chat-heading {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    background: #ffffff55
}

.chat-heading .mode-icon {
    width: 50px;
    height: 50px
}

.chat-heading .mode-icon svg {
    width: 24px;
    height: 24px
}

.chat-heading h2 {
    font-size: 20px;
    margin: 0;
    color: var(--teal-deep)
}

.chat-heading span {
    font-size: 12px;
    color: var(--muted)
}

.chat-actions {
    display: flex;
    gap: 7px;
    margin-left: auto
}

.chat-actions .icon-button {
    width: 36px;
    height: 36px
}

.messages {
    overflow-y: auto;
    overscroll-behavior: contain;
    flex: 1;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scrollbar-width: thin
}

.message {
    display: flex;
    gap: 10px;
    align-items: flex-start
}

.message .face {
    width: 55px;
    height: 55px
}

.message-body {
    max-width: calc(100% - 50px);
    min-width: 0
}

.message-text {
    padding: 12px 15px;
    border-radius: 4px 18px 18px;
    background: #fff;
    border: 1px solid var(--line);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 15px;
    line-height: 1.55
}

.message.user {
    justify-content: flex-end
}

.message.user .message-body {
    max-width: 85%
}

.message.user .message-text {
    background: linear-gradient(120deg, #13a596, #0a5f5c);
    color: #fff;
    border: 0;
    border-radius: 18px 4px 18px 18px
}

.chat-panel[data-mode=gm] .message.user .message-text {
    background: linear-gradient(120deg, #ff9a3c, #ec6400)
}

.message.pending .message-text {
    color: var(--muted)
}

.message-source {
    font-size: 11px;
    color: var(--muted);
    margin: 7px 3px 0
}

.listen-button {
    background: none;
    border: 0;
    font-size: 11px;
    color: var(--teal-dark);
    padding: 7px 2px
}

.chat-footer {
    border-top: 1px solid var(--line);
    padding: 12px 16px;
    background: #ffffff55
}

.chat-footer .suggestions {
    margin-top: 0
}

.composer {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-top: 12px;
    padding: 5px 5px 5px 18px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid var(--line)
}

.composer:focus-within {
    border-color: var(--teal)
}

.chat-panel[data-mode=gm] .composer:focus-within {
    border-color: var(--orange)
}

.composer textarea {
    resize: none;
    border: 0;
    outline: none;
    background: none;
    min-width: 0;
    flex: 1;
    padding: 10px 0;
    font-size: 16px;
    max-height: 120px;
    color: var(--ink)
}

.chat-fine {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px 10px;
    color: var(--muted);
    font-size: 11px;
    margin-top: 10px
}

.chat-fine button {
    border: 0;
    background: none;
    color: var(--teal-dark);
    font-size: 11px;
    text-decoration: underline
}

/* ---------- History & help ---------- */
.utility-panel {
    border-radius: 26px;
    padding: 28px;
    min-height: 450px
}

.utility-panel h2 {
    font-size: 28px;
    margin: 8px 0;
    color: var(--teal-deep)
}

.utility-panel h3 {
    font-size: 17px;
    margin: 24px 0 6px;
    color: var(--teal-dark)
}

.utility-panel p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted)
}

.muted {
    color: var(--muted)
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px
}

.history-item {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffffb0;
    padding: 16px;
    text-align: left
}

.history-item:hover {
    border-color: var(--teal-light);
    background: #fff
}

.history-item b {
    display: block;
    font-weight: 600
}

.history-item small {
    color: var(--muted);
    font-size: 11px;
    display: block;
    margin-top: 5px
}

.connection-note {
    border-top: 1px solid var(--line);
    padding-top: 16px
}

/* ---------- Notices & dialogs ---------- */
.notice {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 6px 30px #0a3c3c22;
    padding: 13px 20px;
    border-radius: 15px;
    max-width: min(90vw, 600px);
    z-index: 50;
    font-size: 14px
}

.notice[data-error=true] {
    border-color: #e2a08f;
    color: #a3361b
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap
}

dialog {
    border: 1px solid #ffffffe6;
    border-radius: 26px;
    background: #f8fdfcf5;
    backdrop-filter: blur(24px);
    box-shadow: 0 20px 90px #06323444;
    padding: 30px;
    color: var(--ink);
    width: min(480px, calc(100vw - 28px));
    max-height: 90dvh
}

dialog::backdrop {
    background: #06323455;
    backdrop-filter: blur(8px)
}

dialog h2 {
    font-size: 26px;
    margin: 10px 0;
    color: var(--teal-deep)
}

dialog p {
    color: var(--muted);
    line-height: 1.5;
    font-size: 14px
}

dialog label {
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin: 20px 0 7px
}

dialog input,
dialog textarea {
    width: 100%;
    border: 1px solid #cfe5e0;
    background: #fff;
    border-radius: 12px;
    padding: 13px;
    font-size: 16px;
    color: var(--ink)
}

dialog input:focus,
dialog textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px #13a59633
}

dialog .primary {
    width: 100%;
    margin-top: 14px
}

.dialog-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.dialog-error {
    color: #a42d50;
    min-height: 1em;
    margin: 7px 0
}

/* ---------- Bottom navigation (compact + small screens) ---------- */
.app[data-size=compact] {
    grid-template-columns: 1fr;
    max-width: 520px;
    min-height: 100dvh
}

.app[data-size=compact] .main {
    padding: 12px 12px 82px
}

.app[data-size=compact] .sidebar,
.app[data-size=compact] .nav-items {
    flex-direction: row
}

.app[data-size=compact] .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: 68px;
    width: min(100%, 520px);
    margin: auto;
    padding: 6px 10px;
    z-index: 20;
    border-radius: 20px 20px 0 0;
    justify-content: center
}

.app[data-size=compact] .brand,
.app[data-size=compact] .side-waves {
    display: none
}

.app[data-size=compact] .nav-items {
    justify-content: space-between;
    gap: 2px
}

.app[data-size=compact] .nav-items button {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 54px;
    padding: 6px 4px;
    font-size: 10.5px;
    text-align: center;
    border-radius: 14px
}

.app[data-size=compact] .nav-items svg {
    width: 21px;
    height: 21px
}

.app[data-size=compact] .lbl-long {
    display: none
}

.app[data-size=compact] .lbl-short {
    display: inline
}

.app[data-size=compact] .companion,
.app[data-size=compact] .app-footer,
.app[data-size=compact] .divider {
    display: none
}

.app[data-size=compact] .content {
    grid-template-columns: 1fr;
    margin-top: 14px;
    gap: 0
}

.app[data-size=compact] .topbar {
    padding: 12px;
    min-height: 66px;
    border-radius: 20px;
    gap: 10px
}

.app[data-size=compact] .greeting strong {
    font-size: 14px
}

.app[data-size=compact] .greeting span {
    font-size: 11px
}

.app[data-size=compact] .orb {
    width: 36px;
    height: 36px
}

.app[data-size=compact] .profile div,
.app[data-size=compact] .profile .chev {
    display: none
}

.app[data-size=compact] .profile {
    padding: 0
}

.app[data-size=compact] .profile>span {
    width: 34px;
    height: 34px
}

.app[data-size=compact] .top-actions {
    gap: 6px
}

.app[data-size=compact] .top-actions .icon-button {
    width: 32px;
    height: 32px
}

.app[data-size=compact] .top-actions svg {
    width: 18px;
    height: 18px
}

.app[data-size=compact] .chat-panel {
    height: calc(100dvh - 170px);
    min-height: 380px;
    border-radius: 22px
}

.app[data-size=compact] .chat-heading {
    padding: 14px 12px;
    gap: 10px
}

.app[data-size=compact] .chat-heading h2 {
    font-size: 17px
}

.app[data-size=compact] .chat-heading span {
    display: none
}

.app[data-size=compact] .chat-heading .mode-icon {
    width: 40px;
    height: 40px
}

.app[data-size=compact] .chat-actions button {
    width: 31px;
    height: 31px
}

.app[data-size=compact] .section-heading h2 {
    font-size: 23px
}

.app[data-size=compact] .mode-card {
    padding: 16px
}

.app[data-size=compact] .mode-heading {
    gap: 12px;
    align-items: flex-start
}

.app[data-size=compact] .mode-icon {
    width: 50px;
    height: 50px
}

.app[data-size=compact] .mode-heading .mode-icon svg {
    width: 25px;
    height: 25px
}

.app[data-size=compact] .mode-heading h3 {
    font-size: 19px
}

.app[data-size=compact] .mode-heading p {
    font-size: 13px
}

.app[data-size=compact] .badge {
    display: none
}

.app[data-size=compact] .round-go {
    width: 36px;
    height: 36px
}

.app[data-size=compact] .preview-box {
    padding: 12px
}

.app[data-size=compact] .face {
    width: 38px;
    height: 38px
}

.app[data-size=compact] .preview p {
    font-size: 13px
}

.app[data-size=compact] .notice {
    bottom: 80px
}

@media (max-width: 1100px) {
    .app {
        grid-template-columns: 96px minmax(0, 1fr)
    }

    .sidebar {
        padding: 28px 10px 22px
    }

    .brand {
        font-size: 28px
    }

    .brand-spark {
        width: 12px;
        height: 12px;
        top: -12px
    }

    .nav-items button {
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding: 8px 4px;
        font-size: 10.5px;
        text-align: center
    }

    .lbl-long {
        display: none
    }

    .lbl-short {
        display: inline
    }

    .main {
        padding: 18px 20px 0
    }

    .content {
        grid-template-columns: minmax(250px, .8fr) minmax(360px, 1.2fr);
        gap: 22px
    }

    .hero-art {
        height: 330px;
        margin-bottom: -56px
    }

    .intro {
        padding: 22px
    }

    .intro h1 {
        font-size: 28px
    }

    .mode-heading h3 {
        font-size: 21px
    }

    .mode-icon {
        width: 58px;
        height: 58px
    }

    .mode-icon svg {
        width: 28px;
        height: 28px
    }
}

@media (max-width: 860px) {
    .app {
        grid-template-columns: 1fr
    }

    .main {
        padding: 12px 14px 86px
    }

    .sidebar {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        height: 68px;
        z-index: 20;
        flex-direction: row;
        justify-content: center;
        padding: 6px 10px;
        border-radius: 20px 20px 0 0
    }

    .brand,
    .side-waves,
    .companion,
    .app-footer,
    .divider,
    .profile div,
    .profile .chev {
        display: none
    }

    .nav-items {
        flex-direction: row;
        justify-content: space-around;
        gap: 2px;
        max-width: 560px
    }

    .nav-items button {
        min-height: 54px;
        border-radius: 14px
    }

    .nav-items svg {
        width: 22px;
        height: 22px
    }

    .content {
        grid-template-columns: 1fr;
        max-width: 620px;
        margin-top: 18px
    }

    .topbar {
        padding: 12px;
        gap: 10px;
        min-height: 66px;
        border-radius: 20px
    }

    .greeting strong {
        font-size: 15px
    }

    .greeting span {
        font-size: 12px
    }

    .orb {
        width: 38px;
        height: 38px
    }

    .top-actions {
        gap: 8px
    }

    .profile {
        padding: 0
    }

    .profile>span {
        width: 34px;
        height: 34px
    }

    .chat-panel {
        height: calc(100dvh - 172px);
        min-height: 400px
    }

    .notice {
        bottom: 80px
    }

    .section-heading h2 {
        font-size: 25px
    }
}

@media (max-width: 520px) {
    .mode-heading {
        align-items: flex-start;
        gap: 12px
    }

    .mode-icon {
        width: 48px;
        height: 48px
    }

    .mode-heading .mode-icon svg {
        width: 24px;
        height: 24px
    }

    .mode-heading h3 {
        font-size: 19px
    }

    .mode-heading p {
        font-size: 13px
    }

    .badge {
        display: none
    }

    .round-go {
        width: 36px;
        height: 36px
    }

    .mode-card {
        padding: 16px
    }

    .preview-box {
        padding: 12px
    }

    .face {
        width: 36px;
        height: 36px
    }

    .messages {
        padding: 18px 12px
    }

    .message .face {
        width: 32px;
        height: 32px
    }

    .message-body {
        max-width: calc(100% - 42px)
    }

    .message-text {
        font-size: 14px;
        padding: 11px 12px
    }
}

@media (max-width: 380px) {
    .greeting span {
        display: none
    }

    .greeting strong {
        font-size: 13px
    }

    .orb {
        width: 32px;
        height: 32px
    }

    .chat-heading h2,
    .app[data-size=compact] .chat-heading h2 {
        font-size: 15px
    }

    .chat-heading .mode-icon,
    .app[data-size=compact] .chat-heading .mode-icon {
        width: 34px;
        height: 34px
    }
}

@media (prefers-reduced-transparency: reduce) {
    .glass {
        background: #fbfefd;
        backdrop-filter: none
    }

    .message-text {
        background: #fff
    }
}

@media (prefers-reduced-motion: no-preference) {
    button {
        transition: background .18s, filter .18s, color .18s
    }


    @keyframes breathe {
        50% {
            transform: translateY(-5px)
        }
    }
}
.support-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.support-item{border:1px solid var(--line);border-radius:19px;background:#ffffffab;padding:18px}.support-item h3{margin:0 0 5px;font-size:17px}.support-item time{display:block;font-size:11px;color:var(--muted)}.delivery-badge{display:inline-block;margin-top:12px;padding:6px 10px;border-radius:15px;font-size:11px;color:#573282;background:#f0e8fc}.support-item .support-summary{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;color:var(--ink);margin:14px 0}.support-item .support-detail{font-size:12px;margin:0;color:var(--muted)}.support-back{margin-top:22px;border:0;background:none;color:var(--purple-dark);padding:8px 0;font:inherit}

.delivery-badge{background:var(--teal-soft);color:var(--teal-deep)}.support-back{color:var(--teal)}
