/* ============================================================================
   Future Island Intelligence Suite — v1.5.0-rc.9
   Conversational Signal Room — "Live Intelligence Chat"
   ----------------------------------------------------------------------------
   A living, conversational interface. The user talks to Future Island and it
   replies like a real person — narrating the scan live, explaining each post,
   showing examples inline. Minimal dashboard feel. Loaded LAST.
   Brandbook V3: paper/black dominate, blue = route/action, lime = live,
   red-orange = warning. "Una isla, no otro dashboard."
   ============================================================================ */

.ves-wrap.fi-shell {
    --fc-ink: #0F0F0F;
    --fc-paper: #FFFDF7;
    --fc-paper-2: #F4F0E6;
    --fc-bg: #ECE8DF;
    --fc-blue: #2F64D9;
    --fc-blue-soft: #E9EEFF;
    --fc-sand: #DCD4BD;
    --fc-lime: #D7FF32;
    --fc-orange: #F55A32;
    --fc-line: rgba(16, 16, 16, .10);
    --fc-line-soft: rgba(16, 16, 16, .06);
    --fc-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* When the conversational room is active, the legacy form + results card on the
   social page are hidden — the chat IS the interface. */
.ves-wrap.fi-shell .ves-page.fiis-convo-active .ves-command-center-card,
.ves-wrap.fi-shell .ves-page.fiis-convo-active > .ves-page-inner > .fiis-results-region,
.ves-wrap.fi-shell .ves-page.fiis-convo-active .fi-signal-search.ves-scraper-form { display: none !important; }

/* ---------------------------------------------------------------------------
   Shell
   --------------------------------------------------------------------------- */
.ves-wrap.fi-shell .fiis-convo {
    display: flex;
    flex-direction: column;
    height: min(78vh, 860px);
    background: var(--fc-paper);
    border: 1px solid var(--fc-line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(16, 16, 16, .07);
}

.ves-wrap.fi-shell .fiis-convo-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--fc-line);
    background: var(--fc-paper);
}
.ves-wrap.fi-shell .fiis-convo-mark {
    width: 38px; height: 38px; border-radius: 12px;
    background: var(--fc-ink); color: var(--fc-paper);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; letter-spacing: .02em; flex: 0 0 auto;
}
.ves-wrap.fi-shell .fiis-convo-id { min-width: 0; }
.ves-wrap.fi-shell .fiis-convo-id strong { display: block; font-size: 14px; font-weight: 800; color: var(--fc-ink); }
.ves-wrap.fi-shell .fiis-convo-id .fiis-convo-sub {
    display: flex; align-items: center; gap: 7px;
    font-family: var(--fc-mono); font-size: 10.5px; text-transform: uppercase;
    letter-spacing: .08em; color: #6f6a60;
}
.ves-wrap.fi-shell .fiis-live-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--fc-lime);
    box-shadow: 0 0 0 0 rgba(215, 255, 50, .7);
    animation: fiisPulse 1.8s infinite;
}
@keyframes fiisPulse {
    0% { box-shadow: 0 0 0 0 rgba(120, 190, 30, .55); }
    70% { box-shadow: 0 0 0 7px rgba(120, 190, 30, 0); }
    100% { box-shadow: 0 0 0 0 rgba(120, 190, 30, 0); }
}
.ves-wrap.fi-shell .fiis-convo-head-actions { margin-left: auto; display: flex; gap: 8px; }
.ves-wrap.fi-shell .fiis-convo-ghost {
    border: 1px solid var(--fc-line); background: transparent; color: #6f6a60;
    border-radius: 999px; padding: 5px 11px; font-size: 12px; cursor: pointer;
}
.ves-wrap.fi-shell .fiis-convo-ghost:hover { color: var(--fc-ink); border-color: rgba(16,16,16,.25); }

/* ---------------------------------------------------------------------------
   Thread + messages
   --------------------------------------------------------------------------- */
.ves-wrap.fi-shell .fiis-convo-thread {
    flex: 1; overflow-y: auto; padding: 20px 18px 8px;
    display: flex; flex-direction: column; gap: 16px;
    background:
        radial-gradient(1100px 320px at 12% -8%, rgba(47, 100, 217, .05), transparent 60%),
        var(--fc-paper);
    scroll-behavior: smooth;
}
.ves-wrap.fi-shell .fiis-msg { display: flex; gap: 11px; max-width: 92%; animation: fiisRise .32s cubic-bezier(.2,.7,.2,1) both; }
@keyframes fiisRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ves-wrap.fi-shell .fiis-msg.is-user { margin-left: auto; flex-direction: row-reverse; }
.ves-wrap.fi-shell .fiis-msg-avatar {
    width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800;
}
.ves-wrap.fi-shell .fiis-msg.is-assistant .fiis-msg-avatar { background: var(--fc-ink); color: var(--fc-paper); }
.ves-wrap.fi-shell .fiis-msg.is-user .fiis-msg-avatar { background: var(--fc-blue); color: #fff; }
.ves-wrap.fi-shell .fiis-msg-bubble {
    background: var(--fc-paper); border: 1px solid var(--fc-line);
    border-radius: 16px; padding: 11px 14px; font-size: 14.5px; line-height: 1.55;
    color: #1b1b1b; min-width: 0;
}
.ves-wrap.fi-shell .fiis-msg.is-assistant .fiis-msg-bubble { border-top-left-radius: 6px; }
.ves-wrap.fi-shell .fiis-msg.is-user .fiis-msg-bubble {
    background: var(--fc-ink); color: var(--fc-paper); border-color: var(--fc-ink);
    border-top-right-radius: 6px;
}
.ves-wrap.fi-shell .fiis-msg-bubble strong { font-weight: 800; }
.ves-wrap.fi-shell .fiis-msg-bubble .fiis-em { color: var(--fc-blue); font-weight: 700; }
.ves-wrap.fi-shell .fiis-msg.is-user .fiis-msg-bubble .fiis-em { color: var(--fc-lime); }
.ves-wrap.fi-shell .fiis-msg-meta { font-family: var(--fc-mono); font-size: 10px; color: #9a948a; margin-top: 6px; letter-spacing: .04em; }

/* Typing indicator */
.ves-wrap.fi-shell .fiis-typing { display: inline-flex; gap: 4px; align-items: center; padding: 4px 2px; }
.ves-wrap.fi-shell .fiis-typing span { width: 7px; height: 7px; border-radius: 50%; background: #b9b2a4; animation: fiisBlink 1.2s infinite both; }
.ves-wrap.fi-shell .fiis-typing span:nth-child(2) { animation-delay: .18s; }
.ves-wrap.fi-shell .fiis-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes fiisBlink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* Live status line inside an assistant message */
.ves-wrap.fi-shell .fiis-status-line {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--fc-mono); font-size: 11.5px; color: #6f6a60; letter-spacing: .03em;
}
.ves-wrap.fi-shell .fiis-status-line .fiis-live-dot { animation: fiisPulse 1.4s infinite; }

/* Plan line: provider vs blocked */
.ves-wrap.fi-shell .fiis-plan-line { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.ves-wrap.fi-shell .fiis-tag {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
    font-size: 12px; border: 1px solid var(--fc-line);
}
.ves-wrap.fi-shell .fiis-tag.is-provider { background: var(--fc-blue-soft); color: var(--fc-blue); border-color: rgba(47,100,217,.25); }
.ves-wrap.fi-shell .fiis-tag.is-blocked { background: #fdeee9; color: #b23a17; border-color: rgba(245,90,50,.3); text-decoration: line-through; text-decoration-color: rgba(245,90,50,.5); }
.ves-wrap.fi-shell .fiis-plan-label { font-family: var(--fc-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #9a948a; width: 100%; margin-top: 4px; }

/* Count pills */
.ves-wrap.fi-shell .fiis-counts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ves-wrap.fi-shell .fiis-count {
    border: 1px solid var(--fc-line); border-radius: 12px; padding: 7px 11px; background: var(--fc-paper);
    display: flex; flex-direction: column; gap: 1px; min-width: 74px;
}
.ves-wrap.fi-shell .fiis-count b { font-size: 17px; font-weight: 800; }
.ves-wrap.fi-shell .fiis-count span { font-family: var(--fc-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: #9a948a; }
.ves-wrap.fi-shell .fiis-count.is-useful b { color: #1f8f5a; }
.ves-wrap.fi-shell .fiis-count.is-discarded b { color: var(--fc-orange); }

/* ---------------------------------------------------------------------------
   Example post cards — the assistant "shows" examples inline
   --------------------------------------------------------------------------- */
.ves-wrap.fi-shell .fiis-examples {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 78%);
    gap: 12px; overflow-x: auto; padding: 12px 2px 4px; margin-top: 10px;
    scroll-snap-type: x mandatory;
}
@media (min-width: 720px) { .ves-wrap.fi-shell .fiis-examples { grid-auto-columns: minmax(248px, 1fr); grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); overflow: visible; } }
.ves-wrap.fi-shell .fiis-example {
    scroll-snap-align: start;
    border: 1px solid var(--fc-line); border-radius: 14px; background: var(--fc-paper);
    overflow: hidden; display: flex; flex-direction: column;
    transition: border-color .15s ease, transform .15s ease;
}
.ves-wrap.fi-shell .fiis-example:hover { border-color: rgba(47,100,217,.35); transform: translateY(-2px); }
.ves-wrap.fi-shell .fiis-example-thumb {
    /* v1.5.0-rc.14 — flat, lighter placeholder when there is no thumbnail
       (badge + duration carry their own backgrounds, so they stay readable). */
    height: 132px; background: var(--fc-sand) center/cover no-repeat;
    position: relative; display: flex; align-items: flex-end;
}
.ves-wrap.fi-shell .fiis-example-badge {
    position: absolute; top: 8px; left: 8px;
    font-family: var(--fc-mono); font-size: 9.5px; letter-spacing: .05em;
    padding: 2px 7px; border-radius: 999px; background: rgba(15,15,15,.78); color: #fff;
}
.ves-wrap.fi-shell .fiis-example-badge.is-direct { background: var(--fc-blue); }
.ves-wrap.fi-shell .fiis-example-badge.is-adjacent { background: #1f8f5a; }
.ves-wrap.fi-shell .fiis-example-badge.is-weak { background: #8a7d2e; }
.ves-wrap.fi-shell .fiis-example-dur { position: absolute; bottom: 8px; right: 8px; font-size: 11px; color: #fff; background: rgba(0,0,0,.55); padding: 1px 6px; border-radius: 6px; }
.ves-wrap.fi-shell .fiis-example-body { padding: 11px 12px; display: flex; flex-direction: column; gap: 6px; }
.ves-wrap.fi-shell .fiis-example-author { font-family: var(--fc-mono); font-size: 11px; color: #6f6a60; }
.ves-wrap.fi-shell .fiis-example-explain { font-size: 12.8px; line-height: 1.5; color: #2a2a2a; }
.ves-wrap.fi-shell .fiis-example-stats { display: flex; gap: 12px; font-size: 11.5px; color: #6f6a60; }
.ves-wrap.fi-shell .fiis-example-actions { display: flex; gap: 8px; margin-top: 2px; }
.ves-wrap.fi-shell .fiis-mini {
    border: 1px solid var(--fc-line); background: transparent; border-radius: 999px;
    padding: 4px 10px; font-size: 11.5px; cursor: pointer; color: var(--fc-ink);
}
.ves-wrap.fi-shell .fiis-mini.is-primary { background: var(--fc-blue); color: #fff; border-color: var(--fc-blue); }
.ves-wrap.fi-shell .fiis-mini:hover { filter: brightness(.97); }

/* ---------------------------------------------------------------------------
   Quick-reply / follow-up chips
   --------------------------------------------------------------------------- */
.ves-wrap.fi-shell .fiis-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ves-wrap.fi-shell .fiis-chip {
    border: 1px solid var(--fc-line); background: var(--fc-paper); color: var(--fc-ink);
    border-radius: 999px; padding: 6px 13px; font-size: 13px; cursor: pointer;
    transition: background .12s ease, border-color .12s ease;
}
.ves-wrap.fi-shell .fiis-chip:hover { background: rgba(47,100,217,.06); border-color: rgba(47,100,217,.35); }
.ves-wrap.fi-shell .fiis-chip.is-active { background: var(--fc-ink); color: var(--fc-paper); border-color: var(--fc-ink); }

/* ---------------------------------------------------------------------------
   Composer
   --------------------------------------------------------------------------- */
.ves-wrap.fi-shell .fiis-composer {
    border-top: 1px solid var(--fc-line); padding: 12px 14px 14px; background: var(--fc-paper);
    display: flex; flex-direction: column; gap: 9px;
}
.ves-wrap.fi-shell .fiis-composer-modes { display: flex; gap: 7px; flex-wrap: wrap; }
.ves-wrap.fi-shell .fiis-composer-row { display: flex; align-items: flex-end; gap: 10px; }
.ves-wrap.fi-shell .fiis-composer-input {
    flex: 1; border: 1px solid var(--fc-line); border-radius: 14px;
    background: var(--fc-paper-2); padding: 11px 14px; font-size: 14.5px; resize: none;
    min-height: 46px; max-height: 140px; line-height: 1.45; color: var(--fc-ink);
    font-family: inherit;
}
.ves-wrap.fi-shell .fiis-composer-input:focus { outline: none; border-color: rgba(47,100,217,.55); background: var(--fc-paper); }
.ves-wrap.fi-shell .fiis-send {
    width: 46px; height: 46px; border-radius: 14px; border: 0; cursor: pointer;
    background: var(--fc-blue); color: #fff; font-size: 18px; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    transition: transform .1s ease, filter .1s ease;
}
.ves-wrap.fi-shell .fiis-send:hover { filter: brightness(1.04); }
.ves-wrap.fi-shell .fiis-send:active { transform: scale(.94); }
.ves-wrap.fi-shell .fiis-send[disabled] { opacity: .5; cursor: default; }
.ves-wrap.fi-shell .fiis-composer-hint { font-family: var(--fc-mono); font-size: 10px; color: #9a948a; letter-spacing: .04em; }
.ves-wrap.fi-shell .fiis-platform-pill {
    border: 1px solid var(--fc-line); border-radius: 999px; background: transparent;
    padding: 5px 11px; font-size: 12px; cursor: pointer; color: var(--fc-ink); white-space: nowrap;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ves-wrap.fi-shell .fiis-msg,
    .ves-wrap.fi-shell .fiis-typing span,
    .ves-wrap.fi-shell .fiis-live-dot { animation: none !important; }
    .ves-wrap.fi-shell .fiis-convo-thread { scroll-behavior: auto; }
}

/* ============================================================================
   v1.5.0-rc.10 — Conversational upgrades: streamed typing, voice, smart
   follow-ups, post comparison, brief, persistence affordances.
   (No new linear-gradients — keeps the flat brandbook surface.)
   ============================================================================ */

/* Streamed text + caret */
.ves-wrap.fi-shell .fiis-stream { white-space: pre-wrap; }
.ves-wrap.fi-shell .fiis-caret {
    display: inline-block; width: 7px; height: 1.05em; vertical-align: -2px;
    background: var(--fc-blue); margin-left: 2px; border-radius: 1px;
    animation: fiisCaret 1s steps(2) infinite;
}
@keyframes fiisCaret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Composer: voice mic */
.ves-wrap.fi-shell .fiis-mic {
    width: 46px; height: 46px; border-radius: 14px; flex: 0 0 auto; cursor: pointer;
    border: 1px solid var(--fc-line); background: var(--fc-paper); color: #6f6a60; font-size: 17px;
    display: flex; align-items: center; justify-content: center;
    transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.ves-wrap.fi-shell .fiis-mic:hover { color: var(--fc-ink); border-color: rgba(16,16,16,.25); }
.ves-wrap.fi-shell .fiis-mic.is-listening {
    color: #fff; background: var(--fc-orange); border-color: var(--fc-orange);
    animation: fiisPulse 1.2s infinite;
}

/* Scroll-to-latest affordance */
.ves-wrap.fi-shell .fiis-scrolldown {
    position: absolute; right: 18px; bottom: 96px; z-index: 4;
    width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
    border: 1px solid var(--fc-line); background: var(--fc-paper); color: var(--fc-ink);
    box-shadow: 0 8px 22px rgba(16,16,16,.14); font-size: 16px;
    display: none; align-items: center; justify-content: center;
}
.ves-wrap.fi-shell .fiis-scrolldown.is-shown { display: flex; }
.ves-wrap.fi-shell .fiis-convo { position: relative; }

/* Selected example + comparison/brief blocks */
.ves-wrap.fi-shell .fiis-example.is-picked { border-color: var(--fc-blue); box-shadow: 0 0 0 2px rgba(47,100,217,.18); }
.ves-wrap.fi-shell .fiis-brief {
    border: 1px solid var(--fc-line); border-left: 3px solid var(--fc-blue);
    border-radius: 12px; background: var(--fc-paper); padding: 12px 14px; margin-top: 8px;
}
.ves-wrap.fi-shell .fiis-brief h4 {
    margin: 0 0 8px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em;
    font-family: var(--fc-mono); color: #6f6a60;
}
.ves-wrap.fi-shell .fiis-brief p { margin: 0 0 6px; font-size: 14px; line-height: 1.55; }
.ves-wrap.fi-shell .fiis-brief .fiis-brief-row { display: flex; gap: 8px; align-items: baseline; }
.ves-wrap.fi-shell .fiis-brief .fiis-brief-k { font-family: var(--fc-mono); font-size: 10.5px; color: #9a948a; min-width: 92px; text-transform: uppercase; }
.ves-wrap.fi-shell .fiis-brief-actions { display: flex; gap: 8px; margin-top: 8px; }

/* Message timestamp */
.ves-wrap.fi-shell .fiis-time { font-family: var(--fc-mono); font-size: 9.5px; color: #b4ada0; margin-left: 6px; }

/* ============================================================================
 * v1.5.0-rc.14 — Structured analysis cards + UI polish
 *   Editorial, object-first; evidence / inference / hypothesis visually distinct.
 * ========================================================================== */
.ves-wrap.fi-shell .fiis-analysis-cards {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px; margin-top: 10px;
}
.ves-wrap.fi-shell .fiis-card {
    border: 1px solid var(--fc-line); border-radius: 12px; background: var(--fc-paper);
    padding: 11px 12px 12px; border-left: 3px solid var(--fc-sand); min-width: 0;
}
.ves-wrap.fi-shell .fiis-card-head {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px;
}
.ves-wrap.fi-shell .fiis-card-kind {
    font-family: var(--fc-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: #6f6a60;
}
.ves-wrap.fi-shell .fiis-card-badge {
    font-family: var(--fc-mono); font-size: 9px; letter-spacing: .04em; text-transform: uppercase;
    color: var(--fc-ink); background: var(--fc-sand); border-radius: 999px; padding: 2px 7px; white-space: nowrap;
}
.ves-wrap.fi-shell .fiis-card-badge.is-limited { background: var(--fc-orange); color: #fff; }
.ves-wrap.fi-shell .fiis-card-title { font-weight: 600; font-size: 13.5px; line-height: 1.3; margin-bottom: 4px; }
.ves-wrap.fi-shell .fiis-card-body { font-size: 13px; line-height: 1.5; color: #2a2824; }
.ves-wrap.fi-shell .fiis-card-list { margin: 0; padding-left: 16px; }
.ves-wrap.fi-shell .fiis-card-list li { margin: 0 0 4px; }
.ves-wrap.fi-shell .fiis-card-more > summary { cursor: pointer; font-family: var(--fc-mono); font-size: 10.5px; color: var(--fc-blue); margin-top: 4px; }
.ves-wrap.fi-shell .fiis-raw-md > summary { cursor: pointer; font-family: var(--fc-mono); font-size: 10px; color: #9a948a; margin-top: 8px; }
.ves-wrap.fi-shell .fiis-raw-md pre { white-space: pre-wrap; font-size: 11px; background: var(--fc-paper-2); border-radius: 8px; padding: 8px; max-height: 240px; overflow: auto; }
/* Card accents by kind — route blue for inference/brief, lime for evidence, orange for hypothesis/limits */
.ves-wrap.fi-shell .fiis-card--executive { border-left-color: var(--fc-ink); }
.ves-wrap.fi-shell .fiis-card--evidence  { border-left-color: var(--fc-lime); }
.ves-wrap.fi-shell .fiis-card--metrics   { border-left-color: var(--fc-sand); }
.ves-wrap.fi-shell .fiis-card--inference { border-left-color: var(--fc-blue); }
.ves-wrap.fi-shell .fiis-card--hypothesis,
.ves-wrap.fi-shell .fiis-card--cannot    { border-left-color: var(--fc-orange); }
.ves-wrap.fi-shell .fiis-card--brief     { border-left-color: var(--fc-blue); }
.ves-wrap.fi-shell .fiis-card--next_test { border-left-color: var(--fc-ink); }

/* Track E — UI polish within the current design */
/* Compact follow-up chips */
.ves-wrap.fi-shell .fiis-chips { gap: 6px; }
.ves-wrap.fi-shell .fiis-chips .fiis-chip { font-size: 12px; padding: 5px 10px; }
/* Reduce nested scroll: the thread owns the scroll; cards/lists never add their own bars */
.ves-wrap.fi-shell .fiis-card-body, .ves-wrap.fi-shell .fiis-counts { overflow: visible; }
/* Composer must not cover the last result card */
.ves-wrap.fi-shell .fiis-convo-thread { padding-bottom: 8px; }
.ves-wrap.fi-shell .fiis-composer { position: relative; z-index: 2; }

/* ============================================================================
 * v1.5.0-rc.15 — Signal Room layout usability + actionable cards + evidence polish
 * ========================================================================== */
/* Track C — single main scroll; composer never crops the last card.
   The thread is the only scroll container; the composer lives in the flex flow.
   A safe bottom spacing variable keeps the last card clear of the composer. */
.ves-wrap.fi-shell .fiis-convo { --fiis-composer-safe: 16px; }
.ves-wrap.fi-shell .fiis-convo-thread { padding-bottom: var(--fiis-composer-safe); scroll-padding-bottom: var(--fiis-composer-safe); }
.ves-wrap.fi-shell .fiis-composer { position: relative; z-index: 3; background: var(--fc-paper); }
/* Kill the nested horizontal scrollbar on narrow widths — wrap into a clean grid. */
.ves-wrap.fi-shell .fiis-examples { overflow-x: visible; grid-auto-flow: row; grid-template-columns: 1fr; }
@media (min-width: 560px) { .ves-wrap.fi-shell .fiis-examples { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .ves-wrap.fi-shell .fiis-examples { grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); } }
/* Structured analysis grid — responsive breakpoints (1 / 2 / auto columns). */
.ves-wrap.fi-shell .fiis-analysis-cards { grid-template-columns: 1fr; }
@media (min-width: 560px) { .ves-wrap.fi-shell .fiis-analysis-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .ves-wrap.fi-shell .fiis-analysis-cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }
/* Media preview height cap, fallback-safe. */
.ves-wrap.fi-shell .fiis-example.has-media .fiis-example-thumb { max-height: 160px; }

/* Track D — compact evidence card (no media block, no wasted space). */
.ves-wrap.fi-shell .fiis-example.is-compact { border-left: 3px solid var(--fc-sand); }
.ves-wrap.fi-shell .fiis-example.is-compact.is-in-brief,
.ves-wrap.fi-shell .fiis-example.has-media.is-in-brief { border-left-color: var(--fc-blue); }
.ves-wrap.fi-shell .fiis-example-toprow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.ves-wrap.fi-shell .fiis-evidence-tag {
    font-family: var(--fc-mono); font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase;
    padding: 2px 8px; border-radius: 999px; background: rgba(15,15,15,.78); color: #fff;
}
.ves-wrap.fi-shell .fiis-evidence-tag.is-direct { background: var(--fc-blue); }
.ves-wrap.fi-shell .fiis-evidence-tag.is-adjacent { background: #1f8f5a; }
.ves-wrap.fi-shell .fiis-evidence-tag.is-weak { background: var(--fc-orange); }
.ves-wrap.fi-shell .fiis-example-platform { font-family: var(--fc-mono); font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; color: #9a948a; }
.ves-wrap.fi-shell .fiis-example-platform.is-onmedia { position: absolute; top: 8px; right: 8px; color: #fff; background: rgba(15,15,15,.6); padding: 2px 7px; border-radius: 999px; }
.ves-wrap.fi-shell .fiis-example-cap { font-size: 12.5px; line-height: 1.45; color: #4a463f; font-style: italic; }
/* Full evidence label shrinks only at very small widths. */
@media (max-width: 380px) { .ves-wrap.fi-shell .fiis-evidence-tag { font-size: 8.5px; padding: 2px 6px; } }

/* Track B — batch + per-card product actions. */
.ves-wrap.fi-shell .fiis-batch-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ves-wrap.fi-shell .fiis-act {
    font-family: var(--fc-mono); font-size: 11px; letter-spacing: .02em; cursor: pointer;
    border: 1px solid var(--fc-line); background: var(--fc-paper); color: var(--fc-ink);
    border-radius: 999px; padding: 7px 13px; transition: border-color .15s ease, background .15s ease;
}
.ves-wrap.fi-shell .fiis-act:hover { border-color: var(--fc-blue); }
.ves-wrap.fi-shell .fiis-act.is-primary { background: var(--fc-blue); color: #fff; border-color: var(--fc-blue); }
.ves-wrap.fi-shell .fiis-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ves-wrap.fi-shell .fiis-card-act {
    font-family: var(--fc-mono); font-size: 10px; letter-spacing: .02em; cursor: pointer;
    border: 1px solid var(--fc-line-soft); background: transparent; color: #6f6a60;
    border-radius: 8px; padding: 4px 8px;
}
.ves-wrap.fi-shell .fiis-card-act:hover { border-color: var(--fc-blue); color: var(--fc-ink); }
.ves-wrap.fi-shell .fiis-card.is-in-brief { border-left-color: var(--fc-blue); }
.ves-wrap.fi-shell .fiis-card.is-hypothesis { border-left-color: var(--fc-orange); }
.ves-wrap.fi-shell .fiis-card.is-needs-evidence { border-left-color: var(--fc-orange); opacity: .92; }

/* ============================================================================
 * v1.5.0-rc.16 — Saved Signal Room records (insight / brief / memory)
 * ========================================================================== */
.ves-wrap.fi-shell .fiis-records { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 10px; }
@media (min-width: 620px) { .ves-wrap.fi-shell .fiis-records { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ves-wrap.fi-shell .fiis-record {
    border: 1px solid var(--fc-line); border-left: 3px solid var(--fc-sand);
    border-radius: 10px; background: var(--fc-paper); padding: 9px 11px;
}
.ves-wrap.fi-shell .fiis-record--insight { border-left-color: var(--fc-blue); }
.ves-wrap.fi-shell .fiis-record--brief   { border-left-color: var(--fc-ink); }
.ves-wrap.fi-shell .fiis-record--memory  { border-left-color: var(--fc-sand); }
.ves-wrap.fi-shell .fiis-record-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ves-wrap.fi-shell .fiis-record-kind { font-family: var(--fc-mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: #6f6a60; }
.ves-wrap.fi-shell .fiis-record-when { font-family: var(--fc-mono); font-size: 9px; color: #b4ada0; }
.ves-wrap.fi-shell .fiis-record-topic { font-weight: 600; font-size: 13px; margin: 3px 0 2px; }
.ves-wrap.fi-shell .fiis-record-sum { font-size: 12px; line-height: 1.45; color: #4a463f; }
