/* A quiet atlas: topics first, then the little lights each one holds. */
.constellation-garden { margin-top: 48px; isolation: isolate; }
.constellation-garden [hidden] { display: none !important; }
.cg-topline { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 0 4px 22px; border-bottom: 1px solid #e7d5d012; }
.cg-guide { color: #b9adb9; font-size: 14px; letter-spacing: 1px; line-height: 1.8; }
.cg-top-actions { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.cg-total { color: #978a9b; font-size: 12px; letter-spacing: .6px; }
.cg-share { padding: 8px 0; min-height: 40px; background: none; border: 0; border-bottom: 1px solid #b8958540; color: #d1b3a7; font-size: 12px; letter-spacing: .7px; }
.cg-share:hover { color: #f7d6bd; border-color: #edbfa9; }
.cg-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 24px 0 14px; }
.cg-topic { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 326px; padding: 16px 18px 20px; color: #c6bacb; background: transparent; border: 1px solid transparent; border-radius: 20px; text-align: center; transition: background .35s, border-color .35s; }
.cg-topic::before { content: ''; position: absolute; top: 40px; left: 9%; width: 82%; height: 120px; border: 1px solid #d0b3c117; border-radius: 50%; transform: rotate(-18deg); pointer-events: none; }
.cg-topic:nth-child(2)::before { transform: rotate(17deg); }
.cg-topic:nth-child(3)::before { transform: rotate(-7deg); }
.cg-topic:hover, .cg-topic:focus-visible { background: radial-gradient(ellipse at 50% 37%, #e3baa710, transparent 73%); border-color: #dac3bc1c; }
.cg-mini { display: block; width: min(100%, 240px); height: 151px; overflow: visible; flex-shrink: 0; transition: filter .35s, opacity .35s; }
.cg-line { fill: none; stroke: #d3b8b57a; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cg-line-ghost { fill: none; stroke: #bea6c52a; stroke-width: .7; stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; }
.cg-node { fill: #b3a7c1; }
.cg-node-bright { fill: #f4dac6; filter: drop-shadow(0 0 5px #edbba399); }
.cg-node-halo { fill: #efcaac12; }
.cg-topic:hover .cg-mini, .cg-topic.is-complete .cg-mini { filter: drop-shadow(0 0 8px #efd0ba40); }
.cg-topic:hover .cg-line, .cg-topic.is-complete .cg-line { stroke: #f0ceb8; }
.cg-topic-copy { display: block; min-width: 0; }
.cg-topic-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 6px 0 10px; font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: 2px; line-height: 1.5; color: #e5d3cc; overflow-wrap: anywhere; }
.cg-topic-subtitle { display: block; color: #9c8e9f; font-size: 13px; line-height: 1.8; letter-spacing: .4px; }
.cg-topic-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 11px; font-size: 12px; letter-spacing: .6px; color: #9f8e9d; }
.cg-read { color: #c4a697; }
.cg-open-cue { display: block; margin-top: 13px; font-size: 12px; letter-spacing: 1px; color: #be9b90; }
.constellation-garden[data-expanded='true'] .cg-overview { gap: 12px; padding-bottom: 0; }
.constellation-garden[data-expanded='true'] .cg-topic { height: 91px; min-height: 0; display: grid; grid-template-columns: 68px minmax(0,1fr); gap: 12px; padding: 10px 18px; background: #e9c5ba03; border-color: #d6b9c018; border-radius: 12px; text-align: left; }
.constellation-garden[data-expanded='true'] .cg-topic::before { display: none; }
.constellation-garden[data-expanded='true'] .cg-mini { width: 68px; height: 64px; }
.constellation-garden[data-expanded='true'] .cg-topic-title { font-family: inherit; font-size: 15px; letter-spacing: .6px; margin: 0 0 7px; }
.constellation-garden[data-expanded='true'] .cg-topic-meta { justify-content: flex-start; margin: 0; gap: 8px; font-size: 11px; }
.constellation-garden[data-expanded='true'] .cg-topic-subtitle, .constellation-garden[data-expanded='true'] .cg-open-cue { display: none; }
.constellation-garden[data-expanded='true'] .cg-topic.is-active { background: linear-gradient(110deg, #e1baa912, #b19bd207); border-color: #d4b3a55e; }
.cg-detail { margin-top: 22px; padding: 30px; min-width: 0; border: 1px solid #dbc9c321; border-radius: 22px; background: radial-gradient(ellipse at 25% 65%, #a28bb20a, transparent 60%), linear-gradient(130deg, #ead0c404, #b0b8ee02); }
.cg-detail-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.cg-detail-copy { min-width: 0; flex: 1; }
.cg-kicker { color: #9e899b; font-size: 11px; letter-spacing: 2px; line-height: 1.6; }
.cg-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cg-detail-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.5; letter-spacing: 1.5px; overflow-wrap: anywhere; max-width: 100%; }
.cg-detail-subtitle { color: #afa2b1; font-size: 14px; line-height: 1.8; margin-top: 8px; }
.cg-detail-progress { color: #d2b09d; font-size: 12px; letter-spacing: .6px; margin-top: 8px; }
.cg-close { flex-shrink: 0; padding: 10px 16px; min-height: 42px; background: #dbc9cd05; border: 1px solid #bca5ab40; border-radius: 30px; color: #cab4ba; font-size: 13px; letter-spacing: .8px; }
.cg-close:hover { background: #e6c0aa0f; border-color: #dcb69e; }
.cg-edit-name { padding: 7px 10px; min-height: 36px; background: transparent; border: 1px solid #b7a3b030; border-radius: 7px; color: #af9cad; font-size: 12px; white-space: nowrap; }
.cg-edit-name:hover { color: #efcebb; border-color: #d9b5a578; }
.cg-edit-name svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 5px; }
.cg-detail-layout { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(260px,.85fr); gap: 30px; align-items: center; margin-top: 12px; }
.cg-map-column { min-width: 0; }
.cg-map { position: relative; width: 100%; height: 370px; isolation: isolate; }
.cg-map::before { content: ''; position: absolute; inset: 21% 4% 22% 8%; border: 1px solid #e7cdc61b; border-radius: 50%; transform: rotate(-17deg); pointer-events: none; }
.cg-map-lines, .cg-star-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.cg-map-lines { pointer-events: none; overflow: visible; }
.cg-map-lines .cg-line { stroke: #e1bea58a; stroke-width: 1; }
.cg-star { position: absolute; width: 56px; height: 56px; padding: 0; display: grid; place-items: center; transform: translate(-50%,-50%); border: 0; background: transparent; color: #c4b2c7; border-radius: 50%; z-index: 2; }
.cg-star::before { content: ''; position: absolute; inset: 6px; border: 1px solid #dbc2ca2b; border-radius: 50%; transition: transform .3s, border-color .3s; }
.cg-star-glyph { font-family: Georgia, serif; font-size: 30px; line-height: 1; transition: color .3s, transform .3s, filter .3s; }
.cg-star-label { position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%); display: block; width: max-content; max-width: 120px; color: #bba9b6; font-size: 13px; line-height: 1.6; letter-spacing: .5px; text-align: center; overflow-wrap: anywhere; }
.cg-star:hover .cg-star-glyph, .cg-star.is-lit .cg-star-glyph { color: #f2d2b4; filter: drop-shadow(0 0 12px #e6b59c88); }
.cg-star:hover .cg-star-glyph { transform: scale(1.15); }
.cg-star.is-selected::before { transform: scale(1.12); border-color: #f3cba5ab; }
.cg-star.is-selected .cg-star-label { color: #f4d6be; }
.cg-map-hint { position: absolute; bottom: 0; left: 0; right: 0; padding: 0 10px; text-align: center; color: #8e8197; font-size: 12px; letter-spacing: .8px; pointer-events: none; }
.cg-note { position: relative; min-width: 0; min-height: 264px; padding: 18px 6px 16px 30px; border-left: 1px solid #d6ac9738; }
.cg-note-decoration { display: block; color: #ddbea8; font-size: 30px; margin-bottom: 17px; filter: drop-shadow(0 0 10px #e3c29f25); }
.cg-note-kicker { color: #a18e9e; font-size: 11px; letter-spacing: 1.5px; line-height: 1.6; }
.cg-note-title { margin: 14px 0 12px; font-family: var(--serif); font-size: 24px; font-weight: 400; color: #ead7c9; letter-spacing: 1px; line-height: 1.7; overflow-wrap: anywhere; }
.cg-note-date { color: #a493a3; font-size: 12px; margin-bottom: 12px; }
.cg-note-text { color: #bfb3c2; font-size: 16px; line-height: 2.05; letter-spacing: .6px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 340px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #806779 transparent; }
.cg-note-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #d9c0c21e; padding-top: 12px; margin-top: 24px; }
.cg-note-button, .cg-page-button { border: 1px solid #ceb0ad37; border-radius: 7px; color: #d2b5ad; background: #e2c1b805; min-height: 42px; padding: 8px 12px; font-size: 13px; }
.cg-note-button:hover:not(:disabled), .cg-page-button:hover:not(:disabled) { border-color: #e9c0a8a1; background: #e8c1a80b; }
.cg-note-button:disabled, .cg-page-button:disabled { opacity: .35; }
.cg-note-position, .cg-page-position { color: #a995aa; font-size: 12px; white-space: nowrap; }
.cg-pager { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; padding-top: 24px; }
.cg-overview-pager { padding: 5px 0 8px; }
.cg-star-pager { padding-top: 17px; }
.cg-empty { text-align: center; padding: 65px 20px; color: #b4a5b7; font-size: 15px; line-height: 1.9; }
.cg-name-editor { width: min(100%,430px); margin-top: 16px; padding: 16px; background: #0e111db3; border: 1px solid #d2b7b14f; border-radius: 12px; }
.cg-name-label { display: block; color: #d9c9cb; font-size: 14px; margin-bottom: 10px; }
.cg-name-input, .cg-share-url { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #cab4bb70; border-radius: 7px; background: #191a28; color: #f4e7d8; font-family: inherit; font-size: 16px; line-height: 1.5; }
.cg-name-input:focus, .cg-share-url:focus { outline: 2px solid #e8bfa6; outline-offset: 3px; }
.cg-name-actions { display: flex; gap: 10px; margin-top: 13px; }
.cg-name-actions button { min-height: 40px; padding: 8px 19px; border: 1px solid #c9a59f69; border-radius: 7px; background: transparent; color: #d7bcc1; font-size: 13px; }
.cg-name-actions button[type='submit'] { background: #dfbda7; border-color: #dfbda7; color: #2d2632; }
.cg-name-help { color: #a699ac; font-size: 12px; line-height: 1.8; margin-top: 12px; }
.cg-name-error { font-size: 13px; line-height: 1.7; color: #efb6ae; margin-top: 10px; }
.cg-share-feedback { color: #d1bca9; font-size: 12px; line-height: 1.8; padding-top: 10px; text-align: right; }
.cg-share-fallback { padding: 14px; margin-top: 10px; border: 1px solid #c9acb33b; border-radius: 10px; }
.cg-share-fallback label { display: block; color: #bcacb9; font-size: 13px; line-height: 1.8; margin-bottom: 9px; }
.cg-detail.is-opening { animation: cg-panel-open .45s ease both; }
.cg-star-enter { animation: cg-star-unfold .72s cubic-bezier(.2,.65,.25,1) both; animation-delay: var(--delay,0ms); }
.cg-detail.is-opening .cg-map-lines .cg-line { stroke-dasharray: 1; animation: cg-line-unfold 1.1s ease-out both; }
@keyframes cg-panel-open { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cg-star-unfold { from { opacity: 0; left: 50%; top: 48%; transform: translate(-50%,-50%) scale(.35); } to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
@keyframes cg-line-unfold { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (max-width: 1000px) {
  .cg-topline { align-items: flex-start; }
  .cg-top-actions { gap: 14px; }
  .cg-overview { gap: 12px; }
  .cg-topic { padding-inline: 10px; }
  .cg-topic-subtitle { font-size: 12px; }
  .cg-detail { padding: 24px; }
  .cg-detail-layout { grid-template-columns: minmax(0,1.25fr) minmax(235px,.85fr); gap: 20px; }
  .cg-note { padding-left: 23px; }
}
@media (max-width: 760px) {
  .constellation-garden { margin-top: 31px; }
  .cg-topline { flex-direction: column; gap: 8px; padding-bottom: 14px; }
  .cg-guide { font-size: 13px; letter-spacing: .2px; }
  .cg-top-actions { width: 100%; justify-content: space-between; }
  .cg-total, .cg-share { font-size: 12px; }
  .cg-share { min-height: 36px; }
  .cg-overview { gap: 4px; padding-top: 13px; padding-bottom: 3px; }
  .cg-topic { min-height: 225px; padding: 6px 3px 13px; border-radius: 12px; }
  .cg-mini { width: 100%; height: 98px; }
  .cg-topic::before { top: 25px; height: 78px; left: 1%; width: 98%; }
  .cg-topic-title { font-size: 17px; letter-spacing: .6px; margin-top: 8px; margin-bottom: 8px; }
  .cg-topic-subtitle { display: none; }
  .cg-topic-meta { gap: 5px; margin-top: 0; flex-direction: column; font-size: 11px; line-height: 1.5; }
  .cg-open-cue { font-size: 11px; margin-top: 12px; letter-spacing: .5px; }
  .constellation-garden[data-expanded='true'] .cg-overview { gap: 6px; }
  .constellation-garden[data-expanded='true'] .cg-topic { display: flex; height: 82px; padding: 8px 5px; text-align: center; }
  .constellation-garden[data-expanded='true'] .cg-mini { display: none; }
  .constellation-garden[data-expanded='true'] .cg-topic-title { font-size: 13px; letter-spacing: .2px; margin: 0 0 4px; line-height: 1.5; }
  .constellation-garden[data-expanded='true'] .cg-topic-meta { flex-direction: row; justify-content: center; gap: 5px; font-size: 10px; }
  .constellation-garden[data-expanded='true'] .cg-read { display: none; }
  .cg-detail { margin-top: 15px; padding: 19px 16px 22px; border-radius: 16px; }
  .cg-detail-heading { gap: 8px; flex-wrap: wrap; }
  .cg-detail-copy { flex-basis: calc(100% - 95px); }
  .cg-kicker { font-size: 10px; letter-spacing: 1.2px; }
  .cg-title-row { gap: 8px; margin-top: 7px; }
  .cg-detail-title { font-size: 22px; letter-spacing: .7px; }
  .cg-edit-name { padding: 5px 8px; min-height: 32px; font-size: 11px; }
  .cg-close { padding: 8px 11px; min-height: 38px; font-size: 12px; letter-spacing: .2px; }
  .cg-detail-subtitle { font-size: 13px; line-height: 1.8; }
  .cg-detail-progress { font-size: 11px; }
  .cg-detail-layout { grid-template-columns: minmax(0,1fr); gap: 22px; margin-top: 5px; }
  .cg-map { height: 300px; }
  .cg-map[data-star-count='5'], .cg-map[data-star-count='6'] { height: 350px; }
  .cg-star-label { max-width: clamp(64px,21vw,90px); font-size: 12px; letter-spacing: .2px; }
  .cg-star-glyph { font-size: 27px; }
  .cg-map-hint { font-size: 11px; letter-spacing: .2px; bottom: -2px; }
  .cg-note { min-height: 210px; border-left: 0; border-top: 1px solid #d6ac9738; padding: 24px 9px 0; }
  .cg-note-decoration { float: right; font-size: 24px; margin: 0 0 10px 15px; }
  .cg-note-title { font-size: 22px; margin-top: 12px; margin-bottom: 8px; }
  .cg-note-text { font-size: 15px; line-height: 1.95; }
  .cg-note-nav { margin-top: 20px; }
  .cg-name-editor { width: calc(100% + 93px); max-width: calc(100vw - 84px); padding: 13px; }
  .cg-share-feedback { text-align: left; }
  .cg-pager { gap: 10px; }
  .cg-page-button, .cg-note-button { font-size: 12px; padding: 8px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .cg-topic, .cg-mini, .cg-star-glyph, .cg-star::before { transition: none; }
  .cg-detail.is-opening, .cg-star-enter, .cg-detail.is-opening .cg-map-lines .cg-line { animation: none; }
}
