.copy-profile{--copy-test:var(--refuse);padding:clamp(14px,3.3vw,28px)}
.copy-comparison .copy-profile{margin:0;padding:0}
.reading .copy-comparison .copy-model-intro{margin:12px 0;font-size:.98rem;line-height:1.45}
.copy-profile h3{margin:0;font:620 1.15rem/1.3 var(--sans);letter-spacing:-.03em}
.copy-controls{display:grid;gap:8px;margin:16px 0}
.copy-options{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 10px}
.copy-controls .copy-label{color:var(--ink-2);font-size:.83rem;font-weight:550}
.copy-options .chip-group{flex-wrap:wrap}
.copy-profile .chip-group button[aria-disabled=true],
.copy-profile .chip-group button[aria-disabled=true]:hover{background:var(--soft);border-color:var(--line);color:var(--ink-3);cursor:help}
.reading .copy-profile .copy-unavailable-note{margin:0;color:var(--ink-2);font-size:.84rem;line-height:1.45}
.copy-controls .copy-unavailable-note{display:none}
.copy-controls:not(.copy-help-dismissed):has(button[aria-disabled=true]:is(:hover,:focus)) .copy-unavailable-note{display:block}
.copy-profile .chip-group button{font-size:.84rem;line-height:1.3;padding:4px 9px}
.copy-legend{width:auto;max-width:100%;border-collapse:collapse;font-size:.84rem;line-height:1.35;color:var(--ink-2);margin:10px 0 4px}
.copy-legend th,.copy-legend td{padding:4px 12px 4px 0;border:0;text-align:left;vertical-align:middle}
.copy-legend thead th{font-weight:600;border-bottom:1px solid var(--line)}
.copy-legend :is(td,th):last-child{padding-right:0}
.copy-legend i{display:block;width:20px;height:0;border-top:2px solid var(--copy-test)}
.copy-legend .clean{border-top:2px dashed var(--ink-3)}
.copy-legend .usual{border-top:2px dotted var(--flow)}
.copy-axis,.copy-inspect{font-size:.8rem;color:var(--ink-2);line-height:1.4}
.copy-axis{margin-top:12px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.copy-replay{display:inline-grid;place-items:center;border:1px solid var(--edge);border-radius:50%;width:32px;height:32px;background:var(--panel);color:var(--ink);cursor:pointer}
.copy-replay:hover{background:var(--soft)}
.copy-replay:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.copy-plot{min-width:0}
.copy-plot svg{font-family:var(--sans);display:block;width:100%;height:209px;touch-action:pan-y;overflow:visible}
.copy-plot svg:focus-visible{outline:2px solid var(--focus);outline-offset:0}
.copy-edit-band{fill:var(--soft)}.copy-test-band{fill:color-mix(in srgb,var(--copy-test) 5%,var(--paper))}
.copy-phase{font-weight:600;font-size:12px;fill:var(--ink-2)}.copy-phase.test{fill:var(--copy-test)}
.copy-tick,.copy-pass{fill:var(--ink-2);font-size:11px;font-variant-numeric:tabular-nums}
.copy-pass.copy-running-loop{fill:var(--copy-test);font-weight:700}
.copy-grid{stroke:var(--line);stroke-width:.9}.copy-grid.reference{stroke:var(--edge)}
.copy-pass-line{stroke:var(--edge);stroke-dasharray:2 3;stroke-width:1}
.copy-series{fill:none;stroke-linecap:round;stroke-linejoin:round}
.copy-series.copy-clean{stroke:var(--ink-3);stroke-width:1.65;stroke-dasharray:5 4}
.copy-series.copy-usual{stroke:var(--flow);stroke-width:2;stroke-dasharray:1 4}
.copy-series.copy-selected{stroke:var(--copy-test);stroke-width:3.25}
.copy-site{stroke:var(--paper);stroke-width:1.5;fill:var(--copy-test)}
.copy-cursor{stroke:var(--ink);opacity:.55;stroke-dasharray:2 3;pointer-events:none}
.copy-inspect{display:block;min-height:1.5em;font-variant-numeric:tabular-nums}
.copy-stats{display:flex;align-items:start;gap:12px clamp(24px,6vw,62px);border-top:1px solid var(--line);padding-top:12px;margin:10px 0}
.copy-stats>div{min-width:0}
.copy-stats small,.copy-stats span{display:block;color:var(--ink-2);font-size:.8rem;line-height:1.35}
.copy-stats b{font:580 1.6rem/1.33 var(--sans);color:var(--ink);font-variant-numeric:tabular-nums;letter-spacing:-.04em}
.copy-stats>div:first-child b{color:var(--copy-test)}
.reading .copy-profile p.copy-explain{font-size:.95rem;line-height:1.47;margin:10px 0}
.copy-profile figcaption{font-size:.84rem}
@media(max-width:460px){.copy-profile .chip-group button{min-height:34px}.copy-stats{gap:16px}.copy-inspect{min-height:2.8em}.copy-options .chip-group{width:100%}}

.copy-schematic{
  display:grid;grid-template-columns:max-content minmax(0,1fr) 28px max-content;
  grid-template-rows:28px 28px;align-items:center;max-width:33rem;
  margin:17px 0 10px;font:500 .84rem/1.15 var(--sans);color:var(--ink-2)
}
.copy-map-source{grid-column:1;grid-row:1;padding-right:8px}
.copy-map-source.carried{grid-row:2}
.copy-map-wire{position:relative;grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:center;min-width:0}
.copy-map-wire::before,.copy-map-wire::after{content:"";flex:1 0 5px;height:1.5px;background:var(--copy-test)}
.copy-map-wire>span{position:relative;z-index:1;font-size:.81rem;line-height:1.2;text-align:center;color:var(--copy-test);border:1px solid var(--edge);border-radius:4px;padding:2px 6px;background:var(--panel)}
.copy-packet{position:absolute;top:50%;left:0;transform:translate(-50%,-50%);width:8px;height:8px;border:1px solid var(--paper);border-radius:50%;background:var(--copy-test);opacity:0;pointer-events:none}
.copy-map-wire.carried .copy-packet{background:var(--ink-2)}
.copy-running .copy-packet{animation:copy-transmit var(--copy-loop-time) linear var(--copy-loop-count)}
.copy-running .copy-map-wire>span{animation:copy-apply var(--copy-loop-time) ease-out var(--copy-loop-count)}
.copy-running .copy-map-destination{animation:copy-receive var(--copy-loop-time) ease-out var(--copy-loop-count)}
[data-copy-model="dory"] .copy-running[data-operation="whole"] .copy-map-wire:not(.carried) .copy-packet{animation-name:copy-stop}
@keyframes copy-transmit{0%{left:0;opacity:0}4%{opacity:1}35%{left:100%;opacity:1}41%,100%{left:100%;opacity:0}}
@keyframes copy-stop{0%{left:0;opacity:0}4%{opacity:1}18%{left:50%;opacity:1}22%,100%{left:50%;opacity:0}}
@keyframes copy-apply{0%,10%,37%,100%{border-color:var(--edge)}20%,28%{border-color:var(--copy-test);background:color-mix(in srgb,var(--copy-test) 14%,var(--panel))}}
@keyframes copy-receive{0%,32%,70%,100%{box-shadow:0 0 0 1px transparent}43%,52%{box-shadow:0 0 0 1px var(--ink-2)}}
.copy-map-wire.carried{grid-row:2}
.copy-map-wire.carried::before,.copy-map-wire.carried::after{background:var(--ink-3)}
.copy-map-join{width:28px;height:56px;grid-column:3;grid-row:1 / span 2;overflow:visible}
.copy-map-join path{fill:none;stroke:var(--ink-3);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.copy-map-join .copy-branch{stroke:var(--copy-test)}
[data-copy-model="dory"] [data-operation="whole"] .copy-branch{visibility:hidden}
[data-copy-model="dory"] [data-operation="whole"] .copy-map-wire:not(.carried)::after{background:transparent}
.copy-map-destination{grid-column:4;grid-row:1 / span 2;padding:5px 8px;border-radius:4px;background:var(--soft);color:var(--ink);font-weight:600}
.reading .copy-profile p.copy-question{font-size:.92rem;line-height:1.46;margin:0 0 15px;color:var(--ink-2)}
@media(max-width:400px){
  .copy-schematic{grid-template-columns:minmax(54px,68px) minmax(74px,1fr) 19px max-content;grid-template-rows:45px 45px}
  .copy-map-join{width:19px;height:90px}
  .copy-map-source{padding-right:4px}.copy-map-wire>span{padding:2px 3px}.copy-map-destination{padding:4px}
}
@media(prefers-reduced-motion:reduce){.copy-replay{display:none}.copy-running *{animation:none!important}}
@media print{.copy-replay,.copy-packet{display:none}.copy-series,.copy-site{clip-path:none}}

.copy-architecture-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.4rem}
.copy-architecture-model + .copy-architecture-model{border-left:1px solid var(--line);padding-left:1.4rem}
.copy-architecture-model h4{margin:0 0 .55rem;font:620 1.06rem/1.3 var(--sans);color:var(--ink)}
.copy-route{display:block;width:100%;max-width:22rem;margin-inline:auto;font-family:var(--sans)}
.copy-route .route-source{fill:var(--flow);font-size:14px;font-weight:600}
.copy-route path,.copy-route circle{vector-effect:non-scaling-stroke}
.copy-route path{fill:none;stroke-linecap:round;stroke-linejoin:round}
.copy-route .route-wire,.copy-route .route-link{stroke:var(--ink-3);stroke-width:1.4}
.copy-route .route-link.messages{stroke-dasharray:2 3}
.copy-route .route-highlight,.copy-route .route-inlets path{stroke:var(--flow);stroke-width:2.3}
.copy-route .route-edited circle{fill:var(--soft);stroke:var(--ink-3);stroke-dasharray:3 2}
.copy-route .route-clean circle{fill:color-mix(in srgb,var(--flow) 9%,var(--panel));stroke:var(--flow);stroke-width:1.7}
.copy-route .route-numbers,.copy-route .route-phases{text-anchor:middle;fill:var(--ink)}
.copy-route .route-numbers{font-size:15px;font-weight:620}
.copy-route .route-phases{font-size:13px}
.copy-route .route-bracket{stroke:var(--edge);stroke-width:1}
.reading .copy-architecture-model p{margin:.65rem 0 0;font-size:.9rem;line-height:1.45;color:var(--ink-2)}
.copy-architecture figcaption{margin-top:1rem}
@media(max-width:680px){
  .copy-architecture-pair{grid-template-columns:1fr;gap:.9rem}
  .copy-architecture-model + .copy-architecture-model{border-left:0;border-top:1px solid var(--line);padding:1rem 0 0}
}
@media(max-width:400px){
  .copy-route .route-source,.copy-route .route-phases{font-size:15px}
  .copy-route .route-numbers{font-size:17px}
}
