.people-agent-section > .eyebrow { color: var(--accent); }
.people-agent-section > .section-heading { max-width: 20ch; }
.handoff-intro { max-width: 59ch; margin: 14px 0 26px; color: var(--body-text); font-size: 16px; }

.agent-handoff {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: clamp(14px, 2vw, 24px);
}

.agent-handoff--compact { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.handoff-column { min-width: 0; }
.handoff-column > h3 { margin: 0 0 9px; font-size: 14px; font-weight: 650; }
.agent-handoff:not(.agent-handoff--compact) .handoff-column > h3 { margin-bottom: 3px; font-size: 17px; }
.handoff-path { margin: 0 0 11px; color: var(--body-text); font-size: 13px; }
.handoff-website .mobile-site-device { border-radius: 15px; box-shadow: none; }
.handoff-website iframe { height: 420px; }
.feature-hero-visual .handoff-column > h3 { color: inherit; }

.handoff-window {
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 15px;
    overflow: hidden;
}

.handoff-window-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

.handoff-window-bar > img, .handoff-window-bar > .icon, .handoff-business-source > img {
    flex: none;
    display: block;
    object-fit: contain;
    object-position: center;
}

.handoff-window-bar > span { margin-inline-start: auto; color: var(--body-text); font-size: 12px; }
.handoff-chat { display: grid; gap: 11px; padding: clamp(12px, 2vw, 20px); font-size: 14px; line-height: 1.55; }
.handoff-chat p { margin: 0; }
.handoff-prompt {
    justify-self: end;
    max-width: 88%;
    padding: 8px 12px;
    border-radius: 13px 13px 5px 13px;
    background: color-mix(in srgb, var(--accent) 9%, var(--paper));
}

.handoff-business-source { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-block: 1px solid var(--line); }
.handoff-business-source small { display: block; color: var(--body-text); font-size: 11px; }
.handoff-business-source > span, .handoff-status {
    padding: 3px 8px;
    border-radius: 15px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 9%, var(--paper));
    font-size: 11px;
    font-weight: 650;
}

.handoff-business-source > span { margin-inline-start: auto; white-space: nowrap; }
.handoff-question { font-weight: 650; }
.handoff-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.handoff-actions > button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 36px;
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--paper);
    font-size: 12px;
    font-weight: 650;
}
.handoff-actions > button:hover, .handoff-actions > button[aria-pressed="true"] {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 8%, var(--paper));
}
.handoff-actions .icon { flex: none; }
.handoff-reply:not([hidden]) {
    display: grid;
    gap: 8px;
    justify-items: start;
    padding: 10px 12px;
    background: color-mix(in srgb, var(--accent) 8%, var(--paper));
    border-inline-start: 2px solid var(--accent);
}
.handoff-reply p { margin-top: 2px; color: var(--body-text); font-size: 13px; }
.handoff-reply > .button { padding: 7px 12px; font-size: 12px; }
.handoff-reply > .text-link { font-size: 13px; }
.handoff-record { display: grid; justify-items: start; gap: 8px; padding: 15px; }
.handoff-record > p { margin: 0; font-size: 14px; font-weight: 650; }
.handoff-record > dl { width: 100%; margin: 0; }
.handoff-record dl > div { padding: 7px 0; border-top: 1px solid var(--line); }
.handoff-record dt { font-size: 12px; font-weight: 650; }
.handoff-record dd { margin: 2px 0 0; color: var(--body-text); font-size: 13px; }
.handoff-column > .handoff-footer { display: inline-flex; margin-top: 14px; font-weight: 650; }

@media (max-width: 639px) {
    .agent-handoff { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 640px) {
    .agent-handoff:not(.agent-handoff--compact) {
        align-items: stretch;
        row-gap: 0;
    }
    .agent-handoff:not(.agent-handoff--compact) > .handoff-column {
        display: grid;
        grid-row: span 4;
        grid-template-rows: subgrid;
    }
    .agent-handoff:not(.agent-handoff--compact) .handoff-website {
        display: grid;
    }
    .handoff-website .mobile-site-device {
        display: grid;
        grid-template-rows: auto minmax(420px, 1fr);
    }
    .handoff-website iframe { height: 100%; }
    .agent-handoff:not(.agent-handoff--compact) .handoff-footer { justify-self: start; }
}

@media (pointer: coarse) {
    .handoff-actions > button, .handoff-reply > button { min-height: 44px; }
}
