/* Approved Targets and feed card direction. All colors, radii and elevation
   come from the Book of Houses tokens and interface standards. */
body .wants-page .wants-list > .target-anchor--approved {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: default;
    overflow: visible;
}
.target-anchor--approved .target-anchor__paper {
    position: relative;
    z-index: 1;
    display: grid;
    gap: var(--space-3);
    min-width: 0;
    padding: var(--space-5);
    border: 1px solid var(--border-default);
    border-radius: var(--interface-radius);
    background: var(--surface-primary);
    box-shadow: var(--shadow-drop);
}
.target-anchor--approved .target-anchor__title {
    max-width: calc(100% - var(--size-8));
    font-family: var(--interface-font);
    font-size: var(--text-2xl);
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -.035em;
}
.target-anchor--approved .target-anchor__want {
    margin: 0;
    color: var(--text-secondary);
    font-family: var(--interface-font);
    font-size: var(--interface-body-size);
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.target-anchor--approved .target-anchor__probability {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-1);
}
.target-anchor--approved .target-anchor__probability-value {
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--interface-font);
    font-size: var(--text-4xl);
    font-weight: 700;
    line-height: 1.1;
}
body .wants-page .wants-list .target-anchor--approved.probability-card .target-anchor__probability-value:not(.target-anchor__probability-value--success) {
    font-size: var(--text-4xl);
    line-height: 1.1;
}
body .wants-page .wants-list .target-anchor--approved.probability-card .target-anchor__probability-value--plain {
    font-size: var(--text-lg);
    letter-spacing: 0;
    white-space: normal;
}
.target-anchor--approved .target-anchor__probability-value--success {
    display: inline-flex;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    background: var(--highlight-yellow);
    font-size: var(--text-base);
}
.target-anchor--approved .target-anchor__probability-value--canceled,
.target-anchor--approved.target-anchor--muted .target-anchor__probability-value {
    color: var(--text-secondary);
    font-size: var(--text-lg);
}
.target-anchor--approved .probability-card__context {
    display: grid;
    gap: var(--space-1);
}
.target-anchor--approved .target-trajectory__move {
    width: fit-content;
    margin: 0;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
}
.target-anchor--approved .target-anchor__probability-label {
    color: var(--text-secondary);
    font-family: var(--interface-font);
    font-size: var(--text-xs);
}
.target-anchor--approved .want-card-menu { z-index: 3; top: var(--space-3); right: var(--space-3); }
.target-anchor--approved .want-card-menu__trigger { width: var(--interface-control-height, 36px); height: var(--interface-control-height, 36px); color: var(--text-primary); }
.target-anchor--approved .want-card-menu__dropdown { box-shadow: var(--shadow-drop); }
.target-anchor--approved .want-proposal-arrival,
.target-anchor--approved .target-anchor__footer,
.target-anchor--approved .want-ending,
.target-anchor--approved > .timed-delivery-controls {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: var(--space-2) var(--space-3);
    min-width: 0;
    margin: calc(-1 * var(--interface-radius)) var(--space-1) 0;
    padding: calc(var(--interface-radius) + var(--space-3)) var(--space-4) var(--space-4);
    border: 0;
    border-radius: 0 0 var(--interface-radius) var(--interface-radius);
    background: var(--surface-tertiary);
    color: var(--text-primary);
}
.target-anchor--approved .want-proposal-arrival--attention,
.target-anchor--approved.target-anchor--ready .target-anchor__footer { background: var(--accent-neon); }
.target-anchor--approved.target-anchor--agent-working .want-proposal-arrival,
.target-anchor--approved.target-anchor--delivering > .timed-delivery-controls {
    background: var(--accent-tertiary);
    color: var(--text-inverse);
}
.target-anchor--approved.target-anchor--paused > .timed-delivery-controls,
.target-anchor--approved.target-anchor--muted .want-proposal-arrival,
.target-anchor--approved.target-anchor--muted .want-ending { background: var(--surface-tertiary); }
.target-anchor--approved.target-anchor--muted { opacity: 1; }
.target-anchor--approved.target-anchor--muted .target-anchor__paper { background: var(--surface-secondary); }
.target-anchor--approved .want-proposal-arrival__icon {
    width: var(--size-8);
    height: var(--size-8);
    border-radius: var(--radius-full);
    background: var(--surface-primary);
    color: var(--text-primary);
}
.target-anchor--approved.target-anchor--agent-working .want-proposal-arrival__icon { background: var(--highlight-yellow); color: var(--accent-tertiary); }
.target-anchor--approved .want-proposal-arrival__headline,
.target-anchor--approved .want-proposal-arrival__sub,
.target-anchor--approved .want-proposal-arrival__kicker {
    color: inherit;
    font-family: var(--interface-font);
    opacity: 1;
}
.target-anchor--approved .want-proposal-arrival__headline { font-size: var(--interface-body-size); font-weight: 650; }
.target-anchor--approved .want-proposal-arrival__sub { font-size: var(--interface-link-size); line-height: 1.35; }
.target-anchor--approved .want-proposal-arrival__cta,
.target-anchor--approved .target-anchor__action,
.target-anchor--approved .want-ending__cta {
    box-sizing: border-box;
    grid-column: 1 / -1;
    width: 100%;
    min-height: var(--interface-control-height);
    padding: var(--interface-control-padding);
    border: 1px solid currentColor;
    border-radius: var(--radius-full);
    background: transparent;
    color: inherit;
    font-family: var(--interface-font);
    font-size: var(--interface-link-size);
    font-weight: 650;
    text-align: center;
    text-decoration: none;
}
.target-anchor--approved .target-anchor__footer { grid-template-columns: minmax(0, 1fr); }
.target-anchor--approved .target-anchor__next-label { padding: 0; background: none; color: inherit; font-family: var(--interface-font); }
.target-anchor--approved .target-anchor__facts { color: inherit; opacity: .78; }
.target-anchor--approved .target-anchor__actions { width: 100%; }
.target-anchor--approved .target-anchor__actions > * { flex: 1; }
.target-anchor--approved .target-anchor__repost-form .target-anchor__action { width: 100%; }
.target-anchor--approved .want-ending { grid-template-columns: minmax(0, 1fr); }
.target-anchor--approved .want-ending__actions { z-index: 2; }
.target-anchor--approved .want-delivered { margin: 0 var(--space-1); border-radius: 0 0 var(--interface-radius) var(--interface-radius); }
.target-anchor--approved .want-delivered__identity { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-2); }
.target-anchor--approved .want-delivered__avatar,
.target-anchor--approved .want-delivered__avatar .agent-face-image { display: block; width: var(--size-8); height: var(--size-8); border-radius: var(--radius-full); }
.target-anchor--approved .target-anchor__delivery-agent { min-height: var(--size-8); }
.target-anchor--approved > .timed-delivery-controls { grid-template-columns: minmax(0, 1fr) auto; }
.target-anchor--approved > .timed-delivery-controls .timed-delivery-controls__timing,
.target-anchor--approved > .timed-delivery-controls .timed-delivery-controls__state { color: inherit; }
.target-anchor--approved > .timed-delivery-controls .timed-delivery-controls__actions {
    z-index: 2;
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    gap: var(--space-2);
}
.target-anchor--approved .timed-delivery-controls__actions form:first-child { min-width: 0; }
.target-anchor--approved .timed-delivery-controls__actions form:first-child .timed-delivery-controls__button,
.target-anchor--approved .timed-delivery-controls__repeat {
    display: inline-flex;
    width: 100%;
    min-height: var(--interface-control-height);
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--interface-control-padding);
    border: 1px solid currentColor;
    border-radius: var(--radius-full);
    background: transparent;
    color: inherit;
    font-family: var(--interface-font);
    font-size: var(--interface-link-size);
    font-weight: 650;
}
.target-anchor--approved .timed-delivery-controls__repeat { grid-column: 1 / -1; }
.target-anchor--approved .timed-delivery-controls--card > form { grid-column: 1 / -1; }
.target-anchor--approved .timed-delivery-controls__actions .timed-delivery-controls__button--danger { border-color: var(--border-default); }

/* The feed keeps its Book of Houses shell and the small Toll Bench marker. */
.frq-group .frq-ghead { box-shadow: var(--shadow-drop); }
.frq-group .frq-ghead__want {
    margin: 0;
    color: var(--text-secondary);
    font-family: var(--interface-font);
    font-size: var(--interface-body-size);
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.frq-group .frq-ghead + .tb-feed-action {
    width: calc(100% - var(--space-2));
    margin-top: calc(-1 * var(--interface-radius));
    margin-inline: var(--space-1);
    border-color: var(--border-default);
    border-radius: 0 0 var(--interface-radius) var(--interface-radius);
    background: var(--surface-primary);
}
.frq-group .tb-feed-action__compact {
    box-sizing: border-box;
    width: 100%;
    min-height: var(--size-16);
    gap: var(--space-3);
    padding: calc(var(--interface-radius) + var(--space-3)) var(--space-4) var(--space-3);
    border: 0;
    border-radius: 0 0 var(--interface-radius) var(--interface-radius);
    background: var(--surface-primary);
    color: var(--text-primary);
    font-family: var(--interface-font);
}
.frq-group .tb-feed-action__step {
    display: inline-grid;
    width: var(--size-8);
    height: var(--size-8);
    flex: 0 0 var(--size-8);
    place-items: center;
    border-radius: var(--radius-full);
    background: var(--accent-neon);
    color: var(--text-primary);
    font-size: var(--interface-body-size);
    font-weight: 700;
}
.frq-group .tb-feed-action__prompt {
    display: grid;
    gap: var(--space-1);
    min-width: 0;
    line-height: 1.25;
}
.frq-group .tb-feed-action__prompt small {
    color: var(--text-secondary);
    font-size: var(--text-xs);
    font-weight: 650;
}
.frq-group .tb-feed-action__prompt [data-feed-next-title] { overflow-wrap: anywhere; }
.frq-group .tb-feed-action__details[open] > .tb-feed-action__compact {
    border-radius: 0;
    border-bottom: 1px solid var(--border-default);
}
.frq-group .tb-feed-action__compact:focus-visible { outline: 3px solid var(--interactive-focus-ring); outline-offset: 2px; }
.feed-primary-want--wants-card:has(.tb-feed-plan) .target-trajectory { box-shadow: var(--shadow-drop); }
.feed-primary-want--wants-card:has(.tb-feed-plan) .tb-feed-plan { margin-top: calc(-1 * var(--interface-radius)); padding-top: var(--interface-radius); }
.feed-primary-want--wants-card .target-trajectory__want { margin: 0; color: var(--text-secondary); font-family: var(--interface-font); font-size: var(--interface-body-size); line-height: 1.5; overflow-wrap: anywhere; }
.feed-primary-want--wants-card:has(.tb-feed-plan) .tb-feed-plan__live.tb-act--now { background: var(--surface-primary); color: var(--text-primary); }
.feed-primary-want--wants-card .tb-feed-plan__live .tb-num--now {
    border-radius: var(--radius-full);
    background: var(--accent-neon);
    color: var(--text-primary);
}
@media (max-width: 520px) {
    .target-anchor--approved .target-anchor__paper { padding: var(--space-4); }
    .target-anchor--approved .target-anchor__title { font-size: var(--text-xl); }
    .target-anchor--approved .target-anchor__probability-value { font-size: var(--text-4xl); }
    .target-anchor--approved .want-proposal-arrival,
    .target-anchor--approved .target-anchor__footer,
    .target-anchor--approved .want-ending,
    .target-anchor--approved > .timed-delivery-controls { padding-inline: var(--space-3); }
}

/* State markers mirror the approved gallery, using the live turn number. */
.target-anchor--approved .want-proposal-arrival__icon,
.target-anchor--approved .target-state-marker {
    display: inline-grid;
    place-items: center;
    flex: 0 0 var(--size-8);
    width: var(--size-8);
    height: var(--size-8);
    border-radius: var(--radius-full);
    background: var(--surface-primary);
    color: var(--text-primary);
    font-family: var(--interface-font);
    font-size: var(--text-lg);
    font-weight: 700;
    line-height: 1;
}
.target-anchor--approved .want-proposal-arrival__icon svg { width: var(--size-6); height: var(--size-6); }
.target-anchor--approved.target-anchor--agent-working .want-proposal-arrival__icon,
.target-anchor--approved.target-anchor--delivering .target-state-marker { background: var(--highlight-yellow); color: var(--accent-tertiary); }
.target-anchor--approved > .timed-delivery-controls--card { grid-template-columns: auto minmax(0, 1fr); }
.target-anchor--approved .want-ending:has(> .target-state-marker) { grid-template-columns: auto minmax(0, 1fr); }
.target-anchor--approved .want-ending > .target-state-marker { grid-row: 1 / 4; }
.target-anchor--approved .want-ending > :not(.target-state-marker) { grid-column: 2; }
.target-anchor--approved .want-ending > .want-ending__actions { grid-column: 1 / -1; }
