.arch-try {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1c2b3a;
  background: #f7f3ea;
  border: 1px solid #1f6f78;
  box-shadow: 0 8px 24px rgba(28, 43, 58, 0.12);
  padding: 0.7rem 0.9rem;
  cursor: pointer;
}
.arch-try:hover { background: rgba(31, 111, 120, 0.08); }
body[data-architecture="on"] .arch-try { display: none; }
.arch-shell { display: none; }
.arch-open {
  display: inline-flex;
  margin: 0 0 0.75rem;
}

body[data-architecture="on"] .mid-panel,
body[data-architecture="on"] .timeline-panel,
body[data-architecture="on"] .mobile-panes { display: none !important; }

body[data-architecture="on"] .layout {
  grid-template-columns: 260px minmax(0, 1fr) 340px;
}
body[data-architecture="on"] .arch-shell {
  display: grid;
  grid-column: 2 / span 2;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1rem;
  align-items: start;
  min-width: 0;
}
body[data-architecture="on"] .layout.arch-collapse-results .arch-shell {
  grid-column: 1 / -1;
}
body[data-architecture="on"] .layout.arch-stack .arch-shell {
  grid-column: 1;
  grid-template-columns: 1fr;
}

body[data-architecture="on"] .layout.arch-collapse-results {
  grid-template-columns: minmax(0, 1fr) 340px;
}
body[data-architecture="on"] .layout.arch-collapse-results .results-panel { display: none; }

body[data-architecture="on"] .layout.arch-stack,
body[data-architecture="on"] .layout.arch-stack.arch-collapse-results {
  grid-template-columns: 1fr;
}
body[data-architecture="on"] .layout.arch-stack .results-panel { display: none; }

.arch-stage,
.arch-detail {
  min-width: 0;
  background: #f7f3ea;
  border: 1px solid var(--line);
}
.arch-stage { position: relative; display: flex; flex-direction: column; min-height: 70vh; }
body[data-architecture="on"] .controls {
  position: static;
  background: none;
}
.arch-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.9rem;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 6;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line);
  background: #f7f3ea;
}
.arch-procedure {
  margin: 0 0 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.72);
}
.arch-procedure-summary {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
}
.arch-procedure-summary::-webkit-details-marker { color: #1f6f78; }
.arch-procedure[open] > .arch-procedure-summary { border-bottom: 1px solid var(--line); }
.arch-procedure-stage { font-size: 0.95rem; }
.arch-procedure .arch-brief-actions,
.arch-procedure .position-box,
.arch-procedure .glance,
.arch-procedure > .arch-extract-from {
  margin-left: 0.75rem;
  margin-right: 0.75rem;
}
.arch-procedure .arch-brief-actions { margin-top: 0.75rem; }
.arch-procedure .glance { margin-bottom: 0.75rem; }
.arch-modes,
.arch-cameras,
.arch-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.arch-modes {
  padding: 0.16rem;
  border: 1px solid var(--line);
  background: rgba(28, 43, 58, 0.03);
}
.arch-cameras {
  padding-left: 0.85rem;
  border-left: 1px solid var(--line);
}
.arch-toolbar-actions { margin-left: auto; }
.arch-toolbar button,
.arch-open,
.arch-results-toggle {
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
}
.arch-toolbar-actions button,
.arch-results-toggle {
  border-color: var(--line);
}
.arch-modes button[disabled] { color: var(--muted); cursor: default; }
.arch-modes button.is-on {
  background: #1f6f78;
  border-color: #1f6f78;
  color: #f7f3ea;
}
.arch-cameras button.is-on {
  color: #1f6f78;
  box-shadow: inset 0 -2px 0 #1f6f78;
}
.arch-open.is-on {
  border-color: #1f6f78;
  color: #1f6f78;
}
.arch-stage-view {
  position: relative;
  flex: 1;
  min-height: 420px;
}
.arch-stage-view canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.arch-stage-view.is-flat canvas { display: none; }
.arch-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.arch-float-label {
  position: absolute;
  max-width: 11rem;
  padding: 0.16rem 0.42rem;
  background: rgba(247, 243, 234, 0.94);
  color: var(--ink);
  border: 1px solid rgba(28, 43, 58, 0.14);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
  white-space: nowrap;
}
.arch-float-label.is-left { transform: translate(calc(-100% - 10px), -50%); }
.arch-float-label.is-right { transform: translate(10px, -50%); }
.arch-float-label.is-below { transform: translate(-50%, 6px); }
.arch-float-label.is-above { transform: translate(-50%, calc(-100% - 8px)); }
.arch-float-label.is-selected {
  color: #7a5428;
  border-color: rgba(138, 98, 50, 0.45);
}
.arch-float-label.is-near { transform: translate(-50%, calc(-100% - 4px)); }
.arch-relation-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.arch-relation-links line {
  stroke: rgba(28, 43, 58, 0.55);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.arch-relation-links[hidden],
.arch-citation-links[hidden],
.arch-column-headings[hidden] { display: none !important; }
.arch-citation-links {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}
.arch-citation-links .arch-cite-line {
  fill: none;
  stroke: rgba(62, 78, 72, 0.72);
  stroke-width: 1.15;
  stroke-linecap: round;
}
.arch-citation-links .arch-cite-line.is-on { stroke: #1f6f78; stroke-width: 1.75; }
.arch-citation-links .arch-cite-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 14;
  pointer-events: stroke;
}
.arch-citation-links .arch-cite-arrow { fill: rgba(62, 78, 72, 0.88); }
.arch-citation-links .arch-cite-arrow.is-on { fill: #1f6f78; }
.arch-column-headings {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.arch-column-heading {
  position: absolute;
  transform: translate(-50%, calc(-100% - 64px));
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(28, 43, 58, 0.62);
  white-space: nowrap;
}
.arch-column-heading.is-root {
  color: #1f6f78;
  letter-spacing: 0.08em;
  text-transform: none;
  transform: translate(-50%, 8px);
}
.arch-column-heading.is-selected {
  color: #7a5428;
  letter-spacing: 0.08em;
  text-transform: none;
  transform: translate(-50%, calc(-100% - 8px));
}
.arch-cite-source {
  padding: 0.45rem 0 0.7rem;
  border-top: 1px solid rgba(28, 43, 58, 0.08);
}
.arch-cite-source .arch-list-title,
.arch-cite-source .arch-list-meta { display: block; }
.arch-float-label.is-relation {
  max-width: 9.5rem;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  transform: translate(-50%, -50%);
}
.arch-cite-pager { margin: 0.2rem 0 0.75rem; }
.arch-cite-range { margin: 0 0 0.35rem; }
.arch-cite-nav { display: flex; gap: 0.4rem; }
.arch-cite-nav button.arch-more { width: auto; }
button.arch-more:disabled { opacity: 0.4; cursor: default; }
button.arch-open-file {
  margin-top: 0.85rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1f6f78;
  background: transparent;
  border: 1px solid rgba(31, 111, 120, 0.45);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}
.arch-float-label.is-below { transform: translate(-50%, 12px); }
.arch-more-scene {
  pointer-events: auto;
  cursor: pointer;
  color: #1f6f78;
  border-color: rgba(31, 111, 120, 0.45);
}
.arch-detail {
  padding: 0.9rem 1rem 1.2rem;
  overflow: auto;
  max-height: calc(100dvh - 8rem);
}
.arch-detail-head {
  border-left: 2px solid transparent;
  padding-left: 0.7rem;
  margin-left: -0.15rem;
}
.arch-detail-head.is-on {
  border-left-color: #1f6f78;
  animation: arch-accent-in 380ms ease;
}
@keyframes arch-accent-in {
  from { border-left-color: transparent; }
  to { border-left-color: #1f6f78; }
}
.arch-kicker {
  margin: 0;
  color: #1f6f78;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.arch-detail-title {
  display: grid;
  gap: 0.12rem;
  margin: 0.25rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.arch-detail-date {
  font-size: 0.95rem;
  font-weight: 500;
}
.arch-detail-file {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
  word-break: break-word;
}
.arch-briefing { margin: 0 0 1.1rem; }
.arch-brief-actions { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; margin: 0 0 0.7rem; }
.arch-text-action {
  padding: 0;
  border: 0;
  background: none;
  color: #1f6f78;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}
.arch-text-action.is-on { font-weight: 600; }
.arch-detail .position-box { animation: none; margin: 0 0 0.75rem; }
.arch-detail .pos-metrics,
.arch-detail .pos-date-kinds { grid-template-columns: 1fr; }
.arch-detail .pos-stage { font-size: 1.05rem; }
.arch-detail .badge-machine { white-space: normal; line-height: 1.35; }
.arch-extract-from { margin: 0 0 0.45rem; color: var(--muted); font-size: 0.75rem; }
.arch-facts { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.35rem 0.6rem; margin: 0 0 0.8rem; }
.arch-facts dt { color: var(--muted); font-size: 0.75rem; }
.arch-facts dd { margin: 0; font-size: 0.82rem; }
.arch-summary, .arch-muted, .arch-note, .arch-locked, .arch-more { font-size: 0.82rem; line-height: 1.45; }
button.arch-more {
  display: block;
  width: 100%;
  margin: 0.15rem 0 0.35rem;
  padding: 0.4rem 0.55rem;
  text-align: left;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1f6f78;
  background: rgba(31, 111, 120, 0.06);
  border: 1px solid rgba(31, 111, 120, 0.4);
  cursor: pointer;
}
.arch-list-btn.is-grouped { background: rgba(31, 111, 120, 0.04); }
.arch-locked { padding: 0.55rem 0.65rem; border: 1px dashed var(--line); background: rgba(138, 78, 50, 0.06); }
.arch-sources { display: flex; flex-wrap: wrap; gap: 0.45rem 0.8rem; }
.arch-link { color: #1f6f78; }
.arch-list-h { margin: 1rem 0 0.4rem; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.arch-list-btn {
  display: grid;
  gap: 0.15rem;
  width: 100%;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  padding: 0.45rem 0.2rem;
  cursor: pointer;
}
.arch-list-btn.is-on { border-color: #1f6f78; background: rgba(31, 111, 120, 0.08); }
.arch-list-title { font-size: 0.8rem; line-height: 1.35; }
.arch-list-meta { color: var(--muted); font-size: 0.72rem; }
.arch-undated { margin-top: 0.4rem; padding-top: 0.2rem; }
.arch-decision-rail {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem 0.55rem;
  background: #f6f3ea;
  color: #203a35;
}
.arch-file-time[hidden] { display: none !important; }
.arch-clock {
  padding: 0.75rem 0.9rem 0.85rem;
  background: #f6f3ea;
  border-top: 1px solid rgba(32, 58, 53, 0.12);
}
.arch-clock[hidden] { display: none !important; }
.arch-clock-metrics,
.arch-clock-kinds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}
.arch-clock .pos-metric,
.arch-clock .pos-date-kind,
.arch-clock .pos-window {
  background: rgba(255, 252, 247, 0.72);
}
.arch-clock .pos-window { margin: 0; }
.arch-clock .pos-rail {
  height: 0.5rem;
  background: rgba(32, 58, 53, 0.12);
}
.arch-file-time-head {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.55rem 0.75rem;
  min-height: 1.35rem;
}
.arch-file-time-kicker,
.arch-file-time-case,
.arch-file-time-count { margin: 0; }
.arch-file-time-kicker {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(28, 43, 58, 0.58);
}
.arch-file-time-case {
  font-size: 0.95rem;
  font-weight: 650;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.arch-file-time-count { margin-left: auto; font-size: 0.78rem; color: rgba(28, 43, 58, 0.62); white-space: nowrap; }
.arch-file-time-rail {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: end;
  column-gap: 0.35rem;
}
.arch-time-step {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0 0 2px;
  padding: 0;
  border: 1px solid #8b9e94;
  border-radius: 4px;
  background: #f9f7f0;
  color: #203a35;
  box-shadow: 0 1px 2px rgba(25, 48, 42, 0.08);
  cursor: pointer;
}
.arch-time-step:disabled { opacity: 0.32; cursor: default; }
.arch-time-step:focus-visible { outline: 2px solid #1f6f78; outline-offset: 2px; }
.arch-time-step-mark {
  width: 0.38rem;
  height: 0.38rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}
.arch-time-step.is-prev .arch-time-step-mark { transform: translateX(1px) rotate(-135deg); }
.arch-time-step.is-next .arch-time-step-mark { transform: translateX(-1px) rotate(45deg); }
.arch-time-continue {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 36px;
  pointer-events: none;
}
.arch-time-continue.is-left {
  left: 42px;
  background: linear-gradient(90deg, #f6f3ea 10%, rgba(246, 243, 234, 0));
}
.arch-time-continue.is-right {
  right: 42px;
  background: linear-gradient(270deg, #f6f3ea 10%, rgba(246, 243, 234, 0));
}
.arch-time-continue[hidden] { display: none; }
.arch-file-time-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.arch-file-time-scroll::-webkit-scrollbar { display: none; height: 0; width: 0; }
.arch-file-time-track { position: relative; background: #f6f3ea; }
.arch-rail {
  position: absolute;
  z-index: 1;
  height: 8px;
  pointer-events: none;
}
.arch-rail-body {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, #c5cdca 0%, #edf0ec 20%, #a5b1ac 42%, #798c85 75%, #526860 100%);
  box-shadow: 0 3px 5px rgba(25, 48, 42, 0.12);
}
.arch-rail-body::before,
.arch-rail-body::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  height: 1px;
  pointer-events: none;
}
.arch-rail-body::before { top: 0; background: rgba(255, 255, 255, 0.85); }
.arch-rail-body::after { top: 3.5px; background: rgba(86, 142, 145, 0.45); }
.arch-rail-cap {
  position: absolute;
  top: -2px;
  width: 4px;
  height: 12px;
  border-radius: 1px;
  background: linear-gradient(180deg, #c5cdca 0%, #edf0ec 20%, #a5b1ac 42%, #798c85 75%, #526860 100%);
  pointer-events: none;
}
.arch-rail-cap.is-start { left: 0; }
.arch-rail-cap.is-end { right: 0; }
.arch-station {
  position: absolute;
  z-index: 2;
  width: 116px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #203a35;
  font: inherit;
  text-align: center;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  pointer-events: none;
}
.arch-station.is-open { z-index: 4; }
.arch-station-plate {
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 116px;
  min-height: 46px;
  padding: 8px 10px;
  background: #f9f7f0;
  border: 1px solid #c8cfc6;
  border-radius: 4px;
  box-shadow: 0 3px 8px rgba(25, 48, 42, 0.09);
  pointer-events: auto;
  cursor: pointer;
  transition: transform 180ms ease-out, box-shadow 180ms ease-out, border-color 180ms ease-out;
}
.arch-station-date {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 14px;
  color: #203a35;
  white-space: nowrap;
}
.arch-station-count {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  font-weight: 400;
  line-height: 12px;
  color: #62756d;
  white-space: nowrap;
}
.arch-station-stem {
  position: absolute;
  left: 50%;
  top: 46px;
  z-index: 1;
  width: 1px;
  height: var(--stem-h, 16px);
  background: #8b9e94;
  transform: translateX(-50%);
  transition: top 180ms ease-out, height 180ms ease-out;
}
.arch-station-run,
.arch-station-riser {
  display: none;
  position: absolute;
  z-index: 1;
  background: #8b9e94;
}
.arch-station.is-elbow .arch-station-stem { height: calc(var(--stem-h, 16px) - 8px); }
.arch-station.is-elbow .arch-station-run,
.arch-station.is-elbow .arch-station-riser { display: block; }
.arch-station-run {
  top: calc(46px + var(--stem-h, 16px) - 8px);
  left: calc(50% - max(0px, var(--plate-shift, 0px)));
  width: max(var(--plate-shift, 0px), calc(var(--plate-shift, 0px) * -1));
  height: 1px;
}
.arch-station-riser {
  top: calc(46px + var(--stem-h, 16px) - 8px);
  left: calc(50% - var(--plate-shift, 0px));
  width: 1px;
  height: 8px;
  transform: translateX(-50%);
}
.arch-station-socket {
  position: absolute;
  left: calc(50% - var(--plate-shift, 0px));
  bottom: 0;
  z-index: 3;
  width: 20px;
  height: 16px;
  background: #71867d;
  transform: translateX(-50%);
  clip-path: polygon(3px 0, calc(100% - 3px) 0, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 0 calc(100% - 3px), 0 3px);
}
.arch-station-socket::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: linear-gradient(180deg, #f7f8f3 0 1px, #d5ddd7 1px);
  clip-path: polygon(2px 0, calc(100% - 2px) 0, 100% 2px, 100% calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 0 calc(100% - 2px), 0 2px);
}
.arch-station-slot {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 4px;
  background: #344e46;
  transform: translate(-50%, -50%);
}
.arch-station.is-on .arch-station-plate { z-index: 2; }
.arch-station.is-on .arch-station-socket {
  background: #237f86;
  filter: drop-shadow(0 1px 0 #70b8b7) drop-shadow(0 0 4px rgba(35, 127, 134, 0.5));
}
.arch-station.is-on .arch-station-socket::before {
  background: linear-gradient(180deg, #d9f3f1 0 1px, #1c7c84 1px);
}
.arch-station.is-on .arch-station-slot { background: #e7f6f5; }
.arch-station:hover .arch-station-plate {
  transform: translateY(-2px);
}
.arch-station:hover .arch-station-stem {
  top: 44px;
  height: calc(var(--stem-h, 16px) + 2px);
}
.arch-station.is-elbow:hover .arch-station-stem {
  top: 44px;
  height: calc(var(--stem-h, 16px) - 6px);
}
.arch-station.is-on.is-live .arch-station-plate,
.arch-station.is-on.is-live:hover .arch-station-plate {
  border-bottom: 2px solid #237f86;
  box-shadow: 0 4px 12px rgba(25, 48, 42, 0.16);
  transform: translateY(-4px);
}
.arch-station.is-on.is-live .arch-station-date,
.arch-station.is-on.is-live:hover .arch-station-date { color: #176d74; }
.arch-station.is-on.is-live .arch-station-stem,
.arch-station.is-on.is-live:hover .arch-station-stem {
  top: 42px;
  height: calc(var(--stem-h, 16px) + 4px);
}
.arch-station.is-elbow.is-on.is-live .arch-station-stem,
.arch-station.is-elbow.is-on.is-live:hover .arch-station-stem {
  top: 42px;
  height: calc(var(--stem-h, 16px) - 4px);
}
.arch-station:focus { outline: none; }
.arch-station:focus-visible .arch-station-plate {
  outline: 2px dashed #176d74;
  outline-offset: 3px;
}
.arch-time-pop {
  position: absolute;
  z-index: 80;
  width: min(320px, calc(100vw - 24px));
  padding: 0.55rem 0.45rem 0.4rem;
  background: #fbfaf6;
  color: #1c2b3a;
  border: 1px solid rgba(28, 43, 58, 0.14);
  border-top: 2px solid #1f6f78;
  box-shadow: 0 12px 28px rgba(28, 43, 58, 0.1);
}
.arch-time-pop-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0 0.35rem 0.4rem;
  font-size: 0.84rem;
  font-weight: 650;
}
.arch-time-pop-count {
  font-size: 0.7rem;
  font-weight: 450;
  color: rgba(28, 43, 58, 0.55);
}
.arch-time-pop-caret {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fbfaf6;
  border: 1px solid rgba(28, 43, 58, 0.14);
  transform: translateX(-50%) rotate(45deg);
  pointer-events: none;
}
.arch-time-pop[data-place="above"] .arch-time-pop-caret {
  bottom: -6px;
  border-top-color: transparent;
  border-left-color: transparent;
}
.arch-time-pop[data-place="below"] .arch-time-pop-caret {
  top: -6px;
  border-right-color: transparent;
  border-bottom-color: transparent;
}
.arch-time-pop-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-height: 240px;
  overflow: auto;
  scrollbar-width: thin;
}
.arch-time-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  width: 100%;
  margin: 0;
  padding: 0.48rem 0.5rem;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}
.arch-time-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}
.arch-time-row-kinds { display: inline-flex; align-items: center; gap: 0.28rem; }
.arch-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  background: rgba(98, 117, 109, 0.14);
  color: #3d524a;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  line-height: 1.35;
  text-transform: uppercase;
}
.arch-type-badge.is-decision { background: rgba(31, 111, 120, 0.14); color: #17656d; }
.arch-type-badge.is-order { background: rgba(138, 98, 50, 0.16); color: #7a5428; }
.arch-type-badge.is-lang {
  background: rgba(28, 43, 58, 0.06);
  color: rgba(28, 43, 58, 0.62);
  letter-spacing: 0.08em;
}
.arch-list-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.arch-list-when { color: var(--ink); font-size: 0.78rem; }
.arch-detail-title .arch-type-badge { margin-right: 0.15rem; vertical-align: 0.12em; }
.arch-time-row-mark {
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1f6f78;
}
.arch-time-row-brief { font-size: 0.74rem; line-height: 1.35; }
.arch-time-row-meta {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.68rem;
  line-height: 1.35;
  color: rgba(28, 43, 58, 0.62);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.arch-time-row:hover { background: rgba(28, 43, 58, 0.04); }
.arch-time-row.is-on {
  border-color: rgba(31, 111, 120, 0.45);
  background: rgba(31, 111, 120, 0.06);
}
.arch-time-row:focus-visible {
  outline: 2px solid #1f6f78;
  outline-offset: 2px;
}
.arch-file-time-missing { margin: 0; }
.arch-file-time-missing-h {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.arch-file-time-missing .arch-station {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  width: auto;
  height: auto;
}
.arch-file-time-missing .arch-station-plate { position: relative; left: auto; transform: none; }
.arch-file-time-missing .arch-station-stem,
.arch-file-time-missing .arch-station-run,
.arch-file-time-missing .arch-station-riser,
.arch-file-time-missing .arch-station-socket { display: none; }
.arch-file-time-missing .arch-station.is-on.is-live .arch-station-plate,
.arch-file-time-missing .arch-station:hover .arch-station-plate,
.arch-file-time-missing .arch-station:focus-visible .arch-station-plate {
  transform: translateY(-2px);
}
.arch-file-time-empty { margin: 0; font-size: 0.78rem; }
.arch-spine {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.2rem 0 0.2rem 1.6rem;
}
.arch-spine-metal {
  position: absolute;
  left: 0.15rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 7px;
  border-radius: 1px;
  background: linear-gradient(90deg, #e8eef1, #c5ced3 22%, #8e989f 62%, #6c757b);
  box-shadow: 1px 0 1px rgba(28, 43, 58, 0.28);
}
.arch-spine-metal::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  bottom: 3px;
  width: 1px;
  background: rgba(31, 111, 120, 0.42);
}
.arch-station.is-spine {
  position: relative;
  left: auto;
  top: auto;
  display: block;
  width: 100%;
  height: auto;
  min-height: 44px;
  transform: none;
  text-align: left;
}
.arch-station.is-spine .arch-station-plate {
  position: relative;
  left: auto;
  display: inline-block;
  transform: none;
}
.arch-station.is-spine .arch-station-stem,
.arch-station.is-spine .arch-station-run,
.arch-station.is-spine .arch-station-riser { display: none; }
.arch-station.is-spine .arch-station-socket {
  left: -1.45rem;
  top: 0.85rem;
  bottom: auto;
}
.arch-station.is-spine:hover .arch-station-plate,
.arch-station.is-spine:focus-visible .arch-station-plate,
.arch-station.is-spine.is-on.is-live .arch-station-plate {
  transform: none;
}
.arch-spine-drawer {
  margin: -0.2rem 0 0.15rem 0.15rem;
  padding: 0.35rem 0.15rem 0.15rem;
  border-top: 2px solid #1f6f78;
  background: #fbfaf6;
  box-shadow: 0 8px 18px rgba(28, 43, 58, 0.06);
}
.arch-decision-rail.is-spine { min-height: 0; }
.arch-decision-rail.is-spine .arch-time-step,
.arch-decision-rail.is-spine .arch-time-continue { display: none; }

@media (prefers-reduced-motion: reduce) {
  .arch-detail-head.is-on,
  .arch-station-plate,
  .arch-station-stem,
  .arch-station-date,
  .arch-time-row { animation: none; transition: none; }
}
@media (min-width: 801px) {
  body[data-architecture="on"]:not([data-arch-mode="relations"]):not([data-arch-mode="citations"]) .arch-stage { min-height: 0; }
  body[data-architecture="on"]:not([data-arch-mode="relations"]):not([data-arch-mode="citations"]) .arch-stage-view {
    flex: 0 0 auto;
    height: 300px;
    min-height: 0;
    max-height: none;
  }
  body[data-architecture="on"][data-arch-mode="relations"] .arch-stage,
  body[data-architecture="on"][data-arch-mode="citations"] .arch-stage {
    min-height: 0;
  }
  body[data-architecture="on"][data-arch-mode="citations"] .arch-stage {
    align-self: start;
    height: auto;
  }
  body[data-architecture="on"][data-arch-mode="relations"] .arch-stage-view {
    flex: 0 0 360px;
    height: 360px;
    min-height: 320px;
    max-height: 380px;
  }
  body[data-architecture="on"][data-arch-mode="citations"] .arch-stage-view {
    flex: 0 0 auto;
    height: 460px;
    min-height: 420px;
    max-height: 520px;
  }
}

@media (max-width: 800px) {
  .arch-try,
  .arch-open { display: none !important; }
  body[data-architecture="on"] .layout,
  body[data-architecture="on"] .layout.arch-collapse-results,
  body[data-architecture="on"] .layout.arch-stack {
    grid-template-columns: 1fr;
  }
  body[data-architecture="on"] .arch-shell,
  body[data-architecture="on"] .layout.arch-stack .arch-shell,
  body[data-architecture="on"] .layout.arch-collapse-results .arch-shell {
    grid-column: 1;
    grid-template-columns: 1fr;
  }
  .arch-stage { min-height: 0; }
  .arch-stage-view { min-height: 320px; }
  .arch-detail { max-height: none; }
}
