/* Small instruments for the archive. Every surface follows the active lake palette. */
.demo-library-exhibit{border:1px solid var(--line);background:var(--theme-raised,var(--paper));overflow:hidden}
.demo-library-exhibit :is(p,li,dd,td,th){overflow-wrap:anywhere}
.demo-library-exhibit h3{font-size:22px;line-height:1.25;letter-spacing:-.035em}
.demo-library-exhibit .mono{color:var(--muted);font-size:10px}
.demo-library-toolbar{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:26px 30px;border-top:1px solid var(--line);background:var(--theme-surface)}
.demo-library-toolbar h3{margin-top:7px}
.demo-library-controls{display:flex;gap:8px;flex-wrap:wrap}
.demo-library-controls[hidden],.demo-library-button[hidden]{display:none}
.demo-library-button{display:inline-flex;align-items:center;justify-content:center;gap:15px;min-height:44px;padding:10px 16px;background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:999px;font:12px/1.5 var(--sans);transition:background-color 160ms ease,border-color 160ms ease}
.demo-library-button:hover:not(:disabled){border-color:var(--ink);background:var(--theme-surface)}
.demo-library-button-primary,.demo-library-button[aria-pressed="true"]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.demo-library-button-primary:hover:not(:disabled),.demo-library-button[aria-pressed="true"]:hover{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.demo-library-button:disabled{opacity:.5;cursor:default}
.demo-library-button:focus-visible{outline:2px solid var(--ink);outline-offset:4px}
.demo-library-footnote{max-width:none;padding:22px 30px;border-top:1px solid var(--line);font-size:11px;line-height:1.75;color:var(--muted)}
.stream-signal{display:grid;grid-template-columns:minmax(210px,.8fr) minmax(0,1.7fr);gap:32px;padding:30px}
.stream-source{min-width:0;display:flex;flex-direction:column;justify-content:center}
.stream-source svg{width:100%;height:auto;max-height:142px;margin:12px 0}
.stream-source svg text{font:10px var(--mono);fill:var(--muted)}
.stream-board,.stream-chip{fill:var(--theme-surface);stroke:var(--line);stroke-width:1.5}
.stream-chip{stroke:var(--muted)}
.stream-wire{fill:none;stroke:var(--muted);stroke-width:1.5}
.stream-led{fill:var(--gold,#9d783e)}
.stream-source-note{font-size:10px;line-height:1.7;color:var(--muted);max-width:38ch}
.stream-trace{display:flex;flex-direction:column;justify-content:center;min-width:0;border-left:1px solid var(--line);padding-left:32px}
.stream-trace-top{display:flex;justify-content:space-between;align-items:center;gap:16px}
.stream-trace-top strong{font-size:27px;font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}
.stream-trace-top small{font:10px var(--mono);color:var(--muted)}
.stream-trace>svg{height:150px;width:100%;margin-block:16px}
.stream-baseline{fill:none;stroke:var(--line);stroke-width:.8;stroke-dasharray:2 5;vector-effect:non-scaling-stroke}
.stream-wave{fill:none;stroke:var(--ink);stroke-width:1.8;vector-effect:non-scaling-stroke;stroke-linejoin:round}
.stream-trace figcaption{color:var(--muted);font-size:10px;line-height:1.7}
.stream-explanation{max-width:none;min-height:106px;padding:26px 30px;font-size:14px;line-height:1.8;border-bottom:1px solid var(--line)}
.stream-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.stream-column{padding:28px 26px;min-width:0}
.stream-column+.stream-column{border-left:1px solid var(--line)}
.stream-column h3{font-size:21px;margin-top:9px;margin-bottom:20px}
.stream-watermark{font:11px/1.65 var(--mono);margin-bottom:16px;color:var(--muted)}
.stream-records{list-style:none;padding:0;margin:0;min-height:225px;font:11px/1.7 var(--mono);font-variant-numeric:tabular-nums}
.stream-records li{padding:10px 0;border-bottom:1px solid var(--line)}
.stream-records li:first-child{padding-top:0}
.stream-records li:last-child{border-bottom:0}
.stream-records strong{display:block;font-weight:500;color:var(--ink)}
.stream-records span{display:block;color:var(--muted);font-size:10px}
.stream-records .stream-tag{display:inline-block;font:9px/1.5 var(--mono);padding:3px 6px;border:1px solid var(--line);margin-top:7px;border-radius:4px;color:var(--ink);background:var(--theme-surface)}
.stream-records .stream-tag-drop{border-style:dashed}
.stream-empty{color:var(--muted)}
.stream-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin:0;padding:24px 30px;border-top:1px solid var(--line);background:var(--theme-surface)}
.stream-metrics dt{font:10px/1.6 var(--mono);color:var(--muted)}
.stream-metrics dd{margin:5px 0 0;font-size:30px;line-height:1.2;font-weight:400;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.protection-intro{padding:30px 30px 20px}
.protection-intro>p+p{margin-top:14px;font-size:14px;max-width:77ch}
.protection-controls{padding:0 30px 27px}
.protection-table-wrap{overflow-x:auto;border-block:1px solid var(--line);margin-inline:30px;scroll-margin:20px}
.protection-table{width:100%;border-collapse:collapse;text-align:left;font:11px/1.7 var(--mono);table-layout:fixed}
.protection-table th{font-weight:500}
.protection-table thead th{font:9px/1.6 var(--mono);text-transform:uppercase;letter-spacing:.05em;color:var(--muted);padding:14px 10px;background:var(--theme-surface)}
.protection-table :is(td,tbody th){padding:18px 10px;border-top:1px solid var(--line);vertical-align:top}
.protection-table th:first-child{width:9%}
.protection-table th:nth-child(2){width:36%}
.protection-table th:nth-child(3){width:29%}
.protection-table th:nth-child(4){width:26%}
.protection-table tr[data-relationship="pair"]{background:color-mix(in srgb,var(--ink) 4%,transparent)}
.protection-table tr[data-relationship="collision"]{background:color-mix(in srgb,var(--gold,#9d783e) 14%,transparent)}
.protection-relationship{font:10px/1.7 var(--sans)}
.protection-relationship b{font-weight:600;display:block}
.protection-explanation{min-height:128px;padding:27px 30px}
.protection-explanation p{font-size:13px;line-height:1.8;margin-top:12px;max-width:86ch;color:var(--muted)}
.protection-properties{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;padding:26px 30px;gap:24px;background:var(--theme-surface);border-top:1px solid var(--line)}
.protection-properties dt{font:10px/1.6 var(--mono);color:var(--muted)}
.protection-properties dd{margin:9px 0 0;font-size:13px;line-height:1.65}
.demo-library-directory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid var(--line)}
.demo-library-directory>a{display:flex;flex-direction:column;align-items:flex-start;text-decoration:none;padding:32px;border-bottom:1px solid var(--line);min-width:0;transition:background-color 160ms ease}
.demo-library-directory>a:nth-child(odd){padding-left:0;border-right:1px solid var(--line)}
.demo-library-directory>a:nth-child(even){padding-right:0}
.demo-library-directory .mono{color:var(--muted);font-size:9px}
.demo-library-directory h3{font-size:30px;line-height:1.2;margin:19px 0 14px}
.demo-library-directory p{font-size:13px;line-height:1.8;color:var(--muted);max-width:49ch;margin-bottom:27px}
.demo-library-directory-link{display:flex;justify-content:space-between;gap:26px;align-items:center;min-height:44px;margin-top:auto;font-size:12px;border-bottom:1px solid var(--line)}
.demo-library-directory a:hover .demo-library-directory-link{border-color:var(--ink)}
@media(max-width:1000px){.stream-signal{grid-template-columns:minmax(160px,.8fr) minmax(0,1.5fr);gap:24px}.stream-trace{padding-left:24px}.stream-column{padding:23px 19px}.stream-records{font-size:10px}.stream-metrics{gap:16px}.protection-table{font-size:10px}.protection-table :is(td,tbody th){padding-inline:8px}.protection-table th:first-child{width:8%}.protection-table th:nth-child(2){width:35%}.protection-table th:nth-child(3){width:30%}.protection-table th:nth-child(4){width:27%}}
@media(max-width:700px){.stream-signal{grid-template-columns:1fr;padding:23px;gap:24px}.stream-source{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px;align-items:center}.stream-source>.mono{grid-column:1/-1}.stream-source svg{margin:0}.stream-source-note{font-size:10px}.stream-trace{border-left:0;border-top:1px solid var(--line);padding:22px 0 0}.stream-trace .mono{font-size:8px}.stream-trace-top strong{font-size:24px}.demo-library-toolbar{display:block;padding:23px}.demo-library-toolbar .demo-library-controls{margin-top:22px}.demo-library-button{padding-inline:13px;font-size:11px}.stream-explanation{padding:23px;min-height:0;font-size:13px}.stream-columns{grid-template-columns:1fr}.stream-column{padding:25px 23px}.stream-column+.stream-column{border-left:0;border-top:1px solid var(--line)}.stream-records{min-height:0;font-size:11px}.stream-column h3{margin-bottom:18px}.stream-metrics{grid-template-columns:1fr 1fr;padding:23px;gap:22px}.stream-metrics dd{font-size:27px}.demo-library-footnote{padding:22px 23px}.protection-intro{padding:23px 23px 20px}.protection-controls{padding:0 23px 23px}.protection-table-wrap{margin-inline:23px}.protection-table{min-width:530px}.protection-table :is(td,tbody th){padding-block:15px}.protection-explanation{padding:23px;min-height:0}.protection-properties{grid-template-columns:1fr;padding:23px;gap:20px}.protection-properties dd{margin-top:6px}.demo-library-directory{grid-template-columns:1fr}.demo-library-directory>a,.demo-library-directory>a:nth-child(odd),.demo-library-directory>a:nth-child(even){padding:28px 0;border-right:0}.demo-library-directory h3{font-size:29px}}
@media(prefers-reduced-motion:reduce){.demo-library-button,.demo-library-directory>a{transition:none}}
