.portal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: #fafafa;
}

.portal-loading-bar {
    width: 260px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

/* Bound to the Blazor runtime's boot progress (--blazor-load-percentage on
   <html>), same as the main app's index.html — a real figure while the
   WebAssembly bundle downloads, with a shimmering track before the runtime
   script has arrived. */
.portal-loading-fill {
    position: absolute;
    left: 0;
    height: 100%;
    width: var(--blazor-load-percentage, 0%);
    background: #1B4965;
    transition: width 0.25s ease-out;
}

.portal-loading-bar {
    background: linear-gradient(90deg, #e0e0e0 0%, #f2f2f2 50%, #e0e0e0 100%);
    background-size: 260px 4px;
    animation: portal-shimmer 1.6s linear infinite;
}

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

.portal-matrix-table input {
    text-align: center;
}

.srp-text {
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
}

.swatch-dot {
    border-radius: 50%;
    border: 1px solid var(--mud-palette-lines-default);
}

.mode-banner {
    background: var(--mud-palette-info-hover, rgba(33, 150, 243, 0.1));
    border-radius: 6px;
    padding: 8px 14px;
    line-height: 1.35;
}

.mode-banner-title {
    color: var(--mud-palette-info);
    font-weight: 600;
    font-size: 0.85rem;
}

.mode-banner-sub {
    color: var(--mud-palette-text-secondary);
    font-size: 0.78rem;
}

.colourway-card {
    display: flex;
    gap: 8px;
    align-items: center;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
}

.colourway-card-active {
    border-color: var(--mud-palette-primary);
    box-shadow: 0 0 0 1px var(--mud-palette-primary);
}

.style-accordions .mud-expand-panel-header {
    padding-left: 0;
    padding-right: 0;
}
