html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Prompt editor */
.prompt-hero {
    background: linear-gradient(120deg, #0f172a, #123c64 50%, #0d6ab5);
    color: #f1f5ff;
    border-radius: 18px;
    padding: 26px 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
}

.prompt-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.08), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.06), transparent 40%);
    pointer-events: none;
}

.pulse-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 16px;
    padding: 12px 16px;
    min-width: 170px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.glass-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border-radius: 14px;
    border: 1px solid #e6ecf5;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.prompt-editor-textarea {
    font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
    background: #0f172a;
    color: #e2e8f0;
    border-color: #0f172a;
    min-height: 260px;
}

.prompt-editor-textarea:focus {
    color: #e2e8f0;
    background: #0f172a;
    box-shadow: 0 0 0 0.1rem #0f172a, 0 0 0 0.25rem rgba(13, 106, 181, 0.35);
}

.session-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

.session-tile {
    border: 1px solid #e0e7f1;
    border-radius: 12px;
    background: #fff;
    padding: 12px 14px;
    text-align: left;
    transition: all 0.18s ease;
    cursor: pointer;
}

.session-tile:hover {
    border-color: #2b73ff;
    box-shadow: 0 10px 30px rgba(25, 58, 116, 0.12);
}

.session-tile.active {
    border-color: #2b73ff;
    background: linear-gradient(180deg, #f5f9ff 0%, #eef4ff 100%);
    box-shadow: 0 12px 36px rgba(43, 115, 255, 0.18);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2b73ff;
    display: inline-block;
    box-shadow: 0 0 0 6px rgba(43, 115, 255, 0.12);
}

.empty-preview {
    padding: 22px;
    border: 1px dashed #c9d5e8;
    border-radius: 12px;
    background: #f8fbff;
}

.sample-card {
    background: linear-gradient(180deg, #0b1224 0%, #0f172a 100%);
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 16px;
    color: #e2e8f0;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.sample-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.1);
}

.sample-context {
    border-top: 1px solid #1f2937;
    padding-top: 8px;
    font-size: 12px;
}

/* User directory */
.ud-weeks {
    display: inline-flex;
    gap: 2px;
    vertical-align: middle;
}

.ud-weeks > span {
    width: 9px;
    height: 16px;
    border-radius: 2px;
}

.ud-chip {
    border: 1px solid #dee2e6;
    border-radius: 999px;
    background: #fff;
    padding: 2px 10px 2px 4px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.ud-chip.active {
    border-color: #212529;
    box-shadow: inset 0 0 0 1px #212529;
}

.ud-chip .ud-dot,
.ud-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 4px;
}

.ud-tag {
    display: inline-block;
    border-radius: 4px;
    padding: 0 5px;
    font-size: 0.72rem;
    line-height: 1.5;
    background: #eef1f4;
    color: #343a40;
    margin-right: 3px;
    white-space: nowrap;
}

.ud-tag.gold { background: #ffe69c; color: #523e00; }
.ud-tag.warn { background: #f8d7da; color: #842029; }

.ud-table th.sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.ud-table td {
    white-space: nowrap;
}

.ud-bar {
    position: relative;
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
}

.ud-bar > .fill {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: 4px;
    background: #198754;
}

.ud-bar > .median {
    position: absolute;
    top: -3px;
    bottom: -3px;
    left: 50%;
    width: 2px;
    background: #212529;
}

.ud-heat {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(7, 14px);
    grid-auto-columns: 14px;
    gap: 2px;
}

.ud-heat > span {
    border-radius: 2px;
    background: #eef1f4;
}

.ud-heat > span.opened { background: #b6d4fe; }
.ud-heat > span.trained { background: #198754; }
.ud-heat > span.future { background: transparent; }

.ud-day {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    margin: 0 0 6px;
}

.ud-visit + .ud-day {
    margin-top: 18px;
}

.ud-visit {
    margin-bottom: 12px;
}

.ud-count {
    font-weight: 600;
    margin-left: 4px;
}

.ud-stat .value {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.1;
}

.ud-mini {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 56px;
}

.ud-mini > div {
    flex: 1;
    text-align: center;
    font-size: 0.7rem;
    color: #6c757d;
}

.ud-mini .col-bar {
    background: #198754;
    border-radius: 2px 2px 0 0;
    min-height: 1px;
}

/* User page: app use and events */
.ud-use-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1rem;
}

.ud-use-stats .value {
    font-size: 1.3rem;
}

.ud-days {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 64px;
}

.ud-days > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.ud-days .bar {
    background: #6ea8fe;
    border-radius: 2px 2px 0 0;
}

.ud-days .bar.faint { background: #cfe2ff; }

.ud-days .day-mark {
    height: 4px;
    margin-top: 2px;
    border-radius: 1px;
}

.ud-days .day-mark.trained { background: #198754; }

.ud-events tr.ud-area td {
    background: #f8f9fa;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #495057;
}

.ud-events tr.ud-event { cursor: pointer; }
.ud-events tr.ud-event:hover td { background: #f8f9fa; }
.ud-events tr.ud-event.open td { background: #eef4ff; border-bottom-color: transparent; }
.ud-events tr.ud-event.quiet { color: #6c757d; }
.ud-events tr.ud-event-detail td { background: #eef4ff; }

.ud-events .caret {
    display: inline-block;
    width: 12px;
    color: #6c757d;
    font-size: 0.75rem;
}

.ud-event-doc {
    font-size: 0.78rem;
    color: #6c757d;
    margin-left: 12px;
    max-width: 520px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ud-event-body {
    cursor: default;
    font-size: 0.875rem;
    padding-left: 12px;
}

.ud-props td:first-child { width: 40%; }
.ud-props .ud-event-doc { margin-left: 0; white-space: normal; }

.ud-occurrences td {
    font-size: 0.78rem;
    vertical-align: top;
}

.ud-kv > span {
    display: inline-block;
    margin-right: 10px;
    word-break: break-all;
}

/* Home */
.home-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 991.98px) {
    .home-tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
    .home-tiles { grid-template-columns: 1fr; }
    .home-bar-row { grid-template-columns: 8rem 1fr 4.5rem; }
}

.home-tile {
    display: block;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.9rem 1rem;
    color: inherit;
    text-decoration: none;
}

.home-tile:hover {
    border-color: #adb5bd;
    color: inherit;
}

.home-tile-label,
.home-group {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6c757d;
}

.home-tile-row {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin: 0.15rem 0 0.25rem;
}

.home-tile-value {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.home-tile-note {
    font-size: 0.8rem;
    color: #6c757d;
}

.home-delta {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    white-space: nowrap;
}

.home-delta.up { color: #146c43; }
.home-delta.down { color: #b02a37; }

.home-spark {
    margin-left: auto;
    align-self: center;
    width: 84px;
    height: 32px;
}

.home-group {
    margin: 0.9rem 0 0.3rem;
}

.home-group:first-child {
    margin-top: 0;
}

.home-bar-row {
    display: grid;
    grid-template-columns: 11rem 1fr 5.5rem;
    align-items: center;
    gap: 0.75rem;
    padding: 0.2rem 0;
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
}

a.home-bar-row:hover {
    background: #f8f9fa;
    color: inherit;
}

.home-bar-label .ud-dot {
    margin: 0 0.35rem 0 0;
}

.home-bar {
    height: 10px;
    border-radius: 3px;
    background: #f1f3f5;
    overflow: hidden;
}

.home-bar > span {
    display: block;
    height: 100%;
    border-radius: 3px;
}

.home-bar-value {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.home-bar-value > span {
    margin-left: 0.3rem;
}

.home-list th {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
}

.home-list td,
.home-list th {
    padding-left: 1rem;
    white-space: nowrap;
}

/* Onboarding */
.ob-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.ob-kpi {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #fff;
    padding: 14px 16px;
    text-align: left;
}

.ob-kpi-button {
    cursor: pointer;
}

.ob-kpi-button.active {
    border-color: #0d6efd;
    box-shadow: inset 0 0 0 1px #0d6efd;
}

.ob-kpi .label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ob-kpi .value {
    font-size: 1.9rem;
    font-weight: 650;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.ob-kpi .value .pct,
.ob-funnel-bar .pct {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6c757d;
}

.ob-kpi .note {
    font-size: 0.78rem;
    color: #6c757d;
}

.ob-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #fff;
    padding: 16px 18px;
}

.ob-funnel-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 150px;
    gap: 12px;
    align-items: center;
    padding: 3px 0;
}

.ob-funnel-label {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ob-funnel-bar {
    position: relative;
    height: 24px;
    border-radius: 6px;
    background: #f1f3f5;
}

.ob-funnel-bar > .fill {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: 6px;
    background: #8fc9a3;
    transition: width 0.3s ease;
}

.ob-funnel-bar > .fill.app {
    background: #4caf78;
}

.ob-funnel-bar > .count {
    position: absolute;
    left: 8px;
    top: 0;
    line-height: 24px;
    font-size: 0.82rem;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    color: #14321f;
}

.ob-funnel-side {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.ob-funnel-split {
    margin: 8px 0 2px 162px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #adb5bd;
    border-top: 1px dashed #dee2e6;
    padding-top: 6px;
}

.ob-funnel-note {
    margin: -1px 0 2px 162px;
    font-size: 0.72rem;
    color: #adb5bd;
}

.ob-stop {
    border: 0;
    border-radius: 999px;
    padding: 0 8px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #f8d7da;
    color: #842029;
    cursor: pointer;
    font-variant-numeric: tabular-nums;
}

.ob-stop.active {
    background: #842029;
    color: #fff;
}

.ob-live-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #0d6efd;
}

.ob-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0d6efd;
    margin-right: 3px;
    animation: ob-pulse 1.6s ease-in-out infinite;
}

@keyframes ob-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.5); }
    50% { box-shadow: 0 0 0 4px rgba(13, 110, 253, 0); }
}

.ob-pages th {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    white-space: nowrap;
}

.ob-pages td {
    font-variant-numeric: tabular-nums;
}

.ob-table td {
    vertical-align: middle;
}

.ob-row {
    cursor: pointer;
}

.ob-row:hover > td,
.ob-row.open > td {
    background: #f8f9fa;
}

.ob-signals {
    max-width: 340px;
    white-space: normal;
}

.ob-track {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.ob-track > span {
    width: 16px;
    height: 12px;
    border-radius: 3px;
    background: #e9ecef;
}

.ob-track > span.gap {
    width: 6px;
    background: transparent;
}

.ob-track > span.done { background: #4caf78; }
.ob-track > span.stop { background: #dc3545; }
.ob-track > span.live { background: #0d6efd; animation: ob-pulse 1.6s ease-in-out infinite; }
.ob-track > span.next { background: #fff; box-shadow: inset 0 0 0 2px #dc3545; }
.ob-track > span.next.live { background: #fff; box-shadow: inset 0 0 0 2px #0d6efd; animation: none; }
.ob-track > span.skip { background: repeating-linear-gradient(135deg, #e9ecef 0 3px, #fff 3px 6px); }
.ob-track > span.na { background: #f1f3f5; opacity: 0.5; }

.ob-detail > td {
    background: #fbfcfd;
    padding: 16px 20px 20px;
    border-bottom: 2px solid #dee2e6;
}

.ob-visits {
    font-size: 0.82rem;
}

.ob-visits td {
    font-variant-numeric: tabular-nums;
}

.ob-facts {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 2px 12px;
    font-size: 0.82rem;
    margin: 0;
}

.ob-facts dt {
    font-weight: 500;
    color: #6c757d;
}

.ob-facts dd {
    margin: 0;
}

.ob-timeline {
    list-style: none;
    margin: 0 0 0 6px;
    padding: 0;
    border-left: 2px solid #e9ecef;
    font-size: 0.82rem;
}

.ob-timeline li {
    --dot: #ced4da;
    position: relative;
    padding: 2px 0 2px 16px;
}

.ob-timeline li::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dot);
    border: 2px solid #fbfcfd;
}

.ob-timeline .time {
    display: inline-block;
    width: 64px;
    color: #6c757d;
    font-variant-numeric: tabular-nums;
}

.ob-timeline .detail {
    color: #6c757d;
    margin-left: 6px;
}

.ob-timeline li.k-page { --dot: #0d6efd; }
.ob-timeline li.k-page .title { font-weight: 600; }
.ob-timeline li.k-action { --dot: #6c757d; }
.ob-timeline li.k-good { --dot: #198754; }
.ob-timeline li.k-good .title { color: #0f5132; }
.ob-timeline li.k-bad { --dot: #dc3545; }
.ob-timeline li.k-bad .title { color: #842029; }
.ob-timeline li.k-error { --dot: #842029; }
.ob-timeline li.k-error .title { color: #842029; font-weight: 600; }
.ob-timeline li.k-app { color: #868e96; }

.ob-timeline li.gap {
    color: #adb5bd;
    font-style: italic;
    padding: 6px 0 6px 16px;
}

.ob-timeline li.gap::before {
    background: transparent;
}

@media (max-width: 640px) {
    .ob-funnel-row {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .ob-funnel-side {
        grid-column: 2;
    }

    .ob-funnel-split,
    .ob-funnel-note {
        margin-left: 0;
    }
}

/* Friends */
.fr-kpi-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.fr-spark {
    height: 36px;
    width: 110px;
    flex: 0 0 auto;
}

.fr-card-title {
    font-weight: 650;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fr-caption {
    font-size: 0.78rem;
    color: #6c757d;
    margin-bottom: 12px;
}

.fr-sub {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 6px;
}

.fr-tag {
    display: inline-block;
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 0.68rem;
    font-weight: 600;
    background: #fff3cd;
    color: #664d03;
    vertical-align: middle;
}

.fr-empty {
    font-size: 0.85rem;
    color: #adb5bd;
    padding: 8px 0;
}

.fr-funnel-row {
    grid-template-columns: 170px minmax(0, 1fr) 56px;
}

.fr-indent {
    padding-left: 14px;
    color: #495057;
}

.fr-split {
    border-top: 1px dashed #dee2e6;
    margin: 10px 0 8px;
}

.fr-bar-row {
    display: grid;
    grid-template-columns: minmax(90px, 1.3fr) minmax(0, 2fr) 36px;
    gap: 10px;
    align-items: center;
    padding: 3px 0;
    font-size: 0.84rem;
}

.fr-bar-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fr-bar {
    height: 10px;
    border-radius: 5px;
    background: #f1f3f5;
    overflow: hidden;
}

.fr-bar > .fill {
    height: 100%;
    border-radius: 5px;
    background: #4caf78;
}

.fr-bar-value {
    text-align: right;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.fr-split-block + .fr-split-block {
    margin-top: 16px;
}

.fr-stack {
    display: flex;
    height: 14px;
    border-radius: 7px;
    overflow: hidden;
    background: #f1f3f5;
    gap: 2px;
}

.fr-stack > .seg {
    height: 100%;
}

.fr-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-top: 6px;
    font-size: 0.8rem;
}

.fr-legend .swatch {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 3px;
    margin-right: 3px;
}

.fr-compare-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 110px;
    gap: 12px;
    align-items: center;
    padding: 6px 0;
}

.fr-compare-label {
    font-size: 0.85rem;
    color: #495057;
}

.fr-compare-bar {
    height: 22px;
    border-radius: 6px;
    background: #f1f3f5;
    overflow: hidden;
}

.fr-compare-bar > .fill {
    height: 100%;
    border-radius: 6px;
}

.fr-compare-bar > .fill.before {
    background: #adb5bd;
}

.fr-compare-bar > .fill.after {
    background: #4caf78;
}

.fr-compare-value {
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.fr-table td,
.fr-table th {
    font-size: 0.84rem;
}

.fr-id {
    font-family: var(--bs-font-monospace);
    font-size: 0.8rem !important;
}

.fr-feed {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 520px;
    overflow-y: auto;
}

.fr-feed li {
    display: flex;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #f1f3f5;
    font-size: 0.84rem;
}

.fr-feed li:last-child {
    border-bottom: 0;
}

.fr-dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-top: 6px;
}

.fr-dot.friends { background: #198754; }
.fr-dot.respect { background: #fd7e14; }
.fr-dot.moment { background: #6610f2; }
.fr-dot.nudge { background: #0dcaf0; }
.fr-dot.ping { background: #0d6efd; }
.fr-dot.reply { background: #495057; }
.fr-dot.bump { background: #b02a65; }
.fr-dot.duo { background: #20c997; }
.fr-dot.crew { background: #6f42c1; }

.fr-feed-meta {
    font-size: 0.76rem;
    color: #6c757d;
}

.fr-feed-meta a {
    color: inherit;
}

.fr-scroll-table {
    max-height: 260px;
    overflow-y: auto;
}

.fr-progress {
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    overflow: hidden;
    min-width: 72px;
}

.fr-progress > span {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: #4caf78;
}

.fr-badge-live { background: #d1e7dd; color: #0f5132; }
.fr-badge-wait { background: #fff3cd; color: #664d03; }
.fr-badge-done { background: #cfe2ff; color: #084298; }
.fr-badge-muted { background: #e9ecef; color: #495057; }
