/* AGENT NOT AVAILABLE (Steven 2026-11-11, fix 24): a card or row whose agent
   is not reachable now is greyed and wears one plain overlay, "Agent not
   available"; its main button reads the same and does nothing. Marked by
   static/js/shell/agent-off.js (components/_agent_off.html). Tokens only. */
.is-agent-off { position: relative; }
.is-agent-off > :not(.agent-off) { filter: grayscale(1); opacity: 0.45; }
.is-agent-off .is-agent-off__main { cursor: not-allowed; pointer-events: none; }
.agent-off {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2);
    border-radius: inherit;
    pointer-events: none;
    text-align: center;
}
.agent-off__words {
    display: inline-flex;
    align-items: center;
    min-height: var(--size-8);
    padding: 0 var(--space-4);
    border-radius: var(--radius-full);
    background: var(--color-dark-900);
    color: var(--text-inverse);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    line-height: 1.2;
    box-shadow: var(--shadow-md);
}
.agent-off__again {
    pointer-events: auto;
    min-height: var(--size-10);
    padding: 0 var(--space-5);
    border: 0;
    border-radius: var(--radius-full);
    background: var(--accent-primary);
    color: var(--color-black);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    cursor: pointer;
}
.agent-off__again:disabled { opacity: 0.7; cursor: default; }
.agent-off__again:focus-visible { outline: 2px solid var(--color-yellow-400); outline-offset: 2px; }
.agent-off__say { color: var(--color-dark-900); font-size: var(--text-xs); font-weight: var(--font-semibold); }
.agent-off__say:empty { display: none; }
/* a row lays the words and the button side by side */
.pa-item.is-agent-off > .agent-off,
.rt-item.is-agent-off > .agent-off { flex-direction: row; justify-content: flex-end; padding-right: var(--space-3); }
/* a pack builder row keeps its remove button free beside the overlay */
.pn-row.is-agent-off > .agent-off { padding-right: calc(var(--size-8) + var(--space-4)); }
/* a deck card keeps its turn: its faces grey, never the turning layer
   (a filter there would flatten the 3D turn) */
.tb-card.is-agent-off > .tb-card__inner { filter: none; opacity: 1; }
/* A DECK CARD STAYS READABLE (Steven 2026-11-12, dr-moose's "A storybook
   about you" under a dark film with no words: "are we still in the middle
   of work on this or is it not correct? I cant see the cards."): no film
   over the card; its picture goes grey, its words keep their full
   contrast; "Agent not available" is a chip at the top of the picture,
   under the round button row, above everything on the card (the column's
   own layer); the main button alone looks disabled, the reason in one line
   beside it (agent-off.js .agent-off__why). */
.tb-card.is-agent-off .tb-card__face { filter: none; opacity: 1; }
.tb-card.is-agent-off .tb-card__face .tb-card__img { filter: grayscale(1); }
.tb-card.is-agent-off > .agent-off {
    inset: auto 0 auto 0;
    top: calc(var(--space-4) + var(--size-10) + var(--space-3));
    z-index: var(--z-dropdown, 1000);
    padding: 0 var(--space-4);
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}
.tb-card.is-agent-off .is-agent-off__main { filter: grayscale(1); opacity: 0.5; }
.agent-off__why {
    margin: 0 0 var(--space-1);
    color: var(--text-secondary);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    line-height: 1.3;
    text-align: center;
}
