/* FLOSS learning pages share Kansa's colours. The console keeps Windows colours. */
.fls-guide,.fls-lab,.fls-full{min-width:0;max-width:100%}
.fls-lab,.fls-full{color:var(--kfl-ink)}
.fls-guide{color:var(--md-default-fg-color)}
.fls-lab,.fls-lab *{box-sizing:border-box}
/* Prompt movement must scroll the console, not anchor the outer page to its caret. */
.fls-lab{overflow-anchor:none}
.fls-lab [hidden]{display:none!important}
.fls-hero{padding:1.3rem;border:1px solid var(--kfl-border);border-top:4px solid var(--kfl-blue);border-radius:12px;background:linear-gradient(115deg,var(--kfl-surface),var(--md-default-bg-color))}
.fls-hero>span,.fls-brief>span{display:block;color:var(--kfl-blue);font-size:.65rem;font-weight:750;letter-spacing:.04em;text-transform:uppercase}
.fls-hero>strong{display:block;max-width:30em;margin:.5rem 0;font-size:1.3rem;line-height:1.35}
.fls-hero>p{max-width:45em;font-size:.8rem}
body .md-typeset .fls-hero .md-button{padding:.55rem .8rem;color:var(--kfl-action-ink);background:var(--kfl-action);border-color:var(--kfl-action);font-size:.75rem}
.fls-guide img{display:block;max-width:100%;height:auto;margin:1rem auto;border:1px solid var(--kfl-border);border-radius:6px}
.fls-guide code{overflow-wrap:anywhere}
.fls-callout{margin:1rem 0;padding:.85rem 1rem;border:1px solid var(--kfl-border);border-left:4px solid var(--kfl-blue);border-radius:8px;background:var(--kfl-surface)}
.fls-callout>strong{color:var(--kfl-blue)}.md-typeset .fls-callout p{margin:.3rem 0 0;font-size:.78rem;line-height:1.65}
.md-typeset .fls-concepts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;margin:1rem 0}
.fls-concepts>div{min-width:0;padding:.8rem;border:1px solid var(--kfl-border);border-radius:8px;background:var(--kfl-surface)}
.md-typeset .fls-concepts dt{margin:0 0 .3rem;color:var(--kfl-blue);font-size:.8rem}.md-typeset .fls-concepts dd{margin:0;font-size:.75rem;line-height:1.65}
.fls-table{max-width:100%;overflow-x:auto;margin:1rem 0;border:1px solid var(--kfl-border);border-radius:8px}
body .md-typeset .fls-table table{display:table;width:100%;margin:0;border:0;font-size:.74rem}
.fls-table th{background:var(--kfl-surface);color:var(--kfl-ink)}
body .md-typeset :is(.fls-interactive,.fls-full)>.susa-lab-shell__content{padding:clamp(14px,2.5vw,24px)}
.fls-lab{--fls-ok:#166534;--fls-ok-bg:#f0fdf4;--fls-ok-edge:#8fc9a2;--fls-error:#a61b25;--fls-error-bg:#fff1f2;--fls-error-edge:#e89ca4;font:16px/1.65 var(--md-text-font-family,sans-serif)}
[data-md-color-scheme=slate] .fls-lab{--fls-ok:#9be4b6;--fls-ok-bg:#123421;--fls-ok-edge:#398957;--fls-error:#ffb4bc;--fls-error-bg:#3d1e25;--fls-error-edge:#a95d6a}
.fls-lab :is(p,li,label,button,small){overflow-wrap:anywhere}
.fls-lab :is(button,textarea){box-sizing:border-box;font:inherit}
.fls-lab button{cursor:pointer;touch-action:manipulation}
.fls-lab button:disabled{opacity:.5;cursor:not-allowed}
.fls-lab :is(button,textarea,summary,[role=textbox]):focus-visible{outline:3px solid var(--kfl-blue);outline-offset:3px}
.fls-brief,.fls-coach,.fls-note,.fls-record{min-width:0;padding:1rem 1.1rem;border:1px solid var(--kfl-border);border-radius:9px;background:var(--md-default-bg-color)}
/* A compact brief and stepper keep the active command close to the console. */
.fls-brief{padding:.65rem .8rem;background:var(--kfl-surface)}
.fls-brief>strong{display:block;margin:.2rem 0;font-size:18px;line-height:1.35}
.md-typeset .fls-lab p{font-size:16px;line-height:1.55}
body .md-typeset .fls-lab .fls-brief>p{margin:.2rem 0 0;font-size:14px!important;line-height:1.45!important}
.fls-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:.65rem 0;border:1px solid var(--kfl-border);border-radius:7px;overflow:hidden;background:var(--md-default-bg-color)}
.fls-steps>button{position:relative;display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:48px;padding:6px;border:0;border-right:1px solid var(--kfl-border);color:var(--kfl-ink);background:transparent;font-size:14px;line-height:1.25}
.fls-steps>button:last-child{border-right:0}
.fls-steps b{display:grid;place-items:center;flex:none;width:22px;height:22px;border:1px solid var(--kfl-border);border-radius:50%;font-size:11px;font-weight:600}
.fls-steps [aria-current=step]{color:var(--kfl-blue);background:var(--kfl-surface);font-weight:700;box-shadow:inset 0 -3px var(--kfl-blue)}
.fls-steps [aria-current=step] b{border-color:var(--kfl-action);background:var(--kfl-action);color:var(--kfl-action-ink)}
.fls-steps .is-complete b{border-color:var(--fls-ok-edge);background:var(--fls-ok-bg);color:var(--fls-ok);font-size:0}
.fls-steps .is-complete b:after{content:'\2713';font-size:13px}
.fls-steps>button:hover:not(:disabled){background:var(--kfl-surface)}
.fls-lab .fls-steps>button:focus-visible{outline-offset:-3px;z-index:1}
.fls-coach{padding:.7rem .8rem;border-left:3px solid var(--kfl-blue);border-radius:7px 7px 0 0;margin:0}
.fls-coach>header{display:flex;align-items:center;justify-content:space-between;gap:8px}
.fls-coach [data-fls-progress]{flex:none;color:var(--kfl-blue);font-size:12px;font-variant-numeric:tabular-nums}
body .md-typeset .fls-lab h4{margin:0!important;font-size:17px!important;line-height:1.3;color:var(--kfl-ink)!important}
body .md-typeset .fls-lab .fls-coach>p{margin:.3rem 0 .5rem;font-size:14px!important;line-height:1.45!important}
.fls-record{margin:1rem 0;background:var(--kfl-surface)}.fls-record>strong{font-size:15px;color:var(--kfl-blue)}
.fls-record dl{display:grid;grid-template-columns:1fr 2fr;gap:.5rem;margin:.6rem 0}
.fls-record dl>div{min-width:0}.fls-record dl>div:last-child{grid-column:1/-1}
.md-typeset .fls-record dt{margin:0;color:var(--kfl-blue);font-size:13px}.md-typeset .fls-record dd{margin:0;font-size:14px}
.fls-record code{white-space:normal;overflow-wrap:anywhere;font-size:14px}.fls-record small{display:block;font-size:13px}
.fls-command-guide{margin:0;padding:0}
.fls-command-guide>strong{color:var(--kfl-blue);font-size:15px}.md-typeset .fls-command-guide>p{margin:.3rem 0;font-size:14px}
.fls-command{display:flex;align-items:center;gap:.6rem;margin-top:0;padding:2px 4px 2px 10px;border:1px solid var(--kfl-border);border-radius:6px;background:var(--md-default-bg-color)}
.md-typeset .fls-command code{flex:1;min-width:0;padding:0;background:transparent;color:var(--kfl-ink);font:14px/1.5 Consolas,'Cascadia Mono',monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.fls-command button{display:grid;place-items:center;flex:none;width:40px;height:40px;padding:8px;border:1px solid var(--kfl-border);border-radius:5px;color:var(--kfl-blue);background:var(--md-default-bg-color)}
.fls-command svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.fls-copy-tick,.is-copied .fls-copy-icon{display:none}.is-copied .fls-copy-tick{display:block}
.md-typeset .fls-help{max-width:100%;margin:.7rem 0!important;padding:0!important;border:1px solid var(--kfl-border)!important;border-radius:7px;background:var(--md-default-bg-color)!important;box-shadow:none;overflow:hidden}
.md-typeset .fls-help>summary{position:relative;margin:0!important;padding:.6rem 2rem .6rem .8rem!important;list-style:none;background:transparent!important;color:var(--kfl-blue)!important;font-size:14px;font-weight:650;cursor:pointer}
.fls-help>summary::-webkit-details-marker{display:none}.fls-help>summary:before{display:none!important}
.fls-help>summary:after{content:''!important;display:block!important;position:absolute;right:.85rem;top:50%;width:7px;height:7px;margin-top:-4px;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor;background:none!important;mask:none!important;-webkit-mask:none!important;transform:rotate(45deg)!important}
.fls-help[open]>summary:after{transform:rotate(135deg)!important}
.md-typeset .fls-help>p{margin:0!important;padding:.5rem .8rem .8rem;font-size:14px;line-height:1.65}
.md-typeset .fls-lab .fls-feedback{margin:.7rem 0;padding:.7rem .8rem;border:1px solid var(--kfl-border);border-left:3px solid var(--kfl-blue);border-radius:6px;background:var(--kfl-surface);font-size:14px;line-height:1.6}
.fls-terminal{overflow:hidden;max-width:100%;margin:0;border:1px solid #989898;border-radius:2px;background:#0c0c0c;color:#ccc;box-shadow:0 5px 18px #071a3020}
.fls-busy{min-height:1.3em;color:#ccc;font:inherit;white-space:pre-wrap}
.fls-resources{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:8px;margin-top:.6rem}
.md-typeset .fls-resources>.fls-help{margin:0!important}
.fls-resources summary{font-size:14px!important}
.fls-resources .fls-record{padding:.7rem .8rem}
.md-typeset .fls-resources :is(p,li){font-size:14px;line-height:1.6}
.fls-case-record .fls-record{margin:0;border:0;border-radius:0}
.fls-terminal:focus-within{outline:2px solid var(--kfl-blue);outline-offset:2px}
.fls-titlebar{display:flex;align-items:center;gap:7px;height:32px;padding-left:9px;background:#f3f3f3;color:#111;font:12px/1 'Segoe UI',Arial,sans-serif;user-select:none}
.fls-titlebar>img{flex:none;width:16px;height:16px;margin:0}.fls-titlebar>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fls-window-controls{display:flex;flex:none;height:100%}.fls-window-controls i{display:grid;place-items:center;width:44px}.fls-window-controls svg{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:1}
.fls-console{height:clamp(600px,72vh,860px);max-width:100%;overflow:auto;overscroll-behavior:contain;padding:12px 14px 18px;scrollbar-color:#999 #202020;background:#0c0c0c;color:#ccc;color-scheme:dark;font:16px/1.3 Consolas,'Cascadia Mono','Courier New',monospace;font-variant-ligatures:none;cursor:text;text-align:left;tab-size:4}
body .md-typeset .fls-console .fls-line{min-height:1.3em;margin:0;padding:0;color:#ccc;font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-all}
body .md-typeset .fls-console pre.fls-captured{width:max-content;min-width:100%;max-width:none;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;color:#ccc;font:inherit;line-height:inherit;white-space:pre;overflow:visible;overflow-wrap:normal;word-break:normal}
.fls-prompt{position:relative;margin:0;padding:0;font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-all}
.fls-input{padding:0;margin:0;border:0;background:transparent;color:#ccc;caret-color:#ccc;font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-all;outline:none!important;box-shadow:none!important}
.fls-input:empty:before{content:'\00a0'}.fls-input[aria-disabled=true]{pointer-events:none}
.fls-ansi-bold{font-weight:700}.fls-ansi-dim{color:#9e9e9e}
.fls-ansi-30{color:#0c0c0c}.fls-ansi-31{color:#c50f1f}.fls-ansi-32{color:#13a10e}.fls-ansi-33{color:#c19c00}.fls-ansi-34{color:#0037da}.fls-ansi-35{color:#881798}.fls-ansi-36{color:#3a96dd}.fls-ansi-37{color:#ccc}
.fls-ansi-90{color:#767676}.fls-ansi-91{color:#e74856}.fls-ansi-92{color:#16c60c}.fls-ansi-93{color:#f9f1a5}.fls-ansi-94{color:#3b78ff}.fls-ansi-95{color:#b4009e}.fls-ansi-96{color:#61d6d6}.fls-ansi-97{color:#f2f2f2}
.md-typeset .fls-lab .fls-keyboard{margin:.6rem 0;font-size:13px;line-height:1.6}
.fls-note{margin:1rem 0}
body .md-typeset .fls-lab [data-state=correct]{color:var(--fls-ok);border-color:var(--fls-ok-edge);background:var(--fls-ok-bg)}
body .md-typeset .fls-lab [data-state=incorrect]{color:var(--fls-error);border-color:var(--fls-error-edge);background:var(--fls-error-bg)}
.fls-note label{display:block;font-size:15px;font-weight:650}.fls-note textarea{display:block;width:100%;padding:.75rem;margin:.5rem 0;border:1px solid var(--kfl-border);border-radius:6px;resize:vertical;background:var(--md-default-bg-color);color:var(--kfl-ink);font-size:15px;line-height:1.6}.md-typeset .fls-note p{font-size:14px}
.fls-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.6rem;margin-top:1rem;padding:.9rem 0 0;border-top:1px solid var(--kfl-border)}
.fls-footer>div{display:flex;flex-wrap:wrap;gap:.5rem}.fls-footer button{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;min-height:44px;padding:.5rem .7rem;border:1px solid var(--kfl-border);border-radius:6px;background:var(--md-default-bg-color);color:var(--kfl-ink);font-size:14px;font-weight:650;line-height:1.5}
.fls-footer svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5}
.fls-footer button.fls-primary{background:var(--kfl-action);color:var(--kfl-action-ink);border-color:var(--kfl-action)}
.fls-footer button.fls-primary:hover:not(:disabled){background:var(--kfl-action-hover)}
.fls-interactive,.fls-full{--md-accent-fg-color:var(--kfl-blue);--md-typeset-a-color:var(--kfl-blue)}
.fls-full [data-floss-full]{min-width:0}
.fls-full .cdk-practice__path small{display:block;min-height:1em;font-size:.6rem;color:var(--kfl-blue)}
.fls-full .cdk-practice__path [data-state=current] b{border-color:var(--kfl-action);background:var(--kfl-action);color:var(--kfl-action-ink)}
.fls-full .cdk-practice__path [data-state=complete] b{background:var(--kfl-surface);color:var(--kfl-blue)}
.fls-full :is(.highlight,details){min-width:0;max-width:100%}
body .md-typeset .fls-full .highlight{overflow-x:auto}
body .md-typeset .fls-full .highlight pre{max-width:100%;overflow-x:auto}
.fls-full .kfl-evidence-list__item>span{overflow-wrap:anywhere}
.fls-full :is(.is-correct.susa-knowledge-check__feedback,button.is-correct){color:#166534;background:#f0fdf4;border-color:#8fc9a2}
.fls-full :is(.is-incorrect.susa-knowledge-check__feedback,button.is-incorrect){color:#a61b25;background:#fff1f2;border-color:#e89ca4}
[data-md-color-scheme=slate] .fls-full :is(.is-correct.susa-knowledge-check__feedback,button.is-correct){color:#9be4b6;background:#123421;border-color:#398957}
[data-md-color-scheme=slate] .fls-full :is(.is-incorrect.susa-knowledge-check__feedback,button.is-incorrect){color:#ffb4bc;background:#3d1e25;border-color:#a95d6a}
@media(max-width:700px){.md-typeset .fls-concepts{grid-template-columns:1fr}.fls-hero{padding:1rem}.fls-hero>strong{font-size:1.1rem}.fls-note{padding:.8rem}.fls-console{height:clamp(500px,70vh,720px);font-size:16px}.fls-window-controls i{width:29px}.fls-titlebar{font-size:11px}.fls-footer>div{width:100%}.fls-record dl{grid-template-columns:1fr}.fls-record dl>div:last-child{grid-column:auto}}
@media(max-width:500px){.fls-resources{grid-template-columns:1fr}.fls-steps>button{flex-direction:column;gap:4px;min-height:60px;padding:5px 2px;font-size:14px}.fls-steps b{width:20px;height:20px}.fls-coach{padding:.6rem}.fls-brief{padding:.6rem}.fls-brief>strong{font-size:16px}.fls-footer>button{width:100%}.fls-footer>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.fls-footer .fls-primary{grid-column:1/-1}}

@media(max-width:700px){.fls-full .highlight :is(pre,pre code){white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal}}

/* Reading pages use the lab's blue accents with neutral, comfortably sized text. */
body .md-content .md-typeset .fls-guide p{font-size:.8rem!important;line-height:1.75!important}
.md-typeset .fls-guide>p{max-width:72ch;margin:1rem 0}
.md-typeset .fls-guide>h2{margin:2.3rem 0 .9rem;border-bottom:0}
.md-typeset .fls-guide>h3{margin:1.5rem 0 .6rem;color:var(--md-default-fg-color)}
.fls-overview-hero{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(10rem,.8fr);align-items:center;gap:1.4rem;padding:1.4rem}
.fls-hero-copy>span{display:block;color:var(--kfl-blue);font-size:.7rem;font-weight:650;letter-spacing:.025em}
.fls-hero-copy>strong{display:block;margin:.55rem 0;color:var(--md-default-fg-color);font-size:clamp(1.35rem,2.7vw,1.7rem);font-weight:600;line-height:1.2}
.md-typeset .fls-hero-copy>p{margin:.7rem 0 1rem}
.md-typeset .fls-facts{display:grid;gap:.8rem;margin:0;padding:1rem;border:1px solid var(--kfl-border);border-radius:8px;background:var(--md-default-bg-color)}
.fls-facts>div+div{padding-top:.8rem;border-top:1px solid var(--kfl-border)}
.md-typeset .fls-facts dt{margin:0 0 .2rem;color:var(--kfl-blue);font-size:.7rem;font-weight:650}
.md-typeset .fls-facts dd{margin:0;color:var(--md-default-fg-color);font-size:.8rem;line-height:1.55}
.fls-guide .fls-table{margin:1rem 0;border-radius:9px;background:var(--md-default-bg-color)}
body .md-typeset .fls-guide .fls-table table{width:100%;font-size:.8rem;line-height:1.65}
.fls-guide .fls-table :is(th,td){padding:.8rem .9rem;vertical-align:top}
.fls-guide .fls-table th{font-weight:650}
.fls-guide .fls-table td:first-child{font-weight:600;color:var(--kfl-ink)}
.fls-guide .fls-table tbody tr+tr td{border-top:1px solid var(--kfl-border)}
.fls-guide .fls-table :is(.md-typeset__scrollwrap,.md-typeset__table){margin:0;padding:0}
.fls-guide .fls-table:focus-visible{outline:3px solid var(--kfl-blue);outline-offset:3px}
.fls-guide-intro{padding:1rem 1.1rem;border:1px solid var(--kfl-border);border-radius:9px;background:var(--kfl-surface)}
.md-typeset .fls-guide-intro>p{margin:0}
.fls-reading-note{margin:1.2rem 0;padding:.85rem 1rem;border-left:3px solid var(--kfl-blue);border-radius:0 6px 6px 0;background:var(--kfl-surface)}
.md-typeset .fls-reading-note>p{margin:0}
.fls-reading-note strong{color:var(--kfl-ink)}
.fls-checkpoint-note{border:1px solid var(--kfl-border);border-left:3px solid var(--kfl-blue);border-radius:6px}
.fls-guide img{max-height:38rem;width:auto;object-fit:contain;padding:.35rem;background:#fff;box-shadow:0 3px 12px #071a300d}
@media(max-width:700px){.fls-overview-hero{grid-template-columns:1fr;gap:1rem;padding:1rem}.fls-guide-intro{padding:.85rem}.md-typeset .fls-guide>h2{margin-top:1.8rem}.fls-guide .fls-table :is(th,td){padding:.65rem}.fls-reading-note{padding:.75rem .85rem}}

/* Short optional support: command hint, file identity and terminal help. */
.fls-controls{grid-column:1/-1}
.fls-resources:has(>[hidden]) .fls-controls{grid-column:auto}

/* Use Kansa's shared light/dark tokens throughout both FLOSS lab routes. */
.fls-labs{--md-accent-fg-color:var(--kfl-blue);--md-typeset-a-color:var(--kfl-blue);--md-accent-fg-color--transparent:color-mix(in srgb,var(--kfl-blue) 12%,transparent);min-width:0;max-width:100%}
body .md-typeset .fls-labs :is(.cdk-browser-lab__heading,.cdk-full-lab-heading){border-color:var(--kfl-border);background:linear-gradient(115deg,var(--kfl-surface),var(--md-default-bg-color) 85%);color:var(--kfl-ink)}
body .md-typeset .fls-labs :is(.cdk-browser-lab__heading,.cdk-full-lab-heading) h3{color:var(--kfl-ink)}
body .md-typeset .fls-labs :is(.cdk-browser-lab__heading-icon,.cdk-full-lab-heading__icon){color:var(--kfl-blue);border-color:var(--kfl-border);background:var(--md-default-bg-color)}
.fls-labs .fls-full{border:1px solid var(--kfl-border);background:var(--md-default-bg-color)}
.fls-labs .fls-full>.cdk-full-lab-heading{border-top:4px solid var(--kfl-blue);margin:0;border-radius:0}
.fls-full .cdk-practice__hero{border-color:var(--kfl-border);background:linear-gradient(115deg,var(--kfl-surface),var(--md-default-bg-color));color:var(--kfl-ink)}
.fls-full .cdk-practice__hero::after{background:radial-gradient(circle,color-mix(in srgb,var(--kfl-blue) 12%,transparent),transparent 68%)}
.fls-full .cdk-practice__hero .cdk-practice__kicker::before{background:var(--kfl-blue);box-shadow:none}
.fls-full .cdk-practice__actions{border-color:var(--kfl-border);background:var(--md-default-bg-color)}
.fls-full .cdk-practice__path ol::before{background:var(--kfl-border)}
.fls-full .cdk-practice__path a{color:var(--kfl-ink)}
.fls-full .kfl-readiness .md-button--primary{border-color:var(--kfl-action);background:var(--kfl-action);color:var(--kfl-action-ink)}
.fls-full .kfl-readiness .md-button--primary:hover{border-color:var(--kfl-action-hover);background:var(--kfl-action-hover)}
.fls-full .kfl-case-prompt{border-color:var(--kfl-border);border-left-color:var(--kfl-blue);background:var(--kfl-surface);color:var(--kfl-ink)}
.fls-full .fls-run-note{padding:.65rem .8rem;border-left:3px solid var(--kfl-blue);background:var(--kfl-surface);color:var(--kfl-ink)}
.fls-full .fls-run-note p{margin:0}
.fls-full .fls-outcome{display:block;margin:.6rem 0;color:var(--kfl-blue);font-weight:600}
.fls-full .fls-handoff-template{padding:.8rem;border:1px solid var(--kfl-border);border-radius:6px;background:var(--kfl-surface)}
body .md-typeset .fls-full .fls-handoff-template pre{margin:0;background:transparent;white-space:pre-wrap}
