/* Keep the current page visible while its refreshed Vue root is mounting. */
.tc-shell-main {
    position: relative;
    border: 0;
    outline: 0;
}

.tc-page-content {
    border: 0;
    outline: 0;
}

#tc-page-loading {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(128, 128, 128, 0.1);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

#tc-page-loading[hidden] {
    display: none;
}

.tc-startup-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid color-mix(in srgb, var(--default-color) 24%, transparent);
    border-top-color: var(--default-color);
    border-radius: 50%;
    animation: tc-page-loading-spin 800ms linear infinite;
}

@keyframes tc-page-loading-spin {
    to { transform: rotate(360deg); }
}

.tc-page-loading-message {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

#tc-page-loading.tc-startup-slow .tc-page-loading-message,
#tc-page-loading.tc-startup-error .tc-page-loading-message {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    margin: 0;
    color: var(--label-font-color);
    text-align: center;
}

#tc-page-loading #tc-page-retry:not([hidden]) {
    margin-top: 4px;
}
