.site-header {
    position: relative;
    text-align: center;
    min-height: 96px;
}

.site-header__title {
    text-align: center;
    white-space: nowrap;
    padding-top: 10px;
}

.site-header__actions {
    position: absolute;
    top: 12px;
    right: 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.site-header hr {
    width: 100%;
    margin-top: 28px;
}

.site-hints-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 8px 14px;
    margin: 0;
    color: #172033;
    background: #fff;
    border: 1px solid #d9e2f1;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(23, 32, 51, 0.08);
}

.site-hints-toggle__label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    cursor: pointer;
    flex: 1;
    font-size: 14px;
}

.site-hints-toggle__label input {
    display: none;
}

.site-hints-toggle--loading {
    opacity: 0.72;
    pointer-events: none;
}

.site-hints-toggle__slider {
    position: relative;
    width: 42px;
    height: 22px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.site-hints-toggle__slider::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
}

.site-hints-toggle__label input:checked + .site-hints-toggle__slider {
    background: #2f80ed;
}

.site-hints-toggle__label input:checked + .site-hints-toggle__slider::after {
    transform: translateX(20px);
}

.site-hints-toggle__label input:disabled + .site-hints-toggle__slider {
    cursor: wait;
}

.site-hint-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(8, 16, 28, 0.54);
    backdrop-filter: blur(1px);
}

.site-hint-highlight {
    position: relative;
    z-index: 2002 !important;
    isolation: isolate;
    background-color: #fff;
    box-shadow: 0 0 0 2px #7ee787, 0 0 0 7px rgba(126, 231, 135, 0.18), 0 14px 32px rgba(16, 24, 40, 0.2);
    border-radius: 8px;
    cursor: pointer;
}

[data-hint='assistants-table'].site-hint-highlight {
    overflow: visible;
    background-color: #fff;
    outline: 2px solid #7ee787;
    outline-offset: 0;
    box-shadow: 0 0 0 7px rgba(126, 231, 135, 0.18), 0 14px 32px rgba(16, 24, 40, 0.18);
}

[data-hint='workspace-intro'].site-hint-highlight {
    background-color: #eef3f8;
    outline: 2px solid #7ee787;
    outline-offset: 8px;
    box-shadow: inset 0 0 0 1px rgba(126, 231, 135, 0.4), 0 0 0 7px rgba(126, 231, 135, 0.16), 0 18px 40px rgba(16, 24, 40, 0.2);
}

[data-hint='call-stats-intro'].site-hint-highlight,
[data-hint='dialogue-analysis-intro'].site-hint-highlight,
[data-hint='dialogue-analysis-form'].site-hint-highlight,
[data-hint='dialogue-analysis-queue'].site-hint-highlight,
[data-hint='max-accounts-intro'].site-hint-highlight {
    box-shadow: inset 0 0 0 2px #7ee787, 0 0 0 7px rgba(126, 231, 135, 0.18), 0 14px 32px rgba(16, 24, 40, 0.2);
}

[data-hint='outgoing-call-details'].site-hint-highlight {
    display: inline-block;
    padding: 1px 4px;
    margin: -1px -4px;
    line-height: 1.2;
    transition: none;
}

[data-hint='outgoing-call-details'].site-hint-highlight:hover {
    text-decoration: none;
}

.site-hint-popover {
    position: fixed;
    z-index: 2003;
    width: min(380px, calc(100vw - 32px));
    background: #fff;
    color: #172033;
    border-radius: 8px;
    border: 1px solid rgba(16, 24, 40, 0.08);
    box-shadow: 0 20px 48px rgba(16, 24, 40, 0.24);
    padding: 20px;
    overflow: hidden;
    animation: site-hint-popover-in 140ms ease-out;
}

.site-hint-popover::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #2ea043, #7ee787);
}

.site-hint-popover--hidden {
    visibility: hidden;
}

.site-hint-popover__title {
    margin: 0 0 9px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
}

.site-hint-popover__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #344054;
}

.site-hint-popover__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
}

.site-hint-popover__counter {
    font-size: 12px;
    font-weight: 600;
    color: #667085;
    white-space: nowrap;
}

.site-hint-popover__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.site-hint-popover__button {
    border: 1px solid transparent;
    border-radius: 6px;
    min-height: 36px;
    padding: 8px 13px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.site-hint-popover__button--secondary {
    background: #f8fafc;
    border-color: #d9e2f1;
    color: #344054;
}

.site-hint-popover__button--secondary:hover {
    background: #eef2f7;
}

.site-hint-popover__button--primary {
    background: #284d81;
    color: #fff;
}

.site-hint-popover__button--primary:hover {
    background: #1f3f6d;
    transform: translateY(-1px);
}

.site-hint-popover__button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.28);
}

.site-hint-popover__button:active {
    transform: translateY(0);
}

.site-hint-popover__button:disabled {
    cursor: default;
    opacity: 0.45;
    pointer-events: none;
}

@keyframes site-hint-popover-in {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 576px) {
    .site-header {
        min-height: 138px;
    }

    .site-header__spacer {
        display: none;
    }

    .site-header__actions {
        position: static;
        justify-content: center;
        width: 100%;
        margin-top: 14px;
    }

    .site-hints-toggle {
        max-width: 100%;
    }

    .site-hint-popover {
        left: 16px !important;
        right: 16px !important;
        top: auto !important;
        bottom: 16px;
    }
}
