/*
 * Future Island v1.5.0-rc.4 — Premium Intelligence UI continuation.
 * Scoped to the Future Island shell; no global WordPress admin reset.
 */
.ves-wrap.fi-shell,
.ves-wrap.fiis-app {
    --fi-bg: #f4f1ea;
    --fi-surface: #fffaf1;
    --fi-surface-soft: #f8f4ea;
    --fi-ink: #111111;
    --fi-muted: #6f6a60;
    --fi-blue: #2458d3;
    --fi-blue-soft: #e7edff;
    --fi-sand: #d8c4a3;
    --fi-lime: #c8ff4d;
    --fi-orange: #ff5a2f;
    --fi-border: rgba(17,17,17,.12);
    --fi-radius-sm: 8px;
    --fi-radius-md: 14px;
    --fi-radius-lg: 22px;
    --fi-shadow-soft: 0 16px 40px rgba(17,17,17,.08);
    background: radial-gradient(circle at top left, rgba(216,196,163,.32), transparent 30%), var(--fi-bg);
    color: var(--fi-ink);
}

.ves-wrap.fi-shell .ves-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #fffaf1 0%, #f3ecdf 100%);
    border-right: 1px solid rgba(17,17,17,.10);
    box-shadow: none;
}
.ves-wrap.fi-shell .ves-brand,
.ves-wrap.fi-shell .fi-sidebar-brand {
    letter-spacing: -.03em;
    color: var(--fi-ink);
}
.ves-wrap.fi-shell .ves-logo,
.ves-wrap.fi-shell .fi-brand-mark {
    background: var(--fi-ink) !important;
    color: var(--fi-surface) !important;
    border-radius: 12px !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
.ves-wrap.fi-shell .ves-sidebar-section-label {
    color: rgba(17,17,17,.48);
    letter-spacing: .16em;
    font-size: 10px;
    margin-top: 22px;
}
.ves-wrap.fi-shell .ves-nav-item,
.ves-wrap.fi-shell .ves-sidebar a {
    border-radius: 10px;
    color: rgba(17,17,17,.72);
    font-weight: 600;
}
.ves-wrap.fi-shell .ves-nav-item.active,
.ves-wrap.fi-shell .ves-sidebar a.active,
.ves-wrap.fi-shell .ves-sidebar [aria-current="page"] {
    background: rgba(17,17,17,.06) !important;
    color: var(--fi-ink) !important;
    box-shadow: inset 3px 0 0 var(--fi-blue);
}
.ves-wrap.fi-shell .ves-credit-pill,
.ves-wrap.fi-shell .fi-credit-ledger,
.ves-wrap.fi-shell .fiis-usage-strip {
    background: rgba(17,17,17,.04);
    border: 1px solid rgba(17,17,17,.10);
    border-radius: 14px;
}

.ves-wrap.fi-shell .ves-topbar {
    background: rgba(255,250,241,.86);
    border-bottom: 1px solid rgba(17,17,17,.08);
    backdrop-filter: blur(14px);
}
.ves-wrap.fi-shell .ves-search {
    background: #fffaf1;
    border: 1px solid rgba(17,17,17,.12);
    border-radius: 999px;
}
.ves-wrap.fi-shell .ves-page-inner {
    max-width: 1280px;
    margin: 0 auto;
}
.ves-wrap.fi-shell .ves-page-title {
    font-size: clamp(34px, 4vw, 46px);
    letter-spacing: -.045em;
    line-height: .98;
    color: var(--fi-ink);
}
.ves-wrap.fi-shell .ves-page-sub {
    max-width: 760px;
    color: rgba(17,17,17,.62);
    font-size: 15.5px;
    line-height: 1.55;
}
.ves-wrap.fi-shell .ves-card.ves-command-center-card,
.ves-wrap.fi-shell .fi-command-canvas {
    background: linear-gradient(180deg, rgba(255,250,241,.96), rgba(248,244,234,.96));
    border: 1px solid rgba(17,17,17,.10);
    border-radius: 28px;
    box-shadow: var(--fi-shadow-soft);
    padding: clamp(22px, 3vw, 38px);
}
.ves-wrap.fi-shell .ves-row {
    gap: 20px;
}
.ves-wrap.fi-shell .ves-field {
    min-width: 0;
}
.ves-wrap.fi-shell .ves-input,
.ves-wrap.fi-shell .ves-textarea,
.ves-wrap.fi-shell .ves-select {
    border-radius: 14px;
    border-color: rgba(17,17,17,.14);
    background: rgba(255,255,255,.62);
    box-shadow: none;
    color: var(--fi-ink);
    word-break: normal;
    overflow-wrap: normal;
}
.ves-wrap.fi-shell .ves-label {
    color: rgba(17,17,17,.72);
    font-size: 11px;
    letter-spacing: .08em;
}
.ves-wrap.fi-shell .ves-btn-primary,
.ves-wrap.fi-shell .ves-start {
    background: var(--fi-ink) !important;
    color: #fffaf1 !important;
    border: 1px solid var(--fi-ink) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
}
.ves-wrap.fi-shell .ves-btn-secondary,
.ves-wrap.fi-shell .ves-mini-btn,
.ves-wrap.fi-shell .ves-result-card .ves-btn:not(.ves-btn-primary) {
    background: transparent !important;
    color: var(--fi-ink) !important;
    border: 1px solid rgba(17,17,17,.15) !important;
    box-shadow: none !important;
}
.ves-wrap.fi-shell .ves-ai-refine-button {
    border-radius: 999px;
    background: rgba(36,88,211,.08);
    color: var(--fi-blue);
    border: 1px solid rgba(36,88,211,.15);
}

.ves-wrap.fi-shell .fiis-rc4-search-plan-preview {
    margin: 22px 0 26px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(17,17,17,.035);
    border: 1px solid rgba(17,17,17,.08);
}
.ves-wrap.fi-shell .fiis-rc4-plan-head {
    display: grid;
    gap: 4px;
    max-width: 860px;
}
.ves-wrap.fi-shell .fiis-rc4-plan-head strong {
    font-size: 18px;
    letter-spacing: -.02em;
}
.ves-wrap.fi-shell .fiis-rc4-plan-head p {
    margin: 0;
    color: var(--fi-muted);
    line-height: 1.5;
}
.ves-wrap.fi-shell .fiis-rc4-progress-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(7, minmax(90px, 1fr));
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
}
.ves-wrap.fi-shell .fiis-rc4-progress-steps li {
    display: grid;
    gap: 8px;
    align-content: start;
    min-height: 84px;
    padding: 12px;
    background: rgba(255,250,241,.82);
    border: 1px solid rgba(17,17,17,.08);
    border-radius: 16px;
    color: rgba(17,17,17,.72);
    font-size: 12px;
    line-height: 1.25;
}
.ves-wrap.fi-shell .fiis-rc4-progress-steps li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--fi-ink);
    color: var(--fi-surface);
    font-size: 11px;
}
.ves-wrap.fi-shell .fiis-rc4-planned-queries {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ves-wrap.fi-shell .fiis-query-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 999px;
    background: #fffaf1;
    border: 1px solid rgba(17,17,17,.12);
    font-size: 12px;
    color: rgba(17,17,17,.76);
}
.ves-wrap.fi-shell .fiis-query-chip b {
    color: var(--fi-blue);
    font-weight: 700;
}
.ves-wrap.fi-shell .fiis-muted { color: var(--fi-muted); font-size: 12px; }

.ves-wrap.fi-shell .ves-results {
    background: transparent;
}
.ves-wrap.fi-shell .ves-results.show {
    display: grid;
    gap: 18px;
}
.ves-wrap.fi-shell .ves-result-card,
.ves-wrap.fi-shell .fi-evidence-card {
    border-radius: 20px !important;
    border: 1px solid rgba(17,17,17,.10) !important;
    background: rgba(255,250,241,.92) !important;
    box-shadow: none !important;
    overflow: hidden;
}
.ves-wrap.fi-shell .ves-result-card .ves-thumb,
.ves-wrap.fi-shell .ves-result-card img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.ves-wrap.fi-shell .ves-result-card p,
.ves-wrap.fi-shell .ves-result-card .ves-caption,
.ves-wrap.fi-shell .ves-result-card .ves-result-title {
    word-break: normal !important;
    overflow-wrap: normal !important;
    white-space: normal !important;
    line-height: 1.45;
}
.ves-wrap.fi-shell .fi-url,
.ves-wrap.fi-shell .fi-token {
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}
.ves-wrap.fi-shell .fiis-result-summary,
.ves-wrap.fi-shell .fiis-results-summary,
.ves-wrap.fi-shell .fiis-run-summary-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(110px, 1fr));
    gap: 10px;
    margin: 18px 0;
}
.ves-wrap.fi-shell .fiis-result-summary > *,
.ves-wrap.fi-shell .fiis-results-summary > *,
.ves-wrap.fi-shell .fiis-run-summary-strip > * {
    background: rgba(17,17,17,.04);
    border-radius: 14px;
    padding: 12px;
    border: 1px solid rgba(17,17,17,.08);
}
.ves-wrap.fi-shell .fi-evidence-drawer,
.ves-wrap.fi-shell .fi-action-rail {
    background: rgba(255,250,241,.88);
    border: 1px solid rgba(17,17,17,.10);
    border-radius: 22px;
    box-shadow: none;
}
.ves-wrap.fi-shell .fi-decision-report,
.ves-wrap.fi-shell .fiis-decision-report,
.ves-wrap.fi-shell .ves-signal-report {
    background: #fffaf1;
    color: var(--fi-ink);
    border-radius: 28px;
    border: 1px solid rgba(17,17,17,.10);
    box-shadow: var(--fi-shadow-soft);
    padding: clamp(24px, 3vw, 42px);
}
.ves-wrap.fi-shell .fi-decision-report code,
.ves-wrap.fi-shell .ves-signal-report code,
.ves-wrap.fi-shell .ves-signal-report pre {
    color: var(--fi-ink) !important;
    background: rgba(17,17,17,.04) !important;
    white-space: pre-wrap;
    word-break: normal;
}
.ves-wrap.fi-shell .ves-status.show.warning,
.ves-wrap.fi-shell .ves-status.show.info,
.ves-wrap.fi-shell .ves-status.show.error,
.ves-wrap.fi-shell .ves-status.show.success {
    border-radius: 18px;
    border: 1px solid rgba(17,17,17,.12);
    background: #fffaf1;
    color: var(--fi-ink);
}
.ves-wrap.fi-shell .ves-status.show.error { box-shadow: inset 4px 0 0 var(--fi-orange); }
.ves-wrap.fi-shell .ves-status.show.success { box-shadow: inset 4px 0 0 var(--fi-lime); }
.ves-wrap.fi-shell .ves-status.show.warning { box-shadow: inset 4px 0 0 #d49b28; }
.ves-wrap.fi-shell .ves-status.show.info { box-shadow: inset 4px 0 0 var(--fi-blue); }

@media (max-width: 1100px) {
    .ves-wrap.fi-shell .fiis-rc4-progress-steps,
    .ves-wrap.fi-shell .fiis-result-summary,
    .ves-wrap.fi-shell .fiis-results-summary,
    .ves-wrap.fi-shell .fiis-run-summary-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .ves-wrap.fi-shell .ves-sidebar { width: 100%; }
    .ves-wrap.fi-shell .fiis-rc4-progress-steps,
    .ves-wrap.fi-shell .fiis-result-summary,
    .ves-wrap.fi-shell .fiis-results-summary,
    .ves-wrap.fi-shell .fiis-run-summary-strip {
        grid-template-columns: 1fr;
    }
    .ves-wrap.fi-shell .ves-page-title { font-size: 32px; }
}
