/* Shared observation layout: wide world, adjacent scrollable conversation. */
:root{--bg:#0e1814;--panel:#1b2b23;--line:#53644c;--fg:#f1edda;--muted:#b6c6b5;--gold:#d8c795;--aqua:#c7df9d}
body{background:var(--bg)}.mast{background:#17251e;min-height:86px;padding:14px 20px;gap:16px}.brand strong{font:700 27px var(--serif);letter-spacing:.02em}.brand small{font-size:13px;letter-spacing:.03em}.badge{font-size:13px}main{max-width:1920px;padding:0 14px}.hero{position:relative;padding:30px 0 24px;display:grid;grid-template-columns:minmax(0,1fr) 300px;column-gap:30px;align-items:center}.hero .kicker,.hero h1,.hero .subtitle{grid-column:1}.hero .kicker{font-size:12px}.hero h1{font-size:34px;letter-spacing:.02em}.hero .subtitle{font-size:14px;line-height:1.65;margin-top:10px}.subtitle p{margin:2px 0}.subtitle p::before{content:'· ';}.world-run{grid-column:2;grid-row:1/4;text-align:right;padding:0;color:var(--muted);font-size:13px;line-height:1.8}.world-run #run-state{display:block;font-size:20px;font-weight:750;color:var(--fg)}.world-run button{border:1px solid #71845c;background:#283c2a;border-radius:20px;color:var(--fg);padding:7px 12px;margin:8px 0 8px 6px}.layout{grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:start}.world{grid-column:1;grid-row:1;border-radius:16px;border-color:#758360}.viewport{aspect-ratio:1120/600;max-height:none}.worldbar{background:#1a2a21}.world-actions button{background:#253b2c;border:1px solid #53644c;border-radius:6px;color:var(--fg)}.side{grid-column:1;grid-row:2;grid-template-columns:1fr 1fr 1.2fr;gap:12px}.side .card{margin:0}.dialogue-history{grid-column:2;grid-row:1/3;margin:0;padding:22px;border-radius:16px;position:sticky;top:12px;max-height:calc(100dvh - 24px);display:flex;flex-direction:column;min-width:0}.dialogue-history h2{font-size:19px;margin:0 0 12px}.dialogue-history h2 small{font-size:12px;white-space:nowrap}.dialogue-history>p{font-size:12px;line-height:1.6;margin:0 0 12px;color:var(--muted)}.history-filters{display:flex;flex-wrap:wrap;gap:8px}.history-filters label{display:flex;gap:6px;align-items:center;font-size:12px;min-width:0}.history-filters label:last-child{width:100%}.history-filters input,.history-filters select{min-width:0;max-width:100%;border:1px solid #52664c;border-radius:5px;background:#15251c;color:var(--fg);padding:6px;font:inherit}.history-filters input{width:100%}#history-status{margin:10px 0;font-size:12px}#history-list{min-height:100px;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#b7c2ad #263b2c;list-style:none;padding:0 8px 0 0;margin:0;max-height:620px}#history-list li{padding:16px 0;border-top:1px solid #465b46}#history-list strong{display:block;font-size:12px;font-weight:500;color:#bfd0bb;line-height:1.6}#history-list blockquote{margin:7px 0;font-size:15px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}#history-list small{display:block;font-size:12px;color:#a8b9a6;line-height:1.6}.stats div,#events li{background:#15251c}.person{background:#203329;border-color:#41563f}footer{margin-top:10px}
@media(min-width:1600px){.layout{grid-template-columns:minmax(0,1fr) 360px}.hero{grid-template-columns:minmax(0,1fr) 360px}}
@media(max-width:800px){.hero{grid-template-columns:1fr}.world-run{grid-column:1;grid-row:auto;text-align:left;margin-top:16px}.hero h1{font-size:28px}.layout{display:flex;flex-direction:column}.world,.dialogue-history,.side{width:100%}.world{order:0}.dialogue-history{order:1;position:static;max-height:none}.side{order:2;display:grid;grid-template-columns:1fr 1fr}.side .log-card{grid-column:1/-1}#history-list{max-height:480px}.mast{padding:12px;flex-wrap:wrap}.brand strong{font-size:23px}.hero .subtitle{font-size:13px}.history-filters label:last-child{width:auto;flex:1}.history-filters{gap:10px}.viewport{aspect-ratio:1120/600}}

.map-zoom{position:absolute;right:14px;bottom:52px;z-index:5;display:flex;flex-direction:column;align-items:center;background:#17271fed;border:1px solid #82966b;border-radius:9px;box-shadow:0 3px 14px #0006;overflow:hidden}.map-zoom button{width:44px;height:44px;font-size:26px;font-weight:600;border:0;background:transparent;color:#f5f0da;touch-action:manipulation}.map-zoom button:hover:not(:disabled){background:#3a5132}.map-zoom output{font-size:12px;padding:3px 0;color:#d5e5c4}.map-zoom button:disabled{opacity:.3}

#scene{touch-action:none;cursor:grab;user-select:none}#scene.map-dragging{cursor:grabbing}
/* Simplified AIWorldLab observation hierarchy, matching the existing life-world page. */
[hidden]{display:none!important}.mast{padding:12px 14px;min-height:64px}.sigil,.mast .badge{display:none}.brand{gap:12px}.brand>div{display:flex;align-items:baseline;gap:16px}.brand strong{font:700 32px Georgia,serif}.brand small{font-size:14px}.world-tab{padding:12px 14px;border-bottom:1px solid #455044;font-size:14px;font-weight:700}.hero .kicker{display:none}.hero{padding:28px 0;min-height:230px}.hero h1{font-size:30px}.hero .subtitle{font-size:13px}.layout{grid-template-columns:minmax(0,1fr) 300px;align-items:stretch}.world{grid-column:1;grid-row:1;display:flex;flex-direction:column}.viewport{flex:1;min-height:440px;max-height:none}.recent-life{grid-column:2;grid-row:1;padding:22px;min-width:0;max-height:640px;display:flex;flex-direction:column}.recent-life h2,.world-gallery h2,.life-highlights h2,.full-history h2{font-size:18px;margin:0 0 12px}.recent-life h2 small{font-size:12px}.life-feed{overflow:auto;min-height:0}.life-row{padding:14px 0;border-top:1px solid #445549;font-size:14px;line-height:1.7}.life-row time{font-size:12px;color:#bdcfba}.life-row p{margin:3px 0;white-space:pre-wrap;overflow-wrap:anywhere}.life-row .narration{color:#aab8ae;font-size:13px}.life-row .spoken{color:#edf1e5}.world-gallery,.life-highlights,.full-history{margin-top:20px;padding:18px;border-radius:12px}.world-gallery>p{font-size:13px;color:#b8cbb5;margin:0 0 16px}.asset-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:12px}.asset-card{background:#25392c;color:#f1eddf;border:1px solid #4d674e;border-radius:12px;padding:10px;text-align:left;min-width:0}.asset-card svg,.stock-icon{display:block;width:100%;height:125px;background:#dce6d1;border-radius:8px}.stock-icon{display:grid;place-items:center;color:#334e35;font-size:19px}.asset-card b{display:block;margin-top:8px;font-size:14px}.asset-card small{display:block;color:#c0d1bb;margin-top:5px;line-height:1.5;font-size:12px}.life-highlights ul{padding-left:22px;margin:0;line-height:2;color:#d8e2d1;font-size:14px}.life-highlights li::marker{color:#d8c28d}.history-feed{max-height:420px;overflow:auto}.full-history>p{font-size:12px;color:#bacab6}.full-history details{margin-bottom:8px}.full-history summary,.replay-controls summary{cursor:pointer;font-size:13px;color:#b9cbb6}.history-filters{padding:10px 0}.replay-controls{padding:12px 4px}.replay-controls .world-actions{padding-top:12px}.replay-controls .transport{max-width:650px}.atlas-dialog{background:#1b2b24;color:#f1eddf;border:1px solid #738967;border-radius:14px;width:min(480px,90vw);padding:20px}.atlas-dialog::backdrop{background:#0009}.atlas-dialog svg{width:100%;max-height:65vh;background:#dce6d1;border-radius:10px}.atlas-dialog>button{float:right;background:#d3e5ab;color:#203226;border:0;padding:8px 16px;border-radius:20px}.map-zoom{bottom:14px}.scale,.maptext{display:none}.world-run{font-size:12px}.world-run #run-state{font-size:18px}
@media(max-width:800px){.layout{display:flex}.recent-life{width:100%;max-height:420px;order:1}.viewport{min-height:300px}.brand>div{display:block}.brand small{font-size:12px}.hero{min-height:0}.asset-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.hero h1{font-size:26px}.world-run{text-align:left}.replay-controls .world-actions{flex-wrap:wrap}}

.top-world-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:13px}.top-world-actions #run-state{padding:9px 12px;background:#243a2c;border:1px solid #677e58;border-radius:9px}.top-world-actions button{border:0;border-radius:24px;padding:10px 16px;background:#d3e5ab;color:#1b3020;font-weight:700}.world-run{font-size:15px;line-height:1.9}.world-run>div{max-width:300px;margin-left:auto}@media(max-width:800px){.world-run>div{margin-left:0}.top-world-actions{font-size:12px}}

.live-world-clock{display:flex;flex-direction:column;align-items:flex-end;gap:4px;font-variant-numeric:tabular-nums;color:#c2d0b6}.live-world-clock strong{font-size:27px;line-height:1.35;color:#f3efdc;margin-bottom:5px;white-space:nowrap}.live-world-clock span{font-size:13px;line-height:1.7}.live-world-clock small{display:inline-block;margin-top:14px;padding:5px 12px;border:1px solid #42533c;border-radius:24px;font-size:12px;font-weight:600}.live-world-clock #clock-status-note:empty{display:none}@media(max-width:800px){.live-world-clock{align-items:flex-start}.live-world-clock strong{font-size:25px}}
/* Keep the SVG and its clipping viewport identical at every screen width. */
.layout{align-items:start}.layout>.world{align-self:start;min-width:0}
.world>.viewport{position:relative;flex:none;width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:1120 / 600}
.world>.viewport>#scene{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none}
@media(max-width:800px){.world>.viewport{min-height:0;max-height:none;aspect-ratio:1120 / 600}}

.map-zoom #zoom-reset{font-size:12px;height:34px;border-top:1px solid #506244}
/* More room for the bay, especially in the in-app observation pane. */
main{max-width:1920px;padding-inline:12px}.hero{min-height:170px;padding-block:18px}.layout{grid-template-columns:minmax(0,1fr) 245px;gap:12px}.recent-life{padding:16px}.live-world-clock small{margin-top:8px}
@media(max-width:1100px){.layout{display:flex;flex-direction:column;gap:14px}.layout>.world{width:100%;order:0}.recent-life{width:100%;order:1;max-height:300px}.world>.viewport{width:100%;aspect-ratio:1120 / 600;min-height:0;max-height:none}.hero{min-height:150px}.hero h1{font-size:28px}.recent-life h2{margin-bottom:8px}}
@media(max-width:600px){main{padding-inline:8px}.hero{padding-block:14px}.hero h1{font-size:25px}}

.mast{flex-wrap:wrap}
.mast .personal-home{display:inline-flex;align-items:center;min-height:40px;padding:0 .7rem;color:#eee9d8;text-decoration:underline;text-underline-offset:.2em}
.mast .personal-home:focus-visible{outline:2px solid currentColor;outline-offset:2px}

#world-clock-time{font-size:clamp(18px,2.5vw,30px);overflow-wrap:anywhere;}

#world-clock-time{white-space:normal;text-align:right}.hero>div,.world-run{min-width:0}.visitor-summary{display:flex;gap:10px 24px;align-items:center;flex-wrap:wrap;padding:12px 16px;margin-bottom:16px;border:1px solid #465d48;border-radius:12px;background:#1c3024}.visitor-summary small{flex-basis:100%;color:#bec9b9}.visitor-summary label{font-size:13px}.territory-map{width:100%;height:auto;max-height:330px;background:#17291e;border-radius:12px}.territory-map text{fill:#efe9d7;font:15px system-ui}.territory-map .unknown{fill:#93a293}.territory-map line{stroke:#7e9472;stroke-width:2}.territory-map circle{fill:#c0d692}.territory-map .unexplored{fill:#263b2b;stroke:#93a293;stroke-dasharray:4}.territory-panel{margin:18px 0;padding:18px;border:1px solid #465d48;border-radius:12px}.territory-panel p{color:#bec9b9;font-size:14px}

.world-navigation{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap}.mast .world-navigation a{display:inline-flex;align-items:center;min-height:40px;padding:0 .7rem;color:#eee9d8;text-decoration:underline;text-underline-offset:.2em}.world-navigation a:focus-visible{outline:2px solid currentColor;outline-offset:2px}@media(max-width:700px){.world-navigation{width:100%;font-size:13px;gap:4px}.mast .world-navigation a{padding:0 .4rem}}

.visitor-summary{padding:9px 8px;gap:8px 24px;border:0;border-radius:0;background:#1c3024;font-size:15px;font-weight:700;line-height:1.5}.visitor-summary b,.visitor-summary span{white-space:nowrap}.visitor-details{font-size:12px;line-height:1.7;margin:12px 0}.visitor-details summary{cursor:pointer}.visitor-details small,.visitor-details label{display:block;margin-top:8px}@media(max-width:380px){.visitor-summary{gap:6px 12px;font-size:13px}}

#world-clock-time{font-size:clamp(16px,1.65vw,21px);line-height:1.5;font-weight:600}.live-world-clock span{font-size:12px}.live-world-clock small{font-size:11px;margin-top:4px}.life-row{border-left:3px solid var(--voice,#a9b7aa);padding-left:12px}.life-row[data-actor="harbor"]{--voice:#9bdac6}.life-row[data-actor="craft"]{--voice:#f2ca88}.life-row[data-actor="merchant"]{--voice:#b5c9ff}.life-row .spoken{color:var(--voice,#eee9d8)}.life-row .narration{color:#b2bdb6}.territory-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}.territory-place{padding:14px;border:1px solid #425b48;border-radius:10px;background:#20382a}.territory-place h3{font-size:16px;margin:0 0 8px}.territory-place p{margin:5px 0;font-size:13px}.territory-next{margin-top:16px;font-size:14px}.territory-next summary{cursor:pointer}.territory-next p{padding-left:12px;border-left:2px dashed #74866c}
