/* _content/FhAi.Web/Pages/ChatTest.razor.rz.scp.css */
.chat-page[b-hv7p8hgr1b] {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 56px);
    max-height: 900px;
}

.chat-header[b-hv7p8hgr1b] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.chat-header h1[b-hv7p8hgr1b] { margin-bottom: 3px; }

/* ── Chat window ────────────────────────────────────────────── */
.chat-window[b-hv7p8hgr1b] {
    flex: 1;
    overflow-y: auto;
    background: var(--surface);
    border-radius: var(--r);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 12px;
    min-height: 0;
}

.chat-empty[b-hv7p8hgr1b] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: var(--muted);
    text-align: center;
    padding: 40px;
}

.chat-empty .oi[b-hv7p8hgr1b] { font-size: 2.5rem; margin-bottom: 12px; opacity: .25; }
.chat-empty p[b-hv7p8hgr1b] { margin: 0 0 20px; font-size: .9rem; }

.example-section[b-hv7p8hgr1b] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 560px;
}

.example-label[b-hv7p8hgr1b] {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
}

.example-chips[b-hv7p8hgr1b] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.example-chip[b-hv7p8hgr1b] {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 99px;
    padding: 6px 14px;
    font-size: .82rem;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .1s;
    font-family: inherit;
}

.example-chip:hover[b-hv7p8hgr1b] {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-ll);
    transform: translateY(-1px);
}

/* ── Messages ────────────────────────────────────────────────── */
.msg-row[b-hv7p8hgr1b] {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.msg-user[b-hv7p8hgr1b] {
    flex-direction: row-reverse;
}

.bubble[b-hv7p8hgr1b] {
    max-width: 72%;
    padding: 10px 14px;
    border-radius: var(--r);
    font-size: .9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.bubble-user[b-hv7p8hgr1b] {
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: var(--r-sm);
}

.bubble-ai[b-hv7p8hgr1b] {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: var(--r-sm);
}

/* AI avatar */
.ai-avatar[b-hv7p8hgr1b] {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
}

.ai-body[b-hv7p8hgr1b] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

/* Suggestions */
.suggestions[b-hv7p8hgr1b] { display: flex; flex-direction: column; gap: 5px; }

.suggestions-label[b-hv7p8hgr1b] {
    font-size: .72rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.chips[b-hv7p8hgr1b] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip[b-hv7p8hgr1b] {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: .78rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: opacity .15s, transform .1s;
    user-select: none;
}

.chip-warn[b-hv7p8hgr1b]    { background: var(--warn-bg);    color: var(--warn);    border-color: var(--warn-bg); }
.chip-primary[b-hv7p8hgr1b] { background: var(--primary-l);  color: var(--primary); border-color: var(--primary-l); }
.chip-primary:hover[b-hv7p8hgr1b] { opacity: .8; transform: translateY(-1px); }

.msg-meta[b-hv7p8hgr1b] { display: flex; gap: 6px; align-items: center; }

/* Typing indicator */
.bubble.typing[b-hv7p8hgr1b] {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    min-width: 56px;
}

.bubble.typing span[b-hv7p8hgr1b] {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--muted);
    display: inline-block;
    animation: typing-bounce-b-hv7p8hgr1b .9s infinite;
}

.bubble.typing span:nth-child(2)[b-hv7p8hgr1b] { animation-delay: .15s; }
.bubble.typing span:nth-child(3)[b-hv7p8hgr1b] { animation-delay: .3s; }

@keyframes typing-bounce-b-hv7p8hgr1b {
    0%, 60%, 100% { transform: translateY(0); opacity: .4; }
    30% { transform: translateY(-5px); opacity: 1; }
}

/* ── Input bar ───────────────────────────────────────────────── */
.chat-input-bar[b-hv7p8hgr1b] {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.chat-input[b-hv7p8hgr1b] { flex: 1; }

.chat-input-bar .btn[b-hv7p8hgr1b] {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
    flex-shrink: 0;
}

/* ── Trace toggle button ─────────────────────────────────────── */
.trace-toggle[b-hv7p8hgr1b] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 2px 10px;
    font-size: .75rem;
    color: var(--muted);
    cursor: pointer;
    font-family: inherit;
    transition: border-color .15s, color .15s;
}
.trace-toggle:hover[b-hv7p8hgr1b] { border-color: var(--primary); color: var(--primary); }
.trace-time[b-hv7p8hgr1b] { font-family: monospace; font-size: .72rem; opacity: .7; }

/* ── Trace panel ─────────────────────────────────────────────── */
.trace-panel[b-hv7p8hgr1b] {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 10px 12px;
    font-size: .78rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 680px;
}

/* Stage row */
.ts[b-hv7p8hgr1b] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 4px;
}
.ts-hit[b-hv7p8hgr1b]    { background: rgba(16,185,129,.10); }
.ts-warn[b-hv7p8hgr1b]   { background: rgba(245,158,11,.10); }
.ts-skip[b-hv7p8hgr1b]   { background: rgba(107,114,128,.07); }
.ts-normal[b-hv7p8hgr1b] { background: transparent; }

.ts-icon[b-hv7p8hgr1b] {
    font-family: monospace;
    font-size: .7rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    flex-shrink: 0;
}
.ts-label[b-hv7p8hgr1b] {
    font-weight: 600;
    color: var(--text);
    min-width: 72px;
    flex-shrink: 0;
}
.ts-status[b-hv7p8hgr1b] { color: var(--muted); font-family: monospace; font-size: .76rem; }

.ts-detail[b-hv7p8hgr1b] {
    display: flex;
    gap: 4px;
    width: 100%;
    padding-left: 54px;
    font-size: .75rem;
    color: var(--muted);
}
.ts-dt-label[b-hv7p8hgr1b] { flex-shrink: 0; font-weight: 600; }
.ts-dt-val[b-hv7p8hgr1b]   { font-family: monospace; word-break: break-all; }
.ts-rewrite[b-hv7p8hgr1b]  { color: var(--primary); }

/* Candidate table */
.trace-table-wrap[b-hv7p8hgr1b] {
    overflow-x: auto;
    margin: 4px 0 4px 54px;
    border-radius: 4px;
    border: 1px solid var(--border);
}
.trace-table[b-hv7p8hgr1b] {
    width: 100%;
    border-collapse: collapse;
    font-size: .73rem;
}
.trace-table th[b-hv7p8hgr1b] {
    padding: 4px 8px;
    background: var(--surface);
    color: var(--muted);
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
    cursor: default;
}
.trace-table th:first-child[b-hv7p8hgr1b] { text-align: left; }
.trace-table td[b-hv7p8hgr1b] {
    padding: 3px 8px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.trace-table tr:last-child td[b-hv7p8hgr1b] { border-bottom: none; }
.trace-table tr.tr-topk[b-hv7p8hgr1b] { background: rgba(79,70,229,.06); }
.td-title[b-hv7p8hgr1b] { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-num[b-hv7p8hgr1b]   { font-family: monospace; text-align: right; }
.td-hybrid[b-hv7p8hgr1b]{ font-weight: 700; }
.score-high[b-hv7p8hgr1b] { color: #10b981; }
.score-mid[b-hv7p8hgr1b]  { color: #f59e0b; }
.score-low[b-hv7p8hgr1b]  { color: #ef4444; }
.td-topk[b-hv7p8hgr1b]   { text-align: center; color: #10b981; font-weight: 700; }

/* Context preview */
.ctx-preview[b-hv7p8hgr1b] {
    margin: 2px 0 2px 54px;
    font-size: .75rem;
}
.ctx-preview summary[b-hv7p8hgr1b] {
    cursor: pointer;
    color: var(--muted);
    padding: 3px 0;
    user-select: none;
}
.ctx-preview pre[b-hv7p8hgr1b] {
    margin: 6px 0 0;
    padding: 8px 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: .72rem;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 200px;
    overflow-y: auto;
    color: var(--text);
}

/* Total row */
.trace-total[b-hv7p8hgr1b] {
    text-align: right;
    font-size: .75rem;
    color: var(--muted);
    padding: 4px 6px 0;
    border-top: 1px solid var(--border);
    margin-top: 2px;
}
.trace-total strong[b-hv7p8hgr1b] { color: var(--text); font-family: monospace; }
/* _content/FhAi.Web/Pages/Index.razor.rz.scp.css */
.stats-row[b-o925t7zkr0] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stats-row .card[b-o925t7zkr0] { margin-bottom: 0; }

.link-grid[b-o925t7zkr0] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.link-card[b-o925t7zkr0] {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    text-decoration: none;
    transition: box-shadow .15s, transform .15s, border-color .15s;
    box-shadow: var(--shadow-sm);
}

.link-card:hover[b-o925t7zkr0] {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    border-color: var(--primary);
    text-decoration: none;
}

.link-card .oi[b-o925t7zkr0] {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.link-card-label[b-o925t7zkr0] {
    font-weight: 600;
    font-size: .9rem;
    color: var(--text);
}

.link-card-desc[b-o925t7zkr0] {
    font-size: .78rem;
    color: var(--muted);
    line-height: 1.4;
}
/* _content/FhAi.Web/Pages/KbDetail.razor.rz.scp.css */
.info-bar[b-0rwh97d3ep] {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--surface);
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    font-size: .875rem;
}

.info-count[b-0rwh97d3ep] { color: var(--muted); }
.info-count strong[b-0rwh97d3ep] { color: var(--text); }

.empty-state[b-0rwh97d3ep] {
    text-align: center;
    padding: 56px 24px;
    color: var(--muted);
    background: var(--surface);
    border-radius: var(--r);
    border: 1px solid var(--border);
}
.empty-state .oi[b-0rwh97d3ep] {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
    opacity: .3;
}
.empty-state p[b-0rwh97d3ep] { margin: 0; font-size: .9rem; }
.empty-state a[b-0rwh97d3ep] { color: var(--primary); }

/* Prevent action buttons from wrapping */
.row-actions[b-0rwh97d3ep] { white-space: nowrap; display: flex; gap: 6px; justify-content: flex-end; }

/* Inline edit row */
.row-editing > td[b-0rwh97d3ep] { background: #f5f3ff !important; }
.edit-row > td[b-0rwh97d3ep] { padding: 0 !important; border-bottom: 2px solid var(--primary) !important; }
.edit-panel[b-0rwh97d3ep] {
    padding: 16px 20px;
    background: var(--primary-ll);
    border-top: none;
}

:root[data-theme="dark"] .row-editing > td[b-0rwh97d3ep] { background: rgba(79,70,229,.12) !important; }
:root[data-theme="dark"] .edit-panel[b-0rwh97d3ep] { background: rgba(79,70,229,.08); }
@media (prefers-color-scheme: dark) {
    :root[data-theme="system"] .row-editing > td[b-0rwh97d3ep] { background: rgba(79,70,229,.12) !important; }
    :root[data-theme="system"] .edit-panel[b-0rwh97d3ep] { background: rgba(79,70,229,.08); }
}
/* _content/FhAi.Web/Pages/KbImport.razor.rz.scp.css */
.import-grid[b-6j8zmmxt3m] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.import-grid .card[b-6j8zmmxt3m] { margin-bottom: 0; }

.upload-zone[b-6j8zmmxt3m] {
    border: 2px dashed var(--border);
    border-radius: var(--r);
    padding: 36px 20px;
    text-align: center;
    position: relative;
    transition: border-color .15s, background .15s;
    cursor: pointer;
}

.upload-zone:hover[b-6j8zmmxt3m] {
    border-color: var(--primary);
    background: var(--primary-ll);
}

.upload-input[b-6j8zmmxt3m] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

@media (max-width: 640px) {
    .import-grid[b-6j8zmmxt3m] { grid-template-columns: 1fr; }
}
/* _content/FhAi.Web/Pages/KbList.razor.rz.scp.css */
.create-panel[b-p9w8mb1qw3] { margin-bottom: 20px; }
.create-panel h3[b-p9w8mb1qw3] { margin-bottom: 16px; }

.kb-name[b-p9w8mb1qw3] {
    font-weight: 600;
    color: var(--text);
}
.kb-name:hover[b-p9w8mb1qw3] { color: var(--primary); text-decoration: none; }

.row-actions[b-p9w8mb1qw3] {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    align-items: center;
}

.empty-state[b-p9w8mb1qw3] {
    text-align: center;
    padding: 56px 24px;
    color: var(--muted);
    background: var(--surface);
    border-radius: var(--r);
    border: 1px solid var(--border);
}

.empty-state .oi[b-p9w8mb1qw3] {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
    opacity: .3;
}

.empty-state p[b-p9w8mb1qw3] { margin: 0; font-size: .9rem; }

.kb-desc[b-p9w8mb1qw3] { font-size: .8rem; color: var(--muted); margin-top: 2px; }

.row-editing > td[b-p9w8mb1qw3] { background: #f5f3ff; }
:root[data-theme="dark"] .row-editing > td[b-p9w8mb1qw3] { background: rgba(79,70,229,.1); }
@media (prefers-color-scheme: dark) {
    :root[data-theme="system"] .row-editing > td[b-p9w8mb1qw3] { background: rgba(79,70,229,.1); }
}
/* _content/FhAi.Web/Pages/Login.razor.rz.scp.css */
.login-root[b-401fqxdbpy] {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(150deg, #0f0e1a 0%, #1e1a3a 55%, #130d28 100%);
    padding: 24px 16px;
}

.login-card[b-401fqxdbpy] {
    background: var(--surface);
    border-radius: var(--r-lg);
    padding: 36px 40px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45), 0 4px 16px rgba(0, 0, 0, .2);
}

/* Brand mark */
.login-brand[b-401fqxdbpy] {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.brand-mark[b-401fqxdbpy] {
    width: 38px;
    height: 38px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.login-brand-name[b-401fqxdbpy] {
    font-weight: 700;
    font-size: .95rem;
    color: var(--text);
    line-height: 1.2;
}

.login-brand-sub[b-401fqxdbpy] {
    font-size: .72rem;
    color: var(--muted);
    margin-top: 1px;
}

/* Heading */
.login-heading[b-401fqxdbpy] { margin-bottom: 20px; }

.login-heading h2[b-401fqxdbpy] {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 3px;
    color: var(--text);
}

.login-heading p[b-401fqxdbpy] {
    color: var(--muted);
    font-size: .875rem;
    margin: 0;
}

/* Error */
.login-error[b-401fqxdbpy] {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--danger-bg);
    color: #881337;
    border-left: 3px solid var(--danger);
    border-radius: var(--r-sm);
    padding: 9px 13px;
    font-size: .875rem;
    margin-bottom: 16px;
}

.login-error .oi[b-401fqxdbpy] { font-size: .8rem; flex-shrink: 0; }

/* Form */
.login-field[b-401fqxdbpy] { margin-bottom: 14px; }

.login-field label[b-401fqxdbpy] {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.login-field input[b-401fqxdbpy] {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    font-size: .9rem;
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}

.login-field input:focus[b-401fqxdbpy] {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(90, 84, 248, .12);
}

.login-submit[b-401fqxdbpy] {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    font-size: .95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, box-shadow .15s, transform .1s;
}

.login-submit:hover[b-401fqxdbpy] {
    background: var(--primary-h);
    box-shadow: 0 3px 12px rgba(90, 84, 248, .35);
    transform: translateY(-1px);
}

.login-submit:active[b-401fqxdbpy] { transform: translateY(0); }

/* Login language switcher */
.login-lang[b-401fqxdbpy] {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.login-lang-btn[b-401fqxdbpy] {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 600;
    padding: 4px 10px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color .15s, color .15s, background .15s;
}

.login-lang-btn:hover[b-401fqxdbpy] {
    border-color: var(--primary);
    color: var(--text);
}

.login-lang-btn.active[b-401fqxdbpy] {
    background: rgba(90, 84, 248, .08);
    border-color: var(--primary);
    color: var(--primary);
}

.login-lang-dim[b-401fqxdbpy] {
    opacity: .5;
    font-size: .65rem;
}

@media (max-width: 420px) {
    .login-card[b-401fqxdbpy] { padding: 28px 24px; }
}
/* _content/FhAi.Web/Pages/PipelineConfig.razor.rz.scp.css */
.stage3-info[b-e2fezujsay] {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 4px;
    font-size: .875rem;
}

.stage3-branch[b-e2fezujsay] {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.branch-dot[b-e2fezujsay] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-success[b-e2fezujsay] { background: #22c55e; }
.dot-warn[b-e2fezujsay]    { background: #f59e0b; }
.dot-muted[b-e2fezujsay]   { background: #94a3b8; }
/* _content/FhAi.Web/Pages/RecallTest.razor.rz.scp.css */
.search-card[b-1ppndare0l] { margin-bottom: 20px; }

.search-row[b-1ppndare0l] {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-row .form-control[b-1ppndare0l] { flex: 1; }
.search-row .btn[b-1ppndare0l] { flex-shrink: 0; }

.result-summary[b-1ppndare0l] {
    font-size: .875rem;
    color: var(--muted);
    margin-bottom: 14px;
}
.result-summary strong[b-1ppndare0l] { color: var(--text); }

/* Threshold reference bar */
.threshold-bar[b-1ppndare0l] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 16px;
}
.threshold-bar .oi[b-1ppndare0l] { font-size: .8rem; flex-shrink: 0; }
.t-chip[b-1ppndare0l] {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 99px;
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
}
.t-normal[b-1ppndare0l] { background: #dcfce7; color: #166534; }
.t-guided[b-1ppndare0l] { background: #fef3c7; color: #92400e; }
.t-low[b-1ppndare0l]    { background: #f1f5f9; color: #475569; }
.t-note[b-1ppndare0l]   { font-size: .75rem; color: var(--muted); font-style: italic; margin-left: 4px; }

/* Score badges */
.score-badge[b-1ppndare0l] {
    display: inline-block;
    padding: 2px 7px;
    border-radius: var(--r-sm);
    font-size: .78rem;
}
.score-raw[b-1ppndare0l]  { background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.score-high[b-1ppndare0l] { background: #dcfce7; color: #166534; }
.score-mid[b-1ppndare0l]  { background: #fef3c7; color: #92400e; }
.score-low[b-1ppndare0l]  { background: #f1f5f9; color: #64748b; }

:root[data-theme="dark"] .score-high[b-1ppndare0l] { background: rgba(21,128,61,.2); color: #4ade80; }
:root[data-theme="dark"] .score-mid[b-1ppndare0l]  { background: rgba(180,83,9,.2);  color: #fcd34d; }
:root[data-theme="dark"] .score-low[b-1ppndare0l]  { background: rgba(255,255,255,.06); color: #94a3b8; }
@media (prefers-color-scheme: dark) {
    :root[data-theme="system"] .score-high[b-1ppndare0l] { background: rgba(21,128,61,.2); color: #4ade80; }
    :root[data-theme="system"] .score-mid[b-1ppndare0l]  { background: rgba(180,83,9,.2);  color: #fcd34d; }
    :root[data-theme="system"] .score-low[b-1ppndare0l]  { background: rgba(255,255,255,.06); color: #94a3b8; }
}

/* Row tier coloring */
.row-normal[b-1ppndare0l] { background: rgba(22,163,74,.04); }
.row-guided[b-1ppndare0l] { background: rgba(245,158,11,.05); }
.row-low[b-1ppndare0l]    { opacity: .65; }

:root[data-theme="dark"] .t-normal[b-1ppndare0l] { background: rgba(21,128,61,.2); color: #4ade80; }
:root[data-theme="dark"] .t-guided[b-1ppndare0l] { background: rgba(180,83,9,.2);  color: #fcd34d; }
:root[data-theme="dark"] .t-low[b-1ppndare0l]    { background: rgba(255,255,255,.06); color: #94a3b8; }
:root[data-theme="dark"] .row-normal[b-1ppndare0l] { background: rgba(22,163,74,.06); }
:root[data-theme="dark"] .row-guided[b-1ppndare0l] { background: rgba(245,158,11,.06); }
@media (prefers-color-scheme: dark) {
    :root[data-theme="system"] .t-normal[b-1ppndare0l] { background: rgba(21,128,61,.2); color: #4ade80; }
    :root[data-theme="system"] .t-guided[b-1ppndare0l] { background: rgba(180,83,9,.2);  color: #fcd34d; }
    :root[data-theme="system"] .t-low[b-1ppndare0l]    { background: rgba(255,255,255,.06); color: #94a3b8; }
    :root[data-theme="system"] .row-normal[b-1ppndare0l] { background: rgba(22,163,74,.06); }
    :root[data-theme="system"] .row-guided[b-1ppndare0l] { background: rgba(245,158,11,.06); }
}
/* _content/FhAi.Web/Shared/MainLayout.razor.rz.scp.css */
/* ── Shell layout ────────────────────────────────────────────── */
.shell[b-jp4k4vdmx7] {
    display: flex;
    min-height: 100vh;
}

/* ── Controls (lang + theme) ─────────────────────────────────── */
.sidebar-controls[b-jp4k4vdmx7] {
    padding: 6px 10px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.lang-row[b-jp4k4vdmx7] {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.lang-btn[b-jp4k4vdmx7] {
    background: transparent;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 5px;
    color: var(--sidebar-t);
    font-size: .72rem;
    font-weight: 600;
    padding: 4px 9px;
    cursor: pointer;
    transition: background .12s, color .12s, border-color .12s;
    font-family: inherit;
    letter-spacing: .02em;
}

.lang-btn:hover[b-jp4k4vdmx7] { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.lang-btn.lang-active[b-jp4k4vdmx7] { background: var(--sidebar-hi); color: var(--sidebar-ht); border-color: rgba(90,84,248,.4); }
.lang-btn.lang-dim[b-jp4k4vdmx7] { opacity: .48; font-size: .65rem; }
.lang-btn.lang-dim:hover[b-jp4k4vdmx7] { opacity: 1; }
.lang-btn.lang-dim.lang-active[b-jp4k4vdmx7] { opacity: 1; }

.theme-btn[b-jp4k4vdmx7] {
    background: transparent;
    border: none;
    color: var(--sidebar-t);
    cursor: pointer;
    font-size: 1rem;
    padding: 3px 5px;
    border-radius: 5px;
    transition: background .12s, color .12s;
    line-height: 1;
    flex-shrink: 0;
}
.theme-btn:hover[b-jp4k4vdmx7] { background: rgba(255,255,255,.08); color: #fff; }

/* ── Sidebar ─────────────────────────────────────────────────── */
.sidebar[b-jp4k4vdmx7] {
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    flex-shrink: 0;
    z-index: 100;
    overflow: hidden;
}

.sidebar-brand[b-jp4k4vdmx7] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    flex-shrink: 0;
}

.brand-mark[b-jp4k4vdmx7] {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: -.02em;
}

.brand-text[b-jp4k4vdmx7] {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.brand-name[b-jp4k4vdmx7] {
    font-size: .9rem;
    font-weight: 700;
    color: #fff;
}

.brand-sub[b-jp4k4vdmx7] {
    font-size: .65rem;
    color: var(--sidebar-t);
    opacity: .7;
    letter-spacing: .02em;
}

/* Nav */
.sidebar-nav[b-jp4k4vdmx7] {
    flex: 1;
    padding: 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    scrollbar-width: none;
}

.sidebar-nav[b-jp4k4vdmx7]::-webkit-scrollbar { display: none; }

[b-jp4k4vdmx7] .sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border-radius: var(--r-sm);
    color: var(--sidebar-t);
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .12s, color .12s;
    white-space: nowrap;
}

[b-jp4k4vdmx7] .sidebar-nav a:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff;
    text-decoration: none;
}

[b-jp4k4vdmx7] .sidebar-nav a.active {
    background: var(--sidebar-hi);
    color: var(--sidebar-ht);
}

[b-jp4k4vdmx7] .sidebar-nav a .oi {
    font-size: .8rem;
    width: 15px;
    text-align: center;
    flex-shrink: 0;
    opacity: .9;
}

/* Footer */
.sidebar-footer[b-jp4k4vdmx7] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    font-size: .8rem;
    color: var(--sidebar-t);
    flex-shrink: 0;
}

.sidebar-footer > .oi[b-jp4k4vdmx7] { font-size: .8rem; opacity: .6; }

.footer-name[b-jp4k4vdmx7] {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .8rem;
}

[b-jp4k4vdmx7] .logout-link {
    color: var(--sidebar-t) !important;
    opacity: .65;
    text-decoration: none !important;
    transition: opacity .15s, color .15s;
    padding: 4px 5px;
    border-radius: 4px;
    line-height: 1;
    display: flex;
    align-items: center;
}

[b-jp4k4vdmx7] .logout-link:hover {
    opacity: 1;
    color: #ff8585 !important;
    background: rgba(255, 255, 255, .06);
    text-decoration: none !important;
}

/* ── Main content ────────────────────────────────────────────── */
.main-content[b-jp4k4vdmx7] {
    flex: 1;
    padding: 28px 32px;
    overflow-x: hidden;
    min-width: 0;
    background: var(--bg);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
    .shell[b-jp4k4vdmx7] { flex-direction: column; }
    .sidebar[b-jp4k4vdmx7] { width: 100%; height: auto; position: static; }
    .sidebar-nav[b-jp4k4vdmx7] { flex-direction: row; flex-wrap: wrap; padding: 6px; }
    [b-jp4k4vdmx7] .sidebar-nav a { padding: 7px 10px; font-size: .8rem; gap: 6px; }
    [b-jp4k4vdmx7] .sidebar-nav a span:last-child { display: none; }
    .main-content[b-jp4k4vdmx7] { padding: 16px; }
}
/* _content/FhAi.Web/Shared/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-q2qkzkxtcf] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-q2qkzkxtcf] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-q2qkzkxtcf] {
    font-size: 1.1rem;
}

.oi[b-q2qkzkxtcf] {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

.nav-item[b-q2qkzkxtcf] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-q2qkzkxtcf] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-q2qkzkxtcf] {
        padding-bottom: 1rem;
    }

    .nav-item[b-q2qkzkxtcf]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-q2qkzkxtcf]  a.active {
    background-color: rgba(255,255,255,0.25);
    color: white;
}

.nav-item[b-q2qkzkxtcf]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-q2qkzkxtcf] {
        display: none;
    }

    .collapse[b-q2qkzkxtcf] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
    
    .nav-scrollable[b-q2qkzkxtcf] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
