/* CREATED 2026-10-18 — scoped lens controls; parent owns the map and page. */
.world-lenses {
  --wl-rule: rgba(21, 53, 68, .22);
  --wl-soft: rgba(243, 246, 247, .76);
  --wl-ease: cubic-bezier(.32, .72, 0, 1);
  color: var(--ink, #153544);
  background: var(--wl-soft);
  font-family: Arial, sans-serif;
  padding: clamp(16px, 2.4vw, 30px);
  border-block: 1px solid var(--wl-rule);
  margin-block: 18px 24px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.world-lenses *, .world-lenses *::before, .world-lenses *::after { box-sizing: border-box; }
.world-lenses h2, .world-lenses h3, .world-lenses h4, .world-lenses p { margin: 0; }
.world-lenses p { line-height: 1.5; }
.world-lenses h2 { font-family: Archivo, sans-serif; font-size: clamp(23px, 2.5vw, 32px); line-height: 1.12; letter-spacing: -.035em; font-weight: 650; }
.world-lenses h3 { font-family: inherit; font-size: 18px; line-height: 1.25; letter-spacing: -.025em; }
.world-lenses h4 { font-size: 14px; line-height: 1.4; margin-top: 18px; }
.world-lenses button, .world-lenses select, .world-lenses a { font-family: inherit; }
.world-lenses button { min-height: 44px; transition: transform 180ms var(--wl-ease), opacity 180ms var(--wl-ease); }
.world-lenses button:active { transform: translateY(1px); }
.world-lenses :is(button, a, select, summary):focus-visible { outline: 3px solid var(--focus, #9d331e); outline-offset: 3px; }
.world-lenses a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wl-evidence-section { margin-top: 0; }
.wl-evidence-section > .wl-accounts:first-child, .wl-evidence-section > .wl-flow-list:first-child { margin-top: 0; }
.wl-head { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(240px, .9fr); gap: 20px; align-items: end; }
.wl-head > p { font-size: 14px; color: var(--muted, #435e6a); max-width: 48ch; justify-self: end; }
.wl-eyebrow { display: block; font-size: 10px; line-height: 1.6; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 5px; }
.wl-selected { display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; margin-top: 12px !important; font-size: 12px; }
.wl-selected > span { color: var(--muted, #435e6a); }
.wl-selected small { flex-basis: 100%; font-size: 11px; line-height: 1.4; color: var(--muted, #435e6a); }
.world-lenses .wl-text-button { min-height: 44px; text-align: left; padding: 8px 2px; background: transparent; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; font-size: inherit; line-height: 1.4; }
.world-lenses .wl-text-button:hover { color: var(--focus, #9d331e); background: transparent; }
.wl-selected .wl-text-button { margin-block: -7px; }
.wl-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 220px); gap: 14px 20px; align-items: end; margin-top: 18px; }
.wl-filter-group { display: flex; flex-wrap: wrap; gap: 4px; align-items: end; }
.world-lenses .wl-filter { font-size: 12px; padding: 9px 12px; min-height: 44px; border: 1px solid transparent; white-space: normal; }
.world-lenses .wl-filter[aria-pressed="true"] { color: var(--paper, #f3f6f7); background: var(--deep, #183e52); box-shadow: inset 0 -3px rgba(255,255,255,.25); }
.world-lenses .wl-filter:not([aria-pressed="true"]):hover { border-color: var(--wl-rule); background: rgba(255,255,255,.45); }
.wl-time, .wl-question-select { display: grid; gap: 5px; font-size: 11px; line-height: 1.4; }
.world-lenses select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 30px 10px 10px; font-size: 14px; color: var(--ink, #153544); border: 1px solid var(--wl-rule); background: var(--paper, #f3f6f7); border-radius: 0; }
.wl-question { margin-top: 14px !important; font-size: 15px; font-weight: 550; max-width: 90ch; }
.wl-results { margin-top: 8px !important; font-size: 11px; color: var(--muted, #435e6a); }
.wl-flow-list { margin-top: 12px; border-top: 1px solid var(--wl-rule); }
.world-lenses details { min-width: 0; }
.world-lenses summary { cursor: pointer; min-height: 44px; padding: 12px 0; line-height: 1.4; }
.world-lenses summary::marker { color: var(--muted, #435e6a); font-size: 12px; }
.wl-flow { border-bottom: 1px solid var(--wl-rule); }
.wl-flow > summary { display: flex; gap: 14px; align-items: center; justify-content: space-between; list-style: none; }
.wl-flow > summary::-webkit-details-marker { display: none; }
.wl-flow-summary { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(200px, 1.2fr); gap: 5px 20px; flex: 1; }
.wl-amount { font-size: 19px; letter-spacing: -.035em; font-variant-numeric: tabular-nums; line-height: 1.25; }
.wl-state { display: block; font-size: 10px; letter-spacing: .035em; line-height: 1.5; text-transform: uppercase; color: var(--muted, #435e6a); }
.wl-flow-route { font-size: 12px; line-height: 1.45; }
.wl-small { display: block; font-size: 11px; line-height: 1.5; color: var(--muted, #435e6a); }
.wl-open-label { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; flex-shrink: 0; }
.wl-open-label::after { content: "+"; font-size: 20px; font-weight: 400; }
.wl-flow[open] > summary .wl-open-label::after { content: "−"; }
.wl-detail-body { padding: 4px 0 20px; font-size: 13px; line-height: 1.55; max-width: 100%; }
.wl-detail-body > p + p, .wl-detail-body > h4 + p { margin-top: 9px; }
.wl-party-pair { display: grid; grid-template-columns: 1fr 20px 1fr; gap: 12px; align-items: start; margin: 4px 0 16px; }
.wl-party b { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; color: var(--muted, #435e6a); }
.wl-route-divider { align-self: center; text-align: center; opacity: .6; }
.wl-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 6px; padding: 0; margin: 15px 0; list-style: none; }
.wl-stages li { border-left: 2px solid var(--wl-rule); padding: 5px 10px; }
.wl-stages .wl-stage-known { border-left-color: var(--ink, #153544); }
.wl-stages .wl-stage-gap { border-left-style: dashed; }
.wl-stages span, .wl-stages small { display: block; font-size: 10px; line-height: 1.5; color: var(--muted, #435e6a); }
.wl-stages strong { display: block; font-weight: 500; font-size: 12px; line-height: 1.5; }
.wl-facts { margin: 14px 0; }
.wl-facts > div { display: grid; grid-template-columns: minmax(125px, .3fr) minmax(0, 1fr); gap: 15px; padding: 9px 0; border-bottom: 1px solid var(--wl-rule); }
.wl-facts dt { font-size: 11px; font-weight: 650; }
.wl-facts dd { margin: 0; min-width: 0; font-size: 12px; line-height: 1.6; }
.wl-evidence, .wl-identity-list, .wl-relationship-list { padding: 0; margin: 8px 0 0; list-style: none; }
.wl-evidence > li { padding: 10px 0; }
.wl-evidence > li + li { border-top: 1px solid var(--wl-rule); }
.wl-source-boundary { font-size: 11px; color: var(--muted, #435e6a); margin-top: 7px !important; }
.wl-source-link { display: inline-block; padding-block: 10px; }
.wl-subdetails { margin-top: 10px; }
.wl-subdetails ul { padding-left: 20px; }
.wl-subdetails li + li { margin-top: 5px; }
.wl-boundary { border-left: 2px solid var(--focus, #9d331e); padding: 9px 13px; margin-top: 12px !important; font-size: 12px; line-height: 1.55; }
.wl-gap-group, .wl-identity, .wl-question-detail { border-bottom: 1px solid var(--wl-rule); }
.wl-gap-group > summary, .wl-identity > summary, .wl-question-detail > summary { font-size: 12px; font-weight: 550; }
.wl-gap-group > summary > span { color: var(--muted, #435e6a); margin-left: 8px; font-weight: 400; font-size: 11px; }
.wl-gap { padding-left: 16px; border-top: 1px solid var(--wl-rule); }
.wl-gap > summary { font-size: 12px; }
.wl-gap > summary strong { font-weight: 550; }
.wl-identity > summary .wl-small { display: inline; margin-left: 8px; font-weight: 400; }
.wl-identity-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; padding-bottom: 16px; }
.wl-identity-list li { padding: 12px 0; border-top: 1px solid var(--wl-rule); font-size: 12px; line-height: 1.5; }
.wl-identity-list p { margin-top: 7px; }
.wl-empty { padding: 18px 0; max-width: 85ch; font-size: 13px; }
.wl-unavailable { display: block; font-size: 12px; color: var(--muted, #435e6a); padding: 10px 0; }
.wl-footnote { margin-top: 12px !important; color: var(--muted, #435e6a); font-size: 10px; max-width: 110ch; }
.wl-counter-controls { grid-template-columns: minmax(260px, 1fr) minmax(180px, .6fr); align-items: end; }
.wl-status-note { display: grid; gap: 4px; padding-bottom: 5px; font-size: 11px; }
.wl-status-note > span { color: var(--muted, #435e6a); }
.wl-status-note strong { font-weight: 500; }
.wl-common-ground { margin-top: 10px !important; max-width: 95ch; font-size: 12px; color: var(--muted, #435e6a); }
.wl-inquiry-layers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin: 14px 0; gap: 10px; }
.wl-inquiry-layers > li { border-left: 2px solid var(--wl-rule); padding-left: 10px; min-width: 0; font-size: 12px; }
.wl-inquiry-layers > li > span { display: block; font-size: 11px; line-height: 1.5; color: var(--muted, #435e6a); }
.wl-accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 18px; }
.wl-single-account { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.wl-account { border-top: 2px solid var(--ink, #153544); padding-top: 12px; min-width: 0; }
.wl-account-index { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted, #435e6a); margin-bottom: 8px; }
.wl-account-claim { margin-top: 10px !important; font-size: 13px; line-height: 1.55; }
.wl-account-labels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 7px; }
.wl-account-labels > div:first-child { grid-column: 1 / -1; }
.wl-account-labels dt { font-size: 9px; color: var(--muted, #435e6a); line-height: 1.4; text-transform: uppercase; letter-spacing: .035em; }
.wl-account-labels dd { margin: 4px 0 0; font-size: 10px; line-height: 1.45; }
.wl-account-labels > div:first-child dd { font-size: 11px; }
.wl-account-actions { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 11px; }
.wl-account-detail > summary { font-size: 11px; }
.wl-account-detail .wl-facts > div { grid-template-columns: minmax(100px, .38fr) minmax(0, 1fr); gap: 10px; }
.wl-question-detail { margin-top: 14px; }
.wl-timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 12px 0 20px; }
.wl-timeline li { padding-left: 12px; border-left: 1px solid var(--wl-rule); }
.wl-timeline span, .wl-timeline strong, .wl-timeline small { display: block; }
.wl-timeline span, .wl-timeline small { color: var(--muted, #435e6a); font-size: 10px; line-height: 1.5; }
.wl-timeline strong { font-size: 12px; font-weight: 550; margin: 5px 0; }
.wl-timeline .wl-text-button { font-size: 11px; }
.wl-relationship-list li { padding: 10px 0; border-top: 1px solid var(--wl-rule); font-size: 12px; }
.wl-relationship-list li > span { display: block; color: var(--muted, #435e6a); font-size: 11px; }
.wl-relationship-list p { font-size: 11px; }
.wl-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  .wl-controls { grid-template-columns: minmax(0, 1fr); }
  .wl-time { max-width: 280px; }
  .wl-filter-group { gap: 2px; }
  .world-lenses .wl-filter { padding-inline: 10px; }
  .wl-counter-controls { grid-template-columns: minmax(0, 1fr); }
  .wl-status-note { display: flex; flex-wrap: wrap; gap: 5px 10px; }
  .wl-flow-summary { grid-template-columns: minmax(0, 1fr); }
  .wl-accounts { gap: 0 20px; }
  .wl-inquiry-layers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .world-lenses { padding: 16px; margin-block: 12px 20px; }
  .wl-head, .wl-accounts, .wl-identity-list { grid-template-columns: minmax(0, 1fr); }
  .wl-head { gap: 8px; }
  .wl-head > p { justify-self: start; font-size: 12px; }
  .wl-filter-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .world-lenses .wl-filter { font-size: 11px; padding-inline: 7px; }
  .wl-controls { margin-top: 14px; }
  .wl-time { max-width: none; }
  .wl-flow > summary { gap: 8px; align-items: start; }
  .wl-open-label { font-size: 0; }
  .wl-open-label::after { font-size: 22px; }
  .wl-amount { font-size: 18px; }
  .wl-party-pair { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .wl-route-divider { display: none; }
  .wl-facts > div, .wl-account-detail .wl-facts > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .wl-gap { padding-left: 10px; }
  .wl-identity > summary .wl-small { display: block; margin: 5px 0 0; }
  .wl-accounts { gap: 24px; }
  .wl-account-labels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wl-account-labels > div:first-child { grid-column: 1 / -1; }
  .wl-inquiry-layers { gap: 12px; }
  .wl-timeline { grid-template-columns: minmax(0, 1fr); }
  .wl-selected small { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .world-lenses button { transition: none; }
  .world-lenses button:active { transform: none; }
}
