﻿/**
 * My Agent — full-page chat layer (mobile-first Junior shell)
 */

/* Full-height chat: hide page chrome that steals vertical space */
body.assistant-layer-page .partners-section,
body.assistant-layer-page #partners,
body.assistant-layer-page .footer,
body.assistant-layer-page footer,
body.assistant-layer-page .site-footer {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.assistant-layer-page .content-wrapper.assistant-content-shell,
body.assistant-layer-page main.content-wrapper.assistant-content-shell,
body.assistant-layer-page .content-wrapper.assistant-content-shell .content-inner {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    box-sizing: border-box;
}

body.assistant-layer-page #umAssistant,
body.assistant-layer-page .um-assistant.um-layer-page--assistant,
body.assistant-layer-page .um-assistant.um-layer-page {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

body.assistant-layer-page .um-assistant__layout {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

html:has(body.assistant-layer-page),
body.assistant-layer-page.commerce-2040-page {
    background: var(--asst-canvas, #ffffff) !important;
}

body.assistant-layer-page .whatsapp-fab {
    display: none !important;
}

/* Demand pulse ticker â€” not on agent chat (steals space + clashes with workspace) */
body.assistant-layer-page .ldb-shell {
    display: none !important;
}

@media (max-width: 991px) {
    body.assistant-layer-page.commerce-2040-page.has-unimart-nav {
        padding-bottom: 0 !important;
    }
}

.um-layer-page--assistant {
    --um-layer-accent: #111111;
    --asst-canvas: #ffffff;
    --asst-canvas-accent: transparent;
    --asst-canvas-cool: transparent;
    --asst-ink: #111111;
    --asst-ink-soft: #6b7280;
    --asst-bg: var(--asst-canvas);
    --asst-surface: #ffffff;
    --asst-surface-2: #f5f5f5;
    --asst-border: rgba(0, 0, 0, 0.08);
    --asst-text: var(--asst-ink);
    --asst-text-muted: var(--asst-ink-soft);
    --asst-accent: #111111;
    --asst-content-max: 720px;
    --assistant-top-offset: var(--top-nav-height-mobile, 48px);
    --assistant-bottom-offset: var(--mobile-bottom-nav-height, calc(64px + env(safe-area-inset-bottom, 0px)));
    --assistant-vh-offset: var(--assistant-top-offset);
    display: flex;
    flex-direction: column;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    height: calc(100dvh - var(--assistant-top-offset) - var(--assistant-bottom-offset));
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.um-assistant {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
}

.um-assistant__layout {
    flex: 1;
    min-height: 0;
    display: flex;
    width: 100%;
    max-width: none;
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
}

/* Sidebar — desktop only, light theme */
.um-assistant__sidebar {
    display: none;
    flex-direction: column;
    width: 260px;
    flex-shrink: 0;
    padding: 1.15rem 0.9rem;
    background: #fff;
    color: var(--asst-ink, #1e293b);
    border-right: 1px solid var(--asst-border, rgba(15, 23, 42, 0.08));
    overflow: hidden;
    min-height: 0;
}

@media (min-width: 992px) {
    .um-assistant__sidebar {
        display: flex;
    }
}

.um-assistant__brand {
    font-family: var(--unimart-font-display);
    font-weight: 800;
    font-size: 1rem;
    margin: 0 0 0.2rem;
}

.um-assistant__brand i {
    color: var(--unimart-orange, #f68b1e);
    margin-right: 0.35rem;
}

.um-assistant__brand-sub {
    margin: 0 0 1rem;
    font-size: 0.76rem;
    color: var(--asst-ink-soft, #64748b);
}

.um-assistant__brand-name {
    color: var(--asst-ink, #1e293b);
}

/* UNIMART site brand â€” sidebar + top bar */
.um-assistant__site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    max-width: 100%;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s ease;
}

.um-assistant__site-brand:hover {
    opacity: 0.92;
    color: inherit;
}

.um-assistant__site-brand-logo {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--asst-border, rgba(15, 23, 42, 0.08));
    background: #fff;
}

.um-assistant__site-brand-text {
    font-family: var(--unimart-font-display);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.um-assistant__site-brand-uni {
    color: var(--asst-ink, #1e293b);
}

.um-assistant__site-brand-africa {
    color: #0a2540;
}

.um-assistant__desktop-title,
.um-assistant__mobile-brand {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
}

.um-assistant__mobile-brand {
    justify-content: center;
}

.um-assistant__mobile-brand .um-assistant__site-brand {
    justify-content: center;
}

.um-assistant__history {
    margin-bottom: 1rem;
    min-height: 0;
    flex: 0 1 auto;
    max-height: 38%;
    overflow-y: auto;
}

.um-assistant__history-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--asst-ink-soft, #64748b);
    margin: 0 0 0.45rem;
}

.um-assistant__history-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.um-assistant__history-row {
    display: flex;
    align-items: stretch;
    gap: 0.15rem;
    margin-bottom: 0.2rem;
    border-radius: 7px;
    position: relative;
}

.um-assistant__history-row:hover .um-assistant__history-menu-btn,
.um-assistant__history-row:focus-within .um-assistant__history-menu-btn,
.um-assistant__history-menu-btn[aria-expanded="true"] {
    opacity: 1;
}

.um-assistant__history-item {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.45rem 0.5rem;
    border-radius: 7px;
    text-decoration: none;
    color: var(--asst-ink, #1e293b);
    background: transparent;
    transition: background 0.15s ease;
}

.um-assistant__history-item:hover,
.um-assistant__history-item.is-active {
    background: rgba(15, 23, 42, 0.04);
    color: var(--asst-ink, #1e293b);
}

.um-assistant__history-menu {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding-right: 0.15rem;
}

.um-assistant__history-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--asst-ink-soft, #64748b);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.um-assistant__history-menu-btn:hover,
.um-assistant__history-menu-btn[aria-expanded="true"] {
    background: rgba(15, 23, 42, 0.05);
    color: var(--asst-ink, #1e293b);
}

.um-assistant__history-dropdown {
    position: absolute;
    top: calc(100% + 0.2rem);
    right: 0;
    z-index: 30;
    min-width: 9.5rem;
    padding: 0.3rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--asst-border, rgba(15, 23, 42, 0.08));
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.um-assistant__history-dropdown[hidden] {
    display: none !important;
}

.um-assistant__history-delete {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.45rem 0.55rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--danger);
    font-size: 0.78rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.um-assistant__history-delete:hover {
    background: rgba(239, 68, 68, 0.14);
    color: var(--primary-light);
}

.um-assistant__history-title {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.um-assistant__history-preview {
    display: block;
    font-size: 0.68rem;
    color: var(--asst-ink-soft, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.um-assistant__history-empty {
    font-size: 0.72rem;
    color: var(--asst-ink-soft, #64748b);
    padding: 0.25rem 0.5rem;
}

.um-assistant__history-toggle {
    border: none;
    background: transparent;
    color: #fff;
    padding: 0.35rem 0.5rem;
    font-size: 1rem;
}

.um-assistant__history-sheet {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 40;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.um-assistant__history-sheet[hidden] {
    display: none !important;
}

.um-assistant__history-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid #e8e8e8;
    flex-shrink: 0;
    background: #fff;
}

.um-assistant__history-sheet-head strong {
    font-size: 1rem;
    color: var(--unimart-text, #1a1a2e);
}

.um-assistant__history-sheet-head button {
    border: none;
    background: transparent;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--gray);
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.um-assistant__history-list--sheet {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0.75rem 1rem;
    box-sizing: border-box;
    list-style: none;
    margin: 0;
}

.um-assistant__history-list--sheet .um-assistant__history-row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.um-assistant__history-list--sheet .um-assistant__history-item {
    color: var(--unimart-text);
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.um-assistant__history-list--sheet .um-assistant__history-title {
    display: block;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--unimart-text, #1a1a2e);
}

.um-assistant__history-list--sheet .um-assistant__history-preview {
    color: var(--gray);
    display: block;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.75rem;
    line-height: 1.35;
}

.um-assistant__history-list--sheet .um-assistant__history-menu-btn {
    color: var(--gray);
    opacity: 1;
}

.um-assistant__history-list--sheet .um-assistant__history-menu-btn:hover,
.um-assistant__history-list--sheet .um-assistant__history-menu-btn[aria-expanded="true"] {
    background: var(--gray-light);
    color: var(--unimart-text);
}

.um-assistant__history-list--sheet .um-assistant__history-dropdown {
    background: #fff;
    border-color: var(--unimart-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.um-assistant__history-list--sheet .um-assistant__history-delete {
    color: var(--danger);
}

.um-assistant__history-list--sheet .um-assistant__history-delete:hover {
    background: var(--primary-light);
    color: var(--danger);
}

.um-assistant__new-chat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.55rem 0.85rem;
    margin-bottom: 1rem;
    border: 1px solid var(--asst-border, rgba(15, 23, 42, 0.08));
    border-radius: 8px;
    background: #fff;
    color: var(--asst-ink, #1e293b);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.um-assistant__new-chat:hover {
    background: rgba(246, 139, 30, 0.06);
    border-color: rgba(246, 139, 30, 0.3);
}

.um-assistant__shortcuts-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 0.45rem;
}

.um-assistant__shortcut {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.48rem 0.55rem;
    margin-bottom: 0.25rem;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.8rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.um-assistant__shortcut i {
    color: var(--unimart-orange, #f68b1e);
    width: 0.95rem;
    text-align: center;
    font-size: 0.78rem;
}

.um-assistant__shortcut:hover {
    background: rgba(255, 255, 255, 0.08);
}

.um-assistant__sidebar-links {
    margin-top: auto;
    padding-top: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.um-assistant__sidebar-links a {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    padding: 0.22rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.um-assistant__sidebar-foot {
    display: none;
}

.um-assistant__desktop-bar {
    display: none;
}

/* Mobile: never show desktop center brand (orange top-nav carries UNIMART) */
.um-assistant__desktop-site-brand {
    display: none !important;
}

.um-assistant__sidebar-backdrop {
    display: none;
}

/* Main chat â€” fixed column; messages scroll inside */
.um-assistant__main {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
    background: var(--asst-canvas, #ffffff);
    overflow: hidden;
}

.um-assistant__main > :not(.um-assistant__mindscape) {
    position: relative;
    z-index: 1;
}

.um-assistant__mobile-bar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0.75rem 0.15rem;
    border: none;
    background: transparent;
    position: relative;
    z-index: 4;
}

.um-assistant__mobile-bar p {
    margin: 0;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--unimart-slate, #2c3e50);
}

.um-assistant__mobile-bar i {
    color: var(--unimart-orange, #f68b1e);
    margin-right: 0.35rem;
}

.um-assistant__mobile-new {
    border: none;
    background: var(--unimart-bg-muted);
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 8px;
    color: var(--unimart-slate);
    cursor: pointer;
}

.um-assistant__mobile-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.um-assistant__install-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(246, 139, 30, 0.45);
    border-radius: 999px;
    background: rgba(246, 139, 30, 0.12);
    color: var(--unimart-orange, #f68b1e);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
}

.um-assistant__install-btn[hidden] {
    display: none !important;
}

.um-assistant__install-btn i {
    font-size: 0.72rem;
}

.um-assistant__install-sheet {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.um-assistant__install-sheet[hidden] {
    display: none !important;
}

.um-assistant__install-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.um-assistant__install-sheet-panel {
    position: relative;
    width: 100%;
    max-width: 480px;
    padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    border-radius: 16px 16px 0 0;
    background: #fff;
    color: var(--unimart-slate, #2c3e50);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
}

.um-assistant__install-sheet-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.um-assistant__install-sheet-lead {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    color: rgba(44, 62, 80, 0.75);
}

.um-assistant__install-sheet-steps {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.um-assistant__install-sheet-steps li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: rgba(246, 139, 30, 0.08);
    border: 1px solid rgba(246, 139, 30, 0.2);
    font-size: 0.88rem;
}

.um-assistant__install-sheet-step-icon {
    color: var(--unimart-orange, #f68b1e);
    font-size: 1rem;
}

.um-assistant__install-sheet-close {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 10px;
    background: var(--unimart-orange, #f68b1e);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
}

body.um-assistant-install-sheet-open {
    overflow: hidden;
}

@media (min-width: 992px) {
    .um-assistant__install-btn,
    .um-assistant__install-sheet {
        display: none !important;
    }
}

.um-assistant__messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.25rem 1rem 0.75rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
    .um-assistant__messages {
        padding: 1.5rem 1.75rem 0.75rem;
    }
}

.um-assistant__messages-inner {
    max-width: 720px;
    margin: 0 auto;
}

/* Home updates link â€” updates live on Home tab, not here */
.um-assistant__home-updates {
    max-width: 720px;
    margin: 0 auto;
    padding: 0.65rem 0.5rem 0.35rem;
}

.um-assistant__home-updates-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(246, 139, 30, 0.25);
    background: rgba(246, 139, 30, 0.08);
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.4;
}

.um-assistant__home-updates-link:hover {
    border-color: rgba(246, 139, 30, 0.45);
    color: var(--secondary);
}

.um-assistant__home-updates-link > .fa-house {
    color: var(--unimart-orange, #f68b1e);
    flex-shrink: 0;
}

.um-assistant__home-updates-arrow {
    margin-left: auto;
    color: var(--unimart-orange, #f68b1e);
    flex-shrink: 0;
}

/* Daily brief â€” cross-layer pulse at top of chat */
.um-assistant__brief {
    max-width: 720px;
    margin: 0 auto;
    padding: 0.65rem 0.5rem 0.25rem;
}

.um-assistant__brief-head {
    margin-bottom: 0.65rem;
}

.um-assistant__brief-greeting {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--unimart-text);
}

.um-assistant__brief-agent {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    color: var(--gray);
}

.um-assistant__brief-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.um-assistant__brief-card {
    background: #fff;
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.um-assistant__brief-card-top {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}

.um-assistant__brief-layer {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray);
}

.um-assistant__brief-card--opportunities .um-assistant__brief-layer { color: var(--info); }
.um-assistant__brief-card--commerce .um-assistant__brief-layer { color: var(--unimart-orange, #f68b1e); }
.um-assistant__brief-card--services .um-assistant__brief-layer { color: var(--success); }

.um-assistant__brief-urgency {
    font-size: 0.62rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: rgba(246, 139, 30, 0.12);
    color: var(--unimart-orange, #f68b1e);
}

.um-assistant__brief-title {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    font-weight: 650;
    color: var(--unimart-text);
    line-height: 1.35;
}

.um-assistant__brief-why {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    color: var(--gray);
    line-height: 1.45;
}

.um-assistant__brief-action {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--unimart-orange, #f68b1e);
    text-decoration: none;
}

.um-assistant__brief-action:hover {
    text-decoration: underline;
}

.um-assistant__brief-empty {
    margin: 0;
    padding: 0.65rem 0.75rem;
    font-size: 0.8rem;
    color: var(--gray);
    background: rgba(255, 255, 255, 0.85);
    border: 1px dashed var(--unimart-border);
    border-radius: 10px;
}

/* Welcome */
.um-assistant__welcome {
    text-align: center;
    padding: 1.5rem 0.25rem 0.5rem;
    max-width: 560px;
    margin: 0 auto;
}

.um-assistant__welcome-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.85rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(246, 139, 30, 0.1);
    color: var(--unimart-orange, #f68b1e);
    font-size: 1.2rem;
}

.um-assistant__welcome h1 {
    font-family: var(--unimart-font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
    font-weight: 800;
    color: var(--unimart-text, #1a1a2e);
    margin: 0 0 0.4rem;
}

.um-assistant__welcome > p {
    color: var(--unimart-text-muted);
    font-size: 0.88rem;
    margin: 0 0 0.65rem;
    line-height: 1.5;
}

.um-assistant__campus-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.74rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: var(--unimart-bg-muted);
    color: var(--unimart-slate);
    margin-bottom: 1rem !important;
}

.um-assistant__welcome-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    text-align: left;
}

@media (min-width: 540px) {
    .um-assistant__welcome-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.um-assistant__welcome-card {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--unimart-border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    text-align: left;
}

.um-assistant__welcome-card strong {
    font-size: 0.84rem;
    color: var(--unimart-text);
}

.um-assistant__welcome-card span {
    font-size: 0.74rem;
    color: var(--unimart-text-muted);
}

.um-assistant__welcome-card:hover {
    border-color: rgba(246, 139, 30, 0.4);
    box-shadow: 0 4px 14px rgba(44, 62, 80, 0.05);
}

/* Welcome headline + quick chips (desktop shell) */
.um-assistant__welcome-headline {
    font-family: var(--unimart-font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
    font-weight: 800;
    color: var(--unimart-text, #1a1a2e);
    margin: 0 0 0.4rem;
}

.um-assistant__welcome-mobile-only {
    display: block;
}

.um-assistant__quick-chips {
    display: none;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    max-width: 768px;
    margin: 0 auto;
    padding: 0 1.25rem 0.65rem;
}

.um-assistant__quick-chips[hidden] {
    display: none !important;
}

.um-assistant__quick-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--unimart-border, var(--unimart-border));
    border-radius: 999px;
    background: transparent;
    color: var(--unimart-text, #1a1a2e);
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.um-assistant__quick-chip i {
    font-size: 0.72rem;
    color: var(--unimart-text-muted, #6b7280);
}

.um-assistant__quick-chip:hover {
    background: var(--unimart-bg-muted, var(--gray-light));
    border-color: rgba(246, 139, 30, 0.35);
}

.um-assistant__quick-chip--link {
    text-decoration: none;
}

.um-assistant__welcome-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    max-width: 560px;
    margin: 0 auto;
}

.um-assistant__welcome-actions--inline {
    margin-top: 1rem;
    padding: 0 0.25rem;
}

.um-assistant__composer-disclaimer {
    display: none;
    max-width: 768px;
    margin: 0.55rem auto 0;
    text-align: center;
    font-size: 0.68rem;
    line-height: 1.4;
    color: var(--unimart-text-muted, #6b7280);
}

/* Messages */
.um-assistant__msg {
    display: flex;
    margin-bottom: 0.85rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    animation: umAssistantFadeIn 0.2s ease;
}

@keyframes umAssistantFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.um-assistant__msg--user {
    justify-content: flex-end;
}

.um-assistant__msg--assistant,
.um-assistant__msg--system {
    justify-content: flex-start;
}

.um-assistant__msg-body {
    max-width: min(88%, 560px);
    width: 100%;
}

.um-assistant__msg--assistant .um-assistant__msg-body {
    max-width: 100%;
}

.um-assistant__msg-actions {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-top: 0.45rem;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.um-assistant__msg-action {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--unimart-text-muted, #6b7280);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

.um-assistant__msg-action:hover:not(:disabled) {
    background: var(--unimart-bg-muted, var(--gray-light));
    color: var(--unimart-text, #1a1a2e);
}

.um-assistant__msg-action:active:not(:disabled) {
    transform: scale(0.94);
}

.um-assistant__msg-action.is-active {
    color: var(--unimart-orange, #f68b1e);
    background: rgba(246, 139, 30, 0.12);
}

.um-assistant__msg-action.is-copied {
    color: var(--success, #16a34a);
    background: rgba(22, 163, 74, 0.1);
}

.um-assistant__msg-action:disabled,
.um-assistant__msg-action[hidden] {
    display: none;
}

.um-assistant__bubble {
    max-width: min(88%, 560px);
    padding: 0.75rem 0.95rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.52;
    word-break: break-word;
}

.um-assistant__msg--user .um-assistant__bubble {
    background: #f0f0f0;
    color: #111111;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom-right-radius: 4px;
    text-align: left;
}

.um-assistant__msg--assistant .um-assistant__bubble {
    background: #ffffff;
    color: #111111;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom-left-radius: 4px;
    text-align: left;
}

.um-assistant__msg--system .um-assistant__bubble {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.8rem;
    border: 1px solid var(--primary-light);
}

/* Rich assistant reply formatting (markdown â†’ HTML) */
.um-assistant__msg--assistant .um-assistant__formatted {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.um-assistant__para {
    margin: 0;
}

.um-assistant__para:last-child {
    margin-bottom: 0;
}

.um-assistant__heading {
    margin: 0;
    font-weight: 700;
    line-height: 1.35;
}

.um-assistant__heading--1 { font-size: 1.05rem; }
.um-assistant__heading--2 { font-size: 0.98rem; }
.um-assistant__heading--3,
.um-assistant__heading--4 { font-size: 0.92rem; }

.um-assistant__list {
    margin: 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.um-assistant__list li {
    line-height: 1.45;
}

.um-assistant__list--ordered {
    padding-left: 1.4rem;
}

.um-assistant__code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.84em;
    padding: 0.1em 0.35em;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.06);
}

.um-assistant__hr {
    border: none;
    border-top: 1px solid rgba(15, 23, 42, 0.12);
    margin: 0.15rem 0;
}

.um-assistant__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0.15rem 0;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
}

.um-assistant__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    line-height: 1.4;
    min-width: 280px;
}

.um-assistant__table th,
.um-assistant__table td {
    padding: 0.45rem 0.55rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.um-assistant__table th {
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--unimart-text-muted, #6b7280);
    background: rgba(15, 23, 42, 0.03);
    white-space: nowrap;
}

.um-assistant__table tr:last-child td {
    border-bottom: none;
}

.um-assistant__table td strong {
    font-weight: 700;
}

.um-assistant__bubble strong {
    font-weight: 700;
}

.um-assistant__bubble em {
    font-style: italic;
}

.um-assistant__msg-image {
    display: block;
    max-width: 200px;
    max-height: 160px;
    border-radius: 8px;
    margin-bottom: 0.45rem;
    object-fit: cover;
}

.um-assistant__cards {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.65rem;
    max-width: min(100%, 22rem);
}

.um-assistant__card-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.um-assistant__card-action {
    align-self: stretch;
    border: 1px solid rgba(26, 26, 46, 0.12);
    background: #fff;
    color: #1a1a2e;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.um-assistant__card-action:hover:not(:disabled) {
    border-color: rgba(26, 26, 46, 0.28);
    background: #fafafa;
}

.um-assistant__card-action:disabled,
.um-assistant__card-action.is-done {
    opacity: 0.85;
    cursor: default;
}

.um-assistant__card {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.5rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(26, 26, 46, 0.08);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.um-assistant__card--collect {
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(26, 26, 46, 0.08);
    color: inherit;
}

.um-assistant__card-cta {
    display: inline-block;
    margin-top: 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #1a1a2e;
    text-decoration: none;
    border-bottom: 1px solid rgba(26, 26, 46, 0.35);
    pointer-events: none;
}

.um-assistant__card--collect .um-assistant__card-cta {
    color: #1a1a2e;
}

.um-assistant__card:hover {
    background: #fff;
    border-color: rgba(246, 139, 30, 0.35);
}

.um-assistant__card--whatsapp {
    border-color: rgba(37, 211, 102, 0.35);
    background: rgba(37, 211, 102, 0.08);
}

.um-assistant__card--whatsapp:hover {
    border-color: rgba(37, 211, 102, 0.55);
    background: rgba(37, 211, 102, 0.12);
}

/* Unified Junior result cards (product / role / service / business / place) */
.junior-result-cards {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.55rem;
    max-width: 22rem;
}

.junior-result-cards .um-assistant__card {
    border-radius: 12px;
    border-color: rgba(44, 62, 80, 0.1);
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 22, 30, 0.04);
}

.junior-result-cards .um-assistant__card--place .um-assistant__card-fallback,
.junior-result-cards .um-assistant__card--pulse .um-assistant__card-fallback,
.junior-result-cards .um-assistant__card--campus_knowledge .um-assistant__card-fallback {
    background: rgba(246, 139, 30, 0.12);
    color: #c45a00;
}

.um-assistant__card--whatsapp .um-assistant__card-fallback {
    color: var(--success);
}

.um-assistant__card--service {
    border-color: rgba(14, 116, 144, 0.28);
    background: rgba(14, 116, 144, 0.06);
}

.um-assistant__card--service:hover {
    border-color: rgba(14, 116, 144, 0.45);
    background: rgba(14, 116, 144, 0.1);
}

.um-assistant__card--service .um-assistant__card-fallback,
.um-assistant__card--service .um-assistant__card-cta {
    color: #0e7490;
}

.um-assistant__card--business {
    border-color: rgba(180, 83, 9, 0.3);
    background: rgba(180, 83, 9, 0.06);
}

.um-assistant__card--business:hover {
    border-color: rgba(180, 83, 9, 0.5);
    background: rgba(180, 83, 9, 0.1);
}

.um-assistant__card--business .um-assistant__card-fallback,
.um-assistant__card--business .um-assistant__card-cta {
    color: #b45309;
}

.um-assistant__card--product {
    border-color: rgba(246, 139, 30, 0.22);
}

.um-assistant__card--opportunity {
    border-color: rgba(59, 91, 219, 0.28);
    background: rgba(59, 91, 219, 0.05);
}

.um-assistant__focus-pill {
    display: inline-flex;
    align-items: center;
    margin-left: 0.55rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #0f3d2e;
    background: rgba(15, 61, 46, 0.08);
    border: 1px solid rgba(15, 61, 46, 0.14);
    vertical-align: middle;
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.um-assistant__focus-pill--mobile {
    margin-left: 0.35rem;
    font-size: 0.58rem;
    max-width: 5.5rem;
    padding: 0.1rem 0.4rem;
}

.um-assistant__desktop-title {
    display: flex;
    align-items: center;
    min-width: 0;
}

.um-assistant__mobile-agent {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.um-assistant__card-thumb {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
    overflow: hidden;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.um-assistant__card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.um-assistant__card-fallback {
    color: var(--gray);
    font-size: 1rem;
}

.um-assistant__card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.um-assistant__card-title {
    display: block;
    font-size: 0.78rem;
    line-height: 1.25;
    font-weight: 600;
    color: var(--unimart-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.um-assistant__card-sub {
    display: block;
    font-size: 0.68rem;
    line-height: 1.3;
    color: var(--gray);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.um-assistant__link {
    color: var(--unimart-orange-deep, var(--primary-dark));
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.um-assistant__msg--user .um-assistant__link {
    color: #fff;
}

/* Dock typing retired — process panel in the message list is the single thinking UI */
.um-assistant__typing {
    display: none !important;
}

.um-assistant__typing[hidden] {
    display: none !important;
}

.um-assistant__typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--unimart-orange, #f68b1e);
    animation: umAssistantBounce 1.2s infinite ease-in-out;
}

.um-assistant__typing-dot:nth-child(2) { animation-delay: 0.15s; }
.um-assistant__typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes umAssistantBounce {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.um-assistant__typing-label {
    font-size: 0.74rem;
    color: var(--unimart-text-muted);
}

/* In-stream process panel — show work before the answer appears */
.um-assistant__msg--process {
    margin-bottom: 0.75rem;
}

.um-assistant__bubble--process {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.35rem 0 0.15rem !important;
    max-width: 100%;
}

.um-assistant__process-title {
    margin: 0 0 0.45rem;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--asst-ink, #111111);
}

.um-assistant__process-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 1.35rem;
}

.um-assistant__process-steps .um-assistant__typing-phase,
.um-assistant__typing-phases .um-assistant__typing-phase {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.35;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.um-assistant__process-steps .um-assistant__typing-phase.is-visible,
.um-assistant__typing-phases .um-assistant__typing-phase.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.um-assistant__process-steps .um-assistant__typing-phase.is-current,
.um-assistant__typing-phases .um-assistant__typing-phase.is-current {
    color: #111111;
    font-weight: 650;
}

.um-assistant__process-steps .um-assistant__typing-phase-icon,
.um-assistant__typing-phases .um-assistant__typing-phase-icon {
    font-size: 0.55rem;
    width: 0.85rem;
    text-align: center;
    color: #111111;
}

.um-assistant__process-steps .um-assistant__typing-phase.is-current .um-assistant__typing-phase-icon {
    animation: umAssistantBounce 1.2s infinite ease-in-out;
}

.um-assistant__typing {
    min-height: 1.5rem;
}

/* Composer â€” pinned bottom */
.um-assistant__composer {
    flex-shrink: 0;
    padding: 0.5rem 1rem 0.85rem;
    border-top: 1px solid var(--unimart-border, #e8e8e8);
    background: #fff;
}

@media (min-width: 768px) {
    .um-assistant__composer {
        padding: 0.65rem 1.75rem 1rem;
    }
}

.um-assistant__attach-preview {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    max-width: 720px;
    margin: 0 auto 0.4rem;
    padding: 0.45rem 0.55rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(26, 26, 46, 0.1);
    border-radius: 10px;
    font-size: 0.76rem;
    color: var(--unimart-slate);
}

.um-assistant__attach-preview img {
    border-radius: 6px;
    object-fit: cover;
}

.um-assistant__attach-clear {
    margin-left: auto;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--unimart-text-muted);
    cursor: pointer;
    padding: 0 0.25rem;
}

.um-assistant__composer-inner {
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
    max-width: 720px;
    margin: 0 auto;
    padding: 0.4rem 0.45rem 0.4rem 0.55rem;
    border: 1px solid var(--unimart-border);
    border-radius: 12px;
    background: var(--light);
    transition: border-color 0.15s ease;
}

.um-assistant__composer-inner:focus-within {
    border-color: rgba(246, 139, 30, 0.45);
}

@media (max-width: 991.98px) {
    .um-assistant__composer-inner:focus-within {
        background: #fff;
    }
}

.um-assistant__attach {
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--unimart-slate, #2c3e50);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    transition: color 0.15s ease, background 0.15s ease;
}

.um-assistant__attach i {
    font-size: 1.05rem;
}

.um-assistant__file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.um-assistant__attach-preview-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.78rem;
    color: var(--unimart-slate, #2c3e50);
}

.um-assistant__attach-preview-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.um-assistant__photo-intents {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.um-assistant__photo-intent {
    border: 1px solid rgba(26, 26, 46, 0.14);
    background: #fff;
    color: #1a1a2e;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    cursor: pointer;
}

.um-assistant__photo-intent.is-active {
    border-color: rgba(26, 26, 46, 0.45);
    background: #f7f7f8;
}

.um-assistant__camera-sheet {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.um-assistant__camera-sheet[hidden] {
    display: none !important;
}

.um-assistant__camera-sheet-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 20, 28, 0.35);
    cursor: pointer;
}

.um-assistant__camera-sheet-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 26rem);
    background: #fff;
    border-radius: 1rem 1rem 0 0;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.um-assistant__camera-sheet-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
}

.um-assistant__camera-sheet-lead {
    margin: 0 0 0.25rem;
    font-size: 0.82rem;
    color: #5b6472;
    line-height: 1.4;
}

.um-assistant__camera-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    border: 1px solid rgba(26, 26, 46, 0.12);
    background: #fff;
    border-radius: 0.75rem;
    padding: 0.85rem 0.95rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    text-align: left;
}

.um-assistant__camera-option i {
    width: 1.25rem;
    text-align: center;
    color: #2c3e50;
}

.um-assistant__camera-cancel {
    margin-top: 0.15rem;
    border: 0;
    background: transparent;
    color: #5b6472;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.65rem;
    cursor: pointer;
}

@media (min-width: 992px) {
    .um-assistant__camera-sheet {
        align-items: center;
    }

    .um-assistant__camera-sheet-panel {
        border-radius: 1rem;
        box-shadow: 0 18px 48px rgba(26, 26, 46, 0.18);
    }
}
    text-overflow: ellipsis;
    white-space: nowrap;
}

.um-assistant__attach:hover:not(:disabled) {
    color: var(--unimart-orange);
    background: rgba(246, 139, 30, 0.08);
}

.um-assistant__attach:disabled,
.um-assistant__attach.is-disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: not-allowed;
}

.um-assistant__input {
    flex: 1;
    border: none;
    outline: none;
    resize: none;
    font-size: 0.92rem;
    line-height: 1.45;
    max-height: 120px;
    padding: 0.4rem 0;
    background: transparent;
    color: var(--unimart-text, #1a1a2e);
    font-family: inherit;
    text-align: left;
}

.um-assistant__send {
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    border: none;
    border-radius: 50%;
    background: #111111;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.15s ease, opacity 0.15s ease;
}

.um-assistant__send:hover:not(:disabled) {
    filter: brightness(1.06);
}

.um-assistant__send:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.um-assistant__disabled {
    flex-shrink: 0;
    padding: 0.65rem 1rem;
    text-align: center;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.82rem;
    border-top: 1px solid var(--primary-light);
}

.um-assistant__disabled p {
    margin: 0;
}

@media (max-width: 991px) {
    body.assistant-layer-page {
        overflow: hidden !important;
        height: 100dvh;
        padding-bottom: 0 !important;
        position: relative;
    }

    body.assistant-layer-page.has-unimart-nav {
        padding-bottom: 0 !important;
    }

    /* Junior owns the screen — hide orange site header; use in-app chrome */
    body.assistant-layer-page .top-nav,
    body.assistant-layer-page .hybrid-header,
    body.assistant-confidence-page .top-nav,
    body.assistant-confidence-page .hybrid-header,
    body.assistant-layer-page #searchFilterBar,
    body.assistant-layer-page #mobileCategoryNav,
    body.assistant-layer-page .mobile-category-nav,
    body.assistant-layer-page .partners-section,
    body.assistant-layer-page #partners,
    body.assistant-layer-page .unimart-nav,
    body.assistant-layer-page .bottom-nav,
    body.assistant-layer-page .hybrid-bottom-nav {
        display: none !important;
    }

    body.assistant-layer-page.has-unimart-nav,
    body.assistant-layer-page.has-confidence-nav,
    body.assistant-layer-page,
    body.assistant-confidence-page {
        padding-bottom: 0 !important;
        --mobile-bottom-nav-height: 0px;
        --assistant-top-offset: 0px;
        --top-nav-height-mobile: 0px;
        --assistant-bottom-offset: env(safe-area-inset-bottom, 0px);
    }

    body.assistant-layer-page main.content-wrapper.assistant-content-shell {
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        bottom: var(--assistant-bottom-offset, env(safe-area-inset-bottom, 0px));
        z-index: 900;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        padding: 0 !important;
        margin: 0 !important;
        max-width: none !important;
        width: 100% !important;
    }

    body.assistant-layer-page .content-wrapper.assistant-content-shell .content-inner {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 0 !important;
        width: 100%;
    }

    .um-layer-page--assistant {
        height: 100%;
        min-height: 0;
        flex: 1;
    }

    .um-assistant {
        padding: 0;
        flex: 1;
        min-height: 0;
        background: transparent;
    }

    .um-assistant__layout {
        background: transparent;
        border-radius: 0;
        border: none;
        box-shadow: none;
        flex: 1;
        min-height: 0;
        height: 100%;
    }

    .um-assistant__main {
        flex: 1;
        min-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        background: var(--asst-canvas, #ffffff);
    }

    .um-assistant__messages {
        flex: 1;
        min-height: 0;
        overscroll-behavior: contain;
        padding: 0.85rem 0.85rem 0.5rem;
        background: transparent;
    }

    .um-assistant__typing {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .um-assistant__composer {
        flex-shrink: 0;
        z-index: 2;
        padding: 0.35rem 0.75rem 0.2rem;
        padding-bottom: max(0.2rem, env(safe-area-inset-bottom, 0px));
        background: #fff;
        border-top: 1px solid var(--unimart-border, #e8e8e8);
        box-shadow: 0 -6px 24px rgba(44, 62, 80, 0.06);
    }

    body.assistant-confidence-page .um-assistant__composer--docked {
        padding: 0.35rem 0.75rem max(0.35rem, env(safe-area-inset-bottom, 0px)) !important;
        background: transparent !important;
        border-top: none !important;
        box-shadow: none !important;
    }

    .um-assistant__composer-inner {
        padding: 0.35rem 0.4rem 0.35rem 0.35rem;
        border-radius: 999px;
        background: var(--unimart-bg-muted);
        border-color: var(--unimart-border);
    }

    .unimart-nav__item--layer span {
        font-size: 0.58rem;
        line-height: 1.1;
    }

    .um-assistant__quick-chips {
        display: none !important;
    }

    .um-assistant__welcome-actions--inline .um-assistant__quick-chip {
        border-color: var(--unimart-border, var(--unimart-border));
        color: var(--unimart-text, #1a1a2e);
        background: #fff;
    }

    .um-assistant__welcome-actions--inline .um-assistant__quick-chip:hover {
        background: var(--unimart-bg-muted, var(--gray-light));
        border-color: rgba(246, 139, 30, 0.35);
    }
}

/* ═══════════════════════════════════════════════════════════════════
   Desktop (≥992px) — light canvas, sidebar + centered chat column
   ═══════════════════════════════════════════════════════════════════ */
@media (min-width: 992px) {
    .um-layer-page--assistant {
        --assistant-top-offset: 0px;
        --assistant-bottom-offset: 0px;
        --assistant-vh-offset: 0px;
        --assistant-sidebar-width: 260px;
        --assistant-sidebar-rail: 52px;
        --asst-content-max: 720px;
        height: 100dvh;
        min-height: 0;
    }

    html:has(body.assistant-layer-page),
    body.assistant-layer-page {
        overflow: hidden;
        height: 100dvh;
        padding: 0 !important;
        background: var(--asst-canvas) !important;
    }

    body.assistant-layer-page .top-nav,
    body.assistant-layer-page #searchFilterBar,
    body.assistant-layer-page .search-filter-bar,
    body.assistant-layer-page .mobile-category-nav,
    body.assistant-layer-page .unimart-nav {
        display: none !important;
    }

    body.assistant-layer-page main.content-wrapper.assistant-content-shell {
        position: relative;
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0 !important;
        height: 100dvh;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden;
        background: var(--asst-canvas);
    }

    body.assistant-layer-page .content-wrapper.assistant-content-shell .content-inner {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 0 !important;
        width: 100%;
        max-width: none !important;
        background: var(--asst-canvas);
    }

    .um-assistant {
        padding: 0;
        background: var(--asst-canvas);
        height: 100%;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .um-assistant__layout {
        max-width: none !important;
        width: 100% !important;
        height: 100%;
        min-height: 0;
        margin: 0 !important;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: var(--asst-canvas);
        align-items: stretch;
    }

    /* ── Sidebar ── */
    .um-assistant__sidebar {
        flex: 0 0 var(--assistant-sidebar-width);
        width: var(--assistant-sidebar-width);
        padding: 0.85rem 0.65rem;
        background: #fff;
        border-right: 1px solid var(--asst-border);
        box-shadow: 1px 0 0 rgba(15, 23, 42, 0.03);
        transition: width 0.2s ease, padding 0.2s ease;
    }

    .um-assistant--sidebar-collapsed .um-assistant__sidebar {
        flex: 0 0 0;
        width: 0;
        min-width: 0;
        padding: 0;
        margin: 0;
        border: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateX(-12px);
    }

    .um-assistant--sidebar-collapsed .um-assistant__brand-name,
    .um-assistant--sidebar-collapsed .um-assistant__brand-sub,
    .um-assistant--sidebar-collapsed .um-assistant__sidebar .um-assistant__site-brand-text,
    .um-assistant--sidebar-collapsed .um-assistant__new-chat-label,
    .um-assistant--sidebar-collapsed .um-assistant__sidebar-link-label,
    .um-assistant--sidebar-collapsed .um-assistant__history-label,
    .um-assistant--sidebar-collapsed .um-assistant__history-title,
    .um-assistant--sidebar-collapsed .um-assistant__history-preview,
    .um-assistant--sidebar-collapsed .um-assistant__history-empty {
        display: none;
    }

    .um-assistant--sidebar-collapsed .um-assistant__history {
        display: none;
    }

    .um-assistant--sidebar-collapsed .um-assistant__sidebar-head {
        padding: 0.25rem 0;
        text-align: center;
    }

    .um-assistant--sidebar-collapsed .um-assistant__sidebar .um-assistant__site-brand {
        justify-content: center;
        width: 100%;
    }

    .um-assistant--sidebar-collapsed .um-assistant__brand {
        justify-content: center;
    }

    .um-assistant--sidebar-collapsed .um-assistant__brand i {
        margin-right: 0;
    }

    .um-assistant--sidebar-collapsed .um-assistant__new-chat {
        width: 2.25rem;
        height: 2.25rem;
        min-width: 2.25rem;
        margin: 0.35rem auto 0.5rem;
        padding: 0;
        justify-content: center;
        border-radius: 10px;
    }

    .um-assistant--sidebar-collapsed .um-assistant__sidebar-foot-link {
        justify-content: center;
        padding: 0.48rem;
    }

    .um-assistant--sidebar-collapsed .um-assistant__sidebar-foot-link i {
        margin: 0;
    }

    .um-assistant__sidebar-head {
        padding: 0.15rem 0.55rem 0.75rem;
    }

    .um-assistant__site-brand-logo {
        width: 2.15rem;
        height: 2.15rem;
    }

    .um-assistant__site-brand-text {
        font-size: 0.88rem;
    }

    .um-assistant__brand-sub {
        display: block;
        margin: 0.25rem 0 0;
        padding: 0 0.55rem;
        font-size: 0.68rem;
        color: var(--asst-ink-soft);
        letter-spacing: 0.01em;
    }

    .um-assistant__brand {
        display: flex;
        align-items: center;
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 0;
        color: var(--asst-ink);
        letter-spacing: -0.02em;
    }

    .um-assistant__brand i {
        color: var(--asst-accent);
    }

    .um-assistant__brand-name {
        color: var(--asst-ink);
    }

    .um-assistant__new-chat {
        margin: 0 0.45rem 0.75rem;
        width: calc(100% - 0.9rem);
        padding: 0.62rem 0.85rem;
        border-radius: 10px;
        border: 1px solid var(--asst-border);
        background: #fff;
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--asst-ink);
        transition: border-color 0.15s ease, background 0.15s ease;
    }

    .um-assistant__new-chat:hover {
        background: rgba(246, 139, 30, 0.06);
        border-color: rgba(246, 139, 30, 0.35);
        color: var(--asst-ink);
    }

    .um-assistant__history {
        flex: 1;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        margin-bottom: 0;
        padding: 0 0.35rem;
        scrollbar-width: thin;
        scrollbar-color: rgba(15, 23, 42, 0.12) transparent;
    }

    .um-assistant__history::-webkit-scrollbar {
        width: 5px;
    }

    .um-assistant__history::-webkit-scrollbar-thumb {
        background: rgba(15, 23, 42, 0.12);
        border-radius: 999px;
    }

    .um-assistant__history-label {
        padding: 0 0.55rem;
        margin-bottom: 0.35rem;
        font-size: 0.62rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--asst-ink-soft);
    }

    .um-assistant__history-row {
        margin-bottom: 0.12rem;
    }

    .um-assistant__history-item {
        padding: 0.52rem 0.6rem;
        border-radius: 8px;
        color: var(--asst-ink);
    }

    .um-assistant__history-item:hover {
        background: rgba(15, 23, 42, 0.04);
    }

    .um-assistant__history-item.is-active {
        background: rgba(246, 139, 30, 0.1);
        border: 1px solid rgba(246, 139, 30, 0.2);
    }

    .um-assistant__history-item.is-active .um-assistant__history-title {
        color: var(--asst-ink);
        font-weight: 600;
    }

    .um-assistant__history-title {
        font-size: 0.8rem;
        font-weight: 500;
    }

    .um-assistant__history-preview {
        font-size: 0.7rem;
        color: var(--asst-ink-soft);
        margin-top: 0.12rem;
    }

    .um-assistant__shortcuts,
    .um-assistant__sidebar-links {
        display: none !important;
    }

    .um-assistant__sidebar-foot {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        margin-top: auto;
        padding: 0.65rem 0.45rem 0.35rem;
        border-top: 1px solid var(--asst-border);
    }

    .um-assistant__sidebar-foot-link {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        padding: 0.48rem 0.55rem;
        border-radius: 8px;
        color: var(--asst-ink-soft);
        text-decoration: none;
        font-size: 0.8rem;
        transition: background 0.15s ease, color 0.15s ease;
    }

    .um-assistant__sidebar-foot-link:hover {
        background: rgba(15, 23, 42, 0.04);
        color: var(--asst-ink);
    }

    .um-assistant__sidebar-foot-link i {
        width: 1rem;
        text-align: center;
        font-size: 0.78rem;
        opacity: 0.85;
        flex-shrink: 0;
        color: var(--asst-accent);
    }

    .um-assistant__sidebar-foot-link--theme {
        display: none;
        width: 100%;
        border: none;
        background: transparent;
        cursor: pointer;
        text-align: left;
        font: inherit;
    }

    .um-assistant__sidebar-foot-row {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        width: 100%;
    }

    .um-assistant__sidebar-foot-row .um-assistant__sidebar-foot-link--account {
        flex: 1 1 auto;
        min-width: 0;
        border: none;
        background: transparent;
        border-radius: 10px;
        cursor: pointer;
        font: inherit;
        text-align: left;
    }

    .um-assistant__sidebar-foot-row .um-assistant__sidebar-foot-link--text {
        flex: 1 1 auto;
        min-width: 0;
    }

    .um-assistant__sidebar-foot-theme {
        display: inline-flex;
        flex-shrink: 0;
        width: 2.35rem;
        height: 2.35rem;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
        border: none !important;
        border-radius: 0;
        background: transparent !important;
        box-shadow: none !important;
        color: var(--asst-ink-soft, #64748b) !important;
        cursor: pointer;
        font-size: 1.05rem;
        line-height: 1;
    }

    .um-assistant__sidebar-foot-theme:hover,
    .um-assistant__sidebar-foot-theme:focus-visible {
        color: var(--asst-ink, #1e293b) !important;
        background: transparent !important;
        outline: none;
        opacity: 0.85;
    }

    .um-assistant__sidebar-foot-theme i {
        font-size: 1.05rem;
        line-height: 1;
    }

    /* ── Header bar ── */
    .um-assistant__desktop-title .um-assistant__desktop-agent-name {
        font-size: 0.92rem;
        font-weight: 600;
        color: var(--asst-ink);
        letter-spacing: -0.01em;
    }

    .um-assistant__desktop-bar {
        position: relative;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 0.65rem;
        min-height: 3.25rem;
        padding: 0.55rem 1.5rem;
        border-bottom: none;
        background: #f68b1e;
        color: #fff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .um-assistant__sidebar-toggle {
        flex-shrink: 0;
        width: 2.25rem;
        height: 2.25rem;
        border: none;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.14);
        color: #fff;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: background 0.15s ease, color 0.15s ease;
    }

    .um-assistant__sidebar-toggle:hover {
        background: rgba(255, 255, 255, 0.24);
        color: #fff;
    }

    .um-assistant__desktop-title {
        flex: 1;
        min-width: 0;
        margin: 0;
        font-size: 0.92rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.92);
        letter-spacing: -0.01em;
    }

    /* Center brand — always on desktop header (sidebar open or collapsed) */
    .um-assistant__desktop-site-brand,
    .um-assistant--sidebar-collapsed .um-assistant__desktop-site-brand {
        display: inline-flex !important;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 3;
        max-width: min(46%, 18rem);
        pointer-events: auto;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .um-assistant__desktop-site-brand .um-assistant__site-brand-text,
    .um-assistant--sidebar-collapsed .um-assistant__desktop-site-brand .um-assistant__site-brand-text {
        display: inline !important;
        font-size: 1.05rem;
        font-weight: 700;
        letter-spacing: -0.03em;
        white-space: nowrap;
        color: #fff;
    }

    .um-assistant__desktop-site-brand .um-assistant__site-brand-uni {
        color: #fff;
    }

    .um-assistant__desktop-site-brand .um-assistant__site-brand-africa {
        color: #0a2540;
    }

    .um-assistant__desktop-actions {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        margin-left: auto;
        position: relative;
        z-index: 2;
    }

    /* Theme lives in the sidebar — keep the orange bar to brand + account */
    .um-assistant__desktop-actions .um-assistant__theme-toggle {
        display: none !important;
    }

    .um-assistant__desktop-actions a {
        width: 2.25rem;
        height: 2.25rem;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--asst-ink-soft);
        text-decoration: none;
        transition: background 0.15s ease, color 0.15s ease;
    }

    .um-assistant__desktop-actions a:hover {
        background: rgba(15, 23, 42, 0.05);
        color: var(--asst-ink);
    }

    /* ── Main chat column ── */
    .um-assistant__main {
        background: var(--asst-canvas);
        min-height: 0;
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        display: flex;
        flex-direction: column;
    }

    .um-assistant__main--welcome .um-assistant__messages {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .um-assistant__messages {
        flex: 1;
        min-height: 0;
        padding: 1.5rem 1.5rem 1rem;
        background: transparent;
    }

    .um-assistant__messages:has(#assistantWelcome:not([style*="display: none"])) {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .um-assistant__messages-inner,
    .um-assistant__brief,
    .um-assistant__msg,
    .um-assistant__typing,
    .um-assistant__composer,
    .um-assistant__composer-inner,
    .um-assistant__attach-preview,
    .um-assistant__quick-chips,
    .um-assistant__composer-disclaimer,
    .um-assistant__goal-stack--active {
        max-width: var(--asst-content-max);
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

    .um-assistant__goal-stack--active {
        max-width: 44rem;
    }

    .um-assistant__welcome-actions {
        max-width: var(--asst-content-max);
    }

    .um-assistant__welcome-mobile-only {
        display: none !important;
    }

    .um-assistant__welcome {
        max-width: var(--asst-content-max);
        width: 100%;
        margin: 0 auto;
        padding: 0 0.5rem;
        text-align: center;
    }

    .um-assistant__welcome-headline,
    .um-assistant__welcome h1 {
        font-size: clamp(1.5rem, 2.8vw, 2rem);
        font-weight: 600;
        letter-spacing: -0.02em;
        color: var(--asst-ink);
        margin: 0;
    }

    .um-assistant__welcome-grid {
        display: none;
    }

    .um-assistant__welcome-actions--inline {
        display: none !important;
    }

    .um-assistant__quick-chips {
        display: flex;
    }

    .um-assistant__quick-chips[hidden] {
        display: none !important;
    }

    .um-assistant__quick-chip {
        border-color: var(--asst-border);
        color: var(--asst-ink);
        background: #fff;
    }

    .um-assistant__quick-chip i {
        color: var(--asst-ink-soft);
    }

    .um-assistant__quick-chip:hover {
        background: rgba(246, 139, 30, 0.06);
        border-color: rgba(246, 139, 30, 0.35);
    }

    /* ── Messages ── */
    .um-assistant__msg {
        max-width: var(--asst-content-max);
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1.35rem;
    }

    .um-assistant__msg--user {
        justify-content: flex-end;
    }

    .um-assistant__msg--assistant .um-assistant__bubble,
    .um-assistant__msg--system .um-assistant__bubble {
        max-width: 100%;
        background: transparent;
        color: var(--asst-ink);
        padding: 0.15rem 0;
        border-radius: 0;
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .um-assistant__msg--user .um-assistant__bubble {
        max-width: min(75%, 540px);
        background: var(--unimart-orange, #f68b1e);
        color: #fff;
        border-radius: 18px 18px 4px 18px;
        padding: 0.72rem 1.1rem;
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .um-assistant__msg--user .um-assistant__link {
        color: #fff;
        text-decoration: underline;
    }

    .um-assistant__msg--assistant .um-assistant__link {
        color: var(--asst-accent);
    }

    .um-assistant__msg-action {
        color: var(--asst-ink-soft);
    }

    .um-assistant__msg-action:hover:not(:disabled) {
        background: rgba(15, 23, 42, 0.05);
        color: var(--asst-ink);
    }

    .um-assistant__msg-action.is-active {
        color: var(--asst-accent);
    }

    .um-assistant__msg-action.is-copied {
        color: var(--success);
    }

    .um-assistant__msg--system .um-assistant__bubble {
        background: rgba(246, 139, 30, 0.08);
        border: 1px solid rgba(246, 139, 30, 0.2);
        color: var(--asst-ink);
        border-radius: 10px;
        padding: 0.65rem 0.85rem;
        font-size: 0.84rem;
    }

    .um-assistant__card {
        background: #fff;
        border-color: var(--asst-border);
        box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    }

    .um-assistant__card:hover {
        background: #fff;
        border-color: rgba(246, 139, 30, 0.35);
    }

    .um-assistant__card-title {
        color: var(--asst-ink);
    }

    .um-assistant__card-sub {
        color: var(--asst-ink-soft);
    }

    .um-assistant__typing {
        max-width: var(--asst-content-max);
        padding: 0.25rem 1.5rem 0.35rem;
    }

    .um-assistant__typing-label {
        color: var(--asst-ink-soft);
    }

    /* ── Composer ── */
    .um-assistant__composer {
        flex-shrink: 0;
        padding: 0.5rem 1.5rem 1.25rem;
        border-top: none;
        background: transparent;
    }

    .um-assistant__composer-inner {
        max-width: var(--asst-content-max);
        margin: 0 auto;
        padding: 0.55rem 0.65rem 0.55rem 0.75rem;
        border-radius: 999px;
        border: 1px solid rgba(15, 23, 42, 0.1);
        background: #fff;
        box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
    }

    .um-assistant__composer-inner:focus-within {
        border-color: rgba(246, 139, 30, 0.45);
        box-shadow: 0 2px 20px rgba(246, 139, 30, 0.12);
        background: #fff;
    }

    .um-assistant__input,
    .um-assistant__input:focus {
        font-size: 0.96rem;
        padding: 0.45rem 0;
        max-height: 200px;
        color: var(--asst-ink);
        background: transparent;
        caret-color: var(--asst-accent);
    }

    .um-assistant__input::placeholder {
        color: var(--asst-ink-soft);
    }

    .um-assistant__send {
        width: 2.15rem;
        height: 2.15rem;
        background: var(--asst-accent);
        color: #fff;
    }

    .um-assistant__send:hover:not(:disabled) {
        filter: none;
        background: #000000;
    }

    .um-assistant__send:disabled {
        background: rgba(15, 23, 42, 0.08);
        color: rgba(15, 23, 42, 0.28);
        opacity: 1;
    }

    .um-assistant__attach {
        color: var(--asst-ink-soft);
    }

    .um-assistant__attach:hover:not(:disabled) {
        color: #111111;
        background: #f5f5f5;
    }

    .um-assistant__attach-preview {
        background: rgba(246, 139, 30, 0.08);
        border-color: rgba(246, 139, 30, 0.2);
        color: var(--asst-ink);
    }

    .um-assistant__composer-disclaimer {
        display: block;
        color: var(--asst-ink-soft);
        opacity: 0.7;
        font-size: 0.68rem;
    }

    .um-assistant__disabled {
        background: rgba(246, 139, 30, 0.08);
        color: var(--asst-ink);
        border-top-color: rgba(246, 139, 30, 0.2);
    }

    .um-assistant__mobile-bar {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    .um-layer-page--assistant {
        --assistant-sidebar-width: 280px;
        --asst-content-max: 760px;
    }

    .um-assistant__goal-stack--active {
        max-width: 52rem;
    }

    .um-goal-idle__headline {
        font-size: 1.55rem;
    }

    .um-assistant__messages {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .um-assistant__composer,
    .um-assistant__quick-chips,
    .um-assistant__typing {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Agent memory card (sidebar) */
.um-assistant__memory {
    margin: 0.35rem 0.45rem 0;
    border-top: 1px solid var(--asst-border, rgba(15, 23, 42, 0.08));
    padding-top: 0.45rem;
}

.um-assistant__memory-toggle {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.45rem 0.55rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--asst-ink, #1e293b);
    font-size: 0.78rem;
    text-align: left;
    cursor: pointer;
}

.um-assistant__memory-toggle:hover {
    background: rgba(15, 23, 42, 0.04);
}

.um-assistant__memory-chevron {
    margin-left: auto;
    font-size: 0.65rem;
    opacity: 0.7;
    transition: transform 0.15s ease;
}

.um-assistant__memory-toggle[aria-expanded="true"] .um-assistant__memory-chevron {
    transform: rotate(180deg);
}

.um-assistant__memory-body {
    padding: 0.35rem 0.55rem 0.65rem;
    max-height: 220px;
    overflow-y: auto;
}

.um-assistant__memory-section {
    margin-bottom: 0.65rem;
}

.um-assistant__memory-heading {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--asst-ink-soft, #64748b);
    margin: 0 0 0.25rem;
}

.um-assistant__memory-line,
.um-assistant__memory-tags,
.um-assistant__memory-stat {
    font-size: 0.74rem;
    color: var(--asst-ink, #1e293b);
    margin: 0 0 0.2rem;
    line-height: 1.35;
}

.um-assistant__memory-stat {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.um-assistant__memory-edit,
.um-assistant__memory-layer-link {
    font-size: 0.72rem;
    color: var(--um-layer-accent, #f68b1e);
    text-decoration: none;
}

.um-assistant__memory-loading {
    font-size: 0.74rem;
    color: var(--asst-ink-soft, #64748b);
    margin: 0;
}

.um-assistant__memory-empty {
    margin: 0 0 0.45rem;
    font-size: 0.74rem;
    line-height: 1.4;
    color: var(--asst-ink-soft, #64748b);
}

.um-assistant__memory-tags--soft {
    opacity: 0.85;
}

.um-assistant__memory-layer {
    margin: 0.45rem 0 0.55rem;
    padding-top: 0.35rem;
    border-top: 1px dashed rgba(15, 23, 42, 0.08);
}

.um-assistant__memory-layer:first-of-type {
    border-top: none;
    padding-top: 0;
}

.um-assistant__memory-layer-title {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--asst-ink, #1e293b);
}

.um-assistant__sidebar-foot-link--account .um-assistant__sidebar-link-label {
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* First-visit agent naming modal */
.um-assistant__name-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.um-assistant__name-modal[hidden] {
    display: none !important;
}

.um-assistant__name-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.um-assistant__name-modal-card {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem 1.35rem 1.1rem;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    pointer-events: auto;
}

.um-assistant__name-modal-title {
    font-size: 1.15rem;
    margin: 0 0 0.35rem;
}

.um-assistant__name-modal-lead {
    font-size: 0.88rem;
    color: var(--gray);
    margin: 0 0 0.85rem;
}

.um-assistant__name-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.um-assistant__name-chip {
    border: 1px solid var(--unimart-border);
    background: var(--unimart-bg-muted);
    border-radius: 999px;
    padding: 0.28rem 0.72rem;
    font-size: 0.82rem;
    cursor: pointer;
}

.um-assistant__name-chip.is-selected,
.um-assistant__name-chip:hover {
    border-color: var(--unimart-orange, #f68b1e);
    background: rgba(246, 139, 30, 0.1);
}

.um-assistant__name-custom-label {
    display: block;
    font-size: 0.78rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.um-assistant__name-custom-input {
    width: 100%;
    border: 1px solid var(--unimart-border);
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    margin-bottom: 0.85rem;
}

.um-assistant__name-modal-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

/* Intelligence hub + specialist coaches */
.um-agent-intel,
.um-agent-workspace {
    padding: 0.85rem 0 1.25rem;
    color: var(--secondary);
}

.um-agent-intel__greeting,
.um-agent-workspace__greeting {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    line-height: 1.25;
}

.um-agent-intel__sub,
.um-agent-workspace__sub {
    margin: 0 0 0.5rem;
    color: var(--gray);
    font-size: 0.92rem;
}

.um-agent-intel__ugi {
    margin: 0 0 0.75rem;
    font-size: 0.82rem;
    color: var(--gray);
}

.um-agent-intel__card,
.um-agent-intel__starred,
.um-agent-coach__card {
    background: #fff;
    border: 1px solid var(--unimart-border);
    border-radius: 12px;
    padding: 0.85rem 0.95rem;
    margin-bottom: 0.75rem;
}

.um-agent-intel__label,
.um-agent-coach__card h2 {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray);
    margin: 0 0 0.55rem;
}

.um-agent-intel__starred {
    border-color: rgba(246, 139, 30, 0.45);
    background: linear-gradient(135deg, rgba(246, 139, 30, 0.08), #fff);
}

.um-agent-intel__starred-link {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 0.55rem;
}

.um-agent-intel__starred-main strong {
    display: block;
    font-size: 1rem;
}

.um-agent-intel__starred-main span,
.um-agent-intel__row-text span {
    display: block;
    font-size: 0.82rem;
    color: var(--gray);
    margin-top: 0.15rem;
}

.um-agent-intel__starred-meta {
    font-size: 0.75rem;
    color: #9ca3af;
}

.um-agent-intel__chat-cta,
.um-agent-intel__prompt {
    border: 1px solid #d1d5db;
    background: var(--unimart-bg-muted);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
    cursor: pointer;
    color: var(--gray-dark);
}

.um-agent-intel__prompt--wide {
    width: 100%;
    border-radius: 10px;
    text-align: left;
}

.um-agent-intel__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.um-agent-intel__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    color: inherit;
}

.um-agent-intel__row:last-child {
    border-bottom: none;
}

.um-agent-intel__row--primary strong {
    color: var(--unimart-orange, #f68b1e);
}

.um-agent-intel__row-text strong {
    display: block;
    font-size: 0.9rem;
}

.um-agent-intel__row-meta {
    flex-shrink: 0;
    font-size: 0.72rem;
    color: #9ca3af;
    text-align: right;
}

.um-agent-intel__pill {
    display: inline-block;
    font-size: 0.68rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: var(--gray);
    margin-left: 0.25rem;
}

.um-agent-intel__pill--layer {
    background: rgba(44, 62, 80, 0.08);
}

.um-agent-intel__coach-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

@media (min-width: 768px) {
    .um-agent-intel__coach-rail {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.um-agent-intel__coach {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.65rem;
    border: 1px solid var(--unimart-border);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    background: #fafafa;
    min-height: 5.5rem;
}

.um-agent-intel__coach:hover {
    border-color: var(--unimart-orange, #f68b1e);
}

.um-agent-intel__coach i {
    color: var(--unimart-orange, #f68b1e);
}

.um-agent-intel__coach-label {
    font-size: 0.78rem;
    font-weight: 600;
}

.um-agent-intel__coach-metric {
    font-size: 1rem;
    font-weight: 700;
}

.um-agent-intel__coach-summary {
    font-size: 0.72rem;
    color: var(--gray);
}

.um-agent-intel__prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.um-agent-intel__memory {
    font-size: 0.82rem;
    color: var(--gray);
}

.um-agent-intel__memory ul {
    margin: 0 0 0.35rem;
    padding-left: 1rem;
}

.um-agent-coach__head {
    margin-bottom: 0.85rem;
}

.um-agent-coach__back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--gray);
    text-decoration: none;
    margin-bottom: 0.45rem;
}

.um-agent-coach__title {
    font-size: 1.2rem;
    margin: 0 0 0.35rem;
}

.um-agent-coach__intro {
    margin: 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.um-agent-coach__metric {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0.25rem 0;
}

.um-agent-coach__link {
    display: inline-block;
    margin-top: 0.45rem;
    margin-right: 0.75rem;
    font-size: 0.85rem;
    color: var(--unimart-orange, #f68b1e);
    text-decoration: none;
}

.um-agent-coach__stats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
}

.um-agent-coach__ask {
    margin-top: 0.5rem;
}

.um-agent-intel__link {
    display: inline-block;
    margin-top: 0.55rem;
    font-size: 0.85rem;
    color: var(--unimart-orange, #f68b1e);
    text-decoration: none;
}

/* Desktop — intelligence hub on light canvas */
@media (min-width: 992px) {
    body.assistant-layer-page .um-agent-intel,
    body.assistant-layer-page .um-agent-coach {
        color: var(--asst-ink);
        max-width: var(--asst-content-max, 720px);
        margin-left: auto;
        margin-right: auto;
    }

    body.assistant-layer-page .um-agent-intel__greeting,
    body.assistant-layer-page .um-agent-coach__title {
        color: var(--asst-ink);
    }

    body.assistant-layer-page .um-agent-intel__sub,
    body.assistant-layer-page .um-agent-coach__intro,
    body.assistant-layer-page .um-agent-intel__ugi {
        color: var(--asst-ink-soft);
    }

    body.assistant-layer-page .um-agent-intel__card,
    body.assistant-layer-page .um-agent-intel__starred,
    body.assistant-layer-page .um-agent-coach__card {
        background: #fff;
        border-color: var(--asst-border);
        box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    }

    body.assistant-layer-page .um-agent-intel__starred {
        background: linear-gradient(135deg, rgba(246, 139, 30, 0.08), #fff);
        border-color: rgba(246, 139, 30, 0.25);
    }

    body.assistant-layer-page .um-agent-intel__label,
    body.assistant-layer-page .um-agent-coach__card h2 {
        color: var(--asst-ink-soft);
    }

    body.assistant-layer-page .um-agent-intel__row-text strong,
    body.assistant-layer-page .um-agent-intel__starred-main strong,
    body.assistant-layer-page .um-agent-coach__metric {
        color: var(--asst-ink);
    }

    body.assistant-layer-page .um-agent-intel__row-text span,
    body.assistant-layer-page .um-agent-intel__starred-main span,
    body.assistant-layer-page .um-agent-intel__starred-meta,
    body.assistant-layer-page .um-agent-intel__row-meta {
        color: var(--asst-ink-soft);
    }

    body.assistant-layer-page .um-agent-intel__row {
        color: var(--asst-ink);
        border-bottom-color: var(--asst-border);
    }

    body.assistant-layer-page .um-agent-intel__row--primary strong {
        color: var(--asst-accent);
    }

    body.assistant-layer-page .um-agent-intel__pill {
        background: rgba(15, 23, 42, 0.05);
        color: var(--asst-ink-soft);
    }

    body.assistant-layer-page .um-agent-intel__pill--layer {
        background: rgba(15, 23, 42, 0.04);
    }

    body.assistant-layer-page .um-agent-intel__coach {
        background: #fff;
        border-color: var(--asst-border);
        color: var(--asst-ink);
    }

    body.assistant-layer-page .um-agent-intel__coach:hover {
        border-color: var(--asst-accent);
        background: rgba(246, 139, 30, 0.04);
    }

    body.assistant-layer-page .um-agent-intel__coach-label {
        color: var(--asst-ink);
    }

    body.assistant-layer-page .um-agent-intel__coach-summary {
        color: var(--asst-ink-soft);
    }

    body.assistant-layer-page .um-agent-intel__coach-metric {
        color: var(--asst-accent);
    }

    body.assistant-layer-page .um-agent-intel__coach i {
        color: var(--asst-accent);
    }

    body.assistant-layer-page .um-agent-intel__chat-cta,
    body.assistant-layer-page .um-agent-intel__prompt {
        background: #fff;
        border-color: var(--asst-border);
        color: var(--asst-ink);
    }

    body.assistant-layer-page .um-agent-intel__chat-cta:hover,
    body.assistant-layer-page .um-agent-intel__prompt:hover {
        border-color: var(--asst-accent);
        background: rgba(246, 139, 30, 0.04);
    }

    body.assistant-layer-page .um-agent-intel__link,
    body.assistant-layer-page .um-agent-coach__link,
    body.assistant-layer-page .um-agent-coach__back {
        color: var(--asst-accent);
    }

    body.assistant-layer-page .um-agent-intel__memory {
        color: var(--asst-ink-soft);
    }

    body.assistant-layer-page .um-agent-coach__back {
        color: var(--asst-ink-soft);
    }

    body.assistant-layer-page .um-agent-coach__back:hover {
        color: var(--asst-accent);
    }
}

/* ------------------------------------------------------------------ */
/* Creative canvas — warm light surface (all breakpoints)              */
/* ------------------------------------------------------------------ */

.um-assistant__main {
    background: var(--asst-canvas);
}

.um-assistant__workspace {
    flex-shrink: 0;
    overflow: hidden;
    max-height: 120px;
    opacity: 1;
    transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease;
    border: none;
    background: transparent;
}

.um-assistant__workspace--hidden {
    max-height: 0;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}

/* Goal-first idle — minimal, aligned empty state */
.um-assistant__goal-stack {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
}

.um-assistant__goal-stack:not(.um-assistant__goal-stack--active) {
    flex: 0 0 auto;
    display: block;
}

.um-assistant__goal-stack--active {
    justify-content: center;
    align-items: stretch;
    max-width: 26rem;
    margin: 0 auto;
    padding: 0 1rem 0.5rem;
}

.um-assistant__goal-stack--active .um-assistant__idle-wrap,
.um-assistant__goal-stack--active .um-assistant__idle-footer {
    flex-shrink: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    opacity: 1;
    transition: opacity 0.28s ease, max-height 0.32s ease, margin 0.28s ease;
}

.um-assistant__idle-wrap--hidden,
.um-assistant__idle-footer--hidden {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    transform: translateY(24px);
    pointer-events: none;
    overflow: hidden;
}

.um-assistant__slide-away {
    transition: opacity 0.35s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), max-height 0.38s ease !important;
}

@keyframes umAssistantRiseUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.um-assistant__msg--rise {
    animation: umAssistantRiseUp 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.um-assistant__composer--pulse .um-assistant__composer-inner {
    animation: umComposerPulse 0.65s ease;
}

@keyframes umComposerPulse {
    0% { box-shadow: 0 4px 22px rgba(15, 23, 42, 0.1); }
    40% { box-shadow: 0 0 0 4px rgba(246, 139, 30, 0.28), 0 8px 28px rgba(246, 139, 30, 0.2); }
    100% { box-shadow: 0 4px 22px rgba(15, 23, 42, 0.1); }
}

@media (prefers-reduced-motion: reduce) {
    .um-assistant__msg--rise,
    .um-assistant__composer--pulse .um-assistant__composer-inner {
        animation: none;
    }
}

.um-assistant__idle-wrap[hidden],
.um-assistant__idle-footer[hidden] {
    display: none !important;
}

.um-assistant__main:not(.um-assistant__main--conversation) .um-assistant__messages {
    flex: 0 0 auto;
    min-height: 0;
    max-height: 0;
    padding: 0;
    overflow: hidden;
}

.um-assistant__main:not(.um-assistant__main--conversation) .um-assistant__mobile-agent {
    visibility: hidden;
}

.um-goal-idle {
    text-align: center;
    padding: 0 0 1rem;
}

.um-goal-idle__agent {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--asst-ink-soft);
}

.um-goal-idle__headline {
    margin: 0.45rem 0 0;
    font-size: clamp(1.2rem, 4.5vw, 1.45rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.025em;
    color: var(--asst-ink);
}

.um-goal-idle__footer {
    text-align: center;
    padding: 0.75rem 0 0.5rem;
}

.um-goal-idle__chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin: 0;
}

.um-goal-idle__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-height: 2.15rem;
    border: 1px solid rgba(15, 23, 42, 0.07);
    background: rgba(255, 255, 255, 0.88);
    color: var(--asst-ink);
    border-radius: 999px;
    padding: 0.35rem 0.45rem;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.15;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.um-goal-idle__chip-icon {
    flex-shrink: 0;
    width: 0.85rem;
    font-size: 0.72rem;
    line-height: 1;
    color: var(--asst-ink-soft);
    opacity: 0.85;
    transition: color 0.15s ease;
}

.um-goal-idle__chip:hover .um-goal-idle__chip-icon {
    color: var(--unimart-orange, #f68b1e);
    opacity: 1;
}

.um-goal-idle__chip-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.um-goal-idle__chip:hover {
    border-color: rgba(246, 139, 30, 0.35);
    background: #fff;
}

.um-goal-idle__chip:active {
    transform: scale(0.98);
    background: rgba(246, 139, 30, 0.08);
}

.um-goal-idle__meta {
    margin-top: 1.1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.um-goal-idle__belief {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--asst-ink);
}

.um-goal-idle__belief-label {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--asst-ink-soft);
}

.um-goal-idle__belief-text {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    font: inherit;
    font-weight: 600;
    font-style: italic;
    color: inherit;
    text-align: center;
    cursor: pointer;
    transition: color 0.15s ease;
}

.um-goal-idle__belief-text:hover,
.um-goal-idle__belief-text:focus-visible {
    color: var(--asst-accent);
    outline: none;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.um-goal-idle__insight {
    margin: 0.55rem 0 0;
    font-size: 0.74rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--asst-ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Goal idle composer — light pill */
.um-assistant__composer--goal-idle {
    flex-shrink: 0;
    width: 100%;
    margin: 0;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.um-assistant__composer--goal-idle .um-assistant__composer-inner {
    background: #fff !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    border-radius: 999px !important;
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.07) !important;
    padding: 0.4rem 0.45rem 0.4rem 0.55rem !important;
    max-width: none;
}

.um-assistant__composer--goal-idle .um-assistant__composer-inner:focus-within {
    border-color: rgba(246, 139, 30, 0.45) !important;
    box-shadow: 0 2px 20px rgba(246, 139, 30, 0.14) !important;
}

.um-assistant__composer--goal-idle .um-assistant__input,
.um-assistant__composer--goal-idle .um-assistant__input:focus {
    color: var(--asst-ink) !important;
    text-align: left;
}

.um-assistant__composer--goal-idle .um-assistant__input::placeholder {
    color: var(--asst-ink-soft);
    font-style: italic;
}

.um-assistant__composer--goal-idle .um-assistant__attach {
    color: var(--asst-ink-soft);
}

.um-assistant__composer--goal-idle .um-assistant__composer-disclaimer {
    display: none;
}

.um-asst-prelude {
    padding: 0.35rem 1.1rem 0.15rem;
    text-align: center;
}

.um-asst-prelude__hello {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--asst-ink);
    line-height: 1.2;
}

.um-asst-prelude__tag {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--asst-ink-soft);
}

.um-asst-prelude__starters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.55rem;
}

.um-asst-prelude__starter {
    border: none;
    background: rgba(255, 255, 255, 0.65);
    color: var(--asst-ink);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.um-asst-prelude__starter:active {
    transform: scale(0.98);
    background: rgba(246, 139, 30, 0.12);
}

/* Floating mobile tools â€” no bar, no lines */
.um-assistant__mobile-bar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0.75rem 0.15rem;
    border: none;
    background: transparent;
    position: relative;
    z-index: 4;
}

.um-assistant__mobile-agent {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--asst-ink-soft);
    opacity: 0.85;
}

.um-assistant__float-btn {
    border: none;
    background: rgba(255, 255, 255, 0.7);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    color: var(--asst-ink);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.um-assistant__messages {
    background: transparent;
}

.um-assistant__messages:not(:has(.um-assistant__msg)) {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Ambient canvas — slow organic drift */
.um-assistant__mindscape {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.6s ease;
}

.um-assistant__main--junior-idle:not(.um-assistant__main--conversation):not(.um-assistant__main--thinking) {
    background: transparent;
}

.um-assistant__main--conversation .um-assistant__mindscape {
    opacity: 0.4;
}

.um-assistant__main--thinking .um-assistant__mindscape {
    opacity: 0.95;
}

.um-assistant__mindscape-base {
    position: absolute;
    inset: -20%;
    background: #ffffff;
    background-size: 140% 140%;
    animation: none;
}

/*
 * Companion idle — pure clean white (no color atmosphere).
 * Soft mono motion stays for dark mode only (junior-theme overrides).
 */
.um-assistant__main--junior-idle .um-assistant__mindscape-base,
.um-assistant__main:not(.um-assistant__main--conversation):not(.um-assistant__main--thinking) .um-assistant__mindscape-base {
    background: #ffffff;
    animation: none;
}

.um-assistant__main--junior-idle .um-assistant__mindscape-blob,
.um-assistant__main:not(.um-assistant__main--conversation):not(.um-assistant__main--thinking) .um-assistant__mindscape-blob {
    opacity: 0;
}

.um-assistant__main--junior-idle .um-assistant__mindscape-shimmer,
.um-assistant__main:not(.um-assistant__main--conversation):not(.um-assistant__main--thinking) .um-assistant__mindscape-shimmer {
    opacity: 0;
}

.um-assistant__main--junior-idle .um-assistant__mindscape-glow,
.um-assistant__main:not(.um-assistant__main--conversation):not(.um-assistant__main--thinking) .um-assistant__mindscape-glow {
    opacity: 0;
}

.um-assistant__main--conversation .um-assistant__mindscape-base,
.um-assistant__main--thinking .um-assistant__mindscape-base {
    background:
        radial-gradient(ellipse 70% 55% at 20% 15%, rgba(246, 139, 30, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 85% 25%, rgba(34, 197, 160, 0.05) 0%, transparent 50%),
        #ffffff;
    animation: um-canvas-shift 36s ease-in-out infinite;
}

.um-assistant__main--conversation .um-assistant__mindscape-blob,
.um-assistant__main--thinking .um-assistant__mindscape-blob {
    opacity: 0.55;
}

.um-assistant__main--conversation .um-assistant__mindscape-glow,
.um-assistant__main--thinking .um-assistant__mindscape-glow {
    opacity: 0.25;
}

.um-assistant__mindscape-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(52px);
    will-change: transform;
    opacity: 0;
}

.um-assistant__mindscape-blob--a {
    width: 62vw;
    height: 62vw;
    max-width: 340px;
    max-height: 340px;
    top: 2%;
    left: -12%;
    background: radial-gradient(circle, rgba(246, 139, 30, 0.42) 0%, rgba(255, 176, 70, 0.14) 48%, transparent 72%);
    animation: um-blob-orbit-a 26s ease-in-out infinite;
}

.um-assistant__mindscape-blob--b {
    width: 52vw;
    height: 52vw;
    max-width: 280px;
    max-height: 280px;
    top: 38%;
    right: -16%;
    background: radial-gradient(circle, rgba(255, 110, 64, 0.28) 0%, rgba(255, 150, 90, 0.08) 50%, transparent 72%);
    animation: um-blob-orbit-b 32s ease-in-out infinite;
    animation-delay: -8s;
}

.um-assistant__mindscape-blob--c {
    width: 42vw;
    height: 42vw;
    max-width: 210px;
    max-height: 210px;
    bottom: 10%;
    left: 18%;
    background: radial-gradient(circle, rgba(34, 197, 160, 0.32) 0%, rgba(52, 211, 153, 0.08) 50%, transparent 72%);
    animation: um-blob-orbit-c 22s ease-in-out infinite;
    animation-delay: -14s;
}

.um-assistant__mindscape-blob--d {
    width: 36vw;
    height: 36vw;
    max-width: 170px;
    max-height: 170px;
    top: 26%;
    left: 40%;
    background: radial-gradient(circle, rgba(255, 236, 180, 0.65) 0%, rgba(255, 214, 120, 0.12) 48%, transparent 70%);
    animation: um-blob-orbit-d 36s ease-in-out infinite;
    animation-delay: -20s;
    filter: blur(40px);
    opacity: 0.75;
}

/* Warm halo behind agent name — campus hearth, invites focus */
.um-assistant__mindscape-glow {
    position: absolute;
    left: 50%;
    top: 42%;
    width: min(30rem, 92vw);
    height: min(20rem, 46vh);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0.78) 0%, rgba(255, 210, 140, 0.42) 34%, rgba(246, 139, 30, 0.12) 58%, transparent 74%);
    filter: blur(26px);
    opacity: 0;
    animation: um-glow-breathe 10s ease-in-out infinite;
    pointer-events: none;
}

.um-assistant__mindscape-shimmer {
    position: absolute;
    inset: -10%;
    background: radial-gradient(ellipse 75% 55% at 50% 36%, rgba(255, 248, 230, 0.5) 0%, transparent 68%);
    animation: um-shimmer-breathe 16s ease-in-out infinite;
}

@keyframes um-canvas-shift {
    0%, 100% {
        background-position: 0% 0%, 100% 0%, 50% 100%, 0% 0%;
    }
    50% {
        background-position: 8% 6%, 92% 4%, 48% 92%, 0% 0%;
    }
}

@keyframes um-blob-orbit-a {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(6%, 4%) scale(1.06); }
    50% { transform: translate(3%, 9%) scale(0.97); }
    75% { transform: translate(-3%, 5%) scale(1.03); }
}

@keyframes um-blob-orbit-b {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-8%, -5%) scale(1.08); }
    66% { transform: translate(-4%, 6%) scale(0.96); }
}

@keyframes um-blob-orbit-c {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40% { transform: translate(7%, -6%) scale(1.05); }
    70% { transform: translate(-5%, -3%) scale(0.98); }
}

@keyframes um-blob-orbit-d {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.65; }
    50% { transform: translate(-6%, 8%) scale(1.12); opacity: 0.85; }
}

@keyframes um-glow-breathe {
    0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes um-shimmer-breathe {
    0%, 100% { opacity: 0.5; transform: scale(1) translateY(0); }
    50% { opacity: 0.82; transform: scale(1.04) translateY(-1.5%); }
}

@keyframes um-blob-drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(4%, -3%) scale(1.08); }
}

/* Center presence */
.um-assistant__presence {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.25rem 2rem;
    text-align: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.um-assistant__presence[hidden] {
    display: none !important;
}

.um-assistant__presence-glow {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(246, 139, 30, 0.25) 0%, transparent 70%);
    animation: um-presence-glow 4s ease-in-out infinite;
}

@keyframes um-presence-glow {
    0%, 100% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.08); opacity: 1; }
}

.um-assistant__presence-mark {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #fb923c 0%, #f68b1e 45%, #ea580c 100%);
    box-shadow: 0 12px 32px rgba(246, 139, 30, 0.35);
    margin-bottom: 0.85rem;
}

.um-assistant__presence-name {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--asst-ink);
}

.um-assistant__presence-whisper {
    margin: 0.45rem 0 0;
    max-width: 17rem;
    min-height: 2.6em;
    font-size: 0.9rem;
    line-height: 1.45;
    font-weight: 500;
    color: var(--asst-ink-soft);
    transition: opacity 0.35s ease;
}

.um-assistant__presence-whisper.is-fading {
    opacity: 0;
}

.um-assistant__main--conversation .um-assistant__presence {
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    position: absolute;
}

.um-assistant__composer {
    background: transparent;
    border: none;
}

.um-assistant__composer-inner {
    background: rgba(255, 255, 255, 0.82);
    border: none;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.um-assistant__composer.is-thinking .um-assistant__composer-inner {
    box-shadow: 0 4px 28px rgba(246, 139, 30, 0.2);
}

.um-assistant__desktop-bar {
    background: #f68b1e;
    border: none;
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .um-assistant__mindscape-blob,
    .um-assistant__mindscape-base,
    .um-assistant__mindscape-shimmer,
    .um-assistant__mindscape-glow,
    .um-assistant__presence-glow {
        animation: none !important;
    }
}

/* Mobile Junior chrome — full-bleed orange bar: menu · UNIMART AFRICA */
@media (max-width: 991.98px) {
    .um-assistant__desktop-bar,
    body.assistant-layer-page .um-assistant__desktop-bar,
    body.assistant-confidence-page .um-assistant__desktop-bar,
    body.assistant-confidence-page .um-assistant__main:not(.um-assistant__main--conversation) .um-assistant__desktop-bar,
    body.assistant-confidence-page .um-assistant__main--conversation .um-assistant__desktop-bar {
        display: flex !important;
        position: relative !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        flex-shrink: 0;
        align-items: center;
        justify-content: flex-start;
        gap: 0.35rem;
        align-self: stretch;
        width: 100% !important;
        max-width: none !important;
        min-height: 3.5rem;
        margin: 0 !important;
        padding: 0.55rem 0.85rem;
        padding-top: max(0.55rem, env(safe-area-inset-top, 0px));
        border: none !important;
        border-radius: 0 !important;
        background: #f68b1e !important;
        color: #fff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
        z-index: 20;
        pointer-events: auto !important;
        box-sizing: border-box;
    }

    .um-assistant__sidebar-toggle {
        display: inline-flex !important;
        flex-shrink: 0;
        width: 2.75rem;
        height: 2.75rem;
        min-width: 44px;
        min-height: 44px;
        border: none !important;
        border-radius: 0;
        background: transparent !important;
        box-shadow: none !important;
        color: #fff !important;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }

    .um-assistant__sidebar-toggle:hover,
    .um-assistant__sidebar-toggle:focus-visible {
        background: transparent !important;
        color: #fff !important;
        outline: none;
        opacity: 0.88;
    }

    .um-assistant__sidebar-toggle i {
        font-size: 1.2rem;
        line-height: 1;
    }

    .um-assistant__desktop-title {
        display: none !important;
    }

    .um-assistant__desktop-site-brand,
    body.assistant-layer-page .um-assistant__desktop-site-brand {
        display: inline-flex !important;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
        max-width: calc(100% - 5.5rem);
        pointer-events: auto;
        color: #fff !important;
    }

    .um-assistant__desktop-site-brand .um-assistant__site-brand-text {
        font-size: clamp(1.05rem, 4.6vw, 1.2rem);
        font-weight: 700;
        letter-spacing: -0.02em;
        color: #fff !important;
    }

    .um-assistant__desktop-site-brand .um-assistant__site-brand-uni {
        color: #fff !important;
    }

    .um-assistant__desktop-site-brand .um-assistant__site-brand-africa,
    body.assistant-layer-page .um-assistant__desktop-site-brand .um-assistant__site-brand-africa,
    body.assistant-confidence-page .um-assistant__desktop-site-brand .um-assistant__site-brand-africa {
        color: #0a2540 !important;
    }

    /* Account + theme live in the sidebar on phones */
    .um-assistant__desktop-actions,
    body.assistant-confidence-page .um-assistant__main:not(.um-assistant__main--conversation) .um-assistant__desktop-actions {
        display: none !important;
    }

    .um-assistant__theme-corner {
        display: none !important;
    }

    .um-assistant__mobile-bar {
        display: none !important;
    }

    /* Keep intel chips out of the primary chrome on phones */
    .um-assistant__intel-bar {
        display: none !important;
    }

    /* Sidebar drawer */
    .um-assistant__sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1190;
        border: none;
        padding: 0;
        margin: 0;
        background: rgba(15, 23, 42, 0.42);
        cursor: pointer;
    }

    .um-assistant__sidebar-backdrop[hidden] {
        display: none !important;
    }

    .um-assistant__sidebar {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(86vw, 300px);
        z-index: 1200;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
        box-shadow: 8px 0 32px rgba(15, 23, 42, 0.18);
        background: #fff;
        padding-top: max(0.75rem, env(safe-area-inset-top, 0px));
        padding-bottom: max(0.55rem, env(safe-area-inset-bottom, 0px));
    }

    .um-assistant--mobile-sidebar-open .um-assistant__sidebar {
        transform: translateX(0);
    }

    body.um-assistant--mobile-sidebar-open {
        overflow: hidden;
    }

    .um-assistant__history {
        flex: 1 1 auto;
        max-height: none;
        min-height: 0;
        margin-bottom: 0.35rem;
    }

    /* Pin memory + account together at the bottom */
    .um-assistant__memory,
    .um-assistant__public-cta {
        margin-top: auto;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .um-assistant__sidebar-foot {
        display: flex !important;
        flex-direction: column;
        gap: 0.15rem;
        margin-top: auto;
        padding-top: 0.35rem;
        padding-bottom: 0.15rem;
        border-top: 1px solid rgba(15, 23, 42, 0.08);
        flex-shrink: 0;
    }

    .um-assistant__memory + .um-assistant__sidebar-foot,
    .um-assistant__public-cta + .um-assistant__sidebar-foot {
        margin-top: 0;
        border-top: none;
        padding-top: 0.1rem;
    }

    .um-assistant__memory {
        margin-left: 0.45rem;
        margin-right: 0.45rem;
        padding-top: 0.35rem;
    }

    .um-assistant__sidebar-foot-link--theme {
        display: none !important;
    }

    .um-assistant__sidebar-foot-theme {
        display: inline-flex !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .um-assistant__sidebar-foot-link {
        border: none !important;
        border-radius: 10px !important;
        background: transparent;
    }

    /* White composer pill: typed text must stay dark (dark theme was washing it out) */
    body.assistant-layer-page .um-assistant__composer-inner .um-assistant__input,
    body.assistant-confidence-page .um-assistant__composer-inner .um-assistant__input,
    body.assistant-layer-page[data-today-theme="dark"] .um-assistant__composer-inner .um-assistant__input,
    body.assistant-confidence-page[data-today-theme="dark"] .um-assistant__composer-inner .um-assistant__input,
    html.assistant-theme-dark-pending body.assistant-layer-page .um-assistant__composer-inner .um-assistant__input {
        color: #111111 !important;
        -webkit-text-fill-color: #111111 !important;
        caret-color: #111111 !important;
        opacity: 1 !important;
    }

    body.assistant-layer-page .um-assistant__composer-inner .um-assistant__input::placeholder,
    body.assistant-confidence-page .um-assistant__composer-inner .um-assistant__input::placeholder,
    body.assistant-layer-page[data-today-theme="dark"] .um-assistant__composer-inner .um-assistant__input::placeholder,
    html.assistant-theme-dark-pending body.assistant-layer-page .um-assistant__composer-inner .um-assistant__input::placeholder {
        color: #6b7280 !important;
        -webkit-text-fill-color: #6b7280 !important;
        opacity: 1 !important;
    }

    .um-assistant__goal-stack--active {
        max-width: min(40rem, calc(100% - 1.25rem));
        padding: 0.5rem 0.75rem 0.75rem;
        flex: 1 1 auto;
        justify-content: center;
    }

    .um-assistant__main:not(.um-assistant__main--conversation) {
        justify-content: stretch;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .um-assistant__main:not(.um-assistant__main--conversation) .um-assistant__idle-stage {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .um-goal-idle__chips {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .um-goal-idle__headline {
        font-size: clamp(1.35rem, 6vw, 1.75rem);
    }
}

@media (max-width: 360px) {
    .um-goal-idle__chips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .um-goal-idle__chip {
        font-size: 0.64rem;
    }
}

.um-assistant__theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    border: 1px solid rgba(44, 62, 80, 0.1);
    background: rgba(255, 255, 255, 0.55);
    color: #5a6570;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.um-assistant__theme-toggle:hover,
.um-assistant__theme-toggle:focus-visible {
    color: #2c3e50;
    border-color: rgba(246, 139, 30, 0.35);
    background: rgba(255, 255, 255, 0.85);
    outline: none;
}

/* —— Junior account modal —— */
body.junior-account-modal-open {
    overflow: hidden;
}

.junior-account-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.junior-account-modal[hidden] {
    display: none !important;
}

.junior-account-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.junior-account-modal__panel {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    max-height: min(90vh, 640px);
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    padding: 1.35rem 1.4rem 1.2rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.junior-account-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.junior-account-modal__close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.junior-account-modal__title {
    margin: 0 2rem 0.25rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}

.junior-account-modal__lead {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.45;
}

.junior-account-modal__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    margin-bottom: 1rem;
    padding: 0.25rem;
    background: #f1f5f9;
    border-radius: 10px;
}

.junior-account-modal__tab {
    border: none;
    border-radius: 8px;
    padding: 0.55rem 0.5rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    cursor: pointer;
}

.junior-account-modal__tab.is-active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.junior-account-modal__label {
    display: block;
    margin: 0.65rem 0 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
}

.junior-account-modal__input,
.junior-account-modal__select {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    font-size: 0.95rem;
    background: #fff;
    color: #0f172a;
}

.junior-account-modal__input:focus,
.junior-account-modal__select:focus {
    outline: none;
    border-color: #f68b1e;
    box-shadow: 0 0 0 3px rgba(246, 139, 30, 0.2);
}

.junior-account-modal__primary {
    display: block;
    width: 100%;
    margin-top: 1rem;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #f68b1e, #e96703);
    cursor: pointer;
}

.junior-account-modal__primary:disabled {
    opacity: 0.65;
    cursor: wait;
}

.junior-account-modal__link,
.junior-account-modal__back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    border: none;
    background: none;
    color: #64748b;
    font-size: 0.86rem;
    cursor: pointer;
    text-decoration: none;
}

.junior-account-modal__link:hover,
.junior-account-modal__back:hover {
    color: #f68b1e;
}

.junior-account-modal__hint {
    margin: 0 0 0.5rem;
    font-size: 0.88rem;
    color: #475569;
}

.junior-account-modal__status {
    margin: 0.85rem 0 0;
    font-size: 0.86rem;
    color: #15803d;
}

.junior-account-modal__status.is-error {
    color: #b91c1c;
}

.junior-account-modal__identity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e2e8f0;
}

.junior-account-modal__avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #f68b1e, #e96703);
}

.junior-account-modal__who {
    margin: 0;
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
}

.junior-account-modal__email {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: #64748b;
}

.junior-account-modal__menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.junior-account-modal__menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    background: transparent;
    color: #0f172a;
    font-size: 0.92rem;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.junior-account-modal__menu-item:hover {
    background: #f8fafc;
}

.junior-account-modal__menu-item i {
    width: 1.1rem;
    color: #64748b;
}

.junior-account-modal__menu-item--danger {
    color: #b91c1c;
}

.junior-account-modal__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
}

.junior-account-modal__chip {
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.82rem;
    background: #fff;
    cursor: pointer;
}

.junior-account-modal__chip.is-selected,
.junior-account-modal__chip:hover {
    border-color: #f68b1e;
    color: #c2410c;
    background: rgba(246, 139, 30, 0.08);
}

.junior-account-modal__check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0.75rem 0 0.25rem;
    font-size: 0.9rem;
    color: #0f172a;
    cursor: pointer;
}

.junior-account-modal__help {
    margin: 0 0 0.5rem 1.55rem;
    font-size: 0.78rem;
    color: #64748b;
}

.junior-account-modal__account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 2.35rem;
    height: 2.35rem;
    padding: 0 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(44, 62, 80, 0.1);
    background: rgba(255, 255, 255, 0.55);
    color: #5a6570;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.junior-account-modal__account-btn:hover {
    color: #2c3e50;
    border-color: rgba(246, 139, 30, 0.35);
}

.junior-account-modal__account-btn-label {
    display: none;
}

@media (min-width: 992px) {
    .junior-account-modal__account-btn-label {
        display: inline;
    }
}
