:root {
    color-scheme: light;
    --blazor-load-percentage: 0%;
    --blazor-load-percentage-text: "0%";
}

html,
body,
#app {
    height: 100%;
    margin: 0;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #d8d8d8;
    color: #20323f;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

input,
select,
textarea {
    min-width: 0;
}

a {
    color: inherit;
}

body.is-resizing-soup,
body.is-resizing-soup * {
    user-select: none;
}

.boot-shell {
    min-height: 100%;
    display: grid;
    grid-template-rows: auto 1fr;
    background:
        linear-gradient(180deg, #ffffff 0 5.9rem, #dff0fb 5.9rem 13rem, #eef2f6 13rem 100%);
}

.boot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 2rem 0.9rem;
    background: #ffffff;
    border-bottom: 1px solid rgba(32, 50, 63, 0.08);
    box-shadow: 0 0.35rem 1rem rgba(32, 50, 63, 0.06);
}

.boot-header__brand {
    display: inline-flex;
    align-items: center;
}

.boot-header__brand-logo {
    display: block;
    height: 2.35rem;
    width: auto;
}

.boot-header__nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #355469;
}

.boot-header__nav a {
    text-decoration: none;
}

.boot-header__nav a:hover {
    color: #0a82d1;
}

.boot-screen {
    display: grid;
    place-items: center;
    padding: 2rem 1.5rem 3rem;
    color: #17394e;
    text-align: center;
}

.boot-screen__panel {
    width: min(100%, 28rem);
    display: grid;
    justify-items: center;
    gap: 1rem;
    padding: 2rem 2rem 2.25rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(32, 50, 63, 0.08);
    box-shadow: 0 1.3rem 2.8rem rgba(23, 57, 78, 0.12);
}

.boot-screen__product-logo {
    width: 8rem;
    height: 8rem;
    object-fit: contain;
    filter: drop-shadow(0 0.55rem 1rem rgba(23, 57, 78, 0.12));
}

.boot-screen__title {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.boot-screen__subtitle {
    max-width: 24rem;
    color: #496578;
    line-height: 1.45;
}

.boot-screen__safety {
    width: 100%;
    text-align: left;
    padding: 1rem 1rem 0.95rem;
    border-radius: 1rem;
    background: #f3f9fd;
    border: 1px solid rgba(10, 130, 209, 0.14);
}

.boot-screen__safety-title {
    margin-bottom: 0.55rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: #1f4e68;
}

.boot-screen__safety-list {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.45rem;
    color: #355469;
    line-height: 1.42;
    font-size: 0.93rem;
}

.boot-screen__safety-list li {
    margin: 0;
}

.boot-progress {
    width: 100%;
    height: 0.95rem;
    overflow: hidden;
    border-radius: 999px;
    background: #d8e8f6;
    box-shadow: inset 0 0 0 1px rgba(13, 67, 106, 0.08);
}

.boot-progress__bar {
    width: var(--blazor-load-percentage);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0a82d1 0%, #31a6ef 100%);
    box-shadow: 0 0.15rem 0.7rem rgba(10, 130, 209, 0.35);
    transition: width 140ms ease-out;
}

.boot-screen__progress-text {
    font-size: 0.96rem;
    font-weight: 600;
    color: #274f68;
}

.boot-screen__progress-text span {
    color: #0a82d1;
}

.soup-empty-state {
    height: 100%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.75rem;
    text-align: center;
    padding: 2rem;
}

.soup-empty-state h1,
.soup-empty-state p {
    margin: 0;
}

.monaco-editor-container {
    height: 100%;
    min-height: 0;
}

.decorationGlyphMarginClass {
    background: #933f32;
}

.decorationContentClass {
    background: rgba(102, 255, 102, 0.13);
}

.decorationPathMouseOverClass {
    background: rgba(96, 78, 48, 0.12);
}

.decorationPathSelectedClass {
    background: rgba(207, 226, 255, 0.65);
}

.decorationPathValidationClass {
    background: rgba(248, 215, 218, 0.6);
}

.soup-editor-field-state--blue {
    background: rgba(120, 196, 245, 0.42);
    border-radius: 0.15rem;
}

.soup-editor-field-state--green {
    background: rgba(170, 212, 83, 0.42);
    border-radius: 0.15rem;
}

.soup-editor-field-state--orange {
    background: rgba(244, 189, 108, 0.48);
    border-radius: 0.15rem;
}

#blazor-error-ui {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.75rem 1rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    float: right;
}

@media (max-width: 900px) {
    .boot-header {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .boot-header__nav {
        display: none;
    }
}

@media (max-width: 640px) {
    .boot-screen__panel {
        padding: 1.5rem 1.25rem 1.75rem;
        border-radius: 1.1rem;
    }

    .boot-screen__product-logo {
        width: 6.75rem;
        height: 6.75rem;
    }

    .boot-screen__title {
        font-size: 1.5rem;
    }

    .boot-screen__safety {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
}
