html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background: #fafafa;
}

#out {
    width: 100%;
    height: 100%;
}

/* Shown until Avalonia replaces the contents of #out. */
.splash {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: system-ui, "Microsoft YaHei", sans-serif;
    color: #424242;
}

.splash-title {
    font-size: 22px;
    font-weight: 600;
    color: #00796b;
}

.splash-note {
    font-size: 13px;
    opacity: 0.7;
}

/* How much of the runtime and the app has arrived (download-progress.js). */
.splash-progress {
    width: min(240px, 60vw);
    height: 6px;
    border-radius: 3px;
    background: rgba(0, 121, 107, 0.15);
    overflow: hidden;
}

.splash-progress > div {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #00796b;
    transition: width 200ms ease-out;
}

/* Under the bar: the file coming in, then the whole download's size, speed and time left (download-progress.js). */
.splash-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-height: 2.6em; /* both lines' room from the start, so the bar does not move when they fill in */
    max-width: 90vw;
    color: #424242;
    opacity: 0.7;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.splash-detail > span {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
