/* All additions are scoped: existing notes and the knowledge map keep their styles. */
.explore-links { margin: 36px 0 38px; }
.explore-links-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px 24px; flex-wrap:wrap; margin-bottom:20px; }
.explore-links-heading h2 { margin:0; font: 28px/1.3 var(--hand); }
.explore-links-heading p { margin:0; color:#66745f; font-size:15px; }
.explore-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.explore-card { display:flex; align-items:center; gap:18px; flex-wrap:wrap; padding:23px; border:1px solid #dce6d4; border-radius:18px; background:linear-gradient(125deg,#f4f8ed,#fff 80%); color:#294735; transition:transform .18s,border-color .18s,box-shadow .18s; }
.explore-card:hover { transform:translateY(-3px); border-color:#93b37d; box-shadow:0 8px 24px #34532b0c; }
.explore-card-art { width:90px; flex-shrink:0; color:#65855a; }
.explore-card-art svg { display:block; width:100%; }
.explore-card-copy { flex:1; min-width:150px; display:grid; gap:6px; }
.explore-card-tag { color:#68785e; font-size:13px; }
.explore-card strong { font:23px/1.3 var(--hand); }
.explore-card-description { font-size:15px; line-height:1.6; color:#596953; }
.explore-card-open { flex-basis:100%; margin-left:108px; font-size:14px; color:#476f45; text-decoration:underline; text-underline-offset:5px; }
.explore-links-compact { margin:4px 0 26px; }
.explore-links-compact .explore-links-heading h2 { font-size:24px; }
.explore-links-compact .explore-card { padding:17px 20px; gap:12px; }
.explore-links-compact .explore-card-art { width:65px; }
.explore-links-compact .explore-card-open { display:none; }
.explore-links-compact .explore-card-grid:has(> :only-child) { grid-template-columns:1fr; }
.explore-page .topbar { position:relative; }
.exp-main { max-width:1260px; margin:0 auto; padding:30px 40px 0; }
.exp-nav { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:35px; }
.exp-nav a { font-size:14px; padding:8px 15px; border:1px solid #e2e9dc; border-radius:999px; color:#61745b; }
.exp-nav a[aria-current=page] { color:#345b32; background:#edf4e3; border-color:#b5cea0; }
.exp-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:28px; }
.exp-tag { font-size:14px; color:#657c56; margin:0 0 8px; }
.exp-heading h1 { font:clamp(30px,4vw,44px)/1.2 var(--hand); margin:0 0 12px; }
.exp-heading p:last-child { margin:0; color:#63705b; max-width:680px; }
.exp-note-link { flex-shrink:0; padding:10px 16px; border:1px solid #cfdec4; border-radius:10px; font-size:14px; background:#fff; }
.exp-workspace { display:grid; grid-template-columns:minmax(0,1.75fr) minmax(275px,1fr); border:1px solid #dce5d2; border-radius:22px; box-shadow:0 10px 40px #304f2105; }
.exp-canvas-column { min-width:0; background:#fffce8; padding:20px 16px 0; }
.exp-canvas-top { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:12px; padding:0 6px; font-size:14px; color:#54684b; }
.exp-canvas-top>span { font-family:var(--hand); font-size:19px; }
.exp-canvas-top label { display:flex; align-items:center; gap:8px; }
.exp-canvas-top select,.exp-speed select { font:inherit; border:1px solid #c8d8b8; padding:5px 25px 5px 10px; border-radius:7px; background-color:#ffffffa6; color:#3c5834; appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%23546b46' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 8px center; }
.exp-graph-wrap { overflow-x:auto; margin:4px -4px; }
.exp-graph { display:block; width:100%; min-width:540px; height:auto; }
.exp-graph .edge { stroke:#bec8ad; stroke-width:2; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.exp-graph .edge.chosen { stroke:#527b43; stroke-width:4; }
.exp-graph .edge.active { stroke:#b87932; stroke-width:4.5; }
.exp-graph .edge.rejected { stroke:#b65d50; stroke-dasharray:7 6; }
.exp-graph .edge.new-edge { stroke:#547ea2; stroke-width:3.5; }
.exp-graph .vertex { fill:#fffef6; stroke:#789069; stroke-width:2; }
.exp-graph .vertex.settled { fill:#dbeac6; stroke:#557941; stroke-width:2.6; }
.exp-graph .vertex.active { fill:#ffe1a8; stroke:#a76c28; stroke-width:3; }
.exp-graph text { fill:#294735; font:22px var(--hand); text-anchor:middle; dominant-baseline:central; }
.exp-graph .distance { font:18px var(--body); fill:#536744; }
.exp-graph .edge-label { font-size:21px; }
.exp-graph .label-paper { fill:#fffce8; }
.exp-graph .ghost { opacity:.13; }
.exp-graph .new-vertex { animation:exp-appear .3s ease-out; }
@keyframes exp-appear { from { opacity:.25; } to { opacity:1; } }
.exp-legend { display:flex; flex-wrap:wrap; gap:10px 18px; font-size:13px; padding:4px 12px 16px; color:#5d6c50; }
.exp-legend span { display:inline-flex; align-items:center; gap:7px; }
.exp-legend i { display:inline-block; width:15px; height:9px; background:var(--swatch); border-radius:5px; border:1px solid #69825955; }
.exp-stats { display:flex; flex-wrap:wrap; gap:15px 28px; border-top:1px solid #dddcc6; padding:15px 12px; font-size:14px; color:#546545; }
.exp-stats strong { color:#2e4e2a; font-size:19px; margin-right:5px; }
.exp-story { padding:28px; background:linear-gradient(145deg,#f5f9ee,#fff 70%); border-left:1px solid #e2e9d7; display:flex; flex-direction:column; justify-content:space-between; gap:25px; min-width:0; }
.exp-step-label { margin:0 0 14px; font-size:13px; letter-spacing:.06em; color:#6d815e; }
.exp-story h2 { font:27px/1.3 var(--hand); margin:0 0 16px; overflow-wrap:anywhere; }
.exp-story-copy>p:not(.exp-step-label) { font-size:16px; line-height:1.8; margin:0; }
.exp-equation { border:1px solid #d5e1c9; padding:14px; background:#fbfdf6; border-radius:10px; font:19px/1.6 var(--hand); margin-top:20px; overflow-wrap:anywhere; }
.exp-equation:empty { display:none; }
.exp-insight { border-top:1px solid #e2e9da; padding-top:18px; }
.exp-insight>span { font-size:13px; color:#607953; }
.exp-insight p { font-size:14px; line-height:1.7; color:#5a6e50; margin:7px 0 0; }
.exp-controls { grid-column:1/-1; grid-row:1; position:sticky; top:0; z-index:5; border-bottom:1px solid #dce5d2; border-radius:22px 22px 0 0; padding:16px 25px 12px; background:#fffffff5; backdrop-filter:blur(8px); }
.exp-control-title { font:20px/1.3 var(--hand); margin:0 0 10px; }
.exp-home-link { font-size:14px; }
.exp-scrubber { display:flex; align-items:center; gap:14px; font-size:14px; color:#5d7250; margin-bottom:18px; }
.exp-scrubber input { flex:1; min-width:60px; accent-color:#66894e; cursor:pointer; }
.exp-scrubber output { min-width:62px; text-align:right; font-variant-numeric:tabular-nums; }
.exp-buttons { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.exp-control { border:1px solid #d4dfca; border-radius:9px; padding:10px 17px; font-size:15px; min-width:82px; background:#f9fbf5; }
.exp-control:hover { background:#eef4e6; }
.exp-control:disabled { opacity:.4; cursor:default; }
.exp-control.exp-primary { color:#fff; background:#4f7443; border-color:#4f7443; }
.exp-control.exp-primary:hover { background:#3f6134; }
.exp-control[aria-pressed=true] { border-color:#7e9b66; background:#e8f0dd; }
.exp-speed { display:flex; align-items:center; gap:8px; font-size:14px; margin-left:auto; }
.exp-keyboard { margin:12px 0 0; color:#748169; font-size:13px; }
.exp-detail { margin-top:32px; }
.exp-detail-heading { display:flex; flex-wrap:wrap; align-items:baseline; gap:10px 20px; justify-content:space-between; }
.exp-detail h2 { font:25px var(--hand); margin:0 0 12px; }
.exp-detail-heading p { font-size:14px; color:#6c7a60; margin:0 0 12px; }
.exp-table-wrap { overflow-x:auto; border:1px solid #dfe7d6; border-radius:12px; }
.exp-table-wrap table { border-collapse:collapse; width:100%; min-width:520px; font-size:15px; text-align:center; }
.exp-table-wrap th,.exp-table-wrap td { padding:11px 14px; border-bottom:1px solid #e9eee3; }
.exp-table-wrap th { color:#5d7351; font-weight:500; background:#f7faf2; }
.exp-table-wrap tr:last-child td { border-bottom:0; }
.exp-table-wrap .cell-active { background:#fff2d0; }
.exp-table-wrap .cell-settled { background:#eaf3de; }
.explore-page :focus-visible,.explore-links :focus-visible { outline:3px solid #8caa70; outline-offset:4px; }
@media (max-width:1000px) {
  .exp-main { padding:24px 22px 0; }
  .exp-workspace { grid-template-columns:1fr; }
  .exp-story { border-left:0; border-top:1px solid #dce5d2; display:grid; grid-template-columns:1.5fr 1fr; min-height:230px; }
  .exp-insight { border-top:0; padding:0 0 0 22px; border-left:1px solid #e2e9da; }
  .exp-canvas-column { padding:20px 24px 0; }
  .exp-graph { max-width:760px; margin:0 auto; }
}
@media (max-width:650px) {
  .explore-card-grid { grid-template-columns:1fr; }
  .exp-main { padding:20px 14px 0; }
  .explore-page .topbar { padding:16px; gap:15px; flex-wrap:wrap; }
  .explore-page .brand { font-size:23px; }
  .explore-page .top-actions { gap:14px; }
  .exp-nav { margin-bottom:25px; gap:7px; }
  .exp-nav a { font-size:13px; padding:7px 11px; }
  .exp-heading { align-items:flex-start; flex-direction:column; }
  .exp-story { display:flex; min-height:0; padding:23px; }
  .exp-insight { border-left:0; border-top:1px solid #e2e9da; padding:18px 0 0; }
  .exp-canvas-column { padding:16px 8px 0; }
  .exp-controls { padding:18px 14px; }
  .exp-control { padding:10px 13px; min-width:65px; }
  .exp-speed { margin:5px 0 0; }
  .exp-keyboard { display:none; }
}
@media(prefers-reduced-motion:reduce) { .explore-card,.exp-graph * { animation:none!important; transition:none!important; } }
.motion-portal { display:flex; gap:24px; align-items:center; flex-wrap:wrap; padding:30px; border:1px solid #d6e3c9; border-radius:20px; background:linear-gradient(110deg,#edf5e2,#fff 85%); }
.motion-portal-art { width:100px; color:#6b8a56; flex-shrink:0; }
.motion-portal-art svg { width:100%; display:block; }
.motion-portal-copy { flex:1; min-width:220px; }
.motion-portal-copy h2 { margin:0 0 10px; font:30px/1.3 var(--hand); }
.motion-portal-copy p { margin:0 0 10px; color:#5d7152; font-size:16px; }
.motion-portal-meta { font-size:13px; color:#6b7c5f; }
.motion-portal-open { border:1px solid #b2c99d; border-radius:10px; padding:10px 16px; background:#f9fcf5; font-size:15px; }
.motion-portal:hover { border-color:#96b47c; box-shadow:0 6px 22px #3653250a; }
.motion-directory-link { font-size:14px; text-decoration:underline; text-underline-offset:5px; }
.motion-badges { display:flex; flex-wrap:wrap; gap:6px; margin-top:4px; }
.motion-badge { padding:2px 8px; border:1px solid #dae6cf; border-radius:999px; background:#f5f9ee; font-size:12px; color:#61734f; }
.motion-main { max-width:1200px; padding:40px 32px 0; margin:auto; }
.motion-heading { max-width:770px; margin:0 0 32px; }
.motion-heading>span { font-size:13px; letter-spacing:.08em; color:#6a8158; }
.motion-heading h1 { font:clamp(36px,5vw,52px)/1.2 var(--hand); margin:15px 0; }
.motion-heading p { font-size:17px; color:#64735a; line-height:1.8; }
.motion-filter-panel { padding:24px; border:1px solid #dce6d3; border-radius:18px; background:linear-gradient(135deg,#f3f8eb,#fff); }
.motion-filter-panel h2 { margin:0 0 14px; font:23px var(--hand); }
.motion-courses { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:22px; }
.motion-courses button { border:1px solid #d1dfc4; border-radius:999px; padding:8px 17px; font-size:15px; background:#fff; }
.motion-courses button[aria-pressed=true] { background:#e2efd4; border-color:#94b477; color:#35552b; }
.motion-filter-row { display:flex; flex-wrap:wrap; gap:16px; align-items:flex-end; }
.motion-filter-row label { display:grid; gap:7px; font-size:14px; color:#566e48; }
.motion-filter-row label:first-child { flex:1; min-width:190px; }
.motion-filter-row input,.motion-filter-row select { height:44px; border:1px solid #cfddc4; border-radius:9px; padding:9px 12px; background:#fff; font:15px var(--body); color:#2e4b2c; min-width:0; }
.motion-filter-row select { appearance:none; padding-right:34px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%23546b46' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; }
#motion-count { color:#68795c; font-size:14px; margin:24px 0 16px; }
.motion-empty { padding:45px 24px; border:1px dashed #cfddc3; border-radius:18px; background:#fbfdf7; }
.motion-empty h2 { font:28px var(--hand); margin:0 0 12px; }
.motion-empty p { color:#647859; }
.exp-graph .scene-edge-label { font:19px var(--body); }
.exp-graph .scene-region-label { font:18px var(--body); fill:#5b704c; }
.motion-main :focus-visible { outline:3px solid #8caa70; outline-offset:4px; }
@media(max-width:650px) { .motion-main { padding:26px 18px 0; } .motion-portal { padding:24px; gap:16px; } .motion-portal-art { width:65px; } .motion-filter-panel { padding:18px; } .motion-filter-row label:first-child { flex-basis:100%; } }
