html, body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 0.94rem;
}

h1 {
    font-size: 1.55rem;
    font-weight: 600;
}

h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

.table > :not(caption) > * > * {
    padding: 0.35rem 0.5rem;
}

.tile {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.75rem 0.9rem;
    background: #fff;
    height: 100%;
}

.tile .flag {
    font-size: 1.6rem;
    line-height: 1;
}

.tile .num {
    font-size: 1.25rem;
    font-weight: 600;
}

.filterbar {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.9rem;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.transcript {
    white-space: pre-wrap;
    line-height: 1.5;
}

.small-muted {
    font-size: 0.82rem;
    color: #6c757d;
}

.dot {
    display: inline-block;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    margin-right: 0.35rem;
}

.dot-ok { background: #198754; }
.dot-bad { background: #dc3545; }
.dot-none { background: #adb5bd; }

.markdown-body h1 { font-size: 1.4rem; margin-top: 1rem; }
.markdown-body h2 { font-size: 1.15rem; margin-top: 1rem; }
.markdown-body h3 { font-size: 1rem; margin-top: 0.8rem; }
.markdown-body pre {
    background: #f6f8fa;
    padding: 0.6rem;
    border-radius: 0.4rem;
    overflow-x: auto;
}
.markdown-body code { font-size: 0.85rem; }
.markdown-body table { width: auto; border-collapse: collapse; margin: 0.6rem 0; }
.markdown-body table th, .markdown-body table td { border: 1px solid #dee2e6; padding: 0.3rem 0.5rem; }

.lineage-chain > div {
    border-left: 3px solid #dee2e6;
    padding-left: 0.8rem;
    margin-left: 0.4rem;
}

.scroll-box {
    max-height: 26rem;
    overflow: auto;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* A/B-Tests */
.ab-winbar {
    display: flex;
    height: 0.75rem;
    border-radius: 0.375rem;
    overflow: hidden;
    background: #e9ecef;
}

.ab-win-old { background: #6c757d; }
.ab-win-tie { background: #ced4da; }
.ab-win-new { background: #0d6efd; }

.ab-bar {
    height: 0.5rem;
    background: #e9ecef;
    border-radius: 0.25rem;
    overflow: hidden;
    margin: 0.1rem 0;
}

.ab-bar-old { height: 100%; background: #6c757d; }
.ab-bar-new { height: 100%; background: #0d6efd; }

.ab-stars .ab-star {
    font-size: 1.25rem;
    line-height: 1;
    color: #adb5bd;
    text-decoration: none;
}

.ab-stars .ab-star.on { color: #ffc107; }

.ab-columns .transcript {
    max-height: 28rem;
    overflow: auto;
}
