/* V5: the complete identity, repeated moments and inspectable scoped reviews. */
.identity-facet-mark { fill:#a89d8b; stroke:var(--paper); stroke-width:.6; }
.identity-layer.lit .identity-facet-mark { fill:var(--orange); }
.build-tools { display:flex; flex-wrap:wrap; gap:0 15px; }
.identity-key { list-style:none; margin:0; padding:0; width:100%; display:grid; grid-template-columns:1fr 1fr; gap:10px 18px; }
.identity-key li { display:grid; grid-template-columns:17px minmax(0,1fr) 16px; gap:5px; align-items:baseline; font-size:12px; line-height:1.3; }
.node-number { color:var(--orange); font-size:10px; }
.identity-key small { text-align:right; color:var(--muted); font-size:10px; }
.scene[data-kind=identity-atlas] .chapter-copy { gap:17px; }
.scene[data-kind=identity-atlas] h1 { font-size:clamp(30px,5cqw,62px); }
.day-stage,.community-stage { width:100%; height:100%; min-height:0; }
.day-timeline { display:flex; flex-direction:column; justify-content:center; width:100%; height:100%; min-height:0; gap:18px; }
.snapshot-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:center; gap:6px; min-height:0; }
.time-snapshot { display:flex; flex-direction:column; align-items:center; min-width:0; gap:8px; }
.snapshot-person { display:block; width:100%; max-height:240px; min-height:0; overflow:visible; }
.snapshot-person circle { fill:none; stroke:#bfb6a6; stroke-width:1; }
.snapshot-person .snapshot-ring-lit { stroke:var(--orange); stroke-width:1.7; }
.ghost-snapshot .snapshot-person { opacity:.27; transform:scale(.8); }
.time-snapshot figcaption { display:flex; align-items:center; flex-direction:column; gap:6px; width:100%; }
.time-snapshot time { font-size:14px; font-variant-numeric:tabular-nums; }
.snapshot-activity { font-size:10px; text-align:center; color:var(--muted); line-height:1.3; }
.current-snapshot time { color:var(--orange); }
.snapshot-score { font:500 24px/1 var(--serif); }
.ghost-snapshot .snapshot-score { color:var(--muted); font-size:18px; }
.day-rail { display:flex; align-items:center; justify-content:space-between; position:relative; margin:0 12px; height:12px; flex:none; }
.day-rail:before { content:''; position:absolute; left:0; right:0; height:1px; background:var(--line); }
.day-rail span { z-index:1; height:5px; width:5px; background:var(--paper); border:1px solid #aa9f8d; border-radius:50%; }
.day-rail .rail-past { background:#aa9f8d; }
.day-rail .rail-current { width:9px; height:9px; background:var(--orange); border-color:var(--orange); }
.timeline-caption { font-size:11px; color:var(--muted); text-align:center; }
.moment-heading { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 14px; }
.moment-heading time { color:var(--orange); font-size:15px; font-variant-numeric:tabular-nums; }
.scene .moment-heading h1 { font-size:clamp(28px,3.7cqw,46px); }
.value-log-entry { width:100%; display:flex; flex-direction:column; align-items:flex-start; gap:18px; padding:22px 0 18px; border-block:1px solid var(--line); }
.value-log-entry q { font:500 clamp(23px,3.1cqw,36px)/1.13 var(--serif); quotes:'“' '”'; }
.moment-routes { display:flex; flex-wrap:wrap; gap:5px 12px; list-style:none; padding:0; margin:0; color:var(--muted); font-size:11px; }
.moment-routes li+li:before { content:'·'; padding-right:12px; }
.log-stamp { display:flex; flex-direction:column; align-items:flex-start; gap:4px; min-height:58px; padding:10px 14px; color:var(--orange); border:1px solid currentColor; outline:1px solid currentColor; outline-offset:-4px; border-radius:2px; background:transparent; text-align:left; animation:review-press .4s ease-out both; }
.log-stamp > span:first-child { font-size:10px; text-transform:uppercase; letter-spacing:.055em; }
.log-stamp strong { font-weight:500; font-size:12px; }
.stamp-more { font-size:10px; text-decoration:underline; text-underline-offset:3px; }
.unreviewed-mark { font-size:11px; color:var(--muted); padding:9px 13px; border:1px dashed var(--line); }
.moment-review-result { font-size:13px; color:var(--ink); }
.demo-marker { font-size:10px; color:var(--muted); }
.community-map { width:100%; height:100%; display:grid; grid-template-rows:minmax(0,1fr) auto auto auto; align-content:center; justify-items:center; gap:20px; }
.community-person { min-height:0; height:100%; width:100%; display:flex; justify-content:center; }
.community-person .snapshot-person { width:auto; max-width:100%; max-height:260px; }
.community-house { display:flex; flex-direction:column; align-items:center; gap:7px; }
.community-house .ink-icon { width:30px; height:30px; color:var(--orange); }
.community-house strong { font-weight:450; font-size:15px; }
.community-house span,.community-map > p { font-size:10px; color:var(--muted); }
.community-systems { display:flex; align-items:center; justify-content:center; gap:26px; }
.community-systems > div { display:flex; flex-direction:column; align-items:center; gap:9px; }
.community-systems .ink-icon { width:38px; height:38px; color:var(--orange); }
.community-systems strong { font-weight:450; font-size:11px; }
.passport-emblem { font:500 100px/.8 var(--sans); color:var(--orange); }
.chapter-passport h1 { color:var(--orange); }
.identity-dialog { border:0; border-radius:10px; background:var(--paper); color:var(--ink); padding:18px 26px; width:min(600px,94vw); max-height:94svh; overflow:hidden; }
.identity-dialog::backdrop { background:#222420b8; }
.identity-dialog .dialog-head { margin-bottom:10px; }
.identity-dialog .dialog-head p { font-size:11px; color:var(--muted); }
#identity-node { width:100%; min-height:44px; background:var(--paper); border:1px solid var(--line); padding:9px; border-radius:3px; color:var(--ink); font:400 13px var(--sans); }
#atlas-node-count { font-size:11px; color:var(--muted); margin-top:18px; }
#atlas-node-title { font:500 34px/1.1 var(--serif); margin-top:6px; }
#atlas-facets { margin:20px 0 0; padding:0; list-style:none; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px 18px; }
#atlas-facets li { font-size:13px; line-height:1.4; border-top:1px solid var(--line); padding-top:8px; }
.identity-dialog .explanation-nav { margin-top:22px; }
.identity-dialog .explanation-nav span { font-size:10px; text-align:center; }
@keyframes review-press { from {opacity:0; transform:translateY(-12px) scale(1.05);} to {opacity:1; transform:translateY(0) scale(1);} }
@media (max-width:1100px) and (orientation:portrait) {
 .scene[data-kind=identity-atlas] { grid-template-rows:40% 60%; }
 .scene[data-kind=identity-atlas] .chapter-copy { gap:10px; }
 .scene[data-kind=identity-atlas] h1 { font-size:32px; }
 .identity-key { gap:8px 13px; }
 .identity-key li { font-size:11px; grid-template-columns:12px minmax(0,1fr) 13px; gap:3px; }
 .identity-key small { font-size:9px; }
 .scene[data-kind=timeline],.scene[data-kind=reviewed-time] { grid-template-rows:44% 56%; }
 .day-timeline { gap:10px; }
 .snapshot-grid { gap:4px; }
 .snapshot-person { max-height:170px; }
 .time-snapshot { gap:2px; }
 .time-snapshot time { font-size:12px; }
 .time-snapshot figcaption { gap:3px; }
 .snapshot-activity { font-size:9px; }
 .snapshot-score { font-size:22px; }
 .ghost-snapshot .snapshot-score { font-size:17px; }
 .timeline-caption { font-size:10px; }
 .scene .moment-heading h1 { font-size:29px; }
 .moment-heading { gap:5px 10px; }
 .moment-heading time { font-size:13px; }
 .value-log-entry { gap:12px; padding:14px 0; }
 .value-log-entry q { font-size:25px; }
 .moment-routes { font-size:10px; gap:4px 8px; }
 .moment-routes li+li:before { padding-right:8px; }
 .log-stamp { min-height:54px; padding:8px 12px; gap:3px; }
 .log-stamp strong { font-size:11px; }
 .log-stamp > span:first-child { font-size:9px; }
 .stamp-more { font-size:9px; }
 .moment-review-result { font-size:11px; }
 .demo-marker { font-size:9px; }
 .community-map { gap:9px; }
 .community-person .snapshot-person { max-height:155px; }
 .community-house { gap:4px; }
 .community-house .ink-icon { width:25px; height:25px; }
 .community-house strong { font-size:12px; }
 .community-systems { gap:22px; }
 .community-systems > div { gap:6px; }
 .community-systems .ink-icon { width:28px; height:28px; }
 .community-systems strong { font-size:10px; }
 .community-house span,.community-map > p { font-size:9px; }
 .passport-emblem { font-size:75px; }
}
@media (min-width:651px) and (max-width:1100px) and (orientation:portrait) {
 .scene[data-kind=identity-atlas] .chapter-copy { gap:16px; }
 .scene[data-kind=identity-atlas] h1 { font-size:44px; }
 .identity-key { gap:15px 24px; }
 .identity-key li { font-size:14px; grid-template-columns:20px minmax(0,1fr) 20px; }
 .identity-key small,.node-number { font-size:12px; }
 .snapshot-person { max-height:260px; }
 .snapshot-activity { font-size:12px; }
 .time-snapshot time { font-size:16px; }
 .snapshot-score { font-size:29px; }
 .ghost-snapshot .snapshot-score { font-size:22px; }
 .timeline-caption { font-size:12px; }
 .scene .moment-heading h1 { font-size:39px; }
 .value-log-entry q { font-size:33px; }
 .value-log-entry { gap:18px; padding:20px 0; }
 .moment-routes { font-size:12px; }
 .log-stamp { padding:12px 16px; }
 .log-stamp strong { font-size:13px; }
 .log-stamp > span:first-child,.stamp-more { font-size:11px; }
 .moment-review-result { font-size:14px; }
 .demo-marker { font-size:11px; }
 .community-map { gap:17px; }
 .community-person .snapshot-person { max-height:220px; }
 .community-house strong { font-size:16px; }
 .community-house .ink-icon { width:34px; height:34px; }
 .community-systems .ink-icon { width:40px; height:40px; }
 .community-systems strong { font-size:13px; }
 .community-house span,.community-map > p { font-size:11px; }
}
@media (max-width:650px) and (max-height:650px) and (orientation:portrait) {
 .scene[data-kind=identity-atlas] .recto { padding:8px 20px 10px; }
 .scene[data-kind=identity-atlas] .chapter-copy { gap:5px; }
 .scene[data-kind=identity-atlas] h1 { font-size:27px; }
 .identity-key { gap:4px 10px; }
 .identity-key li { font-size:10px; }
 .identity-key .node-number,.identity-key small { font-size:9px; }
 .scene[data-kind=identity-atlas] .build-tools button { font-size:10px; }
 .day-timeline { gap:5px; }
 .time-snapshot figcaption { gap:2px; }
 .time-snapshot time { font-size:10px; }
 .snapshot-activity { font-size:8px; }
 .snapshot-person { max-height:90px; }
 .snapshot-score { font-size:18px; }
 .ghost-snapshot .snapshot-score { font-size:14px; }
 .timeline-caption { font-size:9px; }
 .scene .moment-heading h1 { font-size:22px; }
 .moment-heading time { font-size:11px; }
 .value-log-entry { gap:7px; padding:8px 0; }
 .value-log-entry q { font-size:21px; line-height:1.07; }
 .moment-routes { font-size:9px; }
 .log-stamp { min-height:44px; padding:6px 10px; gap:2px; }
 .log-stamp strong { font-size:10px; }
 .log-stamp > span:first-child,.stamp-more { font-size:8px; }
 .moment-review-result { font-size:10px; }
 .demo-marker { font-size:8px; }
 .unreviewed-mark { font-size:9px; padding:5px 9px; }
 .community-map { gap:5px; }
 .community-person .snapshot-person { max-height:90px; }
 .community-house .ink-icon { width:18px; height:18px; }
 .community-house strong { font-size:11px; }
 .community-systems { gap:20px; }
 .community-systems .ink-icon { width:21px; height:21px; }
 .community-systems strong,.community-house span,.community-map > p { font-size:8px; }
 .passport-emblem { font-size:50px; }
 .identity-dialog { padding:10px 18px; }
 .identity-dialog .dialog-head { margin-bottom:4px; }
 .identity-dialog .dialog-head p { font-size:10px; }
 #atlas-node-count { margin-top:10px; font-size:10px; }
 #atlas-node-title { font-size:28px; }
 #atlas-facets { gap:8px 12px; margin-top:12px; }
 #atlas-facets li { font-size:11px; padding-top:5px; }
 .identity-dialog .explanation-nav { margin-top:12px; gap:8px; }
 .identity-dialog .explanation-nav span { font-size:9px; }
}
@media (max-height:530px) and (orientation:landscape) {
 .scene[data-kind=identity-atlas] .chapter-copy { gap:8px; }
 .scene[data-kind=identity-atlas] h1 { font-size:29px; }
 .identity-key { gap:5px 12px; }
 .identity-key li { font-size:10px; }
 .build-tools button { font-size:10px; }
 .day-timeline { gap:7px; }
 .snapshot-person { max-height:130px; }
 .time-snapshot figcaption { gap:3px; }
 .time-snapshot time { font-size:10px; }
 .snapshot-activity { font-size:9px; }
 .snapshot-score { font-size:20px; }
 .timeline-caption { font-size:9px; }
 .scene .moment-heading h1 { font-size:24px; }
 .moment-heading time { font-size:11px; }
 .value-log-entry { gap:9px; padding:10px 0; }
 .value-log-entry q { font-size:24px; }
 .log-stamp { min-height:44px; padding:6px 11px; gap:2px; }
 .log-stamp strong { font-size:10px; }
 .log-stamp > span:first-child,.stamp-more { font-size:8px; }
 .moment-routes,.moment-review-result { font-size:10px; }
 .demo-marker { font-size:9px; }
 .community-map { gap:7px; }
 .community-person .snapshot-person { max-height:135px; }
 .community-house .ink-icon { width:22px; height:22px; }
 .community-house strong { font-size:12px; }
 .community-systems .ink-icon { width:26px; height:26px; }
 .community-systems strong,.community-house span,.community-map > p { font-size:9px; }
 .identity-dialog { padding:8px 20px; width:min(680px,94vw); }
 .identity-dialog .dialog-head { margin-bottom:4px; }
 #atlas-node-count { margin-top:8px; }
 #atlas-node-title { font-size:28px; }
 #atlas-facets { margin-top:10px; gap:8px 18px; grid-template-columns:repeat(4,minmax(0,1fr)); }
 #atlas-facets li { font-size:12px; padding-top:5px; }
 .identity-dialog .explanation-nav { margin-top:10px; }
}
@media (prefers-reduced-motion:reduce) { .log-stamp { animation:none; } }
/* Constrain intrinsic grid widths; long navigation labels must never widen the book. */
.experience { width:100%; grid-template-columns:minmax(0,1fr); }
.experience > * { min-width:0; }
@media (max-width:650px) and (max-height:650px) and (orientation:portrait) {
 .scene[data-kind=reviewed-time] { grid-template-rows:40% 60%; }
 .scene[data-kind=reviewed-time] .recto { padding:7px 20px 10px; }
 .scene[data-kind=reviewed-time] .chapter-copy { gap:4px; }
 .scene[data-kind=reviewed-time] .value-log-entry { gap:6px; padding:6px 0; }
 .scene[data-kind=reviewed-time] .value-log-entry q { font-size:20px; }
 .scene[data-kind=reviewed-time] .demo-marker { display:none; }
 .scene[data-kind=equation] .chapter-copy { gap:5px; }
 .scene[data-kind=equation] h1 { font-size:24px; }
 .scene[data-kind=equation] .build-note { font-size:9px; }
}
@media (max-height:530px) and (orientation:landscape) {
 .passport { width:min(900px,calc((100svh - 135px)*2.65)); aspect-ratio:2.65; }
 .scene-chapter .recto { padding:14px 24px; }
 .scene[data-kind=identity-atlas] .chapter-copy { gap:5px; }
 .scene[data-kind=identity-atlas] h1 { font-size:24px; }
 .scene[data-kind=identity-atlas] .build-note { font-size:9px; }
 .scene .moment-heading h1 { font-size:23px; }
 .scene[data-kind=reviewed-time] .chapter-copy { gap:5px; }
 .value-log-entry { padding:8px 0; gap:6px; }
 .value-log-entry q { font-size:21px; }
 .scene[data-kind=reviewed-time] .demo-marker { display:none; }
}
.pending-review { border:1px dashed var(--line); background:none; min-height:44px; padding:8px 10px; font:400 11px/1.4 var(--sans); color:var(--muted); text-align:left; text-decoration:underline; text-underline-offset:3px; }
@media(max-width:650px) and (max-height:650px) and (orientation:portrait) { .pending-review { font-size:9px; padding:6px 9px; } }
@media(max-height:530px) and (orientation:landscape) { .pending-review { font-size:10px; } }
/* Narrow desktop side panels use a wider reading column, not a miniature spread. */
@media (max-width:700px) and (orientation:landscape) {
 .scene-chapter { grid-template-columns:36% 64%; }
 .binding { left:calc(36% - 5px); }
 .scene-details .binding { left:calc(50% - 5px); }
 .scene-chapter .verso { padding:29px 9px 14px; }
 .scene-chapter .kicker { left:17px; font-size:7px; }
 .scene-chapter .recto { padding:12px 16px; }
 .scene[data-kind=identity-atlas] .chapter-copy { gap:4px; }
 .scene[data-kind=identity-atlas] h1 { font-size:24px; }
 .scene[data-kind=identity-atlas] .build-note { display:none; }
 .identity-key { gap:4px 10px; }
 .identity-key li { font-size:10px; grid-template-columns:11px minmax(0,1fr) 12px; gap:3px; }
 .identity-key small,.node-number { font-size:9px; }
 .snapshot-grid { gap:2px; }
 .snapshot-activity { font-size:7px; }
 .time-snapshot time { font-size:9px; }
 .snapshot-person { max-height:100px; }
 .snapshot-score,.ghost-snapshot .snapshot-score { font-size:14px; }
 .day-timeline { gap:5px; }
 .timeline-caption { font-size:8px; }
 .community-systems { gap:10px; }
 .community-systems strong,.community-map > p { font-size:8px; }
 .community-systems .ink-icon { width:23px; height:23px; }
 .scene[data-kind=equation] .chapter-copy { gap:5px; }
 .scene[data-kind=equation] h1 { font-size:24px; }
}
@media (max-width:700px) and (orientation:landscape) {
 .passport[data-scene=details] .binding { left:calc(50% - 5px); }
 .snapshot-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .snapshot-grid .ghost-snapshot:last-child { display:none; }
 .snapshot-grid:has(.current-snapshot:last-child) .ghost-snapshot:first-child { display:none; }
}
/* Let portraits yield space to their timestamp and score before the timeline rail. */
.snapshot-grid { flex:1 1 auto; }
.time-snapshot { height:100%; min-height:0; justify-content:center; }
.time-snapshot .snapshot-person { flex:1 1 0; height:0; }
@media (max-width:650px) and (max-height:650px) and (orientation:portrait) {
 .scene[data-kind=reviewed-time] { grid-template-rows:43% 57%; }
 .reviewed-timeline .snapshot-activity { display:none; }
 .reviewed-timeline .time-snapshot figcaption { flex-direction:row; justify-content:center; gap:4px; }
}
