/* Approved v4.5 visual baseline. Cascade order intentionally preserved. */
:root{color-scheme:light;--dark:#101e17;--deep:#18382b;--paper:#f3f1e8;--ink:#203b2c;--light:#dcebb6;--line:#c5d0bf;--wine:#733143;font:16px/1.6 system-ui,sans-serif;background:var(--dark);color:var(--paper)}*{box-sizing:border-box}body{margin:0}main{position:relative}button,a,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #91b66c;outline-offset:4px}a{color:inherit}button{border:0}button[hidden],section[hidden],div[hidden],a[hidden]{display:none!important}header,footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px clamp(20px,5vw,80px);background:var(--dark)}header{min-height:82px}.brand{font:34px Georgia,serif;letter-spacing:-2px;text-decoration:none}.brand span{color:var(--light)}nav{display:flex;gap:20px;flex-wrap:wrap}nav button,.text-button{background:transparent;color:inherit;padding:5px;font-size:13px}.eyebrow{text-transform:uppercase;letter-spacing:.17em;font-size:11px;font-weight:600;color:inherit;opacity:.72;margin:0 0 12px}h1,h2{font:normal 1em/1.05 Georgia,serif;letter-spacing:-.045em;margin:.25em 0 .5em}h1{font-size:clamp(43px,7vw,92px)}h2{font-size:clamp(25px,4vw,43px)}p{margin:0 0 1em}.lede{font-size:clamp(16px,2vw,22px);max-width:760px;color:#536c59}.small,small{font-size:12px;line-height:1.6}.page{background:var(--paper);color:var(--ink);padding:clamp(28px,6vw,92px);min-height:78vh}.intro{max-width:1000px;margin-bottom:40px}.tags{display:flex;flex-wrap:wrap;gap:8px}.tags span{border:1px solid var(--line);padding:4px 9px;border-radius:30px;font-size:11px}.entrance{position:relative;min-height:calc(100svh - 145px);isolation:isolate;overflow:hidden;background:var(--paper)}.doors{position:absolute;inset:0;z-index:3;pointer-events:none}.door{position:absolute;top:0;bottom:0;width:50.1%;box-shadow:inset 0 0 100px #09150eb0;background:repeating-linear-gradient(0deg,#ffffff05 0,transparent 1px,transparent 3px),linear-gradient(100deg,#182d22,#405745 23%,#697862 40%,#364e3d 65%,#1a2d22);transition:transform 1.8s cubic-bezier(.68,.02,.2,1)}.door.left{left:0;border-right:1px solid #c4d8a5}.door.right{right:0;background:repeating-linear-gradient(0deg,#ffffff04 0,transparent 1px,transparent 3px),linear-gradient(100deg,#182d22,#344c3b 23%,#586d54 53%,#2e4335 77%,#182d22)}.door:after{content:'';position:absolute;inset:15px;border:1px solid #dcebd025}.entry-content{position:relative;z-index:4;min-height:inherit;display:flex;flex-direction:column;align-items:center;justify-content:space-between;text-align:center;padding:30px 20px;transition:opacity .3s;color:var(--paper)}.floor-display{background:#102219;border:1px solid #9bb19477;box-shadow:inset 0 2px 10px #0008;padding:9px 23px;letter-spacing:5px;color:var(--light);font-size:14px}.entry-center h1{font-size:clamp(50px,9vw,112px)}.entry-tag{font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:#d3dfcb}.open-control{display:grid;place-items:center;width:94px;height:94px;border-radius:50%;border:6px solid #8e9e8a;background:radial-gradient(circle at 35% 25%,#617a55,#263d2e 80%);color:#e6f0cb;box-shadow:0 0 0 1px #bdcdb7,0 12px 28px #0008,inset 0 0 0 1.5px #c9dda6,0 0 24px #c9dda633;margin:45px auto 12px;transition:transform .2s,box-shadow .2s}.open-control svg{width:38px}.open-control:hover{box-shadow:0 0 0 1px #e0edc2,0 0 33px #dcebb688,inset 0 0 0 1.5px #dcebb6}.open-control:active,.open-control.pressed{transform:scale(.92);box-shadow:inset 0 5px 15px #0008,0 0 32px #dcebb699}.open-label{font-size:10px;letter-spacing:.3em}.subtle{color:#c8d8c0;background:none;font-size:12px;padding:8px}.entrance.opening{position:absolute;inset:0 0 auto;min-height:calc(100svh - 82px);z-index:20;background:transparent;pointer-events:none}.entrance.opening .left{transform:translateX(-103%)}.entrance.opening .right{transform:translateX(103%)}.entrance.opening .entry-content{opacity:0}.product-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(250px,1fr);gap:36px;max-width:1300px}.identity{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;margin:0 0 15px}.identity-person{display:flex;align-items:center;gap:10px}.identity small{display:block;color:#647968}.avatar{display:grid;place-items:center;border-radius:50%;width:41px;height:41px;background:#d8e4d2;font-size:12px}.roles{display:flex;gap:5px;margin-bottom:12px}.roles button{flex:1;background:transparent;border:1px solid #b8c9b2;color:#345740;border-radius:4px;padding:12px 5px;font-size:13px}.roles button.active{background:#254936;color:#f0f1e5;border-color:#254936}.roles button.pending{outline:1px solid #829b76}.perspective{perspective:1400px}.workspace{min-height:330px;background:#fcfbf8;border:1px solid #d8c7c8;border-radius:9px;color:var(--wine);box-shadow:0 15px 35px #233b2610;backface-visibility:hidden;overflow:hidden}.work-head{display:flex;align-items:center;justify-content:space-between;padding:17px 22px;border-bottom:1px solid #e4d8d6;gap:10px}.work-head small{color:#83666d}.work-body{padding:22px}.bubble{max-width:89%;padding:13px 16px;border-radius:10px;margin:12px 0;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.user{margin-left:auto;background:#e1e8d9;color:#34533e}.bubble.assistant{background:#f0ebe6;color:#654c50}.turn{border-bottom:1px solid #eee8e4;padding-bottom:7px}.turn:last-child{border-bottom:0}.turn button{font-size:11px;color:#6d5660;background:none;text-decoration:underline;padding:4px}.turn button.selected{font-weight:bold}.record{border:1px solid #e1d6d4;border-radius:6px;padding:14px;margin:10px 0;font-size:14px}.alert{background:#f4e8e9;border-left:4px solid var(--wine);padding:13px 15px;margin:11px 0;border-radius:5px;font-size:14px}.alert.reviewed{background:#e5eddf;border-left-color:#73966b;color:#345b40}.clinical,.primary,.outline{border-radius:5px;padding:11px 16px;font-size:13px;font-weight:600;margin:4px 6px 4px 0}.clinical{background:var(--wine);color:white}.primary{background:var(--light);color:#203d2c;border:1px solid #c6d8a2}.page .primary{background:#254936;color:#fff;border-color:#254936}.outline{background:transparent;border:1px solid currentColor;color:inherit}.lockline{display:flex;align-items:center;gap:7px;font-size:11px;color:#627b67;margin-top:15px}.lockline button{margin-left:auto}.lock-dot{width:7px;height:7px;border-radius:50%;background:#719768}.guide{padding:23px 0 0;border-top:1px solid var(--line);align-self:start}.guide h2{font-size:28px}.guide p,.guide ol{font-size:14px;color:#54705c}.guide ol{padding-left:23px}.guide li{padding:6px 0}.guide li.complete{color:#35643e;text-decoration:line-through}.portal-section,.editorial{max-width:1300px;border-top:1px solid var(--line);padding-top:32px;margin-top:50px}.portal-section p,.editorial p{max-width:760px}.portal{display:grid;grid-template-columns:minmax(150px,1fr) 1.25fr;align-items:center;text-align:left;gap:35px;padding:clamp(20px,4vw,48px);width:100%;background:radial-gradient(ellipse at 15% 0%,#355b43,#153428 80%);border:1px solid #577f60;border-radius:10px;color:#eaf0d7;box-shadow:0 8px 30px #15372918}.portal:hover{box-shadow:0 10px 34px #15372944}.portal svg{width:100%;max-height:240px}.portal strong{font:normal clamp(25px,4vw,49px)/1.05 Georgia,serif;display:block;letter-spacing:-.03em}.portal small{display:block;color:#bdd1b9;margin-top:12px}.portal-enter{display:inline-block;margin-top:18px;font-size:12px;border-bottom:1px solid #bed3a5}.gallery,.finale{background:#0b1812;color:#eff0e1;min-height:80vh;padding:clamp(15px,3vw,40px)}.gallery-header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}.gallery-header span{font-size:12px;color:#b9cdb5}.gallery-layout{display:grid;grid-template-columns:minmax(0,1fr) 46px;gap:12px;max-width:1400px;margin:auto}.world{position:relative;border:1px solid #91b18b66;border-radius:8px;overflow:hidden;background:#08150d}.world canvas{width:100%;display:block;aspect-ratio:1.6;max-height:68vh;object-fit:contain;cursor:pointer}.hud{position:absolute;left:17px;right:17px;top:14px;display:flex;justify-content:space-between;gap:8px;font-size:11px;letter-spacing:.13em;color:#e0edd4;pointer-events:none}.rail{position:relative;display:flex;flex-direction:column;justify-content:space-between;align-items:center;padding:15px 0}.rail:before{content:'';position:absolute;top:30px;bottom:30px;width:1px;background:#a8bfa966}.rail button{z-index:1;width:36px;height:36px;border-radius:50%;border:1px solid #789772;background:#1b3224;color:#bfd4b9;font-size:12px}.rail button.active{background:var(--light);color:#203c2b}.rail-marker{position:absolute;left:1px;width:44px;height:44px;border-radius:50%;border:1px solid var(--light);pointer-events:none}.gallery-content{max-width:1200px;margin:24px auto}.gallery-content p{color:#b9cdb5}.zones{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.zones button{background:#1b3225;border:1px solid #85a78255;border-radius:6px;color:#e0ead6;padding:15px;text-align:left;font-size:14px}.zones small{display:block;letter-spacing:.1em;color:#b2c9ad;font-size:10px}.zones button.active{border-color:#dcebb6;background:#38533b}.detail{margin-top:12px;background:#e9eee2;color:#254635;padding:18px;border-radius:6px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.gallery-controls{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.gallery-controls .primary{flex:1}.finale{text-align:center;background:radial-gradient(ellipse at 50% 35%,#344f3c,#0b1912 75%);padding:65px 20px}.finale h1{font-size:clamp(38px,6vw,76px)}.ecosystem{width:100%;max-width:700px;margin:12px auto;display:block}.finale p{max-width:750px;margin:0 auto 20px;color:#bed1b9}.convergence{max-width:340px;margin:40px auto}.convergence svg{width:100%}.editorial-page{min-height:80vh}.editorial-page>p{max-width:780px}.case-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;max-width:1200px;margin:35px 0}.case-grid article{border-top:1px solid var(--line);padding:25px 0}.case-grid h2{font-size:32px}.case-grid p{color:#58705f}.button-row{display:flex;justify-content:center;flex-wrap:wrap}footer{flex-wrap:wrap;font-size:11px;color:#b5c8af}footer button{font-size:11px!important}dialog{border:1px solid #a9ba9f;border-radius:10px;background:#f3f1e8;color:#203b2c;max-width:min(540px,90vw);padding:26px}dialog::backdrop{background:#07150cb0}dialog input{width:100%;padding:10px;margin:8px 0 14px;border:1px solid #a8bca3;border-radius:4px}dialog h2{font-size:29px}.morph-art{position:fixed;z-index:30;pointer-events:none;filter:drop-shadow(0 0 10px #dcebb644)}@media(max-width:800px){.product-grid{grid-template-columns:1fr;gap:20px}.guide{padding-top:15px}.case-grid{grid-template-columns:1fr}.page{padding:28px 18px}.portal{gap:14px}.gallery-layout{grid-template-columns:minmax(0,1fr) 36px;gap:6px}.rail button{width:29px;height:29px}.rail-marker{width:35px;height:35px;left:0}.hud{font-size:8px;top:9px;left:9px;right:9px}.zones button{font-size:11px;padding:9px 6px}.zones small{font-size:8px}header{padding:16px;gap:10px;flex-wrap:wrap}nav{gap:6px}nav button{font-size:11px}.brand{font-size:29px}.work-body{padding:15px}.work-head{padding:12px}.identity{font-size:11px}.roles button{font-size:11px}.workspace{min-height:290px}.entry-center h1{font-size:50px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:0.01ms!important;transition-duration:0.01ms!important;scroll-behavior:auto!important}}

/* V0.2: inspection stays within the architecture, with an optional keyboard-accessible index. */
.scene-inspector{position:absolute;z-index:3;top:15%;bottom:8%;left:5%;width:min(46%,480px);overflow:auto;overscroll-behavior:contain;border:1px solid var(--scene-color,#8edbcb);border-radius:24% 6% 17% 8% / 15% 7% 12% 8%;padding:clamp(12px,2.1vw,28px);color:#edf2e7;background:linear-gradient(132deg,#35594aee,#152e25fa 34%,#15291ff7 70%,#325544ed);box-shadow:0 16px 60px #0009,inset 0 0 24px #c0e1cd12;transform-origin:left center;animation:unfold-inspector .7s cubic-bezier(.18,.8,.2,1) both;display:flex;flex-direction:column;gap:10px;}
.scene-inspector.from-right{left:auto;right:5%;transform-origin:right center;border-radius:6% 24% 8% 17% / 7% 15% 8% 12%;}
.scene-inspector[hidden]{display:none;}
@keyframes unfold-inspector{from{opacity:0;transform:scale(.22,.68) rotateY(35deg)}to{opacity:1;transform:scale(1) rotateY(0)}}
.inspector-top{display:flex;justify-content:space-between;align-items:center;gap:8px;}.inspector-top .eyebrow{color:var(--scene-color,#8edbcb);font-size:10px;}.inspector-close{background:none;color:#e4edcf;border:1px solid #b4cdb566;border-radius:50%;font-size:21px;line-height:1;width:32px;height:32px;flex-shrink:0;cursor:pointer;}.scene-inspector h3{font:normal clamp(18px,2.8vw,30px)/1.1 Georgia,serif;margin:0;color:#f1f1e5;}.scene-inspector #inspector-file{font-size:10px;overflow-wrap:anywhere;color:#b4cdbd;margin:0;}.scene-inspector #inspector-content{white-space:pre-wrap;overflow-wrap:anywhere;font-size:clamp(12px,1.35vw,16px);line-height:1.6;color:#dcebe1;border-left:1px solid var(--scene-color);padding-left:12px;min-height:0;overflow:auto;}.scene-inspector #follow{margin-top:auto;align-self:start;padding:8px 12px;white-space:normal;}.installation-index{color:#a9c5b0;font-size:12px;margin:12px 0;}.installation-index summary{cursor:pointer;}.installation-index .zones{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;}.installation-index .zones button{padding:7px 10px;font-size:11px;}.gallery-content{margin:12px auto;}.gallery-content #floor-desc{font-size:12px;}.gallery-content h2{margin:5px 0;}.gallery-content .eyebrow{margin-bottom:4px;}
@media(max-width:600px){.world canvas{aspect-ratio:1.05;min-height:290px;}.scene-inspector,.scene-inspector.from-right{left:5%;right:5%;width:90%;top:12%;bottom:5%;border-radius:12px;padding:13px;}.scene-inspector #inspector-content{font-size:12px;}.scene-inspector h3{font-size:20px;}.inspector-top .eyebrow{font-size:9px;}.scene-inspector #follow{font-size:10px;}.scene-inspector{gap:6px;}}
@media(prefers-reduced-motion:reduce){.scene-inspector{animation:none!important;}}
/* V0.3: content-sized inspection, human review and return journey. */
.scene-inspector,.scene-inspector.from-right{bottom:auto;top:23%;width:min(38%,390px);max-height:68%;padding:16px;gap:7px;border-radius:4px 22px 5px 18px;background:linear-gradient(125deg,#15291ff5,#10251ef8);box-shadow:0 8px 30px #0007;border-color:var(--scene-color)}
.scene-inspector #follow{margin-top:4px;font-size:12px}.scene-inspector h3{font-size:clamp(18px,2vw,25px)}.scene-inspector #inspector-content{font-size:clamp(12px,1.2vw,15px)}
#gallery-review{align-self:start;padding:8px 12px;font-size:12px}.resolution{min-height:70vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px 20px;background:radial-gradient(ellipse at 50% 25%,#365542,#14291e 65%,#101e17)}.resolution[hidden]{display:none}.resolution h1{font:normal clamp(34px,6vw,76px)/1.05 Georgia,serif;margin:12px 0}.resolution p{max-width:660px;color:#c9dbca}.resolution .loop{max-width:530px;width:100%;margin:12px 0}.resolution .loop text{font-family:system-ui}.resolution .closure-evidence{font-size:14px;border-top:1px solid #9cb89a55;padding-top:12px}.finale .ecosystem{max-width:640px;width:100%;}.finale h1{font:normal clamp(38px,6vw,76px)/1.04 Georgia,serif}.finale .fin-subtitle{font:italic 20px Georgia,serif;color:#c8d9bd}
@media(max-width:600px){.scene-inspector,.scene-inspector.from-right{width:64%;max-height:80%;top:12%;padding:10px}.scene-inspector h3{font-size:17px}.scene-inspector #inspector-content{font-size:12px}}

/* v0.4: guided narrative, compact evidence and the returning response. */
.entry-center .entry-stat{font:normal clamp(42px,7vw,88px)/1 Georgia,serif;color:#dcebb6;margin:6px 0 8px}.entry-center .stat-copy{max-width:460px;margin:0 auto 4px;font-size:clamp(13px,1.55vw,17px);line-height:1.45;color:#e4eadb}.stat-source{display:inline-block;font-size:10px;color:#c0cdb7;text-decoration:underline;text-underline-offset:3px}.entry-center h1{font-size:clamp(30px,4.8vw,60px);line-height:1.08;margin:22px 0 17px}.entry-center h1 em{color:#dcebb6;font-style:normal}.entry-center .eyebrow{margin:0 0 8px}.entry-center .open-control{margin-top:0}.guide #guide-next{margin:18px 0}.guide #guide-next button{width:100%;text-align:left}.guide .guide-step{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:inherit;opacity:.75}.clinical.suggested-action{outline:2px solid #733143;outline-offset:3px}.tour-note{position:absolute;z-index:2;bottom:5%;left:4%;max-width:48%;padding:10px 13px;border-left:2px solid #dcebb6;background:linear-gradient(90deg,#101e17e8,#101e1766);color:#e6eedf;pointer-events:none}.tour-note span{display:block;font-size:10px;color:#c5d8b4;margin-bottom:4px}.tour-note strong{display:block;font-size:clamp(11px,1.4vw,15px);line-height:1.45;font-weight:400}.tour-note[hidden]{display:none}.returning-bubble{animation:reply-in .75s ease-out both}@keyframes reply-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.guide .primary{white-space:normal}.guide p{overflow-wrap:anywhere}.guide .small{font-size:11px}.scene-inspector #follow{margin-top:5px}.gallery-content{padding-bottom:18px}@media(max-width:600px){.tour-note{max-width:65%;bottom:4%;padding:6px 9px}.tour-note span{font-size:8px}.tour-note strong{font-size:11px}.entry-center h1{margin:16px 0}.entry-center .entry-stat{font-size:44px}}@media(prefers-reduced-motion:reduce){.returning-bubble{animation:none}}

/* v0.5: one entrance, continuous drop and return */
.entry-content{min-height:calc(100svh - 145px);padding:24px 20px;gap:20px}.entry-center{width:min(100%,650px);min-height:240px;display:grid;place-items:center}.entry-center h1{font-size:clamp(36px,5.5vw,74px);margin:0 0 26px}.entry-center .entry-stat{font-size:clamp(66px,10vw,126px);margin:0 0 18px}.entry-center .stat-copy{max-width:410px;font-size:clamp(15px,1.6vw,20px);margin:0 auto 12px}.entry-center .stat-source{font-size:11px}.entry-continue{display:block;margin:24px auto 0;border-bottom:1px solid #c6d7b477;letter-spacing:.08em}.entry-center .open-control{width:76px;height:76px;margin:24px auto 12px}.entry-beat-in{animation:entry-beat .65s ease both}@keyframes entry-beat{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
.bubble.preparing{display:flex;align-items:center;gap:5px;flex-wrap:wrap;width:max-content;max-width:95%;font-size:13px;white-space:normal}.typing-dot{display:inline-block;width:7px;height:7px;background:#84616d;border-radius:50%;animation:typing-pulse 1.2s infinite}.typing-dot:nth-child(2){animation-delay:.15s}.typing-dot:nth-child(3){animation-delay:.3s}.typing-copy{margin-left:6px}@keyframes typing-pulse{0%,70%,100%{opacity:.35;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}.typing-skip{display:block;margin-top:4px}.transition-signal{position:fixed;width:9px;height:9px;border-radius:50%;background:#e4efb8;box-shadow:0 0 18px 5px #e4efb877;z-index:100;pointer-events:none}.drop-frame{overflow:hidden!important}.world.bottom-reveal{border-color:#cdb8e388;box-shadow:0 0 50px #cdb8e31b}.bottom-message{position:absolute;z-index:2;top:11%;left:20%;right:20%;text-align:center;pointer-events:none;text-shadow:0 2px 16px #08130c;background:radial-gradient(ellipse,#111c17c9,transparent 75%);padding:12px 0}.bottom-message h3{font:normal clamp(19px,3vw,38px)/1.1 Georgia,serif;color:#e8def0;margin:0 0 8px}.bottom-message p{font-size:clamp(10px,1.2vw,15px);color:#d5c9e3;margin:0}.bottom-message[hidden]{display:none}.world.bottom-reveal .tour-note{max-width:55%}.tour-note{bottom:3%;max-width:42%}.tour-note strong{font-size:clamp(11px,1.25vw,14px)}
@media(max-width:600px){.entry-content{min-height:calc(100svh - 160px)}.entry-center{min-height:210px}.entry-center h1{font-size:36px}.entry-center .entry-stat{font-size:70px}.bottom-message{left:12%;right:12%;top:12%}.bottom-message p{font-size:10px}.tour-note{max-width:55%}}@media(prefers-reduced-motion:reduce){.entry-beat-in,.typing-dot{animation:none}}

/* v0.6 — visitor control, responsive framing, accessible interaction */
html{overflow-y:scroll;scrollbar-gutter:stable;scroll-padding-top:16px}body{min-width:0;overflow-wrap:anywhere}main{min-width:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.skip-link{position:fixed;z-index:110;top:8px;left:8px;transform:translateY(-160%);background:#dcebb6;color:#14291e;padding:12px 18px;border-radius:5px}.skip-link:not(:focus){clip-path:inset(100%);overflow:hidden;pointer-events:none}.skip-link:focus{transform:none;clip-path:none}button:focus-visible,a:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #91b66c;outline-offset:3px}.page button:focus-visible,.page a:focus-visible,.page summary:focus-visible{outline-color:#315b40}button:not(.open-control){min-height:44px}nav button,.text-button,.subtle{font-size:14px}.stat-source{font-size:13px;line-height:1.6;display:block;padding:6px}.entry-center{min-height:0}.entry-content{gap:14px;padding:18px 20px}.entry-continue{background:#dcebb6;color:#203b2c;border:1px solid #e6efca;border-radius:30px;padding:10px 22px;margin:18px auto 0;font-weight:600;letter-spacing:0}.entry-center .open-control{width:118px;height:118px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;margin:20px auto 8px;border-width:5px}.open-control svg{width:39px;height:39px;flex:none}.open-control .open-label{font-size:14px;font-weight:650;letter-spacing:.16em;line-height:1.4;text-indent:.16em}.entry-center h1{font-size:clamp(32px,5vw,68px);margin:0 0 18px}.entrance .subtle{color:#e1ebd3}.entrance .entry-continue{color:#203b2c}.entry-center .stat-copy{max-width:460px}.conversation-jump{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:#345740;font-size:14px;margin:0 0 18px;text-underline-offset:3px}.product-grid>*{min-width:0}.workspace{overflow:visible;min-height:0}.work-head{flex-wrap:wrap}.work-body{min-width:0}.bubble{font-size:16px;line-height:1.55}.turn button.explore-response{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:8px 10px;color:#733143;font-size:14px;text-decoration:none;font-weight:600}.explore-response:hover{text-decoration:underline!important}.explore-response span{font-size:20px;line-height:1}.scenario-actions{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-top:20px;padding-top:14px;border-top:1px solid #e1d6d4}.scenario-prompt{font-size:14px;margin:0;color:#654c50}.scenario-main{margin:0;max-width:100%;white-space:normal;text-align:left}.scenario-alternate{background:transparent;color:#733143;text-align:left;text-decoration:underline;text-underline-offset:3px;padding:8px 0;font-size:14px;max-width:100%;white-space:normal}.clinical,.primary,.outline{font-size:14px;white-space:normal}.guide .small{font-size:13px}.guide p{color:#455e4c}.lockline{flex-wrap:wrap}.gallery-header{flex-wrap:wrap}.rail button{min-width:44px;min-height:44px;width:44px;height:44px}.rail-marker{display:none}.gallery-layout{grid-template-columns:minmax(0,1fr) 48px}.gallery-controls button{flex:1 1 auto;margin:0}.gallery-content #floor-desc{font-size:15px}.installation-index{font-size:14px}.installation-index summary{padding:10px 0;min-height:44px}.installation-index .zones button{font-size:14px;min-height:44px;white-space:normal}.inspector-close{min-width:44px;min-height:44px}.scene-inspector #inspector-content{font-size:15px;line-height:1.55;overscroll-behavior:auto}.scene-inspector{max-height:80%;overflow-y:auto;scrollbar-gutter:stable}.scene-inspector #follow,#gallery-review{font-size:14px;flex-shrink:0}.scene-inspector #inspector-content{flex-shrink:0;overflow:visible}.scene-inspector h3{overflow-wrap:anywhere}.hud{font-size:11px}.tour-note strong{font-size:14px}.tour-note span{font-size:11px}.tour-note{pointer-events:none}.bottom-message p{font-size:14px}.typing-copy{font-size:14px}.typing-skip{font-size:14px!important}.roles button{min-width:0}.avatar{flex-shrink:0}dialog{max-width:calc(100vw - 32px);max-height:85dvh;overflow:auto}summary{cursor:pointer}.work-body summary{min-height:44px;padding:10px 0}.guide .primary{margin:0}.entry-center .entry-stat{font-size:clamp(62px,10vw,112px)}
@media(max-width:800px){.page{padding:24px 18px}.intro{margin-bottom:12px}.intro h1{font-size:clamp(34px,7.5vw,58px)}.product-grid{gap:16px}.identity{flex-wrap:wrap}.guide{padding-top:16px}.portal{grid-template-columns:1fr}.gallery-content{margin:14px auto}.bubble{max-width:94%}.case-grid>*{min-width:0}footer{flex-wrap:wrap;gap:8px;padding:14px 18px}header{padding:12px 16px;gap:6px}.brand{font-size:29px}nav{gap:4px}nav button{font-size:13px;padding:8px}.conversation-jump{margin-bottom:10px}.entry-content{min-height:calc(100svh - 160px)}}
@media(max-width:600px){.entry-content{padding:16px 16px;min-height:calc(100svh - 150px);gap:16px}.entry-center h1{font-size:clamp(30px,8vw,44px)}.entry-center .stat-copy{font-size:16px}.entry-center .open-control{width:112px;height:112px}.entry-center .entry-stat{font-size:76px}.floor-display{padding:6px 18px}.roles button{font-size:13px;padding:10px 4px}.work-body{padding:12px}.scenario-main{width:100%}.scenario-alternate{width:100%}.work-head small{font-size:13px}.gallery{padding:14px 12px}.gallery-layout{display:flex;flex-direction:column;gap:8px}.rail{order:-1;flex-direction:row;padding:4px 10px;justify-content:space-between}.rail:before{left:30px;right:30px;top:50%;bottom:auto;width:auto;height:1px}.world canvas{width:100%;height:auto;aspect-ratio:900/980;min-height:0;max-height:none;object-fit:contain}.world{display:flex;flex-direction:column}.scene-inspector,.scene-inspector.from-right{position:relative;inset:auto;width:auto;max-height:none;margin:8px 10px 12px;padding:14px;border-radius:8px;box-shadow:none;transform:none;animation:none}.scene-inspector h3{font-size:22px}.scene-inspector #inspector-content{font-size:16px}.world .tour-note{position:relative;inset:auto;max-width:none;margin:0 10px 10px;background:#15291f;padding:12px}.world .tour-note strong{font-size:15px}.world .bottom-message{position:relative;inset:auto;order:1;padding:8px 12px 12px;background:none}.world .bottom-message h3{font-size:23px}.world .bottom-message p{font-size:14px}.world .hud{top:12px;left:10px;right:10px}.gallery-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px}.gallery-controls #descend{grid-column:1/-1}.gallery-header span{font-size:12px}.gallery-content h2{font-size:29px}.installation-index .zones{display:grid;grid-template-columns:1fr 1fr;gap:8px}.zones button{overflow-wrap:anywhere}.gallery-header .outline{margin:0}.button-row{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.resolution,.finale{padding:28px 16px}.fin-subtitle{font-size:18px}.typing-copy{margin-left:2px}.identity #assignment{font-size:13px}.small,small{font-size:13px}.guide h2{font-size:26px}}
@media(max-width:360px){.roles button{font-size:12px}.entry-center h1{font-size:30px}.gallery-controls{grid-template-columns:1fr}.gallery-controls #descend{grid-column:auto}.installation-index .zones{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.entry-beat-in,.typing-dot,.returning-bubble,.scene-inspector{animation:none!important}.open-control:active,.open-control.pressed{transform:none}}
.gallery-top-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.gallery-top-actions button{margin:0}.gallery-top-actions #tour-pause{color:#e8efda}.gallery-header .gallery-top-actions{justify-content:flex-end}@media(max-width:600px){.gallery-header .gallery-top-actions{justify-content:flex-start;width:100%}.gallery-top-actions button{flex:1 1 auto}}

/* Continuous conversation-to-world camera bridge. */
.flight-stage{position:fixed;inset:0;z-index:200;overflow:hidden;background:#0b1812;isolation:isolate;touch-action:manipulation}.flight-world{position:absolute;inset:0;overflow:hidden;background:#0b1812}.flight-world canvas{position:absolute;display:block;max-width:none;max-height:none;object-fit:fill;pointer-events:none}.flight-chat{position:absolute;inset:0;overflow:hidden;background:#101e17;pointer-events:none}.flight-dot{position:absolute;width:9px;height:9px;border-radius:50%;background:#e4efb8;box-shadow:0 0 9px 3px #e4efb888,0 0 26px 7px #e4efb833;transform:translate(-50%,-50%);pointer-events:none}.flight-skip{position:absolute;right:16px;bottom:16px;z-index:4;border:1px solid #dcebb6aa;border-radius:5px;padding:10px 14px;background:#172a20;color:#e7efd8;font-size:14px}.flight-stage .signal-origin{visibility:hidden}.flight-stage .typing-dot{animation:none!important}.flight-stage .typing-skip{visibility:hidden}

/* v0.8: portfolio perspective status, not a patient-facing clinical alert. */
.roles button[data-role="therapist"]{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;position:relative}
.role-alert-count,.role-review-check{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:20px;height:20px;padding:0 5px;border-radius:999px;font-size:11px;font-weight:750;line-height:1;color:#fff;background:#873c51;border:1px solid #fff7}
.role-review-check{background:#356348;padding:0 3px}
.role-review-check svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.role-alert-count.new-alert{animation:alert-arrival .95s ease-out 1}
@keyframes alert-arrival{0%{box-shadow:0 0 0 0 #873c5166}75%,100%{box-shadow:0 0 0 8px #873c5100}}
.safeguard-discovery{margin:12px 0 4px;padding:12px 0;border-top:1px solid #d8c7c8;font-size:.9rem;line-height:1.5}
.safeguard-discovery button{display:block;text-align:left;color:#733143;min-height:44px;padding:9px 0;text-decoration:underline;text-underline-offset:3px;background:none;border:0;font:inherit;font-weight:650}
@media(max-width:380px){.roles button[data-role="therapist"]{gap:4px}.role-alert-count,.role-review-check{min-width:18px;height:18px;font-size:10px;padding:0 4px}}
@media(prefers-reduced-motion:reduce){.role-alert-count.new-alert{animation:none}}

/* v1.0: original flat controls, one entrance action, visible scrolling. */
html{scrollbar-width:auto;scrollbar-color:#819680 #e5e9df;overflow-y:scroll;scrollbar-gutter:stable}
html::-webkit-scrollbar{width:14px}html::-webkit-scrollbar-track{background:#e5e9df}html::-webkit-scrollbar-thumb{background:#819680;border:3px solid #e5e9df;border-radius:10px}
#entrance .entry-center{display:flex;flex-direction:column;align-items:center;gap:18px;width:min(100%,650px)}
#entrance .entry-stat{font-size:clamp(42px,6vw,65px);margin:0 0 5px}
#entrance .stat-copy{font-size:clamp(14px,1.6vw,17px);max-width:420px;margin:0 auto}
#entrance .stat-source{font-size:12px;padding:4px;line-height:1.35;max-width:420px;margin:auto}
#entrance .entry-center h1{font-size:clamp(30px,4.5vw,56px);margin:0;line-height:1.08}
#entrance .entry-center .open-control{width:108px;height:108px;margin:18px auto 0}
#entrance .entry-content{gap:8px;padding:14px 18px;justify-content:space-between}
#product .scenario-actions{display:flex;flex-direction:row;align-items:center;gap:10px;flex-wrap:wrap}
#product .scenario-prompt{flex:0 0 100%;margin-bottom:4px}
#product button.clinical,#product .guide button.primary,#product button.scenario-alternate,#product .roles button.active,#product .conversation-jump {
 appearance:none;background:#52745b;color:#fff;border:1px solid #c9bc91;border-radius:5px;box-shadow:none;filter:none;text-shadow:none;min-height:44px;font-weight:600;text-decoration:none;transition:background-color .16s,border-color .16s,box-shadow .16s,transform .1s;
}
#product button.scenario-alternate,#product button.scenario-main{padding:11px 16px;width:auto;max-width:100%;margin:0;text-align:center;white-space:normal}
#product .conversation-jump{padding:9px 15px;display:inline-flex;align-items:center;justify-content:center}
#product .roles button:not(.active){background:#e8ede3;color:#345740;border:1px solid #b8c9b2;box-shadow:none}
#product .roles button{border-radius:5px;min-height:44px}
#product .revisit-row{display:flex;align-items:center;justify-content:flex-start;margin:4px 0 0}
#product button.revisit-response{background:transparent;color:#345740;border:0;border-radius:4px;min-height:44px;padding:8px 0;text-decoration:underline;text-underline-offset:4px;font-weight:600;box-shadow:none}
#product .safeguard-discovery button,#product button.typing-skip{background:transparent;color:#345740;border:0;box-shadow:none;text-decoration:underline;text-underline-offset:3px}
@media(hover:hover) and (pointer:fine){#product button.clinical:not(:disabled):hover,#product .guide button.primary:not(:disabled):hover,#product button.scenario-alternate:not(:disabled):hover,#product .roles button.active:not(:disabled):hover,#product .conversation-jump:hover{background:#3d5c45;border-color:#e4d6a7;box-shadow:0 0 0 1px #ddcfa6,0 0 12px #c9b77c55}#product .roles button:not(.active):hover{background:#dce7d7}#product button.revisit-response:hover{color:#203b2c;text-decoration-thickness:2px}}
#product button.clinical:active,#product button.scenario-alternate:active,#product .guide button.primary:active{transform:translateY(1px)}
#product button:focus-visible,#product .conversation-jump:focus-visible{outline:3px solid #315b40;outline-offset:3px}
#product button:disabled{opacity:.55;cursor:not-allowed}
#response-chooser{width:min(100%,520px);max-width:calc(100vw - 32px);border:1px solid #a4b29d;border-radius:10px;padding:20px;color:#203b2c;background:#f3f1e8}#response-chooser::backdrop{background:#10231888}#response-chooser h2{font:normal 25px Georgia,serif;margin:0 0 10px}#response-chooser .response-choices{display:grid;gap:8px;margin:14px 0}#response-chooser button[data-explore]{min-height:44px;background:#e2e9dc;border:1px solid #a4b29d;border-radius:5px;color:#203b2c;padding:12px;text-align:left;line-height:1.4}#response-chooser button[data-explore]:hover{background:#d3dfcc}#response-chooser .close-choice{color:#345740;background:transparent;text-decoration:underline;min-height:44px}
@media(max-width:600px){#entrance .entry-center{gap:12px}#entrance .entry-stat{font-size:44px}#entrance .entry-center h1{font-size:clamp(27px,7.3vw,38px)}#entrance .entry-center .open-control{width:94px;height:94px;margin-top:12px}#entrance .entry-content{min-height:calc(100svh - 150px);padding:10px 14px}#product .scenario-actions{gap:8px}#product button.scenario-main,#product button.scenario-alternate{flex:1 1 125px;font-size:14px}}
@media(prefers-reduced-motion:reduce){#product button{transition:none!important;transform:none!important}}

/* Direct entrance into the product workspace. */
#product.page{padding-top:clamp(18px,3vw,40px)}
#product .demo-context{font-size:12px;line-height:1.5;color:#526657;margin:0 0 14px;max-width:1300px}

/* Sign-off: distinguish the fictional safety scenario, without changing other controls. */
#product button[data-action="send"][data-scenario="safety"]{background:#a04449;color:#fff;border-color:#a04449;box-shadow:none}
@media(hover:hover) and (pointer:fine){#product button[data-action="send"][data-scenario="safety"]:not(:disabled):hover{background:#ad4b50;border-color:#d89a9c;box-shadow:0 0 0 1px #d89a9c,0 0 12px #a0444933}}
#product button[data-action="send"][data-scenario="safety"]:focus-visible{outline:3px solid #783339;outline-offset:3px}

/* v1.3 — readable, illuminated trace at each stationary stop. */
#gallery .world .tour-note{left:4%;right:auto;bottom:4%;width:min(66%,690px);max-width:none;padding:14px 18px 16px;border:1px solid #dcebb699;border-left:3px solid #dcebb6;border-radius:6px;background:linear-gradient(115deg,#17291ffb,#101d18fa);box-shadow:0 0 19px #dcebb624,inset 0 0 14px #dcebb609;color:#f0f5e9;pointer-events:none;z-index:3}
#gallery .tour-note .trace-label{display:flex;align-items:center;gap:8px;margin:0 0 7px;color:#c9dbaf;font-size:10px;font-weight:700;letter-spacing:.16em}
#gallery .trace-label:before{content:'';width:6px;height:6px;border-radius:50%;background:#e5efc3;box-shadow:0 0 9px #e5efc3;flex:none}
#gallery .tour-note #tour-kind{display:block;color:#dcebb6;font-size:12px;line-height:1.4;font-weight:650;letter-spacing:.07em;margin:0 0 6px}
#gallery .tour-note #tour-evidence{font-size:clamp(15px,1.45vw,19px);line-height:1.5;color:#f0f5e9;overflow-wrap:anywhere}
#gallery .tour-note.trace-arrival{animation:trace-arrival .55s ease-out both}
@keyframes trace-arrival{from{opacity:.65;box-shadow:0 0 5px #dcebb620}to{opacity:1;box-shadow:0 0 19px #dcebb624,inset 0 0 14px #dcebb609}}
#gallery .world.trace-at-rest{border-color:#dcebb677;box-shadow:0 0 24px #dcebb613}
#gallery .world .tour-note[hidden]{display:none}
@media(max-width:600px){#gallery .world .tour-note{position:relative;inset:auto;width:auto;max-width:none;margin:0 10px 12px;padding:12px 14px;order:0}#gallery .tour-note #tour-evidence{font-size:16px}#gallery .tour-note #tour-kind{font-size:12px}#gallery .world.trace-at-rest{box-shadow:none}}
@media(prefers-reduced-motion:reduce){#gallery .tour-note.trace-arrival{animation:none}}


.interwoven-finale[hidden]{display:none!important}.interwoven-finale{text-align:center;padding:clamp(22px,4vw,52px) 16px;color:#e5edd8;max-width:820px;margin:0 auto}.interwoven-finale h1{font:normal clamp(33px,6vw,72px)/1.05 Georgia,serif;margin:12px 0}.interwoven-finale .fin-subtitle{font:italic clamp(17px,2vw,24px) Georgia,serif;color:#c4d6b5}.interwoven-finale p{color:#cfddc9}.interwoven-finale .button-row{justify-content:center}.gallery.final-journey .rail{visibility:hidden}.gallery.final-journey .gallery-controls,.gallery.final-journey .installation-index{visibility:hidden}.gallery.final-complete .gallery-content{display:none}.gallery.final-complete .hud{opacity:0}.gallery.final-complete .gallery-header .eyebrow{color:#dcebb6}.gallery.final-complete #interwoven-finale{animation:interwoven-arrival .8s ease both}@keyframes interwoven-arrival{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.gallery.final-complete #interwoven-finale{animation:none}}

/* v1.9: readable interface scale, independent of scenic canvas typography. */
#product{font-size:1.125rem;line-height:1.6}
#product .demo-context,#product .identity small,#product .work-head small,#product .guide .small,#product .lockline,#product .lockline button{font-size:1rem;line-height:1.5}
#product .identity,#product .identity #assignment,#product .roles button,#product .scenario-prompt,#product .record,#product .alert,#product .safeguard-discovery{font-size:1.0625rem}
#product .work-head strong,#product .work-head b{font-size:1.25rem}
#product .bubble{font-size:1.125rem;line-height:1.6}
#product .bubble.preparing,#product .typing-copy,#product .typing-skip{font-size:1rem!important}
#product button.clinical,#product button.scenario-alternate,#product .guide button,#product button.revisit-response,#product .primary,#product .outline{font-size:1rem;line-height:1.45;min-height:44px}
#product .guide p,#product .guide ol{font-size:1.125rem;line-height:1.6}
#product .guide .eyebrow{font-size:.875rem;letter-spacing:.13em}
#product .guide h2{font-size:clamp(1.8rem,2.4vw,2.35rem)}
#product .avatar{font-size:1rem}
header nav button{font-size:1rem}
#gallery .gallery-header span,#gallery .gallery-controls button,#gallery .gallery-top-actions button,#gallery .installation-index,#gallery .installation-index .zones button,#gallery .gallery-content #floor-desc{font-size:1rem;line-height:1.5}
#gallery .scene-inspector #inspector-content{font-size:1rem;line-height:1.55}
#gallery .scene-inspector #follow,#gallery #gallery-review{font-size:1rem}
#gallery .hud,#gallery .tour-note .trace-label,#gallery .tour-note #tour-kind{font-size:.875rem}
#gallery .tour-note #tour-evidence{font-size:clamp(1.0625rem,1.4vw,1.25rem)}
#gallery .world .bottom-message p{font-size:1rem}
#gallery .rail button{font-size:.875rem}
@media(max-width:600px){#product .roles button{font-size:.875rem;padding:10px 3px}#product .identity{font-size:1rem}#product .identity #assignment{font-size:1rem}#product .guide p,#product .bubble{font-size:1.0625rem}#product .guide .small{font-size:1rem}#gallery .hud{font-size:.75rem}#gallery .gallery-top-actions button{flex:1 1 120px}header nav button{font-size:.9375rem}}

/* Gallery layout: viewport-first gallery, natural overflow for zoom and small screens. */
body.gallery-view>header{min-height:0;height:auto;padding:7px clamp(12px,3vw,40px);gap:8px;flex-wrap:nowrap}
body.gallery-view>header .brand{font-size:25px;letter-spacing:-1px;white-space:nowrap}
body.gallery-view>header nav{gap:12px;flex-wrap:nowrap}
body.gallery-view>header nav button{padding:5px 3px;min-height:36px;font-size:.875rem}
body.gallery-view>footer{display:none}
body.gallery-view{display:flex;flex-direction:column;height:100vh;height:100dvh;min-height:0}
body.gallery-view>main{flex:1;min-height:0;display:flex;flex-direction:column}
#gallery:not([hidden]){flex:1;min-height:0;height:100%;display:grid;grid-template-rows:auto minmax(170px,1fr) auto;gap:8px;padding:8px clamp(10px,2vw,26px) 12px;overflow-y:auto;scrollbar-gutter:stable;align-content:stretch}
#gallery .gallery-header{margin:0;gap:6px;align-items:center;min-width:0}
#gallery .gallery-header .eyebrow{margin:0;font-size:.72rem;line-height:1.3}
#gallery .gallery-header #gallery-mode{font-size:.875rem;line-height:1.35}
#gallery .gallery-top-actions{gap:6px;width:auto}
#gallery .gallery-top-actions button,#gallery .gallery-controls button{min-height:44px;margin:0;padding:8px 13px;font-size:1rem;line-height:1.3}
#gallery .gallery-layout{width:100%;max-width:1400px;min-height:0;height:100%;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 48px;grid-template-rows:minmax(0,1fr);gap:8px}
#gallery .world{min-height:0;height:100%;display:block;position:relative}
#gallery .world canvas{width:100%;height:100%;min-height:0;max-height:none;aspect-ratio:auto;object-fit:contain;display:block}
#gallery .rail{padding:8px 0;min-height:0}
#gallery .gallery-content{width:100%;max-width:1400px;margin:0 auto;padding:0;display:grid;gap:5px;min-width:0}
#gallery .trace-slot{display:grid;grid-template-columns:minmax(0,1fr);min-height:100px;align-items:stretch}
#gallery .trace-slot>*{grid-area:1/1;min-width:0}
#gallery .trace-fallback{padding:10px 15px;background:#14251c;border:1px solid #819b7b55;border-radius:6px;align-self:stretch}
#gallery .trace-fallback .eyebrow{margin:0 0 3px;font-size:.72rem;line-height:1.3}
#gallery .trace-fallback h2{font:normal 1.25rem/1.2 Georgia,serif;letter-spacing:normal;margin:0 0 4px;color:#e8edda}
#gallery .trace-fallback #floor-desc{margin:0;font-size:1rem;line-height:1.4}
#gallery .trace-slot:has(.tour-note:not([hidden])) .trace-fallback{visibility:hidden}
#gallery .trace-slot .tour-note{position:relative;inset:auto;max-width:none;width:100%;margin:0;padding:10px 15px;background:linear-gradient(115deg,#17291f,#101d18);border:1px solid #dcebb699;border-left:3px solid #dcebb6;border-radius:6px;box-shadow:0 0 18px #dcebb624;pointer-events:none;align-self:stretch}
#gallery .trace-slot .tour-note[hidden]{display:none!important}
#gallery .tour-note .trace-label{font-size:.72rem;margin:0 0 3px;line-height:1.3}
#gallery .tour-note #tour-kind{font-size:.85rem;margin:0 0 3px;line-height:1.3}
#gallery .tour-note #tour-evidence{font-size:1.0625rem;line-height:1.45}
#gallery .installation-index{margin:0;font-size:.875rem}
#gallery .installation-index summary{min-height:32px;padding:5px 0}
#gallery .installation-index .zones{margin:4px 0;max-height:180px;overflow-y:auto;scrollbar-gutter:stable}
#gallery .gallery-controls{margin:0;gap:6px;display:flex;flex-wrap:wrap}
#gallery .gallery-controls button{flex:1 1 auto}
#gallery.final-journey .gallery-controls,#gallery.final-journey .installation-index{display:none}
#gallery.final-journey .gallery-layout{grid-template-columns:minmax(0,1fr)}
#gallery.final-journey .rail{display:none}
#gallery.final-complete .gallery-content{display:none}
#gallery .interwoven-finale{width:100%;max-width:820px;padding:6px 10px 2px;margin:0 auto}
#gallery .interwoven-finale .eyebrow{margin:0;font-size:.75rem}
#gallery .interwoven-finale h1{font-size:clamp(1.9rem,4vw,3.25rem);margin:4px 0 5px}
#gallery .interwoven-finale .fin-subtitle{font-size:1.125rem;margin:0 0 6px}
#gallery .interwoven-finale p{margin:0 0 6px;line-height:1.4;font-size:1rem}
#gallery .interwoven-finale button{min-height:44px;margin:0;font-size:1rem}
#gallery .interwoven-finale .button-row{gap:6px}
#gallery .bottom-message{top:9%;left:12%;right:12%;padding:8px 0}
#gallery .bottom-message h3{font-size:clamp(1.2rem,2.4vw,2rem);margin:0 0 4px}
#gallery .bottom-message p{font-size:.95rem;line-height:1.3}
@media(max-width:600px){
 body.gallery-view>header{padding:6px 12px}body.gallery-view>header .brand{font-size:23px}body.gallery-view>header nav{display:none}
 #gallery:not([hidden]){padding:6px 8px 8px;gap:6px;grid-template-rows:auto minmax(200px,1fr) auto}
 #gallery .gallery-header{flex-wrap:wrap}#gallery .gallery-header .eyebrow{font-size:.7rem}#gallery .gallery-header #gallery-mode{font-size:.78rem}
 #gallery .gallery-top-actions{width:100%;justify-content:stretch}#gallery .gallery-top-actions button{flex:1 1 auto;font-size:.9rem;min-height:44px}
 #gallery .gallery-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:44px minmax(0,1fr);gap:4px}
 #gallery .rail{order:-1;flex-direction:row;padding:0 8px}#gallery .rail:before{top:50%;bottom:auto}
 #gallery.final-journey .gallery-layout{grid-template-rows:minmax(0,1fr)}
 #gallery .trace-slot{min-height:92px}#gallery .trace-fallback,#gallery .trace-slot .tour-note{padding:8px 10px}
 #gallery .gallery-controls button{font-size:.875rem;padding:7px 5px;flex:1 1 30%}
 #gallery .installation-index summary{min-height:44px}
 #gallery .scene-inspector,#gallery .scene-inspector.from-right{position:absolute;inset:12% 4% auto;width:92%;max-height:84%;overflow-y:auto;margin:0;z-index:5}
 #gallery .bottom-message{position:absolute;inset:8% 6% auto;margin:0;padding:6px;background:#111c17e8}
 #gallery .bottom-message h3{font-size:1.2rem}#gallery .bottom-message p{font-size:.875rem}
 #gallery .interwoven-finale h1{font-size:1.9rem}
}
@media(max-height:550px){#gallery:not([hidden]){grid-template-rows:auto minmax(220px,1fr) auto}}

/* v2.1: close the human story before the architectural epilogue. */
.closure-stage{position:fixed;inset:0;z-index:220;overflow:hidden;isolation:isolate;pointer-events:auto;display:flex;align-items:flex-end;justify-content:center;padding:clamp(12px,3vw,32px);background:linear-gradient(transparent 45%,#101e1788 100%)}
.closure-record{position:relative;z-index:2;width:min(680px,100%);background:#14251c;color:#e5edd8;border:1px solid #b7ca9a99;border-radius:8px;padding:16px 20px;box-shadow:0 8px 30px #0005;transition:opacity .4s;max-height:65dvh;overflow:auto}
.closure-record h2{font:normal clamp(22px,3vw,32px)/1.2 Georgia,serif;margin:6px 0 8px;color:#e5edd8}.closure-record p{margin:0 0 6px;font-size:1rem;line-height:1.45}.closure-record .eyebrow{color:#b7ca9a;font-size:.75rem}.closure-record .closure-meta{color:#bccdb6}.closure-stage .closure-skip{position:absolute;top:12px;right:12px;z-index:5;background:#14251c;color:#e5edd8;border:1px solid #b7ca9a;border-radius:5px;padding:9px 14px;font-size:14px;min-height:44px}
.closure-door{position:absolute;top:0;bottom:0;width:50.1%;z-index:3;background:repeating-linear-gradient(0deg,#fff0 0px,#fff0 3px,#ffffff04 4px),linear-gradient(105deg,#1e3026,#435745,#22372b);border:1px solid #9bb39a55;transition:transform 1.05s cubic-bezier(.55,.02,.25,1),opacity 1.6s ease;pointer-events:none}.closure-door.left{left:0;transform:translateX(-101%)}.closure-door.right{right:0;transform:translateX(101%)}.closure-stage.closing .closure-door{transform:translateX(0)}.closure-stage.closing .closure-record{opacity:0}.closure-seam{position:absolute;left:50%;top:0;bottom:0;width:2px;z-index:4;opacity:0;background:#e4efb8;box-shadow:0 0 9px 2px #e4efb899;transition:opacity .5s;pointer-events:none}.closure-stage.closing .closure-seam{opacity:1;transition-delay:.8s}.closure-stage.emerging{background:transparent}.closure-stage.emerging .closure-door,.closure-stage.emerging .closure-seam{opacity:0;transition-delay:0s}.closure-stage.emerging .closure-record{display:none}
#gallery.final-complete #interwoven-evidence{display:none}#gallery.final-complete .interwoven-finale .button-row{margin-top:12px}#gallery.final-complete .interwoven-finale .button-row button{font-size:.95rem}#gallery.final-complete .interwoven-finale .epilogue-copy{max-width:570px;margin:8px auto;color:#b8cbb3;font-size:.95rem}
@media(prefers-reduced-motion:reduce){.closure-door,.closure-record,.closure-seam{transition:none!important}}

/* Guided handoff and curtain call. No secondary elevator ride or confirmation modal. */
.handoff-note{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin:12px 0 4px;padding:10px 0;color:#536758;font-size:1rem;line-height:1.45;border-top:1px solid #d2d9ce}
.handoff-note button{background:transparent;color:#344b38;border:0;text-decoration:underline;padding:8px;min-height:44px;font-size:.95rem;cursor:pointer}
.roles button.handoff-target{box-shadow:0 0 0 2px #a04449,0 0 18px #a0444933;transition:box-shadow .35s}
#workspace button.review-target{box-shadow:0 0 0 2px #e0d7b0,0 0 18px #b8bd8790;transition:box-shadow .35s}
.closure-inline{margin:18px 0 4px;border-top:1px solid #b7c4b3;padding:14px 0 6px;color:#344b38;font-size:1rem;line-height:1.55}
.closure-inline strong{display:block;font-size:1.15rem;margin-bottom:5px}.closure-inline p{margin:4px 0}.closure-inline .closure-meta{font-size:.9rem;color:#536758}
.closure-inline button{margin-top:8px;min-height:44px;background:transparent;border:0;color:#344b38;text-decoration:underline;font-size:.95rem;cursor:pointer}
.closure-stage{background:transparent;padding:0;display:block}.closure-stage .closure-door{opacity:.08;transition:transform 3s cubic-bezier(.32,.03,.23,1),opacity 3s cubic-bezier(.42,0,.72,1);background:repeating-linear-gradient(0deg,#fff0 0px,#fff0 3px,#ffffff04 4px),linear-gradient(105deg,#1e3026,#435745,#22372b);border-color:#c1d7b655}
.closure-stage.closing .closure-door{opacity:1;transform:translateX(0)}.closure-stage.closing .closure-seam{transition:opacity .55s ease;transition-delay:2.55s;opacity:1}.closure-stage.emerging .closure-door{opacity:0;transition:opacity 1.55s ease;transition-delay:0s}.closure-stage.emerging .closure-seam{opacity:0;transition:opacity 1.55s ease;transition-delay:0s}
.closure-stage .closure-skip{z-index:6}.closure-stage .closure-skip:focus-visible,.handoff-note button:focus-visible,.closure-inline button:focus-visible{outline:2px solid #a08a51;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.closure-stage .closure-door,.closure-stage .closure-seam,.roles button.handoff-target,#workspace button.review-target{transition:none!important}}

/* v2.3: optional exploration after the epilogue, never a completion gate. */
#further-exploration[hidden]{display:none!important}
#gallery #further-exploration{margin:14px auto 2px;padding:12px 0 0;border-top:1px solid #a9bfa744;max-width:680px;text-align:center}
#gallery #further-title{font:500 .95rem/1.4 system-ui,sans-serif;letter-spacing:0;color:#b9cbb0;margin:0 0 5px}
#gallery .further-options{display:flex;justify-content:center;flex-wrap:wrap;gap:4px 18px}
#gallery .further-options button{background:transparent;border:0;box-shadow:none;color:#e4edcf;text-decoration:underline;text-underline-offset:4px;font-weight:500;line-height:1.4;padding:8px 4px;min-height:44px;font-size:1rem;cursor:pointer}
#gallery .further-options button:hover{color:#fff;background:#dcebb60c;box-shadow:none}
#gallery .further-options button:focus-visible{outline:2px solid #dcebb6;outline-offset:2px}
@media(max-width:600px){#gallery #further-exploration{margin-top:9px;padding-top:8px}#gallery .further-options{gap:0 12px}#gallery .further-options button{font-size:.95rem}}

/* v2.5: preserve the visible perspective navigation during the conversation and handoff. */
#product .roles{position:sticky;top:0;z-index:12;background:#f0efe6;padding:7px 0;margin-top:-7px;box-shadow:0 5px 9px #f0efe6cc}
#product .roles button{min-height:44px}
#product .roles button[data-role="therapist"].handoff-target{background:#f6e5e2;border-color:#a04449;box-shadow:0 0 0 2px #a04449,0 0 15px #a0444944;color:#733143}
#product .alert,#product .alert button[data-action="review"]{scroll-margin-top:84px;scroll-margin-bottom:14px}
@media(max-width:600px){#product .roles{padding:6px 0; margin-top:-6px}#product .roles button{font-size:clamp(.78rem,3.6vw,.95rem)}}


/* v2.6: render the active gallery across its available desktop width. */
@media(min-width:601px){#gallery:not(.final-journey) .gallery-layout,#gallery:not(.final-journey) .gallery-content{max-width:none;} }

/* v2.7: purposeful attention, without layout or workflow changes. */
#product #workspace button.clinical.review-target:not(:disabled){background:#873f50;color:#fff;border-color:#f9e5b1;box-shadow:0 0 0 2px #9c7638,0 0 0 5px #f5d899,0 0 21px 5px #bb8b4580;animation:review-arrival .85s ease-out .3s 1 both;}
#product #workspace button.clinical.review-target:not(:disabled):hover{background:#733143;border-color:#fff0bf;box-shadow:0 0 0 2px #9c7638,0 0 0 5px #f5d899,0 0 24px 6px #bb8b4590;}
@keyframes review-arrival{0%{box-shadow:0 0 0 1px #9c7638,0 0 0 2px #f5d899,0 0 5px #bb8b4544}45%{box-shadow:0 0 0 2px #9c7638,0 0 0 6px #f5d899,0 0 27px 7px #bb8b4588}100%{box-shadow:0 0 0 2px #9c7638,0 0 0 5px #f5d899,0 0 21px 5px #bb8b4580}}
#gallery .trace-slot .tour-note{background:linear-gradient(110deg,#354a30,#213829 48%,#192c22 85%);border-color:#c9d8a0;border-left-color:#e5efb9;box-shadow:0 0 18px #c8de9440,inset 0 0 20px #dcebb614;}
#gallery .tour-note .trace-label,#gallery .tour-note #tour-kind{color:#e5efbc;}
#gallery .tour-note #tour-evidence{color:#f5f7ed;}
#gallery .trace-label:before{width:7px;height:7px;background:#eaf4ca;box-shadow:0 0 9px 3px #c9de9488;}
#gallery .tour-note.trace-arrival{animation:trace-energize .55s ease-out both;}
@keyframes trace-energize{0%{box-shadow:0 0 5px #dcebb625,inset 0 0 10px #dcebb608}50%{box-shadow:0 0 22px #c8de9466,inset 0 0 24px #dcebb61c}100%{box-shadow:0 0 18px #c8de9440,inset 0 0 20px #dcebb614}}
@media(prefers-reduced-motion:reduce){#product #workspace button.clinical.review-target:not(:disabled),#gallery .tour-note.trace-arrival{animation:none!important;transition:none!important}}
/* V4.3 — the conclusion unfolds inside the recorded review. */
#product #closing-invitation{position:relative;min-width:0;margin-top:12px;padding:0 0 3px;color:#344b38;text-align:left;}
#closing-invitation h2{font:400 clamp(23px,1.8vw,28px)/1.25 Georgia,serif;margin:7px 0 3px;color:#344b38;letter-spacing:-.015em;}
#closing-invitation p{font:400 16px/1.5 system-ui,sans-serif;color:#536b54;margin:0 0 13px;}
#closing-invitation .closing-thread{position:relative;height:18px;}
#closing-invitation .closing-thread:before{content:'';position:absolute;inset:8px 0 auto;height:1px;background:#a8b7a1;}
#closing-invitation .closing-thread:after{content:'';position:absolute;left:50%;top:5px;width:7px;height:7px;border-radius:50%;background:#738e6d;box-shadow:0 0 0 5px #8fa88829;transform:translateX(-50%);}
#closing-invitation .closing-actions{display:flex;align-items:center;gap:12px 16px;flex-wrap:wrap;}
#closing-invitation .closing-actions button{min-height:44px;max-width:100%;padding:9px 15px;border-radius:5px;font:600 15px/1.4 system-ui,sans-serif;box-shadow:none;}
#closing-invitation .closing-primary{background:#59705d;color:#fff;border:1px solid #59705d;}
#closing-invitation .closing-primary:hover{background:#405843;border-color:#405843;}
#closing-invitation .closing-secondary{background:transparent;border:0;color:#405843;text-decoration:underline;text-underline-offset:3px;}
#closing-invitation .closing-secondary:hover{background:#dce5d6;}
#closing-invitation button:focus-visible,#closing-invitation h2:focus-visible{outline:2px solid #405843;outline-offset:3px;}
#closing-invitation.arriving{animation:invitation-arrive .45s ease-out both;}
#closing-invitation.arriving .closing-thread:after{animation:closing-signal .8s cubic-bezier(.2,.7,.3,1) both;}
@keyframes invitation-arrive{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@keyframes closing-signal{from{left:0;opacity:0}20%{opacity:1}to{left:50%;opacity:1}}
@media(max-width:480px){#closing-invitation h2{font-size:23px;}#closing-invitation .closing-actions{gap:4px 12px;}}
@media(prefers-reduced-motion:reduce){#closing-invitation.arriving,#closing-invitation.arriving .closing-thread:after{animation:none!important}}


/* Preset chat composer, v3.8. */
#product .chat-compose{margin-top:14px;min-width:0}
#product .chat-welcome{text-align:center;padding:12px 0 14px}
#product .chat-welcome h2{font:600 clamp(20px,2.15vw,29px)/1.25 system-ui,sans-serif;color:#283c2e;margin:0 0 6px}
#product .chat-welcome p{font-size:14px;color:#526255;margin:0}
#product .prompt-chips{display:flex;justify-content:center;flex-wrap:wrap;gap:7px;margin:4px 0 12px}
#product button.prompt-chip{display:inline-flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 7px;min-height:44px;max-width:100%;padding:7px 12px;border:1px solid #b9c8b4;border-radius:24px;background:#f0f3ed;color:#405843;font-size:13px;line-height:1.35;text-align:center;box-shadow:none}
#product button.prompt-chip.safety-chip{border-color:#d4bfc3;background:#f7f0f0;color:#733143}
#product button.prompt-chip[aria-pressed=true]{background:#dce6d7;border-color:#658264;box-shadow:inset 0 0 0 1px #658264}
#product button.prompt-chip.safety-chip[aria-pressed=true]{background:#ecdbdd;border-color:#a36574;box-shadow:inset 0 0 0 1px #a36574}
#product .prompt-recommended{font-size:11px;color:#526b51;font-weight:600}
#product .composer-frame{background:#f3f3ef;border:1px solid #d8dcd3;border-radius:9px;padding:10px;display:grid;gap:8px}
#product .composer-text{display:block;resize:none;width:100%;box-sizing:border-box;min-height:70px;background:#fff;border:1px solid #d4d9cf;border-radius:6px;padding:10px 12px;color:#344b38;font:inherit;font-size:15px;line-height:1.45;cursor:default}
#product .composer-text::placeholder{color:#657366;opacity:1}
#product .composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
#product .composer-hint{font-size:12px;line-height:1.35;color:#526255;flex:1 1 125px}
#product button.composer-send{min-height:44px;padding:8px 15px;font-size:14px;display:inline-flex;gap:7px;align-items:center;justify-content:center;margin:0;flex:none;border-radius:5px}
#product button.composer-send:disabled{background:#e1e5dd;color:#657366;border-color:#cdd4c9;opacity:1;box-shadow:none}
#product .composer-send svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.6}
@media(hover:hover) and (pointer:fine){#product button.prompt-chip:hover{background:#e1eadc;border-color:#81977c}#product button.prompt-chip.safety-chip:hover{background:#efdee1;border-color:#a36574}}
@media(max-width:480px){#product .chat-welcome{padding-top:6px}#product .prompt-chips{gap:6px}#product button.prompt-chip{font-size:13px}#product .composer-text{min-height:86px}}

/* v3.9: readable chat typography and compact, top-aligned composer. */
#product .chat-compose{margin-top:12px}
#product .chat-compose:first-child{margin-top:0}
#product .chat-welcome{padding:0 0 12px}
#product .chat-welcome h2{font-size:clamp(24px,2.25vw,32px);line-height:1.2;margin:0 0 7px}
#product .chat-welcome p{font-size:17px;line-height:1.45}
#product .prompt-chips{gap:8px;margin:0 0 14px}
#product button.prompt-chip{font-size:16px;line-height:1.4;padding:8px 13px;gap:4px 8px}
#product .prompt-recommended{font-size:13px;line-height:1.4}
#product .prompt-safety-label{color:#733143}
#product .composer-frame{grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;padding:10px}
#product .composer-text{grid-column:1;grid-row:1;font-size:17px;min-height:68px;line-height:1.45}
#product .composer-bottom{display:contents}
#product .composer-hint{grid-column:1/-1;grid-row:2;font-size:14px;line-height:1.4}
#product button.composer-send{grid-column:2;grid-row:1;align-self:end;min-height:44px;font-size:16px;padding:9px 16px}
@media(max-width:600px){
 #product .chat-welcome h2{font-size:25px}
 #product .chat-welcome p{font-size:16px}
 #product button.prompt-chip{font-size:16px;min-height:44px;padding:8px 12px}
 #product .composer-text{grid-column:1/-1;min-height:86px;font-size:16px}
 #product .composer-hint{grid-column:1;grid-row:2;align-self:center;font-size:14px}
 #product button.composer-send{grid-column:2;grid-row:2;align-self:center}
}

/* v4.5: quiet finale, no duplicate navigation. */
#gallery.final-complete:not([hidden]){grid-template-rows:minmax(220px,1fr) auto;gap:12px;padding-top:12px}
#gallery.final-complete .gallery-header{display:none}
#gallery.final-complete .gallery-layout{max-width:1200px}
#gallery.final-complete .world{border-color:transparent;background:transparent}
#gallery.final-complete .interwoven-finale{padding:4px 8px 10px;max-width:820px}
#gallery.final-complete .interwoven-finale h1{font-size:clamp(1.85rem,3.5vw,3rem);line-height:1.12;margin:0 0 8px;letter-spacing:-.035em}
#gallery.final-complete .interwoven-finale .fin-subtitle{font-size:clamp(1.0625rem,1.8vw,1.25rem);margin:0 0 14px}
#gallery.final-complete .interwoven-finale .button-row{margin:0;justify-content:center}
#gallery.final-complete .interwoven-finale .button-row button{font-size:1rem;padding:10px 18px}
#gallery.final-complete .final-links{display:flex;justify-content:center;gap:6px 22px;flex-wrap:wrap;margin-top:5px}
#gallery.final-complete .final-links button{color:#c7d6bf;text-decoration:underline;text-underline-offset:4px;padding:8px 4px;font-size:1rem;min-height:44px}
@media(max-width:600px){#gallery.final-complete:not([hidden]){grid-template-rows:minmax(230px,1fr) auto;gap:8px;padding:8px 10px 12px}#gallery.final-complete .interwoven-finale{padding:4px 0 0}#gallery.final-complete .final-links{gap:2px 14px}#gallery.final-complete:not([hidden]){grid-template-rows:auto auto;align-content:center;gap:18px}#gallery.final-complete .gallery-layout{height:auto;aspect-ratio:900/800}#gallery.final-complete .world{height:auto}#gallery.final-complete .world canvas{height:auto;aspect-ratio:900/800}}


#reassign-dialog{max-width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto}#reassign-form{display:grid;gap:14px}#reassign-form h2,#reassign-form p{margin:0}#replacement{width:100%;padding:12px;border:1px solid #899889;border-radius:5px;background:#e8eee4;color:#24352a;min-height:44px;display:grid;gap:5px;margin-top:6px}#reassign-form .transfer-ack input{margin:2px 0 0;padding:0}#reassign-requirement:empty{display:none}#transfer-warning{margin:0}#transfer-warning p{margin:10px 0;line-height:1.55}.transfer-ack{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.5}.transfer-ack input{width:20px;height:20px;flex:none;accent-color:#59705d}#reassign-form button:disabled{opacity:.5;cursor:not-allowed}#reassign-form button{min-height:44px}#reassign-requirement{color:#784147}#assignment-result{border-left:3px solid #59705d;background:#edf3e9;color:#294332;scroll-margin:16px}#assignment-result:focus{outline:2px solid #59705d;outline-offset:3px}.assignment-changed{animation:assignmentGlow 1.8s ease-out}@keyframes assignmentGlow{0%,30%{box-shadow:0 0 0 2px #8fae81,0 0 18px #9ab98b88}100%{box-shadow:none}}@media(prefers-reduced-motion:reduce){.assignment-changed{animation:none;outline:2px solid #59705d;outline-offset:2px}}


#reassign-dialog{width:min(390px,calc(100vw - 32px));padding:20px 22px;border-radius:8px;background:#f8f8f4;box-shadow:0 12px 48px #0b1e1733}#reassign-form{gap:12px}#reassign-form h2{font:650 20px/1.3 system-ui,sans-serif;letter-spacing:-.025em;color:#25382b}#reassign-form .transfer-patient{font-size:13px;color:#536758;margin-top:-7px}.transfer-summary{margin:0;border-top:1px solid #d8ded3;border-bottom:1px solid #d8ded3;padding:4px 0}.transfer-summary>div{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:baseline;gap:8px;padding:7px 0;font-size:14px}.transfer-summary dt{color:#536758}.transfer-summary dd{margin:0;font-weight:550}.transfer-summary>div:last-child dd{color:#38543e;font-weight:650}#reassign-form .button-row{justify-content:flex-end;gap:8px;margin-top:2px}#reassign-form .button-row button{margin:0;padding:10px 16px;font-size:14px;box-shadow:none}#confirm-reassignment{background:#59705d;color:white;border:1px solid transparent;transition:background .16s,box-shadow .16s}#confirm-reassignment:hover{background:#50684f;box-shadow:0 0 0 1px #d9e7bb,0 0 10px #9db38a66!important}#cancel-reassignment{background:transparent;border:1px solid #aab7a8;color:#324b37}#transfer-warning{background:#f9ece9;border:1px solid #d6aaa9;border-radius:5px;padding:12px;font-size:13px;line-height:1.5}#transfer-warning p{margin:6px 0 10px}#transfer-warning .transfer-ack{font-size:13px}#reassign-form .transfer-ack input{min-width:20px;min-height:20px}#reassign-requirement{font-size:12px}@media(max-width:360px){#reassign-dialog{padding:16px}.transfer-summary>div{grid-template-columns:65px minmax(0,1fr)}}


/* Explicit simulated clinician identity switch, not automatic reassignment login. */
.therapist-switch{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding-top:12px;border-top:1px solid var(--line)}.therapist-switch .text-button{min-height:44px;text-align:left}

/* Persistent, compact safety history; pending count is not the history. */
#product .safety-history-heading{display:flex;align-items:baseline;justify-content:space-between;gap:4px 12px;flex-wrap:wrap;margin:12px 0 8px;color:#405843;font-size:16px;line-height:1.5}
#product .safety-history-heading span{font-size:15px;color:#536758}

#product .review-finale-action{margin-top:8px}


/* Independent ambient light: original trace arrival and glow stay intact. */
@property --trace-orbit-angle { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
#gallery .trace-orbit { position:absolute; inset:-2px; border-radius:inherit; pointer-events:none; opacity:0; transition:opacity .35s ease; filter:blur(2px); }
#gallery .trace-orbit::before, #gallery .trace-orbit::after { content:''; position:absolute; inset:0; border-radius:inherit; padding:2px; background:conic-gradient(from var(--trace-orbit-angle), transparent 0deg, transparent 140deg, color-mix(in srgb,var(--trace-orbit-color,#e4efb8) 15%,transparent) 195deg, color-mix(in srgb,var(--trace-orbit-color,#e4efb8) 85%,transparent) 270deg, color-mix(in srgb,var(--trace-orbit-color,#e4efb8) 15%,transparent) 345deg,transparent 360deg); mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); mask-composite:exclude; }
#gallery .trace-orbit::after { inset:-2px; padding:5px; opacity:.45; }
#gallery .tour-note.orbit-active .trace-orbit { opacity:.9; animation:trace-orbit 10s linear infinite; }
@keyframes trace-orbit { to { --trace-orbit-angle:360deg; } }
@media(prefers-reduced-motion:reduce) { #gallery .trace-orbit { display:none!important; } }


/* v1.3 — compact editorial navigation and about page. Gallery/entrance styles untouched. */
header .brand{font-size:32px;letter-spacing:-1.4px;white-space:nowrap}header nav{gap:clamp(12px,2.2vw,30px)}header nav button{position:relative;padding:8px 2px;font-size:16px}header nav button[aria-current="page"]::after{content:"";position:absolute;bottom:3px;left:2px;right:2px;height:1px;background:#d0d9b7}
#product,#case{padding-top:clamp(20px,3vw,40px)}.project-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:24px;max-width:1300px}.project-identity{display:flex;align-items:center;gap:14px;min-width:0}.project-number{font:normal 32px/1 Georgia,serif;color:#697d64;border-right:1px solid var(--line);padding-right:14px}.project-title{font:normal clamp(23px,2.6vw,30px)/1.2 Georgia,serif;letter-spacing:-.025em;margin:0}.project-discipline{font-size:16px;color:#536758;margin:3px 0 0}.project-nav{gap:20px;align-items:center}.project-nav button{font-size:16px;color:#3f5b46;padding:8px 0;border-bottom:2px solid transparent}.project-nav button[aria-current="page"]{border-bottom-color:#59705d;font-weight:600}
.about-content,.work-index{max-width:1100px;margin-inline:auto}.about-content .eyebrow,.work-index .eyebrow{font-size:14px;letter-spacing:.14em;color:#536758;opacity:1}.about-content h1,.work-index>h1{font:normal clamp(34px,4.2vw,44px)/1.12 Georgia,serif;letter-spacing:-.035em;margin:8px 0 10px}.about-content .lede{font-size:18px;margin:0 0 28px}.about-content h2{font-size:clamp(26px,3vw,34px);line-height:1.2;margin:0 0 14px}.about-content p:not(.eyebrow){font-size:18px;line-height:1.7;max-width:850px}.about-project,.connect-section{border-top:1px solid var(--line);padding-top:26px;margin-top:30px}.about-link{background:none;color:#345740;padding:4px 0;text-decoration:underline;text-underline-offset:4px;font-size:16px;text-align:left}.connect-actions,.work-actions{display:flex;align-items:center;gap:14px 24px;flex-wrap:wrap}.connect-actions a{font-size:16px;color:#345740;text-underline-offset:4px;padding:8px 0}.connect-actions button,.work-actions button{font-size:16px;margin:0}.connect-section #contact-message:empty{display:none}.work-entry{display:grid;grid-template-columns:minmax(170px,250px) minmax(0,1fr);gap:clamp(22px,4vw,52px);align-items:center;border-top:1px solid var(--line);padding-top:24px;margin-top:24px}.work-entry-mark{background:#314637;border-radius:5px;display:grid;place-items:center;padding:18px;color:#aebf9f}.work-entry-mark svg{width:100%;max-width:180px;height:auto}.work-entry h2{font-size:clamp(27px,3.6vw,38px);margin:8px 0 12px}.work-entry p:not(.eyebrow){font-size:18px;line-height:1.65;max-width:650px}.therapist-switch-action{background:transparent;border:1px solid #a4b5a0;border-radius:5px;padding:8px 13px;color:#36533d;font-size:16px;font-weight:600}.therapist-switch-action:hover{background:#dce7d7;border-color:#6f8768}.therapist-switch{flex-wrap:wrap;gap:8px}.therapist-switch .small{font-size:16px}
@media(max-width:600px){header{min-height:64px;padding:10px 16px;gap:6px 12px;flex-wrap:wrap}header .brand{font-size:27px}header nav{gap:12px}header nav button{font-size:15px}.project-bar{gap:9px;margin-bottom:18px;padding-bottom:10px}.project-number{font-size:27px}.project-nav{gap:18px}.project-title{font-size:24px}.project-discipline{font-size:16px}.work-entry{grid-template-columns:1fr;gap:18px}.work-entry-mark{max-width:100%;padding:12px}.work-entry-mark svg{max-width:120px}.about-content p:not(.eyebrow){font-size:17px}.about-content .lede{margin-bottom:22px}.connect-actions{gap:12px 22px}.about-project,.connect-section{margin-top:24px;padding-top:22px}}

/* v1.4: compact inline professional contact form. */
.contact-details{max-width:680px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
#contact-form .contact-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px}
#contact-form label{display:block;font-size:16px;font-weight:600;color:#344d38;margin-bottom:7px}
#contact-form input,#contact-form textarea{box-sizing:border-box;width:100%;min-width:0;font:inherit;font-size:17px;line-height:1.5;background:#f8f8f4;color:#293e30;border:1px solid #aab7a8;border-radius:4px;padding:10px 12px;min-height:44px}
#contact-form textarea{resize:vertical;min-height:112px;max-height:400px}
#contact-form input:focus,#contact-form textarea:focus{outline:2px solid #59705d;outline-offset:2px}
#contact-form .contact-help,.about-content #contact-message{font-size:16px;line-height:1.5;margin:10px 0;color:#435548}
#contact-form .contact-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
#contact-send{min-height:44px;margin:8px 0 0;font-size:16px}
#contact-send:disabled{opacity:.65;cursor:wait}
.about-content #contact-message:empty{display:none}
@media(max-width:600px){#contact-form .contact-fields{grid-template-columns:1fr;gap:12px}}

/* Fiah Studio — editorial pages only; clinical UI, entrance and gallery untouched. */
header .brand{font-size:clamp(25px,2.7vw,34px);letter-spacing:-.045em;font-weight:400}
.studio-editorial{max-width:1180px;margin-inline:auto;min-width:0}
.studio-editorial h1{font:400 clamp(32px,4.1vw,48px)/1.12 Georgia,serif;letter-spacing:-.035em;margin:0 0 14px;overflow-wrap:break-word}
.studio-editorial h2{font:400 clamp(25px,2.7vw,33px)/1.2 Georgia,serif;letter-spacing:-.025em;margin:0 0 14px}
.studio-editorial p:not(.studio-kicker):not(.studio-credit){font-size:17px;line-height:1.65;color:#405548}
.studio-kicker{font-size:15px;line-height:1.4;color:#536b55;font-weight:550;margin:0 0 14px;letter-spacing:.035em}
.studio-editorial .studio-lede{font-size:19px!important;line-height:1.5!important;max-width:600px}
.studio-credit{font-size:16px;color:#47634d;border-left:2px solid #8a9d80;padding-left:12px;margin:20px 0 0;line-height:1.5}
.case-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:clamp(24px,5vw,70px);align-items:center;margin:24px 0 36px}
.studio-figure{margin:0;min-width:0}.studio-figure img{display:block;width:100%;height:auto;border-radius:3px;background:#13231a}.studio-figure figcaption{font-size:15px;color:#536758;line-height:1.4;margin-top:10px}
.studio-story,.studio-system,.studio-about-intro,.studio-ownership{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(24px,5vw,64px);border-top:1px solid var(--line);padding:26px 0;margin-top:18px}
.studio-story article{min-width:0}.studio-system{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);align-items:start}.studio-system .primary{margin:4px 0 0;font-size:16px}.studio-layers{border-top:1px solid var(--line)}.studio-layers details,.studio-notes details{border-bottom:1px solid var(--line);padding:0;margin:0}.studio-layers summary,.studio-notes summary{cursor:pointer;color:#294331;font-size:17px;min-height:48px;padding:12px 0;font-weight:550}.studio-layers summary span{font-family:Georgia,serif;color:#637d67;font-weight:400;margin-right:12px}.studio-layers details p,.studio-notes details p{margin:0 0 14px}.studio-notes{border-top:1px solid var(--line);margin-top:14px}.studio-notes details p{max-width:850px}
.studio-work-intro{max-width:800px;margin-bottom:28px}.studio-work-entry{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(24px,4vw,60px);padding-top:28px;align-items:center}.studio-work-entry .studio-credit{margin-bottom:20px}.studio-about-intro{border-top:0;padding-top:0;align-items:start;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}.studio-about-identity .lede{font-size:17px!important;line-height:1.55;margin-bottom:12px}.studio-signature{max-width:170px;color:#7d9878;margin-top:20px}.studio-signature svg{width:100%;height:auto}.studio-ownership{align-items:start}.studio-editorial .connect-section{margin-top:14px}.studio-editorial .connect-section h2{font-size:clamp(25px,3vw,34px)}
@media(max-width:700px){.case-intro,.studio-story,.studio-system,.studio-work-entry,.studio-about-intro,.studio-ownership{grid-template-columns:1fr;gap:20px}.case-intro{margin-top:12px;margin-bottom:26px}.studio-signature{display:none}.studio-story,.studio-system,.studio-ownership{padding:22px 0}.studio-editorial h1{font-size:34px}.studio-editorial h2{font-size:27px}.studio-editorial .studio-lede{font-size:18px!important}}

/* Case-study architecture: scoped to expanded technical notes. */
.architecture-content{max-width:850px;padding:12px 0 18px}.architecture-content h3{font-size:19px;font-weight:600;color:#294331;margin:26px 0 8px;line-height:1.35}.rag-path{max-width:660px;margin:24px 0 10px;display:grid;justify-items:center;gap:0}.rag-node{width:100%;box-sizing:border-box;padding:15px 18px;border:1px solid #a9b9a6;background:#e7ebe2;color:#294331;border-radius:4px;display:grid;gap:5px;text-align:center;line-height:1.4}.rag-node strong{font-size:17px;font-weight:600}.rag-node span{font-size:15px;color:#405548}.rag-entry{max-width:340px}.rag-connector{height:20px;width:1px;background:#849a81}.rag-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;width:100%}.rag-knowledge{background:#dceae4;border-color:#92b1a3}.rag-generation{background:#3c5745;color:#fff}.rag-generation span{color:#f0f5ea}.studio-editorial .architecture-caption{font-size:15px!important;line-height:1.45!important;margin-bottom:24px!important}.architecture-stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px;margin:12px 0 24px}.architecture-stack div{min-width:0;border-top:1px solid var(--line);padding:12px 0 0}.architecture-stack dt{font-size:15px;color:#536758}.architecture-stack dd{font-size:17px;color:#294331;margin:4px 0 0;line-height:1.45;overflow-wrap:anywhere}@media(max-width:500px){.rag-split,.architecture-stack{grid-template-columns:1fr;gap:10px}.rag-node{padding:12px}.architecture-content{padding-inline:0}}

/* v1.8: clear, warm contact confirmation; original form and buttons preserved. */
#contact-form[hidden],#contact-success[hidden]{display:none!important}
.contact-success{text-align:center;padding:clamp(28px,5vw,48px) 18px;background:#edf0e5;border:1px solid #c7d4c1;border-radius:10px;animation:contact-arrive .32s ease-out both}
.contact-check{display:grid;place-items:center;width:70px;height:70px;margin:0 auto 18px;background:#dce7d8;border-radius:50%;color:#304d38}
.contact-check svg{width:48px;height:48px}
.contact-check path{stroke-dasharray:1;stroke-dashoffset:0;animation:contact-check-draw .48s .08s ease-out both}
#contact-success-title{font:normal clamp(27px,4vw,34px)/1.2 Georgia,serif;letter-spacing:-.025em;color:#2e4435;margin:0 0 12px}
.about-content .contact-success p{font-size:17px;line-height:1.65;color:#354a3b;max-width:465px;margin:0 auto 20px}
#contact-again{font-weight:600;text-align:center;padding:10px 8px}
#contact-send.is-sending{display:inline-flex;align-items:center;gap:9px}
#contact-send.is-sending::before{content:'';width:15px;height:15px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:contact-spin .8s linear infinite}
@keyframes contact-arrive{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes contact-check-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes contact-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.contact-success,.contact-check path,#contact-send.is-sending::before{animation:none}}
