.log-wall-page {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
    min-height: 0;
    padding: 0.5rem 0.75rem 0.75rem;
    box-sizing: border-box;
}

.log-wall-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    flex-shrink: 0;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 255, 136, 0.12);
}

.log-wall-toolbar__title {
    font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6ee7b7;
    margin-right: auto;
}

.log-wall-grid {
    display: grid;
    gap: 0.65rem;
    flex: 1 1 auto;
    min-height: 0;
    align-content: stretch;
    grid-auto-rows: minmax(0, 1fr);
}

.log-wall-grid--cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.log-wall-grid--cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1400px) {
    .log-wall-grid--cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .log-wall-grid--cols-3,
    .log-wall-grid--cols-2 {
        grid-template-columns: 1fr;
    }
}

.log-wall-terminal {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #0a0e0d;
    border: 1px solid rgba(0, 255, 136, 0.18);
    box-shadow:
        inset 0 0 40px rgba(0, 0, 0, 0.55),
        0 4px 24px rgba(0, 0, 0, 0.45);
}

.log-wall-terminal--offline {
    border-color: rgba(255, 82, 82, 0.35);
}

.log-wall-terminal__chrome {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.65rem;
    background: linear-gradient(180deg, #141a18 0%, #0f1412 100%);
    border-bottom: 1px solid rgba(0, 255, 136, 0.12);
    flex-shrink: 0;
}

.log-wall-terminal__icon {
    flex-shrink: 0;
    color: rgba(110, 231, 183, 0.75);
    font-size: 1rem !important;
}

.log-wall-terminal__title {
    font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
    font-size: 0.72rem;
    font-weight: 600;
    color: #a7f3d0;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.log-wall-terminal__meta {
    margin-left: auto;
    font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
    font-size: 0.62rem;
    color: rgba(167, 243, 208, 0.55);
    white-space: nowrap;
}

.log-wall-terminal__status {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: 0.35rem;
}

.log-wall-terminal__status--live {
    background: #34d399;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.9);
    animation: log-wall-pulse 1.6s ease-in-out infinite;
}

.log-wall-terminal__status--paused {
    background: #fbbf24;
}

.log-wall-terminal__status--error {
    background: #f87171;
}

@keyframes log-wall-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.45;
    }
}

.log-wall-terminal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    padding: 0.5rem 0.65rem 0.65rem;
    font-family: ui-monospace, "Cascadia Code", "Consolas", "Liberation Mono", monospace;
    font-size: 0.68rem;
    line-height: 1.45;
    color: #86efac;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.08) 2px,
            rgba(0, 0, 0, 0.08) 4px
        ),
        #050807;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 136, 0.25) transparent;
}

.log-wall-terminal__body::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.log-wall-terminal__body::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.22);
    border-radius: 3px;
}

.log-wall-line {
    white-space: pre-wrap;
    word-break: break-word;
}

.log-wall-line--err {
    color: #fca5a5;
}

.log-wall-line--warn {
    color: #fde68a;
}

.log-wall-line--info {
    color: #93c5fd;
}

.log-wall-line--dbg {
    color: #a1a1aa;
}

.log-wall-line--muted {
    color: rgba(134, 239, 172, 0.45);
}

.log-wall-terminal__empty,
.log-wall-terminal__error {
    color: rgba(167, 243, 208, 0.5);
    font-style: italic;
}

.log-wall-terminal__error {
    color: #fca5a5;
}

.log-wall-terminal__sync {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    padding: 0.28rem 0.65rem;
    flex-shrink: 0;
    border-top: 1px solid rgba(0, 255, 136, 0.1);
    background: rgba(0, 0, 0, 0.25);
}

.log-wall-terminal__sync-label {
    font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(167, 243, 208, 0.4);
}

.log-wall-terminal__sync-dots {
    display: flex;
    align-items: center;
    gap: 3px;
}

.log-wall-terminal__sync-dots span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #34d399;
    opacity: 0.85;
    animation: log-wall-sync-dot 0.9s ease-in-out infinite;
}

.log-wall-terminal__sync-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.log-wall-terminal__sync-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes log-wall-sync-dot {
    0%,
    80%,
    100% {
        opacity: 0.25;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

.log-wall-terminal--tier-dev {
    border-top: 2px solid rgba(41, 182, 246, 0.65);
}

.log-wall-terminal--tier-staging {
    border-top: 2px solid rgba(255, 179, 0, 0.65);
}

.log-wall-terminal--tier-prod {
    border-top: 2px solid rgba(255, 23, 68, 0.55);
}
