:root {
    --ek-bg: #f4f7f8;
    --ek-card: #ffffff;
    --ek-border: #e5e7eb;
    --ek-muted: #6b7280;
    --ek-brand: #14c77a;
    --ek-brand-dark: #10b86f;
}

body {
    background: var(--ek-bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.ek-preloader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(244, 247, 248, .96);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    will-change: opacity, visibility;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}

.ek-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

html.ek-preloader-ready .ek-preloader,
body.ek-preloader-ready .ek-preloader {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.ek-preloader-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    padding: 0;
    animation: none;
    box-shadow: none;
    background: transparent;
}

.ek-preloader-logo {
    width: 75px;
    max-width: 62vw;
    height: auto;
    filter: drop-shadow(0 0 0 rgba(20, 199, 122, .0));
    animation: ekPreloaderGlow 1.45s ease-in-out infinite;
}

@keyframes ekPreloaderGlow {
    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(20, 199, 122, 0));
    }

    50% {
        transform: scale(1.03);
        filter: drop-shadow(0 0 14px rgba(20, 199, 122, .55));
    }
}

@media (prefers-reduced-motion: reduce) {
    .ek-preloader-logo {
        animation: none;
    }
}

.ek-navbar {
    background: var(--ek-card);
    border-bottom: 1px solid var(--ek-border);
}

.ek-brand-logo {
    height: 46px;
    width: auto;
}

.ek-main-card,
.ek-panel,
.ek-module-card,
.ek-contact-card,
.ek-page-card,
.ek-login-card {
    background: #f5f6f8;
    border: 1px solid var(--ek-border);
    border-radius: 14px;
}

.ek-main-card {
    background: #f0f1f3;
}

.ek-navbar {
    background: #fff;
}

.ek-icon-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    text-decoration: none;
    border-radius: 999px;
}

.ek-icon-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.ek-user-pill {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    border: 1px solid var(--ek-border);
    border-radius: 12px;
    padding: .25rem .55rem;
    text-decoration: none;
    color: #111827;
    background: #fff;
}

.ek-user-initials {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #6b7280;
    font-size: .75rem;
    font-weight: 600;
}

.ek-user-name {
    font-size: .86rem;
    font-weight: 500;
}

.ek-main-card,
.ek-page-card,
.ek-login-card {
    box-shadow: 0 10px 20px rgba(0, 0, 0, .04);
}

.ek-stepper {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding-bottom: .25rem;
}

.ek-step {
    border: 1px solid var(--ek-border);
    border-radius: 999px;
    padding: .45rem .8rem;
    white-space: nowrap;
    font-size: .85rem;
    color: var(--ek-muted);
    background: #fff;
}

.ek-step.active {
    border-color: rgba(20, 199, 122, .5);
    color: #0f5132;
    background: #eaf8f1;
}

.ek-step.done {
    color: #0f5132;
}

.ek-dot {
    color: var(--ek-brand);
    margin-right: .35rem;
}

.ek-module-card .btn,
.ek-contact-card .btn,
.ek-timeline .btn,
.ek-login-card .btn-primary,
.ek-page-card .btn-primary {
    background: var(--ek-brand);
    border-color: var(--ek-brand);
}

.ek-module-card .btn:hover,
.ek-contact-card .btn:hover,
.ek-timeline .btn:hover,
.ek-login-card .btn-primary:hover,
.ek-page-card .btn-primary:hover {
    background: var(--ek-brand-dark);
    border-color: var(--ek-brand-dark);
}

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

.ek-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #effaf5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ek-brand);
    font-size: 1.8rem;
}

.ek-module-illustration {
    width: 180px;
    max-width: 46%;
    height: auto;
    object-fit: contain;
}

.ek-welcome-modal {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(17, 24, 39, .24);
}

.ek-welcome-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem 2rem 1.25rem;
    background:
        radial-gradient(circle at top left, rgba(20, 199, 122, .22), transparent 42%),
        linear-gradient(135deg, #f6fffb 0%, #eef5ff 100%);
}

.ek-welcome-hero-copy {
    max-width: 560px;
}

.ek-welcome-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: rgba(20, 199, 122, .12);
    color: #0f7a4b;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ek-welcome-title {
    margin: .9rem 0 .65rem;
    font-size: clamp(1.6rem, 2vw, 2.25rem);
    font-weight: 800;
    color: #111827;
}

.ek-welcome-text {
    margin: 0;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.65;
}

.ek-welcome-hero-mark {
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #14c77a 0%, #0ea5e9 100%);
    color: #fff;
    font-size: 2.2rem;
    box-shadow: 0 16px 36px rgba(20, 199, 122, .24);
}

.ek-welcome-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.4rem 2rem 1.1rem;
}

.ek-welcome-item {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
}

.ek-welcome-item-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #effaf5;
    color: var(--ek-brand);
    font-size: 1.35rem;
}

.ek-welcome-item h3 {
    margin: .1rem 0 .35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.ek-welcome-item p {
    margin: 0;
    color: #6b7280;
    line-height: 1.55;
    font-size: .93rem;
}

.ek-welcome-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 2rem 2rem;
}

.ek-welcome-tip {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: #4b5563;
    font-size: .92rem;
}

.ek-welcome-tip i {
    color: var(--ek-brand);
}

@media (max-width: 576px) {
    .ek-module-illustration {
        width: 140px;
        max-width: 42%;
    }

    .ek-welcome-hero {
        padding: 1.4rem 1.2rem 1rem;
    }

    .ek-welcome-grid {
        padding: 1rem 1.2rem;
    }

    .ek-welcome-footer {
        flex-direction: column;
        align-items: stretch;
        padding: 0 1.2rem 1.2rem;
    }
}

@media (max-width: 767.98px) {
    .ek-welcome-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .ek-welcome-hero-mark {
        width: 68px;
        height: 68px;
        flex-basis: 68px;
        border-radius: 20px;
        font-size: 1.7rem;
    }
}

@media (max-width: 991.98px) {
    .ek-welcome-grid {
        grid-template-columns: 1fr;
    }
}

.ek-timeline .list-group-item {
    border-left: 0;
    border-right: 0;
    border-top: 0;
    padding: .82rem 1.2rem;
}

.ek-timeline .list-group-item:last-child {
    border-bottom: 0;
}

.ek-timeline-rail {
    flex: 0 0 46px;
    width: 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ek-rail-gap);
    padding: 2px 0;
    position: relative;
}

.ek-timeline-rail::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 2px;
    bottom: 2px;
    width: 2px;
    background: #e8edf0;
}

.ek-timeline-dot {
    width: var(--ek-rail-dot-h);
    height: var(--ek-rail-dot-h);
    border-radius: 8px;
    border: 1px solid #d8e2e7;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ek-muted);
    font-size: 1rem;
    z-index: 1;
}

.ek-timeline-dot.done {
    background: var(--ek-brand);
    border-color: var(--ek-brand);
    color: #fff;
}

.ek-timeline-dot.pending {
    background: #fffdf5;
    border-color: #f2c94c;
    color: #d4a514;
}

.ek-timeline-head {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ek-timeline-head::before {
    content: '';
    width: 48px;
    height: 1px;
    background: #d1d5db;
}

.ek-timeline {
    --ek-rail-dot-h: 46px;
    --ek-rail-gap: 4px;
    --ek-row-h: calc(var(--ek-rail-dot-h) + var(--ek-rail-gap));
    padding: 5px;
    overflow: hidden;
}

.ek-timeline-list {
    padding: 0;
}

.ek-timeline-row {
    height: var(--ek-row-h);
    min-height: var(--ek-row-h);
    padding: 0 16px 0 18px;
    display: flex;
    align-items: center;
    gap: .65rem;
    color: #8b9098;
    font-size: 1rem;
}

.ek-timeline-row:first-child {
    border-top: 0;
}

.ek-timeline-row > i {
    font-size: 1.25rem;
    color: #9aa0a8;
}


.ek-timeline-row span {
    font-size: 1.02rem;
    line-height: 1.35;
}

.ek-timeline-row.done i,
.ek-timeline-row.done span {
    color: #91dfbf;
}

.ek-timeline-row.focus {
    margin: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    height: var(--ek-row-h);
    min-height: var(--ek-row-h);
    justify-content: space-between;
    background: #fff;
}

.ek-timeline-cta {
    border-radius: 14px;
    padding: 5px;
    font-size: .95rem;
    font-weight: 500;
    white-space: nowrap;
}

@media (min-width: 992px) {
    .ek-timeline {
        min-height: 439px;
    }
}

.ek-status-done {
    color: var(--ek-brand);
}

.ek-contact-avatar {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: #eef2f7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #667085;
}

.ek-contact-photo {
    width: 10rem;
    height: 10rem;
    border-radius: 14px;
    background: #f3f4f6;
    border: 1px solid var(--ek-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    font-weight: 600;
    font-size: 1.05rem;
    overflow: hidden;
}

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

.ek-contact-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.ek-contact-card .h3 {
    font-size: 2rem;
}

.ek-contact-card .fw-semibold {
    font-size: 2rem;
    line-height: 1.25;
}

.ek-contact-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 20px !important;
    line-height: 24px;
    letter-spacing: 0;
}

.ek-contact-name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 16px !important;
    line-height: 24px;
    letter-spacing: 0;
}

.ek-contact-position {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px !important;
    line-height: 24px;
    letter-spacing: 0;
}

.ek-contact-link {
    color: #111827;
    text-decoration: none;
    font-size: 1rem !important;
}

.ek-contact-link:hover {
    color: #111827;
    text-decoration: underline;
}

.ek-contact-icon {
    color: #6b7280;
}

.ek-contact-card .btn {
    border-radius: 14px;
    padding: .8rem 1rem;
    font-size: 1rem !important;
}

@media (max-width: 1199.98px) {
    .ek-timeline-row {
        height: var(--ek-row-h);
        min-height: var(--ek-row-h);
    }

    .ek-timeline-row span {
        font-size: .98rem;
    }

    .ek-timeline-row i {
        font-size: 1rem;
    }

    .ek-contact-card .h3 {
        font-size: 1.6rem;
    }

    .ek-contact-card .fw-semibold {
        font-size: 1.25rem;
    }

    .ek-contact-photo {
        width: 84px;
        height: 84px;
    }
}

@media (max-width: 767.98px) {
    .ek-timeline {
        --ek-rail-dot-h: 46px;
        --ek-rail-gap: 4px;
        --ek-row-h: calc(var(--ek-rail-dot-h) + var(--ek-rail-gap));
    }

    .ek-timeline-row {
        height: var(--ek-row-h);
        min-height: var(--ek-row-h);
        padding: 0 .85rem;
    }

    .ek-timeline-row span {
        font-size: .95rem;
    }

    .ek-timeline-rail {
        flex-basis: 46px;
        width: 46px;
        padding: 2px 0;
    }

    .ek-timeline-rail::before {
        left: 23px;
        top: 2px;
        bottom: 2px;
    }

    .ek-timeline-dot {
        width: var(--ek-rail-dot-h);
        height: var(--ek-rail-dot-h);
    }

    .ek-timeline-row.focus {
        margin: 0 .5rem;
        height: var(--ek-row-h);
        min-height: var(--ek-row-h);
        padding: 0 .85rem;
        flex-direction: row;
        align-items: center;
        gap: .65rem;
    }

    .ek-timeline-row.focus > .d-flex {
        width: 100%;
    }

    .ek-timeline-cta {
        width: 100%;
        text-align: center;
        justify-content: center;
        display: inline-flex;
        align-items: center;
    }

    .ek-contact-card {
        padding: 1rem !important;
    }

    .ek-contact-card .h3 {
        font-size: 1.35rem;
    }

    .ek-contact-card .fw-semibold {
        font-size: 1.2rem;
    }
}

.ek-stepper-tabs {
    --ek-step-gap: 3px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--ek-step-gap) !important;
    width: 100%;
    overflow: hidden;
    padding: .5rem;
    border: 1px solid var(--ek-border);
    border-radius: 14px;
    background: #f3f4f6;
}

.ek-stepper-tabs .ek-step-pill {
    position: relative;
    border: 1px solid var(--ek-border);
    border-right: 0;
    border-radius: 0;
    background: #f7f7f8;
    color: #777b82;
    font-size: .95rem;
    min-height: 44px;
    padding: 0 1.15rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    white-space: nowrap;
    width: 100%;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 14px 50%);
}

.ek-stepper-tabs .ek-step-pill.done {
    background: var(--ek-brand);
    border-color: var(--ek-brand);
    color: #fff;
}

.ek-stepper-tabs .ek-step-pill.active {
    background: #c8f0e5;
    border-color: #b5e8da;
    color: #1f3f35;
}

.ek-stepper-tabs .ek-step-pill:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
}

.ek-stepper-tabs .ek-step-pill:last-child {
    margin-right: 0;
    border-right: 1px solid var(--ek-border);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 14px 50%);
}

.ek-stepper-tabs .ek-step-pill.done i {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 8px;
    background: #e8f8f2;
    color: var(--ek-brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
}

@media (max-width: 767.98px) {
    .ek-stepper-tabs {
        display: flex;
        flex-wrap: nowrap;
        gap: var(--ek-step-gap) !important;
        overflow-x: auto;
        width: 100%;
    }

    .ek-stepper-tabs .ek-step-pill {
        font-size: .85rem;
        min-height: 40px;
        padding: 0 .8rem;
        width: auto;
    }
}

.ek-login-wrap {
    min-height: calc(100vh - 68px);
}

.ek-data-table td,
.ek-data-table th {
    vertical-align: middle;
}

.ek-photo-accordion .accordion-button {
    font-weight: 600;
}

.ek-photo-accordion .accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: inherit;
}

.ek-subcategory-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: .85rem;
    background: #fff;
}

.ek-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
    max-height: 360px;
    overflow-y: auto;
    padding-right: .2rem;
}

.ek-gallery-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: .7rem;
    overflow: hidden;
    background: #fff;
    transition: transform .15s ease;
}

.ek-gallery-item:hover {
    transform: translateY(-2px);
}

.ek-gallery-link {
    display: block;
    aspect-ratio: 1 / 1;
    background: #f8f9fa;
}

.ek-gallery-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ek-gallery-caption {
    padding: .45rem .55rem;
    font-size: .78rem;
}

.ek-viewer-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: .5rem;
}

.ek-viewer-image-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #111;
    border-radius: .5rem;
}

.ek-viewer-modal .modal-dialog {
    width: 1100px;
    max-width: calc(100vw - 2rem);
    margin: 1rem auto;
}

.ek-viewer-modal .modal-content {
    height: 760px;
    max-height: calc(100vh - 2rem);
}

.ek-viewer-modal .modal-body {
    display: flex;
    flex: 1 1 auto;
    height: calc(100% - 132px);
    max-height: calc(100% - 132px);
    overflow: hidden;
    min-height: 0;
}

.ek-viewer-modal .modal-body .row {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
}

.ek-viewer-modal .modal-body [class*='col-'] {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ek-viewer-main {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ek-viewer-sidebar {
    flex: 1 1 auto;
    height: 100%;
    max-height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scrollbar-gutter: stable;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: .5rem;
    background: #fff;
}

.ek-viewer-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .45rem;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    text-align: left;
}

.ek-viewer-item:hover {
    background: #f8f9fa;
}

.ek-viewer-item.active {
    background: #e9f2ff;
}

.ek-viewer-item:last-child {
    border-bottom: 0;
}

.ek-viewer-thumb {
    width: 56px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: .35rem;
    object-fit: cover;
    background: #111;
}

.ek-viewer-item-label {
    font-size: .85rem;
    line-height: 1.15rem;
}

@media (max-width: 1199.98px) {
    .ek-gallery-grid {
        max-height: 340px;
    }
}

@media (max-width: 991.98px) {
    .ek-viewer-modal .modal-dialog {
        width: calc(100vw - 1rem);
        max-width: calc(100vw - 1rem);
        margin: .5rem auto;
    }

    .ek-viewer-modal .modal-content {
        height: calc(100vh - 1rem);
        max-height: calc(100vh - 1rem);
    }

    .ek-viewer-modal .modal-body {
        height: calc(100% - 132px);
        max-height: calc(100% - 132px);
    }

    .ek-gallery-grid {
        max-height: 320px;
    }
}

@media (max-width: 575.98px) {
    .ek-gallery-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        max-height: 300px;
    }

    .ek-subcategory-card {
        padding: .8rem !important;
    }

    .ek-photo-accordion .accordion-button {
        padding: .8rem .9rem;
        font-size: .95rem;
    }

    .ek-viewer-modal .modal-dialog {
        width: calc(100vw - .75rem);
        margin: .5rem auto;
    }

    .ek-viewer-modal .modal-content {
        height: calc(100vh - 1rem);
        max-height: calc(100vh - 1rem);
    }

    .ek-viewer-modal .modal-body {
        height: calc(100% - 132px);
        max-height: calc(100% - 132px);
    }

    .ek-viewer-sidebar {
        max-height: 28vh;
    }
}

.ek-chatbot-shell {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 2500;
}

.ek-chatbot-launcher {
    border: 0;
    border-radius: 999px;
    background: var(--ek-brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem .95rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.18);
}

.ek-chatbot-launcher.is-hidden {
    display: none;
}

.ek-chatbot-panel {
    width: min(720px, calc(100vw - 2.2rem));
    height: min(70vh, 560px);
    background: #fff;
    border: 1px solid var(--ek-border);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
    display: none;
    overflow: hidden;
}

.ek-chatbot-panel.is-open {
    display: flex;
    flex-direction: column;
}

.ek-chatbot-header {
    background: var(--ek-brand);
    color: #fff;
    padding: .75rem .9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.ek-chatbot-title {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
}

.ek-chatbot-title strong {
    font-size: .96rem;
}

.ek-chatbot-title span {
    font-size: .76rem;
    opacity: .88;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ek-chatbot-header-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.ek-chatbot-nav {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.ek-chatbot-nav-btn {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.84);
    font-size: .8rem;
    font-weight: 600;
    line-height: 1;
    padding: .45rem .72rem;
}

.ek-chatbot-nav-btn.is-active {
    background: #fff;
    color: var(--ek-brand);
}

.ek-chatbot-close-btn {
    min-width: 2rem;
}

.ek-chatbot-body {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
}

.ek-chatbot-conversations {
    width: 0;
    border-right: 0;
    padding: 0;
    overflow: auto;
    background: #fbfbfd;
    opacity: 0;
    transition: width .2s ease, padding .2s ease, opacity .2s ease, border-color .2s ease;
}

.ek-chatbot-panel.show-history .ek-chatbot-conversations {
    width: 300px;
    border-right: 1px solid var(--ek-border);
    padding: .7rem;
    opacity: 1;
}

.ek-chatbot-conv-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .35rem;
    margin-bottom: .4rem;
}

.ek-chatbot-conv-btn {
    border: 1px solid #d8dbe2;
    padding: .5rem .65rem;
    font-size: .82rem;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ek-chatbot-conv-btn.active,
.ek-chatbot-conv-btn:hover {
    border-color: var(--ek-brand);
    background: #ecfdf3;
}

.ek-chatbot-conv-close {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ek-chatbot-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ek-chatbot-messages {
    flex: 1 1 auto;
    padding: .8rem;
    overflow: auto;
    background: #fff;
}

.ek-timeline-row.pending {
    color: #8a6a00;
}

.ek-timeline-row.pending > i,
.ek-timeline-row.pending span {
    color: #b08900;
}

.ek-timeline-row.focus.pending {
    border-color: #f2c94c;
    background: #fffdf5;
}

.ek-callback-shell .border.rounded-3 {
    border-color: #dbe3ef !important;
}

.ek-callback-shell .btn-group .btn {
    min-width: 140px;
}

.ek-callback-shell .table td,
.ek-callback-shell .table th {
    vertical-align: middle;
}

.ek-callback-shell .alert {
    margin-bottom: 1rem;
}

.ek-callback-shell .form-text {
    color: #64748b;
}

@media (max-width: 767.98px) {
    .ek-callback-shell .btn-group {
        width: 100%;
    }

    .ek-callback-shell .btn-group .btn {
        min-width: 0;
    }
}

.ek-chatbot-msg {
    display: flex;
    margin-bottom: .65rem;
}

.ek-chatbot-msg.is-user {
    justify-content: flex-end;
}

.ek-chatbot-bubble {
    max-width: min(84%, 520px);
    border-radius: 14px;
    padding: .58rem .72rem;
    white-space: pre-wrap;
    line-height: 1.35;
    font-size: .92rem;
}

.ek-chatbot-msg.is-assistant .ek-chatbot-bubble {
    background: #f2f4f7;
    color: #1f2937;
}

.ek-chatbot-msg.is-user .ek-chatbot-bubble {
    background: #dcfce7;
    color: #14532d;
}

.ek-chatbot-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .75rem;
}

.ek-chatbot-quick-btn {
    border: 1px solid #b7e4c7;
    background: #f3fff7;
    color: #166534;
    border-radius: 999px;
    padding: .45rem .72rem;
    font-size: .82rem;
    line-height: 1.2;
    text-align: left;
}

.ek-chatbot-quick-btn:hover,
.ek-chatbot-quick-btn:focus {
    border-color: #6ee7b7;
    background: #dcfce7;
    outline: none;
}

.ek-chatbot-form {
    border-top: 1px solid var(--ek-border);
    padding: .65rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .45rem;
    background: #fff;
}

@media (max-width: 767.98px) {
    .ek-chatbot-shell {
        right: .7rem;
        bottom: .7rem;
    }

    .ek-chatbot-panel {
        width: calc(100vw - 1.4rem);
        height: min(82vh, calc(100vh - 1.4rem));
    }

    .ek-chatbot-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .ek-chatbot-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .ek-chatbot-title span {
        white-space: normal;
    }

    .ek-chatbot-body {
        flex-direction: column;
    }

    .ek-chatbot-conversations {
        width: 100%;
        max-height: 0;
        border-right: 0;
        border-bottom: 0;
        padding: 0;
    }

    .ek-chatbot-panel.show-history .ek-chatbot-conversations {
        max-height: 152px;
        padding: .7rem;
        border-bottom: 1px solid var(--ek-border);
    }

    .ek-chatbot-bubble {
        max-width: 90%;
    }
}
