/* ==================================================================
 * SmartAICoach Dashboard (#page-onlyfaith) — tc-smartai.css
 * Revamp: SmartAICoach Dashboard rebuild from the art kit
 * (revamp-ui/smartai-dashboard-assets). 2026-11-07, ui-revamp.
 *
 * Design tokens come from the kit (css/smartaicoach-tokens.css):
 * --sc-bg #080F1F, --sc-surface #11132B, --sc-primary #7C3AED,
 * --sc-accent #A855F7, --sc-success #10B981, --sc-danger #EF4444,
 * --sc-warning #F59E0B, --sc-info #22D3EE, --sc-text #F5F3FF,
 * --sc-border #45337A.
 *
 * Dark-first (matches the reference render). Light mode is handled by
 * the [data-theme="light"] block at the end of this file; the hero
 * intentionally stays dark in both modes (artwork-led header).
 * All rules are scoped under #page-onlyfaith so nothing leaks.
 * ================================================================== */

#page-onlyfaith {
    --sc-bg: #080F1F;
    --sc-surface: #11132B;
    --sc-surface2: #171A3B;
    --sc-primary: #7C3AED;
    --sc-accent: #A855F7;
    --sc-success: #10B981;
    --sc-danger: #EF4444;
    --sc-warning: #F59E0B;
    --sc-info: #22D3EE;
    --sc-text: #F5F3FF;
    --sc-muted: #A9A4C5;
    --sc-border: #45337A;
    --sc-radius: 14px;
    color: var(--sc-text);
}

/* ------------------------------------------------------------------
 * Hero header
 * ------------------------------------------------------------------ */
#page-onlyfaith .sc-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius);
    background:
        linear-gradient(100deg, rgba(8, 15, 31, .92) 0%, rgba(8, 15, 31, .55) 55%, rgba(8, 15, 31, .25) 100%),
        url('/static/img/smartai/hero_background.svg') center / cover no-repeat,
        #0D1027;
    padding: 22px 26px 30px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 24px;
}
#page-onlyfaith .sc-hero-text { flex: 1; min-width: 0; position: relative; z-index: 2; }
#page-onlyfaith .sc-hero-title {
    margin: 0 0 4px;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff;
}
#page-onlyfaith .sc-hero-title span {
    background: linear-gradient(90deg, #A855F7, #7C3AED);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
#page-onlyfaith .sc-hero .breadcrumb-page { color: #C9C4E8; }
#page-onlyfaith .sc-hero .page-subtitle {
    color: #B9B3DC;
    margin: 8px 0 0;
    font-size: 14px;
}
#page-onlyfaith .sc-hero-art {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
#page-onlyfaith .sc-hero-chip { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 10px 28px rgba(124, 58, 237, .55)); }
#page-onlyfaith .sc-hero-holo { width: 118px; height: 118px; object-fit: contain; opacity: .95; }
#page-onlyfaith .sc-hero-wave {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 30px;
    background: url('/static/img/smartai/neon_wave.svg') center bottom / 1000px 240px repeat-x;
    opacity: .55;
    pointer-events: none;
}
#page-onlyfaith .sc-cleanup {
    position: relative;
    z-index: 2;
    align-self: flex-start;
    padding: 8px 16px;
    border: 1px solid var(--sc-warning);
    background: rgba(245, 158, 11, .08);
    color: #FBBF24;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
#page-onlyfaith .sc-cleanup:hover { background: rgba(245, 158, 11, .18); }

/* ------------------------------------------------------------------
 * Shared panel + buttons
 * ------------------------------------------------------------------ */
#page-onlyfaith .sc-panel {
    background: linear-gradient(145deg, var(--sc-surface), #0C1023);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius);
    color: var(--sc-text);
    padding: 16px 18px;
    min-width: 0;
}
#page-onlyfaith .sc-panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
#page-onlyfaith .sc-panel-head h2,
#page-onlyfaith .sc-panel-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--sc-text);
    display: flex;
    align-items: center;
    gap: 8px;
}
#page-onlyfaith .sc-panel-icon { width: 20px; height: 20px; flex-shrink: 0; }
#page-onlyfaith .sc-panel-head .sc-spacer { flex: 1; }
#page-onlyfaith .sc-panel-note { font-size: 12px; color: var(--sc-muted); }
#page-onlyfaith .sc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    white-space: nowrap;
}
#page-onlyfaith .sc-btn:disabled { opacity: .55; cursor: default; }
#page-onlyfaith .sc-btn-green { background: #10B981; border-color: #10B981; }
#page-onlyfaith .sc-btn-green:hover { background: #0DA271; }
#page-onlyfaith .sc-btn-red { background: #EF4444; border-color: #EF4444; }
#page-onlyfaith .sc-btn-red:hover { background: #DC2626; }
#page-onlyfaith .sc-btn-amber { background: #F59E0B; border-color: #F59E0B; }
#page-onlyfaith .sc-btn-amber:hover { background: #D97706; }
#page-onlyfaith .sc-btn-purple { background: linear-gradient(130deg, #6D28D9, #9333EA); border-color: #8155DC; }
#page-onlyfaith .sc-btn-purple:hover { filter: brightness(1.12); }
#page-onlyfaith .sc-btn-ghost {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .14);
    color: var(--sc-text);
}
#page-onlyfaith .sc-btn-ghost:hover { background: rgba(255, 255, 255, .12); }
#page-onlyfaith .sc-btn:focus-visible,
#page-onlyfaith .sc-cleanup:focus-visible,
#page-onlyfaith select:focus-visible,
#page-onlyfaith a:focus-visible {
    outline: 2px solid var(--sc-info);
    outline-offset: 2px;
}
#page-onlyfaith .sc-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}
#page-onlyfaith .sc-pill.up { background: #10B981; }
#page-onlyfaith .sc-pill.down { background: #EF4444; }
#page-onlyfaith .sc-pill.idle { background: #6B7280; }
#page-onlyfaith .sc-pill.amber { background: #F59E0B; }
#page-onlyfaith .sc-msg { margin-top: 8px; font-size: 12px; color: var(--sc-muted); min-height: 15px; }
#page-onlyfaith .sc-msg:empty { min-height: 0; margin-top: 0; }
#page-onlyfaith .sc-track { background: #1F2937; border-radius: 6px; height: 10px; overflow: hidden; }
#page-onlyfaith .sc-track > div { height: 100%; border-radius: 6px; transition: width .3s; }

/* ------------------------------------------------------------------
 * Top grid: LLM / ComfyUI / System Memory
 * ------------------------------------------------------------------ */
#page-onlyfaith .sc-top-grid {
    display: grid;
    grid-template-columns: 1.78fr 1fr 1.85fr;
    gap: 14px;
    margin-bottom: 14px;
}
#page-onlyfaith .sc-top-grid > div { min-width: 0; display: flex; }
#page-onlyfaith .sc-top-grid .sc-panel { flex: 1; display: flex; flex-direction: column; }

/* LLM panel */
#page-onlyfaith .sc-llm-gpu { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
#page-onlyfaith .sc-llm-gpu .sc-gpu-bar { flex: 1; min-width: 200px; }
#page-onlyfaith .sc-llm-gpu .sc-gpu-label { font-size: 11px; color: var(--sc-muted); margin-bottom: 4px; }
#page-onlyfaith .sc-llm-gpu .sc-track > div { background: linear-gradient(90deg, #10B981, #3B82F6); }
#page-onlyfaith .sc-llm-stats { font-size: 12px; color: var(--sc-muted); }
#page-onlyfaith .sc-llm-stats b { color: var(--sc-text); font-weight: 600; }
#page-onlyfaith .sc-table-wrap { overflow-x: auto; margin-top: 2px; }
#page-onlyfaith table.sc-table { width: 100%; border-collapse: collapse; font-size: 12px; }
#page-onlyfaith table.sc-table th {
    text-align: left;
    padding: 8px 10px;
    font-weight: 600;
    color: #9CA3AF;
    background: #0B1220;
    white-space: nowrap;
}
#page-onlyfaith table.sc-table th.num, #page-onlyfaith table.sc-table td.num { text-align: right; }
#page-onlyfaith table.sc-table td { padding: 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
#page-onlyfaith table.sc-table tr:last-child td { border-bottom: 0; }
#page-onlyfaith table.sc-table code { font-family: ui-monospace, Consolas, Menlo, monospace; font-size: 12px; }
#page-onlyfaith .sc-empty { text-align: center; padding: 18px 12px 8px; color: var(--sc-muted); font-size: 13px; line-height: 1.5; }
#page-onlyfaith .sc-empty img { width: 52px; height: 52px; display: block; margin: 0 auto 10px; opacity: .9; }

/* ComfyUI panel */
#page-onlyfaith .sc-comfy-note { font-size: 12px; color: var(--sc-muted); margin-top: 10px; line-height: 1.5; }
#page-onlyfaith .sc-comfy-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: flex-end; }

/* System Memory panel */
#page-onlyfaith .sc-mem-body { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
#page-onlyfaith .sc-mem-donut { flex-shrink: 0; width: 118px; text-align: center; }
#page-onlyfaith .sc-mem-donut svg { display: block; margin: 0 auto; }
#page-onlyfaith .sc-mem-donut .sc-donut-val { font-size: 22px; font-weight: 800; fill: var(--sc-text); }
#page-onlyfaith .sc-mem-donut .sc-donut-lbl { font-size: 10px; fill: var(--sc-muted); }
#page-onlyfaith .sc-mem-metrics {
    flex: 1;
    min-width: 220px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 14px;
}
#page-onlyfaith .sc-mem-metric .sc-m-label { font-size: 11px; color: var(--sc-muted); }
#page-onlyfaith .sc-mem-metric .sc-m-value { font-size: 17px; font-weight: 600; line-height: 1.25; }
#page-onlyfaith .sc-mem-metric .sc-m-sub { font-size: 10px; color: var(--sc-muted); opacity: .75; }
#page-onlyfaith .sc-mem-metric .sc-m-value.good { color: #10B981; }
#page-onlyfaith .sc-mem-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
#page-onlyfaith .sc-mem-bar .sc-b-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--sc-muted); margin-bottom: 4px; }
#page-onlyfaith .sc-mem-bar .sc-track { height: 8px; }

/* ------------------------------------------------------------------
 * KPI strip
 * ------------------------------------------------------------------ */
#page-onlyfaith .sc-kpi-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
#page-onlyfaith .sc-kpi-strip .stat-card {
    background: linear-gradient(145deg, var(--sc-surface), #0C1023);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
#page-onlyfaith .sc-kpi-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    border-radius: 10px;
    background: rgba(124, 58, 237, .16);
    border: 1px solid rgba(124, 58, 237, .35);
    display: flex; align-items: center; justify-content: center;
}
#page-onlyfaith .sc-kpi-icon img { width: 22px; height: 22px; }
#page-onlyfaith .sc-kpi-strip .stat-value {
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
    color: var(--sc-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#page-onlyfaith .sc-kpi-strip .stat-value.small { font-size: 14px; line-height: 1.3; white-space: normal; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#page-onlyfaith .sc-kpi-strip .stat-label { font-size: 12px; color: var(--sc-muted); }

/* ------------------------------------------------------------------
 * Lower grid: Link Health + charts
 * ------------------------------------------------------------------ */
#page-onlyfaith .sc-lower-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
#page-onlyfaith .sc-lower-grid > section { min-width: 0; }
#page-onlyfaith .sc-health-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#page-onlyfaith .sc-health-controls select {
    background: #100D29;
    color: var(--sc-text);
    border: 1px solid #65428B;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    min-height: 36px;
}
#page-onlyfaith .sc-health-pills { display: flex; flex-wrap: wrap; gap: 8px; }
#page-onlyfaith .sc-probe-result { margin-top: 10px; font-size: 13px; color: var(--sc-muted); }
#page-onlyfaith .sc-chart-wrap { position: relative; height: 230px; }
#page-onlyfaith .sc-chart-wrap canvas { width: 100% !important; height: 100% !important; }

/* ------------------------------------------------------------------
 * Bottom grid: Feature probes + Recent calls
 * ------------------------------------------------------------------ */
#page-onlyfaith .sc-bottom-grid {
    display: grid;
    grid-template-columns: 1.25fr 3fr;
    gap: 14px;
    margin-bottom: 8px;
}
#page-onlyfaith .sc-bottom-grid > section { min-width: 0; }
/* Probes panel sizes to its content instead of stretching to the
   50-row calls table height. */
#page-onlyfaith .sc-bottom-grid > section:first-child { align-self: start; }
#page-onlyfaith .sc-feature-probes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
#page-onlyfaith .sc-probe-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--sc-border);
    border-radius: 8px;
    min-width: 0;
}
#page-onlyfaith .sc-probe-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
#page-onlyfaith .sc-probe-dot.up { background: #10B981; box-shadow: 0 0 6px rgba(16, 185, 129, .7); }
#page-onlyfaith .sc-probe-dot.down { background: #EF4444; box-shadow: 0 0 6px rgba(239, 68, 68, .7); }
#page-onlyfaith .sc-probe-name { flex: 1; min-width: 0; color: var(--sc-text); text-decoration: none; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#page-onlyfaith .sc-probe-name:hover { text-decoration: underline; }
#page-onlyfaith .sc-probe-meta { font-size: 11px; color: var(--sc-muted); white-space: nowrap; }

/* Recent calls table */
#page-onlyfaith .sc-calls-wrap { overflow-x: auto; }
#page-onlyfaith table.sc-calls { width: 100%; border-collapse: collapse; font-size: 13px; }
#page-onlyfaith table.sc-calls th {
    text-align: left;
    padding: 8px;
    font-weight: 600;
    color: #9CA3AF;
    border-bottom: 1px solid var(--sc-border);
    white-space: nowrap;
}
#page-onlyfaith table.sc-calls td { padding: 7px 8px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
#page-onlyfaith table.sc-calls tr:last-child td { border-bottom: 0; }
#page-onlyfaith .of-feature-chip, #page-onlyfaith .of-site-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .02em;
    white-space: nowrap;
}
#page-onlyfaith .of-feature-chip {
    background: hsla(var(--chip-h, 260), 70%, 55%, .18);
    color: hsl(var(--chip-h, 260), 80%, 75%);
    border: 1px solid hsla(var(--chip-h, 260), 60%, 55%, .45);
}
#page-onlyfaith .of-site-chip {
    background: color-mix(in srgb, var(--chip-c, #7C3AED) 14%, transparent);
    color: var(--chip-c, #7C3AED);
    border: 1px solid color-mix(in srgb, var(--chip-c, #7C3AED) 40%, transparent);
}
#page-onlyfaith .of-failure-btn {
    background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
    font: inherit; text-decoration: underline dotted; text-underline-offset: 3px;
}

/* Provisioning banner keeps its existing look */
#page-onlyfaith .of-banner { border-radius: 8px; }

/* ------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------ */
@media (max-width: 1500px) {
    #page-onlyfaith .sc-top-grid { grid-template-columns: 1fr 1fr; }
    #page-onlyfaith .sc-top-grid .sc-mem-cell { grid-column: 1 / -1; }
    #page-onlyfaith .sc-bottom-grid { grid-template-columns: 1fr; }
}
@media (min-width: 1700px) {
    /* Content is full-width now (Nov 7, 2026), so the 4-across row fits
       from ~1700px viewport instead of 1900px. Below this the 2x2 base applies. */
    #page-onlyfaith .sc-lower-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
@media (max-width: 1100px) {
    #page-onlyfaith .sc-hero-chip { width: 110px; height: 110px; }
    #page-onlyfaith .sc-hero-holo { width: 84px; height: 84px; }
}
@media (max-width: 900px) {
    #page-onlyfaith .sc-top-grid { grid-template-columns: 1fr; }
    #page-onlyfaith .sc-lower-grid { grid-template-columns: 1fr; }
    #page-onlyfaith .sc-feature-probes-grid { grid-template-columns: 1fr; }
    #page-onlyfaith .sc-mem-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    #page-onlyfaith .sc-hero { flex-wrap: wrap; padding: 16px 16px 26px; gap: 12px; }
    #page-onlyfaith .sc-hero-title { font-size: 26px; }
    #page-onlyfaith .sc-hero-holo { display: none; }
    #page-onlyfaith .sc-hero-chip { width: 84px; height: 84px; }
    #page-onlyfaith .sc-hero-art { order: -1; }
    #page-onlyfaith .sc-cleanup { min-height: 44px; }
    #page-onlyfaith .sc-btn { min-height: 44px; padding: 10px 16px; }
    #page-onlyfaith .sc-health-controls select { min-height: 44px; }
    #page-onlyfaith .sc-kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    #page-onlyfaith .sc-mem-bars { grid-template-columns: 1fr; }
    #page-onlyfaith .sc-mem-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 430px) {
    #page-onlyfaith .sc-kpi-strip { grid-template-columns: 1fr !important; }
    #page-onlyfaith .sc-mem-metrics { grid-template-columns: 1fr 1fr; }
    #page-onlyfaith .sc-panel { padding: 14px; }
}

/* ------------------------------------------------------------------
 * Light mode — panels go light; the hero stays dark (artwork-led).
 * The smartaicoach-mobile.css aggressive inline-style overrides do
 * not apply here: this dashboard now uses classes, not inline dark
 * backgrounds, so this block owns the light palette.
 * ------------------------------------------------------------------ */
[data-theme="light"] #page-onlyfaith {
    --sc-surface: #FFFFFF;
    --sc-surface2: #F4F1FB;
    --sc-text: #1E293B;
    --sc-muted: #64748B;
    --sc-border: #DDD6F3;
    color: #1E293B;
}
[data-theme="light"] #page-onlyfaith .sc-panel {
    background: #FFFFFF;
    border-color: #DDD6F3;
    color: #1E293B;
    box-shadow: 0 1px 4px rgba(30, 41, 59, .06);
}
[data-theme="light"] #page-onlyfaith .sc-panel-head h2,
[data-theme="light"] #page-onlyfaith .sc-panel-title { color: #1E293B; }
[data-theme="light"] #page-onlyfaith .sc-kpi-strip .stat-card {
    background: #FFFFFF;
    border-color: #DDD6F3;
    color: #1E293B;
    box-shadow: 0 1px 4px rgba(30, 41, 59, .06);
}
[data-theme="light"] #page-onlyfaith .sc-kpi-strip .stat-value { color: #1E293B; }
[data-theme="light"] #page-onlyfaith .sc-kpi-icon {
    background: rgba(124, 58, 237, .10);
    border-color: rgba(124, 58, 237, .30);
}
[data-theme="light"] #page-onlyfaith table.sc-table th { background: #F4F1FB; color: #475569; }
[data-theme="light"] #page-onlyfaith table.sc-table td { border-bottom-color: rgba(30, 41, 59, .08); }
[data-theme="light"] #page-onlyfaith table.sc-calls th { color: #475569; border-bottom-color: #DDD6F3; }
[data-theme="light"] #page-onlyfaith table.sc-calls td { border-bottom-color: rgba(30, 41, 59, .08); }
[data-theme="light"] #page-onlyfaith .sc-track { background: #E2E8F0; }
[data-theme="light"] #page-onlyfaith .sc-probe-row {
    background: rgba(124, 58, 237, .05);
    border-color: #DDD6F3;
}
[data-theme="light"] #page-onlyfaith .sc-probe-name { color: #1E293B; }
[data-theme="light"] #page-onlyfaith .sc-health-controls select {
    background: #FFFFFF;
    color: #1E293B;
    border-color: #CBD5E1;
}
[data-theme="light"] #page-onlyfaith .sc-btn-ghost {
    background: rgba(30, 41, 59, .05);
    border-color: rgba(30, 41, 59, .14);
    color: #1E293B;
}
[data-theme="light"] #page-onlyfaith .of-feature-chip {
    color: hsl(var(--chip-h, 260), 70%, 38%);
    background: hsla(var(--chip-h, 260), 70%, 55%, .12);
}
[data-theme="light"] #page-onlyfaith .sc-mem-donut .sc-donut-val { fill: #1E293B; }
[data-theme="light"] #page-onlyfaith .sc-mem-donut .sc-donut-lbl { fill: #64748B; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    #page-onlyfaith .sc-track > div { transition: none; }
}

/* Appended by the SmartAICoach rebuild (2026-11-07): helpers used by onlyFaith.js */
#page-onlyfaith .sc-empty-cell { padding: 14px; text-align: center; opacity: .6; }
#page-onlyfaith .sc-mem-metric .sc-m-value.warn { color: #F59E0B; }

/* ------------------------------------------------------------------
 * Published Games card (2026-11-07): two game sub-cards, side by side
 * on desktop, stacked on mobile. Same panel language as the rest of
 * the dashboard; pills reuse .sc-pill.
 * ------------------------------------------------------------------ */
#page-onlyfaith .sc-games-panel { margin-bottom: 14px; }
#page-onlyfaith .sc-games-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
#page-onlyfaith .sc-game {
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--sc-border);
    border-radius: 10px;
    padding: 12px 14px;
    min-width: 0;
}
#page-onlyfaith .sc-game-name { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
#page-onlyfaith .sc-game-store {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, .06);
    font-size: 13px;
    min-width: 0;
}
#page-onlyfaith .sc-game-store:first-of-type { border-top: 0; }
#page-onlyfaith .sc-game-store .sc-store-label { font-weight: 600; min-width: 76px; }
#page-onlyfaith .sc-game-store .sc-store-ver { color: var(--sc-muted); overflow-wrap: anywhere; }
#page-onlyfaith .sc-game-store a { color: var(--sc-info); text-decoration: none; }
#page-onlyfaith .sc-game-store a:hover { text-decoration: underline; }
#page-onlyfaith .sc-game-note { font-size: 12px; color: var(--sc-muted); margin-top: 8px; line-height: 1.5; }
#page-onlyfaith .sc-game-error { font-size: 12px; color: #F59E0B; margin-top: 8px; line-height: 1.5; }
#page-onlyfaith .sc-game-error:empty { display: none; }
@media (max-width: 900px) {
    #page-onlyfaith .sc-games-grid { grid-template-columns: 1fr; }
}
/* The dashboard-wide 44px .sc-btn rule is beaten in practice by
   smartaicoach-mobile.css (#page-onlyfaith button = 40px at mobile
   widths, pre-existing for every dashboard button). This override
   restores the 44px touch target for the games card's Refresh button. */
@media (max-width: 720px) {
    #page-onlyfaith .sc-games-panel .sc-btn { min-height: 44px !important; }
}
[data-theme="light"] #page-onlyfaith .sc-game { background: rgba(124, 58, 237, .05); }
[data-theme="light"] #page-onlyfaith .sc-game-store { border-top-color: rgba(30, 41, 59, .08); }
