:root {
  --blue: var(--aix-blue, #0021d8);
  --header-blue: var(--blue);
  --paper: #ffffff;
  --ink: #fff;
  --line: rgba(255, 255, 255, .24);
  --line-strong: rgba(255, 255, 255, .72);
  --soft: rgba(255, 255, 255, .1);
  --mono: "Geist", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --sans: "Geist", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html,
body {
  height: 100%;
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: var(--blue);
  color: var(--blue);
  font-family: var(--sans);
  font-weight: 300;
  overflow: hidden;
  overscroll-behavior: none;
}

a { color: currentColor; text-underline-offset: 4px; }
button, input, select { font: inherit; }

.page {
  height: 100vh;
  height: 100dvh;
  width: 100%;
  max-width: 100vw;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.page.deploy-simple {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  color: #fff;
  text-decoration: none;
}

main {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.field-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  height: 100%;
  min-height: 0;
  background: var(--blue);
  border-bottom: 1px solid var(--blue);
  overflow: hidden;
}

.page.is-history-mode:not(.is-text-mode) .field-layout {
  grid-template-columns: minmax(320px, 28vw) minmax(0, 1fr) minmax(300px, 360px);
}

.page.deploy-simple.is-history-mode:not(.is-text-mode) .field-layout {
  grid-template-columns: minmax(0, 1fr) min(var(--timeline-width, 0px), calc(100vw - 320px));
}

.page.deploy-simple .concept-panel {
  display: none;
}

.page:not(.is-history-mode) .viz-window,
.page:not(.is-history-mode) .timeline-side {
  display: none;
}

.concept-panel,
.viz-window,
.timeline-side {
  opacity: 0;
  animation: fieldContentIn 980ms ease-out 160ms forwards;
}

@keyframes fieldContentIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .concept-panel,
  .viz-window,
  .timeline-side {
    opacity: 1;
    animation: none;
  }
}

.concept-panel {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  color: var(--blue);
  border-right: 0;
}

.page.is-history-mode .concept-panel {
  border-right: 1px solid var(--blue);
}

.page.is-text-mode .field-layout {
  grid-template-columns: 1fr;
  background: var(--aix-readable-bg, #fbfbf8);
  color: var(--aix-readable-text, #000);
  overflow: hidden;
  overscroll-behavior: contain;
}

.page.is-text-mode .concept-panel {
  border-right: 0;
}

.page.is-text-mode .viz-window,
.page.is-text-mode .timeline-side {
  display: none;
}

.history-readable {
  display: none;
  align-self: start;
  width: min(720px, calc(100vw - (var(--aix-page-x, 48px) * 2)));
  margin-inline: auto;
  padding: 40px 0 32px;
  color: var(--aix-readable-text, #000);
  font-family: var(--aix-font-heading, var(--sans));
  font-weight: 400;
  letter-spacing: .03em;
}

.page.is-text-mode .history-readable {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  animation: none;
}

.history-mobile-back {
  display: none;
}

.history-readable-header {
  display: grid;
  gap: var(--aix-space-4, 16px);
  margin-bottom: 18px;
}

.history-readable-header h1 {
  margin: 0;
  font-family: var(--aix-font-heading, var(--sans));
  font-size: var(--aix-type-h1, 32px);
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: .03em;
}

.history-readable-header p {
  margin: 0;
  color: var(--aix-readable-muted, rgba(0, 0, 0, .58));
  font-size: var(--aix-type-body, 16px);
  font-weight: 400;
  line-height: var(--aix-leading-prose, 2.5);
}

.history-table-wrap {
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  border-block: 1px solid var(--aix-readable-line, rgba(0, 0, 0, .14));
  scrollbar-width: thin;
  scrollbar-color: rgba(31, 55, 134, .65) rgba(0, 0, 0, .08);
}

.history-table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.history-table-wrap::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, .08);
}

.history-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(31, 55, 134, .65);
  border-radius: 999px;
}

.history-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px 24px;
  margin: 0 0 14px;
}

.page.is-text-mode .history-readable > .aix-page-nav {
  margin-top: 12px;
}

.history-readable .aix-site-footer {
  display: none;
}

.history-readable .aix-site-footer-inner {
  width: 100%;
  padding: 20px;
}

.history-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 100%;
  min-width: 0;
}

.history-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 220px;
  min-height: 38px;
  border: 1px solid var(--aix-readable-line, rgba(0, 0, 0, .18));
  border-radius: 999px;
  padding: 0 14px;
  color: var(--aix-readable-muted, rgba(0, 0, 0, .58));
  background: var(--aix-readable-bg, #fbfbf7);
}

.history-search:focus-within {
  border-color: var(--aix-blue, #0021d8);
  color: var(--aix-readable-text, #000);
}

.history-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--aix-readable-text, #000);
  font: inherit;
  font-size: var(--aix-type-small, 13px);
  letter-spacing: .03em;
}

.history-search input::placeholder {
  color: var(--aix-readable-muted, rgba(0, 0, 0, .58));
}

.history-icon-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--aix-readable-line, rgba(0, 0, 0, .18));
  border-radius: 999px;
  background: var(--aix-readable-bg, #fbfbf7);
  color: var(--aix-readable-text, #000);
  padding: 0;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.history-icon-button:hover,
.history-icon-button[aria-expanded="true"] {
  border-color: #000;
  background: #000;
  color: #fff;
}

.history-tool-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.history-tool-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.history-tool-label {
  margin-right: 4px;
  color: var(--aix-readable-muted, rgba(0, 0, 0, .58));
  font-size: var(--aix-type-small, 13px);
  line-height: 1;
  white-space: nowrap;
}

.history-tool-button {
  appearance: none;
  border: 1px solid var(--aix-readable-line, rgba(0, 0, 0, .18));
  border-radius: 999px;
  background: transparent;
  color: var(--aix-readable-text, #000);
  padding: 8px 12px;
  font: inherit;
  font-size: var(--aix-type-small, 13px);
  line-height: 1;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.history-tool-button:hover {
  border-color: var(--aix-blue, #0021d8);
  color: var(--aix-blue, #0021d8);
}

.history-tool-button[aria-pressed="true"] {
  border-color: #000;
  background: #000;
  color: #fff;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: var(--aix-type-small, 13px);
  line-height: 1.75;
}

.history-table th,
.history-table td {
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
}

.history-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--aix-readable-bg, #fbfbf7);
  border-bottom: 1px solid var(--aix-readable-line, rgba(0, 0, 0, .14));
  color: var(--aix-readable-muted, rgba(0, 0, 0, .58));
  font-size: var(--aix-type-meta, 12px);
  font-weight: 400;
}

.history-table td {
  border-top: 1px solid var(--aix-readable-line, rgba(0, 0, 0, .14));
}

.history-table tbody tr:last-child td {
  border-bottom: 1px solid var(--aix-readable-line, rgba(0, 0, 0, .14));
}

.history-date {
  width: 82px;
  color: var(--aix-readable-muted, rgba(0, 0, 0, .58));
  white-space: nowrap;
}

.history-category {
  width: 126px;
  white-space: normal;
}

.history-author {
  width: 120px;
  color: var(--aix-readable-muted, rgba(0, 0, 0, .58));
  overflow-wrap: anywhere;
}

.history-source-cell {
  width: 78px;
  text-align: center;
  vertical-align: middle;
}

.history-title {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: .03em;
}

.history-event-content {
  min-width: 0;
  overflow-wrap: anywhere;
}

.history-detail {
  margin: 0;
  color: var(--aix-readable-muted, rgba(0, 0, 0, .58));
  font-size: var(--aix-type-small, 13px);
  font-weight: 400;
  line-height: 1.75;
}

.history-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  overflow: visible;
  white-space: normal;
}

.history-tag {
  display: inline-flex;
  flex: 0 1 auto;
  color: var(--aix-readable-muted, rgba(0, 0, 0, .58));
  font-size: var(--aix-type-meta, 12px);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.history-tag-primary {
  color: var(--aix-readable-text, #000);
}

.history-source {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 56px;
  min-height: 28px;
  border: 1px solid var(--aix-readable-line, rgba(0, 0, 0, .18));
  border-radius: 999px;
  color: currentColor;
  padding: 4px 8px;
  font-size: var(--aix-type-meta, 12px);
  font-weight: 400;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
  transition: border-color 140ms ease, color 140ms ease;
}

.history-source:hover {
  border-color: var(--aix-blue, #0021d8);
  color: var(--aix-blue, #0021d8);
}

.history-empty {
  color: var(--aix-readable-muted, rgba(0, 0, 0, .58));
  font-size: var(--aix-type-body, 16px);
  line-height: var(--aix-leading-body, 1.9);
}

.concept-map {
  position: absolute;
  top: 8%;
  left: 6%;
  width: min(320px, 86%);
  height: min(360px, 52%);
  min-height: 320px;
  color: var(--blue);
  z-index: 2;
  transition: opacity 180ms ease, transform 180ms ease;
}

.concept-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  opacity: 1;
  transition: opacity 160ms ease;
}

.concept-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.55;
  vector-effect: non-scaling-stroke;
  opacity: 1;
  transition: opacity 160ms ease;
}

.concept-line.is-hidden {
  opacity: 0;
}

.concept-nodes {
  position: absolute;
  inset: 0;
}

.concept-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 40px;
  border: 1.4px solid var(--blue);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  padding: 9px 20px;
  font: 300 15px/1 var(--mono);
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transform: translate(-50%, -50%);
  opacity: 1;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, opacity 160ms ease;
}

.concept-node.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.concept-node.is-active {
  background: var(--blue);
  color: #fff;
  z-index: 3;
}

.concept-node[data-level="0"] {
  min-width: 94px;
  min-height: 50px;
  font-size: 17px;
}

.concept-node[data-level="1"] {
  min-width: 74px;
  min-height: 40px;
  border-color: rgba(36, 68, 160, .86);
  font-size: 13px;
}

.concept-node.is-dragging {
  cursor: grabbing;
  transition: none;
}

.concept-rock {
  position: absolute;
  left: 7%;
  bottom: 4%;
  z-index: 1;
  width: min(340px, 74%);
  aspect-ratio: 1 / .95;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

#concept-rock {
  display: block;
  width: 100%;
  height: 100%;
}

.concept-text {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 12% 10%;
  background: #fff;
  color: var(--blue);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.page.is-text-mode .concept-text {
  justify-content: center;
  padding: 8% max(32px, 12vw);
}

.page.is-text-mode .concept-text p {
  max-width: 44em;
}

.concept-text h1 {
  margin: 0;
  font: 300 clamp(32px, 4.4vw, 58px)/1.08 var(--mono);
  letter-spacing: 0;
}

.concept-text p {
  margin: 0;
  max-width: 22em;
  font: 300 16px/1.9 var(--sans);
}

.concept-text-links {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  font: 300 16px/1.4 var(--sans);
}

.page.is-text-mode .concept-map,
.page.is-text-mode .concept-rock {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.page.is-text-mode .concept-text {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.viz-window {
  position: relative;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  border-right: 1px solid #fff;
}

#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: default;
  touch-action: none;
}

#scene.is-rotating {
  cursor: grabbing;
}

#scene.is-selecting { cursor: crosshair !important; }
.timeline-selection-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}
.timeline-selection-overlay[hidden],
.timeline-selection-tools[hidden],
.timeline-selection-tools [hidden] { display: none !important; }
.timeline-selection-rings { fill: none; stroke: #fff; stroke-width: 1.2; opacity: .88; }
.timeline-selection-box { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.85); stroke-width: 1; stroke-dasharray: 4 3; }
.timeline-selection-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #fff;
  font-size: .7rem;
  line-height: 1.5;
  pointer-events: auto;
}
.timeline-selection-tools button {
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
.timeline-selection-tools button:hover,
.timeline-selection-tools button[aria-pressed="true"] { background: #fff; color: var(--blue); }
.timeline-selection-tools button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.timeline-selection-status { font-variant-numeric: tabular-nums; }
.timeline-selection-hint {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.timeline-selection-copy-text { width: 100%; min-height: 120px; font-size: 13px; color: #fff; background: var(--blue); border: 1px solid #fff; }
@media (max-width: 720px) {
  .timeline-selection-tools { gap: 6px; font-size: 11px; }
  .timeline-selection-tools button { min-height: 36px; padding: 6px 9px; }
}

.hud {
  position: absolute;
  z-index: 4;
  top: 18px;
  left: 24px;
  display: grid;
  gap: 12px;
  width: min(360px, calc(100% - 48px));
  pointer-events: none;
  font-family: var(--mono);
}

.title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.15rem, 2.2vw, 2rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: .04em;
}

.subtitle {
  margin: 0;
  max-width: 42em;
  color: rgba(255, 255, 255, .72);
  font-size: .66rem;
  font-weight: 300;
  letter-spacing: .05em;
  line-height: 1.55;
  text-transform: uppercase;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: auto;
}

.controls button {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(36, 68, 160, .24);
  color: #fff;
  cursor: pointer;
  padding: 5px 9px;
  font: 300 .62rem/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.controls button[aria-pressed="true"] {
  background: #fff;
  color: var(--blue);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 300 .62rem/1.2 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.scale-control {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(280px, 100%);
  color: rgba(255, 255, 255, .64);
  pointer-events: auto;
  font: 300 .56rem/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.scale-control input {
  width: 100%;
  height: 18px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: ew-resize;
}

.scale-control input::-webkit-slider-runnable-track {
  height: 1px;
  background: rgba(255, 255, 255, .42);
}

.scale-control input::-webkit-slider-thumb {
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, .28);
}

.scale-control input::-moz-range-track {
  height: 1px;
  background: rgba(255, 255, 255, .42);
}

.scale-control input::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, .28);
}

.scale-value {
  min-width: 2.4em;
  text-align: right;
  color: rgba(255, 255, 255, .5);
}

.panel {
  position: absolute;
  z-index: 4;
  right: 24px;
  bottom: 24px;
  width: min(420px, calc(100% - 48px));
  height: 194px;
  border: 1px solid var(--line-strong);
  background: rgba(36, 68, 160, .66);
  color: var(--ink);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .14);
  font-family: var(--mono);
  overflow: hidden;
}

.panel-body {
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  align-content: start;
  gap: 7px;
  height: 100%;
  padding: 16px 18px 18px;
}

.eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, .66);
  font-size: .62rem;
  font-weight: 300;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.selected-title {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.3;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.selected-meta,
.selected-detail,
.selected-source {
  margin: 0;
  font-size: .72rem;
  font-weight: 300;
  line-height: 1.45;
}

.selected-meta {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.selected-detail {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 300;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: calc(1.45em * 2);
}

.selected-source {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status {
  position: absolute;
  z-index: 4;
  left: 24px;
  bottom: 20px;
  color: rgba(255, 255, 255, .72);
  font: 300 .62rem/1.5 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  pointer-events: none;
}

.page.deploy-simple .panel {
  right: auto;
  left: 24px;
  bottom: 24px;
  width: min(520px, calc(100% - 48px));
  height: auto;
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  pointer-events: none;
}

.page.deploy-simple .panel-body {
  gap: 5px;
  height: auto;
  padding: 0;
}

.page.deploy-simple .eyebrow {
  display: none;
}

.page.deploy-simple .selected-source {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
}

.page.deploy-simple .selected-source a {
  pointer-events: auto;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.page.deploy-simple .selected-title {
  color: #fff;
  font-size: 1rem;
  line-height: 1.32;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .3);
  -webkit-line-clamp: 2;
}

.page.deploy-simple .selected-meta {
  color: rgba(255, 255, 255, .84);
  font-size: .68rem;
  line-height: 1.45;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .26);
  -webkit-line-clamp: 1;
}

.page.deploy-simple .selected-detail {
  min-height: 0;
  color: rgba(255, 255, 255, .9);
  font-size: .76rem;
  line-height: 1.55;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .26);
}

.timeline-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -5px;
  width: 10px;
  z-index: 10;
  cursor: col-resize;
  touch-action: none;
}

.timeline-divider::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 4px;
  width: 1px;
  background: rgba(255, 255, 255, .45);
}

.timeline-divider:hover::after,
.timeline-divider:focus-visible::after,
.timeline-side.is-resizing .timeline-divider::after {
  width: 2px;
  background: #fff;
}

.timeline-divider:focus-visible { outline: none; }
.timeline-side.is-collapsed .timeline-table { visibility: hidden; }
.timeline-side.is-collapsed .timeline-divider { left: -10px; }
.explore-controls[hidden] { display: none; }
body.is-resizing-timeline { cursor: col-resize; user-select: none; }

.timeline-side {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--blue);
  border-left: 0;
}

.explore-controls { padding: 12px 16px 0; min-width: 0; }
.explore-controls select { width: 100%; color: #fff; background: var(--blue); border: 0; border-bottom: 1px solid var(--line-soft); padding: 8px 0; font-size: 15px; }
.explore-modes { display: flex; gap: 16px; margin-top: 12px; }
.explore-modes button { background: none; color: rgba(255,255,255,.65); border: 0; padding: 8px 0; cursor: pointer; font-size: 13px; }
.explore-modes button[aria-pressed="true"] { color: #fff; border-bottom: 1px solid #fff; }
.explore-intro, .explore-note { font-size: 12px; line-height: 1.8; color: rgba(255,255,255,.7); margin: 10px 0; }
.explore-content { padding: 16px; color: #fff; }
.explore-content h3 { font-size: 17px; font-weight: 400; margin: 0 0 8px; }
.explore-content h4 { font-size: 14px; font-weight: 400; margin: 22px 0 6px; }
.explore-content p { font-size: 13px; line-height: 1.8; }
.explore-content .timeline-row { padding: 12px 0; display: block; }
.explore-content .timeline-title { white-space: normal; }
.explore-content .timeline-meta { margin-top: 5px; }
.explore-content a { font-size: 12px; }
.explore-content label { display: block; margin-top: 18px; font-size: 14px; }
.explore-content textarea { display: block; resize: vertical; width: 100%; min-height: 64px; padding: 8px; color: #fff; background: transparent; border: 1px solid var(--line-soft); font: inherit; font-size: 14px; }
.explore-content input[type="range"] { width: 100%; accent-color: white; }
.explore-content output { float: right; font-size: 12px; color: rgba(255,255,255,.7); }
.agent-scene { padding: 22px 20px 32px; }
.agent-scene h3 { font-size: 24px; margin-bottom: 22px; }
.agent-scene p { font-size: 16px; line-height: 1.9; margin: 18px 0; }
.agent-scene h4 { font-size: 18px; line-height: 1.6; margin: 28px 0 14px; }
.agent-scene .explore-note { font-size: 12px; }
.agent-actions { display: grid; gap: 10px; }
.agent-actions button { width: 100%; padding: 14px 12px; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.4); text-align: left; font: inherit; font-size: 15px; line-height: 1.6; cursor: pointer; }
.agent-actions button:hover { border-color: #fff; }
.agent-actions button:focus:not(:focus-visible) { outline: none; }
.agent-actions button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.agent-actions button[aria-pressed="true"] { border-color: #fff; }
#agent-outcome:not(:empty) { margin-top: 28px; padding-top: 2px; border-top: 1px solid rgba(255,255,255,.35); }
.agent-evidence { margin-top: 32px; font-size: 13px; }
.agent-evidence summary { cursor: pointer; line-height: 1.7; }
.explore-action { background: transparent; border: 1px solid var(--line); color: #fff; padding: 10px 14px; cursor: pointer; margin: 16px 0 8px; }
.scenario-detail { border-top: 1px dashed rgba(255,255,255,.6); margin-top: 18px; padding-top: 12px; }
.timeline-side.is-collapsed .explore-controls { visibility: hidden; }
.timeline-search-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); min-width: 0; }
.timeline-search-bar input { min-width: 0; width: 100%; color: white; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.45); border-radius: 0; padding: 7px 0; font: inherit; font-size: 16px; }
.timeline-search-bar input::placeholder { color: rgba(255,255,255,.7); }
.timeline-search-bar input:focus { outline: none; }
body.keyboard-navigation .timeline-search-bar input:focus-visible { outline: 1px solid white; outline-offset: 4px; }
.timeline-search-bar[hidden] { display: none; }
.timeline-search-count { color: #fff; white-space: nowrap; font-size: 12px; opacity: .8; }
.timeline-search-empty { padding: 20px 16px; font-size: 14px; }
.timeline-side.is-collapsed .timeline-search-bar { visibility: hidden; }

.timeline-table {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: none;
  overflow-anchor: none;
  scrollbar-color: rgba(255,255,255,.72) transparent;
}

.timeline-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
}

.timeline-date {
  color: rgba(255, 255, 255, .7);
  font-size: 11px;
  line-height: 1.35;
}

.timeline-title {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-meta {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: rgba(255, 255, 255, .62);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-footer {
  display: none;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 128px;
  border-top: 1px solid #fff;
  background: var(--blue);
  color: #fff;
  padding: 30px 32px;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 42px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 21px;
  line-height: 1;
  white-space: nowrap;
}

.footer-brand small {
  font-size: 12px;
}

.loading {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font: 300 .82rem/1.5 var(--mono);
  opacity: 1;
  transition: opacity 420ms ease;
  pointer-events: none;
}

.loader-field {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: auto;
  height: auto;
}

.loader-axis {
  display: none;
}

.loader-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
  opacity: .92;
}

.loader-label {
  display: none;
}

.loading.is-error .loader-field {
  height: auto;
  text-align: center;
}

.loading.is-error .loader-axis,
.loading.is-error .loader-dot {
  display: none;
}

.loading.is-error .loader-label {
  position: static;
  display: block;
  color: #fff;
  font-size: 13px;
  line-height: 1.7;
  transform: none;
}

.loading.is-leaving {
  opacity: 0;
}

.loading[hidden] { display: none; }

@media (max-width: 720px) {
  .brand {
    gap: 8px;
  }

  .page.deploy-simple .brand {
    gap: 8px;
  }

  .field-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
  }

  .page.deploy-simple.is-history-mode:not(.is-text-mode) .field-layout {
    grid-template-columns: 1fr;
  }

  .page.deploy-simple.is-history-mode:not(.is-text-mode) .viz-window,
  .page.deploy-simple.is-history-mode:not(.is-text-mode) #scene {
    display: block;
  }

  .viz-window {
    border-right: 0;
    border-bottom: 0;
  }

  .concept-panel,
  .timeline-side,
  .site-footer {
    display: none;
  }

  .hud {
    top: 16px;
    left: 16px;
    width: calc(100% - 32px);
    gap: 10px;
  }

  .page.deploy-simple:not(.is-text-mode) .controls {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .page.deploy-simple:not(.is-text-mode) .controls button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 34px;
    padding: 8px 3px;
    font-size: .54rem;
    line-height: 1;
    letter-spacing: 0;
    touch-action: manipulation;
  }

  .page.deploy-simple:not(.is-text-mode) .legend {
    display: none;
  }

  .page.deploy-simple:not(.is-text-mode) .scale-control {
    grid-template-columns: auto minmax(124px, 1fr) auto;
    gap: 10px;
    width: min(360px, 100%);
    font-size: .62rem;
    letter-spacing: .04em;
  }

  .page.deploy-simple:not(.is-text-mode) .scale-control input {
    height: 38px;
  }

  .page.deploy-simple:not(.is-text-mode) .scale-control input::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    margin-top: -7px;
  }

  .page.deploy-simple:not(.is-text-mode) .scale-control input::-moz-range-thumb {
    width: 16px;
    height: 16px;
  }

  .panel {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
    height: 176px;
  }

  .page.deploy-simple:not(.is-text-mode) .panel {
    right: 16px;
    bottom: 18px;
    left: 16px;
    width: auto;
    height: auto;
    min-height: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
  }

  .status {
    display: none;
  }

  .panel-body {
    gap: 6px;
    padding: 12px 14px 13px;
  }

  .page.deploy-simple:not(.is-text-mode) .panel-body {
    gap: 4px;
    height: auto;
    padding: 0;
  }

  .page.deploy-simple:not(.is-text-mode) .eyebrow {
    display: none;
  }

  .selected-title {
    font-size: .92rem;
    -webkit-line-clamp: 1;
  }

  .page.deploy-simple:not(.is-text-mode) .selected-title {
    font-size: 1rem;
    line-height: 1.28;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .3);
    -webkit-line-clamp: 2;
  }

  .selected-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page.deploy-simple:not(.is-text-mode) .selected-meta {
    color: rgba(255, 255, 255, .82);
    font-size: .68rem;
    line-height: 1.4;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .26);
    -webkit-line-clamp: 1;
  }

  .selected-detail {
    font-size: .78rem;
    line-height: 1.45;
    min-height: calc(1.45em * 2);
  }

  .page.deploy-simple:not(.is-text-mode) .selected-detail {
    min-height: 0;
    color: rgba(255, 255, 255, .9);
    font-size: .76rem;
    line-height: 1.5;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .26);
    -webkit-line-clamp: 2;
  }

  .page.is-text-mode .field-layout {
    overflow: hidden;
  }

  .page.is-text-mode .history-readable {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    width: min(var(--aix-prose-width, 640px), calc(100vw - (var(--aix-page-x, 16px) * 2)));
    height: 100%;
    min-height: 0;
    padding-block: 32px 96px;
  }

  .history-readable-header {
    margin-bottom: 24px;
  }

  .history-tools {
    display: grid;
    width: 100%;
    min-width: 0;
    align-items: stretch;
    justify-content: stretch;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin: 0 0 12px;
  }

  .history-toolbar {
    grid-column: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }

  .history-search {
    grid-column: 1;
    min-width: 0;
    width: 100%;
    min-height: 44px;
    padding-inline: 12px;
  }

  .history-icon-button {
    display: inline-flex;
    width: 44px;
    height: 44px;
  }

  .history-icon-button[data-history-tool="sort"] .history-tool-icon {
    transition: transform 140ms ease;
  }

  .history-icon-button[data-history-tool="sort"][data-sort-direction="asc"] .history-tool-icon {
    transform: rotate(180deg);
  }

  .history-tool-icon {
    width: 17px;
    height: 17px;
  }

  .history-tool-group {
    grid-column: 1;
    width: 100%;
    min-width: 0;
    display: none;
    align-items: center;
    gap: 6px;
    padding: 0 1px;
  }

  .history-tool-group.is-open {
    display: flex;
    flex-wrap: wrap;
  }

  .history-tool-group[data-history-panel="sort"] {
    display: none !important;
  }

  .history-tool-label {
    margin: 0 2px 0 0;
    font-size: 11px;
  }

  .history-tool-button {
    min-height: 28px;
    padding: 5px 9px;
    font-size: 11px;
  }

  .history-table-wrap {
    height: 100%;
    max-height: none;
    min-height: 0;
    overflow: auto;
  }

  .history-table th,
  .history-table td {
    padding: 11px 6px;
  }

  .history-date {
    width: 70px;
    font-size: 11px;
    line-height: 1.55;
  }

  .history-category {
    width: 48px;
    font-size: 11px;
    line-height: 1.55;
  }

  .history-tags {
    align-items: center;
    gap: 4px;
    margin-top: 0;
  }

  .history-tag {
    font-size: 11px;
    line-height: 1;
  }

  .history-title {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
  }

  .history-detail,
  .history-author,
  .history-source-cell {
    display: none;
  }

  .history-readable > .aix-page-nav {
    display: none;
  }

  .history-readable .aix-site-footer {
    display: none;
  }

  .page.is-text-mode .history-mobile-back {
    position: fixed;
    right: auto;
    bottom: calc(90px + max(18px, env(safe-area-inset-bottom)));
    left: max(16px, var(--aix-page-x, 16px));
    z-index: 30;
    display: grid;
    align-content: center;
    gap: var(--aix-space-2, 8px);
    width: calc(100vw - (max(16px, var(--aix-page-x, 16px)) * 2));
    min-height: 64px;
    max-height: none;
    padding: var(--aix-space-3, 12px) var(--aix-space-4, 16px);
    background: var(--aix-readable-bg, #fbfbf8);
    color: var(--aix-readable-text, #000);
    border: 1px solid rgba(31, 55, 134, .16);
    border-radius: 12px;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: hidden;
  }

  .page.is-text-mode .history-mobile-back::before {
    content: none;
  }

  .page.is-text-mode .history-mobile-back:hover {
    border-color: rgba(31, 55, 134, .48);
    color: var(--aix-blue, #0021d8);
    transform: translateY(-1px);
  }

  .page.is-text-mode .history-mobile-back .aix-page-nav-label,
  .page.is-text-mode .history-mobile-back .aix-page-nav-title {
    text-decoration: none;
  }

  .page.is-text-mode .history-mobile-back .aix-page-nav-label {
    color: var(--aix-readable-text, #000);
    font-size: var(--aix-type-small, 13px);
    line-height: 1;
  }

  .page.is-text-mode .history-mobile-back .aix-page-nav-title {
    min-width: 0;
    font-size: var(--aix-type-body, 16px);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

}

@media (max-width: 420px) {
  .page.deploy-simple .brand {
    flex: 1 1 auto;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
  }

  .page.deploy-simple .hud {
    top: 12px;
    left: 12px;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    gap: 8px;
  }

  .page.deploy-simple .controls {
    gap: 7px;
  }

  .page.deploy-simple .controls button {
    min-height: 40px;
    padding: 9px 12px;
    font-size: .6rem;
    line-height: 1.1;
    letter-spacing: .04em;
    touch-action: manipulation;
  }

  .page.deploy-simple:not(.is-text-mode) .controls button {
    min-height: 34px;
    padding: 8px 3px;
    font-size: .54rem;
    line-height: 1;
    letter-spacing: 0;
  }

  .page.deploy-simple .legend {
    gap: 6px 9px;
    font-size: .58rem;
    letter-spacing: .03em;
  }

  .page.deploy-simple .scale-control {
    grid-template-columns: auto minmax(116px, 1fr) auto;
    gap: 8px;
    width: min(330px, 100%);
    font-size: .56rem;
    color: rgba(255, 255, 255, .54);
  }

  .page.deploy-simple .scale-control input {
    height: 36px;
    cursor: pointer;
  }

  .page.deploy-simple .scale-control input::-webkit-slider-runnable-track {
    height: 1px;
    background: rgba(255, 255, 255, .42);
  }

  .page.deploy-simple .scale-control input::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    margin-top: -6px;
    border-width: 1px;
    box-shadow: 0 0 16px rgba(255, 255, 255, .28);
  }

  .page.deploy-simple .scale-control input::-moz-range-track {
    height: 1px;
    background: rgba(255, 255, 255, .42);
  }

  .page.deploy-simple .scale-control input::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-width: 1px;
    box-shadow: 0 0 16px rgba(255, 255, 255, .28);
  }

  .page.deploy-simple .scale-value {
    color: rgba(255, 255, 255, .42);
  }

  .page.deploy-simple .panel {
    right: 20px;
    left: 20px;
    bottom: 18px;
    width: auto;
    height: auto;
    min-height: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .page.deploy-simple .panel-body {
    gap: 5px;
    height: auto;
    padding: 0;
  }

  .page.deploy-simple .eyebrow {
    font-size: .58rem;
    color: rgba(255, 255, 255, .56);
  }

  .page.deploy-simple .selected-title {
    font-size: 1rem;
    line-height: 1.32;
    -webkit-line-clamp: 1;
  }

  .page.deploy-simple .selected-meta {
    font-size: .68rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, .86);
    -webkit-line-clamp: 1;
  }

  .page.deploy-simple .selected-detail {
    min-height: 0;
    font-size: .76rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, .9);
  }

  .page.deploy-simple .selected-source {
    font-size: .68rem;
  }

}


.page.deploy-simple .panel.world-detail-accessible {
  width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%);
  pointer-events:none;
}
@media(max-width:720px) {
  .page.deploy-simple .panel.world-detail-accessible {
    left:16px; right:16px; bottom:calc(var(--aix-footer-height, 88px) + max(30px,env(safe-area-inset-bottom)));
    width:auto; height:auto; padding:12px 0 0; clip-path:none; overflow:visible;
    border-top:1px solid #ffffff38; z-index:5;
    background:transparent;
  }
  .page.deploy-simple .panel.world-detail-accessible.is-caption-hidden { visibility:hidden; }
  .page.deploy-simple .world-detail-accessible .panel-body { display:flex; flex-direction:column; gap:4px; }
  .page.deploy-simple .world-detail-accessible .selected-meta {
    order:-1; display:block; font-size:10px; line-height:1.5; color:#ffffffa6;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-shadow:none;
  }
  .page.deploy-simple .world-detail-accessible .selected-title {
    font-size:14px; line-height:1.5; font-weight:400; -webkit-line-clamp:2; text-shadow:none;
  }
  .page.deploy-simple .world-detail-accessible .selected-detail {
    font-size:12px; line-height:1.6; -webkit-line-clamp:2; text-shadow:none;
  }
  .page.deploy-simple .world-detail-accessible .selected-source {
    font-size:10px; line-height:1.6; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }
  .page.deploy-simple .world-detail-accessible .selected-source a {
    display:block; width:fit-content; max-width:100%; min-height:24px;
    padding:4px 0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  }
  .world-detail-accessible nav, .world-detail-accessible .image-credit { display:none; }
}
.timeline-month { position:sticky; top:0; z-index:2; margin:0; padding:9px 16px; background:var(--blue); color:white; font:500 14px/1.4 var(--sans); border-bottom:1px solid rgba(255,255,255,.35); }
.timeline-title { white-space:normal; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; font-size:16px; line-height:1.5; overflow-wrap:anywhere; }
.timeline-date { font-size:12px; color:rgba(255,255,255,.9); }
.timeline-meta { font-size:12px; color:rgba(255,255,255,.8); }
@media(max-width:720px) {
}

.explore-content .explore-row, .explore-content [data-property-back] { display:block; width:100%; text-align:left; background:transparent; color:inherit; border:0; border-bottom:1px solid #ffffff26; padding:14px 0; font:inherit; cursor:pointer; }
.explore-content .explore-row:hover { background:#ffffff0d; }
.explore-content .explore-row small { opacity:.65; }
.timeline-search-bar[hidden] { display:none; }

.viz-window .panel[hidden] { display:none !important; }
.map-caption { color:#fff; display:flex; flex-direction:column; gap:5px; margin-top:14px; font-size:12px; line-height:1.5; opacity:.8; }
.map-caption[hidden] { display:none; }
.map-caption a { color:inherit; }
.map-caption small { opacity:.65; }
.map-attribution { position:absolute; right:12px; bottom:10px; z-index:3; font:10px/1.4 var(--sans); color:#fff; opacity:.65; }
.map-attribution[hidden] { display:none; }
.map-attribution a { color:inherit; text-decoration:none; }
.map-attribution a:hover { text-decoration:underline; }
@media(max-width:700px) { .map-caption { max-width:240px; font-size:10px; } }
