/*
 * host-ownership-banner.css — the connected tab's "crews run in another tab"
 * banner (js/shell/host-ownership-banner.js, FB-560).
 *
 * Bottom-centre, above the status bar: the toasts own bottom-right and the top
 * bar owns the top edge. It is a standing statement with two buttons, not a
 * toast, so it does not time out and does not animate in.
 *
 * Tokens only (shell.css), so both themes and every skin colour it.
 */

.lani-host-banner {
    position: fixed;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    z-index: 99998;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: min(720px, calc(100vw - 32px));
    padding: 10px 14px;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-left-width: 3px;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    font-size: var(--fs-ui);
    line-height: var(--lh-snug);
}

/* The left edge says which of the two it is: a standing fact, or a change. */
.lani-host-banner--connected { border-left-color: var(--accent); }
.lani-host-banner--moved { border-left-color: var(--accent-magenta); }

/* OF-11 C. A host that does not answer, or refused, is a warning; a take-over under way is the accent. */
.lani-host-banner--silent,
.lani-host-banner--not-answering,
.lani-host-banner--refused { border-left-color: var(--status-warning); }
.lani-host-banner--asking,
.lani-host-banner--taking-over { border-left-color: var(--accent); }

.lani-host-banner__text {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.lani-host-banner__text strong { font-weight: 600; }
.lani-host-banner__text span { color: var(--text-muted); font-size: var(--fs-meta); }

.lani-host-banner__action,
.lani-host-banner__dismiss {
    flex-shrink: 0;
    padding: 4px 12px;
    color: inherit;
    background: none;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: var(--fs-ui);
    font-weight: 500;
}

.lani-host-banner__action { border-color: var(--accent); }
.lani-host-banner__action:hover,
.lani-host-banner__dismiss:hover { background: var(--bg-hover); }
.lani-host-banner__action:focus-visible,
.lani-host-banner__dismiss:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
