.qp-pulse {
    position: fixed;
    z-index: 1028;
    top: 78px;
    right: auto;
    left: 50%;
    width: 30vw;
    height: 128px;
    min-width: 0;
    border: 1px solid #d8e3f0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(35, 63, 96, 0.09);
    color: #20344d;
    overflow: hidden;
    font-family: Candara, "Segoe UI", sans-serif;
    backdrop-filter: blur(12px);
    transform: translateX(-50%);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.qp-pulse.is-closed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -14px);
}

.qp-pulse-header {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 27px;
    padding: 2px 5px 2px 9px;
    border-bottom: 1px solid #e1e9f2;
    background: #f8fbff;
}

.qp-pulse-mark {
    display: none;
}

.qp-pulse-heading {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.1;
}

.qp-pulse-heading strong {
    color: #18324f;
    font-size: 0.78rem;
    font-weight: 800;
}

.qp-pulse-heading small {
    display: none;
}

.qp-pulse-live {
    margin-left: auto;
    border-radius: 999px;
    padding: 2px 6px;
    background: #edf8f1;
    color: #23764a;
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.qp-pulse-live i {
    margin-right: 4px;
    color: #20a464;
    font-size: 0.55rem;
}

.qp-pulse-toggle {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 5px;
    background: #fff;
    color: #4b75ad;
}

.qp-pulse-toggle:hover {
    background: #f2f6fb;
}

.qp-pulse-body {
    height: calc(100% - 28px);
    padding: 6px 8px 8px;
    overflow: auto;
}

.qp-pulse-subtitle {
    display: none;
    margin: 0 0 6px;
    color: #61748b;
    font-size: 0.78rem;
}

.qp-pulse-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(76px, 1fr));
    gap: 5px;
}

.qp-pulse-metric {
    min-width: 0;
    border: 1px solid #dce6f1;
    border-left: 3px solid #4b75ad;
    border-radius: 7px;
    padding: 5px 6px;
    background: #f9fbfe;
}

.qp-pulse-metric strong,
.qp-pulse-metric span {
    display: block;
}

.qp-pulse-metric strong {
    color: #274f7e;
    font-size: 0.96rem;
    line-height: 1;
}

.qp-pulse-metric span {
    margin-top: 4px;
    color: #61748b;
    font-size: 0.69rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qp-pulse-lower {
    display: none;
    grid-template-columns: minmax(0, 1fr) 116px;
    gap: 8px;
    margin-top: 8px;
}

.qp-pulse-attention,
.qp-pulse-notifications,
.qp-pulse-empty,
.qp-pulse-error,
.qp-pulse-loading {
    border: 1px solid #e0e8f1;
    border-radius: 7px;
    background: #fff;
    padding: 8px 9px;
}

.qp-pulse-section-title {
    color: #4b75ad;
    font-size: 0.69rem;
    font-weight: 800;
    text-transform: uppercase;
}

.qp-pulse-attention ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 10px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.qp-pulse-attention li {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-size: 0.68rem;
}

.qp-pulse-attention li span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qp-pulse-attention li em {
    color: #b5602c;
    font-size: 0.64rem;
    font-style: normal;
}

.qp-pulse-attention.is-clear p,
.qp-pulse-empty span {
    margin: 5px 0 0;
    color: #668097;
    font-size: 0.72rem;
}

.qp-pulse-notifications {
    display: grid;
    align-content: start;
}

.qp-pulse-notifications strong {
    margin-top: 4px;
    color: #274f7e;
    font-size: 1.2rem;
}

.qp-pulse-notifications small {
    color: #7b8ca0;
    font-size: 0.63rem;
}

.qp-pulse-resize-handle {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 42px;
    bottom: auto;
    left: 0;
    height: 5px;
    cursor: row-resize;
    touch-action: none;
}

.qp-pulse-resize-handle::after {
    position: absolute;
    top: 1px;
    left: 50%;
    width: 54px;
    height: 2px;
    border-radius: 999px;
    background: #b9cbe0;
    content: "";
    transform: translateX(-50%);
}

.qp-pulse-width-handle {
    position: absolute;
    z-index: 3;
    top: 5px;
    bottom: 0;
    left: 0;
    width: 8px;
    cursor: col-resize;
    touch-action: none;
}

.qp-pulse-width-handle::after {
    position: absolute;
    top: 50%;
    left: 2px;
    width: 2px;
    height: 34px;
    border-radius: 999px;
    background: #b9cbe0;
    content: "";
    transform: translateY(-50%);
}

.qp-pulse-width-handle:hover::after,
.qp-pulse-resize-handle:hover::after {
    background: #4b75ad;
}

.qp-pulse-launcher {
    position: fixed;
    z-index: 1045;
    top: calc(52% - 78px);
    right: var(--qp-launcher-offset, 18px);
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 68px;
    gap: 5px;
    border: 1px solid #3d679c;
    border-radius: 7px;
    padding: 7px 0;
    background: #4b75ad;
    box-shadow: 0 10px 26px rgba(39, 79, 126, 0.24);
    color: #fff;
    font-family: Candara, "Segoe UI", sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
}

.qp-pulse-launcher.is-visible {
    display: flex;
    flex-direction: column;
}

.qp-pulse-launcher span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.66rem;
    letter-spacing: 0.04em;
}

@media (max-width: 1199.98px) {
    .qp-pulse {
        left: 12px;
        right: 12px;
        width: auto;
        transform: none;
    }

    .qp-pulse-launcher {
        width: 30px;
    }

    .qp-pulse-width-handle {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .qp-pulse-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qp-pulse-lower,
    .qp-pulse-attention ul {
        grid-template-columns: 1fr;
    }
}
