/* Restored from e13d509^ (5a9aabf): channel-to-container wires and three-layer architecture.
   Approved copy and keyboard controls accompany pausable, continuous diagram motion. */
.restored-explorer { grid-template-columns: minmax(270px,.85fr) minmax(0,1.6fr); gap: 76px; }
.restored-explorer .ch-item { flex: 0 0 auto; grid-template-columns: 20px minmax(0,1fr) auto; gap: 10px; padding: 18px 16px; }
.restored-explorer .ch-item b { font-size: clamp(15px,1.4vw,19px); overflow-wrap: anywhere; }
.restored-explorer .ch-item small { display: block; color: var(--ink-2); font-size: 12px; }
.restored-channel-mode { display: block; color: var(--mint); font: 500 10px/1.6 var(--mono); margin-top: 5px; }
.restored-explorer .ch-item.active { transform: none; border-color: var(--accent); background: rgba(255,100,47,.1); }
.restored-explorer .ch-gateway { position: relative; z-index: 1; min-width: 0; }
.restored-explorer .ch-list { position: relative; z-index: 1; flex-direction: column; }
.restored-explorer .ch-wires { display: block; }
.restored-explorer .ch-wire.active { stroke: var(--accent); }
.restored-explorer .ch-pkt { opacity: 0; }
.restored-explorer[data-animation-state="running"] .ch-pkt,
.restored-explorer[data-animation-state="paused"] .ch-pkt { opacity: 1; }
.restored-explorer .ch-box > header { padding: 0; }
.ch-box-select { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; text-align: left; }
.restored-explorer .ch-box-name { font-size: clamp(15px,1.6vw,20px); overflow-wrap: anywhere; }
.restored-explorer .ch-box-tag { white-space: normal; text-align: right; max-width: 130px; font-size: 9px; }
.restored-explorer .ch-box.active { border-color: var(--accent); }
.restored-explorer .workspace-panel { border-top: 1px solid var(--forest-line); padding: 18px; }
.restored-explorer .workspace-details { gap: 18px; margin: 20px 0; }
.restored-explorer .workspace-details dd { font-size: 13px; }
.restored-explorer .workspace-pills li { font-size: 11px; }
.restored-explorer .workspace-panel footer { padding: 14px 0 0; font-size: 12px; }
.restored-explorer .workspace-concept { font-size: 11px; }
.restored-explorer .ch-sep { display: flex; align-items: center; gap: 8px; color: var(--mint); font: 500 9px/1.6 var(--mono); text-align: center; padding-inline: 10px; }
.restored-explorer .ch-sep span { min-width: 0; white-space: normal; font: inherit; letter-spacing: .03em; color: #ff9696; }
.restored-explorer .ch-sep i { height: 2px; flex: 1; background: repeating-linear-gradient(90deg, #ef6464 0 8px, transparent 8px 13px); opacity: .9; }
html:not(.workspace-enhanced) .restored-explorer .workspace-panel[hidden] { display: block; }
html:not(.workspace-enhanced) .restored-explorer .ch-wires { display: none; }
.restored-stack .stack-gate-box { gap: 22px; }
.restored-stack .stack-gate { min-width: 0; }
.restored-stack .stack-gate svg { flex-shrink: 0; }
.restored-stack .stack-gate b { font-size: clamp(17px,2.1vw,24px); }
.restored-stack .stack-cards span { overflow-wrap: anywhere; }
.restored-stack .stack-cards small { font-size: 10px; }
.restored-stack .stack-cards .soon em { font-size: 10px; }
.restored-stack .stack-flow i { overflow: visible; border-radius: 0; background: var(--line-2); }
.restored-stack .stack-flow i::after { width: 6px; height: 6px; left: -2px; border-radius: 50%; opacity: 0; animation: none; box-shadow: 0 0 10px rgba(255,100,47,.4); }
.restored-stack[data-animation-state="running"] .stack-flow i::after,
.restored-stack[data-animation-state="paused"] .stack-flow i::after { animation: architecture-route 3.6s linear 1; }
.restored-stack[data-animation-state] .architecture-flow-top i:nth-child(2)::after { animation-delay: -.55s; }
.restored-stack[data-animation-state] .architecture-flow-top i:nth-child(3)::after { animation-delay: -1.1s; }
.restored-stack[data-animation-state] .architecture-flow-bottom i::after { animation-delay: -1.8s; }
.restored-stack[data-animation-state] .architecture-flow-bottom i:nth-child(2)::after { animation-delay: -2.35s; }
.restored-stack[data-animation-state] .architecture-flow-bottom i:last-child::after { animation: none; opacity: 0; }
.restored-stack .architecture-flow-bottom i:last-child { background: repeating-linear-gradient(to bottom,var(--line-2) 0 5px,transparent 5px 10px); }
.restored-stack[data-animation-state="paused"] .stack-flow i::after { animation-play-state: paused; }
@keyframes architecture-route { 0% { top: -3px; opacity: 0; } 3%,97% { opacity: 1; } 100% { top: calc(100% - 3px); opacity: 0; } }
@media (max-width: 1000px) {
  .restored-explorer { grid-template-columns: minmax(220px,.8fr) minmax(0,1.5fr); gap: 45px; }
  .restored-explorer .ch-item { grid-template-columns: 15px minmax(0,1fr); padding: 14px 10px; }
  .restored-explorer .ch-eng { display: none; }
  .restored-stack .stack-gate-box { grid-template-columns: 1fr; }
  .restored-stack .stack-gate { padding-right: 0; padding-bottom: 16px; border-right: 0; border-bottom: 1px solid var(--forest-line); }
}
@media (max-width: 840px) {
  .restored-explorer { grid-template-columns: 1fr; gap: 40px; }
  .restored-explorer .ch-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .restored-explorer .ch-item { grid-template-columns: minmax(0,1fr); gap: 0; }
  .restored-explorer .ch-hash { display: none; }
  .restored-explorer .ch-item b::before { content: '#'; }
  .restored-explorer .ch-item b { font-size: 14px; }
  .restored-explorer .ch-item.active { transform: none; }
  .restored-explorer .ch-wires { display: block; }
  .restored-stack .stack-cards span { padding: 16px 8px; font-size: 15px; }
  .restored-stack .stack-cards small { font-size: 9px; letter-spacing: .04em; }
}
@media (max-width: 480px) {
  .restored-explorer .ch-list { grid-template-columns: 1fr; }
  .restored-explorer .ch-item { padding: 13px 15px; }
  .restored-explorer .ch-item > span:not(.ch-hash) { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; }
  .restored-explorer .ch-item small { grid-column: 1; font-size: 11px; }
  .restored-channel-mode { grid-column: 2; grid-row: 1 / span 2; align-self: center; max-width: 100px; margin: 0; font-size: 9px; }
  .restored-explorer .workspace-details { grid-template-columns: 1fr; }
  .restored-explorer .ch-gw-head small { font-size: 11px; }
  .restored-stack .stack-cards span { font-size: 13px; padding: 14px 5px; }
  .restored-stack .stack-3 { gap: 7px; }
  .restored-stack .stack-gate-box { padding: 22px; }
  .restored-stack .stack-features li { font-size: 12px; padding: 7px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .restored-explorer *, .restored-stack *, .restored-stack *::after { animation: none !important; transition: none !important; }
  .restored-explorer .ch-pkt { display: none; }
  .restored-stack .stack-flow i::after { opacity: 0 !important; }
}

/* Workspace tour controls remain outside the hover/focus hold region. */
.workspace-controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; color: var(--ink-2); font-size: 13px; }
.workspace-controls[hidden] { display: none !important; }
.workspace-controls button { padding: 10px 14px; border: 1px solid var(--forest-line); border-radius: 8px; color: var(--ink); background: var(--forest-deep); }
.workspace-controls button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

@media (max-width: 840px) {
  .restored-explorer .workspace-panel:not([hidden]) { animation: workspace-panel-enter .35s var(--ease); }
  .workspace-controls { gap: 12px; align-items: start; }
  .workspace-controls button { flex-shrink: 0; min-height: 44px; }
  .restored-explorer .ch-box-select { min-height: 54px; }
}
@media (max-width: 480px) {
  .restored-explorer .ch-gateway { padding: 10px; }
  .restored-explorer .ch-gw-head { align-items: flex-start; padding: 8px 4px 16px; }
  .restored-explorer .ch-gw-head b { font-size: 17px; line-height: 1.3; }
  .restored-explorer .workspace-panel { padding: 16px 14px; }
  .restored-explorer .ch-box-select { flex-wrap: wrap; gap: 4px 10px; padding: 14px; }
  .restored-explorer .ch-box-tag { width: auto; max-width: none; }
  .restored-explorer .workspace-scope { padding: 12px; }
  .restored-stack .stack-gate-box { padding: 20px 16px; }
  .restored-stack .stack-gate { gap: 12px; }
  .restored-stack .stack-gate svg { width: 42px; height: 42px; }
  .restored-stack .stack-cards span { font-size: 14px; padding-inline: 7px; }
  .restored-stack .stack-cards small { font-size: 12px; letter-spacing: 0; }
}
@keyframes workspace-panel-enter {
  from { opacity: .5; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 840px) {
  .restored-explorer .restored-channel-mode,
  .restored-explorer .ch-box-tag, .restored-explorer .workspace-kind,
  .restored-explorer .workspace-details dt, .restored-explorer .workspace-concept,
  .restored-explorer .ch-sep span, .restored-stack .stack-cards small,
  .restored-stack .stack-cards .soon em { font-size: 12px; letter-spacing: .02em; }
  .restored-explorer .workspace-details dd,
  .restored-explorer .workspace-scope p { font-size: 17px; }
  .restored-explorer .workspace-pills li { font-size: 13px; }
  .restored-stack .stack-cards span { font-size: 14px; }
  .restored-stack .stack-cards small { line-height: 1.5; }
  .restored-explorer .ch-item > span:not(.ch-hash) { min-width: 0; }
}
@media (max-width: 480px) {
  .restored-explorer .ch-item > span:not(.ch-hash) { grid-template-columns: minmax(0,1fr); gap: 3px; }
  .restored-explorer .restored-channel-mode { grid-column: 1; grid-row: auto; max-width: none; }
  .restored-explorer .ch-box-tag { text-align: left; }
  .restored-explorer .ch-sep { flex-wrap: wrap; }
}
