:root {
  --seed-red: #aa003d;
  --seed-red-deep: #82002f;
  --seed-red-soft: #f7e7ed;
  --seed-olive: #999873;
  --seed-blue: #a7c9e2;
  --seed-orange: #eba129;
  --seed-ink: #191a1e;
  --seed-ink-2: #3e4249;
  --seed-muted: #747a83;
  --seed-line: #e5e6e4;
  --seed-line-strong: #d8dad8;
  --seed-canvas: #eeefec;
  --seed-surface: #ffffff;
  --seed-surface-soft: #f6f6f3;
  --seed-surface-warm: #faf9f6;
  --seed-shadow: 0 24px 70px rgba(24, 26, 29, .10);
  --seed-shadow-soft: 0 10px 30px rgba(24, 26, 29, .07);
  --seed-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --panel-width: 390px;
  --top-height: 74px;
  --tab-height: 62px;
  --footer-height: 46px;
  --panel-gutter: 22px;
  --canvas-gutter: 22px;
  --supported: #667967;
  --proposition: #a66f37;
  --question: #6f7392;
  --danger: #9a4f49;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}
html { color-scheme: light; }
body {
  color: var(--seed-ink);
  background:
    radial-gradient(circle at 4% 8%, rgba(167, 201, 226, .20), transparent 28%),
    radial-gradient(circle at 92% 92%, rgba(235, 161, 41, .08), transparent 24%),
    var(--seed-canvas);
  font-family: var(--seed-font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; }
a { color: inherit; }
::selection { color: var(--seed-ink); background: rgba(167, 201, 226, .42); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(167, 201, 226, .50);
  outline-offset: 2px;
}
button svg, a svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* SEED shell */
.app-shell {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: var(--panel-width) minmax(0, 1fr);
  gap: 12px;
  width: 100vw;
  height: 100dvh;
  min-height: 0;
  padding: 14px;
  overflow: hidden;
  transition: grid-template-columns 240ms ease, gap 240ms ease;
}
.app-shell.panel-collapsed { grid-template-columns: 0 minmax(0, 1fr); gap: 0; }

.control-panel,
.visualisation {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(24, 26, 29, .07);
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--seed-shadow);
}
.control-panel {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 240ms ease, opacity 160ms ease;
}
.panel-collapsed .control-panel { transform: translateX(-110%); opacity: 0; pointer-events: none; }

.brand-header {
  flex: 0 0 var(--top-height);
  height: var(--top-height);
  min-height: var(--top-height);
  display: flex;
  align-items: center;
  padding: 0 var(--panel-gutter);
  border-bottom: 1px solid rgba(229, 230, 228, .88);
  background: rgba(255, 255, 255, .90);
}
.brand-lockup { min-width: 0; display: flex; align-items: center; gap: 11px; }
.brand-symbol { width: 48px; height: 48px; flex: 0 0 48px; display: block; object-fit: contain; }
.brand-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.brand-copy strong { color: var(--seed-ink); font-size: 17px; font-weight: 790; line-height: 1; letter-spacing: -.4px; white-space: nowrap; }
.brand-copy span { color: #6f7480; font-size: 10px; font-weight: 720; line-height: 1; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }

.panel-tabs {
  flex: 0 0 var(--tab-height);
  width: 100%;
  height: var(--tab-height);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px var(--panel-gutter);
  border-bottom: 1px solid rgba(229, 230, 228, .88);
}
.panel-tab {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 14px;
  color: #7d8289;
  background: transparent;
  font-size: 11.75px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: -.015em;
  transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}
.panel-tab:hover { color: var(--seed-ink); background: var(--seed-surface-soft); }
.panel-tab.active {
  color: var(--seed-red);
  background: linear-gradient(180deg, rgba(170, 0, 61, .09), rgba(170, 0, 61, .08));
  box-shadow: inset 0 0 0 1px rgba(170, 0, 61, .08);
}

.panel-scroll {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.panel-section {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  padding: 28px var(--panel-gutter) 78px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #d2d4d2 transparent;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}
.panel-section::-webkit-scrollbar { width: 9px; }
.panel-section::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 999px; background: #d2d4d2; background-clip: padding-box; }
.panel-section.active { display: block; }

.eyebrow {
  display: block;
  margin: 0 0 7px;
  color: var(--seed-red);
  font-size: 9px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.section-intro { margin-bottom: 25px; }
.section-intro h1,
.map-overview h1 {
  margin: 0 0 11px;
  color: var(--seed-ink);
  font-size: 27px;
  line-height: 1.06;
  font-weight: 780;
  letter-spacing: -.04em;
}
.section-intro p,
.map-overview > p {
  margin: 0;
  color: var(--seed-muted);
  font-size: 12.5px;
  line-height: 1.58;
}
.field-label { display: block; margin-bottom: 7px; color: #555a61; font-size: 11px; font-weight: 730; }
.input-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  min-height: 46px;
  overflow: hidden;
  border: 1px solid var(--seed-line-strong);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(24, 26, 29, .025);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input-shell:hover { border-color: #c6c9c6; }
.input-shell:focus-within { border-color: rgba(170, 0, 61, .36); box-shadow: 0 0 0 4px rgba(170, 0, 61, .06), 0 7px 18px rgba(24, 26, 29, .035); }
.input-shell input { min-width: 0; height: 46px; padding: 0 13px; border: 0; outline: 0; color: var(--seed-ink); background: transparent; font-size: 12px; }
.input-shell input::placeholder { color: #a0a4aa; }
.icon-submit { width: 46px; height: 46px; display: grid; place-items: center; border: 0; color: #fff; background: var(--seed-red); }
.icon-submit:hover { background: var(--seed-red-deep); }
.icon-submit:disabled { opacity: .46; cursor: default; }
.icon-submit svg { width: 17px; height: 17px; stroke-width: 2; }

.source-options { margin: 10px 0 0; border-bottom: 1px solid var(--seed-line); }
.source-options summary {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  color: #6e747c;
  font-size: 11px;
  font-weight: 720;
  cursor: pointer;
}
.source-options summary::-webkit-details-marker { display: none; }
.source-options summary::before { content: "▸"; margin-right: 5px; color: #7b8086; transition: transform .15s ease; }
.source-options[open] summary::before { transform: rotate(90deg); }
.source-options summary span { margin-left: auto; color: #a0a4aa; font-size: 9px; font-weight: 650; }
.connector-list { display: grid; gap: 2px; padding: 2px 0 12px 18px; }
.connector { min-height: 26px; display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 7px; color: #8a8f96; }
.connector i { width: 6px; height: 6px; border-radius: 50%; background: #c6c9c7; }
.connector.active i { background: var(--supported); }
.connector strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9.5px; font-weight: 650; }
.connector em { font-style: normal; font-size: 8px; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; }
.connector.active em { color: var(--supported); }
.panel-divider { height: 1px; margin: 22px 0; background: var(--seed-line); }
.subsection-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.subsection-heading .eyebrow { margin-bottom: 4px; }
.subsection-heading h2 { margin: 0; color: var(--seed-ink); font-size: 18px; font-weight: 730; letter-spacing: -.03em; }
.section-count { flex: 0 0 auto; padding-bottom: 2px; color: #969aa0; font-size: 9px; font-weight: 700; }

.object-list { display: grid; gap: 8px; }
.empty-state { color: var(--seed-muted); font-size: 11px; line-height: 1.5; }
.empty-state > p { margin: 0; }
.object-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  min-height: 66px;
  padding: 8px 34px 8px 8px;
  border: 1px solid var(--seed-line);
  border-radius: 14px;
  background: #fff;
  transition: transform .14s ease, border-color .15s ease, box-shadow .15s ease;
}
.object-card:hover { transform: translateY(-1px); border-color: #cfd1cf; box-shadow: 0 8px 20px rgba(24, 26, 29, .05); }
.object-thumb { width: 48px; height: 48px; overflow: hidden; border-radius: 10px; background: var(--seed-surface-soft); }
.object-thumb img { width: 100%; height: 100%; display: block; object-fit: contain; }
.object-thumb.placeholder { display: grid; place-items: center; color: #9ea2a7; font-size: 8px; font-weight: 800; }
.object-copy { min-width: 0; align-self: center; }
.object-number { display: block; margin-bottom: 3px; color: #969ba1; font-size: 7.8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.object-card h3 { margin: 0 0 3px; color: var(--seed-ink-2); font-size: 10.5px; line-height: 1.3; font-weight: 720; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.object-card p { margin: 0; color: #8a8f96; font-size: 8.5px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.remove-object { position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 9px; color: #999da2; background: transparent; font-size: 17px; line-height: 1; }
.remove-object:hover { color: var(--seed-red); background: var(--seed-red-soft); }
.primary-button {
  width: 100%;
  min-height: 46px;
  margin-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px 0 15px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--seed-red);
  box-shadow: 0 9px 24px rgba(170, 0, 61, .17);
  font-size: 12px;
  font-weight: 760;
  transition: transform .14s ease, background .15s ease, box-shadow .15s ease;
}
.primary-button:hover:not(:disabled) { background: var(--seed-red-deep); transform: translateY(-1px); }
.primary-button:disabled { opacity: .34; box-shadow: none; cursor: default; }
.primary-button svg { width: 16px; height: 16px; }
.form-note { margin: 11px 10px 0; color: #989ca2; font-size: 9.5px; line-height: 1.5; text-align: center; }

.questions { display: grid; gap: 8px; }
.question-item { padding: 12px 13px; border: 1px solid var(--seed-line); border-radius: 14px; color: #5a6067; background: var(--seed-surface-warm); font-size: 10.5px; line-height: 1.5; }
.question-item .object-number { margin-bottom: 6px; color: var(--seed-red); }

/* Explore panel */
.map-overview { padding-top: 0; }
.overview-key { display: grid; gap: 9px; margin-top: 22px; padding: 14px; border: 1px solid var(--seed-line); border-radius: 14px; background: var(--seed-surface-soft); }
.overview-key > div { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 9px; align-items: center; color: #767b82; font-size: 9.5px; line-height: 1.3; }
.overview-key span { display: grid; gap: 1px; }
.overview-key strong { color: #555b62; font-size: 9.5px; }
.key-line { width: 30px; height: 0; border-top: 1.4px solid var(--supported); }
.key-line.proposition { border-top-color: var(--proposition); border-top-style: dashed; }
.key-line.question { border-top-color: var(--question); border-top-style: dotted; }
.selected-content { padding-top: 0; }
.selected-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.selected-heading h2 { margin: 0; color: var(--seed-ink); font-size: 23px; line-height: 1.1; font-weight: 760; letter-spacing: -.035em; }
.icon-button { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 12px; color: #787d84; background: var(--seed-surface-soft); font-size: 20px; }
.icon-button:hover { color: var(--seed-red); background: var(--seed-red-soft); }
.status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 11px; }
.status-pill { display: inline-flex; align-items: center; min-height: 25px; padding: 0 8px; border-radius: 999px; color: #596069; background: var(--seed-surface-soft); font-size: 8px; font-weight: 760; letter-spacing: .03em; }
.status-pill.source-supported { color: #536553; background: #eef3ed; }
.status-pill.external-evidence-required { color: #8a5d2e; background: #f7f0e7; }
.status-pill.research-question { color: #5e6280; background: #f0f0f7; }
.node-type-label { color: #989ca2; font-size: 8px; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; }
.reason { margin: 0; color: #6e747c; font-size: 11px; line-height: 1.58; }
.connection-list { display: grid; gap: 7px; margin-top: 9px; }
.connection-item { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 9px; align-items: center; padding: 8px; border: 1px solid var(--seed-line); border-radius: 12px; background: var(--seed-surface-warm); }
.connection-item img, .connection-thumb { width: 38px; height: 38px; border-radius: 8px; object-fit: contain; background: var(--seed-surface-soft); }
.connection-thumb { display: grid; place-items: center; color: #999da3; font-size: 7px; font-weight: 800; }
.connection-item strong { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #555b62; font-size: 9.5px; font-weight: 700; }
.connection-item small { display: block; margin-top: 2px; color: #969aa0; font-size: 8px; }
.source-details { margin: 9px 0 13px; display: grid; border-top: 1px solid var(--seed-line); }
.source-details > div { padding: 9px 0; border-bottom: 1px solid var(--seed-line); }
.source-details dt { margin-bottom: 3px; color: #9a9ea4; font-size: 7.8px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.source-details dd { margin: 0; color: #5f656c; font-size: 9.5px; line-height: 1.45; }
.source-link { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 11px; border: 1px solid var(--seed-line); border-radius: 11px; color: #555b62; background: #fff; font-size: 9.5px; font-weight: 700; text-decoration: none; }
.source-link:hover { color: var(--seed-red); border-color: rgba(170, 0, 61, .18); background: var(--seed-red-soft); }
.relationship-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.relationship-meta span { padding: 5px 7px; border-radius: 999px; color: #7d8289; background: var(--seed-surface-soft); font-size: 7.8px; font-weight: 720; text-transform: capitalize; }
.evidence-list { display: grid; gap: 7px; margin-top: 9px; }
.evidence-item { padding: 10px; border: 1px solid var(--seed-line); border-radius: 11px; color: #696f76; background: var(--seed-surface-warm); font-size: 9.5px; line-height: 1.5; }
.evidence-item strong { display: block; margin-bottom: 4px; color: #52585f; font-size: 8.5px; }
.proposition-note { border-color: rgba(235,161,41,.22) !important; background: #fbf5e8 !important; }
.review-actions { display: grid; gap: 6px; margin-top: 9px; }
.review-button { min-height: 38px; padding: 0 11px; border: 1px solid var(--seed-line); border-radius: 11px; color: #646a71; background: #fff; text-align: left; font-size: 9.5px; font-weight: 670; }
.review-button:hover { color: var(--seed-red); border-color: rgba(170, 0, 61, .18); background: var(--seed-red-soft); }
.review-button.active { color: #fff; border-color: var(--seed-red); background: var(--seed-red); }
.review-button.danger:not(.active) { color: var(--danger); }

.panel-footer {
  flex: 0 0 var(--footer-height);
  min-height: var(--footer-height);
  height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 var(--panel-gutter);
  border-top: 1px solid rgba(229, 230, 228, .88);
  color: #8f949b;
  background: rgba(255, 255, 255, .92);
  font-size: 9px;
}
.footer-status { min-width: 0; display: flex; align-items: center; gap: 7px; }
.footer-status > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #c8cbc9; }
.status-dot.ready { background: #5a8b68; }

.panel-toggle-button {
  position: fixed;
  z-index: 45;
  left: calc(14px + var(--panel-width) - 21px);
  top: calc(14px + (var(--top-height) - 42px) / 2);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--seed-line);
  border-radius: 13px;
  color: var(--seed-ink-2);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 7px 18px rgba(24, 26, 29, .10);
  transition: left 240ms ease, transform 240ms ease, color .15s ease, box-shadow .15s ease;
}
.panel-toggle-button:hover { color: var(--seed-red); box-shadow: 0 9px 22px rgba(24, 26, 29, .13); }
.panel-toggle-button svg { width: 17px; height: 17px; }
.panel-collapsed .panel-toggle-button { left: 27px; transform: rotate(180deg); }

/* Canvas */
.visualisation {
  display: grid;
  grid-template-rows: var(--top-height) minmax(0, 1fr) var(--footer-height);
  height: 100%;
  background: rgba(255, 255, 255, .96);
}
.canvas-header {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  height: var(--top-height);
  padding: 0 14px 0 var(--canvas-gutter);
  border-bottom: 1px solid rgba(229, 230, 228, .88);
  background: rgba(255, 255, 255, .91);
  backdrop-filter: blur(14px);
}
.panel-collapsed .canvas-header { padding-left: 72px; }
.canvas-title-group { min-width: 0; }
.canvas-header h2 { margin: 0; max-width: min(52vw, 680px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--seed-ink); font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.canvas-actions { position: relative; display: flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.tool-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--seed-muted);
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.tool-button:hover,
.tool-button[aria-expanded="true"] { border-color: var(--seed-line); color: var(--seed-ink); background: rgba(246, 246, 243, .95); }
.tool-button svg { width: 16px; height: 16px; flex: 0 0 16px; }
.tool-value { display: inline-flex; align-items: center; min-width: 22px; padding: 2px 6px; border-radius: 999px; color: #686862; background: #e8e7e1; font-size: 9px; font-weight: 650; }
.popover-control { position: relative; }
.tool-popover {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  right: 0;
  width: 278px;
  padding: 14px;
  border: 1px solid var(--seed-line);
  border-radius: 12px;
  background: rgba(251, 250, 247, .98);
  box-shadow: 0 14px 38px rgba(40, 40, 38, .16);
  backdrop-filter: blur(18px);
}
.filters-popover { width: 318px; }
.popover-heading { display: grid; gap: 3px; padding: 0 0 9px; margin-bottom: 6px; border-bottom: 1px solid var(--seed-line); }
.popover-heading strong { color: var(--seed-ink-2); font-size: 11px; font-weight: 650; }
.popover-heading span { color: #93979d; font-size: 8.6px; line-height: 1.35; }
.popover-heading.split { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.popover-heading.split > div { display: grid; gap: 3px; }
.popover-heading.split button { padding: 2px 0; border: 0; color: var(--seed-red); background: transparent; font-size: 9px; font-weight: 730; }
.view-option {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border: 0;
  border-radius: 10px;
  color: #666c73;
  background: transparent;
  text-align: left;
}
.view-option:hover { background: var(--seed-surface-soft); }
.view-option.active { color: var(--seed-red); background: var(--seed-red-soft); }
.view-option > span { min-width: 0; display: grid; gap: 3px; }
.view-option strong { color: inherit; font-size: 10px; font-weight: 650; }
.view-option small { color: #969aa0; font-size: 8.3px; line-height: 1.3; }
.view-option i { font-style: normal; color: var(--seed-red); text-align: center; }
.filter-label { display: block; margin: 12px 1px 7px; color: #8d9299; font-size: 8px; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.filter-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.filter-chip {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid #deded8;
  border-radius: 999px;
  color: #6c7178;
  background: #f7f6f2;
  font-size: 9px;
  font-weight: 620;
  text-align: left;
  transition: opacity .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease;
}
.filter-chip::before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--chip-colour, #d8d8d3); box-shadow: inset 0 0 0 1px rgba(24,26,29,.05); }
.filter-chip:hover { color: var(--seed-ink); border-color: #cfcfc8; box-shadow: inset 0 0 0 1px rgba(66,66,66,.05); }
.filter-chip.active { color: #4e5156; border-color: transparent; background: var(--chip-colour, var(--seed-red-soft)); box-shadow: inset 0 0 0 1px rgba(66,66,66,.06); }
.status-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.status-chip { min-height: 32px; padding: 0 10px; border: 1px solid #deded8; border-radius: 999px; color: #73777e; background: #f7f6f2; font-size: 8.9px; font-weight: 620; text-align: center; }
.status-chip:hover { color: var(--seed-ink); border-color: #cfcfc8; }
.status-chip.active { color: #4d4f50; border-color: transparent; box-shadow: inset 0 0 0 1px rgba(66,66,66,.06); }
.status-chip[data-status="all"].active { background: #e8e7e1; }
.status-chip.supported.active { background: #e8e5d1; }
.status-chip.proposition.active { background: #f9f0df; }
.status-chip.question.active { color: var(--seed-red); background: var(--seed-red-soft); }

.canvas-wrap {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  cursor: grab;
  background:
    radial-gradient(circle at 18% 12%, rgba(167, 201, 226, .075), transparent 25%),
    radial-gradient(circle at 88% 88%, rgba(235, 161, 41, .045), transparent 22%),
    #f8f8f6;
}
.canvas-wrap.is-panning { cursor: grabbing; }
#network { position: absolute; inset: 0; width: 100%; height: 100%; display: none; touch-action: none; user-select: none; }
.map-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(500px, calc(100% - 50px));
  transform: translate(-50%, -49%);
  text-align: center;
}
.empty-logo { width: 112px; height: 112px; max-width: 34%; display: block; margin: 0 auto 18px; object-fit: contain; opacity: .94; filter: drop-shadow(0 8px 17px rgba(24, 26, 29, .08)); }
.empty-kicker { display: block; margin-bottom: 11px; color: #7d838c; font-size: 10px; font-weight: 720; letter-spacing: .14em; text-transform: uppercase; }
.map-empty h1 { margin: 7px auto 12px; max-width: 620px; color: var(--seed-ink); font-size: clamp(32px, 3.1vw, 44px); line-height: 1.08; font-weight: 600; letter-spacing: -.035em; }
.map-empty > p { max-width: 610px; margin: 0 auto; color: var(--seed-muted); font-size: 14px; line-height: 1.55; }
.empty-action { min-height: 43px; margin-top: 22px; padding: 0 15px; border: 0; border-radius: 13px; color: #fff; background: var(--seed-red); box-shadow: 0 9px 24px rgba(170, 0, 61, .17); font-size: 11px; font-weight: 760; }
.empty-action span { margin-left: 8px; font-size: 15px; }
.empty-action:hover { background: var(--seed-red-deep); transform: translateY(-1px); }
.map-empty small { display: block; margin-top: 10px; color: #9a9ea4; font-size: 9px; }
.loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  background: rgba(246, 246, 243, .97);
  backdrop-filter: none;
}
.loading-seed-icon {
  width: 78px;
  height: 78px;
  margin-bottom: 0;
  object-fit: contain;
  animation: seed-spin 1.7s linear infinite;
  filter: drop-shadow(0 9px 18px rgba(24, 26, 29, .10));
}
@keyframes seed-spin { to { transform: rotate(360deg); } }
.loading-overlay strong { margin-top: 17px; color: var(--seed-ink-2); font-size: 18px; font-weight: 600; }
.loading-overlay p { max-width: 390px; margin: 7px 24px 0; color: var(--seed-muted); font-size: 12px; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) {
  .loading-seed-icon { animation: seed-breathe 1.5s ease-in-out infinite alternate; }
  @keyframes seed-breathe { from { opacity: .72; transform: scale(.96); } to { opacity: 1; transform: scale(1.02); } }
}
.map-hint { position: absolute; z-index: 12; left: 18px; bottom: 18px; padding: 8px 10px; border: 1px solid var(--seed-line); border-radius: 999px; color: #8c9198; background: rgba(255,255,255,.86); box-shadow: 0 6px 20px rgba(24,26,29,.05); font-size: 8.5px; backdrop-filter: blur(12px); pointer-events: none; }
.zoom-controls {
  position: absolute;
  z-index: 25;
  right: 18px;
  bottom: 18px;
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px 150px 34px 48px;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--seed-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 10px 30px rgba(24, 26, 29, .08);
  backdrop-filter: blur(14px);
}
.zoom-controls button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--seed-line); border-radius: 10px; color: #6f757d; background: #fff; font-size: 16px; }
.zoom-controls button:hover { border-color: #aaa99f; background: #f7f6f1; }
.zoom-controls input[type="range"] { width: 100%; accent-color: var(--seed-red); cursor: pointer; }
.zoom-controls output { color: var(--seed-muted); font-size: 9px; text-align: center; }
.canvas-footer { min-width: 0; height: var(--footer-height); display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 var(--canvas-gutter); border-top: 1px solid rgba(229, 230, 228, .88); color: #90959b; background: rgba(255,255,255,.92); font-size: 8.8px; }
.canvas-footer span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* SVG relational field */
.map-viewport { transform-origin: 0 0; }
.edge-hit { fill: none; stroke: transparent; stroke-width: 18; cursor: pointer; pointer-events: stroke; }
.map-edge { fill: none; stroke: #898e8b; stroke-width: 1.25; opacity: .55; pointer-events: none; }
.map-edge.source-supported { stroke: var(--supported); stroke-dasharray: none; }
.map-edge.external-evidence-required { stroke: var(--proposition); stroke-dasharray: 7 6; opacity: .62; }
.map-edge.research-question { stroke: var(--question); stroke-dasharray: 2 6; opacity: .65; }
.edge-group.selected .map-edge { stroke: var(--seed-red); stroke-width: 2.15; opacity: .96; stroke-dasharray: none; }
.edge-group.dimmed { opacity: .24; }
.edge-label { transition: opacity .15s ease; }
.edge-group.labels-on-hover .edge-label { opacity: 0; }
.edge-group.labels-on-hover:hover .edge-label { opacity: 1; }
.edge-label-bg { fill: rgba(255,255,255,.95); stroke: rgba(216,218,216,.95); stroke-width: .8; }
.edge-label-text { fill: #666c73; font-size: 8.8px; font-weight: 620; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.map-node { cursor: grab; outline: none !important; transition: opacity .15s ease; touch-action: none; }
.map-node:active, .map-node.dragging { cursor: grabbing; }
.map-node.dimmed { opacity: .34; }
.node-card { fill: #fff; stroke: #d8dad8; stroke-width: 1.05; filter: drop-shadow(0 6px 12px rgba(24, 26, 29, .07)); }
.map-node:hover .node-card { stroke: #bbbeba; filter: drop-shadow(0 8px 15px rgba(24, 26, 29, .09)); }
.map-node.selected .node-card { stroke: var(--seed-red); stroke-width: 2; filter: drop-shadow(0 9px 18px rgba(170, 0, 61, .13)); }
.map-node:focus { outline: none !important; }
.map-node:focus-visible .node-card { stroke: #86b5d2; stroke-width: 1.8; }
.map-node.selected:focus-visible .node-card { stroke: var(--seed-red); stroke-width: 2; }
.map-node.object .node-card { fill: rgba(255,255,255,.99); }
.node-thumb-bg { fill: var(--seed-surface-soft); }
.node-thumb-image { pointer-events: none; }
.node-thumb-placeholder { fill: #92979d; font-size: 7.5px; font-weight: 800; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.node-eyebrow { fill: #979ca2; font-size: 7px; font-weight: 800; letter-spacing: .075em; pointer-events: none; }
.node-label { fill: #30343a; font-size: 10.4px; font-weight: 670; pointer-events: none; }
.node-pill { pointer-events: none; }
.node-pill-label { fill: #5f666d; font-size: 6.8px; font-weight: 760; letter-spacing: .04em; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.map-node[data-type="material"] .node-pill { fill: #f3eee8; }
.map-node[data-type="place"] .node-pill { fill: #edf4f7; }
.map-node[data-type="people"] .node-pill { fill: #f5ecef; }
.map-node[data-type="technology"] .node-pill { fill: #efeff4; }
.map-node[data-type="social"] .node-pill { fill: #f4f0e8; }
.map-node[data-type="ecological"] .node-pill { fill: #eef2e9; }
.map-node[data-type="institution"] .node-pill { fill: #f1eeee; }
.map-node[data-type="temporal"] .node-pill { fill: #f2f0e8; }
.map-node[data-type="bridge"] .node-pill { fill: var(--seed-red-soft); }
.map-node[data-type="question"] .node-pill { fill: #f0f0f7; }
.layout-guide { fill: none; stroke: #dcdedc; stroke-width: 1; stroke-dasharray: 4 8; opacity: .72; pointer-events: none; }
.timeline-band { pointer-events: none; fill: rgba(153,152,115,.035); }
.timeline-band.tone-1 { fill: rgba(167,201,226,.045); }
.timeline-tick { pointer-events: none; stroke: rgba(153,152,115,.24); stroke-width: 1; }
.timeline-tick-label { pointer-events: none; fill: #8d9196; font-size: 8px; font-weight: 700; letter-spacing: .04em; }
.canvas-wrap:has(.map-node) .map-node { }
.layout-guide-label { fill: #a0a4aa; font-size: 8px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }

.toast { position: fixed; z-index: 120; left: 50%; bottom: 30px; transform: translate(-50%, 18px); opacity: 0; pointer-events: none; padding: 10px 14px; border-radius: 13px; color: #fff; background: var(--seed-ink); box-shadow: 0 10px 30px rgba(24,26,29,.20); font-size: 10px; transition: opacity .18s ease, transform .18s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #713f3c; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 1220px) {
  .tool-button { padding-inline: 8px; }
  .icon-text span { display: none; }
  .zoom-controls { grid-template-columns: 34px 118px 34px 45px; }
}
@media (max-width: 980px) {
  :root { --panel-width: 350px; }
  .canvas-actions #overviewBtn { display: none; }
  .tool-popover { right: -40px; }
}
@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; padding: 8px; }
  .control-panel { position: fixed; z-index: 40; top: 8px; left: 8px; width: min(390px, calc(100vw - 16px)); height: calc(100dvh - 16px); border-radius: 22px; }
  .visualisation { border-radius: 22px; }
  .panel-toggle-button { left: calc(min(390px, calc(100vw - 16px)) - 13px); top: 24px; }
  .panel-collapsed .panel-toggle-button { left: 21px; }
  .canvas-header { padding-left: 60px; }
  .panel-collapsed .canvas-header { padding-left: 60px; }
  .canvas-title-group { display: none; }
  .canvas-actions { width: 100%; justify-content: flex-end; }
  .tool-button { padding-inline: 7px; }
  .tool-button > span:not(.tool-value) { display: none; }
  .filters-popover { width: min(330px, calc(100vw - 42px)); }
  .lens-popover { width: min(300px, calc(100vw - 42px)); }
  .zoom-controls { right: 9px; bottom: 9px; grid-template-columns: 32px 92px 32px; }
  .zoom-controls output { display: none; }
  .map-hint { display: none !important; }
  .map-empty { width: calc(100% - 34px); }
  .map-empty h1 { font-size: 36px; }
  .empty-logo { width: 70px; height: 70px; }
  .canvas-footer { padding: 0 12px; }
  .canvas-footer span:last-child { display: none; }
}
@media (max-height: 720px) and (min-width: 761px) {
  :root { --top-height: 66px; --tab-height: 56px; }
  .brand-symbol { width: 39px; height: 39px; flex-basis: 39px; }
  .panel-section { padding-top: 22px; }
  .map-empty { transform: translate(-50%, -47%) scale(.92); }
}
@media (prefers-reduced-motion: reduce) {
  .app-shell, .control-panel, .panel-toggle-button, .tool-button, .primary-button, .map-node, .edge-label { transition: none !important; }
}

/* =========================================================
   v0.5.0 — SEED workspace fidelity + research intelligence
   ========================================================= */
:root {
  --footer-height: 44px;
  --causal: #a66f37;
  --causal-soft: #f6ead8;
}

/* Match the current SEED Mapping shell proportions exactly. */
.brand-symbol { width: 43px; height: 43px; flex-basis: 43px; }
.canvas-header h2 { font-size: 16px; font-weight: 760; letter-spacing: -.025em; }
.canvas-wrap {
  background:
    radial-gradient(circle at 10% 12%, rgba(167, 201, 226, .11), transparent 24%),
    radial-gradient(circle at 88% 84%, rgba(235, 161, 41, .045), transparent 22%),
    var(--seed-surface-soft);
}
.canvas-footer { min-height: 44px; padding-inline: 20px; font-size: 9.5px; }

/* Landing state follows the Mapper hero scale instead of a separate variant. */
.map-empty {
  width: min(760px, calc(100% - 72px));
  transform: translate(-50%, -50%);
}
.hero-mark {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  margin: 0 auto 21px;
  border-radius: 28px;
  background: linear-gradient(145deg, #fff, #f2f2ee);
  box-shadow: 0 17px 42px rgba(24, 26, 29, .11), inset 0 0 0 1px rgba(24, 26, 29, .04);
}
.empty-logo {
  width: 72px;
  height: 72px;
  max-width: none;
  margin: 0;
  opacity: 1;
  filter: none;
}
.empty-kicker {
  margin-bottom: 10px;
  color: var(--seed-red);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .13em;
}
.map-empty h1 {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(36px, 4.1vw, 58px);
  font-weight: 780;
  line-height: 1.03;
  letter-spacing: -.055em;
}
.map-empty > p {
  max-width: 660px;
  margin: 19px auto 25px;
  font-size: 15px;
  line-height: 1.64;
}
.empty-action {
  min-height: 48px;
  margin: 0;
  padding: 0 18px 0 20px;
  border-radius: 13px;
  font-size: 12.5px;
  font-weight: 760;
}
.map-empty small { margin-top: 10px; font-size: 10.5px; line-height: 1.4; }

.new-map-button {
  min-height: 42px;
  padding: 0 14px 0 16px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--seed-red);
  box-shadow: 0 8px 20px rgba(170, 0, 61, .16);
  font-size: 11px;
  font-weight: 760;
}
.new-map-button:hover,
.new-map-button:focus-visible { color: #fff; background: var(--seed-red-deep); border-color: transparent; }
.new-map-button svg { width: 17px; height: 17px; }

/* Filter chips use the colour itself, as SEED Mapping layers do. */
.filters-popover { width: 326px; padding: 15px; border-radius: 16px; }
.filter-chips,
.status-chips,
.logic-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.filter-chip,
.status-chip,
.logic-chip {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #51524d;
  font-size: 9.4px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  transition: opacity .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease;
}
.filter-chip::before { content: none; }
.filter-chip { background: var(--chip-colour, #e8e7e1); opacity: .38; }
.filter-chip.active { opacity: 1; background: var(--chip-colour, var(--seed-red-soft)); border-color: transparent; }
.filter-chip:hover { opacity: .82; box-shadow: inset 0 0 0 1px rgba(66, 66, 66, .14); }
.status-chip { opacity: .38; background: #e8e7e1; }
.status-chip.supported { background: #dfe8dc; }
.status-chip.proposition { background: #f6e5ce; }
.status-chip.question { background: #e7e6f0; color: #5e627c; }
.status-chip.active { opacity: 1; border-color: transparent; box-shadow: inset 0 0 0 1px rgba(66,66,66,.06); }
.logic-chip { opacity: .38; background: #e8e7e1; }
.logic-chip.causal { background: #f2d7e1; color: var(--seed-red-deep); }
.logic-chip.dependency { background: #f2dfc4; color: #70522c; }
.logic-chip.association { background: #dfe8ec; color: #4e6570; }
.logic-chip.active { opacity: 1; box-shadow: inset 0 0 0 1px rgba(66,66,66,.06); }
.filter-chip:focus-visible,
.status-chip:focus-visible,
.logic-chip:focus-visible,
.panel-tab:focus-visible,
.view-option:focus-visible,
.edge-label:focus-visible {
  outline: 2px solid rgba(170, 0, 61, .28);
  outline-offset: 2px;
}
.tool-value { max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* A causal pathway should read as an inspectable research proposition. */
.edge-hit { stroke-width: 24; }
.edge-group:hover .map-edge { opacity: .88; stroke-width: 1.8; }
.map-edge.external-evidence-required.causal {
  stroke: var(--causal);
  stroke-width: 1.8;
  stroke-dasharray: 8 5;
  opacity: .82;
}
.edge-group.causal-edge .edge-label { opacity: 1; cursor: pointer; }
.edge-group.causal-edge .edge-label-bg {
  fill: rgba(246, 234, 216, .97);
  stroke: rgba(166, 111, 55, .38);
}
.edge-group.causal-edge .edge-label-text { fill: #72502f; font-weight: 730; }
.edge-label { cursor: pointer; pointer-events: all; }
.edge-label:hover .edge-label-bg { stroke: var(--seed-red); stroke-width: 1.1; }
.edge-group.selected .edge-label-bg { stroke: var(--seed-red); fill: #fff; }
.edge-group.selected .edge-label-text { fill: var(--seed-red-deep); }

/* Place lens — calm geographic outline with fixed anchors and movable cards. */
.world-map-outline { opacity: .58; pointer-events: none; }
.place-anchor { pointer-events: none; }
.place-anchor-line {
  stroke: rgba(153, 152, 115, .62);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.place-anchor-dot {
  fill: #fff;
  stroke: var(--seed-olive);
  stroke-width: 2;
  filter: drop-shadow(0 2px 4px rgba(24, 26, 29, .08));
}

/* Enquiry is a SEED research scaffold, not a flat question list. */
.enquiry-intro { margin-bottom: 18px; }
.enquiry-empty {
  padding: 15px;
  border: 1px solid var(--seed-line);
  border-radius: 14px;
  background: var(--seed-surface-soft);
}
.enquiry-empty strong { display: block; margin-bottom: 5px; color: var(--seed-ink-2); font-size: 11px; }
.enquiry-empty p { margin: 0; color: var(--seed-muted); font-size: 10px; line-height: 1.5; }
.research-lead {
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(170, 0, 61, .10);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(167, 201, 226, .18), transparent 48%),
    linear-gradient(150deg, rgba(255,255,255,.98), rgba(250,248,244,.96));
  box-shadow: 0 8px 24px rgba(24, 26, 29, .045);
}
.research-lead h2 { margin: 0 0 8px; color: var(--seed-ink); font-size: 17px; line-height: 1.15; font-weight: 760; letter-spacing: -.03em; }
.research-lead p { margin: 0; color: var(--seed-muted); font-size: 10.4px; line-height: 1.55; }
.research-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.research-tags span { padding: 5px 7px; border-radius: 999px; color: #676b70; background: #f0efeb; font-size: 7.8px; font-weight: 690; }
.secondary-action {
  width: 100%; min-height: 38px; margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 12px; border: 1px solid var(--seed-line); border-radius: 12px; color: var(--seed-ink-2); background: #fff; font-size: 9.5px; font-weight: 720;
}
.secondary-action:hover { border-color: rgba(170,0,61,.22); color: var(--seed-red); }
.secondary-action svg { width: 14px; height: 14px; }
.seed-pathways { display: grid; gap: 7px; }
.seed-phase {
  --phase-colour: var(--seed-red);
  overflow: hidden;
  border: 1px solid var(--seed-line);
  border-radius: 14px;
  background: #fff;
}
.seed-phase.phase-frame { --phase-colour: #8cb9d4; }
.seed-phase.phase-grow { --phase-colour: #d99122; }
.seed-phase.phase-shape { --phase-colour: #999873; }
.seed-phase.phase-cultivate { --phase-colour: #7f9b73; }
.phase-head { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 7px; min-height: 37px; padding: 0 10px; border-left: 4px solid var(--phase-colour); background: #fafaf8; }
.phase-head span { color: var(--phase-colour); font-size: 7.5px; font-weight: 850; letter-spacing: .11em; }
.phase-head strong { color: #5b6066; font-size: 9.3px; font-weight: 720; }
.phase-items { padding: 8px 11px 9px 14px; }
.phase-items p { position: relative; margin: 0; padding: 5px 0 5px 10px; color: #70757c; font-size: 9.4px; line-height: 1.45; }
.phase-items p::before { content: ''; position: absolute; left: 0; top: 11px; width: 4px; height: 4px; border-radius: 50%; background: var(--phase-colour); }
.deep-research-block { margin-top: 18px; padding-top: 4px; }
.compact-heading { margin-bottom: 6px; }
.compact-heading h2 { font-size: 15px; }
.deep-research-block > p { margin: 0 0 11px; color: var(--seed-muted); font-size: 9.8px; line-height: 1.5; }
.compact-primary { min-height: 42px; }
.deep-insight { margin-top: 10px; padding: 13px; border: 1px solid rgba(166,111,55,.18); border-radius: 14px; background: #fcf7ef; }
.deep-insight-head { display: grid; gap: 3px; margin-bottom: 7px; }
.deep-insight-head span { color: #a66f37; font-size: 7.6px; font-weight: 820; letter-spacing: .08em; text-transform: uppercase; }
.deep-insight-head strong { color: var(--seed-ink-2); font-size: 11px; line-height: 1.25; }
.deep-insight > p { margin: 0 0 9px; color: #6c6f72; font-size: 9.5px; line-height: 1.5; }
.counter-reading { padding: 9px; margin: 8px 0; border-radius: 10px; background: #fff; color: #74777a; font-size: 9px; line-height: 1.45; }
.counter-reading span,
.insight-list > span { display: block; margin-bottom: 4px; color: #8a6a47; font-size: 7.4px; font-weight: 810; letter-spacing: .07em; text-transform: uppercase; }
.insight-list { margin-top: 9px; }
.insight-list div { padding: 4px 0 4px 10px; border-left: 2px solid rgba(166,111,55,.22); color: #73767a; font-size: 8.9px; line-height: 1.4; }
.questions-block { margin-top: 8px; }
.question-item { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 7px; width: 100%; padding: 10px 9px; border: 1px solid var(--seed-line); border-radius: 12px; color: #6f747b; background: #faf9f6; font-size: 9.2px; line-height: 1.45; text-align: left; }
.questions { display: grid; gap: 7px; margin-top: 8px; }

/* SEED-style confirmation, avoiding a browser-native warning. */
.seed-dialog { width: min(420px, calc(100vw - 36px)); padding: 0; border: 0; border-radius: 20px; background: transparent; box-shadow: 0 24px 70px rgba(24,26,29,.22); }
.seed-dialog::backdrop { background: rgba(29, 31, 33, .22); backdrop-filter: blur(6px); }
.seed-dialog-card { padding: 22px; border: 1px solid rgba(24,26,29,.08); border-radius: 20px; background: #fff; }
.seed-dialog-card h2 { margin: 0 0 8px; color: var(--seed-ink); font-size: 20px; line-height: 1.15; letter-spacing: -.035em; }
.seed-dialog-card p { margin: 0; color: var(--seed-muted); font-size: 11px; line-height: 1.55; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.dialog-button { min-height: 42px; border: 1px solid var(--seed-line); border-radius: 12px; color: var(--seed-ink-2); background: #fff; font-size: 10px; font-weight: 730; }
.dialog-button.primary { border-color: var(--seed-red); color: #fff; background: var(--seed-red); }
.dialog-button.primary:hover { background: var(--seed-red-deep); }

@media (max-width: 1220px) {
  .new-map-button { padding-inline: 11px; }
}
@media (max-width: 760px) {
  .new-map-button span { display: none; }
  .new-map-button { width: 38px; padding: 0; }
  .map-empty h1 { font-size: 36px; }
  .hero-mark { width: 76px; height: 76px; border-radius: 24px; }
  .empty-logo { width: 62px; height: 62px; }
}


/* =========================================================
   v0.6.0 — stable panels + clearer temporal/spatial lenses
   ========================================================= */
.panel-section > :first-child { margin-top: 0; }
.panel-section .eyebrow:first-child { margin-top: 0; }

/* Timeline becomes a fixed, readable visualisation rather than another draggable graph. */
.timeline-axis { stroke: rgba(88, 94, 98, .24); stroke-width: 1.4; pointer-events: none; }
.timeline-band { fill: rgba(153, 152, 115, .026); }
.timeline-band.tone-1 { fill: rgba(167, 201, 226, .035); }
.timeline-tick { stroke: rgba(153,152,115,.19); }
.timeline-node { cursor: pointer; }
.timeline-object-card { fill: #fff; stroke: rgba(207, 210, 207, .96); stroke-width: 1; filter: drop-shadow(0 8px 18px rgba(24,26,29,.075)); }
.timeline-node.selected .timeline-object-card { stroke: var(--seed-red); stroke-width: 2; filter: drop-shadow(0 10px 22px rgba(170,0,61,.13)); }
.timeline-thumb-bg { fill: #f3f3ef; }
.timeline-thumb-image { pointer-events: none; }
.timeline-object-label { fill: #5c6269; font-size: 7.8px; font-weight: 720; dominant-baseline: middle; pointer-events: none; }
.timeline-context-card { stroke: rgba(24,26,29,.06); stroke-width: 1; opacity: .88; }
.timeline-node.selected .timeline-context-card { stroke: var(--seed-red); stroke-width: 1.8; opacity: 1; }
.timeline-context-label { fill: #5c6268; font-size: 8px; font-weight: 700; dominant-baseline: central; pointer-events: none; }
.timeline-edge .map-edge { opacity: .34; stroke-width: 1; }
.timeline-edge.causal-edge .map-edge { opacity: .7; }
.timeline-edge.selected .map-edge { opacity: 1; }

/* Place lens is intentionally cartographic and sparse: place anchors + movable object images. */
.world-map-outline { opacity: .37; pointer-events: none; }
.place-pin { cursor: pointer; }
.place-pin-halo { fill: rgba(153,152,115,.13); stroke: none; }
.place-pin-dot { fill: #fff; stroke: var(--seed-olive); stroke-width: 2.2; }
.place-pin-label-bg { fill: rgba(255,255,255,.94); stroke: rgba(153,152,115,.22); stroke-width: 1; filter: drop-shadow(0 4px 12px rgba(24,26,29,.05)); }
.place-pin-label { fill: #5b6166; font-size: 8.2px; font-weight: 730; dominant-baseline: central; pointer-events: none; }
.place-pin:hover .place-pin-label-bg { stroke: rgba(170,0,61,.28); }
.place-pin.selected .place-pin-dot { stroke: var(--seed-red); stroke-width: 2.5; }
.place-pin.selected .place-pin-label-bg { stroke: var(--seed-red); }
.place-node { cursor: grab; }
.place-node.dragging { cursor: grabbing; }
.place-object-card { fill: #fff; stroke: rgba(207,210,207,.94); stroke-width: 1; filter: drop-shadow(0 8px 18px rgba(24,26,29,.075)); }
.place-node.selected .place-object-card { stroke: var(--seed-red); stroke-width: 2; filter: drop-shadow(0 10px 22px rgba(170,0,61,.13)); }
.place-thumb-bg { fill: #f3f3ef; }
.place-thumb-image { pointer-events: none; }
.place-edge .map-edge { opacity: .5; stroke-width: 1.2; }
.place-edge.selected .map-edge { opacity: 1; stroke: var(--seed-red); }

.zoom-controls[hidden] { display: none !important; }


/* v0.7.0 — evidence-lens legibility and interaction polish */
.canvas-wrap[aria-busy="true"] #network,
.canvas-wrap[aria-busy="true"] #mapEmpty,
.canvas-wrap[aria-busy="true"] #mapHint,
.canvas-wrap[aria-busy="true"] #zoomControls { visibility: hidden !important; }
.loading-overlay { background: #f6f6f3; opacity: 1; }
.loading-seed-icon { width: 76px; height: 76px; }

/* Progressive disclosure: relationship language appears on hover or selection rather than obscuring the field. */
.edge-group.labels-on-hover .edge-label,
.edge-group.causal-edge.labels-on-hover .edge-label { opacity: 0; }
.edge-group.labels-on-hover:hover .edge-label,
.edge-group.causal-edge.labels-on-hover:hover .edge-label,
.edge-group.selected .edge-label { opacity: 1; }
.edge-group.causal-edge .map-edge { stroke-width: 1.65; }
.edge-hit { stroke-width: 18; }

.timeline-undated-rule,
.place-unmapped-rule { stroke: rgba(117, 122, 126, .16); stroke-width: 1; stroke-dasharray: 4 7; pointer-events: none; }
.timeline-object-card { stroke: rgba(201, 204, 201, .94); }
.timeline-object-year { fill: #9ba0a6; font-size: 6.8px; font-weight: 760; letter-spacing: .05em; pointer-events: none; }
.timeline-context-card { opacity: .78; }
.timeline-node:hover .timeline-context-card { opacity: 1; stroke: rgba(170,0,61,.18); }
.timeline-edge .map-edge { opacity: .25; }
.timeline-edge.causal-edge .map-edge { opacity: .62; }
.timeline-edge.selected .map-edge { opacity: 1; }

/* Place is a geographic evidence lens, not a free-floating graph. */
.world-map-outline { opacity: .20; }
.place-edge .map-edge { opacity: .38; stroke-width: 1; }
.place-source-line { fill: none; stroke: rgba(102,121,103,.55); stroke-width: 1.05; stroke-dasharray: 3 5; pointer-events: none; }
.place-object-card { fill: rgba(255,255,255,.97); stroke: rgba(204,207,204,.95); stroke-width: 1; filter: drop-shadow(0 7px 15px rgba(24,26,29,.065)); }
.place-node.unresolved .place-object-card { stroke-dasharray: 4 4; fill: rgba(250,250,248,.97); }
.place-object-title { fill: #353b40; font-size: 8.6px; font-weight: 760; pointer-events: none; }
.place-object-location { fill: #93989e; font-size: 6.7px; font-weight: 670; pointer-events: none; }
.place-pin-halo { fill: rgba(153,152,115,.09); }
.place-pin-dot { stroke-width: 1.7; }
.place-pin-label-bg { fill: rgba(255,255,255,.96); stroke: rgba(153,152,115,.17); filter: drop-shadow(0 3px 8px rgba(24,26,29,.035)); }
.place-pin-label { font-size: 7.4px; }
.place-record-pin { cursor: pointer; }
.place-record-halo { fill: rgba(170,0,61,.045); }
.place-record-dot { fill: #fff; stroke: var(--seed-red); stroke-width: 1.4; }
.place-record-label-bg { fill: rgba(255,255,255,.95); stroke: rgba(170,0,61,.12); stroke-width: .8; }
.place-record-label { fill: #6f747a; font-size: 7px; font-weight: 700; dominant-baseline: central; pointer-events: none; }
.place-record-pin.selected .place-record-dot { fill: var(--seed-red); }

/* Keep panel text alignment stable in all tabs, including when the scrollbar is visible. */
.panel-section { scrollbar-gutter: stable; }
.panel-section > :first-child { margin-top: 0; }


/* =========================================================
   v0.8.0 — SEED Mapper parity + research legibility
   ========================================================= */

/* Footer language and geometry mirror SEED Mapping. */
.panel-footer { gap: 8px; padding-inline: 22px; }
.panel-footer .footer-credit { white-space: nowrap; color: #959aa0; }
.panel-footer .footer-credit + .footer-credit::before { content: '·'; margin-right: 8px; color: #c0c3c5; }
.canvas-footer { font-size: 9.5px; }
.canvas-footer #footerGuidance { text-align: right; color: #8b8580; }

/* Mapper-style layer panel. */
.filters-popover { width: 310px; padding: 14px; border-radius: 16px; }
.filters-popover .popover-heading { padding-bottom: 10px; margin-bottom: 11px; }
.filters-popover .popover-heading strong { font-size: 12px; }
.filters-popover .popover-heading span { max-width: 220px; line-height: 1.38; }
.filter-label { margin: 11px 0 7px; }
.filter-chips.layer-chip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.filter-chip {
  min-height: 34px; justify-content: center; border: 1px solid rgba(24,26,29,.055) !important;
  background: var(--chip-colour, #ecece8) !important; color: #555a60; font-size: 9.5px; font-weight: 720;
  box-shadow: none !important;
}
.filter-chip:not(.active) { opacity: .34; background: #efefec !important; border-color: #d9dad7 !important; color: #72777d; }
.filter-chip.active { opacity: 1; }
.compact-evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.status-chip { min-height: 31px; justify-content: center; border-radius: 999px; font-size: 9px; font-weight: 700; }
.status-chip.supported { background: #edf2eb; border-color: #d8e3d4; }
.status-chip.proposition { background: #f7eee3; border-color: #ead2b8; }
.status-chip.question { background: #efeff6; border-color: #ddddeb; }
.status-chip:not(.active) { opacity: .38; background: #f0f0ed; border-color: #dedfdb; }
.filter-divider { height: 1px; margin: 13px 0 6px; background: var(--seed-line); }
.mapper-controls { display: grid; gap: 1px; }
.mapper-controls .relationship-option { padding: 8px 3px; }
.mapper-controls .relationship-option strong { color: #555a60; font-size: 10px; font-weight: 650; }
.mapper-controls .relationship-option small { color: #959aa0; font-size: 8.5px; }
.toggle-switch { position: relative; display: block; width: 34px; height: 20px; border-radius: 999px; background: #d0d1cd; transition: background 150ms ease; }
.toggle-switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.16); transition: transform 150ms ease; }
.relationship-option input:checked + .toggle-switch { background: var(--seed-red); }
.relationship-option input:checked + .toggle-switch::after { transform: translateX(14px); }
.relationship-option input:focus-visible + .toggle-switch { outline: 3px solid rgba(153,203,229,.42); outline-offset: 2px; }

/* Concept cards carry the same factor-colour hierarchy as SEED Mapping. */
.map-node.concept[data-type="people"] .node-card { fill: #eaf4f8; }
.map-node.concept[data-type="place"] .node-card { fill: #f0efdf; }
.map-node.concept[data-type="ecological"] .node-card { fill: #edf4e8; }
.map-node.concept[data-type="material"] .node-card { fill: #fbf2df; }
.map-node.concept[data-type="technology"] .node-card { fill: #eaf3f7; }
.map-node.concept[data-type="social"] .node-card,
.map-node.concept[data-type="system"] .node-card,
.map-node.concept[data-type="bridge"] .node-card { fill: #f8eaf0; }
.map-node.concept[data-type="institution"] .node-card { fill: #efefec; }
.map-node.concept[data-type="question"] .node-card { fill: #f3f1f6; }
.map-node.concept .node-pill { fill: rgba(255,255,255,.72) !important; }

/* Stronger, calmer connection hierarchy — line is primary, text is progressive disclosure. */
.map-edge { fill: none; stroke: #69716b; stroke-width: 1.25; opacity: .58; stroke-linecap: round; }
.map-edge.source-supported { stroke: #66786b; opacity: .64; }
.map-edge.external-evidence-required { stroke: #b77b42; stroke-dasharray: 8 7; opacity: .74; }
.map-edge.research-question { stroke: #747a97; stroke-dasharray: 1.5 6; opacity: .56; }
.edge-group.causal-edge .map-edge { stroke-width: 1.75; opacity: .82; }
.edge-group:hover .map-edge { stroke-width: 2; opacity: .94; }
.edge-group.selected .map-edge { stroke: var(--seed-red) !important; stroke-width: 2.35 !important; opacity: 1 !important; stroke-dasharray: none !important; }
.edge-label-bg { fill: rgba(255,255,255,.97); stroke: rgba(207,210,207,.96); }
.edge-label-text { fill: #62686e; font-size: 8.5px; font-weight: 680; }
.edge-group.causal-edge .edge-label-bg { fill: #fff7eb; stroke: #dcb889; }
.edge-group.causal-edge .edge-label-text { fill: #72502f; }
.edge-group.labels-on-hover .edge-label { opacity: 0; }
.edge-group.labels-on-hover:hover .edge-label,
.edge-group.selected .edge-label { opacity: 1; }
.edge-hit { stroke-width: 26; }
.network.is-dragging-node .edge-label { opacity: 0 !important; }
#network.is-dragging-node .map-edge { transition: none !important; }

/* More breathing space at normal zoom. */
.map-node.concept .node-card { filter: drop-shadow(0 7px 15px rgba(24,26,29,.065)); }
.map-node.object .node-card { filter: drop-shadow(0 8px 18px rgba(24,26,29,.075)); }

/* Relationship detail is explicitly a research-reading pane. */
.edge-research-block { margin-top: 16px; padding: 13px 14px; border: 1px solid #ead7be; border-radius: 14px; background: #fff8ea; }
.edge-research-block .eyebrow { color: #906417; }
.edge-research-block p { margin: 7px 0 0; color: #666a6f; font-size: 11px; line-height: 1.52; }

/* Living-synthesis style SEED phase accordions. */
.seed-pathways { display: grid; gap: 9px; }
.seed-phase { --phase-colour: var(--seed-red); padding: 0; overflow: hidden; border: 1px solid rgba(170,0,61,.20); border-radius: 16px; background: #fbeef3; }
.seed-phase.phase-frame { --phase-colour: #4e7e9a; border-color: #bdd8e7; background: #edf6fa; }
.seed-phase.phase-grow { --phase-colour: #906417; border-color: #e9ce91; background: #fff6df; }
.seed-phase.phase-shape { --phase-colour: #77764f; border-color: #d8d5ad; background: #f5f5e8; }
.seed-phase.phase-cultivate { --phase-colour: #617c58; border-color: #c9dbc0; background: #f0f6ed; }
.phase-toggle { width: 100%; min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.phase-toggle:hover { background: rgba(255,255,255,.26); }
.phase-heading { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.phase-origin { color: var(--phase-colour); font-size: 7.5px; font-weight: 850; letter-spacing: .11em; line-height: 1.2; }
.phase-name { color: var(--seed-ink); font-size: 13px; font-weight: 800; letter-spacing: -.018em; }
.phase-toggle-meta { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; }
.phase-count { min-width: 29px; height: 29px; display: inline-grid; place-items: center; padding: 0 8px; border: 1px solid color-mix(in srgb, var(--phase-colour) 22%, transparent); border-radius: 999px; color: var(--phase-colour); background: rgba(255,255,255,.58); font-size: 10px; font-weight: 800; }
.phase-toggle-meta svg { width: 16px; height: 16px; fill: none; stroke: #71766f; stroke-width: 1.8; transform: rotate(90deg); transition: transform .18s ease; }
.seed-phase.is-open .phase-toggle-meta svg { transform: rotate(-90deg); }
.seed-phase .phase-items { padding: 0 14px 14px; }
.seed-phase .phase-items p { position: relative; margin: 0; padding: 8px 0; color: #686d73; font-size: 10.5px; line-height: 1.48; border-top: 1px solid rgba(24,26,29,.07); }
.seed-phase .phase-items p::before { content: none; }

/* Temporal lens: Mapper-style vertical zones with movable reading lanes, never movable dates. */
.timeline-band { fill: #f7f6f2; }
.timeline-band.tone-1 { fill: #f3f4f1; }
.timeline-tick { stroke: #969a96; stroke-width: 1; stroke-dasharray: 1 7; stroke-linecap: round; opacity: .55; }
.timeline-tick-label { fill: #858a91; font-size: 8px; font-weight: 740; letter-spacing: .08em; }
.timeline-axis { stroke: rgba(99,104,104,.22); stroke-width: 1; }
.timeline-node { cursor: ns-resize; }
.timeline-node.dragging { cursor: grabbing; }
.timeline-object-card { stroke: rgba(199,202,199,.96); filter: drop-shadow(0 8px 18px rgba(24,26,29,.07)); }
.timeline-context-card { stroke: rgba(24,26,29,.09); opacity: .96; filter: drop-shadow(0 5px 12px rgba(24,26,29,.045)); }
.timeline-context-label { fill: #4f565c; font-size: 8.2px; font-weight: 730; dominant-baseline: middle; }
.timeline-context-type { fill: #777d83; font-size: 5.8px; font-weight: 760; letter-spacing: .07em; dominant-baseline: middle; }
.timeline-edge .map-edge { opacity: .30; }
.timeline-edge.causal-edge .map-edge { opacity: .72; }
.timeline-undated-rule { stroke: rgba(117,122,126,.20); }

/* Place remains geographic evidence, but richer than anonymous floating thumbnails. */
.world-map-outline { opacity: .27; stroke-width: .85; }
.place-source-line { stroke: rgba(91,104,94,.58); stroke-width: 1; stroke-dasharray: 3 5; }
.place-object-card { filter: drop-shadow(0 8px 17px rgba(24,26,29,.07)); }
.place-pin-label-bg, .place-record-label-bg { fill: rgba(255,255,255,.98); }

@media (max-width: 920px) {
  .panel-footer .footer-credit:nth-last-child(1) { display: none; }
  .canvas-footer #footerGuidance { display: none; }
}


/* Compact field reading makes the research value visible before a node is selected. */
.field-reading { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--seed-line); }
.field-signals { display: grid; gap: 7px; margin-top: 9px; }
.field-signal { padding: 10px 11px; border: 1px solid var(--seed-line); border-radius: 13px; background: #fff; }
.field-signal > span { display: block; margin-bottom: 3px; color: #8a9096; font-size: 7px; font-weight: 820; letter-spacing: .09em; text-transform: uppercase; }
.field-signal strong { display: block; color: #4e545a; font-size: 10.5px; font-weight: 780; }
.field-signal p { margin: 4px 0 0; color: #7a8086; font-size: 9px; line-height: 1.42; }
.field-signal.shared { background: #eef6fa; border-color: #c9dfe9; }
.field-signal.causal { background: #fff7e9; border-color: #ead0a8; }
.field-signal.gaps { background: #faedf2; border-color: #ebc6d4; }

/* Selected relationships use the Mapper's dark connection emphasis with SEED red reserved for selection/UI. */
.edge-group.selected .map-edge { stroke: #454b50 !important; }

.edge-group.labels-visible .edge-label { opacity: 1 !important; }


/* v0.9 — interpretation-first simplification */
.filters-popover { width: 300px; padding: 15px; }
.reading-layer-grid, .connection-focus-grid { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.status-chip, .logic-chip { min-height:36px; border:1px solid #dcddd9; border-radius:999px; background:#f3f3f0; color:#666c72; font:700 9.5px/1 Inter,system-ui,sans-serif; cursor:pointer; }
.status-chip.active, .logic-chip.active { color:#444a50; box-shadow:inset 0 0 0 1px rgba(24,26,29,.06); opacity:1; }
.status-chip.supported.active { background:#edf2eb; border-color:#d6e0d2; }
.status-chip.proposition.active { background:#f8eee2; border-color:#ead0b1; }
.status-chip.question.active { background:#f4eaf0; border-color:#e6c8d5; }
.logic-chip.active[data-logic="causal"] { background:#fff3e3; border-color:#e6c497; color:#7a552f; }
.compact-factor-legend { display:flex; flex-wrap:wrap; gap:5px; margin-top:13px; padding-top:12px; border-top:1px solid var(--seed-line); }
.compact-factor-legend span { display:inline-flex; align-items:center; gap:5px; padding:5px 7px; border-radius:999px; background:color-mix(in srgb,var(--legend) 52%, white); color:#72777c; font-size:7px; font-weight:740; }
.compact-factor-legend span::before { content:''; width:7px; height:7px; border-radius:50%; background:var(--legend); }

.synthesis-overview > .eyebrow { margin-bottom:8px; }
.synthesis-overview > h1 { margin-bottom:10px; }
.synthesis-overview > #mapSummary { font-size:12px; line-height:1.58; color:#717780; }
.synthesis-overview .field-reading { margin-top:20px; padding-top:16px; }
.field-signals { gap:8px; }
.field-signal { position:relative; width:100%; padding:13px 38px 13px 13px; border-radius:15px; text-align:left; cursor:pointer; transition:transform .14s ease,border-color .14s ease,background .14s ease; }
.field-signal:hover { transform:translateY(-1px); border-color:rgba(170,0,61,.24); }
.field-signal > span { color:#8d9297; font-size:7px; letter-spacing:.105em; }
.field-signal strong { margin-top:3px; color:#2f3439; font-size:12px; line-height:1.28; }
.field-signal p { margin-top:6px; font-size:9.5px; line-height:1.48; }
.field-signal i { position:absolute; right:13px; top:14px; color:#90959a; font-size:13px; font-style:normal; }
.field-signal.interpretation { background:#fff8ed; border-color:#ead1ac; }
.field-signal.pattern { background:#eef6fa; border-color:#c8dfe9; }
.field-signal.gap { background:#faeef3; border-color:#eac8d5; }

/* Relationship field: less visual chatter. */
.edge-label { transition:opacity .12s ease; }
.edge-group:not(.selected):not(:hover) .edge-label { opacity:0 !important; }
.map-node.concept .node-card { stroke-width:.75; }
.map-node.concept .node-label { font-weight:720; }
.edge-hit { stroke-width:32; }

/* Timeline is chronology + interpretive tethers, not a second node field. */
.timeline-context, .timeline-undated-rule { display:none; }
.timeline-tether .map-edge { opacity:.43; stroke-width:1.25; }
.timeline-tether:hover .map-edge { opacity:.9; stroke-width:2; }
.timeline-tether.selected .map-edge { stroke:#454b50 !important; opacity:1; }
.timeline-object-card { fill:#fff; }
.timeline-object-label { fill:#3f454b; font-size:8.4px; }
.timeline-object-year { fill:#959aa0; }

/* Journey lens: spatial evidence only when it reveals actual movement. */
.world-map-outline { opacity:.18; stroke-width:.72; }
.journey-anchor-line { fill:none; stroke:#979d98; stroke-width:1; stroke-dasharray:3 6; opacity:.58; pointer-events:none; }
.journey-edge .map-edge { stroke-width:1.55; opacity:.72; }
.journey-empty-title { fill:#41474c; font-size:15px; font-weight:800; }
.journey-empty-copy { fill:#888e94; font-size:9px; font-weight:560; }
.place-pin-label-bg,.place-record-label-bg { stroke-width:.75; }
.place-object-card { stroke-width:.85; }

/* Selected relationship pane: the interpretation is the primary content. */
.edge-research-block { margin-top:14px; padding:12px 13px; }
.evidence-list { display:grid; gap:6px; }
.evidence-item { font-size:9.4px; line-height:1.45; }
.review-actions { gap:6px; }

/* v0.10 — consolidated Mapper controls + immersive spatial lens */
.filters-popover {
  width: 292px;
  padding: 15px;
  border: 1px solid var(--seed-line);
  border-radius: 16px;
  background: rgba(255,255,255,.985);
  box-shadow: 0 18px 48px rgba(24,26,29,.16);
}
.layers-popover-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-bottom:9px;
  margin-bottom:6px;
  border-bottom:1px solid var(--seed-line);
}
.layers-popover-heading strong { color:#444a50; font-size:11px; font-weight:780; }
.layers-popover-heading button { border:0; padding:0; background:transparent; color:var(--seed-red); font-size:9px; font-weight:720; cursor:pointer; }
.layers-help { margin:0 0 11px; color:#90959b; font-size:8.8px; line-height:1.4; }
.layer-options { display:block; }
.layer-chip-grid { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.layer-option.layer-chip { position:relative; display:block; cursor:pointer; }
.layer-option.layer-chip input { position:absolute; opacity:0; pointer-events:none; }
.layer-option.layer-chip span {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:7px 9px;
  border:1px solid transparent;
  border-radius:999px;
  background:var(--layer-colour);
  color:#51565b;
  font-size:9.5px;
  font-weight:700;
  text-align:center;
  transition:opacity 140ms ease,border-color 140ms ease,box-shadow 140ms ease,transform 140ms ease;
}
.layer-option.layer-chip:hover span { box-shadow:inset 0 0 0 1px rgba(66,66,66,.14); transform:translateY(-1px); }
.layer-option.layer-chip input:not(:checked) + span { opacity:.34; background:#efeee9; border-color:#d9d8d1; color:#73736e; }
.layer-option.layer-chip input:focus-visible + span { outline:3px solid rgba(153,203,229,.42); outline-offset:2px; }
.layer-options-divider { height:1px; margin:13px 0 9px; background:var(--seed-line); }
.relationship-controls { display:grid; gap:2px; }
.relationship-option { position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; padding:8px 3px; cursor:pointer; }
.relationship-option > span { display:grid; gap:2px; }
.relationship-option strong { color:#555a60; font-size:10px; font-weight:650; }
.relationship-option small { color:#959aa0; font-size:8.5px; line-height:1.25; }
.relationship-option input { position:absolute; opacity:0; pointer-events:none; }
.relationship-option.disabled { opacity:.42; cursor:not-allowed; }
.toggle-switch { position:relative; display:block; width:34px; height:20px; border-radius:999px; background:#cfcec7; transition:background 150ms ease; }
.toggle-switch::after { content:""; position:absolute; left:3px; top:3px; width:14px; height:14px; border-radius:50%; background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.18); transition:transform 150ms ease; }
.relationship-option input:checked + .toggle-switch { background:var(--seed-red); }
.relationship-option input:checked + .toggle-switch::after { transform:translateX(14px); }
.relationship-option input:focus-visible + .toggle-switch { outline:3px solid rgba(153,203,229,.42); outline-offset:2px; }
.interpretation-key { display:flex; gap:6px; flex-wrap:wrap; margin-top:10px; padding-top:10px; border-top:1px solid var(--seed-line); }
.interpretation-key span { padding:4px 7px; border-radius:999px; color:#767c82; font-size:7px; font-weight:760; }
.interpretation-key .key-source { background:#edf2eb; }
.interpretation-key .key-ai { background:#f8eee2; }
.interpretation-key .key-gap { background:#f4eaf0; }

/* The living synthesis carries the interpretation; the visual field supports it. */
.synthesis-overview > h1 { max-width:100%; font-size:26px; line-height:1.04; letter-spacing:-.035em; }
.synthesis-overview > #mapSummary { max-width:100%; font-size:11.5px; line-height:1.55; }
.field-signals { gap:8px; }
.field-signal { padding:12px 35px 12px 12px; }
.field-signal p { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

/* Avoid line trails while cards are being rearranged. The graph is redrawn once the drag ends. */
#network.is-dragging-node .edge-layer { opacity:0; }
#network.is-dragging-node .anchor-layer { opacity:.35; }
#network .edge-layer, #network .anchor-layer { transition:opacity 90ms ease; }

/* Timeline: chronology first, with a few readable interpretive tethers instead of contextual pills. */
.timeline-band { fill:#f8f7f3; }
.timeline-band.tone-1 { fill:#f4f5f2; }
.timeline-tick { stroke:#929792; stroke-width:1; stroke-dasharray:1 8; opacity:.52; }
.timeline-axis { stroke:rgba(90,96,96,.26); stroke-width:1; }
.timeline-object-card { fill:#fff; stroke:rgba(198,202,198,.96); stroke-width:1; filter:drop-shadow(0 10px 22px rgba(24,26,29,.07)); }
.timeline-node.selected .timeline-object-card { stroke:var(--seed-red); stroke-width:1.8; }
.timeline-tether .map-edge { opacity:.44; stroke-width:1.45; }
.timeline-tether.causal-edge .map-edge { opacity:.72; stroke-width:1.8; }
.timeline-tether:hover .map-edge, .timeline-tether.selected .map-edge { opacity:1; stroke-width:2.35; }
.timeline-tether-text { fill:#555b60; font-size:7.5px; font-weight:720; paint-order:stroke; stroke:#f7f6f2; stroke-width:4px; stroke-linejoin:round; pointer-events:none; }
.timeline-context { display:none !important; }
.timeline-node { cursor:ns-resize; }

/* Place: a globe-first, pin-led view inspired by playful exploratory map interfaces. */
.place-globe-shell { fill:#f4f7f4; stroke:rgba(104,117,109,.16); stroke-width:1.2; filter:drop-shadow(0 22px 52px rgba(24,26,29,.10)); }
.place-globe-map { pointer-events:none; }
.place-globe-outline { opacity:.47; filter:grayscale(.12); }
.place-globe-grid { fill:none; stroke:rgba(112,126,118,.10); stroke-width:.75; pointer-events:none; }
.place-globe-light { fill:rgba(255,255,255,.30); stroke:none; filter:blur(1.5px); }
.place-globe-rim { fill:none; stroke:rgba(255,255,255,.82); stroke-width:3; pointer-events:none; }
.place-pin-halo, .place-record-halo { fill:rgba(170,0,61,.08); }
.place-pin-dot, .place-record-dot { fill:#fff; stroke:var(--seed-red); stroke-width:1.6; }
.place-pin-label-bg, .place-record-label-bg { fill:rgba(255,255,255,.96); stroke:rgba(24,26,29,.09); filter:drop-shadow(0 5px 12px rgba(24,26,29,.055)); }
.place-pin-label, .place-record-label { fill:#535a60; font-size:7.2px; font-weight:740; }
.journey-anchor-line { stroke:rgba(90,105,96,.40); stroke-width:1; stroke-dasharray:3 6; opacity:.8; }
.place-object-card { fill:rgba(255,255,255,.98); stroke:rgba(194,199,194,.95); stroke-width:1; filter:drop-shadow(0 12px 26px rgba(24,26,29,.09)); }
.place-node.selected .place-object-card { stroke:var(--seed-red); stroke-width:1.8; filter:drop-shadow(0 14px 30px rgba(170,0,61,.14)); }
.place-object-title { fill:#343a40; font-size:8.8px; font-weight:770; }
.place-object-location { fill:#8e9499; font-size:6.8px; font-weight:680; }
.spatial-link .map-edge { opacity:.62; stroke-width:1.7; }
.spatial-link.causal-edge .map-edge { opacity:.84; stroke-width:2; }
.spatial-link:hover .map-edge, .spatial-link.selected .map-edge { opacity:1; stroke-width:2.6; }
.spatial-link-text { fill:#4f555a; font-size:7.4px; font-weight:720; paint-order:stroke; stroke:#f5f6f3; stroke-width:4px; stroke-linejoin:round; pointer-events:none; }
.spatial-note-title { fill:#555c61; font-size:9px; font-weight:760; }
.spatial-note-copy { fill:#8f959a; font-size:7.4px; font-weight:590; }
.place-unmapped-rule { stroke:rgba(117,122,126,.18); stroke-dasharray:4 7; }

@media (max-width: 1120px) {
  .filters-popover { right:-18px; width:280px; }
}
.place-pin.source-supported .place-pin-dot, .place-record-pin.source-supported .place-record-dot { stroke:#667967; }
.place-pin.external-evidence-required .place-pin-dot { stroke:#a66f37; }
.place-pin.research-question .place-pin-dot { stroke:#6f7392; }
.place-pin.selected .place-pin-dot, .place-record-pin.selected .place-record-dot { stroke:var(--seed-red); fill:var(--seed-red); }
.journey-anchor-line.field-proposition { stroke:#a66f37; stroke-dasharray:4 6; }
.journey-anchor-line.record, .journey-anchor-line.field-source { stroke:#667967; }


/* =========================================================
   v0.11.0 — clearer research controls + Mapper node parity
   + interactive spatial globe
   ========================================================= */

.loading-overlay {
  background: #f8f8f6;
  opacity: 1;
}

/* Research controls: use explicit selects for focus, Mapper toggles for relationships. */
.filters-popover {
  width: 300px;
  padding: 15px;
}
.research-layer-options {
  display: grid;
  gap: 4px;
}
.compact-select-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  align-items: center;
  gap: 12px;
  padding: 8px 2px;
}
.compact-select-row > span {
  display: grid;
  gap: 2px;
}
.compact-select-row strong {
  color: #555a60;
  font-size: 10px;
  font-weight: 690;
}
.compact-select-row small {
  color: #989ca2;
  font-size: 8.35px;
  line-height: 1.32;
}
.compact-select-row select {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 30px 0 10px;
  border: 1px solid #d9dad7;
  border-radius: 10px;
  color: #565b61;
  background:
    linear-gradient(45deg, transparent 50%, #8a8e93 50%) calc(100% - 14px) 14px/5px 5px no-repeat,
    linear-gradient(135deg, #8a8e93 50%, transparent 50%) calc(100% - 10px) 14px/5px 5px no-repeat,
    #fff;
  appearance: none;
  font: inherit;
  font-size: 9px;
  font-weight: 680;
  outline: none;
}
.compact-select-row select:hover { border-color: #c7c9c6; }
.compact-select-row select:focus-visible {
  border-color: rgba(170,0,61,.32);
  box-shadow: 0 0 0 3px rgba(170,0,61,.055);
}
.research-layer-options .layer-options-divider { margin: 9px 0 5px; }
.research-layer-options .relationship-controls { gap: 0; }
.relationship-option {
  grid-template-columns: minmax(0,1fr) 34px;
  min-height: 48px;
  padding: 7px 3px;
}
.relationship-option > span { gap: 2px; }
.relationship-option strong { font-size: 10px; font-weight: 680; }
.relationship-option small { font-size: 8.4px; line-height: 1.28; }
.relationship-option.disabled { opacity: .42; }
.toggle-switch { width: 34px; height: 20px; }

/* Nodes follow the SEED Mapping grammar: factor-coloured surface, quiet label, category pill. */
.map-node.concept .node-card {
  stroke: rgba(24,26,29,.10);
  stroke-width: 1;
  filter: drop-shadow(0 7px 15px rgba(24,26,29,.065));
}
.map-node.concept[data-type="people"] .node-card { fill: #eaf4f9; }
.map-node.concept[data-type="place"] .node-card { fill: #e8e5d1; }
.map-node.concept[data-type="ecological"] .node-card { fill: #e2ecd9; }
.map-node.concept[data-type="material"] .node-card { fill: #f9f0df; }
.map-node.concept[data-type="technology"] .node-card { fill: #eaf2f6; }
.map-node.concept[data-type="institution"] .node-card { fill: #f0f0ed; }
.map-node.concept[data-type="social"] .node-card,
.map-node.concept[data-type="system"] .node-card,
.map-node.concept[data-type="bridge"] .node-card { fill: #f7edf1; }
.map-node.concept[data-type="question"] .node-card { fill: #f7edf1; }
.map-node.concept .node-pill {
  fill: rgba(255,255,255,.72) !important;
  stroke: none;
}
.map-node .node-label {
  fill: #3d4348;
  font-size: 10.5px;
  font-weight: 680;
}
.map-node.concept .node-label { font-size: 10.2px; }
.map-node.selected .node-card {
  stroke: #424242 !important;
  stroke-width: 2.15 !important;
  filter: drop-shadow(0 9px 18px rgba(24,26,29,.14));
}

/* Mapper-like relationships terminate at card boundaries and stay subordinate until inspected. */
.map-edge {
  stroke: #858a87;
  stroke-width: 1.2;
  opacity: .56;
}
.map-edge.source-supported { stroke: #6f7f73; opacity: .62; }
.map-edge.external-evidence-required { stroke: #ae7a49; stroke-dasharray: 7 6; opacity: .72; }
.map-edge.research-question { stroke: #777d9a; stroke-dasharray: 1.5 6; opacity: .58; }
.edge-group.causal-edge .map-edge { stroke-width: 1.7; }
.edge-group.selected .map-edge {
  stroke: #454a4f !important;
  stroke-width: 2.25 !important;
  opacity: .96 !important;
}
.edge-group.selected .edge-label-bg { stroke: #aeb1ad; }
.edge-hit { stroke-width: 28; }
.edge-label-text { font-size: 8.3px; font-weight: 650; }

/* Timeline: preserve dates, use the vertical field for decluttering, keep tethers behind cards. */
.timeline-object-card {
  fill: #fff;
  stroke: rgba(193,197,193,.98);
  stroke-width: 1;
  filter: drop-shadow(0 10px 22px rgba(24,26,29,.075));
}
.timeline-node.selected .timeline-object-card {
  stroke: #424242;
  stroke-width: 2;
  filter: drop-shadow(0 10px 22px rgba(24,26,29,.13));
}
.timeline-edge .map-edge { opacity: .44; }
.timeline-edge.causal-edge .map-edge { opacity: .76; }
.timeline-tether-text {
  fill: #656b70;
  font-size: 8px;
  font-weight: 670;
  paint-order: stroke;
  stroke: rgba(248,248,246,.96);
  stroke-width: 4px;
  stroke-linejoin: round;
}

/* Interactive orthographic globe. */
.interactive-globe-sphere {
  fill:
    #f7f8f6;
  stroke: rgba(104,111,108,.20);
  stroke-width: 1.25;
  filter: drop-shadow(0 18px 45px rgba(24,26,29,.08));
}
.interactive-globe-graticule {
  fill: none;
  stroke: rgba(113,119,116,.13);
  stroke-width: .72;
  pointer-events: none;
}
.interactive-globe-country {
  fill: none;
  stroke: rgba(91,99,95,.25);
  stroke-width: .85;
  pointer-events: none;
}
.interactive-globe-country.selected {
  stroke: var(--seed-red);
  stroke-width: 1.5;
}
.globe-lens-title {
  fill: #959aa0;
  font-size: 8px;
  font-weight: 780;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.globe-route {
  fill: none;
  stroke: #6e7972;
  stroke-width: 1.35;
  opacity: .68;
  stroke-linecap: round;
}
.globe-route.external-evidence-required {
  stroke: #ae7a49;
  stroke-dasharray: 7 6;
}
.globe-route.research-question {
  stroke: #777d9a;
  stroke-dasharray: 1.5 6;
}
.globe-route-group.causal-edge .globe-route { stroke-width: 1.9; opacity: .9; }
.globe-route-label {
  fill: #666c72;
  font-size: 7.6px;
  font-weight: 680;
  paint-order: stroke;
  stroke: rgba(248,248,246,.98);
  stroke-width: 4px;
  pointer-events: none;
}
.globe-pin { cursor: pointer; }
.globe-pin-halo { fill: rgba(170,0,61,.04); }
.globe-pin-dot {
  fill: #fff;
  stroke: #707a72;
  stroke-width: 1.6;
}
.globe-pin.external-evidence-required .globe-pin-dot {
  stroke: #ae7a49;
  stroke-dasharray: 2 1;
}
.globe-pin.research-question .globe-pin-dot { stroke: #777d9a; }
.globe-pin.selected .globe-pin-dot {
  fill: var(--seed-red);
  stroke: var(--seed-red);
}
.globe-object-card { cursor: pointer; }
.globe-object-card .place-object-card { fill: #fff; }
.journey-anchor-line {
  fill: none;
  stroke: #8c948f;
  stroke-width: 1;
  stroke-dasharray: 3 5;
  opacity: .72;
}
.journey-anchor-line.field-proposition { stroke: #ae7a49; }
.globe-unresolved-label {
  fill: #999ea4;
  font-size: 7.5px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.globe-tooltip {
  position: absolute;
  z-index: 35;
  pointer-events: none;
  max-width: 180px;
  padding: 7px 9px;
  border: 1px solid rgba(24,26,29,.08);
  border-radius: 9px;
  color: #555b60;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 24px rgba(24,26,29,.10);
  font-size: 8.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* Keep object cards visually buffered from surrounding line-work. */
.node-card,
.timeline-object-card,
.place-object-card {
  paint-order: fill stroke;
}

/* Dim surrounding nodes without making their card surface transparent to lines behind them. */
.map-node.dimmed { opacity: 1; }
.map-node.dimmed .node-card,
.map-node.dimmed .timeline-object-card,
.map-node.dimmed .place-object-card {
  fill: #f8f8f6 !important;
  stroke: #e2e3e0 !important;
  filter: none !important;
}
.map-node.dimmed > :not(.node-card):not(.timeline-object-card):not(.place-object-card) { opacity: .18; }

/* Multi-institution catalogue discovery: reuse existing panel shapes and typography. */
.collection-search-form { margin: 0 0 13px; }
.collection-search-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: stretch; gap: 7px; }
.collection-search-row input, .reference-form input, .reference-form textarea, .collection-scope {
  width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid var(--seed-line-strong);
  border-radius: 12px; color: var(--seed-ink); background: #fff; font-size: 11px;
}
.collection-search-row input { min-height: 42px; }
.collection-search-row .secondary-action, .reference-form .secondary-action { margin: 0; min-height: 42px; }
.collection-scope-label { margin-top: 9px; }
.collection-scope { min-height: 40px; margin-bottom: 7px; }
.import-form { margin: 14px 0 12px; }
.source-caution, .catalogue-disclaimer, .catalogue-empty, .catalogue-error {
  margin: 9px 0 13px; color: #858b90; font-size: 10px; line-height: 1.55;
}
.catalogue-error { color: var(--danger); }
.reference-options { margin: 12px 0 0; border-top: 1px solid var(--seed-line); padding-top: 12px; }
.reference-options summary { display: flex; align-items: center; gap: 7px; cursor: pointer; color: #6e747c; font-size: 11px; font-weight: 720; }
.reference-options summary span { margin-left: auto; color: #a0a4aa; font-size: 9px; font-weight: 650; }
.reference-form { display: grid; gap: 7px; padding: 16px 0 10px; }
.reference-form .field-label { margin: 3px 0 0; }
.reference-form textarea { resize: vertical; }
.reference-pair { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.reference-pair label { color: #555a61; font-size: 10px; font-weight: 700; }
.reference-pair input { margin-top: 5px; }
.reference-form .secondary-action { margin-top: 7px; white-space: normal; height: auto; padding: 9px 12px; }
.collection-results { display: grid; gap: 12px; padding: 11px 0 14px; }
.catalogue-group { display: grid; gap: 6px; }
.catalogue-group h3 { margin: 4px 0; font-size: 11px; font-weight: 800; color: #5d6269; }
.catalogue-card { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 10px; padding: 9px; border: 1px solid var(--seed-line); border-radius: 13px; background: #fff; }
.catalogue-card img, .catalogue-placeholder { width: 44px; height: 44px; border-radius: 8px; object-fit: contain; background: var(--seed-surface-soft); }
.catalogue-placeholder { display: grid; place-items: center; color: #a4a7ad; font-size: 8px; font-weight: 750; }
.catalogue-details { min-width: 0; }
.catalogue-details strong { display: block; font-size: 10px; line-height: 1.36; }
.catalogue-details small { color: #9a9fa4; font-size: 8px; }
.catalogue-details p { margin: 4px 0 7px; color: #797e85; font-size: 9px; line-height: 1.42; overflow-wrap: anywhere; }
.catalogue-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.catalogue-actions button, .catalogue-actions a, .catalogue-external a { padding: 0; border: 0; background: transparent; color: var(--seed-red); font-size: 9px; font-weight: 760; text-decoration: none; }
.catalogue-actions button:disabled { opacity: .45; cursor: not-allowed; }
.catalogue-actions a { color: #747a82; }
.catalogue-actions a:hover, .catalogue-external a:hover { text-decoration: underline; }
.catalogue-external { display: flex; flex-wrap: wrap; gap: 7px 12px; padding: 12px; border: 1px dashed var(--seed-line-strong); border-radius: 13px; }
.catalogue-external span { width: 100%; color: #7d8289; font-size: 9px; }
.metadata-audit { margin: 13px 0 15px; padding: 11px 12px; border: 1px solid var(--seed-line); border-radius: 14px; background: var(--seed-surface-warm); }
.audit-caption strong { display: block; font-size: 10px; }
.audit-caption span { display: block; margin: 4px 0 9px; color: var(--seed-muted); font-size: 9px; line-height: 1.5; }
.audit-row { display: flex; justify-content: space-between; gap: 9px; padding: 7px 0; border-top: 1px solid var(--seed-line); font-size: 9px; }
.audit-row span { color: #646970; }
.audit-row strong { flex: 0 0 auto; color: var(--seed-ink-2); font-size: 9px; font-weight: 700; }
@media (max-width: 380px) { .reference-pair { grid-template-columns: 1fr; } }

.suggested-queries { display: flex; flex-wrap: wrap; gap: 6px; }
.suggested-queries > span { width: 100%; }
.suggested-query { padding: 7px 10px; border: 1px solid rgba(170,0,61,.17); border-radius: 99px; color: var(--seed-red); background: var(--seed-red-soft); font-size: 10px; }
.suggested-query:hover { background: #f1dce4; }
