/* Signal into order. Shared tokens keep the landing and working editor coherent. */
:root {
    color-scheme: dark;
    --ground: #0b0e11; --surface: #151a1e; --raised: #1d252b; --ink: #f2f3eb;
    --muted: #a5afb5; --line: #354047; --control-line: #69757d; --accent: #d8f36a; --selected: #242e22;
    --danger: #ffaaa0; --warning: #f1cc7a; --success: #d8f36a; --focus: #d8f36a;
    --radius: .375rem; --small: .875rem; --row-height: 56px; --space: .75rem;
    --gutter: clamp(1.25rem, 4.4vw, 5.5rem); --section-gap: clamp(4rem, 8vw, 8rem);
    --display: 'Bahnschrift', 'Arial', sans-serif;
    --body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --mono: var(--body);
    font-family: var(--body); font-synthesis: none; color: var(--ink); background: var(--ground); line-height: 1.55;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; }
::selection { color: var(--ground); background: var(--accent); }
button, input, select { font: inherit; }
button, .button, select, input:not([type='checkbox']) { min-height: 44px; border: 1px solid var(--control-line); border-radius: var(--radius); padding: .6rem .85rem; background: var(--surface); color: var(--ink); }
button, .button { cursor: pointer; font-weight: 600; font-size: var(--small); transition: background-color 160ms, border-color 160ms, color 160ms; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 2rem; text-decoration: none; }
button:hover:not(:disabled), .button:hover { border-color: var(--muted); background: var(--raised); }
button:active:not(:disabled), .button:active { transform: translateY(1px); }
button:disabled { cursor: not-allowed; color: #879096; background: #1a2024; border-color: #2d363c; }
.primary { background: var(--accent); color: var(--ground); border-color: var(--accent); }
.primary:hover:not(:disabled), .button.primary:hover { background: #e6ff8d; border-color: #e6ff8d; color: var(--ground); }
.quiet { background: transparent; border-color: transparent; color: var(--muted); }
.quiet:disabled { background: transparent; border-color: transparent; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
a { color: var(--ink); text-underline-offset: .3em; }
a:hover { color: var(--accent); }
h1, h2, h3, p { margin: 0 0 var(--space); }
h1, h2, h3 { line-height: 1.1; }
h2 { font: 500 clamp(1.9rem, 3.2vw, 3rem)/1.08 var(--display); letter-spacing: -.04em; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.025em; }
p { text-wrap: pretty; }
label { display: grid; gap: .4rem; font-size: var(--small); font-weight: 500; min-width: 0; color: var(--muted); }
input, select { width: 100%; min-width: 0; }
input::placeholder { color: #929ca4; }
input[type='checkbox'] { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); flex: none; }
input:disabled { opacity: .6; }
input:user-invalid { border-color: var(--danger); }
main { max-width: 1920px; margin: auto; padding: 0 var(--gutter) 1.5rem; }
.app-header { max-width: 1920px; margin: auto; display: flex; justify-content: space-between; gap: 2rem; padding: 1.5rem var(--gutter); border-bottom: 1px solid var(--line); align-items: center; min-height: 100px; }
.brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; font-size: 1rem; line-height: 1.18; font-weight: 650; letter-spacing: -.035em; min-height: 44px; flex: none; }
.brand-second { display: block; font-weight: 400; color: var(--muted); }
.brand-mark { display: flex; gap: 3px; align-items: center; width: 35px; height: 32px; }
.brand-mark i { background: var(--accent); width: 8px; height: 24px; transform: skewY(-23deg); }
.brand-mark i:nth-child(2) { height: 32px; }
.brand-mark i:nth-child(3) { height: 16px; }
.landing-navigation { display: flex; gap: 2rem; }
.landing-navigation a { display: flex; align-items: center; min-height: 44px; font-size: var(--small); text-decoration: none; color: var(--muted); }
.landing-navigation a:hover { color: var(--ink); }
.header-caption, .workspace-caption { color: var(--muted); font: .875rem var(--mono); letter-spacing: .07em; text-transform: none; }
.workspace-caption { display: none; }
.signal-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: .5rem; vertical-align: middle; }
.eyebrow { font: 500 .875rem/1.5 var(--body); color: var(--muted); margin-bottom: 1.5rem; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 6rem); align-items: center; padding: clamp(3rem, 5.5vw, 6rem) 0 3.5rem; }
.hero h1 { font: 500 clamp(4rem, 6.7vw, 8rem)/.98 var(--display); letter-spacing: -.065em; margin: 0 0 1.5rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-description { color: var(--muted); max-width: 36ch; font-size: clamp(.95rem, 1.2vw, 1.125rem); margin-bottom: 1.7rem; }
.hero-action { min-height: 52px; padding: .8rem 1.25rem; }
.hero-action span { font-size: 1.3rem; }
.hero-footnote { margin: .9rem 0 0; color: var(--muted); font-size: .875rem; }
/* A broadcast routing field: a single finite transition from scattered to ordered. */
.routing-art { margin: 0; min-width: 0; }
.routing-stage { position: relative; aspect-ratio: 1.07; isolation: isolate; overflow: clip; }
.routing-field { position: absolute; inset: 0; width: 100%; height: 100%; }
.field-grid { stroke: var(--line); opacity: .7; }
.signal-paths { stroke: var(--accent); stroke-width: 1.5; opacity: .7; }
.tuning-axis { stroke: var(--accent); stroke-dasharray: 3 7; }
.tuning-point { fill: var(--accent); }
.ordered-signals { position: absolute; top: 27%; left: 51%; right: 0; display: grid; gap: 12px; perspective: 900px; }
.signal-channel { display: flex; align-items: center; gap: 16px; height: clamp(40px, 4.3vw, 70px); padding: 10px 16px; background: var(--surface); border-block: 1px solid var(--control-line); transform: rotateY(-16deg) rotateX(8deg); transform-origin: left center; animation: resolve-signal 1900ms cubic-bezier(.2,.75,.2,1) both; }
.signal-channel:first-child { background: var(--accent); color: var(--ground); border-color: var(--accent); }
.signal-channel:nth-child(2) { animation-delay: 90ms; --scatter-y: -28px; --scatter-r: 13deg; }
.signal-channel:nth-child(3) { animation-delay: 180ms; --scatter-y: 100px; --scatter-r: -8deg; }
.signal-channel:nth-child(4) { animation-delay: 270ms; --scatter-y: 70px; --scatter-r: -9deg; }
.signal-channel span { font: 400 clamp(18px,2vw,32px)/1 var(--display); font-variant-numeric: tabular-nums; }
.signal-channel b { font-size: clamp(14px,1.3vw,21px); font-weight: 500; white-space: nowrap; }
.signal-channel i { width: 4px; height: 18px; background: currentColor; margin-left: auto; }
.stray { position: absolute; color: var(--muted); font-size: clamp(14px,1.2vw,18px); background: var(--ground); padding: 5px; }
.stray-one { top: 16%; left: 1%; transform: rotate(-18deg); }.stray-two { top: 38%; left: 12%; transform: rotate(13deg); }.stray-three { top: 64%; left: 0; transform: rotate(-8deg); }.stray-four { top: 82%; left: 13%; transform: rotate(16deg); }
.routing-origin, .routing-destination { position: absolute; top: 4%; font-size: .875rem; color: var(--muted); }
.routing-origin { left: 0; }.routing-destination { right: 0; color: var(--accent); }
.routing-art figcaption { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .875rem; }
@keyframes resolve-signal { 0%, 15% { opacity: 0; transform: translate(-160px, var(--scatter-y, -70px)) rotate(var(--scatter-r, -18deg)); } 35% { opacity: 1; } 100% { opacity: 1; transform: rotateY(-16deg) rotateX(8deg); } }
.feedback-strip { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; margin-bottom: .75rem; }
.status { font-size: var(--small); color: var(--muted); }
.feedback-strip.processing { padding: .8rem 1rem; border: 1px solid var(--line); background: var(--surface); }
.processing .status::before { content: ''; display: inline-block; width: 12px; height: 12px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; margin-right: .6rem; animation: processing-spin 800ms linear infinite; }
@keyframes processing-spin { to { transform: rotate(360deg); } }
.import-panel { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 7rem); padding: clamp(1.5rem, 3.5vw, 4rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 1.5rem; }
.import-intro h2 { margin-bottom: 1.4rem; }
.import-intro > p:not(.eyebrow) { color: var(--muted); max-width: 37ch; font-size: .9rem; }
.import-intro .import-limits { font: .875rem/1.8 var(--mono); margin-top: 2rem; }
.import-controls { min-width: 0; }
.drop-area { padding: 1.3rem; border: 1px dashed #657078; border-radius: var(--radius); text-align: center; background: var(--ground); transition: border-color 180ms, background-color 180ms; }
.drop-area:hover { border-color: var(--muted); }
.drop-area.dragging { border-style: solid; border-color: var(--accent); background: var(--selected); }
.drop-area.dragging .upload-symbol { transform: translateY(-4px); }
.upload-symbol { display: block; margin: 0 auto .5rem; font-size: 2rem; line-height: 1; color: var(--accent); transition: transform 180ms; }
.drop-area > p:first-of-type { font-size: .95rem; font-weight: 600; }
.drop-area .actions { justify-content: center; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: end; }
.hint, .privacy { font-size: var(--small); color: var(--muted); }
.privacy { font-size: .875rem; margin: .85rem 0 0; }
.drop-area .hint { font-size: .875rem; margin: 1rem 0 0; }
.selection-heading { display: flex; justify-content: space-between; gap: .5rem; align-items: center; margin-top: .75rem; }
#file-summary { font-size: .875rem; margin: 0; color: var(--muted); }
.file-list { max-height: 13rem; overflow: auto; list-style: none; padding: 0; margin: 0 0 .75rem; }
.file-list:empty { display: none; }
.file-list li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; border-bottom: 1px solid var(--line); padding: .4rem 0; font-size: .875rem; }
.file-list span { overflow-wrap: anywhere; }
.file-list button { font-size: .875rem; }
.open-action { display: flex; justify-content: space-between; width: 100%; }
.import-panel.has-files { border-color: #778945; }
.process-section { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 7rem); padding: var(--section-gap) 0; }
.section-heading > p:last-child { color: var(--muted); margin-top: 1.4rem; }
.process-list { list-style: none; margin: 0; padding: 0; }
.process-list li { display: flex; gap: 2rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.process-list li:last-child { border-bottom: 1px solid var(--line); }
.step-number { font: .8rem var(--mono); color: var(--accent); padding-top: .2rem; }
.process-list p { color: var(--muted); font-size: .9rem; max-width: 48ch; margin: 0; }
.evidence-section { padding: 3rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.evidence-content { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 7rem); }
.evidence-content > div > p { max-width: 60ch; color: var(--muted); }
.evidence-content h2 { font-size: clamp(1.7rem, 2.6vw, 2.8rem); }
.privacy-section { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 7rem); padding: var(--section-gap) 0; }
.privacy-section > div > p:not(.eyebrow) { color: var(--muted); max-width: 50ch; margin-top: 1.5rem; }
.privacy-section h2 { font-size: clamp(1.7rem, 2.6vw, 2.8rem); }
.faq > h3 { margin-bottom: 1.5rem; }
details { font-size: var(--small); overflow-wrap: anywhere; }
summary { cursor: pointer; padding: .8rem 0; min-height: 44px; }
summary::marker { color: var(--accent); }
details > p { color: var(--muted); padding-bottom: .5rem; }
.faq details { border-top: 1px solid var(--line); }
.site-footer { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding: 1.5rem 0; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; gap: 1rem; }
/* Signal desk. The browser and inspector share a baseline, not a nested card. */
body.editing .landing-only, body.editing .landing-navigation, body.editing .header-caption { display: none; }
body.editing .workspace-caption { display: block; font: 500 .875rem var(--body); letter-spacing: 0; }
body.editing .app-header { min-height: 64px; padding-block: .5rem; }
body.editing main { padding-top: .5rem; }
body.editing .feedback-strip { min-height: 28px; margin-bottom: .25rem; }
.session-heading { display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding: .5rem 0 1rem; }
.session-heading h2 { font: 500 1.3rem var(--display); letter-spacing: -.02em; }
.session-heading p { font-size: var(--small); margin: .25rem 0; }
.format-evidence, .format-metadata { color: var(--muted); }
.format-metadata summary { padding-block: .5rem; }
#diagnostics, #change-review { border-block: 1px solid var(--line); padding: 0 .5rem; margin-block: .5rem; }
.workspace { display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
#list-navigation::before { content: 'Channel lists'; display: block; color: var(--muted); font-size: .875rem; margin-bottom: 1rem; }
#list-navigation button { width: 100%; text-align: left; white-space: normal; overflow-wrap: anywhere; margin-bottom: .5rem; background: transparent; border-color: transparent; padding: .75rem .5rem; }
#list-navigation button[aria-current='true'] { color: var(--accent); box-shadow: inset 3px 0 var(--accent); background: var(--selected); }
#list-navigation small { display: block; color: var(--muted); font-size: .875rem; font-weight: 400; margin-top: .4rem; }
.editor-area, .channel-browser { min-width: 0; }
.editor-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.editor-heading h2 { font-size: clamp(1.75rem,2.5vw,2.5rem); overflow-wrap: anywhere; margin-bottom: .25rem; }
.list-information { max-width: 65ch; color: var(--muted); }
.list-information summary { padding: .5rem 0; }
.history-tools { flex-shrink: 0; }
.history-tools span { font-size: 1.1rem; }
.channel-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; align-items: start; gap: 1.5rem; }
.filters { display: flex; align-items: end; gap: .75rem; margin-bottom: .5rem; }
.filters > label { flex: 1; }
#extra-filters { flex: 0 1 auto; position: relative; }
#extra-filters summary { border: 1px solid var(--control-line); padding: .6rem .85rem; border-radius: var(--radius); min-height: 44px; }
.filter-options { position: absolute; right: 0; top: calc(100% + .5rem); width: 270px; max-width: calc(100vw - 2.5rem); padding: 1rem; display: grid; gap: 1rem; background: var(--raised); border: 1px solid var(--control-line); z-index: 3; }
.list-tools { display: flex; justify-content: space-between; align-items: center; gap: .5rem; min-height: 52px; }
.list-tools p { color: var(--muted); margin: 0; font-size: .875rem; }
#mode-label { display: flex; align-items: center; gap: .5rem; }
#mode-label select { width: auto; }
#move-tools { display: grid; grid-template-columns: repeat(4,44px) minmax(80px,1fr) auto; align-items: end; gap: .4rem; margin-block: .5rem; }
#move-tools > label { display: flex; align-items: center; gap: .5rem; margin-left: .5rem; }
#move-position { min-width: 44px; max-width: 6rem; }
#move-tools button { padding-inline: .5rem; }
.move-icon { display: inline; font-size: 1.35rem; }.move-label { display: none; }
#order-hint { font-size: .875rem; margin: .5rem 0 1rem; }
#order-hint:empty { display: none; }
.channel-table { min-width: 0; border-top: 1px solid var(--line); }
.column-headings, .channel-row { display: grid; grid-template-columns: 2.5rem 3rem minmax(0,1fr) 3rem 4.5rem; gap: .5rem; align-items: center; text-align: left; }
.column-headings { height: 44px; padding: 0 .75rem; color: var(--muted); font-size: .875rem; }
.channel-viewport { --list-max-height: min(50vh,616px); height: min(var(--list-content-height,0px),var(--list-max-height)); min-height: 0; overflow: auto; position: relative; overscroll-behavior: auto; scrollbar-color: var(--control-line) var(--ground); }
#channel-canvas { position: relative; width: 100%; }
.channel-row { position: absolute; top: 0; left: 0; width: 100%; height: var(--row-height); min-height: var(--row-height); padding: .35rem .75rem; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: .875rem; font-weight: 400; transition: none; background: transparent; }
.channel-row:hover:not(:disabled) { background: var(--surface); }
.channel-row[aria-selected='true'], .channel-row[aria-selected='true']:hover { background: var(--selected); box-shadow: inset 4px 0 var(--accent); }
.channel-row > :nth-child(-n+2) { font-variant-numeric: tabular-nums; color: var(--muted); }
.channel-row[aria-selected='true'] > :nth-child(2) { color: var(--accent); font-weight: 650; }
.channel-row > :nth-child(n+4) { color: var(--muted); }
.channel-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-name { font-weight: 600; }.channel-name small { display: block; font-size: .875rem; color: var(--muted); font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.channel-row.deleted .channel-name { text-decoration: line-through; }
.channel-details { padding: 1rem 0 1rem 1.5rem; border-left: 1px solid var(--line); scroll-margin-block: 1rem; }
.channel-details h3 { font: 500 .875rem var(--body); color: var(--muted); margin-bottom: .75rem; }
.selected-channel-name { font: 500 1.6rem/1.15 var(--display); overflow-wrap: anywhere; }
.channel-details label { margin-block: .75rem; }
.channel-details .check-label { display: flex; align-items: center; gap: .75rem; min-height: 44px; color: var(--ink); margin-block: .25rem; }
.channel-details p { overflow-wrap: anywhere; }
.channel-details .field-error { color: var(--danger); }
#keyboard-help { margin: .5rem 0; font-size: .875rem; }
#empty-list { margin: 0; padding: 2rem 1rem; color: var(--muted); background: var(--surface); }
.download-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 0 max(1.25rem,env(safe-area-inset-bottom)); border-top: 1px solid var(--line); margin-top: 1.5rem; }
.download-bar p { color: var(--muted); max-width: 65ch; margin: .3rem 0 0; font-size: .875rem; }
.download-bar strong { font-size: 1rem; }
.download-bar .actions { flex-shrink: 0; }
#save { min-width: 170px; }#save span { margin-left: 1rem; }
.download-note { border-left: 3px solid var(--accent); background: var(--selected); padding: 1rem; font-size: .875rem; overflow-wrap: anywhere; animation: confirm-feedback 180ms ease-out; }
@keyframes confirm-feedback { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.error { border-left: 3px solid var(--danger); background: #2c1d1c; padding: 1rem; margin-bottom: 1rem; overflow-wrap: anywhere; }
.error h2 { color: var(--danger); font: 600 1rem/1.4 var(--body); letter-spacing: 0; }.error p { font-size: .875rem; }
.diagnostic-warning { color: var(--warning); }.diagnostic-error { color: var(--danger); }
.mobile-list, .workspace-switch, .source-mobile, .mobile-evidence { display: none; }
.skip-link { position: absolute; top: -6rem; left: 1rem; padding: .75rem; background: var(--accent); color: var(--ground); z-index: 5; }.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.feedback-strip.processing { position: fixed; top: max(.75rem,env(safe-area-inset-top)); left: var(--gutter); right: var(--gutter); z-index: 10; border-color: var(--control-line); border-radius: var(--radius); }
@media (min-width: 1800px) { .hero { padding-block: 5rem; }.routing-stage { max-height: 680px; }.channel-layout { grid-template-columns: minmax(0,1fr) 340px; } }
@media (max-width: 1400px) { .workspace { grid-template-columns: 130px minmax(0,1fr); gap: 1rem; }.channel-layout { grid-template-columns: minmax(0,1fr) 240px; gap: 1rem; }.channel-details { padding-left: 1rem; }.header-caption { display: none; } }
@media (max-width: 1100px) {
    .workspace { display: block; }#list-navigation { display: none; }
    .mobile-list { display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; }.mobile-list select { flex: 1; }
    .editor-heading { gap: .5rem; }.editor-heading h2 { font-size: 1.75rem; }
    .channel-layout { display: block; }.channel-details { display: none; border: 0; padding: 1rem 0; }
    .workspace-switch { display: flex; border-bottom: 1px solid var(--line); gap: 1rem; margin-bottom: .75rem; }
    .workspace-switch button { flex: 1; background: transparent; border: 0; border-radius: 0; color: var(--muted); }
    .workspace-switch [aria-pressed='true'] { color: var(--accent); box-shadow: inset 0 -2px var(--accent); }
    .inspecting .channel-browser { display: none; }.inspecting .channel-details { display: block; }
    .channel-details .fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 1.5rem; }
    .channel-details label:has(input[type='text']) { grid-column: 1/-1; }
    .channel-viewport { --list-max-height: min(45svh,480px); }
}
@media (max-width: 800px) {
    :root { --gutter: 1.25rem; }.app-header { min-height: 76px; padding-block: 1rem; gap: 1rem; }
    .landing-navigation { gap: 1rem; }.hero { gap: 1rem; padding-block: 3rem; }.hero h1 { font-size: clamp(3rem,7vw,4.5rem); }
    .hero-description { font-size: 1rem; }.hero-action { gap: 1rem; }.signal-channel { padding: 8px; gap: 8px; }.signal-channel i { display: none; }
    .import-panel { gap: 1.5rem; padding: 1.5rem; }.process-section, .evidence-content, .privacy-section { gap: 2rem; }.process-list li { gap: 1rem; }
    .download-bar { flex-direction: column; align-items: stretch; }.download-bar .actions { justify-content: space-between; }#save { flex: 1; }
    .session-heading { flex-wrap: wrap; }.session-heading > button { min-width: 44px; }
}
@media (max-width: 600px) {
    :root { --row-height: 72px; }.landing-navigation a:first-child { display: none; }.brand { font-size: .95rem; }
    .hero { grid-template-columns: 1fr; padding: 2rem 0 1rem; gap: 1rem; }.hero h1 { font-size: clamp(3.25rem,12.5vw,5rem); }.hero h1 br:nth-of-type(2) { display: none; }.hero h1 em::before { content: ' '; }
    .hero-description { max-width: 38ch; }.hero-action { width: 100%; justify-content: space-between; }.hero-footnote { font-size: .875rem; }
    .routing-stage { aspect-ratio: 1.12; }.signal-channel { height: 36px; padding: 6px; gap: 8px; }.ordered-signals { gap: 8px; top: 28%; }.signal-channel span { font-size: 18px; }.signal-channel b { font-size: 14px; }.routing-art figcaption { gap: .5rem; }
    .import-panel { grid-template-columns: 1fr; padding: 1.25rem; border-inline: 0; }.import-intro h2 { font-size: 2.25rem; }.import-intro h2 br { display: none; }.import-intro .import-limits { margin-top: 1rem; }.drop-area { padding: 1rem .5rem; }.drop-area .actions button { flex: 1; }
    .process-section, .evidence-content, .privacy-section { grid-template-columns: 1fr; gap: 2rem; }.section-heading h2, .evidence-content h2, .privacy-section h2 { font-size: 2.25rem; }
    .site-footer { flex-wrap: wrap; gap: .5rem 1rem; }.site-footer > span:nth-child(2) { display: none; }
    body.editing .app-header { min-height: 60px; }body.editing .workspace-caption { display: none; }
    body.editing .brand-second { display: inline; margin-left: .3rem; }body.editing .brand-mark { height: 25px; }
    body.editing .feedback-strip:not(.processing) { min-height: 0; }.feedback-strip { flex-wrap: wrap; }
    .session-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .5rem; padding-block: .5rem; }
    .session-heading h2 { font-size: 1.1rem; }.session-heading > button { font-size: .875rem; width: 90px; padding: .5rem; }
    .session-heading .format-evidence, .source-desktop { display: none; }.source-mobile, .mobile-evidence { display: block; }.format-metadata { font-size: .875rem; }
    .workspace { padding-top: .5rem; }.mobile-list { margin: 0; }.mobile-list select { max-width: calc(100% - 90px); }
    .editor-heading { flex-wrap: wrap; margin-bottom: .5rem; }.editor-heading > div:first-child { width: 100%; }
    .editor-heading h2 { display: none; }.list-information summary { padding-block: .5rem; }.history-tools { width: 100%; }.history-tools button { flex: 1; }
    .workspace-switch { margin-bottom: .5rem; gap: .5rem; }
    .filters { gap: .5rem; }.filter-options { width: 250px; }
    .list-tools { flex-wrap: wrap; padding-block: .25rem; }#mode-label { width: 100%; justify-content: space-between; }#mode-label select { flex: 1; }
    #move-tools { grid-template-columns: repeat(4,minmax(0,1fr)); }#move-tools > label { grid-column: span 2; margin-left: 0; }#move-tools > [data-move='position'] { grid-column: span 2; }
    .column-headings, .channel-row { grid-template-columns: 2.25rem 2.75rem minmax(0,1fr); gap: .35rem; padding-inline: .5rem; }.column-headings > :nth-child(n+4), .channel-row > :nth-child(n+4) { display: none; }
    .channel-viewport { --list-max-height: min(40svh,360px); }#keyboard-help { display: none; }
    .channel-browser { display: flex; flex-direction: column; }.channel-table { order: 1; }#move-tools { order: 2; }#order-hint { order: 3; }
    .channel-details .fields { column-gap: 1rem; }.channel-details input:not([type='checkbox']), input, select { font-size: 1rem; }
    .download-bar { margin-top: 1rem; padding-top: 1rem; gap: .75rem; }.download-bar .actions { display: grid; grid-template-columns: 1fr 1.4fr; }#save { min-width: 0; padding-inline: .5rem; }#save span { margin-left: .25rem; }
    input, select { scroll-margin-block: 1rem; }
}
@media (max-width: 350px) { :root { --gutter: .875rem; }.brand-mark { width: 27px; gap: 2px; }.brand-mark i { width: 7px; }.landing-navigation { gap: .75rem; }.routing-origin, .routing-destination { top: 0; }.stray-two { left: 4%; }.signal-channel { gap: 5px; }.signal-channel span { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { .brand-mark i, .signal-dot { background: Highlight; }.channel-row[aria-selected='true'], .workspace-switch [aria-pressed='true'] { border: 2px solid Highlight; }.primary { border: 2px solid ButtonText; } }
