/* =========================================================
   Loya Smart Website CSS
   Optimized full stylesheet
   ========================================================= */

/* =========================
   Variables
   ========================= */

:root {
    --font-main: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
    --max-width: 1420px;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-xl: 42px;
    --shadow-soft: 0 22px 70px rgba(15, 23, 42, 0.14);
    --shadow-card: 0 18px 48px rgba(15, 23, 42, 0.10);
    --shadow-dark: 0 28px 80px rgba(0, 0, 0, 0.42);
}

/* =========================
   Admin auth / console
   ========================= */

.admin-auth-layout {
    min-height: 100vh;
}

.admin-login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 1.05fr) minmax(420px, 0.95fr);
    background: radial-gradient(circle at 8% 12%, rgba(159, 123, 63, 0.18), transparent 34%), linear-gradient(135deg, #f7f4ef 0%, #ffffff 58%, #eef3ff 100%);
}

.admin-login-visual {
    position: relative;
    padding: 64px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #111827 0%, #18243a 56%, #9f7b3f 140%);
    color: #fff;
    overflow: hidden;
}

    .admin-login-visual::before {
        content: "";
        position: absolute;
        inset: -30% -16% auto auto;
        width: 480px;
        height: 480px;
        border-radius: 999px;
        background: rgba(240, 215, 156, 0.18);
        filter: blur(12px);
    }

.admin-login-visual-layer {
    position: relative;
    width: 100%;
    max-width: 680px;
}

.admin-login-slogan-card {
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

    .admin-login-slogan-card span,
    .admin-login-eyebrow,
    .admin-page-eyebrow,
    .admin-topbar-kicker {
        display: inline-flex;
        color: var(--accent);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .admin-login-slogan-card strong {
        display: block;
        margin-top: 18px;
        font-size: clamp(30px, 3vw, 48px);
        line-height: 1.12;
        letter-spacing: -0.04em;
    }

    .admin-login-slogan-card p {
        margin: 18px 0 0;
        color: rgba(255, 255, 255, 0.72);
        font-size: 16px;
    }

.admin-login-visual-cards {
    margin-top: 26px;
    display: grid;
    gap: 14px;
}

    .admin-login-visual-cards div {
        padding: 18px 20px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.10);
        border: 1px solid rgba(255, 255, 255, 0.14);
    }

    .admin-login-visual-cards small {
        color: rgba(240, 215, 156, 0.92);
        font-weight: 900;
    }

    .admin-login-visual-cards strong {
        margin: 0 10px;
    }

    .admin-login-visual-cards span {
        color: rgba(255, 255, 255, 0.68);
    }

.admin-login-panel {
    padding: 56px clamp(28px, 5vw, 76px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.admin-login-brand,
.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    align-self: flex-start;
    margin-bottom: 28px;
}

.admin-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    color: #171007;
    font-weight: 900;
    background: var(--gradient-main);
    box-shadow: 0 14px 34px rgba(159, 123, 63, 0.25);
}

.admin-login-brand strong,
.admin-brand strong {
    display: block;
    line-height: 1.1;
}

.admin-login-brand small,
.admin-brand small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.admin-auth-card {
    width: 100%;
    max-width: 560px;
    padding: clamp(28px, 4vw, 46px);
    border-radius: 34px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.admin-login-heading h1 {
    margin: 10px 0 12px;
    font-size: clamp(34px, 4vw, 58px);
}

.admin-login-heading p {
    color: var(--muted);
    margin-bottom: 24px;
}

.admin-login-form {
    display: grid;
    gap: 16px;
}

    .admin-login-form label {
        display: grid;
        gap: 8px;
        color: #1f2937;
        font-weight: 800;
    }

    .admin-login-form input {
        width: 100%;
        height: 50px;
        border: 1px solid rgba(31, 41, 55, 0.14);
        border-radius: 16px;
        padding: 0 16px;
        color: #111827;
        background: #f8fafc;
        outline: none;
    }

        .admin-login-form input:focus {
            border-color: rgba(159, 123, 63, 0.55);
            box-shadow: 0 0 0 4px rgba(159, 123, 63, 0.12);
        }

.admin-login-action-row {
    margin-top: 6px;
}

.admin-login-button,
.admin-primary-button,
.admin-outline-button,
.admin-small-button {
    min-height: 48px;
    border: 0;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    color: #171007;
    font-weight: 900;
    cursor: pointer;
    background: var(--gradient-main);
    box-shadow: 0 18px 34px rgba(159, 123, 63, 0.26);
}

.single-action .admin-login-button {
    width: 100%;
}

.admin-outline-button,
.admin-small-button {
    border: 1px solid var(--border);
    color: var(--text);
    background: var(--card-solid);
    box-shadow: none;
}

.admin-auth-links-under-button,
.admin-social-divider,
.admin-social-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.admin-text-link {
    color: #667085;
    font-weight: 800;
}

.admin-social-divider {
    color: var(--muted-2);
    font-size: 13px;
}

    .admin-social-divider span {
        flex: 1;
        height: 1px;
        background: var(--border);
    }

.admin-social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px 14px;
    background: #fff;
    color: #111827;
    font-weight: 900;
}

.admin-social-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.admin-social-button.wechat .admin-social-icon {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.admin-social-button.qq .admin-social-icon {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.admin-social-button.work-wechat .admin-social-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
}

.admin-login-error,
.admin-login-success {
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 800;
}

.admin-login-error {
    color: #9f1239;
    background: #fff1f2;
    border: 1px solid #fecdd3;
}

.admin-login-success {
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.admin-login-note {
    margin-top: 22px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.04);
    color: var(--muted);
    font-size: 13px;
}

    .admin-login-note strong {
        margin-right: 8px;
        color: var(--text);
    }

@media (max-width: 1024px) {
    .admin-login-page.admin-auth-page {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-login-page .admin-login-visual {
        display: none;
    }

    .admin-login-page .admin-login-panel {
        min-height: 100vh;
        width: 100%;
        padding: 24px;
    }
}

@media (max-width: 520px) {
    .admin-login-page .admin-login-panel {
        padding: 18px;
    }

    .admin-login-page .admin-auth-card {
        padding: 24px 18px;
        border-radius: 24px;
    }

    .admin-login-page .admin-social-login {
        grid-template-columns: 1fr;
    }
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    background: #f3f6fb;
}

.admin-sidebar {
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0f172a 0%, #172554 100%);
    color: #fff;
}

    .admin-sidebar .admin-brand {
        color: #fff;
    }

.admin-side-nav {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.admin-side-link {
    width: 100%;
    padding: 13px 16px;
    border: 0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.76);
    background: transparent;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

    .admin-side-link.active,
    .admin-side-link:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.12);
    }

.admin-side-group {
    display: grid;
    gap: 8px;
}

.admin-side-toggle-icon {
    font-size: 15px;
    line-height: 1;
    opacity: 0.58;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.admin-side-toggle[aria-expanded="true"] .admin-side-toggle-icon {
    opacity: 0.86;
    transform: rotate(180deg);
}

.admin-side-subnav {
    display: none;
    gap: 6px;
    margin-left: 16px;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

    .admin-side-subnav.is-open {
        display: grid;
    }

.admin-side-sublink {
    min-height: 36px;
    padding: 0 13px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    font-weight: 800;
}

    .admin-side-sublink.active,
    .admin-side-sublink:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.10);
    }

.admin-sidebar-card {
    margin-top: 32px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.72);
}

    .admin-sidebar-card strong {
        display: block;
        color: #fff;
        margin: 6px 0;
    }

.admin-user-menu-wrap {
    position: relative;
    margin-top: auto;
    padding-top: 26px;
}

.admin-mobile-menu-button,
.admin-mobile-sidebar-close,
.admin-mobile-sidebar-backdrop {
    display: none;
}

.admin-topbar-title,
.admin-sidebar-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .admin-user-menu-wrap::before {
        content: "";
        position: absolute;
        left: 8px;
        right: 8px;
        top: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), rgba(240, 215, 156, 0.36), transparent);
    }

    .admin-user-menu-wrap::after {
        content: "";
        position: absolute;
        left: 50%;
        top: -2px;
        width: 42px;
        height: 5px;
        border-radius: 999px;
        background: var(--gradient-main);
        box-shadow: 0 0 18px rgba(240, 215, 156, 0.28);
        transform: translateX(-50%);
        opacity: 0.72;
    }

.admin-user-card {
    width: 100%;
    min-height: 58px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 18px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    color: inherit;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

    .admin-user-card:hover,
    .admin-user-card:focus-visible {
        border-color: rgba(255, 255, 255, 0.10);
        background: rgba(255, 255, 255, 0.08);
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
        transform: translateY(-1px);
        outline: none;
    }

.admin-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    color: #171007;
    font-size: 13px;
    font-weight: 950;
    background: var(--gradient-main);
}

.admin-user-meta {
    min-width: 0;
    display: grid;
    gap: 1px;
}

    .admin-user-meta strong,
    .admin-user-meta small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .admin-user-meta strong {
        color: inherit;
        font-size: 14px;
        line-height: 1.2;
    }

    .admin-user-meta small {
        color: rgba(255, 255, 255, 0.56);
        font-size: 12px;
    }

.admin-user-caret {
    color: rgba(255, 255, 255, 0.52);
    font-size: 16px;
    line-height: 1;
}

.admin-user-menu {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 10px);
    padding: 8px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 30;
}

    .admin-user-menu a,
    .admin-user-menu button {
        width: 100%;
        min-height: 38px;
        padding: 0 12px;
        border: 0;
        border-radius: 12px;
        display: flex;
        align-items: center;
        color: rgba(255, 255, 255, 0.78);
        background: transparent;
        font-weight: 800;
        text-align: left;
        cursor: pointer;
    }

        .admin-user-menu a:hover,
        .admin-user-menu button:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.10);
        }

.admin-user-menu-divider {
    display: block;
    height: 1px;
    margin: 7px 6px;
    background: rgba(255, 255, 255, 0.12);
}

.admin-main-frame {
    min-width: 0;
}

.admin-topbar {
    min-height: 78px;
    padding: 18px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: #fff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

    .admin-topbar strong {
        display: block;
        font-size: 20px;
    }

.admin-topbar-actions,
.admin-heading-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-public-link,
.admin-theme-select,
.admin-mode-toggle {
    min-height: 40px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 12px;
    padding: 0 14px;
    background: #fff;
    color: #172033;
    font-weight: 800;
}

.admin-main-content {
    padding: 30px;
}

.admin-dashboard {
    display: grid;
    gap: 24px;
}

.admin-page-heading,
.admin-panel {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.admin-page-heading {
    padding: 28px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

    .admin-page-heading h1 {
        margin: 8px 0 10px;
    }

    .admin-page-heading p,
    .admin-panel p {
        color: var(--muted);
    }

.admin-panel {
    padding: 24px;
}

.admin-profile-panel {
    display: grid;
    gap: 24px;
}

.admin-profile-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    border-radius: 24px;
    background: var(--admin-surface-muted, rgba(15, 23, 42, 0.04));
}

.admin-profile-avatar {
    width: 74px;
    height: 74px;
    border-radius: 24px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: #171007;
    font-size: 20px;
    font-weight: 950;
    background: var(--gradient-main);
    box-shadow: 0 18px 38px rgba(159, 123, 63, 0.22);
}

.admin-profile-card h2 {
    margin: 8px 0 6px;
}

.admin-info-grid,
.admin-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-info-item,
.admin-setting-item {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--admin-border, rgba(15, 23, 42, 0.08));
    background: var(--admin-surface-solid, #fff);
}

    .admin-info-item.wide {
        grid-column: 1 / -1;
    }

    .admin-info-item span,
    .admin-setting-item span {
        display: block;
        margin-bottom: 8px;
        color: var(--accent);
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 0.10em;
        text-transform: uppercase;
    }

    .admin-info-item strong,
    .admin-setting-item strong {
        display: block;
        color: var(--admin-text-strong, #0f172a);
        font-size: 18px;
    }

    .admin-setting-item p {
        margin: 10px 0 0;
    }

.admin-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.admin-metric-grid,
.admin-shortcut-grid,
.admin-kanban-grid,
.admin-workspace-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.admin-workspace-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
}

.admin-metric-card,
.admin-shortcut-card,
.admin-kanban-card {
    padding: 20px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

    .admin-metric-card strong {
        display: block;
        margin: 8px 0;
        font-size: 34px;
    }

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

    .admin-table th,
    .admin-table td {
        padding: 12px 14px;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
        text-align: left;
    }

.admin-status {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    color: #475569;
    background: #f1f5f9;
    font-weight: 800;
}

    .admin-status.active {
        color: #047857;
        background: #ecfdf5;
    }

/* =========================
   Admin outbound system
   ========================= */

.loya-outbound-page {
    --loya-outbound-border: rgba(15, 23, 42, 0.08);
    --loya-outbound-soft: #f8fafc;
    --loya-outbound-blue: #2563eb;
    --loya-outbound-text: #0f172a;
}

.loya-outbound-heading {
    border-radius: 24px;
}

.loya-outbound-tabbed-panel {
    display: grid;
    gap: 18px;
}

.loya-outbound-tab-strip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: #f8fafc;
}

.loya-outbound-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    color: #475569;
    background: transparent;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    appearance: none;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.loya-outbound-tab:hover {
    color: #0f172a;
    background: rgba(37, 99, 235, 0.08);
}

.loya-outbound-tab.active {
    color: #1d4ed8;
    background: #dbeafe;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.loya-outbound-tab-panel {
    display: grid;
    gap: 16px;
}

.loya-outbound-supervision-tabbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 18px;
    padding: 10px;
    border: 1px solid #d7e3f2;
    border-radius: 22px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    box-shadow: 0 18px 36px rgba(15, 36, 84, 0.06);
}

.loya-outbound-supervision-tab {
    position: relative;
    flex: 1 1 320px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 72px;
    padding: 14px 56px 14px 18px;
    text-align: left;
}

.loya-outbound-supervision-tab span,
.loya-outbound-supervision-tab small {
    display: block;
    width: 100%;
    color: inherit;
}

.loya-outbound-supervision-tab span {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.loya-outbound-supervision-tab small {
    color: #7b8aa0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

.loya-outbound-supervision-tab.active small {
    color: rgba(255, 255, 255, 0.82);
}

.loya-outbound-supervision-tab-count {
    position: absolute;
    top: 12px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(31, 87, 214, 0.1);
    color: #1f57d6;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
}

.loya-outbound-supervision-tab.active .loya-outbound-supervision-tab-count {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.loya-outbound-live-session-shell {
    padding: 22px;
    border: 1px solid #dbe6f3;
    border-radius: 24px;
    box-shadow: 0 22px 48px rgba(15, 36, 84, 0.08);
}

.loya-outbound-live-session-nav {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 0 2px 18px;
    border-bottom: 1px solid #dfe7f2;
}

.loya-outbound-live-session-strip {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.loya-outbound-live-session-tabs {
    display: flex;
    align-items: flex-end;
    gap: 0;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 10px 0;
    scrollbar-width: thin;
}

.loya-outbound-live-session-tab {
    position: relative;
    display: flex;
    flex: 0 0 280px;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
    margin-right: -1px;
    padding: 11px 18px 10px;
    border: 1px solid #cfd9e7;
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(180deg, #f8fbff 0%, #edf3fb 100%);
    color: #475569;
    box-shadow: none;
    transform: translateY(6px);
    cursor: pointer;
    text-align: left;
    appearance: none;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.loya-outbound-live-session-tab span,
.loya-outbound-live-session-tab small {
    display: block;
    width: 100%;
    overflow: hidden;
    color: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loya-outbound-live-session-tab span {
    font-size: 14px;
    font-weight: 700;
}

.loya-outbound-live-session-tab small {
    font-size: 12px;
    opacity: 0.78;
}

.loya-outbound-live-session-tab:hover {
    border-color: #b9cdf0;
    background: linear-gradient(180deg, #fbfdff 0%, #eef5ff 100%);
    color: #194dbf;
    transform: translateY(3px);
}

.loya-outbound-live-session-tab.active {
    z-index: 2;
    border-color: #d9e3ef;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 -10px 22px rgba(15, 36, 84, 0.07);
    transform: translateY(0);
}

.loya-outbound-live-session-close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #d3deec;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    box-shadow: none;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    transition: all 0.2s ease;
}

.loya-outbound-live-session-close:hover {
    border-color: #bdd0ea;
    background: #f8fbff;
    color: #1f57d6;
    box-shadow: 0 8px 16px rgba(31, 87, 214, 0.12);
}

.loya-outbound-script-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.loya-outbound-script-metric-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.05);
    position: relative;
    overflow: hidden;
}

.loya-outbound-script-metric-card::after {
    content: "";
    position: absolute;
    inset: auto -24px -30px auto;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0) 72%);
    pointer-events: none;
}

.loya-outbound-script-metric-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #1d4ed8;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14) 0%, rgba(59, 130, 246, 0.24) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.loya-outbound-script-metric-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.loya-outbound-script-metric-icon.active {
    color: #047857;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(22, 163, 74, 0.24) 100%);
}

.loya-outbound-script-metric-icon.scene {
    color: #7c3aed;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.14) 0%, rgba(139, 92, 246, 0.24) 100%);
}

.loya-outbound-script-metric-icon.compliance {
    color: #b45309;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(251, 191, 36, 0.24) 100%);
}

.loya-outbound-script-metric-body {
    min-width: 0;
    display: grid;
    gap: 8px;
    flex: 1 1 auto;
}

.loya-outbound-script-metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.loya-outbound-script-metric-body span,
.loya-outbound-script-metric-top span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.loya-outbound-script-metric-top em {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    color: #475569;
    background: rgba(148, 163, 184, 0.14);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.loya-outbound-script-metric-top em.positive {
    color: #047857;
    background: rgba(16, 185, 129, 0.14);
}

.loya-outbound-script-metric-top em.warning {
    color: #b45309;
    background: rgba(245, 158, 11, 0.16);
}

.loya-outbound-script-metric-value {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.loya-outbound-script-metric-body strong {
    color: #0f172a;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.loya-outbound-script-metric-value b {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    padding-bottom: 3px;
}

.loya-outbound-script-metric-body p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.loya-outbound-script-metric-progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
}

.loya-outbound-script-metric-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
}

.loya-outbound-script-metric-progress.warning span {
    background: linear-gradient(90deg, #f59e0b 0%, #fcd34d 100%);
}

.loya-outbound-script-metric-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.loya-outbound-script-metric-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: #475569;
    background: rgba(241, 245, 249, 0.96);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
}

.loya-outbound-script-metric-meta span.positive {
    color: #047857;
    background: #dcfce7;
}

.loya-outbound-script-metric-meta span.warning {
    color: #b45309;
    background: #fef3c7;
}

.loya-outbound-script-metric-meta span.accent {
    color: #6d28d9;
    background: #ede9fe;
}

.loya-outbound-script-metric-meta span.neutral {
    color: #334155;
    background: #e2e8f0;
}

.loya-outbound-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.loya-outbound-grid {
    align-items: start;
}

.loya-outbound-live-panel {
    display: grid;
    gap: 22px;
    padding: 26px;
    border-radius: 30px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.loya-outbound-live-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.loya-outbound-live-title {
    min-width: 0;
}

.loya-outbound-live-title h2 {
    margin: 8px 0 10px;
    color: #0f172a;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.12;
}

.loya-outbound-live-title p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
}

.loya-outbound-live-statuses {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.loya-outbound-live-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.loya-outbound-live-pill.neutral {
    color: #1d4ed8;
    background: #dbeafe;
}

.loya-outbound-live-pill.success {
    color: #047857;
    background: #dcfce7;
}

.loya-outbound-live-pill.warning {
    color: #b45309;
    background: #fef3c7;
}

.loya-outbound-live-pill.danger {
    color: #b91c1c;
    background: #fee2e2;
}

.loya-outbound-live-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.loya-outbound-live-summary-card {
    padding: 18px 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
    display: grid;
    gap: 6px;
}

.loya-outbound-live-summary-card span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.loya-outbound-live-summary-card strong {
    color: #0f172a;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.12;
}

.loya-outbound-live-summary-card small {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
}

.loya-outbound-live-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.92fr);
    gap: 20px;
}

.loya-outbound-live-main,
.loya-outbound-live-side {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.loya-outbound-live-side {
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.loya-outbound-live-section-head {
    margin-bottom: 0;
}

.loya-outbound-live-section-head span {
    display: inline-flex;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.loya-outbound-live-section-head h3 {
    margin: 8px 0 0;
    color: #0f172a;
    font-size: 22px;
}

.loya-outbound-live-dialogue {
    min-height: 0;
    display: grid;
    gap: 14px;
    padding: 20px;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f5f9 100%);
}

.loya-outbound-live-bubble {
    max-width: min(100%, 720px);
    padding: 18px 18px 16px;
    border-radius: 22px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.loya-outbound-live-bubble span {
    display: inline-flex;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.loya-outbound-live-bubble p {
    margin: 0;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.8;
}

.loya-outbound-live-bubble.customer {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.loya-outbound-live-bubble.customer span {
    color: #1d4ed8;
}

.loya-outbound-live-bubble.assistant {
    margin-left: auto;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border: 1px solid rgba(96, 165, 250, 0.26);
}

.loya-outbound-live-bubble.assistant span {
    color: #1e3a8a;
}

.loya-outbound-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.loya-outbound-live-actions .admin-small-button {
    min-height: 42px;
    border-radius: 14px;
    padding: 0 18px;
    background: #fff;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.loya-outbound-live-actions .admin-small-button:hover:not(:disabled) {
    border-color: rgba(37, 99, 235, 0.24);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.loya-outbound-live-kv {
    margin-top: 0;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px 14px;
}

.loya-outbound-live-kv dt {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.loya-outbound-live-kv dd {
    color: #0f172a;
    font-weight: 700;
}

.loya-outbound-records-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.loya-outbound-records-kpi-card {
    padding: 22px 24px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.05);
    display: grid;
    gap: 8px;
}

.loya-outbound-records-kpi-card span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.loya-outbound-records-kpi-card strong {
    color: #0f172a;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 900;
    line-height: 1;
}

.loya-outbound-records-kpi-card small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.loya-outbound-records-kpi-card.highlight {
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 60%, #60a5fa 100%);
    border-color: rgba(59, 130, 246, 0.24);
}

.loya-outbound-records-kpi-card.highlight span,
.loya-outbound-records-kpi-card.highlight strong,
.loya-outbound-records-kpi-card.highlight small {
    color: #fff;
}

.loya-outbound-records-kpi-card.danger strong {
    color: #b91c1c;
}

.loya-outbound-records-panel {
    display: grid;
    gap: 22px;
}

.loya-outbound-records-head {
    margin-bottom: 0;
}

.loya-outbound-records-head span,
.loya-outbound-records-table-head span {
    display: inline-flex;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.loya-outbound-records-head h2,
.loya-outbound-records-table-head h3 {
    margin: 8px 0 0;
    color: #0f172a;
}

.loya-outbound-records-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(180px, 0.6fr)) auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    background: linear-gradient(180deg, #fbfdff 0%, #f8fafc 100%);
}

.loya-outbound-records-field {
    display: grid;
    gap: 8px;
}

.loya-outbound-records-field span {
    color: #475569;
    font-size: 12px;
    font-weight: 900;
}

.loya-outbound-records-field input,
.loya-outbound-records-field select {
    min-height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    padding: 0 14px;
    color: #0f172a;
    background: #fff;
    font: inherit;
    outline: none;
}

.loya-outbound-records-field input:focus,
.loya-outbound-records-field select:focus {
    border-color: rgba(37, 99, 235, 0.34);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.loya-outbound-records-field-wide {
    min-width: 0;
}

.loya-outbound-records-actions {
    display: flex;
    align-items: end;
}

.loya-outbound-records-actions .admin-small-button {
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
}

.loya-outbound-records-table-card {
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 26px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.loya-outbound-records-table-head {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.loya-outbound-records-table-head small {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.loya-outbound-records-list-header {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(160px, 0.9fr) minmax(210px, 1fr) minmax(260px, 1.2fr) minmax(210px, 1fr) 110px;
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 16px 16px 10px 10px;
    background: #f8fafc;
    box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.12);
    margin: 0 0 10px;
}

.loya-outbound-records-list-header-cell {
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.loya-outbound-records-list-header-cell:last-child {
    text-align: right;
}

.loya-outbound-records-list {
    display: grid;
    gap: 12px;
}

.loya-outbound-records-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(160px, 0.9fr) minmax(210px, 1fr) minmax(260px, 1.2fr) minmax(210px, 1fr) 110px;
    gap: 14px;
    align-items: center;
    background: #fff;
    border-color: rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.loya-outbound-records-list > .loya-outbound-records-row:nth-child(2n) {
    background: #fcfdff;
}

.loya-outbound-records-list > .loya-outbound-records-row:hover {
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    transform: translateY(-1px);
}

.loya-outbound-records-summary,
.loya-outbound-records-cell {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.loya-outbound-records-summary h3,
.loya-outbound-records-cell strong {
    margin: 0;
    overflow: hidden;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loya-outbound-records-summary p,
.loya-outbound-records-summary small,
.loya-outbound-records-cell span,
.loya-outbound-records-cell small {
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loya-outbound-records-cell span {
    display: none;
    font-weight: 900;
}

.loya-outbound-records-next-text {
    white-space: normal !important;
    line-height: 1.55;
}

.loya-outbound-records-actions-row {
    justify-content: flex-end;
    align-self: center;
    min-width: 110px;
}

.loya-outbound-records-empty-card {
    background: #fbfdff;
}

.loya-outbound-records-status-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.loya-outbound-record-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #475569;
    background: #f1f5f9;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.loya-outbound-record-tag.highlight {
    color: #1d4ed8;
    background: #dbeafe;
}

.loya-outbound-record-tag.warning {
    color: #b45309;
    background: #fef3c7;
}

.loya-outbound-record-tag.danger {
    color: #b91c1c;
    background: #fee2e2;
}

.loya-outbound-record-tag.safe {
    color: #047857;
    background: #dcfce7;
}

.loya-outbound-records-empty-card h3 {
    margin: 0;
}

.loya-outbound-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid var(--loya-outbound-border);
    border-radius: 18px;
    background: var(--loya-outbound-soft);
}

    .loya-outbound-filter input,
    .loya-outbound-filter select,
    .loya-outbound-settings-grid input,
    .loya-outbound-settings-grid select,
    .loya-outbound-settings-grid textarea {
        min-height: 40px;
        border: 1px solid rgba(15, 23, 42, 0.12);
        border-radius: 12px;
        padding: 0 12px;
        color: var(--loya-outbound-text);
        background: #fff;
        font: inherit;
        font-size: 13px;
        outline: none;
    }

    .loya-outbound-settings-grid textarea {
        padding-top: 12px;
        padding-bottom: 12px;
        line-height: 1.7;
    }

    .loya-outbound-filter input {
        min-width: min(320px, 100%);
        flex: 1 1 260px;
    }

.loya-outbound-table {
    min-width: 860px;
    font-size: 13px;
}

.loya-outbound-list-hint {
    margin: -4px 0 12px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.loya-outbound-voice-table {
    min-width: 1120px;
}

    .loya-outbound-voice-table tbody tr {
        cursor: pointer;
        transition: background 0.18s ease;
    }

    .loya-outbound-voice-table tbody tr:hover {
        background: rgba(37, 99, 235, 0.04);
    }

    .loya-outbound-voice-table tbody tr.is-selected {
        background: rgba(37, 99, 235, 0.08);
    }

.loya-outbound-primary-cell {
    display: grid;
    gap: 4px;
}

    .loya-outbound-primary-cell strong {
        color: var(--loya-outbound-text);
    }

    .loya-outbound-primary-cell span {
        color: #64748b;
        font-size: 12px;
        line-height: 1.5;
    }

.admin-table-wrap {
    overflow-x: auto;
}

.loya-outbound-card-list {
    display: grid;
    gap: 12px;
}

.loya-outbound-list-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--loya-outbound-border);
    border-radius: 18px;
    background: var(--loya-outbound-soft);
}

    .loya-outbound-list-card.compact {
        padding: 14px;
    }

    .loya-outbound-list-card strong,
    .loya-outbound-config-card h3,
    .loya-outbound-capability-grid strong {
        color: var(--loya-outbound-text);
    }

    .loya-outbound-list-card p,
    .loya-outbound-list-card small,
    .loya-outbound-config-card p,
    .loya-outbound-config-card dd,
    .loya-outbound-rule-grid p {
        margin: 6px 0 0;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.6;
    }

.loya-outbound-form-grid,
.loya-outbound-rule-grid,
.loya-outbound-capability-grid,
.loya-outbound-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.loya-outbound-rule-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.loya-outbound-capability-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

    .loya-outbound-rule-grid article,
    .loya-outbound-capability-grid article,
    .loya-outbound-config-card {
        padding: 18px;
        border: 1px solid var(--loya-outbound-border);
        border-radius: 18px;
        background: var(--loya-outbound-soft);
    }

    .loya-outbound-config-card.muted {
        border-style: dashed;
        background: #fbfdff;
    }

    .loya-outbound-config-card dl,
    .loya-outbound-kv {
        display: grid;
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 10px;
        margin: 14px 0 0;
        font-size: 13px;
    }

    .loya-outbound-config-card dt,
    .loya-outbound-kv dt {
        color: #64748b;
        font-weight: 800;
    }

    .loya-outbound-config-card dd,
    .loya-outbound-kv dd {
        margin: 0;
        overflow-wrap: anywhere;
    }

.loya-outbound-card-headline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.loya-outbound-quote {
    margin: 0;
    padding: 18px;
    border-left: 4px solid var(--loya-outbound-blue);
    border-radius: 16px;
    color: #1e3a8a;
    background: #eff6ff;
    font-weight: 800;
    line-height: 1.8;
}

.loya-outbound-live-box,
.loya-outbound-chart-placeholder {
    min-height: 240px;
    padding: 18px;
    border: 1px solid var(--loya-outbound-border);
    border-radius: 18px;
    background: var(--loya-outbound-soft);
}

.loya-outbound-chart-placeholder {
    display: grid;
    place-items: center;
    color: #64748b;
    font-weight: 900;
    background: repeating-linear-gradient(135deg, #f8fafc, #f8fafc 12px, #eef2ff 12px, #eef2ff 24px);
}

.loya-outbound-flow-demo-card {
    --loya-flow-panel: #ffffff;
    --loya-flow-line: #cfd6e4;
    --loya-flow-text: #243043;
    --loya-flow-muted: #6b7688;
    --loya-flow-primary: #4f7cff;
    --loya-flow-active: #eef4ff;
    --loya-flow-shadow: 0 4px 14px rgba(30, 42, 62, .08);
    display: grid;
    gap: 12px;
    background: #f8fafc;
}

.loya-outbound-flow-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--loya-flow-panel);
    box-shadow: var(--loya-flow-shadow);
}

.loya-outbound-flow-toolbar-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.loya-outbound-flow-toolbar-group label {
    color: var(--loya-flow-muted);
    font-size: 12px;
    font-weight: 600;
}

.loya-outbound-flow-toolbar select,
.loya-outbound-flow-button {
    height: 30px;
    padding: 0 10px;
    border: 1px solid #d8dfec;
    border-radius: 8px;
    background: #fff;
    color: var(--loya-flow-text);
    font-size: 12px;
    cursor: pointer;
    appearance: none;
}

.loya-outbound-flow-toolbar select {
    padding-right: 28px;
    background-image: linear-gradient(45deg, transparent 50%, #7b8798 50%), linear-gradient(135deg, #7b8798 50%, transparent 50%);
    background-position: calc(100% - 14px) 12px, calc(100% - 9px) 12px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.loya-outbound-flow-button {
    transition: border-color .2s ease, color .2s ease, opacity .2s ease;
}

.loya-outbound-flow-button:hover:not(:disabled) {
    border-color: var(--loya-flow-primary);
    color: var(--loya-flow-primary);
}

.loya-outbound-flow-button.primary {
    border-color: var(--loya-flow-primary);
    background: var(--loya-flow-primary);
    color: #fff;
}

.loya-outbound-flow-button.primary:hover:not(:disabled) {
    color: #fff;
    opacity: .92;
}

.loya-outbound-flow-button:disabled,
.loya-outbound-flow-toolbar select:disabled {
    opacity: .58;
    cursor: not-allowed;
}

.loya-outbound-flow-status-panel {
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--loya-flow-panel);
    box-shadow: var(--loya-flow-shadow);
}

.loya-outbound-flow-status-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 12px;
}

.loya-outbound-flow-status-badge {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f5ff;
    color: var(--loya-flow-primary);
    font-weight: 600;
}

.loya-outbound-flow-status-text {
    color: var(--loya-flow-muted);
    font-size: 12px;
    line-height: 1.5;
}

.loya-outbound-flow-progress {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f7;
}

.loya-outbound-flow-progress-bar {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--loya-flow-primary), #7da2ff);
    transition: width .35s ease;
}

.loya-outbound-flow-canvas {
    overflow: auto;
    padding: 14px 10px 16px;
    border-radius: 12px;
    background: var(--loya-flow-panel);
    box-shadow: var(--loya-flow-shadow);
}

.loya-outbound-flow-map {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 1100px;
}

.loya-outbound-flow-row,
.loya-outbound-flow-sub-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.loya-outbound-flow-sub-row {
    gap: 8px;
}

.loya-outbound-flow-node {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    min-height: 42px;
    padding: 6px 8px;
    border: 1px solid #dde5f2;
    border-radius: 10px;
    background: #fff;
    color: var(--loya-flow-text);
    box-shadow: 0 2px 8px rgba(32, 46, 72, .04);
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
    transition: .22s ease;
}

.loya-outbound-flow-node.small {
    width: 120px;
    min-height: 38px;
}

.loya-outbound-flow-node.decision {
    border-style: dashed;
    background: #fbfcff;
}

.loya-outbound-flow-node.wait {
    border-color: #ffd89a;
    background: #fff9ec;
    color: #9a6500;
}

.loya-outbound-flow-node.active {
    border-color: var(--loya-flow-primary);
    background: var(--loya-flow-active);
    box-shadow: 0 0 0 2px rgba(79, 124, 255, .12), 0 6px 16px rgba(79, 124, 255, .12);
    color: var(--loya-flow-text);
    transform: translateY(-1px);
}

.loya-outbound-flow-node.done {
    border-color: #b9dfc8;
    background: #f1fcf5;
    color: #1e7a4a;
}

.loya-outbound-flow-arrow-h {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 42px;
}

.loya-outbound-flow-arrow-h::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 2px;
    right: 6px;
    height: 2px;
    background: var(--loya-flow-line);
    transform: translateY(-50%);
}

.loya-outbound-flow-arrow-h::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid var(--loya-flow-line);
    transform: translateY(-50%);
}

.loya-outbound-flow-arrow-v {
    position: relative;
    width: 2px;
    height: 16px;
    background: var(--loya-flow-line);
}

.loya-outbound-flow-arrow-v::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--loya-flow-line);
    transform: translateX(-50%);
}

.loya-outbound-flow-branch-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 18px;
    width: 100%;
    max-width: 840px;
}

.loya-outbound-flow-branch {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.loya-outbound-flow-branch-title {
    padding: 2px 8px;
    border: 1px solid #e0e7f3;
    border-radius: 999px;
    background: #f3f6fb;
    color: var(--loya-flow-muted);
    font-size: 11px;
}

.loya-outbound-flow-hint,
.loya-outbound-flow-footer-note {
    color: var(--loya-flow-muted);
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.loya-outbound-flow-hint {
    margin-top: 8px;
}

.loya-outbound-flow-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.loya-outbound-flow-legend span {
    padding: 4px 8px;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    background: #fff;
    font-size: 11px;
}

.loya-outbound-flow-legend .active {
    border-color: #bfd0ff;
    background: #eef4ff;
    color: #355fcf;
}

.loya-outbound-flow-legend .done {
    border-color: #b9dfc8;
    background: #f1fcf5;
    color: #1e7a4a;
}

.loya-outbound-flow-legend .wait {
    border-color: #ffd89a;
    background: #fff9ec;
    color: #9a6500;
}

.loya-outbound-flow-footer-note {
    margin-top: 10px;
}

.loya-outbound-test-shell {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.loya-outbound-test-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 20px;
}

.loya-outbound-test-grid-bottom {
    grid-template-columns: minmax(0, 1.5fr) minmax(360px, 0.9fr);
    align-items: start;
}

.loya-outbound-test-card {
    min-width: 0;
    border: 1px solid #dbe5f1;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 36, 84, 0.08);
}

.loya-outbound-test-form-grid {
    gap: 16px;
}

.loya-outbound-test-form-grid textarea {
    min-height: 112px;
    resize: vertical;
}

.loya-outbound-test-kv {
    margin-top: 16px;
}

.loya-outbound-test-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.loya-outbound-test-actions {
    flex-wrap: wrap;
    gap: 12px;
}

.loya-outbound-test-preview,
.loya-outbound-test-summary-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #e0e8f5;
    border-radius: 16px;
    background: #f6f8fc;
}

.loya-outbound-test-preview p,
.loya-outbound-test-summary-block p,
.loya-outbound-test-hint,
.loya-outbound-test-empty {
    margin: 0;
    color: #5d6b80;
    line-height: 1.75;
}

.loya-outbound-test-audio {
    width: 100%;
}

.loya-outbound-test-conversation-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 100%;
}

.loya-outbound-test-dialogue-box {
    display: flex;
    flex-direction: column;
    min-height: 300px;
    justify-content: flex-start;
    overflow: hidden;
}

.loya-outbound-test-dialogue-list {
    display: grid;
    align-content: start;
    gap: 14px;
}

.loya-outbound-test-dialogue-box .loya-outbound-live-bubble {
    width: min(100%, 720px);
}

.loya-outbound-test-dialogue-box .loya-outbound-live-bubble.customer {
    justify-self: start;
}

.loya-outbound-test-dialogue-box .loya-outbound-live-bubble.assistant {
    justify-self: end;
    margin-left: 0;
}

.loya-outbound-test-dialogue-empty {
    display: grid;
    flex: 1 1 auto;
    place-items: center;
    text-align: center;
}

.loya-outbound-test-summary-card {
    align-self: start;
    position: sticky;
    top: 18px;
}

.loya-outbound-test-script-strip,
.loya-outbound-test-preset-panel {
    margin: 0;
    padding: 16px 18px;
    border: 1px solid #dbe5f1;
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
}

.loya-outbound-test-script-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.loya-outbound-test-script-head span {
    display: inline-block;
    color: #6f7d92;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.loya-outbound-test-script-head h3 {
    margin: 4px 0 0;
    color: #17305c;
    font-size: 18px;
}

.loya-outbound-test-script-head small {
    color: #6a7b92;
    line-height: 1.6;
}

.loya-outbound-test-script-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.loya-outbound-test-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid #d7e3f2;
    border-radius: 999px;
    background: #fff;
    color: #355070;
    box-shadow: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    appearance: none;
    transition: all 0.2s ease;
}

.loya-outbound-test-chip:hover:not(:disabled) {
    border-color: #bcd2f3;
    background: #f8fbff;
    color: #1f57d6;
}

.loya-outbound-test-chip.active {
    border-color: transparent;
    background: linear-gradient(135deg, #1f57d6 0%, #3f7cff 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(31, 87, 214, 0.18);
}

.loya-outbound-test-chip.highlight {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.loya-outbound-test-chip.warning {
    border-color: #f7d7a5;
    background: #fff7ed;
    color: #b45309;
}

.loya-outbound-test-chip.danger {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #be123c;
}

.loya-outbound-test-chip:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loya-outbound-test-step-brief {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
    margin-top: 14px;
}

.loya-outbound-test-step-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid #dbe5f1;
    border-radius: 16px;
    background: #fff;
}

.loya-outbound-test-step-card.expectation {
    background: linear-gradient(180deg, #f5f9ff 0%, #edf4ff 100%);
}

.loya-outbound-test-step-card span {
    color: #6f7d92;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.loya-outbound-test-step-card strong {
    color: #17305c;
    font-size: 15px;
    line-height: 1.6;
    word-break: break-word;
}

.loya-outbound-test-step-card p {
    margin: 0;
    color: #5d6b80;
    line-height: 1.7;
}

.loya-outbound-test-qc-report {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.loya-outbound-test-qc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
}

.loya-outbound-test-qc-item,
.loya-outbound-test-qc-score-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 16px;
    border: 1px solid #dbe5f1;
    border-radius: 18px;
    background: #f8fbff;
}

.loya-outbound-test-qc-item.highlight {
    border-color: transparent;
    background: linear-gradient(135deg, #1f57d6 0%, #3f7cff 100%);
}

.loya-outbound-test-qc-item span,
.loya-outbound-test-qc-score-card span {
    color: #6f7d92;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.loya-outbound-test-qc-item strong {
    color: #17305c;
    font-size: 16px;
    line-height: 1.6;
    word-break: break-word;
}

.loya-outbound-test-qc-item small,
.loya-outbound-test-qc-score-card small {
    color: #6a7b92;
    line-height: 1.6;
}

.loya-outbound-test-qc-item.highlight span,
.loya-outbound-test-qc-item.highlight strong,
.loya-outbound-test-qc-item.highlight small {
    color: #fff;
}

.loya-outbound-test-qc-score-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
}

.loya-outbound-test-qc-score-card {
    padding: 15px 16px;
    border-color: #dce6f2;
    border-radius: 16px;
    background: #fff;
}

.loya-outbound-test-qc-score-card strong {
    color: #17305c;
    font-size: 24px;
    line-height: 1.2;
    word-break: break-word;
}

.loya-outbound-test-qc-score-card.positive {
    border-color: #c7ecd3;
    background: linear-gradient(180deg, #f4fbf7 0%, #eefbf4 100%);
}

.loya-outbound-test-qc-score-card.neutral {
    border-color: #d8e5ff;
    background: linear-gradient(180deg, #f6f9ff 0%, #eff4ff 100%);
}

.loya-outbound-test-qc-score-card.warning {
    border-color: #f4d5a6;
    background: linear-gradient(180deg, #fff8ef 0%, #fff4e7 100%);
}

.loya-outbound-chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 18px;
    margin: 18px 0 20px;
}

.loya-outbound-cockpit-panel {
    display: grid;
    gap: 18px;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.06);
}

.loya-outbound-cockpit-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.loya-outbound-cockpit-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.5fr);
    gap: 18px;
    align-items: start;
    min-width: 0;
}

.loya-outbound-cockpit-hero {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(160deg, #0f172a 0%, #1d4ed8 55%, #3b82f6 100%);
    color: #fff;
    box-shadow: 0 22px 48px rgba(37, 99, 235, 0.24);
    min-width: 0;
}

.loya-outbound-cockpit-hero-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.loya-outbound-cockpit-hero-head span {
    display: inline-flex;
    color: rgba(219, 234, 254, 0.82);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.loya-outbound-cockpit-hero-head h3 {
    margin: 10px 0 8px;
    color: #fff;
    font-size: clamp(38px, 5vw, 54px);
    line-height: 1;
}

.loya-outbound-cockpit-hero-head p {
    margin: 0;
    color: rgba(219, 234, 254, 0.82);
    font-size: 13px;
    line-height: 1.7;
}

.loya-outbound-cockpit-hero-badges {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.loya-outbound-cockpit-hero-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 900;
}

.loya-outbound-cockpit-hero-badges span.positive {
    color: #dcfce7;
    background: rgba(34, 197, 94, 0.2);
}

.loya-outbound-cockpit-hero-badges span.accent {
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.26);
}

.loya-outbound-cockpit-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.loya-outbound-cockpit-kpi {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    min-width: 0;
}

.loya-outbound-cockpit-kpi-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    flex: 0 0 38px;
}

.loya-outbound-cockpit-kpi-body {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.loya-outbound-cockpit-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.loya-outbound-cockpit-kpi-body span {
    color: rgba(219, 234, 254, 0.82);
    font-size: 11px;
    font-weight: 900;
}

.loya-outbound-cockpit-kpi-top em {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.loya-outbound-cockpit-kpi-top em i {
    font-style: normal;
    line-height: 1;
}

.loya-outbound-cockpit-kpi-top em.positive {
    color: #dcfce7;
    background: rgba(34, 197, 94, 0.18);
}

.loya-outbound-cockpit-kpi-top em.neutral {
    color: #dbeafe;
    background: rgba(96, 165, 250, 0.18);
}

.loya-outbound-cockpit-kpi-top em.warning {
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.18);
}

.loya-outbound-cockpit-kpi-body strong {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
}

.loya-outbound-cockpit-kpi-body small {
    color: rgba(219, 234, 254, 0.78);
    font-size: 12px;
    line-height: 1.5;
}

.loya-outbound-cockpit-kpi.connected .loya-outbound-cockpit-kpi-icon {
    background: rgba(16, 185, 129, 0.24);
}

.loya-outbound-cockpit-kpi.effective .loya-outbound-cockpit-kpi-icon {
    background: rgba(139, 92, 246, 0.24);
}

.loya-outbound-cockpit-kpi.intent .loya-outbound-cockpit-kpi-icon {
    background: rgba(245, 158, 11, 0.24);
}

.loya-outbound-cockpit-kpi.pending .loya-outbound-cockpit-kpi-icon {
    background: rgba(251, 191, 36, 0.22);
}

.loya-outbound-cockpit-kpi.dnd .loya-outbound-cockpit-kpi-icon {
    background: rgba(52, 211, 153, 0.22);
}

.loya-outbound-cockpit-kpi.risk .loya-outbound-cockpit-kpi-icon {
    background: rgba(248, 113, 113, 0.24);
}

.loya-outbound-cockpit-kpi.agent .loya-outbound-cockpit-kpi-icon,
.loya-outbound-cockpit-kpi.task .loya-outbound-cockpit-kpi-icon {
    background: rgba(96, 165, 250, 0.24);
}

.loya-outbound-chart-grid-cockpit {
    margin: 0;
    min-width: 0;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
}

.loya-outbound-chart-card-inner {
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.045);
    min-width: 0;
}

.loya-outbound-chart-card {
    display: grid;
    gap: 18px;
}

.loya-outbound-chart-summary-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: -2px;
}

.loya-outbound-chart-summary-strip span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    color: #475569;
    background: #eef2ff;
    font-size: 12px;
    font-weight: 800;
}

.loya-outbound-chart-summary-strip strong {
    margin-right: 6px;
    color: #0f172a;
    font-weight: 900;
}

.loya-outbound-chart-summary-strip.funnel span {
    background: linear-gradient(90deg, rgba(219, 234, 254, 0.92) 0%, rgba(237, 242, 255, 0.98) 100%);
}

.loya-outbound-chart-summary-strip.outcome span {
    background: linear-gradient(90deg, rgba(236, 253, 245, 0.96) 0%, rgba(239, 246, 255, 0.96) 100%);
}

.loya-outbound-funnel-chart {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
    min-height: 320px;
    min-width: 0;
}

.loya-outbound-funnel-bar-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 12px;
    height: 100%;
}

.loya-outbound-funnel-bar-meta {
    display: grid;
    gap: 4px;
}

.loya-outbound-funnel-bar-meta span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.loya-outbound-funnel-bar-meta strong {
    color: #0f172a;
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}

.loya-outbound-funnel-bar-meta small,
.loya-outbound-donut-legend-item small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.loya-outbound-funnel-bar-track {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: flex-end;
    padding: 10px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(226, 232, 240, 0.35) 0%, rgba(241, 245, 249, 0.92) 100%);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
    overflow: hidden;
}

.loya-outbound-funnel-bar-track::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 16px;
    background: repeating-linear-gradient(to top, rgba(148, 163, 184, 0.12), rgba(148, 163, 184, 0.12) 1px, transparent 1px, transparent 25%);
    pointer-events: none;
}

.loya-outbound-funnel-bar-fill {
    position: relative;
    width: 100%;
    min-height: 16px;
    border-radius: 16px;
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.18);
    z-index: 1;
}

.loya-outbound-funnel-bar-fill.calls {
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
}

.loya-outbound-funnel-bar-fill.connected {
    background: linear-gradient(180deg, #34d399 0%, #059669 100%);
    box-shadow: 0 16px 28px rgba(5, 150, 105, 0.2);
}

.loya-outbound-funnel-bar-fill.effective {
    background: linear-gradient(180deg, #a78bfa 0%, #7c3aed 100%);
    box-shadow: 0 16px 28px rgba(124, 58, 237, 0.2);
}

.loya-outbound-funnel-bar-fill.intent {
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 16px 28px rgba(245, 158, 11, 0.2);
}

.loya-outbound-funnel-bar-rate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    width: fit-content;
    padding: 0 10px;
    border-radius: 999px;
    color: #334155;
    background: #eef2ff;
    font-size: 12px;
    font-weight: 900;
}

.loya-outbound-donut-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
    justify-items: center;
    min-width: 0;
}

.loya-outbound-donut-chart {
    width: min(100%, 260px);
    aspect-ratio: 1;
    margin: 0 auto;
    padding: 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.56), 0 20px 40px rgba(15, 23, 42, 0.08);
}

.loya-outbound-donut-core {
    width: 58%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    gap: 4px;
    border-radius: 50%;
    text-align: center;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.loya-outbound-donut-core strong {
    color: #0f172a;
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

.loya-outbound-donut-core span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.loya-outbound-donut-legend {
    display: grid;
    gap: 10px;
    width: 100%;
}

.loya-outbound-donut-legend-item {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    background: #fff;
    min-width: 0;
}

.loya-outbound-donut-legend-item > div {
    min-width: 0;
}

.loya-outbound-donut-legend-item b {
    max-width: 100%;
}

.loya-outbound-donut-legend-item strong {
    display: block;
    margin-bottom: 2px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.loya-outbound-donut-legend-item b {
    color: #1e293b;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.loya-outbound-donut-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.loya-outbound-donut-dot.connected {
    background: #2563eb;
}

.loya-outbound-donut-dot.dnd {
    background: #10b981;
}

.loya-outbound-donut-dot.pending {
    background: #f59e0b;
}

.loya-outbound-donut-dot.risk {
    background: #ef4444;
}

.loya-outbound-settings-grid label {
    display: grid;
    gap: 8px;
    color: #334155;
    font-weight: 800;
}

.loya-outbound-detail-modal {
    width: min(960px, calc(100vw - 32px));
}

.loya-outbound-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.loya-outbound-field-span-2 {
    grid-column: span 2;
}

.loya-outbound-check {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--loya-outbound-border);
    border-radius: 14px;
    background: var(--loya-outbound-soft);
}

.loya-outbound-message {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 13px;
    font-weight: 850;
}

    .loya-outbound-message.success {
        color: #047857;
        border-color: #bbf7d0;
        background: #ecfdf5;
    }

    .loya-outbound-message.error {
        color: #be123c;
        border-color: #fecdd3;
        background: #fff1f2;
    }

.loya-outbound-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.loya-outbound-agent-list {
    grid-template-columns: 1fr;
    gap: 12px;
}

.loya-outbound-agent-header {
    display: grid;
    grid-template-columns: minmax(190px, 1.25fr) minmax(120px, 0.8fr) minmax(160px, 1fr) minmax(170px, 1fr) minmax(190px, 1.2fr) 234px;
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 16px 16px 10px 10px;
    background: #f8fafc;
    box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.12);
    margin: 0 0 10px;
}

.loya-outbound-agent-header-cell {
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.loya-outbound-agent-header-cell:last-child {
    text-align: right;
}

.loya-outbound-agent-row {
    display: grid;
    grid-template-columns: minmax(190px, 1.25fr) minmax(120px, 0.8fr) minmax(160px, 1fr) minmax(170px, 1fr) minmax(190px, 1.2fr) 234px;
    gap: 14px;
    align-items: center;
    background: #fff;
    border-color: rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.loya-outbound-agent-list > .loya-outbound-agent-row:nth-child(2n) {
    background: #fcfdff;
}

.loya-outbound-agent-list > .loya-outbound-agent-row:hover {
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    transform: translateY(-1px);
}

.loya-outbound-agent-summary {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.loya-outbound-agent-cell,
.loya-outbound-agent-policy {
    min-width: 0;
}

.loya-outbound-agent-cell {
    display: grid;
    gap: 4px;
}

.loya-outbound-agent-summary h3,
.loya-outbound-agent-cell strong {
    margin: 0;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loya-outbound-agent-summary p,
.loya-outbound-agent-summary small,
.loya-outbound-agent-cell span,
.loya-outbound-agent-cell small {
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loya-outbound-agent-cell span {
    display: none;
    font-weight: 900;
}

.loya-outbound-agent-policy {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.loya-outbound-agent-policy span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    color: #475569;
    background: #f1f5f9;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.loya-outbound-agent-policy span.allow {
    color: #047857;
    background: #dcfce7;
}

.loya-outbound-agent-policy span.deny {
    color: #be123c;
    background: #ffe4e6;
}

.loya-outbound-agent-actions {
    justify-content: flex-end;
    align-self: center;
    min-width: 234px;
}

.loya-outbound-agent-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    width: 92px;
    min-height: 32px;
    padding: 0 11px 0 30px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: #ef4444;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 8px 18px rgba(239, 68, 68, 0.22);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.18s ease, box-shadow 0.18s ease, padding 0.18s ease;
}

.loya-outbound-agent-switch::before {
    content: "";
    position: absolute;
    left: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22);
    transition: transform 0.18s ease;
}

.loya-outbound-agent-switch.active {
    justify-content: flex-start;
    padding: 0 30px 0 11px;
    background: #16a34a;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 8px 18px rgba(22, 163, 74, 0.2);
}

.loya-outbound-agent-switch.active::before {
    transform: translateX(60px);
}

.loya-outbound-agent-switch:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.loya-outbound-agent-tips {
    background: #fbfdff;
}

.loya-outbound-handoff-header {
    grid-template-columns: minmax(190px, 0.95fr) minmax(260px, 1.45fr) minmax(180px, 0.95fr) minmax(220px, 1.1fr) minmax(160px, 0.82fr) 186px;
}

.loya-outbound-handoff-list {
    grid-template-columns: 1fr;
    gap: 12px;
}

.loya-outbound-handoff-row {
    grid-template-columns: minmax(190px, 0.95fr) minmax(260px, 1.45fr) minmax(180px, 0.95fr) minmax(220px, 1.1fr) minmax(160px, 0.82fr) 186px;
    gap: 16px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.loya-outbound-handoff-summary {
    gap: 8px;
}

.loya-outbound-handoff-summary h3 {
    font-size: 14px;
}

.loya-outbound-handoff-summary p {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
}

.loya-outbound-handoff-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.loya-outbound-handoff-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    color: #475569;
    background: #eff6ff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.loya-outbound-handoff-cell strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.loya-outbound-handoff-cell small {
    white-space: normal;
}

.loya-outbound-handoff-cell:last-of-type strong {
    white-space: nowrap;
    display: block;
}

.loya-outbound-handoff-tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.loya-outbound-handoff-tag.allow {
    color: #047857;
    background: #dcfce7;
}

.loya-outbound-handoff-tag.warning {
    color: #b45309;
    background: #fef3c7;
}

.loya-outbound-handoff-tag.neutral {
    color: #475569;
    background: #e2e8f0;
}

.loya-outbound-handoff-actions {
    min-width: 186px;
    flex-direction: column;
    align-items: stretch;
}

.loya-outbound-handoff-actions > * {
    width: 100%;
}

.loya-outbound-handoff-callback {
    justify-content: center;
}

html[data-mode="dark"] .loya-outbound-handoff-meta span {
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.18);
}

.loya-outbound-script-list {
    grid-template-columns: 1fr;
    gap: 12px;
}

.loya-outbound-script-header {
    display: grid;
    grid-template-columns: minmax(190px, 1.2fr) minmax(110px, 0.7fr) minmax(190px, 1.2fr) minmax(170px, 1fr) minmax(210px, 1.25fr) 156px;
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 16px 16px 10px 10px;
    background: #f8fafc;
    box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.12);
    margin: 0 0 10px;
}

.loya-outbound-script-header-cell {
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.loya-outbound-script-header-cell:last-child {
    text-align: right;
}

.loya-outbound-script-row {
    display: grid;
    grid-template-columns: minmax(190px, 1.2fr) minmax(110px, 0.7fr) minmax(190px, 1.2fr) minmax(170px, 1fr) minmax(210px, 1.25fr) 156px;
    gap: 14px;
    align-items: center;
    background: #fff;
    border-color: rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.loya-outbound-script-list > .loya-outbound-script-row:nth-child(2n) {
    background: #fcfdff;
}

.loya-outbound-script-list > .loya-outbound-script-row:hover {
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    transform: translateY(-1px);
}

.loya-outbound-script-summary,
.loya-outbound-script-cell {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.loya-outbound-script-summary h3,
.loya-outbound-script-cell strong {
    margin: 0;
    overflow: hidden;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loya-outbound-script-summary p,
.loya-outbound-script-cell span,
.loya-outbound-script-cell small {
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loya-outbound-script-cell span {
    display: none;
    font-weight: 900;
}

.loya-outbound-script-policy {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.loya-outbound-script-policy span {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 24px;
    padding: 0 8px;
    overflow: hidden;
    border-radius: 999px;
    color: #475569;
    background: #f1f5f9;
    font-size: 11px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loya-outbound-script-policy span.allow {
    color: #047857;
    background: #dcfce7;
}

.loya-outbound-script-policy span.deny {
    color: #be123c;
    background: #ffe4e6;
}

.loya-outbound-script-actions {
    justify-content: flex-end;
    align-self: center;
    min-width: 156px;
}

.loya-outbound-script-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    width: 74px;
    min-height: 32px;
    padding: 0 11px 0 30px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: #ef4444;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 8px 18px rgba(239, 68, 68, 0.22);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, box-shadow 0.18s ease, padding 0.18s ease;
}

.loya-outbound-script-switch::before {
    content: "";
    position: absolute;
    left: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22);
    transition: transform 0.18s ease;
}

.loya-outbound-script-switch.active {
    justify-content: flex-start;
    padding: 0 30px 0 11px;
    background: #16a34a;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 8px 18px rgba(22, 163, 74, 0.2);
}

.loya-outbound-script-switch.active::before {
    transform: translateX(42px);
}

.loya-outbound-script-switch:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.loya-outbound-script-tips {
    background: #fbfdff;
}

@media (max-width: 1260px) {
    .loya-outbound-records-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .loya-outbound-records-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .loya-outbound-records-actions {
        grid-column: 1 / -1;
    }

    .loya-outbound-records-list-header,
    .loya-outbound-records-row {
        grid-template-columns: minmax(190px, 1.1fr) minmax(150px, 0.9fr) minmax(220px, 1fr) minmax(220px, 1fr);
    }

    .loya-outbound-records-actions-row {
        grid-column: span 1;
        justify-content: flex-start;
        min-width: 0;
    }

    .loya-outbound-script-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .loya-outbound-chart-grid {
        grid-template-columns: 1fr;
    }

    .loya-outbound-cockpit-layout {
        grid-template-columns: 1fr;
    }

    .loya-outbound-chart-grid-cockpit {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .loya-outbound-records-overview,
    .loya-outbound-records-filter-grid {
        grid-template-columns: 1fr;
    }

    .loya-outbound-records-table-head {
        flex-direction: column;
    }

    .loya-outbound-records-actions .admin-small-button {
        width: 100%;
    }

    .loya-outbound-records-list-header {
        display: none;
    }

    .loya-outbound-records-row {
        grid-template-columns: 1fr;
    }

    .loya-outbound-records-cell span {
        display: block;
    }

    .loya-outbound-records-summary p,
    .loya-outbound-records-summary small,
    .loya-outbound-records-cell strong,
    .loya-outbound-records-cell small {
        white-space: normal;
    }

    .loya-outbound-script-metrics {
        grid-template-columns: 1fr;
    }

    .loya-outbound-script-metric-card {
        padding: 16px;
    }

    .loya-outbound-funnel-chart {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .loya-outbound-donut-wrap {
        grid-template-columns: 1fr;
    }

    .loya-outbound-cockpit-panel {
        padding: 16px;
    }

    .loya-outbound-cockpit-hero-head {
        flex-direction: column;
    }

    .loya-outbound-cockpit-hero-badges {
        justify-items: start;
    }

    .loya-outbound-cockpit-mini-grid {
        grid-template-columns: 1fr;
    }

    .loya-outbound-chart-summary-strip {
        gap: 8px;
    }

    .loya-outbound-chart-summary-strip span {
        width: 100%;
        justify-content: flex-start;
    }

    .loya-outbound-cockpit-kpi-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .loya-outbound-script-metric-top,
    .loya-outbound-script-metric-value {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

.loya-outbound-nowrap {
    white-space: nowrap;
}

.loya-outbound-leads-table {
    min-width: 1500px;
}

.loya-outbound-task-table {
    min-width: 1640px;
}

.loya-outbound-task-workspace {
    display: grid;
    grid-template-columns: minmax(640px, 1.66fr) minmax(360px, 0.78fr);
    gap: 24px;
    align-items: start;
}

.loya-outbound-task-list-pane {
    min-width: 0;
}

.loya-outbound-task-filter-bar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 156px 124px 84px;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.045);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

    .loya-outbound-task-filter-bar input,
    .loya-outbound-task-filter-bar select {
        min-height: 48px;
        border-radius: 18px;
        border: 1px solid rgba(226, 232, 240, 0.98);
        background: rgba(255, 255, 255, 0.96);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
    }

    .loya-outbound-task-filter-bar .admin-small-button {
        min-height: 48px;
        border-radius: 18px;
        font-weight: 900;
    }

.loya-outbound-task-filter-button {
    border-color: rgba(37, 99, 235, 0.16) !important;
    background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%) !important;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.10) !important;
}

.loya-outbound-task-list-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.loya-outbound-task-list-header,
.loya-outbound-task-row {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) minmax(150px, 0.75fr) minmax(180px, 0.9fr) 86px minmax(260px, auto);
    gap: 14px;
    align-items: center;
}

.loya-outbound-task-list-header {
    padding: 2px 14px 10px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.loya-outbound-task-empty {
    padding: 30px 20px;
    border: 1px dashed rgba(203, 213, 225, 0.9);
    border-radius: 22px;
    color: #64748b;
    background: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    text-align: center;
}

.loya-outbound-task-log-pane {
    display: grid;
    gap: 12px;
    position: sticky;
    top: 24px;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.055);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.loya-outbound-task-log-badge {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border-radius: 999px;
    color: #2563eb;
    background: rgba(239, 246, 255, 0.92);
    border: 1px solid rgba(191, 219, 254, 0.95);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.loya-outbound-task-log-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

    .loya-outbound-task-log-head span {
        color: #2563eb;
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .loya-outbound-task-log-head h2 {
        margin: 6px 0 4px;
        color: #0f172a;
        font-size: 20px;
        font-weight: 900;
    }

    .loya-outbound-task-log-head p {
        margin: 0;
        color: #64748b;
        font-size: 12px;
        line-height: 1.7;
    }

.loya-outbound-task-log-summary {
    padding: 14px 16px;
    border-radius: 18px;
}

.loya-outbound-task-log-list {
    max-height: calc(100vh - 280px);
    overflow: auto;
    padding-right: 4px;
}

.loya-outbound-task-log-transcript {
    padding: 10px 12px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.24);
    color: #334155;
    font-size: 12px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.loya-outbound-task-row {
    min-height: 112px;
    padding: 16px 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.76);
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.035);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

    .loya-outbound-task-row:hover {
        border-color: rgba(191, 219, 254, 0.98);
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 18px 40px rgba(37, 99, 235, 0.08);
        transform: translateY(-1px);
    }

    .loya-outbound-task-row.active {
        border-color: rgba(147, 197, 253, 0.98);
        background: linear-gradient(90deg, rgba(239, 246, 255, 0.98) 0%, rgba(255, 255, 255, 0.96) 44%);
        box-shadow: inset 3px 0 0 #60a5fa, 0 20px 42px rgba(37, 99, 235, 0.10);
    }

.loya-outbound-task-primary {
    display: grid;
    gap: 9px;
    min-width: 0;
}

.loya-outbound-task-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

    .loya-outbound-task-title-row strong {
        min-width: 0;
        overflow: hidden;
        color: #0f172a;
        font-size: 16px;
        font-weight: 900;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .loya-outbound-task-title-row span {
        flex: 0 0 auto;
        padding: 3px 9px;
        border-radius: 999px;
        color: #64748b;
        background: rgba(241, 245, 249, 0.92);
        border: 1px solid rgba(226, 232, 240, 0.92);
        font-size: 10px;
        font-weight: 800;
    }

.loya-outbound-task-target {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.loya-outbound-task-tags,
.loya-outbound-task-policy {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

    .loya-outbound-task-policy label,
    .loya-outbound-task-progress label {
        display: block;
        width: 100%;
        margin: 0 0 2px;
        color: #a8b4c5;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .loya-outbound-task-tags span,
    .loya-outbound-task-policy span {
        min-height: 26px;
        display: inline-flex;
        align-items: center;
        padding: 0 10px;
        border-radius: 999px;
        color: #475569;
        background: rgba(248, 250, 252, 0.96);
        border: 1px solid rgba(226, 232, 240, 0.92);
        font-size: 10px;
        font-weight: 800;
        white-space: nowrap;
    }

.loya-outbound-task-policy {
    align-items: flex-start;
    align-content: center;
}

.loya-outbound-task-state {
    display: flex;
    justify-content: flex-start;
}

.loya-outbound-task-progress {
    align-content: start;
}

.loya-outbound-task-log-item {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.88);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.035);
}

    .loya-outbound-task-log-item .loya-outbound-kv {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 5px 10px;
    }

.loya-outbound-execution-meta {
    min-width: 168px;
    display: grid;
    gap: 3px;
}

    .loya-outbound-execution-meta strong {
        color: #0f172a;
        font-size: 12px;
        font-weight: 900;
    }

    .loya-outbound-execution-meta span {
        color: #64748b;
        font-size: 12px;
        line-height: 1.45;
    }

    .loya-outbound-leads-table td,
    .loya-outbound-leads-table th {
        white-space: nowrap;
    }

.loya-outbound-confirm-modal {
    width: min(560px, calc(100vw - 32px));
}

.loya-outbound-timeline-modal {
    width: min(880px, calc(100vw - 32px));
}

.loya-outbound-timeline-list {
    display: grid;
    gap: 14px;
}

.loya-outbound-timeline-item {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--loya-outbound-border);
    border-radius: 18px;
    background: var(--loya-outbound-soft);
}

.loya-outbound-timeline-time {
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.6;
}

.loya-outbound-timeline-body {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.loya-outbound-timeline-head {
    display: grid;
    gap: 4px;
}

    .loya-outbound-timeline-head strong {
        color: #0f172a;
        font-size: 14px;
    }

    .loya-outbound-timeline-head span,
    .loya-outbound-timeline-body p {
        color: #64748b;
        font-size: 12px;
        line-height: 1.6;
        margin: 0;
    }

    .loya-outbound-confirm-modal .loya-outbound-modal-body {
        padding-top: 18px;
    }

.loya-outbound-delete-button,
.loya-outbound-danger-button {
    color: #b91c1c;
}

.loya-outbound-toggle-group {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border: 1px solid var(--loya-outbound-border);
    border-radius: 12px;
    background: #f8fafc;
}

.loya-outbound-toggle {
    min-width: 54px;
    min-height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    color: #475569;
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

    .loya-outbound-toggle:hover:not(:disabled) {
        color: #0f172a;
        background: rgba(37, 99, 235, 0.08);
    }

    .loya-outbound-toggle.active {
        color: #1d4ed8;
        background: #dbeafe;
        box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
    }

    .loya-outbound-toggle:disabled {
        opacity: 0.48;
        cursor: not-allowed;
    }

    .loya-outbound-action-row .admin-small-button {
        min-height: 32px;
        padding: 0 10px;
        border-radius: 10px;
        font-size: 12px;
        white-space: nowrap;
    }

.loya-outbound-delete-button {
    color: #b91c1c !important;
    border-color: rgba(185, 28, 28, 0.18) !important;
    background: #fff1f2 !important;
}

    .loya-outbound-delete-button:hover:not(:disabled) {
        color: #991b1b !important;
        border-color: rgba(185, 28, 28, 0.3) !important;
        background: #ffe4e6 !important;
    }

.loya-outbound-wizard-modal {
    width: min(760px, 100%);
}

.loya-outbound-wizard-body {
    display: grid;
    gap: 18px;
}

.loya-member-page {
    display: grid;
    gap: 20px;
}

.loya-member-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.loya-member-stat-card {
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.045);
}

.loya-member-stat-card span {
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.loya-member-stat-card strong {
    color: #0f172a;
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

.loya-member-stat-card small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.loya-member-panel {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.loya-member-panel .admin-panel-head {
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.loya-member-panel .admin-panel-head > div:first-child {
    display: grid;
    gap: 4px;
}

.loya-member-panel .admin-panel-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.loya-member-panel-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}

.loya-member-panel-meta small {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid rgba(219, 234, 254, 0.96);
    border-radius: 999px;
    color: #5b6f90;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f6fd 100%);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.loya-member-toolbar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 136px 112px;
    gap: 12px;
    align-items: center;
}

.loya-member-toolbar input,
.loya-member-toolbar select,
.loya-member-form-grid input,
.loya-member-form-grid select {
    min-height: 42px;
    width: 100%;
    padding: 0 14px;
    border: 1px solid rgba(203, 213, 225, 0.96);
    border-radius: 14px;
    color: #0f172a;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.loya-member-toolbar input:focus,
.loya-member-toolbar select:focus,
.loya-member-form-grid input:focus,
.loya-member-form-grid select:focus {
    border-color: rgba(59, 130, 246, 0.72);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.loya-member-batchbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border: 1px solid rgba(219, 234, 254, 0.96);
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.loya-member-batch-check,
.loya-member-row-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.loya-member-batch-info {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    padding: 0 10px;
    min-height: 30px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
}

.loya-member-batch-actions {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.loya-member-batch-actions .admin-small-button,
.loya-member-pager-actions .admin-small-button {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 12px;
}

.loya-member-list {
    display: grid;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
}

.loya-member-list-header,
.loya-member-row {
    display: grid;
    grid-template-columns: 42px minmax(96px, 0.92fr) minmax(72px, 0.62fr) minmax(84px, 0.72fr) minmax(144px, 1.18fr) minmax(98px, 0.78fr) minmax(110px, 0.84fr) minmax(78px, 0.68fr) minmax(102px, 0.82fr) minmax(104px, 0.82fr) minmax(104px, 0.82fr) minmax(104px, 0.82fr) minmax(120px, 0.88fr);
    gap: 8px;
    align-items: center;
    min-width: 0;
}

.loya-member-list-header {
    padding: 9px 10px 7px;
    border: 1px solid rgba(219, 234, 254, 0.96);
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fd 100%);
    color: #94a3b8;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.loya-member-row {
    position: relative;
    padding: 12px 10px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.94) 100%);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.loya-member-row:nth-child(2n) {
    background: linear-gradient(180deg, rgba(252, 253, 255, 0.98) 0%, rgba(248, 250, 252, 0.92) 100%);
}

.loya-member-row:hover {
    transform: translateY(-1px);
    border-color: rgba(147, 197, 253, 0.92);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.07);
}

.loya-member-row.restricted {
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.98) 0%, rgba(246, 248, 252, 0.95) 100%);
}

.loya-member-main,
.loya-member-cell {
    display: grid;
    gap: 2px;
    min-width: 0;
    align-content: center;
}

.loya-member-select-cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loya-member-position-cell {
    align-content: start;
}

.loya-member-position-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.loya-member-main strong,
.loya-member-cell strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 11px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loya-member-main span,
.loya-member-cell span,
.loya-member-main small,
.loya-member-cell small {
    overflow: hidden;
    color: #64748b;
    font-size: 10px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loya-member-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.loya-member-status.active {
    color: #047857;
    background: #dcfce7;
}

.loya-member-status.inactive {
    color: #b45309;
    background: #fef3c7;
}

.loya-member-status-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.loya-member-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    padding: 0 8px 0 5px;
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    color: #475569;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    white-space: nowrap;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.loya-member-switch-track {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 28px;
    height: 16px;
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.9);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.loya-member-switch-thumb {
    width: 12px;
    height: 12px;
    margin-left: 2px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
    transition: transform 0.18s ease;
}

.loya-member-switch-label {
    line-height: 1;
}

.loya-member-switch.active {
    color: #166534;
    background: linear-gradient(180deg, #f2fbf5 0%, #e9f9ee 100%);
    border-color: rgba(34, 197, 94, 0.24);
}

.loya-member-switch.active .loya-member-switch-track {
    background: rgba(34, 197, 94, 0.72);
}

.loya-member-switch.active .loya-member-switch-thumb {
    transform: translateX(12px);
}

.loya-member-switch.inactive {
    color: #b45309;
    background: linear-gradient(180deg, #fffaf0 0%, #fff4db 100%);
    border-color: rgba(245, 158, 11, 0.22);
}

.loya-member-switch.inactive .loya-member-switch-track {
    background: rgba(251, 191, 36, 0.75);
}

.loya-member-switch:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.loya-member-switch:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.loya-member-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.loya-member-actions .admin-small-button {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 11px;
}

.loya-member-position-button {
    color: #475569;
    border-color: rgba(203, 213, 225, 0.96);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.loya-member-edit-button {
    color: #1d4ed8;
    border-color: rgba(191, 219, 254, 0.96);
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
}

.loya-member-type-cell strong,
.loya-member-time-cell strong,
.loya-member-login-cell strong {
    font-size: 10px;
    font-weight: 800;
}

.loya-member-type-cell strong {
    display: inline-flex;
    align-items: center;
    width: max-content;
    min-height: 24px;
    max-width: 100%;
    padding: 0 8px;
    border-radius: 999px;
    color: #1e40af;
    background: rgba(239, 246, 255, 0.92);
}

.loya-member-time-cell strong,
.loya-member-login-cell strong {
    color: #334155;
}

.loya-member-login-cell strong {
    font-family: Consolas, "SFMono-Regular", "Courier New", monospace;
}

.loya-member-status-cell small,
.loya-member-time-cell small,
.loya-member-login-cell small {
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.5;
}

.loya-member-empty {
    padding: 34px 18px;
    border: 1px dashed rgba(203, 213, 225, 0.9);
    border-radius: 18px;
    color: #64748b;
    background: #fff;
    font-size: 13px;
    text-align: center;
}

.loya-member-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.loya-member-pager-info {
    color: #5b6f90;
    font-size: 12px;
    font-weight: 800;
    padding: 0 12px;
    min-height: 32px;
    border: 1px solid rgba(219, 234, 254, 0.96);
    border-radius: 999px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fd 100%);
}

.loya-member-pager-actions {
    display: inline-flex;
    gap: 8px;
    padding: 4px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
}

.loya-member-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.loya-member-form-grid label {
    display: grid;
    gap: 8px;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}

.loya-member-form-grid label span {
    color: #475569;
}

.loya-member-form-grid .span-2 {
    grid-column: span 2;
}

.loya-member-modal-note {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.7;
}

.loya-member-position-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    color: #475569;
    background: rgba(241, 245, 249, 0.92);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.loya-member-position-chip.primary {
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, 0.2);
    background: rgba(239, 246, 255, 0.96);
}

.loya-member-position-modal {
    width: min(940px, 100%);
}

.admin-shell .loya-member-position-modal .loya-outbound-modal-head {
    min-height: 86px !important;
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) 48px !important;
    align-items: center !important;
    justify-items: center !important;
    padding: 16px 18px 14px !important;
}

.admin-shell .loya-member-position-modal .loya-outbound-modal-head::before {
    display: none !important;
    content: none !important;
}

.admin-shell .loya-member-position-modal .loya-outbound-modal-head > div:first-child {
    display: grid !important;
    grid-column: 2 !important;
    justify-items: center !important;
    gap: 4px !important;
    text-align: center !important;
}

.loya-member-position-modal .loya-outbound-modal-body {
    padding: 18px 20px 20px;
}

.loya-member-position-modal .loya-outbound-modal-actions {
    padding: 12px 20px 16px;
}

.admin-shell .loya-member-position-modal .loya-outbound-modal-head h2 {
    margin: 2px 0 !important;
    font-size: 24px !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
}

.admin-shell .loya-member-position-modal .loya-outbound-modal-head p {
    max-width: 680px;
    font-size: 12px;
    line-height: 1.65;
}

.admin-shell .loya-member-position-modal .loya-outbound-modal-close {
    grid-column: 3 !important;
    justify-self: end !important;
    width: 46px !important;
    height: 32px !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #111827 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 18px !important;
    font-weight: 400 !important;
}

.admin-shell .loya-member-position-modal .loya-outbound-modal-close:hover,
.admin-shell .loya-member-position-modal .loya-outbound-modal-close:focus-visible {
    color: #fff !important;
    background: #e81123 !important;
}

.loya-member-position-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
    gap: 16px;
    align-items: start;
}

.loya-member-position-block {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.88) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.loya-member-position-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.loya-member-position-head strong {
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
}

.loya-member-position-head small {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #5b6f90;
    background: rgba(239, 246, 255, 0.96);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.loya-member-position-listview-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 122px 84px;
    gap: 10px;
    align-items: center;
    padding: 0 12px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.loya-member-position-listview-head > div:last-child {
    text-align: right;
}

.loya-member-position-records {
    display: grid;
    gap: 8px;
}

.loya-member-position-record {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 122px 84px;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 14px;
    background: #fff;
}

.loya-member-position-record.inactive {
    opacity: 0.64;
    background: rgba(248, 250, 252, 0.92);
}

.loya-member-position-record-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.loya-member-position-record-main strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loya-member-position-record-main small {
    color: #64748b;
    font-size: 11px;
    line-height: 1.55;
    white-space: normal;
}

.loya-member-position-record-state {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.loya-member-position-record-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.loya-member-position-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    color: #1d4ed8;
    background: rgba(219, 234, 254, 0.92);
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.loya-member-position-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.loya-member-position-status.active {
    color: #047857;
    background: #dcfce7;
}

.loya-member-position-status.inactive {
    color: #b45309;
    background: #fef3c7;
}

.loya-member-position-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.loya-member-position-remark {
    min-width: 0;
}

.loya-member-position-remark {
    align-content: start;
}

.loya-member-position-modal .loya-outbound-modal-actions .admin-outline-button,
.loya-member-position-modal .loya-outbound-modal-actions .admin-primary-button {
    min-height: 38px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 12px;
}

.loya-member-position-record-actions .admin-small-button {
    min-height: 28px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 11px;
}

@media (max-width: 900px) {
    .loya-member-position-panel {
        grid-template-columns: 1fr;
    }

    .loya-member-position-listview-head {
        display: none;
    }

    .loya-member-position-record {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .loya-member-position-record-state,
    .loya-member-position-record-actions {
        justify-content: flex-start;
    }
}

.loya-position-list-header,
.loya-position-row {
    grid-template-columns: minmax(300px, 1.72fr) minmax(220px, 1.08fr) minmax(170px, 0.9fr) minmax(190px, 1fr) minmax(112px, 0.72fr);
}

.loya-position-list-header {
    padding-left: 16px;
    padding-right: 16px;
}

.loya-position-row {
    gap: 16px;
    padding: 16px;
    align-items: stretch;
}

.loya-position-page .admin-panel-head {
    align-items: center;
    flex-wrap: wrap;
}

.loya-position-toolbar {
    grid-template-columns: minmax(280px, 1fr) 112px;
}

.loya-position-main {
    gap: 10px;
    align-content: start;
}

.loya-position-main,
.loya-position-permission-cell,
.loya-position-type-cell,
.loya-position-time-cell {
    min-width: 0;
}

.loya-position-title-line {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.loya-position-main strong {
    font-size: 14px;
}

.loya-position-main > small {
    white-space: normal;
    line-height: 1.6;
}

.loya-position-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.loya-position-code,
.loya-position-department-text {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.loya-position-code {
    color: #1d4ed8;
    background: rgba(239, 246, 255, 0.96);
}

.loya-position-department-text {
    color: #475569;
    background: rgba(241, 245, 249, 0.96);
}

.loya-position-permission-cell {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-content: stretch;
}

.loya-position-stat-card {
    display: grid;
    gap: 4px;
    min-height: 100%;
    align-content: start;
    padding: 12px 12px 11px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
}

.loya-position-stat-card span {
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.loya-position-stat-card strong {
    font-size: 18px;
    line-height: 1.1;
}

.loya-position-stat-card small {
    color: #94a3b8;
    font-size: 11px;
}

.loya-position-type-cell,
.loya-position-time-cell {
    align-content: start;
    gap: 4px;
}

.loya-position-type-note {
    color: #1e40af;
    font-size: 11px;
    font-weight: 800;
    white-space: normal;
    line-height: 1.5;
}

.loya-position-time-cell span {
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
    white-space: normal;
}

.loya-position-actions {
    display: grid;
    gap: 8px;
    align-content: center;
    justify-items: stretch;
}

.loya-position-actions .admin-small-button {
    width: 100%;
}

.loya-member-batch-note {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.7;
}

.loya-member-batch-note.danger {
    color: #b91c1c;
    background: #fff1f2;
}

.loya-member-batch-result {
    display: grid;
    gap: 14px;
}

.loya-member-batch-result.success {
    border-color: rgba(34, 197, 94, 0.18);
}

.loya-member-batch-result.error {
    border-color: rgba(248, 113, 113, 0.2);
}

.loya-member-batch-result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.loya-member-batch-result-grid article {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 16px;
    background: #fff;
}

.loya-member-batch-result-grid strong {
    color: #0f172a;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.loya-member-batch-result-grid span {
    color: #475569;
    font-size: 12px;
    font-weight: 900;
}

.loya-member-batch-result-grid small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.7;
    word-break: break-all;
}

@media (max-width: 1260px) {
    .loya-member-overview {
        grid-template-columns: 1fr;
    }

    .loya-member-batch-result-grid {
        grid-template-columns: 1fr;
    }

    .loya-member-toolbar {
        grid-template-columns: 1fr 136px 112px;
    }

    .loya-member-batchbar {
        align-items: flex-start;
    }

    .loya-member-batch-info {
        padding-left: 0;
        padding-right: 0;
        background: transparent;
    }

    .loya-member-toolbar .admin-primary-button {
        grid-column: 1 / -1;
    }

    .loya-member-list-header,
    .loya-member-row {
        grid-template-columns: 40px minmax(90px, 0.9fr) minmax(68px, 0.58fr) minmax(80px, 0.68fr) minmax(132px, 1.12fr) minmax(92px, 0.74fr) minmax(100px, 0.8fr) minmax(74px, 0.64fr) minmax(96px, 0.78fr) minmax(96px, 0.78fr) minmax(96px, 0.78fr) minmax(96px, 0.78fr) minmax(112px, 0.82fr);
        min-width: 0;
    }

    .loya-member-actions {
        justify-content: flex-start;
    }

    .loya-position-list-header,
    .loya-position-row {
        grid-template-columns: minmax(240px, 1.5fr) minmax(210px, 1fr) minmax(150px, 0.88fr) minmax(170px, 0.95fr) minmax(108px, 0.7fr);
    }
}

@media (max-width: 1120px) {
    .loya-position-list-header {
        display: none;
    }

    .loya-position-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .loya-position-actions {
        grid-template-columns: repeat(2, minmax(0, 132px));
        justify-content: flex-start;
    }

    .loya-position-panel-meta {
        margin-left: 0;
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .loya-member-toolbar,
    .loya-member-form-grid {
        grid-template-columns: 1fr;
    }

    .loya-member-panel .admin-panel-head {
        align-items: flex-start;
    }

    .loya-member-panel-meta {
        margin-left: 0;
        justify-content: flex-start;
    }

    .loya-member-pager-actions {
        padding: 0;
        border: 0;
        background: transparent;
    }

    .loya-member-form-grid .span-2 {
        grid-column: span 1;
    }

    .loya-position-list-header,
    .loya-position-row {
        grid-template-columns: 1fr;
    }

    .loya-position-permission-cell {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .loya-position-actions {
        grid-template-columns: 1fr;
    }

    .loya-member-list-header {
        display: none;
    }

    .loya-member-row {
        grid-template-columns: 1fr;
        min-width: 0;
        gap: 12px;
        padding: 16px 14px;
    }

    .loya-member-select-cell {
        display: grid;
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 8px 12px;
        align-items: center;
        justify-content: stretch;
    }

    .loya-member-actions {
        grid-column: span 1;
        justify-content: flex-start;
    }

    .loya-member-main,
    .loya-member-cell {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 8px 12px;
        align-items: start;
    }

    .loya-member-main::before,
    .loya-member-cell::before,
    .loya-member-select-cell::before,
    .loya-member-actions::before {
        color: #94a3b8;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.08em;
        line-height: 1.4;
        text-transform: uppercase;
    }

    .loya-member-main::before,
    .loya-member-cell::before,
    .loya-member-select-cell::before {
        content: attr(data-title);
    }

    .loya-member-actions::before {
        content: attr(data-title);
        display: block;
        width: 100%;
    }

    .loya-member-main strong,
    .loya-member-cell strong,
    .loya-member-main span,
    .loya-member-cell span,
    .loya-member-main small,
    .loya-member-cell small {
        white-space: normal;
    }

    .loya-member-status-row,
    .loya-member-position-list {
        min-height: 28px;
    }

    .loya-member-actions .admin-small-button {
        flex: 0 0 auto;
    }
}

.loya-outbound-wizard-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.loya-outbound-wizard-step {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--loya-outbound-border);
    border-radius: 14px;
    color: #475569;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

    .loya-outbound-wizard-step.active {
        color: #1d4ed8;
        border-color: rgba(37, 99, 235, 0.18);
        background: #eff6ff;
    }

.loya-outbound-wizard-grid {
    margin-top: 16px;
}

.loya-outbound-field-span-2 {
    grid-column: 1 / -1;
}

.loya-outbound-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.loya-outbound-modal {
    width: min(920px, 100%);
    max-height: min(820px, calc(100vh - 48px));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.26);
}

.loya-outbound-modal-head,
.loya-outbound-modal-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: #f8fafc;
}

    .loya-outbound-modal-head span {
        display: inline-flex;
        color: var(--accent);
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .loya-outbound-modal-head h2 {
        margin: 8px 0 6px;
        color: #0f172a;
    }

    .loya-outbound-modal-head p {
        margin: 0;
        color: #64748b;
        font-size: 13px;
    }

.loya-outbound-modal-close {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    color: #334155;
    background: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.loya-outbound-modal-body {
    padding: 22px;
    overflow: auto;
}

.loya-outbound-modal-actions {
    align-items: center;
    justify-content: flex-end;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    border-bottom: 0;
}

.loya-image-generation-page {
    --loya-image-border: #e2e8f0;
    --loya-image-muted: #64748b;
    --loya-image-primary: #2563eb;
    --loya-image-card: #ffffff;
    --loya-image-soft: #f8fafc;
}

.loya-image-workbench {
    display: grid;
    grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.loya-image-card {
    min-width: 0;
    border: 1px solid var(--loya-image-border);
    border-radius: 18px;
    background: var(--loya-image-card);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

.loya-image-settings-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: calc(100vh - 190px);
}

.loya-image-card-head {
    padding: 16px;
    border-bottom: 1px solid var(--loya-image-border);
    background: var(--loya-image-soft);
}

    .loya-image-card-head.split {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
    }

    .loya-image-card-head h2 {
        margin: 0;
        color: #0f172a;
        font-size: 15px;
    }

    .loya-image-card-head p {
        margin: 3px 0 0;
        color: var(--loya-image-muted);
        font-size: 12px;
        line-height: 1.55;
    }

.loya-image-settings-scroll {
    display: grid;
    gap: 12px;
    padding: 14px;
    overflow: auto;
}

.loya-image-block {
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
}

    .loya-image-block.white {
        background: #fff;
    }

    .loya-image-block.blue {
        border-color: #d7e3f4;
        background: #f8faff;
    }

    .loya-image-block.muted {
        background: #f9fafb;
    }

    .loya-image-block strong,
    .loya-image-block label span,
    .loya-mask-panel strong {
        color: #374151;
        font-weight: 800;
    }

    .loya-image-block p,
    .loya-image-block small,
    .loya-mask-panel p {
        color: #6b7280;
        font-size: 12px;
        line-height: 1.6;
    }

.loya-field-grid {
    display: grid;
    gap: 12px;
}

    .loya-field-grid.two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .loya-field-grid.compact {
        margin-top: 10px;
    }

.loya-field-row.action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 12px;
    align-items: end;
}

.loya-image-block label {
    display: grid;
    gap: 8px;
}

.loya-image-block input:not([type="checkbox"]),
.loya-image-block select,
.loya-image-block textarea {
    width: 100%;
    min-height: 38px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 10px;
    color: #0f172a;
    background: #fff;
    font: inherit;
    font-size: 13px;
    outline: none;
}

.loya-image-block textarea {
    resize: vertical;
}

    .loya-image-block input:focus,
    .loya-image-block select:focus,
    .loya-image-block textarea:focus {
        border-color: rgba(37, 99, 235, 0.72);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
    }

.loya-check-row {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 10px;
    color: #1e3a8a;
}

.loya-image-primary,
.loya-image-secondary {
    min-height: 36px;
    border: 1px solid var(--loya-image-primary);
    border-radius: 10px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--loya-image-primary);
    font-weight: 800;
    cursor: pointer;
}

    .loya-image-primary.purple {
        border-color: #7c3aed;
        background: #7c3aed;
    }

.loya-image-secondary {
    border-color: #cbd5e1;
    color: #334155;
    background: #fff;
}

    .loya-image-primary:disabled,
    .loya-image-secondary:disabled {
        cursor: not-allowed;
        opacity: 0.48;
    }

.loya-image-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.loya-capability-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

    .loya-capability-tags span,
    .loya-blue-pill,
    .loya-green-pill,
    .loya-image-status-pill {
        display: inline-flex;
        align-items: center;
        min-height: 28px;
        border-radius: 999px;
        padding: 0 10px;
        font-size: 12px;
        font-weight: 800;
    }

    .loya-capability-tags span,
    .loya-blue-pill {
        color: #2563eb;
        border: 1px solid #bfdbfe;
        background: #eff6ff;
    }

.loya-green-pill,
.loya-image-status-pill {
    color: #047857;
    border: 1px solid #bbf7d0;
    background: #ecfdf5;
}

.loya-status-text {
    color: #2563eb !important;
    white-space: pre-line;
}

.loya-image-side {
    display: grid;
    grid-template-rows: minmax(260px, 5fr) 14px minmax(240px, 4fr);
    gap: 14px;
}

.loya-reference-card,
.loya-result-card {
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.loya-reference-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 14px 14px 4px;
}

.loya-reference-grid,
.loya-result-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
    overflow: auto;
}

.loya-image-thumb-card,
.loya-result-item {
    width: 168px;
    padding: 8px;
    border: 1px solid #d7e3f4;
    border-radius: 14px;
    background: #fcfdff;
}

.loya-result-item {
    width: 200px;
}

    .loya-image-thumb-card img,
    .loya-result-item img {
        width: 100%;
        height: 112px;
        border-radius: 10px;
        display: block;
        object-fit: cover;
        background: #f3f4f6;
    }

    .loya-result-item img {
        height: 132px;
        background: #eff6ff;
    }

    .loya-image-thumb-card span,
    .loya-result-item span {
        display: inline-flex;
        margin-top: 8px;
        border-radius: 999px;
        padding: 4px 10px;
        color: #4338ca;
        background: #eef2ff;
        font-size: 12px;
        font-weight: 800;
    }

    .loya-image-thumb-card strong,
    .loya-result-item strong {
        display: block;
        margin-top: 8px;
        color: #111827;
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    .loya-result-item small {
        display: block;
        margin-top: 4px;
        color: #065f46;
        font-weight: 800;
    }

    .loya-result-item p {
        max-height: 72px;
        margin: 8px 0;
        padding: 8px;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        overflow: auto;
        color: #6b7280;
        background: #f9fafb;
        font-size: 12px;
    }

    .loya-result-item a {
        min-height: 34px;
        border: 1px solid #cbd5e1;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #334155;
        background: #fff;
        font-weight: 800;
    }

.loya-mask-panel,
.loya-empty-panel {
    margin: 14px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f9fafb;
}

@media (max-width: 1180px) {
    .loya-outbound-flow-demo-card {
        border-radius: 18px;
    }

    .loya-outbound-flow-toolbar,
    .loya-outbound-flow-status-panel,
    .loya-outbound-flow-canvas {
        border-radius: 10px;
    }

    .loya-outbound-test-grid,
    .loya-outbound-test-grid-bottom {
        grid-template-columns: 1fr;
    }

    .loya-outbound-test-summary-card {
        position: static;
    }

    .loya-outbound-test-script-head {
        flex-direction: column;
    }

    .loya-outbound-test-step-brief,
    .loya-outbound-test-qc-grid,
    .loya-outbound-test-qc-score-grid {
        grid-template-columns: 1fr;
    }

    .loya-outbound-test-dialogue-box .loya-outbound-live-bubble,
    .loya-outbound-test-dialogue-box .loya-outbound-live-bubble.assistant {
        width: 100%;
        justify-self: stretch;
    }

    .loya-outbound-metrics,
    .loya-outbound-rule-grid,
    .loya-outbound-capability-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .loya-image-workbench,
    .loya-field-grid.two,
    .loya-field-row.action-row,
    .loya-image-action-grid {
        grid-template-columns: 1fr;
    }

    .loya-image-settings-card {
        max-height: none;
    }
}

@media (max-width: 980px) {
    .admin-login-page,
    .admin-shell,
    .admin-workspace-grid,
    .admin-metric-grid,
    .admin-shortcut-grid,
    .admin-kanban-grid,
    .loya-outbound-metrics,
    .loya-outbound-form-grid,
    .loya-outbound-rule-grid,
    .loya-outbound-capability-grid,
    .loya-outbound-settings-grid {
        grid-template-columns: 1fr;
    }

    .admin-login-visual {
        display: none;
    }

    .admin-sidebar {
        position: static;
    }
}

/* 精细版后台视觉覆盖：登录页 */
.admin-auth-layout {
    min-height: 100vh;
    background: #f5f7fb;
}

.admin-login-page.admin-auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(520px, 1.08fr) minmax(480px, 0.92fr);
    background: radial-gradient(circle at 7% 10%, rgba(59, 130, 246, 0.18), transparent 28%), radial-gradient(circle at 92% 12%, rgba(159, 123, 63, 0.18), transparent 30%), linear-gradient(135deg, #f8fafc 0%, #f5f7fb 48%, #eef3ff 100%);
}

.admin-login-page .admin-login-visual {
    position: relative;
    min-height: 100vh;
    padding: clamp(42px, 5vw, 76px);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(circle at 16% 18%, rgba(96, 165, 250, 0.32), transparent 32%), radial-gradient(circle at 82% 78%, rgba(240, 215, 156, 0.24), transparent 30%), linear-gradient(145deg, #061735 0%, #0f2b63 45%, #102a56 68%, #8b642e 135%);
}

    .admin-login-page .admin-login-visual::before,
    .admin-login-page .admin-login-visual::after {
        content: "";
        position: absolute;
        border-radius: 999px;
        pointer-events: none;
    }

    .admin-login-page .admin-login-visual::before {
        width: 540px;
        height: 540px;
        right: -180px;
        top: -160px;
        background: rgba(255, 255, 255, 0.10);
        filter: blur(6px);
    }

    .admin-login-page .admin-login-visual::after {
        width: 360px;
        height: 360px;
        left: -120px;
        bottom: -120px;
        background: rgba(96, 165, 250, 0.18);
        filter: blur(10px);
    }

.admin-login-page .admin-login-visual-layer {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
}

.admin-login-page .admin-login-slogan-card {
    padding: clamp(28px, 4vw, 46px);
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
    box-shadow: 0 38px 100px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

    .admin-login-page .admin-login-slogan-card span {
        display: inline-flex;
        padding: 7px 12px;
        border-radius: 999px;
        color: #dbeafe;
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 0.16em;
        background: rgba(255, 255, 255, 0.12);
    }

    .admin-login-page .admin-login-slogan-card strong {
        display: block;
        margin-top: 22px;
        max-width: 560px;
        font-size: clamp(36px, 4.4vw, 64px);
        line-height: 1.04;
        letter-spacing: -0.06em;
    }

    .admin-login-page .admin-login-slogan-card p {
        margin: 20px 0 0;
        max-width: 560px;
        color: rgba(255, 255, 255, 0.74);
        font-size: 16px;
        line-height: 1.9;
    }

.admin-login-page .admin-login-visual-cards {
    margin-top: 26px;
    display: grid;
    gap: 14px;
}

    .admin-login-page .admin-login-visual-cards div {
        display: grid;
        grid-template-columns: 44px 96px 1fr;
        align-items: center;
        gap: 12px;
        padding: 18px 20px;
        border-radius: 22px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.10);
        box-shadow: 0 20px 55px rgba(0, 0, 0, 0.12);
    }

    .admin-login-page .admin-login-visual-cards small {
        color: #bfdbfe;
        font-size: 13px;
        font-weight: 900;
    }

    .admin-login-page .admin-login-visual-cards strong {
        margin: 0;
        color: #fff;
        font-size: 16px;
    }

    .admin-login-page .admin-login-visual-cards span {
        color: rgba(255, 255, 255, 0.66);
        font-size: 14px;
    }

.admin-login-page .admin-login-panel {
    min-height: 100vh;
    padding: clamp(34px, 5vw, 72px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.admin-login-page .admin-login-brand {
    width: min(560px, 100%);
    margin: 0 0 22px;
}

.admin-login-page .admin-auth-card {
    width: min(560px, 100%);
    padding: clamp(30px, 4vw, 48px);
    border-radius: 36px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.admin-login-page .admin-login-eyebrow,
.admin-page-eyebrow,
.admin-topbar-kicker {
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.admin-login-page .admin-login-heading h1 {
    margin: 10px 0 12px;
    color: #0f172a;
    font-size: clamp(42px, 5vw, 68px);
    letter-spacing: -0.07em;
}

.admin-login-page .admin-login-heading p {
    margin-bottom: 26px;
    color: #64748b;
    line-height: 1.8;
}

.admin-login-page .admin-login-form {
    display: grid;
    gap: 17px;
}

    .admin-login-page .admin-login-form label {
        display: grid;
        gap: 9px;
        color: #1e293b;
        font-size: 14px;
        font-weight: 900;
    }

    .admin-login-page .admin-login-form input {
        height: 54px;
        padding: 0 18px;
        border-radius: 18px;
        border: 1px solid rgba(37, 99, 235, 0.16);
        color: #0f172a;
        background: #eef4ff;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    }

        .admin-login-page .admin-login-form input:focus {
            border-color: rgba(37, 99, 235, 0.58);
            box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
        }

.admin-login-page .admin-login-button {
    height: 58px;
    border-radius: 20px;
    color: #171007;
    font-size: 17px;
    background: linear-gradient(135deg, #ffd49b 0%, #d98a37 46%, #bd5f10 100%);
    box-shadow: 0 22px 52px rgba(190, 95, 16, 0.28);
}

.admin-login-page .admin-auth-links-under-button {
    margin-top: 2px;
    gap: 16px;
}

    .admin-login-page .admin-auth-links-under-button span {
        width: 1px;
        height: 16px;
        background: rgba(100, 116, 139, 0.28);
    }

.admin-login-page .admin-text-link {
    color: #64748b;
    font-weight: 900;
}

.admin-login-page .admin-social-login {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.admin-login-page .admin-social-button {
    min-height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.admin-login-page .admin-login-note {
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(248, 250, 252, 0.84);
}

/* 精细版后台视觉覆盖：管理页 */
.admin-shell {
    min-height: 100vh;
    grid-template-columns: 286px minmax(0, 1fr);
    background: radial-gradient(circle at 18% 8%, rgba(37, 99, 235, 0.09), transparent 28%), linear-gradient(135deg, #eef4ff 0%, #f8fafc 44%, #f3f6fb 100%);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #081a3d 0%, #102a56 50%, #0f172a 100%);
    box-shadow: 18px 0 60px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

    .admin-sidebar-panel {
        flex: 1 1 auto;
        min-height: 0;
        padding: 0 4px 12px 0;
        overflow-y: auto;
        overflow-x: hidden;
    }

        .admin-sidebar-panel::-webkit-scrollbar {
            width: 8px;
        }

        .admin-sidebar-panel::-webkit-scrollbar-thumb {
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.18);
        }

    .admin-sidebar .admin-brand {
        margin: 0 8px 28px;
    }

        .admin-sidebar .admin-brand small {
            color: rgba(255, 255, 255, 0.56);
        }

.admin-side-nav {
    gap: 9px;
}

.admin-side-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.66);
    line-height: 1.45;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-side-link-text {
    min-width: 0;
    flex: 1 1 auto;
    padding-right: 10px;
}

    .admin-side-link-text strong,
    .admin-side-sublink span {
        display: block;
        line-height: 1.45;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .admin-side-link.active,
    .admin-side-link:hover {
        color: #fff;
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.34), rgba(255, 255, 255, 0.10));
        transform: translateX(3px);
    }

.admin-sidebar-card {
    margin: 34px 6px 0;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.admin-topbar {
    min-height: 84px;
    padding: 18px 34px;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.admin-main-content {
    padding: 34px;
}

.admin-dashboard {
    gap: 26px;
}

.admin-page-heading,
.admin-panel,
.admin-metric-card,
.admin-shortcut-card,
.admin-kanban-card {
    border: 1px solid rgba(15, 23, 42, 0.07);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.admin-page-heading {
    padding: 32px;
    border-radius: 32px;
}

    .admin-page-heading h1 {
        color: #0f172a;
        font-size: clamp(34px, 4vw, 56px);
    }

.admin-panel {
    border-radius: 30px;
    padding: 26px;
}

.admin-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-metric-card {
    min-height: 166px;
    padding: 24px;
    border-radius: 28px;
}

    .admin-metric-card span,
    .admin-shortcut-card span,
    .admin-kanban-card span,
    .admin-panel-head span {
        color: #2563eb;
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 0.10em;
        text-transform: uppercase;
    }

    .admin-metric-card strong {
        color: #0f172a;
        font-size: 42px;
        letter-spacing: -0.05em;
    }

.admin-shortcut-grid,
.admin-kanban-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-shortcut-card,
.admin-kanban-card {
    border-radius: 26px;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .admin-shortcut-card:hover,
    .admin-kanban-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
    }

.admin-table-wrap {
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 20px;
}

.admin-table th {
    color: #64748b;
    background: #f8fafc;
    font-size: 13px;
}

.admin-table td {
    color: #1e293b;
}

.admin-progress {
    height: 8px;
    margin-top: 18px;
    border-radius: 999px;
    overflow: hidden;
    background: #e2e8f0;
}

    .admin-progress i {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(135deg, #60a5fa, #2563eb);
    }

.admin-sidebar > .admin-user-menu-wrap {
    flex: 0 0 auto;
    margin-top: 0;
    padding: 18px 6px 0;
    background: inherit;
    z-index: 1;
}

.admin-sidebar > .admin-user-menu-wrap::before {
    left: 6px;
    right: 6px;
}

.admin-sidebar > .admin-user-menu-wrap .admin-user-card {
    background: rgba(255, 255, 255, 0.06);
}

.admin-brand strong,
.admin-brand small,
.admin-user-meta strong,
.admin-user-meta small,
.admin-topbar strong,
.admin-page-heading h1,
.admin-panel h2,
.admin-metric-card strong,
.admin-shortcut-card strong,
.admin-kanban-card strong,
.admin-notice-list strong {
    line-height: 1.3;
}

.admin-page-heading p,
.admin-panel p,
.admin-metric-card p,
.admin-shortcut-card p,
.admin-kanban-card p,
.admin-panel-head small,
.admin-todo-list span,
.admin-notice-list p {
    line-height: 1.7;
}

.admin-todo-list,
.admin-notice-list {
    display: grid;
    gap: 14px;
}

.admin-todo-list label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 12px;
}

.admin-notice-list > div {
    display: grid;
    gap: 6px;
}

@media (max-width: 1180px) {
    .admin-metric-grid,
    .admin-shortcut-grid,
    .admin-kanban-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================
   Theme colors
   ========================= */

html[data-theme="executive"] {
    --accent: #9f7b3f;
    --accent-2: #f0d79c;
    --accent-soft: rgba(159, 123, 63, 0.16);
    --gradient-main: linear-gradient(135deg, #f0d79c, #b88942);
    --dark-gradient: linear-gradient(135deg, #1f2937 0%, #111827 55%, #9f7b3f 140%);
}

html[data-theme="tech"] {
    --accent: #2563eb;
    --accent-2: #a9c7ff;
    --accent-soft: rgba(37, 99, 235, 0.15);
    --gradient-main: linear-gradient(135deg, #a9c7ff, #2563eb);
    --dark-gradient: linear-gradient(135deg, #0f172a 0%, #1e40af 58%, #38bdf8 135%);
}

html[data-theme="warm"] {
    --accent: #b45309;
    --accent-2: #fed7aa;
    --accent-soft: rgba(180, 83, 9, 0.15);
    --gradient-main: linear-gradient(135deg, #fed7aa, #b45309);
    --dark-gradient: linear-gradient(135deg, #292524 0%, #78350f 55%, #f59e0b 135%);
}

/* =========================
   Light / dark mode
   ========================= */

html[data-mode="light"] {
    --bg: #f7f4ef;
    --bg-2: #ffffff;
    --bg-3: #f1eee8;
    --text: #172033;
    --muted: #667085;
    --muted-2: #8b95a7;
    --border: rgba(15, 23, 42, 0.10);
    --card: rgba(255, 255, 255, 0.82);
    --card-solid: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.80);
    --hero-overlay-left: rgba(9, 12, 18, 0.78);
    --hero-overlay-mid: rgba(9, 12, 18, 0.52);
    --hero-overlay-right: rgba(9, 12, 18, 0.18);
    --image-card-overlay-top: rgba(11, 18, 32, 0.02);
    --image-card-overlay-bottom: rgba(11, 18, 32, 0.16);
    --image-bottom-overlay: rgba(11, 18, 32, 0.46);
}

html[data-mode="dark"] {
    --bg: #080b10;
    --bg-2: #0d1118;
    --bg-3: #111827;
    --text: #f6f3ee;
    --muted: rgba(246, 243, 238, 0.68);
    --muted-2: rgba(246, 243, 238, 0.50);
    --border: rgba(255, 255, 255, 0.12);
    --card: rgba(255, 255, 255, 0.07);
    --card-solid: #111827;
    --header-bg: rgba(7, 9, 13, 0.62);
    --shadow-soft: 0 20px 70px rgba(0, 0, 0, 0.36);
    --shadow-card: 0 18px 48px rgba(0, 0, 0, 0.28);
    --hero-overlay-left: rgba(7, 9, 13, 0.94);
    --hero-overlay-mid: rgba(7, 9, 13, 0.76);
    --hero-overlay-right: rgba(7, 9, 13, 0.34);
    --image-card-overlay-top: rgba(5, 10, 22, 0.12);
    --image-card-overlay-bottom: rgba(5, 10, 22, 0.34);
    --image-bottom-overlay: rgba(5, 10, 22, 0.78);
}

/* =========================
   Admin mode-aware colors
   ========================= */

html[data-mode="light"] .admin-shell {
    --admin-bg: #f3f7ff;
    --admin-bg-soft: #eef4ff;
    --admin-surface: rgba(255, 255, 255, 0.92);
    --admin-surface-solid: #ffffff;
    --admin-surface-muted: #f8fafc;
    --admin-text: #0f172a;
    --admin-text-strong: #020617;
    --admin-muted: #64748b;
    --admin-border: rgba(15, 23, 42, 0.08);
    --admin-sidebar-bg: rgba(255, 255, 255, 0.86);
    --admin-sidebar-text: #334155;
    --admin-sidebar-muted: #64748b;
    --admin-sidebar-hover: rgba(37, 99, 235, 0.08);
    --admin-sidebar-active: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(255, 255, 255, 0.82));
    --admin-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
    color: var(--admin-text);
    background: radial-gradient(circle at 18% 8%, rgba(37, 99, 235, 0.09), transparent 28%), linear-gradient(135deg, var(--admin-bg-soft) 0%, #f8fafc 44%, var(--admin-bg) 100%);
}

html[data-mode="dark"] .admin-shell {
    --admin-bg: #07111f;
    --admin-bg-soft: #0b1628;
    --admin-surface: rgba(15, 23, 42, 0.86);
    --admin-surface-solid: #111827;
    --admin-surface-muted: rgba(255, 255, 255, 0.06);
    --admin-text: #e5edf8;
    --admin-text-strong: #f8fafc;
    --admin-muted: rgba(226, 232, 240, 0.68);
    --admin-border: rgba(255, 255, 255, 0.12);
    --admin-sidebar-bg: linear-gradient(180deg, #081a3d 0%, #102a56 50%, #0f172a 100%);
    --admin-sidebar-text: rgba(255, 255, 255, 0.72);
    --admin-sidebar-muted: rgba(255, 255, 255, 0.56);
    --admin-sidebar-hover: rgba(255, 255, 255, 0.10);
    --admin-sidebar-active: linear-gradient(135deg, rgba(37, 99, 235, 0.34), rgba(255, 255, 255, 0.10));
    --admin-shadow: 0 28px 80px rgba(0, 0, 0, 0.30);
    color: var(--admin-text);
    background: radial-gradient(circle at 18% 8%, rgba(59, 130, 246, 0.14), transparent 30%), linear-gradient(135deg, #08111f 0%, #0b1628 48%, #050b14 100%);
}

.admin-shell .admin-sidebar {
    color: var(--admin-sidebar-text);
    background: var(--admin-sidebar-bg);
    border-right: 1px solid var(--admin-border);
}

html[data-mode="light"] .admin-shell .admin-sidebar {
    box-shadow: 18px 0 60px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.admin-shell .admin-sidebar .admin-brand,
.admin-shell .admin-sidebar .admin-brand strong,
.admin-shell .admin-sidebar-card strong {
    color: var(--admin-text-strong);
}

html[data-mode="dark"] .admin-shell .admin-sidebar .admin-brand,
html[data-mode="dark"] .admin-shell .admin-sidebar .admin-brand strong,
html[data-mode="dark"] .admin-shell .admin-sidebar-card strong {
    color: #ffffff;
}

.admin-shell .admin-sidebar .admin-brand small,
.admin-shell .admin-sidebar-card,
.admin-shell .admin-sidebar-card p {
    color: var(--admin-sidebar-muted);
}

.admin-shell .admin-sidebar-card {
    border-color: var(--admin-border);
    background: var(--admin-surface-muted);
    box-shadow: var(--admin-shadow);
}

.admin-shell .admin-side-link {
    color: var(--admin-sidebar-text);
}

    .admin-shell .admin-side-link.active,
    .admin-shell .admin-side-link:hover {
        color: var(--admin-text-strong);
        background: var(--admin-sidebar-active);
    }

.admin-shell .admin-side-subnav {
    border-left-color: color-mix(in srgb, var(--admin-sidebar-text), transparent 72%);
}

.admin-shell .admin-side-sublink {
    color: var(--admin-sidebar-text);
    background: color-mix(in srgb, var(--admin-sidebar-text), transparent 94%);
}

    .admin-shell .admin-side-sublink.active,
    .admin-shell .admin-side-sublink:hover {
        color: var(--admin-text-strong);
        background: var(--admin-sidebar-hover);
    }

html[data-mode="light"] .admin-shell .admin-side-subnav {
    border-left-color: rgba(15, 23, 42, 0.22);
}

html[data-mode="light"] .admin-shell .admin-side-sublink {
    color: #334155;
    background: rgba(15, 23, 42, 0.045);
    font-weight: 900;
}

    html[data-mode="light"] .admin-shell .admin-side-sublink.active,
    html[data-mode="light"] .admin-shell .admin-side-sublink:hover {
        color: #0f172a;
        background: rgba(37, 99, 235, 0.12);
    }

html[data-mode="dark"] .admin-shell .admin-side-link.active,
html[data-mode="dark"] .admin-shell .admin-side-link:hover,
html[data-mode="dark"] .admin-shell .admin-side-sublink.active,
html[data-mode="dark"] .admin-shell .admin-side-sublink:hover {
    color: #ffffff;
}

html[data-mode="dark"] .admin-shell .admin-side-subnav {
    border-left-color: rgba(255, 255, 255, 0.22);
}

html[data-mode="dark"] .admin-shell .admin-side-sublink {
    color: rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.055);
}

.admin-shell .admin-main-frame,
.admin-shell .admin-main-content {
    color: var(--admin-text);
}

.admin-shell .admin-topbar {
    color: var(--admin-text);
    background: var(--admin-surface);
    border-bottom-color: var(--admin-border);
}

    .admin-shell .admin-topbar strong,
    .admin-shell .admin-page-heading h1,
    .admin-shell .admin-panel h2,
    .admin-shell .admin-metric-card strong,
    .admin-shell .admin-shortcut-card strong,
    .admin-shell .admin-kanban-card strong,
    .admin-shell .admin-table td,
    .admin-shell .admin-notice-list strong {
        color: var(--admin-text-strong);
    }

.admin-shell .admin-page-heading,
.admin-shell .admin-panel,
.admin-shell .admin-metric-card,
.admin-shell .admin-shortcut-card,
.admin-shell .admin-kanban-card {
    color: var(--admin-text);
    border-color: var(--admin-border);
    background: var(--admin-surface);
    box-shadow: var(--admin-shadow);
}

    .admin-shell .admin-page-heading p,
    .admin-shell .admin-panel p,
    .admin-shell .admin-shortcut-card p,
    .admin-shell .admin-kanban-card p,
    .admin-shell .admin-todo-list span,
    .admin-shell .admin-panel-head small,
    .admin-shell .admin-notice-list p {
        color: var(--admin-muted);
    }

.admin-shell .admin-theme-select,
.admin-shell .admin-mode-toggle,
.admin-shell .admin-public-link,
.admin-shell .admin-outline-button,
.admin-shell .admin-small-button {
    color: var(--admin-text-strong);
    border-color: var(--admin-border);
    background: var(--admin-surface-solid);
}

html[data-mode="dark"] .admin-shell .admin-theme-select,
html[data-mode="dark"] .admin-shell .admin-mode-toggle,
html[data-mode="dark"] .admin-shell .admin-public-link,
html[data-mode="dark"] .admin-shell .admin-outline-button,
html[data-mode="dark"] .admin-shell .admin-small-button {
    background: rgba(255, 255, 255, 0.07);
}

.admin-shell .admin-table-wrap {
    border-color: var(--admin-border);
}

.admin-shell .admin-table th {
    color: var(--admin-muted);
    background: var(--admin-surface-muted);
}

.admin-shell .admin-table td {
    border-bottom-color: var(--admin-border);
}

.admin-shell .admin-todo-list input {
    accent-color: var(--accent);
}

.admin-shell .admin-status {
    color: #475569;
    background: #f1f5f9;
}

html[data-mode="dark"] .admin-shell .admin-status {
    color: rgba(226, 232, 240, 0.82);
    background: rgba(255, 255, 255, 0.08);
}

html[data-mode="light"] .admin-shell .admin-user-menu-wrap::before {
    height: 2px;
    left: 4px;
    right: 4px;
    background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.20), rgba(2, 6, 23, 0.46), rgba(15, 23, 42, 0.20), transparent);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 18px rgba(15, 23, 42, 0.10);
}

html[data-mode="light"] .admin-shell .admin-user-menu-wrap::after {
    height: 6px;
    background: linear-gradient(135deg, #0f172a, #475569);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
    opacity: 0.88;
}

html[data-mode="light"] .admin-shell .admin-user-meta small,
html[data-mode="light"] .admin-shell .admin-user-caret {
    color: #475569;
}

html[data-mode="light"] .admin-shell .admin-user-meta small {
    font-weight: 800;
}

/* =========================
   Admin responsive overrides
   ========================= */

@media (max-width: 1320px) {
    .admin-shell {
        grid-template-columns: 248px minmax(0, 1fr);
    }

    .admin-main-content,
    .admin-topbar {
        padding-left: 24px;
        padding-right: 24px;
    }

    .admin-page-heading,
    .admin-panel,
    .admin-metric-card,
    .admin-shortcut-card,
    .admin-kanban-card {
        border-radius: 24px;
    }
}

@media (max-width: 1080px) {
    .loya-outbound-live-session-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .loya-outbound-live-session-strip,
    .loya-outbound-live-session-tabs {
        width: 100%;
    }

    .loya-outbound-live-session-tabs {
        padding-right: 0;
    }

    .loya-outbound-live-session-tab {
        flex-basis: 220px;
    }

    .loya-outbound-live-session-close {
        align-self: flex-end;
    }

    .admin-mobile-menu-button {
        width: 42px;
        height: 42px;
        border: 1px solid var(--admin-border, rgba(15, 23, 42, 0.12));
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        color: var(--admin-text-strong, #0f172a);
        background: var(--admin-surface-solid, #fff);
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
        font-size: 20px;
        line-height: 1;
        cursor: pointer;
    }

    .admin-topbar-title {
        min-width: 0;
    }

    .admin-shell {
        display: block;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .admin-mobile-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 39;
        border: 0;
        background: rgba(15, 23, 42, 0.42);
        cursor: pointer;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .admin-shell.is-mobile-sidebar-open .admin-mobile-sidebar-backdrop {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .admin-shell .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 40;
        width: min(88vw, 340px);
        height: 100vh;
        padding: 16px;
        box-shadow: 22px 0 52px rgba(15, 23, 42, 0.24);
        overflow: hidden;
        transform: translateX(-100%);
        transition: transform 0.24s ease;
    }

    .admin-shell.is-mobile-sidebar-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-main-frame {
        width: 100%;
        min-width: 0;
    }

    .admin-sidebar-panel {
        padding: 0;
        overflow: auto;
    }

    .admin-sidebar-head {
        justify-content: space-between;
        margin-bottom: 18px;
    }

    .admin-mobile-sidebar-close {
        width: 40px;
        height: 40px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        color: inherit;
        background: rgba(255, 255, 255, 0.08);
        font-size: 18px;
        line-height: 1;
        cursor: pointer;
    }

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

    .admin-side-nav {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .admin-side-group,
    .admin-side-nav > .admin-side-link {
        min-width: 0;
    }

    .admin-side-subnav {
        margin-left: 0;
    }

    .admin-sidebar > .admin-user-menu-wrap {
        margin-top: 16px;
        padding: 16px 0 0;
    }

    .admin-sidebar > .admin-user-menu-wrap::after {
        display: none;
    }

    .admin-topbar {
        min-height: 58px;
        padding-top: 10px;
        padding-bottom: 10px;
        justify-content: center;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .admin-topbar-actions,
    .admin-heading-actions,
    .admin-panel-head {
        flex-wrap: wrap;
    }

    .admin-topbar-title {
        position: relative;
        width: 100%;
        min-height: 42px;
        justify-content: center;
    }

    .admin-topbar-title strong {
        width: 100%;
        padding: 0 56px;
        text-align: center;
    }

    .admin-topbar-actions {
        display: none;
    }

    .admin-mobile-menu-button {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .admin-main-content {
        padding-top: 10px;
        padding-bottom: 16px;
    }

    .admin-page-heading {
        padding: 24px;
        flex-direction: column;
        align-items: stretch;
    }

    .admin-heading-actions {
        width: 100%;
    }

    .admin-metric-grid,
    .admin-shortcut-grid,
    .admin-kanban-grid,
    .admin-info-grid,
    .admin-settings-grid,
    .admin-workspace-grid,
    .loya-outbound-form-grid,
    .loya-outbound-settings-grid,
    .loya-outbound-detail-grid {
        grid-template-columns: 1fr;
    }

    .loya-outbound-rule-grid,
    .loya-outbound-capability-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-dashboard,
    .admin-profile-panel,
    .loya-outbound-card-list {
        gap: 16px;
    }

    .admin-panel,
    .admin-metric-card,
    .admin-shortcut-card,
    .admin-kanban-card {
        padding: 20px;
    }

    .admin-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table {
        min-width: 680px;
    }

    .loya-outbound-config-card dl,
    .loya-outbound-kv {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .loya-outbound-task-workspace {
        grid-template-columns: 1fr;
    }

    .loya-outbound-task-list-header,
    .loya-outbound-task-row {
        grid-template-columns: minmax(260px, 1.2fr) minmax(150px, 0.8fr) minmax(180px, 0.9fr) 86px;
    }

    .loya-outbound-task-list-header span:last-child,
    .loya-outbound-task-row > .loya-outbound-action-row {
        grid-column: 1 / -1;
    }

    .loya-outbound-task-filter-bar {
        grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(0, 1fr));
    }

    .loya-outbound-task-log-pane {
        position: static;
    }

    .loya-outbound-task-log-list {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 920px) {
    .loya-outbound-task-filter-bar {
        grid-template-columns: 1fr;
    }

    .loya-outbound-task-list-header {
        display: none;
    }

    .loya-outbound-task-row {
        grid-template-columns: 1fr;
        gap: 12px;
        align-items: stretch;
    }

    .loya-outbound-task-state {
        justify-content: flex-start;
    }

    .loya-outbound-action-row {
        justify-content: flex-start;
    }

    .loya-outbound-task-log-pane {
        padding: 14px;
    }

    .loya-outbound-task-log-item {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1080px) {
    body:has(.admin-shell) {
        overflow-x: hidden;
    }

    .admin-shell {
        display: flex !important;
        grid-template-columns: none !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-height: 100vh;
        overflow-x: hidden;
    }

    .admin-shell .admin-sidebar {
        position: fixed !important;
        inset: 0 auto 0 0;
        width: min(86vw, 320px) !important;
        max-width: calc(100vw - 34px);
        height: 100dvh !important;
        margin: 0 !important;
        transform: translate3d(-104%, 0, 0);
    }

    .admin-shell.is-mobile-sidebar-open .admin-sidebar {
        transform: translate3d(0, 0, 0);
    }

    .admin-main-frame {
        flex: 1 1 auto;
        width: 100% !important;
        max-width: 100vw;
        min-width: 0;
    }

    .admin-topbar {
        width: 100%;
        min-height: 56px !important;
        padding: 7px 14px !important;
        display: flex;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
    }

    .admin-topbar-title {
        position: relative;
        width: 100%;
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .admin-topbar-title strong {
        width: 100%;
        padding: 0 52px;
        overflow: hidden;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .admin-mobile-menu-button {
        position: absolute !important;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 38px;
        height: 38px;
        border-radius: 13px;
    }

    .admin-topbar-actions {
        display: none !important;
    }

    .admin-main-content {
        width: 100%;
        padding: 10px 14px 16px !important;
    }
}

@media (max-width: 820px) {
    .admin-main-content,
    .admin-topbar {
        padding-left: 16px;
        padding-right: 16px;
    }

    .admin-main-content {
        padding-top: 8px;
        padding-bottom: 14px;
    }

    .admin-dashboard {
        gap: 12px;
    }

    .admin-side-link,
    .admin-side-sublink,
    .admin-user-card {
        border-radius: 16px;
    }

    .admin-topbar-actions,
    .admin-heading-actions {
        width: 100%;
        gap: 10px;
    }

    .admin-topbar-actions > *,
    .admin-heading-actions > * {
        flex: 1 1 calc(50% - 5px);
        min-width: 0;
    }

    .admin-theme-select,
    .admin-mode-toggle,
    .admin-public-link,
    .admin-outline-button,
    .admin-primary-button,
    .admin-small-button {
        width: 100%;
    }

    .admin-page-heading,
    .admin-panel,
    .admin-metric-card,
    .admin-shortcut-card,
    .admin-kanban-card {
        padding: 18px;
        border-radius: 20px;
    }

    .admin-metric-card {
        min-height: 0;
    }

    .admin-metric-card strong {
        font-size: 34px;
    }

    .admin-panel-head,
    .admin-profile-card,
    .loya-outbound-list-card,
    .loya-outbound-card-headline,
    .loya-outbound-modal-head,
    .loya-outbound-modal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .loya-outbound-agent-header,
    .loya-outbound-agent-row,
    .loya-outbound-script-header,
    .loya-outbound-script-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .loya-outbound-agent-header,
    .loya-outbound-script-header {
        gap: 8px;
        padding: 12px;
    }

    .loya-outbound-agent-header-cell:nth-child(n + 3),
    .loya-outbound-script-header-cell:nth-child(n + 3):not(:last-child) {
        display: none;
    }

    .loya-outbound-agent-header-cell:last-child,
    .loya-outbound-script-header-cell:last-child {
        text-align: left;
    }

    .loya-outbound-agent-row,
    .loya-outbound-script-row {
        gap: 14px;
    }

    .loya-outbound-agent-summary,
    .loya-outbound-agent-policy,
    .loya-outbound-agent-actions,
    .loya-outbound-script-summary,
    .loya-outbound-script-policy,
    .loya-outbound-script-actions {
        grid-column: span 2;
    }

    .loya-outbound-agent-cell span,
    .loya-outbound-script-cell span {
        display: block;
    }

    .loya-outbound-agent-actions {
        justify-content: flex-start;
        align-self: stretch;
        min-width: 0;
    }

    .loya-outbound-script-actions {
        justify-content: flex-start;
        align-self: stretch;
        min-width: 0;
    }

    .admin-profile-card {
        padding: 18px;
    }

    .admin-table {
        min-width: 620px;
    }

    .loya-outbound-rule-grid,
    .loya-outbound-capability-grid,
    .loya-outbound-wizard-steps,
    .loya-image-action-grid,
    .loya-field-grid.two,
    .loya-field-row.action-row {
        grid-template-columns: 1fr;
    }

    .loya-outbound-modal-backdrop {
        padding: 12px;
    }

    .loya-outbound-modal {
        width: 100%;
        max-height: calc(100vh - 24px);
        border-radius: 18px;
    }
}

@media (max-width: 640px) {
    .admin-topbar strong {
        font-size: 18px;
    }

    .admin-main-content {
        padding-top: 12px;
        padding-bottom: 18px;
    }

    .loya-mobile-card-table {
        width: 100%;
        min-width: 0 !important;
        border-collapse: separate;
        border-spacing: 0;
        background: transparent;
    }

    .loya-mobile-card-table thead {
        display: none;
    }

    .loya-mobile-card-table,
    .loya-mobile-card-table tbody,
    .loya-mobile-card-table tr,
    .loya-mobile-card-table td {
        display: block;
        width: 100%;
    }

    .loya-mobile-card-table tbody {
        display: grid;
        gap: 12px;
    }

    .loya-mobile-card-table tbody tr {
        overflow: hidden;
        border: 1px solid var(--admin-border, rgba(15, 23, 42, 0.08));
        border-radius: 18px;
        background: var(--admin-surface, rgba(255, 255, 255, 0.94));
        box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
    }

    .loya-mobile-card-table tbody td {
        position: relative;
        min-height: 46px;
        padding: 12px 14px 12px 108px !important;
        border-bottom: 1px solid var(--admin-border, rgba(15, 23, 42, 0.08));
        text-align: left !important;
        white-space: normal;
    }

    .loya-mobile-card-table tbody td::before {
        content: attr(data-label);
        position: absolute;
        left: 14px;
        top: 12px;
        width: 82px;
        color: var(--admin-muted, #64748b);
        font-size: 12px;
        font-weight: 800;
        line-height: 1.5;
    }

    .loya-mobile-card-table tbody td:last-child {
        border-bottom: 0;
    }

    .loya-mobile-card-table tbody tr.loya-mobile-empty-row td {
        padding-left: 14px !important;
    }

    .loya-mobile-card-table tbody tr.loya-mobile-empty-row td::before {
        content: none;
    }

    .loya-mobile-card-table .loya-outbound-action-row,
    .loya-mobile-card-table .loya-outbound-toggle-group,
    .loya-mobile-card-table .admin-small-button {
        max-width: 100%;
    }

    .loya-mobile-card-table .loya-outbound-action-row {
        justify-content: flex-start;
    }

    .admin-topbar-actions > *,
    .admin-heading-actions > * {
        flex: 1 1 100%;
    }

    .admin-page-heading h1 {
        font-size: clamp(26px, 8vw, 34px);
    }

    .admin-page-heading p,
    .admin-panel p,
    .admin-shortcut-card p,
    .admin-kanban-card p,
    .admin-todo-list span,
    .admin-notice-list p {
        font-size: 13px;
        line-height: 1.65;
    }

    .admin-panel-head span,
    .admin-page-eyebrow {
        font-size: 11px;
        letter-spacing: 0.12em;
    }

    .admin-metric-card strong {
        font-size: 30px;
    }

    .admin-table {
        min-width: 560px;
    }

    .admin-status {
        white-space: nowrap;
    }

    .admin-todo-list label {
        gap: 10px;
    }

    .loya-outbound-filter {
        padding: 12px;
    }

    .loya-outbound-filter input,
    .loya-outbound-filter select,
    .loya-outbound-settings-grid input,
    .loya-outbound-settings-grid select {
        min-width: 0;
        width: 100%;
    }

    .loya-outbound-config-card dl,
    .loya-outbound-kv {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .loya-outbound-agent-header,
    .loya-outbound-script-header {
        display: none;
    }

    .loya-outbound-agent-row,
    .loya-outbound-script-row {
        grid-template-columns: 1fr;
    }

    .loya-outbound-agent-summary,
    .loya-outbound-agent-policy,
    .loya-outbound-agent-actions,
    .loya-outbound-script-summary,
    .loya-outbound-script-policy,
    .loya-outbound-script-actions {
        grid-column: auto;
    }

    .loya-image-thumb-card,
    .loya-result-item {
        width: min(100%, 220px);
    }
}

/* =========================
   Reset
   ========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--font-main);
    color: var(--text);
    line-height: 1.7;
    background: radial-gradient(circle at 12% 0%, rgba(214, 177, 109, 0.14), transparent 30%), radial-gradient(circle at 88% 12%, rgba(145, 167, 255, 0.12), transparent 28%), var(--bg);
}

html[data-mode="dark"] body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.045;
    background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(180deg, black, transparent 88%);
}

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

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

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

main {
    min-height: 70vh;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.14;
    letter-spacing: -0.04em;
}

h1 {
    font-size: clamp(30px, 3.7vw, 54px);
}

h2 {
    font-size: clamp(26px, 3.05vw, 42px);
}

h3 {
    font-size: clamp(19px, 1.55vw, 22px);
}

/* 绉婚櫎 Blazor FocusOnNavigate 瀵艰嚧鐨勬爣棰樼劍鐐硅竟妗?*/
h1:focus,
h1:focus-visible,
h1[tabindex="-1"],
h1[tabindex="-1"]:focus,
h1[tabindex="-1"]:focus-visible {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

h1::before,
h1::after {
    content: none;
}

/* =========================
   Header / Navigation
   ========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: var(--header-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 14px 36px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    color: #171007;
    font-weight: 950;
    letter-spacing: -1px;
    background: radial-gradient(circle at 75% 18%, #fff4cb, transparent 32%), linear-gradient(135deg, #f0d79c, #b88942);
    box-shadow: 0 16px 38px rgba(214, 177, 109, 0.30);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

    .brand-text strong {
        font-size: 16px;
        letter-spacing: 0.04em;
    }

    .brand-text small {
        margin-top: 2px;
        color: var(--muted-2);
        font-size: 11px;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

.main-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
}

.nav-link {
    padding: 9px 13px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.22s ease;
}

    .nav-link:hover {
        color: var(--text);
        background: rgba(255, 255, 255, 0.06);
    }

    .nav-link.active {
        color: #171007;
        background: var(--gradient-main);
        font-weight: 800;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
    }

.nav-cta {
    color: #171007;
    background: var(--gradient-main);
}

.theme-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-select,
.theme-toggle {
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    color: var(--text);
    padding: 0 12px;
    outline: none;
}

.theme-toggle {
    width: 42px;
    cursor: pointer;
}

.theme-select {
    color-scheme: light;
}

    .theme-select option {
        background: #ffffff;
        color: #172033;
    }

        .theme-select option:checked {
            background: #2563eb;
            color: #ffffff;
        }

html[data-mode="dark"] .theme-select {
    background: rgba(255, 255, 255, 0.08);
    color: #f6f3ee;
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-mode="light"] .theme-select {
    background: rgba(255, 255, 255, 0.82);
    color: #172033;
    border-color: rgba(15, 23, 42, 0.12);
}

.mobile-menu-btn {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    cursor: pointer;
}

    .mobile-menu-btn span {
        display: block;
        width: 18px;
        height: 2px;
        margin: 4px auto;
        background: var(--text);
        border-radius: 2px;
    }

/* =========================
   Image variables
   ========================= */

.bg-services {
    --page-image: url("https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=2200&q=82");
}

.bg-operation {
    --page-image: url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=2200&q=82");
}

.bg-tools,
.online-tools-hero {
    --page-image: url("https://images.unsplash.com/photo-1542744094-24638eff58bb?auto=format&fit=crop&w=2200&q=82");
}

.bg-about {
    --page-image: url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=2200&q=82");
}

.bg-contact {
    --page-image: url("https://images.unsplash.com/photo-1516321497487-e288fb19713f?auto=format&fit=crop&w=2200&q=82");
}

.bg-card-software {
    --card-image: url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1200&q=82");
}

.bg-card-operation {
    --card-image: url("https://images.unsplash.com/photo-1557804506-669a67965ba0?auto=format&fit=crop&w=1200&q=82");
}

.bg-card-tools {
    --card-image: url("https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1200&q=82");
}

.bg-card-data {
    --card-image: url("https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1200&q=82");
}

.bg-card-process {
    --card-image: url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1200&q=82");
}

.split-software {
    --split-image: url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=1600&q=85");
}

.split-office {
    --split-image: url("https://images.unsplash.com/photo-1524758631624-e2822e304c36?auto=format&fit=crop&w=1600&q=85");
}

.split-analytics {
    --split-image: url("https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1600&q=85");
}

.split-building {
    --split-image: url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=85");
}

/* =========================
   Home Hero
   ========================= */

.loya-hero {
    min-height: calc(100vh - 72px);
    display: grid;
    align-items: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 92px 36px 72px;
    color: #f6f3ee;
}

    .loya-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -3;
        background: linear-gradient( 90deg, var(--hero-overlay-left) 0%, var(--hero-overlay-mid) 45%, var(--hero-overlay-right) 100% ), var(--hero-image) center / cover no-repeat;
        transform: scale(1.02);
    }

    .loya-hero::after {
        content: "";
        position: absolute;
        right: -16vw;
        bottom: -18vw;
        width: 56vw;
        height: 56vw;
        z-index: -2;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(145, 167, 255, 0.20), transparent 68%);
        filter: blur(14px);
    }

.loya-hero-grid {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.72fr);
    gap: 64px;
    align-items: end;
}

.loya-hero-copy {
    max-width: 960px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.055);
    color: rgba(246, 243, 238, 0.82);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

    .hero-eyebrow::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #91a7ff;
        box-shadow: 0 0 22px #91a7ff;
    }

.loya-hero h1 {
    margin: 24px 0;
    max-width: 740px;
    color: #ffffff;
    font-size: clamp(30px, 3.4vw, 50px);
    line-height: 1.12;
    letter-spacing: -0.04em;
    font-weight: 900;
    text-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

    .loya-hero h1 span {
        color: transparent;
        background: linear-gradient(92deg, #ffffff, var(--accent-2) 42%, #91a7ff 84%); 
        -webkit-text-fill-color: transparent;
    }

.loya-hero-copy p {
    max-width: 780px;
    margin: 0 0 36px;
    color: rgba(246, 243, 238, 0.74);
    font-size: clamp(17px, 1.35vw, 21px);
    line-height: 1.78;
}

/* =========================
   Buttons
   ========================= */

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-weight: 850;
    cursor: pointer;
    transition: 0.25s ease;
}

    .btn:hover {
        transform: translateY(-2px);
    }

    .btn-primary,
    .btn.primary {
        color: #171007;
        background: var(--gradient-main);
        border-color: rgba(240, 215, 156, 0.55);
        box-shadow: 0 18px 46px rgba(214, 177, 109, 0.22);
    }

    .btn-secondary,
    .btn.secondary,
    .btn-ghost {
        color: var(--text);
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

.btn-ghost {
    background: rgba(255, 255, 255, 0.58);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: none;
}

.loya-hero .btn {
    min-height: 54px;
    padding: 0 24px;
}

    .loya-hero .btn-secondary,
    .loya-hero .btn.secondary {
        color: #f6f3ee;
        border-color: rgba(255, 255, 255, 0.14);
    }

html[data-mode="dark"] .btn-ghost {
    color: #f6f3ee;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

/* =========================
   Hero glass card
   ========================= */

.hero-glass-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.052));
    box-shadow: var(--shadow-dark);
    backdrop-filter: blur(20px) saturate(128%);
    -webkit-backdrop-filter: blur(20px) saturate(128%);
}

    .hero-glass-card::before {
        content: "";
        position: absolute;
        inset: -1px;
        pointer-events: none;
        background: radial-gradient(circle at 18% 0%, rgba(240, 215, 156, 0.18), transparent 36%), radial-gradient(circle at 90% 20%, rgba(145, 167, 255, 0.12), transparent 30%);
    }

    .hero-glass-card > * {
        position: relative;
        z-index: 1;
    }

.hero-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

    .hero-card-top small {
        display: block;
        color: var(--accent-2);
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 0.08em;
    }

    .hero-card-top h3 {
        margin: 10px 0 0;
        color: #fff;
        font-size: 23px;
        line-height: 1.18;
    }

.hero-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(145, 167, 255, 0.14);
    color: #e3e8ff;
    font-size: 12px;
    white-space: nowrap;
}

    .hero-status::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #afbdff;
        box-shadow: 0 0 18px #afbdff;
    }

.hero-metric-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.hero-metric {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

    .hero-metric strong {
        display: block;
        color: #fff8e8;
        font-size: 24px;
        letter-spacing: -0.04em;
    }

    .hero-metric span {
        display: block;
        margin-top: 8px;
        color: rgba(246, 243, 238, 0.68);
        font-size: 13px;
        line-height: 1.48;
    }

.hero-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

    .hero-chip-row span {
        padding: 9px 12px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.10);
        background: rgba(0, 0, 0, 0.20);
        color: rgba(246, 243, 238, 0.73);
        font-size: 12px;
    }

/* =========================
   Page Hero
   ========================= */

.media-page,
.page-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    padding: 112px 36px 76px;
}

    .media-page::before,
    .page-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -3;
        background: linear-gradient(90deg, rgba(7, 9, 13, 0.92), rgba(7, 9, 13, 0.72), rgba(7, 9, 13, 0.42)), var(--page-image, url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=2200&q=82")) center / cover no-repeat;
    }

    .media-page::after,
    .page-hero::after {
        content: "";
        position: absolute;
        inset: auto -10vw -22vw auto;
        width: 52vw;
        height: 52vw;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(214, 177, 109, 0.18), transparent 70%);
        z-index: -1;
    }

.page-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.page-title,
.page-hero h1,
.media-page h1 {
    max-width: 760px;
    margin: 22px 0 18px;
    color: #fff;
    font-size: clamp(28px, 3.15vw, 46px);
    line-height: 1.14;
    letter-spacing: -0.035em;
    font-weight: 900;
}

.page-copy,
.media-page .lead {
    max-width: 780px;
    margin-bottom: 0;
    color: rgba(246, 243, 238, 0.74);
    font-size: clamp(17px, 1.35vw, 21px);
    line-height: 1.72;
}

/* =========================
   Common Layout
   ========================= */

.section {
    padding: 68px 36px;
}

    .section.compact {
        padding-top: 46px;
        padding-bottom: 46px;
    }

.loya-hero + .section {
    padding-top: 58px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--accent);
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 0.08em;
}

    .eyebrow::before {
        content: "";
        width: 34px;
        height: 1px;
        background: var(--accent);
    }

.lead {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.76;
}

.section-heading {
    max-width: 820px;
    margin-bottom: 32px;
}

    .section-heading.center {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .section-heading p {
        margin-bottom: 0;
        color: var(--muted);
        font-size: clamp(15px, 1.2vw, 17px);
        line-height: 1.76;
    }

/* =========================
   Cards
   ========================= */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.home-capability-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.card,
.online-tool-card,
.about-capability-item,
.process-step,
.service-feature,
.story-item {
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: var(--shadow-card);
}

.card {
    overflow: hidden;
    border-radius: 30px;
    transition: all 0.22s ease;
}

    .card:hover,
    .online-tool-card:hover {
        transform: translateY(-4px);
        border-color: color-mix(in srgb, var(--accent), transparent 45%);
    }

.card-media {
    height: clamp(230px, 15vw, 285px);
    background: linear-gradient(180deg, var(--image-card-overlay-top), var(--image-card-overlay-bottom)), var(--card-image);
    background-size: cover;
    background-position: center;
}

.card-body {
    position: relative;
    min-height: 330px;
    padding: 26px 26px 30px;
    display: flex;
    flex-direction: column;
}

    .card-body::after,
    .online-tool-card-body::after,
    .about-capability-item::after,
    .online-tool-flow > div::after {
        content: "";
        position: absolute;
        left: 26px;
        right: 26px;
        bottom: 18px;
        height: 1px;
        background: linear-gradient(90deg, var(--accent), rgba(159, 123, 63, 0.18), transparent);
        opacity: 0.78;
    }

html[data-mode="dark"] .card-body::after {
    background: linear-gradient(90deg, rgba(240, 215, 156, 0.72), rgba(240, 215, 156, 0.28), transparent);
}

.card-body .icon-box,
.online-tool-card-body .icon-box {
    margin-top: -50px;
    margin-bottom: 22px;
    position: relative;
    z-index: 2;
    background: var(--card-solid);
    box-shadow: var(--shadow-card);
}

.icon-box {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 22px;
    font-weight: 950;
}

.card h3 {
    margin-bottom: 14px;
    font-size: clamp(20px, 1.45vw, 23px);
    line-height: 1.28;
}

.card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.70;
}

.feature-list {
    padding: 0 0 18px;
    margin: 18px 0 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

    .feature-list li {
        position: relative;
        padding-left: 22px;
        color: var(--muted);
        font-size: 14.5px;
        line-height: 1.55;
    }

        .feature-list li::before {
            content: "✓";
            position: absolute;
            left: 0;
            color: var(--accent);
            font-weight: 900;
        }

/* =========================
   Split / Visual
   ========================= */

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 34px;
    align-items: center;
}

.image-split-card {
    min-height: 420px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
    background: linear-gradient(180deg, rgba(5, 10, 22, 0.02), var(--image-bottom-overlay)), var(--split-image);
    background-size: cover;
    background-position: center;
}

.visual-content {
    position: absolute;
    inset: auto 32px 32px 32px;
    color: #fff;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

    .visual-content h3 {
        font-size: 30px;
    }

    .visual-content p {
        color: rgba(255, 255, 255, 0.78);
    }

.glass-panel,
.about-position-main,
.about-value-panel,
.contact-intro-card,
.contact-form-card,
.online-tool-highlight-copy,
.online-scenario-content,
.contact-ready-card {
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: var(--shadow-card);
}

.glass-panel {
    padding: 30px;
    border-radius: var(--radius-xl);
}

    .glass-panel .feature-list {
        margin-top: 20px;
    }

/* =========================
   Stats / Process
   ========================= */

.stats-band {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--dark-gradient);
    color: #fff;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    box-shadow: var(--shadow-soft);
}

html[data-mode="light"] .stats-band {
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(250, 247, 241, 0.98) 58%, rgba(240, 215, 156, 0.22) 100%);
    color: var(--text);
}

.stat-item strong {
    display: block;
    font-size: 28px;
    line-height: 1;
}

.stat-item span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13.5px;
}

html[data-mode="light"] .stat-item span {
    color: var(--muted);
}

.process {
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.process-step {
    counter-increment: step;
    padding: 22px;
    border-radius: var(--radius-lg);
}

    .process-step::before {
        content: "0" counter(step);
        display: inline-flex;
        margin-bottom: 16px;
        color: var(--accent);
        font-weight: 900;
        letter-spacing: 0.08em;
    }

    .process-step h3 {
        margin-bottom: 10px;
    }

    .process-step p {
        margin: 0;
        color: var(--muted);
        line-height: 1.68;
    }

.service-feature-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.service-feature {
    padding: 22px;
    border-radius: 22px;
}

    .service-feature strong {
        display: block;
        margin-bottom: 12px;
        color: var(--accent);
        font-size: 28px;
        line-height: 1;
    }

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

/* =========================
   CTA
   ========================= */

.cta-section {
    padding-top: 42px;
    padding-bottom: 72px;
}

.cta-light-card {
    position: relative;
    overflow: hidden;
    min-height: 290px;
    padding: clamp(32px, 4vw, 52px);
    border-radius: 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
    align-items: center;
    color: #172033;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: radial-gradient(circle at 12% 10%, rgba(214, 177, 109, 0.18), transparent 34%), radial-gradient(circle at 88% 72%, rgba(145, 167, 255, 0.13), transparent 32%), linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 243, 238, 0.78));
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.90);
}

    .cta-light-card::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        opacity: 0.42;
        background-image: linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
        background-size: 58px 58px;
        mask-image: linear-gradient(90deg, black, transparent 82%);
    }

    .cta-light-card::after {
        content: "";
        position: absolute;
        right: -120px;
        top: -120px;
        width: 360px;
        height: 360px;
        border-radius: 999px;
        background: radial-gradient(circle, rgba(214, 177, 109, 0.24), transparent 68%);
        pointer-events: none;
    }

    .cta-light-card > * {
        position: relative;
        z-index: 1;
    }

.cta-label {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.08em;
}

.cta-light-card h2 {
    max-width: 960px;
    margin: 0;
    color: #172033;
    font-size: clamp(28px, 3.3vw, 46px);
    line-height: 1.18;
    letter-spacing: 0.01em;
    font-weight: 900;
}

.cta-light-card p:not(.cta-label) {
    max-width: 760px;
    margin: 20px 0 0;
    color: rgba(23, 32, 51, 0.66);
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.74;
}

.cta-light-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

html[data-mode="dark"] .cta-light-card {
    color: #f6f3ee;
    border-color: rgba(255, 255, 255, 0.13);
    background: radial-gradient(circle at 18% 12%, rgba(240, 215, 156, 0.20), transparent 34%), radial-gradient(circle at 88% 72%, rgba(145, 167, 255, 0.13), transparent 32%), linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04)), #101720;
    box-shadow: var(--shadow-dark);
}

    html[data-mode="dark"] .cta-light-card h2 {
        color: #ffffff;
    }

    html[data-mode="dark"] .cta-light-card p:not(.cta-label) {
        color: rgba(246, 243, 238, 0.68);
    }

/* =========================
   About Page
   ========================= */

.about-position-section,
.contact-modern-section,
.online-tool-highlight-section {
    padding-top: 66px;
}

.about-position-grid,
.about-value-grid {
    display: grid;
    gap: 28px;
    align-items: stretch;
}

.about-position-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.55fr);
}

.about-value-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.about-position-main,
.about-value-panel {
    padding: 34px;
    border-radius: 34px;
}

.about-position-card {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    padding: 34px;
    border-radius: 34px;
    color: #fff;
    background: radial-gradient(circle at 20% 12%, rgba(240, 215, 156, 0.22), transparent 34%), linear-gradient(135deg, rgba(255,255,255,0.11), rgba(255,255,255,0.045)), #101720;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: var(--shadow-dark);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

    .about-position-card span {
        color: var(--accent-2);
        font-size: 13px;
        font-weight: 900;
    }

    .about-position-card strong {
        display: block;
        margin: 14px 0;
        font-size: clamp(28px, 3vw, 42px);
        line-height: 1.08;
    }

    .about-position-card p,
    .about-capability-item p,
    .about-value-item span {
        color: var(--muted);
        line-height: 1.68;
    }

    .about-position-card p {
        color: rgba(246, 243, 238, 0.70);
    }

.about-capability-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.about-capability-item {
    position: relative;
    min-height: 270px;
    padding: 26px 26px 44px;
    border-radius: 28px;
    overflow: hidden;
}

.about-capability-no {
    width: 50px;
    height: 50px;
    margin-bottom: 40px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #171007;
    font-weight: 900;
    background: var(--gradient-main);
    box-shadow: 0 14px 30px rgba(214,177,109,0.20);
}

.about-value-list,
.story-list {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.about-value-item,
.story-item {
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}

html[data-mode="light"] .about-value-item,
html[data-mode="light"] .story-item {
    background: rgba(255, 255, 255, 0.66);
}

.about-summary-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

    .about-summary-strip > div {
        padding: 22px;
        border-radius: 24px;
        background: var(--card);
        border: 1px solid var(--border);
        box-shadow: var(--shadow-card);
    }

    .about-summary-strip span {
        display: block;
        margin-bottom: 8px;
        color: var(--accent);
        font-size: 13px;
        font-weight: 900;
    }

    .about-summary-strip strong {
        display: block;
        line-height: 1.55;
    }

/* =========================
   Contact Page
   ========================= */

.contact-modern-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(460px, 0.9fr);
    gap: 28px;
    align-items: stretch;
}

.contact-intro-card,
.contact-form-card {
    padding: 36px;
    border-radius: 34px;
}

.contact-scenario-list,
.online-scenario-list,
.online-tool-point-list {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.contact-scenario {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 16px;
    align-items: start;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
}

html[data-mode="light"] .contact-scenario,
html[data-mode="light"] .online-tool-point,
html[data-mode="light"] .online-scenario-list > div {
    background: rgba(255,255,255,0.68);
}

.contact-scenario > span {
    width: 54px;
    height: 54px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    color: #171007;
    font-weight: 900;
    background: var(--gradient-main);
}

.contact-scenario p,
.online-tool-point span,
.online-scenario-list span {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.65;
}

.contact-form-desc {
    margin-bottom: 24px;
    color: var(--muted);
    line-height: 1.70;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

    .contact-form-grid .full {
        grid-column: 1 / -1;
    }

    .contact-form-grid label {
        display: block;
        margin-bottom: 8px;
        color: var(--muted);
        font-size: 13px;
        font-weight: 700;
    }

    .contact-form-grid input,
    .contact-form-grid textarea,
    .contact-form-grid select,
    .form-grid input,
    .form-grid textarea {
        width: 100%;
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 14px 15px;
        background: var(--bg-2);
        color: var(--text);
        outline: none;
    }

    .contact-form-grid textarea,
    .form-grid textarea {
        min-height: 150px;
        resize: vertical;
    }

        .contact-form-grid input:focus,
        .contact-form-grid textarea:focus,
        .contact-form-grid select:focus {
            border-color: rgba(159, 123, 63, 0.45);
            box-shadow: 0 0 0 4px rgba(159, 123, 63, 0.08);
        }

.contact-ready-card {
    padding: 34px;
    border-radius: 34px;
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    background: radial-gradient(circle at 10% 10%, rgba(214,177,109,0.16), transparent 30%), var(--card);
}

.contact-ready-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .contact-ready-list span {
        padding: 10px 14px;
        border-radius: 999px;
        background: rgba(255,255,255,0.08);
        border: 1px solid var(--border);
        color: var(--muted);
        font-size: 14px;
    }

html[data-mode="light"] .contact-ready-list span {
    background: rgba(255,255,255,0.70);
}

/* =========================
   Online Tools Page
   ========================= */

.online-tool-highlight-grid,
.online-scenario-layout {
    display: grid;
    gap: 34px;
    align-items: stretch;
}

.online-tool-highlight-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.9fr);
}

.online-scenario-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.online-tool-highlight-copy,
.online-scenario-content {
    padding: 36px;
    border-radius: 34px;
}

.online-tool-point,
.online-scenario-list > div {
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
}

    .online-tool-point strong,
    .online-scenario-list strong {
        display: block;
        margin-bottom: 6px;
    }

.online-tool-visual,
.online-scenario-image {
    position: relative;
    min-height: 480px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
    background-size: cover;
    background-position: center;
}

    .online-tool-visual::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(5, 10, 22, 0.04), rgba(5, 10, 22, 0.72));
    }

.online-tool-visual-image {
    background-image: url("https://images.unsplash.com/photo-1542744094-3a31f272c490?auto=format&fit=crop&w=1600&q=82");
}

.online-scenario-image {
    background: linear-gradient(180deg, rgba(5,10,22,0.04), rgba(5,10,22,0.72)), url("https://images.unsplash.com/photo-1556761175-129418cb2dfe?auto=format&fit=crop&w=1600&q=82");
    background-size: cover;
    background-position: center;
}

.online-tool-floating-card {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    padding: 24px;
    border-radius: 24px;
    color: #fff;
    background: rgba(10, 15, 24, 0.58);
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

    .online-tool-floating-card span {
        display: block;
        margin-bottom: 8px;
        color: var(--accent-2);
        font-size: 13px;
        font-weight: 900;
    }

    .online-tool-floating-card strong {
        display: block;
        font-size: clamp(22px, 2.4vw, 34px);
        line-height: 1.18;
    }

.online-tool-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.online-tool-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    transition: all 0.22s ease;
}

.online-tool-card-media {
    height: 250px;
    position: relative;
    background-size: cover;
    background-position: center;
}

    .online-tool-card-media::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(5, 10, 22, 0.02), rgba(5, 10, 22, 0.18));
    }

.online-tool-img-generation {
    background-image: url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1400&q=82");
}

.online-tool-detail-page {
    background-image: url("https://images.unsplash.com/photo-1559028006-448665bd7c7f?auto=format&fit=crop&w=1400&q=82");
}

.online-tool-ali-listing {
    background-image: url("https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1400&q=82");
}

.online-tool-card-body {
    position: relative;
    padding: 26px 26px 34px;
}

    .online-tool-card-body h3 {
        margin-bottom: 14px;
        font-size: clamp(21px, 1.6vw, 25px);
    }

    .online-tool-card-body p,
    .online-tool-flow p {
        color: var(--muted);
        font-size: 15px;
        line-height: 1.72;
    }

.coming-soon-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    padding: 8px 12px;
    border-radius: 999px;
    color: #171007;
    font-size: 12px;
    font-weight: 900;
    background: var(--gradient-main);
    box-shadow: 0 12px 28px rgba(214, 177, 109, 0.24);
}

.online-tool-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

    .online-tool-flow > div {
        position: relative;
        min-height: 210px;
        padding: 24px 24px 42px;
        border-radius: 26px;
        background: var(--card);
        border: 1px solid var(--border);
        box-shadow: var(--shadow-card);
    }

    .online-tool-flow span {
        display: inline-flex;
        margin-bottom: 32px;
        color: var(--accent);
        font-weight: 950;
        letter-spacing: 0.08em;
    }

    .online-tool-flow strong {
        display: block;
        margin-bottom: 10px;
        font-size: 20px;
    }

/* =========================
   Footer
   ========================= */

.site-footer {
    display: none;
}

.simple-footer {
    padding: 36px 36px 48px;
    color: rgba(246, 243, 238, 0.48);
    background: linear-gradient(180deg, transparent, rgba(7, 9, 13, 0.28));
}

.simple-footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
    justify-content: space-between;
    gap: 24px;
    font-size: 13px;
}

html[data-mode="light"] .simple-footer {
    color: rgba(23, 32, 51, 0.54);
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.42));
}

html[data-mode="light"] .simple-footer-inner {
    border-top-color: rgba(15, 23, 42, 0.10);
}

/* =========================
   Misc
   ========================= */

.not-found-page {
    min-height: 60vh;
    padding: 120px 22px;
    text-align: center;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1280px) {
    .home-capability-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-media {
        height: clamp(220px, 24vw, 280px);
    }

    .card-body {
        min-height: 300px;
    }
}

@media (max-width: 1199px) {
    .header-inner,
    .loya-hero,
    .section,
    .media-page,
    .page-hero,
    .simple-footer {
        padding-left: 28px;
        padding-right: 28px;
    }

    .loya-hero-grid,
    .split,
    .about-position-grid,
    .about-value-grid,
    .contact-modern-grid,
    .contact-ready-card,
    .online-tool-highlight-grid,
    .online-scenario-layout,
    .cta-light-card {
        grid-template-columns: 1fr;
    }

    .loya-hero {
        min-height: auto;
        padding-top: 78px;
    }

    .hero-glass-card {
        max-width: 760px;
    }

    .process,
    .stats-band,
    .service-feature-row,
    .about-capability-grid,
    .online-tool-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .cta-light-action {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 980px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 14px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        display: none;
        order: 10;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
        padding: 10px;
        border-radius: 16px;
    }

        .main-nav.is-open {
            display: flex;
        }

    .nav-link {
        padding: 12px 14px;
    }

    .theme-tools {
        margin-left: auto;
    }

    .loya-hero {
        padding-top: 72px;
        padding-bottom: 64px;
    }

        .loya-hero h1 {
            max-width: 720px;
            font-size: clamp(30px, 6.2vw, 44px);
        }

    .loya-hero-copy p {
        max-width: 720px;
        font-size: 16px;
    }

    .hero-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section {
        padding-top: 58px;
        padding-bottom: 58px;
    }

    .section-heading {
        margin-bottom: 28px;
    }

        .section h2,
        .section-heading h2,
        .glass-panel h2 {
            font-size: clamp(26px, 5vw, 36px);
            line-height: 1.18;
        }

    .image-split-card,
    .online-tool-visual,
    .online-scenario-image {
        min-height: 360px;
    }

    .cta-light-card {
        min-height: auto;
        padding: 38px 34px;
        border-radius: 34px;
    }
}

@media (max-width: 760px) {
    .header-inner,
    .loya-hero,
    .section,
    .media-page,
    .page-hero,
    .simple-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .header-inner {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .brand-text small {
        display: none;
    }

    .brand-text strong {
        font-size: 15px;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .theme-select {
        max-width: 108px;
        font-size: 13px;
    }

    .theme-toggle {
        width: 38px;
        height: 36px;
    }

    .loya-hero {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .hero-eyebrow {
        font-size: 11px;
        padding: 7px 11px;
    }

    .loya-hero h1 {
        margin-top: 20px;
        margin-bottom: 20px;
        max-width: 100%;
        font-size: clamp(28px, 8.3vw, 38px);
        line-height: 1.14;
    }

    .loya-hero-copy p {
        margin-bottom: 28px;
        font-size: 15px;
        line-height: 1.72;
    }

    .hero-actions {
        gap: 10px;
    }

        .hero-actions .btn,
        .loya-hero .btn {
            width: 100%;
            min-height: 48px;
            padding: 0 18px;
            font-size: 14px;
        }

    .hero-glass-card {
        padding: 20px;
        border-radius: 24px;
    }

    .hero-card-top {
        flex-direction: column;
        gap: 14px;
    }

        .hero-card-top h3 {
            font-size: 20px;
        }

    .hero-metric-grid,
    .home-capability-grid,
    .card-grid,
    .process,
    .stats-band,
    .service-feature-row,
    .about-capability-grid,
    .about-summary-strip,
    .online-tool-card-grid,
    .online-tool-flow {
        grid-template-columns: 1fr;
    }

    .section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

        .section.compact {
            padding-top: 36px;
            padding-bottom: 36px;
        }

    .loya-hero + .section {
        padding-top: 46px;
    }

    .section-heading {
        margin-bottom: 24px;
    }

        .section h2,
        .section-heading h2,
        .glass-panel h2 {
            font-size: clamp(24px, 7.2vw, 32px);
            line-height: 1.20;
        }

        .lead,
        .section-heading p {
            font-size: 15px;
            line-height: 1.72;
        }

    .card-media {
        height: 210px;
    }

    .card-body {
        min-height: auto;
        padding: 22px 22px 30px;
    }

        .card-body .icon-box,
        .online-tool-card-body .icon-box {
            margin-top: -46px;
            margin-bottom: 18px;
        }

    .card h3 {
        margin-bottom: 12px;
    }

    .feature-list {
        margin-top: 16px;
        padding-bottom: 16px;
    }

    .card-body::after,
    .online-tool-card-body::after,
    .about-capability-item::after,
    .online-tool-flow > div::after {
        left: 22px;
        right: 22px;
        bottom: 18px;
    }

    .image-split-card {
        min-height: 300px;
        border-radius: 24px;
    }

    .visual-content {
        inset: auto 22px 22px 22px;
    }

        .visual-content h3 {
            font-size: 24px;
        }

    .glass-panel,
    .about-position-main,
    .about-position-card,
    .about-value-panel,
    .contact-intro-card,
    .contact-form-card,
    .contact-ready-card,
    .online-tool-highlight-copy,
    .online-scenario-content {
        padding: 24px;
        border-radius: 26px;
    }

    .media-page,
    .page-hero {
        padding-top: 72px;
        padding-bottom: 52px;
    }

    .page-hero-inner {
        min-height: 260px;
    }

    .page-title,
    .page-hero h1,
    .media-page h1 {
        font-size: clamp(26px, 7.6vw, 36px);
        line-height: 1.16;
    }

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

    .contact-scenario {
        grid-template-columns: 46px 1fr;
        padding: 16px;
    }

        .contact-scenario > span {
            width: 46px;
            height: 46px;
        }

    .contact-ready-list span {
        width: 100%;
        border-radius: 14px;
    }

    .online-tool-visual,
    .online-scenario-image {
        min-height: 320px;
        border-radius: 26px;
    }

    .online-tool-floating-card {
        left: 18px;
        right: 18px;
        bottom: 18px;
        padding: 18px;
        border-radius: 20px;
    }

    .online-tool-card-media {
        height: 210px;
    }

    .online-tool-card-body {
        padding: 22px 22px 34px;
    }

    .online-tool-flow > div {
        min-height: auto;
        padding: 22px 22px 42px;
    }

    .online-tool-flow span {
        margin-bottom: 24px;
    }

    .cta-section {
        padding-top: 36px;
        padding-bottom: 68px;
    }

    .cta-light-card {
        padding: 26px 20px;
        border-radius: 28px;
        gap: 26px;
    }

    .cta-label {
        font-size: 11px;
    }

    .cta-light-card h2 {
        font-size: clamp(24px, 7vw, 31px);
        line-height: 1.20;
    }

    .cta-light-card p:not(.cta-label) {
        margin-top: 18px;
        font-size: 15px;
        line-height: 1.72;
    }

    .cta-light-action {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

        .cta-light-action .btn {
            width: 100%;
            min-height: 50px;
        }

    .simple-footer-inner {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .header-inner,
    .loya-hero,
    .section,
    .media-page,
    .page-hero,
    .simple-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand-text strong {
        font-size: 14px;
    }

    .theme-tools {
        width: 100%;
        justify-content: flex-end;
    }

    .loya-hero h1 {
        font-size: clamp(26px, 8.8vw, 34px);
        line-height: 1.16;
    }

    .loya-hero-copy p {
        font-size: 14.5px;
    }

    .hero-chip-row span {
        font-size: 11px;
        padding: 7px 10px;
    }

    .section {
        padding-top: 42px;
        padding-bottom: 42px;
    }

        .section h2,
        .section-heading h2,
        .glass-panel h2 {
            font-size: clamp(23px, 7.4vw, 30px);
        }

    .card-media {
        height: 190px;
    }

    .card h3,
    .home-capability-card h3 {
        font-size: 20px;
    }

    .card p,
    .feature-list li,
    .online-tool-card-body p,
    .online-tool-flow p,
    .online-scenario-list span,
    .online-tool-point span {
        font-size: 14px;
    }

    .cta-light-card {
        padding: 24px 18px;
    }

        .cta-light-card h2 {
            font-size: clamp(24px, 7.2vw, 31px);
        }
}

/* =========================================================
   Operation Page - Foreign Trade E-commerce Operations
   ========================================================= */

.operation-hero {
    --page-image: url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=2200&q=82");
}

.operation-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.46fr);
    gap: 34px;
    align-items: end;
}

.operation-hero-copy {
    max-width: 780px;
}

.operation-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.operation-hero-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: 32px;
    color: #fff;
    background: linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.055));
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: var(--shadow-dark);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

    .operation-hero-card::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(circle at 20% 0%, rgba(240,215,156,0.20), transparent 34%), radial-gradient(circle at 90% 12%, rgba(145,167,255,0.14), transparent 32%);
    }

    .operation-hero-card > * {
        position: relative;
        z-index: 1;
    }

    .operation-hero-card > span {
        display: block;
        color: var(--accent-2);
        font-size: 13px;
        font-weight: 900;
        letter-spacing: 0.08em;
    }

    .operation-hero-card > strong {
        display: block;
        margin: 14px 0 24px;
        font-size: clamp(24px, 2.4vw, 34px);
        line-height: 1.16;
        letter-spacing: -0.04em;
    }

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

    .operation-hero-mini-grid > div {
        padding: 16px;
        border-radius: 18px;
        background: rgba(0,0,0,0.22);
        border: 1px solid rgba(255,255,255,0.10);
    }

    .operation-hero-mini-grid b,
    .operation-hero-mini-grid small {
        display: block;
    }

    .operation-hero-mini-grid b {
        margin-bottom: 6px;
        color: #fff8e8;
        font-size: 18px;
    }

    .operation-hero-mini-grid small {
        color: rgba(246,243,238,0.66);
        font-size: 12.5px;
        line-height: 1.45;
    }

.operation-intro-section {
    padding-top: 66px;
}

.operation-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.55fr);
    gap: 28px;
    align-items: stretch;
}

.operation-intro-main {
    padding: 36px;
    border-radius: 34px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

    .operation-intro-main .lead {
        margin-top: 0;
        margin-bottom: 16px;
    }

.operation-simple-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

    .operation-simple-points span {
        padding: 10px 14px;
        border-radius: 999px;
        color: var(--text);
        background: rgba(255,255,255,0.06);
        border: 1px solid var(--border);
        font-size: 14px;
        font-weight: 800;
    }

html[data-mode="light"] .operation-simple-points span {
    background: rgba(255,255,255,0.74);
}

.operation-cost-card {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    padding: 34px;
    border-radius: 34px;
    color: #fff;
    background: linear-gradient(180deg, rgba(5,10,22,0.08), rgba(5,10,22,0.78)), url("https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=1400&q=82");
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: var(--shadow-dark);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

    .operation-cost-card span {
        color: var(--accent-2);
        font-size: 13px;
        font-weight: 900;
        letter-spacing: 0.08em;
    }

    .operation-cost-card strong {
        display: block;
        margin: 14px 0;
        font-size: clamp(36px, 4vw, 58px);
        line-height: 1;
        letter-spacing: -0.06em;
    }

    .operation-cost-card p {
        margin: 0;
        color: rgba(246,243,238,0.76);
        line-height: 1.74;
    }

.operation-target-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.operation-target-card,
.operation-advantage-card,
.operation-service-card,
.operation-vs-card {
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: var(--shadow-card);
}

.operation-target-card {
    overflow: hidden;
    border-radius: 30px;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

    .operation-target-card:hover,
    .operation-advantage-card:hover,
    .operation-service-card:hover {
        transform: translateY(-4px);
        border-color: color-mix(in srgb, var(--accent), transparent 45%);
    }

.operation-target-image {
    height: 220px;
    background: linear-gradient(180deg, rgba(5,10,22,0.02), rgba(5,10,22,0.22)), var(--target-image);
    background-size: cover;
    background-position: center;
}

.operation-target-newbie {
    --target-image: url("https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=1200&q=82");
}

.operation-target-trial {
    --target-image: url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1200&q=82");
}

.operation-target-store {
    --target-image: url("https://images.unsplash.com/photo-1441986300917-64674bd600d8?auto=format&fit=crop&w=1200&q=82");
}

.operation-target-cost {
    --target-image: url("https://images.unsplash.com/photo-1556761175-4b46a572b786?auto=format&fit=crop&w=1200&q=82");
}

.operation-target-batch {
    --target-image: url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1200&q=82");
}

.operation-target-stuck {
    --target-image: url("https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1200&q=82");
}

.operation-target-body {
    position: relative;
    min-height: 222px;
    padding: 24px 24px 40px;
}

    .operation-target-body::after,
    .operation-vs-card::after,
    .operation-adv-body::after,
    .operation-service-body::after {
        content: "";
        position: absolute;
        left: 24px;
        right: 24px;
        bottom: 18px;
        height: 1px;
        background: linear-gradient(90deg, var(--accent), rgba(159,123,63,0.18), transparent);
        opacity: 0.76;
    }

    .operation-target-body span {
        display: inline-flex;
        margin-bottom: 16px;
        color: var(--accent);
        font-size: 13px;
        font-weight: 950;
        letter-spacing: 0.08em;
    }

    .operation-target-body h3,
    .operation-vs-card h3,
    .operation-service-card h3 {
        margin-bottom: 12px;
    }

    .operation-target-body p,
    .operation-vs-card p,
    .operation-advantage-card p,
    .operation-service-card p {
        margin: 0;
        color: var(--muted);
        font-size: 14.5px;
        line-height: 1.68;
    }

.operation-vs-layout {
    display: grid;
    grid-template-columns: minmax(340px, 0.52fr) minmax(0, 1fr);
    gap: 30px;
    align-items: stretch;
}

.operation-visual-card {
    position: relative;
    min-height: 620px;
    border-radius: 34px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    background: linear-gradient(180deg, rgba(5,10,22,0.05), rgba(5,10,22,0.76)), var(--visual-image);
    background-size: cover;
    background-position: center;
}

.operation-visual-hiring {
    --visual-image: url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1400&q=82");
}

.operation-visual-caption {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    padding: 24px;
    border-radius: 24px;
    color: #fff;
    background: rgba(10,15,24,0.58);
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

    .operation-visual-caption span {
        display: block;
        margin-bottom: 8px;
        color: var(--accent-2);
        font-size: 13px;
        font-weight: 900;
    }

    .operation-visual-caption strong {
        display: block;
        font-size: 26px;
        line-height: 1.18;
    }

    .operation-visual-caption p {
        margin: 12px 0 0;
        color: rgba(246,243,238,0.72);
        font-size: 14px;
        line-height: 1.65;
    }

.operation-vs-content {
    padding: 34px;
    border-radius: 34px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

.operation-vs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.operation-vs-card {
    position: relative;
    min-height: 230px;
    padding: 24px 24px 42px;
    border-radius: 28px;
}

.operation-vs-icon,
.operation-service-no {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin-bottom: 28px;
    color: #171007;
    font-weight: 950;
    background: var(--gradient-main);
    box-shadow: 0 14px 30px rgba(214,177,109,0.22);
}

.operation-advantage-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.operation-advantage-card {
    overflow: hidden;
    border-radius: 30px;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.operation-adv-image {
    height: 210px;
    background: linear-gradient(180deg, rgba(5,10,22,0.02), rgba(5,10,22,0.24)), var(--adv-image);
    background-size: cover;
    background-position: center;
}

.operation-adv-short {
    --adv-image: url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1200&q=82");
}

.operation-adv-price {
    --adv-image: url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1200&q=82");
}

.operation-adv-ai {
    --adv-image: url("https://images.unsplash.com/photo-1677442136019-21780ecad995?auto=format&fit=crop&w=1200&q=82");
}

.operation-adv-process {
    --adv-image: url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1200&q=82");
}

.operation-adv-secure {
    --adv-image: url("https://images.unsplash.com/photo-1555949963-aa79dcee981c?auto=format&fit=crop&w=1200&q=82");
}

.operation-adv-system {
    --adv-image: url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1200&q=82");
}

.operation-adv-body {
    position: relative;
    min-height: 190px;
    padding: 24px 24px 42px;
}

.operation-advantage-card strong {
    display: block;
    margin-bottom: 14px;
    color: var(--text);
    font-size: 20px;
    line-height: 1.25;
}

.operation-service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.operation-service-card {
    overflow: hidden;
    border-radius: 30px;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.operation-service-media {
    height: 210px;
    background: linear-gradient(180deg, rgba(5,10,22,0.02), rgba(5,10,22,0.20)), var(--service-image);
    background-size: cover;
    background-position: center;
}

.operation-service-diagnosis {
    --service-image: url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1200&q=82");
}

.operation-service-selection {
    --service-image: url("https://images.unsplash.com/photo-1523275335684-37898b6baf30?auto=format&fit=crop&w=1200&q=82");
}

.operation-service-listing {
    --service-image: url("https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?auto=format&fit=crop&w=1200&q=82");
}

.operation-service-decoration {
    --service-image: url("https://images.unsplash.com/photo-1559028006-448665bd7c7f?auto=format&fit=crop&w=1200&q=82");
}

.operation-service-data {
    --service-image: url("https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1200&q=82");
}

.operation-service-inquiry {
    --service-image: url("https://images.unsplash.com/photo-1516321497487-e288fb19713f?auto=format&fit=crop&w=1200&q=82");
}

.operation-service-after {
    --service-image: url("https://images.unsplash.com/photo-1556742502-ec7c0e9f34b1?auto=format&fit=crop&w=1200&q=82");
}

.operation-service-review {
    --service-image: url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1200&q=82");
}

.operation-service-body {
    position: relative;
    min-height: 280px;
    padding: 24px 24px 42px;
}

    .operation-service-body .operation-service-no {
        margin-top: -52px;
        margin-bottom: 22px;
        position: relative;
        z-index: 2;
    }

.operation-flow-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 34px;
    align-items: stretch;
}

.operation-flow-image {
    position: relative;
    min-height: 560px;
    border-radius: 34px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    background: linear-gradient(180deg, rgba(5,10,22,0.04), rgba(5,10,22,0.72)), url("https://images.unsplash.com/photo-1556761175-129418cb2dfe?auto=format&fit=crop&w=1600&q=82");
    background-size: cover;
    background-position: center;
}

.operation-flow-note {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    padding: 24px;
    border-radius: 24px;
    color: #fff;
    background: rgba(10, 15, 24, 0.58);
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

    .operation-flow-note strong {
        display: block;
        margin-bottom: 8px;
        font-size: 24px;
    }

    .operation-flow-note span {
        color: rgba(246, 243, 238, 0.72);
    }

.operation-flow-content {
    padding: 36px;
    border-radius: 34px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

.operation-flow-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

    .operation-flow-list > div {
        padding: 18px 20px;
        border-radius: 20px;
        border: 1px solid var(--border);
        background: rgba(255,255,255,0.04);
    }

html[data-mode="light"] .operation-flow-list > div {
    background: rgba(255,255,255,0.68);
}

.operation-flow-list strong {
    display: block;
    margin-bottom: 6px;
}

.operation-flow-list span {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.65;
}

.operation-cta-card h2 {
    max-width: 860px;
}

/* =========================
   Operation responsive
   ========================= */

@media (max-width: 1320px) {
    .operation-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .operation-service-body {
        min-height: 240px;
    }
}

@media (max-width: 1199px) {
    .operation-hero-inner,
    .operation-intro-grid,
    .operation-vs-layout,
    .operation-flow-layout {
        grid-template-columns: 1fr;
    }

    .operation-hero-card {
        max-width: 760px;
    }

    .operation-target-grid,
    .operation-advantage-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .operation-visual-card,
    .operation-flow-image {
        min-height: 420px;
    }
}

@media (max-width: 760px) {
    .operation-intro-section {
        padding-top: 48px;
    }

    .operation-hero-actions .btn {
        width: 100%;
    }

    .operation-hero-card,
    .operation-intro-main,
    .operation-cost-card,
    .operation-vs-content,
    .operation-flow-content {
        padding: 24px;
        border-radius: 26px;
    }

    .operation-hero-mini-grid,
    .operation-target-grid,
    .operation-vs-grid,
    .operation-advantage-grid,
    .operation-service-grid,
    .operation-flow-list {
        grid-template-columns: 1fr;
    }

    .operation-target-image,
    .operation-adv-image,
    .operation-service-media {
        height: 190px;
    }

    .operation-target-body,
    .operation-adv-body,
    .operation-service-body {
        min-height: auto;
        padding: 22px 22px 42px;
    }

    .operation-vs-card {
        min-height: auto;
        padding: 22px 22px 42px;
        border-radius: 26px;
    }

    .operation-vs-icon,
    .operation-service-no {
        margin-bottom: 22px;
    }

    .operation-visual-card,
    .operation-flow-image {
        min-height: 330px;
        border-radius: 26px;
    }

    .operation-visual-caption,
    .operation-flow-note {
        left: 18px;
        right: 18px;
        bottom: 18px;
        padding: 18px;
        border-radius: 20px;
    }

        .operation-visual-caption strong,
        .operation-flow-note strong {
            font-size: 20px;
        }
}

@media (max-width: 480px) {
    .operation-target-image,
    .operation-adv-image,
    .operation-service-media {
        height: 176px;
    }

    .operation-simple-points span {
        width: 100%;
        border-radius: 14px;
    }
}

/* =========================================================
   Services Page - International Station Software Service
   ========================================================= */

.service-hero {
    --page-image: url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=2200&q=82");
}

.service-hero-inner {
    min-height: 420px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.52fr);
    gap: 38px;
    align-items: end;
}

.service-hero-copy {
    max-width: 860px;
}

.service-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.service-hero-panel {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: 32px;
    color: #fff;
    background: linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.052));
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: var(--shadow-dark);
    backdrop-filter: blur(18px) saturate(128%);
    -webkit-backdrop-filter: blur(18px) saturate(128%);
}

    .service-hero-panel::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(circle at 15% 10%, rgba(240, 215, 156, 0.18), transparent 34%), radial-gradient(circle at 88% 8%, rgba(145, 167, 255, 0.16), transparent 32%);
    }

    .service-hero-panel > * {
        position: relative;
        z-index: 1;
    }

    .service-hero-panel > span {
        display: block;
        color: var(--accent-2);
        font-size: 12px;
        font-weight: 950;
        letter-spacing: 0.10em;
    }

    .service-hero-panel strong {
        display: block;
        margin: 12px 0 14px;
        font-size: clamp(25px, 2.3vw, 34px);
        line-height: 1.18;
        letter-spacing: -0.04em;
    }

    .service-hero-panel p {
        margin: 0;
        color: rgba(246, 243, 238, 0.72);
        line-height: 1.72;
    }

.service-hero-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

    .service-hero-mini-grid div {
        padding: 16px;
        border-radius: 18px;
        background: rgba(255,255,255,0.07);
        border: 1px solid rgba(255,255,255,0.10);
    }

    .service-hero-mini-grid b {
        display: block;
        color: #fff8e8;
        font-size: 21px;
        line-height: 1;
    }

    .service-hero-mini-grid small {
        display: block;
        margin-top: 8px;
        color: rgba(246,243,238,0.64);
        font-size: 12.5px;
    }

.service-type-section {
    padding-top: 66px;
}

.service-type-layout,
.service-advantage-layout,
.service-flow-layout {
    display: grid;
    gap: 34px;
    align-items: stretch;
}

.service-type-layout {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.08fr);
}

.service-advantage-layout,
.service-flow-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.82fr);
}

.service-type-visual,
.service-advantage-visual,
.service-flow-visual {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    border-radius: 34px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    background-size: cover;
    background-position: center;
}

.service-type-visual {
    background-image: linear-gradient(180deg, rgba(5,10,22,0.04), rgba(5,10,22,0.72)), url("https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1600&q=82");
}

.service-advantage-visual {
    background-image: linear-gradient(180deg, rgba(5,10,22,0.04), rgba(5,10,22,0.72)), url("https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1600&q=82");
}

.service-flow-visual {
    background-image: linear-gradient(180deg, rgba(5,10,22,0.04), rgba(5,10,22,0.72)), url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1600&q=82");
}

.service-visual-caption {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    padding: 24px;
    border-radius: 24px;
    color: #fff;
    background: rgba(10, 15, 24, 0.58);
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

    .service-visual-caption span {
        display: block;
        margin-bottom: 9px;
        color: var(--accent-2);
        font-size: 13px;
        font-weight: 950;
        letter-spacing: 0.08em;
    }

    .service-visual-caption strong {
        display: block;
        font-size: clamp(24px, 2.6vw, 36px);
        line-height: 1.18;
        letter-spacing: -0.04em;
    }

    .service-visual-caption p {
        margin: 12px 0 0;
        color: rgba(246, 243, 238, 0.72);
        line-height: 1.68;
    }

.service-type-content,
.service-flow-content {
    padding: 36px;
    border-radius: 34px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

.service-type-points,
.service-flow-list {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

    .service-type-points > div,
    .service-flow-list > div {
        padding: 18px 20px;
        border-radius: 20px;
        border: 1px solid var(--border);
        background: rgba(255,255,255,0.04);
    }

html[data-mode="light"] .service-type-points > div,
html[data-mode="light"] .service-flow-list > div {
    background: rgba(255,255,255,0.68);
}

.service-type-points span {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0.08em;
}

.service-type-points strong,
.service-flow-list strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
    line-height: 1.32;
}

.service-type-points p,
.service-flow-list span {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.66;
}

.service-tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.service-tool-card,
.service-company-card {
    overflow: hidden;
    border-radius: 30px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

    .service-tool-card:hover,
    .service-company-card:hover {
        transform: translateY(-4px);
        border-color: color-mix(in srgb, var(--accent), transparent 45%);
    }

.service-tool-media,
.service-company-media {
    position: relative;
    height: 260px;
    background-size: cover;
    background-position: center;
}

    .service-tool-media::after,
    .service-company-media::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(5,10,22,0.02), rgba(5,10,22,0.18));
    }

.service-tool-listing .service-tool-media {
    background-image: url("https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=1400&q=82");
}

.service-tool-selection .service-tool-media {
    background-image: url("https://images.unsplash.com/photo-1523275335684-37898b6baf30?auto=format&fit=crop&w=1400&q=82");
}

.service-tool-diagnosis .service-tool-media {
    background-image: url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1400&q=82");
}

.service-tool-body {
    position: relative;
    min-height: 360px;
    padding: 26px 26px 42px;
}

    .service-tool-body::after,
    .service-company-body::after,
    .service-advantage-list article::after {
        content: "";
        position: absolute;
        left: 26px;
        right: 26px;
        bottom: 19px;
        height: 1px;
        background: linear-gradient(90deg, var(--accent), rgba(159,123,63,0.18), transparent);
        opacity: 0.78;
    }

    .service-tool-body > span {
        display: inline-flex;
        margin-bottom: 16px;
        color: var(--accent);
        font-size: 13px;
        font-weight: 950;
        letter-spacing: 0.08em;
    }

    .service-tool-body h3 {
        margin-bottom: 12px;
        font-size: clamp(21px, 1.7vw, 25px);
    }

    .service-tool-body p,
    .service-company-body p,
    .service-advantage-list p {
        margin: 0;
        color: var(--muted);
        font-size: 14.5px;
        line-height: 1.68;
    }

.service-advantage-section {
    position: relative;
}

.service-advantage-content {
    padding: 36px;
    border-radius: 34px;
    background: radial-gradient(circle at 12% 8%, rgba(214,177,109,0.13), transparent 30%), var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

.service-advantage-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

    .service-advantage-list article {
        position: relative;
        min-height: 230px;
        padding: 22px 22px 42px;
        border-radius: 24px;
        border: 1px solid var(--border);
        background: rgba(255,255,255,0.04);
    }

html[data-mode="light"] .service-advantage-list article {
    background: rgba(255,255,255,0.68);
}

.service-advantage-list article > span {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    border-radius: 17px;
    color: #171007;
    font-weight: 950;
    background: var(--gradient-main);
    box-shadow: 0 14px 30px rgba(214,177,109,0.22);
}

.service-advantage-list strong {
    display: block;
    margin-bottom: 10px;
    font-size: 19px;
    line-height: 1.32;
}

.service-company-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.service-company-media {
    height: 210px;
}

.service-company-cost .service-company-media {
    background-image: url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1300&q=82");
}

.service-company-focus .service-company-media {
    background-image: url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1300&q=82");
}

.service-company-young .service-company-media {
    background-image: url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1300&q=82");
}

.service-company-pro .service-company-media {
    background-image: url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1300&q=82");
}

.service-company-price .service-company-media {
    background-image: url("https://images.unsplash.com/photo-1554224154-26032fced8bd?auto=format&fit=crop&w=1300&q=82");
}

.service-company-support .service-company-media {
    background-image: url("https://images.unsplash.com/photo-1516321497487-e288fb19713f?auto=format&fit=crop&w=1300&q=82");
}

.service-company-body {
    position: relative;
    min-height: 230px;
    padding: 24px 24px 42px;
}

    .service-company-body strong {
        display: block;
        margin-bottom: 12px;
        font-size: 20px;
        line-height: 1.3;
    }

/* =========================
   Services responsive
   ========================= */

@media (max-width: 1280px) {
    .service-tool-grid,
    .service-company-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-tool-body {
        min-height: 330px;
    }
}

@media (max-width: 1199px) {
    .service-hero-inner,
    .service-type-layout,
    .service-advantage-layout,
    .service-flow-layout {
        grid-template-columns: 1fr;
    }

    .service-hero-panel {
        max-width: 760px;
    }

    .service-type-visual,
    .service-advantage-visual,
    .service-flow-visual {
        min-height: 420px;
    }
}

@media (max-width: 760px) {
    .service-hero-inner {
        min-height: 300px;
    }

    .service-hero-actions .btn {
        width: 100%;
    }

    .service-hero-panel,
    .service-type-content,
    .service-advantage-content,
    .service-flow-content {
        padding: 24px;
        border-radius: 26px;
    }

    .service-hero-mini-grid,
    .service-tool-grid,
    .service-advantage-list,
    .service-company-grid {
        grid-template-columns: 1fr;
    }

    .service-type-visual,
    .service-advantage-visual,
    .service-flow-visual {
        min-height: 330px;
        border-radius: 26px;
    }

    .service-visual-caption {
        left: 18px;
        right: 18px;
        bottom: 18px;
        padding: 18px;
        border-radius: 20px;
    }

        .service-visual-caption strong {
            font-size: 20px;
        }

    .service-tool-media {
        height: 200px;
    }

    .service-company-media {
        height: 190px;
    }

    .service-tool-body,
    .service-company-body,
    .service-advantage-list article {
        min-height: auto;
        padding: 22px 22px 42px;
    }

        .service-tool-body::after,
        .service-company-body::after,
        .service-advantage-list article::after {
            left: 22px;
            right: 22px;
        }

        .service-advantage-list article > span {
            margin-bottom: 20px;
        }
}

@media (max-width: 480px) {
    .service-tool-media,
    .service-company-media {
        height: 176px;
    }

    .service-type-points > div,
    .service-flow-list > div {
        padding: 16px;
        border-radius: 18px;
    }
}

/* =========================================================
   Admin console clean override
   说明：只覆盖后台布局和图片生成页工作台视觉，不影响官网页面结构。
   ========================================================= */

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr) !important;
    color: #111827;
    background: #f5f6f8 !important;
}

html[data-mode="dark"] .admin-shell {
    color: #e5e7eb;
    background: #0b1120 !important;
}

.admin-shell .admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 16px 14px !important;
    display: flex;
    flex-direction: column;
    color: #1f2937 !important;
    background: #ffffff !important;
    border-right: 1px solid #e5e7eb !important;
    box-shadow: none !important;
}

html[data-mode="dark"] .admin-shell .admin-sidebar {
    color: #d1d5db !important;
    background: #111827 !important;
    border-right-color: rgba(255, 255, 255, 0.10) !important;
}

.admin-sidebar-panel {
    min-height: 0;
}

.admin-shell .admin-brand,
.admin-sidebar .admin-brand {
    height: 48px;
    margin: 0 0 18px !important;
    padding: 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit !important;
}

.admin-shell .admin-brand-mark,
.admin-sidebar .admin-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: #111827;
    font-size: 12px;
    font-weight: 900;
    background: #f2c56b !important;
    box-shadow: none !important;
}

.admin-shell .admin-brand strong,
.admin-sidebar .admin-brand strong {
    color: #111827 !important;
    font-size: 15px;
    letter-spacing: 0;
}

html[data-mode="dark"] .admin-shell .admin-brand strong,
html[data-mode="dark"] .admin-sidebar .admin-brand strong {
    color: #f9fafb !important;
}

.admin-shell .admin-brand small,
.admin-sidebar .admin-brand small {
    margin-top: 1px;
    color: #6b7280 !important;
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
}

html[data-mode="dark"] .admin-shell .admin-brand small,
html[data-mode="dark"] .admin-sidebar .admin-brand small {
    color: #9ca3af !important;
}

.admin-side-nav-card,
.admin-side-nav-caption,
.admin-sidebar-card {
    display: none !important;
}

.admin-shell .admin-side-nav,
.admin-sidebar .admin-side-nav {
    margin: 0 !important;
    display: grid;
    gap: 4px !important;
}

.admin-shell .admin-side-group,
.admin-sidebar .admin-side-group {
    display: grid;
    gap: 4px;
}

/* Keep the sidebar typography stable when the content viewport changes. */
.admin-shell .admin-sidebar,
.admin-shell .admin-sidebar .admin-side-nav,
.admin-shell .admin-sidebar .admin-side-group {
    font-size: 16px !important;
    line-height: 1.25 !important;
}

.admin-shell .admin-sidebar .admin-side-section-title {
    font-size: 12px !important;
    line-height: 1.25 !important;
}

.admin-shell .admin-side-link,
.admin-sidebar .admin-side-link {
    width: 100%;
    min-height: 40px !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 8px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #374151 !important;
    background: transparent !important;
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1;
    text-align: left;
    box-shadow: none !important;
    transform: none !important;
    transition: background-color 0.16s ease, color 0.16s ease;
}

html[data-mode="dark"] .admin-shell .admin-side-link,
html[data-mode="dark"] .admin-sidebar .admin-side-link {
    color: #d1d5db !important;
}

.admin-shell .admin-side-link:hover,
.admin-sidebar .admin-side-link:hover,
.admin-shell .admin-side-link.active,
.admin-sidebar .admin-side-link.active {
    color: #111827 !important;
    background: #eef2ff !important;
}

html[data-mode="dark"] .admin-shell .admin-side-link:hover,
html[data-mode="dark"] .admin-sidebar .admin-side-link:hover,
html[data-mode="dark"] .admin-shell .admin-side-link.active,
html[data-mode="dark"] .admin-sidebar .admin-side-link.active {
    color: #ffffff !important;
    background: rgba(59, 130, 246, 0.16) !important;
}

.admin-side-link-text {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
}

    .admin-side-link-text small {
        display: none !important;
    }

    .admin-side-link-text strong {
        display: inline;
        overflow: hidden;
        color: inherit !important;
        font-size: inherit !important;
        font-weight: inherit !important;
        line-height: 1;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.admin-side-toggle-icon {
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    width: 18px;
    height: 18px;
    font-size: 14px;
    line-height: 1;
    transform: none !important;
}

.admin-side-toggle-icon .admin-svg-icon {
    width: 14px;
    height: 14px;
}

.admin-side-toggle[aria-expanded="true"] .admin-side-toggle-icon {
    transform: rotate(180deg) !important;
}

.admin-shell .admin-side-subnav,
.admin-sidebar .admin-side-subnav {
    display: none;
    margin: 0 0 2px 0 !important;
    padding: 0 0 0 12px !important;
    border-left: 0 !important;
    gap: 3px !important;
}

    .admin-shell .admin-side-subnav.is-open,
    .admin-sidebar .admin-side-subnav.is-open {
        display: grid;
    }

.admin-shell .admin-side-sublink,
.admin-sidebar .admin-side-sublink {
    min-height: 34px !important;
    padding: 0 10px !important;
    border-radius: 7px !important;
    display: flex;
    align-items: center;
    color: #6b7280 !important;
    background: transparent !important;
    font-size: 16px !important;
    font-weight: 600;
    box-shadow: none !important;
}

html[data-mode="dark"] .admin-shell .admin-side-sublink,
html[data-mode="dark"] .admin-sidebar .admin-side-sublink {
    color: #9ca3af !important;
}

.admin-shell .admin-side-sublink:hover,
.admin-sidebar .admin-side-sublink:hover,
.admin-shell .admin-side-sublink.active,
.admin-sidebar .admin-side-sublink.active {
    color: #111827 !important;
    background: #f3f4f6 !important;
}

.admin-shell .admin-side-link,
.admin-sidebar .admin-side-link {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.admin-shell .admin-side-link-text,
.admin-sidebar .admin-side-link-text {
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

.admin-shell .admin-side-link-text strong,
.admin-sidebar .admin-side-link-text strong {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

html[data-mode="dark"] .admin-shell .admin-side-sublink:hover,
html[data-mode="dark"] .admin-sidebar .admin-side-sublink:hover,
html[data-mode="dark"] .admin-shell .admin-side-sublink.active,
html[data-mode="dark"] .admin-sidebar .admin-side-sublink.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.admin-user-menu-wrap {
    position: relative;
    margin-top: auto;
    padding-top: 10px !important;
    border-top: 1px solid #e5e7eb;
}

html[data-mode="dark"] .admin-user-menu-wrap {
    border-top-color: rgba(255, 255, 255, 0.10);
}

.admin-user-menu-wrap::before,
.admin-user-menu-wrap::after {
    display: none !important;
}

.admin-shell .admin-user-card,
.admin-sidebar .admin-user-card {
    width: 100%;
    min-height: 48px !important;
    padding: 7px 10px !important;
    border: 0 !important;
    border-radius: 12px !important;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 10px;
    color: inherit !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    transition: background-color .18s ease, box-shadow .18s ease;
}

    .admin-shell .admin-user-card:hover,
    .admin-sidebar .admin-user-card:hover {
        background: #f8fafc !important;
        box-shadow: inset 0 0 0 1px #e5e7eb !important;
    }

html[data-mode="dark"] .admin-shell .admin-user-card:hover,
html[data-mode="dark"] .admin-sidebar .admin-user-card:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

.admin-shell .admin-user-avatar,
.admin-sidebar .admin-user-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 10px !important;
    color: #111827;
    font-size: 12px;
    font-weight: 800;
    background: #f2c56b !important;
    box-shadow: none !important;
}

.admin-shell .admin-user-meta,
.admin-sidebar .admin-user-meta {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.admin-shell .admin-user-meta strong,
.admin-sidebar .admin-user-meta strong {
    color: #111827 !important;
    font-size: 13px !important;
    font-weight: 700;
}

html[data-mode="dark"] .admin-shell .admin-user-meta strong,
html[data-mode="dark"] .admin-sidebar .admin-user-meta strong {
    color: #f9fafb !important;
}

.admin-shell .admin-user-meta small,
.admin-sidebar .admin-user-meta small,
.admin-shell .admin-user-caret,
.admin-sidebar .admin-user-caret {
    color: #6b7280 !important;
    font-size: 11px;
}

.admin-shell .admin-user-caret,
.admin-sidebar .admin-user-caret {
    justify-self: end;
    line-height: 1;
}

html[data-mode="dark"] .admin-shell .admin-user-meta small,
html[data-mode="dark"] .admin-sidebar .admin-user-meta small,
html[data-mode="dark"] .admin-shell .admin-user-caret,
html[data-mode="dark"] .admin-sidebar .admin-user-caret {
    color: #9ca3af !important;
}

.admin-shell .admin-user-menu,
.admin-sidebar .admin-user-menu {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 8px);
    padding: 8px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 30;
}

html[data-mode="dark"] .admin-shell .admin-user-menu,
html[data-mode="dark"] .admin-sidebar .admin-user-menu {
    border-color: rgba(255, 255, 255, 0.12);
    background: #111827;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
}

.admin-shell .admin-user-menu a,
.admin-shell .admin-user-menu button,
.admin-sidebar .admin-user-menu a,
.admin-sidebar .admin-user-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 11px;
    border-radius: 10px;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .01em;
    transition: background-color .18s ease, color .18s ease;
}

.admin-shell .admin-user-menu-icon,
.admin-sidebar .admin-user-menu-icon {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    min-width: 17px;
    color: inherit;
}

.admin-shell .admin-user-menu-icon .admin-svg-icon,
.admin-sidebar .admin-user-menu-icon .admin-svg-icon {
    width: 17px;
    height: 17px;
}

html[data-mode="dark"] .admin-shell .admin-user-menu a,
html[data-mode="dark"] .admin-shell .admin-user-menu button,
html[data-mode="dark"] .admin-sidebar .admin-user-menu a,
html[data-mode="dark"] .admin-sidebar .admin-user-menu button {
    color: #d1d5db;
}

.admin-shell .admin-user-menu a:hover,
.admin-shell .admin-user-menu button:hover,
.admin-sidebar .admin-user-menu a:hover,
.admin-sidebar .admin-user-menu button:hover {
    color: #111827;
    background: #f3f4f6;
}

html[data-mode="dark"] .admin-shell .admin-user-menu a:hover,
html[data-mode="dark"] .admin-shell .admin-user-menu button:hover,
html[data-mode="dark"] .admin-sidebar .admin-user-menu a:hover,
html[data-mode="dark"] .admin-sidebar .admin-user-menu button:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.admin-user-menu-divider {
    margin: 6px 4px;
    height: 1px;
    background: #e5e7eb !important;
}

html[data-mode="dark"] .admin-user-menu-divider {
    background: rgba(255, 255, 255, 0.12) !important;
}

.admin-main-frame {
    min-width: 0;
}

.admin-shell .admin-topbar {
    min-height: 56px !important;
    padding: 0 20px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #111827 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html[data-mode="dark"] .admin-shell .admin-topbar {
    color: #f9fafb !important;
    background: #111827 !important;
    border-bottom-color: rgba(255, 255, 255, 0.10) !important;
}

.admin-topbar-kicker {
    display: none !important;
}

.admin-shell .admin-topbar strong {
    color: inherit !important;
    font-size: 16px !important;
    font-weight: 700;
    letter-spacing: 0;
}

.admin-topbar-actions,
.admin-heading-actions {
    display: flex;
    align-items: center;
    gap: 8px !important;
}

.admin-shell .admin-theme-select,
.admin-shell .admin-mode-toggle,
.admin-shell .admin-public-link,
.admin-shell .admin-outline-button,
.admin-shell .admin-small-button {
    min-height: 34px !important;
    height: 34px;
    padding: 0 10px !important;
    border-radius: 8px !important;
    border: 1px solid #d1d5db !important;
    color: #374151 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    font-size: 13px;
    font-weight: 600;
}

html[data-mode="dark"] .admin-shell .admin-theme-select,
html[data-mode="dark"] .admin-shell .admin-mode-toggle,
html[data-mode="dark"] .admin-shell .admin-public-link,
html[data-mode="dark"] .admin-shell .admin-outline-button,
html[data-mode="dark"] .admin-shell .admin-small-button {
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #e5e7eb !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.admin-shell .admin-mode-toggle {
    width: 34px;
    padding: 0 !important;
}

.admin-shell .admin-main-content {
    padding: 16px !important;
    color: #111827;
}

html[data-mode="dark"] .admin-shell .admin-main-content {
    color: #e5e7eb;
}

.admin-dashboard {
    gap: 14px !important;
}

.admin-shell .admin-page-heading,
.admin-shell .admin-panel,
.admin-shell .admin-metric-card,
.admin-shell .admin-shortcut-card,
.admin-shell .admin-kanban-card {
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.admin-shell {
    --admin-type-xs: var(--admin-text-xs);
    --admin-type-sm: var(--admin-text-sm);
    --admin-type-base: var(--admin-text-base);
    --admin-type-lg: var(--admin-text-lg);
    --admin-type-xl: var(--admin-text-xl);
}

html[data-mode="dark"] .admin-shell .admin-page-heading,
html[data-mode="dark"] .admin-shell .admin-panel,
html[data-mode="dark"] .admin-shell .admin-metric-card,
html[data-mode="dark"] .admin-shell .admin-shortcut-card,
html[data-mode="dark"] .admin-shell .admin-kanban-card {
    border-color: rgba(255, 255, 255, 0.10) !important;
    background: #111827 !important;
}

.admin-shell .admin-page-heading {
    padding: 14px 16px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .admin-shell .admin-page-heading h1 {
        margin: 0 0 4px !important;
        color: #111827 !important;
        font-size: var(--admin-type-xl) !important;
        line-height: 1.25;
        letter-spacing: -0.02em;
    }

html[data-mode="dark"] .admin-shell .admin-page-heading h1 {
    color: #f9fafb !important;
}

.admin-shell .admin-page-heading p,
.admin-shell .admin-panel p {
    margin: 0;
    color: #6b7280 !important;
    font-size: var(--admin-type-sm);
    line-height: 1.5;
}

html[data-mode="dark"] .admin-shell .admin-page-heading p,
html[data-mode="dark"] .admin-shell .admin-panel p {
    color: #9ca3af !important;
}

.admin-shell .admin-page-eyebrow,
.admin-shell .admin-panel-head span,
.admin-shell .admin-metric-card span,
.admin-shell .admin-shortcut-card span,
.admin-shell .admin-kanban-card span {
    color: #2563eb;
    font-size: var(--admin-type-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-shell .admin-panel {
    padding: 16px !important;
}

.admin-shell .admin-panel-head {
    margin-bottom: 12px !important;
}

.admin-shell .admin-panel-head h2 {
    margin: 0;
    font-size: var(--admin-type-lg);
    line-height: 1.22;
    letter-spacing: -0.01em;
}

.admin-shell .admin-panel-head small {
    font-size: var(--admin-type-sm);
    line-height: 1.45;
}

.admin-shell .admin-metric-grid,
.admin-shell .admin-shortcut-grid,
.admin-shell .admin-kanban-grid {
    gap: 12px !important;
}

.admin-shell .admin-topbar-title strong {
    font-size: var(--admin-type-lg);
    line-height: 1.15;
}

.admin-shell .admin-topbar-actions .admin-topbar-link {
    font-size: var(--admin-type-sm);
}

.admin-shell .admin-store-context-loading {
    font-size: var(--admin-type-xs);
}

.admin-shell .admin-store-context-name,
.admin-shell .admin-store-context-categories {
    font-size: var(--admin-type-sm);
    line-height: 1.35;
}

.admin-shell .admin-table th,
.admin-shell .admin-table td {
    font-size: var(--admin-type-sm);
    line-height: 1.45;
}

.admin-shell .admin-table th {
    font-size: var(--admin-type-xs);
    letter-spacing: 0.04em;
}

.admin-shell .admin-small-button,
.admin-shell .admin-outline-button,
.admin-shell .admin-theme-select,
.admin-shell .admin-mode-toggle,
.admin-shell .admin-public-link {
    font-size: var(--admin-type-sm);
    line-height: 1.2;
}

.admin-shell .admin-metric-card,
.admin-shell .admin-shortcut-card,
.admin-shell .admin-kanban-card {
    min-height: auto !important;
    padding: 14px !important;
    transition: none !important;
}

    .admin-shell .admin-shortcut-card:hover,
    .admin-shell .admin-kanban-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .admin-shell .admin-metric-card strong {
        margin: 4px 0 !important;
        color: #111827 !important;
        font-size: 28px !important;
        letter-spacing: -0.03em;
    }

html[data-mode="dark"] .admin-shell .admin-metric-card strong {
    color: #f9fafb !important;
}

.admin-shell .admin-table-wrap {
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    overflow: hidden;
}

html[data-mode="dark"] .admin-shell .admin-table-wrap {
    border-color: rgba(255, 255, 255, 0.10) !important;
}

.admin-shell .admin-table th,
.admin-shell .admin-table td {
    padding: 10px 12px !important;
}

.admin-shell .admin-table th {
    background: #f9fafb !important;
    color: #6b7280 !important;
    font-size: 12px;
    font-weight: 700;
}

html[data-mode="dark"] .admin-shell .admin-table th {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #9ca3af !important;
}

/* 图片生成页：工具型、低装饰、紧凑布局 */
.loya-image-generation-page {
    --loya-image-border: #e5e7eb;
    --loya-image-muted: #6b7280;
    --loya-image-primary: #2563eb;
    --loya-image-card: #ffffff;
    --loya-image-soft: #f9fafb;
}

html[data-mode="dark"] .loya-image-generation-page {
    --loya-image-border: rgba(255, 255, 255, 0.10);
    --loya-image-muted: #9ca3af;
    --loya-image-card: #111827;
    --loya-image-soft: rgba(255, 255, 255, 0.04);
}

.loya-image-generation-page .admin-page-heading {
    min-height: auto !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
}

.loya-image-generation-page .admin-page-eyebrow {
    display: none !important;
}

.loya-image-generation-page .admin-page-heading h1 {
    margin: 0 0 2px !important;
    font-size: 22px !important;
}

.loya-image-generation-page .admin-page-heading p {
    max-width: 760px;
    font-size: 12px;
}

.loya-image-generation-page .admin-heading-actions {
    gap: 8px !important;
}

.loya-image-workbench {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: stretch;
}

.loya-image-card {
    min-width: 0;
    border: 1px solid var(--loya-image-border) !important;
    border-radius: 10px !important;
    background: var(--loya-image-card) !important;
    box-shadow: none !important;
    overflow: hidden;
}

.loya-image-settings-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: calc(100vh - 128px) !important;
}

.loya-image-card-head {
    padding: 10px 12px !important;
    border-bottom: 1px solid var(--loya-image-border) !important;
    background: var(--loya-image-soft) !important;
}

    .loya-image-card-head.split {
        display: flex;
        align-items: center !important;
        justify-content: space-between;
        gap: 10px;
    }

    .loya-image-card-head h2 {
        margin: 0;
        color: #111827 !important;
        font-size: 14px !important;
        font-weight: 700;
        letter-spacing: 0;
    }

html[data-mode="dark"] .loya-image-card-head h2 {
    color: #f9fafb !important;
}

.loya-image-card-head p {
    margin: 2px 0 0 !important;
    color: var(--loya-image-muted) !important;
    font-size: 12px !important;
    line-height: 1.4;
}

.loya-image-settings-scroll {
    display: grid;
    gap: 10px !important;
    padding: 10px !important;
    overflow: auto;
}

.loya-image-block,
.loya-image-block.white,
.loya-image-block.blue,
.loya-image-block.muted,
.loya-mask-panel,
.loya-empty-panel {
    padding: 10px !important;
    border: 1px solid var(--loya-image-border) !important;
    border-radius: 8px !important;
    background: var(--loya-image-card) !important;
    box-shadow: none !important;
}

    .loya-image-block strong,
    .loya-image-block label span,
    .loya-mask-panel strong {
        color: #374151 !important;
        font-size: 13px;
        font-weight: 700;
    }

html[data-mode="dark"] .loya-image-block strong,
html[data-mode="dark"] .loya-image-block label span,
html[data-mode="dark"] .loya-mask-panel strong {
    color: #e5e7eb !important;
}

.loya-image-block p,
.loya-image-block small,
.loya-mask-panel p {
    color: var(--loya-image-muted) !important;
    font-size: 12px;
    line-height: 1.45;
}

.loya-field-grid {
    display: grid;
    gap: 10px !important;
}

    .loya-field-grid.two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .loya-field-grid.compact {
        margin-top: 8px !important;
    }

.loya-field-row.action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px !important;
    gap: 8px !important;
    align-items: end;
}

.loya-image-block label {
    display: grid;
    gap: 6px !important;
}

.loya-image-block input:not([type="checkbox"]),
.loya-image-block select,
.loya-image-block textarea {
    width: 100%;
    min-height: 34px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    padding: 6px 8px !important;
    color: #111827 !important;
    background: #ffffff !important;
    font-size: 13px !important;
    outline: none;
    box-shadow: none !important;
}

html[data-mode="dark"] .loya-image-block input:not([type="checkbox"]),
html[data-mode="dark"] .loya-image-block select,
html[data-mode="dark"] .loya-image-block textarea {
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #f9fafb !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.loya-image-block textarea {
    resize: vertical;
}

    .loya-image-block input:focus,
    .loya-image-block select:focus,
    .loya-image-block textarea:focus {
        border-color: #2563eb !important;
        box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12) !important;
    }

.loya-image-primary,
.loya-image-secondary {
    min-height: 34px !important;
    border-radius: 7px !important;
    padding: 0 12px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    box-shadow: none !important;
}

.loya-image-primary {
    border: 1px solid #2563eb !important;
    color: #ffffff !important;
    background: #2563eb !important;
}

    .loya-image-primary.purple {
        border-color: #2563eb !important;
        background: #2563eb !important;
    }

.loya-image-secondary {
    border: 1px solid #d1d5db !important;
    color: #374151 !important;
    background: #ffffff !important;
}

html[data-mode="dark"] .loya-image-secondary {
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #e5e7eb !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.loya-image-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
}

.loya-capability-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px !important;
    margin-top: 8px !important;
}

    .loya-capability-tags span,
    .loya-blue-pill,
    .loya-green-pill,
    .loya-image-status-pill {
        min-height: 24px !important;
        border-radius: 999px;
        padding: 0 8px !important;
        font-size: 12px;
        font-weight: 600;
    }

    .loya-capability-tags span,
    .loya-blue-pill {
        color: #1d4ed8 !important;
        border: 1px solid #bfdbfe !important;
        background: #eff6ff !important;
    }

.loya-green-pill,
.loya-image-status-pill {
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
    background: #ecfdf5 !important;
}

.loya-image-side {
    display: grid;
    grid-template-rows: minmax(220px, 1fr) 10px minmax(220px, 1fr) !important;
    gap: 10px !important;
}

.loya-reference-card,
.loya-result-card {
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.loya-reference-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px !important;
    align-items: center;
    padding: 10px 12px 4px !important;
}

.loya-reference-grid,
.loya-result-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px !important;
    padding: 10px 12px !important;
    overflow: auto;
}

.loya-image-thumb-card,
.loya-result-item {
    width: 148px !important;
    padding: 6px !important;
    border: 1px solid var(--loya-image-border) !important;
    border-radius: 8px !important;
    background: var(--loya-image-card) !important;
}

.loya-result-item {
    width: 180px !important;
}

    .loya-image-thumb-card img,
    .loya-result-item img {
        width: 100%;
        height: 96px !important;
        border-radius: 6px !important;
        object-fit: cover;
        background: #f3f4f6;
    }

    .loya-result-item img {
        height: 116px !important;
    }

    .loya-image-thumb-card span,
    .loya-result-item span {
        margin-top: 6px !important;
        padding: 3px 8px !important;
        border-radius: 999px;
        color: #374151 !important;
        background: #f3f4f6 !important;
        font-size: 12px;
        font-weight: 600;
    }

html[data-mode="dark"] .loya-image-thumb-card span,
html[data-mode="dark"] .loya-result-item span {
    color: #d1d5db !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.loya-image-thumb-card strong,
.loya-result-item strong {
    margin-top: 6px !important;
    color: #111827 !important;
    font-size: 12px !important;
    font-weight: 600;
}

html[data-mode="dark"] .loya-image-thumb-card strong,
html[data-mode="dark"] .loya-result-item strong {
    color: #f9fafb !important;
}

.loya-result-item p {
    max-height: 64px !important;
    margin: 6px 0 !important;
    padding: 6px !important;
    border-radius: 6px !important;
    font-size: 12px;
}

.loya-result-item a {
    min-height: 30px !important;
    border-radius: 6px !important;
    font-size: 12px;
}

.loya-mask-panel,
.loya-empty-panel {
    margin: 10px 12px !important;
}

@media (max-width: 1180px) {
    .loya-image-workbench,
    .loya-field-grid.two,
    .loya-field-row.action-row,
    .loya-image-action-grid {
        grid-template-columns: 1fr !important;
    }

    .loya-image-settings-card {
        max-height: none !important;
    }
}

@media (max-width: 980px) {
    .admin-shell {
        grid-template-columns: 1fr !important;
    }

        .admin-shell .admin-sidebar {
            position: static;
            height: auto;
            border-right: 0 !important;
            border-bottom: 1px solid #e5e7eb !important;
        }

    html[data-mode="dark"] .admin-shell .admin-sidebar {
        border-bottom-color: rgba(255, 255, 255, 0.10) !important;
    }
}

/* =========================================================
   AdminImageGeneration compact override
   目标：压缩顶部区域，降低装饰感，让参数、按钮、图片区尽量露出
   追加到 loya-site.css 文件最末尾
   ========================================================= */

.loya-image-generation-page {
    --loya-image-border: #d8dee8;
    --loya-image-muted: #667085;
    --loya-image-primary: #2563eb;
    --loya-image-card: #ffffff;
    --loya-image-soft: #f7f8fa;
    display: grid;
    gap: 10px;
}

    /* 只压缩图片生成页的顶部标题区 */
    .loya-image-generation-page > .admin-page-heading {
        min-height: 0;
        padding: 10px 14px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        box-shadow: none;
        background: #ffffff;
    }

        /* 去掉英文标题和副标题 */
        .loya-image-generation-page > .admin-page-heading .admin-page-eyebrow,
        .loya-image-generation-page > .admin-page-heading p {
            display: none !important;
        }

        /* 涓绘爣棰樺皬鍖?*/
        .loya-image-generation-page > .admin-page-heading h1 {
            margin: 0;
            font-size: 20px;
            line-height: 1.2;
            letter-spacing: -0.02em;
        }

        /* 椤堕儴鍙充晶鎸夐挳鍘嬬缉 */
        .loya-image-generation-page > .admin-page-heading .admin-heading-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .loya-image-generation-page > .admin-page-heading .admin-small-button,
        .loya-image-generation-page > .admin-page-heading .admin-outline-button,
        .loya-image-generation-page > .admin-page-heading .loya-green-pill {
            min-height: 32px;
            height: 32px;
            padding: 0 12px;
            border-radius: 8px;
            font-size: 12px;
            box-shadow: none;
        }

/* 工作区：左侧参数更紧凑，右侧图片区更大 */
.loya-image-workbench {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
    min-height: 0;
}

/* 鍗＄墖缁熶竴闄嶄綆鍦嗚銆侀槾褰卞拰鐣欑櫧 */
.loya-image-card {
    border-radius: 10px;
    box-shadow: none;
    border-color: var(--loya-image-border);
    background: #fff;
}

/* 宸︿晶鍙傛暟鍗＄墖楂樺害鍗犳弧鍙鍖哄煙 */
.loya-image-settings-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: calc(100vh - 170px);
    min-height: 0;
}

/* 鍗＄墖澶撮儴鍘嬬缉 */
.loya-image-card-head {
    padding: 9px 12px;
    background: #f8fafc;
    border-bottom-color: var(--loya-image-border);
}

    .loya-image-card-head.split {
        align-items: center;
    }

    .loya-image-card-head h2 {
        margin: 0;
        font-size: 14px;
        line-height: 1.25;
    }

    .loya-image-card-head p {
        margin: 2px 0 0;
        font-size: 11px;
        line-height: 1.35;
    }

/* 鍙傛暟婊氬姩鍖哄煙鍑忓皯闂磋窛 */
.loya-image-settings-scroll {
    gap: 8px;
    padding: 10px;
    overflow: auto;
}

/* 鍙傛暟鍧楁洿绱у噾 */
.loya-image-block {
    padding: 9px;
    border-radius: 8px;
    background: #f9fafb;
}

    .loya-image-block.white {
        background: #fff;
    }

    .loya-image-block.blue {
        border-color: #dbeafe;
        background: #f8fbff;
    }

    .loya-image-block strong {
        font-size: 13px;
        line-height: 1.3;
    }

    .loya-image-block p,
    .loya-image-block small {
        margin: 2px 0 0;
        font-size: 11px;
        line-height: 1.35;
    }

/* 琛ㄥ崟闂磋窛鍘嬬缉 */
.loya-field-grid {
    gap: 8px;
}

    .loya-field-grid.two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .loya-field-grid.compact {
        margin-top: 8px;
    }

.loya-image-block label {
    gap: 5px;
}

    .loya-image-block label span {
        font-size: 12px;
        line-height: 1.25;
    }

.loya-image-block input:not([type="checkbox"]),
.loya-image-block select,
.loya-image-block textarea {
    min-height: 32px;
    border-radius: 7px;
    padding: 5px 8px;
    font-size: 12px;
}

.loya-image-block textarea {
    min-height: 76px;
}

/* 生成按钮区域压缩，但按钮保持明显 */
.loya-image-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.loya-image-primary,
.loya-image-secondary {
    min-height: 34px;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 12px;
    box-shadow: none;
}

.loya-image-primary {
    background: #2563eb;
    border-color: #2563eb;
}

    .loya-image-primary.purple {
        background: #4f46e5;
        border-color: #4f46e5;
    }

.loya-image-secondary {
    background: #ffffff;
}

/* 标签压缩 */
.loya-capability-tags {
    gap: 6px;
    margin-top: 8px;
}

    .loya-capability-tags span,
    .loya-blue-pill,
    .loya-green-pill,
    .loya-image-status-pill {
        min-height: 24px;
        padding: 0 8px;
        border-radius: 999px;
        font-size: 11px;
    }

/* 鍙充晶锛氬弬鑰冨浘鍜岀敓鎴愮粨鏋滃尯鍩熸洿澶?*/
.loya-image-side {
    display: grid;
    grid-template-rows: minmax(220px, 0.9fr) 8px minmax(260px, 1.1fr);
    gap: 8px;
    min-height: 0;
    max-height: calc(100vh - 170px);
}

    /* 分隔条变薄 */
    .loya-image-side > div:not(.loya-image-card) {
        min-height: 0;
    }

/* 上传工具栏压缩 */
.loya-reference-toolbar {
    padding: 10px 12px 4px;
    gap: 8px;
}

    .loya-reference-toolbar input[type="file"],
    .loya-mask-panel input[type="file"] {
        font-size: 12px;
    }

/* 图片网格让更多图片露出 */
.loya-reference-grid,
.loya-result-grid {
    gap: 8px;
    padding: 10px;
    overflow: auto;
}

/* 参考图卡片缩小 */
.loya-image-thumb-card {
    width: 138px;
    padding: 6px;
    border-radius: 9px;
}

    .loya-image-thumb-card img {
        height: 92px;
        border-radius: 7px;
    }

    .loya-image-thumb-card span,
    .loya-result-item span {
        margin-top: 6px;
        padding: 3px 8px;
        font-size: 11px;
    }

    .loya-image-thumb-card strong {
        margin-top: 5px;
        font-size: 12px;
        line-height: 1.3;
    }

/* 生成结果图略大，重点展示 */
.loya-result-item {
    width: 188px;
    padding: 7px;
    border-radius: 9px;
}

    .loya-result-item img {
        height: 128px;
        border-radius: 7px;
    }

    .loya-result-item strong {
        margin-top: 6px;
        font-size: 12px;
    }

    .loya-result-item small {
        margin-top: 3px;
        font-size: 11px;
    }

    .loya-result-item p {
        max-height: 48px;
        margin: 6px 0;
        padding: 6px;
        border-radius: 7px;
        font-size: 11px;
        line-height: 1.35;
    }

    .loya-result-item a {
        min-height: 30px;
        border-radius: 7px;
        font-size: 12px;
    }

/* 遮罩和空状态区域压缩 */
.loya-mask-panel,
.loya-empty-panel {
    margin: 10px;
    padding: 10px;
    border-radius: 9px;
}

    .loya-mask-panel strong,
    .loya-empty-panel strong {
        font-size: 13px;
    }

    .loya-mask-panel p,
    .loya-empty-panel p {
        margin: 2px 0 0;
        font-size: 11px;
        line-height: 1.4;
    }

/* 鐘舵€佹彁绀轰笉瑕佹拺楂?*/
.loya-status-text {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
}

/* 后台主内容区在图片生成页降低整体 padding */
.admin-main-content:has(.loya-image-generation-page) {
    padding: 14px;
}

/* 鏆楄壊妯″紡鍏煎 */
html[data-mode="dark"] .loya-image-generation-page {
    --loya-image-border: rgba(255, 255, 255, 0.12);
    --loya-image-muted: rgba(226, 232, 240, 0.68);
    --loya-image-card: #111827;
    --loya-image-soft: rgba(255, 255, 255, 0.06);
}

    html[data-mode="dark"] .loya-image-generation-page > .admin-page-heading,
    html[data-mode="dark"] .loya-image-card,
    html[data-mode="dark"] .loya-image-block.white,
    html[data-mode="dark"] .loya-image-secondary,
    html[data-mode="dark"] .loya-result-item a {
        background: #111827;
        color: #f8fafc;
    }

html[data-mode="dark"] .loya-image-card-head,
html[data-mode="dark"] .loya-image-block,
html[data-mode="dark"] .loya-mask-panel,
html[data-mode="dark"] .loya-empty-panel,
html[data-mode="dark"] .loya-result-item p {
    background: rgba(255, 255, 255, 0.055);
}

    html[data-mode="dark"] .loya-image-card-head h2,
    html[data-mode="dark"] .loya-image-block strong,
    html[data-mode="dark"] .loya-image-block label span,
    html[data-mode="dark"] .loya-mask-panel strong,
    html[data-mode="dark"] .loya-empty-panel strong,
    html[data-mode="dark"] .loya-result-item strong {
        color: #f8fafc;
    }

    html[data-mode="dark"] .loya-image-block input:not([type="checkbox"]),
    html[data-mode="dark"] .loya-image-block select,
    html[data-mode="dark"] .loya-image-block textarea {
        background: rgba(255, 255, 255, 0.07);
        color: #f8fafc;
        border-color: rgba(255, 255, 255, 0.14);
    }

/* 涓瓑灞忓箷 */
@media (max-width: 1280px) {
    .loya-image-workbench {
        grid-template-columns: 350px minmax(0, 1fr);
    }

    .loya-image-settings-card,
    .loya-image-side {
        max-height: none;
    }
}

/* 灏忓睆骞?*/
@media (max-width: 980px) {
    .admin-main-content:has(.loya-image-generation-page) {
        padding: 10px;
    }

    .loya-image-workbench {
        grid-template-columns: 1fr;
    }

    .loya-image-generation-page > .admin-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

        .loya-image-generation-page > .admin-page-heading .admin-heading-actions {
            width: 100%;
            flex-wrap: wrap;
        }

    .loya-field-grid.two,
    .loya-image-action-grid {
        grid-template-columns: 1fr;
    }

    .loya-image-side {
        grid-template-rows: auto 8px auto;
    }
}

/* =========================================================
   AdminImageGeneration refined compact override
   目标：更耐看、更像后台工具页，让关键参数、双按钮、预览区尽可能可见
   使用方式：追加到 loya-site.css 最末尾，覆盖之前图片生成页样式
   ========================================================= */

.loya-image-generation-page {
    --loya-image-bg: #f5f7fb;
    --loya-image-card: #ffffff;
    --loya-image-soft: #f8fafc;
    --loya-image-border: #dbe2ea;
    --loya-image-text: #111827;
    --loya-image-muted: #667085;
    --loya-image-primary: #2563eb;
    --loya-image-primary-soft: #eff6ff;
    --loya-image-success: #059669;
    --loya-image-danger: #dc2626;
    display: grid;
    gap: 10px;
}

html[data-mode="dark"] .loya-image-generation-page {
    --loya-image-bg: #0b1220;
    --loya-image-card: #111827;
    --loya-image-soft: rgba(255, 255, 255, 0.04);
    --loya-image-border: rgba(255, 255, 255, 0.12);
    --loya-image-text: #f3f4f6;
    --loya-image-muted: #9ca3af;
    --loya-image-primary-soft: rgba(37, 99, 235, 0.18);
}

.admin-main-content:has(.loya-image-generation-page) {
    padding: 12px;
}

.loya-task-history-panel {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-top: 1px solid var(--loya-image-border);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.loya-task-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--loya-image-text);
    font-size: 14px;
    font-weight: 700;
}

.loya-task-history-list {
    display: grid;
    gap: 8px;
}

.loya-task-history-item {
    display: grid;
    grid-template-columns: minmax(260px, 1.7fr) minmax(120px, 0.8fr) 132px 96px auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--loya-image-border);
    border-radius: 14px;
    background: #fff;
}

.loya-task-history-main-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.loya-task-history-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    overflow: hidden;
    border: 1px solid var(--loya-image-border);
    border-radius: 12px;
    background: var(--loya-image-soft);
    color: var(--loya-image-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.loya-task-history-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.loya-task-history-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.loya-task-history-main strong,
.loya-task-history-main span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loya-task-history-main strong {
    color: var(--loya-image-text);
    font-size: 14px;
}

.loya-task-history-main span {
    color: var(--loya-image-muted);
    font-size: 13px;
}

.loya-task-history-status {
    color: var(--loya-image-success);
    font-size: 14px;
    font-weight: 800;
}

.loya-task-history-status.is-failed {
    color: var(--loya-image-danger);
}

.loya-task-history-item time {
    color: var(--loya-image-muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.loya-task-history-actions,
.loya-task-history-delete,
.loya-task-history-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.loya-task-history-pagination {
    justify-content: flex-end;
    padding-top: 4px;
    color: var(--loya-image-muted);
    font-size: 13px;
    font-weight: 700;
}

html[data-mode="dark"] .loya-task-history-panel {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.9) 0%, rgba(17, 24, 39, 0.98) 100%);
}

html[data-mode="dark"] .loya-task-history-item,
html[data-mode="dark"] .loya-task-history-thumb {
    background: #111827;
}

/* 顶部标题区：只保留小标题和必要动作 */
.loya-image-generation-page .admin-page-heading {
    min-height: auto !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--loya-image-card) !important;
    border: 1px solid var(--loya-image-border) !important;
    box-shadow: none !important;
}

    .loya-image-generation-page .admin-page-eyebrow,
    .loya-image-generation-page .admin-page-heading p {
        display: none !important;
    }

    .loya-image-generation-page .admin-page-heading h1 {
        margin: 0 !important;
        color: var(--loya-image-text) !important;
        font-size: 20px !important;
        font-weight: 800;
        line-height: 1.2;
        letter-spacing: -0.02em;
    }

.loya-image-generation-page .admin-heading-actions {
    display: flex;
    align-items: center;
    gap: 8px !important;
    flex-wrap: wrap;
}

.loya-image-generation-page .admin-outline-button,
.loya-image-generation-page .admin-small-button,
.loya-image-generation-page .loya-green-pill {
    min-height: 32px !important;
    height: 32px;
    padding: 0 12px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 700;
    box-shadow: none !important;
}

/* 涓诲伐浣滃尯 */
.loya-image-workbench {
    display: grid;
    grid-template-columns: minmax(360px, 410px) minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: stretch;
    min-height: calc(100vh - 132px);
}

.loya-image-card {
    min-width: 0;
    background: var(--loya-image-card) !important;
    border: 1px solid var(--loya-image-border) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    overflow: hidden;
}

/* 宸︿晶鍙傛暟鍖?*/
.loya-image-settings-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: calc(100vh - 132px) !important;
    min-height: 0;
}

.loya-image-card-head {
    padding: 10px 12px !important;
    background: var(--loya-image-soft) !important;
    border-bottom: 1px solid var(--loya-image-border) !important;
}

    .loya-image-card-head.split {
        display: flex;
        align-items: center !important;
        justify-content: space-between;
        gap: 10px;
    }

    .loya-image-card-head h2 {
        margin: 0 !important;
        color: var(--loya-image-text) !important;
        font-size: 14px !important;
        font-weight: 800;
        letter-spacing: 0;
    }

    .loya-image-card-head p {
        margin: 3px 0 0 !important;
        color: var(--loya-image-muted) !important;
        font-size: 12px !important;
        line-height: 1.35;
    }

.loya-image-settings-scroll {
    display: grid;
    gap: 8px !important;
    padding: 8px !important;
    overflow: auto;
    min-height: 0;
    background: var(--loya-image-bg);
}

.loya-image-block,
.loya-image-block.white,
.loya-image-block.blue,
.loya-image-block.muted,
.loya-mask-panel,
.loya-empty-panel {
    padding: 10px !important;
    background: var(--loya-image-card) !important;
    border: 1px solid var(--loya-image-border) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

    .loya-image-block strong,
    .loya-image-block label span,
    .loya-mask-panel strong {
        color: var(--loya-image-text) !important;
        font-size: 12px;
        font-weight: 700;
    }

    .loya-image-block p,
    .loya-image-block small,
    .loya-mask-panel p {
        color: var(--loya-image-muted) !important;
        font-size: 11px;
        line-height: 1.4;
    }

.loya-field-grid {
    gap: 8px !important;
}

    .loya-field-grid.two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px !important;
    }

    .loya-field-grid.compact {
        margin-top: 8px !important;
    }

.loya-field-row.action-row {
    grid-template-columns: minmax(0, 1fr) 90px !important;
    gap: 8px !important;
    align-items: end;
}

.loya-image-block label {
    display: grid;
    gap: 5px !important;
}

.loya-image-block input:not([type="checkbox"]),
.loya-image-block select,
.loya-image-block textarea {
    width: 100%;
    min-height: 34px !important;
    border: 1px solid #cfd8e3 !important;
    border-radius: 7px !important;
    padding: 6px 10px !important;
    background: #fff !important;
    color: var(--loya-image-text) !important;
    font-size: 13px !important;
    box-shadow: none !important;
    outline: none;
}

html[data-mode="dark"] .loya-image-block input:not([type="checkbox"]),
html[data-mode="dark"] .loya-image-block select,
html[data-mode="dark"] .loya-image-block textarea {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

.loya-image-block textarea {
    min-height: 78px !important;
    resize: vertical;
    line-height: 1.5;
}

    .loya-image-block input:focus,
    .loya-image-block select:focus,
    .loya-image-block textarea:focus {
        border-color: var(--loya-image-primary) !important;
        box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12) !important;
    }

/* 标签与状态 */
.loya-capability-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px !important;
    margin-top: 8px !important;
}

    .loya-capability-tags span,
    .loya-blue-pill,
    .loya-green-pill,
    .loya-image-status-pill {
        min-height: 24px !important;
        padding: 0 8px !important;
        border-radius: 999px;
        font-size: 11px !important;
        font-weight: 700;
    }

    .loya-capability-tags span,
    .loya-blue-pill {
        color: #1d4ed8 !important;
        background: #eff6ff !important;
        border: 1px solid #bfdbfe !important;
    }

.loya-green-pill,
.loya-image-status-pill {
    color: #047857 !important;
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
}

/* 双按钮尽量常驻可见：默认假定最后一个参数块是操作区 */
.loya-image-settings-scroll > .loya-image-block:last-child,
.loya-image-settings-scroll > .loya-image-block.white:last-child,
.loya-image-settings-scroll > .loya-image-block.blue:last-child,
.loya-image-settings-scroll > .loya-image-block.muted:last-child {
    position: sticky;
    bottom: 0;
    z-index: 3;
    background: var(--loya-image-card) !important;
    box-shadow: 0 -8px 16px rgba(15, 23, 42, 0.04);
}

html[data-mode="dark"] .loya-image-settings-scroll > .loya-image-block:last-child,
html[data-mode="dark"] .loya-image-settings-scroll > .loya-image-block.white:last-child,
html[data-mode="dark"] .loya-image-settings-scroll > .loya-image-block.blue:last-child,
html[data-mode="dark"] .loya-image-settings-scroll > .loya-image-block.muted:last-child {
    box-shadow: 0 -8px 16px rgba(0, 0, 0, 0.22);
}

.loya-image-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
}

.loya-image-primary,
.loya-image-secondary {
    min-height: 38px !important;
    height: 38px;
    border-radius: 8px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    font-weight: 800;
    box-shadow: none !important;
}

.loya-image-primary {
    color: #fff !important;
    background: var(--loya-image-primary) !important;
    border: 1px solid var(--loya-image-primary) !important;
}

    .loya-image-primary.purple {
        color: #fff !important;
        background: #4f46e5 !important;
        border: 1px solid #4f46e5 !important;
    }

.loya-image-secondary {
    color: #374151 !important;
    background: #fff !important;
    border: 1px solid #cfd8e3 !important;
}

html[data-mode="dark"] .loya-image-secondary {
    color: #e5e7eb !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

/* 鍙充晶棰勮鍖?*/
.loya-image-side {
    display: grid;
    grid-template-rows: minmax(250px, 0.92fr) 8px minmax(290px, 1.08fr) !important;
    gap: 8px !important;
    min-height: 0;
    max-height: calc(100vh - 132px);
}

.loya-reference-card,
.loya-result-card {
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.loya-reference-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px !important;
    padding: 10px 12px 4px !important;
}

.loya-reference-toolbar .loya-upload-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
}

.loya-reference-toolbar .loya-upload-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.loya-reference-toolbar .loya-upload-trigger.is-disabled {
    cursor: not-allowed;
    opacity: .55;
    box-shadow: none;
}

.loya-reference-toolbar .loya-upload-file-text {
    max-width: min(260px, 40vw);
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    color: var(--loya-image-muted);
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loya-reference-grid,
.loya-result-grid {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px !important;
    padding: 10px !important;
    overflow: auto;
}

.loya-image-thumb-card,
.loya-result-item {
    width: 150px !important;
    padding: 6px !important;
    border: 1px solid var(--loya-image-border) !important;
    border-radius: 8px !important;
    background: var(--loya-image-card) !important;
}

.loya-result-item {
    width: 190px !important;
}

    .loya-image-thumb-card img,
    .loya-result-item img {
        width: 100%;
        height: 100px !important;
        border-radius: 6px !important;
        display: block;
        object-fit: cover;
        background: #eef2f7;
    }

    .loya-result-item img {
        height: 136px !important;
    }

    .loya-image-thumb-card span,
    .loya-result-item span {
        display: inline-flex;
        margin-top: 6px !important;
        padding: 3px 8px !important;
        border-radius: 999px;
        color: #475569 !important;
        background: #f1f5f9 !important;
        font-size: 11px !important;
        font-weight: 700;
    }

html[data-mode="dark"] .loya-image-thumb-card span,
html[data-mode="dark"] .loya-result-item span {
    color: #d1d5db !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.loya-image-thumb-card strong,
.loya-result-item strong {
    display: block;
    margin-top: 6px !important;
    color: var(--loya-image-text) !important;
    font-size: 12px !important;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.loya-result-item small {
    display: block;
    margin-top: 4px;
    color: var(--loya-image-success) !important;
    font-size: 11px;
    font-weight: 700;
}

.loya-result-item p {
    max-height: 56px !important;
    margin: 6px 0 !important;
    padding: 6px !important;
    border: 1px solid var(--loya-image-border) !important;
    border-radius: 6px !important;
    background: var(--loya-image-soft) !important;
    color: var(--loya-image-muted) !important;
    font-size: 11px !important;
    line-height: 1.35;
}

.loya-result-item a {
    min-height: 30px !important;
    border: 1px solid var(--loya-image-border) !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #334155 !important;
    font-size: 12px !important;
    font-weight: 700;
}

html[data-mode="dark"] .loya-result-item a {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #e5e7eb !important;
}

.loya-mask-panel,
.loya-empty-panel {
    margin: 10px !important;
}

.loya-status-text {
    font-size: 12px !important;
    line-height: 1.45;
}

/* 鍝嶅簲寮?*/
@media (max-width: 1320px) {
    .loya-image-workbench {
        grid-template-columns: minmax(330px, 380px) minmax(0, 1fr) !important;
    }
}

@media (max-width: 1180px) {
    .loya-image-workbench,
    .loya-field-grid.two,
    .loya-field-row.action-row,
    .loya-image-action-grid {
        grid-template-columns: 1fr !important;
    }

    .loya-image-settings-card,
    .loya-image-side {
        max-height: none !important;
    }

    .loya-image-side {
        grid-template-rows: minmax(220px, auto) 8px minmax(240px, auto) !important;
    }
}

@media (max-width: 980px) {
    .admin-main-content:has(.loya-image-generation-page) {
        padding: 10px;
    }

    .loya-image-generation-page .admin-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .loya-image-generation-page .admin-heading-actions {
        width: 100%;
    }

    .loya-image-workbench {
        min-height: 0;
        grid-template-columns: 1fr !important;
    }
}

.admin-side-link,
.admin-side-sublink {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.admin-side-link-text {
    min-width: 0;
    flex: 1;
}

.admin-side-toggle-icon {
    margin-left: auto;
    width: 18px;
    height: 18px;
    min-width: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: .7;
    transition: transform .2s ease, opacity .2s ease;
}

.admin-side-toggle[aria-expanded="true"] .admin-side-toggle-icon {
    transform: rotate(180deg);
    opacity: 1;
}

.admin-side-toggle-icon .admin-svg-icon {
    width: 14px;
    height: 14px;
}

.admin-side-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: color .2s ease, transform .2s ease;
}

.admin-side-sublink .admin-side-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
}

.admin-svg-icon {
    width: 100%;
    height: 100%;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-side-link:hover .admin-side-icon,
.admin-side-sublink:hover .admin-side-icon {
    color: var(--admin-primary, #1f4fd7);
    transform: scale(1.04);
}

.admin-side-toggle:hover .admin-side-toggle-icon,
.admin-side-toggle.active .admin-side-toggle-icon {
    color: var(--admin-primary, #1f4fd7);
}

.admin-side-link.active .admin-side-icon,
.admin-side-sublink.active .admin-side-icon,
.admin-side-toggle.active .admin-side-icon {
    color: var(--admin-primary, #1f4fd7);
}

.admin-side-link.active,
.admin-side-sublink.active,
.admin-side-toggle.active {
    color: #0f172a;
    font-weight: 700;
}

.admin-side-sublink {
    padding-left: 14px;
}

    .admin-side-sublink.active {
        background: rgba(31, 79, 215, 0.08);
        border-radius: 12px;
    }

.admin-side-link.active,
.admin-side-toggle.active {
    background: rgba(31, 79, 215, 0.08);
    border-radius: 14px;
}

.admin-shell .admin-side-link,
.admin-sidebar .admin-side-link {
    min-height: 40px !important;
    padding: 0 10px !important;
    gap: 10px !important;
    font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.25;
}

.admin-shell .admin-side-link-text strong,
.admin-sidebar .admin-side-link-text strong {
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.25;
}

.admin-shell .admin-side-sublink,
.admin-sidebar .admin-side-sublink {
    min-height: 40px !important;
    padding: 0 10px !important;
    gap: 10px !important;
    font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.25;
}

.admin-shell .admin-side-icon,
.admin-sidebar .admin-side-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
}

.admin-shell .admin-side-toggle-icon,
.admin-sidebar .admin-side-toggle-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    font-size: 16px;
}

.loya-ozon-page,
.loya-ozon-collector-page {
    display: grid;
    gap: 22px;
}

.loya-ozon-collector-page .admin-panel {
    overflow: hidden;
}

.loya-ozon-collector-page .loya-ozon-collector-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
    padding: 18px;
}

.loya-ozon-collector-page .loya-ozon-collector-card,
.loya-ozon-collector-page .loya-ozon-collector-summary {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
}

.loya-ozon-collector-page .loya-ozon-collector-card {
    padding: 20px;
}

.loya-ozon-collector-page .loya-ozon-collector-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.loya-ozon-collector-page .loya-ozon-collector-card-head span,
.loya-ozon-collector-page .admin-panel-head span,
.loya-ozon-collector-page .loya-ozon-collector-summary span {
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.loya-ozon-collector-page .loya-ozon-collector-card-head h2 {
    margin: 6px 0 0;
    color: #0f172a;
    font-size: 24px;
}

.loya-ozon-collector-page .loya-ozon-collector-card-head small,
.loya-ozon-collector-page .loya-ozon-collector-summary small,
.loya-ozon-collector-page .loya-ozon-draft-title small {
    color: #64748b;
}

.loya-ozon-collector-page .loya-ozon-collector-form {
    display: grid;
    gap: 14px;
}

.loya-ozon-collector-page .loya-ozon-collector-form label {
    display: grid;
    gap: 7px;
}

.loya-ozon-collector-page .loya-ozon-collector-form label > span {
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

.loya-ozon-collector-page .loya-ozon-collector-form select,
.loya-ozon-collector-page .loya-ozon-collector-form textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    outline: none;
}

.loya-ozon-collector-page .loya-ozon-collector-form select {
    min-height: 42px;
    padding: 0 12px;
}

.loya-ozon-collector-page .loya-ozon-collector-form textarea {
    min-height: 150px;
    padding: 12px;
    resize: vertical;
}

.loya-ozon-collector-page .loya-ozon-collector-actions,
.loya-ozon-collector-page .loya-ozon-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.loya-ozon-collector-page .loya-ozon-collector-actions span {
    color: #64748b;
    font-size: 14px;
}

.loya-ozon-collector-page .loya-ozon-collector-summary {
    display: grid;
    gap: 12px;
    padding: 18px;
    align-content: start;
}

.loya-ozon-collector-page .loya-ozon-collector-summary > div {
    display: grid;
    gap: 5px;
    border-radius: 14px;
    background: #f8fafc;
    padding: 14px;
}

.loya-ozon-collector-page .loya-ozon-collector-summary strong {
    color: #0f172a;
    font-size: 28px;
    line-height: 1;
}

.loya-ozon-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.loya-ozon-table {
    min-width: 920px;
}

.loya-ozon-table-head,
.loya-ozon-table-row {
    display: grid;
    grid-template-columns: minmax(300px, 1.6fr) minmax(140px, .7fr) 100px 110px 120px;
    gap: 14px;
    align-items: center;
    padding: 14px 20px;
}

.loya-ozon-table-head.collector,
.loya-ozon-table-row.collector {
    grid-template-columns: 92px minmax(280px, 1.5fr) minmax(120px, .65fr) minmax(160px, .9fr) 120px;
}

.loya-ozon-table-head {
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.loya-ozon-table-row {
    border-bottom: 1px solid #eef2f7;
    color: #0f172a;
}

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

.loya-ozon-table-row strong {
    color: #0f172a;
    font-weight: 800;
}

.loya-ozon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.loya-ozon-button.primary {
    background: #2563eb;
    color: #fff;
}

.loya-ozon-button.secondary {
    border-color: #d1d5db;
    background: #fff;
    color: #0f172a;
}

.loya-ozon-button.ghost {
    background: #eef2ff;
    color: #1d4ed8;
}

.loya-ozon-button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.loya-ozon-status,
.loya-ozon-message {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

.loya-ozon-message {
    border-radius: 12px;
}

.loya-ozon-status.info,
.loya-ozon-message.info {
    background: #eff6ff;
    color: #1d4ed8;
}

.loya-ozon-status.success,
.loya-ozon-message.success {
    background: #ecfdf5;
    color: #047857;
}

.loya-ozon-status.warning,
.loya-ozon-message.warning {
    background: #fffbeb;
    color: #b45309;
}

.loya-ozon-status.danger,
.loya-ozon-message.danger {
    background: #fef2f2;
    color: #b91c1c;
}

.loya-ozon-empty {
    padding: 28px;
    color: #64748b;
    text-align: center;
}

@media (max-width: 980px) {
    .loya-ozon-collector-page .loya-ozon-collector-shell {
        grid-template-columns: 1fr;
    }

    .loya-ozon-table {
        min-width: 760px;
    }
}

.loya-publish-confirm-mask {
    align-items: flex-start !important;
    padding: clamp(12px, 3vh, 24px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.loya-publish-confirm-dialog {
    box-sizing: border-box !important;
    width: min(860px, 100%) !important;
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100dvh - 32px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
}

.loya-publish-confirm-dialog *,
.loya-publish-confirm-dialog *::before,
.loya-publish-confirm-dialog *::after {
    box-sizing: border-box;
}

.loya-publish-confirm-step {
    width: min(450px, 100%) !important;
}

.loya-publish-confirm-step strong,
.loya-publish-confirm-preview-main strong,
.loya-publish-confirm-preview-main small,
.loya-publish-confirm-products span,
.loya-publish-confirm-list p,
.loya-publish-confirm-list li {
    min-width: 0;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

.loya-publish-confirm-preview-card {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

/* Runtime fix: keep auth pages usable in narrow in-app browser panels. */
@media (max-width: 1024px) {
    .admin-login-page.admin-auth-page {
        grid-template-columns: minmax(0, 1fr) !important;
        overflow-x: hidden;
    }

    .admin-login-page .admin-login-visual {
        display: none !important;
    }

    .admin-login-page .admin-login-panel {
        min-height: 100vh;
        width: 100% !important;
        padding: 24px !important;
    }
}

@media (max-width: 520px) {
    .admin-login-page .admin-login-panel {
        padding: 18px !important;
    }

    .admin-login-page .admin-auth-card {
        padding: 24px 18px !important;
        border-radius: 24px !important;
    }

    .admin-login-page .admin-social-login {
        grid-template-columns: 1fr !important;
    }
}

/* Unified Mac-style dialog surface for admin custom dialogs. */
.admin-shell :is(
    .loya-outbound-modal-backdrop,
    .loya-store-management-backdrop,
    .loya-permission-modal,
    .loya-workspace-mask,
    .loya-publish-task-settings-mask,
    .loya-shipping-template-mask,
    .loya-price-dialog-mask,
    .loya-delivery-period-mask,
    .loya-publish-category-mask,
    .loya-publish-confirm-mask,
    .loya-publish-flow-mask,
    .loya-local-edit-fetch-mask,
    .loya-local-editor-modal-backdrop,
    .loya-local-editor-modal-backdrop-picker,
    .loya-image-preview-overlay,
    .loya-confirm-overlay,
    .loya-recognition-preview-overlay,
    .loya-asr-paid-mask,
    .loya-image-import-paid-mask,
    .loya-admin-message-backdrop,
    .loya-resource-modal-backdrop,
    .loya-comp-modal-backdrop,
    .loya-supplement-preview-mask
) {
    background: rgba(15, 23, 42, .22) !important;
    backdrop-filter: blur(10px) saturate(118%) !important;
}

.admin-shell :is(
    .loya-outbound-modal,
    .loya-store-management-modal,
    .loya-permission-modal-dialog,
    .loya-workspace-dialog,
    .loya-publish-task-settings-dialog,
    .loya-shipping-template-dialog,
    .loya-price-dialog,
    .loya-delivery-period-dialog,
    .loya-publish-category-dialog,
    .loya-publish-confirm-dialog,
    .loya-publish-flow-dialog,
    .loya-local-edit-fetch-dialog,
    .loya-local-editor-modal-dialog,
    .loya-local-editor-confirm-dialog,
    .loya-local-editor-category-picker-dialog,
    .loya-local-editor-image-bank-dialog,
    .loya-local-editor-video-bank-dialog,
    .loya-image-preview-modal,
    .loya-confirm-dialog,
    .loya-recognition-preview-modal,
    .loya-recognition-confirm-modal,
    .loya-asr-paid-dialog,
    .loya-image-import-paid-dialog,
    .loya-admin-message-dialog,
    .loya-resource-modal,
    .loya-resource-preview-modal,
    .loya-resource-image-bank-modal,
    .loya-comp-modal,
    .loya-supplement-preview-dialog
) {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border-radius: 22px !important;
    border: 1px solid rgba(17, 24, 39, .08) !important;
    background: linear-gradient(180deg, #fefefe 0%, #f6f7f9 100%) !important;
    box-shadow: 0 26px 80px rgba(15, 23, 42, .16), 0 2px 0 rgba(255, 255, 255, .75) inset !important;
}

.admin-shell :is(
    .loya-outbound-modal-head,
    .loya-store-management-modal-head,
    .loya-permission-editor-head,
    .loya-workspace-head,
    .loya-publish-task-settings-head,
    .loya-shipping-template-head,
    .loya-price-dialog-head,
    .loya-delivery-period-head,
    .loya-publish-category-head,
    .loya-publish-confirm-head,
    .loya-publish-flow-head,
    .loya-local-edit-fetch-head,
    .loya-local-editor-modal-header,
    .loya-local-editor-spec-carton-header,
    .loya-local-editor-picker-header,
    .loya-image-preview-header,
    .loya-confirm-head,
    .loya-recognition-preview-head,
    .loya-recognition-confirm-head,
    .loya-admin-message-head,
    .loya-comp-modal-head,
    .loya-comp-drawer-head,
    .loya-supplement-preview-head
) {
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
    flex: 0 0 auto !important;
    min-height: 76px !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding: 16px 20px 14px 22px !important;
    border-bottom: 1px solid rgba(17, 24, 39, .08) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(248, 250, 252, .96) 100%) !important;
}

.admin-shell :is(
    .loya-outbound-modal-head h2,
    .loya-store-management-modal-head h2,
    .loya-permission-editor-head h2,
    .loya-workspace-head h3,
    .loya-publish-task-settings-head h3,
    .loya-shipping-template-head h3,
    .loya-price-dialog-head h3,
    .loya-delivery-period-head h3,
    .loya-publish-category-head h3,
    .loya-publish-confirm-head h3,
    .loya-publish-flow-head h3,
    .loya-local-edit-fetch-head h3,
    .loya-local-editor-modal-header h3,
    .loya-local-editor-spec-carton-header h3,
    .loya-local-editor-picker-header h3,
    .loya-image-preview-header strong,
    .loya-confirm-head h3,
    .loya-recognition-preview-head strong,
    .loya-recognition-confirm-head h3,
    .loya-admin-message-head h2,
    .loya-comp-modal-head h3,
    .loya-comp-drawer-head h3,
    .loya-supplement-preview-head strong
) {
    margin: 0 !important;
    color: #1f2937 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
}

.admin-shell :is(
    .loya-outbound-modal-head span,
    .loya-store-management-modal-head span,
    .loya-permission-editor-head span,
    .loya-image-preview-header span,
    .loya-confirm-head span,
    .loya-recognition-preview-head span,
    .loya-recognition-confirm-head span
) {
    color: #6b7280 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

.admin-shell :is(
    .loya-outbound-modal-close,
    .loya-store-management-modal-close,
    .loya-local-edit-fetch-window-close,
    .loya-local-editor-modal-close,
    .loya-image-preview-close,
    .loya-confirm-close,
    .loya-recognition-preview-close,
    .loya-admin-message-button,
    .loya-comp-modal-close
) {
    position: relative !important;
}

.admin-shell :is(
    .loya-outbound-modal-body,
    .loya-store-management-modal-body,
    .loya-permission-modal-body,
    .loya-workspace-body,
    .loya-publish-task-settings-scroll,
    .loya-shipping-template-body,
    .loya-price-dialog-body,
    .loya-delivery-period-body,
    .loya-publish-category-body,
    .loya-publish-confirm-body,
    .loya-publish-flow-body,
    .loya-local-edit-fetch-body,
    .loya-local-edit-fetch-step-stack,
    .loya-local-editor-modal-body,
    .loya-local-editor-spec-carton-table-wrap,
    .loya-local-editor-add-spec-carton-body,
    .loya-local-editor-picker-body,
    .loya-image-preview-stage,
    .loya-confirm-body,
    .loya-recognition-preview-body,
    .loya-recognition-confirm-body,
    .loya-admin-message-body,
    .loya-resource-modal-body,
    .loya-resource-preview-body,
    .loya-resource-image-bank-body,
    .loya-comp-modal-body,
    .loya-comp-drawer-body,
    .loya-supplement-preview-body
) {
    min-height: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
}

.admin-shell :is(
    .loya-outbound-modal-actions,
    .loya-store-management-modal-actions,
    .loya-permission-editor-actions,
    .loya-publish-task-settings-actions,
    .loya-shipping-template-actions,
    .loya-price-dialog-actions,
    .loya-delivery-period-actions,
    .loya-publish-category-actions,
    .loya-publish-confirm-actions,
    .loya-local-editor-modal-actions,
    .loya-confirm-modal-actions,
    .loya-recognition-confirm-modal-actions,
    .loya-admin-message-actions,
    .loya-resource-modal-actions,
    .loya-comp-modal-foot
) {
    flex: 0 0 auto !important;
    border-top: 1px solid rgba(17, 24, 39, .08) !important;
    background: rgba(248, 250, 252, .94) !important;
}

.admin-shell :is(.loya-recognition-confirm-modal, .loya-asr-paid-dialog, .loya-image-import-paid-dialog) {
    max-height: min(86vh, 760px) !important;
}

.admin-shell :is(.loya-asr-paid-dialog, .loya-image-import-paid-dialog) {
    padding: 0 !important;
}

.admin-shell :is(.loya-asr-paid-dialog > h3, .loya-image-import-paid-dialog > h3) {
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
    order: -2 !important;
    flex: 0 0 auto !important;
    min-height: 76px !important;
    margin: 0 !important;
    padding: 20px 20px 14px !important;
    border-bottom: 1px solid rgba(17, 24, 39, .08) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(248, 250, 252, .96) 100%) !important;
    color: #1f2937 !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

.admin-shell :is(
    .loya-asr-paid-dialog > .loya-asr-paid-badge,
    .loya-asr-paid-dialog > p,
    .loya-image-import-paid-dialog > .loya-image-import-paid-badge,
    .loya-image-import-paid-dialog > p,
    .loya-image-import-paid-dialog > .loya-image-import-paid-list
) {
    margin-left: 20px !important;
    margin-right: 20px !important;
}

.admin-shell :is(.loya-asr-paid-actions, .loya-image-import-paid-actions) {
    flex: 0 0 auto !important;
    margin-top: 0 !important;
    padding: 14px 20px 18px !important;
    border-top: 1px solid rgba(17, 24, 39, .08) !important;
    background: rgba(248, 250, 252, .94) !important;
}

.admin-shell :is(
    .loya-outbound-modal-head,
    .loya-store-management-modal-head,
    .loya-permission-editor-head,
    .loya-workspace-head,
    .loya-publish-task-settings-head,
    .loya-shipping-template-head,
    .loya-price-dialog-head,
    .loya-delivery-period-head,
    .loya-publish-category-head,
    .loya-publish-confirm-head,
    .loya-publish-flow-head,
    .loya-local-edit-fetch-head,
    .loya-local-editor-modal-header,
    .loya-local-editor-spec-carton-header,
    .loya-local-editor-picker-header,
    .loya-image-preview-header,
    .loya-confirm-head,
    .loya-recognition-preview-head,
    .loya-recognition-confirm-head,
    .loya-admin-message-head,
    .loya-comp-modal-head,
    .loya-comp-drawer-head,
    .loya-supplement-preview-head
) {
    min-height: 72px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    justify-items: stretch !important;
    padding: 18px 22px 16px !important;
}

.admin-shell :is(
    .loya-dialog-window-row,
    .loya-local-edit-fetch-window-row
) {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-self: center !important;
    width: auto !important;
}

.admin-shell :is(
    .loya-outbound-modal-head > div:first-child,
    .loya-store-management-modal-head > div:first-child,
    .loya-workspace-head > :last-child,
    .loya-publish-task-settings-head > h3,
    .loya-shipping-template-head > h3,
    .loya-price-dialog-head > h3,
    .loya-delivery-period-head > h3,
    .loya-publish-category-head > h3,
    .loya-publish-confirm-head > h3,
    .loya-publish-flow-head > div:not(.loya-dialog-window-row),
    .loya-local-edit-fetch-head-main,
    .loya-local-editor-modal-header > h3,
    .loya-local-editor-spec-carton-header > .loya-local-editor-spec-carton-title-row,
    .loya-local-editor-picker-header > div:first-child,
    .loya-image-preview-header > div:first-child,
    .loya-confirm-head > div:first-child,
    .loya-recognition-preview-head > div:first-child,
    .loya-recognition-confirm-head > div:first-child,
    .loya-admin-message-head > div:first-child,
    .loya-comp-modal-head > h3,
    .loya-comp-drawer-head > h3,
    .loya-supplement-preview-head > strong
) {
    grid-column: 1 !important;
    grid-row: auto !important;
    justify-self: stretch !important;
    align-self: center !important;
    min-width: 0 !important;
    max-width: none !important;
    text-align: left !important;
}

.admin-shell :is(
    .loya-outbound-modal-head h2,
    .loya-store-management-modal-head h2,
    .loya-permission-editor-head h2,
    .loya-workspace-head h3,
    .loya-publish-task-settings-head h3,
    .loya-shipping-template-head h3,
    .loya-price-dialog-head h3,
    .loya-delivery-period-head h3,
    .loya-publish-category-head h3,
    .loya-publish-confirm-head h3,
    .loya-publish-flow-head h3,
    .loya-local-edit-fetch-head h3,
    .loya-local-editor-modal-header h3,
    .loya-local-editor-spec-carton-header h3,
    .loya-local-editor-picker-header h3,
    .loya-image-preview-header strong,
    .loya-confirm-head h3,
    .loya-recognition-preview-head strong,
    .loya-recognition-confirm-head h3,
    .loya-admin-message-head h2,
    .loya-comp-modal-head h3,
    .loya-comp-drawer-head h3,
    .loya-supplement-preview-head strong
) {
    text-align: left !important;
}

.admin-shell .loya-admin-message-head {
    position: static !important;
    min-height: 0 !important;
    display: block !important;
    padding: 0 !important;
    grid-template-columns: none !important;
    align-items: initial !important;
    justify-items: initial !important;
    justify-content: initial !important;
}

.admin-shell .loya-admin-message-head-main {
    width: 100% !important;
    max-width: none !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    justify-self: stretch !important;
    padding: 10px 12px !important;
}

.admin-shell .loya-admin-message-head-copy {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
}

.admin-shell .loya-admin-message-head h3 {
    text-align: left !important;
}

.admin-shell .loya-image-preview-header {
    height: 42px !important;
    min-height: 42px !important;
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) 46px !important;
    align-items: center !important;
    justify-items: stretch !important;
    padding: 0 !important;
}

.admin-shell .loya-image-preview-header > div:first-child {
    grid-column: 2 !important;
    justify-self: stretch !important;
    align-self: center !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 5px 12px !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

.admin-shell .loya-image-preview-header strong,
.admin-shell .loya-image-preview-header span {
    text-align: center !important;
}

.admin-shell .loya-image-preview-close {
    grid-column: 3 !important;
    justify-self: stretch !important;
    width: 46px !important;
    height: 42px !important;
    min-width: 46px !important;
    min-height: 42px !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #111827 !important;
}

.admin-shell .loya-image-preview-close:hover {
    background: #c42b1c !important;
    color: #ffffff !important;
}

.admin-shell .loya-image-preview-close {
    width: 46px !important;
    height: 42px !important;
    min-width: 46px !important;
    min-height: 42px !important;
    font-size: 20px !important;
    line-height: 1 !important;
}

/* Windows-style image generation preview dialog. */
.admin-shell .loya-image-preview-overlay {
    padding: 0 !important;
    background: rgba(0, 0, 0, .45) !important;
    backdrop-filter: none !important;
}

.admin-shell .loya-image-preview-modal {
    width: min(880px, calc(100vw - 64px)) !important;
    max-height: min(84vh, 760px) !important;
    border-radius: 0 !important;
    border: 1px solid #7a7a7a !important;
    background: #fff !important;
    box-shadow: 0 14px 44px rgba(0, 0, 0, .32) !important;
}

.admin-shell .loya-image-preview-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    justify-items: stretch !important;
    gap: 16px !important;
    height: auto !important;
    min-height: 56px !important;
    padding: 14px 16px 14px 18px !important;
    border-bottom: 1px solid #cfd8e3 !important;
    background: linear-gradient(180deg, #fbfdff 0%, #eef3f8 100%) !important;
}

.admin-shell .loya-image-preview-header::before {
    content: none !important;
    display: none !important;
}

.admin-shell .loya-image-preview-header > div:first-child,
.admin-shell .loya-image-preview-head-copy {
    display: grid !important;
    grid-column: 1 !important;
    gap: 2px !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    text-align: left !important;
    justify-self: stretch !important;
    align-self: center !important;
}

.admin-shell .loya-image-preview-header strong,
.admin-shell .loya-image-preview-header span {
    display: block !important;
    overflow: hidden !important;
    text-align: left !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.admin-shell .loya-image-preview-header strong {
    color: #10203a !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.admin-shell .loya-image-preview-header span {
    color: #66758a !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

.admin-shell .loya-image-preview-close {
    position: relative !important;
    grid-column: auto !important;
    order: initial !important;
    justify-self: end !important;
    align-self: center !important;
    width: 46px !important;
    height: 38px !important;
    min-width: 46px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid #c5ced9 !important;
    border-radius: 6px !important;
    background: #f7f9fc !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85) !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 1 !important;
}

.admin-shell .loya-image-preview-close::before,
.admin-shell .loya-image-preview-close::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 16px !important;
    height: 2px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #2b3440 !important;
    box-sizing: border-box !important;
    transform-origin: center !important;
}

.admin-shell .loya-image-preview-close::before {
    transform: translate(-50%, -50%) rotate(45deg) !important;
}

.admin-shell .loya-image-preview-close::after {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.admin-shell .loya-image-preview-close:hover,
.admin-shell .loya-image-preview-close:focus-visible {
    background: #e81123 !important;
    border-color: #d11a2a !important;
}

.admin-shell .loya-image-preview-close:hover::before,
.admin-shell .loya-image-preview-close:hover::after,
.admin-shell .loya-image-preview-close:focus-visible::before,
.admin-shell .loya-image-preview-close:focus-visible::after {
    background: #fff !important;
}

.admin-shell .loya-image-preview-stage {
    background: #f5f5f5 !important;
}

/* High-contrast primary action buttons for the image generation page. */
.admin-shell .loya-image-generation-page .loya-image-action-button,
.admin-shell .loya-image-generation-page .loya-image-action-button:not(:disabled),
.admin-shell .loya-image-generation-page .loya-image-action-grid .loya-image-button-primary:not(.purple),
.admin-shell .loya-image-generation-page .loya-composite-stage .loya-reference-tab-actions .loya-image-button-primary {
    color: #fff !important;
    background: linear-gradient(135deg, #1d4ed8 0%, #153eaa 100%) !important;
    border-color: #153eaa !important;
    text-shadow: none !important;
    box-shadow: 0 12px 24px rgba(29, 78, 216, .24) !important;
}

.admin-shell .loya-image-generation-page .loya-image-action-button:hover:not(:disabled),
.admin-shell .loya-image-generation-page .loya-image-action-button:focus-visible:not(:disabled),
.admin-shell .loya-image-generation-page .loya-image-action-grid .loya-image-button-primary:not(.purple):hover:not(:disabled),
.admin-shell .loya-image-generation-page .loya-image-action-grid .loya-image-button-primary:not(.purple):focus-visible:not(:disabled),
.admin-shell .loya-image-generation-page .loya-composite-stage .loya-reference-tab-actions .loya-image-button-primary:hover:not(:disabled),
.admin-shell .loya-image-generation-page .loya-composite-stage .loya-reference-tab-actions .loya-image-button-primary:focus-visible:not(:disabled) {
    color: #fff !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border-color: #1d4ed8 !important;
}

.admin-shell .loya-image-generation-page .loya-image-action-button:disabled,
.admin-shell .loya-image-generation-page .loya-image-action-grid .loya-image-button-primary:not(.purple):disabled,
.admin-shell .loya-image-generation-page .loya-composite-stage .loya-reference-tab-actions .loya-image-button-primary:disabled {
    opacity: 1 !important;
    color: #475569 !important;
    background: #e8edf5 !important;
    border-color: #cbd5e1 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

/* Windows-style image preview dialog (ImageTranslation page). */
.admin-shell .loya-translation-preview-overlay {
    padding: 0 !important;
    background: rgba(0, 0, 0, .45) !important;
    backdrop-filter: none !important;
}

.admin-shell .loya-translation-preview-modal {
    width: min(900px, calc(100vw - 64px)) !important;
    max-height: min(86vh, 820px) !important;
    border-radius: 0 !important;
    border: 1px solid #0b3a8f !important;
    background: #f0f0f0 !important;
    box-shadow: 0 14px 44px rgba(0, 0, 0, .32) !important;
}

.admin-shell .loya-translation-preview-head {
    position: relative !important;
    top: auto !important;
    z-index: auto !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    min-height: 36px !important;
    padding: 0 0 0 12px !important;
    border-bottom: 1px solid #0b3a8f !important;
    background: linear-gradient(180deg, #4a7dd8 0%, #2b579a 100%) !important;
}

.admin-shell .loya-translation-preview-head::before {
    content: none !important;
}

.admin-shell .loya-translation-preview-head > div:first-child {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    gap: 8px !important;
    justify-self: auto !important;
    align-self: center !important;
    max-width: none !important;
    margin: 0 !important;
    text-align: left !important;
}

.admin-shell .loya-translation-preview-head span {
    color: rgba(255, 255, 255, .78) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
}

.admin-shell .loya-translation-preview-head strong {
    margin: 0 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
}

.admin-shell .loya-translation-preview-close {
    position: relative !important;
    order: initial !important;
    align-self: stretch !important;
    flex: 0 0 auto !important;
    width: 46px !important;
    height: 36px !important;
    min-width: 46px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-left: 1px solid rgba(255, 255, 255, .22) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 18px !important;
    line-height: 1 !important;
    text-align: center !important;
}

.admin-shell .loya-translation-preview-close::before,
.admin-shell .loya-translation-preview-close::after {
    content: none !important;
}

.admin-shell .loya-translation-preview-close:hover,
.admin-shell .loya-translation-preview-close:focus-visible {
    color: #fff !important;
    background: #c42b1c !important;
}

.admin-shell .loya-translation-preview-body {
    min-height: 0 !important;
    overflow: auto !important;
    overscroll-behavior: contain !important;
    padding: 10px !important;
    background: #ffffff !important;
}

.admin-shell .loya-translation-preview-body img {
    max-width: 100% !important;
    max-height: calc(min(86vh, 820px) - 58px) !important;
    border-radius: 0 !important;
    border: 1px solid #d9d9d9 !important;
    box-shadow: none !important;
    background: #fff !important;
}

.admin-shell :is(
    .loya-publish-task-settings-window-controls,
    .loya-dialog-window-controls,
    .loya-local-edit-fetch-window-controls
) {
    gap: 2px !important;
}

.admin-shell .loya-member-user-editor-modal > .loya-outbound-modal-head {
    min-height: 86px !important;
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) 52px !important;
    align-items: center !important;
    justify-items: center !important;
    padding: 16px 18px 14px !important;
}

.admin-shell .loya-member-user-editor-modal > .loya-outbound-modal-head::before {
    content: none !important;
}

.admin-shell .loya-member-user-editor-modal > .loya-outbound-modal-head > div:first-child {
    grid-column: 2 !important;
    justify-self: center !important;
    max-width: min(680px, 100%) !important;
    display: grid !important;
    justify-items: center !important;
    gap: 4px !important;
    text-align: center !important;
}

.admin-shell .loya-member-user-editor-modal > .loya-outbound-modal-head span,
.admin-shell .loya-member-user-editor-modal > .loya-outbound-modal-head h2,
.admin-shell .loya-member-user-editor-modal > .loya-outbound-modal-head p {
    text-align: center !important;
}

.admin-shell .loya-member-user-editor-modal > .loya-outbound-modal-head h2 {
    margin: 2px 0 !important;
    font-size: 24px !important;
    line-height: 1.2 !important;
}

.admin-shell .loya-member-user-editor-modal > .loya-outbound-modal-head p {
    max-width: 680px !important;
    line-height: 1.65 !important;
}

.admin-shell .loya-member-user-editor-modal > .loya-outbound-modal-head > .loya-outbound-modal-close {
    grid-column: 3 !important;
    justify-self: end !important;
    align-self: start !important;
    order: initial !important;
    width: 46px !important;
    height: 32px !important;
    min-width: 46px !important;
    min-height: 32px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #111827 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

.admin-shell .loya-member-user-editor-modal > .loya-outbound-modal-head > .loya-outbound-modal-close::before,
.admin-shell .loya-member-user-editor-modal > .loya-outbound-modal-head > .loya-outbound-modal-close::after {
    content: none !important;
}

.admin-shell .loya-member-user-editor-modal > .loya-outbound-modal-head > .loya-outbound-modal-close:hover,
.admin-shell .loya-member-user-editor-modal > .loya-outbound-modal-head > .loya-outbound-modal-close:focus-visible {
    color: #fff !important;
    background: #e81123 !important;
}

.admin-shell .loya-publish-confirm-dialog {
    width: min(780px, calc(100vw - 52px)) !important;
    max-height: min(92vh, 900px) !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg, #f7fbff 0%, #eef3f8 100%) !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .2), inset 0 1px 0 rgba(255,255,255,.92) !important;
}

.admin-shell .loya-publish-confirm-dialog > .loya-publish-confirm-head {
    display: block !important;
    min-height: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #c6d1df !important;
    background: linear-gradient(180deg, #f8fbff 0%, #dfe8f4 100%) !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-dialog-window-row {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border-bottom: none !important;
    background: transparent !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-dialog-window-controls {
    gap: 2px !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-dialog-window-close{
    width: 32px !important;
    height: 26px !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-head-main {
    width: 100% !important;
    display: grid !important;
    align-items: center !important;
    justify-content: stretch !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 10px 12px !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-orb {
    flex: 0 0 auto !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #7ca8ff, #6f6bff) !important;
    box-shadow: 0 10px 22px rgba(103, 118, 255, .28) !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-orb span {
    inset: 8px !important;
    width: auto !important;
    height: auto !important;
    border-radius: 50% !important;
    transform: none !important;
    background: rgba(119, 160, 255, .55) !important;
    opacity: 1 !important;
    filter: none !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-orb span:nth-child(2) {
    inset: 14px !important;
    background: rgba(105, 108, 255, .7) !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-orb span:nth-child(3) {
    display: none !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-head-copy {
    display: block !important;
    min-width: 0 !important;
    text-align: left !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-head h3 {
    margin: 0 0 8px !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    color: #1f2d3d !important;
    text-align: left !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-head p {
    margin: 0 !important;
    max-width: none !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: #5f6f84 !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-body {
    gap: 18px !important;
    padding: 18px 42px 20px !important;
    background: linear-gradient(180deg, #f7fbff 0%, #f2f6fb 100%) !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-preview-card,
.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-step-stack,
.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-list,
.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-bottom-notes {
    width: min(100%, 600px) !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-preview-card {
    padding: 18px 22px !important;
    border-radius: 18px !important;
    border: 1px solid #dfe7f6 !important;
    background: #fff !important;
    box-shadow: 0 12px 30px rgba(46, 80, 145, .06) !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-preview-main {
    gap: 16px !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-preview-main img {
    width: 58px !important;
    height: 58px !important;
    border-radius: 14px !important;
    border-color: #e3e9f5 !important;
    background: #f8fbff !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-preview-main strong {
    margin: 0 0 8px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    font-weight: 800 !important;
    color: #1b2437 !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-preview-main small {
    font-size: 12px !important;
    color: #7b879c !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-step-stack {
    width: min(100%, 425px) !important;
    gap: 14px !important;
    padding: 0 !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-step {
    min-height: 48px !important;
    padding: 0 22px !important;
    border-radius: 999px !important;
    background: #edf1ff !important;
    color: #4b5b7c !important;
    box-shadow: none !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-step.warn {
    background: #fff4d6 !important;
    color: #8b5b00 !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-step.pending {
    background: transparent !important;
    padding: 0 8px !important;
    color: #52627f !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-step-icon {
    width: 22px !important;
    height: 22px !important;
    background: linear-gradient(135deg, #8c85ff, #6f77ff) !important;
    font-size: 15px !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-step.pending .loya-publish-confirm-step-icon {
    border: 2px dashed #93a6c9 !important;
    color: transparent !important;
    background: transparent !important;
    animation: loya-publish-confirm-spin 1.2s linear infinite !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-list.info {
    min-height: 76px !important;
    padding: 18px 22px !important;
    border-radius: 16px !important;
    border: 1px solid #dfe7f6 !important;
    background: #fff !important;
    box-shadow: 0 12px 26px rgba(46, 80, 145, .05) !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-list.info strong {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #1d2a42 !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-list.info p {
    font-size: 12px !important;
    color: #62718b !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-footer {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 18px !important;
    align-items: center !important;
    padding: 16px 22px 18px !important;
    border-top: 1px solid rgba(142,160,183,.55) !important;
    background: linear-gradient(180deg, #f5f8fc 0%, #edf2f7 100%) !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-check {
    justify-content: center !important;
    color: #6d7890 !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-check input {
    width: 16px !important;
    height: 16px !important;
    accent-color: #746cff !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-actions {
    gap: 14px !important;
}

.admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-primary {
    min-width: 150px !important;
    box-shadow: 0 10px 24px rgba(47, 105, 255, .32) !important;
}

@keyframes loya-publish-confirm-spin {
    to {
        transform: rotate(360deg);
    }
}

.admin-shell .loya-publish-flow-dialog > .loya-publish-flow-head {
    position: sticky !important;
    display: grid !important;
    align-items: center !important;
    justify-content: stretch !important;
    min-height: 0 !important;
    padding: 0 !important;
}

.admin-shell .loya-publish-flow-dialog .loya-publish-flow-window-row {
    position: static !important;
    z-index: auto !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
}

.admin-shell .loya-publish-flow-dialog .loya-publish-flow-head-copy {
    width: min(100%, 720px) !important;
    max-width: 720px !important;
    margin: 0 !important;
    text-align: left !important;
    transform: none !important;
}

.admin-shell .loya-publish-flow-dialog .loya-publish-flow-window-controls {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 2px !important;
    margin: 0 !important;
    transform: none !important;
}

.admin-shell .loya-publish-flow-dialog .loya-publish-flow-head h3,
.admin-shell .loya-publish-flow-dialog .loya-publish-flow-head p {
    text-align: left !important;
}

.admin-shell .loya-resource-modal.attribute-template .loya-resource-modal-head {
    justify-items: start !important;
    text-align: left !important;
    padding-left: 20px !important;
    padding-right: 64px !important;
}

.admin-shell .loya-resource-modal.attribute-template .loya-resource-modal-head > .loya-resource-modal-head-main {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

.admin-shell .loya-resource-modal.attribute-template .loya-resource-modal-head .loya-windows-dialog-header-copy.left {
    display: grid !important;
    justify-items: start !important;
    text-align: left !important;
    width: 100% !important;
    margin: 0 !important;
}

.admin-shell .loya-resource-modal.attribute-template .loya-resource-modal-head h3 {
    margin: 0 !important;
    white-space: nowrap !important;
    text-align: left !important;
    width: 100% !important;
    justify-self: start !important;
    align-self: center !important;
    display: block !important;
}

.admin-shell .loya-resource-modal.attribute-template .loya-resource-modal-head p {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
}

.admin-shell .loya-resource-modal.attribute-template .loya-attribute-template-title-field {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 12px;
    margin-bottom: 0;
}

.admin-shell .loya-resource-modal.attribute-template .loya-attribute-template-title-field > span {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
    color: #1d395f;
}

.admin-shell .loya-resource-modal.attribute-template .loya-attribute-template-title-field > span em {
    color: #d64545;
    font-style: normal;
}

.admin-shell .loya-resource-modal.attribute-template .loya-attribute-template-title-field > input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 42px;
    border: 1px solid #cbd8ea;
    border-radius: 4px;
    padding: 0 18px;
    background: #fff;
    color: #16365c;
    font-size: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.admin-shell .loya-resource-modal.attribute-template .loya-attribute-template-title-field > input:focus {
    outline: none;
    border-color: #4f8fdf;
    box-shadow: 0 0 0 3px rgba(79, 143, 223, .16);
}

@media (max-width: 760px) {
    .admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-head-main {
        padding: 22px 22px 20px !important;
    }

    .admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-body {
        padding: 16px 22px 18px !important;
    }

    .admin-shell .loya-publish-confirm-dialog .loya-publish-confirm-footer {
        grid-template-columns: 1fr !important;
        padding: 16px 22px 18px !important;
    }
}
.admin-shell .loya-local-editor-video-bank-dialog {
    width: min(100%, 960px) !important;
    max-height: calc(100vh - 40px) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border: 1px solid #8b8b8b !important;
    border-radius: 2px !important;
    background: #f0f0f0 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .3) !important;
}

.admin-shell .loya-local-editor-video-bank-dialog .loya-local-editor-picker-header {
    position: static !important;
    min-height: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 0 0 0 12px !important;
    border-bottom: 1px solid #c8c8c8 !important;
    background: #e9e9e9 !important;
}

.admin-shell .loya-local-editor-video-bank-dialog .loya-local-editor-picker-header h3 {
    margin: 0 !important;
    color: #1f1f1f !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 40px !important;
}

.admin-shell .loya-local-editor-video-bank-dialog .loya-local-editor-video-bank-close {
    order: 0 !important;
    align-self: center !important;
    flex: 0 0 46px !important;
    width: 46px !important;
    height: 40px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #1f1f1f !important;
    font-family: "Segoe UI", Arial, sans-serif !important;
    font-size: 20px !important;
    font-weight: 300 !important;
    line-height: 40px !important;
    text-align: center !important;
    cursor: pointer !important;
}

.admin-shell .loya-local-editor-video-bank-dialog .loya-local-editor-video-bank-close::before,
.admin-shell .loya-local-editor-video-bank-dialog .loya-local-editor-video-bank-close::after {
    content: none !important;
    display: none !important;
}

.admin-shell .loya-local-editor-video-bank-dialog .loya-local-editor-video-bank-close:hover {
    background: #e81123 !important;
    color: #fff !important;
}

.admin-shell .loya-local-editor-video-bank-dialog .loya-local-editor-video-bank-close:active {
    background: #f1707a !important;
    color: #fff !important;
}

.admin-shell .loya-local-editor-video-bank-dialog .loya-local-editor-video-bank-close:focus-visible {
    outline: 2px solid #0078d4 !important;
    outline-offset: -2px !important;
}

.admin-shell .loya-local-editor-video-bank-dialog .loya-local-editor-video-bank-toolbar {
    min-height: 44px !important;
    padding: 8px 12px !important;
    border-bottom: 1px solid #d6d6d6 !important;
    background: #f7f7f7 !important;
}

.admin-shell .loya-local-editor-video-bank-dialog .loya-local-editor-video-bank-grid {
    min-height: 0 !important;
    overflow: auto !important;
}

.admin-shell .loya-local-editor-video-bank-dialog .loya-local-editor-video-bank-status {
    min-width: 0 !important;
    overflow: hidden !important;
    color: #666 !important;
    font-size: 12px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* 标题栏：强制横排，避免 @media(max-width:960px) 把它变成竖排并把关闭按钮甩到下面 */
.admin-shell .loya-local-editor-video-bank-dialog .loya-local-editor-video-bank-titlebar {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 0 0 12px !important;
    border-bottom: 1px solid #c8c8c8 !important;
    background: #e9e9e9 !important;
}

.admin-shell .loya-local-editor-video-bank-dialog .loya-local-editor-video-bank-titlebar h3 {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: #1f1f1f !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 40px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* 对话框不再留内边距，标题栏才能贴到左右边缘（否则标题栏会缩进 22px） */
.admin-shell .loya-local-editor-video-bank-dialog {
    padding: 0 !important;
}

/* 内容区自己负责间距：工具条贴标题栏，列表填满剩余高度 */
.admin-shell .loya-local-editor-video-bank-dialog .loya-local-editor-video-bank-toolbar {
    flex: 0 0 auto !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #d6d6d6 !important;
    border-radius: 0 !important;
    background: #f7f7f7 !important;
}

.admin-shell .loya-local-editor-video-bank-dialog .loya-local-editor-video-bank-grid {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 12px !important;
    overflow: auto !important;
}

.admin-shell .loya-local-editor-video-bank-dialog .loya-local-editor-image-bank-empty,
.admin-shell .loya-local-editor-video-bank-dialog .loya-local-editor-image-bank-loading,
.admin-shell .loya-local-editor-video-bank-dialog .loya-local-editor-image-bank-error {
    margin: 12px !important;
    border-radius: 2px !important;
}

/* Windows-style close button fallback for admin dialogs. Replaces the removed
   macOS traffic lights. Specificity is deliberately 0 via :where() so each
   dialog's own scoped style keeps winning whenever it defines one. */
.admin-shell :where(
    .loya-outbound-modal-close,
    .loya-store-management-modal-close,
    .loya-local-editor-modal-close,
    .loya-confirm-close,
    .loya-recognition-preview-close,
    .loya-comp-modal-close,
    .loya-image-preview-close,
    .loya-dialog-window-close
) {
    position: relative;
    flex: 0 0 auto;
    width: 44px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #444;
    font-size: 18px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
}

.admin-shell :where(
    .loya-outbound-modal-close,
    .loya-store-management-modal-close,
    .loya-local-editor-modal-close,
    .loya-confirm-close,
    .loya-recognition-preview-close,
    .loya-comp-modal-close,
    .loya-image-preview-close,
    .loya-dialog-window-close
):hover {
    background: #e81123;
    color: #fff;
}

.admin-shell :where(
    .loya-outbound-modal-close,
    .loya-store-management-modal-close,
    .loya-local-editor-modal-close,
    .loya-confirm-close,
    .loya-recognition-preview-close,
    .loya-comp-modal-close,
    .loya-image-preview-close,
    .loya-dialog-window-close
):disabled {
    cursor: not-allowed;
    opacity: .45;
}

.admin-shell :where(
    .loya-outbound-modal-close,
    .loya-store-management-modal-close,
    .loya-local-editor-modal-close,
    .loya-confirm-close,
    .loya-recognition-preview-close,
    .loya-comp-modal-close,
    .loya-image-preview-close,
    .loya-dialog-window-close
):focus-visible {
    outline: 2px solid #0078d4;
    outline-offset: -2px;
}

/* Some close buttons carry no text glyph at all (the macOS red dot used to be
   the whole button), so the ✕ is drawn with pseudo-elements. Zero specificity
   via :where() keeps every dialog's own scoped ✕ geometry authoritative. */
.admin-shell :where(.loya-image-preview-close, .loya-dialog-window-close) {
    font-size: 0;
    line-height: 0;
    color: transparent;
}

.admin-shell :where(.loya-image-preview-close, .loya-dialog-window-close)::before,
.admin-shell :where(.loya-image-preview-close, .loya-dialog-window-close)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 1.6px;
    border-radius: 1px;
    background: #42556b;
}

.admin-shell :where(.loya-image-preview-close, .loya-dialog-window-close)::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.admin-shell :where(.loya-image-preview-close, .loya-dialog-window-close)::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.admin-shell :where(.loya-image-preview-close, .loya-dialog-window-close):hover::before,
.admin-shell :where(.loya-image-preview-close, .loya-dialog-window-close):hover::after {
    background: #fff;
}

/* The image preview header is a two-column grid (title + close), so pin the
   close row to column 2 instead of letting auto-placement create a third one. */
.admin-shell .loya-image-preview-header .loya-dialog-window-row {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-self: center !important;
}

/* Sidebar proportions and typography matched to the menu reference. */
@media (min-width: 981px) {
    .admin-shell {
        grid-template-columns: 252px minmax(0, 1fr) !important;
    }
}

.admin-shell .admin-sidebar .admin-side-nav {
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.admin-shell .admin-sidebar .admin-side-link,
.admin-shell .admin-sidebar .admin-side-sublink {
    font-family: inherit;
    font-size: 14px !important;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 20px;
}

.admin-shell .admin-sidebar .admin-side-link {
    min-height: 36px !important;
}

.admin-shell .admin-sidebar .admin-side-link-text strong {
    font-weight: inherit !important;
}

.admin-shell .admin-sidebar .admin-side-toggle-icon {
    flex: 0 0 12px;
    width: 12px;
    min-width: 12px;
    height: 16px;
    margin-left: auto;
    color: #8a8e9f;
    opacity: .8;
    transform: rotate(0deg) !important;
    transition: transform .18s ease;
}

.admin-shell .admin-sidebar .admin-side-toggle-icon svg {
    display: block;
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-shell .admin-sidebar .admin-side-toggle[aria-expanded="true"] .admin-side-toggle-icon {
    transform: rotate(90deg) !important;
}

@media (prefers-reduced-motion: reduce) {
    .admin-shell .admin-sidebar .admin-side-toggle-icon {
        transition: none;
    }
}


/* Complete dark-mode contrast for selected navigation and dark content panels. */
html[data-mode="dark"] .admin-shell .admin-sidebar .admin-side-link.active,
html[data-mode="dark"] .admin-shell .admin-sidebar .admin-side-toggle.active,
html[data-mode="dark"] .admin-sidebar .admin-side-link.active,
html[data-mode="dark"] .admin-sidebar .admin-side-toggle.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.14) !important;
}

html[data-mode="dark"] .admin-shell .admin-sidebar .admin-side-link.active .admin-side-icon,
html[data-mode="dark"] .admin-shell .admin-sidebar .admin-side-toggle.active .admin-side-icon,
html[data-mode="dark"] .admin-sidebar .admin-side-link.active .admin-side-icon,
html[data-mode="dark"] .admin-sidebar .admin-side-toggle.active .admin-side-icon {
    color: #fff !important;
}

html[data-mode="dark"] .admin-shell .admin-page-heading,
html[data-mode="dark"] .admin-shell .admin-panel,
html[data-mode="dark"] .admin-shell .admin-metric-card,
html[data-mode="dark"] .admin-shell .admin-shortcut-card,
html[data-mode="dark"] .admin-shell .admin-kanban-card {
    color: #f3f4f6 !important;
    background: #111827 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-mode="dark"] .admin-shell .admin-panel h1,
html[data-mode="dark"] .admin-shell .admin-panel h2,
html[data-mode="dark"] .admin-shell .admin-panel h3,
html[data-mode="dark"] .admin-shell .admin-panel h4,
html[data-mode="dark"] .admin-shell .admin-panel strong,
html[data-mode="dark"] .admin-shell .admin-panel label,
html[data-mode="dark"] .admin-shell .admin-panel th,
html[data-mode="dark"] .admin-shell .admin-panel td,
html[data-mode="dark"] .admin-shell .admin-page-heading h1,
html[data-mode="dark"] .admin-shell .admin-page-heading strong,
html[data-mode="dark"] .admin-shell .admin-metric-card strong,
html[data-mode="dark"] .admin-shell .admin-shortcut-card strong,
html[data-mode="dark"] .admin-shell .admin-kanban-card strong {
    color: #f9fafb !important;
}

html[data-mode="dark"] .admin-shell .admin-panel p,
html[data-mode="dark"] .admin-shell .admin-panel small,
html[data-mode="dark"] .admin-shell .admin-panel .admin-muted,
html[data-mode="dark"] .admin-shell .admin-page-heading p {
    color: #cbd5e1 !important;
}

/* Collector surfaces must change together with their text. */
html[data-mode="dark"] .admin-shell .loya-icbu-collector-page {
    color-scheme: dark;
    color: #fff;
    --collector-border-cbd5e1: #334155;
    --collector-border-dbe3ef: #334155;
    --collector-border-dbe4f0: #334155;
    --collector-border-e2e8f0: #334155;
    --collector-border-e5e7eb: #334155;
    --collector-border-e8edf5: #334155;
    --collector-border-e8eef6: #334155;
    --collector-surface-f1f5f9: #111827;
    --collector-surface-f6f8fc: #111827;
    --collector-surface-f7f9fc: #111827;
    --collector-surface-f8fafc: #111827;
    --collector-surface-f8faff: #111827;
    --collector-surface-fff: #111827;
    --collector-text-0f172a: #fff;
    --collector-text-111827: #fff;
    --collector-text-1e293b: #fff;
    --collector-text-334155: #fff;
    --collector-text-374151: #fff;
    --collector-text-475569: #fff;
    --collector-text-64748b: #fff;
    --collector-text-6b7280: #fff;
    --collector-text-94a3b8: #fff;
}

html[data-mode="dark"] .admin-shell .admin-sidebar :is(.admin-side-link, .admin-side-sublink, .admin-side-toggle).active,
html[data-mode="dark"] .admin-shell .admin-sidebar :is(.admin-side-link, .admin-side-sublink, .admin-side-toggle).active :is(.admin-side-icon, .admin-side-toggle-icon, .admin-side-link-text, strong) {
    color: #fff !important;
    opacity: 1;
}
html[data-mode="dark"] .admin-shell .loya-icbu-collector-page,
html[data-mode="dark"] .admin-shell .loya-icbu-collector-page :is(.loya-collector-card, .loya-collector-pool-list, .loya-collector-pool-row) {
    background: #111827 !important;
    color: #fff;
    border-color: #334155;
}
html[data-mode="dark"] .admin-shell .loya-icbu-collector-page :is(.loya-collector-listview-head, .loya-collector-pool-pagination) {
    background: #1e293b !important;
    color: #fff;
}
html[data-mode="dark"] .admin-shell .loya-icbu-collector-page :is(h1, h2, h3, .loya-collector-price-text, .loya-collector-product-copy strong) {
    color: #fff !important;
}
html[data-mode="dark"] .admin-shell .loya-icbu-collector-page input::placeholder {
    color: #94a3b8;
}
