/* Current contact: a brief arrival, a chosen reading surface, a quiet return. */
.eg-helper{--helper-bg:#171d19;--helper-surface:#252b24;--helper-ink:#f3e9d7;--helper-muted:#c7bea9;--helper-accent:#ed955c;--helper-edge:#6c7060;--helper-hover:#343a2e}
.eg-helper-client{--helper-bg:#06110f;--helper-surface:#0c211b;--helper-ink:#d2e9df;--helper-muted:#97b8a9;--helper-accent:#84d9bd;--helper-edge:#345c4b;--helper-hover:#153429}
.eg-help-launcher{min-height:48px;border-radius:2px;gap:9px;padding:10px 14px;border-color:var(--helper-edge);box-shadow:0 3px 14px #0004;font:600 12px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.025em}
.eg-help-preview{bottom:max(18px,env(safe-area-inset-bottom));width:min(340px,calc(100vw - 36px));border-radius:1px;box-shadow:0 6px 24px #0004}
.eg-help-preview-open{min-height:72px;padding:14px 0 14px 15px}
.eg-help-preview-text{font-size:15px;line-height:1.6}
.eg-helper[data-arrival="true"] .eg-help-launcher{display:none}
/* The history is in document flow. No chosen article, photograph or book is
   obscured; Minimize returns to the exact previous document scroll and focus. */
body.eg-has-helper.eg-helper-expanded{padding-bottom:max(84px,calc(66px + env(safe-area-inset-bottom)))}
.eg-helper-expanded .eg-helper{display:flow-root;width:100%;padding:clamp(20px,4vw,54px) clamp(12px,3vw,40px);box-sizing:border-box}
.eg-contact{position:relative;inset:auto;z-index:1;display:grid;grid-template-columns:minmax(180px,.7fr) minmax(0,1.3fr);grid-template-rows:auto minmax(180px,1fr) auto;width:min(100%,1060px);max-height:none;margin:0 auto;border:1px solid #766f5b;border-radius:0;background:#eee4d1;color:#26291f;box-shadow:none;scroll-margin-block:24px;--helper-bg:#eee4d1;--helper-surface:#e7dcc6;--helper-ink:#26291f;--helper-muted:#5d6051;--helper-accent:#704a2d;--helper-edge:#aaa18a;--helper-hover:#ddd0b6}
.eg-helper-client .eg-contact{background:#081712;color:var(--helper-ink);border-color:#345c4b;--helper-bg:#081712;--helper-surface:#0d241c;--helper-ink:#d2e9df;--helper-muted:#a5bdae;--helper-accent:#8cdbc0;--helper-edge:#345c4b;--helper-hover:#153429}
.eg-contact .eg-contact-suggestion{color:var(--helper-accent)}
.eg-contact-head{grid-column:1/-1;min-height:68px;padding:12px 20px;background:transparent}
.eg-contact-head h2{font:normal clamp(22px,3vw,30px)/1.2 Georgia,serif!important}
.eg-contact-head .eg-chat-icon{display:none}
.eg-contact-dismiss{font-size:28px;color:var(--helper-ink)}
.eg-contact-memory-art{grid-column:1;grid-row:2;margin:0!important;padding:22px 0 22px 18px;display:grid;place-items:center;overflow:hidden;min-height:280px}
.eg-contact-memory-art img{display:block;width:100%;height:100%;max-height:510px;object-fit:contain;filter:grayscale(1) brightness(.38) contrast(1.6)}
.eg-helper-client .eg-contact-memory-art img{filter:grayscale(1) brightness(1.25) contrast(1.1)}
.eg-contact-memory-art[hidden]+.eg-contact-lines{grid-column:1/-1}
.eg-contact-lines{grid-column:2;grid-row:2;max-height:min(64dvh,550px);min-height:180px;padding:22px;scrollbar-gutter:stable;scrollbar-color:#6f806f var(--helper-bg)}
.eg-contact-line{font-size:16px!important;line-height:1.85!important;padding:8px 0;border:0;border-radius:0;background:transparent;margin-bottom:18px!important}
.eg-contact-episode-controls{padding-top:14px;margin-top:20px;gap:5px 14px}
.eg-contact-controls{grid-column:1/-1;min-height:60px;padding:10px 20px;background:transparent}
.eg-contact-episode-replay,.eg-contact-replay,.eg-contact-suggestion{font:600 12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;min-height:44px}
.eg-contact-disabled{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.eg-contact :focus-visible{outline:2px solid var(--helper-accent);outline-offset:3px}
/* The alpha geometry of the approved masters is the edge of the encounter.
   No full-screen dark splash plate or moving page sits behind it. */
.eg-disturbance{background:transparent;place-items:center end}
.eg-disturbance img{width:min(84vw,1160px);height:91dvh;object-position:100% 48%;filter:grayscale(1) brightness(.34) contrast(1.5)}
.eg-disturbance[data-tone="ash"] img{filter:grayscale(1) brightness(1.28) contrast(1.12)}
.eg-disturbance[data-art-id="C004-A04"]{place-items:end start}
.eg-disturbance[data-art-id="C004-A04"] img{width:min(68vw,840px);height:96dvh;object-position:0 100%}
.eg-disturbance[data-art-id="C004-A03"] img{width:min(90vw,1260px)}
.eg-disturbance[data-art-id="C004-A02"] img{width:96vw;height:96dvh;object-position:50% 50%}
.eg-profile-intrusion{place-items:center}
.eg-profile-intrusion img{width:min(86vw,1160px);height:94dvh;object-position:50% 48%}
.eg-profile-intrusion[data-art-id="C005-M24"] img,.eg-profile-intrusion[data-art-id="C005-M29"] img{width:min(65vw,780px);object-position:50% 40%}
.client-line-shell{width:min(100%,70rem)}
.eg-line-heading{max-width:48rem}
.eg-line-tabs{margin-top:2rem;border-color:#345c4b}
.eg-line-reading-pane{max-height:min(66dvh,44rem);padding:10px 15px 10px 0}
.eg-line-message{background:#091c15;border-color:#579e81;padding:18px 22px;line-height:1.85}
.eg-line-time{color:#9dbeab;letter-spacing:.075em;text-transform:uppercase}
@media(max-width:600px){
 .eg-help-launcher{right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));min-height:44px;padding:9px 11px}
 .eg-help-preview{right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));width:min(340px,calc(100vw - 24px))}
 .eg-helper-expanded .eg-helper{padding:20px 12px}
 .eg-contact{grid-template-columns:minmax(0,1fr);width:100%;max-height:none;scroll-margin-block:12px}
 .eg-contact-head{padding:12px 14px;min-height:62px}
 .eg-contact-memory-art{grid-column:1;grid-row:2;min-height:0;height:180px;padding:12px 16px 0}
 .eg-contact-memory-art img{max-height:180px;object-position:50% 45%}
 .eg-contact-lines{grid-column:1;grid-row:3;min-height:140px;max-height:57dvh;padding:18px 16px}
 .eg-contact-controls{grid-row:4;padding:8px 14px;gap:6px 14px}
 .eg-contact-line{font-size:15px!important;line-height:1.8!important}
 .eg-disturbance img{width:100vw;height:90dvh;object-position:50% 48%}
 .eg-disturbance[data-art-id="C004-A04"] img{width:88vw;height:94dvh}
 .eg-profile-intrusion img,.eg-profile-intrusion[data-art-id="C005-M24"] img,.eg-profile-intrusion[data-art-id="C005-M29"] img{width:100vw;height:92dvh}
 .client-line-shell{padding:1rem .5rem}.eg-line-reading-pane{padding-right:3px;max-height:65dvh}.eg-line-message{padding:16px 13px}
}
@media(prefers-reduced-motion:reduce){.eg-disturbance,.eg-disturbance img,.eg-contact,.eg-line-message{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(forced-colors:active){.eg-contact{background:Canvas;color:CanvasText;--helper-ink:CanvasText;--helper-muted:CanvasText;--helper-accent:LinkText;--helper-bg:Canvas;--helper-surface:Canvas;--helper-edge:CanvasText}.eg-contact-memory-art{display:none}.eg-contact-lines{grid-column:1/-1}.eg-disturbance{display:none}}
@media print{.eg-contact{display:none!important}}
