.arch-study {
  margin: 1.4rem 0 1.7rem;
  border: 1px solid var(--ab-rule);
  background: var(--ab-surface);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(265px, 0.75fr);
}
.arch-print {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--ab-paper);
  border-right: 1px solid var(--ab-rule);
}
.arch-print-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--ab-rule);
  font:
    0.8rem/1.3 abMono,
    monospace;
}
.arch-print-head strong {
  font-weight: 600;
}
.arch-print-head span {
  color: var(--ab-muted);
}
.arch-svg {
  display: block;
  width: 100%;
  height: auto;
  flex: 1;
  min-height: 185px;
  overflow: visible;
  font-family: abInter, Arial, sans-serif;
  color: var(--ab-ink);
}
.ar-surface {
  fill: var(--ab-surface);
  stroke: var(--ab-ink);
  stroke-width: 1.6;
}
.ar-quiet,
.ar-floor {
  fill: color-mix(in srgb, var(--ab-rule) 30%, var(--ab-paper));
  stroke: var(--ab-ink);
  stroke-width: 1.6;
}
.ar-yellow {
  fill: var(--ab-yellow);
  stroke: var(--ab-ink);
  stroke-width: 1.7;
}
.ar-dash {
  fill: transparent;
  stroke: var(--ab-muted);
  stroke-width: 1.3;
  stroke-dasharray: 6 5;
}
.ar-dotted {
  fill: none;
  stroke: var(--ab-muted);
  stroke-width: 1.8;
  stroke-dasharray: 4 5;
}
.ar-wire,
.ar-routes,
.ar-grid,
.ar-heavy {
  fill: none;
  stroke: var(--ab-ink);
  stroke-width: 1.6;
}
.ar-heavy {
  stroke-width: 3.7;
}
.ar-grid {
  stroke: var(--ab-rule);
  stroke-width: 1;
}
.ar-routes {
  stroke: var(--ab-muted);
  stroke-width: 4.5;
}
.ar-chip {
  fill: var(--ab-surface);
  stroke: var(--ab-muted);
  stroke-width: 1;
}
.ar-range {
  fill: var(--ab-yellow);
  fill-opacity: 0.45;
  stroke: var(--ab-ink);
  stroke-width: 1;
}
.ar-solid {
  fill: var(--ab-ink);
}
.ar-fill {
  fill: var(--ab-yellow);
  stroke: #777245;
  stroke-width: 0.7;
}
.ar-label {
  font-size: 23px;
  font-weight: 550;
  letter-spacing: -0.045em;
  fill: var(--ab-ink);
}
.ar-small {
  font:
    15px abMono,
    monospace;
  fill: var(--ab-muted);
}
[data-theme="dark"] .ar-yellow ~ :is(.ar-label, .ar-small) {
  fill: #22251d;
}
[data-theme="dark"] .ar-yellow ~ .ar-chip ~ .ar-small {
  fill: var(--ab-ink);
}
.arch-svg [data-arch-part] {
  cursor: pointer;
}
.arch-svg
  .ar-active
  :is(.ar-surface, .ar-quiet, .ar-floor, .ar-dash, .ar-chip, .ar-yellow) {
  stroke-width: 3.5;
}
.arch-svg .ar-active :is(.ar-label, .ar-small) {
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.arch-print .arch-boundary {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.9rem 1.15rem;
  text-align: left;
  width: 100%;
  border: 0;
  border-top: 1px dashed var(--ab-rule);
  background: transparent;
}
.arch-boundary span,
.arch-kind,
.arch-progress {
  font:
    0.76rem/1.4 abMono,
    monospace;
  color: var(--ab-muted);
}
.arch-boundary strong {
  font-size: 0.97rem;
  line-height: 1.35;
  letter-spacing: -0.025em;
}
.arch-print .arch-boundary[aria-pressed="true"] {
  background: var(--ab-yellow);
  color: #181914;
}
.arch-print .arch-boundary[aria-pressed="true"] span {
  color: #36392e;
}
.arch-study figcaption {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.1rem;
}
.arch-choices,
.arch-tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.arch-choices button,
.arch-tools button {
  font-size: 0.82rem;
  line-height: 1.2;
  min-height: 35px;
}
.arch-choices button[aria-pressed="true"] {
  background: var(--ab-ink);
  color: var(--ab-paper);
  border-color: var(--ab-ink);
}
.arch-readout {
  flex: 1;
  padding: 1.1rem 0;
  min-height: 145px;
}
.arch-readout h3 {
  margin: 0.3rem 0;
  font-size: 1.43rem;
  letter-spacing: -0.045em;
  line-height: 1.13;
}
.arch-readout p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
}
.arch-readout .arch-kind {
  font:
    0.76rem/1.4 abMono,
    monospace;
}
.arch-tools {
  padding-top: 0.7rem;
  border-top: 1px solid var(--ab-rule);
}
.arch-tools [data-arch-play] {
  background: var(--ab-yellow);
  color: #191c15;
  border-color: #827232;
}
.arch-progress {
  flex-basis: 100%;
  padding-top: 0.25rem;
}
.arch-transcript dt {
  font-weight: 650;
  margin-top: 0.8rem;
}
.arch-transcript dd {
  margin: 0.25rem 0;
}
.arch-transcript p {
  max-width: 76ch;
}
@media (max-width: 860px) {
  .arch-study {
    grid-template-columns: 1fr;
  }
  .arch-print {
    border-right: 0;
    border-bottom: 1px solid var(--ab-rule);
  }
  .arch-svg {
    min-height: 0;
  }
  .arch-readout {
    min-height: 0;
  }
}
@media (max-width: 580px) {
  .arch-print-head,
  .arch-study figcaption {
    padding: 0.75rem;
  }
  .arch-print .arch-boundary {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding: 0.65rem 0.75rem;
  }
  .arch-label {
    font-size: 24px;
  }
  .arch-study {
    margin-top: 1rem;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .arch-playing .ar-active .ar-wire,
  .arch-playing .ar-active .ar-routes {
    stroke-dasharray: 7 4;
    animation: arch-route 1s linear infinite;
  }
  @keyframes arch-route {
    to {
      stroke-dashoffset: -22;
    }
  }
}
.arch-print-head {
  flex-wrap: wrap;
}
.arch-print-head > strong {
  margin-right: auto;
}
.arch-print-head [data-arch-zoom] {
  font: inherit;
  font-size: 0.7rem;
  min-height: 30px;
  padding: 0.3rem 0.45rem;
}
.arch-canvas {
  display: grid;
  align-items: center;
  flex: 1;
  min-height: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
.arch-enlarged .arch-svg {
  width: max(860px, 125%);
  max-width: none;
}
.arch-canvas:focus-visible {
  outline-offset: -3px;
}
