#page-loader {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}
#page-loader.hide {
    opacity: 0;
    pointer-events: none;
}
.loader-bar {
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 28px;
}
.loader-bar span {
    width: 5px;
    border-radius: 2px;
    background: #e0e0e0;
    transition: background 0.25s;
}
.loader-bar span.on { background: #222; }
.loader-bar span:nth-child(1) { height: 7px; }
.loader-bar span:nth-child(2) { height: 13px; }
.loader-bar span:nth-child(3) { height: 20px; }
.loader-bar span:nth-child(4) { height: 27px; }
.loader-progress-wrap {
    width: 140px;
    height: 1px;
    background: #eee;
    margin-top: 20px;
}
.loader-progress-bar {
    height: 1px;
    background: #222;
    width: 0%;
    transition: width 0.05s linear;
}
.loader-status {
    font-size: 12px;
    color: #999;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    margin-top: 14px;
    min-height: 18px;
    letter-spacing: 0.02em;
}

@media (prefers-color-scheme: dark) {
    #page-loader { background: #111; }
    .loader-bar span { background: #333; }
    .loader-bar span.on { background: #eee; }
    .loader-progress-wrap { background: #2a2a2a; }
    .loader-progress-bar { background: #eee; }
    .loader-status { color: #666; }
}
