:root {
    --bg: #f7f5f0;
    --surface: #ffffff;
    --ink: #1c1b18;
    --muted: #68645d;
    --line: #ded8cd;
    --brand: #0f766e;
    --brand-dark: #0b4f49;
    --accent: #b45309;
    --danger: #b42318;
    --shadow: 0 18px 50px rgba(28, 27, 24, 0.12);
}

/* Admin top menu layout */
.dashboard-page {
    padding-left: 0 !important;
    padding-top: 0 !important;
}

.admin-mainnav,
.admin-sidebar {
    align-items: center !important;
    background: rgba(248, 249, 255, 0.94) !important;
    border-bottom: 1px solid #c9c8dd !important;
    border-right: 0 !important;
    bottom: auto !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    left: auto !important;
    min-height: 70px !important;
    overflow: visible !important;
    padding: 0.75rem clamp(1rem, 2.5vw, 2.25rem) !important;
    position: sticky !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 90 !important;
}

.admin-sidebar-brand {
    flex: 0 0 auto !important;
    gap: 0.05rem !important;
    margin: 0 !important;
    min-width: max-content !important;
    padding: 0 !important;
}

.admin-sidebar-brand span {
    font-size: 1.12rem !important;
    line-height: 1 !important;
}

.admin-sidebar-brand strong {
    font-size: 0.68rem !important;
    letter-spacing: 0.08em !important;
}

.admin-sidebar-nav {
    align-items: center !important;
    display: flex !important;
    flex: 1 1 auto !important;
    gap: 0.35rem !important;
    min-width: 0 !important;
    overflow: visible !important;
    padding: 0.1rem 0 !important;
}

.admin-sidebar-nav a,
.admin-nav-group-toggle,
.admin-nav-subitem,
.admin-sidebar-footer a,
.admin-sidebar-logout button {
    align-items: center !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-left: 0 !important;
    border-radius: 12px !important;
    color: #424254 !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    gap: 0.48rem !important;
    grid-template-columns: none !important;
    line-height: 1 !important;
    min-height: 42px !important;
    padding: 0.55rem 0.78rem !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    width: auto !important;
}

.admin-nav-group {
    flex: 0 0 auto !important;
    position: relative !important;
}

.admin-nav-group-toggle {
    appearance: none !important;
    cursor: pointer !important;
    font-family: inherit !important;
}

.admin-sidebar-nav a.is-active {
    background: #eef1ff !important;
    border-color: #cfd3ff !important;
    box-shadow: inset 0 -3px 0 #3528d9 !important;
}

.admin-nav-group.is-active > .admin-nav-group-toggle,
.admin-nav-group-toggle:hover,
.admin-nav-group:focus-within > .admin-nav-group-toggle {
    background: #eef1ff !important;
    border-color: #cfd3ff !important;
    color: #241be0 !important;
}

.admin-nav-chevron {
    color: currentColor !important;
    font-size: 1.05rem !important;
    line-height: 1 !important;
    margin-left: 0.05rem !important;
    opacity: 0.72 !important;
    transform: translateY(-1px) !important;
}

.admin-nav-submenu {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid #d7daf0 !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14) !important;
    display: grid !important;
    gap: 0.3rem !important;
    left: 0 !important;
    min-width: 245px !important;
    opacity: 0 !important;
    padding: 0.55rem !important;
    pointer-events: none !important;
    position: absolute !important;
    top: calc(100% + 0.55rem) !important;
    transform: translateY(-5px) !important;
    transition: opacity 0.16s ease, transform 0.16s ease !important;
    z-index: 160 !important;
}

.admin-nav-group:hover .admin-nav-submenu,
.admin-nav-group:focus-within .admin-nav-submenu {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.admin-nav-subitem {
    border-radius: 12px !important;
    color: #323247 !important;
    justify-content: flex-start !important;
    min-height: 42px !important;
    padding: 0.58rem 0.72rem !important;
}

.admin-nav-subitem:hover,
.admin-nav-subitem.is-active {
    background: #f0f3ff !important;
    color: #241be0 !important;
}

.admin-nav-subitem.is-disabled {
    color: #8a8da3 !important;
    cursor: not-allowed !important;
    opacity: 0.68 !important;
}

.admin-nav-icon {
    height: 22px !important;
    width: 22px !important;
}

.admin-nav-icon .lucide-icon {
    height: 20px !important;
    width: 20px !important;
}

.admin-sidebar-footer {
    align-items: center !important;
    border-top: 0 !important;
    display: flex !important;
    flex: 0 0 auto !important;
    gap: 0.35rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.admin-sidebar-footer a:first-child {
    border: 1px solid #c8c9dc !important;
    justify-content: center !important;
}

.admin-sidebar-logout {
    display: none !important;
}

.admin-topnav {
    top: 70px !important;
    z-index: 80 !important;
}

.dashboard-container,
.admin-management-page {
    max-width: 1480px !important;
}

@media (max-width: 1180px) {
    .admin-mainnav,
    .admin-sidebar {
        align-items: flex-start !important;
        flex-wrap: wrap !important;
        min-height: auto !important;
    }

    .admin-sidebar-nav {
        order: 3 !important;
        width: 100% !important;
    }

    .admin-topnav {
        top: 112px !important;
    }
}

@media (max-width: 760px) {
    .admin-mainnav,
    .admin-sidebar {
        gap: 0.65rem !important;
        padding: 0.65rem 0.85rem !important;
    }

    .admin-sidebar-brand span {
        font-size: 1rem !important;
    }

    .admin-sidebar-footer {
        display: none !important;
    }

    .admin-sidebar-nav a,
    .admin-nav-group-toggle {
        font-size: 0.84rem !important;
        min-height: 38px !important;
        padding: 0.48rem 0.68rem !important;
    }

    .admin-topnav {
        top: 103px !important;
    }
}

/* Base */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.sheet-open {
    overflow: hidden;
}

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

button {
    border: 0;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    min-height: 44px;
    padding: 0.75rem 1rem;
}

button:hover {
    background: var(--brand-dark);
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    margin-top: 0.4rem;
    min-height: 44px;
    padding: 0.7rem 0.8rem;
}

textarea {
    resize: vertical;
}

label {
    color: var(--muted);
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
}

.hidden {
    display: none !important;
}

.sr-only {
    height: 1px;
    margin: -1px;
    overflow: hidden;

/* Legacy lightweight admin shell */

position: absolute;
    width: 1px;
    clip: rect(0, 0, 0, 0);
}

.eyebrow {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 0.4rem;
    text-transform: uppercase;
}

.topbar,
.menu-hero {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 1rem;
}

.topbar h1,
.menu-hero h1 {
    font-size: clamp(2rem, 8vw, 4.5rem);
    line-height: 0.98;
    margin: 0;
}

.admin-layout,
.menu-layout {
    display: grid;
    gap: 1rem;
    margin: 0 auto;
    max-width: 1120px;
    padding: 1rem;
}

.panel,
.menu-category {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(28, 27, 24, 0.04);
    padding: 1rem;
}

.panel h2,
.menu-category h2 {
    margin: 0 0 1rem;
}

.auth-panel {
    max-width: 440px;
}

form {
    display: grid;
    gap: 0.9rem;
}

.grid-form {
    grid-template-columns: 1fr;
}

.section-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.restaurant-list,
.menu-content {
    display: grid;
    gap: 1rem;
}

.restaurant-card,
.menu-item {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 0.35rem;
    padding-top: 1rem;
}

.restaurant-card:first-child,
.menu-item:first-of-type {
    border-top: 0;
}

.restaurant-card h3,
.menu-item h3 {
    margin: 0;
}

.restaurant-card p,
.menu-item p,
.menu-hero p {
    color: var(--muted);
    margin: 0;
}

.item-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pill {
    background: #eef8f6;
    border: 1px solid #c9ebe5;
    border-radius: 999px;
    color: var(--brand-dark);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.25rem 0.55rem;
}

.price {
    color: var(--ink);
    font-weight: 900;
}

.locale-switcher {
    margin-bottom: 1.5rem;
    max-width: 180px;
}

/* Shared admin utilities */

/* Shared admin utility styles */

.status-message {
    color: var(--danger);
    min-height: 1.25rem;
}

.admin-auth-page,
.dashboard-page {
    background: #f4f6f8;
    min-height: 100vh;
}

.login-wrap {
    background: #f7f8ff;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
    min-height: 100vh;
    padding: 0;
}

.login-visual {
    background:
        linear-gradient(180deg, rgba(9, 14, 25, 0.16), rgba(9, 14, 25, 0.64)),
        url("/assets/images/restaurants/tuning-burger-cover-8e8ae2ac389589b0c5488677.png") center / cover;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: clamp(2rem, 4vw, 4rem);
}

.login-brand {
    align-items: center;
    display: flex;
    gap: 0.9rem;
}

.login-brand > span {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    display: inline-flex;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.login-brand .lucide-icon {
    height: 28px;
    width: 28px;
}

.login-brand strong,
.login-brand small {
    display: block;
}

.login-brand strong {
    font-size: 1.45rem;
    font-weight: 900;
}

.login-brand small {
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    opacity: 0.88;
    text-transform: uppercase;
}

.login-visual-copy {
    max-width: 560px;
}

.login-visual-copy p {
    font-size: clamp(2rem, 4.4vw, 4.4rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.98;
    margin: 0;
    text-wrap: balance;
}

.login-panel {
    align-items: center;
    display: grid;
    min-height: 100vh;
    padding: clamp(1.25rem, 5vw, 4rem);
}

.login-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    max-width: 440px;
    padding: 0;
    width: 100%;
}

.login-card h1 {
    color: #101827;
    font-size: clamp(2.35rem, 4vw, 3.4rem);
    letter-spacing: 0;
    line-height: 1;
    margin: 0 0 0.8rem;
}

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

.stack-form {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.stack-form label {
    color: #2d3042;
    display: grid;
    font-weight: 800;
    gap: 0.45rem;
}

.stack-form input {
    border: 1px solid #c7c9da;
    border-radius: 10px;
    color: #101827;
    min-height: 54px;
    padding: 0.85rem 1rem;
}

.stack-form input:focus {
    border-color: #5144eb;
    box-shadow: 0 0 0 4px rgba(81, 68, 235, 0.12);
    outline: none;
}

.stack-form button {
    background: #3528d9;
    border-radius: 10px;
    box-shadow: 0 12px 22px rgba(53, 40, 217, 0.2);
    font-size: 1.05rem;
    min-height: 54px;
}

.stack-form button:hover {
    background: #241bbf;
}

.alert {
    border-radius: 8px;
    font-weight: 700;
    margin: 1rem 0;
    padding: 0.8rem;
}

.alert-danger {
    background: #fff1f0;
    border: 1px solid #f4b6ae;
    color: var(--danger);
}

.alert-success {
    background: #eef8f6;
    border: 1px solid #b7e4db;
    color: var(--brand-dark);
}

.btn-light {
    background: #eef2f6;
    color: var(--ink);
}

.btn-light:hover {
    background: #dfe5eb;
}

.metric-card,
.admin-card {
    background: #fff;
    border: 1px solid #dfe5eb;
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(28, 27, 24, 0.04);
    padding: 1rem;
}

.card-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.card-heading h2,
.admin-card h2 {
    font-size: 1.15rem;
    margin: 0;
}

.profile-form {
    display: grid;
    gap: 1.25rem;
}

.form-section {
    border-top: 1px solid #edf0f2;
    display: grid;
    gap: 1rem;
    padding-top: 1rem;
}

.form-section:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.form-section h2 {
    margin: 0;
}

.form-grid,
.checkbox-grid,
.image-preview-grid {
    display: grid;
    gap: 1rem;
}

.check-row {
    align-items: center;
    background: #f8fafb;
    border: 1px solid #dfe5eb;
    border-radius: 8px;
    color: var(--ink);
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
}

.check-row input {
    margin: 0;
    min-height: auto;
    width: auto;
}

.check-row small {
    color: var(--muted);
    display: block;
    font-weight: 600;
    margin-top: 0.15rem;
}

.image-preview-grid img {
    aspect-ratio: 16 / 9;
    border: 1px solid #dfe5eb;
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
}

.responsive-heading {
    align-items: flex-start;
    display: grid;
    gap: 1rem;
}

.category-admin-list {
    display: grid;
    gap: 0.75rem;
}

.category-admin-card {
    align-items: start;
    background: #f8fafb;
    border: 1px solid #dfe5eb;
    border-radius: 8px;
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.category-admin-card h3 {
    margin: 0 0 0.25rem;
}

.category-admin-card p {
    color: var(--muted);
    margin: 0;
}

.category-actions {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-actions button {
    min-width: 0;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
}

.btn-danger {
    background: var(--danger);
}

.btn-danger:hover {
    background: #8f1b12;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.translation-grid {
    display: grid;
    gap: 1rem;
}

.translation-panel {
    background: #f8fafb;
    border: 1px solid #dfe5eb;
    border-radius: 8px;
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
}

.translation-panel h3 {
    margin: 0;
}

.translation-panel small {
    color: var(--muted);
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.15rem;
}

.product-toolbar {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.product-title-cell {
    align-items: center;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: auto 1fr;
}

.product-thumb {
    aspect-ratio: 1;
    border: 1px solid #dfe5eb;
    border-radius: 8px;
    height: 64px;
    object-fit: cover;
    width: 64px;
}

.modal-backdrop {
    align-items: start;
    background: rgba(28, 27, 24, 0.45);
    bottom: 0;
    display: grid;
    left: 0;
    overflow: auto;
    padding: 1rem;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 100;
}

.modal-panel {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 1rem;
    margin: 0 auto;
    max-width: 980px;
    padding: 1rem;
    width: 100%;
}

/* Admin management, products, categories, and profile */

/* Current admin management, products, categories, and profile */

/* Full admin SaaS redesign */
.dashboard-page {
    background: #f7f8ff;
    color: #0f1f33;
    min-height: 100vh;
    padding-left: 292px;
}

.admin-sidebar {
    background: #f8f9ff;
    border-right: 1px solid #c9c8dd;
    bottom: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    left: 0;
    padding: 1.85rem 1.55rem 1.25rem;
    position: fixed;
    top: 0;
    width: 292px;
    z-index: 80;
}

.admin-sidebar-brand {
    display: grid;
    gap: 0.15rem;
    margin-bottom: 2.55rem;
    padding-left: 0.2rem;
}

.admin-sidebar-brand span {
    color: #2f24d9;
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.05;
}

.admin-sidebar-brand strong {
    color: #25263a;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-sidebar-nav {
    display: grid;
    gap: 0.55rem;
}

.admin-sidebar-nav a,
.admin-sidebar-footer a,
.admin-sidebar-logout button {
    align-items: center;
    background: transparent;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: 0;
    color: #424254;
    display: grid;
    font-size: 1.04rem;
    font-weight: 650;
    gap: 0.9rem;
    grid-template-columns: 34px 1fr;
    min-height: 48px;
    padding: 0.65rem 0.95rem;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

.admin-sidebar-nav a:hover,
.admin-sidebar-footer a:hover,
.admin-sidebar-logout button:hover {
    background: #eff1ff;
    color: #2d25d9;
}

.admin-sidebar-nav a.is-active {
    background: #eef1ff;
    border-left-color: #2d25e6;
    color: #241be0;
    font-weight: 850;
}

.admin-nav-icon {
    align-items: center;
    border: 0;
    border-radius: 7px;
    color: currentColor;
    display: inline-flex;
    font-size: 1.28rem;
    font-weight: 900;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.lucide-icon {
    display: block;
    flex: 0 0 auto;
    height: 1.25em;
    stroke-width: 1.8;
    width: 1.25em;
}

.admin-nav-icon .lucide-icon,
.admin-toolbar-actions .lucide-icon,
.admin-search .lucide-icon {
    height: 24px;
    width: 24px;
}

.landing-stat-icon .lucide-icon,
.ai-section-icon .lucide-icon,
.mode-icon .lucide-icon,
.profile-card h2 .lucide-icon,
.product-summary-grid .lucide-icon {
    height: 1em;
    width: 1em;
}

.landing-actions a,
.landing-train-button,
.product-filter-panel .btn-light,
.profile-card h2,
.assistant-mode-card .mode-icon,
.ai-section-title {
    align-items: center;
}

.landing-actions a,
.landing-train-button,
.product-filter-panel .btn-light {
    gap: 0.55rem;
}

.admin-icon-mask::before {
    background: currentColor;
    content: "";
    display: block;
    height: 1.25rem;
    mask: var(--lucide-icon-url) center / contain no-repeat;
    width: 1.25rem;
}

.admin-icon-pencil-square {
    --lucide-icon-url: url("/assets/icons/lucide/square-pen.svg");
}

.admin-icon-trash {
    --lucide-icon-url: url("/assets/icons/lucide/trash-2.svg");
}

.admin-sidebar-footer {
    border-top: 1px solid #dadae9;
    display: grid;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 1.2rem;
}

.admin-sidebar-footer a:first-child {
    border: 1px solid #c8c9dc;
    border-left-width: 1px;
    border-radius: 8px;
    justify-content: center;
}

.admin-sidebar-logout {
    margin: 0;
}

.admin-topnav {
    align-items: center;
    background: #f7f8ff;
    border-bottom: 1px solid #c9c8dd;
    box-shadow: none;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-height: 76px;
    padding: 1rem 1.55rem;
    position: sticky;
    top: 0;
    z-index: 60;
}

.admin-search {
    align-items: center;
    background: #eef3ff;
    border: 1px solid #c8c7db;
    border-radius: 16px;
    display: grid;
    gap: 0.7rem;
    grid-template-columns: auto 1fr;
    max-width: 560px;
    min-height: 44px;
    padding: 0 1rem;
    width: min(48vw, 560px);
}

.admin-search span {
    color: #292b40;
    font-size: 1.25rem;
}

.admin-search input {
    background: transparent;
    border: 0;
    color: #0f1f33;
    font-size: 1rem;
    min-height: 40px;
    padding: 0;
}

.admin-toolbar-actions {
    align-items: center;
    display: flex;
    gap: 1.15rem;
}

.admin-restaurant-switcher select {
    appearance: none;
    background: #fff;
    border: 1px solid #cfd5e6;
    border-radius: 999px;
    color: #111827;
    cursor: pointer;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 850;
    min-height: 38px;
    max-width: 220px;
    padding: 0 2rem 0 0.95rem;
}

.admin-toolbar-actions > button,
.admin-notifications summary,
.admin-topbar-logout button {
    background: transparent;
    border: 0;
    color: #2e3042;
    font-size: 1.35rem;
    min-height: 38px;
    padding: 0;
    width: 38px;
}

.admin-toolbar-actions > button:hover,
.admin-notifications summary:hover,
.admin-notifications[open] summary,
.admin-topbar-logout button:hover {
    background: #eef1ff;
}

.admin-notifications {
    position: relative;
}

.admin-notifications summary {
    align-items: center;
    border-radius: 12px;
    cursor: pointer;
    display: grid;
    justify-items: center;
    list-style: none;
    position: relative;
}

.admin-notifications summary::-webkit-details-marker {
    display: none;
}

.admin-notification-badge {
    align-items: center;
    background: #dc2626;
    border: 2px solid #f7f8ff;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 900;
    height: 18px;
    justify-content: center;
    line-height: 1;
    min-width: 18px;
    padding: 0 0.25rem;
    position: absolute;
    right: -3px;
    top: -3px;
}

.admin-notification-panel {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #d3d2e7;
    border-radius: 20px;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
    color: #0f1f33;
    display: grid;
    gap: 0.45rem;
    max-height: min(560px, calc(100vh - 96px));
    overflow: auto;
    padding: 0.8rem;
    position: absolute;
    right: -72px;
    top: calc(100% + 14px);
    width: min(360px, calc(100vw - 32px));
    z-index: 90;
}

.admin-notification-panel::before {
    background: inherit;
    border-left: 1px solid #d3d2e7;
    border-top: 1px solid #d3d2e7;
    content: "";
    height: 14px;
    position: absolute;
    right: 82px;
    top: -8px;
    transform: rotate(45deg);
    width: 14px;
}

.admin-notification-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0.45rem 0.7rem;
}

.admin-notification-header strong {
    font-size: 1rem;
}

.admin-notification-header span {
    align-items: center;
    background: #eef1ff;
    border-radius: 999px;
    color: #3326d6;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 900;
    min-width: 28px;
    justify-content: center;
    padding: 0.25rem 0.5rem;
}

.admin-notification-item {
    border: 1px solid #e1e4f2;
    border-radius: 14px;
    color: inherit;
    display: grid;
    gap: 0.18rem 0.7rem;
    grid-template-columns: auto 1fr;
    padding: 0.85rem;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.admin-notification-item:hover {
    background: #f5f7ff;
    border-color: #c8c7db;
    transform: translateY(-1px);
}

.admin-notification-item > span {
    background: #3326d6;
    border-radius: 999px;
    grid-row: span 2;
    height: 10px;
    margin-top: 0.32rem;
    width: 10px;
}

.admin-notification-item.is-success > span {
    background: #059669;
}

.admin-notification-item.is-warning > span {
    background: #f59e0b;
}

.admin-notification-item.is-danger > span {
    background: #dc2626;
}

.admin-notification-item strong {
    font-size: 0.95rem;
}

.admin-notification-item small {
    color: #5f6072;
    font-size: 0.82rem;
    line-height: 1.35;
}

.admin-notification-empty {
    color: #5f6072;
    font-size: 0.92rem;
    line-height: 1.45;
    margin: 0;
    padding: 0.85rem 0.45rem 1rem;
}

.admin-avatar {
    align-items: center;
    background: #fff;
    border: 2px solid #ced3e7;
    border-radius: 50%;
    color: #3127d8;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 900;
    height: 44px;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
    width: 44px;
}

.admin-avatar img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.admin-avatar.has-logo img {
    background: #fff;
}

.admin-avatar:hover {
    border-color: #3326d6;
    box-shadow: 0 10px 26px rgba(51, 38, 214, 0.18);
}

.admin-topbar-logout {
    border-left: 1px solid #c9c8dd;
    margin-left: 0.2rem;
    padding-left: 0.8rem;
}

.dashboard-container,
.admin-management-page {
    box-sizing: border-box;
    display: grid;
    gap: 1.75rem;
    margin: 0 auto;
    max-width: 1280px;
    padding: 2.9rem 2.55rem 4rem;
    width: 100%;
}

.management-hero,
.profile-hero {
    align-items: center;
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
}

.management-hero h1,
.profile-hero h1 {
    color: #0d2035;
    font-size: clamp(2rem, 3.4vw, 2.85rem);
    letter-spacing: 0;
    line-height: 1.03;
    margin: 0 0 0.35rem;
}

.management-hero p,
.profile-hero p,
.management-breadcrumb {
    color: #3e4054;
    font-size: 1.08rem;
    margin: 0;
}

.management-breadcrumb {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.management-hero button,
.profile-hero button,
.profile-save-bar button {
    background: #3528d9;
    border: 1px solid #251bb7;
    border-radius: 8px;
    box-shadow: 0 10px 18px rgba(53, 40, 217, 0.2);
    color: #fff;
    font-size: 1.03rem;
    font-weight: 800;
    min-height: 50px;
    padding: 0.8rem 1.45rem;
}

.profile-hero-actions {
    display: flex;
    gap: 0.85rem;
}

.profile-hero-actions .btn-light,
.profile-hero-actions .landing-primary-action,
.profile-save-bar a {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-weight: 750;
    min-height: 50px;
    padding: 0.8rem 1.45rem;
    text-decoration: none;
}

.profile-hero-actions .btn-light,
.profile-save-bar a {
    background: #fff;
    border: 1px solid #bfc1d4;
    color: #27283a;
}

.management-stat-grid,
.product-summary-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.management-stat-grid article,
.product-summary-grid article,
.profile-card,
.product-filter-panel,
.product-table-card,
.management-list-card,
.management-editor-card {
    background: #fff;
    border: 1px solid #c9c8dd;
    border-radius: 12px;
    box-shadow: 0 14px 28px rgba(25, 29, 55, 0.04);
}

.management-stat-grid article,
.product-summary-grid article {
    display: grid;
    gap: 0.75rem;
    min-height: 150px;
    padding: 1.8rem;
}

.management-stat-grid span {
    color: #26283b;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.management-stat-grid strong,
.product-summary-grid strong {
    color: #0d2035;
    font-size: 2.45rem;
    line-height: 1;
}

.management-stat-grid small,
.product-summary-grid small {
    color: #3c3f58;
    font-size: 0.95rem;
}

.management-list-card,
.product-table-card {
    display: grid;
    overflow: hidden;
}

.status-message {
    margin: 0;
    padding: 0 1.4rem;
}

.category-admin-list {
    display: grid;
    gap: 0;
}

.category-management-row,
.product-table-row {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #e5e6f0;
    display: grid;
    gap: 1.25rem;
    min-height: 96px;
    padding: 1.05rem 1.55rem;
}

.category-management-row {
    border: 1px solid #c9c8dd;
    border-radius: 10px;
    grid-template-columns: 24px 60px minmax(0, 1fr) minmax(130px, auto) auto;
    margin: 0 0 1rem;
}

.management-list-card .category-management-row {
    margin-left: 0;
    margin-right: 0;
}

.category-drag-handle {
    color: #74758c;
    font-size: 1.3rem;
}

.category-row-thumb,
.product-table-thumb {
    background:
        linear-gradient(135deg, rgba(47, 36, 217, 0.14), rgba(54, 153, 229, 0.1)),
        #101827;
    background-position: center;
    background-size: cover;
    border: 1px solid #c9c8dd;
    border-radius: 8px;
    display: block;
    height: 58px;
    width: 58px;
}

.category-row-main h3,
.product-title-cell h3 {
    color: #101f32;
    font-size: 1.25rem;
    font-weight: 750;
    line-height: 1.2;
    margin: 0 0 0.2rem;
}

.category-row-main em {
    background: #eeebff;
    border-radius: 999px;
    color: #241be0;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-left: 0.45rem;
    padding: 0.25rem 0.55rem;
    text-transform: uppercase;
}

.category-row-main p,
.product-title-cell p {
    color: #404257;
    margin: 0;
}

.category-row-meta {
    color: #1f2032;
    display: grid;
    gap: 0.15rem;
    justify-items: end;
    text-transform: uppercase;
}

.category-row-meta strong {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: none;
}

.category-row-meta span {
    font-size: 0.82rem;
    font-weight: 750;
}

.category-actions {
    align-items: center;
    display: flex;
    gap: 0.45rem;
    justify-content: flex-end;
}

.category-actions button {
    background: transparent;
    border: 0;
    color: #202237;
    font-size: 1.18rem;
    min-height: 34px;
    min-width: 34px;
    padding: 0.15rem;
}

.category-actions .btn-light {
    background: #f1f3ff;
    border: 1px solid #d8d9ee;
    border-radius: 7px;
    font-size: 0.85rem;
}

.category-actions .btn-danger {
    background: transparent;
    color: #202237;
}

.management-tip-card {
    background: transparent;
    border: 2px dashed #c7c3db;
    border-radius: 12px;
    color: #111827;
    display: grid;
    gap: 0.35rem;
    justify-items: center;
    padding: 2rem 1rem;
    text-align: center;
}

.management-tip-card strong {
    color: #74758c;
    font-size: 1.45rem;
}

.management-tip-card p {
    font-size: 1rem;
    font-weight: 750;
    margin: 0;
}

.management-tip-card span {
    color: #414459;
}

.product-filter-panel {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(260px, 1fr) auto minmax(170px, auto) auto;
    padding: 1.3rem;
}

.product-filter-panel label {
    align-items: center;
    color: #26283b;
    display: flex;
    gap: 0.75rem;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin: 0;
    text-transform: uppercase;
}

.product-filter-panel input,
.product-filter-panel select {
    background: #fff;
    border: 1px solid #c9c8dd;
    border-radius: 8px;
    color: #202237;
    min-height: 48px;
    min-width: 170px;
    padding: 0 1rem;
}

.product-search-field {
    border: 1px solid #c9c8dd;
    border-radius: 8px;
    display: grid !important;
    gap: 0.6rem;
    grid-template-columns: auto 1fr;
    letter-spacing: 0 !important;
    padding: 0 0.9rem;
    text-transform: none !important;
}

.product-search-field input {
    border: 0;
    min-width: 0;
    padding: 0;
}

.product-filter-panel .btn-light {
    background: #fff;
    border: 1px solid #c9c8dd;
    border-radius: 8px;
    color: #26283b;
    display: inline-flex;
    justify-content: center;
    min-height: 50px;
    padding: 0.75rem 1.2rem;
}

.product-table-head,
.product-table-row {
    grid-template-columns: minmax(280px, 1.6fr) minmax(150px, 1fr) 120px 160px 110px;
}

.product-table-head {
    background: #edf3ff;
    color: #333448;
    display: grid;
    font-size: 1rem;
    font-weight: 850;
    gap: 1.25rem;
    padding: 1.35rem 1.55rem;
}

.product-table-row:last-child {
    border-bottom: 0;
}

.product-title-cell {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: 60px minmax(0, 1fr);
}

.product-category-pill {
    background: #dfe5ff;
    border-radius: 999px;
    color: #5c6072;
    display: inline-flex;
    font-size: 1rem;
    justify-content: center;
    padding: 0.25rem 0.8rem;
    width: fit-content;
}

.product-table-price {
    align-items: baseline;
    color: #101f32;
    display: inline-flex;
    font-size: 1rem;
    gap: 0.32em;
    font-weight: 550;
}

.price-inline {
    align-items: baseline;
    display: inline-flex;
    gap: 0.32em;
}

.price-inline-small {
    gap: 0.28em;
}

.price-currency {
    font-size: 0.58em;
    font-weight: 850;
    letter-spacing: 0.08em;
    line-height: 1;
    opacity: 0.68;
    text-transform: uppercase;
}

.product-status-toggle {
    align-items: center;
    color: #111827;
    display: inline-flex;
    gap: 0.75rem;
}

.product-status-toggle i {
    background: #c6c4d8;
    border-radius: 999px;
    display: inline-flex;
    height: 28px;
    position: relative;
    width: 54px;
}

.product-status-toggle i::after {
    background: #fff;
    border-radius: 50%;
    content: "";
    height: 22px;
    left: 3px;
    position: absolute;
    top: 3px;
    width: 22px;
}

.product-status-toggle.is-active {
    color: #241be0;
}

.product-status-toggle.is-active i {
    background: #3429d9;
}

.product-status-toggle.is-active i::after {
    left: 29px;
}

.product-summary-grid article {
    background: #dfe8ff;
    min-height: 176px;
}

.product-summary-grid article.is-primary {
    background: #5144eb;
    color: #fff;
}

.product-summary-grid article.is-primary strong,
.product-summary-grid article.is-primary small {
    color: #fff;
}

.product-summary-grid span {
    align-items: center;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 9px;
    color: inherit;
    display: inline-flex;
    font-size: 1.35rem;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.profile-redesign-form {
    display: grid;
    gap: 1.75rem;
}

.profile-grid {
    display: grid;
    gap: 1.55rem;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.8fr);
}

.profile-card {
    display: grid;
    gap: 1.1rem;
    padding: 1.55rem;
}

.profile-card h2 {
    align-items: center;
    color: #111827;
    display: flex;
    font-size: 1.25rem;
    font-weight: 650;
    gap: 0.65rem;
    margin: 0 0 0.45rem;
}

.profile-card label {
    color: #2f3044;
    display: grid;
    gap: 0.55rem;
    font-size: 1rem;
}

.profile-card input,
.profile-card select,
.profile-card textarea {
    background: #fff;
    border: 1px solid #6f748a;
    border-radius: 0;
    color: #111827;
    font-size: 1rem;
    min-height: 50px;
    padding: 0.7rem 0.9rem;
}

.profile-basic-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-basic-card h2,
.profile-basic-card label:last-child {
    grid-column: 1 / -1;
}

.profile-location-card {
    align-content: start;
}

.profile-location-card textarea {
    min-height: 112px;
    resize: vertical;
}

.profile-map-preview {
    background: #eef1f7;
    border: 1px solid #d4d6e6;
    border-radius: 12px;
    min-height: 230px;
    overflow: hidden;
    position: relative;
}

.profile-map-preview iframe {
    border: 0;
    display: block;
    height: 230px;
    width: 100%;
}

.profile-map-empty {
    align-items: center;
    background:
        linear-gradient(rgba(248, 249, 255, 0.88), rgba(248, 249, 255, 0.88)),
        repeating-linear-gradient(0deg, #cfd1dc 0 2px, transparent 2px 22px),
        repeating-linear-gradient(90deg, #cfd1dc 0 2px, #eceef5 2px 22px);
    color: #33374c;
    display: grid;
    gap: 0.35rem;
    inset: 0;
    justify-items: center;
    padding: 1.25rem;
    position: absolute;
    text-align: center;
}

.profile-map-empty[hidden] {
    display: none;
}

.profile-map-empty .lucide-icon {
    color: #5144eb;
    height: 2rem;
    width: 2rem;
}

.profile-map-empty strong {
    color: #101827;
    font-size: 1rem;
}

.profile-map-empty small {
    color: #61647a;
    font-size: 0.86rem;
}

.profile-map-link {
    align-items: center;
    color: #2f24d9;
    display: inline-flex;
    font-weight: 800;
    gap: 0.45rem;
    justify-self: start;
    text-decoration: none;
}

.profile-map-link .lucide-icon {
    height: 1.05rem;
    width: 1.05rem;
}

.profile-map-link.is-disabled {
    color: #8b8da0;
    cursor: default;
    pointer-events: none;
}

.profile-lower-grid {
    align-items: start;
    display: grid;
    gap: 1.55rem;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.8fr);
}

.profile-left-stack {
    display: grid;
    gap: 1.55rem;
    min-width: 0;
}

.profile-assets-card {
    grid-column: 1 / 2;
}

.profile-hours-card {
    grid-column: 2 / 3;
}

.profile-assets-grid {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1.2fr);
}

.profile-upload-preview {
    background:
        linear-gradient(135deg, #18a6cf, #41c1d8);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border: 2px dashed #c9c8dd;
    border-radius: 8px;
    display: block;
    min-height: 150px;
    width: 100%;
}

.profile-upload-preview.logo-preview {
    align-items: center;
    aspect-ratio: 1;
    background-size: contain;
    color: #fff;
    display: flex;
    justify-content: center;
    max-width: 150px;
}

.profile-upload-preview.logo-preview::after {
    content: "≋";
    font-size: 2.4rem;
    font-weight: 900;
}

.profile-upload-preview.logo-preview[style]::after {
    content: none;
}

.profile-upload-preview.cover-preview {
    background:
        linear-gradient(rgba(15, 20, 32, 0.18), rgba(15, 20, 32, 0.18)),
        linear-gradient(135deg, #33251e, #b9935b);
}

.profile-assets-grid input[type="file"] {
    border: 0;
    min-height: 0;
    padding: 0;
}

.profile-language-card {
    align-content: start;
}

.profile-card-heading {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.profile-card-heading h2 {
    margin-bottom: 0.35rem;
}

.profile-add-language {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.6rem 0.9rem;
}

.profile-language-list,
.profile-new-languages {
    display: grid;
    gap: 0.75rem;
}

.profile-language-row {
    align-items: center;
    background: #f8f9ff;
    border: 1px solid #d7d8e8;
    border-radius: 10px;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0.8rem;
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.profile-language-row:hover {
    background: #f6f7ff;
    border-color: #b9b8f8;
    box-shadow: 0 8px 18px rgba(50, 44, 160, 0.08);
}

.profile-language-row.is-active {
    background: #f3f5ff;
    border-color: #5144eb;
}

.profile-language-row label {
    align-items: center;
    cursor: pointer;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: auto minmax(0, 1fr);
}

.profile-language-row input {
    inline-size: 1px;
    opacity: 0;
    position: absolute;
}

.profile-language-toggle {
    background: #c9c9da;
    border-radius: 999px;
    height: 24px;
    position: relative;
    width: 44px;
}

.profile-language-toggle::after {
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(20, 22, 40, 0.2);
    content: "";
    height: 18px;
    left: 3px;
    position: absolute;
    top: 3px;
    transition: transform 0.18s ease;
    width: 18px;
}

.profile-language-row input:checked + .profile-language-toggle {
    background: #5144eb;
}

.profile-language-row input:checked + .profile-language-toggle::after {
    transform: translateX(20px);
}

.profile-language-row strong {
    color: #121827;
    display: block;
    font-size: 1rem;
}

.profile-language-row small {
    color: #5f6275;
    display: block;
    font-size: 0.82rem;
    margin-top: 0.15rem;
}

.profile-remove-language,
.profile-remove-new-language {
    align-items: center;
    background: #fff;
    border: 1px solid #d7d8e8;
    border-radius: 8px;
    color: #4b4d62;
    display: inline-flex;
    font-weight: 750;
    justify-content: center;
    min-height: 38px;
    padding: 0.55rem 0.75rem;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.profile-remove-language {
    background: #fff;
    border-color: #e2d4d2;
    color: #b42318;
    width: 38px;
}

.profile-remove-language:hover,
.profile-remove-language:focus-visible {
    background: #dc2626;
    border-color: #dc2626;
    box-shadow: 0 8px 16px rgba(220, 38, 38, 0.22);
    color: #fff;
}

.profile-remove-language .lucide-icon {
    height: 19px;
    width: 19px;
}

.profile-remove-new-language:hover,
.profile-remove-new-language:focus-visible {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b42318;
}

.profile-new-language-row {
    background: #fff;
    border: 1px dashed #b9b9d1;
    border-radius: 10px;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: 0.75fr 1fr 1fr auto;
    padding: 0.9rem;
}

.profile-new-language-row label {
    font-size: 0.83rem;
    gap: 0.4rem;
}

.profile-new-language-row input,
.profile-new-language-row select {
    border-radius: 8px;
    min-height: 42px;
}

.profile-new-language-row input[readonly] {
    background: #f8fafc;
    color: #5f6375;
    cursor: default;
}

.profile-translation-panel {
    align-items: center;
    background: linear-gradient(135deg, rgba(238, 242, 255, 0.95), rgba(248, 250, 252, 0.98));
    border: 1px solid #d7d8e8;
    border-radius: 14px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem;
}

.profile-translation-panel strong,
.profile-translation-panel span {
    display: block;
}

.profile-translation-panel strong {
    color: #111827;
    font-size: 0.98rem;
    margin-bottom: 0.25rem;
}

.profile-translation-panel span {
    color: #5f6275;
    font-size: 0.86rem;
    line-height: 1.45;
}

.profile-run-translation {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 0.45rem;
    min-height: 42px;
    padding-inline: 1rem;
}

.profile-run-translation.is-loading {
    cursor: wait;
    opacity: 0.72;
}

.profile-translation-status {
    color: #5f6275;
    font-size: 0.88rem;
    font-weight: 700;
    min-height: 1.25rem;
}

.profile-translation-status.is-success {
    color: #087f5b;
}

.profile-translation-status.is-error {
    color: #b42318;
}

.profile-translation-status.is-info {
    color: #5144eb;
}

.translation-overlay {
    align-items: center;
    background: rgba(16, 18, 27, 0.52);
    backdrop-filter: blur(10px);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1.25rem;
    position: fixed;
    z-index: 1200;
}

.translation-overlay[hidden] {
    display: none;
}

.translation-overlay-card {
    background: #fff;
    border: 1px solid #d7d8e8;
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(15, 18, 32, 0.22);
    color: #111827;
    max-width: 420px;
    padding: 2rem;
    text-align: center;
}

.translation-overlay-card strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 0.55rem;
}

.translation-overlay-card p {
    color: #5f6275;
    line-height: 1.55;
    margin: 0;
}

.translation-overlay-card small {
    background: #eef2ff;
    border: 1px solid #d7d8e8;
    border-radius: 999px;
    color: #5144eb;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    margin-top: 1rem;
    padding: 0.45rem 0.75rem;
}

.translation-spinner {
    animation: translationSpin 0.9s linear infinite;
    border: 4px solid #e4e7ff;
    border-top-color: #5144eb;
    border-radius: 50%;
    display: inline-block;
    height: 46px;
    margin-bottom: 1rem;
    width: 46px;
}

@keyframes translationSpin {
    to {
        transform: rotate(360deg);
    }
}

.profile-hours-card {
    align-content: start;
    overflow: hidden;
}

.profile-hours-heading {
    align-items: flex-start;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: 1fr;
}

.profile-hours-heading h2 {
    margin-bottom: 0.35rem;
}

.profile-apply-hours {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 0.5rem;
    justify-self: start;
    min-height: 38px;
    padding: 0.5rem 0.75rem;
}

.profile-apply-hours .lucide-icon {
    height: 1.05rem;
    width: 1.05rem;
}

.profile-hours-payload {
    display: none;
}

.profile-hours-editor {
    display: grid;
    gap: 0.75rem;
}

.profile-hours-row {
    align-items: center;
    background: #f8f9ff;
    border: 1px solid #d7d8e8;
    border-radius: 12px;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(120px, 0.72fr) minmax(0, 1.28fr);
    padding: 0.75rem 0.85rem;
}

.profile-hours-row.is-closed {
    background: #fbfbfe;
    border-color: #e1e2ec;
}

.profile-hours-day {
    align-items: center;
    cursor: pointer;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: auto minmax(0, 1fr);
}

.profile-hours-day input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.profile-hours-switch {
    background: #c9c9da;
    border-radius: 999px;
    height: 24px;
    position: relative;
    width: 44px;
}

.profile-hours-switch::after {
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(20, 22, 40, 0.2);
    content: "";
    height: 18px;
    left: 3px;
    position: absolute;
    top: 3px;
    transition: transform 0.18s ease;
    width: 18px;
}

.profile-hours-day input:checked + .profile-hours-switch {
    background: #5144eb;
}

.profile-hours-day input:checked + .profile-hours-switch::after {
    transform: translateX(20px);
}

.profile-hours-day strong {
    color: #141827;
    font-size: 1rem;
}

.profile-hours-times {
    align-items: end;
    display: grid;
    gap: 0.45rem;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.profile-hours-times label {
    color: #55586b;
    font-size: 0.78rem;
    font-weight: 800;
    gap: 0.35rem;
    text-transform: uppercase;
}

.profile-hours-times input {
    border-color: #c7c9da;
    border-radius: 8px;
    min-height: 42px;
    padding: 0.5rem 0.65rem;
}

.profile-hours-times input:disabled {
    background: #f0f1f6;
    color: #9a9cad;
}

.profile-hours-times > span {
    color: #77798d;
    padding-bottom: 0.65rem;
}

.profile-hours-state {
    background: #dcfce7;
    border-radius: 999px;
    color: #16723a;
    font-size: 0.78rem;
    font-weight: 900;
    grid-column: 1 / -1;
    justify-self: start;
    padding: 0.32rem 0.7rem;
}

.profile-hours-row.is-closed .profile-hours-state {
    background: #fee2e2;
    color: #b42318;
}

.profile-save-bar {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid #c9c8dd;
    bottom: 0;
    box-shadow: 0 -12px 28px rgba(20, 24, 45, 0.06);
    display: flex;
    justify-content: space-between;
    left: 292px;
    padding: 1.1rem 2.55rem;
    position: sticky;
    z-index: 50;
}

.profile-save-bar span {
    color: #2f3044;
}

.profile-save-bar div {
    align-items: center;
    display: flex;
    gap: 1rem;
}

@media (max-width: 1080px) {
    .login-wrap {
        grid-template-columns: 1fr;
    }

    .login-visual {
        min-height: 38vh;
        padding: 1.5rem;
    }

    .login-visual-copy p {
        font-size: clamp(2rem, 8vw, 3.6rem);
    }

    .login-panel {
        min-height: auto;
        padding: 2rem 1.25rem 3rem;
    }

    .login-card {
        margin: 0 auto;
    }

    .dashboard-page {
        padding-left: 0;
        padding-top: 76px;
    }

    .admin-sidebar {
        border-bottom: 1px solid #c9c8dd;
        border-right: 0;
        bottom: auto;
        flex-direction: row;
        gap: 1rem;
        overflow-x: auto;
        padding: 0.65rem 1rem;
        width: 100%;
    }

    .admin-sidebar-brand,
    .admin-sidebar-footer {
        display: none;
    }

    .admin-sidebar-nav {
        display: flex;
        gap: 0.45rem;
    }

    .admin-sidebar-nav a {
        border-left: 0;
        border-radius: 8px;
        grid-template-columns: auto 1fr;
        min-width: fit-content;
    }

    .admin-topnav {
        top: 64px;
    }

    .admin-search {
        width: 100%;
    }

    .dashboard-container,
    .admin-management-page {
        padding: 2rem 1rem 3rem;
    }

    .management-stat-grid,
    .product-summary-grid,
    .profile-grid,
    .profile-lower-grid {
        grid-template-columns: 1fr;
    }

    .profile-assets-card {
        grid-column: auto;
    }

    .profile-hours-card {
        grid-column: auto;
    }

    .profile-save-bar {
        left: 0;
        padding: 1rem;
    }
}

@media (max-width: 760px) {
    .admin-toolbar-actions > button,
    .admin-notifications,
    .admin-avatar,
    .admin-topbar-logout {
        display: none;
    }

    .management-hero,
    .profile-hero,
    .profile-save-bar,
    .profile-save-bar div {
        align-items: stretch;
        flex-direction: column;
    }

    .management-hero button,
    .profile-hero-actions,
    .profile-hero-actions .btn-light,
    .profile-hero-actions .landing-primary-action,
    .profile-hero-actions button,
    .profile-save-bar a,
    .profile-save-bar button {
        justify-content: center;
        width: 100%;
    }

    .profile-card-heading,
    .profile-hours-heading,
    .profile-new-language-row {
        grid-template-columns: 1fr;
    }

    .profile-card-heading,
    .profile-hours-heading {
        display: grid;
    }

    .profile-add-language,
    .profile-apply-hours,
    .profile-remove-new-language {
        justify-content: center;
        width: 100%;
    }

    .profile-hours-row {
        gap: 0.65rem;
        grid-template-columns: 1fr;
        padding: 0.75rem;
    }

    .profile-hours-state {
        justify-self: start;
    }

    .profile-hours-times {
        gap: 0.45rem;
    }

    .profile-hours-times input {
        min-height: 38px;
        padding: 0.45rem 0.55rem;
    }

    .product-filter-panel,
    .profile-basic-card,
    .profile-assets-grid {
        grid-template-columns: 1fr;
    }

    .product-filter-panel label,
    .product-filter-panel input,
    .product-filter-panel select,
    .product-filter-panel button {
        width: 100%;
    }

    .product-table-head {
        display: none;
    }

    .product-table-row,
    .category-management-row {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .category-row-meta {
        justify-items: start;
    }

    .category-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .product-title-cell {
        grid-template-columns: 58px 1fr;
    }

    .management-hero h1,
    .profile-hero h1 {
        font-size: 2rem;
    }
}

/* Admin dashboard landing */

/* Current admin dashboard landing */

.admin-landing-page {
    display: grid;
    gap: 2rem;
}

.landing-hero {
    align-items: end;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr auto;
}

.landing-hero h1 {
    color: #07172b;
    font-size: clamp(2.3rem, 4vw, 3.5rem);
    letter-spacing: -0.02em;
    line-height: 1;
    margin: 0 0 0.65rem;
}

.landing-hero p {
    color: #535362;
    font-size: 1.12rem;
    font-weight: 750;
    margin: 0;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: flex-end;
}

.landing-actions a {
    align-items: center;
    border-radius: 10px;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 900;
    min-height: 46px;
    padding: 0.8rem 1.35rem;
    text-decoration: none;
}

.landing-secondary-action {
    background: #fbfbff;
    border: 1px solid #c9cbe0;
    color: #0d1b2f;
}

.landing-primary-action {
    background: #3b2bd6;
    border: 1px solid #3b2bd6;
    color: #fff;
}

.landing-stat-grid {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-stat-card,
.landing-table-card,
.landing-questions-card,
.landing-analytics-card,
.landing-quick-management a {
    background: #fbfbff;
    border: 1px solid #c9cbe0;
    border-radius: 12px;
}

.landing-stat-card {
    min-height: 210px;
    padding: 1.9rem;
    color: inherit;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.landing-stat-card:hover {
    border-color: #3b2bd6;
    box-shadow: 0 18px 38px rgba(59, 43, 214, 0.12);
    transform: translateY(-2px);
}

.landing-stat-top {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
}

.landing-stat-icon {
    align-items: center;
    background: #f0f2ff;
    border-radius: 10px;
    color: #3b2bd6;
    display: inline-flex;
    font-size: 1.65rem;
    font-weight: 900;
    height: 54px;
    justify-content: center;
    width: 54px;
}

.landing-stat-card em {
    color: #4b4b5b;
    font-size: 0.92rem;
    font-style: normal;
    font-weight: 900;
}

.landing-stat-card p {
    color: #535362;
    font-size: 1.05rem;
    font-weight: 850;
    margin: 2rem 0 0.85rem;
}

.landing-stat-card strong {
    color: #07172b;
    display: block;
    font-size: 3rem;
    line-height: 1;
}

.landing-stat-breakdown {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 1.35rem 0 0;
}

.landing-stat-breakdown div {
    background: #f2f4ff;
    border: 1px solid #dfe2f1;
    border-radius: 10px;
    min-width: 0;
    padding: 0.7rem 0.75rem;
}

.landing-stat-breakdown dt {
    color: #686877;
    font-size: 0.75rem;
    font-weight: 850;
    line-height: 1.15;
    margin: 0 0 0.25rem;
}

.landing-stat-breakdown dd {
    color: #07172b;
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.15;
    margin: 0;
    overflow-wrap: anywhere;
}

.landing-stat-action {
    align-items: center;
    color: #3b2bd6;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 950;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 1.25rem;
}

.landing-stat-action svg {
    height: 1rem;
    width: 1rem;
}

.landing-content-grid {
    align-items: start;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 2.1fr) minmax(320px, 1fr);
}

.landing-table-card,
.landing-questions-card {
    overflow: hidden;
}

.landing-card-heading {
    align-items: center;
    border-bottom: 1px solid #c9cbe0;
    display: flex;
    justify-content: space-between;
    min-height: 84px;
    padding: 1.5rem 1.75rem;
}

.landing-card-heading h2 {
    color: #07172b;
    font-size: 1.65rem;
    line-height: 1.1;
    margin: 0;
}

.landing-card-heading a {
    color: #3b2bd6;
    font-weight: 900;
    text-decoration: none;
}

.landing-card-heading p {
    margin: 0.4rem 0 0;
}

.landing-card-heading > strong {
    background: #eef1ff;
    border-radius: 999px;
    color: #2f24d9;
    flex: 0 0 auto;
    font-size: 0.92rem;
    padding: 0.45rem 0.85rem;
}

.landing-product-table {
    display: grid;
}

.landing-empty-state {
    padding: 1.5rem 1.75rem;
}

.landing-product-head,
.landing-product-row {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1.35fr 0.55fr 0.5fr 0.55fr;
    min-height: 74px;
    padding: 0 1.75rem;
}

.landing-product-head {
    color: #535362;
    font-size: 1rem;
    font-weight: 900;
}

.landing-product-row {
    border-top: 1px solid #e0e2f0;
}

.landing-product-name {
    align-items: center;
    display: flex;
    gap: 1rem;
    min-width: 0;
}

.landing-product-thumb {
    background: linear-gradient(135deg, #111827, #f59e0b);
    background-position: center;
    background-size: cover;
    border-radius: 7px;
    flex: 0 0 auto;
    height: 48px;
    width: 48px;
}

.landing-product-name strong,
.landing-product-row > span {
    color: #0d1b2f;
    font-size: 1rem;
    font-weight: 900;
}

.landing-product-row em {
    border-radius: 999px;
    font-style: normal;
    font-weight: 900;
    justify-self: start;
    padding: 0.35rem 0.75rem;
}

.landing-product-row em.is-top {
    background: #fff1ec;
    color: #ff9b73;
}

.landing-product-row em.is-stable {
    background: #dfe5ff;
    color: #596070;
}

.landing-product-row em.is-rising {
    background: #e9e0ff;
    color: #2c197f;
}

.landing-analytics-card {
    overflow: hidden;
}

.product-open-analytics {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.5fr);
    padding: 1.5rem 1.75rem 1.75rem;
}

.product-open-chart {
    align-items: end;
    background: #f5f6ff;
    border: 1px solid #d9daee;
    border-radius: 12px;
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    min-height: 260px;
    padding: 1.2rem 1rem 0.9rem;
}

.product-open-bar {
    align-items: center;
    display: grid;
    gap: 0.55rem;
    grid-template-rows: 1fr auto;
    height: 100%;
    justify-items: center;
    min-width: 0;
}

.product-open-bar span {
    align-self: end;
    background: linear-gradient(180deg, #5a4cf1, #2f24d9);
    border-radius: 999px 999px 6px 6px;
    display: block;
    min-height: 8px;
    position: relative;
    width: min(34px, 78%);
}

.product-open-bar em {
    color: #101827;
    font-size: 0.8rem;
    font-style: normal;
    font-weight: 900;
    left: 50%;
    position: absolute;
    top: -1.45rem;
    transform: translateX(-50%);
}

.product-open-bar small {
    color: #5b5d70;
    font-size: 0.78rem;
    font-weight: 850;
}

.product-open-table {
    display: grid;
}

.product-open-table-head,
.product-open-table-row {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(180px, 1.4fr) 0.45fr 0.45fr 0.7fr;
    min-height: 62px;
    padding: 0 0.25rem;
}

.product-open-table-head {
    color: #535362;
    font-size: 0.88rem;
    font-weight: 900;
}

.product-open-table-row {
    border-top: 1px solid #e0e2f0;
}

.product-open-table-row > span {
    color: #0d1b2f;
    font-weight: 850;
}

.landing-question-list {
    display: grid;
    list-style: none;
    margin: 0;
    padding: 1.1rem 1.75rem;
}

.landing-question-list li {
    align-items: start;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr auto;
    padding: 1.25rem 0;
}

.landing-question-list strong,
.landing-question-list span {
    display: block;
}

.landing-question-list strong {
    color: #0d1b2f;
    font-size: 1.05rem;
    line-height: 1.35;
}

.landing-question-list span {
    color: #535362;
    font-weight: 750;
    margin-top: 0.55rem;
}

.landing-question-list em {
    border-radius: 6px;
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 900;
    padding: 0.35rem 0.75rem;
}

.landing-question-actions {
    align-items: end;
    display: grid;
    gap: 0.55rem;
    justify-items: end;
}

.landing-question-actions a {
    background: #f0eefb;
    border-radius: 8px;
    color: #3b2bd6;
    font-size: 0.82rem;
    font-weight: 900;
    padding: 0.42rem 0.7rem;
    text-decoration: none;
}

.landing-question-actions a:hover {
    background: #e2ddff;
}

.landing-question-list em.is-high {
    background: #ffd9d6;
    color: #b42318;
}

.landing-question-list em.is-medium {
    background: #dfe5ff;
    color: #596070;
}

.landing-question-list em.is-low {
    background: #d8e8ff;
    color: #52637d;
}

.landing-train-button {
    align-items: center;
    background: #f0eefb;
    border-radius: 10px;
    color: #3b2bd6;
    display: flex;
    font-weight: 900;
    justify-content: center;
    margin: 0 1.75rem 1.35rem;
    min-height: 48px;
    text-decoration: none;
}

.ai-training-context {
    background: #f0eefb;
    border: 1px solid #ded8ff;
    border-radius: 8px;
    color: #3325c8;
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 0.7rem 0.85rem;
}

.landing-quick-management {
    display: grid;
    gap: 1.2rem;
}

.landing-quick-management h2 {
    color: #07172b;
    font-size: 1.55rem;
    margin: 0;
}

.landing-quick-management nav {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.landing-quick-management a {
    align-items: center;
    color: #0d1b2f;
    display: grid;
    font-size: 1rem;
    font-weight: 900;
    gap: 0.85rem;
    justify-items: center;
    min-height: 124px;
    padding: 1.25rem;
    text-align: center;
    text-decoration: none;
}

.landing-quick-management a span {
    color: #535362;
    font-size: 2rem;
    line-height: 1;
}

@media (max-width: 980px) {
    .landing-hero,
    .landing-content-grid,
    .landing-stat-grid,
    .product-open-analytics,
    .landing-quick-management nav {
        grid-template-columns: 1fr;
    }

    .landing-actions {
        justify-content: stretch;
    }

    .landing-actions a {
        justify-content: center;
        width: 100%;
    }

    .landing-product-head {
        display: none;
    }

    .landing-product-row {
        grid-template-columns: 1fr;
        padding: 1rem 1.25rem;
    }

    .landing-question-list li {
        grid-template-columns: 1fr;
    }

    .landing-question-actions {
        align-items: start;
        display: flex;
        justify-items: start;
    }

    .product-open-table-head {
        display: none;
    }

    .product-open-table-row {
        grid-template-columns: 1fr;
        padding: 1rem 0;
    }
}

/* AI settings */

/* Current AI settings */

.ai-admin-container {
    max-width: 1180px;
    padding-bottom: 7rem;
}

.ai-settings-form {
    gap: 1.5rem;
}

.ai-config-card {
    background: #fff;
    border: 1px solid #c6c6cd;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.ai-config-header {
    align-items: center;
    border-bottom: 1px solid #d3d8df;
    display: flex;
    justify-content: space-between;
    min-height: 64px;
    padding: 1rem 1.5rem;
}

.ai-section-title {
    align-items: center;
    display: flex;
    gap: 0.7rem;
}

.ai-section-title h2 {
    font-size: 0.98rem;
    letter-spacing: 0.04em;
    margin: 0;
}

.ai-section-icon {
    align-items: center;
    color: #0058be;
    display: inline-flex;
    font-size: 1.35rem;
    font-weight: 900;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.ai-active-pill {
    background: #6ffbbe;
    border-radius: 999px;
    color: #005236;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 0.45rem 0.85rem;
    text-transform: uppercase;
}

.ai-config-body {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.25fr);
    padding: 1.5rem;
}

.ai-config-column {
    align-content: start;
    display: grid;
    gap: 1.25rem;
}

.ai-config-column label,
.ai-field-label {
    color: #191c1e;
    display: grid;
    font-size: 0.92rem;
    font-weight: 650;
    gap: 0.55rem;
    margin: 0;
}

.ai-config-column input[type="text"],
.ai-config-column input[type="number"],
.ai-config-column select,
.ai-config-column textarea,
.ai-promo-row input[type="text"],
.ai-priority-input {
    background: #fff;
    border: 1px solid #c6c6cd;
    border-radius: 8px;
    color: #191c1e;
    font: inherit;
    min-height: 50px;
    padding: 0.8rem 0.95rem;
    width: 100%;
}

.ai-config-column textarea {
    line-height: 1.5;
    resize: vertical;
}

.ai-range-label > span {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.ai-range-label strong {
    color: #0058be;
}

.ai-range-label input[type="range"] {
    accent-color: #0058be;
    min-height: auto;
    padding: 0;
}

.ai-range-label small {
    color: #76777d;
    display: flex;
    font-size: 0.66rem;
    font-weight: 800;
    justify-content: space-between;
}

.assistant-mode-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.assistant-mode-card {
    cursor: pointer;
    display: block;
}

.assistant-mode-card input {
    height: 1px;
    min-height: 0;
    opacity: 0;
    position: absolute;
    pointer-events: none;
    width: 1px;
}

.assistant-mode-card .mode-icon,
.assistant-mode-card strong,
.assistant-mode-card small {
    display: block;
    text-align: center;
}

.assistant-mode-card .mode-icon {
    color: #0058be;
    font-size: 1.4rem;
    line-height: 1;
    margin-bottom: 0.45rem;
}

.assistant-mode-card strong {
    color: #191c1e;
    font-size: 0.82rem;
}

.assistant-mode-card small {
    color: #76777d;
    font-size: 0.68rem;
    margin-top: 0.25rem;
}

.assistant-mode-card {
    border: 1px solid #c6c6cd;
    border-radius: 8px;
    padding: 0.9rem 0.7rem;
}

.assistant-mode-card:has(input:checked) {
    background: #d8e2ff;
    border-color: #0058be;
    box-shadow: 0 0 0 3px rgba(0, 88, 190, 0.12);
}

.ai-help-text {
    color: #76777d;
    font-size: 0.78rem;
    margin: -0.6rem 0 0;
}

.ai-header-actions {
    align-items: center;
    display: flex;
    gap: 0.6rem;
}

.ai-add-product {
    background: #0058be;
    border-radius: 8px;
    color: #fff;
    font-weight: 800;
    min-height: 38px;
    padding: 0.6rem 0.9rem;
    text-decoration: none;
}

.ai-promo-list {
    display: grid;
    gap: 0.75rem;
    max-height: 620px;
    overflow: auto;
    padding: 1.5rem;
}

.ai-promo-head,
.ai-promo-row {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: 54px minmax(230px, 1.25fr) 90px minmax(240px, 1fr) 52px;
}

.ai-promo-head {
    color: #45464d;
    font-size: 0.82rem;
    font-weight: 900;
    padding: 0 1rem;
}

.ai-promo-row {
    background: #fff;
    border: 1px solid #c6c6cd;
    border-radius: 8px;
    min-height: 82px;
    padding: 0.8rem 1rem;
}

.ai-promo-row.is-promoted {
    background: #eef4ff;
    border-color: #0058be;
}

.ai-promo-check {
    justify-content: center;
}

.ai-promo-check input {
    accent-color: #0058be;
    height: 20px;
    margin: 0;
    min-height: auto;
    width: 20px;
}

.ai-promo-product {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    min-width: 0;
}

.ai-product-thumb {
    background: linear-gradient(135deg, #111827, #8b5cf6);
    background-position: center;
    background-size: cover;
    border: 1px solid #d3d8df;
    border-radius: 8px;
    flex: 0 0 auto;
    height: 42px;
    width: 42px;
}

.ai-promo-product strong,
.ai-promo-product small {
    display: block;
}

.ai-promo-product strong {
    color: #191c1e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-promo-product small {
    color: #76777d;
    font-size: 0.76rem;
}

.ai-promo-product em {
    background: #0058be;
    border-radius: 999px;
    color: #fff;
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 900;
    margin-left: auto;
    padding: 0.28rem 0.55rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.ai-knowledge-layout {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1fr);
    padding: 1.5rem;
}

.ai-knowledge-panel {
    background: #f8faff;
    border: 1px solid #d5d9ea;
    border-radius: 10px;
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.ai-knowledge-heading {
    align-items: start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.ai-knowledge-heading h3 {
    color: #101827;
    font-size: 1rem;
    margin: 0;
}

.ai-knowledge-heading p {
    color: #676a78;
    font-size: 0.84rem;
    font-weight: 650;
    margin: 0.35rem 0 0;
}

.ai-knowledge-rules,
.ai-qa-list {
    display: grid;
    gap: 0.85rem;
}

.ai-rule-row,
.ai-qa-row {
    background: #fff;
    border: 1px solid #d4d7e6;
    border-radius: 9px;
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
}

.ai-rule-meta,
.ai-qa-topline {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(140px, 1fr) 96px 130px;
}

.ai-qa-topline {
    grid-template-columns: 96px 130px;
    justify-content: start;
}

.ai-rule-row label,
.ai-qa-row label {
    color: #222433;
    display: grid;
    font-size: 0.78rem;
    font-weight: 850;
    gap: 0.4rem;
    margin: 0;
}

.ai-rule-row input,
.ai-rule-row select,
.ai-rule-row textarea,
.ai-qa-row input,
.ai-qa-row select,
.ai-qa-row textarea {
    background: #fff;
    border: 1px solid #c8cadb;
    border-radius: 8px;
    color: #111827;
    font: inherit;
    min-height: 42px;
    padding: 0.65rem 0.75rem;
    width: 100%;
}

.ai-rule-row textarea,
.ai-qa-row textarea {
    line-height: 1.45;
    resize: vertical;
}

.ai-priority-input {
    font-weight: 800;
    min-height: 34px;
    padding: 0.35rem;
    text-align: center;
}

.ai-row-action {
    color: #0058be;
    font-size: 1.45rem;
    text-align: right;
}

.ai-save-bar {
    align-items: center;
    backdrop-filter: blur(14px);
    background: rgba(247, 249, 251, 0.88);
    border-top: 1px solid #d3d8df;
    bottom: 0;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    left: 260px;
    padding: 1rem 2rem;
    position: fixed;
    right: 0;
    z-index: 80;
}

.ai-save-bar span {
    color: #45464d;
    font-size: 0.86rem;
}

.ai-save-bar div {
    display: flex;
    gap: 0.6rem;
}

.ai-save-bar a,
.ai-save-bar button {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 48px;
    padding: 0.8rem 1.4rem;
    text-decoration: none;
}

.ai-save-bar button {
    background: #000;
    color: #fff;
}

.ai-settings-page {
    background: #fbf9ff;
}

.ai-admin-container {
    max-width: 1360px;
}

.ai-settings-form {
    display: grid;
    gap: 1.5rem;
}

.ai-studio-layout {
    align-items: start;
    display: grid;
    gap: 1.55rem;
    grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
}

.ai-studio-side {
    display: grid;
    gap: 1.4rem;
}

.ai-studio-layout .ai-config-card,
.ai-knowledge-workspace {
    background: #fff;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(34, 28, 82, 0.07);
    overflow: hidden;
}

.ai-studio-layout .ai-config-header {
    border-bottom: 0;
    min-height: auto;
    padding: 1.55rem 1.55rem 0.8rem;
}

.ai-studio-layout .ai-section-title h2 {
    color: #111827;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: none;
}

.ai-studio-layout .ai-section-icon {
    color: #004fff;
    height: 24px;
    width: 24px;
}

.ai-studio-layout .ai-active-pill {
    background: #10f2a1;
    color: #03734e;
    font-size: 0.7rem;
    padding: 0.42rem 0.85rem;
}

.ai-studio-layout .ai-config-body {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: 1fr;
    padding: 1.35rem 1.55rem 1.55rem;
}

.ai-studio-layout label,
.ai-studio-layout .ai-field-label {
    color: #7b7d8f;
    display: grid;
    font-size: 0.72rem;
    font-weight: 950;
    gap: 0.55rem;
    letter-spacing: 0.06em;
    margin: 0;
    text-transform: uppercase;
}

.ai-studio-layout input[type="text"],
.ai-studio-layout input[type="number"],
.ai-studio-layout select,
.ai-studio-layout textarea {
    background: #f1f3ff;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #2f3142;
    font-size: 1rem;
    font-weight: 750;
    letter-spacing: 0;
    min-height: 48px;
    padding: 0.8rem 0.95rem;
    text-transform: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
    width: 100%;
}

.ai-studio-layout textarea {
    font-weight: 700;
    line-height: 1.55;
    resize: vertical;
}

.ai-studio-layout .ai-check-row {
    align-items: flex-start;
    background: #f7f8ff;
    border: 1px solid #e2e6fb;
    border-radius: 12px;
    display: flex;
    gap: 0.85rem;
    padding: 1rem;
    text-transform: none;
}

.ai-studio-layout .ai-check-row input {
    accent-color: #174fff;
    flex: 0 0 auto;
    height: 20px;
    margin-top: 0.1rem;
    width: 20px;
}

.ai-studio-layout .ai-check-row span {
    display: grid;
    gap: 0.2rem;
}

.ai-studio-layout .ai-check-row strong {
    color: #111827;
    font-size: 0.96rem;
    font-weight: 900;
    letter-spacing: 0;
}

.ai-studio-layout .ai-check-row small {
    color: #6b7280;
    font-size: 0.84rem;
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1.35;
}

.ai-studio-layout input:focus,
.ai-studio-layout select:focus,
.ai-studio-layout textarea:focus {
    background: #fff;
    border-color: #1557ff;
    box-shadow: 0 0 0 4px rgba(21, 87, 255, 0.12);
    outline: 0;
}

.ai-compact-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-studio-layout .ai-range-label {
    gap: 0.85rem;
}

.ai-studio-layout .ai-range-label > span {
    color: #7b7d8f;
    text-transform: uppercase;
}

.ai-studio-layout .ai-range-label strong {
    color: #004fff;
    font-size: 1rem;
}

.ai-studio-layout .ai-range-label input[type="range"] {
    accent-color: #004fff;
    background: transparent;
    border: 0;
    min-height: auto;
    padding: 0;
}

.ai-studio-layout .assistant-mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-studio-layout .assistant-mode-card {
    background: #fff;
    border: 2px solid #e0e5ff;
    border-radius: 9px;
    min-height: 116px;
    padding: 1rem 0.75rem;
}

.ai-studio-layout .assistant-mode-card:has(input:checked) {
    background: #eef1ff;
    border-color: #1b5cff;
    box-shadow: inset 0 0 0 1px rgba(27, 92, 255, 0.12), 0 14px 30px rgba(27, 92, 255, 0.08);
}

.ai-studio-layout .assistant-mode-card .mode-icon {
    color: #004fff;
    font-size: 1.5rem;
}

.ai-studio-layout .assistant-mode-card strong {
    color: #1c2333;
    font-size: 0.95rem;
    font-weight: 900;
}

.ai-studio-layout .assistant-mode-card small {
    color: #666a7c;
    font-weight: 750;
}

.ai-instructions-card .ai-section-title h2 {
    font-size: 1rem;
    letter-spacing: 0;
}

.ai-knowledge-workspace {
    background: transparent;
    box-shadow: none;
    display: grid;
    gap: 1rem;
    overflow: visible;
}

.ai-knowledge-stack {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr);
}

.ai-knowledge-hero {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.25rem 0 0.25rem;
}

.ai-knowledge-hero h2 {
    align-items: center;
    color: #111827;
    display: flex;
    font-size: 1.45rem;
    font-weight: 950;
    gap: 0.55rem;
    letter-spacing: -0.03em;
    margin: 0;
    white-space: nowrap;
}

.ai-knowledge-hero h2 span {
    color: #004fff;
    display: inline-flex;
}

.ai-knowledge-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: flex-end;
}

.ai-count-pill {
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 950;
    padding: 0.55rem 0.95rem;
    text-transform: uppercase;
}

.ai-count-pill.is-rules {
    background: #bdf9da;
    color: #087747;
}

.ai-count-pill.is-qa {
    background: #ead8ff;
    color: #7b18d8;
}

.ai-add-rule-button {
    align-items: center;
    background: #004fff;
    border-radius: 18px;
    box-shadow: 0 12px 26px rgba(0, 79, 255, 0.18);
    color: #fff;
    display: inline-flex;
    font-weight: 900;
    gap: 0.45rem;
    min-height: 46px;
    padding: 0.75rem 1.15rem;
    text-decoration: none;
}

.ai-add-rule-button svg {
    height: 18px;
    width: 18px;
}

.ai-explain-button {
    align-items: center;
    background: #fff;
    border: 1px solid #d8dbed;
    border-radius: 18px;
    color: #111827;
    display: inline-flex;
    font-weight: 900;
    gap: 0.45rem;
    min-height: 46px;
    padding: 0.75rem 1.05rem;
}

.ai-explain-button:hover {
    border-color: #004fff;
    box-shadow: 0 12px 26px rgba(0, 79, 255, 0.1);
    color: #004fff;
}

.ai-explain-button svg {
    height: 18px;
    width: 18px;
}

.ai-kicker {
    color: #75788b;
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    margin: 0.75rem 0 0;
    text-transform: uppercase;
}

.ai-rule-stack {
    display: grid;
    gap: 1rem;
}

.ai-rule-card {
    background: #fff;
    border: 1px solid #eff1fa;
    border-left: 4px solid #1557ff;
    border-radius: 13px;
    box-shadow: 0 16px 44px rgba(32, 35, 64, 0.06);
    display: grid;
    gap: 0.9rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 1.2rem 1.25rem;
}

.ai-rule-card.is-allergen {
    border-left-color: #02986e;
}

.ai-rule-card.is-restriction {
    border-left-color: #d72d2d;
}

.ai-rule-card.is-recommendation {
    border-left-color: #7c3aed;
}

.ai-rule-card.is-new-rule {
    border-style: dashed;
    opacity: 0.88;
}

.ai-rule-card-main {
    align-items: start;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: 34px minmax(0, 1fr);
}

.ai-rule-card-icon {
    align-items: center;
    background: #eef3ff;
    border-radius: 9px;
    color: #1557ff;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.ai-rule-card.is-allergen .ai-rule-card-icon {
    background: #e7f8f1;
    color: #02986e;
}

.ai-rule-card.is-restriction .ai-rule-card-icon {
    background: #ffecee;
    color: #d72d2d;
}

.ai-rule-title-fields {
    display: grid;
    gap: 0.35rem;
    grid-template-columns: minmax(0, 1fr);
}

.ai-rule-card label,
.ai-qa-editor label {
    color: #7b7d8f;
    font-size: 0.68rem;
    font-weight: 950;
    gap: 0.35rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.ai-rule-card-main input,
.ai-rule-card-main select {
    background: transparent;
    border-color: transparent;
    min-height: 34px;
    padding: 0;
}

.ai-rule-card-main input {
    color: #25283a;
    font-size: 1.05rem;
    font-weight: 950;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-rule-card-main select {
    color: #6e7183;
    font-size: 0.78rem;
}

.ai-rule-card-side {
    align-items: start;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: 64px 94px 28px;
}

.ai-rule-card-side input,
.ai-rule-card-side select {
    min-height: 34px;
    padding: 0.45rem 0.55rem;
    text-align: center;
}

.ai-rule-card-side select {
    background: #53f2a1;
    color: #037747;
    font-size: 0.7rem;
    font-weight: 950;
    text-transform: uppercase;
}

.ai-rule-trash {
    align-items: center;
    appearance: none;
    border: 0;
    color: #777b8e;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    min-height: 40px;
    padding: 0;
    width: 40px;
}

.ai-rule-trash svg {
    height: 20px;
    width: 20px;
}

.ai-rule-trash:hover,
.ai-rule-trash:focus-visible {
    background: #fff0ed;
    border-color: #f4b8ad;
    color: #b42318;
    outline: none;
}

.ai-rule-content {
    grid-column: 1 / -1;
}

.ai-rule-content textarea {
    background: #f1f3ff;
    border: 0;
    color: #55576b;
    font-weight: 650;
}

.ai-qa-editor {
    background: #fff;
    border: 1px solid #eff1fa;
    border-radius: 13px;
    box-shadow: 0 16px 44px rgba(32, 35, 64, 0.06);
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
    overflow: hidden;
}

.ai-qa-editor-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 1.25rem 1.45rem 0.35rem;
}

.ai-qa-editor-head h3 {
    align-items: center;
    color: #101827;
    display: flex;
    font-size: 1.35rem;
    font-weight: 950;
    gap: 0.55rem;
    letter-spacing: -0.02em;
    margin: 0;
}

.ai-qa-editor-head span,
.ai-qa-editor-head h3 svg {
    color: #004fff;
    height: 22px;
    width: 22px;
}

.ai-qa-editor-head a {
    color: #004fff;
    font-size: 0.85rem;
    font-weight: 950;
    text-decoration: none;
}

.ai-qa-editor .ai-qa-list {
    gap: 1rem;
    padding: 0 1.45rem 1.45rem;
}

.ai-qa-editor .ai-qa-row {
    background: transparent;
    border: 0;
    border-top: 1px solid #eff1fa;
    border-radius: 0;
    gap: 1rem;
    padding: 1.25rem 0 0;
}

.ai-qa-editor .ai-qa-topline {
    grid-template-columns: minmax(230px, 1fr) 130px 130px;
    justify-content: stretch;
}

.ai-qa-editor input,
.ai-qa-editor select,
.ai-qa-editor textarea {
    background: #f1f3ff;
    border: 0;
    color: #4a4d61;
}

.ai-promo-section {
    background: transparent;
    display: grid;
    gap: 1.25rem;
    margin-top: 0.75rem;
}

.ai-promo-section-header {
    align-items: flex-start;
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
}

.ai-promo-section-header h2 {
    align-items: center;
    color: #111827;
    display: flex;
    font-size: 2rem;
    font-weight: 950;
    gap: 0.8rem;
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin: 0;
}

.ai-promo-section-header h2 span {
    color: #004fff;
    display: inline-flex;
    height: 28px;
    width: 28px;
}

.ai-promo-section-header p {
    color: #414457;
    font-size: 1.02rem;
    font-weight: 650;
    margin: 0.7rem 0 0;
}

.ai-promo-section .ai-header-actions {
    gap: 0.75rem;
    padding-top: 0.1rem;
}

.ai-promo-section .ai-filter-button,
.ai-promo-section .ai-add-product {
    align-items: center;
    border-radius: 12px;
    display: inline-flex;
    font-size: 0.98rem;
    font-weight: 900;
    gap: 0.55rem;
    justify-content: center;
    min-height: 56px;
    padding: 0.85rem 1.25rem;
    text-decoration: none;
    white-space: nowrap;
}

.ai-promo-section .ai-filter-button {
    background: #fff;
    border: 1px solid #c9cce0;
    color: #161b2d;
}

.ai-promo-section .ai-filter-button.is-open {
    border-color: #004be8;
    box-shadow: 0 0 0 4px rgba(0, 75, 232, 0.1);
    color: #004be8;
}

.ai-promo-section .ai-add-product {
    background: #004be8;
    border: 1px solid #004be8;
    box-shadow: 0 16px 34px rgba(0, 75, 232, 0.18);
    color: #fff;
}

.ai-promo-section .ai-filter-button svg,
.ai-promo-section .ai-add-product svg {
    height: 20px;
    width: 20px;
}

.ai-promo-filter-panel {
    align-items: end;
    background: #fff;
    border: 1px solid #d8dbed;
    border-radius: 16px;
    box-shadow: 0 16px 42px rgba(35, 31, 88, 0.06);
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.45fr) auto;
    padding: 1rem;
}

.ai-promo-filter-panel[hidden] {
    display: none;
}

.ai-promo-filter-panel label {
    color: #76798b;
    display: grid;
    font-size: 0.74rem;
    font-weight: 950;
    gap: 0.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ai-promo-filter-panel label > span {
    align-items: center;
    background: #f5f7ff;
    border: 1px solid #d8dbed;
    border-radius: 12px;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: 22px minmax(0, 1fr);
    min-height: 50px;
    padding: 0 0.9rem;
}

.ai-promo-filter-panel svg {
    color: #4b5568;
    height: 20px;
    width: 20px;
}

.ai-promo-filter-panel input,
.ai-promo-filter-panel select {
    background: #f5f7ff;
    border: 1px solid #d8dbed;
    border-radius: 12px;
    color: #111827;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 750;
    min-height: 50px;
    padding: 0 0.95rem;
}

.ai-promo-filter-panel label > span input {
    background: transparent;
    border: 0;
    min-height: 0;
    padding: 0;
}

.ai-promo-filter-panel button {
    align-items: center;
    background: #fff;
    border: 1px solid #d8dbed;
    border-radius: 12px;
    color: #4b5568;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 900;
    gap: 0.45rem;
    justify-content: center;
    min-height: 50px;
    padding: 0 1rem;
}

.ai-promo-section .ai-promo-list {
    display: grid;
    gap: 1rem;
    max-height: 760px;
    overflow: auto;
    padding: 0;
}

.ai-promo-section .ai-promo-head,
.ai-promo-section .ai-promo-row {
    align-items: center;
    display: grid;
    gap: 0.9rem;
    grid-template-columns: 64px minmax(240px, 1.15fr) 105px minmax(300px, 1.25fr) 138px 60px;
}

.ai-promo-section .ai-promo-head {
    color: #76798b;
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    padding: 0.65rem 2rem 0.35rem;
    text-transform: uppercase;
}

.ai-promo-section .ai-promo-head button {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    gap: 0.35rem;
    justify-self: start;
    letter-spacing: inherit;
    min-width: 0;
    padding: 0;
    text-align: left;
    text-transform: inherit;
    white-space: nowrap;
}

.ai-promo-section .ai-promo-head button:hover,
.ai-promo-section .ai-promo-head button.is-sorted {
    color: #004be8;
}

.ai-sort-icon {
    display: inline-grid;
    height: 14px;
    position: relative;
    width: 10px;
}

.ai-sort-icon::before,
.ai-sort-icon::after {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    content: "";
    left: 1px;
    opacity: 0.45;
    position: absolute;
}

.ai-sort-icon::before {
    border-bottom: 5px solid currentColor;
    top: 1px;
}

.ai-sort-icon::after {
    border-top: 5px solid currentColor;
    bottom: 1px;
}

.ai-promo-head button[data-sort-direction="asc"] .ai-sort-icon::before,
.ai-promo-head button[data-sort-direction="desc"] .ai-sort-icon::after {
    opacity: 1;
}

.ai-promo-section .ai-promo-row {
    background: #fff;
    border: 2px solid transparent;
    border-radius: 18px;
    box-shadow: 0 12px 36px rgba(35, 31, 88, 0.045);
    min-height: 106px;
    padding: 1rem 1.25rem;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ai-promo-section .ai-promo-row[hidden] {
    display: none;
}

.ai-promo-section .ai-promo-row:hover {
    box-shadow: 0 18px 42px rgba(35, 31, 88, 0.08);
    transform: translateY(-1px);
}

.ai-promo-section .ai-promo-row.is-promoted {
    background: #eef1ff;
    border-color: #0b55ff;
    box-shadow: 0 18px 44px rgba(11, 85, 255, 0.11);
}

.ai-promo-section .ai-promo-check {
    align-items: center;
    display: flex;
    justify-content: center;
}

.ai-promo-section .ai-promo-check input {
    accent-color: #0458e8;
    background: #fff;
    border: 1px solid #cbd0e3;
    border-radius: 8px;
    height: 28px;
    margin: 0;
    width: 28px;
}

.ai-promo-section .ai-promo-product {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: 64px minmax(0, 1fr);
}

.ai-promo-section .ai-product-thumb {
    border: 1px solid #d8dbea;
    border-radius: 10px;
    height: 64px;
    width: 64px;
}

.ai-promo-section .ai-promo-product strong {
    color: #111827;
    font-size: 1.05rem;
    font-weight: 950;
    letter-spacing: -0.01em;
}

.ai-promo-section .ai-promo-row.is-promoted .ai-promo-product strong {
    color: #0050ea;
}

.ai-promo-section .ai-promo-product small {
    color: #666b7d;
    font-size: 0.84rem;
    font-weight: 750;
    margin-top: 0.15rem;
}

.ai-promo-section .ai-priority-input,
.ai-promo-section .ai-promo-row input[type="text"] {
    background: #fff;
    border: 1px solid #c9cde2;
    border-radius: 12px;
    color: #111827;
    font-size: 1rem;
    font-weight: 800;
    min-height: 48px;
    padding: 0.75rem 0.95rem;
}

.ai-promo-section .ai-priority-input {
    text-align: center;
}

.ai-promo-section .ai-promo-row.is-promoted .ai-priority-input,
.ai-promo-section .ai-promo-row.is-promoted input[type="text"] {
    border-color: #0b55ff;
}

.ai-promo-status {
    background: transparent;
    border-radius: 999px;
    color: transparent;
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 950;
    justify-content: center;
    padding: 0.42rem 0.7rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.ai-promo-row.is-promoted .ai-promo-status {
    background: #0050ea;
    color: #fff;
}

.ai-promo-section .ai-row-action {
    color: #7a7f92;
    font-size: 2rem;
    line-height: 1;
    text-align: center;
}

.ai-promo-section .ai-promo-row.is-promoted .ai-row-action {
    color: #0050ea;
}

.ai-promo-pagination {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
    justify-items: center;
    padding: 1rem 0 0.25rem;
}

.ai-promo-page-info {
    color: #606577;
    font-size: 0.9rem;
    font-weight: 800;
    justify-self: start;
}

.ai-promo-page-buttons {
    align-items: center;
    background: #fff;
    border: 1px solid #eef0fa;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(35, 31, 88, 0.045);
    display: inline-flex;
    gap: 0.25rem;
    justify-content: center;
    min-height: 54px;
    padding: 0.4rem;
}

.ai-promo-page-buttons button,
.ai-promo-pagination > button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 12px;
    color: #111827;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 900;
    justify-content: center;
    min-height: 42px;
    min-width: 42px;
    padding: 0.55rem 0.85rem;
}

.ai-promo-page-buttons button:hover:not(:disabled),
.ai-promo-pagination > button:hover:not(:disabled) {
    background: #eef1ff;
    color: #004be8;
}

.ai-promo-page-buttons button.is-active {
    background: #004be8;
    box-shadow: 0 10px 20px rgba(0, 75, 232, 0.18);
    color: #fff;
}

.ai-promo-page-buttons button:disabled,
.ai-promo-pagination > button:disabled {
    color: #b7bbcb;
    cursor: not-allowed;
}

.ai-promo-page-buttons span {
    color: #6f7487;
    font-weight: 900;
    padding: 0 0.45rem;
}

.ai-promo-pagination > button {
    background: #fff;
    border: 1px solid #d8dbed;
    justify-self: end;
    min-width: 142px;
}

.ai-promo-pagination.is-showing-all .ai-promo-page-buttons {
    display: none;
}

.ai-logic-open {
    overflow: hidden;
}

.ai-logic-modal[hidden] {
    display: none;
}

.ai-logic-modal {
    bottom: 0;
    display: grid;
    left: 0;
    padding: 3vh 2.5vw;
    place-items: center;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 220;
}

.ai-logic-backdrop {
    backdrop-filter: blur(10px);
    background: rgba(16, 24, 39, 0.42);
    inset: 0;
    position: absolute;
}

.ai-logic-sheet {
    background: #fbfaff;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 24px;
    box-shadow: 0 32px 90px rgba(13, 20, 46, 0.28);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: min(90vh, 980px);
    max-width: 1120px;
    min-height: 0;
    overflow: hidden;
    position: relative;
    width: min(94vw, 1120px);
}

.ai-logic-header {
    align-items: start;
    background: linear-gradient(135deg, #ffffff 0%, #f1f4ff 100%);
    border-bottom: 1px solid #e1e5f4;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    padding: 1.6rem 1.8rem;
}

.ai-logic-eyebrow {
    color: #004fff;
    display: block;
    font-size: 0.74rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.ai-logic-header h2 {
    color: #0f172a;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 950;
    letter-spacing: -0.045em;
    line-height: 1.05;
    margin: 0;
}

.ai-logic-header p {
    color: #555b6f;
    font-size: 1rem;
    font-weight: 650;
    margin: 0.65rem 0 0;
    max-width: 720px;
}

.ai-logic-close {
    align-items: center;
    background: #fff;
    border: 1px solid #d8dbed;
    border-radius: 14px;
    color: #111827;
    display: inline-flex;
    flex: 0 0 auto;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.ai-logic-close svg {
    height: 24px;
    width: 24px;
}

.ai-logic-output {
    display: grid;
    gap: 1.25rem;
    min-height: 0;
    overflow: auto;
    padding: 1.5rem 1.8rem 1.8rem;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.ai-logic-summary-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-logic-summary-grid article,
.ai-logic-decision-grid article,
.ai-logic-lists article,
.ai-logic-flow,
.ai-logic-plain {
    background: #fff;
    border: 1px solid #e4e7f5;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(32, 35, 64, 0.055);
}

.ai-logic-summary-grid article {
    display: grid;
    gap: 0.35rem;
    min-height: 126px;
    padding: 1.1rem;
}

.ai-logic-summary-grid span {
    align-items: center;
    background: #eef1ff;
    border-radius: 12px;
    color: #004fff;
    display: inline-flex;
    font-weight: 950;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.ai-logic-summary-grid strong {
    color: #101827;
    font-size: 1.08rem;
    font-weight: 950;
}

.ai-logic-summary-grid small {
    color: #6a7084;
    font-size: 0.78rem;
    font-weight: 850;
}

.ai-logic-flow {
    padding: 1.35rem;
}

.ai-logic-flow h3,
.ai-logic-decision-grid h3,
.ai-logic-lists h3,
.ai-logic-plain h3 {
    color: #101827;
    font-size: 1.12rem;
    font-weight: 950;
    letter-spacing: -0.02em;
    margin: 0;
}

.ai-logic-steps {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1rem;
}

.ai-logic-steps article {
    background: #f4f6ff;
    border-radius: 16px;
    display: grid;
    gap: 0.45rem;
    padding: 1rem;
    position: relative;
}

.ai-logic-steps article::after {
    color: #9aa2bb;
    content: "→";
    font-size: 1.5rem;
    font-weight: 950;
    position: absolute;
    right: -0.55rem;
    top: 1rem;
}

.ai-logic-steps article:nth-child(3)::after,
.ai-logic-steps article:last-child::after {
    content: "";
}

.ai-logic-steps b {
    color: #004fff;
    font-size: 0.96rem;
    font-weight: 950;
}

.ai-logic-steps p,
.ai-logic-decision-grid p,
.ai-logic-plain p {
    color: #4f566b;
    font-size: 0.93rem;
    font-weight: 650;
    line-height: 1.5;
    margin: 0;
}

.ai-logic-decision-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-logic-decision-grid article {
    border-left: 4px solid #d9def0;
    display: grid;
    gap: 0.6rem;
    padding: 1.1rem;
}

.ai-logic-decision-grid article.is-strong {
    border-left-color: #00a474;
    background: #fbfffd;
}

.ai-logic-lists {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ai-logic-lists article {
    padding: 1.1rem;
}

.ai-logic-lists ul {
    display: grid;
    gap: 0.75rem;
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.ai-logic-lists li {
    background: #f4f6ff;
    border-radius: 14px;
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem;
}

.ai-logic-lists strong {
    color: #101827;
    font-size: 0.94rem;
    font-weight: 950;
}

.ai-logic-lists span {
    color: #677087;
    font-size: 0.82rem;
    font-weight: 700;
}

.ai-logic-plain {
    background: #0f172a;
    display: grid;
    gap: 0.65rem;
    padding: 1.25rem;
}

.ai-logic-plain h3,
.ai-logic-plain p {
    color: #fff;
}

/* AI conversations */

.ai-conversations-page {
    background: #f7f7f6;
}

.ai-conversations-container {
    max-width: 1380px;
}

.ai-conversations-hero {
    align-items: flex-end;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.ai-conversations-hero h1 {
    color: #101114;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    font-weight: 950;
    letter-spacing: -0.04em;
    line-height: 0.98;
    margin: 0 0 0.55rem;
}

.ai-conversations-hero p:not(.eyebrow) {
    color: #55575f;
    font-size: 1.04rem;
    font-weight: 650;
    line-height: 1.45;
    margin: 0;
    max-width: 780px;
}

.ai-conversations-hero > a {
    align-items: center;
    background: #087587;
    border: 1px solid #087587;
    border-radius: 4px;
    color: #fff;
    display: inline-flex;
    font-weight: 850;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    white-space: nowrap;
}

.ai-conversation-kpis {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1.5rem;
}

.ai-conversation-kpis article,
.ai-session-panel,
.ai-conversation-detail {
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 6px;
    box-shadow: none;
}

.ai-conversation-kpis article {
    display: grid;
    gap: 0.45rem;
    min-height: 132px;
    padding: 1.35rem;
}

.ai-conversation-kpis span {
    align-items: center;
    background: #eef1ff;
    border-radius: 10px;
    color: #087587;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.ai-conversation-kpis small {
    color: #6a7084;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ai-conversation-kpis strong {
    color: #101827;
    font-size: 2rem;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.ai-conversation-shell {
    align-items: start;
    display: grid;
    gap: 1.4rem;
    grid-template-columns: 390px minmax(0, 1fr);
}

.ai-session-panel {
    display: grid;
    max-height: calc(100vh - 190px);
    min-height: 620px;
    overflow: hidden;
}

.ai-session-search {
    border-bottom: 1px solid #e8e8e8;
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
}

.ai-session-search label {
    align-items: center;
    background: #f7f7f6;
    border: 1px solid #dedede;
    border-radius: 4px;
    display: grid;
    gap: 0.55rem;
    grid-template-columns: 18px 1fr;
    margin: 0;
    padding: 0 0.75rem;
}

.ai-session-search input {
    background: transparent;
    border: 0;
    min-height: 42px;
    padding: 0;
}

.ai-session-search button {
    background: #087587;
    border: 1px solid #087587;
    border-radius: 4px;
    color: #fff;
    font-weight: 850;
    min-height: 40px;
}

.ai-session-list {
    display: grid;
    gap: 0.65rem;
    overflow: auto;
    padding: 1rem;
}

.ai-session-list a {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 5px;
    color: #101827;
    display: grid;
    gap: 0.55rem;
    padding: 1rem;
    text-decoration: none;
}

.ai-session-list a:hover,
.ai-session-list a.is-active {
    border-color: #087587;
    box-shadow: 0 0 0 3px rgba(8, 117, 135, 0.08);
}

.ai-session-list a > span {
    align-items: start;
    display: flex;
    gap: 0.6rem;
    justify-content: space-between;
}

.ai-session-list strong {
    font-size: 1rem;
    font-weight: 900;
}

.ai-session-list em,
.ai-session-list time,
.ai-session-list small {
    color: #6a7084;
    font-style: normal;
    font-weight: 700;
}

.ai-session-list em {
    font-size: 0.75rem;
    text-align: right;
    white-space: nowrap;
}

.ai-session-list small {
    font-size: 0.9rem;
    line-height: 1.35;
}

.ai-session-list time {
    font-size: 0.75rem;
}

.ai-session-empty {
    padding: 1rem;
}

.ai-conversation-detail {
    min-height: 620px;
    overflow: hidden;
}

.ai-conversation-placeholder {
    align-content: center;
    display: grid;
    justify-items: center;
    min-height: 620px;
    padding: 2rem;
    text-align: center;
}

.ai-conversation-placeholder svg {
    color: #087587;
    height: 44px;
    width: 44px;
}

.ai-conversation-placeholder h2 {
    color: #101827;
    font-size: 1.6rem;
    margin: 1rem 0 0.35rem;
}

.ai-conversation-placeholder p {
    color: #6a7084;
    margin: 0;
}

.ai-conversation-detail-head {
    align-items: start;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    padding: 1.4rem 1.5rem;
}

.ai-conversation-detail-head h2 {
    color: #101827;
    font-size: 1.55rem;
    font-weight: 950;
    margin: 0 0 0.35rem;
}

.ai-conversation-detail-head p {
    color: #6a7084;
    font-weight: 750;
    margin: 0;
}

.ai-conversation-detail-head dl {
    display: grid;
    gap: 0.6rem;
    grid-template-columns: repeat(3, minmax(0, auto));
    margin: 0;
}

.ai-conversation-detail-head div {
    min-width: 110px;
}

.ai-conversation-detail-head dt {
    color: #6a7084;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ai-conversation-detail-head dd {
    color: #101827;
    font-weight: 850;
    margin: 0.2rem 0 0;
}

.ai-message-thread {
    background: #f8f8f7;
    display: grid;
    gap: 0.95rem;
    max-height: calc(100vh - 360px);
    min-height: 470px;
    overflow: auto;
    padding: 1.5rem;
}

.ai-message-bubble {
    border: 1px solid #e3e3e3;
    border-radius: 14px;
    display: grid;
    gap: 0.65rem;
    max-width: min(760px, 82%);
    padding: 1rem 1.1rem;
}

.ai-message-bubble.is-guest {
    background: #087587;
    border-color: #087587;
    color: #fff;
    justify-self: end;
}

.ai-message-bubble.is-assistant {
    background: #fff;
    color: #101827;
    justify-self: start;
}

.ai-message-bubble.is-system {
    background: #fff7e5;
    border-color: #f1d292;
    justify-self: center;
}

.ai-message-bubble > div,
.ai-message-bubble footer {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.ai-message-bubble strong,
.ai-message-bubble time,
.ai-message-bubble footer span {
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.ai-message-bubble time,
.ai-message-bubble footer span {
    opacity: 0.72;
}

.ai-message-bubble p {
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.55;
    margin: 0;
}

.ai-message-bubble footer {
    justify-content: flex-start;
}

.ai-message-bubble footer .is-warning {
    color: #c2410c;
    opacity: 1;
}

/* AI health dashboard */

.ai-health-container {
    max-width: 1380px;
}

.ai-health-hero {
    align-items: stretch;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) 280px;
}

.ai-health-hero h1 {
    color: #0f1f33;
    font-size: clamp(2.7rem, 6vw, 5.2rem);
    letter-spacing: 0;
    line-height: 0.95;
    margin: 0;
}

.ai-health-hero p {
    color: #56566a;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0.75rem 0 0;
}

.ai-health-score,
.ai-health-kpi-grid article,
.ai-health-config-row article,
.ai-health-card,
.ai-health-note {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid #cfd2e8;
    border-radius: 8px;
    box-shadow: 0 20px 54px rgba(15, 31, 51, 0.06);
}

.ai-health-score {
    display: grid;
    gap: 0.35rem;
    padding: 1.4rem;
}

.ai-health-score span,
.ai-health-score small,
.ai-health-kpi-grid small,
.ai-health-config-row small {
    color: #696a7d;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ai-health-score strong {
    color: #0f1f33;
    font-size: 4.2rem;
    line-height: 0.95;
}

.ai-health-score.is-good {
    border-color: #93e7bd;
}

.ai-health-score.is-watch {
    border-color: #f6c66b;
}

.ai-health-score.is-danger {
    border-color: #f0a1a1;
}

.ai-health-note {
    align-items: flex-start;
    color: #32415a;
    display: grid;
    gap: 1rem;
    grid-template-columns: auto 1fr;
    padding: 1.1rem 1.25rem;
}

.ai-health-note .lucide-icon {
    color: #0b58e8;
    height: 1.5rem;
    width: 1.5rem;
}

.ai-health-note strong {
    color: #0f1f33;
    display: block;
    font-weight: 900;
    margin-bottom: 0.25rem;
}

.ai-health-note p {
    color: #5d6075;
    font-weight: 650;
    margin: 0;
}

.ai-health-kpi-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-health-kpi-grid article {
    display: grid;
    gap: 0.7rem;
    min-height: 188px;
    padding: 1.5rem;
}

.ai-health-kpi-grid article > span {
    align-items: center;
    background: #f0f1ff;
    border-radius: 8px;
    color: #3728df;
    display: inline-flex;
    height: 54px;
    justify-content: center;
    width: 54px;
}

.ai-health-kpi-grid article > span .lucide-icon {
    height: 28px;
    width: 28px;
}

.ai-health-kpi-grid strong {
    color: #0a1b31;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 0.95;
}

.ai-health-kpi-grid em,
.ai-health-config-row span {
    color: #56566a;
    font-style: normal;
    font-weight: 750;
}

.ai-health-config-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-health-config-row article {
    display: grid;
    gap: 0.4rem;
    padding: 1.15rem;
}

.ai-health-config-row strong {
    color: #0f1f33;
    font-size: 1.15rem;
    font-weight: 950;
    overflow-wrap: anywhere;
}

.ai-health-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.ai-health-card {
    display: grid;
    gap: 1.25rem;
    padding: 1.45rem;
}

.ai-health-card.is-wide {
    grid-column: span 1;
}

.ai-health-card-head {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.ai-health-card-head h2 {
    color: #0f1f33;
    font-size: 1.55rem;
    line-height: 1.05;
    margin: 0;
}

.ai-health-card-head p {
    color: #696a7d;
    font-weight: 700;
    margin: 0.35rem 0 0;
}

.ai-health-daily-chart {
    align-items: end;
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    min-height: 260px;
}

.ai-health-daily-chart > div {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    justify-content: flex-end;
    height: 100%;
}

.ai-health-daily-chart span {
    align-items: end;
    background: linear-gradient(180deg, #4f46e5, #0b8f86);
    border: 1px solid #d8ddf5;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    min-height: 12px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.ai-health-daily-chart span::before {
    content: none;
}

.ai-health-daily-chart span em {
    color: #fff;
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 900;
    padding-bottom: 0.35rem;
}

.ai-health-daily-chart small {
    color: #696a7d;
    font-weight: 850;
    text-align: center;
}

.ai-health-bars,
.ai-health-provider-list,
.ai-health-funnel {
    display: grid;
    gap: 0.9rem;
}

.ai-health-bars > div,
.ai-health-provider-list > div {
    display: grid;
    gap: 0.45rem;
}

.ai-health-bars span,
.ai-health-provider-list span,
.ai-health-funnel div {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.ai-health-bars strong,
.ai-health-provider-list strong,
.ai-health-funnel strong {
    color: #222337;
    font-weight: 900;
}

.ai-health-bars em,
.ai-health-provider-list em,
.ai-health-funnel span {
    color: #56566a;
    font-style: normal;
    font-weight: 900;
}

.ai-health-bars i,
.ai-health-provider-list i {
    background: linear-gradient(90deg, #3728df, #00a399);
    border-radius: 999px;
    display: block;
    height: 10px;
    min-width: 8px;
}

.ai-health-provider-list small {
    color: #77798c;
    display: block;
    font-weight: 750;
    margin-top: 0.15rem;
}

.ai-health-funnel div {
    background: #f1f4ff;
    border: 1px solid #dce1f7;
    border-radius: 8px;
    padding: 0.85rem 1rem;
}

.ai-health-recent {
    overflow: hidden;
}

.ai-health-event-table {
    display: grid;
    overflow-x: auto;
}

.ai-health-event-head,
.ai-health-event-row {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: 110px 110px 130px 80px minmax(150px, 1fr) 100px 110px;
    min-width: 860px;
}

.ai-health-event-head {
    background: #edf2ff;
    border-radius: 8px 8px 0 0;
    color: #3e4155;
    font-size: 0.82rem;
    font-weight: 950;
    letter-spacing: 0.04em;
    padding: 0.9rem 1rem;
    text-transform: uppercase;
}

.ai-health-event-row {
    align-items: center;
    border-bottom: 1px solid #e1e5f3;
    color: #2d3345;
    font-weight: 750;
    padding: 1rem;
}

.ai-health-status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 950;
    justify-content: center;
    padding: 0.35rem 0.65rem;
    text-transform: uppercase;
}

.ai-health-status.is-ok {
    background: #dff9e8;
    color: #08723f;
}

.ai-health-status.is-fallback {
    background: #fff1c7;
    color: #8a5a00;
}

.ai-health-status.is-failed {
    background: #ffe2e2;
    color: #b42318;
}

/* AI health diagnostic redesign */

.ai-health-page {
    background: #f7f8fb;
    --ai-health-font: "Aptos Narrow", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --ai-health-mono: "Roboto Mono", "SFMono-Regular", "Aptos Mono", "Arial Narrow", Menlo, Monaco, Consolas, monospace;
    font-family: var(--ai-health-font);
    font-stretch: condensed;
}

.ai-health-container {
    gap: 1.45rem;
    max-width: 1320px;
}

.ai-health-hero {
    align-items: end;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) 240px;
    min-height: 210px;
}

.ai-health-hero .eyebrow {
    color: #5d6070;
    font-family: var(--ai-health-mono);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin: 0 0 0.35rem;
    text-transform: uppercase;
}

.ai-health-hero h1 {
    color: #111827;
    font-size: clamp(2rem, 4.8vw, 3.85rem);
    font-weight: 900;
    line-height: 0.94;
    margin: 0;
}

.ai-health-hero p:not(.eyebrow) {
    color: #3f4352;
    font-size: 0.98rem;
    font-weight: 650;
    line-height: 1.35;
    margin: 0.5rem 0 0;
}

.ai-health-score,
.ai-health-kpi-grid article,
.ai-health-config-row article,
.ai-health-card,
.ai-health-note {
    background: #fff;
    border: 1px solid #e0e4ec;
    border-radius: 0;
    box-shadow: none;
}

.ai-health-score {
    align-content: space-between;
    display: grid;
    justify-items: center;
    min-height: 250px;
    padding: 1.65rem 1.25rem 1.35rem;
    text-align: center;
}

.ai-health-score span,
.ai-health-score small,
.ai-health-kpi-grid small,
.ai-health-config-row small {
    color: #5c5f70;
    font-family: var(--ai-health-mono);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ai-health-score small {
    line-height: 1.35;
}

.ai-health-score-ring {
    align-items: center;
    border: 3px solid #0a7f8f;
    border-radius: 999px;
    display: inline-flex;
    flex-direction: column;
    height: 104px;
    justify-content: center;
    width: 104px;
}

.ai-health-score-ring strong {
    color: #087587;
    font-size: 2.8rem;
    font-weight: 950;
    line-height: 0.9;
}

.ai-health-score-ring em {
    color: #087587;
    font-family: var(--ai-health-mono);
    font-size: 0.56rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
    text-transform: uppercase;
}

.ai-health-score.is-good {
    border-color: #9be2c2;
}

.ai-health-score.is-watch .ai-health-score-ring,
.ai-health-score.is-watch {
    border-color: #d99a1e;
}

.ai-health-score.is-watch .ai-health-score-ring strong,
.ai-health-score.is-watch .ai-health-score-ring em {
    color: #9f6500;
}

.ai-health-score.is-danger .ai-health-score-ring,
.ai-health-score.is-danger {
    border-color: #dc453f;
}

.ai-health-score.is-danger .ai-health-score-ring strong,
.ai-health-score.is-danger .ai-health-score-ring em {
    color: #bb201a;
}

.ai-health-note {
    align-items: flex-start;
    color: #344054;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: auto 1fr;
    padding: 1rem 1.15rem;
}

.ai-health-note .lucide-icon {
    color: #087587;
    height: 1.15rem;
    width: 1.15rem;
}

.ai-health-note strong {
    color: #111827;
    display: block;
    font-weight: 900;
    margin-bottom: 0.25rem;
}

.ai-health-note p {
    color: #667085;
    font-weight: 600;
    margin: 0;
}

.ai-health-kpi-grid {
    display: grid;
    gap: 1.35rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-health-kpi-grid article {
    display: grid;
    gap: 0.32rem;
    min-height: 165px;
    padding: 1.45rem 1.55rem;
    position: relative;
}

.ai-health-kpi-grid article > b {
    color: #565b6a;
    font-family: var(--ai-health-mono);
    font-size: 0.72rem;
    font-weight: 800;
    position: absolute;
    right: 1.35rem;
    top: 1.3rem;
}

.ai-health-kpi-grid article > span {
    align-items: center;
    background: transparent;
    border-radius: 0;
    color: #087587;
    display: inline-flex;
    height: 24px;
    justify-content: flex-start;
    width: 24px;
}

.ai-health-kpi-grid article:nth-child(4) > span {
    color: #dc453f;
}

.ai-health-kpi-grid article > span .lucide-icon {
    height: 22px;
    width: 22px;
}

.ai-health-kpi-grid strong {
    color: #111827;
    font-size: clamp(2.35rem, 4.5vw, 3.6rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 0.95;
}

.ai-health-kpi-grid em {
    color: #505666;
    font-style: normal;
    font-weight: 800;
}

.ai-health-config-row {
    display: grid;
    gap: 1.35rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-health-config-row article {
    display: grid;
    gap: 0.25rem;
    min-height: 86px;
    padding: 1.05rem 1.2rem;
}

.ai-health-config-row strong {
    color: #111827;
    font-size: 1.05rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.ai-health-config-row span {
    color: #535a68;
    font-weight: 800;
}

.ai-health-grid {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
}

.ai-health-card {
    display: grid;
    gap: 1.25rem;
    padding: 1.55rem 1.75rem;
}

.ai-health-card-head {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.ai-health-card-head h2 {
    color: #111827;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.05;
    margin: 0;
}

.ai-health-card-head p {
    color: #475467;
    font-size: 0.92rem;
    font-weight: 650;
    margin: 0.2rem 0 0;
}

.ai-health-daily-chart {
    align-items: end;
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    min-height: 210px;
    padding-top: 1rem;
}

.ai-health-daily-chart > div {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    height: 100%;
    justify-content: flex-end;
    min-width: 0;
}

.ai-health-daily-chart span {
    align-items: end;
    background: linear-gradient(180deg, #0891a1, #056674);
    border: 0;
    border-radius: 0;
    display: flex;
    justify-content: center;
    min-height: 7px;
    overflow: hidden;
    width: 100%;
}

.ai-health-daily-chart span em {
    color: #fff;
    font-family: var(--ai-health-mono);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 900;
    padding-bottom: 0.28rem;
}

.ai-health-daily-chart small {
    color: #667085;
    font-family: var(--ai-health-mono);
    font-size: 0.7rem;
    font-weight: 800;
    text-align: center;
}

.ai-health-bars,
.ai-health-funnel {
    display: grid;
    gap: 0.95rem;
}

.ai-health-bars > div {
    display: grid;
    gap: 0.32rem;
}

.ai-health-bars span,
.ai-health-funnel div {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.ai-health-bars strong,
.ai-health-funnel strong {
    color: #111827;
    font-family: var(--ai-health-mono);
    font-size: 0.82rem;
    font-weight: 900;
}

.ai-health-bars em,
.ai-health-funnel span {
    color: #495161;
    font-style: normal;
    font-weight: 900;
}

.ai-health-bars i {
    background: #e7e7e7;
    border-radius: 0;
    display: block;
    height: 8px;
    min-width: 4px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.ai-health-bars i::before {
    background: linear-gradient(90deg, #087587, #0b9aa5);
    content: "";
    display: block;
    height: 100%;
    width: var(--value, 0%);
}

.ai-health-funnel div {
    background: #f0f1f3;
    border: 0;
    border-radius: 0;
    padding: 0.72rem 0.9rem;
}

.ai-health-funnel div:last-child {
    background: #eef9fb;
    border: 1px solid #c9e7ec;
    color: #087587;
}

.ai-health-funnel div:last-child strong,
.ai-health-funnel div:last-child span {
    color: #087587;
}

.ai-health-recent {
    overflow: hidden;
}

.ai-health-event-table {
    display: grid;
    overflow-x: auto;
}

.ai-health-event-head,
.ai-health-event-row {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: 120px 120px 140px 90px minmax(170px, 1fr) 110px 90px;
    min-width: 900px;
}

.ai-health-event-head {
    background: #f0f1f3;
    border-radius: 0;
    color: #535a68;
    font-family: var(--ai-health-mono);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 0.85rem 1rem;
    text-transform: uppercase;
}

.ai-health-event-row {
    align-items: center;
    border-bottom: 1px solid #e8ebf0;
    color: #1f2937;
    font-family: var(--ai-health-mono);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.95rem 1rem;
}

.ai-health-status {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.62rem;
    font-weight: 950;
    justify-content: center;
    min-height: 22px;
    padding: 0.24rem 0.5rem;
    text-transform: uppercase;
}

@media (max-width: 1180px) {
    .ai-health-hero,
    .ai-health-grid {
        grid-template-columns: 1fr;
    }

    .ai-health-kpi-grid,
    .ai-health-config-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-studio-layout {
        grid-template-columns: 1fr;
    }

    .ai-logic-summary-grid,
    .ai-logic-decision-grid,
    .ai-logic-lists {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-logic-steps {
        grid-template-columns: 1fr;
    }

    .ai-logic-steps article::after {
        bottom: -1rem;
        right: 1rem;
        top: auto;
        transform: rotate(90deg);
    }

    .ai-logic-steps article:nth-child(3)::after {
        content: "→";
    }
}

@media (max-width: 760px) {
    .ai-health-container {
        gap: 1.1rem;
    }

    .ai-health-hero {
        gap: 1rem;
    }

    .ai-health-hero h1 {
        font-size: clamp(2.45rem, 14vw, 3.5rem);
        line-height: 1;
    }

    .ai-health-hero p {
        font-size: 1rem;
    }

    .ai-health-score strong {
        font-size: 3.35rem;
    }

    .ai-health-kpi-grid,
    .ai-health-config-row {
        gap: 0.85rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-health-kpi-grid article,
    .ai-health-config-row article,
    .ai-health-card,
    .ai-health-score {
        padding: 1rem;
    }

    .ai-health-kpi-grid article {
        min-height: 166px;
    }

    .ai-health-card-head {
        flex-direction: column;
    }

    .ai-health-daily-chart {
        min-height: 210px;
    }

    .ai-compact-grid,
    .ai-studio-layout .assistant-mode-grid,
    .ai-rule-title-fields,
    .ai-rule-card,
    .ai-rule-card-side,
    .ai-qa-editor .ai-qa-topline {
        grid-template-columns: 1fr;
    }

    .ai-knowledge-hero,
    .ai-qa-editor-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .ai-knowledge-actions {
        justify-content: flex-start;
    }

    .ai-promo-section-header {
        flex-direction: column;
    }

    .ai-promo-section .ai-header-actions {
        width: 100%;
    }

    .ai-promo-section .ai-filter-button,
    .ai-promo-section .ai-add-product {
        flex: 1;
    }

    .ai-promo-section .ai-promo-head {
        display: none;
    }

    .ai-promo-section .ai-promo-row {
        align-items: stretch;
        grid-template-columns: 44px 1fr;
    }

    .ai-promo-section .ai-promo-product,
    .ai-promo-section .ai-priority-input,
    .ai-promo-section .ai-promo-row input[type="text"],
    .ai-promo-section .ai-promo-status,
    .ai-promo-section .ai-row-action {
        grid-column: 2;
    }

    .ai-promo-pagination {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .ai-promo-page-info,
    .ai-promo-pagination > button {
        justify-self: stretch;
    }

    .ai-promo-page-buttons {
        flex-wrap: wrap;
    }

    .ai-logic-header {
        flex-direction: column;
    }

    .ai-logic-summary-grid,
    .ai-logic-decision-grid,
    .ai-logic-lists {
        grid-template-columns: 1fr;
    }

    .ai-logic-output,
    .ai-logic-header {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Responsive and layout guards */

/* Final admin responsive guards */

/* Admin redesign final mobile/layout guard */
.dashboard-page {
    background: #f7f8ff;
    padding-left: 292px;
}

.admin-sidebar {
    background: #f8f9ff;
    border-right: 1px solid #c9c8dd;
    bottom: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    left: 0;
    padding: 1.85rem 1.55rem 1.25rem;
    position: fixed;
    top: 0;
    width: 292px;
    z-index: 80;
}

.admin-topnav {
    background: #f7f8ff;
    border-bottom: 1px solid #c9c8dd;
    box-shadow: none;
    min-height: 76px;
    padding: 1rem 1.55rem;
    position: sticky;
    top: 0;
    z-index: 60;
}

.dashboard-container,
.admin-management-page {
    box-sizing: border-box;
    display: grid;
    gap: 1.75rem;
    margin: 0 auto;
    max-width: 1280px;
    padding: 2.9rem 2.55rem 4rem;
    width: 100%;
}

.management-hero,
.profile-hero {
    align-items: center;
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    min-width: 0;
}

.management-hero > div,
.profile-hero > div {
    min-width: 0;
}

.management-hero h1,
.profile-hero h1 {
    overflow-wrap: anywhere;
}

.product-filter-panel {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(260px, 1fr) auto minmax(170px, auto) auto;
    padding: 1.3rem;
}

.product-table-head,
.product-table-row {
    grid-template-columns: minmax(280px, 1.6fr) minmax(150px, 1fr) 120px 160px 110px;
}

.product-title-cell {
    grid-template-columns: 60px minmax(0, 1fr);
}

@media (max-width: 1080px) {
    .dashboard-page {
        padding-left: 0;
        padding-top: 76px;
    }

    .admin-sidebar {
        border-bottom: 1px solid #c9c8dd;
        border-right: 0;
        bottom: auto;
        flex-direction: row;
        gap: 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.65rem 1rem;
        width: 100%;
    }

    .admin-sidebar-brand,
    .admin-sidebar-footer {
        display: none;
    }

    .admin-sidebar-nav {
        display: flex;
        gap: 0.45rem;
        min-width: 0;
        overflow-x: auto;
        width: 100%;
    }

    .admin-sidebar-nav a {
        border-left: 0;
        border-radius: 8px;
        flex: 0 0 auto;
        grid-template-columns: auto 1fr;
        min-width: fit-content;
    }

    .admin-topnav {
        top: 64px;
    }

    .dashboard-container,
    .admin-management-page {
        padding: 2rem 1rem 3rem;
    }

    .management-stat-grid,
    .product-summary-grid,
    .profile-grid,
    .profile-lower-grid {
        grid-template-columns: 1fr;
    }

    .profile-save-bar {
        left: 0;
        padding: 1rem;
    }
}

@media (max-width: 760px) {
    .admin-toolbar-actions > button,
    .admin-notifications,
    .admin-avatar,
    .admin-topbar-logout {
        display: none;
    }

    .admin-topnav {
        padding: 0.8rem 1rem;
    }

    .admin-search {
        max-width: none;
        width: 100%;
    }

    .management-hero,
    .profile-hero,
    .profile-save-bar,
    .profile-save-bar div {
        align-items: stretch;
        flex-direction: column;
    }

    .management-hero button,
    .profile-hero-actions,
    .profile-hero-actions .btn-light,
    .profile-hero-actions .landing-primary-action,
    .profile-hero-actions button,
    .profile-save-bar a,
    .profile-save-bar button {
        justify-content: center;
        width: 100%;
    }

    .product-filter-panel,
    .profile-basic-card,
    .profile-assets-grid,
    .ai-config-body,
    .ai-rule-meta,
    .ai-qa-topline {
        grid-template-columns: 1fr;
    }

    .product-filter-panel label,
    .product-filter-panel input,
    .product-filter-panel select,
    .product-filter-panel button {
        min-width: 0;
        width: 100%;
    }

    .product-table-head {
        display: none;
    }

    .product-table-row,
    .category-management-row {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .category-row-meta {
        justify-items: start;
    }

    .category-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .product-title-cell {
        grid-template-columns: 58px minmax(0, 1fr);
    }
}

.admin-management-page > *,
.dashboard-container > * {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.management-stat-grid > article,
.product-summary-grid > article,
.profile-grid,
.profile-grid > *,
.profile-lower-grid,
.profile-lower-grid > *,
.profile-card {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.product-summary-grid strong,
.product-summary-grid small,
.management-stat-grid strong,
.management-stat-grid small {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}

.ai-promo-check input,
.check-row input {
    margin: 0;
    min-height: auto;
    min-width: 0;
    padding: 0;
    width: auto;
}

/* AI settings redesign */

.ai-settings-page {
    background: #f7f7f6;
}

.ai-settings-page .ai-admin-container {
    gap: 1.7rem;
    max-width: 1320px;
}

.ai-settings-page .ai-settings-form {
    display: grid;
    gap: 2rem;
}

.ai-settings-commandbar {
    align-items: flex-end;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.ai-settings-commandbar h1 {
    color: #101114;
    font-size: clamp(2rem, 4vw, 3.05rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    margin: 0 0 0.45rem;
}

.ai-settings-commandbar p {
    color: #55575f;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
    max-width: 640px;
}

.ai-settings-commandbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: flex-end;
}

.ai-settings-commandbar-actions .btn-light,
.ai-settings-commandbar-actions button,
.ai-settings-page .ai-save-bar button,
.ai-settings-page .ai-save-bar .btn-light {
    align-items: center;
    border-radius: 4px;
    display: inline-flex;
    font-size: 0.96rem;
    font-weight: 750;
    gap: 0.5rem;
    justify-content: center;
    min-height: 42px;
    padding: 0.75rem 1.45rem;
    white-space: nowrap;
}

.ai-settings-commandbar-actions button,
.ai-settings-page .ai-save-bar button,
.ai-settings-page .ai-add-product {
    background: #087587;
    border: 1px solid #087587;
    color: #fff;
    box-shadow: none;
}

.ai-settings-commandbar-actions .ai-logic-explain-button {
    background: #fff;
    border-color: #dedede;
    color: #202124;
}

.ai-settings-commandbar-actions .ai-logic-explain-button:hover {
    border-color: #087587;
    color: #087587;
}

.ai-settings-commandbar-actions .ai-logic-explain-button svg {
    height: 18px;
    width: 18px;
}

.ai-settings-commandbar-actions .btn-light,
.ai-settings-page .ai-save-bar .btn-light {
    background: #fff;
    border: 1px solid #dedede;
    color: #202124;
}

.ai-settings-page .ai-studio-layout {
    align-items: start;
    display: grid;
    gap: 2rem;
    grid-template-columns: 380px minmax(0, 1fr);
}

.ai-settings-page .ai-studio-side {
    display: grid;
    gap: 2rem;
}

.ai-settings-page .ai-config-card,
.ai-settings-page .ai-knowledge-card,
.ai-settings-page .ai-qa-editor,
.ai-settings-page .ai-documents-card,
.ai-settings-page .ai-promo-section {
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 6px;
    box-shadow: none;
}

.ai-settings-page .ai-config-card {
    padding: 2rem 2.1rem;
}

.ai-settings-page .ai-config-header {
    align-items: center;
    border: 0;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.8rem;
    padding: 0;
}

.ai-settings-page .ai-section-title {
    gap: 0;
}

.ai-settings-page .ai-section-title h2,
.ai-settings-page .ai-knowledge-hero h2,
.ai-settings-page .ai-qa-editor-head h3,
.ai-settings-page .ai-promo-section-header h2 {
    color: #15161a;
    font-size: 1.32rem;
    font-weight: 850;
    letter-spacing: 0;
    margin: 0;
}

.ai-settings-page .ai-active-pill {
    background: #eafbf0;
    border: 0;
    border-radius: 999px;
    color: #18874a;
    font-size: 0.82rem;
    font-weight: 850;
    padding: 0.42rem 0.78rem;
}

.ai-settings-page .ai-active-pill::before {
    background: #15d66f;
    border-radius: 999px;
    content: "";
    display: inline-block;
    height: 6px;
    margin-right: 0.45rem;
    vertical-align: middle;
    width: 6px;
}

.ai-settings-page .ai-config-body,
.ai-settings-page .ai-compact-grid {
    gap: 1.55rem;
}

.ai-settings-page label,
.ai-settings-page .ai-field-label {
    color: #3f424a;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.ai-settings-page input[type="text"],
.ai-settings-page input[type="number"],
.ai-settings-page input[type="search"],
.ai-settings-page select,
.ai-settings-page textarea {
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 3px;
    color: #15161a;
    font-size: 0.98rem;
    font-weight: 500;
    margin-top: 0.65rem;
    min-height: 42px;
    padding: 0.75rem 0.9rem;
}

.ai-settings-page textarea {
    line-height: 1.55;
}

.ai-settings-page .ai-instructions-card textarea[name="system_prompt"] {
    min-height: 300px;
}

.ai-settings-page input:focus,
.ai-settings-page select:focus,
.ai-settings-page textarea:focus {
    border-color: #087587;
    box-shadow: 0 0 0 3px rgba(8, 117, 135, 0.1);
}

.ai-settings-page .ai-range-label > span {
    color: #3f424a;
}

.ai-settings-page .ai-range-label strong {
    color: #087587;
    font-size: 1rem;
}

.ai-settings-page .ai-range-label input[type="range"] {
    accent-color: #087587;
}

.ai-settings-page .assistant-mode-grid {
    background: #f1f1f1;
    border: 1px solid #dfdfdf;
    border-radius: 4px;
    gap: 0;
    padding: 0.3rem;
}

.ai-settings-page .assistant-mode-card {
    background: transparent;
    border: 0;
    border-radius: 3px;
    min-height: auto;
    padding: 0.65rem 0.8rem;
}

.ai-settings-page .assistant-mode-card:has(input:checked) {
    background: #fff;
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.08);
}

.ai-settings-page .assistant-mode-card .mode-icon {
    color: #2f343d;
}

.ai-settings-page .assistant-mode-card small {
    display: none;
}

.ai-settings-page .ai-check-row {
    align-items: center;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
}

.ai-settings-page .ai-check-row input {
    accent-color: #087587;
    height: 26px;
    width: 44px;
}

.ai-settings-page .ai-check-row small {
    display: none;
}

.ai-settings-page .ai-knowledge-workspace {
    background: transparent;
    border: 0;
    box-shadow: none;
    display: grid;
    gap: 2rem;
    padding: 0;
}

.ai-settings-page .ai-knowledge-split {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.ai-settings-page .ai-knowledge-stack {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr);
}

.ai-settings-page .ai-knowledge-card,
.ai-settings-page .ai-qa-editor {
    padding: 2rem;
}

.ai-settings-page .ai-documents-card {
    padding: 2rem;
}

.ai-settings-page .ai-knowledge-hero,
.ai-settings-page .ai-qa-editor-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.4rem;
}

.ai-settings-page .ai-knowledge-actions a,
.ai-settings-page .ai-qa-editor-head a {
    color: #087587;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.ai-settings-page .ai-kicker {
    display: none;
}

.ai-settings-page .ai-rule-stack {
    display: grid;
    gap: 1rem;
}

.ai-settings-page .ai-rule-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
}

.ai-settings-page .ai-rule-card.is-new-rule {
    opacity: 0.55;
}

.ai-settings-page .ai-rule-card-main {
    align-items: center;
    display: grid;
    gap: 0.9rem;
    grid-template-columns: 28px minmax(0, 1fr);
}

.ai-settings-page .ai-rule-card-icon {
    color: #087587;
}

.ai-settings-page .ai-rule-title-fields {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: minmax(0, 1fr) minmax(116px, 140px);
}

.ai-settings-page .ai-rule-card-side {
    align-items: end;
    display: grid;
    gap: 0.7rem;
    grid-template-columns: minmax(74px, 90px) minmax(108px, 130px) 28px;
}

.ai-settings-page .ai-rule-content textarea {
    min-height: 64px;
}

.ai-settings-page .ai-qa-search {
    display: block;
    margin-bottom: 1.2rem;
}

.ai-settings-page .ai-qa-search > span {
    align-items: center;
    background: #f1f1f1;
    border: 1px solid #e0e0e0;
    display: grid;
    gap: 0.55rem;
    grid-template-columns: 18px 1fr;
    margin-top: 0.6rem;
    padding: 0 0.75rem;
}

.ai-settings-page .ai-qa-search input {
    background: transparent;
    border: 0;
    margin: 0;
    min-height: 42px;
    padding: 0;
}

.ai-settings-page .ai-qa-list {
    display: grid;
    gap: 1rem;
}

.ai-settings-page .ai-qa-row {
    border-bottom: 1px solid #e7e7e7;
    display: grid;
    gap: 0.8rem;
    padding-bottom: 1rem;
}

.ai-settings-page .ai-qa-row:last-child {
    border-bottom: 0;
}

.ai-settings-page .ai-documents-head {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.4rem;
}

.ai-settings-page .ai-documents-head h3 {
    align-items: center;
    color: #15161a;
    display: flex;
    font-size: 1.2rem;
    gap: 0.6rem;
    margin: 0 0 0.45rem;
}

.ai-settings-page .ai-documents-head h3 svg {
    color: #087587;
}

.ai-settings-page .ai-documents-head p,
.ai-settings-page .ai-documents-note,
.ai-settings-page .ai-document-empty span,
.ai-settings-page .ai-document-row span {
    color: #666a74;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.ai-settings-page .ai-documents-head > span {
    background: #eaf8f7;
    border-radius: 999px;
    color: #087587;
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    padding: 0.45rem 0.8rem;
}

.ai-settings-page .ai-document-upload {
    background: #f7f7f7;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
    padding: 1rem;
}

.ai-settings-page .ai-document-upload input[type="file"] {
    background: #fff;
    border: 1px dashed #c8ccd7;
    border-radius: 3px;
    color: #3f424a;
    display: block;
    margin-top: 0.65rem;
    min-height: 42px;
    padding: 0.65rem;
    width: 100%;
}

.ai-settings-page .ai-documents-note {
    margin: 1rem 0 1.2rem;
}

.ai-settings-page .ai-document-list {
    display: grid;
    gap: 0.8rem;
}

.ai-settings-page .ai-document-empty {
    align-items: center;
    background: #fbfbfb;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    display: grid;
    gap: 0.35rem;
    justify-items: center;
    padding: 1.3rem;
    text-align: center;
}

.ai-settings-page .ai-document-empty svg {
    color: #087587;
    height: 28px;
    width: 28px;
}

.ai-settings-page .ai-document-row {
    align-items: center;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) 150px;
    padding: 1rem;
}

.ai-settings-page .ai-document-row strong {
    color: #15161a;
    display: block;
    font-size: 1rem;
    margin-bottom: 0.22rem;
}

.ai-settings-page .ai-document-row label {
    margin: 0;
}

.ai-settings-page .ai-promo-section {
    overflow: hidden;
    padding: 0;
}

.ai-settings-page .ai-promo-section-header {
    align-items: center;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    padding: 1.8rem 2rem;
}

.ai-settings-page .ai-promo-section-header p {
    display: none;
}

.ai-settings-page .ai-promo-section .ai-filter-button,
.ai-settings-page .ai-promo-section .ai-add-product {
    border-radius: 4px;
    min-height: 40px;
    padding: 0.7rem 1.1rem;
}

.ai-settings-page .ai-promo-section .ai-filter-button {
    background: #fff;
    border-color: #dedede;
    color: #15161a;
}

.ai-settings-page .ai-promo-section .ai-promo-list {
    border: 0;
    border-radius: 0;
}

.ai-settings-page .ai-promo-section .ai-promo-head,
.ai-settings-page .ai-promo-section .ai-promo-row {
    column-gap: 1rem;
    grid-template-columns: minmax(200px, 1.45fr) 110px 120px minmax(190px, 1.25fr) 110px 90px;
}

.ai-settings-page .ai-promo-section .ai-promo-head {
    background: #f1f1f1;
    border-bottom: 1px solid #dedede;
    padding: 0.95rem 2rem;
}

.ai-settings-page .ai-promo-section .ai-promo-head button:first-child,
.ai-settings-page .ai-promo-section .ai-promo-check {
    display: none;
}

.ai-settings-page .ai-promo-section .ai-promo-row {
    border: 0;
    border-bottom: 1px solid #e8e8e8;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 1.25rem 2rem;
}

.ai-settings-page .ai-promo-section .ai-promo-row:hover,
.ai-settings-page .ai-promo-section .ai-promo-row.is-promoted {
    background: #fff;
    border-color: #e8e8e8;
}

.ai-settings-page .ai-promo-section .ai-priority-input,
.ai-settings-page .ai-promo-section .ai-promo-row input[type="text"] {
    background: transparent;
    border: 0;
    margin: 0;
    padding: 0;
}

.ai-settings-page .ai-promo-status {
    background: #eafbf0;
    color: #18874a;
    justify-self: start;
}

.ai-settings-page .ai-row-action {
    color: #15161a;
}

.ai-settings-page .ai-save-bar {
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 6px;
    box-shadow: none;
    position: static;
}

@media (max-width: 1500px) {
    .ai-settings-page .ai-knowledge-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1180px) {
    .ai-settings-page .ai-studio-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .ai-settings-commandbar {
        align-items: stretch;
        flex-direction: column;
    }

    .ai-settings-commandbar-actions {
        flex-direction: column;
    }

    .ai-settings-page .ai-config-card,
    .ai-settings-page .ai-knowledge-card,
    .ai-settings-page .ai-qa-editor,
    .ai-settings-page .ai-documents-card {
        padding: 1.2rem;
    }

    .ai-settings-page .ai-documents-head,
    .ai-settings-page .ai-document-row {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .ai-settings-page .ai-document-upload {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1280px) {
    .ai-conversation-shell {
        grid-template-columns: 330px minmax(0, 1fr);
    }

    .ai-conversation-detail-head {
        flex-direction: column;
    }

    .ai-conversation-detail-head dl {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }
}

@media (max-width: 980px) {
    .ai-conversations-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .ai-conversations-hero > a {
        justify-content: center;
    }

    .ai-conversation-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-conversation-shell {
        grid-template-columns: 1fr;
    }

    .ai-session-panel,
    .ai-conversation-detail,
    .ai-conversation-placeholder {
        min-height: auto;
    }

    .ai-session-panel {
        max-height: 460px;
    }

    .ai-message-thread {
        max-height: none;
    }
}

@media (max-width: 640px) {
    .ai-conversation-kpis,
    .ai-conversation-detail-head dl {
        grid-template-columns: 1fr;
    }

    .ai-conversations-hero h1 {
        font-size: 2.35rem;
    }

    .ai-message-bubble {
        max-width: 100%;
    }
}

/* Superadmin */
.superadmin-page {
    background: #f6f7fb;
    color: #101827;
    min-height: 100vh;
}

.superadmin-topbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.superadmin-brand strong {
    font-size: 1.25rem;
    font-weight: 950;
}

.superadmin-topbar nav {
    align-items: center;
    display: flex;
    gap: 0.8rem;
}

.superadmin-topbar a,
.superadmin-topbar button,
.login-secondary-link {
    color: #0f766e;
    font-weight: 850;
    text-decoration: none;
}

.superadmin-auth-page .login-visual {
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.86), rgba(17, 24, 39, 0.88)),
        url("/assets/images/restaurants/tuning-burger-cover-8e8ae2ac389589b0c5488677.png") center / cover;
}

.login-secondary-link {
    display: inline-flex;
    margin-top: 1rem;
}

.superadmin-topbar {
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid #e1e5ee;
    min-height: 76px;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.superadmin-brand {
    align-items: center;
    color: #101827;
    display: inline-flex;
    gap: 0.7rem;
    text-decoration: none;
}

.superadmin-brand > span,
.superadmin-stat-grid article > span {
    align-items: center;
    background: #eef3ff;
    border-radius: 14px;
    color: #0f766e;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.superadmin-topbar button {
    align-items: center;
    background: transparent;
    border: 0;
    display: inline-flex;
    gap: 0.4rem;
    padding: 0;
}

.superadmin-container {
    display: grid;
    gap: 1.5rem;
    margin: 0 auto;
    max-width: 1440px;
    padding: 2.2rem;
}

.superadmin-hero {
    align-items: end;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.superadmin-hero h1 {
    font-size: clamp(2.8rem, 6vw, 5.8rem);
    font-weight: 950;
    line-height: 0.95;
    margin: 0;
}

.superadmin-hero p:not(.eyebrow) {
    color: #5b6070;
    font-size: 1.08rem;
    font-weight: 650;
    max-width: 720px;
}

.superadmin-primary-action {
    background: #0f766e;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    min-height: 48px;
    padding: 0.85rem 1.2rem;
    text-decoration: none;
}

.superadmin-stat-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.superadmin-alert {
    border-radius: 16px;
    font-weight: 900;
    margin: 0;
    padding: 1rem 1.2rem;
}

.superadmin-alert.is-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.superadmin-alert.is-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.superadmin-stat-grid article,
.superadmin-card {
    background: #fff;
    border: 1px solid #dfe4ee;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.06);
}

.superadmin-stat-grid article {
    border-radius: 20px;
    display: grid;
    gap: 0.55rem;
    padding: 1.25rem;
}

.superadmin-stat-grid small,
.superadmin-card-head p,
.superadmin-table-row small {
    color: #697083;
    font-weight: 750;
}

.superadmin-stat-grid strong {
    font-size: 2.35rem;
    font-weight: 950;
}

.superadmin-card {
    border-radius: 24px;
    overflow: hidden;
}

.superadmin-card-head {
    align-items: center;
    border-bottom: 1px solid #e8ecf3;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.4rem;
}

.superadmin-card-head h2 {
    font-size: 1.5rem;
    margin: 0;
}

.superadmin-card-head label {
    align-items: center;
    background: #f5f7fb;
    border: 1px solid #dfe4ee;
    border-radius: 14px;
    display: grid;
    gap: 0.6rem;
    grid-template-columns: 20px minmax(220px, 360px);
    min-height: 46px;
    padding: 0 0.9rem;
}

.superadmin-card-head input {
    background: transparent;
    border: 0;
    min-height: 42px;
    padding: 0;
}

.superadmin-card-head input:focus {
    outline: none;
}

.superadmin-create-form {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 1.4rem;
}

.superadmin-create-form label {
    display: grid;
    gap: 0.45rem;
}

.superadmin-create-form label span {
    color: #606779;
    font-size: 0.76rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.superadmin-create-form input,
.superadmin-create-form select {
    background: #fff;
    border: 1px solid #d7ddea;
    border-radius: 12px;
    color: #111827;
    font: inherit;
    min-height: 44px;
    padding: 0 0.8rem;
}

.superadmin-create-form input:focus,
.superadmin-create-form select:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
    outline: none;
}

.superadmin-create-form button {
    align-self: end;
    background: #0f766e;
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 950;
    min-height: 46px;
    padding: 0 1.1rem;
}

.superadmin-table {
    display: grid;
}

.superadmin-table-head,
.superadmin-table-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(220px, 1.25fr) minmax(190px, 0.9fr) 110px minmax(140px, 0.7fr) minmax(140px, 0.7fr) minmax(260px, 1fr);
}

.superadmin-table-head {
    background: #f1f4fa;
    color: #606779;
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    padding: 0.9rem 1.4rem;
    text-transform: uppercase;
}

.superadmin-table-row {
    align-items: center;
    border-bottom: 1px solid #edf0f5;
    padding: 1rem 1.4rem;
}

.superadmin-table-row:last-child {
    border-bottom: 0;
}

.superadmin-table-row > div {
    display: grid;
    gap: 0.22rem;
    min-width: 0;
}

.superadmin-table-row strong,
.superadmin-table-row span {
    overflow-wrap: anywhere;
}

.superadmin-status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 950;
    justify-self: start;
    padding: 0.35rem 0.65rem;
    text-transform: uppercase;
}

.superadmin-status.is-active {
    background: #dffbea;
    color: #087a3d;
}

.superadmin-status.is-paused {
    background: #fff3cd;
    color: #9a6700;
}

.superadmin-status.is-draft {
    background: #edf1f7;
    color: #596173;
}

.superadmin-status.is-archived {
    background: #ffe5e5;
    color: #bd2a2a;
}

.superadmin-row-actions {
    align-items: center;
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.superadmin-ai-name-form {
    align-items: end;
    display: grid;
    gap: 0.45rem;
    grid-template-columns: minmax(130px, 1fr) auto;
    width: 100%;
}

.superadmin-ai-name-form label {
    display: grid;
    gap: 0.25rem;
}

.superadmin-ai-name-form label span {
    color: #747b8f;
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.superadmin-ai-name-form input {
    border: 1px solid #d7ddea;
    border-radius: 999px;
    color: #111827;
    font: inherit;
    min-height: 36px;
    padding: 0 0.75rem;
    width: 100%;
}

.superadmin-ai-name-form button {
    align-items: center;
    background: #0f766e;
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 950;
    gap: 0.3rem;
    min-height: 36px;
    padding: 0 0.75rem;
}

.ai-settings-page .ai-helper-text {
    color: #6d7280;
    font-size: 0.86rem;
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.45;
    margin: -0.65rem 0 0;
    text-transform: none;
}

.superadmin-row-actions a {
    border: 1px solid #dfe4ee;
    border-radius: 999px;
    color: #0f766e;
    font-size: 0.82rem;
    font-weight: 900;
    padding: 0.4rem 0.65rem;
    text-decoration: none;
}

.superadmin-empty {
    color: #697083;
    font-weight: 800;
    padding: 2rem;
}

@media (max-width: 1180px) {
    .superadmin-hero,
    .superadmin-stat-grid,
    .superadmin-create-form {
        grid-template-columns: 1fr 1fr;
    }

    .superadmin-table-head {
        display: none;
    }

    .superadmin-table-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .superadmin-topbar,
    .superadmin-card-head {
        align-items: stretch;
        flex-direction: column;
    }

    .superadmin-hero,
    .superadmin-stat-grid,
    .superadmin-create-form,
    .superadmin-table-row {
        grid-template-columns: 1fr;
    }

    .superadmin-container {
        padding: 1rem;
    }

    .superadmin-card-head label {
        grid-template-columns: 20px minmax(0, 1fr);
    }
}
.menu-heatmap-container {
    display: grid;
    gap: 28px;
}

.menu-heatmap-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 0 4px;
}

.menu-heatmap-hero h1,
.superadmin-heatmap-page .superadmin-hero h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(42px, 6vw, 84px);
    line-height: .92;
    letter-spacing: 0;
}

.menu-heatmap-hero p,
.superadmin-heatmap-page .superadmin-hero p {
    max-width: 760px;
    margin: 12px 0 0;
    color: #5f6070;
    font-size: 18px;
    font-weight: 700;
}

.menu-heatmap-periods {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid #d8dbee;
    border-radius: 18px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 18px 44px rgba(42, 45, 80, .08);
}

.menu-heatmap-periods a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 14px;
    color: #5c6072;
    font-weight: 900;
    text-decoration: none;
}

.menu-heatmap-periods a.is-active,
.menu-heatmap-periods a:hover {
    background: #3526d8;
    color: #fff;
}

.menu-heatmap-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.menu-heatmap-stat-grid article,
.menu-heatmap-card,
.menu-heatmap-preview-card {
    border: 1px solid #d8dbee;
    border-radius: 20px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 22px 60px rgba(42, 45, 80, .07);
}

.menu-heatmap-stat-grid article {
    min-height: 178px;
    padding: 28px;
}

.menu-heatmap-stat-grid span {
    display: inline-grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 16px;
    background: #eef0ff;
    color: #3526d8;
}

.menu-heatmap-stat-grid small {
    display: block;
    margin-top: 28px;
    color: #666879;
    font-size: 13px;
    font-weight: 1000;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.menu-heatmap-stat-grid strong {
    display: block;
    margin-top: 8px;
    color: #08172d;
    font-size: 48px;
    line-height: 1;
    font-weight: 1000;
}

.menu-heatmap-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, .75fr);
    gap: 22px;
}

.menu-heatmap-preview-card,
.menu-heatmap-card {
    padding: 24px;
}

.menu-heatmap-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.menu-heatmap-card-head h2,
.menu-heatmap-card h2 {
    margin: 0;
    color: #10182b;
    font-size: 24px;
    line-height: 1.08;
    font-weight: 1000;
}

.menu-heatmap-card-head p,
.menu-heatmap-card p {
    margin: 6px 0 0;
    color: #686b7c;
    font-weight: 700;
}

.menu-heatmap-card-head a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #d8dbee;
    border-radius: 14px;
    color: #3526d8;
    font-weight: 1000;
    text-decoration: none;
    white-space: nowrap;
}

.menu-heatmap-device {
    position: relative;
    width: min(100%, 440px);
    max-height: 780px;
    margin: 0 auto;
    overflow: auto;
    border: 12px solid #111827;
    border-radius: 38px;
    background: #111;
    box-shadow: 0 32px 80px rgba(15, 23, 42, .28);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .28) transparent;
}

.menu-heatmap-page-layer {
    position: relative;
    width: 100%;
    min-height: 720px;
    aspect-ratio: var(--heatmap-page-ratio, 390 / 1400);
}

.menu-heatmap-device iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #111;
    pointer-events: none;
}

.menu-heatmap-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.heatmap-dot {
    position: absolute;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 148, 46, .95) 0 18%, rgba(255, 148, 46, .36) 35%, rgba(255, 148, 46, 0) 72%);
    mix-blend-mode: screen;
    filter: blur(.2px);
}

.heatmap-dot.is-product_open {
    background: radial-gradient(circle, rgba(255, 115, 52, .98) 0 18%, rgba(255, 115, 52, .4) 38%, rgba(255, 115, 52, 0) 74%);
}

.heatmap-dot.is-category_click {
    background: radial-gradient(circle, rgba(60, 38, 216, .98) 0 18%, rgba(60, 38, 216, .38) 38%, rgba(60, 38, 216, 0) 74%);
}

.heatmap-dot.is-search {
    background: radial-gradient(circle, rgba(4, 164, 149, .98) 0 18%, rgba(4, 164, 149, .38) 38%, rgba(4, 164, 149, 0) 74%);
}

.heatmap-dot.is-ai_open {
    background: radial-gradient(circle, rgba(236, 72, 153, .98) 0 18%, rgba(236, 72, 153, .38) 38%, rgba(236, 72, 153, 0) 74%);
}

.menu-heatmap-empty {
    text-align: center;
    color: #7a7d8d;
    font-weight: 800;
}

.menu-heatmap-side {
    display: grid;
    gap: 22px;
    align-content: start;
}

.menu-heatmap-bars {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.menu-heatmap-bars div {
    display: grid;
    gap: 8px;
}

.menu-heatmap-bars span {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #2f3344;
    font-size: 14px;
    font-weight: 900;
}

.menu-heatmap-bars strong {
    color: #08172d;
}

.menu-heatmap-bars em {
    display: block;
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(90deg, #3526d8, #03a58d);
}

.menu-heatmap-mini-chart {
    display: flex;
    align-items: end;
    gap: 10px;
    height: 180px;
    padding-top: 20px;
}

.menu-heatmap-mini-chart div {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 8px;
    flex: 1;
    height: 100%;
    min-width: 0;
}

.menu-heatmap-mini-chart span {
    position: relative;
    align-self: end;
    min-height: 8px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, #03a58d, #3526d8);
}

.menu-heatmap-mini-chart em {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    color: #08172d;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.menu-heatmap-mini-chart small {
    color: #737687;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.menu-heatmap-data-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.menu-heatmap-table {
    display: grid;
    gap: 0;
    margin-top: 18px;
}

.menu-heatmap-table > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px 86px;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eceef7;
}

.menu-heatmap-table > div:first-child {
    color: #737687;
    font-size: 12px;
    font-weight: 1000;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.menu-heatmap-table span {
    min-width: 0;
    color: #303346;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-heatmap-table strong {
    color: #08172d;
    font-weight: 1000;
}

.menu-heatmap-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.menu-heatmap-chip-list span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #d8dbee;
    border-radius: 999px;
    background: #f7f8ff;
    color: #303346;
    font-weight: 900;
}

.menu-heatmap-chip-list strong {
    color: #3526d8;
}

.superadmin-topbar nav a.is-active {
    color: #3526d8;
    font-weight: 1000;
}

.superadmin-heatmap-table .superadmin-table-head,
.superadmin-heatmap-table .superadmin-table-row {
    grid-template-columns: minmax(220px, 1.4fr) repeat(6, minmax(84px, .6fr)) minmax(110px, .6fr);
}

.superadmin-heatmap-table a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3526d8;
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 1180px) {
    .menu-heatmap-stat-grid,
    .menu-heatmap-data-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .menu-heatmap-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .menu-heatmap-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .menu-heatmap-periods {
        width: 100%;
        overflow-x: auto;
    }

    .menu-heatmap-stat-grid,
    .menu-heatmap-data-grid {
        grid-template-columns: 1fr;
    }

    .menu-heatmap-device {
        width: 100%;
        max-width: 430px;
        max-height: 660px;
        border-width: 8px;
        border-radius: 30px;
    }

    .menu-heatmap-page-layer {
        min-height: 660px;
    }

    .menu-heatmap-card-head {
        flex-direction: column;
    }
}

/* Corporate Precision admin redesign */
:root {
    --admin-bg: #f8f9ff;
    --admin-surface: #ffffff;
    --admin-surface-low: #eff4ff;
    --admin-surface-mid: #e6eeff;
    --admin-surface-high: #dee9fc;
    --admin-ink: #121c2a;
    --admin-muted: #414754;
    --admin-muted-2: #727785;
    --admin-line: #c1c6d6;
    --admin-primary: #005bbf;
    --admin-primary-strong: #1a73e8;
    --admin-primary-soft: #d8e2ff;
    --admin-secondary: #515f74;
    --admin-success: #007a5a;
    --admin-success-soft: #dff7ee;
    --admin-danger: #ba1a1a;
    --admin-danger-soft: #ffdad6;
    --admin-warning: #9e4300;
    --admin-warning-soft: #ffdbcb;
    --admin-radius-sm: 4px;
    --admin-radius-md: 6px;
    --admin-radius-lg: 8px;
    --admin-shadow-float: 0 4px 20px rgba(0, 0, 0, 0.05);
    --admin-font-display: "Hanken Grotesk", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --admin-font-body: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --admin-font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

body,
.dashboard-page,
.admin-auth-page,
.superadmin-page,
.superadmin-auth-page {
    background: var(--admin-bg) !important;
    color: var(--admin-ink) !important;
    font-family: var(--admin-font-body) !important;
}

h1,
h2,
h3,
.management-hero h1,
.landing-hero h1,
.ai-health-hero h1,
.ai-conversations-hero h1,
.superadmin-hero h1 {
    color: var(--admin-ink) !important;
    font-family: var(--admin-font-display) !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
}

.management-hero p,
.landing-hero p,
.ai-health-hero p,
.ai-conversations-hero p,
.superadmin-hero p,
.muted {
    color: var(--admin-muted) !important;
}

.admin-mainnav,
.admin-sidebar {
    align-items: center !important;
    background: rgba(248, 249, 255, 0.96) !important;
    border-bottom: 1px solid var(--admin-line) !important;
    box-shadow: none !important;
    display: flex !important;
    min-height: 64px !important;
    padding: 10px 32px !important;
}

.admin-sidebar-brand {
    flex: 0 0 auto !important;
}

.admin-sidebar-brand span {
    color: var(--admin-primary) !important;
    font-family: var(--admin-font-display) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

.admin-sidebar-brand strong,
.eyebrow,
.management-breadcrumb,
.ai-kicker,
.ai-field-label,
.landing-product-table th,
.product-table-head,
.ai-promo-head,
.superadmin-table-head,
.menu-heatmap-table thead,
.ai-health-event-head {
    color: var(--admin-muted-2) !important;
    font-family: var(--admin-font-mono) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
}

.admin-sidebar-nav {
    align-items: center !important;
    display: flex !important;
    flex: 1 1 auto !important;
    gap: 8px !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
    min-width: 0 !important;
    overflow: visible !important;
}

.admin-mainnav-actions {
    align-items: center !important;
    border-top: 0 !important;
    display: flex !important;
    flex: 0 0 auto !important;
    gap: 8px !important;
    margin: 0 0 0 16px !important;
    padding: 0 !important;
}

.admin-mainnav-actions .admin-sidebar-logout {
    display: block !important;
    margin: 0 !important;
}

.admin-mainnav-actions .admin-notifications {
    display: block !important;
    position: relative !important;
}

.admin-mainnav-actions .admin-notifications summary,
.admin-mainnav-actions .admin-sidebar-logout button {
    align-items: center !important;
    background: var(--admin-surface) !important;
    border: 1px solid var(--admin-line) !important;
    border-radius: var(--admin-radius-sm) !important;
    box-shadow: none !important;
    color: var(--admin-muted) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    height: 38px !important;
    justify-content: center !important;
    min-height: 38px !important;
    padding: 0 !important;
    width: 38px !important;
}

.admin-mainnav-actions .admin-notifications summary:hover,
.admin-mainnav-actions .admin-notifications[open] summary,
.admin-mainnav-actions .admin-sidebar-logout button:hover {
    border-color: var(--admin-primary) !important;
    color: var(--admin-primary) !important;
}

.admin-mainnav-actions .admin-notifications summary::-webkit-details-marker {
    display: none !important;
}

.admin-mainnav-actions .admin-notifications .lucide-icon,
.admin-mainnav-actions .admin-sidebar-logout .lucide-icon {
    height: 18px !important;
    width: 18px !important;
}

.admin-mainnav-actions .admin-notification-panel {
    left: auto !important;
    right: 0 !important;
    top: calc(100% + 10px) !important;
}

.admin-sidebar-nav a,
.admin-nav-group-toggle,
.admin-nav-subitem,
.admin-sidebar-footer a,
.admin-sidebar-logout button {
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: var(--admin-radius-sm) !important;
    color: var(--admin-muted) !important;
    font-family: var(--admin-font-body) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    min-height: 38px !important;
    padding: 8px 12px !important;
}

.admin-sidebar-nav a:hover,
.admin-nav-group-toggle:hover,
.admin-nav-group:focus-within > .admin-nav-group-toggle,
.admin-nav-subitem:hover {
    background: rgba(216, 226, 255, 0.55) !important;
    border-color: var(--admin-line) !important;
    color: var(--admin-primary) !important;
}

.admin-sidebar-nav a.is-active,
.admin-nav-subitem.is-active,
.admin-nav-group.is-active > .admin-nav-group-toggle {
    background: var(--admin-primary-soft) !important;
    border-color: var(--admin-primary) !important;
    box-shadow: none !important;
    color: var(--admin-primary) !important;
}

.admin-nav-icon,
.admin-nav-icon .lucide-icon {
    height: 18px !important;
    width: 18px !important;
}

.admin-nav-submenu {
    background: var(--admin-surface) !important;
    border: 1px solid var(--admin-line) !important;
    border-radius: var(--admin-radius-lg) !important;
    box-shadow: var(--admin-shadow-float) !important;
    display: grid !important;
    left: 0 !important;
    min-width: 238px !important;
    opacity: 0 !important;
    padding: 8px !important;
    pointer-events: none !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    transform: translateY(-4px) !important;
    transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease !important;
    visibility: hidden !important;
    z-index: 180 !important;
}

.admin-nav-group {
    position: relative !important;
}

.admin-nav-group::after {
    content: "" !important;
    display: block !important;
    height: 12px !important;
    left: 0 !important;
    position: absolute !important;
    right: 0 !important;
    top: 100% !important;
}

.admin-nav-group:hover .admin-nav-submenu,
.admin-nav-group:focus-within .admin-nav-submenu {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

.admin-nav-subitem {
    border-radius: var(--admin-radius-sm) !important;
    width: 100% !important;
}

.admin-nav-subitem.is-disabled {
    background: #f4f6fb !important;
    color: var(--admin-muted-2) !important;
}

.admin-topnav {
    background: var(--admin-bg) !important;
    border-bottom: 1px solid var(--admin-line) !important;
    box-shadow: none !important;
    min-height: 64px !important;
    padding: 10px 32px !important;
    top: 64px !important;
}

.admin-search,
.ai-qa-search,
.ai-session-search,
.product-search-field {
    background: var(--admin-surface-low) !important;
    border: 1px solid var(--admin-line) !important;
    border-radius: var(--admin-radius-sm) !important;
    box-shadow: none !important;
}

.admin-search input,
.ai-qa-search input,
.ai-session-search input,
.product-search-field input {
    color: var(--admin-ink) !important;
    font-family: var(--admin-font-body) !important;
    font-size: 14px !important;
}

.admin-toolbar-actions details > summary,
.admin-topbar-logout button,
.admin-avatar,
.icon-button,
.ai-row-action,
.ai-rule-trash {
    background: var(--admin-surface) !important;
    border: 1px solid var(--admin-line) !important;
    border-radius: var(--admin-radius-sm) !important;
    box-shadow: none !important;
    color: var(--admin-muted) !important;
}

.admin-toolbar-actions details > summary:hover,
.admin-topbar-logout button:hover,
.icon-button:hover,
.ai-row-action:hover {
    border-color: var(--admin-primary) !important;
    color: var(--admin-primary) !important;
}

.admin-notification-badge {
    background: var(--admin-primary) !important;
    color: #fff !important;
}

.admin-notification-panel,
.modal-panel,
.ai-logic-sheet,
.translation-overlay-card {
    background: var(--admin-surface) !important;
    border: 1px solid var(--admin-line) !important;
    border-radius: var(--admin-radius-lg) !important;
    box-shadow: var(--admin-shadow-float) !important;
}

.dashboard-container,
.admin-management-page,
.ai-admin-container,
.ai-health-container,
.ai-conversations-container,
.menu-heatmap-container,
.superadmin-container {
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
}

.management-hero,
.landing-hero,
.ai-health-hero,
.ai-conversations-hero,
.superadmin-hero,
.menu-heatmap-hero,
.profile-hero {
    gap: 16px !important;
    margin-bottom: 24px !important;
}

.dashboard-container,
.admin-management-page {
    padding-top: 32px !important;
    padding-bottom: 48px !important;
}

.management-hero h1,
.landing-hero h1,
.ai-health-hero h1,
.ai-conversations-hero h1,
.superadmin-hero h1 {
    font-size: clamp(32px, 4vw, 48px) !important;
    line-height: 1.12 !important;
    margin: 0 !important;
}

.admin-card,
.landing-stat-card,
.landing-table-card,
.landing-questions-card,
.landing-quick-management,
.management-editor-card,
.management-list-card,
.management-tip-card,
.profile-card,
.ai-config-card,
.ai-instructions-card,
.ai-knowledge-card,
.ai-rule-card,
.ai-qa-editor,
.ai-promo-section,
.ai-documents-card,
.ai-lead-card,
.ai-name-card,
.ai-health-card,
.ai-health-card-half,
.ai-conversation-shell,
.ai-conversation-detail,
.menu-heatmap-card,
.menu-heatmap-preview-card,
.superadmin-card,
.panel,
.product-filter-panel,
.product-table-card {
    background: var(--admin-surface) !important;
    border: 1px solid var(--admin-line) !important;
    border-radius: var(--admin-radius-lg) !important;
    box-shadow: none !important;
    color: var(--admin-ink) !important;
}

.landing-stat-card,
.management-editor-card,
.management-list-card,
.profile-card,
.ai-config-card,
.ai-knowledge-card,
.ai-health-card,
.menu-heatmap-card,
.superadmin-card {
    padding: 24px !important;
}

.form-grid,
.grid-form,
.profile-grid,
.profile-lower-grid,
.ai-knowledge-split,
.ai-knowledge-stack,
.ai-studio-layout,
.ai-health-grid,
.ai-health-kpi-grid,
.menu-heatmap-stat-grid,
.menu-heatmap-data-grid,
.superadmin-stat-grid,
.landing-stat-grid,
.product-summary-grid {
    gap: 24px !important;
}

.landing-stat-card:hover,
.management-list-card:hover,
.ai-rule-card:hover,
.ai-qa-row:hover,
.ai-promo-row:hover,
.superadmin-table-row:hover,
.product-table-row:hover,
.landing-product-row:hover {
    background: rgba(216, 226, 255, 0.42) !important;
}

.landing-stat-icon,
.ai-rule-card-icon,
.ai-health-card-head .lucide-icon,
.mode-icon {
    background: var(--admin-surface-low) !important;
    border-radius: var(--admin-radius-md) !important;
    color: var(--admin-primary) !important;
}

.landing-stat-card strong,
.ai-health-card strong,
.superadmin-card strong,
.menu-heatmap-card strong {
    color: var(--admin-ink) !important;
}

.landing-stat-card .landing-stat-value,
.ai-health-score strong,
.ai-health-card b,
.superadmin-stat-grid strong {
    color: var(--admin-ink) !important;
    font-family: var(--admin-font-display) !important;
    font-weight: 700 !important;
}

.landing-stat-breakdown > *,
.product-summary-grid > *,
.ai-health-config-row,
.menu-heatmap-chip-list span {
    background: var(--admin-surface-low) !important;
    border: 1px solid var(--admin-line) !important;
    border-radius: var(--admin-radius-sm) !important;
}

.landing-primary-action,
.superadmin-primary-action,
.ai-add-product,
.profile-run-translation,
.profile-save-bar button[type="submit"],
.ai-save-bar button[type="submit"],
.ai-settings-commandbar .landing-primary-action,
button[type="submit"]:not(.admin-topbar-logout button):not(.admin-sidebar-logout button),
.btn-primary {
    background: var(--admin-primary) !important;
    border: 1px solid var(--admin-primary) !important;
    border-radius: var(--admin-radius-sm) !important;
    box-shadow: none !important;
    color: var(--admin-on-primary, #fff) !important;
    font-family: var(--admin-font-body) !important;
    font-weight: 700 !important;
}

.landing-secondary-action,
.btn-light,
.ai-filter-button,
.profile-apply-hours,
.profile-add-language,
.profile-remove-language,
.profile-save-bar a,
.ai-save-bar button[type="button"],
.ai-logic-explain-button {
    background: var(--admin-surface) !important;
    border: 1px solid var(--admin-line) !important;
    border-radius: var(--admin-radius-sm) !important;
    box-shadow: none !important;
    color: var(--admin-muted) !important;
    font-family: var(--admin-font-body) !important;
    font-weight: 650 !important;
}

.landing-primary-action:hover,
.superadmin-primary-action:hover,
.ai-add-product:hover,
button[type="submit"]:not(.admin-topbar-logout button):not(.admin-sidebar-logout button):hover {
    background: var(--admin-primary-strong) !important;
    border-color: var(--admin-primary-strong) !important;
}

.landing-secondary-action:hover,
.btn-light:hover,
.ai-filter-button:hover,
.profile-add-language:hover,
.ai-logic-explain-button:hover {
    border-color: var(--admin-primary) !important;
    color: var(--admin-primary) !important;
}

input,
select,
textarea,
.ai-priority-input,
.profile-hours-editor input {
    background: var(--admin-surface) !important;
    border: 1px solid var(--admin-line) !important;
    border-radius: var(--admin-radius-sm) !important;
    box-shadow: none !important;
    color: var(--admin-ink) !important;
    font-family: var(--admin-font-body) !important;
}

input:focus,
select:focus,
textarea:focus,
.ai-priority-input:focus {
    border-color: var(--admin-primary) !important;
    box-shadow: 0 0 0 2px rgba(0, 91, 191, 0.2) !important;
    outline: 0 !important;
}

.alert,
.status-message,
.superadmin-alert {
    border-radius: var(--admin-radius-sm) !important;
    box-shadow: none !important;
}

.alert-success,
.is-success,
.ai-active-pill,
.ai-health-status.is-good,
.superadmin-status.is-active,
.ai-promo-status {
    background: var(--admin-success-soft) !important;
    color: var(--admin-success) !important;
}

.alert-danger,
.is-danger,
.ai-health-status.is-critical {
    background: var(--admin-danger-soft) !important;
    color: var(--admin-danger) !important;
}

.is-warning,
.ai-health-status.is-warning {
    background: var(--admin-warning-soft) !important;
    color: var(--admin-warning) !important;
}

.landing-product-table,
.product-table-card,
.ai-health-event-table,
.superadmin-table,
.menu-heatmap-table {
    border-collapse: collapse !important;
    overflow: hidden !important;
}

.product-table-head,
.product-table-row,
.landing-product-row,
.ai-health-event-head,
.ai-health-event-row,
.superadmin-table-head,
.superadmin-table-row,
.ai-promo-head,
.ai-promo-row {
    border-bottom: 1px solid var(--admin-line) !important;
}

.product-table-head,
.landing-product-table thead,
.ai-health-event-head,
.superadmin-table-head,
.ai-promo-head {
    background: var(--admin-surface-low) !important;
    color: var(--admin-muted-2) !important;
}

.product-table-row,
.landing-product-row,
.ai-health-event-row,
.superadmin-table-row,
.ai-promo-row {
    background: var(--admin-surface) !important;
}

.ai-message-bubble,
.ai-session-panel,
.ai-session-list,
.ai-conversation-placeholder,
.ai-qa-row,
.ai-document-row,
.profile-language-row,
.category-admin-list > *,
.restaurant-list > * {
    background: var(--admin-surface) !important;
    border: 1px solid var(--admin-line) !important;
    border-radius: var(--admin-radius-md) !important;
    box-shadow: none !important;
}

.ai-message-bubble.is-guest {
    background: var(--admin-primary-soft) !important;
    border-color: var(--admin-primary) !important;
    color: var(--admin-ink) !important;
}

.assistant-mode-card {
    background: var(--admin-surface) !important;
    border: 1px solid var(--admin-line) !important;
    border-radius: var(--admin-radius-md) !important;
    box-shadow: none !important;
    position: relative !important;
}

.assistant-mode-card.is-active,
.assistant-mode-card:has(input:checked) {
    background: linear-gradient(180deg, rgba(216, 226, 255, 0.92), rgba(238, 241, 255, 0.98)) !important;
    border-color: var(--admin-primary) !important;
    box-shadow: inset 0 0 0 1px rgba(0, 102, 204, 0.18), 0 10px 24px rgba(0, 102, 204, 0.10) !important;
}

.assistant-mode-card:has(input:checked)::after {
    background: var(--admin-primary) !important;
    border-radius: 999px !important;
    color: var(--admin-on-primary, #fff) !important;
    content: "Aktív mód";
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    padding: 4px 8px !important;
    position: absolute !important;
    right: 10px !important;
    text-transform: uppercase !important;
    top: 10px !important;
}

.assistant-mode-card:has(input:checked) .mode-icon {
    background: var(--admin-primary) !important;
    color: var(--admin-on-primary, #fff) !important;
}

.assistant-mode-card:has(input:checked) strong {
    color: var(--admin-primary) !important;
}

.assistant-mode-card:focus-within {
    border-color: var(--admin-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.16) !important;
}

.ai-rule-card {
    border-left-width: 4px !important;
}

.ai-rule-card.is-active,
.ai-promo-row.is-promoted {
    border-color: var(--admin-primary) !important;
}

.ai-promo-row.is-promoted {
    background: rgba(216, 226, 255, 0.52) !important;
}

.ai-save-bar,
.profile-save-bar {
    background: rgba(248, 249, 255, 0.94) !important;
    border-top: 1px solid var(--admin-line) !important;
    box-shadow: none !important;
}

.login-card,
.auth-panel {
    background: var(--admin-surface) !important;
    border: 1px solid var(--admin-line) !important;
    border-radius: var(--admin-radius-lg) !important;
    box-shadow: var(--admin-shadow-float) !important;
}

.superadmin-topbar {
    background: var(--admin-surface) !important;
    border-bottom: 1px solid var(--admin-line) !important;
    box-shadow: none !important;
}

.superadmin-topbar nav a,
.superadmin-topbar a {
    color: var(--admin-muted) !important;
}

.superadmin-topbar nav a.is-active {
    color: var(--admin-primary) !important;
}

.menu-heatmap-device {
    border-color: var(--admin-ink) !important;
    box-shadow: none !important;
}

.heatmap-dot {
    box-shadow: 0 0 18px rgba(0, 91, 191, 0.28) !important;
}

@media (max-width: 1180px) {
    .admin-mainnav,
    .admin-sidebar,
    .admin-topnav {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .dashboard-container,
    .admin-management-page,
    .ai-admin-container,
    .ai-health-container,
    .ai-conversations-container,
    .menu-heatmap-container,
    .superadmin-container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

@media (max-width: 760px) {
    .admin-mainnav,
    .admin-sidebar,
    .admin-topnav {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .admin-topnav {
        top: 104px !important;
    }

    .admin-sidebar-nav {
        overflow-x: auto !important;
        padding-bottom: 4px !important;
    }

    .admin-nav-submenu {
        left: auto !important;
        right: 0 !important;
        min-width: 230px !important;
    }

    .dashboard-container,
    .admin-management-page,
    .ai-admin-container,
    .ai-health-container,
    .ai-conversations-container,
    .menu-heatmap-container,
    .superadmin-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .management-hero h1,
    .landing-hero h1,
    .ai-health-hero h1,
    .ai-conversations-hero h1,
    .superadmin-hero h1 {
        font-size: 24px !important;
        line-height: 32px !important;
    }
}

/* Corporate Precision scope for every admin and superadmin page */
.admin-corporate-page {
    --brand: var(--admin-primary);
    --danger: var(--admin-danger);
    background: var(--admin-bg) !important;
    color: var(--admin-ink) !important;
    font-family: var(--admin-font-body) !important;
}

.admin-corporate-page .topbar,
.admin-corporate-page .admin-shell .topbar {
    background: var(--admin-surface) !important;
    border-bottom: 1px solid var(--admin-line) !important;
    box-shadow: none !important;
    padding: 24px 32px !important;
}

.admin-corporate-page .admin-layout {
    display: grid !important;
    gap: 24px !important;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr) !important;
    margin: 0 auto !important;
    max-width: 1440px !important;
    padding: 32px !important;
}

.admin-corporate-page .panel,
.admin-corporate-page .auth-panel,
.admin-corporate-page .form-section,
.admin-corporate-page .translation-panel,
.admin-corporate-page .category-management-row,
.admin-corporate-page .product-table-row,
.admin-corporate-page .check-row,
.admin-corporate-page .management-stat-grid article,
.admin-corporate-page .product-summary-grid article,
.admin-corporate-page .profile-language-row,
.admin-corporate-page .profile-map-preview,
.admin-corporate-page .ai-training-context,
.admin-corporate-page .ai-config-body,
.admin-corporate-page .ai-rule-content,
.admin-corporate-page .ai-promo-row,
.admin-corporate-page .ai-health-event-row,
.admin-corporate-page .superadmin-table-row {
    background: var(--admin-surface) !important;
    border: 1px solid var(--admin-line) !important;
    border-radius: var(--admin-radius-lg) !important;
    box-shadow: none !important;
}

.admin-corporate-page .management-stat-grid article,
.admin-corporate-page .product-summary-grid article {
    min-height: 132px !important;
    padding: 24px !important;
}

.admin-corporate-page.ai-settings-page .ai-rule-card {
    align-items: start !important;
    gap: 18px !important;
    grid-template-columns: minmax(0, 1fr) minmax(320px, auto) !important;
    padding: 20px !important;
}

.admin-corporate-page.ai-settings-page .ai-rule-card-main {
    align-items: end !important;
    gap: 16px !important;
    grid-template-columns: 46px minmax(0, 1fr) !important;
}

.admin-corporate-page.ai-settings-page .ai-rule-card-icon {
    align-self: end !important;
    height: 46px !important;
    width: 46px !important;
}

.admin-corporate-page.ai-settings-page .ai-rule-title-fields {
    gap: 14px !important;
    grid-template-columns: minmax(280px, 1fr) minmax(180px, 0.34fr) !important;
}

.admin-corporate-page.ai-settings-page .ai-rule-card-side {
    align-items: end !important;
    gap: 14px !important;
    grid-template-columns: 110px 160px 40px !important;
}

.admin-corporate-page.ai-settings-page .ai-rule-trash {
    align-items: center !important;
    align-self: end !important;
    background: var(--admin-surface) !important;
    border: 1px solid var(--admin-line) !important;
    border-radius: var(--admin-radius-sm) !important;
    box-shadow: none !important;
    color: var(--admin-muted) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    height: 42px !important;
    justify-content: center !important;
    padding: 0 !important;
    width: 40px !important;
}

.admin-corporate-page.ai-settings-page .ai-rule-trash:hover,
.admin-corporate-page.ai-settings-page .ai-rule-trash:focus-visible {
    background: #fff0ed !important;
    border-color: #f4b8ad !important;
    color: #b42318 !important;
    outline: none !important;
}

.admin-corporate-page.ai-settings-page .ai-rule-card label {
    display: grid !important;
    gap: 8px !important;
}

.admin-corporate-page.ai-settings-page .ai-rule-content {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    grid-column: 1 / -1 !important;
    margin-top: 2px !important;
    padding: 0 !important;
}

.admin-corporate-page.ai-settings-page .ai-rule-content textarea {
    background: var(--admin-surface-low) !important;
    border: 1px solid var(--admin-line) !important;
    border-radius: var(--admin-radius-md) !important;
    color: var(--admin-ink) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.55 !important;
    min-height: 120px !important;
    padding: 18px 20px !important;
}

@media (max-width: 1180px) {
    .admin-corporate-page.ai-settings-page .ai-rule-card,
    .admin-corporate-page.ai-settings-page .ai-rule-card-main,
    .admin-corporate-page.ai-settings-page .ai-rule-title-fields,
    .admin-corporate-page.ai-settings-page .ai-rule-card-side {
        grid-template-columns: 1fr !important;
    }

    .admin-corporate-page.ai-settings-page .ai-rule-card-icon {
        align-self: start !important;
    }
}

.admin-corporate-page .management-stat-grid article span,
.admin-corporate-page .product-summary-grid article small,
.admin-corporate-page .category-row-meta span,
.admin-corporate-page .product-title-cell p,
.admin-corporate-page .translation-panel small,
.admin-corporate-page .ai-helper-text {
    color: var(--admin-muted-2) !important;
}

.admin-corporate-page .management-stat-grid article strong,
.admin-corporate-page .product-summary-grid article strong,
.admin-corporate-page .category-row-main h3,
.admin-corporate-page .product-title-cell h3,
.admin-corporate-page .product-table-price,
.admin-corporate-page .price-inline,
.admin-corporate-page .price-amount {
    color: var(--admin-ink) !important;
    font-family: var(--admin-font-display) !important;
    font-weight: 700 !important;
}

.admin-corporate-page .category-management-row,
.admin-corporate-page .product-table-row {
    align-items: center !important;
    display: grid !important;
    gap: 16px !important;
    min-height: 88px !important;
    padding: 16px 24px !important;
}

.admin-corporate-page .category-management-row {
    grid-template-columns: 28px 56px minmax(0, 1fr) minmax(140px, 0.35fr) auto !important;
}

.admin-corporate-page .product-table-row {
    grid-template-columns: minmax(280px, 1.35fr) minmax(150px, 0.55fr) minmax(110px, 0.35fr) minmax(130px, 0.45fr) auto !important;
}

.admin-corporate-page .category-row-thumb,
.admin-corporate-page .product-table-thumb,
.admin-corporate-page .landing-product-thumb,
.admin-corporate-page .ai-product-thumb {
    background-color: var(--admin-surface-mid) !important;
    border: 1px solid var(--admin-line) !important;
    border-radius: var(--admin-radius-md) !important;
    box-shadow: none !important;
}

.admin-corporate-page .category-drag-handle {
    color: var(--admin-muted-2) !important;
    font-family: var(--admin-font-mono) !important;
}

.admin-corporate-page .category-row-main em,
.admin-corporate-page .product-category-pill,
.admin-corporate-page .product-status-toggle,
.admin-corporate-page .ai-promo-status,
.admin-corporate-page .superadmin-status,
.admin-corporate-page .ai-active-pill {
    background: var(--admin-primary-soft) !important;
    border: 1px solid rgba(0, 91, 191, 0.16) !important;
    border-radius: var(--admin-radius-sm) !important;
    color: var(--admin-primary) !important;
    font-family: var(--admin-font-mono) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
}

.admin-corporate-page .product-status-toggle {
    align-items: center !important;
    display: inline-flex !important;
    gap: 8px !important;
    min-height: 32px !important;
    padding: 0 10px !important;
}

.admin-corporate-page .product-status-toggle i {
    background: var(--admin-muted-2) !important;
    border-radius: 999px !important;
    display: inline-block !important;
    height: 8px !important;
    width: 8px !important;
}

.admin-corporate-page .product-status-toggle.is-active i {
    background: var(--admin-success) !important;
}

.admin-corporate-page .category-actions {
    align-items: center !important;
    display: inline-flex !important;
    gap: 8px !important;
    justify-content: flex-end !important;
}

.admin-corporate-page .edit-category,
.admin-corporate-page .edit-product,
.admin-corporate-page .btn-danger,
.admin-corporate-page .move-up,
.admin-corporate-page .move-down {
    align-items: center !important;
    background: var(--admin-surface) !important;
    border: 1px solid var(--admin-line) !important;
    border-radius: var(--admin-radius-sm) !important;
    box-shadow: none !important;
    color: var(--admin-muted) !important;
    display: inline-flex !important;
    font-family: var(--admin-font-body) !important;
    font-weight: 700 !important;
    height: 36px !important;
    justify-content: center !important;
    min-width: 36px !important;
    padding: 0 10px !important;
}

.admin-corporate-page .edit-category:hover,
.admin-corporate-page .edit-product:hover,
.admin-corporate-page .move-up:hover,
.admin-corporate-page .move-down:hover {
    border-color: var(--admin-primary) !important;
    color: var(--admin-primary) !important;
}

.admin-corporate-page .btn-danger,
.admin-corporate-page .delete-category,
.admin-corporate-page .delete-product {
    color: var(--admin-danger) !important;
}

.admin-corporate-page .btn-danger:hover,
.admin-corporate-page .delete-category:hover,
.admin-corporate-page .delete-product:hover {
    background: var(--admin-danger-soft) !important;
    border-color: var(--admin-danger) !important;
}

.admin-corporate-page .translation-grid {
    display: grid !important;
    gap: 16px !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
}

.admin-corporate-page .translation-panel,
.admin-corporate-page .form-section {
    display: grid !important;
    gap: 16px !important;
    padding: 20px !important;
}

.admin-corporate-page .translation-panel h3,
.admin-corporate-page .form-section h2,
.admin-corporate-page .card-heading h2 {
    color: var(--admin-ink) !important;
    font-family: var(--admin-font-display) !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    margin: 0 !important;
}

.admin-corporate-page label {
    color: var(--admin-muted) !important;
    display: grid !important;
    font-family: var(--admin-font-mono) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    gap: 8px !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
}

.admin-corporate-page label input,
.admin-corporate-page label select,
.admin-corporate-page label textarea {
    font-family: var(--admin-font-body) !important;
    font-size: 14px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.admin-corporate-page .checkbox-grid {
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
}

.admin-corporate-page .check-row {
    align-items: center !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    min-height: 42px !important;
    padding: 10px 12px !important;
    text-transform: none !important;
}

.admin-corporate-page .modal-backdrop {
    background: rgba(18, 28, 42, 0.42) !important;
    backdrop-filter: blur(4px) !important;
}

.admin-corporate-page .modal-panel {
    max-width: min(980px, calc(100vw - 32px)) !important;
    padding: 24px !important;
}

.admin-corporate-page .product-image-field {
    align-content: start !important;
}

.admin-corporate-page .product-image-preview {
    align-items: center;
    aspect-ratio: 16 / 10;
    background-color: var(--admin-bg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border: 1px solid var(--admin-border);
    display: flex;
    justify-content: center;
    max-width: 320px;
    overflow: hidden;
    width: 100%;
}

.admin-corporate-page .product-image-preview span {
    color: var(--admin-muted);
    font-family: var(--admin-font-body);
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
}

.admin-corporate-page .product-image-field small {
    color: var(--admin-muted);
    font-family: var(--admin-font-body);
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
}

.admin-corporate-page .profile-save-bar,
.admin-corporate-page .ai-save-bar {
    backdrop-filter: blur(10px) !important;
}

.admin-corporate-page .login-wrap {
    background: var(--admin-bg) !important;
}

.admin-corporate-page .login-visual {
    border-radius: 0 !important;
    box-shadow: none !important;
}

.admin-corporate-page .login-panel {
    background: var(--admin-bg) !important;
}

.admin-corporate-page .login-card h1,
.admin-corporate-page .superadmin-hero h1 {
    font-family: var(--admin-font-display) !important;
    letter-spacing: -0.02em !important;
}

.admin-corporate-page .ai-settings-commandbar,
.admin-corporate-page .ai-config-header,
.admin-corporate-page .ai-promo-section-header,
.admin-corporate-page .ai-qa-editor-head,
.admin-corporate-page .ai-documents-head,
.admin-corporate-page .profile-card-heading,
.admin-corporate-page .landing-card-heading {
    border-bottom-color: var(--admin-line) !important;
}

.admin-corporate-page .ai-studio-layout,
.admin-corporate-page .ai-knowledge-stack,
.admin-corporate-page .profile-grid,
.admin-corporate-page .profile-lower-grid,
.admin-corporate-page .landing-content-grid,
.admin-corporate-page .product-open-analytics {
    align-items: start !important;
}

@media (max-width: 980px) {
    .admin-corporate-page .admin-layout,
    .admin-corporate-page .category-management-row,
    .admin-corporate-page .product-table-row {
        grid-template-columns: 1fr !important;
    }

    .admin-corporate-page .category-actions {
        justify-content: flex-start !important;
    }
}

/* Menu heatmap corporate page refinements */
.admin-corporate-page.menu-heatmap-page .menu-heatmap-container {
    display: grid !important;
    gap: 24px !important;
    max-width: 1440px !important;
    overflow-x: hidden !important;
    width: min(100%, 1440px) !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-container > *,
.admin-corporate-page.menu-heatmap-page .menu-heatmap-preview-card > *,
.admin-corporate-page.menu-heatmap-page .menu-heatmap-card > * {
    max-width: 100% !important;
    min-width: 0 !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-hero {
    align-items: flex-start !important;
    border-bottom: 1px solid var(--admin-line) !important;
    display: grid !important;
    gap: 16px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    margin-bottom: 0 !important;
    padding: 0 0 24px !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-hero h1 {
    color: var(--admin-ink) !important;
    font-family: var(--admin-font-display) !important;
    font-size: clamp(32px, 4vw, 48px) !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    line-height: 56px !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-hero p:not(.eyebrow) {
    color: var(--admin-muted) !important;
    font-family: var(--admin-font-body) !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 24px !important;
    margin-top: 8px !important;
    max-width: 720px !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-periods {
    align-self: start !important;
    background: var(--admin-surface) !important;
    border: 1px solid var(--admin-line) !important;
    border-radius: var(--admin-radius-sm) !important;
    box-shadow: none !important;
    display: inline-flex !important;
    gap: 4px !important;
    padding: 4px !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-periods a {
    border-radius: var(--admin-radius-sm) !important;
    color: var(--admin-muted) !important;
    font-family: var(--admin-font-body) !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    min-height: 36px !important;
    padding: 0 14px !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-periods a.is-active,
.admin-corporate-page.menu-heatmap-page .menu-heatmap-periods a:hover {
    background: var(--admin-primary) !important;
    color: #fff !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-stat-grid {
    display: grid !important;
    gap: 16px !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-stat-grid article {
    background: var(--admin-surface) !important;
    border: 1px solid var(--admin-line) !important;
    border-radius: var(--admin-radius-lg) !important;
    box-shadow: none !important;
    min-height: 136px !important;
    padding: 20px !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-stat-grid article > span {
    background: var(--admin-surface-low) !important;
    border-radius: var(--admin-radius-md) !important;
    color: var(--admin-primary) !important;
    height: 40px !important;
    width: 40px !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-stat-grid article > span .lucide-icon {
    height: 20px !important;
    width: 20px !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-stat-grid small {
    color: var(--admin-muted-2) !important;
    font-family: var(--admin-font-mono) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.05em !important;
    margin-top: 18px !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-stat-grid strong {
    color: var(--admin-ink) !important;
    font-family: var(--admin-font-display) !important;
    font-size: 36px !important;
    font-weight: 700 !important;
    margin-top: 6px !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-layout {
    align-items: start !important;
    display: grid !important;
    gap: 24px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    min-width: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-preview-card,
.admin-corporate-page.menu-heatmap-page .menu-heatmap-card {
    background: var(--admin-surface) !important;
    border: 1px solid var(--admin-line) !important;
    border-radius: var(--admin-radius-lg) !important;
    box-shadow: none !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 24px !important;
    width: 100% !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-card-head {
    border-bottom: 1px solid var(--admin-line) !important;
    display: grid !important;
    gap: 16px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    margin: -24px -24px 24px !important;
    padding: 24px !important;
    min-width: 0 !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-card-head h2,
.admin-corporate-page.menu-heatmap-page .menu-heatmap-card h2 {
    color: var(--admin-ink) !important;
    font-family: var(--admin-font-display) !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    line-height: 28px !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-card-head p,
.admin-corporate-page.menu-heatmap-page .menu-heatmap-card p {
    color: var(--admin-muted) !important;
    font-family: var(--admin-font-body) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 20px !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-card-head a {
    background: var(--admin-surface) !important;
    border: 1px solid var(--admin-line) !important;
    border-radius: var(--admin-radius-sm) !important;
    color: var(--admin-primary) !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    min-height: 36px !important;
    white-space: normal !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-device {
    background: #0d1420 !important;
    border: 10px solid #121c2a !important;
    border-radius: 28px !important;
    box-shadow: none !important;
    margin: 0 auto !important;
    max-height: 720px !important;
    max-width: min(100%, 390px) !important;
    min-width: 0 !important;
    overflow: auto !important;
    width: 100% !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-page-layer {
    aspect-ratio: var(--heatmap-page-ratio, 390 / 1400) !important;
    background: #101720 !important;
    min-height: 0 !important;
    position: relative !important;
    width: 100% !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-device iframe,
.admin-corporate-page.menu-heatmap-page .menu-heatmap-overlay {
    height: 100% !important;
    inset: 0 !important;
    position: absolute !important;
    width: 100% !important;
}

.admin-corporate-page.menu-heatmap-page .heatmap-dot {
    height: 26px !important;
    margin: -13px 0 0 -13px !important;
    width: 26px !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-empty {
    background: var(--admin-surface-low) !important;
    border: 1px solid var(--admin-line) !important;
    border-radius: var(--admin-radius-sm) !important;
    color: var(--admin-muted) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin: 16px 0 0 !important;
    padding: 12px 14px !important;
    text-align: left !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-side {
    display: grid !important;
    gap: 24px !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)) !important;
    min-width: 0 !important;
    width: 100% !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-bars span {
    color: var(--admin-muted) !important;
    font-weight: 650 !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-bars em,
.admin-corporate-page.menu-heatmap-page .menu-heatmap-mini-chart span {
    background: var(--admin-primary) !important;
    border-radius: var(--admin-radius-sm) !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-mini-chart {
    height: 160px !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-data-grid {
    display: grid !important;
    gap: 24px !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)) !important;
    min-width: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-table > div {
    border-bottom: 1px solid var(--admin-line) !important;
    grid-template-columns: minmax(0, 1fr) 72px 72px !important;
    min-width: 0 !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-table > div:first-child {
    background: var(--admin-surface-low) !important;
    border-radius: var(--admin-radius-sm) !important;
    color: var(--admin-muted-2) !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-table span {
    color: var(--admin-muted) !important;
    font-weight: 500 !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-table strong,
.admin-corporate-page.menu-heatmap-page .menu-heatmap-chip-list strong {
    color: var(--admin-primary) !important;
}

.admin-corporate-page.menu-heatmap-page .menu-heatmap-chip-list span {
    background: var(--admin-surface-low) !important;
    border: 1px solid var(--admin-line) !important;
    border-radius: var(--admin-radius-sm) !important;
    color: var(--admin-muted) !important;
    font-weight: 650 !important;
    min-height: 36px !important;
}

@media (max-width: 1180px) {
    .admin-corporate-page.menu-heatmap-page .menu-heatmap-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .admin-corporate-page.menu-heatmap-page .menu-heatmap-layout,
    .admin-corporate-page.menu-heatmap-page .menu-heatmap-data-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 760px) {
    .admin-corporate-page.menu-heatmap-page .menu-heatmap-hero,
    .admin-corporate-page.menu-heatmap-page .menu-heatmap-card-head {
        grid-template-columns: 1fr !important;
    }

    .admin-corporate-page.menu-heatmap-page .menu-heatmap-hero h1 {
        font-size: 24px !important;
        line-height: 32px !important;
    }

    .admin-corporate-page.menu-heatmap-page .menu-heatmap-stat-grid {
        grid-template-columns: 1fr !important;
    }

    .admin-corporate-page.menu-heatmap-page .menu-heatmap-device {
        border-width: 8px !important;
        max-height: 620px !important;
        max-width: 390px !important;
    }
}

.admin-corporate-page.ai-settings-page .ai-qa-editor {
    gap: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
}

.admin-corporate-page.ai-settings-page .ai-qa-editor-head {
    align-items: center !important;
    display: flex !important;
    gap: 18px !important;
    justify-content: space-between !important;
    margin: 0 !important;
    padding: 28px 32px !important;
}

.admin-corporate-page.ai-settings-page .ai-qa-editor-head h3 {
    color: var(--admin-ink) !important;
    font-family: var(--admin-font-display) !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    margin: 0 !important;
}

.admin-corporate-page.ai-settings-page .ai-qa-editor-head a {
    align-items: center !important;
    border: 1px solid var(--admin-line) !important;
    border-radius: var(--admin-radius-sm) !important;
    color: var(--admin-primary) !important;
    display: inline-flex !important;
    height: 42px !important;
    justify-content: center !important;
    width: 42px !important;
}

/* Collapsible AI knowledge rules */
.admin-corporate-page.ai-settings-page .ai-knowledge-actions button {
    background: transparent !important;
    border: 0 !important;
    color: var(--admin-primary) !important;
    cursor: pointer !important;
    font: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 8px 0 !important;
}

.admin-corporate-page.ai-settings-page .ai-rule-card {
    display: block !important;
    gap: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
}

.admin-corporate-page.ai-settings-page .ai-rule-card.is-new-rule {
    opacity: 1 !important;
}

.admin-corporate-page.ai-settings-page .ai-rule-toggle {
    align-items: center !important;
    background: transparent !important;
    border: 0 !important;
    color: var(--admin-ink) !important;
    cursor: pointer !important;
    display: grid !important;
    gap: 16px !important;
    grid-template-columns: 40px minmax(0, 1fr) auto 24px !important;
    min-height: 76px !important;
    padding: 16px 20px !important;
    text-align: left !important;
    width: 100% !important;
}

.admin-corporate-page.ai-settings-page .ai-rule-toggle:hover {
    background: var(--admin-surface-low) !important;
}

.admin-corporate-page.ai-settings-page .ai-rule-summary-title {
    font-family: var(--admin-font-body) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.admin-corporate-page.ai-settings-page .ai-rule-summary-priority {
    align-items: flex-end !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    min-width: 74px !important;
}

.admin-corporate-page.ai-settings-page .ai-rule-summary-priority small {
    color: var(--admin-muted-2) !important;
    font-family: var(--admin-font-mono) !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
}

.admin-corporate-page.ai-settings-page .ai-rule-summary-priority strong {
    color: var(--admin-primary) !important;
    font-family: var(--admin-font-body) !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

.admin-corporate-page.ai-settings-page .ai-rule-chevron {
    align-items: center !important;
    color: var(--admin-muted-2) !important;
    display: inline-flex !important;
    justify-content: center !important;
    transition: transform 160ms ease !important;
}

.admin-corporate-page.ai-settings-page .ai-rule-chevron svg {
    height: 20px !important;
    width: 20px !important;
}

.admin-corporate-page.ai-settings-page .ai-rule-card.is-expanded .ai-rule-chevron {
    transform: rotate(180deg) !important;
}

.admin-corporate-page.ai-settings-page .ai-rule-editor[hidden] {
    display: none !important;
}

.admin-corporate-page.ai-settings-page .ai-rule-editor {
    border-top: 1px solid var(--admin-line) !important;
    display: grid !important;
    gap: 18px !important;
    padding: 20px !important;
}

.admin-corporate-page.ai-settings-page .ai-rule-editor-topline {
    align-items: end !important;
    display: grid !important;
    gap: 18px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
}

.admin-corporate-page.ai-settings-page .ai-rule-editor .ai-rule-card-main {
    display: block !important;
}

@media (max-width: 860px) {
    .admin-corporate-page.ai-settings-page .ai-rule-toggle {
        gap: 10px !important;
        grid-template-columns: 34px minmax(0, 1fr) auto 20px !important;
        padding: 14px 16px !important;
    }

    .admin-corporate-page.ai-settings-page .ai-rule-summary-priority {
        min-width: 48px !important;
    }

    .admin-corporate-page.ai-settings-page .ai-rule-summary-priority small {
        display: none !important;
    }

    .admin-corporate-page.ai-settings-page .ai-rule-editor-topline {
        grid-template-columns: 1fr !important;
    }
}

.admin-corporate-page.ai-settings-page .ai-qa-search {
    border-bottom: 1px solid var(--admin-line) !important;
    display: grid !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 32px 28px !important;
}

.admin-corporate-page.ai-settings-page .ai-qa-search > span {
    align-items: center !important;
    background: var(--admin-surface-low) !important;
    border: 1px solid var(--admin-line) !important;
    border-radius: var(--admin-radius-sm) !important;
    display: grid !important;
    gap: 12px !important;
    grid-template-columns: 22px minmax(0, 1fr) !important;
    margin: 0 !important;
    padding: 0 14px !important;
}

.admin-corporate-page.ai-settings-page .ai-qa-search input {
    background: transparent !important;
    border: 0 !important;
    color: var(--admin-ink) !important;
    min-height: 48px !important;
    padding: 0 !important;
}

.admin-corporate-page.ai-settings-page .ai-qa-list {
    gap: 18px !important;
    padding: 28px 32px 32px !important;
}

.admin-corporate-page.ai-settings-page .ai-qa-row {
    border-radius: var(--admin-radius-lg) !important;
    display: grid !important;
    gap: 18px !important;
    padding: 22px !important;
}

.admin-corporate-page.ai-settings-page .ai-qa-topline {
    align-items: end !important;
    display: grid !important;
    gap: 16px !important;
    grid-template-columns: minmax(0, 1fr) 160px 190px !important;
}

.admin-corporate-page.ai-settings-page .ai-qa-row label {
    color: var(--admin-muted-2) !important;
    display: grid !important;
    font-family: var(--admin-font-mono) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    gap: 8px !important;
    letter-spacing: 0.05em !important;
    margin: 0 !important;
    text-transform: uppercase !important;
}

.admin-corporate-page.ai-settings-page .ai-qa-row input,
.admin-corporate-page.ai-settings-page .ai-qa-row select,
.admin-corporate-page.ai-settings-page .ai-qa-row textarea {
    background: var(--admin-surface) !important;
    border: 1px solid var(--admin-line) !important;
    border-radius: var(--admin-radius-sm) !important;
    color: var(--admin-ink) !important;
    font-family: var(--admin-font-body) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    min-height: 48px !important;
    padding: 12px 14px !important;
    text-transform: none !important;
}

.admin-corporate-page.ai-settings-page .ai-qa-row textarea {
    line-height: 1.55 !important;
    min-height: 112px !important;
    resize: vertical !important;
}

.admin-corporate-page.ai-settings-page .ai-promo-list {
    overflow-x: auto !important;
}

.admin-corporate-page.ai-settings-page .ai-promo-section .ai-promo-head,
.admin-corporate-page.ai-settings-page .ai-promo-section .ai-promo-row {
    align-items: center !important;
    display: grid !important;
    gap: 18px !important;
    grid-template-columns: 72px minmax(340px, 1.35fr) 150px minmax(420px, 1.45fr) 170px !important;
    min-width: 1040px !important;
}

.admin-corporate-page.ai-settings-page .ai-promo-section .ai-promo-head {
    padding: 18px 28px !important;
}

.admin-corporate-page.ai-settings-page .ai-promo-section .ai-promo-head button:first-child,
.admin-corporate-page.ai-settings-page .ai-promo-section .ai-promo-check {
    display: inline-flex !important;
}

.admin-corporate-page.ai-settings-page .ai-promo-section .ai-promo-row {
    border-radius: var(--admin-radius-lg) !important;
    margin: 14px 16px !important;
    padding: 22px 28px !important;
}

.admin-corporate-page.ai-settings-page #promotions .ai-promo-row[hidden] {
    display: none !important;
}

.admin-corporate-page.ai-settings-page .ai-promo-section .ai-promo-product {
    align-items: center !important;
    display: grid !important;
    gap: 16px !important;
    grid-template-columns: 72px minmax(0, 1fr) !important;
    min-width: 0 !important;
}

.admin-corporate-page.ai-settings-page .ai-promo-section .ai-product-thumb {
    background-color: var(--admin-surface-low) !important;
    background-position: center !important;
    background-size: cover !important;
    border: 1px solid var(--admin-line) !important;
    border-radius: var(--admin-radius-sm) !important;
    height: 72px !important;
    width: 72px !important;
}

.admin-corporate-page.ai-settings-page .ai-promo-section .ai-promo-product strong {
    color: var(--admin-ink) !important;
    display: block !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.28 !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    word-break: normal !important;
}

.admin-corporate-page.ai-settings-page .ai-promo-section .ai-promo-product small {
    display: block !important;
    margin-top: 6px !important;
    white-space: nowrap !important;
}

.admin-corporate-page.ai-settings-page .ai-promo-section .ai-priority-input {
    max-width: 130px !important;
    width: 100% !important;
}

.admin-corporate-page.ai-settings-page .ai-promo-section .ai-promo-row input[type="text"] {
    min-width: 0 !important;
    width: 100% !important;
}

.admin-corporate-page.ai-settings-page .ai-promo-status {
    justify-self: start !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.admin-corporate-page.ai-settings-page .ai-row-action {
    justify-self: center !important;
    min-width: 64px !important;
}

@media (max-width: 860px) {
    .admin-corporate-page.ai-settings-page .ai-qa-editor-head,
    .admin-corporate-page.ai-settings-page .ai-qa-search,
    .admin-corporate-page.ai-settings-page .ai-qa-list {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .admin-corporate-page.ai-settings-page .ai-qa-topline {
        grid-template-columns: 1fr !important;
    }
}

.admin-auth-page.admin-corporate-page {
    background: #100927 !important;
    min-height: 100vh !important;
}

.admin-auth-page.admin-corporate-page .login-wrap {
    background:
        linear-gradient(90deg, rgba(5, 8, 13, 0.12) 0%, rgba(12, 8, 30, 0.04) 43%, rgba(15, 8, 38, 0.62) 100%),
        url("/assets/images/auth/convive-login-background.png") center / cover no-repeat !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.72fr) !important;
    min-height: 100vh !important;
    overflow: hidden !important;
    padding: 0 !important;
}

.admin-auth-page.admin-corporate-page .login-visual,
.admin-auth-page.admin-corporate-page.superadmin-auth-page .login-visual {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    min-height: 100vh !important;
    padding: clamp(28px, 4vw, 64px) !important;
}

.admin-auth-page.admin-corporate-page .login-brand,
.admin-auth-page.admin-corporate-page .login-visual-copy {
    display: none !important;
}

.admin-auth-page.admin-corporate-page .login-panel {
    align-items: center !important;
    background:
        radial-gradient(circle at 22% 12%, rgba(132, 59, 215, 0.26), transparent 38%),
        linear-gradient(180deg, rgba(18, 11, 44, 0.86), rgba(12, 8, 31, 0.92)) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.07) !important;
    display: grid !important;
    justify-items: center !important;
    min-height: 100vh !important;
    padding: clamp(24px, 5vw, 72px) !important;
}

.admin-auth-page.admin-corporate-page .login-card {
    backdrop-filter: blur(18px) !important;
    background: rgba(255, 255, 255, 0.075) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 24px !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34) !important;
    margin: 0 !important;
    max-width: 460px !important;
    padding: clamp(28px, 4vw, 46px) !important;
    width: 100% !important;
}

.admin-auth-page.admin-corporate-page .login-card .eyebrow {
    color: #ff9a5f !important;
    font-family: var(--admin-font-mono) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.16em !important;
    margin: 0 0 14px !important;
    text-transform: uppercase !important;
}

.admin-auth-page.admin-corporate-page .login-card h1 {
    color: #fff !important;
    font-family: var(--admin-font-display) !important;
    font-size: clamp(36px, 4vw, 54px) !important;
    letter-spacing: -0.035em !important;
    line-height: 0.98 !important;
    margin: 0 0 16px !important;
}

.admin-auth-page.admin-corporate-page .login-card .muted {
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
    margin: 0 !important;
}

.admin-auth-page.admin-corporate-page .stack-form {
    gap: 18px !important;
    margin-top: 34px !important;
}

.admin-auth-page.admin-corporate-page .stack-form label {
    color: rgba(255, 255, 255, 0.78) !important;
    font-family: var(--admin-font-mono) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    gap: 8px !important;
    letter-spacing: 0.09em !important;
    text-transform: uppercase !important;
}

.admin-auth-page.admin-corporate-page .stack-form input {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 14px !important;
    color: #fff !important;
    font-family: var(--admin-font-body) !important;
    font-size: 16px !important;
    letter-spacing: 0 !important;
    min-height: 58px !important;
    padding: 0 18px !important;
    text-transform: none !important;
}

.admin-auth-page.admin-corporate-page .stack-form input:focus {
    border-color: rgba(255, 155, 92, 0.84) !important;
    box-shadow: 0 0 0 4px rgba(255, 155, 92, 0.16) !important;
    outline: none !important;
}

.admin-auth-page.admin-corporate-page .stack-form button {
    background: linear-gradient(135deg, #ff955a, #8c3bd6) !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: 0 20px 44px rgba(133, 58, 215, 0.28), 0 10px 28px rgba(255, 149, 90, 0.18) !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    min-height: 58px !important;
}

.admin-auth-page.admin-corporate-page .stack-form button:hover {
    filter: brightness(1.06) !important;
    transform: translateY(-1px) !important;
}

.admin-auth-page.admin-corporate-page .alert-danger {
    background: rgba(255, 241, 240, 0.92) !important;
    border-color: rgba(255, 178, 168, 0.85) !important;
    color: #b42318 !important;
}

.admin-auth-page.admin-corporate-page .login-secondary-link {
    color: rgba(255, 255, 255, 0.82) !important;
    margin-top: 22px !important;
}

.admin-auth-page.admin-corporate-page .login-secondary-link:hover {
    color: #ffb37f !important;
}

@media (max-width: 980px) {
    .admin-auth-page.admin-corporate-page .login-wrap {
        background-position: 32% center !important;
        grid-template-columns: 1fr !important;
        min-height: 100svh !important;
        padding: 22px !important;
    }

    .admin-auth-page.admin-corporate-page .login-visual {
        display: none !important;
    }

    .admin-auth-page.admin-corporate-page .login-panel {
        background: rgba(13, 8, 34, 0.72) !important;
        border: 0 !important;
        min-height: calc(100svh - 44px) !important;
        padding: 0 !important;
    }

    .admin-auth-page.admin-corporate-page .login-card {
        max-width: 520px !important;
    }
}
