/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-fd87a6x278] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-fd87a6x278] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-k3ehum4cmi],
.components-reconnect-repeated-attempt-visible[b-k3ehum4cmi],
.components-reconnect-failed-visible[b-k3ehum4cmi],
.components-pause-visible[b-k3ehum4cmi],
.components-resume-failed-visible[b-k3ehum4cmi],
.components-rejoining-animation[b-k3ehum4cmi] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-k3ehum4cmi],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-k3ehum4cmi],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-k3ehum4cmi],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-k3ehum4cmi],
#components-reconnect-modal.components-reconnect-retrying[b-k3ehum4cmi],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-k3ehum4cmi],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-k3ehum4cmi],
#components-reconnect-modal.components-reconnect-failed[b-k3ehum4cmi],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-k3ehum4cmi] {
    display: block;
}


#components-reconnect-modal[b-k3ehum4cmi] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-k3ehum4cmi 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-k3ehum4cmi 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-k3ehum4cmi 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-k3ehum4cmi]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-k3ehum4cmi 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-k3ehum4cmi {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-k3ehum4cmi {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-k3ehum4cmi {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-k3ehum4cmi] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-k3ehum4cmi] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-k3ehum4cmi] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-k3ehum4cmi] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-k3ehum4cmi] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-k3ehum4cmi] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-k3ehum4cmi] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-k3ehum4cmi 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-k3ehum4cmi] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-k3ehum4cmi {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/Home.razor.rz.scp.css */
.page[b-jff83gzxco] {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem 1rem 4rem;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #1a1a1a;
}

header h1[b-jff83gzxco] {
    margin: 0 0 .25rem;
    font-size: 1.6rem;
}

.subtitle[b-jff83gzxco] {
    margin: 0 0 1rem;
    color: #555;
    max-width: 70ch;
    line-height: 1.4;
}

code[b-jff83gzxco] {
    background: #f0f0f3;
    padding: .05rem .3rem;
    border-radius: 4px;
    font-size: .9em;
}

.controls[b-jff83gzxco] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    padding: 1rem;
    background: #f7f7fa;
    border: 1px solid #e2e2e8;
    border-radius: 8px;
}

.field[b-jff83gzxco] {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    font-size: .85rem;
    font-weight: 600;
    color: #444;
}

.field input[type="text"][b-jff83gzxco] {
    min-width: 320px;
    padding: .45rem .6rem;
    border: 1px solid #cbcbd4;
    border-radius: 6px;
    font-size: .95rem;
}

.field.wide[b-jff83gzxco] {
    flex: 1 1 440px;
}

.field.wide input[type="text"][b-jff83gzxco] {
    width: 100%;
    min-width: 440px;
}

button.primary[b-jff83gzxco] {
    padding: .55rem 1.2rem;
    background: #2f6feb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
}

button.primary:disabled[b-jff83gzxco] {
    background: #a9bfe9;
    cursor: not-allowed;
}

button.secondary[b-jff83gzxco] {
    padding: .4rem .9rem;
    background: #fff;
    color: #2f6feb;
    border: 1px solid #2f6feb;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.banner[b-jff83gzxco] {
    margin: 1rem 0;
    padding: .7rem .9rem;
    border-radius: 6px;
    font-size: .9rem;
}

.banner.error[b-jff83gzxco] {
    background: #fdecec;
    border: 1px solid #f3b4b4;
    color: #8a1f1f;
}

.banner.ok[b-jff83gzxco] {
    background: #e6f5ec;
    border: 1px solid #b5ddc5;
    color: #1c6b3c;
}

.targets[b-jff83gzxco] {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid #e2e2e8;
    border-radius: 8px;
    background: #fbfbfd;
}

.targets h2[b-jff83gzxco] {
    margin: 0 0 .7rem;
    font-size: 1rem;
}

.check[b-jff83gzxco] {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .3rem 0;
    font-size: .95rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
}

.check input[type="checkbox"][b-jff83gzxco] {
    width: 1.05rem;
    height: 1.05rem;
    cursor: pointer;
}

.target-body[b-jff83gzxco] {
    margin: .2rem 0 .8rem 1.6rem;
    padding-left: .8rem;
    border-left: 2px solid #e2e2e8;
}

.target-body .muted[b-jff83gzxco] {
    margin: .35rem 0 0;
}

.warn-text[b-jff83gzxco] {
    color: #8a5a00;
    font-weight: 600;
}

.results[b-jff83gzxco] {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

/* ---- folder selection (native picker row + fallback chooser) ---- */

.folder-row[b-jff83gzxco] {
    display: flex;
    gap: .6rem;
    align-items: center;
    flex-wrap: wrap;
}

.folder-row input[type="text"][b-jff83gzxco] {
    flex: 1 1 380px;
    min-width: 260px;
    padding: .45rem .6rem;
    border: 1px solid #cbcbd4;
    border-radius: 6px;
    font-size: .9rem;
}

.picked[b-jff83gzxco] {
    font-size: .88rem;
    color: #1c6b3c;
}

.picked strong[b-jff83gzxco] {
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}

.field-label[b-jff83gzxco] {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: #444;
    margin-bottom: .3rem;
}

button.primary.small[b-jff83gzxco] {
    padding: .35rem .8rem;
    font-size: .85rem;
}

.browser[b-jff83gzxco] {
    margin: .6rem 0 .2rem;
    border: 1px solid #cbcbd4;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.browser-head[b-jff83gzxco] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    padding: .55rem .7rem;
    background: #f2f4f8;
    border-bottom: 1px solid #e2e2e8;
}

.browse-path[b-jff83gzxco] {
    font-size: .82rem;
    background: none;
    padding: 0;
    word-break: break-all;
    color: #333;
}

.browser-actions[b-jff83gzxco] {
    display: flex;
    gap: .4rem;
    flex-shrink: 0;
}

.browser-actions button[b-jff83gzxco] {
    padding: .35rem .7rem;
    font-size: .82rem;
}

.quick[b-jff83gzxco] {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    padding: .5rem .7rem;
    border-bottom: 1px solid #eee;
}

.chip[b-jff83gzxco] {
    padding: .25rem .6rem;
    background: #eef0f4;
    border: 1px solid #dfe2e9;
    border-radius: 999px;
    font-size: .78rem;
    color: #333;
    cursor: pointer;
}

.chip:hover[b-jff83gzxco] {
    background: #e3e7ef;
}

.folder-list[b-jff83gzxco] {
    list-style: none;
    margin: 0;
    padding: .3rem;
    max-height: 260px;
    overflow-y: auto;
}

.folder-item[b-jff83gzxco] {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    padding: .35rem .5rem;
    background: none;
    border: none;
    border-radius: 5px;
    font-size: .88rem;
    text-align: left;
    cursor: pointer;
    color: #222;
}

.folder-item:hover[b-jff83gzxco] {
    background: #eef2fb;
}

.folder-list .empty[b-jff83gzxco] {
    padding: .5rem;
}

.meta[b-jff83gzxco] {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1.2rem 0;
}

.pill[b-jff83gzxco] {
    padding: .25rem .6rem;
    background: #eef0f4;
    border-radius: 999px;
    font-size: .8rem;
    color: #333;
}

.pill.ok[b-jff83gzxco] {
    background: #e6f5ec;
    color: #1c6b3c;
}

.pill.warn[b-jff83gzxco] {
    background: #fff3d9;
    color: #8a5a00;
}

section h2[b-jff83gzxco] {
    font-size: 1.1rem;
    margin: 1.5rem 0 .6rem;
}

.diag-list[b-jff83gzxco] {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.diag[b-jff83gzxco] {
    display: grid;
    /* Columns must fit the LOCALISED labels: "FIGYELMEZTETÉS" is far wider than "warning".
       Fixed narrow columns overflowed into the message and the text overlapped. */
    grid-template-columns: 5.5rem 9.5rem 1fr;
    gap: .5rem;
    align-items: baseline;
    padding: .4rem .6rem;
    border-radius: 6px;
    font-size: .85rem;
    background: #f4f6fb;
}

.diag .line[b-jff83gzxco] { color: #666; font-variant-numeric: tabular-nums; white-space: nowrap; }
.diag .sev[b-jff83gzxco] { font-weight: 700; text-transform: uppercase; font-size: .7rem; letter-spacing: .04em; white-space: nowrap; }
/* Long messages wrap inside their own column instead of pushing the layout wider. */
.diag .msg[b-jff83gzxco] { min-width: 0; overflow-wrap: anywhere; }

/* Narrow screens: stack instead of squeezing three columns into no space. */
@media (max-width: 620px) {
    .diag[b-jff83gzxco] {
        grid-template-columns: auto 1fr;
    }
    .diag .msg[b-jff83gzxco] {
        grid-column: 1 / -1;
    }
}

.diag.warning[b-jff83gzxco] { background: #fff7e6; }
.diag.warning .sev[b-jff83gzxco] { color: #8a5a00; }
.diag.error[b-jff83gzxco] { background: #fdecec; }
.diag.error .sev[b-jff83gzxco] { color: #8a1f1f; }
.diag.info .sev[b-jff83gzxco] { color: #33507a; }

.muted[b-jff83gzxco] { color: #888; font-size: .85rem; }

.output-head[b-jff83gzxco] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.preview[b-jff83gzxco] {
    padding: 1rem 1.25rem;
    border: 1px solid #e2e2e8;
    border-radius: 8px;
    background: #fff;
}

.raw[b-jff83gzxco] {
    width: 100%;
    box-sizing: border-box;
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: .82rem;
    line-height: 1.4;
    padding: .8rem;
    border: 1px solid #cbcbd4;
    border-radius: 8px;
    background: #fbfbfd;
    resize: vertical;
}

/* ---- generated-file list ---------------------------------------------------------------- */

.files[b-jff83gzxco] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
}

.files th[b-jff83gzxco],
.files td[b-jff83gzxco] {
    text-align: left;
    padding: 0.55rem 0.7rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.files th[b-jff83gzxco] {
    font-weight: 600;
    color: #4b5563;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.files td:last-child[b-jff83gzxco] {
    text-align: right;
    white-space: nowrap;
}

.files td:last-child button[b-jff83gzxco] {
    margin-left: 0.4rem;
}

/* ---- preview modal --------------------------------------------------------------------- */

.preview-dialog[b-jff83gzxco] {
    width: min(920px, 92vw);
    max-height: 86vh;
    overflow-y: auto;
    border: none;
    border-radius: 10px;
    padding: 1.2rem 1.4rem 1.6rem;
    box-shadow: 0 18px 45px rgb(0 0 0 / 25%);
}

.preview-dialog[b-jff83gzxco]::backdrop {
    background: rgb(0 0 0 / 45%);
}

.preview-dialog h3[b-jff83gzxco] {
    margin: 1.2rem 0 0.5rem;
    font-size: 0.95rem;
    color: #374151;
}

.dialog-head[b-jff83gzxco] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.7rem;
}

.dialog-head h2[b-jff83gzxco] {
    margin: 0;
    font-size: 1.05rem;
}

/* The fragment carries no CSS of its own, so it is rendered in an isolated iframe rather than
   injected into this page — otherwise it would inherit the app's styling and the preview would
   misrepresent how it looks once embedded in the host page. */
.preview-frame[b-jff83gzxco] {
    width: 100%;
    height: 46vh;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
}

/* ---- CDN URL presets ------------------------------------------------------------------- */

/* Reuses the .chip pill styling, without the panel chrome .quick carries. */
.presets[b-jff83gzxco] {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.chip.active[b-jff83gzxco] {
    background: #2f6feb;
    border-color: #2f6feb;
    color: #fff;
}
