/* This stylesheet is loaded only by the authored Browser Forensics labs. */
[data-bhv-lab] { padding:1rem; min-width:0; background:var(--md-default-bg-color); color:var(--md-default-fg-color); }
[data-bhv-lab] * { box-sizing:border-box; }
[data-bhv-lab] [hidden] { display:none!important; }
[data-bhv-lab] :is(button,input,select,textarea,summary,[tabindex]):focus-visible { outline:3px solid var(--kfl-blue,#246cb6); outline-offset:2px; }
.bhv-brief { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:.9rem; padding:.85rem 1rem; border:1px solid var(--kfl-border); border-radius:10px; background:var(--kfl-surface); color:var(--kfl-ink); }
.bhv-brief>div>span,.bhv-coach>div>span { font-size:.6rem; font-weight:750; letter-spacing:.04em; color:var(--kfl-blue); }
.md-typeset .bhv-brief h3 { margin:.25rem 0 .4rem!important; font-size:1.08rem!important; color:var(--kfl-ink); }
.bhv-brief p { margin:0; font-size:.76rem; line-height:1.6; }
.bhv-brief dl { margin:0; display:grid; gap:.45rem; align-content:center; }
.bhv-brief dl>div { padding:.45rem .6rem; border:1px solid var(--kfl-border); border-radius:6px; background:var(--md-default-bg-color); }
.bhv-brief dt { color:var(--kfl-blue); font-size:.58rem; font-weight:650; }
.md-typeset .bhv-brief dd { margin:.15rem 0 0; color:var(--kfl-ink); font-size:.66rem; overflow-wrap:anywhere; }
.bhv-safe,.bhv-small { font-size:.65rem!important; line-height:1.6; color:var(--md-default-fg-color--light); }
.md-typeset .bhv-steps { display:grid!important; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.45rem; list-style:none; margin:.8rem 0!important; padding:0!important; }
.bhv-steps li { display:flex; align-items:center; justify-content:center; gap:.4rem; margin:0!important; min-width:0; padding:.55rem .35rem; border:1px solid var(--kfl-border); border-radius:7px; color:var(--kfl-ink); font-size:.67rem; }
.bhv-steps b { display:grid; place-items:center; flex:none; width:1.25rem; height:1.25rem; border:1px solid currentColor; border-radius:50%; font-size:.6rem; }
.bhv-steps [data-state=current] { color:var(--kfl-action-ink); background:var(--kfl-action); border-color:var(--kfl-action); font-weight:700; }
.bhv-steps [data-state=complete] { color:var(--kfl-ink); background:var(--kfl-surface); }
.bhv-coach { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); align-items:start; gap:1rem; margin:.8rem 0; padding:.85rem 1rem; border:1px solid var(--kfl-border); border-left:4px solid var(--kfl-blue); border-radius:9px; background:var(--kfl-surface); color:var(--kfl-ink); }
body .md-typeset [data-bhv-lab] .bhv-coach h4 { margin:.25rem 0 .35rem!important; color:var(--kfl-ink)!important; font-size:.86rem!important; line-height:1.4; }
.bhv-coach p { margin:0; font-size:.73rem; line-height:1.6; }
.md-typeset .bhv-coach details { margin:0; padding:0; border:0; border-radius:0; box-shadow:none; background:transparent; }
.md-typeset [data-bhv-lab] .bhv-coach details>summary { padding:.35rem 1rem .35rem 0; background:transparent!important; color:var(--kfl-blue); font-size:.7rem; }
.md-typeset [data-bhv-lab] .bhv-coach details>summary::before { display:none; }
.md-typeset .bhv-coach details>p { margin:.25rem 0; }
.bhv-native-scroll { width:100%; padding:3px; overflow-x:auto; border:1px solid #888; border-radius:4px; background:#dedede; }
[data-bhv-lab] .bhv-window { width:100%; min-width:760px; border:1px solid #888; background:#fff; color:#000; color-scheme:light; font:12px 'Segoe UI',Arial,sans-serif; }
[data-bhv-lab] .bhv-window * { font-family:'Segoe UI',Arial,sans-serif; }
.bhv-titlebar { height:27px; display:flex; align-items:center; gap:5px; padding:3px 5px; background:#f7f7f7; font-size:12px; }
.bhv-titlebar>span:first-child { color:#0f698b; font-size:15px; }
.bhv-window-chrome { margin-left:auto; color:#222; }
.bhv-menubar { position:relative; display:flex; height:24px; padding:1px 3px; background:#f9f9f9; border-bottom:1px solid #bbb; }
[data-bhv-lab] .bhv-menubar>button { min-height:0; height:21px; margin:0; padding:1px 7px; border:1px solid transparent; border-radius:0; background:none; color:#000; font-size:12px; cursor:pointer; }
.bhv-menubar>button:hover,.bhv-menubar>button[aria-expanded=true] { background:#e5f1ff!important; border-color:#8ab7e6!important; }
.bhv-menu { position:absolute; z-index:4; top:23px; min-width:205px; padding:3px; border:1px solid #999; background:#f5f5f5; box-shadow:2px 2px 4px #0003; }
[data-bhv-lab] .bhv-menu button { display:block; width:100%; padding:5px 12px; border:0; background:transparent; color:#000; font:12px 'Segoe UI',Arial,sans-serif; text-align:left; cursor:pointer; }
.bhv-menu button:hover { background:#d9eafa!important; }
.bhv-toolbar { display:flex; gap:2px; height:28px; padding:2px 4px; background:#f0f0f0; border-bottom:1px solid #aaa; }
[data-bhv-lab] .bhv-toolbar button { width:24px; height:23px; min-height:0; margin:0; padding:3px; border:1px solid transparent; border-radius:0; background:transparent; color:#316189; cursor:pointer; }
.bhv-toolbar button:hover { border-color:#8ab7e6!important; background:#e5f1ff!important; }
.bhv-toolbar svg { display:block; width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.5; }
.bhv-toolbar [data-bhv-action=refresh] { color:#348645!important; }
.bhv-quick { display:flex; align-items:center; gap:6px; padding:3px 6px; background:#f0f0f0; border-bottom:1px solid #aaa; font-size:12px; }
.bhv-quick input { flex:1; min-width:0; height:23px; border:1px solid #999; background:#fff; color:#000; font:12px 'Segoe UI',Arial,sans-serif; }
.bhv-quick button { padding:0 5px; background:#f5f5f5; color:#000; }
.bhv-list-scroll { height:330px; overflow:auto; background:#fff; }
.md-typeset [data-bhv-lab] table.bhv-list { display:table; width:max-content; min-width:1650px; max-width:none; margin:0; border:0; border-spacing:0; border-collapse:collapse; box-shadow:none; border-radius:0; font:12px 'Segoe UI',Arial,sans-serif; }
[data-bhv-lab] .bhv-list :is(th,td) { max-width:300px; height:22px; padding:2px 6px; border:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#000; background:#fff; font:12px/1.35 'Segoe UI',Arial,sans-serif; }
[data-bhv-lab] .bhv-list th { position:sticky; top:0; z-index:1; min-width:95px; height:25px; border-right:1px solid #ddd; border-bottom:1px solid #ddd; background:#fafafa; text-align:left; }
.bhv-list th:first-child { min-width:290px; }.bhv-list th:nth-child(2) { min-width:160px; }.bhv-list th:nth-child(3) { min-width:160px; }.bhv-list th:nth-child(11) { min-width:340px; }
[data-bhv-lab] .bhv-list th>button { width:100%; margin:0; padding:0; background:none; border:0; color:#000; font:12px 'Segoe UI',Arial,sans-serif; text-align:left; cursor:pointer; }
.bhv-list tr { cursor:default; }
[data-bhv-lab] .bhv-list [aria-selected=true]>td { background:#0078d7; color:#fff; }
.bhv-browser-mark { color:#1287b4; margin-right:5px; }
.bhv-list [aria-selected=true] .bhv-browser-mark { color:#fff; }
.bhv-statusbar { display:flex; align-items:center; gap:8px; justify-content:space-between; height:23px; padding:2px 5px; border-top:1px solid #aaa; background:#f5f5f5; color:#000; font-size:11px; }
.bhv-statusbar span:last-child { padding-left:10px; border-left:1px solid #ccc; color:#0000b0; }
.bhv-feedback { padding:.65rem .8rem; border:1px solid var(--kfl-border); border-left:3px solid var(--kfl-blue); border-radius:5px; background:var(--kfl-surface); color:var(--kfl-ink); font-size:.73rem; }
.bhv-footer { display:flex; align-items:center; flex-wrap:wrap; gap:.65rem; margin-top:.7rem; }
.bhv-footer strong { margin-right:auto; font-size:.72rem; color:var(--kfl-ink); }
[data-bhv-lab] .bhv-footer button,[data-bhv-lab] .bhv-report button { min-height:40px; padding:.4rem .65rem; border:1px solid var(--kfl-blue); border-radius:6px; background:var(--md-default-bg-color); color:var(--kfl-blue); font:600 .72rem var(--md-text-font-family); cursor:pointer; }
.bhv-report { margin-top:.8rem; padding:1rem; border:1px solid var(--kfl-border); border-radius:8px; }
.bhv-report h4 { margin:.2rem 0; color:var(--kfl-ink); }
.bhv-report p { font-size:.74rem; line-height:1.6; }
.bhv-report label { display:block; margin:.7rem 0 .25rem; font-size:.73rem; font-weight:650; }
.bhv-report textarea { display:block; width:100%; padding:.5rem; border:1px solid var(--kfl-border); border-radius:5px; background:var(--md-default-bg-color); color:var(--md-default-fg-color); font:inherit; font-size:.74rem; }
[data-bhv-lab] .bhv-report button[type=submit] { margin-top:.7rem; background:var(--kfl-action); color:var(--kfl-action-ink); }
.bhv-sr { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
/* Native dialogs stay light in both site themes. Their content can scroll on phones. */
[data-bhv-lab] dialog.bhv-dialog { width:min(520px,calc(100vw - 24px)); max-width:none; max-height:90dvh; margin:auto; padding:0; border:1px solid #888; border-radius:4px; background:#f0f0f0; color:#000; color-scheme:light; box-shadow:0 8px 40px #0005; font:12px 'Segoe UI',Arial,sans-serif; }
.bhv-dialog::backdrop { background:#14253655; }
.bhv-dialog :is(header,footer) { display:flex; align-items:center; gap:8px; padding:8px 10px; }
.bhv-dialog header { background:#fafafa; border-bottom:1px solid #ddd; }
.md-typeset [data-bhv-lab] .bhv-dialog h4 { margin:0!important; color:#000; font:12px 'Segoe UI',Arial,sans-serif; }
.bhv-dialog header>button { margin-left:auto!important; border:0!important; background:none!important; }
.bhv-dialog footer { justify-content:flex-end; border-top:1px solid #ddd; }
[data-bhv-lab] .bhv-dialog button { min-height:0; margin:0; padding:4px 17px; border:1px solid #bbb; border-radius:3px; background:#fafafa; color:#000; font:12px 'Segoe UI',Arial,sans-serif; cursor:pointer; }
.bhv-dialog button[type=submit] { border-color:#0078d7!important; }
.bhv-dialog-scroll { overflow:auto; max-height:calc(90dvh - 85px); }
.bhv-options-body { width:500px; padding:12px 10px; }
[data-bhv-lab] .bhv-dialog :is(label,legend,p) { color:#000; font:12px/1.5 'Segoe UI',Arial,sans-serif; }
[data-bhv-lab] .bhv-dialog :is(input:not([type=checkbox]),select) { min-width:0; height:23px; padding:1px 3px; border:1px solid #bbb; border-radius:0; background:#fff; color:#000; font:11px 'Segoe UI',Arial,sans-serif; }
.bhv-dialog input[type=checkbox] { width:13px; height:13px; margin:0 4px 0 0; accent-color:#0078d7; vertical-align:middle; }
.bhv-dialog input:disabled { background:#eee!important; }
.bhv-date-mode { display:grid; grid-template-columns:130px minmax(0,1fr) 45px; gap:5px; align-items:center; }
.bhv-range { display:flex; gap:10px; margin:8px 0 15px; }.bhv-range label { display:flex; gap:4px; align-items:center; }.bhv-range input { width:195px; }
.bhv-extra-filter { margin:10px 0; }.bhv-extra-filter>label { display:block; }.bhv-extra-filter>input { display:block; width:96%; margin-top:4px; }
.bhv-native-extra { display:block; margin:7px 0; }
.bhv-dialog fieldset { margin:12px 0; padding:8px 6px; border:1px solid #ccc; }
.bhv-browser-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; }
.bhv-browser-options label { display:flex; align-items:center; font-size:10px!important; white-space:nowrap; }
.bhv-dialog fieldset>select { width:100%; }
.bhv-folder { display:flex; gap:5px; margin:7px 0; }.bhv-folder input { flex:1; }.bhv-folder button { padding:1px 10px!important; }
.bhv-disabled { display:grid; grid-template-columns:110px 1fr; align-items:center; margin:7px 0; color:#555!important; }
.bhv-dialog-content { padding:12px; overflow:auto; max-height:calc(90dvh - 85px); }
.bhv-dialog-content>label { display:block; margin-bottom:5px; }
.bhv-dialog-content>:is(input,select) { width:100%; margin-bottom:9px; }
.bhv-dialog .bhv-dialog-feedback { min-height:1em; margin:8px 0 0; color:#972323!important; }
.bhv-property { display:grid; grid-template-columns:100px minmax(0,1fr); gap:6px; align-items:center; padding:4px 0; }
.bhv-property strong { color:#000; font-size:11px; font-weight:400; }
.bhv-property input { width:100%; }
@media(max-width:700px) { .bhv-brief,.bhv-coach { grid-template-columns:minmax(0,1fr); }.bhv-coach { gap:.45rem; }.bhv-steps li { flex-direction:column; gap:.25rem; text-align:center; font-size:.61rem; } }
@media(max-width:390px) { [data-bhv-lab] { padding:.6rem; }.bhv-brief { padding:.75rem; }.bhv-coach { padding:.7rem; }.bhv-property { grid-template-columns:75px minmax(0,1fr); } }
