/* Supplied route-map illustration, isolated from the rest of Switchboard. */
.route-map {
  --raise-2: var(--surface); --line: var(--border); --grid: rgba(60,65,53,.38);
  --text-2: var(--muted); --text-3: #8e9387;
  --amber: var(--accent); --amber-dim: #7e6137; --amber-wash: rgba(244,184,96,.12);
  --ok: #a9c79a; --nub: #474d3f;
  --mono: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-family: var(--body-font); line-height: 1.6; padding-top: 0;
}
.route-map .mono { font-family: var(--mono); }
.route-map .intro {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"kicker ." "title body";column-gap:80px;row-gap:18px;align-items:start;margin-bottom:48px}
.route-map .kicker {grid-area:kicker;display:inline-flex;align-items:center;gap:10px;color:var(--text-2);font-size:13px}
.route-map .kicker svg {width:17px;height:17px;color:var(--amber);flex:none}
.route-map .intro .h2 {grid-area:title}
.route-map .intro .body {grid-area:body;margin-top:.35em;justify-self:end;width:100%;max-width:310px}
.route-map .h2 {max-width:11em}
.route-map .body {color:var(--text-2);font-size:13px;line-height:1.65;max-width:31em}
.route-map .stage {position:relative;border:1px solid var(--line);border-radius:22px;padding:72px 56px 64px;
  display:grid;grid-template-columns:minmax(0,1fr) 150px minmax(0,400px);gap:0;align-items:center;
  background-color:#191A16;
  background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);
  background-size:60px 60px;background-position:-1px -1px;overflow:hidden}
.route-map .stage::after {content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(120% 90% at 50% 50%,transparent 55%,rgba(23,24,21,.85) 100%)}
.route-map .wires {position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;overflow:visible}
.route-map .wire {fill:none;stroke:rgba(178,183,169,.40);stroke-width:1;stroke-dasharray:4 4}
.route-map .wire.row {stroke:rgba(178,183,169,.28)}
.route-map .wire.hot {stroke:rgba(244,184,96,.40)}
.route-map .guide {fill:none;stroke:rgba(178,183,169,.24);stroke-width:1;stroke-dasharray:6 5}
.route-map .box-fill {fill:rgba(243,242,233,.016)}
.route-map .pnub {fill:var(--nub)}
.route-map .ball circle {fill:#FFFFFF}
.route-map .ball .a {fill:var(--amber)}
.route-map .cluster {position:relative;z-index:2;padding:76px 28px;justify-self:stretch}
.route-map .stack-tile {position:absolute;left:50%;top:0;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:6px;
  padding:14px 18px 10px;border-radius:14px;background:#24271F;border:1px solid #4A5042;box-shadow:0 10px 30px -12px rgba(0,0,0,.7)}
.route-map .stack-tile svg {width:30px;height:30px;color:var(--text)}
.route-map .stack-tile span {font-size:12.5px;color:var(--text-2);white-space:nowrap}
.route-map .stack-tile code {font:11.5px var(--mono);color:var(--amber);white-space:nowrap;margin-top:-2px;display:flex;align-items:center}
.route-map .stack-tile code span {font:inherit;color:inherit}
.route-map .stack-tile code .sep {color:var(--text-3);white-space:pre}
.route-map .chip .kind {font:500 11px/1 var(--mono);color:var(--text-3);border:1px solid #3F4538;border-radius:5px;padding:3px 6px;margin-left:2px}
.route-map .chip .kind.k-agent {color:#D9A863;border-color:rgba(244,184,96,.28)}
.route-map .chips {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:96px;row-gap:34px}
.route-map .chip {position:relative;display:flex;align-items:center;gap:10px;min-height:46px;padding:0 16px;border-radius:10px;
  background:#22251E;border:1px solid #3F4538;box-shadow:inset 0 1px 0 rgba(255,255,255,.03),0 8px 20px -14px rgba(0,0,0,.8);
  font-size:15px;color:var(--text);white-space:nowrap}
.route-map .chip svg {width:20px;height:20px;color:var(--text-2);flex:none}
.route-map .chip.L {justify-self:end}
.route-map .chip.R {justify-self:start}
.route-map .chip::after {content:"";position:absolute;top:50%;width:8px;height:16px;margin-top:-8px;background:var(--nub)}
.route-map .chip.L::after {left:calc(100% + 1px);border-radius:0 8px 8px 0}
.route-map .chip.R::after {right:calc(100% + 1px);border-radius:8px 0 0 8px}
.route-map .chip.flash::after {animation:route-map-nubflash 1s ease-out}
@keyframes route-map-nubflash {0%,22%{background:var(--amber)}100%{background:var(--nub)}}
.route-map .hub-wrap {position:relative;z-index:2;display:flex;flex-direction:column;align-items:center}
.route-map .hub {width:82px;height:82px;border-radius:20px;display:grid;place-items:center;color:#1A1A14;
  background:linear-gradient(150deg,#F8C878,#F4B860 45%,#E89A3C);
  box-shadow:0 0 0 1px rgba(255,255,255,.18) inset,0 14px 40px -12px rgba(244,184,96,.55)}
.route-map .hub svg {width:38px;height:38px}
.route-map .hub.ping {animation:route-map-ping .45s ease-out}
@keyframes route-map-ping {0%{box-shadow:0 0 0 1px rgba(255,255,255,.18) inset,0 0 0 0 rgba(244,184,96,.55)}100%{box-shadow:0 0 0 1px rgba(255,255,255,.18) inset,0 0 0 16px rgba(244,184,96,0)}}
.route-map .hub-cap {position:absolute;top:100%;left:50%;transform:translateX(-50%);margin-top:12px;font:12px var(--mono);color:var(--text-2);text-align:center;line-height:1.4;white-space:nowrap}
.route-map .panel {position:relative;z-index:2;display:flex;flex-direction:column;height:500px;border-radius:14px;background:var(--raise-2);
  border:1px solid #474D40;box-shadow:0 30px 60px -30px rgba(0,0,0,.9);overflow:hidden}
.route-map .p-head {display:flex;align-items:center;gap:10px;padding:16px 18px;border-bottom:1px solid var(--line)}
.route-map .p-head svg {width:20px;height:20px;color:var(--amber)}
.route-map .p-title {font-weight:600;font-size:16px}
.route-map .badge {margin-left:auto;font-size:12px;color:var(--amber);border:1px solid var(--amber-dim);border-radius:6px;padding:1px 8px}
.route-map .feed {position:relative;flex:1;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;
  -webkit-mask-image:linear-gradient(transparent,#000 18%);mask-image:linear-gradient(transparent,#000 18%);transition:opacity .5s}
.route-map .feed.fade {opacity:0}
.route-map .entry {padding:14px 18px;border-top:1px solid #2C2F27;animation:route-map-enter .45s cubic-bezier(.2,.8,.2,1)}
@keyframes route-map-enter {from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.route-map .e-head {display:flex;align-items:center;gap:8px;margin-bottom:6px}
.route-map .avatar {width:24px;height:24px;border-radius:7px;display:grid;place-items:center;flex:none}
.route-map .avatar.app {background:var(--amber);color:#1A1A14}
.route-map .avatar.you {background:#33372D;color:var(--text)}
.route-map .avatar svg {width:15px;height:15px}
.route-map .e-name {font-weight:600;font-size:15px}
.route-map .e-badge {font-size:11px;color:var(--text-2);border:1px solid var(--line);border-radius:5px;padding:0 6px;line-height:18px}
.route-map .e-time {font:12.5px var(--mono);color:var(--text-3)}
.route-map .e-title {display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:14.5px;color:var(--text)}
.route-map .tag {font:12px var(--mono);color:var(--amber);background:var(--amber-wash);border:1px solid rgba(244,184,96,.35);border-radius:5px;padding:0 6px;line-height:20px}
.route-map .e-lines {list-style:none;margin:6px 0 0;padding:0;display:grid;gap:3px;font-size:14px;color:var(--text-2)}
.route-map .e-lines li {display:flex;align-items:center;gap:8px;animation:route-map-enter .35s ease}
.route-map .e-lines svg {width:14px;height:14px;flex:none;color:var(--text-3)}
.route-map .e-lines li.ok svg {color:var(--ok)}
.route-map .e-lines li.new {color:var(--text)}
.route-map .e-lines li.new b {color:var(--amber);font-weight:600;font-family:var(--mono);font-size:13.5px}
.route-map .e-code {font:13.5px var(--mono);color:var(--text);background:#262920;border:1px solid var(--line);border-radius:6px;padding:4px 8px;display:inline-block}
.route-map .pill-row {position:relative;padding:10px 18px;text-align:center;animation:route-map-enter .4s ease}
.route-map .pill-row::before {content:"";position:absolute;left:0;right:0;top:50%;border-top:1px solid #2C2F27}
.route-map .pill {position:relative;display:inline-block;font:12.5px var(--mono);color:#1A1A14;background:var(--amber);border-radius:6px;padding:2px 10px}
.route-map .p-input {display:flex;align-items:center;gap:8px;margin:12px 14px 14px;padding:0 14px;min-height:46px;border-radius:9px;background:#151612;border:1px solid var(--line);font:13.5px var(--mono);color:var(--text);white-space:nowrap;overflow:hidden}
.route-map .p-input .prompt {color:var(--amber)}
.route-map .p-input .ph {color:var(--text-3)}
.route-map .caret {width:7px;height:16px;background:var(--amber);animation:route-map-blink 1s steps(1) infinite}
@keyframes route-map-blink {50%{opacity:0}}
.route-map .p-input.sent {border-color:var(--amber-dim)}
@media (max-width:1360px) {
.route-map .stage {grid-template-columns:1fr;row-gap:56px;padding:72px 32px 40px;justify-items:center}
.route-map .cluster {width:100%;max-width:640px;justify-self:center}
.route-map .panel {width:100%;max-width:560px;height:460px}
.route-map .hub-cap {top:50%;left:100%;transform:translateY(-50%);margin:0 0 0 16px;text-align:left}
}
@media (max-width:950px) {
.route-map .intro {grid-template-columns:1fr;grid-template-areas:"kicker" "title" "body";row-gap:18px}
.route-map .intro .body {margin-top:0;justify-self:start;max-width:450px}
}
@media (max-width:700px) {
.route-map .stage {padding:108px 12px 16px;border-radius:16px;background-size:44px 44px;row-gap:48px}
.route-map .cluster {padding:56px 10px}
.route-map .hub-cap {display:none}
.route-map .chips {column-gap:34px;row-gap:22px}
.route-map .chip {padding:0 10px;font-size:13.5px;gap:7px;min-height:40px}
.route-map .chip svg {width:16px;height:16px}
.route-map .chip .kind {display:none}
.route-map .stack-tile code {font-size:10.5px;flex-direction:column;gap:2px}
.route-map .stack-tile code .sep {display:none}
.route-map .chip.L, .route-map .chip.R {justify-self:stretch}
.route-map .panel {height:440px}
.route-map .p-input {font-size:12.5px}
}
@media (prefers-reduced-motion:reduce) {
.route-map .entry, .route-map .e-lines li, .route-map .pill-row {animation:none}
.route-map .hub.ping {animation:none}
.route-map .chip.flash::after {animation:none}
.route-map .caret {animation:none}
}

/* Keep long code and narrow-phone labels inside their cards. */
.route-map .cluster, .route-map .panel, .route-map .chip { min-width: 0; }
.route-map .e-lines li { align-items: flex-start; }
.route-map .e-lines svg { margin-top: 4px; }
.route-map .e-line-copy { min-width: 0; overflow-wrap: anywhere; }
.route-map .e-line-copy b { white-space: nowrap; }
.route-map .e-code { max-width: 100%; overflow-wrap: anywhere; }
.route-map .p-input { white-space: normal; padding-block: 9px; }
.route-map .p-input > span { min-width: 0; overflow-wrap: anywhere; }
.route-map .p-input .prompt, .route-map .caret { flex-shrink: 0; }
@media (max-width: 480px) {
  .route-map .chips { column-gap: 24px; }
}
@media (max-width: 360px) {
  .route-map .chip { padding-inline: 7px; font-size: 12px; gap: 5px; }
  .route-map .chip svg { width: 14px; height: 14px; }
  .route-map .p-head { gap: 7px; padding-inline: 12px; }
  .route-map .p-title { font-size: 14px; }
  .route-map .badge { font-size: 10px; padding-inline: 5px; }
}
