.evidence-map { margin: 0; padding: clamp(22px, 3vw, 36px); border: 1px solid rgba(170,128,59,.18); border-radius: 24px; background: linear-gradient(145deg,#fffcf7,#f8f3eb); box-shadow: inset 0 1px 0 rgba(255,255,255,.8); color: var(--text,#1c1a17); }
.evidence-map-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.evidence-map-header > div { min-width: 0; }
.evidence-map-kicker { margin: 0 0 8px; font-size: 12px; letter-spacing: .13em; font-weight: 600; color: #8b6632; }
.evidence-map-header h2 { margin: 0; font: 400 clamp(28px,2.8vw,34px)/1.15 "Instrument Serif",Georgia,serif; letter-spacing: -.025em; overflow-wrap: anywhere; }
.evidence-map-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.evidence-map-stats strong { font-size: 31px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1; color: #9c712f; }
.evidence-map-stats span { font-size: 14px; color: #75664f; }
.evidence-map-intro { margin: 16px 0 24px; max-width: 820px; font-size: 15px; line-height: 1.75; color: var(--muted,#6d655b); }
.evidence-map-board { position: relative; display: grid; grid-template-columns: minmax(0,1fr) clamp(30px,7vw,100px) minmax(0,1fr); align-items: stretch; }
.evidence-map-column { min-width: 0; }
.evidence-map-column-label { margin: 0 0 12px; color: #8a704c; font-size: 14px; font-weight: 500; letter-spacing: .01em; line-height: 1.5; }
.evidence-map-list { display: flex; flex-direction: column; gap: 12px; max-height: 440px; overflow-y: auto; overscroll-behavior: auto; scrollbar-width: thin; scrollbar-color: #d2c3a9 transparent; padding: 3px 5px 6px; margin: 0 -5px; }
.evidence-map button.evidence-map-card { position: relative; display: flex; flex-direction: column; gap: 8px; width: 100%; flex-shrink: 0; padding: 15px 16px; border: 1px solid rgba(154,127,86,.12); border-radius: 14px; text-align: left; font: inherit; color: var(--text,#1c1a17); background: rgba(255,253,249,.64); cursor: pointer; box-shadow: none; transition: border-color .28s cubic-bezier(.16,1,.3,1), background .28s cubic-bezier(.16,1,.3,1), box-shadow .28s cubic-bezier(.16,1,.3,1); }
.evidence-map button.evidence-map-card:hover { border-color: rgba(188,152,94,.6); background: #fffaf0; }
.evidence-map button.evidence-map-card.is-connected { border-color: rgba(185,139,67,.4); background: #fff9ed; }
.evidence-map button.evidence-map-card[aria-pressed="true"] { border-color: #ae7b2c; box-shadow: inset 3px 0 0 #ae7b2c,0 8px 22px -12px rgba(140,96,28,.22); background: #f9edd6; }
.evidence-map button.evidence-map-card.is-dimmed { background: rgba(246,242,235,.6); border-color: rgba(154,127,86,.08); color: #746b5d; box-shadow: none; }
.evidence-map button.evidence-map-card.is-limited { border-style: dashed; }
.evidence-map-card-label { font-size: 13px; font-weight: 600; color: #8e6b38; line-height: 1.5; }
.evidence-map-card-preview { font-size: 15px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.evidence-map-card-meta { font-size: 14px; line-height: 1.55; color: #796b57; }
.evidence-map-connectors { display: block; width: 100%; height: 100%; min-height: 250px; overflow: visible; pointer-events: none; }
.evidence-map-link { fill: none; stroke: #b5873e; stroke-width: 1.8; opacity: .8; stroke-linecap: round; }
.evidence-map-link.is-limited { stroke: #a29887; stroke-dasharray: 4 5; }
.evidence-map-link-signal { fill: none; stroke: #d6aa5d; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: .16 1.15; opacity: 0; pointer-events: none; }
.evidence-map-link-traveler { position: absolute; top: 0; left: 0; z-index: 3; width: 8px; height: 8px; border: 1.5px solid #ad7929; border-radius: 50%; background: #fffaf0; box-shadow: 0 0 0 4px rgba(213,170,95,.15),0 0 18px 2px rgba(188,133,43,.3); opacity: 0; pointer-events: none; }
.evidence-map-link-traveler::after { content: ""; position: absolute; inset: -6px; border: 1px solid rgba(183,126,32,.2); border-radius: inherit; }
.evidence-map-arrival-rim { position: absolute; inset: -1px; border-radius: inherit; border: 1.5px solid #bd8a3d; box-shadow: 0 0 0 3px rgba(196,138,46,.08),0 7px 15px -10px rgba(175,122,33,.3); pointer-events: none; opacity: 0; }
.evidence-map-card.is-limited .evidence-map-arrival-rim { display: none; }
.evidence-map-scope { font-size: 14px; color: #82735e; line-height: 1.7; margin: 18px 0 0; }
.evidence-map-detail { border-top: 1px solid rgba(150,116,61,.19); padding-top: 23px; margin-top: 25px; overflow-wrap: anywhere; }
.evidence-map-selected-text { font-size: 19px; font-weight: 500; line-height: 1.8; margin: 0 0 10px; white-space: pre-wrap; }
.evidence-map-context { font-size: 15px; line-height: 1.75; margin: 10px 0; white-space: pre-wrap; }
.evidence-map-meta { font-size: 14px; color: #827157; line-height: 1.75; margin: 10px 0; }
.evidence-map-detail-links { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(250px,100%),1fr)); gap: 12px; margin-top: 16px; }
.evidence-map-detail-reference { padding: 16px 17px; border: 0; border-left: 2px solid rgba(196,138,46,.2); border-radius: 0 10px 10px 0; background: rgba(255,252,246,.48); min-width: 0; }
.evidence-map-detail-reference > strong { display: block; font-size: 15px; line-height: 1.65; font-weight: 500; }
.evidence-map-importance { display: inline-flex; width: fit-content; padding: 4px 8px; margin-top: 6px; border-radius: 6px; font-size: 13px; line-height: 1.5; color: #936723; background: rgba(196,138,46,.11); border: 1px solid rgba(196,138,46,.15); }
.evidence-map button.evidence-map-source-button, .evidence-map button.evidence-map-dependent { font: inherit; font-size: 14px; font-weight: 500; line-height: 1.5; color: #916627; border: 1px solid rgba(172,126,54,.3); padding: 7px 10px; border-radius: 7px; background: #fffbf2; cursor: pointer; box-shadow: none; }
.evidence-map button.evidence-map-source-button:hover, .evidence-map button.evidence-map-dependent:hover { background: #f5e8d0; }
.evidence-map button:focus-visible, .evidence-map summary:focus-visible { outline: 3px solid #b47f2c; outline-offset: 3px; }
.evidence-map-warning, .evidence-map-empty { margin: 15px 0; padding: 12px 14px; border-left: 2px solid #b9a386; background: rgba(213,198,176,.16); font-size: 14px; line-height: 1.75; color: #7d6f59; }
.evidence-map-excerpt { margin: 17px 0; }
.evidence-map-excerpt summary { font-size: 14px; color: #916627; cursor: pointer; line-height: 1.7; }
body.is-page-scrolling .evidence-map * { transition: none !important; animation-play-state: paused !important; }
@media(max-width: 620px) {
  .evidence-map { padding: 23px 18px; border-radius: 20px; }
  .evidence-map-board { grid-template-columns: minmax(0,1fr) 26px minmax(0,1fr); }
  .evidence-map-column-label { font-size: 14px; min-height: 42px; }
  .evidence-map button.evidence-map-card { padding: 12px 10px; gap: 7px; }
  .evidence-map-card-label { font-size: 13px; }
  .evidence-map-card-preview { font-size: 15px; -webkit-line-clamp: 3; }
  .evidence-map-selected-text { font-size: 17px; }
  .evidence-map-list { max-height: 400px; }
}
@media(max-width: 380px) {
  .evidence-map { padding: 20px 13px; }
  .evidence-map-board { grid-template-columns: minmax(0,1fr) 18px minmax(0,1fr); }
  .evidence-map-stats strong { font-size: 26px; }
}
@media(prefers-reduced-motion: reduce) {
  .evidence-map * { transition: none !important; animation: none !important; }
  .evidence-map-link-signal, .evidence-map-link-traveler, .evidence-map-arrival-rim { display: none; }
}

.studio-ui .evidence-map-link { stroke-width: 1.4; stroke: #b99053; }
.studio-ui .evidence-map-link.is-limited { stroke: #a29887; }
.studio-ui .evidence-map button.evidence-map-card.is-connected:not(.is-limited) { border-color: rgba(179,130,57,.5); background: #fffcf4; }
.studio-ui .evidence-map button.evidence-map-card[aria-pressed="true"] { background: #f9eedb; border-color: #ae7b2c; box-shadow: inset 3px 0 0 #ae7b2c,0 8px 18px -13px rgba(140,96,28,.24); }
