/* Authored Registry Explorer guides and the screenshot-referenced teaching desktop. */
.rex-guide,.rex-lab { --rex-blue:#246cb6; --rex-ink:#203c60; --rex-muted:#435e7a; --rex-line:#bed8f3; --rex-tint:#edf5ff; --rex-paper:var(--md-default-bg-color,#fff); --rex-good:#176035; --rex-good-bg:#eef9f1; --rex-bad:#991b1b; --rex-bad-bg:#fff1f2; color:var(--rex-ink); }
.rex-guide *, .rex-lab * { box-sizing:border-box; }
.rex-lab [hidden],.rex-guide [hidden] { display:none!important; }
.rex-eyebrow { display:block; font-size:.6rem; font-weight:700; letter-spacing:.035em; color:var(--rex-blue); }
.rex-intro,.rex-ready { padding:16px 18px; margin:16px 0; border:1px solid var(--rex-line); border-left:4px solid var(--rex-blue); border-radius:8px; background:var(--rex-tint); }
.rex-intro p,.rex-ready p { font-size:.78rem; line-height:1.75; }
.rex-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:20px 0; }
body .md-typeset .rex-cards :is(a,article) { padding:14px; border:1px solid var(--rex-line); border-radius:8px; color:var(--rex-ink); background:var(--rex-paper); }
.rex-cards :is(a,article)>span { display:block; color:var(--rex-blue); font-size:.61rem; font-weight:650; }
.rex-cards :is(a,article)>strong { display:block; margin-top:7px; font-size:.83rem; }
.rex-cards :is(a,article)>p { margin:7px 0 0; font-size:.73rem; line-height:1.7; }
.rex-cards a:hover,.rex-cards a:focus-visible { background:var(--rex-tint); }
body .md-typeset details.rex-help { border:1px solid var(--rex-line); box-shadow:none; background:var(--rex-paper); color:var(--rex-ink); border-radius:8px; font-size:.75rem; }
body .md-typeset details.rex-help>summary { color:var(--rex-ink); background:var(--rex-tint); padding:12px 35px 12px 14px; }
body .md-typeset details.rex-help>summary::before { display:none; }
body .md-typeset details.rex-help>summary::after { content:''; position:absolute; right:15px; top:50%; width:7px; height:7px; border-top:2px solid var(--rex-blue); border-right:2px solid var(--rex-blue); mask:none; -webkit-mask:none; background:none; transform:translateY(-50%) rotate(45deg); }
body .md-typeset details.rex-help[open]>summary::after { transform:translateY(-70%) rotate(135deg); }
.rex-flow,.rex-tour,.rex-time-demo { margin:20px 0; padding:16px; border:1px solid var(--rex-line); border-radius:10px; background:var(--rex-paper); }
.rex-flow-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:9px; font-size:.8rem; }
.rex-flow button,.rex-tour button,.rex-time-demo button { min-height:40px; padding:7px 11px; border:1px solid var(--rex-blue); border-radius:5px; color:var(--rex-blue); background:var(--rex-paper); font:600 .68rem/1.5 var(--md-text-font-family); cursor:pointer; }
.rex-flow button:focus-visible,.rex-tour button:focus-visible,.rex-time-demo button:focus-visible { outline:3px solid var(--rex-blue); outline-offset:3px; }
.rex-guide.rex-flow ol { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; list-style:none; margin:16px 0; padding:0; }
.rex-flow li { position:relative; margin:0!important; padding:12px 10px; border:1px solid var(--rex-line); border-radius:7px; transition:background .4s,border-color .4s; }
.rex-flow li:not(:last-child)::after { content:''; position:absolute; right:-11px; top:50%; width:6px; height:6px; border-top:2px solid var(--rex-blue); border-right:2px solid var(--rex-blue); transform:rotate(45deg); }
.rex-flow li[data-active=true] { border-color:var(--rex-blue); background:var(--rex-tint); animation:rex-flow-cue 4s ease-in-out infinite; }
.rex-flow[data-paused=true] li { animation:none; }
.rex-flow li strong { display:block; font-size:.75rem; }
.rex-flow li span { display:block; margin-top:5px; font-size:.65rem; line-height:1.65; }
.rex-flow>p,.rex-tour>p,.rex-time-demo>p { font-size:.72rem; line-height:1.7; margin:10px 0 0; }
@keyframes rex-flow-cue { 0%,100%{box-shadow:0 0 0 0 #246cb600}50%{box-shadow:0 0 0 3px #246cb61c} }
.rex-tour-tabs { display:flex; gap:7px; flex-wrap:wrap; margin-bottom:12px; }
.rex-tour [aria-pressed=true] { color:var(--rex-paper); background:var(--rex-blue); }
.rex-mini { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr); gap:7px; }
.rex-mini>div { display:grid; align-content:start; gap:6px; padding:12px; border:1px solid var(--rex-line); border-radius:5px; background:var(--rex-tint); font-size:.68rem; }
.rex-mini>div:first-child { grid-row:span 2; }
.rex-mini [data-active=true] { outline:2px solid var(--rex-blue); outline-offset:-2px; }
.rex-time-key { display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; padding:12px; margin-top:12px; background:var(--rex-tint); border:2px solid var(--rex-line); border-radius:6px; font-size:.74rem; transition:border-color .4s; }
.rex-time-values { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:10px 15px 0; }
.rex-time-values>div { display:grid; gap:4px; padding:10px; border:2px solid var(--rex-line); border-radius:5px; font-size:.7rem; transition:border-color .4s,background .4s; }
.rex-time-values span { font-size:.65rem; }
.rex-time-demo[data-phase=value] [data-rex-time-value],.rex-time-demo[data-phase=key] .rex-time-key { border-color:var(--rex-blue); background:var(--rex-tint); }
.rex-lab { border:1px solid var(--rex-line); border-radius:8px; background:var(--rex-paper); overflow:hidden; }
.rex-brief { padding:14px 16px; background:var(--rex-tint); }
body .md-typeset .rex-lab h4 { margin:4px 0 7px; color:var(--rex-ink); font-size:.85rem; line-height:1.5; }
.rex-brief p { font-size:.75rem; line-height:1.65; margin:6px 0; }
.rex-brief small { display:block; font-size:.61rem; color:var(--rex-muted); line-height:1.6; }
body .md-typeset .rex-lab button { min-height:40px; padding:7px 11px; border:1px solid var(--rex-blue); border-radius:5px; color:var(--rex-blue); background:var(--rex-paper); font:600 .69rem/1.5 var(--md-text-font-family); cursor:pointer; }
.rex-lab button:disabled { opacity:.55; cursor:default; }
.rex-lab :is(button,summary,input,textarea,select):focus-visible { outline:3px solid var(--rex-blue); outline-offset:2px; }
.rex-lab [tabindex="-1"]:focus { outline:none; }
.rex-lab .rex-steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; padding:10px 12px; border-block:1px solid var(--rex-line); scroll-margin-top:5rem; }
body .md-typeset .rex-lab .rex-steps button { font-size:.64rem; padding:6px; border-color:var(--rex-line); }
body .md-typeset .rex-steps [aria-current=step] { color:var(--rex-paper); background:var(--rex-blue); border-color:var(--rex-blue); }
body .md-typeset .rex-steps [data-done=true]:not([aria-current]) { color:var(--rex-good); background:var(--rex-good-bg); border-color:var(--rex-good); }
.rex-steps [data-done=true]::after { content:' \2713'; }
.rex-step-arrive { animation:rex-step-arrive .9s ease-out; }
@keyframes rex-step-arrive { from { box-shadow:0 0 0 4px var(--rex-line); } to { box-shadow:0 0 0 0 transparent; } }
@media(prefers-reduced-motion:reduce) { .rex-step-arrive { animation:none; } }
.rex-coach { padding:12px 16px; background:var(--rex-tint); }
.rex-lab .rex-coach ol { display:grid; gap:7px; margin:10px 0; padding:0; list-style:none; }
.rex-coach li { display:flex; align-items:flex-start; gap:9px; margin:0!important; font-size:.73rem; line-height:1.7; }
.rex-coach li>span { min-width:0; padding-top:2px; }
.rex-number { width:28px; height:28px; flex:none; }
.rex-number circle { fill:var(--rex-paper); stroke:var(--rex-line); }
.rex-number path { fill:none; stroke:var(--rex-blue); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
body .md-typeset .rex-lab :is(.rex-coach,.rex-note) details { margin:8px 0; padding:0 12px; border:1px solid var(--rex-line); border-radius:5px; background:var(--rex-paper); color:var(--rex-ink); box-shadow:none; font-size:.7rem; }
body .md-typeset .rex-lab :is(.rex-coach,.rex-note) summary { padding:9px 20px 9px 0; margin:0; background:none; color:var(--rex-blue); font-size:.69rem; }
body .md-typeset .rex-lab :is(.rex-coach,.rex-note) summary::before { display:none; }
body .md-typeset .rex-lab :is(.rex-coach,.rex-note) summary::after { content:''; position:absolute; right:2px; top:50%; width:6px; height:6px; background:none; mask:none; -webkit-mask:none; border-top:2px solid currentColor; border-right:2px solid currentColor; transform:translateY(-50%) rotate(45deg); }
.rex-coach details p,.rex-note details p { font-size:.7rem; line-height:1.7; }
body .md-typeset .rex-lab :is(.rex-coach,.rex-note) details[open]>summary::after { transform:translateY(-70%) rotate(135deg); }
/* Match the retained Windows desktop: light chrome, docked panes and compact grids. */
.rex-window { --cdk-doc-surface:#fff; --md-default-fg-color:#222; --md-default-fg-color--light:#465b6b; position:relative; margin:10px 12px; border:1px solid #8f969d; border-radius:2px; background:#f0f0f0; color:#222; font:400 .65rem/1.6 'Segoe UI',Arial,sans-serif; overflow:hidden; }
.rex-titlebar { display:flex; align-items:center; gap:6px; padding:6px 8px; color:#222; font-size:.7rem; }
.rex-titlebar strong { font-weight:400; }
.rex-titlebar>span:last-child { margin-left:auto; white-space:nowrap; font-size:.65rem; }
.rex-app-icon { width:12px; height:13px; background:linear-gradient(120deg,#98d965,#4b9c25); border:1px solid #419324; clip-path:polygon(0 20%,50% 0,100% 20%,100% 80%,50% 100%,0 80%); }
.rex-menubar { display:flex; align-items:center; gap:0; padding:0 3px 4px; flex-wrap:wrap; }
body .md-typeset .rex-window .rex-menubar details { position:relative; margin:0; padding:0; border:0; border-radius:0; box-shadow:none; background:transparent; color:#222; font-size:.65rem; overflow:visible; }
body .md-typeset .rex-menubar :is(button,summary) { min-height:32px; padding:4px 7px; margin:0; border:1px solid transparent; border-radius:0; color:#222; background:transparent; font:400 .65rem/1.5 'Segoe UI',Arial,sans-serif; list-style:none; cursor:pointer; }
body .md-typeset .rex-menubar summary::before,body .md-typeset .rex-menubar summary::after { display:none; }
.rex-menubar summary::-webkit-details-marker { display:none; }
.rex-menu { position:absolute; top:100%; left:0; z-index:6; min-width:180px; padding:4px; background:#f7f7f7; border:1px solid #8e969d; box-shadow:2px 3px 7px #0003; }
body .md-typeset .rex-menu button { display:block; width:100%; text-align:left; white-space:nowrap; }
.rex-menu>span,.rex-menu>small { display:block; padding:4px 7px; color:#333; font-size:.64rem; white-space:nowrap; }
.rex-menu>small { font-size:.6rem; }
.rex-menubar :is(button,summary):hover { background:#e1effc; }
.rex-native-grid { display:grid; grid-template-columns:minmax(230px,.95fr) minmax(0,1.9fr); gap:10px; padding:0 2px 3px; }
.rex-left,.rex-right { min-width:0; background:#fff; border:1px solid #aaa; }
.rex-left { container-type:inline-size; }
.rex-native-tabs { display:flex; gap:0; align-items:end; min-height:28px; background:#f0f0f0; border-bottom:1px solid #aaa; flex-wrap:wrap; }
body .md-typeset .rex-window .rex-native-tabs button,.rex-native-tab { min-height:28px; margin:0 0 -1px; padding:4px 8px; border:1px solid transparent; border-bottom:1px solid #aaa; border-radius:0; background:#f0f0f0; color:#222; font:400 .6rem/1.5 'Segoe UI',Arial,sans-serif; }
body .md-typeset .rex-window .rex-native-tabs [aria-selected=true],.rex-native-tab { background:#fff; border:1px solid #aaa; border-bottom-color:#fff; }
.rex-left [role=tabpanel] { overflow:auto; }
.rex-tree-search { display:flex; gap:5px; padding:9px 7px; background:#f6f6f6; border-bottom:1px solid #aaa; }
.rex-tree-search input { min-width:0; width:100%; padding:4px 6px; border:1px solid #a0a0a0; background:#fff; color:#222; font:400 .63rem/1.6 'Segoe UI',Arial,sans-serif; }
.rex-tree-search input::placeholder { color:#52616c; opacity:1; }
body .md-typeset .rex-window .rex-tree-search button { min-height:30px; padding:3px 12px; border:1px solid #a0a0a0; border-radius:0; background:#eee; color:#222; font:400 .63rem/1.5 'Segoe UI',Arial,sans-serif; }
.rex-tree-columns { display:grid; grid-template-columns:1fr 48px 52px 140px; min-width:440px; background:#f0f0f0; border-bottom:1px solid #aaa; font-size:.57rem; }
.rex-tree-columns>span { border-right:1px solid #b8b8b8; padding:3px 5px; white-space:nowrap; }
.rex-tree { min-width:440px; min-height:360px; max-height:390px; padding:3px 0; overflow:auto; }
body .md-typeset .rex-window .rex-tree details { margin:0; padding:0 0 0 12px; border:0; border-radius:0; background:#fff; box-shadow:none; font:400 .63rem/1.7 'Segoe UI',Arial,sans-serif; color:#222; overflow:visible; }
body .md-typeset .rex-window .rex-tree summary { position:relative; display:flex; align-items:center; gap:5px; margin:0; padding:4px 2px 4px 14px; min-height:29px; background:transparent; color:#222; font-weight:400; font-size:.63rem; line-height:1.6; cursor:pointer; list-style:none; white-space:nowrap; }
body .md-typeset .rex-window .rex-tree summary::before { content:''; display:block; position:absolute; left:1px; top:11px; width:5px; height:5px; border-top:1.5px solid #394e61; border-right:1.5px solid #394e61; background:none; mask:none; -webkit-mask:none; transform:rotate(45deg); }
body .md-typeset .rex-window .rex-tree details[open]>summary::before { transform:rotate(135deg); }
body .md-typeset .rex-window .rex-tree summary::after { display:none; }
.rex-tree-name { flex:1; display:flex; gap:5px; align-items:center; }
.rex-tree-name::before,.rex-folder { content:''; display:inline-block; flex:none; width:12px; height:10px; border:1px solid #aa8d37; border-radius:1px; background:linear-gradient(#f7d86d,#e5b84b); }
.rex-tree-count { width:42px; text-align:center; font-size:.57rem; }
.rex-tree-time { width:136px; font-size:.57rem; }
@container(max-width:430px) {
  .rex-tree { min-width:0; }
  .rex-tree-columns { min-width:0; grid-template-columns:minmax(0,1fr); }
  .rex-tree-columns>span:not(:first-child),.rex-tree-count,.rex-tree-time { display:none; }
  body .md-typeset .rex-window .rex-tree summary.rex-hive-name { white-space:normal; overflow-wrap:anywhere; }
}
body .md-typeset .rex-window .rex-tree button.rex-key { display:flex; gap:5px; align-items:center; width:calc(100% - 16px); min-height:30px; margin-left:16px; padding:3px 3px 3px 13px; border:0; border-radius:0; background:#fff; color:#222; font:400 .63rem/1.6 'Segoe UI',Arial,sans-serif; white-space:nowrap; }
body .md-typeset .rex-window .rex-tree button[aria-pressed=true] { background:#cce7ff; }
body[data-md-color-scheme] .md-typeset .rex-window p { color:#222; font-size:.64rem; }
.rex-tree>p { max-width:260px; padding:8px; }
.rex-bookmark-list { min-height:410px; padding:12px; font-size:.64rem; }
.rex-bookmark-list>strong { display:block; }
body .md-typeset .rex-window .rex-bookmark-list button { display:flex; align-items:center; gap:6px; min-height:34px; border:0; padding:5px 8px; background:#fff; color:#222; font:400 .64rem/1.6 'Segoe UI',Arial,sans-serif; }
.rex-bookmark-list button:hover { background:#e1effc; }
.rex-right { display:flex; flex-direction:column; }
.rex-grid-group { padding:5px 7px; background:#f4f4f4; color:#4c5965; font-size:.57rem; border-bottom:1px solid #aaa; }
.rex-table-wrap { min-height:192px; flex:1; overflow:auto; }
body .md-typeset table.rex-values { width:100%; min-width:760px; border-collapse:collapse; margin:0; font:400 .63rem/1.6 'Segoe UI',Arial,sans-serif; background:#fff; color:#222; box-shadow:none; }
body .md-typeset .rex-values :is(th,td) { padding:4px 6px; border:1px solid #c3c8cd; vertical-align:top; }
body .md-typeset .rex-values th { background:#f0f0f0; color:#222; font-weight:400; white-space:nowrap; }
body .md-typeset .rex-values td:nth-child(3) { min-width:260px; max-width:320px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body .md-typeset .rex-window .rex-values button { min-height:30px; padding:3px 1px; color:#222; border:0; border-radius:0; background:transparent; font:400 .63rem/1.5 'Segoe UI',Arial,sans-serif; }
.rex-values tr[data-selected=true] { background:#cce7ff; }
.rex-splitter { height:11px; text-align:center; background:#f0f0f0; font-size:10px; line-height:10px; }
.rex-viewer { min-height:170px; padding:10px 7px; background:#f0f0f0; }
body .md-typeset .rex-window .rex-viewer pre { margin:0; min-height:115px; padding:9px; border:1px solid #aaa; background:#fff; color:#222; font:400 .65rem/1.7 'Segoe UI',Arial,sans-serif; white-space:pre-wrap; overflow-wrap:anywhere; }
.rex-key-status { display:flex; gap:10px; align-items:center; flex-wrap:wrap; padding:4px 7px; border-top:1px solid #aaa; color:#222; font-size:.6rem; }
.rex-key-status>span:first-child { flex:1; min-width:0; overflow-wrap:anywhere; }
body .md-typeset .rex-window .rex-key-status button { min-height:28px; padding:2px 5px; border:1px solid #aaa; border-radius:0; background:#f0f0f0; color:#222; font:400 .6rem/1.5 'Segoe UI',Arial,sans-serif; }
.rex-native-status { padding:4px 7px; border-top:1px solid #aaa; color:#222; font-size:.58rem; overflow-wrap:anywhere; }
.rex-context { position:absolute; z-index:8; display:flex; align-items:start; filter:drop-shadow(2px 3px 4px #0003); }
.rex-context-panel { width:175px; padding:3px; background:#f7f7f7; border:1px solid #9a9a9a; }
body .md-typeset .rex-window .rex-context button { display:flex; justify-content:space-between; width:100%; min-height:36px; padding:6px 10px; border:1px solid transparent; border-radius:0; background:#f7f7f7; color:#222; font:400 .65rem/1.5 'Segoe UI',Arial,sans-serif; text-align:left; }
body .md-typeset .rex-window .rex-context button:is(:hover,:focus-visible) { background:#d9ecff; border-color:#93c2ef; }
body .md-typeset .rex-window .rex-context .rex-menu-back { display:none; }
.rex-feedback,.rex-selection-feedback { margin:12px!important; padding:10px 12px; border:1px solid var(--rex-line); border-left:3px solid var(--rex-blue); border-radius:5px; font-size:.71rem; line-height:1.65; background:var(--rex-tint); color:var(--rex-ink); }
.rex-selection-feedback { margin:9px 0 0!important; }
.rex-lab .rex-feedback[data-state=success] { color:var(--rex-good); border-color:var(--rex-good); background:var(--rex-good-bg); }
.rex-lab .rex-feedback[data-state=error] { color:var(--rex-bad); border-color:var(--rex-bad); background:var(--rex-bad-bg); }
.rex-selection-feedback[data-state=success] { color:#176035; border-color:#176035; background:#eef9f1; }
.rex-selection-feedback[data-state=error] { color:#991b1b; border-color:#991b1b; background:#fff1f2; }
[data-rex-lab] [data-state=success]::before { content:'✓ '; font-weight:700; }
[data-rex-lab] [data-state=error]::before { content:'! '; font-weight:700; }
.rex-note { padding:14px 16px; border-top:1px solid var(--rex-line); }
.rex-note>p { font-size:.73rem; line-height:1.7; }
.rex-note label { display:block; margin-top:10px; font-size:.72rem; font-weight:600; }
.rex-note textarea { display:block; width:100%; margin-top:5px; padding:8px 10px; resize:vertical; border:1px solid var(--rex-line); border-radius:5px; background:var(--rex-paper); color:var(--rex-ink); font:400 .72rem/1.6 var(--md-text-font-family); }
.rex-note textarea::placeholder { color:var(--rex-muted); opacity:1; }
.rex-note small { font-size:.63rem; }
.rex-note [data-rex-complete] { margin-top:12px; padding:12px; border:1px solid var(--rex-good); border-radius:5px; background:var(--rex-good-bg); color:var(--rex-good); font-size:.73rem; }
.rex-note [data-rex-complete]>strong { display:block; margin-bottom:8px; }
.rex-lab-footer { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:12px; border-top:1px solid var(--rex-line); background:var(--rex-tint); }
body .md-typeset .rex-lab-footer [data-rex-next-step] { color:var(--rex-paper); background:var(--rex-blue); }
.rex-lab-footer>span { color:var(--rex-muted); font-size:.62rem; }
.rex-lab-footer [data-rex-reset] { margin-left:auto; }
.rex-dialog { width:min(600px,calc(100vw - 30px)); max-height:80vh; padding:18px; border:1px solid var(--rex-line); border-radius:8px; color:var(--rex-ink); background:var(--rex-paper); font-family:var(--md-text-font-family); }
.rex-dialog::backdrop { background:#102d4d99; }
.rex-dialog p { font-size:.71rem; line-height:1.7; }
.rex-dialog label { display:block; font-size:.72rem; font-weight:600; }
.rex-dialog :is(select,input[type=search]) { display:block; width:100%; min-height:42px; padding:8px; margin:6px 0 12px; border:1px solid var(--rex-line); border-radius:4px; background:var(--rex-paper); color:var(--rex-ink); font:400 .7rem/1.6 var(--md-text-font-family); }
.rex-dialog fieldset { margin:9px 0 14px; padding:9px; border:1px solid var(--rex-line); }
.rex-dialog legend { font-size:.72rem; }
.rex-dialog fieldset label { display:flex; gap:7px; padding:4px; font-size:.7rem; }
.rex-dialog input[type=checkbox] { width:18px; height:18px; accent-color:var(--rex-blue); }
.rex-dialog [data-rex-search-results]>button { display:block; width:100%; text-align:left; margin:8px 0; }
.rex-dialog [data-rex-search-results] :is(strong,span,small) { display:block; overflow-wrap:anywhere; }
.rex-dialog [data-rex-search-results] small { font-size:.62rem; font-weight:400; }
.rex-sr { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
[data-md-color-scheme=slate] :is(.rex-guide,.rex-lab) { --rex-blue:#9dccff; --rex-ink:#e3effa; --rex-muted:#bfd1e5; --rex-line:#456b92; --rex-tint:#203b58; --rex-paper:#172b41; --rex-good:#9ce3b3; --rex-good-bg:#183c2d; --rex-bad:#fda4af; --rex-bad-bg:#411e25; }
@media(max-width:700px) {
  .rex-cards { grid-template-columns:minmax(0,1fr); }
  .rex-guide.rex-flow ol { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rex-flow li:nth-child(2)::after { display:none; }
  .rex-native-grid { grid-template-columns:minmax(0,1fr); }
  .rex-tree { min-height:180px; max-height:260px; }
  .rex-window { margin:10px 7px; }
  .rex-titlebar>span:last-child { display:none; }
  .rex-lab .rex-steps { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rex-lab-footer>span { flex-basis:100%; order:3; }
  .rex-mini { grid-template-columns:minmax(0,1fr); }
  .rex-mini>div:first-child { grid-row:auto; }
  .rex-time-values { grid-template-columns:minmax(0,1fr); }
}
@media(prefers-reduced-motion:reduce) { .rex-flow li,.rex-time-values>div,.rex-time-key { animation:none!important; transition:none!important; } }

.rex-coach-head,.rex-coach-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.rex-coach-actions { margin-top:12px; }
.rex-coach-actions>span { font-size:.63rem; color:var(--rex-muted); }
body .md-typeset .rex-lab [data-rex-continue] { background:var(--rex-blue); color:var(--rex-paper); }
body[data-md-color-scheme] .md-typeset .rex-lab :is(.rex-brief,.rex-coach,.rex-selected,.rex-note) p:not([data-state]) { color:var(--rex-ink); }
body .md-typeset .rex-lab p.rex-expect { margin:7px 0 10px; font-size:.68rem; }
body .md-typeset .rex-lab .rex-simulation-caption { margin:10px 14px 4px; color:var(--rex-muted); font-size:.61rem; line-height:1.6; }
body .md-typeset .rex-lab details.rex-case-notes { margin:10px 0 0; padding:0 12px; border:1px solid var(--rex-line); box-shadow:none; background:var(--rex-paper); color:var(--rex-ink); }
body .md-typeset .rex-lab details.rex-case-notes>summary { margin:0; padding:9px 20px 9px 0; font-size:.68rem; color:var(--rex-blue); background:none; }
body .md-typeset .rex-lab details.rex-case-notes>summary::before { display:none; }
body .md-typeset .rex-lab details.rex-case-notes>summary::after { right:0; }
.rex-case-notes p { font-size:.68rem; line-height:1.7; overflow-wrap:anywhere; }
.rex-key-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:8px 14px 12px; color:var(--rex-muted); font-size:.62rem; }
.rex-key-actions small { font-size:.6rem; }
.rex-selected { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 12px; margin:12px; padding:14px; border:1px solid var(--rex-line); border-left:4px solid var(--rex-blue); border-radius:7px; background:var(--rex-tint); }
.rex-selected p { margin:5px 0; font-size:.67rem; line-height:1.7; }
.rex-selected>button { align-self:center; }
.rex-selected .rex-selection-feedback { grid-column:1/-1; }
.rex-evidence-receipt { margin:12px 0; padding:10px; border:1px solid var(--rex-line); border-radius:5px; color:var(--rex-muted); background:var(--rex-tint); font-size:.65rem; overflow-wrap:anywhere; }
.rex-evidence-receipt[data-saved=true] { color:var(--rex-good); background:var(--rex-good-bg); border-color:var(--rex-good); }
.rex-spotlight { outline:3px solid #246cb6!important; outline-offset:-3px; animation:rex-locate 1.2s ease-in-out 2; }
@keyframes rex-locate { 50%{box-shadow:inset 0 0 0 5px #246cb630} }
body .md-typeset .rex-native-dialog { --rex-ink:#222; --rex-blue:#246cb6; --rex-paper:#fff; --rex-line:#aaa; background:#f0f0f0; color:#222; border:1px solid #8f969d; border-radius:2px; font-family:'Segoe UI',Arial,sans-serif; }
body[data-md-color-scheme] .md-typeset .rex-native-dialog p { color:#222; }
body .md-typeset .rex-native-dialog h4 { margin:-18px -18px 14px; padding:8px 12px; border-bottom:1px solid #aaa; color:#222; background:#fafafa; font-size:.75rem; }
.rex-dialog-location { margin-bottom:13px; padding:7px 9px; border:1px solid #aaa; background:#fff; color:#333; font-size:.65rem; overflow-wrap:anywhere; }
.rex-dialog-actions { display:flex; justify-content:end; gap:8px; margin-top:12px; }
.rex-native-dialog [data-rex-search-results] { max-height:35vh; overflow:auto; }
body[data-md-color-scheme] .md-typeset .rex-native-dialog p.rex-open-feedback { padding:10px; border:1px solid #991b1b; border-radius:3px; color:#991b1b; background:#fff1f2; }
@media(max-width:700px) {
  .rex-selected { grid-template-columns:minmax(0,1fr); }
  .rex-bookmark-list { min-height:170px; }
  .rex-context-panel:has(~ .rex-context-panel:not([hidden])) { display:none; }
  body .md-typeset .rex-window .rex-context .rex-menu-back { display:block; color:#174d7d; }
  .rex-titlebar { font-size:.65rem; }
}
@media(prefers-reduced-motion:reduce) { .rex-spotlight { animation:none; } }

/* Use Kansa's shared theme tokens throughout the hands-on learning surfaces. */
.rex-hands-on .rex-lab { --rex-blue:var(--kfl-blue); --rex-ink:var(--kfl-ink); --rex-line:var(--kfl-border); --rex-tint:var(--kfl-surface); }
body .md-typeset .rex-hands-on>header { background:linear-gradient(115deg,var(--kfl-surface),var(--md-default-bg-color) 85%); }
body .md-typeset .rex-hands-on.kfl-routes>a { border-color:var(--kfl-border); background:var(--md-default-bg-color); color:var(--kfl-ink)!important; }
body .md-typeset .rex-hands-on.kfl-routes>a:is(:hover,:focus-visible,.is-selected,[aria-current=location]) { border-color:var(--kfl-blue); background:var(--kfl-surface); }
body .md-typeset .rex-hands-on.kfl-routes>a>span { color:var(--kfl-ink); }
.rex-hands-on .kfl-case-prompt { border-color:var(--kfl-border); border-left-color:var(--kfl-blue); background:var(--kfl-surface); color:var(--kfl-ink); }
body[data-md-color-scheme] .md-typeset .rex-hands-on .kfl-case-prompt p { color:var(--kfl-ink); }
.rex-hands-on .rex-activity-time { display:block; margin:-.35rem 0 .75rem; color:var(--kfl-blue); font-size:.64rem; line-height:1.6; }
.rex-case-folders { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:14px 0; }
.rex-case-folders>div { padding:10px; border:1px solid var(--kfl-border); border-radius:6px; background:var(--kfl-surface); color:var(--kfl-ink); font-size:.67rem; line-height:1.6; }
.rex-case-folders strong { display:block; margin-bottom:3px; color:var(--kfl-blue); }
.rex-hands-on .kfl-step .kfl-help { margin:12px 0; }
.rex-hands-on .kfl-help :is(ol,ul,table) { font-size:.71rem; }
.rex-hands-on .kfl-step :is(ol,ul)>li { margin-top:6px; line-height:1.7; }
@media(max-width:700px) { .rex-case-folders { grid-template-columns:minmax(0,1fr); } }
@media(prefers-reduced-motion:reduce) { .rex-hands-on.kfl-routes>a { transition:none; } }
