.world-stories{--story-water:#4fb3c3;--story-clay:#9a7355;z-index:3;pointer-events:none;position:absolute;inset:0}.world-scene[data-scene=building]{position:relative}.world-stories.is-open{z-index:7;aspect-ratio:390/560;flex-direction:column;display:flex;position:relative;inset:auto}.world-scene.has-story>.world-svg{display:none}.world-stories>*{pointer-events:auto}.world-stories.is-inline{z-index:auto;pointer-events:auto;border:1px solid var(--color-edge);border-radius:14px;max-width:560px;position:relative;inset:auto;overflow:hidden}.world-stories.is-inline .story-head{padding-right:0}.world-stories.is-open .story-pill{display:none}.story-pill{left:var(--x);top:var(--y);border:1px solid var(--color-gold);background:var(--color-forest);min-height:44px;color:var(--color-cream);font:inherit;white-space:nowrap;cursor:pointer;border-radius:999px;align-items:center;gap:8px;padding:0 14px 0 12px;font-size:.84rem;font-weight:700;transition:transform 80ms ease-out,box-shadow 80ms ease-out;display:inline-flex;position:absolute;transform:translate(-50%,-50%);box-shadow:0 2px #031510}.world-stage.is-3d .story-pill{left:var(--x3);top:var(--y3)}.story-pill:active{box-shadow:none;transform:translate(-50%,calc(2px - 50%))}.story-pill-dot{background:var(--color-gold);border-radius:5px;flex-shrink:0;width:10px;height:10px;animation:2.4s ease-in-out infinite story-breathe}.story-pill-dot.is-water{background:var(--story-water)}.story-pill:focus-visible{outline:3px solid var(--color-forest);outline-offset:2px;background:var(--color-gold);color:var(--color-forest)}.story-pill:focus-visible .story-pill-dot:not(.is-water){background:var(--color-forest)}.story-close:focus-visible,.story-role:focus-visible,.story-cta:focus-visible,.hol-toggle input:focus-visible,.story:focus-visible{outline:2px solid var(--color-gold);outline-offset:2px}.story{background:var(--color-cream);flex-direction:column;flex:1;gap:10px;padding:14px;scroll-margin-top:12px;display:flex}.story[hidden]{display:none}.story:focus{outline:none}.story-head{padding-right:48px;position:relative}.story-kicker{letter-spacing:.1em;text-transform:uppercase;color:var(--color-gold-deep);margin:0;font-size:.7rem;font-weight:600}.story-title{margin:4px 0 0;font-size:1.3rem;line-height:1.15}.story-close{border:1px solid var(--color-edge);background:var(--color-panel);width:44px;height:44px;color:var(--color-fg);cursor:pointer;border-radius:10px;justify-content:center;align-items:center;display:flex;position:absolute;top:-4px;right:-4px}.story-figure{margin:0}.story-figure .ls,.world-stage.is-3d .world-scene[data-scene] .world-stories svg{visibility:visible}.ls{background:var(--color-panel);border:1px solid var(--color-edge);border-radius:12px;width:100%;height:auto;display:block}.story-caption{color:var(--color-muted);margin:4px 0 0;font-size:.76rem}.story-roles{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.story-legend{letter-spacing:.12em;text-transform:uppercase;width:100%;color:var(--color-muted);font-size:.72rem;font-weight:700}.story-role{border:1px solid var(--color-edge);background:var(--color-panel);min-height:44px;color:var(--color-fg);font:inherit;box-shadow:0 2px 0 var(--color-edge);cursor:pointer;border-radius:10px;flex:1 1 0;padding:0 10px;font-size:.88rem;font-weight:700}.story-role[aria-pressed=true]{background:var(--color-forest);border-color:var(--color-forest);color:var(--color-cream);box-shadow:0 2px #031510}.story-panel{flex-direction:column;gap:6px;display:flex}.story-panel[hidden]{display:none}.story-panel-title{margin:0;font-size:1.05rem;line-height:1.2}.story-body{color:#3d4d48;margin:0;font-size:.9rem;line-height:1.5}.story-facts{flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none;display:flex}.story-facts li{background:var(--color-panel);border:1px solid var(--color-edge);border-radius:999px;align-items:center;gap:6px;padding:4px 10px;font-size:.8rem;font-weight:600;display:inline-flex}.story-facts li:before,.hol-result:before{content:"";background:var(--color-slate);border-radius:4px;flex-shrink:0;width:8px;height:8px}.story-facts li.is-ok:before,.hol-result.is-ok:before{background:var(--color-sage)}.story-facts li.is-wait:before,.hol-result.is-wait:before{background:var(--story-clay)}.story-cta{text-transform:none;letter-spacing:normal;align-self:flex-start;align-items:center;min-height:48px;margin-top:4px;display:inline-flex}.ls-hatch{stroke:var(--color-muted);stroke-width:.8px;opacity:.55}.ls-slab{stroke:var(--color-forest-2);stroke-width:1px}.ls-room{fill:var(--color-panel)}.ls-shop{fill:var(--color-cream-2)}.ls-line{fill:none;stroke:var(--color-forest-2);stroke-width:1.2px;stroke-linecap:round}.ls-thin{stroke-width:.8px;opacity:.6}.ls-glass{fill:var(--color-cream-2);stroke:var(--color-forest-2);stroke-width:1.2px}.ls-wood{fill:var(--color-gold-2);stroke:var(--color-forest-2);stroke-width:1px}.ls-top{fill:var(--color-forest-2)}.ls-sink{fill:var(--color-panel);stroke:var(--color-forest-2);stroke-width:1.2px}.ls-sofa{fill:var(--color-sage)}.ls-awning{fill:var(--color-gold);stroke:var(--color-forest-2);stroke-width:1px}.ls-tag{font:600 9px var(--font-mono,"IBM Plex Mono", ui-monospace, monospace);letter-spacing:.08em;fill:var(--color-muted)}.ls-water{fill:none;stroke:var(--story-water);stroke-width:2.5px;stroke-linecap:round;stroke-linejoin:round}.ls-pipe{fill:none;stroke:var(--story-water);stroke-width:6px}.ls-joint{fill:var(--color-forest-2)}.ls-damp{fill:var(--story-clay);opacity:.85}.ls-drip{fill:none;stroke:var(--story-water);stroke-width:2px;stroke-linecap:round;stroke-dasharray:3 5;animation:1.2s linear infinite ls-drip}.ls-marker{transition:transform .45s cubic-bezier(.22,.8,.3,1)}.ls-mark{fill:var(--color-gold);stroke:var(--color-forest);stroke-width:2px}.ls-mark-dot{fill:var(--color-forest)}.ls-pulse{fill:none;stroke:var(--color-gold);stroke-width:2px;transform-box:fill-box;transform-origin:50%;animation:1.6s ease-out infinite ls-pulse}.ls-label{font:700 11px var(--font-sans,Inter, system-ui, sans-serif);fill:var(--color-forest);paint-order:stroke;stroke:var(--color-cream);stroke-width:4px;stroke-linejoin:round}.hol{background:var(--color-panel);border:1px solid var(--color-edge);border-radius:12px;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px 10px;padding:12px;font-size:.76rem;display:grid}.hol-out{color:var(--color-muted);font-weight:600}.hol-in{text-align:right;color:var(--color-gold-deep);padding-right:28%;font-weight:700}.hol-label{max-width:6.5em;color:var(--color-fg);font-weight:600;line-height:1.2}.hol-track{background:var(--color-cream-2);border-radius:6px;height:22px;position:relative;overflow:hidden}.hol-track:after{content:"";background:var(--color-gold-deep);width:2px;margin-left:-1px;position:absolute;top:0;bottom:0;left:72%}.hol-bar{border-radius:4px;transition:left .45s cubic-bezier(.22,.8,.3,1),width .45s cubic-bezier(.22,.8,.3,1);position:absolute;top:3px;bottom:3px}.hol-clean{background:var(--color-slate);width:26%;left:2%}.hol-leak{background:var(--story-clay);width:52%;left:28%}.hol-plumber{background:var(--story-water);width:16%;left:80%}.hol-ready{background:var(--color-sage);width:0;left:96%}[data-backup="1"] .hol-leak{width:8%}[data-backup="1"] .hol-plumber{left:36%}[data-backup="1"] .hol-ready{width:18%;left:52%}.hol-toggle{cursor:pointer;align-items:center;gap:10px;min-height:44px;font-size:.92rem;font-weight:700;display:flex}.hol-toggle input{width:22px;height:22px;accent-color:var(--color-forest);flex:none;margin:0}.hol-status{min-height:3em}.hol-result{margin:0;font-size:.88rem;font-weight:400;line-height:1.45;display:block}.hol-result[hidden]{display:none}.hol-result:before{vertical-align:1px;margin-right:8px;display:inline-block}@keyframes story-breathe{50%{transform:scale(1.35)}}@keyframes ls-pulse{0%{opacity:.9;transform:scale(.7)}to{opacity:0;transform:scale(1.5)}}@keyframes ls-drip{to{stroke-dashoffset:-16px}}@media (width<=720px){.story{gap:8px;padding:12px}.story-title{font-size:1.15rem}.story-pill{padding:0 12px 0 10px;font-size:.78rem}}@media (prefers-reduced-motion:reduce){.story-pill-dot,.ls-drip,.ls-pulse{animation:none}.ls-pulse{opacity:0}.ls-marker,.hol-bar,.story-pill{transition:none}}
