/* One interface family. Monospace is reserved for coordinates and identifiers. */
:root {
  --sans: "Segoe UI", Arial, sans-serif;
  --mono: var(--sans);
  --data-font: Consolas, "Liberation Mono", monospace;
}

/* v3.11: one quiet field, with light originating at the pause emblem. */
.brand-origin-light {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse 440px 350px at 76px 58px, rgba(216,134,75,.17), rgba(216,134,75,.06) 44%, transparent 78%);
}
.app-shell :is(h1,h2,h3,h4,h5,h6) {
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  font-style: normal;
  letter-spacing: -.025em !important;
}
.app-shell :is(.meta-quadrant-heading strong,.orientation-option strong,.signal-fold strong,.tutorial-sequence b) { font-family: var(--sans); font-weight: 600; letter-spacing: -.015em; }
.app-shell :is(.coordinate-readout,#utc-clock,#card-id,.card-footer,.meta-lens-foot) { font-family: var(--data-font); }
.app-shell .meet-demo text { font-family: var(--sans); }
.app-shell .legend-panel h2 { font-size: 22px; line-height: 1.25; }
.app-shell .meta-lens-head h2 { line-height: 1.2; }
.app-shell :is(.lifestyle-head,.h11-components-head) h2 { font-size: clamp(30px,3.2vw,44px); line-height: 1.15; text-transform: none; }
.app-shell :is(.signal-fold-panel > h3,.orientation-space > h3,.lifestyle-action-panel h3) { line-height: 1.25; }

/* The left cap follows the pause emblem; the wordmark shares its optical center. */
.app-shell .topbar { height: 106px; padding: 12px 20px; grid-template-columns: minmax(0,1fr) minmax(0,1.6fr) minmax(0,1fr); gap: 28px; }
.app-shell .brand {
  min-height: 78px; max-width: 100%; padding: 12px 22px 12px 12px; gap: 16px;
  border: 1px solid rgba(255,255,255,.85); border-radius: 44px 22px 22px 44px;
  background: linear-gradient(130deg,rgba(255,255,255,.56),rgba(232,234,233,.35));
  box-shadow: inset 0 1px 0 #fff, 0 4px 16px rgba(40,53,46,.055);
  backdrop-filter: blur(14px);
}
.app-shell .brand-emblem { width: 50px; height: 50px; flex-basis: 50px; }
.app-shell .brand-copy { align-items: flex-end; gap: 2px; }
.app-shell .brand-sketch { width: 222px; }
.app-shell .brand-world { padding-right: 5px; font: 500 14px/1.2 var(--sans); letter-spacing: .045em; }
.app-shell .map-title { justify-self: center; max-width: 660px; gap: 8px; padding: 6px 0; }
.app-shell .map-title > span { display: block; font: 600 clamp(20px,1.55vw,28px)/1.3 var(--sans); letter-spacing: -.03em; }
.app-shell .map-title em { font-style: normal; font-weight: 400; color: #52625a; }
.app-shell .map-title > span { color: #303b35; border: 0; background: none; box-shadow: none; text-shadow: none; border-radius: 0; }
.app-shell .map-title > strong { font: 400 14px/1.5 var(--sans); color: #606d65; }
.app-shell .view-controls { top: 132px; }
.app-shell .overall-pixel { top: 234px; }
.app-shell #concept-panel { top: 132px; }
.app-shell .coordinate-readout { top: 132px; }

/* Two compact pillars and a central stack of bridges, with room to breathe. */
.app-shell #h11-components { padding: clamp(18px,2.3vw,32px); }
#h11-components .h11-pillars {
  width: min(100%,1180px); justify-self: center;
  grid-template-columns: minmax(0,1fr) 252px minmax(0,1fr);
  gap: 28px; align-self: center; min-height: auto;
}
#h11-components .h11-pillar { padding: 24px; gap: 20px; border-radius: 24px; }
#h11-components .h11-pillar header { min-height: 90px; padding: 0; }
#h11-components .h11-pillar h3 { font-size: 27px; line-height: 1.2; }
#h11-components .h11-pillar header > span { position: static; display: block; margin-top: 12px; font: 500 16px/1.2 var(--sans); }
#h11-components .h11-pillar ol { grid-template-rows: repeat(4,minmax(68px,1fr)); }
#h11-components .h11-pillar li { padding: 12px; line-height: 1.45; }
#h11-components .h11-pillar-bridge { align-self: center; grid-template-columns: 1fr; gap: 16px; width: 100%; }
#h11-components .h11-alignment-mark { width: 120px; height: 120px; }
#h11-components .h11-mark-ring { fill: #e7ebe7; stroke: #89968c; stroke-width: 1; }
#h11-components .h11-mark-h { fill: #fff; }
#h11-components .h11-mark-ones { fill: #263d30; }
#h11-components .h11-pillar-bridge p { max-width: none; font: 500 16px/1.45 var(--sans); text-align: center; }
#h11-components .h11-build-bridges { display: grid; gap: 12px; width: 100%; margin-top: 8px; }
#h11-components .h11-build-bridge {
  --bridge-rgb: 67,129,182; --bridge-ink: #315e80;
  position: relative; min-height: 48px; padding: 12px 18px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(var(--bridge-rgb),.2); border-radius: 15px;
  background: rgba(var(--bridge-rgb),.085); color: var(--bridge-ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 4px 12px rgba(var(--bridge-rgb),.06);
  text-decoration: none; transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
#h11-components .h11-build-bridge--green { --bridge-rgb: 63,143,86; --bridge-ink: #356e45; }
#h11-components .h11-build-bridge--red { --bridge-rgb: 198,78,63; --bridge-ink: #964b3f; }
#h11-components .h11-build-bridge span { font: 600 16px/1.35 var(--sans); letter-spacing: .015em; }
#h11-components .h11-build-bridge svg { position: absolute; right: 15px; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }
#h11-components .h11-build-bridge::before,#h11-components .h11-build-bridge::after { content: ""; position: absolute; width: 28px; height: 1px; background: rgba(var(--bridge-rgb),.22); top: 50%; }
#h11-components .h11-build-bridge::before { right: 100%; }
#h11-components .h11-build-bridge::after { left: 100%; }
#h11-components .h11-build-bridge:is(:hover,:focus-visible) { background: rgba(var(--bridge-rgb),.25); border-color: rgba(var(--bridge-rgb),.65); box-shadow: inset 0 1px 0 #fff, 0 5px 18px rgba(var(--bridge-rgb),.15); }
#h11-components .h11-build-bridge:is(:hover,:focus-visible)::before,#h11-components .h11-build-bridge:is(:hover,:focus-visible)::after { background: rgba(var(--bridge-rgb),.6); }
#h11-components > footer { width: min(100%,1180px); justify-self: center; }

@media (max-width: 1350px) {
  .app-shell .topbar { grid-template-columns: minmax(290px,1fr) minmax(0,1.5fr) minmax(290px,1fr); gap: 20px; }
  .app-shell .brand { gap: 12px; padding-right: 16px; }
  .app-shell .brand-sketch { width: 192px; }
  .app-shell .brand-emblem { width: 44px; height: 44px; flex-basis: 44px; }
  .app-shell .network-readout > :is(time,.live-dot,span) { display: none; }
  #h11-components .h11-pillars { grid-template-columns: minmax(0,1fr) 208px minmax(0,1fr); gap: 20px; }
  #h11-components .h11-pillar { padding: 18px; }
  #h11-components .h11-pillar h3 { font-size: 24px; }
  #h11-components .h11-pillar ol { grid-template-rows: repeat(4,minmax(76px,1fr)); }
  #h11-components .h11-build-bridge::before,#h11-components .h11-build-bridge::after { width: 20px; }
}
@media (max-width: 1000px) {
  .app-shell .topbar { grid-template-columns: 290px minmax(0,1fr) 150px; gap: 16px; }
  .app-shell .map-title > strong { display: none; }
  #h11-components .h11-pillars { grid-template-columns: minmax(0,1fr) 174px minmax(0,1fr); gap: 14px; }
  #h11-components .h11-pillar { padding: 14px; }
  #h11-components .h11-pillar h3 { font-size: 22px; }
  #h11-components .h11-pillar li { grid-template-columns: 18px 12px minmax(0,1fr); padding: 10px; gap: 7px; }
  #h11-components .h11-build-bridge::before,#h11-components .h11-build-bridge::after { width: 14px; }
}
@media (max-width: 1100px) { .app-shell .coincidence-mode-toggle { top: 340px; } }
@media (min-width: 801px) and (max-height: 850px) {
  .app-shell #h11-components { padding: 20px; gap: 16px; grid-template-rows: auto minmax(0,1fr); }
  #h11-components .h11-pillar { padding: 18px; gap: 14px; }
  #h11-components .h11-pillar header { min-height: 64px; }
  #h11-components .h11-pillar ol { grid-template-rows: repeat(4,minmax(64px,1fr)); }
  #h11-components > footer { display: none; }
}
@media (max-width: 800px) {
  .app-shell #h11-components { grid-template-rows: auto auto; align-content: start; }
  #h11-components .h11-pillars { grid-template-columns: minmax(0,1fr); grid-auto-rows: max-content; gap: 28px; max-width: 520px; }
  #h11-components .h11-pillar { padding: 20px; }
  #h11-components .h11-pillar header { min-height: 0; }
  #h11-components .h11-pillar-bridge { max-width: 280px; justify-self: center; }
  #h11-components .h11-build-bridge::before,#h11-components .h11-build-bridge::after { display: none; }
  #h11-components > footer { display: none; }
}
@media (max-width: 760px) {
  .app-shell .topbar { height: 100px; grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 10px; }
  .app-shell .brand { min-height: 72px; gap: 10px; padding: 12px 16px 12px 10px; border-radius: 38px 18px 18px 38px; }
  .app-shell .brand-emblem { width: 36px; height: 36px; flex-basis: 36px; }
  .app-shell .brand-sketch { width: 156px; }
  .app-shell .brand-world { font-size: 12px; }
  .app-shell .map-title { display: none; }
  .app-shell .network-readout .concept-button { display: none; }
  .app-shell .view-controls,.app-shell #concept-panel,.app-shell .coordinate-readout { top: 119px; }
  .app-shell .overall-pixel { top: 209px; }
  .app-shell .coincidence-mode-toggle { top: 311px; }
}
@media (max-width: 400px) {
  .app-shell .brand { gap: 8px; padding-right: 12px; }
  .app-shell .brand-sketch { width: 127px; }
  .app-shell .brand-emblem { width: 32px; height: 32px; flex-basis: 32px; }
  .app-shell #h11-components { padding: 14px; }
}

/* Compact horizontal identity and its help controls share the left edge. */
.app-shell .topbar { height: auto; min-height: 100px; padding: 14px 20px; grid-template-columns: max-content minmax(0,1fr) max-content; gap: 24px; background: linear-gradient(145deg,rgba(226,229,228,.94),rgba(201,206,204,.88)); }
.app-shell .map-title { padding: 0 0 6px; }
.app-shell .header-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.app-shell .brand { min-height: 52px; padding: 9px 14px 9px 10px; gap: 10px; border-radius: 28px; }
.app-shell .brand-emblem { width: 36px; height: 36px; flex: 0 0 36px; }
.app-shell .brand-copy { display: flex; flex-direction: row; align-items: flex-end; gap: 3px; }
.app-shell .brand-sketch { width: auto; height: 36px; }
.app-shell .brand-world { font-size: 13px; line-height: 1; padding: 0 0 4px; letter-spacing: 0; }
.app-shell .header-help { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.app-shell .header-help .concept-button { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; }
.app-shell .header-help .help-label { display: inline; }
.app-shell .header-help .help-short { display: none; }
.app-shell #concept-panel { left: 20px; right: auto; top: 128px; transform: none; z-index: 1100; width: min(480px,calc(100vw - 40px)); max-height: calc(100dvh - 148px); overflow-y: auto; }
.app-shell #concept-panel h2 { padding-right: 22px; }
@media (max-width: 1350px) {
  .app-shell .topbar { gap: 18px; }
  .app-shell .network-readout { display: none; }
  .app-shell .topbar { grid-template-columns: max-content minmax(0,1fr); }
  .app-shell .header-left { gap: 10px; }
}
@media (max-width: 1000px) {
  .app-shell .header-left { gap: 8px; }
  .app-shell .brand-sketch { height: 32px; }
  .app-shell .brand-emblem { width: 32px; height: 32px; flex-basis: 32px; }
  .app-shell .brand { min-height: 48px; }
  .app-shell .header-help .help-button { padding-inline: 12px; }
}
@media (max-width: 760px) {
  .app-shell .topbar { height: 126px; padding: 10px; grid-template-columns: minmax(0,1fr); }
  .app-shell .header-left { flex-wrap: wrap; column-gap: 12px; row-gap: 6px; }
  .app-shell .brand-sketch { height: 32px; }
  .app-shell .brand-world { font-size: 12px; }
  .app-shell .header-help { width: 100%; }
  .app-shell #concept-panel { left: 10px; top: 154px; width: calc(100vw - 20px); max-height: calc(100dvh - 166px); }
  .app-shell .view-controls,.app-shell .coordinate-readout { top: 145px; }
  .app-shell .overall-pixel { top: 235px; }
  .app-shell .coincidence-mode-toggle { top: 337px; }
}

/* v3.7: one scale toolbar, and a green connection layer anchored to its source. */
.app-shell .view-controls { width: min(860px,calc(100vw - 40px)); }
.app-shell .view-controls .zoom-controls {
  position: static; inset: auto; transform: none; flex: 0 0 auto;
  display: flex; gap: 6px; margin-left: 4px; padding: 0 0 0 12px;
  border: 0; border-left: 1px solid #bfc8c3; border-radius: 0;
  background: none; box-shadow: none;
}
.app-shell .view-controls .zoom-controls button {
  width: 44px; height: 44px; min-height: 44px; padding: 0;
  font: 400 25px/1 var(--sans); border-radius: 14px;
}
.app-shell #coincidence-mode-toggle {
  z-index: 50; width: 280px; max-width: calc(100vw - 20px); min-width: 0; gap: 12px; padding: 12px 16px;
  visibility: visible; pointer-events: auto; overflow: hidden;
  border: 1px solid rgba(63,123,84,.35); border-radius: 20px;
  background: linear-gradient(135deg,#e1ece3,#cadfcf); color: #30543b;
  box-shadow: inset 0 1px 0 #ffffffc7, 0 5px 16px #34543f14;
  transition: background .25s, box-shadow .25s, border-color .25s;
}
.app-shell #coincidence-mode-toggle:is(:hover,:focus-visible) {
  transform: none; background: linear-gradient(135deg,#e6f3e8,#b9d9c1);
  border-color: #6b9477; box-shadow: inset 0 1px 0 #fff, 0 6px 20px #34543f24;
}
.app-shell #coincidence-mode-toggle[aria-expanded="true"] { background: #c4ddcc; box-shadow: inset 2px 2px 6px #4766501a, inset -2px -2px 6px #ffffffa6; }
.app-shell[data-mode="coincidence"] #coincidence-mode-toggle { visibility: visible; pointer-events: auto; }
.app-shell #coincidence-mode-toggle > span:nth-child(2) { display: flex; flex-direction: column; align-items: flex-start; }
.app-shell #coincidence-mode-toggle b { font: 600 13px/1.3 var(--sans); letter-spacing: .035em; }
.app-shell #coincidence-mode-toggle small { margin-top: 4px; font: 500 10px/1.3 var(--sans); letter-spacing: .025em; }
.app-shell #coincidence-mode-toggle .mode-green-dot { width: 14px; height: 14px; flex: 0 0 14px; border-radius: 50%; background: #5b986c; border: 1px solid #447855; box-shadow: inset 0 1px 2px #ffffffa6, 0 0 0 5px #63967414; }
.app-shell #coincidence-mode-toggle .mode-chevron { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .35s; }
.app-shell #coincidence-mode-toggle[aria-expanded="true"] .mode-chevron { transform: rotate(180deg); }
.app-shell :is(#coincidence-controls,#coincidence-unlock) {
  position: absolute; z-index: 940; top: var(--coincidence-top,218px);
  right: var(--coincidence-right,28px); left: auto; bottom: auto;
  width: min(440px,calc(100vw - 20px)); max-height: calc(100dvh - var(--coincidence-top,218px) - 16px);
  padding: 20px; overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid #9db8a680; border-radius: 24px;
  background: linear-gradient(145deg,#eff5efed,#dce9dfeF);
  color: #30483a; box-shadow: inset 0 1px 0 #fff, 0 16px 44px #233d2c24;
  backdrop-filter: blur(24px); transform-origin: calc(100% - 30px) 0;
}
.app-shell #coincidence-controls { transform: translateY(-10px) scale(.965); transition: opacity .28s ease, transform .48s cubic-bezier(.2,.8,.2,1); }
.app-shell #coincidence-controls.is-visible { transform: translateY(0) scale(1); }
.app-shell #coincidence-unlock { transform: none; animation: connectionPanelOpen .45s cubic-bezier(.2,.8,.2,1) both; }
.app-shell #coincidence-unlock h2 { font-size: 26px; line-height: 1.2; }
.app-shell #coincidence-unlock ul { margin-block: 14px; gap: 6px; }
@keyframes connectionPanelOpen { from { opacity: 0; transform: translateY(-10px) scale(.965); } to { opacity: 1; transform: none; } }
.app-shell #coincidence-controls .coincidence-controls-head { align-items: flex-start; }
.app-shell #coincidence-controls .coincidence-controls-head strong { font: 600 17px/1.35 var(--sans); }
.app-shell #coincidence-controls .coincidence-controls-head span { display: block; margin-bottom: 5px; font-size: 10px; }
.app-shell #coincidence-controls .coincidence-controls-head button { min-height: 44px; max-width: 100px; padding: 8px 10px; border-radius: 14px; font: 600 10px/1.35 var(--sans); }
.app-shell #coincidence-controls .coincidence-filters { margin: 18px 0; gap: 8px; }
.app-shell #coincidence-controls .coincidence-filters button { min-height: 84px; background: #e4eee6; border-color: #a6b9ad; color: #30543b; }
.app-shell #coincidence-controls .coincidence-filters button:is(:hover,:focus-visible,.is-active) { background: #c7dfce; border-color: #679377; }
.app-shell #coincidence-controls .coincidence-filters button small { font: 500 10px/1.3 var(--sans); letter-spacing: .01em; }
.app-shell #coincidence-controls .coincidence-filters button[data-coincidence-filter="ALL"] {
  width: 64px; min-width: 64px; max-width: 64px; height: 64px; min-height: 64px; aspect-ratio: 1;
  padding: 8px; column-gap: 4px; border-radius: 50%; background: #d4e6d8;
  box-shadow: 0 0 0 5px #e4eee6, inset 0 1px 0 #fff, 0 3px 10px #28483326;
}
.app-shell #coincidence-controls .coincidence-filters button[data-coincidence-filter="ALL"].is-active { background: #aad0b5; border-color: #568369; }
.app-shell #coincidence-controls .coincidence-controls-foot { gap: 14px; }
.app-shell #coincidence-controls .coincidence-controls-foot span { font: 500 10px/1.5 var(--sans); letter-spacing: .015em; }
.app-shell #coincidence-controls .coincidence-controls-foot button { min-height: 44px; padding: 10px 12px; font: 600 11px/1.4 var(--sans); }
.coincidence-sweep { position: absolute; inset: 0; z-index: 18; pointer-events: none; opacity: 0; background: radial-gradient(circle at var(--sweep-x,90%) var(--sweep-y,20%),#91c9a354,#b7d9bf26 55%,transparent); }
.app-shell.is-mode-transitioning[data-mode="coincidence"] .coincidence-sweep { animation: connectionSweep .75s ease-out both; }
@keyframes connectionSweep { 0% { opacity: 0; clip-path: circle(0 at var(--sweep-x,90%) var(--sweep-y,20%)); } 25% { opacity: .9; } 100% { opacity: 0; clip-path: circle(150vmax at var(--sweep-x,90%) var(--sweep-y,20%)); } }
.app-shell .legend-panel { width: max-content; max-width: calc(100vw - 32px); padding: 18px; }
.app-shell .legend-copy > div { grid-template-columns: 14px 44px max-content; gap: 10px; }
.app-shell .legend-copy b { font-size: 11px; letter-spacing: .035em; }
.app-shell .legend-copy small { font-size: 11px; line-height: 1.4; letter-spacing: 0; }
@media (max-width: 1600px) and (min-width: 761px) {
  .app-shell #coincidence-mode-toggle { top: 232px; }
  .app-shell .coordinate-readout { display: none; }
}
@media (max-width: 900px) {
  .app-shell .view-controls { gap: 6px; padding: 8px; }
  .app-shell .view-controls .control-label { display: none; }
  .app-shell .view-controls .lens-copy small { display: none; }
}
@media (max-width: 760px) {
  .app-shell .view-controls { left: 50%; transform: translateX(-50%); width: calc(100vw - 20px); gap: 4px; padding: 7px; }
  .app-shell .view-controls .zoom-controls { flex-direction: column; gap: 3px; padding-left: 7px; margin-left: 2px; }
  .app-shell .view-controls .zoom-controls button { width: 44px; height: 44px; min-height: 44px; border-radius: 12px; }
  .app-shell .view-controls .view-button { min-height: 88px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
  .app-shell .view-controls .lens-copy b { display: block; font: 600 10px/1.3 var(--sans); letter-spacing: .01em; }
  .app-shell .overall-pixel { top: 260px; }
  .app-shell #coincidence-mode-toggle { top: 358px; right: 10px; padding: 10px 14px; }
  .app-shell #coincidence-controls { padding: 16px; }
  .app-shell #coincidence-controls .coincidence-filters button small { font-size: 9px; }
  .app-shell .legend-panel { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .app-shell #coincidence-controls,.app-shell #coincidence-unlock,.app-shell .mode-chevron { animation: none; transition: none; }
  .app-shell .coincidence-sweep { display: none; }
}

/* v3.8: centered identity, small fine-zoom controls, and an aggregate at rest. */
@media (min-width: 761px) {
  .app-shell .topbar { display: flex; align-items: center; }
  .app-shell .map-title {
    display: flex; flex-direction: column;
    position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
    width: min(560px,calc(100% - 760px)); max-width: none;
    padding: 0; margin: 0; text-align: center; align-items: center;
  }
  .app-shell .map-title > span { width: 100%; }
}
@media (min-width: 761px) and (max-width: 1600px) {
  .app-shell .topbar { min-height: 134px; }
  .app-shell .header-left { width: 360px; flex-wrap: wrap; gap: 6px; }
  .app-shell .header-help { width: 100%; }
  .app-shell .map-title { width: calc(100% - 740px); }
  .app-shell .view-controls { top: 164px; }
  .app-shell #coincidence-mode-toggle { top: 264px; }
  .app-shell #concept-panel { top: 158px; max-height: calc(100dvh - 174px); }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .app-shell .topbar { min-height: 166px; align-items: flex-start; }
  .app-shell .header-left { width: 100%; flex-wrap: nowrap; }
  .app-shell .header-help { width: auto; }
  .app-shell .map-title { top: auto; bottom: 16px; transform: translateX(-50%); width: calc(100% - 32px); }
  .app-shell .view-controls { top: 196px; }
  .app-shell #coincidence-mode-toggle { top: 296px; }
  .app-shell #concept-panel { top: 192px; max-height: calc(100dvh - 208px); }
}
.app-shell .view-controls .zoom-controls { flex-direction: column; gap: 4px; margin-inline: 0; padding: 0 6px; border: 0; }
.app-shell .view-controls .zoom-controls button { width: 28px; height: 28px; min-height: 28px; border-radius: 9px; font-size: 18px; }
.app-shell #live-presence {
  position: fixed; z-index: 30; left: 28px; right: auto; top: auto; bottom: 26px;
  display: flex; align-items: center; gap: 9px; padding: 8px 12px;
  border: 1px solid #aeb9b14d; border-radius: 14px; background: #e8eae9cc;
  color: #56625b; box-shadow: inset 0 1px 0 #ffffffa6; backdrop-filter: blur(12px);
  font: 500 11px/1.4 var(--sans); letter-spacing: .035em;
}
.app-shell #live-presence > :is(span,time) { display: inline-block; }
.app-shell #live-presence #utc-clock { font-size: 10px; padding-left: 6px; border-left: 1px solid #aeb9b180; }
.app-shell #overall-pixel { top: auto; bottom: 26px; gap: 12px; }
.app-shell #overall-pixel .overall-pixel-core { order: 0; }
.app-shell #overall-pixel .overall-pixel-copy { order: 1; }
.app-shell .coincidence-pixel,.app-shell .coincidence-code-pixels {
  width: 26px; height: 26px; padding: 3px; display: grid;
  grid-template-columns: repeat(2,8px); grid-template-rows: repeat(2,8px); gap: 2px;
  border: 1px solid #7ca58a; border-radius: 5px; background: #d2e2d7;
}
.app-shell .coincidence-pixel span,.app-shell .coincidence-code-pixels span {
  width: 8px; height: 8px; min-width: 0; border: 1px solid #718078;
  border-radius: 0; background: #14251b;
}
.app-shell .coincidence-pixel span.is-on,.app-shell .coincidence-code-pixels span.is-on { background: #fffef8; }
.app-shell .coincidence-pixel::after { display: none; }
.app-shell #coincidence-card-code { box-sizing: border-box; flex: 0 0 26px; }
.app-shell .quality-pixel { width: 12px; height: 12px; display: inline-block; justify-self: center; border: 1px solid #6b8474; border-radius: 0; background: #14251b; }
.app-shell .is-on > .quality-pixel { background: #fffef8; }
@media (max-width: 760px) {
  .app-shell .view-controls .view-button { min-height: 62px; gap: 5px; }
  .app-shell .view-controls .zoom-controls { flex-direction: column; gap: 4px; padding-inline: 2px; }
  .app-shell .view-controls .zoom-controls button { width: 28px; height: 28px; min-height: 28px; }
  .app-shell #coincidence-mode-toggle { top: 237px; }
  .app-shell #overall-pixel { bottom: 54px; gap: 10px; }
  .app-shell #live-presence { left: 12px; bottom: 12px; padding: 5px 9px; font-size: 10px; }
  .app-shell #live-presence #utc-clock { display: none; }
}

/* v3.9: attention follows one lens; the shared center remains untouched. */
.app-shell { --map-frame-radius: 24px; }
/* World is an outline drawing; detailed tiles return at Region and Local. */
.world-contour-pane { opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.world-country-contour { vector-effect: non-scaling-stroke; stroke: #151816; stroke-width: .6px; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.app-shell.has-world-contours[data-view="world"]:not([data-mode="coincidence"]) .world-contour-pane { opacity: 1; }
.app-shell.has-world-contours[data-view="world"]:not([data-mode="coincidence"]) :is(.map,.leaflet-container) { background: #f4f4f0; }
.app-shell.has-world-contours[data-view="world"]:not([data-mode="coincidence"]) :is(.leaflet-tile-pane,.water-light,.map-grid) { opacity: 0; }
.app-shell.has-world-contours[data-view="world"]:not([data-mode="coincidence"]) .map::before,
.app-shell.has-world-contours[data-view="world"]:not([data-mode="coincidence"]) .map::after { opacity: 0; }
.app-shell.has-world-contours[data-view="world"]:not([data-mode="coincidence"]) .mapboxgl-canvas { opacity: 1; filter: none; }
.app-shell .coincidence-country-outline { stroke-width: .36px !important; filter: none; }
@media (max-width: 640px) { .app-shell .coincidence-country-outline { stroke-width: .31px !important; } }
@media (prefers-reduced-motion: reduce) { .world-contour-pane { transition: none; } }
.app-shell[data-view="local"]:not([data-mode="coincidence"]) :is(.leaflet-tile-pane,.mapboxgl-canvas) {
  filter: hue-rotate(8deg) saturate(.84) contrast(.99) brightness(1.025);
  opacity: .9;
  visibility: visible;
}
.app-shell[data-view="region"]:not([data-mode="coincidence"]) :is(.leaflet-tile-pane,.mapboxgl-canvas) {
  filter: grayscale(.18) saturate(.84) contrast(1) brightness(1.01);
  opacity: .9;
  visibility: visible;
}
.app-shell.is-vector-map-fallback[data-view="local"] .map,
.app-shell.is-vector-map-fallback[data-view="region"] .map {
  background:
    radial-gradient(circle at 48% 57%, rgba(248,139,51,.1) 0 2px, transparent 3px),
    radial-gradient(ellipse at 48% 62%, rgba(90,184,205,.18), transparent 34%),
    linear-gradient(145deg, #dde8dd, #edf1ec 48%, #d9e7e3);
}
.geographic-fallback-pane {
  opacity: 0;
}
.app-shell:is([data-view="local"],[data-view="region"]):not([data-mode="coincidence"]) .geographic-fallback-pane {
  opacity: 1;
}
.app-shell[data-view="local"]:not([data-mode="coincidence"]) .leaflet-container,
.app-shell[data-view="region"]:not([data-mode="coincidence"]) .leaflet-container {
  background: #bddae0;
}
.geo-fallback-land { fill: #edf1eb; stroke: #819087; }
.geo-fallback-country { fill: none; stroke: #9aa79f; }
.geo-fallback-water { fill: #b8dbe0; stroke: #73aeba; }
.geo-fallback-island { fill: #dcebdc; stroke: #789786; }
.geo-fallback-road,.geo-fallback-road-secondary,.geo-fallback-waterway,.geo-fallback-boundary { fill: none; }
.geo-fallback-waterway { opacity: .66; }
.geo-fallback-park { fill: #c5ddc3; stroke: #85a58a; }
.geo-fallback-boundary { opacity: .42; stroke-dasharray: 3 4; }
.geo-fallback-label {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #63756a;
  font: 600 11px/1.2 var(--sans);
  letter-spacing: .12em;
  text-shadow: 0 1px 0 rgba(255,255,255,.86);
  white-space: nowrap;
}
.app-shell[data-view="local"] .geo-fallback-region-label,
.app-shell[data-view="region"] .geo-fallback-local,
.app-shell[data-view="region"] .geo-fallback-local-label { opacity: 0; }
.app-shell[data-view="local"] .geo-fallback-local-label { opacity: 1; }
.app-shell[data-view="region"] .geo-fallback-region-label { opacity: 1; }
.app-shell[data-view="local"] .geo-fallback-local-label--major {
  color: #425b4c; font-size: 12px; letter-spacing: .1em;
}
.app-shell[data-view="local"] .geo-fallback-local-label--minor {
  color: #66776c; font-size: 11px; font-weight: 600; letter-spacing: .055em;
}
.app-shell .frame,.app-shell .topbar { border-radius: var(--map-frame-radius); }
.app-shell #map-notice { bottom: 156px; max-width: calc(100vw - 32px); text-align: center; line-height: 1.5; }
.app-shell:has(#tutorial:not([hidden])) :is(#overall-pixel,.overall-pixel-flight,#map-notice) { visibility: hidden; }
/* Defocus immediately; acquire clarity once, without restarting keyframes. */
#meta-lens.is-attention-ready .meta-quadrant {
  --lens-blur: 6.75px; --lens-focus-time: 0s; --lens-edge: rgba(255,255,255,.8);
  opacity: 1; transform: none; animation: none;
  filter: blur(var(--lens-blur)); border-color: var(--lens-edge);
  transition: filter var(--lens-focus-time) cubic-bezier(.16,1,.3,1), border-color .22s ease;
}
#meta-lens.is-attention-ready .meta-quadrant--dream { --lens-blur: 0px; --lens-focus-time: .22s; --lens-edge: #fff; }
#meta-lens .meta-axis-core { filter: none; }
.app-shell #tutorial[data-lesson="orientation"] .tutorial-sequence li {
  animation: groundedStep .65s ease both;
  animation-delay: calc(.5s + var(--step) * 3.2s);
}
.app-shell #tutorial[data-lesson="orientation"] .tutorial-sequence li:not(:last-child)::after {
  content: ""; position: absolute; left: 33px; top: calc(100% + 1px); height: 9px; width: 1px; background: #9eada4;
}
@keyframes groundedStep { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@media (min-width: 761px) and (max-height: 800px) {
  .app-shell #tutorial[data-lesson="orientation"] .tutorial-copy { padding: 12px 24px; }
  .app-shell #tutorial[data-lesson="orientation"] #tutorial-title { font-size: 28px; }
  .app-shell #tutorial[data-lesson="orientation"] #tutorial-text { margin-top: 14px; }
  .app-shell #tutorial[data-lesson="orientation"] .tutorial-sequence li { min-height: 54px; padding-block: 8px; }
  .app-shell #tutorial[data-lesson="orientation"] #tutorial-text .tutorial-sequence-footer { font-size: 15px; line-height: 1.4; margin-top: 12px; }
}
@media (max-width: 760px) {
  .app-shell #map-notice { bottom: 150px; }
  .app-shell #tutorial[data-lesson="orientation"] .tutorial-sequence li:not(:last-child)::after { left: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  #meta-lens.is-attention-ready .meta-quadrant { transition: none; }
  .app-shell #tutorial[data-lesson="orientation"] .tutorial-sequence li { animation: none; opacity: 1; transform: none; }
}

/* Overall reading and a bounded, intentionally unfilled milestone rail.
   Sample signals are not verified club membership or real network progress. */
.app-shell #overall-pixel { bottom: 22px; width: min(540px,calc(100vw - 32px)); gap: 9px; }
.app-shell #overall-pixel .overall-pixel-core { width: 32px; height: 32px; border-width: 1px; }
.app-shell #overall-pixel .overall-pixel-core.is-assembled { border-radius: 3px; }
.app-shell #overall-pixel .overall-pixel-core.is-cycling { border-radius: 50%; }
.app-shell #overall-pixel .overall-pixel-core.is-on { box-shadow: 0 0 16px 7px #ffffffc9, 0 0 54px 22px #ffffff80; }
.app-shell #overall-pixel .overall-pixel-core.is-off { box-shadow: 0 0 16px 7px #17241d40, 0 0 54px 22px #17241d25; }
.app-shell #overall-pixel .overall-pixel-core.is-balanced { background: linear-gradient(90deg,#fffef8 50%,#071009 50%); box-shadow: -12px 0 24px #ffffffa6,12px 0 24px #17241d38; }
.app-shell #overall-pixel .overall-pixel-core::after { display: none; }
.app-shell #overall-pixel .overall-pixel-copy {
  width: 100%; min-width: 0; padding: 8px 20px 10px; border: 0; border-radius: 20px;
  gap: 4px; background: #e8eae9b8; box-shadow: none; backdrop-filter: blur(12px);
}
.app-shell #overall-pixel .overall-pixel-copy b { font: 600 11px/1.3 var(--sans); letter-spacing: .16em; color: #4d5751; }
.app-shell #overall-pixel-status { font: 600 17px/1.3 var(--sans); letter-spacing: .02em; }
.app-shell #overall-pixel-reading { font: 400 14px/1.4 var(--sans); color: #344139; text-wrap: balance; }
.app-shell #overall-pixel-counts { font: 500 10px/1.4 var(--sans); color: #55635b; letter-spacing: .035em; }
.network-goal { order: 2; width: 100%; padding: 11px 18px 9px; border: 1px solid #ffffffc9; border-radius: 18px; background: #e8eae9de; backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 #fff,0 8px 26px #27382f0a; text-align: center; }
.network-goal p { margin: 0; font: 400 13px/1.4 var(--sans); color: #445149; }
.network-goal p strong { font-weight: 600; color: #233229; }
.network-milestones { position: relative; display: grid; grid-template-columns: repeat(4,1fr); margin: 12px 0 6px; padding: 0; list-style: none; }
.network-milestones::before { content: ''; position: absolute; left: 12.5%; right: 12.5%; top: 5px; height: 5px; border: 1px solid #a3afa6; border-radius: 999px; background: #cbd2cd; box-shadow: inset 0 1px 3px #263a2b14,0 1px 0 #ffffffcc; }
.network-milestones li { position: relative; display: grid; justify-items: center; gap: 2px; }
.network-milestones i { width: 14px; height: 14px; margin-bottom: 4px; border-radius: 50%; border: 1px solid #87988b; background: #e8eae9; box-shadow: inset 0 1px 0 #fff,0 0 0 3px #e8eae9; }
.network-milestones li:last-child i { border: 2px solid #647e6b; }
.network-milestones b { font: 600 13px/1.4 var(--sans); color: #253b2c; white-space: nowrap; }
.network-milestones span { font: 400 10px/1.4 var(--sans); color: #55635a; }
.network-goal > small { font: 400 10px/1.4 var(--sans); color: #657168; }
.app-shell #map-notice { bottom: 330px; }
.app-shell[data-view="meta"] #overall-pixel { visibility: hidden; }
@media (max-width: 760px) {
  .app-shell #overall-pixel { bottom: 49px; width: calc(100vw - 24px); gap: 6px; }
  .app-shell #overall-pixel .overall-pixel-core { width: 28px; height: 28px; }
  .app-shell #overall-pixel .overall-pixel-copy { padding: 7px 12px; }
  .app-shell #overall-pixel-reading { font-size: 13px; }
  .network-goal { padding: 9px 8px 7px; }
  .network-goal p { font-size: 12px; }
  .network-milestones { margin-top: 9px; }
  .network-milestones b { font-size: 12px; }
  .network-milestones span { font-size: 9px; }
  .network-goal > small { font-size: 9px; }
  .app-shell #map-notice { bottom: 350px; white-space: normal; }
}
@media (min-width: 761px) {
  .network-goal p br { display: none; }
  .network-goal p br::after { content: ' '; }
}
/* Reading a person or opening a menu takes priority over the overview. */
@media (max-width: 1200px) {
  .app-shell:has(:is(#signal-card,#coincidence-controls,#coincidence-unlock,#coincidence-card):not([hidden])) #overall-pixel { visibility: hidden; }
}

/* v3.12: quiet summaries; the full reading and milestones open on demand. */
.app-shell #overall-pixel { width: min(310px,calc(100vw - 24px)); gap: 6px; }
.app-shell #overall-pixel:has(details[open]) { width: min(520px,calc(100vw - 24px)); }
.app-shell #overall-pixel .overall-pixel-copy {
  display: block; padding: 0; background: transparent; backdrop-filter: none;
  -webkit-backdrop-filter: none; border-radius: 16px; pointer-events: auto;
}
.app-shell #overall-pixel .overall-pixel-copy[open] { background: #fafbf8ed; box-shadow: inset 0 1px 0 #fff,0 6px 22px #28382f0c; backdrop-filter: blur(14px); }
#overall-pixel summary { cursor: pointer; list-style: none; user-select: none; border-radius: 14px; }
#overall-pixel summary::-webkit-details-marker { display: none; }
#overall-pixel summary:focus-visible { outline: 2px solid #648e72; outline-offset: 3px; }
#overall-pixel summary:hover { background: #ffffff73; }
#overall-reading-disclosure > summary { display: grid; justify-items: center; gap: 2px; padding: 6px 12px; }
.app-shell #overall-pixel-status { font-size: 15px; line-height: 1.3; }
.overall-status-row { display: flex; align-items: center; justify-content: center; gap: 9px; padding-left: 15px; }
.disclosure-chevron { width: 6px; height: 6px; flex: 0 0 6px; border-top: 1px solid currentColor; border-left: 1px solid currentColor; transform: rotate(45deg); opacity: .65; }
#overall-pixel details[open] > summary .disclosure-chevron { transform: rotate(225deg); }
.overall-reading-body { padding: 2px 18px 12px; display: grid; gap: 6px; text-align: center; }
.app-shell #overall-pixel-reading { margin: 0; font-size: 14px; }
.app-shell #overall-pixel-counts { font-size: 11px; }
.app-shell .network-goal { display: block; pointer-events: auto; padding: 0; background: #f8f9f6c9; border-color: #ffffffcf; border-radius: 16px; box-shadow: inset 0 1px 0 #fff,0 3px 12px #26362b08; }
.network-goal > summary { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 7px 12px; color: #40564a; font: 500 13px/1.4 var(--sans); }
.network-mini-track { display: flex; align-items: center; justify-content: space-between; position: relative; width: 44px; flex: 0 0 44px; }
.network-mini-track::before { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: #acbdb1; }
.network-mini-track i { position: relative; width: 5px; height: 5px; border: 1px solid #819a89; border-radius: 50%; background: #f4f7f2; }
.network-mini-track i:last-child { width: 7px; height: 7px; }
.network-goal-body { padding: 4px 16px 12px; }
.network-goal-body > small { font: 400 11px/1.4 var(--sans); color: #5b6c60; }
.app-shell #map-notice { bottom: 180px; }
.app-shell:has(#overall-pixel details[open]) #map-notice { bottom: 340px; }
@media (max-width: 760px) {
  .app-shell #overall-pixel { bottom: 49px; }
  .app-shell #map-notice { bottom: 200px; }
  .network-goal-body { padding-inline: 9px; }
  .network-milestones b { font-size: 12px; }
  .network-milestones span { font-size: 10px; }
}

/* v3.13: geographic scale, zoom, and the signal key have distinct homes. */
.app-shell .topbar { height: 72px; min-height: 72px; padding: 8px 14px; display: flex; align-items: center; }
.app-shell .header-left { width: auto; flex-wrap: nowrap; gap: 10px; }
.app-shell .header-help { width: auto; gap: 6px; }
.app-shell .brand { min-height: 44px; padding: 6px 10px; gap: 8px; }
.app-shell .brand-emblem { width: 28px; height: 28px; flex-basis: 28px; }
.app-shell .brand-sketch { height: 28px; width: auto; }
.app-shell .brand-world { font-size: 11px; padding-bottom: 2px; }
.app-shell .header-help .help-button { min-height: 38px; padding: 8px 10px; font-size: 12px; }
.app-shell .header-help .concept-button { width: 38px; height: 38px; flex-basis: 38px; }
.app-shell .map-title { top: 50%; bottom: auto; width: min(560px,calc(100% - 900px)); padding: 0; }
.app-shell .map-title > span { font-size: 19px; line-height: 1.25; }
.app-shell .map-title > strong { display: none; }
.app-shell #concept-panel { top: 98px; max-height: calc(100dvh - 118px); }
.app-shell .coordinate-readout { display: none; }
.app-shell #map-views {
  top: 100px; bottom: auto; width: auto; min-width: 0; max-width: calc(100vw - 24px);
  display: flex; align-items: center; gap: 3px; padding: 5px;
  border: 0; border-radius: 17px; background: transparent; box-shadow: none; backdrop-filter: none;
}
.app-shell #map-views::before { content: ''; position: absolute; inset: 0 100px 0 0; border: 1px solid #ffffffd9; border-radius: 17px; background: #f1f3f0dd; box-shadow: inset 0 1px 0 #fff,0 4px 16px #1b302009; z-index: -1; }
.app-shell #map-views .control-label { display: none; }
.app-shell #map-views .view-button {
  position: relative; display: flex; flex-direction: row; align-items: center; justify-content: center;
  min-height: 44px; min-width: 78px; padding: 8px 15px; gap: 6px; border-radius: 12px;
  background: transparent; border: 1px solid transparent; box-shadow: none;
}
.app-shell #map-views .view-button .lens-map { display: none; }
.app-shell #map-views .view-button .lens-copy b { margin: 0; font: 600 15px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: #3c4e42; }
.app-shell #map-views .view-button.is-active { background: #ffffffcc; border-color: #9ba99e80; box-shadow: 0 2px 5px #243e2b0a; }
.app-shell #map-views .view-button:hover { background: #ffffffb3; }
.app-shell #map-views .view-button--meta { margin-left: 12px; min-width: 86px; background: #e1e8dfd9; border-color: #a4b4a6; border-radius: 16px; }
.app-shell #map-views .view-button--meta .lens-map { display: grid; width: 23px; height: 23px; min-width: 23px; padding: 2px; gap: 2px; box-shadow: none; }
.app-shell #map-views .view-button .lens-copy small {
  display: block; position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 210px; padding: 9px 12px; border: 1px solid #fff; border-radius: 10px;
  background: #fbfcf9f5; color: #405446; box-shadow: 0 5px 16px #13251a10;
  font: 400 13px/1.4 var(--sans); letter-spacing: 0; white-space: normal; text-align: center;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .12s ease;
}
.app-shell #map-views .view-button:is(:hover,:focus-visible) .lens-copy small { opacity: 1; visibility: visible; }
.app-shell #coincidence-mode-toggle { top: 104px; }
.app-shell #signal-key { display: block; position: fixed; top: auto; bottom: 24px; left: 24px; right: auto; width: auto; max-width: calc(100vw - 86px); padding: 0; z-index: 95; border-radius: 16px; background: #f9faf6ed; border: 1px solid #ffffffed; box-shadow: 0 5px 20px #2233260a; }
#signal-key > summary { min-height: 44px; display: flex; align-items: center; gap: 16px; padding: 10px 15px; list-style: none; cursor: pointer; font: 600 15px/1.4 var(--sans); color: #3a4b40; }
#signal-key > summary::-webkit-details-marker { display: none; }
.key-chevron { width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
#signal-key[open] .key-chevron { transform: rotate(225deg); }
#signal-key > summary:focus-visible { outline: 2px solid #648e72; outline-offset: 3px; border-radius: 12px; }
.signal-key-body { padding: 0 16px 12px; width: 284px; max-width: 100%; max-height: calc(100dvh - 200px); overflow-y: auto; }
.signal-key-row { display: flex; align-items: center; gap: 12px; padding: 5px 0; font: 400 16px/1.4 var(--sans); color: #23362a; }
.key-swatch { flex: 0 0 14px; width: 14px; height: 14px; border: 1px solid #29382f; border-radius: 2px; }
.key-white { background: #fff; }
.key-black { background: #09110c; }
.key-square,.key-circle { background: transparent; }
.key-circle { border-radius: 50%; }
.signal-key-note { margin: 10px 0 12px; font: 400 14px/1.45 var(--sans); color: #59685e; }
.signal-key-presence { padding-top: 10px; border-top: 1px solid #b6c0b54d; }
.app-shell #signal-key #live-presence { position: static; display: flex; gap: 6px; padding: 0; margin: 0; width: auto; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; font-size: 12px; }
.app-shell #signal-key #live-presence #utc-clock { display: none; }
#signal-key .legend-footer { margin-top: 10px; padding-top: 8px; font-size: 10px; gap: 12px; }
.app-shell .map-zoom { position: fixed; z-index: 95; top: auto; left: auto; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 3px; padding: 4px; border: 1px solid #ffffffeb; border-radius: 15px; background: #f4f7f1e6; box-shadow: 0 5px 20px #2233260b; }
.app-shell .map-zoom button { width: 40px; height: 40px; min-height: 40px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 10px; background: #ffffff80; color: #34483b; font: 400 24px/1 var(--sans); }
.app-shell .map-zoom button:hover { background: #fff; }
.app-shell .map-zoom button:focus-visible { outline: 2px solid #648e72; outline-offset: 1px; }
.app-shell[data-view="meta"] :is(#signal-key,.map-zoom) { visibility: hidden; }
.app-shell:has(#tutorial:not([hidden])) :is(#signal-key,.map-zoom) { visibility: hidden; }
@media (min-width: 761px) and (max-width: 1200px) {
  .app-shell .topbar { height: 100px; min-height: 100px; align-items: flex-start; }
  .app-shell .map-title { top: auto; bottom: 9px; width: calc(100% - 40px); transform: translateX(-50%); }
  .app-shell #map-views { top: 128px; }
  .app-shell #coincidence-mode-toggle { top: 194px; }
  .app-shell #concept-panel { top: 126px; }
}
@media (max-width: 760px) {
  .app-shell .topbar { height: 64px; min-height: 64px; padding: 5px 7px; }
  .app-shell .header-left { width: 100%; justify-content: space-between; gap: 4px; }
  .app-shell .header-help { gap: 3px; }
  .app-shell .header-help .help-label { display: none; }
  .app-shell .header-help .help-short { display: inline; }
  .app-shell .header-help .help-button { padding: 7px; min-width: 38px; }
  .app-shell .header-help .concept-button { width: 32px; height: 38px; flex-basis: 32px; }
  .app-shell .brand { padding: 6px; gap: 5px; }
  .app-shell .brand-emblem { width: 24px; height: 24px; flex-basis: 24px; }
  .app-shell .brand-sketch { height: 24px; }
  .app-shell .brand-world { font-size: 10px; }
  .app-shell .map-title { display: none; }
  .app-shell #map-views { top: 90px; gap: 1px; padding: 4px; width: auto; }
  .app-shell #map-views .view-button { min-width: 68px; padding: 8px 11px; }
  .app-shell #map-views .view-button--meta { margin-left: 10px; min-width: 78px; }
  .app-shell #map-views .view-button .lens-copy small { max-width: 160px; }
  .app-shell #map-views .view-button--meta .lens-copy small { left: auto; right: 0; transform: none; }
  .app-shell #coincidence-mode-toggle { top: 154px; }
  .app-shell #concept-panel { top: 90px; max-height: calc(100dvh - 110px); }
  .app-shell #signal-key { bottom: 20px; left: 12px; }
  .app-shell .map-zoom { bottom: 20px; right: 12px; }
  .app-shell #overall-pixel { bottom: 122px; }
  .app-shell:has(#signal-key[open]) #overall-pixel { visibility: hidden; }
  .app-shell #map-notice { bottom: 268px; }
}
@media (max-width: 640px) {
  .app-shell #signal-card { position: fixed; top: auto !important; left: 8px !important; right: 8px; bottom: 8px; width: auto; max-width: none; max-height: min(72dvh,620px); transform: none; overflow-y: auto; border-radius: 24px 24px 16px 16px; padding-bottom: max(18px,env(safe-area-inset-bottom)); z-index: 150; }
  .app-shell #signal-card .card-drag-handle { display: none; }
  .app-shell:has(#signal-card:not([hidden])) :is(#signal-key,.map-zoom) { visibility: hidden; }
}
.app-shell .map-zoom { transform: none; }
.app-shell #map-views .view-button { flex: 0 0 auto; width: auto; }
.app-shell #map-views .lens-copy { min-width: 0; }
@media (min-width: 1201px) { .app-shell .map-title { width: min(560px,calc(100% - 960px)); } }

.app-shell #map-views { right: auto; width: max-content; }
/* Retire the earlier icon-column rules, which used !important. */
.app-shell #map-views .view-button { display: flex !important; grid-template-columns: none !important; padding: 8px 15px !important; }
.app-shell #map-views .view-button.is-active { border: 1px solid #9ba99e80 !important; }
.app-shell #map-views .view-button--meta { border: 1px solid #a4b4a6 !important; }
@media (max-width: 760px) { .app-shell #map-views .view-button { padding: 8px 11px !important; } }
@media (max-width: 360px) {
  .app-shell .brand-emblem { width: 20px; height: 20px; flex-basis: 20px; }
  .app-shell .brand-sketch { height: 20px; }
  .app-shell #map-views .view-button { min-width: 58px; padding: 8px 7px !important; }
  .app-shell #map-views .view-button--meta { min-width: 76px; }
  .app-shell #map-views .view-button .lens-copy b { font-size: 14px; }
}

/* v3.21: the headline stays fixed while its shared reading fades in below. */
.app-shell .map-title { gap: 0; }
.app-shell .map-title > span { width: max-content; max-width: 100%; min-height: 0; transform: none; transition: none; }
.app-shell .map-title > strong {
  display: block; position: absolute; top: calc(100% + 3px); left: 50%; width: 100%; margin: 0; padding: 0;
  border: 0; background: none; box-shadow: none;
  font: 400 13px/1.35 var(--sans); letter-spacing: .02px;
  color: #455249; text-align: center; white-space: nowrap;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(-50%); transition: opacity .32s ease, visibility 0s linear .32s;
}
.app-shell .map-title:is(:hover,:focus-visible,:focus-within) > strong {
  opacity: 1; visibility: visible; transition: opacity .32s ease, visibility 0s;
}
.app-shell .map-title:focus-visible { outline: 1px solid #74857a80; outline-offset: 5px; border-radius: 4px; }
@media (min-width: 761px) { .app-shell .map-title { width: max-content; max-width: calc(100% - 32px); } }
@media (min-width: 761px) and (max-width: 1249px) {
  .app-shell .topbar { height: 100px; min-height: 100px; align-items: flex-start; }
  .app-shell .map-title { top: auto; bottom: 27px; transform: translateX(-50%); }
  .app-shell #map-views { top: 128px; }
  .app-shell #concept-panel { top: 126px; }
  .app-shell #coincidence-mode-toggle { top: 194px; }
}
.app-shell .map-title .title-signal-word {
  display: inline; min-height: 0; padding: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none; text-shadow: none; color: inherit;
  font: inherit; letter-spacing: inherit; opacity: 0;
}
.app-shell .map-title:is(:hover,:focus-visible,:focus-within) .title-signal-word {
  animation: titleSignalFade .5s ease both; animation-delay: .12s;
}
.app-shell .map-title:is(:hover,:focus-visible,:focus-within) .title-signal-word:nth-child(2) { animation-delay: .48s; }
.app-shell .map-title:is(:hover,:focus-visible,:focus-within) .title-signal-word:nth-child(3) { animation-delay: .84s; }
@keyframes titleSignalFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .app-shell .map-title > strong { transition: none; }
  .app-shell .map-title:is(:hover,:focus-visible,:focus-within) .title-signal-word { animation: none; opacity: 1; }
}

/* The aggregate earns its language only after every contributing pixel arrives. */
.app-shell #overall-pixel:not(.is-complete) .overall-pixel-copy summary > b,
.app-shell #overall-pixel:not(.is-complete) #overall-pixel-status,
.app-shell #overall-pixel:not(.is-complete) .network-goal-label { opacity: 0; }
.app-shell #overall-pixel.is-assembling :is(.overall-pixel-copy,.network-goal) { pointer-events: none; }
.app-shell #overall-pixel.is-complete .overall-pixel-copy summary > b {
  animation: overallCopyArrive .55s cubic-bezier(.22,.75,.25,1) .12s both;
}
.app-shell #overall-pixel.is-complete #overall-pixel-status {
  animation: overallCopyArrive .55s cubic-bezier(.22,.75,.25,1) .68s both;
}
.app-shell #overall-pixel.is-complete .network-goal-label {
  animation: overallCopyArrive .55s cubic-bezier(.22,.75,.25,1) 1.24s both;
}
@keyframes overallCopyArrive {
  from { opacity: 0; transform: translateY(4px); filter: blur(2px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .app-shell #overall-pixel.is-complete :is(.overall-pixel-copy summary > b,#overall-pixel-status,.network-goal-label) {
    animation: none; opacity: 1;
  }
}

/* v3.15: clockwise lens path and a quiet, two-sided concept disclosure. */
.app-shell[data-intro="ready"] #overall-pixel,
.app-shell[data-intro="running"] #overall-pixel { visibility: hidden; }
#meta-lens .meta-lens-head { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; }
#meta-lens .meta-lens-head-copy { justify-self: end; }
#meta-lens .meta-time-modes { z-index: 12; }
#meta-lens .meta-time-modes summary {
  display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 6px 12px;
  list-style: none; cursor: pointer; border: 1px solid rgba(70,85,75,.13); border-radius: 24px;
  background: rgba(255,255,255,.36); color: #536057; font: 500 14px/1.4 var(--sans);
}
#meta-lens .meta-time-modes summary::-webkit-details-marker { display: none; }
#meta-lens .meta-time-modes summary:hover { background: rgba(255,255,255,.7); }
#meta-lens .meta-time-modes summary:focus-visible { outline: 2px solid #6d8b79; outline-offset: 3px; }
#meta-lens .time-mode-symbol { letter-spacing: .13em; color: #37483c; }
#meta-lens .time-mode-chevron { transition: transform .2s; }
#meta-lens .meta-time-modes[open] .time-mode-chevron { transform: rotate(180deg); }
#meta-lens .meta-time-fan {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: min(760px,calc(100% - 16px)); display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  filter: drop-shadow(0 12px 18px rgba(31,46,37,.12));
}
#meta-lens .meta-time-side {
  padding: 20px 24px; border: 1px solid rgba(255,255,255,.9); border-radius: 20px;
  background: rgba(246,248,245,.97); color: #34433a; text-align: left;
  transform-origin: right top; animation: timeKeeperFan .32s ease-out both;
}
#meta-lens .meta-time-side--travelers { background: rgba(227,234,227,.98); transform-origin: left top; animation-name: timeTravelerFan; }
#meta-lens .time-side-label { font: 500 11px/1.4 var(--sans); letter-spacing: .07em; color: #657169; }
#meta-lens .meta-time-side h3 { display: flex; align-items: center; gap: 10px; margin: 12px 0; font: 500 20px/1.25 var(--sans); letter-spacing: -.025em; }
#meta-lens .meta-time-side h3 b { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #9ba89e; border-radius: 5px; font-weight: 500; }
#meta-lens .meta-time-side--travelers h3 b { border-radius: 50%; }
#meta-lens .meta-time-side > strong { font: 500 16px/1.5 var(--sans); }
#meta-lens .meta-time-side p { margin: 5px 0 0; font: 400 16px/1.5 var(--sans); color: #56635b; letter-spacing: 0; }
#meta-lens .meta-axis-core { width: 76px; height: 76px; }
#meta-lens .meta-axis-core::before { inset: 15px; }
#meta-lens .meta-orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 3; pointer-events: none; }
#meta-lens .meta-orbit-step { fill: none; stroke: #455a4b; stroke-width: 1.3; opacity: .46; marker-end: url(#meta-orbit-arrow); }
#meta-lens[data-active-lens="dream"] .meta-orbit-step[data-from="dream"],
#meta-lens[data-active-lens="vision"] .meta-orbit-step[data-from="vision"],
#meta-lens[data-active-lens="mission"] .meta-orbit-step[data-from="mission"],
#meta-lens[data-active-lens="purpose"] .meta-orbit-step[data-from="purpose"] {
  opacity: 1; stroke-width: 1.8; stroke-dasharray: 7 3; animation: lensPathFlow 1.8s linear infinite;
}
@keyframes lensPathFlow { to { stroke-dashoffset: -20; } }
@keyframes timeKeeperFan { from { opacity: 0; transform: translateX(16px) rotate(2deg); } to { opacity: 1; transform: none; } }
@keyframes timeTravelerFan { from { opacity: 0; transform: translateX(-16px) rotate(-2deg); } to { opacity: 1; transform: none; } }
@media (max-width: 1100px) {
  #meta-lens .meta-lens-head { grid-template-columns: 1fr auto; gap: 8px 12px; }
  #meta-lens .meta-time-modes { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  #meta-lens .meta-lens-head-copy { grid-column: 2; grid-row: 1; }
  #meta-lens .meta-lens-head-copy > span { display: none; }
  #meta-lens .meta-axis-core { width: 64px; height: 64px; }
  #meta-lens .meta-axis-core::before { inset: 13px; }
}
@media (max-width: 640px) {
  #meta-lens .meta-time-fan { width: 100%; gap: 6px; }
  #meta-lens .meta-time-side { padding: 13px 12px; border-radius: 14px; }
  #meta-lens .meta-time-side h3 { font-size: 16px; gap: 5px; flex-wrap: wrap; }
  #meta-lens .meta-time-side p, #meta-lens .meta-time-side > strong { font-size: 14px; }
  #meta-lens .time-side-label { font-size: 10px; }
  #meta-lens .meta-axis-core { width: 58px; height: 58px; }
  #meta-lens .meta-axis-core::before { inset: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #meta-lens .meta-time-side, #meta-lens .meta-orbit-step { animation: none !important; }
  #meta-lens .time-mode-chevron { transition: none; }
}

/* v3.16: a paired lens settling into focus, with a slowly turning balance. */
#meta-lens .meta-time-modes summary { position: relative; }
#meta-lens .meta-time-fan {
  top: calc(100% + 20px); transform-origin: center top;
  animation: timeGlassesOn .72s cubic-bezier(.16,1,.3,1) both;
}
#meta-lens .meta-time-side { animation: none; background: rgba(255,255,252,.97); backdrop-filter: blur(16px); }
#meta-lens .meta-time-side--travelers {
  background: radial-gradient(ellipse at right bottom,rgba(79,120,89,.45),transparent 85%),rgba(17,27,21,.97);
  border-color: rgba(195,220,198,.32); color: #f4f7f2;
}
#meta-lens .meta-time-side--travelers .time-side-label { color: #b2c6b7; }
#meta-lens .meta-time-side--travelers p { color: #c1d4c4; }
#meta-lens .meta-time-side--travelers h3 b { border-color: #8ba994; }
#meta-lens .meta-time-side:focus-visible { outline: 2px solid #91ac99; outline-offset: 3px; }
#meta-lens .time-yin-yang {
  position: absolute; width: 30px; height: 30px; left: 50%; top: calc(100% - 2px);
  transform: translateX(-50%); z-index: 2; overflow: visible;
  filter: drop-shadow(0 1px 2px rgba(20,36,26,.18));
}
#meta-lens .time-balance-rotor { transform-origin: 32px 32px; animation: timeBalanceTurn 120s linear infinite; }
#meta-lens .time-yang-half { fill: #fffffc; }
#meta-lens .time-yin-half { fill: #142019; }
#meta-lens .time-balance-edge { fill: none; stroke: #6e7b72; stroke-width: 1; pointer-events: none; }
#meta-lens .time-balance-dot { fill: none; stroke: #91a395; stroke-width: 1.6; opacity: 0; transition: opacity .3s ease,stroke .3s ease; pointer-events: none; }
#meta-lens .meta-time-modes:hover .time-balance-dot,
#meta-lens .meta-time-modes:has(:focus-visible) .time-balance-dot { opacity: 1; }
#meta-lens .meta-time-modes:has(.time-yin-half:hover,.meta-time-side--travelers:hover,.meta-time-side--travelers:focus-visible) .time-balance-dot--yin { stroke: #fff; }
#meta-lens .meta-time-modes:has(.time-yang-half:hover,.meta-time-side--keepers:hover,.meta-time-side--keepers:focus-visible) .time-balance-dot--yang { stroke: #101713; }
/* Pause only under direct inspection so the moving halves remain easy to target. */
#meta-lens .time-yin-yang:hover .time-balance-rotor,
#meta-lens .meta-time-modes:has(:focus-visible) .time-balance-rotor { animation-play-state: paused; }
#meta-lens[data-active-lens="dream"] .meta-orbit-step[data-from="dream"],
#meta-lens[data-active-lens="vision"] .meta-orbit-step[data-from="vision"] { animation-duration: 7.2s; }
@keyframes timeBalanceTurn { to { transform: rotate(360deg); } }
@keyframes timeGlassesOn {
  from { opacity: 0; transform: translateX(-50%) perspective(900px) translateY(-12px) scale(1.045) rotateX(-5deg); filter: blur(4px) drop-shadow(0 16px 22px rgba(31,46,37,.08)); }
  to { opacity: 1; transform: translateX(-50%) perspective(900px) translateY(0) scale(1) rotateX(0); filter: blur(0) drop-shadow(0 12px 18px rgba(31,46,37,.12)); }
}
@media (prefers-reduced-motion: reduce) {
  #meta-lens .meta-time-fan, #meta-lens .time-balance-rotor { animation: none; }
  #meta-lens .time-balance-dot { transition: none; }
}

/* v3.18: fractional vector coordinates, with the live map ready underneath. */
#map.is-vector-intro .leaflet-pane { visibility: hidden; }
.world-vector-intro { position: absolute; inset: 0; z-index: 800; overflow: hidden; pointer-events: none; }
/* Leaflet stacks all live panes inside its z-index 400 map pane. */
.world-vector-intro.is-handing-off { z-index: 399; }
.world-vector-intro > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.world-intro-contour { fill: none; stroke: #151816; stroke-width: .6px; stroke-opacity: .75; stroke-linecap: round; stroke-linejoin: round; }
.world-vector-intro > .h101-pixel { position: absolute; top: 0; left: 0; margin: 0; pointer-events: none; transition: none; }
.overall-pixel-flight {
  width: var(--overall-flight-size); height: var(--overall-flight-size); border: 0;
  border-radius: calc(var(--overall-flight-size) * .15);
  box-shadow: inset 0 0 0 calc(var(--overall-flight-size) / 8) rgba(7,16,9,.6);
  animation-name: overallContributionFlight;
}
.overall-pixel-flight.is-cycling { border-radius: 50%; }
@keyframes overallContributionFlight {
  0% { opacity: .82; transform: translate3d(0,0,0); }
  72% { opacity: .92; }
  100% { opacity: 0; transform: translate3d(var(--overall-flight-x), var(--overall-flight-y), 0); }
}

/* v3.19: settle the board first, then offer the two complementary lenses. */
#meta-lens .meta-time-modes { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .6s ease; }
#meta-lens.is-attention-ready .meta-time-modes { opacity: 1; visibility: visible; pointer-events: auto; }
#meta-lens .time-balance-rotor { animation-duration: 60s; }
#meta-lens:not(.is-attention-ready) .time-balance-rotor { animation-play-state: paused; }
#meta-lens .meta-time-fan { animation-duration: 1s; animation-timing-function: cubic-bezier(.22,.75,.25,1); }
#meta-lens .time-balance-dot { fill: transparent; transition: opacity .3s ease, stroke .3s ease, fill .35s ease; }
#meta-lens .meta-time-modes:has(.time-yin-half:hover,.meta-time-side--travelers:hover,.meta-time-side--travelers:focus-visible) .time-balance-dot--yin { fill: #fff; }
#meta-lens .meta-time-modes:has(.time-yang-half:hover,.meta-time-side--keepers:hover,.meta-time-side--keepers:focus-visible) .time-balance-dot--yang { fill: #101713; }
#meta-lens .meta-mode-glaze { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: inherit; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .8s ease; }
#meta-lens.is-time-modes-on .meta-mode-glaze { opacity: 1; }
#meta-lens .meta-mode-glaze i { border-radius: 24px; background: linear-gradient(125deg,rgba(255,255,255,.65),rgba(255,255,255,.08) 36%,rgba(255,255,255,.4) 55%,rgba(255,255,255,.12)); box-shadow: inset 0 1px 1px #fff, inset 0 0 30px rgba(255,255,255,.2); }
#meta-lens .meta-mode-glaze i + i { background: radial-gradient(ellipse at left center,rgba(6,63,30,.38),rgba(5,27,16,.48)); box-shadow: inset 0 1px 1px rgba(169,219,180,.25); backdrop-filter: saturate(1.7); }
#meta-lens .meta-time-side--keepers { background: linear-gradient(130deg,#fff,rgba(249,253,247,.96) 55%,#fff); box-shadow: inset 0 1px 2px #fff,0 2px 14px rgba(255,255,255,.2); }
#meta-lens .meta-time-side--travelers { background: radial-gradient(ellipse at right bottom,rgba(36,112,59,.5),transparent 85%),rgba(8,25,15,.98); }
#meta-lens .time-mode-lines { margin-top: 14px; }
#meta-lens .time-mode-lines p { margin: 10px 0 0; animation: timeModeLine .85s ease both; animation-delay: .45s; }
#meta-lens .time-mode-lines p:nth-child(2) { animation-delay: 1.65s; }
#meta-lens .time-mode-lines p:nth-child(3) { animation-delay: 2.85s; }
#meta-lens .time-mode-lines--explore p:nth-child(2) { margin-top: 20px; margin-left: 20px; }
#meta-lens .time-mode-lines--explore p:nth-child(3) { margin-top: 26px; margin-left: 40px; }
@keyframes timeModeLine { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.app-shell #tutorial[data-lesson="coincidence"] .tutorial-main { background: linear-gradient(130deg,#315f45,#173e2b); border-color: #7caa8b; box-shadow: inset 0 1px 1px #a3c7ae55,inset 5px 5px 20px #0e2a2140; color: #fff; }
.app-shell #tutorial[data-lesson="coincidence"] :is(#tutorial-title,#tutorial-eyebrow,#tutorial-text,#tutorial-text p,.tutorial-coincidence-types b,.tutorial-coincidence-types span) { color: #fff; }
.app-shell #tutorial[data-lesson="coincidence"] .tutorial-coincidence-types li { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.23); }
@media (max-width: 640px) {
  #meta-lens .time-mode-lines--explore p:nth-child(2) { margin-left: 10px; margin-top: 16px; }
  #meta-lens .time-mode-lines--explore p:nth-child(3) { margin-left: 20px; margin-top: 20px; }
  #meta-lens .meta-mode-glaze i { border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  #meta-lens .meta-time-modes, #meta-lens .meta-mode-glaze, #meta-lens .time-balance-dot { transition: none; }
  #meta-lens .time-mode-lines p { animation: none; }
}

.app-shell #tutorial[data-lesson="coincidence"] .tutorial-coincidence-types li { animation-name: greenReadingStep; }
@keyframes greenReadingStep {
  0%,100% { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.23); box-shadow: none; }
  8%,85% { background: rgba(255,255,255,.16); border-color: rgba(208,242,218,.55); box-shadow: inset 3px 0 0 #b4dbbf; }
}

/* Leave the sharp H101 hub unobstructed when the available height is short. */
@media (min-width: 641px) and (max-height: 800px) {
  #meta-lens .meta-time-fan { width: min(844px,calc(100% - 16px)); gap: 96px; }
}

/* v3.23: a fuller two-mode lens, composed around the 1 / 0 bridge. */
#meta-lens .meta-time-modes { position: relative; width: 178px; justify-self: center; }
#meta-lens .meta-time-modes summary {
  position: relative; display: grid; grid-template-columns: 1fr auto; justify-items: center;
  min-height: 88px; padding: 0 16px 10px; gap: 6px 8px; overflow: visible;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
#meta-lens .meta-time-modes summary::before {
  content: ''; position: absolute; left: 50%; top: 31px; width: 1px; height: 70px;
  background: linear-gradient(#6f7e7454,#6f7e7429 72%,transparent); transform: translateX(-50%);
}
#meta-lens .meta-time-modes summary:hover { background: transparent; }
#meta-lens .time-mode-title {
  grid-column: 1 / -1; position: relative; z-index: 2;
  color: #26352c; font: 560 21px/1.15 var(--sans); letter-spacing: -.025em;
}
#meta-lens .time-mode-symbol {
  grid-column: 1 / -1; position: relative; z-index: 2; display: flex; align-items: center;
  gap: 0; height: 38px; color: inherit; letter-spacing: 0;
}
#meta-lens .time-mode-symbol b {
  display: grid; place-items: center; width: 46px; height: 38px; border: 1px solid #819087;
  background: rgba(255,255,252,.95); color: #26342c; font: 500 23px/1 var(--sans);
  box-shadow: inset 0 1px 1px #fff,0 3px 12px rgba(20,36,26,.06);
}
#meta-lens .time-mode-symbol b:first-child { border-radius: 14px 4px 4px 14px; }
#meta-lens .time-mode-symbol b:last-child {
  margin-left: -1px; border-color: #16261c; border-radius: 4px 19px 19px 4px;
  background: #17271d; color: #fff;
}
#meta-lens .time-mode-chevron { position: absolute; z-index: 3; right: 7px; top: 9px; color: #5d6c63; }
#meta-lens .time-yin-yang {
  width: 44px; height: 44px; top: calc(100% - 1px); z-index: 4;
  padding: 3px; border-radius: 50%; background: rgba(247,250,246,.92);
  box-shadow: 0 4px 12px rgba(18,36,24,.12),inset 0 1px 1px #fff;
}
#meta-lens .meta-time-fan {
  top: calc(100% + 51px); width: min(1800px,calc(100vw - 56px)); gap: 16px;
  filter: drop-shadow(0 18px 28px rgba(25,44,31,.13));
}
#meta-lens .meta-time-side {
  min-width: 0; min-height: clamp(310px,39vh,390px); padding: 40px 44px;
  border-radius: 30px; border-color: rgba(255,255,255,.94); text-align: left;
  box-shadow: inset 0 1px 2px #fff,0 12px 34px rgba(30,48,36,.08);
}
#meta-lens .meta-time-side--keepers {
  background: radial-gradient(circle at 16% 12%,#fff 0,rgba(255,255,252,.97) 56%,rgba(242,247,241,.94));
}
#meta-lens .meta-time-side--travelers {
  background: radial-gradient(ellipse at 80% 78%,rgba(27,105,53,.48),transparent 70%),linear-gradient(145deg,#07170e,#0b2d18 65%,#124727);
  border-color: rgba(136,183,147,.36); box-shadow: inset 0 1px 1px rgba(210,239,217,.18),0 14px 36px rgba(8,28,16,.18);
}
#meta-lens .time-side-label { font: 560 13px/1.35 var(--sans); letter-spacing: .075em; }
#meta-lens .meta-time-side--travelers .time-side-label { color: #aebfb3; }
#meta-lens .meta-time-side h3 { gap: 14px; margin: 21px 0 24px; font: 570 28px/1.15 var(--sans); }
#meta-lens .meta-time-side h3 b { width: 48px; height: 48px; border-radius: 9px; font-size: 25px; }
#meta-lens .meta-time-side--travelers h3 b { border-color: #9fb3a5; border-radius: 50%; color: #fff; }
#meta-lens .meta-time-side > strong { font: 580 21px/1.35 var(--sans); }
#meta-lens .time-mode-lines { margin-top: 22px; }
#meta-lens .time-mode-lines p { position: relative; z-index: 2; margin: 20px 0 0; padding-left: 32px; font: 420 20px/1.4 var(--sans); }
#meta-lens .time-mode-lines:not(.time-mode-lines--explore) p::before {
  content: '✦'; position: absolute; left: 1px; top: -.05em; color: #52675a; font-size: 20px;
}
#meta-lens .time-mode-lines--explore { position: relative; min-height: 184px; margin-top: 16px; }
#meta-lens .time-mode-lines--explore p { display: table; margin: 0; padding: 5px 10px 5px 30px; color: #d7e3d8; background: rgba(7,25,14,.28); border-radius: 4px; }
#meta-lens .time-mode-lines--explore p:nth-of-type(2) { margin-top: 33px; margin-left: 28%; }
#meta-lens .time-mode-lines--explore p:nth-of-type(3) { margin-top: 39px; margin-left: 54%; white-space: nowrap; }
#meta-lens .time-explore-path { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; }
#meta-lens .time-explore-path path {
  fill: none; stroke: rgba(171,205,179,.24); stroke-width: 1.2; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: timeExplorePath 3.35s cubic-bezier(.22,.65,.28,1) .35s both;
}
#meta-lens .time-explore-path circle {
  fill: #edf4ee; stroke: #183923; stroke-width: 1; vector-effect: non-scaling-stroke;
  opacity: 0; animation: timeExplorePoint .45s ease .45s both;
}
#meta-lens .time-explore-path circle:nth-of-type(2) { animation-delay: 1.65s; }
#meta-lens .time-explore-path circle:nth-of-type(3) { animation-delay: 2.85s; }
#meta-lens .time-mode-lines--explore p:nth-of-type(1) { animation-delay: .45s; }
#meta-lens .time-mode-lines--explore p:nth-of-type(2) { animation-delay: 1.65s; }
#meta-lens .time-mode-lines--explore p:nth-of-type(3) { animation-delay: 2.85s; }
@keyframes timeExplorePath { to { stroke-dashoffset: 0; } }
@keyframes timeExplorePoint { to { opacity: 1; } }
#meta-lens.is-time-modes-on .meta-mode-glaze i { background: linear-gradient(130deg,rgba(255,255,255,.78),rgba(255,255,255,.12) 48%,rgba(255,255,255,.48)); }
#meta-lens.is-time-modes-on .meta-mode-glaze i + i { background: radial-gradient(ellipse at 72% 65%,rgba(13,91,39,.56),rgba(4,24,13,.62)); }
@media (min-width: 641px) and (max-height: 800px) {
  #meta-lens .meta-time-fan { width: min(1800px,calc(100vw - 44px)); gap: 14px; }
  #meta-lens .meta-time-side { min-height: 300px; padding: 30px 34px; }
  #meta-lens .meta-time-side h3 { margin: 16px 0 18px; }
  #meta-lens .time-mode-lines--explore { min-height: 150px; }
  #meta-lens .time-mode-lines--explore p:nth-of-type(2) { margin-top: 22px; }
  #meta-lens .time-mode-lines--explore p:nth-of-type(3) { margin-top: 24px; }
}
@media (max-width: 720px) {
  #meta-lens .meta-time-modes { width: 154px; }
  #meta-lens .meta-time-modes summary { min-height: 74px; padding-bottom: 6px; }
  #meta-lens .time-mode-title { font-size: 18px; }
  #meta-lens .time-mode-symbol { height: 32px; }
  #meta-lens .time-mode-symbol b { width: 39px; height: 32px; font-size: 19px; }
  #meta-lens .time-yin-yang { width: 38px; height: 38px; }
  #meta-lens .meta-time-fan {
    top: calc(100% + 45px); width: calc(100vw - 28px); grid-template-columns: 1fr; gap: 8px;
    max-height: calc(100vh - 170px); overflow-y: auto; overscroll-behavior: contain;
  }
  #meta-lens .meta-time-side { min-height: 0; padding: 20px 22px; border-radius: 20px; }
  #meta-lens .time-side-label { font-size: 11px; }
  #meta-lens .meta-time-side h3 { margin: 12px 0 14px; font-size: 22px; }
  #meta-lens .meta-time-side h3 b { width: 38px; height: 38px; font-size: 21px; }
  #meta-lens .meta-time-side > strong { font-size: 17px; }
  #meta-lens .time-mode-lines { margin-top: 12px; }
  #meta-lens .time-mode-lines p { margin-top: 10px; padding-left: 25px; font-size: 16px; }
  #meta-lens .time-mode-lines--explore { min-height: 125px; }
  #meta-lens .time-mode-lines--explore p { padding-left: 24px; }
  #meta-lens .time-mode-lines--explore p:nth-of-type(2) { margin-top: 16px; margin-left: 22%; }
  #meta-lens .time-mode-lines--explore p:nth-of-type(3) { margin-top: 18px; margin-left: 42%; }
}
@media (prefers-reduced-motion: reduce) {
  #meta-lens .time-explore-path { opacity: .75; }
  #meta-lens .time-explore-path :is(path,circle) { animation: none; stroke-dashoffset: 0; opacity: 1; }
}

/* v3.24: hold the field before the map opens, then reveal the interface in a
   human reading order. Legend V1 becomes the quiet lower-right key station. */
.field-welcome[hidden] { display: none; }
.field-welcome {
  position: absolute; z-index: 1180; inset: 0; display: grid; place-items: center;
  pointer-events: none; opacity: 0; background: rgba(239,242,238,.4);
  backdrop-filter: blur(9px) saturate(.78); transition: opacity .95s cubic-bezier(.22,1,.36,1);
}
.field-welcome.is-visible { opacity: 1; }
.field-welcome.is-leaving { opacity: 0; transition-duration: 1.3s; }
.field-welcome-card {
  display: grid; justify-items: center; width: min(720px,calc(100vw - 42px));
  padding: 24px 30px 22px; transform: translateY(-52px) scale(.975);
  border: 1px solid rgba(255,255,255,.88); border-radius: 26px;
  background: linear-gradient(150deg,rgba(255,255,252,.86),rgba(237,241,237,.68));
  box-shadow: inset 0 1px 1px #fff,0 18px 56px rgba(28,44,32,.12);
  color: #19241d; text-align: center;
  transition: transform .82s cubic-bezier(.16,1,.3,1),filter .82s ease;
}
.field-welcome.is-visible .field-welcome-card { transform: translateY(-52px) scale(1); }
.field-welcome.is-leaving .field-welcome-card { transform: translateY(-44px) scale(1.012); filter: blur(2px); }
.field-welcome-card > span { font: 650 12px/1.2 var(--mono); letter-spacing: .18em; }
.field-welcome-card strong { margin-top: 8px; font: 620 clamp(27px,3vw,42px)/1.04 var(--sans); letter-spacing: -.035em; }
.field-welcome-card strong .welcome-accent {
  font: inherit; letter-spacing: inherit; color: #d4542e;
  background: linear-gradient(140deg,#de7a3d,#c73e2b); background-clip: text; -webkit-text-fill-color: transparent;
}
.field-welcome.is-visible .field-welcome-card strong { animation: welcomeTitleFocus 1.3s .35s cubic-bezier(.16,1,.3,1) both; }
.field-welcome-card small { margin-top: 16px; color: #536159; font: 600 clamp(10px,1vw,12px)/1.4 var(--mono); letter-spacing: .1em; }
.field-welcome-card .welcome-footer-break::before { content: " / "; }
.field-welcome.is-visible .field-welcome-card small { animation: welcomeBottomLine 1.15s 2.7s cubic-bezier(.16,1,.3,1) both; }
@keyframes welcomeTitleFocus { from { opacity: 0; filter: blur(9px); transform: scale(.985); } to { opacity: 1; filter: blur(0); transform: scale(1); } }
@keyframes welcomeBottomLine { from { opacity: 0; filter: blur(5px); transform: translateY(7px); } to { opacity: 1; filter: blur(0); transform: translateY(0); } }

.app-shell.is-intro-sequenced .topbar,
.app-shell.is-intro-sequenced .brand-emblem,
.app-shell.is-intro-sequenced .brand-copy,
.app-shell.is-intro-sequenced .header-help,
.app-shell.is-intro-sequenced .map-title,
.app-shell.is-intro-sequenced .view-controls,
.app-shell.is-intro-sequenced .overall-pixel,
.app-shell.is-intro-sequenced .legend-panel,
.app-shell.is-intro-sequenced .zoom-controls,
.app-shell.is-intro-sequenced .coordinate-readout,
.app-shell.is-intro-sequenced .axis-label,
.app-shell.is-intro-sequenced .coincidence-mode-toggle {
  transition-property: opacity,transform,filter,visibility;
  transition-duration: .78s;
  transition-timing-function: cubic-bezier(.16,1,.3,1);
}
.app-shell.is-intro-sequenced:not(.is-reveal-pause) .topbar { opacity: 0; visibility: hidden; transform: translateY(-9px); }
.app-shell.is-intro-sequenced:not(.is-reveal-pause) .brand-emblem,
.app-shell.is-intro-sequenced:not(.is-reveal-title) .map-title {
  opacity: 0; visibility: hidden; transform: translateY(7px); filter: blur(3px);
}
.app-shell.is-intro-sequenced:not(.is-reveal-controls) :is(.view-controls,.legend-panel,.zoom-controls,.coordinate-readout,.axis-label) {
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(9px);
}
.app-shell.is-intro-sequenced:not(.is-reveal-overall) .overall-pixel {
  opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%,18px);
}

.concept-support {
  margin: -3px 0 18px !important; padding: 13px 15px; border: 1px solid rgba(7,12,8,.11);
  border-radius: 15px; background: rgba(255,255,255,.42); font-size: 14px !important;
}
.concept-support a { color: #12672a; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.app-shell #signal-key {
  right: 26px; bottom: 24px; left: auto; width: 286px; padding: 12px 14px;
  border-radius: 20px; background: rgba(245,247,243,.88);
  box-shadow: inset 0 1px 1px #fff,0 12px 34px rgba(22,36,26,.11);
}
.app-shell #signal-key > summary { display: grid; grid-template-columns: 1fr 68px 14px; align-items: center; gap: 9px; min-height: 34px; padding: 0; cursor: pointer; }
.legend-panel summary > span:first-child { color: #1b2920; font: 620 15px/1 var(--sans); letter-spacing: .02em; }
.pixel-key-mark { width: 68px; height: 32px; shape-rendering: crispEdges; }
.pixel-key-dark { fill: #111713; }
.pixel-key-light { fill: #fff; stroke: #111713; stroke-width: 1; }
.legend-key-build {
  display: grid; grid-template-columns: 68px 1fr; align-items: center; gap: 12px;
  margin: 13px 0 2px; padding: 11px 10px; border: 1px solid rgba(7,12,8,.14);
  border-radius: 13px; background: rgba(255,255,255,.5);
}
.legend-key-build b,.legend-key-build small { display: block; }
.legend-key-build b { color: #18231c; font: 700 9px/1.2 var(--mono); letter-spacing: .08em; }
.legend-key-build small { margin-top: 4px; color: #667168; font: 600 7px/1.25 var(--mono); letter-spacing: .05em; }
.app-shell .map-zoom { top: 54%; right: 28px; bottom: auto; transform: translateY(-50%); }
.app-shell:has(#signal-key[open]) .map-zoom {
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-42%);
}

@media (max-width: 760px) {
  .field-welcome-card { width: calc(100vw - 28px); padding: 20px 18px; transform: translateY(-32px) scale(.975); border-radius: 21px; }
  .field-welcome.is-visible .field-welcome-card { transform: translateY(-32px) scale(1); }
  .field-welcome-card strong { font-size: clamp(24px,8vw,34px); }
  .field-welcome-card small { max-width: 320px; line-height: 1.5; }
  .field-welcome-card .welcome-footer-break { display: block; }
  .field-welcome-card .welcome-footer-break::before { content: none; }
  .app-shell #signal-key { right: 10px; bottom: 12px; left: auto; width: min(256px,calc(100vw - 20px)); padding: 10px 12px; }
  .app-shell #signal-key > summary { grid-template-columns: 1fr 58px 12px; }
  .legend-panel summary .pixel-key-mark { width: 58px; }
  .app-shell .map-zoom { top: 53%; right: 10px; bottom: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .field-welcome,.field-welcome-card,
  .app-shell.is-intro-sequenced :is(.topbar,.brand-emblem,.brand-copy,.header-help,.map-title,.view-controls,.overall-pixel,.legend-panel,.zoom-controls,.coordinate-readout,.axis-label,.coincidence-mode-toggle) { transition-duration: .01ms !important; filter: none !important; }
}

/* v3.25: the map names itself plainly, the premise fades in without moving,
   and Legend V1 mirrors the four combined signals taught in the tour. */
.app-shell.is-intro-sequenced:not(.is-reveal-title) .map-title {
  transform: none; filter: none;
}
.app-shell .map-title { transition-duration: 1s; transition-timing-function: ease; }
.app-shell #signal-key > summary { grid-template-columns: 1fr 58px 14px; }
.pixel-key-mark { width: 52px; height: 24px; }
.legend-key-build { grid-template-columns: 58px 1fr; }
#signal-key .signal-key-row { align-items: center; gap: 11px; padding: 6px 0; }
#signal-key .signal-key-row > span:last-child { display: grid; gap: 2px; }
#signal-key .signal-key-row b { color: #1d2a21; font: 680 11px/1.15 var(--mono); letter-spacing: .055em; }
#signal-key .signal-key-row small { color: #5c6b61; font: 430 13px/1.25 var(--sans); }
#signal-key .key-white.key-square { border-radius: 2px; background: #fff; }
#signal-key .key-white.key-circle { border-radius: 50%; background: #fff; }
#signal-key .key-black.key-square { border-radius: 2px; background: #09110c; }
#signal-key .key-black.key-circle { border-radius: 50%; background: #09110c; }
#signal-key .key-green {
  border-color: #0d7b2d; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,#c8ffd4 0 13%,#27c84d 38%,#087728 100%);
  box-shadow: 0 0 0 2px #fff,0 0 0 3px rgba(20,145,51,.38);
}
#signal-key .signal-key-row--live { margin-top: 3px; padding-top: 9px; border-top: 1px solid rgba(7,12,8,.1); }

@media (max-width: 760px) {
  .app-shell #signal-key > summary { grid-template-columns: 1fr 54px 12px; }
  .legend-panel summary .pixel-key-mark { width: 48px; }
  #signal-key .signal-key-row small { font-size: 12px; }
}

/* v3.26: organic build-key line art, paced interface chapters, and the first
   verified club milestone illuminated in both compact and expanded rails. */
.build-key-mark { width: 58px; height: 30px; overflow: visible; }
.build-key-mark :is(.build-key-contour,.build-key-stem) {
  fill: none; stroke: #25332a; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.build-key-mark .build-key-contour { stroke: rgba(37,51,42,.62); }
.build-key-mark .build-key-stem { stroke: rgba(18,27,21,.8); }
.build-key-mark .build-key-pixel { fill: #22ae45; stroke: #f8fbf7; stroke-width: .8; }
.network-mini-track i.is-reached {
  border-color: #0d7b2d; background: #20b745;
  box-shadow: 0 0 0 2px rgba(255,255,255,.86),0 0 9px rgba(25,177,65,.42);
}
.network-milestones li.is-reached i {
  border-color: #0d7b2d; background: #20b745;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72),0 0 0 3px #e8eae9,0 0 12px rgba(25,177,65,.34);
}

/* v3.29: let the held world read as a living transmission, then resolve the
   premise and view lenses in distinct optical beats. */
.field-welcome::before,
.field-welcome::after {
  content: ""; position: absolute; left: 50%; top: 50%; pointer-events: none;
  border-radius: 50%; transform: translate(-50%,-58%) scale(.72);
}
.field-welcome::before {
  width: min(74vw,820px); aspect-ratio: 1.78;
  border: 1px solid rgba(38,154,71,.16);
  background:
    radial-gradient(circle at 50% 50%,rgba(31,184,69,.14) 0 3px,transparent 4px),
    radial-gradient(ellipse at center,transparent 0 31%,rgba(40,143,69,.09) 31.3% 31.7%,transparent 32%),
    radial-gradient(ellipse at center,transparent 0 48%,rgba(41,112,62,.07) 48.3% 48.65%,transparent 49%);
  box-shadow: 0 0 78px rgba(34,154,66,.07), inset 0 0 52px rgba(255,255,255,.52);
  animation: welcomeSignalPulse 5.2s ease-in-out infinite;
}
.field-welcome::after {
  width: 16px; height: 16px;
  border: 1px solid rgba(255,255,255,.9); background: #67a879;
  box-shadow: 0 0 0 9px rgba(35,178,69,.06),0 0 36px 12px rgba(35,178,69,.13);
  animation: welcomeSignalCore 5.2s ease-in-out infinite;
}
.field-welcome-card { position: relative; z-index: 1; }
.field-welcome.is-leaving::before,
.field-welcome.is-leaving::after { animation-play-state: paused; }
@keyframes welcomeSignalPulse {
  0%,100% { opacity: .34; transform: translate(-50%,-58%) scale(.7); filter: blur(1px); }
  50% { opacity: .6; transform: translate(-50%,-58%) scale(.76); filter: blur(.5px); }
}
@keyframes welcomeSignalCore {
  0%,100% { opacity: .42; transform: translate(-50%,-58%) scale(.82); }
  50% { opacity: .72; transform: translate(-50%,-58%) scale(1); }
}
.app-shell.is-welcome-pulsing .world-vector-intro {
  animation: worldSignalTransmit 5.2s ease-in-out infinite;
  transform-origin: 50% 50%;
}
.app-shell.is-welcome-pulsing .world-intro-contour {
  animation: worldSignalContour 5.2s ease-in-out infinite;
}
@keyframes worldSignalTransmit {
  0%,100% { opacity: .63; filter: drop-shadow(0 0 2px rgba(28,150,59,.04)); }
  50% { opacity: .82; filter: drop-shadow(0 0 7px rgba(28,150,59,.16)); }
}
@keyframes worldSignalContour {
  0%,100% { stroke: #455049; stroke-opacity: .34; }
  50% { stroke: #37804b; stroke-opacity: .56; }
}

.app-shell .map-title-line { display: flex; align-items: baseline; justify-content: center; gap: .28em; }
.app-shell .map-title-line b { font: inherit; font-weight: 600; letter-spacing: inherit; }
.app-shell.is-intro-sequenced:not(.is-reveal-title) :is(.title-general,.title-shared) { opacity: 0; }
.app-shell.is-intro-sequenced.is-reveal-title .title-general {
  animation: titleLensFocus 1.15s cubic-bezier(.16,1,.3,1) both;
}
.app-shell.is-intro-sequenced.is-reveal-title .title-shared {
  animation: titlePossibilityArrive .9s .92s ease both;
}
@keyframes titleLensFocus {
  from { opacity: 0; filter: blur(9px); transform: scale(1.025); }
  58% { opacity: 1; filter: blur(2px); }
  to { opacity: 1; filter: blur(0); transform: scale(1); }
}
@keyframes titlePossibilityArrive {
  from { opacity: 0; filter: blur(4px); transform: translateX(7px); }
  to { opacity: 1; filter: blur(0); transform: translateX(0); }
}

.app-shell.is-intro-sequenced.is-reveal-controls #map-views .view-button {
  animation: viewLensOpen .86s cubic-bezier(.16,1,.3,1) both;
}
.app-shell.is-intro-sequenced.is-reveal-controls #map-views .view-button:nth-of-type(2) { animation-delay: .12s; }
.app-shell.is-intro-sequenced.is-reveal-controls #map-views .view-button:nth-of-type(3) { animation-delay: .24s; }
.app-shell.is-intro-sequenced.is-reveal-controls #map-views .view-button:nth-of-type(4) { animation-delay: .36s; }
@keyframes viewLensOpen {
  from { opacity: 0; filter: blur(7px); transform: perspective(420px) scale(.72) rotateX(15deg); }
  68% { opacity: 1; filter: blur(.6px); transform: perspective(420px) scale(1.035) rotateX(0); }
  to { opacity: 1; filter: blur(0); transform: perspective(420px) scale(1) rotateX(0); }
}

@media (max-width: 760px) {
  .app-shell .map-title-line { flex-wrap: wrap; row-gap: 0; }
  .field-welcome::before { width: 92vw; }
}
@media (prefers-reduced-motion: reduce) {
  .field-welcome::before,.field-welcome::after,
  .field-welcome.is-visible .field-welcome-card :is(strong,small),
  .app-shell.is-welcome-pulsing :is(.world-vector-intro,.world-intro-contour),
  .app-shell.is-intro-sequenced.is-reveal-title :is(.title-general,.title-shared),
  .app-shell.is-intro-sequenced.is-reveal-controls #map-views .view-button { animation: none; opacity: 1; filter: none; transform: none; }
}
.network-milestones li.is-reached b { color: #08752a; }
.overall-pixel-flight { box-sizing: border-box; }

@media (max-width: 760px) {
  .build-key-mark { width: 54px; height: 27px; }
}
