.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mind-intro { padding: 85px 0 35px; border-bottom: 1px solid var(--line); }
.mind-kicker { margin: 0 0 26px; color: #999994; }
.mind-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 36px; }
.mind-title-row h1 { margin: 0; font-size: clamp(75px, 12vw, 148px); font-weight: 600; line-height: .85; letter-spacing: -.1em; }
.mind-title-row h1 span { color: #bdbdb8; }
.mind-title-row > p { max-width: 310px; margin: 0 0 7px; color: #80807b; font-size: 12px; line-height: 1.9; }
.mind-intro-bottom { display: flex; justify-content: space-between; margin-top: 57px; color: #a2a29c; font-size: 8px; }
.mind-now { padding: 61px 0 78px; border-bottom: 1px solid var(--line); }
.mind-edit-note, .mind-node-count, .mind-library-count { margin-left: auto; font-size: 8px; }
.now-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 29px; }
.now-card { min-height: 163px; display: flex; flex-direction: column; align-items: flex-start; padding: 20px; border: 1px solid var(--line); background: var(--surface-soft); }
.now-index, .now-status { color: #a0a09b; font-size: 7px; }
.now-card h3 { margin: 21px 0 6px; font-size: 15px; font-weight: 500; letter-spacing: -.035em; }
.now-card p { margin: 0 0 18px; color: #92928d; font-size: 10px; line-height: 1.8; }
.now-status { margin-top: auto; }
.now-card.has-spotify-embed { min-height: 310px; }
.spotify-embed { width: 100%; margin-top: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 5px 18px rgba(0,0,0,.06); }
.spotify-embed[hidden] { display: none; }
.spotify-embed iframe { display: block; width: 100%; height: 152px; border: 0; background: var(--surface); }
.now-music-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; color: var(--text-muted); font-size: 9px; transition: color .2s ease; }
.now-music-link:hover { color: var(--ink); }
.now-music-link .contact-icon { width: 15px; height: 15px; }
.mind-map-section { padding: 81px 0 79px; border-bottom: 1px solid var(--line); }
.map-heading, .library-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 39px 0 28px; }
.map-heading h2, .library-heading h2 { margin: 0; font-size: clamp(32px, 4.7vw, 54px); font-weight: 500; letter-spacing: -.075em; }
.map-heading p, .library-heading p { margin: 10px 0 0; color: #92928d; font-size: 10px; }
.map-actions { display: flex; align-items: center; gap: 16px; }
.map-key { display: flex; align-items: center; gap: 8px; padding-bottom: 4px; color: var(--text-soft); font-size: 7px; white-space: nowrap; }
.map-key i { width: 19px; height: 1px; background: var(--text-faint); }
.graph-reset { padding: 7px 10px; border: 1px solid var(--line); border-radius: 30px; background: transparent; color: var(--text-muted); font-size: 7px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.graph-reset:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.graph-guide { display: grid; grid-template-columns: 30px minmax(0, 1fr) 25px; align-items: center; gap: 11px; width: min(440px, 100%); margin: 0 0 13px auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 8px 24px rgba(0,0,0,.045); animation: guide-arrive .5s cubic-bezier(.2,.8,.2,1) both; }
.graph-guide[hidden] { display: none; }
@keyframes guide-arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.graph-guide-mark { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); color: var(--text-muted); }
.graph-guide-mark svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.4; }
.graph-guide-copy { display: grid; gap: 3px; }
.graph-guide-title { color: var(--text-soft); font-size: 7px; }
.graph-guide-description { color: var(--text-muted); font-size: 9px; line-height: 1.55; }
.graph-guide-close { display: grid; width: 25px; height: 25px; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--text-soft); font-size: 18px; line-height: 1; cursor: pointer; transition: color .2s, background .2s, transform .2s; }
.graph-guide-close:hover { background: var(--surface-soft); color: var(--ink); transform: rotate(90deg); }
.graph-guide-close:focus-visible, .graph-reset:focus-visible, .detail-related-node:focus-visible { outline: 2px solid var(--line-strong); outline-offset: 3px; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 235px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); box-shadow: 0 18px 55px rgba(0,0,0,.045), inset 0 1px 0 rgba(255,255,255,.35); }
.graph-frame { min-width: 0; overflow: hidden; border-right: 1px solid var(--line); background-color: var(--surface); background-image: radial-gradient(var(--line-strong) .65px, transparent .65px), radial-gradient(ellipse at 48% 42%, var(--surface) 0%, var(--surface-soft) 68%, transparent 100%); background-size: 18px 18px, 100% 100%; touch-action: pan-x pan-y; }
.mind-graph { position: relative; z-index: 1; display: block; width: 100%; height: auto; min-height: 380px; }
.graph-edge { fill: none; stroke: var(--line-strong); stroke-width: 1.25; opacity: .8; transition: stroke .25s, stroke-width .25s, opacity .25s; }
.graph-edge.is-active { stroke: var(--ink); stroke-width: 1.7; stroke-dasharray: 3 6; animation: connection-flow 2.4s linear infinite; opacity: 1; }
@keyframes connection-flow { to { stroke-dashoffset: -18; } }
.graph-node { cursor: grab; outline: none; touch-action: none; }
.graph-node.is-dragging { cursor: grabbing; }
.graph-node-dot { fill: var(--text-faint); stroke: var(--surface); stroke-width: 4; filter: drop-shadow(0 1px 3px rgba(0,0,0,.16)); transition: r .2s, fill .2s, stroke .2s; }
.graph-node:nth-child(odd) .graph-node-dot { fill: var(--text-muted); }
.graph-node-label { fill: var(--text-muted); font-family: var(--mono); font-size: 10px; letter-spacing: .01em; pointer-events: none; transition: fill .2s, opacity .2s; }
.graph-node:hover .graph-node-dot, .graph-node:focus .graph-node-dot, .graph-node.is-selected .graph-node-dot, .graph-node.is-list-highlight .graph-node-dot { r: 7; fill: var(--ink); }
.graph-node:focus-visible .graph-node-dot { stroke: var(--ink); stroke-width: 2; }
.graph-node.is-neighbor .graph-node-dot { fill: var(--text-muted); }
.graph-node.is-selected .graph-node-label, .graph-node.is-neighbor .graph-node-label, .graph-node.is-list-highlight .graph-node-label { fill: var(--ink); }
.graph-help { margin: 0; padding: 0 18px 15px; color: var(--text-faint); font-size: 7px; }
.graph-help-narrow { display: none; }
.node-detail { display: flex; flex-direction: column; align-items: flex-start; padding: 21px 18px; }
.detail-kicker { margin: 0 0 23px; color: var(--text-soft); font-size: 7px; }
.detail-title { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.2; letter-spacing: -.05em; }
.detail-description { margin: 10px 0 0; color: var(--text-muted); font-size: 9px; line-height: 1.8; }
.detail-connections { width: 100%; margin-top: 26px; overflow-y: auto; }
.detail-related-label { margin: 0 0 9px; color: var(--text-soft); font-size: 7px; }
.detail-connections ul { margin: 0; padding: 0; list-style: none; }
.detail-connections li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 9px; line-height: 1.6; }
.detail-related-node { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.detail-related-node:hover { text-decoration: underline; text-underline-offset: 3px; }
.detail-reason { margin: 5px 0 0; color: var(--text-muted); font-size: 8px; line-height: 1.7; }
.detail-link { display: flex; justify-content: space-between; width: 100%; margin-top: auto; padding-top: 20px; color: var(--text-muted); font-family: var(--mono); font-size: 7px; letter-spacing: .06em; }
.detail-link span { font-size: 12px; }
.detail-link[hidden] { display: none; }
.mind-library { padding: 81px 0 90px; border-bottom: 1px solid var(--line); }
.library-heading { margin-bottom: 26px; }
.mind-search { width: 225px; display: flex; align-items: center; border-bottom: 1px solid var(--line-strong); }
.mind-search input { width: 100%; padding: 10px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 10px var(--sans); }
.mind-search input::placeholder { color: var(--text-faint); }
.mind-search > span { color: var(--text-muted); font-size: 19px; }
.mind-filters { display: flex; gap: 7px; margin-bottom: 22px; }
.mind-filters button { padding: 8px 13px; border: 1px solid var(--line); border-radius: 30px; background: transparent; color: var(--text-muted); font-size: 9px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.mind-filters button:hover, .mind-filters button.is-active { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.mind-results { margin: 0 0 9px; color: var(--text-faint); font-size: 7px; }
.mind-list { border-top: 1px solid var(--line); }
.reference-item { display: grid; grid-template-columns: 42px minmax(180px, 1fr) minmax(160px, .7fr) 18px; align-items: center; gap: 12px; min-height: 49px; border-bottom: 1px solid var(--line); transition: padding .2s, background .2s; }
.reference-item:hover, .reference-item:focus-visible { padding-right: 9px; padding-left: 9px; background: var(--surface-soft); outline: none; }
.reference-number, .reference-group { color: var(--text-faint); font-size: 7px; }
.reference-title { font-size: 11px; }
.reference-arrow { justify-self: end; color: var(--text-soft); font-size: 13px; }
.reference-empty { padding: 28px 0; color: #999994; }
.mind-note { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 42px 0; }
.mind-note > p:first-child { flex: 0 0 auto; margin: 0; color: #a09f99; font-size: 7px; }
.mind-note > p:nth-child(2) { max-width: 390px; margin: 0 auto 0 0; color: #858580; font-size: 10px; line-height: 1.8; }
.mind-note > a { flex: 0 0 auto; color: #777772; font-size: 7px; }
body[data-theme="dark"] .map-heading p,
body[data-theme="dark"] .library-heading p,
body[data-theme="dark"] .now-card p,
body[data-theme="dark"] .mind-note > p:nth-child(2) { color: var(--text-muted); }

@media (max-width: 800px) {
  .mind-intro { padding-top: 68px; }
  .mind-title-row h1 { font-size: 105px; }
  .mind-title-row > p { max-width: 260px; font-size: 10px; }
  .now-grid { gap: 9px; }
  .now-card { min-height: 170px; padding: 15px; }
  .map-layout { grid-template-columns: minmax(0, 1fr) 190px; }
  .mind-graph { min-height: 320px; }
  .graph-node-label { font-size: 11px; }
  .node-detail { padding: 18px 14px; }
}
@media (max-width: 600px) {
  .mind-intro { padding: 57px 0 27px; }
  .mind-kicker { font-size: 8px; }
  .mind-title-row { display: block; }
  .mind-title-row h1 { font-size: 87px; }
  .mind-title-row > p { max-width: 340px; margin-top: 21px; }
  .mind-intro-bottom { gap: 15px; margin-top: 35px; font-size: 6px; line-height: 1.7; }
  .mind-intro-bottom span:last-child { text-align: right; }
  .mind-now, .mind-map-section, .mind-library { padding-top: 62px; padding-bottom: 65px; }
  .now-grid { grid-template-columns: 1fr; gap: 9px; margin-top: 22px; }
  .now-card { min-height: 145px; }
  .now-card h3 { margin-top: 15px; }
  .mind-edit-note { font-size: 6px; }
  .map-heading, .library-heading { display: block; margin: 32px 0 22px; }
  .map-heading h2, .library-heading h2 { font-size: 37px; }
  .map-actions { justify-content: space-between; margin-top: 17px; }
  .map-key { margin-top: 0; }
  .map-layout { grid-template-columns: 1fr; }
  .graph-frame { border-right: 0; border-bottom: 1px solid #e7e7e2; }
  .graph-frame { overflow-x: auto; }
  .mind-graph { min-height: 0; width: 800px; max-width: none; }
  .graph-node-label { font-size: 12px; }
  .graph-help-wide { display: none; }
  .graph-help-narrow { display: inline; }
  .graph-help { font-size: 6px; }
  .node-detail { min-height: 210px; padding: 20px; }
  .detail-kicker { margin-bottom: 14px; }
  .detail-link { margin-top: 20px; }
  .library-heading > div { margin-bottom: 19px; }
  .mind-search { width: 100%; }
  .mind-filters { gap: 5px; flex-wrap: wrap; }
  .mind-filters button { padding: 7px 11px; font-size: 8px; }
  .reference-item { grid-template-columns: 28px 1fr 15px; gap: 8px; min-height: 55px; }
  .reference-group { display: none; }
  .reference-title { font-size: 10px; }
  .mind-note { align-items: flex-start; flex-wrap: wrap; gap: 12px 19px; padding: 30px 0; }
  .mind-note > p:nth-child(2) { order: 2; flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .graph-edge, .graph-node-dot, .graph-node-label, .reference-item, .graph-guide { transition: none; animation: none; }
}
