/* _content/KOTT.Api/Components/Pages/Admin/Laps/Detail.razor.rz.scp.css */
.lap-detail[b-sbv8j5rh1p] { max-width: 1200px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.lap-header[b-sbv8j5rh1p] { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; }
.lap-title h1[b-sbv8j5rh1p] { margin: 0; font-size: 1.8rem; }
.lap-meta[b-sbv8j5rh1p] { color: var(--fg-muted, #aaa); font-size: 0.95rem; margin-top: 4px; }
.lap-time[b-sbv8j5rh1p] { text-align: right; }
.lap-time-value[b-sbv8j5rh1p] { font-family: 'Rajdhani', sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--accent, #00e0ff); }
.lap-time-meta[b-sbv8j5rh1p] { color: var(--fg-muted, #aaa); font-size: 0.9rem; margin-top: 4px; }
.badge[b-sbv8j5rh1p] { display: inline-block; padding: 2px 8px; margin-left: 6px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; }
.badge.invalid[b-sbv8j5rh1p] { background: var(--danger-dim, #4a1f1f); color: var(--danger, #ff6b6b); }
.badge.pb[b-sbv8j5rh1p] { background: rgba(0, 224, 255, 0.15); color: var(--accent, #00e0ff); }
.panel-grid[b-sbv8j5rh1p] { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel[b-sbv8j5rh1p] { background: var(--bg-card, #141414); padding: 12px; border-radius: 8px; }
.panel h2[b-sbv8j5rh1p] { margin: 0 0 8px; font-size: 1.1rem; color: var(--accent, #00e0ff); }
.panel canvas[b-sbv8j5rh1p] { width: 100%; max-width: 600px; height: auto; display: block; background: #0a0a0a; }
.panel.empty[b-sbv8j5rh1p] { text-align: center; padding: 48px; color: var(--fg-muted, #aaa); font-style: italic; }
.tyres-panel[b-sbv8j5rh1p] { grid-column: 1 / -1; }
.sector-table[b-sbv8j5rh1p] { width: 100%; }
.sector-table th[b-sbv8j5rh1p], .sector-table td[b-sbv8j5rh1p] { padding: 8px 12px; text-align: left; }
.lap-not-found[b-sbv8j5rh1p] { text-align: center; padding: 64px 16px; }
@media (max-width: 900px) {
    .panel-grid[b-sbv8j5rh1p] { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .lap-header[b-sbv8j5rh1p] { flex-direction: column; }
    .lap-time[b-sbv8j5rh1p] { text-align: left; }
}
/* _content/KOTT.Api/Components/Pages/Admin/Servers/ChangeTrackModal.razor.rz.scp.css */
/* ChangeTrackModal — scoped styling for the live-count + drain-warning rows
   added with the 2026-06-25 key-preserving fix. The .change-track-flow
   container itself is styled globally in admin.css; these are the small
   additions specific to this modal. */

.ct-counts[b-fgl3hl0r0m] {
    margin-top: 8px;
}

.ct-counts strong[b-fgl3hl0r0m] {
    color: var(--text-primary);
}

.ct-warn[b-fgl3hl0r0m] {
    margin-top: 6px;
    margin-bottom: 0;
    font-size: 12.5px;
    color: var(--warning);
}
/* _content/KOTT.Api/Components/Pages/Admin/Servers/ServerDetail.razor.rz.scp.css */
/* C5.1 — slim cross-tab status strip on the server detail shell. Sits between
   the page header and the tab bar; visible on every tab so state/host/track
   are a glance away from Logs/Config without navigating back to Overview. */
.detail-status-strip[b-yh0dk3x8qe] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.28);
    font-size: 0.85rem;
}

.detail-status-strip .dss-fact[b-yh0dk3x8qe] {
    color: var(--text-dim, #9fb3c8);
    white-space: nowrap;
}

.detail-status-strip .dss-fact code[b-yh0dk3x8qe] {
    color: var(--text, #d7e3ee);
}

.detail-status-strip .dss-track[b-yh0dk3x8qe] {
    text-transform: capitalize;
}
/* _content/KOTT.Api/Components/Pages/Admin/Servers/ServerTabChat.razor.rz.scp.css */
/* Minimal traditional chat log for the server-detail Chat tab — shares KOTT admin theming
   (.form-panel / .input-bare / .btn come from admin.css); this only lays out the log + compose
   row. No bubbles: one left-aligned column, admin-sent lines get a subtle cyan highlight. */

.chat-head[b-ip3ltclycf] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.chat-head h3[b-ip3ltclycf] { margin: 0; }
.chat-count[b-ip3ltclycf] { font-size: 12px; font-variant-numeric: tabular-nums; }

.chat-log[b-ip3ltclycf] {
    height: 52vh;
    min-height: 320px;
    max-height: 620px;
    display: flex;
    flex-direction: column-reverse;   /* newest at the bottom, auto-pinned, no JS */
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.16);
}

.chat-log[b-ip3ltclycf]::-webkit-scrollbar { width: 8px; }
.chat-log[b-ip3ltclycf]::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 8px; }
.chat-log[b-ip3ltclycf]::-webkit-scrollbar-track { background: transparent; }

/* one log line: [time] sender: message */
.chat-line[b-ip3ltclycf] {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    line-height: 1.45;
    border-left: 2px solid transparent;
}

.ts[b-ip3ltclycf] {
    flex-shrink: 0;
    font-size: 11.5px;
    color: #6b7c8c;
    font-variant-numeric: tabular-nums;
}

.who[b-ip3ltclycf] {
    flex-shrink: 0;
    font-weight: 600;
    color: #6fd3e6;          /* incoming (player) sender — muted cyan */
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.who[b-ip3ltclycf]::after { content: ":"; color: #6b7c8c; font-weight: 400; }

.txt[b-ip3ltclycf] {
    color: #dfe7ee;
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

/* admin-sent lines — subtle cyan highlight + accent rule, no left/right split */
.chat-line.out[b-ip3ltclycf] {
    background: rgba(0, 224, 255, 0.07);
    border-left-color: rgba(0, 224, 255, 0.55);
}
.chat-line.out .who[b-ip3ltclycf] { color: #00e0ff; }

.chat-empty[b-ip3ltclycf] {
    margin: auto;
    text-align: center;
    font-size: 13px;
    max-width: 40ch;
    padding: 16px;
}

/* compose row */
.chat-compose[b-ip3ltclycf] {
    display: flex;
    gap: 8px;
    align-items: center;
}
.chat-compose .send-as[b-ip3ltclycf] { flex: 0 0 160px; max-width: 160px; }
.chat-compose .chat-msg[b-ip3ltclycf] { flex: 1 1 auto; }
/* _content/KOTT.Api/Components/Pages/Admin/Servers/ServerTabOverview.razor.rz.scp.css */
/* Component-scoped overrides for the Server detail Overview tab.
   The .overview-grid + card base styles live in the shared admin.css;
   these rules only adjust what this tab needs after the C1.3 merge. */

/* C1.3 — let each overview card size to its own content. admin.css forces
   `min-height:100%` on the legacy overview cards which, inside the auto-fit
   grid row, stretched the short cards up to the tall Readiness card and left
   dead vertical space. The scoped selector ([b-xxx] attribute) outranks the
   global rule on specificity, so this wins without touching admin.css. */
.overview-card-identity[b-pxzizh895v],
.overview-card-readiness[b-pxzizh895v],
.overview-card-controls[b-pxzizh895v] {
    min-height: auto;
}

/* B11 — live heartbeat age beneath the state badge in the Identity card. */
.heartbeat-age[b-pxzizh895v] {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-tertiary);
}
/* _content/KOTT.Api/Components/Pages/Admin/Servers/ServerTabSnapshots.razor.rz.scp.css */
/* Snapshot diff + rollback preview styling (C1.7 — moved out of the
   ServerTabSnapshots.razor inline <style> block into component-scoped CSS). */
.snapshot-diff-file[b-liv2meifyb] { margin-block: 16px; }
.snapshot-diff-file h4[b-liv2meifyb] { margin: 0 0 6px 0; font-size: 0.92em; }
.modal-wide[b-liv2meifyb] { max-width: min(96vw, 1200px); }
.rollback-preview[b-liv2meifyb] { margin: 8px 0 0 0; padding-left: 16px; }
.rollback-preview li[b-liv2meifyb] { font-size: 0.9em; line-height: 1.45; }
/* _content/KOTT.Api/Components/Pages/Admin/Templates/TemplateDetailLayout.razor.rz.scp.css */
/* TemplateDetailLayout scoped styles (redesign 2026-06-21).

   The per-template sub-nav is now a HORIZONTAL tab strip rendered ABOVE the
   content grid (.tpl-tabs wrapper). The tab styling itself lives in GLOBAL
   admin.css (.tpl-sidebar / .tpl-sidebar-item / .tpl-dirty-dot) because the
   <ul> is emitted by the child _TemplateSidebar component and Blazor CSS
   isolation would not reach it from here — only the parent's own elements
   below (.tpl-detail-grid / -main / -aside) are styled in this scoped file. */

.tpl-detail-grid[b-29v4t0er12] {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}

/* When the live-preview aside is shown (editable tabs), add the 2nd column. */
.tpl-detail-grid.with-aside[b-29v4t0er12] {
    grid-template-columns: minmax(0, 1fr) 300px;
}

.tpl-detail-aside[b-29v4t0er12] {
    position: sticky;
    top: 16px;
    min-width: 0;
}

.tpl-detail-main[b-29v4t0er12] {
    min-width: 0; /* prevents grid children from overflowing table cells */
}

@media (max-width: 1100px) {
    /* Drop the preview column on narrower screens; main gets its width back. */
    .tpl-detail-grid.with-aside[b-29v4t0er12] {
        grid-template-columns: 1fr;
    }
    .tpl-detail-aside[b-29v4t0er12] {
        display: none;
    }
}
/* _content/KOTT.Api/Components/Pages/Public/OperatorsPitch.razor.rz.scp.css */
/* /operators-pitch scoped styles — live-stats band + Free Roam badge +
   scroll-reveal. Page-wide op-pitch-* layout stays in public.css; only the
   surfaces introduced by this component live here. */

/* ── Live-stats band ─────────────────────────────────────────────────── */
.op-pitch-stats[b-9repeber8s] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin: 8px auto 40px;
    max-width: 860px;
}

.op-pitch-stat[b-9repeber8s] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 18px 34px;
    min-width: 180px;
    text-align: center;
}

.op-pitch-stat-value[b-9repeber8s] {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.1;
    color: #00e0ff;
}

.op-pitch-stat-label[b-9repeber8s] {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

/* ── Free Roam mode badge (mirrors the mm/ta/ops badges in public.css) ── */
.op-pitch-card-badge-fr[b-9repeber8s] {
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.35);
}

/* ── Scroll-reveal (progressive enhancement, motion-gated) ──────────────
   Content is VISIBLE BY DEFAULT. pitch-reveal.js stamps data-reveal="pending"
   ONLY on below-the-fold sections after JS boots, then flips to "shown" via
   IntersectionObserver — no JS (or a failed import) means no attribute and
   fully visible sections. The former native animation-timeline: view() path
   was removed 2026-07-09: on mobile browsers where the view timeline never
   activated, `animation: ... both` held every section at opacity 0 forever
   (~3,000px of blank page). */
@media (prefers-reduced-motion: no-preference) {
    .op-reveal[data-reveal="pending"][b-9repeber8s] {
        opacity: 0;
        transform: translateY(16px);
    }

    .op-reveal[data-reveal="shown"][b-9repeber8s] {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
}
/* _content/KOTT.Api/Components/Shared/Public/CrewTag.razor.rz.scp.css */
.crew-tag-chip[b-qwf11clpjg] {
    display: inline-flex;
    align-items: center;
    /* margin-RIGHT: the chip precedes the name ("[TAG] Name" — see CrewTag.razor). This was
       margin-left back when every call site rendered it after the name; flipping the call sites
       without this leaves the gap on the wrong side at all of them. */
    margin-right: 6px;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.72rem;
    /* Caps the chip under the row's text strut — it renders inside pub-table rows
       (Community/Drivers), where without this its padding+border set the row height. */
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    color: color-mix(in srgb, var(--crew) 82%, #fff);
    background: color-mix(in srgb, var(--crew) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--crew) 42%, transparent);
    vertical-align: middle;
    white-space: nowrap;
    transition: background 0.12s;
}

.crew-tag-chip:hover[b-qwf11clpjg] {
    background: color-mix(in srgb, var(--crew) 28%, transparent);
}
