.header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.titleRow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.liveBadge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #fff;
    background: #c5221f;
    border-radius: 999px;
    padding: 3px 10px;
}

.liveBadge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: pulse 1.4s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.sourcePill {
    font-size: 11px;
    font-weight: 600;
    color: #137333;
    background: #e6f4ea;
    border-radius: 999px;
    padding: 2px 8px;
}

.updated {
    font-size: 12px;
    color: #5f6368;
    text-align: right;
}

.errorHint {
    display: block;
    color: #c5221f;
    margin-top: 2px;
}

.kpiRow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 700px) {
    .kpiRow {
        grid-template-columns: 1fr;
    }
}

.kpi {
    border: 1px solid #e8eaed;
    border-radius: 10px;
    padding: 12px 14px;
    background: #fafafa;
}

:global(.dark) .kpi {
    border-color: #334155;
    background: #1a2332;
}

.kpiLabel {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5f6368;
}

.kpiValue {
    margin-top: 4px;
    font-size: 28px;
    font-weight: 600;
    color: #202124;
    line-height: 1.1;
}

:global(.dark) .kpiValue {
    color: #f8fafc;
}

.split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 12px;
}

@media (max-width: 900px) {
    .split {
        grid-template-columns: 1fr;
    }
}

.block {
    border: 1px solid #e8eaed;
    border-radius: 10px;
    padding: 12px 14px;
    background: #fff;
}

:global(.dark) .block {
    border-color: #334155;
    background: #0e1726;
}

.blockTitle {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5f6368;
    margin-bottom: 10px;
}

.minuteBars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 88px;
    padding-top: 16px;
    position: relative;
}

.minuteBarWrap {
    position: relative;
    flex: 1;
    min-width: 4px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
}

.minuteBar {
    width: 100%;
    min-width: 2px;
    background: #1a73e8;
    border-radius: 2px 2px 0 0;
    opacity: 0.85;
    transition: height 0.45s ease, opacity 0.2s ease;
}

.minuteBarActive .minuteBar {
    opacity: 1;
}

.minuteValue {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    color: #1a73e8;
    pointer-events: none;
    white-space: nowrap;
}

.minuteTooltip {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    padding: 4px 8px;
    border-radius: 6px;
    background: #202124;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.minuteTooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #202124;
}

:global(.dark) .minuteTooltip {
    background: #f8fafc;
    color: #0f172a;
}

:global(.dark) .minuteTooltip::after {
    border-top-color: #f8fafc;
}

:global(.dark) .minuteValue {
    color: #8ab4f8;
}

.entryList {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 160px;
    overflow: auto;
}

.entryRow {
    display: grid;
    grid-template-columns: 1fr 90px;
    gap: 8px;
    align-items: center;
    font-size: 13px;
}

.entryBarWrap {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
    margin-right: 20px;
}

.entryBar {
    height: 8px;
    background: #1a73e8;
    border-radius: 2px;
    max-width: 56px;
    min-width: 4px;
}

.path {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tableWrap {
    overflow: auto;
    max-height: 420px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5f6368;
    padding: 8px 10px;
    border-bottom: 1px solid #e8eaed;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

:global(.dark) .table th {
    border-bottom-color: #334155;
    background: #0e1726;
}

.table td {
    padding: 10px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
}

:global(.dark) .table td {
    border-bottom-color: #1e293b;
}

.trClickable {
    cursor: pointer;
    transition: background 0.2s ease;
}

.trClickable:hover {
    background: #f8f9fa;
}

:global(.dark) .trClickable:hover {
    background: #1a2332;
}

.refreshHint {
    font-size: 11px;
    font-weight: 600;
    color: #5f6368;
}

.panelRefreshing {
    transition: opacity 0.25s ease;
}

.softPulse {
    animation: softPulse 0.9s ease;
}

@keyframes softPulse {
    0% {
        opacity: 0.72;
    }
    100% {
        opacity: 1;
    }
}

.valueFade {
    animation: valueFade 0.35s ease;
}

@keyframes valueFade {
    from {
        opacity: 0.45;
        transform: translateY(2px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.pathInner {
    position: relative;
    display: inline-block;
    max-width: 100%;
    min-height: 1.2em;
}

.pathText {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: opacity 0.25s ease;
}

.pathSkeletonOn .pathText {
    opacity: 0;
}

.pathSkeleton {
    position: absolute;
    inset: 0;
    border-radius: 4px;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
    background-size: 400% 100%;
    animation: shimmer 1.1s ease infinite;
}

:global(.dark) .pathSkeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 37%, #1e293b 63%);
    background-size: 400% 100%;
}

.skelBlock,
.skelLine,
.skelLineShort {
    display: block;
    border-radius: 6px;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
    background-size: 400% 100%;
    animation: shimmer 1.1s ease infinite;
}

:global(.dark) .skelBlock,
:global(.dark) .skelLine,
:global(.dark) .skelLineShort {
    background: linear-gradient(90deg, #1e293b 25%, #334155 37%, #1e293b 63%);
    background-size: 400% 100%;
}

.skelBlock {
    height: 48px;
    width: 100%;
}

.skelLine {
    height: 12px;
    width: 100%;
    margin: 6px 0;
}

.skelLineShort {
    height: 12px;
    width: 64px;
}

.skelBar {
    opacity: 0.35 !important;
}

.skelRow td {
    padding-top: 12px;
    padding-bottom: 12px;
}

.rowEnter {
    animation: rowEnter 0.35s ease;
}

@keyframes rowEnter {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: 0 0;
    }
}

.flashIn {
    background: #e6f4ea !important;
    animation: fadeFlash 1.6s ease;
}

.flashOut {
    background: #fce8e6 !important;
    animation: fadeFlash 1.6s ease;
}

@keyframes fadeFlash {
    0% {
        opacity: 0.55;
    }
    100% {
        opacity: 1;
    }
}

.code {
    font-size: 12px;
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
}

:global(.dark) .code {
    background: #1e293b;
}

.empty,
.emptyCell {
    font-size: 12px;
    color: #80868b;
    padding: 12px 0;
}

.emptyCell {
    text-align: center;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
}

.statusDotWrap {
    position: relative;
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

.statusDot {
    position: absolute;
    inset: 0;
    border-radius: 999px;
}

.statusPing {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    animation: statusPing 1.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.statusActive {
    color: #137333;
}

.statusActive .statusDot {
    background: #22c55e;
}

.statusActive .statusPing {
    background: #22c55e;
}

.statusIdle {
    color: #b06000;
}

.statusIdle .statusDot {
    background: #f59e0b;
}

@keyframes statusPing {
    75%,
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}
