.cms-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.22), transparent 28%),
        radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.20), transparent 30%),
        linear-gradient(180deg, #f6f3ee 0%, #e8eef2 100%);
    color: #172033;
    font-family: "Barlow", sans-serif;
}

.page-shell {
    max-width: 1440px;
}

.top-banner,
.sidebar-card,
.content-card,
.admin-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(23, 32, 51, 0.08);
    box-shadow: 0 20px 60px rgba(23, 32, 51, 0.08);
}

.top-banner {
    border-radius: 28px;
    padding: 1.4rem;
    display: grid;
    grid-template-columns: minmax(240px, 380px) 1fr auto;
    gap: 1.25rem;
    align-items: center;
}

.portal-logo {
    width: 100%;
    max-width: 360px;
    height: auto;
    display: block;
}

.text-logo {
    font-family: "Space Grotesk", sans-serif;
    font-size: 2rem;
    font-weight: 700;
}

.top-kicker {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    color: #0f766e;
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.top-copy h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.8rem, 2vw, 2.6rem);
    margin-bottom: 0.3rem;
}

.translate-box {
    min-width: 180px;
    justify-self: end;
}

.portal-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1.25rem;
}

.sidebar-card,
.content-card {
    border-radius: 28px;
}

.sidebar-card {
    padding: 1.25rem;
    position: sticky;
    top: 1rem;
    align-self: start;
}

.content-card {
    padding: 1.5rem;
}

.menu-stack {
    display: grid;
    gap: 0.75rem;
}

.menu-link,
.portal-chip {
    border-radius: 16px;
    padding: 0.9rem 1rem;
    text-decoration: none;
    color: #172033;
    background: #f4f7fa;
    border: 1px solid #dde6ed;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.menu-link:hover,
.portal-chip:hover,
.menu-link.active,
.portal-chip.active {
    transform: translateX(4px);
    background: #fff3d8;
    border-color: #f59e0b;
    color: #111827;
}

.admin-card {
    border-radius: 22px;
    padding: 1rem;
}

.portal-switch {
    display: grid;
    gap: 0.75rem;
}

.page-title {
    font-family: "Space Grotesk", sans-serif;
    margin-bottom: 1rem;
}

.page-intro {
    color: #526072;
    margin-bottom: 1.25rem;
}

.html-preview {
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 1.25rem;
    background: #fff;
}

.map-embed {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #dbe4ea;
    min-height: 360px;
    background: #edf2f7;
}

.map-embed iframe {
    width: 100%;
    min-height: 360px;
    border: 0;
    display: block;
}

.admin-tools,
.chat-layout,
.stats-grid {
    display: grid;
    gap: 1rem;
}

.chat-layout {
    grid-template-columns: 220px 1fr;
    align-items: start;
}

.chatbot-avatar {
    background: linear-gradient(180deg, #fff8eb 0%, #eefcf9 100%);
    border: 1px solid #e7ecef;
    border-radius: 24px;
    padding: 1rem;
    text-align: center;
}

.chatbot-avatar svg {
    width: 100%;
    max-width: 180px;
    height: auto;
}

.chat-answer,
.history-item,
.tool-card {
    background: #fff;
    border: 1px solid #e4eaef;
    border-radius: 20px;
    padding: 1rem;
}

.history-item + .history-item {
    margin-top: 0.9rem;
}

.answer-label,
.question-label {
    font-weight: 700;
    color: #0f766e;
}

.history-meta,
.muted-label {
    color: #667085;
    font-size: 0.92rem;
}

.tool-card h3,
.tool-card h2 {
    font-family: "Space Grotesk", sans-serif;
}

.toolbar-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.logo-note {
    font-size: 0.92rem;
    color: #667085;
}

@media (max-width: 991px) {
    .top-banner,
    .portal-grid,
    .chat-layout {
        grid-template-columns: 1fr;
    }

    .translate-box {
        justify-self: start;
    }

    .sidebar-card {
        position: static;
    }
}
