/* luschlab – Design-Tokens */
:root {
    --lc-ink: #14202b;
    --lc-paper: #f6f4ef;
    --lc-card: #ffffff;
    --lc-muted: #5f6b76;
    --lc-border: #e4e0d8;
    --lc-lab: #1f8a70;
    --lc-lab-dark: #166a56;
    --lc-lab-soft: #e3f2ed;
    --lc-signal: #ff6b35;
    --lc-ok: #1f8a70;
    --lc-warn: #c27803;
    --lc-missing: #c2410c;
    --lc-radius: 14px;
    --lc-shadow: 0 1px 2px rgb(20 32 43 / .06), 0 4px 16px rgb(20 32 43 / .05);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--lc-paper);
    color: var(--lc-ink);
    line-height: 1.5;
}

a { color: var(--lc-lab-dark); }

/* Header */
.lc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem clamp(1rem, 4vw, 2.5rem);
    background: var(--lc-card);
    border-bottom: 1px solid var(--lc-border);
}
.lc-brand { display: flex; align-items: center; }
.lc-brand img { display: block; height: 36px; width: auto; }
.lc-nav { display: flex; gap: .25rem; }
.lc-nav a {
    padding: .45rem .9rem;
    border-radius: 999px;
    color: var(--lc-ink);
    text-decoration: none;
    font-weight: 500;
}
.lc-nav a:hover { background: var(--lc-paper); }
.lc-nav a.is-active { background: var(--lc-lab-soft); color: var(--lc-lab-dark); }

/* Layout */
.lc-main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: clamp(1rem, 3vw, 2rem); }

.lc-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 4vw, 2.5rem);
    color: var(--lc-muted);
    font-size: .85rem;
    border-top: 1px solid var(--lc-border);
}

/* Login-Seite */
.lc-intro { max-width: 40rem; margin: 2rem auto 2rem; text-align: center; }
.lc-intro h1 { margin: .25rem 0 .75rem; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; }
.lc-intro p { color: var(--lc-muted); margin: 0; }
.lc-eyebrow { color: var(--lc-lab) !important; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }

.frame-type-felogin_login {
    max-width: 26rem;
    margin: 0 auto 3rem;
    padding: 1.75rem;
    background: var(--lc-card);
    border: 1px solid var(--lc-border);
    border-radius: var(--lc-radius);
    box-shadow: var(--lc-shadow);
}
.frame-type-felogin_login header h2 { margin: 0 0 1rem; font-size: 1.2rem; }
.frame-type-felogin_login fieldset { border: 0; margin: 0; padding: 0; }
.frame-type-felogin_login legend { display: none; }
.frame-type-felogin_login label { display: block; margin-bottom: .9rem; font-weight: 600; font-size: .9rem; }
.frame-type-felogin_login input[type="text"],
.frame-type-felogin_login input[type="password"] {
    display: block;
    width: 100%;
    margin-top: .3rem;
    padding: .65rem .8rem;
    border: 1px solid var(--lc-border);
    border-radius: 8px;
    font: inherit;
    font-weight: 400;
    background: var(--lc-paper);
}
.frame-type-felogin_login input:focus { outline: 2px solid var(--lc-lab); outline-offset: 1px; background: #fff; }
.frame-type-felogin_login input[type="submit"],
.lc-button {
    width: 100%;
    padding: .7rem 1rem;
    border: 0;
    border-radius: 8px;
    background: var(--lc-lab);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.frame-type-felogin_login input[type="submit"]:hover { background: var(--lc-lab-dark); }
.frame-type-felogin_login h3 { margin: 0 0 .25rem; font-size: 1rem; }
.frame-type-felogin_login h3 + div, .frame-type-felogin_login h3 + p { color: var(--lc-muted); margin-bottom: 1rem; }

/* Dashboard */
.lc-dashboard__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.lc-dashboard__head h1 { margin: 0; font-size: 1.6rem; letter-spacing: -.01em; }

.lc-filter { display: flex; flex-wrap: wrap; gap: .5rem; }
.lc-chip {
    --dep-color: var(--lc-lab);
    padding: .3rem .85rem;
    border: 1px solid var(--lc-border);
    border-radius: 999px;
    background: var(--lc-card);
    color: var(--lc-ink);
    text-decoration: none;
    font-size: .9rem;
}
.lc-chip::before { content: ""; display: inline-block; width: .55rem; height: .55rem; margin-right: .4rem; border-radius: 50%; background: var(--dep-color); }
.lc-chip:first-child::before { display: none; }
.lc-chip.is-active { background: var(--dep-color); border-color: var(--dep-color); color: #fff; }
.lc-chip.is-active::before { background: #fff; }

.lc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.lc-card {
    background: var(--lc-card);
    border: 1px solid var(--lc-border);
    border-radius: var(--lc-radius);
    box-shadow: var(--lc-shadow);
    padding: 1.1rem 1.3rem;
}
.lc-card--wide { grid-column: 1 / -1; }
.lc-card h2 { margin: 0 0 .6rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--lc-muted); }

.lc-list { list-style: none; margin: 0; padding: 0; }
.lc-list > li { padding: .6rem 0; border-top: 1px solid var(--lc-border); }
.lc-list > li:first-child { border-top: 0; }
.lc-list small { display: block; color: var(--lc-muted); }

.lc-lesson, .lc-class { --dep-color: var(--lc-border); border-left: 4px solid var(--dep-color) !important; padding-left: .8rem !important; }
.lc-lesson { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 1rem; align-items: center; }
.lc-lesson__time { font-variant-numeric: tabular-nums; font-weight: 700; }

.lc-badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.lc-badge--ok { background: var(--lc-lab-soft); color: var(--lc-ok); }
.lc-badge--warn { background: #fdf1dc; color: var(--lc-warn); }
.lc-badge--missing { background: #fde8dd; color: var(--lc-missing); }

.lc-suggestion { padding-left: 1.4rem !important; position: relative; }
.lc-suggestion::before { content: ""; position: absolute; left: .2rem; top: 1.05rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--lc-signal); }

.lc-empty { color: var(--lc-muted); margin: 0; }

.lc-ask { display: flex; gap: .5rem; margin-bottom: .5rem; }
.lc-ask input { flex: 1; padding: .65rem .8rem; border: 1px solid var(--lc-border); border-radius: 8px; font: inherit; background: var(--lc-paper); }
.lc-ask button { padding: .65rem 1.2rem; border: 0; border-radius: 8px; background: var(--lc-lab); color: #fff; font: inherit; font-weight: 700; }
.lc-ask :disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 600px) {
    .lc-lesson { grid-template-columns: 1fr; gap: .25rem; }
    .lc-footer { flex-direction: column; gap: .25rem; }
}

/* ---------- Navigation ---------- */
.lc-skip { position: absolute; left: -999px; }
.lc-skip:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .5rem 1rem; border-radius: 8px; }
.lc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lc-header { position: sticky; top: 0; z-index: 20; gap: 1rem; }
.lc-nav { flex-wrap: wrap; justify-content: flex-end; }
.lc-nav__logout { color: var(--lc-muted) !important; }
.lc-nav-toggle { display: none; }

@media (max-width: 860px) {
    .lc-nav-toggle {
        display: inline-flex; align-items: center; justify-content: center;
        width: 44px; height: 44px; border: 1px solid var(--lc-border); border-radius: 10px; background: #fff; cursor: pointer;
    }
    .lc-nav-toggle span:first-child, .lc-nav-toggle span:first-child::before, .lc-nav-toggle span:first-child::after {
        display: block; width: 18px; height: 2px; background: var(--lc-ink); position: relative; content: "";
    }
    .lc-nav-toggle span:first-child::before { position: absolute; top: -6px; }
    .lc-nav-toggle span:first-child::after { position: absolute; top: 6px; }
    .lc-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
        background: #fff; border-bottom: 1px solid var(--lc-border); padding: .5rem 1rem 1rem; box-shadow: var(--lc-shadow);
    }
    .lc-nav a { padding: .8rem 1rem; border-radius: 10px; }
    .lc-nav-open .lc-nav { display: flex; }
}

/* ---------- Seitenkopf, Karten, Formulare ---------- */
.lc-page-head { margin: .5rem 0 1.5rem; }
.lc-page-head h1 { margin: .25rem 0 .35rem; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.01em; }
.lc-page-head p { margin: 0; color: var(--lc-muted); max-width: 46rem; }
.lc-page-head--actions { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.lc-back { display: inline-block; color: var(--lc-muted); text-decoration: none; font-size: .9rem; }
.lc-back:hover { color: var(--lc-lab-dark); }

.lc-card + .lc-card { margin-top: 1rem; }
.lc-grid .lc-card + .lc-card { margin-top: 0; }
.lc-card--narrow { max-width: 40rem; }
.lc-grid--settings { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); align-items: start; }

.lc-form { display: flex; flex-direction: column; gap: 1rem; }
.lc-form--inline { flex-direction: row; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
.lc-form--inline .lc-input { flex: 1 1 14rem; }
.lc-field { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .92rem; }
.lc-field small { font-weight: 400; color: var(--lc-muted); }
.lc-field-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.lc-field-row > .lc-field { flex: 1 1 10rem; }
.lc-field--small { flex: 0 1 7rem !important; }
.lc-field--grow { flex: 3 1 16rem !important; }
.lc-input, .lc-select {
    width: 100%;
    padding: .7rem .85rem;
    border: 1px solid var(--lc-border);
    border-radius: 10px;
    font: inherit;
    font-weight: 400;
    background: var(--lc-paper);
    color: var(--lc-ink);
}
.lc-input:focus, .lc-select:focus { outline: 2px solid var(--lc-lab); outline-offset: 1px; background: #fff; }
textarea.lc-input { resize: vertical; line-height: 1.5; }
.lc-mono { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .9em; }
.lc-check { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.lc-check input { width: 1.2rem; height: 1.2rem; accent-color: var(--lc-lab); }

.lc-button {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .7rem 1.2rem; border: 0; border-radius: 10px;
    background: var(--lc-lab); color: #fff; font: inherit; font-weight: 700;
    text-decoration: none; cursor: pointer; transition: background .15s, transform .05s;
}
.lc-button:hover { background: var(--lc-lab-dark); color: #fff; }
.lc-button:active { transform: translateY(1px); }
.lc-button:disabled { opacity: .6; cursor: progress; }
.lc-button--inline { width: auto; }
.lc-button--ghost { background: transparent; color: var(--lc-lab-dark); border: 1px solid var(--lc-border); }
.lc-button--ghost:hover { background: var(--lc-lab-soft); color: var(--lc-lab-dark); }
.lc-button--danger-ghost { background: transparent; color: var(--lc-missing); border: 1px solid #f3d3c4; }
.lc-button--danger-ghost:hover { background: #fde8dd; color: var(--lc-missing); }
.lc-icon-button { border: 0; background: none; font-size: 1.4rem; line-height: 1; color: var(--lc-muted); cursor: pointer; padding: .2rem .5rem; border-radius: 8px; }
.lc-icon-button:hover { background: #fde8dd; color: var(--lc-missing); }
.lc-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .75rem; }
.lc-inline-form { display: inline; margin: 0; }
.lc-sticky-actions { position: sticky; bottom: 0; padding: 1rem 0; background: linear-gradient(transparent, var(--lc-paper) 30%); }

.lc-status { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; margin: 0 0 .75rem; }
.lc-status::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--lc-muted); }
.lc-status--ok { color: var(--lc-ok); }
.lc-status--ok::before { background: var(--lc-ok); }
.lc-status--off { color: var(--lc-muted); }
.lc-steps { margin: 0 0 1rem; padding-left: 1.25rem; color: var(--lc-muted); }
.lc-steps li { margin-bottom: .25rem; }
.lc-details { margin-top: .75rem; }
.lc-details summary { cursor: pointer; color: var(--lc-lab-dark); font-weight: 600; }
.lc-details[open] summary { margin-bottom: .75rem; }
.lc-hint { color: var(--lc-muted); font-size: .88rem; margin: .5rem 0 0; }
.lc-callout { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-radius: 12px; background: var(--lc-lab-soft); }
.lc-callout p { margin: 0; flex: 1 1 18rem; }

.lc-usage { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 1.25rem; }
.lc-usage div { background: var(--lc-paper); border-radius: 10px; padding: .75rem; text-align: center; }
.lc-usage strong { display: block; font-size: 1.2rem; }
.lc-usage span { font-size: .78rem; color: var(--lc-muted); }

.lc-empty-state { text-align: center; padding: 3rem 1rem; background: var(--lc-card); border: 1px dashed var(--lc-border); border-radius: var(--lc-radius); }
.lc-empty-state h2 { margin: 0 0 .5rem; }
.lc-empty-state p { color: var(--lc-muted); margin: 0 0 1.25rem; }

/* ---------- Meldungen ---------- */
.lc-flash-stack { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; }
.lc-flash { display: flex; flex-direction: column; gap: .15rem; padding: .85rem 1.1rem; border-radius: 12px; background: var(--lc-lab-soft); border-left: 4px solid var(--lc-lab); transition: opacity .4s; }
.lc-flash--danger, .lc-flash--error { background: #fde8dd; border-color: var(--lc-missing); }
.lc-flash--warning { background: #fdf1dc; border-color: var(--lc-warn); }
.lc-flash--info, .lc-flash--notice { background: #eef2f6; border-color: var(--lc-muted); }
.lc-flash.is-hidden { opacity: 0; pointer-events: none; }

.lc-busy { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgb(246 244 239 / .8); backdrop-filter: blur(3px); }
.lc-busy__box { background: #fff; padding: 1.5rem 2rem; border-radius: var(--lc-radius); box-shadow: var(--lc-shadow); text-align: center; max-width: 22rem; }
.lc-busy__box p { margin: .75rem 0 0; font-weight: 600; }
.lc-spinner { display: inline-block; width: 2.2rem; height: 2.2rem; border: 3px solid var(--lc-lab-soft); border-top-color: var(--lc-lab); border-radius: 50%; animation: lc-spin .8s linear infinite; }
@keyframes lc-spin { to { transform: rotate(360deg); } }

/* ---------- KI-Antworten ---------- */
.lc-ask { flex-wrap: wrap; }
.lc-ask .lc-select { flex: 0 1 12rem; width: auto; }
.lc-ask .lc-input { flex: 1 1 18rem; }
.lc-answer { margin-top: 1rem; padding: 1.25rem; border-radius: 12px; background: var(--lc-paper); }
.lc-answer__question { font-weight: 700; margin: 0 0 .75rem; }
.lc-prose { line-height: 1.6; }
.lc-prose h2, .lc-prose h3, .lc-prose h4 { margin: 1.2em 0 .4em; line-height: 1.25; text-transform: none; letter-spacing: 0; color: var(--lc-ink); font-size: 1.1rem; }
.lc-prose h2:first-child, .lc-prose h3:first-child { margin-top: 0; }
.lc-prose ul, .lc-prose ol { padding-left: 1.3rem; }
.lc-prose li { margin: .2rem 0; }
.lc-prose code { background: #efece5; padding: 0 .3rem; border-radius: 4px; }
.lc-table-wrap { overflow-x: auto; }
.lc-table { border-collapse: collapse; width: 100%; margin: .75rem 0; }
.lc-table th, .lc-table td { border: 1px solid var(--lc-border); padding: .45rem .6rem; text-align: left; vertical-align: top; }
.lc-table th { background: var(--lc-paper); }

/* ---------- Klassen, Lehrplan, Scannen ---------- */
.lc-class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.lc-class-card { --dep-color: var(--lc-border); background: var(--lc-card); border: 1px solid var(--lc-border); border-top: 5px solid var(--dep-color); border-radius: var(--lc-radius); padding: 1.1rem 1.25rem; box-shadow: var(--lc-shadow); }
.lc-class-card header { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.lc-class-card__title { font-size: 1.4rem; font-weight: 800; }
.lc-class-card p { margin: .4rem 0 0; }
.lc-chip--static::before { display: inline-block !important; }

.lc-curriculum__item { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.lc-review { display: flex; flex-direction: column; gap: .75rem; }

.lc-dropzone { position: relative; display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 2rem 1rem; border: 2px dashed var(--lc-border); border-radius: var(--lc-radius); background: var(--lc-paper); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.lc-dropzone:hover { border-color: var(--lc-lab); background: var(--lc-lab-soft); }
.lc-dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.lc-dropzone__icon { font-size: 2.2rem; }
.lc-dropzone__title { font-weight: 700; font-size: 1.05rem; }
.lc-dropzone__hint { color: var(--lc-muted); font-size: .88rem; }
.lc-preview { display: flex; flex-wrap: wrap; gap: .75rem; }
.lc-preview:empty { display: none; }
.lc-preview figure { margin: 0; width: 110px; }
.lc-preview img { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid var(--lc-border); }
.lc-preview figure.is-file::before { content: "📄"; display: grid; place-items: center; width: 110px; height: 110px; font-size: 2.5rem; background: #fff; border-radius: 10px; border: 1px solid var(--lc-border); }
.lc-preview figcaption { font-size: .75rem; color: var(--lc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-ocr { font-family: inherit; background: #fff; }

@media print {
    .lc-header, .lc-footer, .lc-page-head, .lc-hint, .lc-flash-stack { display: none !important; }
    body { background: #fff; }
    .lc-card { box-shadow: none; border: 0; padding: 0; }
}

/* ---------- Anmeldung ---------- */
.lc-auth { display: flex; flex-direction: column; gap: 1rem; }
.lc-auth--center { align-items: center; text-align: center; }
.lc-auth__title { margin: 0; font-size: 1.35rem; }
.lc-auth__welcome { font-size: 1.3rem; font-weight: 700; margin: 0; }
.lc-auth__hint { color: var(--lc-muted); margin: 0; font-size: .92rem; }
.lc-auth__message { display: flex; flex-direction: column; gap: .2rem; padding: .85rem 1rem; border-radius: 12px; background: var(--lc-lab-soft); }
.lc-auth__message--error { background: #fde8dd; color: #7c2d12; }
.lc-auth__message--welcome { display: none; }
.lc-auth__passkey { display: flex; flex-direction: column; gap: .6rem; }
.lc-auth__passkey-btn {
    display: flex; align-items: center; justify-content: center; gap: .75rem; width: 100%;
    padding: 1rem 1.25rem; border: 0; border-radius: 14px; cursor: pointer;
    background: linear-gradient(135deg, var(--lc-lab), #25a585); color: #fff;
    font: inherit; font-size: 1.08rem; font-weight: 700; box-shadow: 0 6px 18px rgb(31 138 112 / .28);
    transition: transform .08s, box-shadow .15s;
}
.lc-auth__passkey-btn:hover { box-shadow: 0 8px 24px rgb(31 138 112 / .38); }
.lc-auth__passkey-btn:active { transform: translateY(1px); }
.lc-auth__passkey-icon { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgb(255 255 255 / .18); }
.lc-auth__passkey .lc-auth__hint { text-align: center; }
.lc-auth__links { margin: 0; text-align: center; font-size: .9rem; }
.lc-auth__links a { color: var(--lc-lab-dark); }
.lc-auth__error { padding: .75rem 1rem; border-radius: 10px; background: #fde8dd; color: #7c2d12; }
.lc-auth__status { padding: .75rem 1rem; border-radius: 10px; background: var(--lc-lab-soft); color: var(--lc-lab-dark); font-weight: 600; }
.lc-auth__recovery { display: flex; flex-direction: column; gap: .6rem; padding: 1rem; border-radius: 12px; background: var(--lc-paper); }
.lc-auth__recovery h3 { margin: 0; font-size: 1.05rem; }
.lc-auth__back { font-size: .9rem; color: var(--lc-muted); }
.lc-auth__divider { display: flex; align-items: center; gap: .75rem; color: var(--lc-muted); font-size: .85rem; }
.lc-auth__divider::before, .lc-auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--lc-border); }
.lc-password { position: relative; display: block; }
.lc-password .lc-input { padding-right: 6rem; }
.lc-password__toggle { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--lc-lab-dark); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; padding: .4rem .6rem; border-radius: 8px; }
.lc-password__toggle:hover { background: var(--lc-lab-soft); }
.lc-requirements { margin: 0; padding-left: 1.2rem; color: var(--lc-muted); font-size: .88rem; }
.lc-auth__logout { margin: 0; }

/* Login-Karte (Inhaltselement felogin) */
.frame-type-felogin_login > header { display: none; }
.frame-type-felogin_login h3 { margin: 0; }

/* Passkey-Verwaltung (EXT:nr_passkeys_fe) im luschlab-Stil */
.frame-type-nrpasskeysfe_passkeymanagement, .frame-type-nrpasskeysfe_passkeyenrollment {
    margin-top: 1rem; padding: 1.1rem 1.3rem; background: var(--lc-card); border: 1px solid var(--lc-border); border-radius: var(--lc-radius); box-shadow: var(--lc-shadow);
}
.frame-type-nrpasskeysfe_passkeymanagement .nr-passkeys-fe-btn--primary,
.frame-type-nrpasskeysfe_passkeyenrollment .nr-passkeys-fe-btn--primary { background: var(--lc-lab) !important; border-color: var(--lc-lab) !important; border-radius: 10px !important; }

/* ---------- Assistent (Chat) ---------- */
.lc-chat__panel { display: flex; flex-direction: column; background: var(--lc-card); border: 1px solid var(--lc-border); border-radius: var(--lc-radius); box-shadow: var(--lc-shadow); overflow: hidden; }
.lc-chat__panel[hidden] { display: none; }
.lc-chat--page .lc-chat__panel { height: calc(100dvh - 17rem); min-height: 480px; }
.lc-chat--widget { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; }
.lc-chat--widget .lc-chat__panel { order: -1; width: min(400px, calc(100vw - 2rem)); height: min(600px, calc(100dvh - 7rem)); box-shadow: 0 16px 48px rgb(20 32 43 / .22); }
.lc-chat__fab { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.2rem; border: 0; border-radius: 999px; background: var(--lc-ink); color: #fff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 8px 24px rgb(20 32 43 / .28); }
.lc-chat__fab span { color: #6ee7c5; }
.lc-chat.is-open .lc-chat__fab { background: var(--lc-lab-dark); }
.lc-chat__head { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid var(--lc-border); background: var(--lc-paper); }
.lc-chat__head button { border: 0; background: none; font: inherit; color: var(--lc-muted); cursor: pointer; padding: .2rem .5rem; border-radius: 6px; }
.lc-chat__head button:hover { background: #fff; color: var(--lc-ink); }
.lc-chat__close { font-size: 1.3rem; line-height: 1; }
.lc-chat__log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.lc-chat__msg { max-width: 88%; padding: .65rem .9rem; border-radius: 14px; line-height: 1.5; font-size: .95rem; }
.lc-chat__msg p { margin: 0 0 .4rem; }
.lc-chat__msg p:last-child { margin-bottom: 0; }
.lc-chat__msg h4 { margin: .5rem 0 .25rem; font-size: 1rem; }
.lc-chat__msg ul, .lc-chat__msg ol { margin: .25rem 0; padding-left: 1.2rem; }
.lc-chat__msg--user { align-self: flex-end; background: var(--lc-lab); color: #fff; border-bottom-right-radius: 4px; }
.lc-chat__msg--assistant { align-self: flex-start; background: var(--lc-paper); border-bottom-left-radius: 4px; }
.lc-chat__msg--error { align-self: flex-start; background: #fde8dd; color: #7c2d12; }
.lc-chat__msg.is-typing p { animation: lc-pulse 1s infinite; }
@keyframes lc-pulse { 50% { opacity: .3; } }
.lc-chat__actions { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.lc-chat__action { font-size: .8rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: var(--lc-lab-soft); color: var(--lc-lab-dark); text-decoration: none; }
.lc-chat__action--deleted { background: #fde8dd; color: var(--lc-missing); }
.lc-chat__suggestions { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .75rem; }
.lc-chat__suggestion { border: 1px solid var(--lc-border); background: #fff; border-radius: 999px; padding: .35rem .75rem; font: inherit; font-size: .83rem; cursor: pointer; color: var(--lc-ink); text-align: left; }
.lc-chat__suggestion:hover { border-color: var(--lc-lab); background: var(--lc-lab-soft); }
.lc-chat__form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--lc-border); }
.lc-chat__form textarea { flex: 1; resize: none; border: 1px solid var(--lc-border); border-radius: 10px; padding: .6rem .8rem; font: inherit; background: var(--lc-paper); max-height: 160px; }
.lc-chat__form textarea:focus { outline: 2px solid var(--lc-lab); background: #fff; }
.lc-chat__form .lc-button { width: auto; flex: 0 0 auto; padding: .6rem .95rem; align-self: flex-end; }
.lc-chat__form textarea { min-width: 0; }
@media print { .lc-chat { display: none !important; } }
.lc-chat__table { overflow-x: auto; margin: .4rem 0; }
.lc-chat__table table { border-collapse: collapse; font-size: .85rem; }
.lc-chat__table th, .lc-chat__table td { border: 1px solid var(--lc-border); padding: .25rem .45rem; text-align: left; }
.lc-chat__table th { background: #fff; }
