/* Observation, reading and action occupy separate rows. No text is cut into the image. */
.agent-home .thread-radar{background:transparent;border:0;box-shadow:none;overflow:visible;padding-inline:12px}
.obs-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:30px;color:#c9c6b9;font:12px/1.5 var(--f-mono)}
.obs-frame{--obs-height:320px;position:relative;display:block;width:100%;height:var(--obs-height);padding:0;border:0;border-radius:2px;overflow:hidden;background:#0d110e;isolation:isolate;touch-action:manipulation;cursor:pointer}
#obs-frame:focus-visible{outline:2px solid #e6d1a8;outline-offset:3px}
#obs-image{position:absolute;top:50%;left:50%;width:min(100%,calc(var(--obs-height) * var(--obs-ratio)));aspect-ratio:var(--obs-ratio);transform:translate(-50%,-50%);background-size:200% 100%;background-repeat:no-repeat;pointer-events:none}
.obs-effect{position:absolute;inset:0;pointer-events:none}
.obs-frame[data-mode=cctv] #obs-image{filter:saturate(.7)}
.obs-frame::after{content:'';position:absolute;inset:0;pointer-events:none;z-index:1;background:radial-gradient(ellipse 75% 70% at 50% 48%,transparent 46%,#080a0733 75%,#080a07b8 100%);box-shadow:inset 0 0 20px #080a0777}
.obs-status{display:flex;align-items:baseline;justify-content:space-between;gap:12px;min-height:24px;padding:8px 0 0;color:#c9c6b9;font:13px/1.6 var(--f-body)}
.obs-status [hidden]{display:none}.obs-status:has(#obs-ready[hidden]):has(#obs-first-hint[hidden]):has(#obs-timer:empty){display:none}
#obs-timer{margin-left:auto;white-space:nowrap;font:12px/1.6 var(--f-mono);color:#c5c1b5}
#obs-atmosphere{margin:8px 0 12px;color:#bfb6a4;font:14px/1.8 var(--f-body);overflow-wrap:anywhere}
#obs-feedback{margin:4px 0 12px;color:#d6cebb;font:13px/1.7 var(--f-body);overflow-wrap:anywhere}#obs-feedback:empty{display:none}
.obs-secondary{display:flex;gap:8px;margin:8px 0 4px}.obs-secondary button{flex:1;min-width:0;min-height:48px;padding:10px 6px;color:#ded6c2;border:1px solid #5c5749;border-radius:2px;background:#161a14;font:14px/1.5 var(--f-body);white-space:nowrap}.obs-secondary button[hidden]{display:none}
.obs-frame[data-closed=true] #obs-image,.obs-frame[data-closed=true] #obs-site-overlay,.obs-frame[data-closed=true] .obs-effect{visibility:hidden}
.obs-frame[data-closed=true]::before,.obs-frame[data-closed=true]::after{display:none}
#obs-closed{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:#d4cdbd;background:#0c0f0b;font:16px/1.8 var(--f-body);padding:24px;text-align:center}
#obs-closed[hidden]{display:none}#obs-closed small{font-size:13px;max-width:24em}
.watch-target-regions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:20px 0}.watch-target-regions button{min-height:56px;border:1px solid #8b826a;background:#232920;color:#f1e8d1;font:15px var(--f-body)}
.watch-target-copy{min-height:3.6em;font:16px/1.8 var(--f-body);color:#eee5cd}
.watch-quiet-setting{display:flex;align-items:center;gap:10px;min-height:48px;margin:8px 0 16px;color:#e9dfca;font:14px/1.6 var(--f-body)}
@media(max-height:500px){body:has(.agent-home:not([hidden])) main{padding-top:4px}.agent-home{gap:2px}.obs-topline{min-height:24px}}

/* Contact uses a small physical jolt and one dark pulse, never a camera-noise grid. */
.obs-frame::before{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;opacity:0;transition:opacity 100ms ease-out;background:#0003}
.obs-frame.obs-touched::before{opacity:1;transition:none}
.obs-frame.obs-strike::before{background:radial-gradient(circle 75px at var(--touch-x) var(--touch-y),#0009,transparent 100%);box-shadow:none}
.obs-frame[data-quiet=true]::before{background:none;transition:none;box-shadow:inset 0 0 0 2px #a5ac9470}
@media(prefers-reduced-motion:reduce){.obs-frame::before{background:none!important;transition:none;box-shadow:inset 0 0 0 2px #a5ac9470}}

.agent-home > .home-tabs{grid-row:1}.agent-home > .home-pane{grid-row:2}
.agent-home > .agent-footer{grid-row:3;position:relative;inset:auto;transform:none;width:100%;margin-top:4px}
body:has(.agent-home:not([hidden])) main{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}
.home-dispatch{color:#cbbfa8;font-size:13px}.home-dispatch>summary{min-height:44px;padding:12px 0;cursor:pointer}.home-dispatch .desk-event{margin-top:8px}
.watch-lab{margin:8px 0 22px;color:#f0e6d0}.watch-lab-heading{display:flex;align-items:center;justify-content:space-between}.watch-lab-heading h2{font-size:19px;margin:8px 0}
.watch-mode,.watch-upgrades article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #6d62454d}
.watch-mode>div,.watch-upgrades article>div{min-width:0}.watch-mode b,.watch-upgrades b{display:block;font-size:16px}.watch-mode small,.watch-upgrades small{display:block;font-size:14px;color:#d5cdbd;margin-top:4px}
.watch-mode button,.watch-upgrades button{flex:0 0 auto;min-width:90px;min-height:44px;padding:8px;background:#29392d;border:0;border-radius:4px;color:#f6ead1;font:700 14px/1.5 var(--f-body)}
.watch-mode button:disabled,.watch-upgrades button:disabled{opacity:1;background:#24241f;color:#b6b3a6}.watch-mode.equipped button{color:#e9d392;background:transparent}
.watch-upgrades>summary{display:flex;justify-content:space-between;align-items:center;min-height:48px;padding:12px 0;cursor:pointer}
.lab-contradiction{margin:22px 0 0;border:1px solid #8d7f5b66;background:linear-gradient(145deg,#111814,#171a17);box-shadow:inset 0 0 24px #0008}.lab-contradiction>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:12px 14px;cursor:pointer}.lab-contradiction>summary span{display:grid;gap:2px;min-width:0}.lab-contradiction>summary small{color:#bcb094;font:12px/1.4 var(--f-mono);letter-spacing:.08em}.lab-contradiction>summary b{font-size:16px}.lab-contradiction>summary em{flex:0 0 auto;color:#e0c98d;font:700 14px/1.4 var(--f-body);font-style:normal;white-space:nowrap}
.lab-plan{position:relative;height:112px;margin:2px 14px 16px;border:1px solid #91886d55;background:repeating-linear-gradient(0deg,transparent 0 17px,#99907413 18px),repeating-linear-gradient(90deg,transparent 0 17px,#99907413 18px);overflow:hidden}.lab-plan:before,.lab-plan:after{content:"";position:absolute;border:1px solid #b5a87b99}.lab-plan:before{inset:18px 27% 19px 12%}.lab-plan:after{inset:27px 12% 10px 34%;border-style:dashed}.lab-plan i{position:absolute;z-index:1;background:#d6c98b88}.lab-plan i:first-child{width:1px;inset:7px auto 7px 50%}.lab-plan i:nth-child(2){height:1px;inset:55% 7px auto}.lab-plan span{position:absolute;z-index:2;right:8px;top:6px;color:#c9bc8c;font:10px/1 var(--f-mono)}
.lab-contradiction-rows{padding:0 14px 15px}.lab-contradiction-rows article{padding:4px 0 4px 12px;border-left:2px solid #8c7b50}.lab-contradiction-rows article+article{margin-top:15px}.lab-contradiction-rows small,.lab-contradiction-rows b{display:block}.lab-contradiction-rows small{color:#c5b99e;font:14px/1.5 var(--f-body);letter-spacing:.04em}.lab-contradiction-rows b{margin-top:2px;font-size:16px}.lab-contradiction-rows p{margin:5px 0 0;color:#e1d8c6;font-size:14px;line-height:1.75}
/* The laboratory remains in a scrollable page, while the fixed bottom nav
   stays above it. Scroll-to-action must leave room for the nav on short phones;
   otherwise unlocked upgrades are visually present but impossible to tap. */
html:has(.lab-scene:not([hidden])){scroll-padding-bottom:calc(var(--nav-h) + 28px + env(safe-area-inset-bottom,0px))}
.lab-scene .watch-upgrades button{scroll-margin-block:calc(var(--nav-h) + 24px + env(safe-area-inset-bottom,0px))}
body:has(.lab-scene:not([hidden])) main{padding-bottom:calc(var(--nav-h) + 104px + env(safe-area-inset-bottom,0px))}
.watch-upgrades>summary span{font-size:12px;color:#d3c4a2}
.watch-note{font-size:12px;line-height:1.7;color:#c7bfae}.watch-settings h2{font-size:20px}.watch-settings p,.watch-settings li{font-size:14px;line-height:1.8}.watch-settings>label,.watch-settings summary{display:block;padding:12px 0;min-height:44px}.watch-settings button{min-height:44px}.watch-settings ul{padding-left:20px}
@media(max-height:500px){.obs-frame{--obs-height:300px}}

.watch-album-count{display:flex;justify-content:space-between;padding:12px 0;color:#f0e3c8}.watch-album-group{margin:18px 0}.watch-album-group h3{font-size:16px;display:flex;justify-content:space-between}.watch-album-group h3 small{font-size:12px;color:#c5b99e}
.watch-album-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.watch-album-grid button{min-height:94px;padding:12px;text-align:left;border:0;border-radius:0;background:#292b22;color:#e9dbc0;display:grid;gap:4px;overflow-wrap:anywhere}.watch-album-grid b{font:700 13px var(--f-mono);color:#e7bd68}.watch-album-grid span{font-size:14px;line-height:1.5}.watch-album-grid small{font-size:12px}.watch-album-grid button:disabled{opacity:1;color:#a99e89;background:#1b1c18}.watch-album-grid button:disabled b{color:#aba492}
.watch-record-image{width:100%;background-size:200% 100%;background-repeat:no-repeat}.watch-record-caption{display:grid;gap:6px;color:#efdfc2;font-size:14px}.archive-scene .section-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
.watch-set-reward{scroll-margin-block:90px;display:block;width:100%;min-height:44px;margin-top:10px;padding:12px;border:1px solid #9c8655;background:#343825;color:#ffedc4;font:700 14px/1.6 var(--f-body);overflow-wrap:anywhere}
.watch-set-reward:disabled{opacity:1;color:#c5baa1;background:transparent;border-color:#625a48}
.watch-compare{margin-top:12px}.watch-compare p{color:#efdfc2;font-size:14px;line-height:1.7}.watch-compare button{width:100%;min-height:44px;white-space:normal}

.watch-research{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;color:#d7cbb1;font-size:14px}.watch-research button{min-height:44px;min-width:92px;border:1px solid #9c8655;background:#29392d;color:#fff0cf;font:700 14px var(--f-body);padding:10px;scroll-margin-block:90px}.watch-research button:disabled{background:transparent;color:#bdb39c;border-color:#625a48;opacity:1}.watch-research-confirm h2{font-size:20px}.watch-research-confirm p{font-size:15px;line-height:1.8;color:#eddfc3}.watch-research-confirm button{display:block;min-height:48px;width:100%;margin:12px 0;white-space:normal}


#watch-veil{position:fixed;inset:0;z-index:25;pointer-events:none;opacity:0;box-shadow:inset 0 0 28px #40150c55;background:radial-gradient(ellipse at 0 15%,#45201b38,transparent 18%),radial-gradient(ellipse at 100% 85%,#211f1c88,transparent 12%)}
body[data-watch-mind='1'] .obs-frame{box-shadow:0 0 15px #562c1940}
body[data-watch-mind='2'] #watch-veil{opacity:.55}
body[data-watch-mind='3'] #watch-veil{opacity:1;box-shadow:inset 0 0 35px #58211988}
body[data-watch-mind='2'] .top,body[data-watch-mind='3'] .top{border-bottom-color:#715340}
body[data-watch-mind='3'] .nav-in{box-shadow:0 -8px 28px #56291c55}
.obs-frame[data-seep='1'] .obs-effect{box-shadow:inset 0 0 35px #392b1999}
.obs-frame[data-seep='2'] .obs-effect{box-shadow:inset 0 0 65px #39251baa}
.obs-frame[data-seep='3'] .obs-effect{box-shadow:inset 0 0 90px #39231abb}
body.watch-mind-quiet #watch-veil{display:none}
@media(prefers-reduced-motion:reduce){#watch-veil{display:none}}

/* Colleagues are people, not a stack of reward buttons. */
.watch-room-note{color:#c7beaa;font:14px/1.9 var(--f-body);margin:4px 0 18px}
.watch-people{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}
.watch-person{padding:0 0 14px;overflow:hidden;text-align:left;background:#141711;border:1px solid #575447;border-radius:2px;color:#e6dcc6;font-family:var(--f-body);cursor:pointer}
.watch-person img{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:cover}.watch-person b,.watch-person small{display:block;margin:8px 10px 0}.watch-person b{font-size:19px;font-weight:500}.watch-person small{font-size:12px;line-height:1.5;color:#c1b8a5}
.watch-speaker{display:flex;align-items:center;gap:20px;padding-bottom:18px;border-bottom:1px solid #595345}.watch-speaker img{width:90px;height:120px;object-fit:cover;border-radius:2px}.watch-speaker>div{min-width:0}.watch-speaker small{font:14px/1.6 var(--f-body);color:#d9c9ab}.watch-speaker h2{margin:4px 0 10px;font:500 25px/1.4 var(--f-body);letter-spacing:.15em}.watch-speaker p{margin:0;color:#d5cab6;font:14px/1.7 var(--f-body)}
.watch-conversation blockquote{margin:22px 0 26px;padding:0;border:0;min-height:6em;color:#eee3cf;font:16px/2 var(--f-body);overflow-wrap:anywhere}
.watch-topics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.watch-choice{min-height:48px;padding:10px 8px;border:1px solid #70664f;background:#22271e;border-radius:2px;color:#e5dbc6;font:14px/1.6 var(--f-body);cursor:pointer}
.watch-exits{display:flex;gap:12px;margin-top:14px}.watch-exits button{flex:1;min-width:0;min-height:48px;font:13px/1.5 var(--f-body);white-space:normal}
@media(max-width:350px){.watch-people{gap:7px}.watch-person b,.watch-person small{margin-inline:7px}.watch-person small{font-size:11px}.watch-speaker{gap:14px}.watch-conversation blockquote{font-size:15px}}
/* A quiet secondary route; the red raster frame used to compete with the scene. */
.agent-home #agent-primary{min-height:50px;border:1px solid #76634b;border-image:none;border-radius:2px;background:#30271e;color:#e5d5b8;padding:12px 18px;box-shadow:none;font:500 15px/1.6 var(--f-body)}

/* Conversation is a reading page. Choices, replies and navigation have separate places. */
.colleague-scene{max-width:640px;margin:0 auto;padding:8px 0 16px}
.colleague-scene h1{margin:6px 0 12px;font:500 23px/1.4 var(--f-body);letter-spacing:.08em}
.colleague-scene .watch-people{grid-template-columns:1fr;gap:12px;margin:18px 0}
.colleague-scene .watch-person{display:grid;grid-template-columns:74px minmax(0,1fr);gap:14px;padding:12px;align-items:center}
.colleague-scene .watch-person img{width:74px;height:100px;object-fit:cover}
.colleague-scene .watch-person b,.colleague-scene .watch-person small{margin:0 0 5px}
.watch-person-description{display:block;font:14px/1.7 var(--f-body);color:#d7cdb9}
.watch-person-action{display:block;margin-top:7px;font:14px/1.5 var(--f-body);color:#f0e4cc}
.colleague-scene .watch-speaker{gap:16px;padding:12px 0}
.colleague-scene .watch-speaker img{width:72px;height:96px}
.colleague-scene .watch-speaker h1{font-size:24px;margin:3px 0 6px}
.colleague-scene .watch-conversation blockquote{min-height:0;margin:16px 0 24px;font:16px/1.95 var(--f-body)}
.watch-conversation-cue{color:#d4c5aa;font:14px/1.6 var(--f-body);margin:12px 0}
.watch-selected-topic,.watch-action-label{font:14px/1.6 var(--f-body);color:#dfcfb1;margin:12px 0 8px}
.watch-selected-topic{border-left:2px solid #75654b;padding-left:10px}
.watch-introduction{padding:12px;background:#191b16;font:14px/1.8 var(--f-body);color:#d8ceb9}
.watch-topic-selection>.watch-choice{width:100%;margin:0 0 8px}
.watch-next,.watch-leave{width:100%;min-height:46px;white-space:normal}
.watch-conversation-footer{border-top:1px solid #4c483c;margin-top:20px;padding-top:14px}
.colleague-scene .investigation-return{width:100%;min-height:48px;margin:0 0 10px;background:#292a20;color:#f0e4cc}
.colleague-scene button:focus-visible{outline:2px solid #d8c28e;outline-offset:3px}
@media(max-width:350px){.colleague-scene .watch-person{padding:10px;gap:12px}.colleague-scene .watch-conversation blockquote{font-size:15px}}

.colleague-scene .watch-conversation{display:flex;flex-direction:column;min-height:calc(100dvh - 176px)}
.colleague-scene .watch-dialogue-actions{margin-top:auto}
.colleague-scene .watch-conversation>.menu-back{align-self:flex-start;min-height:44px}

.colleague-scene button,.colleague-scene blockquote{scroll-margin-block:90px}

.colleague-scene .watch-person{padding:10px}
.colleague-scene .watch-person b{font:500 19px/1.3 var(--f-body);margin-bottom:3px}
.colleague-scene .watch-person small{font:14px/1.5 var(--f-body);margin-bottom:3px;color:#d6cab5}
.colleague-scene .watch-person-description{font:14px/1.6 var(--f-body)}
.colleague-scene .watch-room-note{font:14px/1.7 var(--f-body);margin:10px 0}

/* An active anomaly is visible immediately; strain deepens the edge bleed.
   Only the image scales, so native-image hit coordinates remain valid. */
.obs-frame[data-anomaly]:not([data-anomaly='0']):not([data-quiet='true']){--anomaly-bleed:.45;outline:1px solid #98543f;outline-offset:-1px}
.obs-frame[data-anomaly='2']{--anomaly-bleed:.7!important}
.obs-frame[data-anomaly='3']{--anomaly-bleed:.95!important}
.obs-frame[data-anomaly]:not([data-anomaly='0']):not([data-quiet='true']) #obs-image{filter:sepia(.28) hue-rotate(325deg) saturate(.8) contrast(1.16);animation:obs-anomaly-warp 6s ease-in-out infinite alternate}
.obs-frame[data-anomaly]:not([data-anomaly='0']):not([data-quiet='true']) #obs-image::after{content:'';position:absolute;inset:0;background-image:inherit;background-size:inherit;background-position:inherit;mask-image:linear-gradient(90deg,#000,transparent 28%,transparent 72%,#000);filter:blur(1.8px) hue-rotate(155deg);transform:translateX(4px);opacity:.65;pointer-events:none}
.obs-frame[data-anomaly]:not([data-anomaly='0']):not([data-quiet='true']) .obs-effect::after{content:'';position:absolute;inset:-12px;pointer-events:none;background:radial-gradient(ellipse at 0 25%,#a43c2abb,transparent 36%),radial-gradient(ellipse at 100% 75%,#296e7188,transparent 32%);filter:blur(12px);opacity:var(--anomaly-bleed);animation:obs-edge-seep 8s ease-in-out infinite alternate}
@keyframes obs-anomaly-warp{from{transform:translate(-50%,-50%) scale(1,1)}to{transform:translate(-50%,-50%) scale(.984,.995)}}
@keyframes obs-edge-seep{from{transform:scale(1,.93)}to{transform:scale(1,1.08)}}
@media(prefers-reduced-motion:reduce){.obs-frame #obs-image,.obs-frame .obs-effect::after{animation:none!important}}

/* A stable monitor and control row across every source and observation state. */
.agent-home .thread-radar{display:grid;grid-template-columns:minmax(0,1fr);--obs-status-row:44px;--obs-copy-row:64px;--obs-control-row:56px;grid-template-rows:30px auto minmax(var(--obs-status-row),auto) var(--obs-copy-row) var(--obs-control-row)}
.agent-home .obs-topline{grid-area:1/1;margin:0;min-height:30px}
.agent-home .obs-frame{grid-area:2/1}
.agent-home .obs-status,.agent-home .obs-status:has(#obs-ready[hidden]):has(#obs-first-hint[hidden]):has(#obs-timer:empty){display:flex;grid-area:3/1;min-height:var(--obs-status-row);padding:0;align-items:center}
.agent-home #obs-atmosphere,.agent-home #obs-feedback{grid-area:4/1;margin:0;align-self:center;max-height:var(--obs-copy-row);overflow:auto;font-size:14px;line-height:1.5}
.agent-home .obs-secondary{grid-area:5/1;align-self:end;height:48px;margin:0}
.watch-mode>span{flex:0 0 auto;font-size:12px;color:#d5cdbd}

@media(max-height:640px) and (orientation:portrait){.agent-home .thread-radar{--obs-copy-row:42px;--obs-control-row:48px}}

/* Subtle source conditions reuse the original sprite and image-space targets. */
.obs-frame[data-condition="1"] #obs-image{filter:saturate(.58) sepia(.10) brightness(.88)}
.obs-frame[data-condition="2"] #obs-image{filter:saturate(.65) contrast(1.14) brightness(.72)}
body.watch-mind-quiet .obs-frame[data-condition] #obs-image{filter:none}
@media(prefers-reduced-motion:reduce){.obs-frame[data-condition] #obs-image{transition:none}}

/* A barely perceptible duplicated edge on anomalous late-frame footage.
   Cosmetic only: no target overlays, no clickable element and no flashing. */
.obs-frame[data-trace="1"] #obs-image::after{
 content:"";position:absolute;inset:0;pointer-events:none;
 background:linear-gradient(104deg,transparent 23%,rgba(171,184,161,.10) 24%,transparent 25%,transparent 67%,rgba(175,163,144,.11) 68%,transparent 69%);
 opacity:.7;mix-blend-mode:screen;
}
.obs-frame[data-trace="1"] #obs-image{box-shadow:inset 1px 0 rgba(191,168,147,.17)}
.obs-frame[data-quiet="true"] #obs-image::after{display:none}
@media(prefers-reduced-motion:reduce){.obs-frame[data-trace="1"] #obs-image::after{display:none}}

/* Keep the monitor stable. Only an atmospheric, non-interactive enlargement
   covers the letterbox; the original image and anomalies use uncropped 2:1 art. */
.obs-frame[data-scene-alt='true'] #obs-image{
 top:0;left:0;width:100%;height:100%;aspect-ratio:auto;transform:none;
 background-size:cover;background-position:center;
 filter:blur(7px) brightness(.43) saturate(.7);pointer-events:none;
}
/* Photo master + transparent native-photo perturbation + recognizable SVG clue.
   All layers remain uncut in the same image-space coordinate system. */
#obs-site-overlay{
 display:block;position:absolute;inset:0;z-index:1;pointer-events:none;
 background-size:100% 100%;background-position:center;background-repeat:no-repeat;
}
.obs-frame[data-scene-alt='true'] #obs-site-overlay{
 inset:auto;top:50%;left:50%;width:min(100%,calc(var(--obs-height) * 2));
 height:auto;aspect-ratio:2 / 1;transform:translate(-50%,-50%);
 background-size:100% 100%,100% 100%,100% 100%;
 /* Three native photo/evidence images already have authored contrast.
    Avoid adding an offscreen GPU-filter surface for WebKit SSR. */
 filter:none;
 box-shadow:0 0 22px 7px rgba(3,8,7,.46);
}
.watch-site-record-image{position:relative;width:100%;aspect-ratio:2 / 1;background-color:#111816;background-size:cover;background-position:center;overflow:hidden;border:1px solid #555b52}
.watch-site-record-overlay{position:absolute;inset:0;display:block;pointer-events:none;background-size:100% 100%,100% 100%;background-position:center;background-repeat:no-repeat}
.watch-site-record-overlay[hidden]{display:none}
@media(prefers-reduced-motion:reduce){#obs-site-overlay,.watch-site-record-overlay{animation:none!important;transition:none!important}}


/* Full-frame locations use their own transform origin. Legacy sprite offsets must never
   displace an alternate image or its normalized touch coordinates. */
/* Alternate scenes always keep their enlarged copy dim and out of focus,
   including anomaly, source-condition and quiet states. The readable image
   remains the foreground 2:1 photo rather than this atmospheric backdrop. */
#obs-frame[data-scene-alt='true'] #obs-image{filter:blur(7px) brightness(.43) saturate(.7)}
/* One SSR photo already composites its normal master, native WebP and SVG clue.
   Avoid loading a fourth filtered 1440px copy under the full-resolution stack.
   The letterboxed monitor keeps a quiet dark gradient, not a cropped anomaly. */
#obs-frame[data-scene-alt='true'][data-rarity='3'] #obs-image{filter:none}
/* The SSR master/WebP/SVG already carry the visual clue. All expensive
   shadows/masks/blur behind it are decoration, not evidence. Eliminate
   WebKit offscreen filter surfaces specifically for high-resolution SSR. */
#obs-frame[data-scene-alt='true'][data-rarity='3'] #obs-site-overlay{box-shadow:none}
#obs-frame[data-scene-alt='true'][data-rarity='3'] .obs-effect::after{
 filter:none;animation:none;opacity:.42
}
#obs-frame[data-scene-alt='true'][data-rarity='3'] #obs-image::after{content:none}
/* SSR foreground is one precomposed image, generated from the original CC0
   photo + transparent native WebP + authored SVG. Only one WebKit texture. */
#obs-frame[data-scene-alt='true'][data-rarity='3'] #obs-site-overlay{
 background-size:100% 100%;background-position:center;
 background-repeat:no-repeat;background-origin:padding-box;
 background-clip:border-box;background-attachment:scroll;
 background-blend-mode:normal;
}
/* Only R/SR still use three CSS image backgrounds. SSR uses one
   original-photo background and two independent <img> evidence layers:
   applying these three-entry longhands to SSR overrides its one-layer rules
   and breaks WebKit's actual image-space compositor contract. */
#obs-frame[data-scene-alt='true'][data-rarity='1'] #obs-site-overlay,
#obs-frame[data-scene-alt='true'][data-rarity='2'] #obs-site-overlay{
 background-position:center,center,center;
 background-repeat:no-repeat,no-repeat,no-repeat;
 background-origin:padding-box,padding-box,padding-box;
 background-clip:border-box,border-box,border-box;
 background-attachment:scroll,scroll,scroll;
 background-blend-mode:normal,normal,normal;
}


/* The native-photo atmospheric copy is already blurred and color-filtered.
   Animating that large bitmap (and its masked duplicate) can exhaust WebKit's
   compositor after repeated scene changes. Preserve the actual photographic
   evidence, anomaly overlay, touch mapping and lightweight edge-bleed cue. */
.obs-frame[data-scene-alt='true'][data-anomaly]:not([data-anomaly='0']):not([data-quiet='true']) #obs-image{
 animation:none;
}
.obs-frame[data-scene-alt='true'][data-anomaly]:not([data-anomaly='0']):not([data-quiet='true']) #obs-image::after{
 content:none;
}


.obs-zoom-tools{position:absolute;right:14px;top:32px;z-index:3;display:flex;justify-content:flex-end;margin:0;min-height:36px}
.obs-zoom-tools button{min-height:36px;min-width:96px;border:1px solid #6b7469;background:#202924;color:#f0e6d0;font:600 13px var(--f-body);border-radius:4px}
.obs-zoom-tools button[aria-pressed=true]{border-color:#d4bc8a;color:#ffe5b5}
.obs-frame[data-scene-alt='true'][data-zoom='2'] #obs-site-overlay{width:min(200%,calc(var(--obs-height) * 4));}
@media(max-height:500px){.obs-zoom-tools{min-height:30px}.obs-zoom-tools button{min-height:30px}}

/* Pan moves the sharp photo+both evidence layers as one unit. The softly blurred
   monitor background stays still. All 1x and legacy sprites retain old geometry. */
.obs-frame[data-scene-alt='true'][data-zoom='2']{
 touch-action:none;cursor:grab;
}
.obs-frame[data-scene-alt='true'][data-zoom='2']:active{cursor:grabbing}
.obs-frame[data-scene-alt='true'][data-zoom='2'] #obs-site-overlay{
 left:calc(50% + var(--obs-pan-x,0px));
 top:calc(50% + var(--obs-pan-y,0px));
}
.obs-zoom-tools button{min-height:44px}
.obs-zoom-tools .obs-zoom-hint{
 display:block;max-width:164px;padding:4px 8px;margin-top:5px;
 font:12px/1.45 var(--f-body);color:#f0dfc4;
 background:rgba(11,17,15,.85);border:1px solid #53584b;pointer-events:none;
}
.obs-zoom-tools .obs-zoom-hint[hidden]{display:none}
@media(max-height:500px){.obs-zoom-tools .obs-zoom-hint{display:none}}

/* Readability only: an optional per-source dark-area lift for phone displays.
   Preserve the unmodified CC0 master, photographic evidence and touch geometry. */
.obs-zoom-tools{gap:6px;align-items:flex-start}
.obs-zoom-tools #obs-enhance-toggle{min-width:78px;padding-inline:7px}
.obs-zoom-tools #obs-enhance-toggle[aria-pressed='true']{border-color:#a6bfa8;color:#f2ffe7;background:#304137}
/* Use a lightweight inset screen lift rather than a costly full-frame
   multi-texture CSS brightness filter. Keep photos/touch coordinates intact,
   and avoid WebKit's animated GPU-filter compositor shutdown. */
.obs-frame[data-scene-alt='true'][data-enhance='true'] #obs-site-overlay{
 filter:none;
}
.obs-frame[data-scene-alt='true'][data-enhance='true'] #obs-site-overlay::after{
 content:'';position:absolute;inset:0;pointer-events:none;
 background:rgba(191,202,191,.12);
}
.obs-frame[data-scene-alt='true'][data-enhance='true'][data-mode='vision'] #obs-site-overlay::after{
 background:rgba(191,202,191,.23);
}
.obs-frame[data-scene-alt='true'][data-enhance='true'][data-mode='dash'] #obs-site-overlay::after{
 background:rgba(191,202,191,.30);
}
@media(max-width:350px){
 .obs-zoom-tools{gap:4px;right:9px}
 .obs-zoom-tools button{font-size:12px;min-width:74px}
 .obs-zoom-tools #obs-enhance-toggle{min-width:72px;padding-inline:5px}
}

/* Observation controls belong to the source heading, not over the evidence.
   Keep the photograph entirely free of labels, guides and action buttons. */
.agent-home .thread-radar{grid-template-rows:minmax(52px,auto) auto minmax(var(--obs-status-row),auto) var(--obs-copy-row) var(--obs-control-row)}
.agent-home .obs-topline{grid-area:1/1;align-self:start;min-height:48px;padding-right:192px;align-items:center}
.agent-home .obs-zoom-tools{
 position:relative;grid-area:1/1;justify-self:end;align-self:center;
 top:auto;right:auto;left:auto;z-index:1;min-height:44px;
 margin:0;gap:6px;align-items:center;
}
.agent-home .obs-zoom-tools button{min-height:44px}
.agent-home .obs-zoom-tools .obs-zoom-hint{
 position:absolute;width:1px;height:1px;overflow:hidden;
 clip:rect(0,0,0,0);white-space:nowrap;border:0;padding:0;margin:0;
}
@media(max-width:350px){
 .agent-home .obs-topline{padding-right:156px}
 .agent-home .obs-zoom-tools{gap:4px}
 .agent-home .obs-zoom-tools button{min-width:70px;padding-inline:5px;font-size:12px}
}

/* Nested source toolbar: the label and both controls now share one real
   flex row. Avoid two independently overlapping CSS grid items (WebKit
   could display the enhance button while its clickable box was unstable). */
.agent-home .obs-topline{
 padding-right:0;display:flex;flex-wrap:wrap;align-items:center;
 justify-content:space-between;gap:4px 6px;min-width:0;
}
.agent-home .obs-topline #obs-name{
 flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;
 white-space:nowrap;
}
.agent-home .obs-topline .obs-zoom-tools{
 position:static;display:flex;flex:0 0 auto;z-index:auto;
 align-self:center;justify-self:auto;grid-area:auto;
 min-height:44px;margin:0 0 0 auto;
}
@media(max-width:350px){
 .agent-home .obs-topline{padding-right:0;gap:4px}
 .agent-home .obs-topline .obs-zoom-tools button{font-size:12px}
}

/* The live viewpoint is part of the evidence heading, never printed on top
   of the photo. Short semantic source + place remain visible at phone widths. */
.agent-home .obs-topline .obs-viewpoint{
 display:flex;flex:1 1 auto;min-width:9em;flex-direction:column;justify-content:center;
 gap:1px;overflow:hidden;
}
.agent-home .obs-topline #obs-viewpoint-label{
 display:block;flex:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
 color:#c4cdbf;font:600 12px/1.35 var(--f-body);
}
.agent-home .obs-topline #obs-name{
 display:block;flex:none;min-width:0;overflow:hidden;text-overflow:ellipsis;
 white-space:nowrap;color:#e8e1d0;font:500 14px/1.35 var(--f-body);
}

/* The accessible region grid is a spatial map, not an answer hint.
   Keep all nine regions visually equal; keyboard focus must remain visible. */
.watch-target-regions button{
 min-width:0;padding:10px 6px;border-radius:4px;
 line-height:1.5;overflow-wrap:anywhere;
}
.watch-target-regions button:hover{background:#30382b;border-color:#d6c7a3}
.watch-target-regions button:focus-visible{
 outline:3px solid #e6d1a8;outline-offset:3px;
 background:#30382b;text-decoration:underline;text-underline-offset:4px;
}
.watch-target-regions button:active{background:#414a37;border-color:#eee5cd}
@media(forced-colors:active){
 .watch-target-regions button:focus-visible{outline-color:Highlight}
}
